From 8f41ba1116f6911b63c9045c1efa217b00e8da94 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Sat, 13 Jul 2024 04:05:16 +0000 Subject: [PATCH] :alien: re-generate models from openapi schema --- githubkit/rest/__init__.py | 242 +- .../ghec_v2022_11_28/models/__init__.py | 8910 ++++++++-------- .../ghec_v2022_11_28/models/group_0047.py | 105 +- .../ghec_v2022_11_28/models/group_0048.py | 54 +- .../ghec_v2022_11_28/models/group_0049.py | 141 +- .../ghec_v2022_11_28/models/group_0050.py | 152 +- .../ghec_v2022_11_28/models/group_0051.py | 68 +- .../ghec_v2022_11_28/models/group_0052.py | 47 +- .../ghec_v2022_11_28/models/group_0053.py | 114 +- .../ghec_v2022_11_28/models/group_0054.py | 97 +- .../ghec_v2022_11_28/models/group_0055.py | 94 +- .../ghec_v2022_11_28/models/group_0056.py | 57 +- .../ghec_v2022_11_28/models/group_0057.py | 98 +- .../ghec_v2022_11_28/models/group_0058.py | 94 +- .../ghec_v2022_11_28/models/group_0059.py | 52 +- .../ghec_v2022_11_28/models/group_0060.py | 57 +- .../ghec_v2022_11_28/models/group_0061.py | 41 +- .../ghec_v2022_11_28/models/group_0062.py | 27 +- .../ghec_v2022_11_28/models/group_0063.py | 132 +- .../ghec_v2022_11_28/models/group_0064.py | 54 +- .../ghec_v2022_11_28/models/group_0065.py | 95 +- .../ghec_v2022_11_28/models/group_0066.py | 147 +- .../ghec_v2022_11_28/models/group_0067.py | 66 +- .../ghec_v2022_11_28/models/group_0068.py | 114 +- .../ghec_v2022_11_28/models/group_0069.py | 167 +- .../ghec_v2022_11_28/models/group_0070.py | 58 +- .../ghec_v2022_11_28/models/group_0071.py | 68 +- .../ghec_v2022_11_28/models/group_0072.py | 128 +- .../ghec_v2022_11_28/models/group_0073.py | 52 +- .../ghec_v2022_11_28/models/group_0074.py | 51 +- .../ghec_v2022_11_28/models/group_0075.py | 31 +- .../ghec_v2022_11_28/models/group_0076.py | 58 +- .../ghec_v2022_11_28/models/group_0077.py | 69 +- .../ghec_v2022_11_28/models/group_0078.py | 88 +- .../ghec_v2022_11_28/models/group_0079.py | 174 +- .../ghec_v2022_11_28/models/group_0080.py | 70 +- .../ghec_v2022_11_28/models/group_0081.py | 94 +- .../ghec_v2022_11_28/models/group_0082.py | 157 +- .../ghec_v2022_11_28/models/group_0083.py | 128 +- .../ghec_v2022_11_28/models/group_0084.py | 25 +- .../ghec_v2022_11_28/models/group_0085.py | 39 +- .../ghec_v2022_11_28/models/group_0086.py | 116 +- .../ghec_v2022_11_28/models/group_0087.py | 23 +- .../ghec_v2022_11_28/models/group_0088.py | 37 +- .../ghec_v2022_11_28/models/group_0089.py | 161 +- .../ghec_v2022_11_28/models/group_0090.py | 80 +- .../ghec_v2022_11_28/models/group_0091.py | 74 +- .../ghec_v2022_11_28/models/group_0092.py | 41 +- .../ghec_v2022_11_28/models/group_0093.py | 65 +- .../ghec_v2022_11_28/models/group_0094.py | 213 +- .../ghec_v2022_11_28/models/group_0095.py | 54 +- .../ghec_v2022_11_28/models/group_0096.py | 78 +- .../ghec_v2022_11_28/models/group_0097.py | 50 +- .../ghec_v2022_11_28/models/group_0098.py | 28 +- .../ghec_v2022_11_28/models/group_0099.py | 45 +- .../ghec_v2022_11_28/models/group_0100.py | 49 +- .../ghec_v2022_11_28/models/group_0101.py | 45 +- .../ghec_v2022_11_28/models/group_0102.py | 59 +- .../ghec_v2022_11_28/models/group_0103.py | 32 +- .../ghec_v2022_11_28/models/group_0104.py | 55 +- .../ghec_v2022_11_28/models/group_0105.py | 20 +- .../ghec_v2022_11_28/models/group_0106.py | 46 +- .../ghec_v2022_11_28/models/group_0107.py | 44 +- .../ghec_v2022_11_28/models/group_0108.py | 42 +- .../ghec_v2022_11_28/models/group_0109.py | 42 +- .../ghec_v2022_11_28/models/group_0110.py | 59 +- .../ghec_v2022_11_28/models/group_0111.py | 64 +- .../ghec_v2022_11_28/models/group_0112.py | 102 +- .../ghec_v2022_11_28/models/group_0113.py | 103 +- .../ghec_v2022_11_28/models/group_0114.py | 59 +- .../ghec_v2022_11_28/models/group_0115.py | 82 +- .../ghec_v2022_11_28/models/group_0116.py | 92 +- .../ghec_v2022_11_28/models/group_0117.py | 91 +- .../ghec_v2022_11_28/models/group_0118.py | 46 +- .../ghec_v2022_11_28/models/group_0119.py | 199 +- .../ghec_v2022_11_28/models/group_0120.py | 26 +- .../ghec_v2022_11_28/models/group_0121.py | 23 +- .../ghec_v2022_11_28/models/group_0122.py | 27 +- .../ghec_v2022_11_28/models/group_0123.py | 192 +- .../ghec_v2022_11_28/models/group_0124.py | 29 +- .../ghec_v2022_11_28/models/group_0125.py | 18 +- .../ghec_v2022_11_28/models/group_0126.py | 16 +- .../ghec_v2022_11_28/models/group_0127.py | 14 +- .../ghec_v2022_11_28/models/group_0128.py | 36 +- .../ghec_v2022_11_28/models/group_0129.py | 22 +- .../ghec_v2022_11_28/models/group_0130.py | 22 +- .../ghec_v2022_11_28/models/group_0131.py | 16 +- .../ghec_v2022_11_28/models/group_0132.py | 111 +- .../ghec_v2022_11_28/models/group_0133.py | 21 +- .../ghec_v2022_11_28/models/group_0134.py | 21 +- .../ghec_v2022_11_28/models/group_0135.py | 47 +- .../ghec_v2022_11_28/models/group_0136.py | 101 +- .../ghec_v2022_11_28/models/group_0137.py | 22 +- .../ghec_v2022_11_28/models/group_0138.py | 23 +- .../ghec_v2022_11_28/models/group_0139.py | 59 +- .../ghec_v2022_11_28/models/group_0140.py | 18 +- .../ghec_v2022_11_28/models/group_0141.py | 36 +- .../ghec_v2022_11_28/models/group_0142.py | 19 +- .../ghec_v2022_11_28/models/group_0143.py | 32 +- .../ghec_v2022_11_28/models/group_0144.py | 17 +- .../ghec_v2022_11_28/models/group_0145.py | 39 +- .../ghec_v2022_11_28/models/group_0146.py | 16 +- .../ghec_v2022_11_28/models/group_0147.py | 8 +- .../ghec_v2022_11_28/models/group_0148.py | 16 +- .../ghec_v2022_11_28/models/group_0149.py | 8 +- .../ghec_v2022_11_28/models/group_0150.py | 16 +- .../ghec_v2022_11_28/models/group_0151.py | 8 +- .../ghec_v2022_11_28/models/group_0152.py | 20 +- .../ghec_v2022_11_28/models/group_0153.py | 26 +- .../ghec_v2022_11_28/models/group_0154.py | 36 +- .../ghec_v2022_11_28/models/group_0155.py | 27 +- .../ghec_v2022_11_28/models/group_0156.py | 37 +- .../ghec_v2022_11_28/models/group_0157.py | 32 +- .../ghec_v2022_11_28/models/group_0158.py | 141 +- .../ghec_v2022_11_28/models/group_0159.py | 53 +- .../ghec_v2022_11_28/models/group_0160.py | 97 +- .../ghec_v2022_11_28/models/group_0161.py | 45 +- .../ghec_v2022_11_28/models/group_0162.py | 277 +- .../ghec_v2022_11_28/models/group_0163.py | 64 +- .../ghec_v2022_11_28/models/group_0164.py | 170 +- .../ghec_v2022_11_28/models/group_0165.py | 55 +- .../ghec_v2022_11_28/models/group_0166.py | 199 +- .../ghec_v2022_11_28/models/group_0167.py | 46 +- .../ghec_v2022_11_28/models/group_0168.py | 125 +- .../ghec_v2022_11_28/models/group_0169.py | 63 +- .../ghec_v2022_11_28/models/group_0170.py | 161 +- .../ghec_v2022_11_28/models/group_0171.py | 33 +- .../ghec_v2022_11_28/models/group_0172.py | 25 +- .../ghec_v2022_11_28/models/group_0173.py | 48 +- .../ghec_v2022_11_28/models/group_0174.py | 159 +- .../ghec_v2022_11_28/models/group_0175.py | 41 +- .../ghec_v2022_11_28/models/group_0176.py | 35 +- .../ghec_v2022_11_28/models/group_0177.py | 42 +- .../ghec_v2022_11_28/models/group_0178.py | 40 +- .../ghec_v2022_11_28/models/group_0179.py | 98 +- .../ghec_v2022_11_28/models/group_0180.py | 30 +- .../ghec_v2022_11_28/models/group_0181.py | 41 +- .../ghec_v2022_11_28/models/group_0182.py | 40 +- .../ghec_v2022_11_28/models/group_0183.py | 97 +- .../ghec_v2022_11_28/models/group_0184.py | 23 +- .../ghec_v2022_11_28/models/group_0185.py | 61 +- .../ghec_v2022_11_28/models/group_0186.py | 52 +- .../ghec_v2022_11_28/models/group_0187.py | 107 +- .../ghec_v2022_11_28/models/group_0188.py | 51 +- .../ghec_v2022_11_28/models/group_0189.py | 61 +- .../ghec_v2022_11_28/models/group_0190.py | 57 +- .../ghec_v2022_11_28/models/group_0191.py | 125 +- .../ghec_v2022_11_28/models/group_0192.py | 69 +- .../ghec_v2022_11_28/models/group_0193.py | 100 +- .../ghec_v2022_11_28/models/group_0194.py | 59 +- .../ghec_v2022_11_28/models/group_0195.py | 68 +- .../ghec_v2022_11_28/models/group_0196.py | 60 +- .../ghec_v2022_11_28/models/group_0197.py | 99 +- .../ghec_v2022_11_28/models/group_0198.py | 71 +- .../ghec_v2022_11_28/models/group_0199.py | 65 +- .../ghec_v2022_11_28/models/group_0200.py | 136 +- .../ghec_v2022_11_28/models/group_0201.py | 177 +- .../ghec_v2022_11_28/models/group_0202.py | 48 +- .../ghec_v2022_11_28/models/group_0203.py | 52 +- .../ghec_v2022_11_28/models/group_0204.py | 135 +- .../ghec_v2022_11_28/models/group_0205.py | 186 +- .../ghec_v2022_11_28/models/group_0206.py | 53 +- .../ghec_v2022_11_28/models/group_0207.py | 35 +- .../ghec_v2022_11_28/models/group_0208.py | 43 +- .../ghec_v2022_11_28/models/group_0209.py | 171 +- .../ghec_v2022_11_28/models/group_0210.py | 80 +- .../ghec_v2022_11_28/models/group_0211.py | 45 +- .../ghec_v2022_11_28/models/group_0212.py | 58 +- .../ghec_v2022_11_28/models/group_0213.py | 195 +- .../ghec_v2022_11_28/models/group_0214.py | 42 +- .../ghec_v2022_11_28/models/group_0215.py | 103 +- .../ghec_v2022_11_28/models/group_0216.py | 61 +- .../ghec_v2022_11_28/models/group_0217.py | 111 +- .../ghec_v2022_11_28/models/group_0218.py | 108 +- .../ghec_v2022_11_28/models/group_0219.py | 100 +- .../ghec_v2022_11_28/models/group_0220.py | 45 +- .../ghec_v2022_11_28/models/group_0221.py | 62 +- .../ghec_v2022_11_28/models/group_0222.py | 103 +- .../ghec_v2022_11_28/models/group_0223.py | 51 +- .../ghec_v2022_11_28/models/group_0224.py | 63 +- .../ghec_v2022_11_28/models/group_0225.py | 45 +- .../ghec_v2022_11_28/models/group_0226.py | 41 +- .../ghec_v2022_11_28/models/group_0227.py | 48 +- .../ghec_v2022_11_28/models/group_0228.py | 75 +- .../ghec_v2022_11_28/models/group_0229.py | 55 +- .../ghec_v2022_11_28/models/group_0230.py | 40 +- .../ghec_v2022_11_28/models/group_0231.py | 45 +- .../ghec_v2022_11_28/models/group_0232.py | 45 +- .../ghec_v2022_11_28/models/group_0233.py | 58 +- .../ghec_v2022_11_28/models/group_0234.py | 21 +- .../ghec_v2022_11_28/models/group_0235.py | 36 +- .../ghec_v2022_11_28/models/group_0236.py | 74 +- .../ghec_v2022_11_28/models/group_0237.py | 72 +- .../ghec_v2022_11_28/models/group_0238.py | 27 +- .../ghec_v2022_11_28/models/group_0239.py | 41 +- .../ghec_v2022_11_28/models/group_0240.py | 73 +- .../ghec_v2022_11_28/models/group_0241.py | 79 +- .../ghec_v2022_11_28/models/group_0242.py | 35 +- .../ghec_v2022_11_28/models/group_0243.py | 20 +- .../ghec_v2022_11_28/models/group_0244.py | 54 +- .../ghec_v2022_11_28/models/group_0245.py | 90 +- .../ghec_v2022_11_28/models/group_0246.py | 58 +- .../ghec_v2022_11_28/models/group_0247.py | 39 +- .../ghec_v2022_11_28/models/group_0248.py | 77 +- .../ghec_v2022_11_28/models/group_0249.py | 47 +- .../ghec_v2022_11_28/models/group_0250.py | 63 +- .../ghec_v2022_11_28/models/group_0251.py | 57 +- .../ghec_v2022_11_28/models/group_0252.py | 56 +- .../ghec_v2022_11_28/models/group_0253.py | 126 +- .../ghec_v2022_11_28/models/group_0254.py | 65 +- .../ghec_v2022_11_28/models/group_0255.py | 89 +- .../ghec_v2022_11_28/models/group_0256.py | 47 +- .../ghec_v2022_11_28/models/group_0257.py | 130 +- .../ghec_v2022_11_28/models/group_0258.py | 149 +- .../ghec_v2022_11_28/models/group_0259.py | 68 +- .../ghec_v2022_11_28/models/group_0260.py | 39 +- .../ghec_v2022_11_28/models/group_0261.py | 61 +- .../ghec_v2022_11_28/models/group_0262.py | 158 +- .../ghec_v2022_11_28/models/group_0263.py | 54 +- .../ghec_v2022_11_28/models/group_0264.py | 40 +- .../ghec_v2022_11_28/models/group_0265.py | 91 +- .../ghec_v2022_11_28/models/group_0266.py | 85 +- .../ghec_v2022_11_28/models/group_0267.py | 46 +- .../ghec_v2022_11_28/models/group_0268.py | 24 +- .../ghec_v2022_11_28/models/group_0269.py | 86 +- .../ghec_v2022_11_28/models/group_0270.py | 36 +- .../ghec_v2022_11_28/models/group_0271.py | 53 +- .../ghec_v2022_11_28/models/group_0272.py | 23 +- .../ghec_v2022_11_28/models/group_0273.py | 25 +- .../ghec_v2022_11_28/models/group_0274.py | 93 +- .../ghec_v2022_11_28/models/group_0275.py | 61 +- .../ghec_v2022_11_28/models/group_0276.py | 44 +- .../ghec_v2022_11_28/models/group_0277.py | 38 +- .../ghec_v2022_11_28/models/group_0278.py | 89 +- .../ghec_v2022_11_28/models/group_0279.py | 51 +- .../ghec_v2022_11_28/models/group_0280.py | 86 +- .../ghec_v2022_11_28/models/group_0281.py | 40 +- .../ghec_v2022_11_28/models/group_0282.py | 20 +- .../ghec_v2022_11_28/models/group_0283.py | 150 +- .../ghec_v2022_11_28/models/group_0284.py | 78 +- .../ghec_v2022_11_28/models/group_0285.py | 39 +- .../ghec_v2022_11_28/models/group_0286.py | 39 +- .../ghec_v2022_11_28/models/group_0287.py | 137 +- .../ghec_v2022_11_28/models/group_0288.py | 25 +- .../ghec_v2022_11_28/models/group_0289.py | 25 +- .../ghec_v2022_11_28/models/group_0290.py | 33 +- .../ghec_v2022_11_28/models/group_0291.py | 36 +- .../ghec_v2022_11_28/models/group_0292.py | 43 +- .../ghec_v2022_11_28/models/group_0293.py | 29 +- .../ghec_v2022_11_28/models/group_0294.py | 25 +- .../ghec_v2022_11_28/models/group_0295.py | 40 +- .../ghec_v2022_11_28/models/group_0296.py | 40 +- .../ghec_v2022_11_28/models/group_0297.py | 34 +- .../ghec_v2022_11_28/models/group_0298.py | 38 +- .../ghec_v2022_11_28/models/group_0299.py | 48 +- .../ghec_v2022_11_28/models/group_0300.py | 65 +- .../ghec_v2022_11_28/models/group_0301.py | 47 +- .../ghec_v2022_11_28/models/group_0302.py | 50 +- .../ghec_v2022_11_28/models/group_0303.py | 94 +- .../ghec_v2022_11_28/models/group_0304.py | 67 +- .../ghec_v2022_11_28/models/group_0305.py | 147 +- .../ghec_v2022_11_28/models/group_0306.py | 34 +- .../ghec_v2022_11_28/models/group_0307.py | 97 +- .../ghec_v2022_11_28/models/group_0308.py | 75 +- .../ghec_v2022_11_28/models/group_0309.py | 157 +- .../ghec_v2022_11_28/models/group_0310.py | 30 +- .../ghec_v2022_11_28/models/group_0311.py | 48 +- .../ghec_v2022_11_28/models/group_0312.py | 28 +- .../ghec_v2022_11_28/models/group_0313.py | 90 +- .../ghec_v2022_11_28/models/group_0314.py | 38 +- .../ghec_v2022_11_28/models/group_0315.py | 39 +- .../ghec_v2022_11_28/models/group_0316.py | 25 +- .../ghec_v2022_11_28/models/group_0317.py | 97 +- .../ghec_v2022_11_28/models/group_0318.py | 113 +- .../ghec_v2022_11_28/models/group_0319.py | 97 +- .../ghec_v2022_11_28/models/group_0320.py | 210 +- .../ghec_v2022_11_28/models/group_0321.py | 71 +- .../ghec_v2022_11_28/models/group_0322.py | 223 +- .../ghec_v2022_11_28/models/group_0323.py | 106 +- .../ghec_v2022_11_28/models/group_0324.py | 209 +- .../ghec_v2022_11_28/models/group_0325.py | 62 +- .../ghec_v2022_11_28/models/group_0326.py | 188 +- .../ghec_v2022_11_28/models/group_0327.py | 86 +- .../ghec_v2022_11_28/models/group_0328.py | 17 +- .../ghec_v2022_11_28/models/group_0329.py | 37 +- .../ghec_v2022_11_28/models/group_0330.py | 93 +- .../ghec_v2022_11_28/models/group_0331.py | 79 +- .../ghec_v2022_11_28/models/group_0332.py | 30 +- .../ghec_v2022_11_28/models/group_0333.py | 43 +- .../ghec_v2022_11_28/models/group_0334.py | 56 +- .../ghec_v2022_11_28/models/group_0335.py | 29 +- .../ghec_v2022_11_28/models/group_0336.py | 13 +- .../ghec_v2022_11_28/models/group_0337.py | 15 +- .../ghec_v2022_11_28/models/group_0338.py | 13 +- .../ghec_v2022_11_28/models/group_0339.py | 13 +- .../ghec_v2022_11_28/models/group_0340.py | 15 +- .../ghec_v2022_11_28/models/group_0341.py | 15 +- .../ghec_v2022_11_28/models/group_0342.py | 15 +- .../ghec_v2022_11_28/models/group_0343.py | 16 +- .../ghec_v2022_11_28/models/group_0344.py | 14 +- .../ghec_v2022_11_28/models/group_0345.py | 15 +- .../ghec_v2022_11_28/models/group_0346.py | 14 +- .../ghec_v2022_11_28/models/group_0347.py | 16 +- .../ghec_v2022_11_28/models/group_0348.py | 16 +- .../ghec_v2022_11_28/models/group_0349.py | 74 +- .../ghec_v2022_11_28/models/group_0350.py | 121 +- .../ghec_v2022_11_28/models/group_0351.py | 94 +- .../ghec_v2022_11_28/models/group_0352.py | 132 +- .../ghec_v2022_11_28/models/group_0353.py | 75 +- .../ghec_v2022_11_28/models/group_0354.py | 122 +- .../ghec_v2022_11_28/models/group_0355.py | 110 +- .../ghec_v2022_11_28/models/group_0356.py | 133 +- .../ghec_v2022_11_28/models/group_0357.py | 24 +- .../ghec_v2022_11_28/models/group_0358.py | 31 +- .../ghec_v2022_11_28/models/group_0359.py | 35 +- .../ghec_v2022_11_28/models/group_0360.py | 14 +- .../ghec_v2022_11_28/models/group_0361.py | 25 +- .../ghec_v2022_11_28/models/group_0362.py | 33 +- .../ghec_v2022_11_28/models/group_0363.py | 21 +- .../ghec_v2022_11_28/models/group_0364.py | 16 +- .../ghec_v2022_11_28/models/group_0365.py | 19 +- .../ghec_v2022_11_28/models/group_0366.py | 63 +- .../ghec_v2022_11_28/models/group_0367.py | 38 +- .../ghec_v2022_11_28/models/group_0368.py | 84 +- .../ghec_v2022_11_28/models/group_0369.py | 38 +- .../ghec_v2022_11_28/models/group_0370.py | 45 +- .../ghec_v2022_11_28/models/group_0371.py | 40 +- .../ghec_v2022_11_28/models/group_0372.py | 83 +- .../ghec_v2022_11_28/models/group_0373.py | 49 +- .../ghec_v2022_11_28/models/group_0374.py | 49 +- .../ghec_v2022_11_28/models/group_0375.py | 78 +- .../ghec_v2022_11_28/models/group_0376.py | 42 +- .../ghec_v2022_11_28/models/group_0377.py | 34 +- .../ghec_v2022_11_28/models/group_0378.py | 64 +- .../ghec_v2022_11_28/models/group_0379.py | 164 +- .../ghec_v2022_11_28/models/group_0380.py | 37 +- .../ghec_v2022_11_28/models/group_0381.py | 49 +- .../ghec_v2022_11_28/models/group_0382.py | 94 +- .../ghec_v2022_11_28/models/group_0383.py | 145 +- .../ghec_v2022_11_28/models/group_0384.py | 120 +- .../ghec_v2022_11_28/models/group_0385.py | 42 +- .../ghec_v2022_11_28/models/group_0386.py | 143 +- .../ghec_v2022_11_28/models/group_0387.py | 104 +- .../ghec_v2022_11_28/models/group_0388.py | 134 +- .../ghec_v2022_11_28/models/group_0389.py | 82 +- .../ghec_v2022_11_28/models/group_0390.py | 141 +- .../ghec_v2022_11_28/models/group_0391.py | 100 +- .../ghec_v2022_11_28/models/group_0392.py | 198 +- .../ghec_v2022_11_28/models/group_0393.py | 73 +- .../ghec_v2022_11_28/models/group_0394.py | 73 +- .../ghec_v2022_11_28/models/group_0395.py | 46 +- .../ghec_v2022_11_28/models/group_0396.py | 166 +- .../ghec_v2022_11_28/models/group_0397.py | 18 +- .../ghec_v2022_11_28/models/group_0398.py | 69 +- .../ghec_v2022_11_28/models/group_0399.py | 21 +- .../ghec_v2022_11_28/models/group_0400.py | 45 +- .../ghec_v2022_11_28/models/group_0401.py | 14 +- .../ghec_v2022_11_28/models/group_0402.py | 42 +- .../ghec_v2022_11_28/models/group_0403.py | 23 +- .../ghec_v2022_11_28/models/group_0404.py | 39 +- .../ghec_v2022_11_28/models/group_0405.py | 367 +- .../ghec_v2022_11_28/models/group_0406.py | 54 +- .../ghec_v2022_11_28/models/group_0407.py | 72 +- .../ghec_v2022_11_28/models/group_0408.py | 54 +- .../ghec_v2022_11_28/models/group_0409.py | 421 +- .../ghec_v2022_11_28/models/group_0410.py | 84 +- .../ghec_v2022_11_28/models/group_0411.py | 118 +- .../ghec_v2022_11_28/models/group_0412.py | 47 +- .../ghec_v2022_11_28/models/group_0413.py | 163 +- .../ghec_v2022_11_28/models/group_0414.py | 106 +- .../ghec_v2022_11_28/models/group_0415.py | 81 +- .../ghec_v2022_11_28/models/group_0416.py | 48 +- .../ghec_v2022_11_28/models/group_0417.py | 83 +- .../ghec_v2022_11_28/models/group_0418.py | 113 +- .../ghec_v2022_11_28/models/group_0419.py | 84 +- .../ghec_v2022_11_28/models/group_0420.py | 46 +- .../ghec_v2022_11_28/models/group_0421.py | 90 +- .../ghec_v2022_11_28/models/group_0422.py | 151 +- .../ghec_v2022_11_28/models/group_0423.py | 53 +- .../ghec_v2022_11_28/models/group_0424.py | 35 +- .../ghec_v2022_11_28/models/group_0425.py | 432 +- .../ghec_v2022_11_28/models/group_0426.py | 67 +- .../ghec_v2022_11_28/models/group_0427.py | 374 +- .../ghec_v2022_11_28/models/group_0428.py | 55 +- .../ghec_v2022_11_28/models/group_0429.py | 440 +- .../ghec_v2022_11_28/models/group_0430.py | 91 +- .../ghec_v2022_11_28/models/group_0431.py | 436 +- .../ghec_v2022_11_28/models/group_0432.py | 47 +- .../ghec_v2022_11_28/models/group_0433.py | 87 +- .../ghec_v2022_11_28/models/group_0434.py | 72 +- .../ghec_v2022_11_28/models/group_0435.py | 209 +- .../ghec_v2022_11_28/models/group_0436.py | 64 +- .../ghec_v2022_11_28/models/group_0437.py | 36 +- .../ghec_v2022_11_28/models/group_0438.py | 57 +- .../ghec_v2022_11_28/models/group_0439.py | 200 +- .../ghec_v2022_11_28/models/group_0440.py | 67 +- .../ghec_v2022_11_28/models/group_0441.py | 66 +- .../ghec_v2022_11_28/models/group_0442.py | 129 +- .../ghec_v2022_11_28/models/group_0443.py | 75 +- .../ghec_v2022_11_28/models/group_0444.py | 1054 +- .../ghec_v2022_11_28/models/group_0445.py | 174 +- .../ghec_v2022_11_28/models/group_0446.py | 106 +- .../ghec_v2022_11_28/models/group_0447.py | 236 +- .../ghec_v2022_11_28/models/group_0448.py | 168 +- .../ghec_v2022_11_28/models/group_0449.py | 1040 +- .../ghec_v2022_11_28/models/group_0450.py | 199 +- .../ghec_v2022_11_28/models/group_0451.py | 175 +- .../ghec_v2022_11_28/models/group_0452.py | 147 +- .../ghec_v2022_11_28/models/group_0453.py | 161 +- .../ghec_v2022_11_28/models/group_0454.py | 99 +- .../ghec_v2022_11_28/models/group_0455.py | 83 +- .../ghec_v2022_11_28/models/group_0456.py | 137 +- .../ghec_v2022_11_28/models/group_0457.py | 157 +- .../ghec_v2022_11_28/models/group_0458.py | 77 +- .../ghec_v2022_11_28/models/group_0459.py | 188 +- .../ghec_v2022_11_28/models/group_0460.py | 28 +- .../ghec_v2022_11_28/models/group_0461.py | 28 +- .../ghec_v2022_11_28/models/group_0462.py | 29 +- .../ghec_v2022_11_28/models/group_0463.py | 36 +- .../ghec_v2022_11_28/models/group_0464.py | 203 +- .../ghec_v2022_11_28/models/group_0465.py | 35 +- .../ghec_v2022_11_28/models/group_0466.py | 50 +- .../ghec_v2022_11_28/models/group_0467.py | 33 +- .../ghec_v2022_11_28/models/group_0468.py | 55 +- .../ghec_v2022_11_28/models/group_0469.py | 57 +- .../ghec_v2022_11_28/models/group_0470.py | 43 +- .../ghec_v2022_11_28/models/group_0471.py | 43 +- .../ghec_v2022_11_28/models/group_0472.py | 43 +- .../ghec_v2022_11_28/models/group_0473.py | 399 +- .../ghec_v2022_11_28/models/group_0474.py | 389 +- .../ghec_v2022_11_28/models/group_0475.py | 395 +- .../ghec_v2022_11_28/models/group_0476.py | 199 +- .../ghec_v2022_11_28/models/group_0477.py | 212 +- .../ghec_v2022_11_28/models/group_0478.py | 447 +- .../ghec_v2022_11_28/models/group_0479.py | 416 +- .../ghec_v2022_11_28/models/group_0480.py | 431 +- .../ghec_v2022_11_28/models/group_0481.py | 125 +- .../ghec_v2022_11_28/models/group_0482.py | 221 +- .../ghec_v2022_11_28/models/group_0483.py | 178 +- .../ghec_v2022_11_28/models/group_0484.py | 199 +- .../ghec_v2022_11_28/models/group_0485.py | 180 +- .../ghec_v2022_11_28/models/group_0486.py | 171 +- .../ghec_v2022_11_28/models/group_0487.py | 138 +- .../ghec_v2022_11_28/models/group_0488.py | 28 +- .../ghec_v2022_11_28/models/group_0489.py | 44 +- .../ghec_v2022_11_28/models/group_0490.py | 50 +- .../ghec_v2022_11_28/models/group_0491.py | 44 +- .../ghec_v2022_11_28/models/group_0492.py | 53 +- .../ghec_v2022_11_28/models/group_0493.py | 38 +- .../ghec_v2022_11_28/models/group_0494.py | 22 +- .../ghec_v2022_11_28/models/group_0495.py | 22 +- .../ghec_v2022_11_28/models/group_0496.py | 34 +- .../ghec_v2022_11_28/models/group_0497.py | 36 +- .../ghec_v2022_11_28/models/group_0498.py | 648 +- .../ghec_v2022_11_28/models/group_0499.py | 61 +- .../ghec_v2022_11_28/models/group_0500.py | 454 +- .../ghec_v2022_11_28/models/group_0501.py | 446 +- .../ghec_v2022_11_28/models/group_0502.py | 483 +- .../ghec_v2022_11_28/models/group_0503.py | 528 +- .../ghec_v2022_11_28/models/group_0504.py | 61 +- .../ghec_v2022_11_28/models/group_0505.py | 455 +- .../ghec_v2022_11_28/models/group_0506.py | 446 +- .../ghec_v2022_11_28/models/group_0507.py | 485 +- .../ghec_v2022_11_28/models/group_0508.py | 956 +- .../ghec_v2022_11_28/models/group_0509.py | 45 +- .../ghec_v2022_11_28/models/group_0510.py | 61 +- .../ghec_v2022_11_28/models/group_0511.py | 22 +- .../ghec_v2022_11_28/models/group_0512.py | 52 +- .../ghec_v2022_11_28/models/group_0513.py | 26 +- .../ghec_v2022_11_28/models/group_0514.py | 43 +- .../ghec_v2022_11_28/models/group_0515.py | 22 +- .../ghec_v2022_11_28/models/group_0516.py | 22 +- .../ghec_v2022_11_28/models/group_0517.py | 52 +- .../ghec_v2022_11_28/models/group_0518.py | 46 +- .../ghec_v2022_11_28/models/group_0519.py | 35 +- .../ghec_v2022_11_28/models/group_0520.py | 24 +- .../ghec_v2022_11_28/models/group_0521.py | 22 +- .../ghec_v2022_11_28/models/group_0522.py | 24 +- .../ghec_v2022_11_28/models/group_0523.py | 46 +- .../ghec_v2022_11_28/models/group_0524.py | 186 +- .../ghec_v2022_11_28/models/group_0525.py | 196 +- .../ghec_v2022_11_28/models/group_0526.py | 59 +- .../ghec_v2022_11_28/models/group_0527.py | 155 +- .../ghec_v2022_11_28/models/group_0528.py | 45 +- .../ghec_v2022_11_28/models/group_0529.py | 200 +- .../ghec_v2022_11_28/models/group_0530.py | 194 +- .../ghec_v2022_11_28/models/group_0531.py | 58 +- .../ghec_v2022_11_28/models/group_0532.py | 154 +- .../ghec_v2022_11_28/models/group_0533.py | 68 +- .../ghec_v2022_11_28/models/group_0534.py | 64 +- .../ghec_v2022_11_28/models/group_0535.py | 25 +- .../ghec_v2022_11_28/models/group_0536.py | 113 +- .../ghec_v2022_11_28/models/group_0537.py | 20 +- .../ghec_v2022_11_28/models/group_0538.py | 72 +- .../ghec_v2022_11_28/models/group_0539.py | 133 +- .../ghec_v2022_11_28/models/group_0540.py | 175 +- .../ghec_v2022_11_28/models/group_0541.py | 217 +- .../ghec_v2022_11_28/models/group_0542.py | 93 +- .../ghec_v2022_11_28/models/group_0543.py | 72 +- .../ghec_v2022_11_28/models/group_0544.py | 100 +- .../ghec_v2022_11_28/models/group_0545.py | 187 +- .../ghec_v2022_11_28/models/group_0546.py | 238 +- .../ghec_v2022_11_28/models/group_0547.py | 125 +- .../ghec_v2022_11_28/models/group_0548.py | 60 +- .../ghec_v2022_11_28/models/group_0549.py | 103 +- .../ghec_v2022_11_28/models/group_0550.py | 124 +- .../ghec_v2022_11_28/models/group_0551.py | 219 +- .../ghec_v2022_11_28/models/group_0552.py | 208 +- .../ghec_v2022_11_28/models/group_0553.py | 77 +- .../ghec_v2022_11_28/models/group_0554.py | 110 +- .../ghec_v2022_11_28/models/group_0555.py | 75 +- .../ghec_v2022_11_28/models/group_0556.py | 183 +- .../ghec_v2022_11_28/models/group_0557.py | 236 +- .../ghec_v2022_11_28/models/group_0558.py | 125 +- .../ghec_v2022_11_28/models/group_0559.py | 60 +- .../ghec_v2022_11_28/models/group_0560.py | 101 +- .../ghec_v2022_11_28/models/group_0561.py | 126 +- .../ghec_v2022_11_28/models/group_0562.py | 217 +- .../ghec_v2022_11_28/models/group_0563.py | 208 +- .../ghec_v2022_11_28/models/group_0564.py | 77 +- .../ghec_v2022_11_28/models/group_0565.py | 108 +- .../ghec_v2022_11_28/models/group_0566.py | 75 +- .../ghec_v2022_11_28/models/group_0567.py | 184 +- .../ghec_v2022_11_28/models/group_0568.py | 237 +- .../ghec_v2022_11_28/models/group_0569.py | 125 +- .../ghec_v2022_11_28/models/group_0570.py | 58 +- .../ghec_v2022_11_28/models/group_0571.py | 102 +- .../ghec_v2022_11_28/models/group_0572.py | 125 +- .../ghec_v2022_11_28/models/group_0573.py | 122 +- .../ghec_v2022_11_28/models/group_0574.py | 201 +- .../ghec_v2022_11_28/models/group_0575.py | 212 +- .../ghec_v2022_11_28/models/group_0576.py | 109 +- .../ghec_v2022_11_28/models/group_0577.py | 73 +- .../ghec_v2022_11_28/models/group_0578.py | 114 +- .../ghec_v2022_11_28/models/group_0579.py | 265 +- .../ghec_v2022_11_28/models/group_0580.py | 209 +- .../ghec_v2022_11_28/models/group_0581.py | 116 +- .../ghec_v2022_11_28/models/group_0582.py | 13 +- .../ghec_v2022_11_28/models/group_0583.py | 163 +- .../ghec_v2022_11_28/models/group_0584.py | 396 +- .../ghec_v2022_11_28/models/group_0585.py | 480 +- .../ghec_v2022_11_28/models/group_0586.py | 537 +- .../ghec_v2022_11_28/models/group_0587.py | 467 +- .../ghec_v2022_11_28/models/group_0588.py | 403 +- .../ghec_v2022_11_28/models/group_0589.py | 141 +- .../ghec_v2022_11_28/models/group_0590.py | 804 +- .../ghec_v2022_11_28/models/group_0591.py | 491 +- .../ghec_v2022_11_28/models/group_0592.py | 140 +- .../ghec_v2022_11_28/models/group_0593.py | 387 +- .../ghec_v2022_11_28/models/group_0594.py | 461 +- .../ghec_v2022_11_28/models/group_0595.py | 1107 +- .../ghec_v2022_11_28/models/group_0596.py | 447 +- .../ghec_v2022_11_28/models/group_0597.py | 459 +- .../ghec_v2022_11_28/models/group_0598.py | 696 +- .../ghec_v2022_11_28/models/group_0599.py | 33 +- .../ghec_v2022_11_28/models/group_0600.py | 83 +- .../ghec_v2022_11_28/models/group_0601.py | 458 +- .../ghec_v2022_11_28/models/group_0602.py | 88 +- .../ghec_v2022_11_28/models/group_0603.py | 94 +- .../ghec_v2022_11_28/models/group_0604.py | 91 +- .../ghec_v2022_11_28/models/group_0605.py | 88 +- .../ghec_v2022_11_28/models/group_0606.py | 81 +- .../ghec_v2022_11_28/models/group_0607.py | 104 +- .../ghec_v2022_11_28/models/group_0608.py | 91 +- .../ghec_v2022_11_28/models/group_0609.py | 117 +- .../ghec_v2022_11_28/models/group_0610.py | 76 +- .../ghec_v2022_11_28/models/group_0611.py | 84 +- .../ghec_v2022_11_28/models/group_0612.py | 80 +- .../ghec_v2022_11_28/models/group_0613.py | 123 +- .../ghec_v2022_11_28/models/group_0614.py | 75 +- .../ghec_v2022_11_28/models/group_0615.py | 75 +- .../ghec_v2022_11_28/models/group_0616.py | 38 +- .../ghec_v2022_11_28/models/group_0617.py | 91 +- .../ghec_v2022_11_28/models/group_0618.py | 126 +- .../ghec_v2022_11_28/models/group_0619.py | 35 +- .../ghec_v2022_11_28/models/group_0620.py | 35 +- .../ghec_v2022_11_28/models/group_0621.py | 33 +- .../ghec_v2022_11_28/models/group_0622.py | 87 +- .../ghec_v2022_11_28/models/group_0623.py | 91 +- .../ghec_v2022_11_28/models/group_0624.py | 29 +- .../ghec_v2022_11_28/models/group_0625.py | 51 +- .../ghec_v2022_11_28/models/group_0626.py | 80 +- .../ghec_v2022_11_28/models/group_0627.py | 32 +- .../ghec_v2022_11_28/models/group_0628.py | 99 +- .../ghec_v2022_11_28/models/group_0629.py | 601 +- .../ghec_v2022_11_28/models/group_0630.py | 55 +- .../ghec_v2022_11_28/models/group_0631.py | 99 +- .../ghec_v2022_11_28/models/group_0632.py | 198 +- .../ghec_v2022_11_28/models/group_0633.py | 101 +- .../ghec_v2022_11_28/models/group_0634.py | 594 +- .../ghec_v2022_11_28/models/group_0635.py | 44 +- .../ghec_v2022_11_28/models/group_0636.py | 108 +- .../ghec_v2022_11_28/models/group_0637.py | 191 +- .../ghec_v2022_11_28/models/group_0638.py | 99 +- .../ghec_v2022_11_28/models/group_0639.py | 74 +- .../ghec_v2022_11_28/models/group_0640.py | 42 +- .../ghec_v2022_11_28/models/group_0641.py | 63 +- .../ghec_v2022_11_28/models/group_0642.py | 47 +- .../ghec_v2022_11_28/models/group_0643.py | 98 +- .../ghec_v2022_11_28/models/group_0644.py | 90 +- .../ghec_v2022_11_28/models/group_0645.py | 116 +- .../ghec_v2022_11_28/models/group_0646.py | 102 +- .../ghec_v2022_11_28/models/group_0647.py | 94 +- .../ghec_v2022_11_28/models/group_0648.py | 86 +- .../ghec_v2022_11_28/models/group_0649.py | 48 +- .../ghec_v2022_11_28/models/group_0650.py | 100 +- .../ghec_v2022_11_28/models/group_0651.py | 103 +- .../ghec_v2022_11_28/models/group_0652.py | 94 +- .../ghec_v2022_11_28/models/group_0653.py | 22 +- .../ghec_v2022_11_28/models/group_0654.py | 32 +- .../ghec_v2022_11_28/models/group_0655.py | 72 +- .../ghec_v2022_11_28/models/group_0656.py | 46 +- .../ghec_v2022_11_28/models/group_0657.py | 35 +- .../ghec_v2022_11_28/models/group_0658.py | 36 +- .../ghec_v2022_11_28/models/group_0659.py | 36 +- .../ghec_v2022_11_28/models/group_0660.py | 112 +- .../ghec_v2022_11_28/models/group_0661.py | 37 +- .../ghec_v2022_11_28/models/group_0662.py | 46 +- .../ghec_v2022_11_28/models/group_0663.py | 23 +- .../ghec_v2022_11_28/models/group_0664.py | 20 +- .../ghec_v2022_11_28/models/group_0665.py | 88 +- .../ghec_v2022_11_28/models/group_0666.py | 46 +- .../ghec_v2022_11_28/models/group_0667.py | 44 +- .../ghec_v2022_11_28/models/group_0668.py | 22 +- .../ghec_v2022_11_28/models/group_0669.py | 33 +- .../ghec_v2022_11_28/models/group_0670.py | 1170 +-- .../ghec_v2022_11_28/models/group_0671.py | 1201 +-- .../ghec_v2022_11_28/models/group_0672.py | 1193 +-- .../ghec_v2022_11_28/models/group_0673.py | 35 +- .../ghec_v2022_11_28/models/group_0674.py | 36 +- .../ghec_v2022_11_28/models/group_0675.py | 45 +- .../ghec_v2022_11_28/models/group_0676.py | 1157 +-- .../ghec_v2022_11_28/models/group_0677.py | 92 +- .../ghec_v2022_11_28/models/group_0678.py | 415 +- .../ghec_v2022_11_28/models/group_0679.py | 504 +- .../ghec_v2022_11_28/models/group_0680.py | 486 +- .../ghec_v2022_11_28/models/group_0681.py | 33 +- .../ghec_v2022_11_28/models/group_0682.py | 22 +- .../ghec_v2022_11_28/models/group_0683.py | 33 +- .../ghec_v2022_11_28/models/group_0684.py | 1132 ++- .../ghec_v2022_11_28/models/group_0685.py | 1366 +-- .../ghec_v2022_11_28/models/group_0686.py | 573 +- .../ghec_v2022_11_28/models/group_0687.py | 551 +- .../ghec_v2022_11_28/models/group_0688.py | 581 +- .../ghec_v2022_11_28/models/group_0689.py | 1075 +- .../ghec_v2022_11_28/models/group_0690.py | 1270 +-- .../ghec_v2022_11_28/models/group_0691.py | 1295 +-- .../ghec_v2022_11_28/models/group_0692.py | 1252 +-- .../ghec_v2022_11_28/models/group_0693.py | 708 +- .../ghec_v2022_11_28/models/group_0694.py | 432 +- .../ghec_v2022_11_28/models/group_0695.py | 649 +- .../ghec_v2022_11_28/models/group_0696.py | 841 +- .../ghec_v2022_11_28/models/group_0697.py | 534 +- .../ghec_v2022_11_28/models/group_0698.py | 599 +- .../ghec_v2022_11_28/models/group_0699.py | 631 +- .../ghec_v2022_11_28/models/group_0700.py | 579 +- .../ghec_v2022_11_28/models/group_0701.py | 1277 ++- .../ghec_v2022_11_28/models/group_0702.py | 1130 ++- .../ghec_v2022_11_28/models/group_0703.py | 1358 ++- .../ghec_v2022_11_28/models/group_0704.py | 1513 ++- .../ghec_v2022_11_28/models/group_0705.py | 1154 ++- .../ghec_v2022_11_28/models/group_0706.py | 1189 ++- .../ghec_v2022_11_28/models/group_0707.py | 1224 ++- .../ghec_v2022_11_28/models/group_0708.py | 1125 ++- .../ghec_v2022_11_28/models/group_0709.py | 395 +- .../ghec_v2022_11_28/models/group_0710.py | 80 +- .../ghec_v2022_11_28/models/group_0711.py | 224 +- .../ghec_v2022_11_28/models/group_0712.py | 646 +- .../ghec_v2022_11_28/models/group_0713.py | 33 +- .../ghec_v2022_11_28/models/group_0714.py | 109 +- .../ghec_v2022_11_28/models/group_0715.py | 232 +- .../ghec_v2022_11_28/models/group_0716.py | 32 +- .../ghec_v2022_11_28/models/group_0717.py | 25 +- .../ghec_v2022_11_28/models/group_0718.py | 75 +- .../ghec_v2022_11_28/models/group_0719.py | 171 +- .../ghec_v2022_11_28/models/group_0720.py | 55 +- .../ghec_v2022_11_28/models/group_0721.py | 82 +- .../ghec_v2022_11_28/models/group_0722.py | 28 +- .../ghec_v2022_11_28/models/group_0723.py | 27 +- .../ghec_v2022_11_28/models/group_0724.py | 27 +- .../ghec_v2022_11_28/models/group_0725.py | 47 +- .../ghec_v2022_11_28/models/group_0726.py | 26 +- .../ghec_v2022_11_28/models/group_0727.py | 26 +- .../ghec_v2022_11_28/models/group_0728.py | 57 +- .../ghec_v2022_11_28/models/group_0729.py | 95 +- .../ghec_v2022_11_28/models/group_0730.py | 60 +- .../ghec_v2022_11_28/models/group_0731.py | 129 +- .../ghec_v2022_11_28/models/group_0732.py | 130 +- .../ghec_v2022_11_28/models/group_0733.py | 180 +- .../ghec_v2022_11_28/models/group_0734.py | 114 +- .../ghec_v2022_11_28/models/group_0735.py | 28 +- .../ghec_v2022_11_28/models/group_0736.py | 35 +- .../ghec_v2022_11_28/models/group_0737.py | 124 +- .../ghec_v2022_11_28/models/group_0738.py | 65 +- .../ghec_v2022_11_28/models/group_0739.py | 183 +- .../ghec_v2022_11_28/models/group_0740.py | 133 +- .../ghec_v2022_11_28/models/group_0741.py | 369 +- .../ghec_v2022_11_28/models/group_0742.py | 127 +- .../ghec_v2022_11_28/models/group_0743.py | 25 +- .../ghec_v2022_11_28/models/group_0744.py | 30 +- .../ghec_v2022_11_28/models/group_0745.py | 92 +- .../ghec_v2022_11_28/models/group_0746.py | 35 +- .../ghec_v2022_11_28/models/group_0747.py | 96 +- .../ghec_v2022_11_28/models/group_0748.py | 149 +- .../ghec_v2022_11_28/models/group_0749.py | 299 +- .../ghec_v2022_11_28/models/group_0750.py | 16 +- .../ghec_v2022_11_28/models/group_0751.py | 44 +- .../ghec_v2022_11_28/models/group_0752.py | 30 +- .../ghec_v2022_11_28/models/group_0753.py | 30 +- .../ghec_v2022_11_28/models/group_0754.py | 53 +- .../ghec_v2022_11_28/models/group_0755.py | 33 +- .../ghec_v2022_11_28/models/group_0756.py | 155 +- .../ghec_v2022_11_28/models/group_0757.py | 36 +- .../ghec_v2022_11_28/models/group_0758.py | 44 +- .../ghec_v2022_11_28/models/group_0759.py | 44 +- .../ghec_v2022_11_28/models/group_0760.py | 222 +- .../ghec_v2022_11_28/models/group_0761.py | 61 +- .../ghec_v2022_11_28/models/group_0762.py | 70 +- .../ghec_v2022_11_28/models/group_0763.py | 53 +- .../ghec_v2022_11_28/models/group_0764.py | 52 +- .../ghec_v2022_11_28/models/group_0765.py | 33 +- .../ghec_v2022_11_28/models/group_0766.py | 238 +- .../ghec_v2022_11_28/models/group_0767.py | 233 +- .../ghec_v2022_11_28/models/group_0768.py | 346 +- .../ghec_v2022_11_28/models/group_0769.py | 347 +- .../ghec_v2022_11_28/models/group_0770.py | 245 +- .../ghec_v2022_11_28/models/group_0771.py | 58 +- .../ghec_v2022_11_28/models/group_0772.py | 55 +- .../ghec_v2022_11_28/models/group_0773.py | 102 +- .../ghec_v2022_11_28/models/group_0774.py | 280 +- .../ghec_v2022_11_28/models/group_0775.py | 277 +- .../ghec_v2022_11_28/models/group_0776.py | 265 +- .../ghec_v2022_11_28/models/group_0777.py | 367 +- .../ghec_v2022_11_28/models/group_0778.py | 268 +- .../ghec_v2022_11_28/models/group_0779.py | 77 +- .../ghec_v2022_11_28/models/group_0780.py | 83 +- .../ghec_v2022_11_28/models/group_0781.py | 493 +- .../ghec_v2022_11_28/models/group_0782.py | 492 +- .../ghec_v2022_11_28/models/group_0783.py | 510 +- .../ghec_v2022_11_28/models/group_0784.py | 130 +- .../ghec_v2022_11_28/models/group_0785.py | 76 +- .../ghec_v2022_11_28/models/group_0786.py | 62 +- .../ghec_v2022_11_28/models/group_0787.py | 100 +- .../ghec_v2022_11_28/models/group_0788.py | 98 +- .../ghec_v2022_11_28/models/group_0789.py | 488 +- .../ghec_v2022_11_28/models/group_0790.py | 482 +- .../ghec_v2022_11_28/models/group_0791.py | 486 +- .../ghec_v2022_11_28/models/group_0792.py | 41 +- .../ghec_v2022_11_28/models/group_0793.py | 56 +- .../ghec_v2022_11_28/models/group_0794.py | 29 +- .../ghec_v2022_11_28/models/group_0795.py | 22 +- .../ghec_v2022_11_28/models/group_0796.py | 27 +- .../ghec_v2022_11_28/models/group_0797.py | 14 +- .../ghec_v2022_11_28/models/group_0798.py | 43 +- .../ghec_v2022_11_28/models/group_0799.py | 37 +- .../ghec_v2022_11_28/models/group_0800.py | 30 +- .../ghec_v2022_11_28/models/group_0801.py | 56 +- .../ghec_v2022_11_28/models/group_0802.py | 20 +- .../ghec_v2022_11_28/models/group_0803.py | 29 +- .../ghec_v2022_11_28/models/group_0804.py | 15 +- .../ghec_v2022_11_28/models/group_0805.py | 17 +- .../ghec_v2022_11_28/models/group_0806.py | 44 +- .../ghec_v2022_11_28/models/group_0807.py | 40 +- .../ghec_v2022_11_28/models/group_0808.py | 33 +- .../ghec_v2022_11_28/models/group_0809.py | 22 +- .../ghec_v2022_11_28/models/group_0810.py | 16 +- .../ghec_v2022_11_28/models/group_0811.py | 20 +- .../ghec_v2022_11_28/models/group_0812.py | 18 +- .../ghec_v2022_11_28/models/group_0813.py | 50 +- .../ghec_v2022_11_28/models/group_0814.py | 30 +- .../ghec_v2022_11_28/models/group_0815.py | 27 +- .../ghec_v2022_11_28/models/group_0816.py | 21 +- .../ghec_v2022_11_28/models/group_0817.py | 25 +- .../ghec_v2022_11_28/models/group_0818.py | 38 +- .../ghec_v2022_11_28/models/group_0819.py | 29 +- .../ghec_v2022_11_28/models/group_0820.py | 41 +- .../ghec_v2022_11_28/models/group_0821.py | 45 +- .../ghec_v2022_11_28/models/group_0822.py | 20 +- .../ghec_v2022_11_28/models/group_0823.py | 22 +- .../ghec_v2022_11_28/models/group_0824.py | 24 +- .../ghec_v2022_11_28/models/group_0825.py | 27 +- .../ghec_v2022_11_28/models/group_0826.py | 26 +- .../ghec_v2022_11_28/models/group_0827.py | 34 +- .../ghec_v2022_11_28/models/group_0828.py | 28 +- .../ghec_v2022_11_28/models/group_0829.py | 44 +- .../ghec_v2022_11_28/models/group_0830.py | 125 +- .../ghec_v2022_11_28/models/group_0831.py | 34 +- .../ghec_v2022_11_28/models/group_0832.py | 22 +- .../ghec_v2022_11_28/models/group_0833.py | 13 +- .../ghec_v2022_11_28/models/group_0834.py | 21 +- .../ghec_v2022_11_28/models/group_0835.py | 46 +- .../ghec_v2022_11_28/models/group_0836.py | 43 +- .../ghec_v2022_11_28/models/group_0837.py | 28 +- .../ghec_v2022_11_28/models/group_0838.py | 18 +- .../ghec_v2022_11_28/models/group_0839.py | 125 +- .../ghec_v2022_11_28/models/group_0840.py | 33 +- .../ghec_v2022_11_28/models/group_0841.py | 20 +- .../ghec_v2022_11_28/models/group_0842.py | 14 +- .../ghec_v2022_11_28/models/group_0843.py | 24 +- .../ghec_v2022_11_28/models/group_0844.py | 48 +- .../ghec_v2022_11_28/models/group_0845.py | 39 +- .../ghec_v2022_11_28/models/group_0846.py | 45 +- .../ghec_v2022_11_28/models/group_0847.py | 31 +- .../ghec_v2022_11_28/models/group_0848.py | 15 +- .../ghec_v2022_11_28/models/group_0849.py | 15 +- .../ghec_v2022_11_28/models/group_0850.py | 40 +- .../ghec_v2022_11_28/models/group_0851.py | 25 +- .../ghec_v2022_11_28/models/group_0852.py | 27 +- .../ghec_v2022_11_28/models/group_0853.py | 16 +- .../ghec_v2022_11_28/models/group_0854.py | 14 +- .../ghec_v2022_11_28/models/group_0855.py | 36 +- .../ghec_v2022_11_28/models/group_0856.py | 32 +- .../ghec_v2022_11_28/models/group_0857.py | 16 +- .../ghec_v2022_11_28/models/group_0858.py | 13 +- .../ghec_v2022_11_28/models/group_0859.py | 34 +- .../ghec_v2022_11_28/models/group_0860.py | 22 +- .../ghec_v2022_11_28/models/group_0861.py | 26 +- .../ghec_v2022_11_28/models/group_0862.py | 15 +- .../ghec_v2022_11_28/models/group_0863.py | 13 +- .../ghec_v2022_11_28/models/group_0864.py | 81 +- .../ghec_v2022_11_28/models/group_0865.py | 62 +- .../ghec_v2022_11_28/models/group_0866.py | 67 +- .../ghec_v2022_11_28/models/group_0867.py | 21 +- .../ghec_v2022_11_28/models/group_0868.py | 22 +- .../ghec_v2022_11_28/models/group_0869.py | 27 +- .../ghec_v2022_11_28/models/group_0870.py | 16 +- .../ghec_v2022_11_28/models/group_0871.py | 27 +- .../ghec_v2022_11_28/models/group_0872.py | 36 +- .../ghec_v2022_11_28/models/group_0873.py | 29 +- .../ghec_v2022_11_28/models/group_0874.py | 49 +- .../ghec_v2022_11_28/models/group_0875.py | 28 +- .../ghec_v2022_11_28/models/group_0876.py | 50 +- .../ghec_v2022_11_28/models/group_0877.py | 48 +- .../ghec_v2022_11_28/models/group_0878.py | 25 +- .../ghec_v2022_11_28/models/group_0879.py | 16 +- .../ghec_v2022_11_28/models/group_0880.py | 15 +- .../ghec_v2022_11_28/models/group_0881.py | 32 +- .../ghec_v2022_11_28/models/group_0882.py | 16 +- .../ghec_v2022_11_28/models/group_0883.py | 18 +- .../ghec_v2022_11_28/models/group_0884.py | 59 +- .../ghec_v2022_11_28/models/group_0885.py | 20 +- .../ghec_v2022_11_28/models/group_0886.py | 27 +- .../ghec_v2022_11_28/models/group_0887.py | 19 +- .../ghec_v2022_11_28/models/group_0888.py | 37 +- .../ghec_v2022_11_28/models/group_0889.py | 27 +- .../ghec_v2022_11_28/models/group_0890.py | 30 +- .../ghec_v2022_11_28/models/group_0891.py | 21 +- .../ghec_v2022_11_28/models/group_0892.py | 52 +- .../ghec_v2022_11_28/models/group_0893.py | 48 +- .../ghec_v2022_11_28/models/group_0894.py | 24 +- .../ghec_v2022_11_28/models/group_0895.py | 17 +- .../ghec_v2022_11_28/models/group_0896.py | 43 +- .../ghec_v2022_11_28/models/group_0897.py | 36 +- .../ghec_v2022_11_28/models/group_0898.py | 124 +- .../ghec_v2022_11_28/models/group_0899.py | 85 +- .../ghec_v2022_11_28/models/group_0900.py | 105 +- .../ghec_v2022_11_28/models/group_0901.py | 39 +- .../ghec_v2022_11_28/models/group_0902.py | 32 +- .../ghec_v2022_11_28/models/group_0903.py | 15 +- .../ghec_v2022_11_28/models/group_0904.py | 19 +- .../ghec_v2022_11_28/models/group_0905.py | 13 +- .../ghec_v2022_11_28/models/group_0906.py | 33 +- .../ghec_v2022_11_28/models/group_0907.py | 31 +- .../ghec_v2022_11_28/models/group_0908.py | 21 +- .../ghec_v2022_11_28/models/group_0909.py | 14 +- .../ghec_v2022_11_28/models/group_0910.py | 15 +- .../ghec_v2022_11_28/models/group_0911.py | 21 +- .../ghec_v2022_11_28/models/group_0912.py | 44 +- .../ghec_v2022_11_28/models/group_0913.py | 24 +- .../ghec_v2022_11_28/models/group_0914.py | 122 +- .../ghec_v2022_11_28/models/group_0915.py | 85 +- .../ghec_v2022_11_28/models/group_0916.py | 89 +- .../ghec_v2022_11_28/models/group_0917.py | 41 +- .../ghec_v2022_11_28/models/group_0918.py | 33 +- .../ghec_v2022_11_28/models/group_0919.py | 19 +- .../ghec_v2022_11_28/models/group_0920.py | 34 +- .../ghec_v2022_11_28/models/group_0921.py | 30 +- .../ghec_v2022_11_28/models/group_0922.py | 16 +- .../ghec_v2022_11_28/models/group_0923.py | 24 +- .../ghec_v2022_11_28/models/group_0924.py | 19 +- .../ghec_v2022_11_28/models/group_0925.py | 30 +- .../ghec_v2022_11_28/models/group_0926.py | 17 +- .../ghec_v2022_11_28/models/group_0927.py | 19 +- .../ghec_v2022_11_28/models/group_0928.py | 11 +- .../ghec_v2022_11_28/models/group_0929.py | 25 +- .../ghec_v2022_11_28/models/group_0930.py | 29 +- .../ghec_v2022_11_28/models/group_0931.py | 13 +- .../ghec_v2022_11_28/models/group_0932.py | 16 +- .../ghec_v2022_11_28/models/group_0933.py | 18 +- .../ghec_v2022_11_28/models/group_0934.py | 231 +- .../ghec_v2022_11_28/models/group_0935.py | 17 +- .../ghec_v2022_11_28/models/group_0936.py | 31 +- .../ghec_v2022_11_28/models/group_0937.py | 33 +- .../ghec_v2022_11_28/models/group_0938.py | 15 +- .../ghec_v2022_11_28/models/group_0939.py | 15 +- .../ghec_v2022_11_28/models/group_0940.py | 21 +- .../ghec_v2022_11_28/models/group_0941.py | 29 +- .../ghec_v2022_11_28/models/group_0942.py | 27 +- .../ghec_v2022_11_28/models/group_0943.py | 17 +- .../ghec_v2022_11_28/models/group_0944.py | 18 +- .../ghec_v2022_11_28/models/group_0945.py | 31 +- .../ghec_v2022_11_28/models/group_0946.py | 17 +- .../ghec_v2022_11_28/models/group_0947.py | 21 +- .../ghec_v2022_11_28/models/group_0948.py | 15 +- .../ghec_v2022_11_28/models/group_0949.py | 21 +- .../ghec_v2022_11_28/models/group_0950.py | 257 +- .../ghec_v2022_11_28/models/group_0951.py | 19 +- .../ghec_v2022_11_28/models/group_0952.py | 19 +- .../ghec_v2022_11_28/models/group_0953.py | 24 +- .../ghec_v2022_11_28/models/group_0954.py | 12 +- .../ghec_v2022_11_28/models/group_0955.py | 16 +- .../ghec_v2022_11_28/models/group_0956.py | 19 +- .../ghec_v2022_11_28/models/group_0957.py | 42 +- .../ghec_v2022_11_28/models/group_0958.py | 43 +- .../ghec_v2022_11_28/models/group_0959.py | 16 +- .../ghec_v2022_11_28/models/group_0960.py | 25 +- .../ghec_v2022_11_28/models/group_0961.py | 221 +- .../ghec_v2022_11_28/models/group_0962.py | 98 +- .../ghec_v2022_11_28/models/group_0963.py | 53 +- .../ghec_v2022_11_28/models/group_0964.py | 21 +- .../ghec_v2022_11_28/models/group_0965.py | 28 +- .../ghec_v2022_11_28/models/group_0966.py | 27 +- .../ghec_v2022_11_28/models/group_0967.py | 20 +- .../ghec_v2022_11_28/models/group_0968.py | 17 +- .../ghec_v2022_11_28/models/group_0969.py | 27 +- .../ghec_v2022_11_28/models/group_0970.py | 15 +- .../ghec_v2022_11_28/models/group_0971.py | 19 +- .../ghec_v2022_11_28/models/group_0972.py | 21 +- .../ghec_v2022_11_28/models/group_0973.py | 43 +- .../ghec_v2022_11_28/models/group_0974.py | 41 +- .../ghec_v2022_11_28/models/group_0975.py | 17 +- .../ghec_v2022_11_28/models/group_0976.py | 52 +- .../ghec_v2022_11_28/models/group_0977.py | 108 +- .../ghec_v2022_11_28/models/group_0978.py | 123 +- .../ghec_v2022_11_28/models/group_0979.py | 64 +- .../ghec_v2022_11_28/models/group_0980.py | 241 +- .../ghec_v2022_11_28/models/group_0981.py | 117 +- .../ghec_v2022_11_28/models/group_0982.py | 81 +- .../ghec_v2022_11_28/models/group_0983.py | 22 +- .../ghec_v2022_11_28/models/group_0984.py | 35 +- .../ghec_v2022_11_28/models/group_0985.py | 22 +- .../ghec_v2022_11_28/models/group_0986.py | 33 +- .../ghec_v2022_11_28/models/group_0987.py | 36 +- .../ghec_v2022_11_28/models/group_0988.py | 38 +- .../ghec_v2022_11_28/models/group_0989.py | 44 +- .../ghec_v2022_11_28/models/group_0990.py | 57 +- .../ghec_v2022_11_28/models/group_0991.py | 17 +- .../ghec_v2022_11_28/models/group_0992.py | 58 +- .../ghec_v2022_11_28/models/group_0993.py | 31 +- .../ghec_v2022_11_28/models/group_0994.py | 17 +- .../ghec_v2022_11_28/models/group_0995.py | 32 +- .../ghec_v2022_11_28/models/group_0996.py | 123 +- .../ghec_v2022_11_28/models/group_0997.py | 61 +- .../ghec_v2022_11_28/models/group_0998.py | 62 +- .../ghec_v2022_11_28/models/group_0999.py | 107 +- .../ghec_v2022_11_28/models/group_1000.py | 64 +- .../ghec_v2022_11_28/models/group_1001.py | 67 +- .../ghec_v2022_11_28/models/group_1002.py | 15 +- .../ghec_v2022_11_28/models/group_1003.py | 71 +- .../ghec_v2022_11_28/models/group_1004.py | 62 +- .../ghec_v2022_11_28/models/group_1005.py | 30 +- .../ghec_v2022_11_28/models/group_1006.py | 57 +- .../ghec_v2022_11_28/models/group_1007.py | 31 +- .../ghec_v2022_11_28/models/group_1008.py | 35 +- .../ghec_v2022_11_28/models/group_1009.py | 61 +- .../ghec_v2022_11_28/models/group_1010.py | 17 +- .../ghec_v2022_11_28/models/group_1011.py | 52 +- .../ghec_v2022_11_28/models/group_1012.py | 41 +- .../ghec_v2022_11_28/models/group_1013.py | 55 +- .../ghec_v2022_11_28/models/group_1014.py | 48 +- .../ghec_v2022_11_28/models/group_1015.py | 36 +- .../ghec_v2022_11_28/models/group_1016.py | 31 +- .../ghec_v2022_11_28/models/group_1017.py | 20 +- .../ghec_v2022_11_28/models/group_1018.py | 14 +- .../ghec_v2022_11_28/models/group_1019.py | 19 +- .../ghec_v2022_11_28/models/group_1020.py | 23 +- .../ghec_v2022_11_28/models/group_1021.py | 18 +- .../ghec_v2022_11_28/models/group_1022.py | 63 +- .../ghec_v2022_11_28/models/group_1023.py | 57 +- .../ghec_v2022_11_28/models/group_1024.py | 80 +- .../ghec_v2022_11_28/models/group_1025.py | 32 +- .../ghec_v2022_11_28/models/group_1026.py | 17 +- .../ghec_v2022_11_28/models/group_1027.py | 49 +- .../ghec_v2022_11_28/models/group_1028.py | 61 +- .../ghec_v2022_11_28/models/group_1029.py | 51 +- .../ghec_v2022_11_28/models/group_1030.py | 42 +- .../ghec_v2022_11_28/models/group_1031.py | 39 +- .../ghec_v2022_11_28/models/group_1032.py | 52 +- .../ghec_v2022_11_28/models/group_1033.py | 47 +- .../ghec_v2022_11_28/models/group_1034.py | 20 +- .../ghec_v2022_11_28/models/group_1035.py | 30 +- .../ghec_v2022_11_28/models/group_1036.py | 17 +- .../ghec_v2022_11_28/models/group_1037.py | 21 +- .../ghec_v2022_11_28/models/group_1038.py | 54 +- .../ghec_v2022_11_28/models/group_1039.py | 11 +- .../ghec_v2022_11_28/models/group_1040.py | 19 +- .../ghec_v2022_11_28/models/group_1041.py | 53 +- .../ghec_v2022_11_28/models/group_1042.py | 15 +- .../ghec_v2022_11_28/models/group_1043.py | 72 +- .../ghec_v2022_11_28/models/group_1044.py | 13 +- .../ghec_v2022_11_28/models/group_1045.py | 16 +- .../ghec_v2022_11_28/models/group_1046.py | 46 +- .../ghec_v2022_11_28/models/group_1047.py | 55 +- .../ghec_v2022_11_28/models/group_1048.py | 51 +- .../ghec_v2022_11_28/models/group_1049.py | 54 +- .../ghec_v2022_11_28/models/group_1050.py | 25 +- .../ghec_v2022_11_28/models/group_1051.py | 31 +- .../ghec_v2022_11_28/models/group_1052.py | 29 +- .../ghec_v2022_11_28/models/group_1053.py | 16 +- .../ghec_v2022_11_28/models/group_1054.py | 24 +- .../ghec_v2022_11_28/models/group_1055.py | 25 +- .../ghec_v2022_11_28/models/group_1056.py | 19 +- .../ghec_v2022_11_28/models/group_1057.py | 42 +- .../ghec_v2022_11_28/models/group_1058.py | 26 +- .../ghec_v2022_11_28/models/group_1059.py | 28 +- .../ghec_v2022_11_28/models/group_1060.py | 53 +- .../ghec_v2022_11_28/models/group_1061.py | 16 +- .../ghec_v2022_11_28/models/group_1062.py | 23 +- .../ghec_v2022_11_28/models/group_1063.py | 46 +- .../ghec_v2022_11_28/models/group_1064.py | 33 +- .../ghec_v2022_11_28/models/group_1065.py | 56 +- .../ghec_v2022_11_28/models/group_1066.py | 46 +- .../ghec_v2022_11_28/models/group_1067.py | 34 +- .../ghec_v2022_11_28/models/group_1068.py | 31 +- .../ghec_v2022_11_28/models/group_1069.py | 22 +- .../ghec_v2022_11_28/models/group_1070.py | 21 +- .../ghec_v2022_11_28/models/group_1071.py | 37 +- .../ghec_v2022_11_28/models/group_1072.py | 17 +- .../ghec_v2022_11_28/models/group_1073.py | 21 +- .../ghec_v2022_11_28/models/group_1074.py | 27 +- .../ghec_v2022_11_28/models/group_1075.py | 40 +- .../ghec_v2022_11_28/models/group_1076.py | 21 +- .../ghec_v2022_11_28/models/group_1077.py | 26 +- .../ghec_v2022_11_28/models/group_1078.py | 25 +- .../ghec_v2022_11_28/models/group_1079.py | 47 +- .../ghec_v2022_11_28/models/group_1080.py | 54 +- .../ghec_v2022_11_28/models/group_1081.py | 20 +- .../ghec_v2022_11_28/models/group_1082.py | 38 +- .../ghec_v2022_11_28/models/group_1083.py | 44 +- .../ghec_v2022_11_28/models/group_1084.py | 45 +- .../ghec_v2022_11_28/models/group_1085.py | 35 +- .../ghec_v2022_11_28/models/group_1086.py | 35 +- .../ghec_v2022_11_28/models/group_1087.py | 22 +- .../ghec_v2022_11_28/models/group_1088.py | 52 +- .../ghec_v2022_11_28/models/group_1089.py | 22 +- .../ghec_v2022_11_28/models/group_1090.py | 34 +- .../ghec_v2022_11_28/models/group_1091.py | 19 +- .../ghec_v2022_11_28/models/group_1092.py | 14 +- .../ghec_v2022_11_28/models/group_1093.py | 19 +- .../ghec_v2022_11_28/models/group_1094.py | 44 +- .../ghec_v2022_11_28/models/group_1095.py | 17 +- .../ghec_v2022_11_28/models/group_1096.py | 30 +- .../ghec_v2022_11_28/models/group_1097.py | 33 +- .../ghec_v2022_11_28/models/group_1098.py | 48 +- .../ghec_v2022_11_28/models/group_1099.py | 97 +- .../ghec_v2022_11_28/models/group_1100.py | 81 +- .../ghec_v2022_11_28/models/group_1101.py | 28 +- .../ghec_v2022_11_28/models/group_1102.py | 26 +- .../ghec_v2022_11_28/models/group_1103.py | 18 +- .../ghec_v2022_11_28/models/group_1104.py | 19 +- .../ghec_v2022_11_28/models/group_1105.py | 17 +- .../ghec_v2022_11_28/models/group_1106.py | 20 +- .../ghec_v2022_11_28/models/group_1107.py | 51 +- .../ghec_v2022_11_28/models/group_1108.py | 56 +- .../ghec_v2022_11_28/models/group_1109.py | 55 +- .../ghec_v2022_11_28/models/group_1110.py | 73 +- .../ghec_v2022_11_28/models/group_1111.py | 31 +- .../ghec_v2022_11_28/models/group_1112.py | 16 +- .../ghec_v2022_11_28/models/group_1113.py | 39 +- .../ghec_v2022_11_28/models/group_1114.py | 17 +- .../ghec_v2022_11_28/models/group_1115.py | 26 +- .../ghec_v2022_11_28/models/group_1116.py | 44 +- .../ghec_v2022_11_28/models/group_1117.py | 14 +- .../ghec_v2022_11_28/models/group_1118.py | 78 +- .../ghec_v2022_11_28/models/group_1119.py | 78 +- .../ghec_v2022_11_28/models/group_1120.py | 25 +- .../ghec_v2022_11_28/models/group_1121.py | 24 +- .../ghec_v2022_11_28/models/group_1122.py | 35 +- .../ghec_v2022_11_28/models/group_1123.py | 35 +- .../ghec_v2022_11_28/models/group_1124.py | 15 +- .../ghec_v2022_11_28/models/group_1125.py | 54 +- .../ghec_v2022_11_28/models/group_1126.py | 51 +- .../ghec_v2022_11_28/models/group_1127.py | 69 +- .../ghec_v2022_11_28/models/group_1128.py | 57 +- .../ghec_v2022_11_28/models/group_1129.py | 73 +- .../ghec_v2022_11_28/models/group_1130.py | 34 +- .../ghec_v2022_11_28/models/group_1131.py | 22 +- .../ghec_v2022_11_28/models/group_1132.py | 22 +- .../ghec_v2022_11_28/models/group_1133.py | 17 +- .../ghec_v2022_11_28/models/group_1134.py | 14 +- .../ghec_v2022_11_28/models/group_1135.py | 26 +- .../ghec_v2022_11_28/models/group_1136.py | 25 +- .../ghec_v2022_11_28/models/group_1137.py | 15 +- .../ghec_v2022_11_28/models/group_1138.py | 20 +- .../ghec_v2022_11_28/models/group_1139.py | 17 +- .../ghec_v2022_11_28/models/group_1140.py | 19 +- .../ghec_v2022_11_28/models/group_1141.py | 34 +- .../ghec_v2022_11_28/models/group_1142.py | 35 +- .../ghec_v2022_11_28/models/group_1143.py | 55 +- .../ghec_v2022_11_28/models/group_1144.py | 54 +- .../ghec_v2022_11_28/models/group_1145.py | 107 +- .../ghec_v2022_11_28/models/group_1146.py | 40 +- .../ghec_v2022_11_28/models/group_1147.py | 28 +- .../ghec_v2022_11_28/models/group_1148.py | 23 +- .../ghec_v2022_11_28/models/group_1149.py | 29 + .../ghec_v2022_11_28/models/group_1150.py | 38 + .../ghec_v2022_11_28/models/group_1151.py | 30 + .../ghec_v2022_11_28/models/group_1152.py | 32 + .../ghec_v2022_11_28/models/group_1153.py | 29 + .../ghec_v2022_11_28/models/group_1154.py | 33 + .../ghec_v2022_11_28/models/group_1155.py | 38 + .../ghec_v2022_11_28/models/group_1156.py | 30 + .../ghec_v2022_11_28/models/group_1157.py | 30 + .../ghec_v2022_11_28/models/group_1158.py | 33 + .../ghec_v2022_11_28/models/group_1159.py | 21 + .../ghec_v2022_11_28/models/group_1160.py | 33 + .../ghec_v2022_11_28/models/group_1161.py | 29 + .../ghec_v2022_11_28/models/group_1162.py | 59 + .../ghec_v2022_11_28/models/group_1163.py | 32 + .../ghec_v2022_11_28/models/group_1164.py | 110 + .../ghec_v2022_11_28/models/group_1165.py | 34 + .../ghec_v2022_11_28/models/group_1166.py | 34 + .../ghec_v2022_11_28/models/group_1167.py | 33 + .../ghec_v2022_11_28/models/group_1168.py | 183 + .../ghec_v2022_11_28/rest/__init__.py | 7 + .../ghec_v2022_11_28/rest/code_security.py | 953 ++ .../versions/ghec_v2022_11_28/rest/copilot.py | 77 + .../ghec_v2022_11_28/rest/enterprise_admin.py | 2 - .../versions/ghec_v2022_11_28/rest/orgs.py | 97 +- .../versions/ghec_v2022_11_28/rest/repos.py | 194 + .../versions/ghec_v2022_11_28/rest/users.py | 129 + .../ghec_v2022_11_28/types/__init__.py | 8916 +++++++++-------- .../ghec_v2022_11_28/types/group_0047.py | 56 +- .../ghec_v2022_11_28/types/group_0048.py | 44 +- .../ghec_v2022_11_28/types/group_0049.py | 100 +- .../ghec_v2022_11_28/types/group_0050.py | 88 +- .../ghec_v2022_11_28/types/group_0051.py | 45 +- .../ghec_v2022_11_28/types/group_0052.py | 33 +- .../ghec_v2022_11_28/types/group_0053.py | 80 +- .../ghec_v2022_11_28/types/group_0054.py | 60 +- .../ghec_v2022_11_28/types/group_0055.py | 38 +- .../ghec_v2022_11_28/types/group_0056.py | 43 +- .../ghec_v2022_11_28/types/group_0057.py | 61 +- .../ghec_v2022_11_28/types/group_0058.py | 48 +- .../ghec_v2022_11_28/types/group_0059.py | 39 +- .../ghec_v2022_11_28/types/group_0060.py | 36 +- .../ghec_v2022_11_28/types/group_0061.py | 32 +- .../ghec_v2022_11_28/types/group_0062.py | 25 +- .../ghec_v2022_11_28/types/group_0063.py | 100 +- .../ghec_v2022_11_28/types/group_0064.py | 47 +- .../ghec_v2022_11_28/types/group_0065.py | 84 +- .../ghec_v2022_11_28/types/group_0066.py | 123 +- .../ghec_v2022_11_28/types/group_0067.py | 58 +- .../ghec_v2022_11_28/types/group_0068.py | 95 +- .../ghec_v2022_11_28/types/group_0069.py | 142 +- .../ghec_v2022_11_28/types/group_0070.py | 54 +- .../ghec_v2022_11_28/types/group_0071.py | 60 +- .../ghec_v2022_11_28/types/group_0072.py | 113 +- .../ghec_v2022_11_28/types/group_0073.py | 43 +- .../ghec_v2022_11_28/types/group_0074.py | 46 +- .../ghec_v2022_11_28/types/group_0075.py | 28 +- .../ghec_v2022_11_28/types/group_0076.py | 47 +- .../ghec_v2022_11_28/types/group_0077.py | 67 +- .../ghec_v2022_11_28/types/group_0078.py | 71 +- .../ghec_v2022_11_28/types/group_0079.py | 151 +- .../ghec_v2022_11_28/types/group_0080.py | 63 +- .../ghec_v2022_11_28/types/group_0081.py | 76 +- .../ghec_v2022_11_28/types/group_0082.py | 140 +- .../ghec_v2022_11_28/types/group_0083.py | 93 +- .../ghec_v2022_11_28/types/group_0084.py | 21 +- .../ghec_v2022_11_28/types/group_0085.py | 23 +- .../ghec_v2022_11_28/types/group_0086.py | 87 +- .../ghec_v2022_11_28/types/group_0087.py | 18 +- .../ghec_v2022_11_28/types/group_0088.py | 24 +- .../ghec_v2022_11_28/types/group_0089.py | 93 +- .../ghec_v2022_11_28/types/group_0090.py | 35 +- .../ghec_v2022_11_28/types/group_0091.py | 37 +- .../ghec_v2022_11_28/types/group_0092.py | 33 +- .../ghec_v2022_11_28/types/group_0093.py | 50 +- .../ghec_v2022_11_28/types/group_0094.py | 137 +- .../ghec_v2022_11_28/types/group_0095.py | 32 +- .../ghec_v2022_11_28/types/group_0096.py | 41 +- .../ghec_v2022_11_28/types/group_0097.py | 28 +- .../ghec_v2022_11_28/types/group_0098.py | 18 +- .../ghec_v2022_11_28/types/group_0099.py | 30 +- .../ghec_v2022_11_28/types/group_0100.py | 38 +- .../ghec_v2022_11_28/types/group_0101.py | 37 +- .../ghec_v2022_11_28/types/group_0102.py | 53 +- .../ghec_v2022_11_28/types/group_0103.py | 25 +- .../ghec_v2022_11_28/types/group_0104.py | 50 +- .../ghec_v2022_11_28/types/group_0105.py | 15 +- .../ghec_v2022_11_28/types/group_0106.py | 38 +- .../ghec_v2022_11_28/types/group_0107.py | 35 +- .../ghec_v2022_11_28/types/group_0108.py | 40 +- .../ghec_v2022_11_28/types/group_0109.py | 32 +- .../ghec_v2022_11_28/types/group_0110.py | 38 +- .../ghec_v2022_11_28/types/group_0111.py | 48 +- .../ghec_v2022_11_28/types/group_0112.py | 66 +- .../ghec_v2022_11_28/types/group_0113.py | 68 +- .../ghec_v2022_11_28/types/group_0114.py | 49 +- .../ghec_v2022_11_28/types/group_0115.py | 56 +- .../ghec_v2022_11_28/types/group_0116.py | 66 +- .../ghec_v2022_11_28/types/group_0117.py | 61 +- .../ghec_v2022_11_28/types/group_0118.py | 30 +- .../ghec_v2022_11_28/types/group_0119.py | 150 +- .../ghec_v2022_11_28/types/group_0120.py | 19 +- .../ghec_v2022_11_28/types/group_0121.py | 18 +- .../ghec_v2022_11_28/types/group_0122.py | 19 +- .../ghec_v2022_11_28/types/group_0123.py | 151 +- .../ghec_v2022_11_28/types/group_0124.py | 19 +- .../ghec_v2022_11_28/types/group_0125.py | 16 +- .../ghec_v2022_11_28/types/group_0126.py | 9 +- .../ghec_v2022_11_28/types/group_0127.py | 14 +- .../ghec_v2022_11_28/types/group_0128.py | 26 +- .../ghec_v2022_11_28/types/group_0129.py | 20 +- .../ghec_v2022_11_28/types/group_0130.py | 18 +- .../ghec_v2022_11_28/types/group_0131.py | 14 +- .../ghec_v2022_11_28/types/group_0132.py | 88 +- .../ghec_v2022_11_28/types/group_0133.py | 20 +- .../ghec_v2022_11_28/types/group_0134.py | 19 +- .../ghec_v2022_11_28/types/group_0135.py | 40 +- .../ghec_v2022_11_28/types/group_0136.py | 88 +- .../ghec_v2022_11_28/types/group_0137.py | 18 +- .../ghec_v2022_11_28/types/group_0138.py | 18 +- .../ghec_v2022_11_28/types/group_0139.py | 41 +- .../ghec_v2022_11_28/types/group_0140.py | 16 +- .../ghec_v2022_11_28/types/group_0141.py | 24 +- .../ghec_v2022_11_28/types/group_0142.py | 15 +- .../ghec_v2022_11_28/types/group_0143.py | 18 +- .../ghec_v2022_11_28/types/group_0144.py | 15 +- .../ghec_v2022_11_28/types/group_0145.py | 27 +- .../ghec_v2022_11_28/types/group_0146.py | 14 +- .../ghec_v2022_11_28/types/group_0147.py | 6 +- .../ghec_v2022_11_28/types/group_0148.py | 14 +- .../ghec_v2022_11_28/types/group_0149.py | 6 +- .../ghec_v2022_11_28/types/group_0150.py | 14 +- .../ghec_v2022_11_28/types/group_0151.py | 6 +- .../ghec_v2022_11_28/types/group_0152.py | 15 +- .../ghec_v2022_11_28/types/group_0153.py | 18 +- .../ghec_v2022_11_28/types/group_0154.py | 25 +- .../ghec_v2022_11_28/types/group_0155.py | 19 +- .../ghec_v2022_11_28/types/group_0156.py | 27 +- .../ghec_v2022_11_28/types/group_0157.py | 25 +- .../ghec_v2022_11_28/types/group_0158.py | 119 +- .../ghec_v2022_11_28/types/group_0159.py | 27 +- .../ghec_v2022_11_28/types/group_0160.py | 53 +- .../ghec_v2022_11_28/types/group_0161.py | 42 +- .../ghec_v2022_11_28/types/group_0162.py | 206 +- .../ghec_v2022_11_28/types/group_0163.py | 37 +- .../ghec_v2022_11_28/types/group_0164.py | 130 +- .../ghec_v2022_11_28/types/group_0165.py | 51 +- .../ghec_v2022_11_28/types/group_0166.py | 143 +- .../ghec_v2022_11_28/types/group_0167.py | 37 +- .../ghec_v2022_11_28/types/group_0168.py | 108 +- .../ghec_v2022_11_28/types/group_0169.py | 50 +- .../ghec_v2022_11_28/types/group_0170.py | 123 +- .../ghec_v2022_11_28/types/group_0171.py | 27 +- .../ghec_v2022_11_28/types/group_0172.py | 19 +- .../ghec_v2022_11_28/types/group_0173.py | 43 +- .../ghec_v2022_11_28/types/group_0174.py | 122 +- .../ghec_v2022_11_28/types/group_0175.py | 34 +- .../ghec_v2022_11_28/types/group_0176.py | 30 +- .../ghec_v2022_11_28/types/group_0177.py | 43 +- .../ghec_v2022_11_28/types/group_0178.py | 34 +- .../ghec_v2022_11_28/types/group_0179.py | 67 +- .../ghec_v2022_11_28/types/group_0180.py | 22 +- .../ghec_v2022_11_28/types/group_0181.py | 40 +- .../ghec_v2022_11_28/types/group_0182.py | 33 +- .../ghec_v2022_11_28/types/group_0183.py | 65 +- .../ghec_v2022_11_28/types/group_0184.py | 16 +- .../ghec_v2022_11_28/types/group_0185.py | 52 +- .../ghec_v2022_11_28/types/group_0186.py | 42 +- .../ghec_v2022_11_28/types/group_0187.py | 70 +- .../ghec_v2022_11_28/types/group_0188.py | 36 +- .../ghec_v2022_11_28/types/group_0189.py | 51 +- .../ghec_v2022_11_28/types/group_0190.py | 47 +- .../ghec_v2022_11_28/types/group_0191.py | 84 +- .../ghec_v2022_11_28/types/group_0192.py | 51 +- .../ghec_v2022_11_28/types/group_0193.py | 84 +- .../ghec_v2022_11_28/types/group_0194.py | 46 +- .../ghec_v2022_11_28/types/group_0195.py | 58 +- .../ghec_v2022_11_28/types/group_0196.py | 46 +- .../ghec_v2022_11_28/types/group_0197.py | 83 +- .../ghec_v2022_11_28/types/group_0198.py | 57 +- .../ghec_v2022_11_28/types/group_0199.py | 51 +- .../ghec_v2022_11_28/types/group_0200.py | 124 +- .../ghec_v2022_11_28/types/group_0201.py | 133 +- .../ghec_v2022_11_28/types/group_0202.py | 39 +- .../ghec_v2022_11_28/types/group_0203.py | 33 +- .../ghec_v2022_11_28/types/group_0204.py | 126 +- .../ghec_v2022_11_28/types/group_0205.py | 143 +- .../ghec_v2022_11_28/types/group_0206.py | 45 +- .../ghec_v2022_11_28/types/group_0207.py | 31 +- .../ghec_v2022_11_28/types/group_0208.py | 37 +- .../ghec_v2022_11_28/types/group_0209.py | 138 +- .../ghec_v2022_11_28/types/group_0210.py | 69 +- .../ghec_v2022_11_28/types/group_0211.py | 39 +- .../ghec_v2022_11_28/types/group_0212.py | 50 +- .../ghec_v2022_11_28/types/group_0213.py | 158 +- .../ghec_v2022_11_28/types/group_0214.py | 36 +- .../ghec_v2022_11_28/types/group_0215.py | 75 +- .../ghec_v2022_11_28/types/group_0216.py | 53 +- .../ghec_v2022_11_28/types/group_0217.py | 81 +- .../ghec_v2022_11_28/types/group_0218.py | 74 +- .../ghec_v2022_11_28/types/group_0219.py | 75 +- .../ghec_v2022_11_28/types/group_0220.py | 37 +- .../ghec_v2022_11_28/types/group_0221.py | 41 +- .../ghec_v2022_11_28/types/group_0222.py | 69 +- .../ghec_v2022_11_28/types/group_0223.py | 29 +- .../ghec_v2022_11_28/types/group_0224.py | 45 +- .../ghec_v2022_11_28/types/group_0225.py | 31 +- .../ghec_v2022_11_28/types/group_0226.py | 38 +- .../ghec_v2022_11_28/types/group_0227.py | 24 +- .../ghec_v2022_11_28/types/group_0228.py | 52 +- .../ghec_v2022_11_28/types/group_0229.py | 36 +- .../ghec_v2022_11_28/types/group_0230.py | 36 +- .../ghec_v2022_11_28/types/group_0231.py | 21 +- .../ghec_v2022_11_28/types/group_0232.py | 39 +- .../ghec_v2022_11_28/types/group_0233.py | 46 +- .../ghec_v2022_11_28/types/group_0234.py | 15 +- .../ghec_v2022_11_28/types/group_0235.py | 26 +- .../ghec_v2022_11_28/types/group_0236.py | 61 +- .../ghec_v2022_11_28/types/group_0237.py | 58 +- .../ghec_v2022_11_28/types/group_0238.py | 22 +- .../ghec_v2022_11_28/types/group_0239.py | 26 +- .../ghec_v2022_11_28/types/group_0240.py | 63 +- .../ghec_v2022_11_28/types/group_0241.py | 70 +- .../ghec_v2022_11_28/types/group_0242.py | 30 +- .../ghec_v2022_11_28/types/group_0243.py | 18 +- .../ghec_v2022_11_28/types/group_0244.py | 49 +- .../ghec_v2022_11_28/types/group_0245.py | 79 +- .../ghec_v2022_11_28/types/group_0246.py | 53 +- .../ghec_v2022_11_28/types/group_0247.py | 36 +- .../ghec_v2022_11_28/types/group_0248.py | 69 +- .../ghec_v2022_11_28/types/group_0249.py | 48 +- .../ghec_v2022_11_28/types/group_0250.py | 58 +- .../ghec_v2022_11_28/types/group_0251.py | 52 +- .../ghec_v2022_11_28/types/group_0252.py | 50 +- .../ghec_v2022_11_28/types/group_0253.py | 113 +- .../ghec_v2022_11_28/types/group_0254.py | 60 +- .../ghec_v2022_11_28/types/group_0255.py | 60 +- .../ghec_v2022_11_28/types/group_0256.py | 37 +- .../ghec_v2022_11_28/types/group_0257.py | 115 +- .../ghec_v2022_11_28/types/group_0258.py | 82 +- .../ghec_v2022_11_28/types/group_0259.py | 41 +- .../ghec_v2022_11_28/types/group_0260.py | 21 +- .../ghec_v2022_11_28/types/group_0261.py | 42 +- .../ghec_v2022_11_28/types/group_0262.py | 82 +- .../ghec_v2022_11_28/types/group_0263.py | 36 +- .../ghec_v2022_11_28/types/group_0264.py | 20 +- .../ghec_v2022_11_28/types/group_0265.py | 65 +- .../ghec_v2022_11_28/types/group_0266.py | 60 +- .../ghec_v2022_11_28/types/group_0267.py | 41 +- .../ghec_v2022_11_28/types/group_0268.py | 17 +- .../ghec_v2022_11_28/types/group_0269.py | 63 +- .../ghec_v2022_11_28/types/group_0270.py | 19 +- .../ghec_v2022_11_28/types/group_0271.py | 36 +- .../ghec_v2022_11_28/types/group_0272.py | 16 +- .../ghec_v2022_11_28/types/group_0273.py | 20 +- .../ghec_v2022_11_28/types/group_0274.py | 75 +- .../ghec_v2022_11_28/types/group_0275.py | 36 +- .../ghec_v2022_11_28/types/group_0276.py | 38 +- .../ghec_v2022_11_28/types/group_0277.py | 33 +- .../ghec_v2022_11_28/types/group_0278.py | 78 +- .../ghec_v2022_11_28/types/group_0279.py | 39 +- .../ghec_v2022_11_28/types/group_0280.py | 78 +- .../ghec_v2022_11_28/types/group_0281.py | 34 +- .../ghec_v2022_11_28/types/group_0282.py | 17 +- .../ghec_v2022_11_28/types/group_0283.py | 115 +- .../ghec_v2022_11_28/types/group_0284.py | 74 +- .../ghec_v2022_11_28/types/group_0285.py | 35 +- .../ghec_v2022_11_28/types/group_0286.py | 27 +- .../ghec_v2022_11_28/types/group_0287.py | 106 +- .../ghec_v2022_11_28/types/group_0288.py | 21 +- .../ghec_v2022_11_28/types/group_0289.py | 21 +- .../ghec_v2022_11_28/types/group_0290.py | 27 +- .../ghec_v2022_11_28/types/group_0291.py | 20 +- .../ghec_v2022_11_28/types/group_0292.py | 26 +- .../ghec_v2022_11_28/types/group_0293.py | 25 +- .../ghec_v2022_11_28/types/group_0294.py | 22 +- .../ghec_v2022_11_28/types/group_0295.py | 29 +- .../ghec_v2022_11_28/types/group_0296.py | 29 +- .../ghec_v2022_11_28/types/group_0297.py | 28 +- .../ghec_v2022_11_28/types/group_0298.py | 30 +- .../ghec_v2022_11_28/types/group_0299.py | 41 +- .../ghec_v2022_11_28/types/group_0300.py | 57 +- .../ghec_v2022_11_28/types/group_0301.py | 46 +- .../ghec_v2022_11_28/types/group_0302.py | 39 +- .../ghec_v2022_11_28/types/group_0303.py | 79 +- .../ghec_v2022_11_28/types/group_0304.py | 56 +- .../ghec_v2022_11_28/types/group_0305.py | 96 +- .../ghec_v2022_11_28/types/group_0306.py | 27 +- .../ghec_v2022_11_28/types/group_0307.py | 86 +- .../ghec_v2022_11_28/types/group_0308.py | 65 +- .../ghec_v2022_11_28/types/group_0309.py | 104 +- .../ghec_v2022_11_28/types/group_0310.py | 23 +- .../ghec_v2022_11_28/types/group_0311.py | 45 +- .../ghec_v2022_11_28/types/group_0312.py | 26 +- .../ghec_v2022_11_28/types/group_0313.py | 65 +- .../ghec_v2022_11_28/types/group_0314.py | 30 +- .../ghec_v2022_11_28/types/group_0315.py | 35 +- .../ghec_v2022_11_28/types/group_0316.py | 17 +- .../ghec_v2022_11_28/types/group_0317.py | 74 +- .../ghec_v2022_11_28/types/group_0318.py | 92 +- .../ghec_v2022_11_28/types/group_0319.py | 80 +- .../ghec_v2022_11_28/types/group_0320.py | 195 +- .../ghec_v2022_11_28/types/group_0321.py | 68 +- .../ghec_v2022_11_28/types/group_0322.py | 208 +- .../ghec_v2022_11_28/types/group_0323.py | 89 +- .../ghec_v2022_11_28/types/group_0324.py | 193 +- .../ghec_v2022_11_28/types/group_0325.py | 57 +- .../ghec_v2022_11_28/types/group_0326.py | 171 +- .../ghec_v2022_11_28/types/group_0327.py | 62 +- .../ghec_v2022_11_28/types/group_0328.py | 15 +- .../ghec_v2022_11_28/types/group_0329.py | 31 +- .../ghec_v2022_11_28/types/group_0330.py | 81 +- .../ghec_v2022_11_28/types/group_0331.py | 53 +- .../ghec_v2022_11_28/types/group_0332.py | 19 +- .../ghec_v2022_11_28/types/group_0333.py | 33 +- .../ghec_v2022_11_28/types/group_0334.py | 54 +- .../ghec_v2022_11_28/types/group_0335.py | 18 +- .../ghec_v2022_11_28/types/group_0336.py | 11 +- .../ghec_v2022_11_28/types/group_0337.py | 11 +- .../ghec_v2022_11_28/types/group_0338.py | 11 +- .../ghec_v2022_11_28/types/group_0339.py | 11 +- .../ghec_v2022_11_28/types/group_0340.py | 11 +- .../ghec_v2022_11_28/types/group_0341.py | 11 +- .../ghec_v2022_11_28/types/group_0342.py | 11 +- .../ghec_v2022_11_28/types/group_0343.py | 12 +- .../ghec_v2022_11_28/types/group_0344.py | 12 +- .../ghec_v2022_11_28/types/group_0345.py | 11 +- .../ghec_v2022_11_28/types/group_0346.py | 12 +- .../ghec_v2022_11_28/types/group_0347.py | 12 +- .../ghec_v2022_11_28/types/group_0348.py | 12 +- .../ghec_v2022_11_28/types/group_0349.py | 46 +- .../ghec_v2022_11_28/types/group_0350.py | 80 +- .../ghec_v2022_11_28/types/group_0351.py | 61 +- .../ghec_v2022_11_28/types/group_0352.py | 84 +- .../ghec_v2022_11_28/types/group_0353.py | 41 +- .../ghec_v2022_11_28/types/group_0354.py | 79 +- .../ghec_v2022_11_28/types/group_0355.py | 62 +- .../ghec_v2022_11_28/types/group_0356.py | 83 +- .../ghec_v2022_11_28/types/group_0357.py | 18 +- .../ghec_v2022_11_28/types/group_0358.py | 27 +- .../ghec_v2022_11_28/types/group_0359.py | 31 +- .../ghec_v2022_11_28/types/group_0360.py | 12 +- .../ghec_v2022_11_28/types/group_0361.py | 19 +- .../ghec_v2022_11_28/types/group_0362.py | 29 +- .../ghec_v2022_11_28/types/group_0363.py | 19 +- .../ghec_v2022_11_28/types/group_0364.py | 13 +- .../ghec_v2022_11_28/types/group_0365.py | 17 +- .../ghec_v2022_11_28/types/group_0366.py | 34 +- .../ghec_v2022_11_28/types/group_0367.py | 19 +- .../ghec_v2022_11_28/types/group_0368.py | 48 +- .../ghec_v2022_11_28/types/group_0369.py | 28 +- .../ghec_v2022_11_28/types/group_0370.py | 32 +- .../ghec_v2022_11_28/types/group_0371.py | 26 +- .../ghec_v2022_11_28/types/group_0372.py | 45 +- .../ghec_v2022_11_28/types/group_0373.py | 41 +- .../ghec_v2022_11_28/types/group_0374.py | 33 +- .../ghec_v2022_11_28/types/group_0375.py | 40 +- .../ghec_v2022_11_28/types/group_0376.py | 26 +- .../ghec_v2022_11_28/types/group_0377.py | 27 +- .../ghec_v2022_11_28/types/group_0378.py | 42 +- .../ghec_v2022_11_28/types/group_0379.py | 120 +- .../ghec_v2022_11_28/types/group_0380.py | 27 +- .../ghec_v2022_11_28/types/group_0381.py | 41 +- .../ghec_v2022_11_28/types/group_0382.py | 62 +- .../ghec_v2022_11_28/types/group_0383.py | 117 +- .../ghec_v2022_11_28/types/group_0384.py | 103 +- .../ghec_v2022_11_28/types/group_0385.py | 36 +- .../ghec_v2022_11_28/types/group_0386.py | 132 +- .../ghec_v2022_11_28/types/group_0387.py | 89 +- .../ghec_v2022_11_28/types/group_0388.py | 121 +- .../ghec_v2022_11_28/types/group_0389.py | 72 +- .../ghec_v2022_11_28/types/group_0390.py | 129 +- .../ghec_v2022_11_28/types/group_0391.py | 85 +- .../ghec_v2022_11_28/types/group_0392.py | 125 +- .../ghec_v2022_11_28/types/group_0393.py | 70 +- .../ghec_v2022_11_28/types/group_0394.py | 65 +- .../ghec_v2022_11_28/types/group_0395.py | 26 +- .../ghec_v2022_11_28/types/group_0396.py | 101 +- .../ghec_v2022_11_28/types/group_0397.py | 15 +- .../ghec_v2022_11_28/types/group_0398.py | 64 +- .../ghec_v2022_11_28/types/group_0399.py | 19 +- .../ghec_v2022_11_28/types/group_0400.py | 39 +- .../ghec_v2022_11_28/types/group_0401.py | 12 +- .../ghec_v2022_11_28/types/group_0402.py | 28 +- .../ghec_v2022_11_28/types/group_0403.py | 20 +- .../ghec_v2022_11_28/types/group_0404.py | 40 +- .../ghec_v2022_11_28/types/group_0405.py | 276 +- .../ghec_v2022_11_28/types/group_0406.py | 44 +- .../ghec_v2022_11_28/types/group_0407.py | 54 +- .../ghec_v2022_11_28/types/group_0408.py | 37 +- .../ghec_v2022_11_28/types/group_0409.py | 304 +- .../ghec_v2022_11_28/types/group_0410.py | 72 +- .../ghec_v2022_11_28/types/group_0411.py | 95 +- .../ghec_v2022_11_28/types/group_0412.py | 26 +- .../ghec_v2022_11_28/types/group_0413.py | 94 +- .../ghec_v2022_11_28/types/group_0414.py | 100 +- .../ghec_v2022_11_28/types/group_0415.py | 67 +- .../ghec_v2022_11_28/types/group_0416.py | 44 +- .../ghec_v2022_11_28/types/group_0417.py | 74 +- .../ghec_v2022_11_28/types/group_0418.py | 94 +- .../ghec_v2022_11_28/types/group_0419.py | 76 +- .../ghec_v2022_11_28/types/group_0420.py | 46 +- .../ghec_v2022_11_28/types/group_0421.py | 78 +- .../ghec_v2022_11_28/types/group_0422.py | 133 +- .../ghec_v2022_11_28/types/group_0423.py | 38 +- .../ghec_v2022_11_28/types/group_0424.py | 29 +- .../ghec_v2022_11_28/types/group_0425.py | 378 +- .../ghec_v2022_11_28/types/group_0426.py | 59 +- .../ghec_v2022_11_28/types/group_0427.py | 331 +- .../ghec_v2022_11_28/types/group_0428.py | 47 +- .../ghec_v2022_11_28/types/group_0429.py | 387 +- .../ghec_v2022_11_28/types/group_0430.py | 80 +- .../ghec_v2022_11_28/types/group_0431.py | 379 +- .../ghec_v2022_11_28/types/group_0432.py | 50 +- .../ghec_v2022_11_28/types/group_0433.py | 82 +- .../ghec_v2022_11_28/types/group_0434.py | 67 +- .../ghec_v2022_11_28/types/group_0435.py | 150 +- .../ghec_v2022_11_28/types/group_0436.py | 58 +- .../ghec_v2022_11_28/types/group_0437.py | 26 +- .../ghec_v2022_11_28/types/group_0438.py | 54 +- .../ghec_v2022_11_28/types/group_0439.py | 149 +- .../ghec_v2022_11_28/types/group_0440.py | 51 +- .../ghec_v2022_11_28/types/group_0441.py | 56 +- .../ghec_v2022_11_28/types/group_0442.py | 86 +- .../ghec_v2022_11_28/types/group_0443.py | 40 +- .../ghec_v2022_11_28/types/group_0444.py | 856 +- .../ghec_v2022_11_28/types/group_0445.py | 128 +- .../ghec_v2022_11_28/types/group_0446.py | 93 +- .../ghec_v2022_11_28/types/group_0447.py | 193 +- .../ghec_v2022_11_28/types/group_0448.py | 137 +- .../ghec_v2022_11_28/types/group_0449.py | 840 +- .../ghec_v2022_11_28/types/group_0450.py | 147 +- .../ghec_v2022_11_28/types/group_0451.py | 132 +- .../ghec_v2022_11_28/types/group_0452.py | 132 +- .../ghec_v2022_11_28/types/group_0453.py | 136 +- .../ghec_v2022_11_28/types/group_0454.py | 77 +- .../ghec_v2022_11_28/types/group_0455.py | 59 +- .../ghec_v2022_11_28/types/group_0456.py | 99 +- .../ghec_v2022_11_28/types/group_0457.py | 127 +- .../ghec_v2022_11_28/types/group_0458.py | 49 +- .../ghec_v2022_11_28/types/group_0459.py | 143 +- .../ghec_v2022_11_28/types/group_0460.py | 22 +- .../ghec_v2022_11_28/types/group_0461.py | 22 +- .../ghec_v2022_11_28/types/group_0462.py | 22 +- .../ghec_v2022_11_28/types/group_0463.py | 26 +- .../ghec_v2022_11_28/types/group_0464.py | 174 +- .../ghec_v2022_11_28/types/group_0465.py | 24 +- .../ghec_v2022_11_28/types/group_0466.py | 25 +- .../ghec_v2022_11_28/types/group_0467.py | 22 +- .../ghec_v2022_11_28/types/group_0468.py | 27 +- .../ghec_v2022_11_28/types/group_0469.py | 39 +- .../ghec_v2022_11_28/types/group_0470.py | 23 +- .../ghec_v2022_11_28/types/group_0471.py | 23 +- .../ghec_v2022_11_28/types/group_0472.py | 23 +- .../ghec_v2022_11_28/types/group_0473.py | 319 +- .../ghec_v2022_11_28/types/group_0474.py | 317 +- .../ghec_v2022_11_28/types/group_0475.py | 311 +- .../ghec_v2022_11_28/types/group_0476.py | 148 +- .../ghec_v2022_11_28/types/group_0477.py | 149 +- .../ghec_v2022_11_28/types/group_0478.py | 348 +- .../ghec_v2022_11_28/types/group_0479.py | 322 +- .../ghec_v2022_11_28/types/group_0480.py | 339 +- .../ghec_v2022_11_28/types/group_0481.py | 107 +- .../ghec_v2022_11_28/types/group_0482.py | 157 +- .../ghec_v2022_11_28/types/group_0483.py | 118 +- .../ghec_v2022_11_28/types/group_0484.py | 148 +- .../ghec_v2022_11_28/types/group_0485.py | 123 +- .../ghec_v2022_11_28/types/group_0486.py | 119 +- .../ghec_v2022_11_28/types/group_0487.py | 106 +- .../ghec_v2022_11_28/types/group_0488.py | 20 +- .../ghec_v2022_11_28/types/group_0489.py | 28 +- .../ghec_v2022_11_28/types/group_0490.py | 36 +- .../ghec_v2022_11_28/types/group_0491.py | 28 +- .../ghec_v2022_11_28/types/group_0492.py | 31 +- .../ghec_v2022_11_28/types/group_0493.py | 24 +- .../ghec_v2022_11_28/types/group_0494.py | 20 +- .../ghec_v2022_11_28/types/group_0495.py | 20 +- .../ghec_v2022_11_28/types/group_0496.py | 22 +- .../ghec_v2022_11_28/types/group_0497.py | 24 +- .../ghec_v2022_11_28/types/group_0498.py | 599 +- .../ghec_v2022_11_28/types/group_0499.py | 35 +- .../ghec_v2022_11_28/types/group_0500.py | 416 +- .../ghec_v2022_11_28/types/group_0501.py | 412 +- .../ghec_v2022_11_28/types/group_0502.py | 447 +- .../ghec_v2022_11_28/types/group_0503.py | 430 +- .../ghec_v2022_11_28/types/group_0504.py | 37 +- .../ghec_v2022_11_28/types/group_0505.py | 420 +- .../ghec_v2022_11_28/types/group_0506.py | 412 +- .../ghec_v2022_11_28/types/group_0507.py | 449 +- .../ghec_v2022_11_28/types/group_0508.py | 865 +- .../ghec_v2022_11_28/types/group_0509.py | 41 +- .../ghec_v2022_11_28/types/group_0510.py | 54 +- .../ghec_v2022_11_28/types/group_0511.py | 20 +- .../ghec_v2022_11_28/types/group_0512.py | 47 +- .../ghec_v2022_11_28/types/group_0513.py | 24 +- .../ghec_v2022_11_28/types/group_0514.py | 39 +- .../ghec_v2022_11_28/types/group_0515.py | 20 +- .../ghec_v2022_11_28/types/group_0516.py | 20 +- .../ghec_v2022_11_28/types/group_0517.py | 47 +- .../ghec_v2022_11_28/types/group_0518.py | 28 +- .../ghec_v2022_11_28/types/group_0519.py | 24 +- .../ghec_v2022_11_28/types/group_0520.py | 22 +- .../ghec_v2022_11_28/types/group_0521.py | 20 +- .../ghec_v2022_11_28/types/group_0522.py | 22 +- .../ghec_v2022_11_28/types/group_0523.py | 27 +- .../ghec_v2022_11_28/types/group_0524.py | 155 +- .../ghec_v2022_11_28/types/group_0525.py | 158 +- .../ghec_v2022_11_28/types/group_0526.py | 26 +- .../ghec_v2022_11_28/types/group_0527.py | 129 +- .../ghec_v2022_11_28/types/group_0528.py | 25 +- .../ghec_v2022_11_28/types/group_0529.py | 157 +- .../ghec_v2022_11_28/types/group_0530.py | 156 +- .../ghec_v2022_11_28/types/group_0531.py | 27 +- .../ghec_v2022_11_28/types/group_0532.py | 130 +- .../ghec_v2022_11_28/types/group_0533.py | 47 +- .../ghec_v2022_11_28/types/group_0534.py | 47 +- .../ghec_v2022_11_28/types/group_0535.py | 23 +- .../ghec_v2022_11_28/types/group_0536.py | 96 +- .../ghec_v2022_11_28/types/group_0537.py | 18 +- .../ghec_v2022_11_28/types/group_0538.py | 49 +- .../ghec_v2022_11_28/types/group_0539.py | 104 +- .../ghec_v2022_11_28/types/group_0540.py | 155 +- .../ghec_v2022_11_28/types/group_0541.py | 185 +- .../ghec_v2022_11_28/types/group_0542.py | 69 +- .../ghec_v2022_11_28/types/group_0543.py | 51 +- .../ghec_v2022_11_28/types/group_0544.py | 87 +- .../ghec_v2022_11_28/types/group_0545.py | 162 +- .../ghec_v2022_11_28/types/group_0546.py | 207 +- .../ghec_v2022_11_28/types/group_0547.py | 110 +- .../ghec_v2022_11_28/types/group_0548.py | 54 +- .../ghec_v2022_11_28/types/group_0549.py | 99 +- .../ghec_v2022_11_28/types/group_0550.py | 94 +- .../ghec_v2022_11_28/types/group_0551.py | 201 +- .../ghec_v2022_11_28/types/group_0552.py | 168 +- .../ghec_v2022_11_28/types/group_0553.py | 67 +- .../ghec_v2022_11_28/types/group_0554.py | 110 +- .../ghec_v2022_11_28/types/group_0555.py | 62 +- .../ghec_v2022_11_28/types/group_0556.py | 162 +- .../ghec_v2022_11_28/types/group_0557.py | 205 +- .../ghec_v2022_11_28/types/group_0558.py | 110 +- .../ghec_v2022_11_28/types/group_0559.py | 54 +- .../ghec_v2022_11_28/types/group_0560.py | 97 +- .../ghec_v2022_11_28/types/group_0561.py | 96 +- .../ghec_v2022_11_28/types/group_0562.py | 199 +- .../ghec_v2022_11_28/types/group_0563.py | 168 +- .../ghec_v2022_11_28/types/group_0564.py | 67 +- .../ghec_v2022_11_28/types/group_0565.py | 108 +- .../ghec_v2022_11_28/types/group_0566.py | 64 +- .../ghec_v2022_11_28/types/group_0567.py | 161 +- .../ghec_v2022_11_28/types/group_0568.py | 207 +- .../ghec_v2022_11_28/types/group_0569.py | 110 +- .../ghec_v2022_11_28/types/group_0570.py | 54 +- .../ghec_v2022_11_28/types/group_0571.py | 99 +- .../ghec_v2022_11_28/types/group_0572.py | 91 +- .../ghec_v2022_11_28/types/group_0573.py | 101 +- .../ghec_v2022_11_28/types/group_0574.py | 174 +- .../ghec_v2022_11_28/types/group_0575.py | 177 +- .../ghec_v2022_11_28/types/group_0576.py | 110 +- .../ghec_v2022_11_28/types/group_0577.py | 44 +- .../ghec_v2022_11_28/types/group_0578.py | 91 +- .../ghec_v2022_11_28/types/group_0579.py | 235 +- .../ghec_v2022_11_28/types/group_0580.py | 176 +- .../ghec_v2022_11_28/types/group_0581.py | 103 +- .../ghec_v2022_11_28/types/group_0582.py | 11 +- .../ghec_v2022_11_28/types/group_0583.py | 152 +- .../ghec_v2022_11_28/types/group_0584.py | 333 +- .../ghec_v2022_11_28/types/group_0585.py | 405 +- .../ghec_v2022_11_28/types/group_0586.py | 452 +- .../ghec_v2022_11_28/types/group_0587.py | 392 +- .../ghec_v2022_11_28/types/group_0588.py | 344 +- .../ghec_v2022_11_28/types/group_0589.py | 102 +- .../ghec_v2022_11_28/types/group_0590.py | 674 +- .../ghec_v2022_11_28/types/group_0591.py | 434 +- .../ghec_v2022_11_28/types/group_0592.py | 104 +- .../ghec_v2022_11_28/types/group_0593.py | 304 +- .../ghec_v2022_11_28/types/group_0594.py | 410 +- .../ghec_v2022_11_28/types/group_0595.py | 981 +- .../ghec_v2022_11_28/types/group_0596.py | 405 +- .../ghec_v2022_11_28/types/group_0597.py | 407 +- .../ghec_v2022_11_28/types/group_0598.py | 613 +- .../ghec_v2022_11_28/types/group_0599.py | 26 +- .../ghec_v2022_11_28/types/group_0600.py | 60 +- .../ghec_v2022_11_28/types/group_0601.py | 410 +- .../ghec_v2022_11_28/types/group_0602.py | 77 +- .../ghec_v2022_11_28/types/group_0603.py | 81 +- .../ghec_v2022_11_28/types/group_0604.py | 79 +- .../ghec_v2022_11_28/types/group_0605.py | 63 +- .../ghec_v2022_11_28/types/group_0606.py | 66 +- .../ghec_v2022_11_28/types/group_0607.py | 84 +- .../ghec_v2022_11_28/types/group_0608.py | 79 +- .../ghec_v2022_11_28/types/group_0609.py | 104 +- .../ghec_v2022_11_28/types/group_0610.py | 62 +- .../ghec_v2022_11_28/types/group_0611.py | 65 +- .../ghec_v2022_11_28/types/group_0612.py | 58 +- .../ghec_v2022_11_28/types/group_0613.py | 113 +- .../ghec_v2022_11_28/types/group_0614.py | 61 +- .../ghec_v2022_11_28/types/group_0615.py | 61 +- .../ghec_v2022_11_28/types/group_0616.py | 26 +- .../ghec_v2022_11_28/types/group_0617.py | 63 +- .../ghec_v2022_11_28/types/group_0618.py | 113 +- .../ghec_v2022_11_28/types/group_0619.py | 28 +- .../ghec_v2022_11_28/types/group_0620.py | 28 +- .../ghec_v2022_11_28/types/group_0621.py | 24 +- .../ghec_v2022_11_28/types/group_0622.py | 62 +- .../ghec_v2022_11_28/types/group_0623.py | 80 +- .../ghec_v2022_11_28/types/group_0624.py | 24 +- .../ghec_v2022_11_28/types/group_0625.py | 41 +- .../ghec_v2022_11_28/types/group_0626.py | 49 +- .../ghec_v2022_11_28/types/group_0627.py | 24 +- .../ghec_v2022_11_28/types/group_0628.py | 75 +- .../ghec_v2022_11_28/types/group_0629.py | 499 +- .../ghec_v2022_11_28/types/group_0630.py | 43 +- .../ghec_v2022_11_28/types/group_0631.py | 86 +- .../ghec_v2022_11_28/types/group_0632.py | 172 +- .../ghec_v2022_11_28/types/group_0633.py | 76 +- .../ghec_v2022_11_28/types/group_0634.py | 497 +- .../ghec_v2022_11_28/types/group_0635.py | 26 +- .../ghec_v2022_11_28/types/group_0636.py | 75 +- .../ghec_v2022_11_28/types/group_0637.py | 170 +- .../ghec_v2022_11_28/types/group_0638.py | 81 +- .../ghec_v2022_11_28/types/group_0639.py | 50 +- .../ghec_v2022_11_28/types/group_0640.py | 23 +- .../ghec_v2022_11_28/types/group_0641.py | 43 +- .../ghec_v2022_11_28/types/group_0642.py | 26 +- .../ghec_v2022_11_28/types/group_0643.py | 76 +- .../ghec_v2022_11_28/types/group_0644.py | 57 +- .../ghec_v2022_11_28/types/group_0645.py | 88 +- .../ghec_v2022_11_28/types/group_0646.py | 80 +- .../ghec_v2022_11_28/types/group_0647.py | 68 +- .../ghec_v2022_11_28/types/group_0648.py | 74 +- .../ghec_v2022_11_28/types/group_0649.py | 43 +- .../ghec_v2022_11_28/types/group_0650.py | 89 +- .../ghec_v2022_11_28/types/group_0651.py | 80 +- .../ghec_v2022_11_28/types/group_0652.py | 68 +- .../ghec_v2022_11_28/types/group_0653.py | 20 +- .../ghec_v2022_11_28/types/group_0654.py | 26 +- .../ghec_v2022_11_28/types/group_0655.py | 54 +- .../ghec_v2022_11_28/types/group_0656.py | 41 +- .../ghec_v2022_11_28/types/group_0657.py | 24 +- .../ghec_v2022_11_28/types/group_0658.py | 25 +- .../ghec_v2022_11_28/types/group_0659.py | 26 +- .../ghec_v2022_11_28/types/group_0660.py | 79 +- .../ghec_v2022_11_28/types/group_0661.py | 26 +- .../ghec_v2022_11_28/types/group_0662.py | 40 +- .../ghec_v2022_11_28/types/group_0663.py | 19 +- .../ghec_v2022_11_28/types/group_0664.py | 16 +- .../ghec_v2022_11_28/types/group_0665.py | 71 +- .../ghec_v2022_11_28/types/group_0666.py | 42 +- .../ghec_v2022_11_28/types/group_0667.py | 40 +- .../ghec_v2022_11_28/types/group_0668.py | 18 +- .../ghec_v2022_11_28/types/group_0669.py | 22 +- .../ghec_v2022_11_28/types/group_0670.py | 966 +- .../ghec_v2022_11_28/types/group_0671.py | 986 +- .../ghec_v2022_11_28/types/group_0672.py | 978 +- .../ghec_v2022_11_28/types/group_0673.py | 25 +- .../ghec_v2022_11_28/types/group_0674.py | 25 +- .../ghec_v2022_11_28/types/group_0675.py | 29 +- .../ghec_v2022_11_28/types/group_0676.py | 949 +- .../ghec_v2022_11_28/types/group_0677.py | 74 +- .../ghec_v2022_11_28/types/group_0678.py | 326 +- .../ghec_v2022_11_28/types/group_0679.py | 370 +- .../ghec_v2022_11_28/types/group_0680.py | 358 +- .../ghec_v2022_11_28/types/group_0681.py | 26 +- .../ghec_v2022_11_28/types/group_0682.py | 20 +- .../ghec_v2022_11_28/types/group_0683.py | 26 +- .../ghec_v2022_11_28/types/group_0684.py | 934 +- .../ghec_v2022_11_28/types/group_0685.py | 1092 +- .../ghec_v2022_11_28/types/group_0686.py | 419 +- .../ghec_v2022_11_28/types/group_0687.py | 401 +- .../ghec_v2022_11_28/types/group_0688.py | 427 +- .../ghec_v2022_11_28/types/group_0689.py | 911 +- .../ghec_v2022_11_28/types/group_0690.py | 1052 +- .../ghec_v2022_11_28/types/group_0691.py | 1069 +- .../ghec_v2022_11_28/types/group_0692.py | 1032 +- .../ghec_v2022_11_28/types/group_0693.py | 537 +- .../ghec_v2022_11_28/types/group_0694.py | 317 +- .../ghec_v2022_11_28/types/group_0695.py | 450 +- .../ghec_v2022_11_28/types/group_0696.py | 616 +- .../ghec_v2022_11_28/types/group_0697.py | 384 +- .../ghec_v2022_11_28/types/group_0698.py | 453 +- .../ghec_v2022_11_28/types/group_0699.py | 468 +- .../ghec_v2022_11_28/types/group_0700.py | 431 +- .../ghec_v2022_11_28/types/group_0701.py | 982 +- .../ghec_v2022_11_28/types/group_0702.py | 932 +- .../ghec_v2022_11_28/types/group_0703.py | 1098 +- .../ghec_v2022_11_28/types/group_0704.py | 1243 ++- .../ghec_v2022_11_28/types/group_0705.py | 952 +- .../ghec_v2022_11_28/types/group_0706.py | 957 +- .../ghec_v2022_11_28/types/group_0707.py | 985 +- .../ghec_v2022_11_28/types/group_0708.py | 934 +- .../ghec_v2022_11_28/types/group_0709.py | 297 +- .../ghec_v2022_11_28/types/group_0710.py | 59 +- .../ghec_v2022_11_28/types/group_0711.py | 171 +- .../ghec_v2022_11_28/types/group_0712.py | 524 +- .../ghec_v2022_11_28/types/group_0713.py | 26 +- .../ghec_v2022_11_28/types/group_0714.py | 73 +- .../ghec_v2022_11_28/types/group_0715.py | 177 +- .../ghec_v2022_11_28/types/group_0716.py | 24 +- .../ghec_v2022_11_28/types/group_0717.py | 20 +- .../ghec_v2022_11_28/types/group_0718.py | 55 +- .../ghec_v2022_11_28/types/group_0719.py | 150 +- .../ghec_v2022_11_28/types/group_0720.py | 39 +- .../ghec_v2022_11_28/types/group_0721.py | 65 +- .../ghec_v2022_11_28/types/group_0722.py | 22 +- .../ghec_v2022_11_28/types/group_0723.py | 22 +- .../ghec_v2022_11_28/types/group_0724.py | 22 +- .../ghec_v2022_11_28/types/group_0725.py | 42 +- .../ghec_v2022_11_28/types/group_0726.py | 20 +- .../ghec_v2022_11_28/types/group_0727.py | 20 +- .../ghec_v2022_11_28/types/group_0728.py | 41 +- .../ghec_v2022_11_28/types/group_0729.py | 67 +- .../ghec_v2022_11_28/types/group_0730.py | 30 +- .../ghec_v2022_11_28/types/group_0731.py | 94 +- .../ghec_v2022_11_28/types/group_0732.py | 101 +- .../ghec_v2022_11_28/types/group_0733.py | 144 +- .../ghec_v2022_11_28/types/group_0734.py | 103 +- .../ghec_v2022_11_28/types/group_0735.py | 22 +- .../ghec_v2022_11_28/types/group_0736.py | 26 +- .../ghec_v2022_11_28/types/group_0737.py | 90 +- .../ghec_v2022_11_28/types/group_0738.py | 32 +- .../ghec_v2022_11_28/types/group_0739.py | 141 +- .../ghec_v2022_11_28/types/group_0740.py | 103 +- .../ghec_v2022_11_28/types/group_0741.py | 291 +- .../ghec_v2022_11_28/types/group_0742.py | 101 +- .../ghec_v2022_11_28/types/group_0743.py | 22 +- .../ghec_v2022_11_28/types/group_0744.py | 24 +- .../ghec_v2022_11_28/types/group_0745.py | 84 +- .../ghec_v2022_11_28/types/group_0746.py | 26 +- .../ghec_v2022_11_28/types/group_0747.py | 87 +- .../ghec_v2022_11_28/types/group_0748.py | 128 +- .../ghec_v2022_11_28/types/group_0749.py | 229 +- .../ghec_v2022_11_28/types/group_0750.py | 12 +- .../ghec_v2022_11_28/types/group_0751.py | 23 +- .../ghec_v2022_11_28/types/group_0752.py | 26 +- .../ghec_v2022_11_28/types/group_0753.py | 26 +- .../ghec_v2022_11_28/types/group_0754.py | 41 +- .../ghec_v2022_11_28/types/group_0755.py | 25 +- .../ghec_v2022_11_28/types/group_0756.py | 131 +- .../ghec_v2022_11_28/types/group_0757.py | 28 +- .../ghec_v2022_11_28/types/group_0758.py | 21 +- .../ghec_v2022_11_28/types/group_0759.py | 22 +- .../ghec_v2022_11_28/types/group_0760.py | 200 +- .../ghec_v2022_11_28/types/group_0761.py | 28 +- .../ghec_v2022_11_28/types/group_0762.py | 41 +- .../ghec_v2022_11_28/types/group_0763.py | 29 +- .../ghec_v2022_11_28/types/group_0764.py | 27 +- .../ghec_v2022_11_28/types/group_0765.py | 26 +- .../ghec_v2022_11_28/types/group_0766.py | 193 +- .../ghec_v2022_11_28/types/group_0767.py | 189 +- .../ghec_v2022_11_28/types/group_0768.py | 290 +- .../ghec_v2022_11_28/types/group_0769.py | 252 +- .../ghec_v2022_11_28/types/group_0770.py | 186 +- .../ghec_v2022_11_28/types/group_0771.py | 26 +- .../ghec_v2022_11_28/types/group_0772.py | 31 +- .../ghec_v2022_11_28/types/group_0773.py | 74 +- .../ghec_v2022_11_28/types/group_0774.py | 210 +- .../ghec_v2022_11_28/types/group_0775.py | 208 +- .../ghec_v2022_11_28/types/group_0776.py | 212 +- .../ghec_v2022_11_28/types/group_0777.py | 267 +- .../ghec_v2022_11_28/types/group_0778.py | 203 +- .../ghec_v2022_11_28/types/group_0779.py | 67 +- .../ghec_v2022_11_28/types/group_0780.py | 68 +- .../ghec_v2022_11_28/types/group_0781.py | 440 +- .../ghec_v2022_11_28/types/group_0782.py | 429 +- .../ghec_v2022_11_28/types/group_0783.py | 439 +- .../ghec_v2022_11_28/types/group_0784.py | 83 +- .../ghec_v2022_11_28/types/group_0785.py | 59 +- .../ghec_v2022_11_28/types/group_0786.py | 49 +- .../ghec_v2022_11_28/types/group_0787.py | 69 +- .../ghec_v2022_11_28/types/group_0788.py | 70 +- .../ghec_v2022_11_28/types/group_0789.py | 418 +- .../ghec_v2022_11_28/types/group_0790.py | 421 +- .../ghec_v2022_11_28/types/group_0791.py | 419 +- .../ghec_v2022_11_28/types/group_0792.py | 41 +- .../ghec_v2022_11_28/types/group_0793.py | 22 +- .../ghec_v2022_11_28/types/group_0794.py | 14 +- .../ghec_v2022_11_28/types/group_0795.py | 12 +- .../ghec_v2022_11_28/types/group_0796.py | 15 +- .../ghec_v2022_11_28/types/group_0797.py | 9 +- .../ghec_v2022_11_28/types/group_0798.py | 30 +- .../ghec_v2022_11_28/types/group_0799.py | 17 +- .../ghec_v2022_11_28/types/group_0800.py | 15 +- .../ghec_v2022_11_28/types/group_0801.py | 22 +- .../ghec_v2022_11_28/types/group_0802.py | 13 +- .../ghec_v2022_11_28/types/group_0803.py | 20 +- .../ghec_v2022_11_28/types/group_0804.py | 13 +- .../ghec_v2022_11_28/types/group_0805.py | 13 +- .../ghec_v2022_11_28/types/group_0806.py | 31 +- .../ghec_v2022_11_28/types/group_0807.py | 22 +- .../ghec_v2022_11_28/types/group_0808.py | 19 +- .../ghec_v2022_11_28/types/group_0809.py | 15 +- .../ghec_v2022_11_28/types/group_0810.py | 12 +- .../ghec_v2022_11_28/types/group_0811.py | 16 +- .../ghec_v2022_11_28/types/group_0812.py | 15 +- .../ghec_v2022_11_28/types/group_0813.py | 19 +- .../ghec_v2022_11_28/types/group_0814.py | 17 +- .../ghec_v2022_11_28/types/group_0815.py | 17 +- .../ghec_v2022_11_28/types/group_0816.py | 15 +- .../ghec_v2022_11_28/types/group_0817.py | 17 +- .../ghec_v2022_11_28/types/group_0818.py | 27 +- .../ghec_v2022_11_28/types/group_0819.py | 26 +- .../ghec_v2022_11_28/types/group_0820.py | 31 +- .../ghec_v2022_11_28/types/group_0821.py | 16 +- .../ghec_v2022_11_28/types/group_0822.py | 14 +- .../ghec_v2022_11_28/types/group_0823.py | 13 +- .../ghec_v2022_11_28/types/group_0824.py | 19 +- .../ghec_v2022_11_28/types/group_0825.py | 18 +- .../ghec_v2022_11_28/types/group_0826.py | 16 +- .../ghec_v2022_11_28/types/group_0827.py | 24 +- .../ghec_v2022_11_28/types/group_0828.py | 22 +- .../ghec_v2022_11_28/types/group_0829.py | 31 +- .../ghec_v2022_11_28/types/group_0830.py | 54 +- .../ghec_v2022_11_28/types/group_0831.py | 24 +- .../ghec_v2022_11_28/types/group_0832.py | 12 +- .../ghec_v2022_11_28/types/group_0833.py | 11 +- .../ghec_v2022_11_28/types/group_0834.py | 14 +- .../ghec_v2022_11_28/types/group_0835.py | 32 +- .../ghec_v2022_11_28/types/group_0836.py | 15 +- .../ghec_v2022_11_28/types/group_0837.py | 13 +- .../ghec_v2022_11_28/types/group_0838.py | 14 +- .../ghec_v2022_11_28/types/group_0839.py | 55 +- .../ghec_v2022_11_28/types/group_0840.py | 24 +- .../ghec_v2022_11_28/types/group_0841.py | 13 +- .../ghec_v2022_11_28/types/group_0842.py | 12 +- .../ghec_v2022_11_28/types/group_0843.py | 13 +- .../ghec_v2022_11_28/types/group_0844.py | 32 +- .../ghec_v2022_11_28/types/group_0845.py | 18 +- .../ghec_v2022_11_28/types/group_0846.py | 28 +- .../ghec_v2022_11_28/types/group_0847.py | 18 +- .../ghec_v2022_11_28/types/group_0848.py | 11 +- .../ghec_v2022_11_28/types/group_0849.py | 11 +- .../ghec_v2022_11_28/types/group_0850.py | 31 +- .../ghec_v2022_11_28/types/group_0851.py | 18 +- .../ghec_v2022_11_28/types/group_0852.py | 16 +- .../ghec_v2022_11_28/types/group_0853.py | 11 +- .../ghec_v2022_11_28/types/group_0854.py | 8 +- .../ghec_v2022_11_28/types/group_0855.py | 31 +- .../ghec_v2022_11_28/types/group_0856.py | 17 +- .../ghec_v2022_11_28/types/group_0857.py | 11 +- .../ghec_v2022_11_28/types/group_0858.py | 8 +- .../ghec_v2022_11_28/types/group_0859.py | 17 +- .../ghec_v2022_11_28/types/group_0860.py | 10 +- .../ghec_v2022_11_28/types/group_0861.py | 18 +- .../ghec_v2022_11_28/types/group_0862.py | 11 +- .../ghec_v2022_11_28/types/group_0863.py | 8 +- .../ghec_v2022_11_28/types/group_0864.py | 65 +- .../ghec_v2022_11_28/types/group_0865.py | 38 +- .../ghec_v2022_11_28/types/group_0866.py | 40 +- .../ghec_v2022_11_28/types/group_0867.py | 13 +- .../ghec_v2022_11_28/types/group_0868.py | 16 +- .../ghec_v2022_11_28/types/group_0869.py | 21 +- .../ghec_v2022_11_28/types/group_0870.py | 13 +- .../ghec_v2022_11_28/types/group_0871.py | 19 +- .../ghec_v2022_11_28/types/group_0872.py | 30 +- .../ghec_v2022_11_28/types/group_0873.py | 15 +- .../ghec_v2022_11_28/types/group_0874.py | 31 +- .../ghec_v2022_11_28/types/group_0875.py | 15 +- .../ghec_v2022_11_28/types/group_0876.py | 33 +- .../ghec_v2022_11_28/types/group_0877.py | 30 +- .../ghec_v2022_11_28/types/group_0878.py | 16 +- .../ghec_v2022_11_28/types/group_0879.py | 11 +- .../ghec_v2022_11_28/types/group_0880.py | 11 +- .../ghec_v2022_11_28/types/group_0881.py | 15 +- .../ghec_v2022_11_28/types/group_0882.py | 13 +- .../ghec_v2022_11_28/types/group_0883.py | 12 +- .../ghec_v2022_11_28/types/group_0884.py | 22 +- .../ghec_v2022_11_28/types/group_0885.py | 12 +- .../ghec_v2022_11_28/types/group_0886.py | 16 +- .../ghec_v2022_11_28/types/group_0887.py | 12 +- .../ghec_v2022_11_28/types/group_0888.py | 29 +- .../ghec_v2022_11_28/types/group_0889.py | 13 +- .../ghec_v2022_11_28/types/group_0890.py | 17 +- .../ghec_v2022_11_28/types/group_0891.py | 13 +- .../ghec_v2022_11_28/types/group_0892.py | 33 +- .../ghec_v2022_11_28/types/group_0893.py | 30 +- .../ghec_v2022_11_28/types/group_0894.py | 13 +- .../ghec_v2022_11_28/types/group_0895.py | 11 +- .../ghec_v2022_11_28/types/group_0896.py | 15 +- .../ghec_v2022_11_28/types/group_0897.py | 18 +- .../ghec_v2022_11_28/types/group_0898.py | 62 +- .../ghec_v2022_11_28/types/group_0899.py | 75 +- .../ghec_v2022_11_28/types/group_0900.py | 83 +- .../ghec_v2022_11_28/types/group_0901.py | 17 +- .../ghec_v2022_11_28/types/group_0902.py | 15 +- .../ghec_v2022_11_28/types/group_0903.py | 10 +- .../ghec_v2022_11_28/types/group_0904.py | 11 +- .../ghec_v2022_11_28/types/group_0905.py | 11 +- .../ghec_v2022_11_28/types/group_0906.py | 17 +- .../ghec_v2022_11_28/types/group_0907.py | 21 +- .../ghec_v2022_11_28/types/group_0908.py | 13 +- .../ghec_v2022_11_28/types/group_0909.py | 9 +- .../ghec_v2022_11_28/types/group_0910.py | 10 +- .../ghec_v2022_11_28/types/group_0911.py | 14 +- .../ghec_v2022_11_28/types/group_0912.py | 14 +- .../ghec_v2022_11_28/types/group_0913.py | 14 +- .../ghec_v2022_11_28/types/group_0914.py | 50 +- .../ghec_v2022_11_28/types/group_0915.py | 75 +- .../ghec_v2022_11_28/types/group_0916.py | 77 +- .../ghec_v2022_11_28/types/group_0917.py | 20 +- .../ghec_v2022_11_28/types/group_0918.py | 17 +- .../ghec_v2022_11_28/types/group_0919.py | 12 +- .../ghec_v2022_11_28/types/group_0920.py | 26 +- .../ghec_v2022_11_28/types/group_0921.py | 26 +- .../ghec_v2022_11_28/types/group_0922.py | 12 +- .../ghec_v2022_11_28/types/group_0923.py | 18 +- .../ghec_v2022_11_28/types/group_0924.py | 12 +- .../ghec_v2022_11_28/types/group_0925.py | 26 +- .../ghec_v2022_11_28/types/group_0926.py | 11 +- .../ghec_v2022_11_28/types/group_0927.py | 11 +- .../ghec_v2022_11_28/types/group_0928.py | 8 +- .../ghec_v2022_11_28/types/group_0929.py | 13 +- .../ghec_v2022_11_28/types/group_0930.py | 23 +- .../ghec_v2022_11_28/types/group_0931.py | 8 +- .../ghec_v2022_11_28/types/group_0932.py | 13 +- .../ghec_v2022_11_28/types/group_0933.py | 11 +- .../ghec_v2022_11_28/types/group_0934.py | 129 +- .../ghec_v2022_11_28/types/group_0935.py | 12 +- .../ghec_v2022_11_28/types/group_0936.py | 25 +- .../ghec_v2022_11_28/types/group_0937.py | 25 +- .../ghec_v2022_11_28/types/group_0938.py | 12 +- .../ghec_v2022_11_28/types/group_0939.py | 13 +- .../ghec_v2022_11_28/types/group_0940.py | 13 +- .../ghec_v2022_11_28/types/group_0941.py | 26 +- .../ghec_v2022_11_28/types/group_0942.py | 14 +- .../ghec_v2022_11_28/types/group_0943.py | 9 +- .../ghec_v2022_11_28/types/group_0944.py | 12 +- .../ghec_v2022_11_28/types/group_0945.py | 19 +- .../ghec_v2022_11_28/types/group_0946.py | 15 +- .../ghec_v2022_11_28/types/group_0947.py | 17 +- .../ghec_v2022_11_28/types/group_0948.py | 12 +- .../ghec_v2022_11_28/types/group_0949.py | 14 +- .../ghec_v2022_11_28/types/group_0950.py | 147 +- .../ghec_v2022_11_28/types/group_0951.py | 14 +- .../ghec_v2022_11_28/types/group_0952.py | 14 +- .../ghec_v2022_11_28/types/group_0953.py | 14 +- .../ghec_v2022_11_28/types/group_0954.py | 10 +- .../ghec_v2022_11_28/types/group_0955.py | 13 +- .../ghec_v2022_11_28/types/group_0956.py | 11 +- .../ghec_v2022_11_28/types/group_0957.py | 43 +- .../ghec_v2022_11_28/types/group_0958.py | 29 +- .../ghec_v2022_11_28/types/group_0959.py | 11 +- .../ghec_v2022_11_28/types/group_0960.py | 13 +- .../ghec_v2022_11_28/types/group_0961.py | 131 +- .../ghec_v2022_11_28/types/group_0962.py | 57 +- .../ghec_v2022_11_28/types/group_0963.py | 31 +- .../ghec_v2022_11_28/types/group_0964.py | 17 +- .../ghec_v2022_11_28/types/group_0965.py | 20 +- .../ghec_v2022_11_28/types/group_0966.py | 20 +- .../ghec_v2022_11_28/types/group_0967.py | 17 +- .../ghec_v2022_11_28/types/group_0968.py | 15 +- .../ghec_v2022_11_28/types/group_0969.py | 20 +- .../ghec_v2022_11_28/types/group_0970.py | 15 +- .../ghec_v2022_11_28/types/group_0971.py | 16 +- .../ghec_v2022_11_28/types/group_0972.py | 20 +- .../ghec_v2022_11_28/types/group_0973.py | 42 +- .../ghec_v2022_11_28/types/group_0974.py | 28 +- .../ghec_v2022_11_28/types/group_0975.py | 17 +- .../ghec_v2022_11_28/types/group_0976.py | 43 +- .../ghec_v2022_11_28/types/group_0977.py | 57 +- .../ghec_v2022_11_28/types/group_0978.py | 90 +- .../ghec_v2022_11_28/types/group_0979.py | 45 +- .../ghec_v2022_11_28/types/group_0980.py | 140 +- .../ghec_v2022_11_28/types/group_0981.py | 77 +- .../ghec_v2022_11_28/types/group_0982.py | 55 +- .../ghec_v2022_11_28/types/group_0983.py | 17 +- .../ghec_v2022_11_28/types/group_0984.py | 26 +- .../ghec_v2022_11_28/types/group_0985.py | 18 +- .../ghec_v2022_11_28/types/group_0986.py | 22 +- .../ghec_v2022_11_28/types/group_0987.py | 24 +- .../ghec_v2022_11_28/types/group_0988.py | 26 +- .../ghec_v2022_11_28/types/group_0989.py | 24 +- .../ghec_v2022_11_28/types/group_0990.py | 24 +- .../ghec_v2022_11_28/types/group_0991.py | 17 +- .../ghec_v2022_11_28/types/group_0992.py | 28 +- .../ghec_v2022_11_28/types/group_0993.py | 28 +- .../ghec_v2022_11_28/types/group_0994.py | 17 +- .../ghec_v2022_11_28/types/group_0995.py | 24 +- .../ghec_v2022_11_28/types/group_0996.py | 64 +- .../ghec_v2022_11_28/types/group_0997.py | 42 +- .../ghec_v2022_11_28/types/group_0998.py | 43 +- .../ghec_v2022_11_28/types/group_0999.py | 65 +- .../ghec_v2022_11_28/types/group_1000.py | 43 +- .../ghec_v2022_11_28/types/group_1001.py | 47 +- .../ghec_v2022_11_28/types/group_1002.py | 12 +- .../ghec_v2022_11_28/types/group_1003.py | 47 +- .../ghec_v2022_11_28/types/group_1004.py | 40 +- .../ghec_v2022_11_28/types/group_1005.py | 16 +- .../ghec_v2022_11_28/types/group_1006.py | 34 +- .../ghec_v2022_11_28/types/group_1007.py | 16 +- .../ghec_v2022_11_28/types/group_1008.py | 20 +- .../ghec_v2022_11_28/types/group_1009.py | 35 +- .../ghec_v2022_11_28/types/group_1010.py | 14 +- .../ghec_v2022_11_28/types/group_1011.py | 32 +- .../ghec_v2022_11_28/types/group_1012.py | 27 +- .../ghec_v2022_11_28/types/group_1013.py | 37 +- .../ghec_v2022_11_28/types/group_1014.py | 29 +- .../ghec_v2022_11_28/types/group_1015.py | 27 +- .../ghec_v2022_11_28/types/group_1016.py | 21 +- .../ghec_v2022_11_28/types/group_1017.py | 14 +- .../ghec_v2022_11_28/types/group_1018.py | 9 +- .../ghec_v2022_11_28/types/group_1019.py | 15 +- .../ghec_v2022_11_28/types/group_1020.py | 14 +- .../ghec_v2022_11_28/types/group_1021.py | 15 +- .../ghec_v2022_11_28/types/group_1022.py | 42 +- .../ghec_v2022_11_28/types/group_1023.py | 37 +- .../ghec_v2022_11_28/types/group_1024.py | 52 +- .../ghec_v2022_11_28/types/group_1025.py | 26 +- .../ghec_v2022_11_28/types/group_1026.py | 10 +- .../ghec_v2022_11_28/types/group_1027.py | 31 +- .../ghec_v2022_11_28/types/group_1028.py | 33 +- .../ghec_v2022_11_28/types/group_1029.py | 27 +- .../ghec_v2022_11_28/types/group_1030.py | 24 +- .../ghec_v2022_11_28/types/group_1031.py | 24 +- .../ghec_v2022_11_28/types/group_1032.py | 38 +- .../ghec_v2022_11_28/types/group_1033.py | 31 +- .../ghec_v2022_11_28/types/group_1034.py | 13 +- .../ghec_v2022_11_28/types/group_1035.py | 23 +- .../ghec_v2022_11_28/types/group_1036.py | 12 +- .../ghec_v2022_11_28/types/group_1037.py | 12 +- .../ghec_v2022_11_28/types/group_1038.py | 32 +- .../ghec_v2022_11_28/types/group_1039.py | 9 +- .../ghec_v2022_11_28/types/group_1040.py | 14 +- .../ghec_v2022_11_28/types/group_1041.py | 36 +- .../ghec_v2022_11_28/types/group_1042.py | 10 +- .../ghec_v2022_11_28/types/group_1043.py | 44 +- .../ghec_v2022_11_28/types/group_1044.py | 9 +- .../ghec_v2022_11_28/types/group_1045.py | 10 +- .../ghec_v2022_11_28/types/group_1046.py | 28 +- .../ghec_v2022_11_28/types/group_1047.py | 25 +- .../ghec_v2022_11_28/types/group_1048.py | 28 +- .../ghec_v2022_11_28/types/group_1049.py | 23 +- .../ghec_v2022_11_28/types/group_1050.py | 14 +- .../ghec_v2022_11_28/types/group_1051.py | 12 +- .../ghec_v2022_11_28/types/group_1052.py | 15 +- .../ghec_v2022_11_28/types/group_1053.py | 11 +- .../ghec_v2022_11_28/types/group_1054.py | 13 +- .../ghec_v2022_11_28/types/group_1055.py | 12 +- .../ghec_v2022_11_28/types/group_1056.py | 11 +- .../ghec_v2022_11_28/types/group_1057.py | 30 +- .../ghec_v2022_11_28/types/group_1058.py | 15 +- .../ghec_v2022_11_28/types/group_1059.py | 16 +- .../ghec_v2022_11_28/types/group_1060.py | 43 +- .../ghec_v2022_11_28/types/group_1061.py | 10 +- .../ghec_v2022_11_28/types/group_1062.py | 16 +- .../ghec_v2022_11_28/types/group_1063.py | 22 +- .../ghec_v2022_11_28/types/group_1064.py | 19 +- .../ghec_v2022_11_28/types/group_1065.py | 30 +- .../ghec_v2022_11_28/types/group_1066.py | 22 +- .../ghec_v2022_11_28/types/group_1067.py | 21 +- .../ghec_v2022_11_28/types/group_1068.py | 23 +- .../ghec_v2022_11_28/types/group_1069.py | 14 +- .../ghec_v2022_11_28/types/group_1070.py | 11 +- .../ghec_v2022_11_28/types/group_1071.py | 20 +- .../ghec_v2022_11_28/types/group_1072.py | 12 +- .../ghec_v2022_11_28/types/group_1073.py | 9 +- .../ghec_v2022_11_28/types/group_1074.py | 15 +- .../ghec_v2022_11_28/types/group_1075.py | 17 +- .../ghec_v2022_11_28/types/group_1076.py | 12 +- .../ghec_v2022_11_28/types/group_1077.py | 16 +- .../ghec_v2022_11_28/types/group_1078.py | 12 +- .../ghec_v2022_11_28/types/group_1079.py | 19 +- .../ghec_v2022_11_28/types/group_1080.py | 19 +- .../ghec_v2022_11_28/types/group_1081.py | 13 +- .../ghec_v2022_11_28/types/group_1082.py | 24 +- .../ghec_v2022_11_28/types/group_1083.py | 19 +- .../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 | 22 +- .../ghec_v2022_11_28/types/group_1087.py | 15 +- .../ghec_v2022_11_28/types/group_1088.py | 31 +- .../ghec_v2022_11_28/types/group_1089.py | 14 +- .../ghec_v2022_11_28/types/group_1090.py | 17 +- .../ghec_v2022_11_28/types/group_1091.py | 12 +- .../ghec_v2022_11_28/types/group_1092.py | 9 +- .../ghec_v2022_11_28/types/group_1093.py | 14 +- .../ghec_v2022_11_28/types/group_1094.py | 20 +- .../ghec_v2022_11_28/types/group_1095.py | 12 +- .../ghec_v2022_11_28/types/group_1096.py | 16 +- .../ghec_v2022_11_28/types/group_1097.py | 17 +- .../ghec_v2022_11_28/types/group_1098.py | 19 +- .../ghec_v2022_11_28/types/group_1099.py | 76 +- .../ghec_v2022_11_28/types/group_1100.py | 68 +- .../ghec_v2022_11_28/types/group_1101.py | 17 +- .../ghec_v2022_11_28/types/group_1102.py | 13 +- .../ghec_v2022_11_28/types/group_1103.py | 10 +- .../ghec_v2022_11_28/types/group_1104.py | 12 +- .../ghec_v2022_11_28/types/group_1105.py | 11 +- .../ghec_v2022_11_28/types/group_1106.py | 11 +- .../ghec_v2022_11_28/types/group_1107.py | 33 +- .../ghec_v2022_11_28/types/group_1108.py | 42 +- .../ghec_v2022_11_28/types/group_1109.py | 42 +- .../ghec_v2022_11_28/types/group_1110.py | 58 +- .../ghec_v2022_11_28/types/group_1111.py | 16 +- .../ghec_v2022_11_28/types/group_1112.py | 11 +- .../ghec_v2022_11_28/types/group_1113.py | 16 +- .../ghec_v2022_11_28/types/group_1114.py | 12 +- .../ghec_v2022_11_28/types/group_1115.py | 15 +- .../ghec_v2022_11_28/types/group_1116.py | 23 +- .../ghec_v2022_11_28/types/group_1117.py | 10 +- .../ghec_v2022_11_28/types/group_1118.py | 67 +- .../ghec_v2022_11_28/types/group_1119.py | 67 +- .../ghec_v2022_11_28/types/group_1120.py | 14 +- .../ghec_v2022_11_28/types/group_1121.py | 13 +- .../ghec_v2022_11_28/types/group_1122.py | 25 +- .../ghec_v2022_11_28/types/group_1123.py | 18 +- .../ghec_v2022_11_28/types/group_1124.py | 11 +- .../ghec_v2022_11_28/types/group_1125.py | 23 +- .../ghec_v2022_11_28/types/group_1126.py | 32 +- .../ghec_v2022_11_28/types/group_1127.py | 47 +- .../ghec_v2022_11_28/types/group_1128.py | 43 +- .../ghec_v2022_11_28/types/group_1129.py | 60 +- .../ghec_v2022_11_28/types/group_1130.py | 19 +- .../ghec_v2022_11_28/types/group_1131.py | 13 +- .../ghec_v2022_11_28/types/group_1132.py | 15 +- .../ghec_v2022_11_28/types/group_1133.py | 11 +- .../ghec_v2022_11_28/types/group_1134.py | 11 +- .../ghec_v2022_11_28/types/group_1135.py | 20 +- .../ghec_v2022_11_28/types/group_1136.py | 21 +- .../ghec_v2022_11_28/types/group_1137.py | 10 +- .../ghec_v2022_11_28/types/group_1138.py | 15 +- .../ghec_v2022_11_28/types/group_1139.py | 14 +- .../ghec_v2022_11_28/types/group_1140.py | 11 +- .../ghec_v2022_11_28/types/group_1141.py | 25 +- .../ghec_v2022_11_28/types/group_1142.py | 19 +- .../ghec_v2022_11_28/types/group_1143.py | 23 +- .../ghec_v2022_11_28/types/group_1144.py | 22 +- .../ghec_v2022_11_28/types/group_1145.py | 57 +- .../ghec_v2022_11_28/types/group_1146.py | 29 +- .../ghec_v2022_11_28/types/group_1147.py | 19 +- .../ghec_v2022_11_28/types/group_1148.py | 15 +- .../ghec_v2022_11_28/types/group_1149.py | 22 + .../ghec_v2022_11_28/types/group_1150.py | 24 + .../ghec_v2022_11_28/types/group_1151.py | 25 + .../ghec_v2022_11_28/types/group_1152.py | 22 + .../ghec_v2022_11_28/types/group_1153.py | 22 + .../ghec_v2022_11_28/types/group_1154.py | 26 + .../ghec_v2022_11_28/types/group_1155.py | 31 + .../ghec_v2022_11_28/types/group_1156.py | 22 + .../ghec_v2022_11_28/types/group_1157.py | 25 + .../ghec_v2022_11_28/types/group_1158.py | 26 + .../ghec_v2022_11_28/types/group_1159.py | 19 + .../ghec_v2022_11_28/types/group_1160.py | 22 + .../ghec_v2022_11_28/types/group_1161.py | 22 + .../ghec_v2022_11_28/types/group_1162.py | 30 + .../ghec_v2022_11_28/types/group_1163.py | 23 + .../ghec_v2022_11_28/types/group_1164.py | 46 + .../ghec_v2022_11_28/types/group_1165.py | 27 + .../ghec_v2022_11_28/types/group_1166.py | 27 + .../ghec_v2022_11_28/types/group_1167.py | 22 + .../ghec_v2022_11_28/types/group_1168.py | 151 + .../ghec_v2022_11_28/webhooks/__init__.py | 20 + .../ghec_v2022_11_28/webhooks/_namespace.py | 26 + .../ghec_v2022_11_28/webhooks/_types.py | 14 + .../exemption_request_push_ruleset.py | 53 + .../webhooks/projects_v2_status_update.py | 47 + githubkit/versions/latest/models.py | 242 +- githubkit/versions/latest/types.py | 246 +- githubkit/versions/latest/webhooks.py | 10 + .../versions/v2022_11_28/models/__init__.py | 8614 ++++++++-------- .../versions/v2022_11_28/models/group_0025.py | 105 +- .../versions/v2022_11_28/models/group_0026.py | 54 +- .../versions/v2022_11_28/models/group_0027.py | 55 +- .../versions/v2022_11_28/models/group_0028.py | 181 +- .../versions/v2022_11_28/models/group_0029.py | 185 +- .../versions/v2022_11_28/models/group_0030.py | 68 +- .../versions/v2022_11_28/models/group_0031.py | 47 +- .../versions/v2022_11_28/models/group_0032.py | 142 +- .../versions/v2022_11_28/models/group_0033.py | 159 +- .../versions/v2022_11_28/models/group_0034.py | 77 +- .../versions/v2022_11_28/models/group_0035.py | 110 +- .../versions/v2022_11_28/models/group_0036.py | 100 +- .../versions/v2022_11_28/models/group_0037.py | 99 +- .../versions/v2022_11_28/models/group_0038.py | 90 +- .../versions/v2022_11_28/models/group_0039.py | 117 +- .../versions/v2022_11_28/models/group_0040.py | 97 +- .../versions/v2022_11_28/models/group_0041.py | 160 +- .../versions/v2022_11_28/models/group_0042.py | 106 +- .../versions/v2022_11_28/models/group_0043.py | 49 +- .../versions/v2022_11_28/models/group_0044.py | 74 +- .../versions/v2022_11_28/models/group_0045.py | 135 +- .../versions/v2022_11_28/models/group_0046.py | 52 +- .../versions/v2022_11_28/models/group_0047.py | 41 +- .../versions/v2022_11_28/models/group_0048.py | 47 +- .../versions/v2022_11_28/models/group_0049.py | 69 +- .../versions/v2022_11_28/models/group_0050.py | 79 +- .../versions/v2022_11_28/models/group_0051.py | 164 +- .../versions/v2022_11_28/models/group_0052.py | 59 +- .../versions/v2022_11_28/models/group_0053.py | 62 +- .../versions/v2022_11_28/models/group_0054.py | 153 +- .../versions/v2022_11_28/models/group_0055.py | 158 +- .../versions/v2022_11_28/models/group_0056.py | 39 +- .../versions/v2022_11_28/models/group_0057.py | 25 +- .../versions/v2022_11_28/models/group_0058.py | 112 +- .../versions/v2022_11_28/models/group_0059.py | 26 +- .../versions/v2022_11_28/models/group_0060.py | 20 +- .../versions/v2022_11_28/models/group_0061.py | 23 +- .../versions/v2022_11_28/models/group_0062.py | 27 +- .../versions/v2022_11_28/models/group_0063.py | 30 +- .../versions/v2022_11_28/models/group_0064.py | 26 +- .../versions/v2022_11_28/models/group_0065.py | 40 +- .../versions/v2022_11_28/models/group_0066.py | 29 +- .../versions/v2022_11_28/models/group_0067.py | 38 +- .../versions/v2022_11_28/models/group_0068.py | 45 +- .../versions/v2022_11_28/models/group_0069.py | 71 +- .../versions/v2022_11_28/models/group_0070.py | 67 +- .../versions/v2022_11_28/models/group_0071.py | 36 +- .../versions/v2022_11_28/models/group_0072.py | 166 +- .../versions/v2022_11_28/models/group_0073.py | 66 +- .../versions/v2022_11_28/models/group_0074.py | 106 +- .../versions/v2022_11_28/models/group_0075.py | 40 +- .../versions/v2022_11_28/models/group_0076.py | 57 +- .../versions/v2022_11_28/models/group_0077.py | 131 +- .../versions/v2022_11_28/models/group_0078.py | 159 +- .../versions/v2022_11_28/models/group_0079.py | 35 +- .../versions/v2022_11_28/models/group_0080.py | 86 +- .../versions/v2022_11_28/models/group_0081.py | 41 +- .../versions/v2022_11_28/models/group_0082.py | 35 +- .../versions/v2022_11_28/models/group_0083.py | 35 +- .../versions/v2022_11_28/models/group_0084.py | 70 +- .../versions/v2022_11_28/models/group_0085.py | 43 +- .../versions/v2022_11_28/models/group_0086.py | 25 +- .../versions/v2022_11_28/models/group_0087.py | 52 +- .../versions/v2022_11_28/models/group_0088.py | 77 +- .../versions/v2022_11_28/models/group_0089.py | 92 +- .../versions/v2022_11_28/models/group_0090.py | 97 +- .../versions/v2022_11_28/models/group_0091.py | 66 +- .../versions/v2022_11_28/models/group_0092.py | 67 +- .../versions/v2022_11_28/models/group_0093.py | 64 +- .../versions/v2022_11_28/models/group_0094.py | 94 +- .../versions/v2022_11_28/models/group_0095.py | 91 +- .../versions/v2022_11_28/models/group_0096.py | 189 +- .../versions/v2022_11_28/models/group_0097.py | 46 +- .../versions/v2022_11_28/models/group_0098.py | 21 +- .../versions/v2022_11_28/models/group_0099.py | 27 +- .../versions/v2022_11_28/models/group_0100.py | 21 +- .../versions/v2022_11_28/models/group_0101.py | 188 +- .../versions/v2022_11_28/models/group_0102.py | 27 +- .../versions/v2022_11_28/models/group_0103.py | 20 +- .../versions/v2022_11_28/models/group_0104.py | 28 +- .../versions/v2022_11_28/models/group_0105.py | 40 +- .../versions/v2022_11_28/models/group_0106.py | 32 +- .../versions/v2022_11_28/models/group_0107.py | 16 +- .../versions/v2022_11_28/models/group_0108.py | 24 +- .../versions/v2022_11_28/models/group_0109.py | 103 +- .../versions/v2022_11_28/models/group_0110.py | 41 +- .../versions/v2022_11_28/models/group_0111.py | 23 +- .../versions/v2022_11_28/models/group_0112.py | 45 +- .../versions/v2022_11_28/models/group_0113.py | 24 +- .../versions/v2022_11_28/models/group_0114.py | 102 +- .../versions/v2022_11_28/models/group_0115.py | 17 +- .../versions/v2022_11_28/models/group_0116.py | 25 +- .../versions/v2022_11_28/models/group_0117.py | 43 +- .../versions/v2022_11_28/models/group_0118.py | 37 +- .../versions/v2022_11_28/models/group_0119.py | 22 +- .../versions/v2022_11_28/models/group_0120.py | 26 +- .../versions/v2022_11_28/models/group_0121.py | 35 +- .../versions/v2022_11_28/models/group_0122.py | 26 +- .../versions/v2022_11_28/models/group_0123.py | 36 +- .../versions/v2022_11_28/models/group_0124.py | 25 +- .../versions/v2022_11_28/models/group_0125.py | 25 +- .../versions/v2022_11_28/models/group_0126.py | 25 +- .../versions/v2022_11_28/models/group_0127.py | 25 +- .../versions/v2022_11_28/models/group_0128.py | 25 +- .../versions/v2022_11_28/models/group_0129.py | 25 +- .../versions/v2022_11_28/models/group_0130.py | 19 +- .../versions/v2022_11_28/models/group_0131.py | 39 +- .../versions/v2022_11_28/models/group_0132.py | 20 +- .../versions/v2022_11_28/models/group_0133.py | 40 +- .../versions/v2022_11_28/models/group_0134.py | 33 +- .../versions/v2022_11_28/models/group_0135.py | 134 +- .../versions/v2022_11_28/models/group_0136.py | 61 +- .../versions/v2022_11_28/models/group_0137.py | 94 +- .../versions/v2022_11_28/models/group_0138.py | 47 +- .../versions/v2022_11_28/models/group_0139.py | 193 +- .../versions/v2022_11_28/models/group_0140.py | 189 +- .../versions/v2022_11_28/models/group_0141.py | 51 +- .../versions/v2022_11_28/models/group_0142.py | 94 +- .../versions/v2022_11_28/models/group_0143.py | 136 +- .../versions/v2022_11_28/models/group_0144.py | 205 +- .../versions/v2022_11_28/models/group_0145.py | 107 +- .../versions/v2022_11_28/models/group_0146.py | 33 +- .../versions/v2022_11_28/models/group_0147.py | 25 +- .../versions/v2022_11_28/models/group_0148.py | 136 +- .../versions/v2022_11_28/models/group_0149.py | 167 +- .../versions/v2022_11_28/models/group_0150.py | 39 +- .../versions/v2022_11_28/models/group_0151.py | 25 +- .../versions/v2022_11_28/models/group_0152.py | 23 +- .../versions/v2022_11_28/models/group_0153.py | 55 +- .../versions/v2022_11_28/models/group_0154.py | 157 +- .../versions/v2022_11_28/models/group_0155.py | 41 +- .../versions/v2022_11_28/models/group_0156.py | 44 +- .../versions/v2022_11_28/models/group_0157.py | 39 +- .../versions/v2022_11_28/models/group_0158.py | 98 +- .../versions/v2022_11_28/models/group_0159.py | 26 +- .../versions/v2022_11_28/models/group_0160.py | 30 +- .../versions/v2022_11_28/models/group_0161.py | 47 +- .../versions/v2022_11_28/models/group_0162.py | 43 +- .../versions/v2022_11_28/models/group_0163.py | 95 +- .../versions/v2022_11_28/models/group_0164.py | 67 +- .../versions/v2022_11_28/models/group_0165.py | 50 +- .../versions/v2022_11_28/models/group_0166.py | 110 +- .../versions/v2022_11_28/models/group_0167.py | 49 +- .../versions/v2022_11_28/models/group_0168.py | 17 +- .../versions/v2022_11_28/models/group_0169.py | 68 +- .../versions/v2022_11_28/models/group_0170.py | 71 +- .../versions/v2022_11_28/models/group_0171.py | 119 +- .../versions/v2022_11_28/models/group_0172.py | 110 +- .../versions/v2022_11_28/models/group_0173.py | 58 +- .../versions/v2022_11_28/models/group_0174.py | 42 +- .../versions/v2022_11_28/models/group_0175.py | 60 +- .../versions/v2022_11_28/models/group_0176.py | 58 +- .../versions/v2022_11_28/models/group_0177.py | 113 +- .../versions/v2022_11_28/models/group_0178.py | 76 +- .../versions/v2022_11_28/models/group_0179.py | 148 +- .../versions/v2022_11_28/models/group_0180.py | 179 +- .../versions/v2022_11_28/models/group_0181.py | 36 +- .../versions/v2022_11_28/models/group_0182.py | 41 +- .../versions/v2022_11_28/models/group_0183.py | 56 +- .../versions/v2022_11_28/models/group_0184.py | 141 +- .../versions/v2022_11_28/models/group_0185.py | 192 +- .../versions/v2022_11_28/models/group_0186.py | 38 +- .../versions/v2022_11_28/models/group_0187.py | 37 +- .../versions/v2022_11_28/models/group_0188.py | 165 +- .../versions/v2022_11_28/models/group_0189.py | 43 +- .../versions/v2022_11_28/models/group_0190.py | 69 +- .../versions/v2022_11_28/models/group_0191.py | 58 +- .../versions/v2022_11_28/models/group_0192.py | 87 +- .../versions/v2022_11_28/models/group_0193.py | 170 +- .../versions/v2022_11_28/models/group_0194.py | 88 +- .../versions/v2022_11_28/models/group_0195.py | 56 +- .../versions/v2022_11_28/models/group_0196.py | 70 +- .../versions/v2022_11_28/models/group_0197.py | 143 +- .../versions/v2022_11_28/models/group_0198.py | 60 +- .../versions/v2022_11_28/models/group_0199.py | 76 +- .../versions/v2022_11_28/models/group_0200.py | 57 +- .../versions/v2022_11_28/models/group_0201.py | 63 +- .../versions/v2022_11_28/models/group_0202.py | 99 +- .../versions/v2022_11_28/models/group_0203.py | 77 +- .../versions/v2022_11_28/models/group_0204.py | 37 +- .../versions/v2022_11_28/models/group_0205.py | 52 +- .../versions/v2022_11_28/models/group_0206.py | 54 +- .../versions/v2022_11_28/models/group_0207.py | 47 +- .../versions/v2022_11_28/models/group_0208.py | 81 +- .../versions/v2022_11_28/models/group_0209.py | 37 +- .../versions/v2022_11_28/models/group_0210.py | 40 +- .../versions/v2022_11_28/models/group_0211.py | 44 +- .../versions/v2022_11_28/models/group_0212.py | 60 +- .../versions/v2022_11_28/models/group_0213.py | 41 +- .../versions/v2022_11_28/models/group_0214.py | 36 +- .../versions/v2022_11_28/models/group_0215.py | 67 +- .../versions/v2022_11_28/models/group_0216.py | 67 +- .../versions/v2022_11_28/models/group_0217.py | 42 +- .../versions/v2022_11_28/models/group_0218.py | 14 +- .../versions/v2022_11_28/models/group_0219.py | 34 +- .../versions/v2022_11_28/models/group_0220.py | 130 +- .../versions/v2022_11_28/models/group_0221.py | 75 +- .../versions/v2022_11_28/models/group_0222.py | 33 +- .../versions/v2022_11_28/models/group_0223.py | 53 +- .../versions/v2022_11_28/models/group_0224.py | 33 +- .../versions/v2022_11_28/models/group_0225.py | 112 +- .../versions/v2022_11_28/models/group_0226.py | 49 +- .../versions/v2022_11_28/models/group_0227.py | 74 +- .../versions/v2022_11_28/models/group_0228.py | 54 +- .../versions/v2022_11_28/models/group_0229.py | 51 +- .../versions/v2022_11_28/models/group_0230.py | 62 +- .../versions/v2022_11_28/models/group_0231.py | 57 +- .../versions/v2022_11_28/models/group_0232.py | 139 +- .../versions/v2022_11_28/models/group_0233.py | 65 +- .../versions/v2022_11_28/models/group_0234.py | 90 +- .../versions/v2022_11_28/models/group_0235.py | 47 +- .../versions/v2022_11_28/models/group_0236.py | 49 +- .../versions/v2022_11_28/models/group_0237.py | 192 +- .../versions/v2022_11_28/models/group_0238.py | 43 +- .../versions/v2022_11_28/models/group_0239.py | 71 +- .../versions/v2022_11_28/models/group_0240.py | 53 +- .../versions/v2022_11_28/models/group_0241.py | 95 +- .../versions/v2022_11_28/models/group_0242.py | 149 +- .../versions/v2022_11_28/models/group_0243.py | 23 +- .../versions/v2022_11_28/models/group_0244.py | 91 +- .../versions/v2022_11_28/models/group_0245.py | 51 +- .../versions/v2022_11_28/models/group_0246.py | 83 +- .../versions/v2022_11_28/models/group_0247.py | 49 +- .../versions/v2022_11_28/models/group_0248.py | 19 +- .../versions/v2022_11_28/models/group_0249.py | 88 +- .../versions/v2022_11_28/models/group_0250.py | 55 +- .../versions/v2022_11_28/models/group_0251.py | 22 +- .../versions/v2022_11_28/models/group_0252.py | 26 +- .../versions/v2022_11_28/models/group_0253.py | 87 +- .../versions/v2022_11_28/models/group_0254.py | 38 +- .../versions/v2022_11_28/models/group_0255.py | 73 +- .../versions/v2022_11_28/models/group_0256.py | 35 +- .../versions/v2022_11_28/models/group_0257.py | 23 +- .../versions/v2022_11_28/models/group_0258.py | 104 +- .../versions/v2022_11_28/models/group_0259.py | 70 +- .../versions/v2022_11_28/models/group_0260.py | 45 +- .../versions/v2022_11_28/models/group_0261.py | 39 +- .../versions/v2022_11_28/models/group_0262.py | 145 +- .../versions/v2022_11_28/models/group_0263.py | 59 +- .../versions/v2022_11_28/models/group_0264.py | 78 +- .../versions/v2022_11_28/models/group_0265.py | 38 +- .../versions/v2022_11_28/models/group_0266.py | 30 +- .../versions/v2022_11_28/models/group_0267.py | 134 +- .../versions/v2022_11_28/models/group_0268.py | 25 +- .../versions/v2022_11_28/models/group_0269.py | 26 +- .../versions/v2022_11_28/models/group_0270.py | 33 +- .../versions/v2022_11_28/models/group_0271.py | 36 +- .../versions/v2022_11_28/models/group_0272.py | 29 +- .../versions/v2022_11_28/models/group_0273.py | 24 +- .../versions/v2022_11_28/models/group_0274.py | 34 +- .../versions/v2022_11_28/models/group_0275.py | 40 +- .../versions/v2022_11_28/models/group_0276.py | 40 +- .../versions/v2022_11_28/models/group_0277.py | 39 +- .../versions/v2022_11_28/models/group_0278.py | 31 +- .../versions/v2022_11_28/models/group_0279.py | 65 +- .../versions/v2022_11_28/models/group_0280.py | 47 +- .../versions/v2022_11_28/models/group_0281.py | 47 +- .../versions/v2022_11_28/models/group_0282.py | 99 +- .../versions/v2022_11_28/models/group_0283.py | 76 +- .../versions/v2022_11_28/models/group_0284.py | 141 +- .../versions/v2022_11_28/models/group_0285.py | 34 +- .../versions/v2022_11_28/models/group_0286.py | 34 +- .../versions/v2022_11_28/models/group_0287.py | 95 +- .../versions/v2022_11_28/models/group_0288.py | 77 +- .../versions/v2022_11_28/models/group_0289.py | 155 +- .../versions/v2022_11_28/models/group_0290.py | 48 +- .../versions/v2022_11_28/models/group_0291.py | 30 +- .../versions/v2022_11_28/models/group_0292.py | 94 +- .../versions/v2022_11_28/models/group_0293.py | 40 +- .../versions/v2022_11_28/models/group_0294.py | 17 +- .../versions/v2022_11_28/models/group_0295.py | 49 +- .../versions/v2022_11_28/models/group_0296.py | 37 +- .../versions/v2022_11_28/models/group_0297.py | 153 +- .../versions/v2022_11_28/models/group_0298.py | 112 +- .../versions/v2022_11_28/models/group_0299.py | 208 +- .../versions/v2022_11_28/models/group_0300.py | 67 +- .../versions/v2022_11_28/models/group_0301.py | 157 +- .../versions/v2022_11_28/models/group_0302.py | 103 +- .../versions/v2022_11_28/models/group_0303.py | 98 +- .../versions/v2022_11_28/models/group_0304.py | 211 +- .../versions/v2022_11_28/models/group_0305.py | 94 +- .../versions/v2022_11_28/models/group_0306.py | 194 +- .../versions/v2022_11_28/models/group_0307.py | 19 +- .../versions/v2022_11_28/models/group_0308.py | 39 +- .../versions/v2022_11_28/models/group_0309.py | 51 +- .../versions/v2022_11_28/models/group_0310.py | 73 +- .../versions/v2022_11_28/models/group_0311.py | 77 +- .../versions/v2022_11_28/models/group_0312.py | 29 +- .../versions/v2022_11_28/models/group_0313.py | 44 +- .../versions/v2022_11_28/models/group_0314.py | 55 +- .../versions/v2022_11_28/models/group_0315.py | 29 +- .../versions/v2022_11_28/models/group_0316.py | 16 +- .../versions/v2022_11_28/models/group_0317.py | 10 +- .../versions/v2022_11_28/models/group_0318.py | 14 +- .../versions/v2022_11_28/models/group_0319.py | 15 +- .../versions/v2022_11_28/models/group_0320.py | 10 +- .../versions/v2022_11_28/models/group_0321.py | 14 +- .../versions/v2022_11_28/models/group_0322.py | 15 +- .../versions/v2022_11_28/models/group_0323.py | 16 +- .../versions/v2022_11_28/models/group_0324.py | 14 +- .../versions/v2022_11_28/models/group_0325.py | 15 +- .../versions/v2022_11_28/models/group_0326.py | 16 +- .../versions/v2022_11_28/models/group_0327.py | 16 +- .../versions/v2022_11_28/models/group_0328.py | 74 +- .../versions/v2022_11_28/models/group_0329.py | 121 +- .../versions/v2022_11_28/models/group_0330.py | 94 +- .../versions/v2022_11_28/models/group_0331.py | 132 +- .../versions/v2022_11_28/models/group_0332.py | 33 +- .../versions/v2022_11_28/models/group_0333.py | 77 +- .../versions/v2022_11_28/models/group_0334.py | 137 +- .../versions/v2022_11_28/models/group_0335.py | 95 +- .../versions/v2022_11_28/models/group_0336.py | 139 +- .../versions/v2022_11_28/models/group_0337.py | 33 +- .../versions/v2022_11_28/models/group_0338.py | 22 +- .../versions/v2022_11_28/models/group_0339.py | 33 +- .../versions/v2022_11_28/models/group_0340.py | 15 +- .../versions/v2022_11_28/models/group_0341.py | 28 +- .../versions/v2022_11_28/models/group_0342.py | 30 +- .../versions/v2022_11_28/models/group_0343.py | 20 +- .../versions/v2022_11_28/models/group_0344.py | 16 +- .../versions/v2022_11_28/models/group_0345.py | 33 +- .../versions/v2022_11_28/models/group_0346.py | 50 +- .../versions/v2022_11_28/models/group_0347.py | 62 +- .../versions/v2022_11_28/models/group_0348.py | 48 +- .../versions/v2022_11_28/models/group_0349.py | 116 +- .../versions/v2022_11_28/models/group_0350.py | 42 +- .../versions/v2022_11_28/models/group_0351.py | 136 +- .../versions/v2022_11_28/models/group_0352.py | 103 +- .../versions/v2022_11_28/models/group_0353.py | 88 +- .../versions/v2022_11_28/models/group_0354.py | 158 +- .../versions/v2022_11_28/models/group_0355.py | 41 +- .../versions/v2022_11_28/models/group_0356.py | 150 +- .../versions/v2022_11_28/models/group_0357.py | 194 +- .../versions/v2022_11_28/models/group_0358.py | 69 +- .../versions/v2022_11_28/models/group_0359.py | 110 +- .../versions/v2022_11_28/models/group_0360.py | 21 +- .../versions/v2022_11_28/models/group_0361.py | 56 +- .../versions/v2022_11_28/models/group_0362.py | 157 +- .../versions/v2022_11_28/models/group_0363.py | 20 +- .../versions/v2022_11_28/models/group_0364.py | 73 +- .../versions/v2022_11_28/models/group_0365.py | 31 +- .../versions/v2022_11_28/models/group_0366.py | 43 +- .../versions/v2022_11_28/models/group_0367.py | 42 +- .../versions/v2022_11_28/models/group_0368.py | 22 +- .../versions/v2022_11_28/models/group_0369.py | 31 +- .../versions/v2022_11_28/models/group_0370.py | 367 +- .../versions/v2022_11_28/models/group_0371.py | 42 +- .../versions/v2022_11_28/models/group_0372.py | 77 +- .../versions/v2022_11_28/models/group_0373.py | 64 +- .../versions/v2022_11_28/models/group_0374.py | 85 +- .../versions/v2022_11_28/models/group_0375.py | 371 +- .../versions/v2022_11_28/models/group_0376.py | 47 +- .../versions/v2022_11_28/models/group_0377.py | 124 +- .../versions/v2022_11_28/models/group_0378.py | 67 +- .../versions/v2022_11_28/models/group_0379.py | 102 +- .../versions/v2022_11_28/models/group_0380.py | 94 +- .../versions/v2022_11_28/models/group_0381.py | 144 +- .../versions/v2022_11_28/models/group_0382.py | 89 +- .../versions/v2022_11_28/models/group_0383.py | 25 +- .../versions/v2022_11_28/models/group_0384.py | 46 +- .../versions/v2022_11_28/models/group_0385.py | 90 +- .../versions/v2022_11_28/models/group_0386.py | 105 +- .../versions/v2022_11_28/models/group_0387.py | 98 +- .../versions/v2022_11_28/models/group_0388.py | 417 +- .../versions/v2022_11_28/models/group_0389.py | 67 +- .../versions/v2022_11_28/models/group_0390.py | 419 +- .../versions/v2022_11_28/models/group_0391.py | 66 +- .../versions/v2022_11_28/models/group_0392.py | 51 +- .../versions/v2022_11_28/models/group_0393.py | 437 +- .../versions/v2022_11_28/models/group_0394.py | 95 +- .../versions/v2022_11_28/models/group_0395.py | 420 +- .../versions/v2022_11_28/models/group_0396.py | 39 +- .../versions/v2022_11_28/models/group_0397.py | 74 +- .../versions/v2022_11_28/models/group_0398.py | 201 +- .../versions/v2022_11_28/models/group_0399.py | 95 +- .../versions/v2022_11_28/models/group_0400.py | 66 +- .../versions/v2022_11_28/models/group_0401.py | 60 +- .../versions/v2022_11_28/models/group_0402.py | 73 +- .../versions/v2022_11_28/models/group_0403.py | 185 +- .../versions/v2022_11_28/models/group_0404.py | 64 +- .../versions/v2022_11_28/models/group_0405.py | 159 +- .../versions/v2022_11_28/models/group_0406.py | 63 +- .../versions/v2022_11_28/models/group_0407.py | 1059 +- .../versions/v2022_11_28/models/group_0408.py | 182 +- .../versions/v2022_11_28/models/group_0409.py | 102 +- .../versions/v2022_11_28/models/group_0410.py | 149 +- .../versions/v2022_11_28/models/group_0411.py | 236 +- .../versions/v2022_11_28/models/group_0412.py | 96 +- .../versions/v2022_11_28/models/group_0413.py | 1072 +- .../versions/v2022_11_28/models/group_0414.py | 218 +- .../versions/v2022_11_28/models/group_0415.py | 134 +- .../versions/v2022_11_28/models/group_0416.py | 167 +- .../versions/v2022_11_28/models/group_0417.py | 171 +- .../versions/v2022_11_28/models/group_0418.py | 89 +- .../versions/v2022_11_28/models/group_0419.py | 83 +- .../versions/v2022_11_28/models/group_0420.py | 142 +- .../versions/v2022_11_28/models/group_0421.py | 157 +- .../versions/v2022_11_28/models/group_0422.py | 170 +- .../versions/v2022_11_28/models/group_0423.py | 77 +- .../versions/v2022_11_28/models/group_0424.py | 44 +- .../versions/v2022_11_28/models/group_0425.py | 27 +- .../versions/v2022_11_28/models/group_0426.py | 49 +- .../versions/v2022_11_28/models/group_0427.py | 49 +- .../versions/v2022_11_28/models/group_0428.py | 214 +- .../versions/v2022_11_28/models/group_0429.py | 20 +- .../versions/v2022_11_28/models/group_0430.py | 12 +- .../versions/v2022_11_28/models/group_0431.py | 385 +- .../versions/v2022_11_28/models/group_0432.py | 398 +- .../versions/v2022_11_28/models/group_0433.py | 384 +- .../versions/v2022_11_28/models/group_0434.py | 212 +- .../versions/v2022_11_28/models/group_0435.py | 199 +- .../versions/v2022_11_28/models/group_0436.py | 190 +- .../versions/v2022_11_28/models/group_0437.py | 415 +- .../versions/v2022_11_28/models/group_0438.py | 436 +- .../versions/v2022_11_28/models/group_0439.py | 421 +- .../versions/v2022_11_28/models/group_0440.py | 221 +- .../versions/v2022_11_28/models/group_0441.py | 200 +- .../versions/v2022_11_28/models/group_0442.py | 180 +- .../versions/v2022_11_28/models/group_0443.py | 197 +- .../versions/v2022_11_28/models/group_0444.py | 182 +- .../versions/v2022_11_28/models/group_0445.py | 174 +- .../versions/v2022_11_28/models/group_0446.py | 131 +- .../versions/v2022_11_28/models/group_0447.py | 46 +- .../versions/v2022_11_28/models/group_0448.py | 44 +- .../versions/v2022_11_28/models/group_0449.py | 50 +- .../versions/v2022_11_28/models/group_0450.py | 44 +- .../versions/v2022_11_28/models/group_0451.py | 53 +- .../versions/v2022_11_28/models/group_0452.py | 38 +- .../versions/v2022_11_28/models/group_0453.py | 22 +- .../versions/v2022_11_28/models/group_0454.py | 36 +- .../versions/v2022_11_28/models/group_0455.py | 36 +- .../versions/v2022_11_28/models/group_0456.py | 648 +- .../versions/v2022_11_28/models/group_0457.py | 61 +- .../versions/v2022_11_28/models/group_0458.py | 454 +- .../versions/v2022_11_28/models/group_0459.py | 454 +- .../versions/v2022_11_28/models/group_0460.py | 483 +- .../versions/v2022_11_28/models/group_0461.py | 956 +- .../versions/v2022_11_28/models/group_0462.py | 640 +- .../versions/v2022_11_28/models/group_0463.py | 98 +- .../versions/v2022_11_28/models/group_0464.py | 446 +- .../versions/v2022_11_28/models/group_0465.py | 448 +- .../versions/v2022_11_28/models/group_0466.py | 485 +- .../versions/v2022_11_28/models/group_0467.py | 959 +- .../versions/v2022_11_28/models/group_0468.py | 24 +- .../versions/v2022_11_28/models/group_0469.py | 61 +- .../versions/v2022_11_28/models/group_0470.py | 50 +- .../versions/v2022_11_28/models/group_0471.py | 26 +- .../versions/v2022_11_28/models/group_0472.py | 24 +- .../versions/v2022_11_28/models/group_0473.py | 43 +- .../versions/v2022_11_28/models/group_0474.py | 22 +- .../versions/v2022_11_28/models/group_0475.py | 24 +- .../versions/v2022_11_28/models/group_0476.py | 72 +- .../versions/v2022_11_28/models/group_0477.py | 37 +- .../versions/v2022_11_28/models/group_0478.py | 24 +- .../versions/v2022_11_28/models/group_0479.py | 22 +- .../versions/v2022_11_28/models/group_0480.py | 22 +- .../versions/v2022_11_28/models/group_0481.py | 34 +- .../versions/v2022_11_28/models/group_0482.py | 181 +- .../versions/v2022_11_28/models/group_0483.py | 187 +- .../versions/v2022_11_28/models/group_0484.py | 51 +- .../versions/v2022_11_28/models/group_0485.py | 155 +- .../versions/v2022_11_28/models/group_0486.py | 41 +- .../versions/v2022_11_28/models/group_0487.py | 47 +- .../versions/v2022_11_28/models/group_0488.py | 193 +- .../versions/v2022_11_28/models/group_0489.py | 195 +- .../versions/v2022_11_28/models/group_0490.py | 58 +- .../versions/v2022_11_28/models/group_0491.py | 172 +- .../versions/v2022_11_28/models/group_0492.py | 64 +- .../versions/v2022_11_28/models/group_0493.py | 54 +- .../versions/v2022_11_28/models/group_0494.py | 114 +- .../versions/v2022_11_28/models/group_0495.py | 20 +- .../versions/v2022_11_28/models/group_0496.py | 46 +- .../versions/v2022_11_28/models/group_0497.py | 131 +- .../versions/v2022_11_28/models/group_0498.py | 193 +- .../versions/v2022_11_28/models/group_0499.py | 191 +- .../versions/v2022_11_28/models/group_0500.py | 124 +- .../versions/v2022_11_28/models/group_0501.py | 66 +- .../versions/v2022_11_28/models/group_0502.py | 75 +- .../versions/v2022_11_28/models/group_0503.py | 127 +- .../versions/v2022_11_28/models/group_0504.py | 219 +- .../versions/v2022_11_28/models/group_0505.py | 207 +- .../versions/v2022_11_28/models/group_0506.py | 77 +- .../versions/v2022_11_28/models/group_0507.py | 110 +- .../versions/v2022_11_28/models/group_0508.py | 75 +- .../versions/v2022_11_28/models/group_0509.py | 187 +- .../versions/v2022_11_28/models/group_0510.py | 237 +- .../versions/v2022_11_28/models/group_0511.py | 125 +- .../versions/v2022_11_28/models/group_0512.py | 60 +- .../versions/v2022_11_28/models/group_0513.py | 103 +- .../versions/v2022_11_28/models/group_0514.py | 124 +- .../versions/v2022_11_28/models/group_0515.py | 217 +- .../versions/v2022_11_28/models/group_0516.py | 207 +- .../versions/v2022_11_28/models/group_0517.py | 77 +- .../versions/v2022_11_28/models/group_0518.py | 108 +- .../versions/v2022_11_28/models/group_0519.py | 77 +- .../versions/v2022_11_28/models/group_0520.py | 183 +- .../versions/v2022_11_28/models/group_0521.py | 235 +- .../versions/v2022_11_28/models/group_0522.py | 125 +- .../versions/v2022_11_28/models/group_0523.py | 60 +- .../versions/v2022_11_28/models/group_0524.py | 101 +- .../versions/v2022_11_28/models/group_0525.py | 125 +- .../versions/v2022_11_28/models/group_0526.py | 218 +- .../versions/v2022_11_28/models/group_0527.py | 207 +- .../versions/v2022_11_28/models/group_0528.py | 75 +- .../versions/v2022_11_28/models/group_0529.py | 109 +- .../versions/v2022_11_28/models/group_0530.py | 69 +- .../versions/v2022_11_28/models/group_0531.py | 118 +- .../versions/v2022_11_28/models/group_0532.py | 263 +- .../versions/v2022_11_28/models/group_0533.py | 213 +- .../versions/v2022_11_28/models/group_0534.py | 58 +- .../versions/v2022_11_28/models/group_0535.py | 102 +- .../versions/v2022_11_28/models/group_0536.py | 121 +- .../versions/v2022_11_28/models/group_0537.py | 123 +- .../versions/v2022_11_28/models/group_0538.py | 197 +- .../versions/v2022_11_28/models/group_0539.py | 241 +- .../versions/v2022_11_28/models/group_0540.py | 52 +- .../versions/v2022_11_28/models/group_0541.py | 103 +- .../versions/v2022_11_28/models/group_0542.py | 404 +- .../versions/v2022_11_28/models/group_0543.py | 416 +- .../versions/v2022_11_28/models/group_0544.py | 503 +- .../versions/v2022_11_28/models/group_0545.py | 506 +- .../versions/v2022_11_28/models/group_0546.py | 452 +- .../versions/v2022_11_28/models/group_0547.py | 412 +- .../versions/v2022_11_28/models/group_0548.py | 778 +- .../versions/v2022_11_28/models/group_0549.py | 466 +- .../versions/v2022_11_28/models/group_0550.py | 174 +- .../versions/v2022_11_28/models/group_0551.py | 403 +- .../versions/v2022_11_28/models/group_0552.py | 450 +- .../versions/v2022_11_28/models/group_0553.py | 458 +- .../versions/v2022_11_28/models/group_0554.py | 785 +- .../versions/v2022_11_28/models/group_0555.py | 22 +- .../versions/v2022_11_28/models/group_0556.py | 464 +- .../versions/v2022_11_28/models/group_0557.py | 692 +- .../versions/v2022_11_28/models/group_0558.py | 85 +- .../versions/v2022_11_28/models/group_0559.py | 37 +- .../versions/v2022_11_28/models/group_0560.py | 468 +- .../versions/v2022_11_28/models/group_0561.py | 92 +- .../versions/v2022_11_28/models/group_0562.py | 94 +- .../versions/v2022_11_28/models/group_0563.py | 34 +- .../versions/v2022_11_28/models/group_0564.py | 97 +- .../versions/v2022_11_28/models/group_0565.py | 77 +- .../versions/v2022_11_28/models/group_0566.py | 87 +- .../versions/v2022_11_28/models/group_0567.py | 117 +- .../versions/v2022_11_28/models/group_0568.py | 117 +- .../versions/v2022_11_28/models/group_0569.py | 39 +- .../versions/v2022_11_28/models/group_0570.py | 84 +- .../versions/v2022_11_28/models/group_0571.py | 154 +- .../versions/v2022_11_28/models/group_0572.py | 29 +- .../versions/v2022_11_28/models/group_0573.py | 75 +- .../versions/v2022_11_28/models/group_0574.py | 75 +- .../versions/v2022_11_28/models/group_0575.py | 91 +- .../versions/v2022_11_28/models/group_0576.py | 38 +- .../versions/v2022_11_28/models/group_0577.py | 125 +- .../versions/v2022_11_28/models/group_0578.py | 35 +- .../versions/v2022_11_28/models/group_0579.py | 35 +- .../versions/v2022_11_28/models/group_0580.py | 34 +- .../versions/v2022_11_28/models/group_0581.py | 132 +- .../versions/v2022_11_28/models/group_0582.py | 34 +- .../versions/v2022_11_28/models/group_0583.py | 51 +- .../versions/v2022_11_28/models/group_0584.py | 76 +- .../versions/v2022_11_28/models/group_0585.py | 31 +- .../versions/v2022_11_28/models/group_0586.py | 104 +- .../versions/v2022_11_28/models/group_0587.py | 596 +- .../versions/v2022_11_28/models/group_0588.py | 35 +- .../versions/v2022_11_28/models/group_0589.py | 130 +- .../versions/v2022_11_28/models/group_0590.py | 201 +- .../versions/v2022_11_28/models/group_0591.py | 89 +- .../versions/v2022_11_28/models/group_0592.py | 97 +- .../versions/v2022_11_28/models/group_0593.py | 594 +- .../versions/v2022_11_28/models/group_0594.py | 45 +- .../versions/v2022_11_28/models/group_0595.py | 107 +- .../versions/v2022_11_28/models/group_0596.py | 190 +- .../versions/v2022_11_28/models/group_0597.py | 128 +- .../versions/v2022_11_28/models/group_0598.py | 42 +- .../versions/v2022_11_28/models/group_0599.py | 62 +- .../versions/v2022_11_28/models/group_0600.py | 42 +- .../versions/v2022_11_28/models/group_0601.py | 99 +- .../versions/v2022_11_28/models/group_0602.py | 57 +- .../versions/v2022_11_28/models/group_0603.py | 136 +- .../versions/v2022_11_28/models/group_0604.py | 62 +- .../versions/v2022_11_28/models/group_0605.py | 107 +- .../versions/v2022_11_28/models/group_0606.py | 24 +- .../versions/v2022_11_28/models/group_0607.py | 89 +- .../versions/v2022_11_28/models/group_0608.py | 50 +- .../versions/v2022_11_28/models/group_0609.py | 109 +- .../versions/v2022_11_28/models/group_0610.py | 87 +- .../versions/v2022_11_28/models/group_0611.py | 94 +- .../versions/v2022_11_28/models/group_0612.py | 31 +- .../versions/v2022_11_28/models/group_0613.py | 64 +- .../versions/v2022_11_28/models/group_0614.py | 33 +- .../versions/v2022_11_28/models/group_0615.py | 57 +- .../versions/v2022_11_28/models/group_0616.py | 38 +- .../versions/v2022_11_28/models/group_0617.py | 35 +- .../versions/v2022_11_28/models/group_0618.py | 94 +- .../versions/v2022_11_28/models/group_0619.py | 80 +- .../versions/v2022_11_28/models/group_0620.py | 59 +- .../versions/v2022_11_28/models/group_0621.py | 22 +- .../versions/v2022_11_28/models/group_0622.py | 25 +- .../versions/v2022_11_28/models/group_0623.py | 66 +- .../versions/v2022_11_28/models/group_0624.py | 82 +- .../versions/v2022_11_28/models/group_0625.py | 20 +- .../versions/v2022_11_28/models/group_0626.py | 46 +- .../versions/v2022_11_28/models/group_0627.py | 33 +- .../versions/v2022_11_28/models/group_0628.py | 1145 +-- .../versions/v2022_11_28/models/group_0629.py | 1224 +-- .../versions/v2022_11_28/models/group_0630.py | 1193 +-- .../versions/v2022_11_28/models/group_0631.py | 37 +- .../versions/v2022_11_28/models/group_0632.py | 35 +- .../versions/v2022_11_28/models/group_0633.py | 45 +- .../versions/v2022_11_28/models/group_0634.py | 1142 +-- .../versions/v2022_11_28/models/group_0635.py | 131 +- .../versions/v2022_11_28/models/group_0636.py | 1127 +-- .../versions/v2022_11_28/models/group_0637.py | 348 +- .../versions/v2022_11_28/models/group_0638.py | 494 +- .../versions/v2022_11_28/models/group_0639.py | 1191 ++- .../versions/v2022_11_28/models/group_0640.py | 22 +- .../versions/v2022_11_28/models/group_0641.py | 22 +- .../versions/v2022_11_28/models/group_0642.py | 33 +- .../versions/v2022_11_28/models/group_0643.py | 785 +- .../versions/v2022_11_28/models/group_0644.py | 1184 +-- .../versions/v2022_11_28/models/group_0645.py | 556 +- .../versions/v2022_11_28/models/group_0646.py | 583 +- .../versions/v2022_11_28/models/group_0647.py | 542 +- .../versions/v2022_11_28/models/group_0648.py | 1279 +-- .../versions/v2022_11_28/models/group_0649.py | 1295 +-- .../versions/v2022_11_28/models/group_0650.py | 1252 +-- .../versions/v2022_11_28/models/group_0651.py | 1276 +-- .../versions/v2022_11_28/models/group_0652.py | 573 +- .../versions/v2022_11_28/models/group_0653.py | 619 +- .../versions/v2022_11_28/models/group_0654.py | 692 +- .../versions/v2022_11_28/models/group_0655.py | 595 +- .../versions/v2022_11_28/models/group_0656.py | 507 +- .../versions/v2022_11_28/models/group_0657.py | 610 +- .../versions/v2022_11_28/models/group_0658.py | 634 +- .../versions/v2022_11_28/models/group_0659.py | 1253 ++- .../versions/v2022_11_28/models/group_0660.py | 1280 ++- .../versions/v2022_11_28/models/group_0661.py | 1160 ++- .../versions/v2022_11_28/models/group_0662.py | 1522 ++- .../versions/v2022_11_28/models/group_0663.py | 1331 ++- .../versions/v2022_11_28/models/group_0664.py | 1186 ++- .../versions/v2022_11_28/models/group_0665.py | 1227 ++- .../versions/v2022_11_28/models/group_0666.py | 1140 ++- .../versions/v2022_11_28/models/group_0667.py | 1125 ++- .../versions/v2022_11_28/models/group_0668.py | 405 +- .../versions/v2022_11_28/models/group_0669.py | 176 +- .../versions/v2022_11_28/models/group_0670.py | 115 +- .../versions/v2022_11_28/models/group_0671.py | 646 +- .../versions/v2022_11_28/models/group_0672.py | 33 +- .../versions/v2022_11_28/models/group_0673.py | 108 +- .../versions/v2022_11_28/models/group_0674.py | 232 +- .../versions/v2022_11_28/models/group_0675.py | 25 +- .../versions/v2022_11_28/models/group_0676.py | 25 +- .../versions/v2022_11_28/models/group_0677.py | 75 +- .../versions/v2022_11_28/models/group_0678.py | 184 +- .../versions/v2022_11_28/models/group_0679.py | 82 +- .../versions/v2022_11_28/models/group_0680.py | 28 +- .../versions/v2022_11_28/models/group_0681.py | 28 +- .../versions/v2022_11_28/models/group_0682.py | 27 +- .../versions/v2022_11_28/models/group_0683.py | 54 +- .../versions/v2022_11_28/models/group_0684.py | 28 +- .../versions/v2022_11_28/models/group_0685.py | 28 +- .../versions/v2022_11_28/models/group_0686.py | 30 +- .../versions/v2022_11_28/models/group_0687.py | 74 +- .../versions/v2022_11_28/models/group_0688.py | 100 +- .../versions/v2022_11_28/models/group_0689.py | 129 +- .../versions/v2022_11_28/models/group_0690.py | 130 +- .../versions/v2022_11_28/models/group_0691.py | 163 +- .../versions/v2022_11_28/models/group_0692.py | 117 +- .../versions/v2022_11_28/models/group_0693.py | 28 +- .../versions/v2022_11_28/models/group_0694.py | 33 +- .../versions/v2022_11_28/models/group_0695.py | 97 +- .../versions/v2022_11_28/models/group_0696.py | 68 +- .../versions/v2022_11_28/models/group_0697.py | 112 +- .../versions/v2022_11_28/models/group_0698.py | 132 +- .../versions/v2022_11_28/models/group_0699.py | 372 +- .../versions/v2022_11_28/models/group_0700.py | 128 +- .../versions/v2022_11_28/models/group_0701.py | 111 +- .../versions/v2022_11_28/models/group_0702.py | 25 +- .../versions/v2022_11_28/models/group_0703.py | 30 +- .../versions/v2022_11_28/models/group_0704.py | 97 +- .../versions/v2022_11_28/models/group_0705.py | 35 +- .../versions/v2022_11_28/models/group_0706.py | 200 +- .../versions/v2022_11_28/models/group_0707.py | 30 +- .../versions/v2022_11_28/models/group_0708.py | 299 +- .../versions/v2022_11_28/models/group_0709.py | 18 +- .../versions/v2022_11_28/models/group_0710.py | 30 +- .../versions/v2022_11_28/models/group_0711.py | 30 +- .../versions/v2022_11_28/models/group_0712.py | 54 +- .../versions/v2022_11_28/models/group_0713.py | 33 +- .../versions/v2022_11_28/models/group_0714.py | 35 +- .../versions/v2022_11_28/models/group_0715.py | 151 +- .../versions/v2022_11_28/models/group_0716.py | 34 +- .../versions/v2022_11_28/models/group_0717.py | 44 +- .../versions/v2022_11_28/models/group_0718.py | 236 +- .../versions/v2022_11_28/models/group_0719.py | 61 +- .../versions/v2022_11_28/models/group_0720.py | 56 +- .../versions/v2022_11_28/models/group_0721.py | 73 +- .../versions/v2022_11_28/models/group_0722.py | 50 +- .../versions/v2022_11_28/models/group_0723.py | 37 +- .../versions/v2022_11_28/models/group_0724.py | 242 +- .../versions/v2022_11_28/models/group_0725.py | 231 +- .../versions/v2022_11_28/models/group_0726.py | 234 +- .../versions/v2022_11_28/models/group_0727.py | 418 +- .../versions/v2022_11_28/models/group_0728.py | 246 +- .../versions/v2022_11_28/models/group_0729.py | 53 +- .../versions/v2022_11_28/models/group_0730.py | 56 +- .../versions/v2022_11_28/models/group_0731.py | 121 +- .../versions/v2022_11_28/models/group_0732.py | 101 +- .../versions/v2022_11_28/models/group_0733.py | 280 +- .../versions/v2022_11_28/models/group_0734.py | 262 +- .../versions/v2022_11_28/models/group_0735.py | 267 +- .../versions/v2022_11_28/models/group_0736.py | 369 +- .../versions/v2022_11_28/models/group_0737.py | 261 +- .../versions/v2022_11_28/models/group_0738.py | 79 +- .../versions/v2022_11_28/models/group_0739.py | 471 +- .../versions/v2022_11_28/models/group_0740.py | 489 +- .../versions/v2022_11_28/models/group_0741.py | 496 +- .../versions/v2022_11_28/models/group_0742.py | 81 +- .../versions/v2022_11_28/models/group_0743.py | 120 +- .../versions/v2022_11_28/models/group_0744.py | 78 +- .../versions/v2022_11_28/models/group_0745.py | 61 +- .../versions/v2022_11_28/models/group_0746.py | 96 +- .../versions/v2022_11_28/models/group_0747.py | 100 +- .../versions/v2022_11_28/models/group_0748.py | 488 +- .../versions/v2022_11_28/models/group_0749.py | 482 +- .../versions/v2022_11_28/models/group_0750.py | 486 +- .../versions/v2022_11_28/models/group_0751.py | 54 +- .../versions/v2022_11_28/models/group_0752.py | 17 +- .../versions/v2022_11_28/models/group_0753.py | 25 +- .../versions/v2022_11_28/models/group_0754.py | 38 +- .../versions/v2022_11_28/models/group_0755.py | 38 +- .../versions/v2022_11_28/models/group_0756.py | 41 +- .../versions/v2022_11_28/models/group_0757.py | 12 +- .../versions/v2022_11_28/models/group_0758.py | 12 +- .../versions/v2022_11_28/models/group_0759.py | 14 +- .../versions/v2022_11_28/models/group_0760.py | 49 +- .../versions/v2022_11_28/models/group_0761.py | 25 +- .../versions/v2022_11_28/models/group_0762.py | 20 +- .../versions/v2022_11_28/models/group_0763.py | 10 +- .../versions/v2022_11_28/models/group_0764.py | 34 +- .../versions/v2022_11_28/models/group_0765.py | 141 +- .../versions/v2022_11_28/models/group_0766.py | 53 +- .../versions/v2022_11_28/models/group_0767.py | 20 +- .../versions/v2022_11_28/models/group_0768.py | 15 +- .../versions/v2022_11_28/models/group_0769.py | 16 +- .../versions/v2022_11_28/models/group_0770.py | 15 +- .../versions/v2022_11_28/models/group_0771.py | 25 +- .../versions/v2022_11_28/models/group_0772.py | 23 +- .../versions/v2022_11_28/models/group_0773.py | 17 +- .../versions/v2022_11_28/models/group_0774.py | 17 +- .../versions/v2022_11_28/models/group_0775.py | 123 +- .../versions/v2022_11_28/models/group_0776.py | 33 +- .../versions/v2022_11_28/models/group_0777.py | 37 +- .../versions/v2022_11_28/models/group_0778.py | 31 +- .../versions/v2022_11_28/models/group_0779.py | 15 +- .../versions/v2022_11_28/models/group_0780.py | 15 +- .../versions/v2022_11_28/models/group_0781.py | 44 +- .../versions/v2022_11_28/models/group_0782.py | 25 +- .../versions/v2022_11_28/models/group_0783.py | 26 +- .../versions/v2022_11_28/models/group_0784.py | 16 +- .../versions/v2022_11_28/models/group_0785.py | 14 +- .../versions/v2022_11_28/models/group_0786.py | 12 +- .../versions/v2022_11_28/models/group_0787.py | 41 +- .../versions/v2022_11_28/models/group_0788.py | 29 +- .../versions/v2022_11_28/models/group_0789.py | 16 +- .../versions/v2022_11_28/models/group_0790.py | 42 +- .../versions/v2022_11_28/models/group_0791.py | 42 +- .../versions/v2022_11_28/models/group_0792.py | 25 +- .../versions/v2022_11_28/models/group_0793.py | 23 +- .../versions/v2022_11_28/models/group_0794.py | 16 +- .../versions/v2022_11_28/models/group_0795.py | 17 +- .../versions/v2022_11_28/models/group_0796.py | 81 +- .../versions/v2022_11_28/models/group_0797.py | 64 +- .../versions/v2022_11_28/models/group_0798.py | 65 +- .../versions/v2022_11_28/models/group_0799.py | 23 +- .../versions/v2022_11_28/models/group_0800.py | 20 +- .../versions/v2022_11_28/models/group_0801.py | 27 +- .../versions/v2022_11_28/models/group_0802.py | 36 +- .../versions/v2022_11_28/models/group_0803.py | 32 +- .../versions/v2022_11_28/models/group_0804.py | 16 +- .../versions/v2022_11_28/models/group_0805.py | 13 +- .../versions/v2022_11_28/models/group_0806.py | 55 +- .../versions/v2022_11_28/models/group_0807.py | 48 +- .../versions/v2022_11_28/models/group_0808.py | 28 +- .../versions/v2022_11_28/models/group_0809.py | 15 +- .../versions/v2022_11_28/models/group_0810.py | 22 +- .../versions/v2022_11_28/models/group_0811.py | 32 +- .../versions/v2022_11_28/models/group_0812.py | 16 +- .../versions/v2022_11_28/models/group_0813.py | 18 +- .../versions/v2022_11_28/models/group_0814.py | 59 +- .../versions/v2022_11_28/models/group_0815.py | 20 +- .../versions/v2022_11_28/models/group_0816.py | 27 +- .../versions/v2022_11_28/models/group_0817.py | 19 +- .../versions/v2022_11_28/models/group_0818.py | 15 +- .../versions/v2022_11_28/models/group_0819.py | 34 +- .../versions/v2022_11_28/models/group_0820.py | 29 +- .../versions/v2022_11_28/models/group_0821.py | 24 +- .../versions/v2022_11_28/models/group_0822.py | 19 +- .../versions/v2022_11_28/models/group_0823.py | 49 +- .../versions/v2022_11_28/models/group_0824.py | 47 +- .../versions/v2022_11_28/models/group_0825.py | 29 +- .../versions/v2022_11_28/models/group_0826.py | 48 +- .../versions/v2022_11_28/models/group_0827.py | 23 +- .../versions/v2022_11_28/models/group_0828.py | 118 +- .../versions/v2022_11_28/models/group_0829.py | 89 +- .../versions/v2022_11_28/models/group_0830.py | 86 +- .../versions/v2022_11_28/models/group_0831.py | 48 +- .../versions/v2022_11_28/models/group_0832.py | 31 +- .../versions/v2022_11_28/models/group_0833.py | 23 +- .../versions/v2022_11_28/models/group_0834.py | 17 +- .../versions/v2022_11_28/models/group_0835.py | 12 +- .../versions/v2022_11_28/models/group_0836.py | 19 +- .../versions/v2022_11_28/models/group_0837.py | 37 +- .../versions/v2022_11_28/models/group_0838.py | 23 +- .../versions/v2022_11_28/models/group_0839.py | 21 +- .../versions/v2022_11_28/models/group_0840.py | 15 +- .../versions/v2022_11_28/models/group_0841.py | 14 +- .../versions/v2022_11_28/models/group_0842.py | 21 +- .../versions/v2022_11_28/models/group_0843.py | 34 +- .../versions/v2022_11_28/models/group_0844.py | 23 +- .../versions/v2022_11_28/models/group_0845.py | 122 +- .../versions/v2022_11_28/models/group_0846.py | 87 +- .../versions/v2022_11_28/models/group_0847.py | 91 +- .../versions/v2022_11_28/models/group_0848.py | 65 +- .../versions/v2022_11_28/models/group_0849.py | 56 +- .../versions/v2022_11_28/models/group_0850.py | 17 +- .../versions/v2022_11_28/models/group_0851.py | 19 +- .../versions/v2022_11_28/models/group_0852.py | 15 +- .../versions/v2022_11_28/models/group_0853.py | 32 +- .../versions/v2022_11_28/models/group_0854.py | 25 +- .../versions/v2022_11_28/models/group_0855.py | 18 +- .../versions/v2022_11_28/models/group_0856.py | 16 +- .../versions/v2022_11_28/models/group_0857.py | 25 +- .../versions/v2022_11_28/models/group_0858.py | 11 +- .../versions/v2022_11_28/models/group_0859.py | 15 +- .../versions/v2022_11_28/models/group_0860.py | 17 +- .../versions/v2022_11_28/models/group_0861.py | 11 +- .../versions/v2022_11_28/models/group_0862.py | 204 +- .../versions/v2022_11_28/models/group_0863.py | 24 +- .../versions/v2022_11_28/models/group_0864.py | 16 +- .../versions/v2022_11_28/models/group_0865.py | 34 +- .../versions/v2022_11_28/models/group_0866.py | 29 +- .../versions/v2022_11_28/models/group_0867.py | 15 +- .../versions/v2022_11_28/models/group_0868.py | 20 +- .../versions/v2022_11_28/models/group_0869.py | 20 +- .../versions/v2022_11_28/models/group_0870.py | 46 +- .../versions/v2022_11_28/models/group_0871.py | 16 +- .../versions/v2022_11_28/models/group_0872.py | 18 +- .../versions/v2022_11_28/models/group_0873.py | 17 +- .../versions/v2022_11_28/models/group_0874.py | 31 +- .../versions/v2022_11_28/models/group_0875.py | 19 +- .../versions/v2022_11_28/models/group_0876.py | 19 +- .../versions/v2022_11_28/models/group_0877.py | 18 +- .../versions/v2022_11_28/models/group_0878.py | 13 +- .../versions/v2022_11_28/models/group_0879.py | 232 +- .../versions/v2022_11_28/models/group_0880.py | 12 +- .../versions/v2022_11_28/models/group_0881.py | 17 +- .../versions/v2022_11_28/models/group_0882.py | 22 +- .../versions/v2022_11_28/models/group_0883.py | 16 +- .../versions/v2022_11_28/models/group_0884.py | 18 +- .../versions/v2022_11_28/models/group_0885.py | 45 +- .../versions/v2022_11_28/models/group_0886.py | 40 +- .../versions/v2022_11_28/models/group_0887.py | 27 +- .../versions/v2022_11_28/models/group_0888.py | 24 +- .../versions/v2022_11_28/models/group_0889.py | 222 +- .../versions/v2022_11_28/models/group_0890.py | 98 +- .../versions/v2022_11_28/models/group_0891.py | 57 +- .../versions/v2022_11_28/models/group_0892.py | 21 +- .../versions/v2022_11_28/models/group_0893.py | 21 +- .../versions/v2022_11_28/models/group_0894.py | 29 +- .../versions/v2022_11_28/models/group_0895.py | 20 +- .../versions/v2022_11_28/models/group_0896.py | 20 +- .../versions/v2022_11_28/models/group_0897.py | 19 +- .../versions/v2022_11_28/models/group_0898.py | 25 +- .../versions/v2022_11_28/models/group_0899.py | 17 +- .../versions/v2022_11_28/models/group_0900.py | 19 +- .../versions/v2022_11_28/models/group_0901.py | 19 +- .../versions/v2022_11_28/models/group_0902.py | 45 +- .../versions/v2022_11_28/models/group_0903.py | 41 +- .../versions/v2022_11_28/models/group_0904.py | 15 +- .../versions/v2022_11_28/models/group_0905.py | 126 +- .../versions/v2022_11_28/models/group_0906.py | 60 +- .../versions/v2022_11_28/models/group_0907.py | 126 +- .../versions/v2022_11_28/models/group_0908.py | 106 +- .../versions/v2022_11_28/models/group_0909.py | 236 +- .../versions/v2022_11_28/models/group_0910.py | 118 +- .../versions/v2022_11_28/models/group_0911.py | 56 +- .../versions/v2022_11_28/models/group_0912.py | 35 +- .../versions/v2022_11_28/models/group_0913.py | 21 +- .../versions/v2022_11_28/models/group_0914.py | 40 +- .../versions/v2022_11_28/models/group_0915.py | 36 +- .../versions/v2022_11_28/models/group_0916.py | 36 +- .../versions/v2022_11_28/models/group_0917.py | 38 +- .../versions/v2022_11_28/models/group_0918.py | 55 +- .../versions/v2022_11_28/models/group_0919.py | 17 +- .../versions/v2022_11_28/models/group_0920.py | 60 +- .../versions/v2022_11_28/models/group_0921.py | 31 +- .../versions/v2022_11_28/models/group_0922.py | 17 +- .../versions/v2022_11_28/models/group_0923.py | 36 +- .../versions/v2022_11_28/models/group_0924.py | 29 +- .../versions/v2022_11_28/models/group_0925.py | 109 +- .../versions/v2022_11_28/models/group_0926.py | 59 +- .../versions/v2022_11_28/models/group_0927.py | 65 +- .../versions/v2022_11_28/models/group_0928.py | 107 +- .../versions/v2022_11_28/models/group_0929.py | 64 +- .../versions/v2022_11_28/models/group_0930.py | 68 +- .../versions/v2022_11_28/models/group_0931.py | 66 +- .../versions/v2022_11_28/models/group_0932.py | 64 +- .../versions/v2022_11_28/models/group_0933.py | 32 +- .../versions/v2022_11_28/models/group_0934.py | 46 +- .../versions/v2022_11_28/models/group_0935.py | 31 +- .../versions/v2022_11_28/models/group_0936.py | 35 +- .../versions/v2022_11_28/models/group_0937.py | 60 +- .../versions/v2022_11_28/models/group_0938.py | 49 +- .../versions/v2022_11_28/models/group_0939.py | 53 +- .../versions/v2022_11_28/models/group_0940.py | 68 +- .../versions/v2022_11_28/models/group_0941.py | 73 +- .../versions/v2022_11_28/models/group_0942.py | 45 +- .../versions/v2022_11_28/models/group_0943.py | 33 +- .../versions/v2022_11_28/models/group_0944.py | 37 +- .../versions/v2022_11_28/models/group_0945.py | 24 +- .../versions/v2022_11_28/models/group_0946.py | 17 +- .../versions/v2022_11_28/models/group_0947.py | 15 +- .../versions/v2022_11_28/models/group_0948.py | 17 +- .../versions/v2022_11_28/models/group_0949.py | 21 +- .../versions/v2022_11_28/models/group_0950.py | 28 +- .../versions/v2022_11_28/models/group_0951.py | 64 +- .../versions/v2022_11_28/models/group_0952.py | 70 +- .../versions/v2022_11_28/models/group_0953.py | 30 +- .../versions/v2022_11_28/models/group_0954.py | 35 +- .../versions/v2022_11_28/models/group_0955.py | 45 +- .../versions/v2022_11_28/models/group_0956.py | 50 +- .../versions/v2022_11_28/models/group_0957.py | 61 +- .../versions/v2022_11_28/models/group_0958.py | 44 +- .../versions/v2022_11_28/models/group_0959.py | 41 +- .../versions/v2022_11_28/models/group_0960.py | 44 +- .../versions/v2022_11_28/models/group_0961.py | 51 +- .../versions/v2022_11_28/models/group_0962.py | 43 +- .../versions/v2022_11_28/models/group_0963.py | 23 +- .../versions/v2022_11_28/models/group_0964.py | 32 +- .../versions/v2022_11_28/models/group_0965.py | 22 +- .../versions/v2022_11_28/models/group_0966.py | 45 +- .../versions/v2022_11_28/models/group_0967.py | 15 +- .../versions/v2022_11_28/models/group_0968.py | 17 +- .../versions/v2022_11_28/models/group_0969.py | 55 +- .../versions/v2022_11_28/models/group_0970.py | 22 +- .../versions/v2022_11_28/models/group_0971.py | 15 +- .../versions/v2022_11_28/models/group_0972.py | 77 +- .../versions/v2022_11_28/models/group_0973.py | 19 +- .../versions/v2022_11_28/models/group_0974.py | 28 +- .../versions/v2022_11_28/models/group_0975.py | 46 +- .../versions/v2022_11_28/models/group_0976.py | 45 +- .../versions/v2022_11_28/models/group_0977.py | 65 +- .../versions/v2022_11_28/models/group_0978.py | 46 +- .../versions/v2022_11_28/models/group_0979.py | 26 +- .../versions/v2022_11_28/models/group_0980.py | 30 +- .../versions/v2022_11_28/models/group_0981.py | 28 +- .../versions/v2022_11_28/models/group_0982.py | 21 +- .../versions/v2022_11_28/models/group_0983.py | 25 +- .../versions/v2022_11_28/models/group_0984.py | 14 +- .../versions/v2022_11_28/models/group_0985.py | 24 +- .../versions/v2022_11_28/models/group_0986.py | 43 +- .../versions/v2022_11_28/models/group_0987.py | 28 +- .../versions/v2022_11_28/models/group_0988.py | 19 +- .../versions/v2022_11_28/models/group_0989.py | 55 +- .../versions/v2022_11_28/models/group_0990.py | 23 +- .../versions/v2022_11_28/models/group_0991.py | 29 +- .../versions/v2022_11_28/models/group_0992.py | 31 +- .../versions/v2022_11_28/models/group_0993.py | 30 +- .../versions/v2022_11_28/models/group_0994.py | 41 +- .../versions/v2022_11_28/models/group_0995.py | 32 +- .../versions/v2022_11_28/models/group_0996.py | 21 +- .../versions/v2022_11_28/models/group_0997.py | 30 +- .../versions/v2022_11_28/models/group_0998.py | 22 +- .../versions/v2022_11_28/models/group_0999.py | 36 +- .../versions/v2022_11_28/models/group_1000.py | 16 +- .../versions/v2022_11_28/models/group_1001.py | 18 +- .../versions/v2022_11_28/models/group_1002.py | 26 +- .../versions/v2022_11_28/models/group_1003.py | 37 +- .../versions/v2022_11_28/models/group_1004.py | 12 +- .../versions/v2022_11_28/models/group_1005.py | 25 +- .../versions/v2022_11_28/models/group_1006.py | 27 +- .../versions/v2022_11_28/models/group_1007.py | 48 +- .../versions/v2022_11_28/models/group_1008.py | 44 +- .../versions/v2022_11_28/models/group_1009.py | 13 +- .../versions/v2022_11_28/models/group_1010.py | 28 +- .../versions/v2022_11_28/models/group_1011.py | 31 +- .../versions/v2022_11_28/models/group_1012.py | 30 +- .../versions/v2022_11_28/models/group_1013.py | 31 +- .../versions/v2022_11_28/models/group_1014.py | 32 +- .../versions/v2022_11_28/models/group_1015.py | 31 +- .../versions/v2022_11_28/models/group_1016.py | 51 +- .../versions/v2022_11_28/models/group_1017.py | 22 +- .../versions/v2022_11_28/models/group_1018.py | 19 +- .../versions/v2022_11_28/models/group_1019.py | 34 +- .../versions/v2022_11_28/models/group_1020.py | 15 +- .../versions/v2022_11_28/models/group_1021.py | 14 +- .../versions/v2022_11_28/models/group_1022.py | 44 +- .../versions/v2022_11_28/models/group_1023.py | 39 +- .../versions/v2022_11_28/models/group_1024.py | 26 +- .../versions/v2022_11_28/models/group_1025.py | 38 +- .../versions/v2022_11_28/models/group_1026.py | 29 +- .../versions/v2022_11_28/models/group_1027.py | 100 +- .../versions/v2022_11_28/models/group_1028.py | 96 +- .../versions/v2022_11_28/models/group_1029.py | 26 +- .../versions/v2022_11_28/models/group_1030.py | 29 +- .../versions/v2022_11_28/models/group_1031.py | 18 +- .../versions/v2022_11_28/models/group_1032.py | 15 +- .../versions/v2022_11_28/models/group_1033.py | 17 +- .../versions/v2022_11_28/models/group_1034.py | 20 +- .../versions/v2022_11_28/models/group_1035.py | 28 +- .../versions/v2022_11_28/models/group_1036.py | 54 +- .../versions/v2022_11_28/models/group_1037.py | 17 +- .../versions/v2022_11_28/models/group_1038.py | 18 +- .../versions/v2022_11_28/models/group_1039.py | 19 +- .../versions/v2022_11_28/models/group_1040.py | 15 +- .../versions/v2022_11_28/models/group_1041.py | 25 +- .../versions/v2022_11_28/models/group_1042.py | 42 +- .../versions/v2022_11_28/models/group_1043.py | 17 +- .../versions/v2022_11_28/models/group_1044.py | 25 +- .../versions/v2022_11_28/models/group_1045.py | 45 +- .../versions/v2022_11_28/models/group_1046.py | 15 +- .../versions/v2022_11_28/models/group_1047.py | 91 +- .../versions/v2022_11_28/models/group_1048.py | 82 +- .../versions/v2022_11_28/models/group_1049.py | 55 +- .../versions/v2022_11_28/models/group_1050.py | 51 +- .../versions/v2022_11_28/models/group_1051.py | 44 +- .../versions/v2022_11_28/models/group_1052.py | 23 +- .../versions/v2022_11_28/models/group_1053.py | 15 +- .../versions/v2022_11_28/models/group_1054.py | 21 +- .../versions/v2022_11_28/models/group_1055.py | 28 +- .../versions/v2022_11_28/models/group_1056.py | 45 +- .../versions/v2022_11_28/models/group_1057.py | 16 +- .../versions/v2022_11_28/models/group_1058.py | 19 +- .../versions/v2022_11_28/models/group_1059.py | 18 +- .../versions/v2022_11_28/models/group_1060.py | 23 +- .../versions/v2022_11_28/models/group_1061.py | 25 +- .../versions/v2022_11_28/models/group_1062.py | 19 +- .../versions/v2022_11_28/models/group_1063.py | 18 +- .../versions/v2022_11_28/models/group_1064.py | 19 +- .../versions/v2022_11_28/models/group_1065.py | 17 +- .../versions/v2022_11_28/models/group_1066.py | 15 +- .../versions/v2022_11_28/models/group_1067.py | 49 +- .../versions/v2022_11_28/models/group_1068.py | 20 +- .../versions/v2022_11_28/models/group_1069.py | 94 +- .../versions/v2022_11_28/models/group_1070.py | 55 +- .../versions/v2022_11_28/models/group_1071.py | 40 +- .../versions/v2022_11_28/models/group_1072.py | 23 +- .../versions/v2022_11_28/models/group_1073.py | 30 + .../versions/v2022_11_28/models/group_1074.py | 29 + .../versions/v2022_11_28/models/group_1075.py | 38 + .../versions/v2022_11_28/models/group_1076.py | 30 + .../versions/v2022_11_28/models/group_1077.py | 32 + .../versions/v2022_11_28/models/group_1078.py | 29 + .../versions/v2022_11_28/models/group_1079.py | 33 + .../versions/v2022_11_28/models/group_1080.py | 38 + .../versions/v2022_11_28/models/group_1081.py | 30 + .../versions/v2022_11_28/models/group_1082.py | 30 + .../versions/v2022_11_28/models/group_1083.py | 33 + .../versions/v2022_11_28/models/group_1084.py | 21 + .../versions/v2022_11_28/models/group_1085.py | 33 + .../versions/v2022_11_28/models/group_1086.py | 29 + .../versions/v2022_11_28/models/group_1087.py | 59 + .../versions/v2022_11_28/models/group_1088.py | 32 + .../versions/v2022_11_28/models/group_1089.py | 110 + .../versions/v2022_11_28/models/group_1090.py | 34 + .../versions/v2022_11_28/models/group_1091.py | 34 + .../versions/v2022_11_28/models/group_1092.py | 33 + .../versions/v2022_11_28/models/group_1093.py | 183 + .../versions/v2022_11_28/rest/__init__.py | 7 + .../v2022_11_28/rest/code_security.py | 953 ++ .../versions/v2022_11_28/rest/copilot.py | 77 + githubkit/versions/v2022_11_28/rest/orgs.py | 97 +- githubkit/versions/v2022_11_28/rest/repos.py | 194 + githubkit/versions/v2022_11_28/rest/users.py | 129 + .../versions/v2022_11_28/types/__init__.py | 8620 ++++++++-------- .../versions/v2022_11_28/types/group_0025.py | 56 +- .../versions/v2022_11_28/types/group_0026.py | 44 +- .../versions/v2022_11_28/types/group_0027.py | 46 +- .../versions/v2022_11_28/types/group_0028.py | 123 +- .../versions/v2022_11_28/types/group_0029.py | 87 +- .../versions/v2022_11_28/types/group_0030.py | 45 +- .../versions/v2022_11_28/types/group_0031.py | 33 +- .../versions/v2022_11_28/types/group_0032.py | 107 +- .../versions/v2022_11_28/types/group_0033.py | 67 +- .../versions/v2022_11_28/types/group_0034.py | 52 +- .../versions/v2022_11_28/types/group_0035.py | 92 +- .../versions/v2022_11_28/types/group_0036.py | 62 +- .../versions/v2022_11_28/types/group_0037.py | 87 +- .../versions/v2022_11_28/types/group_0038.py | 62 +- .../versions/v2022_11_28/types/group_0039.py | 97 +- .../versions/v2022_11_28/types/group_0040.py | 81 +- .../versions/v2022_11_28/types/group_0041.py | 136 +- .../versions/v2022_11_28/types/group_0042.py | 74 +- .../versions/v2022_11_28/types/group_0043.py | 41 +- .../versions/v2022_11_28/types/group_0044.py | 66 +- .../versions/v2022_11_28/types/group_0045.py | 121 +- .../versions/v2022_11_28/types/group_0046.py | 45 +- .../versions/v2022_11_28/types/group_0047.py | 42 +- .../versions/v2022_11_28/types/group_0048.py | 35 +- .../versions/v2022_11_28/types/group_0049.py | 67 +- .../versions/v2022_11_28/types/group_0050.py | 67 +- .../versions/v2022_11_28/types/group_0051.py | 150 +- .../versions/v2022_11_28/types/group_0052.py | 45 +- .../versions/v2022_11_28/types/group_0053.py | 60 +- .../versions/v2022_11_28/types/group_0054.py | 125 +- .../versions/v2022_11_28/types/group_0055.py | 143 +- .../versions/v2022_11_28/types/group_0056.py | 34 +- .../versions/v2022_11_28/types/group_0057.py | 20 +- .../versions/v2022_11_28/types/group_0058.py | 86 +- .../versions/v2022_11_28/types/group_0059.py | 14 +- .../versions/v2022_11_28/types/group_0060.py | 14 +- .../versions/v2022_11_28/types/group_0061.py | 12 +- .../versions/v2022_11_28/types/group_0062.py | 17 +- .../versions/v2022_11_28/types/group_0063.py | 24 +- .../versions/v2022_11_28/types/group_0064.py | 18 +- .../versions/v2022_11_28/types/group_0065.py | 33 +- .../versions/v2022_11_28/types/group_0066.py | 24 +- .../versions/v2022_11_28/types/group_0067.py | 24 +- .../versions/v2022_11_28/types/group_0068.py | 34 +- .../versions/v2022_11_28/types/group_0069.py | 47 +- .../versions/v2022_11_28/types/group_0070.py | 43 +- .../versions/v2022_11_28/types/group_0071.py | 23 +- .../versions/v2022_11_28/types/group_0072.py | 104 +- .../versions/v2022_11_28/types/group_0073.py | 49 +- .../versions/v2022_11_28/types/group_0074.py | 56 +- .../versions/v2022_11_28/types/group_0075.py | 26 +- .../versions/v2022_11_28/types/group_0076.py | 47 +- .../versions/v2022_11_28/types/group_0077.py | 90 +- .../versions/v2022_11_28/types/group_0078.py | 91 +- .../versions/v2022_11_28/types/group_0079.py | 30 +- .../versions/v2022_11_28/types/group_0080.py | 52 +- .../versions/v2022_11_28/types/group_0081.py | 37 +- .../versions/v2022_11_28/types/group_0082.py | 29 +- .../versions/v2022_11_28/types/group_0083.py | 32 +- .../versions/v2022_11_28/types/group_0084.py | 59 +- .../versions/v2022_11_28/types/group_0085.py | 40 +- .../versions/v2022_11_28/types/group_0086.py | 17 +- .../versions/v2022_11_28/types/group_0087.py | 35 +- .../versions/v2022_11_28/types/group_0088.py | 59 +- .../versions/v2022_11_28/types/group_0089.py | 65 +- .../versions/v2022_11_28/types/group_0090.py | 59 +- .../versions/v2022_11_28/types/group_0091.py | 49 +- .../versions/v2022_11_28/types/group_0092.py | 44 +- .../versions/v2022_11_28/types/group_0093.py | 51 +- .../versions/v2022_11_28/types/group_0094.py | 68 +- .../versions/v2022_11_28/types/group_0095.py | 61 +- .../versions/v2022_11_28/types/group_0096.py | 147 +- .../versions/v2022_11_28/types/group_0097.py | 22 +- .../versions/v2022_11_28/types/group_0098.py | 16 +- .../versions/v2022_11_28/types/group_0099.py | 19 +- .../versions/v2022_11_28/types/group_0100.py | 20 +- .../versions/v2022_11_28/types/group_0101.py | 149 +- .../versions/v2022_11_28/types/group_0102.py | 21 +- .../versions/v2022_11_28/types/group_0103.py | 14 +- .../versions/v2022_11_28/types/group_0104.py | 21 +- .../versions/v2022_11_28/types/group_0105.py | 30 +- .../versions/v2022_11_28/types/group_0106.py | 22 +- .../versions/v2022_11_28/types/group_0107.py | 14 +- .../versions/v2022_11_28/types/group_0108.py | 20 +- .../versions/v2022_11_28/types/group_0109.py | 91 +- .../versions/v2022_11_28/types/group_0110.py | 27 +- .../versions/v2022_11_28/types/group_0111.py | 21 +- .../versions/v2022_11_28/types/group_0112.py | 38 +- .../versions/v2022_11_28/types/group_0113.py | 21 +- .../versions/v2022_11_28/types/group_0114.py | 89 +- .../versions/v2022_11_28/types/group_0115.py | 15 +- .../versions/v2022_11_28/types/group_0116.py | 12 +- .../versions/v2022_11_28/types/group_0117.py | 35 +- .../versions/v2022_11_28/types/group_0118.py | 25 +- .../versions/v2022_11_28/types/group_0119.py | 18 +- .../versions/v2022_11_28/types/group_0120.py | 18 +- .../versions/v2022_11_28/types/group_0121.py | 21 +- .../versions/v2022_11_28/types/group_0122.py | 18 +- .../versions/v2022_11_28/types/group_0123.py | 24 +- .../versions/v2022_11_28/types/group_0124.py | 17 +- .../versions/v2022_11_28/types/group_0125.py | 17 +- .../versions/v2022_11_28/types/group_0126.py | 17 +- .../versions/v2022_11_28/types/group_0127.py | 17 +- .../versions/v2022_11_28/types/group_0128.py | 17 +- .../versions/v2022_11_28/types/group_0129.py | 16 +- .../versions/v2022_11_28/types/group_0130.py | 15 +- .../versions/v2022_11_28/types/group_0131.py | 28 +- .../versions/v2022_11_28/types/group_0132.py | 16 +- .../versions/v2022_11_28/types/group_0133.py | 31 +- .../versions/v2022_11_28/types/group_0134.py | 25 +- .../versions/v2022_11_28/types/group_0135.py | 117 +- .../versions/v2022_11_28/types/group_0136.py | 34 +- .../versions/v2022_11_28/types/group_0137.py | 51 +- .../versions/v2022_11_28/types/group_0138.py | 36 +- .../versions/v2022_11_28/types/group_0139.py | 136 +- .../versions/v2022_11_28/types/group_0140.py | 131 +- .../versions/v2022_11_28/types/group_0141.py | 24 +- .../versions/v2022_11_28/types/group_0142.py | 50 +- .../versions/v2022_11_28/types/group_0143.py | 119 +- .../versions/v2022_11_28/types/group_0144.py | 149 +- .../versions/v2022_11_28/types/group_0145.py | 50 +- .../versions/v2022_11_28/types/group_0146.py | 24 +- .../versions/v2022_11_28/types/group_0147.py | 16 +- .../versions/v2022_11_28/types/group_0148.py | 114 +- .../versions/v2022_11_28/types/group_0149.py | 127 +- .../versions/v2022_11_28/types/group_0150.py | 31 +- .../versions/v2022_11_28/types/group_0151.py | 21 +- .../versions/v2022_11_28/types/group_0152.py | 17 +- .../versions/v2022_11_28/types/group_0153.py | 45 +- .../versions/v2022_11_28/types/group_0154.py | 120 +- .../versions/v2022_11_28/types/group_0155.py | 36 +- .../versions/v2022_11_28/types/group_0156.py | 37 +- .../versions/v2022_11_28/types/group_0157.py | 34 +- .../versions/v2022_11_28/types/group_0158.py | 67 +- .../versions/v2022_11_28/types/group_0159.py | 18 +- .../versions/v2022_11_28/types/group_0160.py | 25 +- .../versions/v2022_11_28/types/group_0161.py | 42 +- .../versions/v2022_11_28/types/group_0162.py | 32 +- .../versions/v2022_11_28/types/group_0163.py | 65 +- .../versions/v2022_11_28/types/group_0164.py | 55 +- .../versions/v2022_11_28/types/group_0165.py | 40 +- .../versions/v2022_11_28/types/group_0166.py | 67 +- .../versions/v2022_11_28/types/group_0167.py | 36 +- .../versions/v2022_11_28/types/group_0168.py | 10 +- .../versions/v2022_11_28/types/group_0169.py | 55 +- .../versions/v2022_11_28/types/group_0170.py | 53 +- .../versions/v2022_11_28/types/group_0171.py | 73 +- .../versions/v2022_11_28/types/group_0172.py | 92 +- .../versions/v2022_11_28/types/group_0173.py | 46 +- .../versions/v2022_11_28/types/group_0174.py | 34 +- .../versions/v2022_11_28/types/group_0175.py | 45 +- .../versions/v2022_11_28/types/group_0176.py | 46 +- .../versions/v2022_11_28/types/group_0177.py | 91 +- .../versions/v2022_11_28/types/group_0178.py | 53 +- .../versions/v2022_11_28/types/group_0179.py | 143 +- .../versions/v2022_11_28/types/group_0180.py | 137 +- .../versions/v2022_11_28/types/group_0181.py | 29 +- .../versions/v2022_11_28/types/group_0182.py | 27 +- .../versions/v2022_11_28/types/group_0183.py | 38 +- .../versions/v2022_11_28/types/group_0184.py | 136 +- .../versions/v2022_11_28/types/group_0185.py | 149 +- .../versions/v2022_11_28/types/group_0186.py | 31 +- .../versions/v2022_11_28/types/group_0187.py | 32 +- .../versions/v2022_11_28/types/group_0188.py | 134 +- .../versions/v2022_11_28/types/group_0189.py | 35 +- .../versions/v2022_11_28/types/group_0190.py | 61 +- .../versions/v2022_11_28/types/group_0191.py | 45 +- .../versions/v2022_11_28/types/group_0192.py | 71 +- .../versions/v2022_11_28/types/group_0193.py | 139 +- .../versions/v2022_11_28/types/group_0194.py | 73 +- .../versions/v2022_11_28/types/group_0195.py | 47 +- .../versions/v2022_11_28/types/group_0196.py | 50 +- .../versions/v2022_11_28/types/group_0197.py | 87 +- .../versions/v2022_11_28/types/group_0198.py | 38 +- .../versions/v2022_11_28/types/group_0199.py | 67 +- .../versions/v2022_11_28/types/group_0200.py | 44 +- .../versions/v2022_11_28/types/group_0201.py | 51 +- .../versions/v2022_11_28/types/group_0202.py | 65 +- .../versions/v2022_11_28/types/group_0203.py | 53 +- .../versions/v2022_11_28/types/group_0204.py | 22 +- .../versions/v2022_11_28/types/group_0205.py | 44 +- .../versions/v2022_11_28/types/group_0206.py | 30 +- .../versions/v2022_11_28/types/group_0207.py | 48 +- .../versions/v2022_11_28/types/group_0208.py | 51 +- .../versions/v2022_11_28/types/group_0209.py | 21 +- .../versions/v2022_11_28/types/group_0210.py | 35 +- .../versions/v2022_11_28/types/group_0211.py | 23 +- .../versions/v2022_11_28/types/group_0212.py | 51 +- .../versions/v2022_11_28/types/group_0213.py | 32 +- .../versions/v2022_11_28/types/group_0214.py | 27 +- .../versions/v2022_11_28/types/group_0215.py | 59 +- .../versions/v2022_11_28/types/group_0216.py | 54 +- .../versions/v2022_11_28/types/group_0217.py | 30 +- .../versions/v2022_11_28/types/group_0218.py | 10 +- .../versions/v2022_11_28/types/group_0219.py | 26 +- .../versions/v2022_11_28/types/group_0220.py | 111 +- .../versions/v2022_11_28/types/group_0221.py | 60 +- .../versions/v2022_11_28/types/group_0222.py | 30 +- .../versions/v2022_11_28/types/group_0223.py | 45 +- .../versions/v2022_11_28/types/group_0224.py | 25 +- .../versions/v2022_11_28/types/group_0225.py | 99 +- .../versions/v2022_11_28/types/group_0226.py | 46 +- .../versions/v2022_11_28/types/group_0227.py | 68 +- .../versions/v2022_11_28/types/group_0228.py | 48 +- .../versions/v2022_11_28/types/group_0229.py | 52 +- .../versions/v2022_11_28/types/group_0230.py | 57 +- .../versions/v2022_11_28/types/group_0231.py | 52 +- .../versions/v2022_11_28/types/group_0232.py | 124 +- .../versions/v2022_11_28/types/group_0233.py | 60 +- .../versions/v2022_11_28/types/group_0234.py | 61 +- .../versions/v2022_11_28/types/group_0235.py | 37 +- .../versions/v2022_11_28/types/group_0236.py | 43 +- .../versions/v2022_11_28/types/group_0237.py | 123 +- .../versions/v2022_11_28/types/group_0238.py | 36 +- .../versions/v2022_11_28/types/group_0239.py | 52 +- .../versions/v2022_11_28/types/group_0240.py | 34 +- .../versions/v2022_11_28/types/group_0241.py | 63 +- .../versions/v2022_11_28/types/group_0242.py | 87 +- .../versions/v2022_11_28/types/group_0243.py | 13 +- .../versions/v2022_11_28/types/group_0244.py | 68 +- .../versions/v2022_11_28/types/group_0245.py | 37 +- .../versions/v2022_11_28/types/group_0246.py | 56 +- .../versions/v2022_11_28/types/group_0247.py | 34 +- .../versions/v2022_11_28/types/group_0248.py | 13 +- .../versions/v2022_11_28/types/group_0249.py | 63 +- .../versions/v2022_11_28/types/group_0250.py | 34 +- .../versions/v2022_11_28/types/group_0251.py | 17 +- .../versions/v2022_11_28/types/group_0252.py | 20 +- .../versions/v2022_11_28/types/group_0253.py | 73 +- .../versions/v2022_11_28/types/group_0254.py | 25 +- .../versions/v2022_11_28/types/group_0255.py | 45 +- .../versions/v2022_11_28/types/group_0256.py | 29 +- .../versions/v2022_11_28/types/group_0257.py | 21 +- .../versions/v2022_11_28/types/group_0258.py | 85 +- .../versions/v2022_11_28/types/group_0259.py | 65 +- .../versions/v2022_11_28/types/group_0260.py | 41 +- .../versions/v2022_11_28/types/group_0261.py | 33 +- .../versions/v2022_11_28/types/group_0262.py | 114 +- .../versions/v2022_11_28/types/group_0263.py | 46 +- .../versions/v2022_11_28/types/group_0264.py | 74 +- .../versions/v2022_11_28/types/group_0265.py | 26 +- .../versions/v2022_11_28/types/group_0266.py | 27 +- .../versions/v2022_11_28/types/group_0267.py | 102 +- .../versions/v2022_11_28/types/group_0268.py | 21 +- .../versions/v2022_11_28/types/group_0269.py | 22 +- .../versions/v2022_11_28/types/group_0270.py | 22 +- .../versions/v2022_11_28/types/group_0271.py | 20 +- .../versions/v2022_11_28/types/group_0272.py | 25 +- .../versions/v2022_11_28/types/group_0273.py | 21 +- .../versions/v2022_11_28/types/group_0274.py | 28 +- .../versions/v2022_11_28/types/group_0275.py | 29 +- .../versions/v2022_11_28/types/group_0276.py | 29 +- .../versions/v2022_11_28/types/group_0277.py | 30 +- .../versions/v2022_11_28/types/group_0278.py | 25 +- .../versions/v2022_11_28/types/group_0279.py | 57 +- .../versions/v2022_11_28/types/group_0280.py | 46 +- .../versions/v2022_11_28/types/group_0281.py | 39 +- .../versions/v2022_11_28/types/group_0282.py | 86 +- .../versions/v2022_11_28/types/group_0283.py | 66 +- .../versions/v2022_11_28/types/group_0284.py | 89 +- .../versions/v2022_11_28/types/group_0285.py | 30 +- .../versions/v2022_11_28/types/group_0286.py | 27 +- .../versions/v2022_11_28/types/group_0287.py | 84 +- .../versions/v2022_11_28/types/group_0288.py | 67 +- .../versions/v2022_11_28/types/group_0289.py | 99 +- .../versions/v2022_11_28/types/group_0290.py | 45 +- .../versions/v2022_11_28/types/group_0291.py | 28 +- .../versions/v2022_11_28/types/group_0292.py | 69 +- .../versions/v2022_11_28/types/group_0293.py | 37 +- .../versions/v2022_11_28/types/group_0294.py | 11 +- .../versions/v2022_11_28/types/group_0295.py | 44 +- .../versions/v2022_11_28/types/group_0296.py | 33 +- .../versions/v2022_11_28/types/group_0297.py | 126 +- .../versions/v2022_11_28/types/group_0298.py | 89 +- .../versions/v2022_11_28/types/group_0299.py | 192 +- .../versions/v2022_11_28/types/group_0300.py | 58 +- .../versions/v2022_11_28/types/group_0301.py | 148 +- .../versions/v2022_11_28/types/group_0302.py | 92 +- .../versions/v2022_11_28/types/group_0303.py | 81 +- .../versions/v2022_11_28/types/group_0304.py | 196 +- .../versions/v2022_11_28/types/group_0305.py | 83 +- .../versions/v2022_11_28/types/group_0306.py | 168 +- .../versions/v2022_11_28/types/group_0307.py | 17 +- .../versions/v2022_11_28/types/group_0308.py | 32 +- .../versions/v2022_11_28/types/group_0309.py | 45 +- .../versions/v2022_11_28/types/group_0310.py | 60 +- .../versions/v2022_11_28/types/group_0311.py | 56 +- .../versions/v2022_11_28/types/group_0312.py | 18 +- .../versions/v2022_11_28/types/group_0313.py | 34 +- .../versions/v2022_11_28/types/group_0314.py | 51 +- .../versions/v2022_11_28/types/group_0315.py | 18 +- .../versions/v2022_11_28/types/group_0316.py | 12 +- .../versions/v2022_11_28/types/group_0317.py | 8 +- .../versions/v2022_11_28/types/group_0318.py | 12 +- .../versions/v2022_11_28/types/group_0319.py | 11 +- .../versions/v2022_11_28/types/group_0320.py | 8 +- .../versions/v2022_11_28/types/group_0321.py | 12 +- .../versions/v2022_11_28/types/group_0322.py | 11 +- .../versions/v2022_11_28/types/group_0323.py | 12 +- .../versions/v2022_11_28/types/group_0324.py | 12 +- .../versions/v2022_11_28/types/group_0325.py | 11 +- .../versions/v2022_11_28/types/group_0326.py | 12 +- .../versions/v2022_11_28/types/group_0327.py | 12 +- .../versions/v2022_11_28/types/group_0328.py | 46 +- .../versions/v2022_11_28/types/group_0329.py | 80 +- .../versions/v2022_11_28/types/group_0330.py | 61 +- .../versions/v2022_11_28/types/group_0331.py | 84 +- .../versions/v2022_11_28/types/group_0332.py | 23 +- .../versions/v2022_11_28/types/group_0333.py | 49 +- .../versions/v2022_11_28/types/group_0334.py | 81 +- .../versions/v2022_11_28/types/group_0335.py | 60 +- .../versions/v2022_11_28/types/group_0336.py | 87 +- .../versions/v2022_11_28/types/group_0337.py | 29 +- .../versions/v2022_11_28/types/group_0338.py | 19 +- .../versions/v2022_11_28/types/group_0339.py | 30 +- .../versions/v2022_11_28/types/group_0340.py | 13 +- .../versions/v2022_11_28/types/group_0341.py | 22 +- .../versions/v2022_11_28/types/group_0342.py | 27 +- .../versions/v2022_11_28/types/group_0343.py | 18 +- .../versions/v2022_11_28/types/group_0344.py | 14 +- .../versions/v2022_11_28/types/group_0345.py | 28 +- .../versions/v2022_11_28/types/group_0346.py | 47 +- .../versions/v2022_11_28/types/group_0347.py | 53 +- .../versions/v2022_11_28/types/group_0348.py | 43 +- .../versions/v2022_11_28/types/group_0349.py | 102 +- .../versions/v2022_11_28/types/group_0350.py | 36 +- .../versions/v2022_11_28/types/group_0351.py | 126 +- .../versions/v2022_11_28/types/group_0352.py | 88 +- .../versions/v2022_11_28/types/group_0353.py | 77 +- .../versions/v2022_11_28/types/group_0354.py | 133 +- .../versions/v2022_11_28/types/group_0355.py | 35 +- .../versions/v2022_11_28/types/group_0356.py | 133 +- .../versions/v2022_11_28/types/group_0357.py | 127 +- .../versions/v2022_11_28/types/group_0358.py | 64 +- .../versions/v2022_11_28/types/group_0359.py | 104 +- .../versions/v2022_11_28/types/group_0360.py | 16 +- .../versions/v2022_11_28/types/group_0361.py | 41 +- .../versions/v2022_11_28/types/group_0362.py | 90 +- .../versions/v2022_11_28/types/group_0363.py | 18 +- .../versions/v2022_11_28/types/group_0364.py | 68 +- .../versions/v2022_11_28/types/group_0365.py | 28 +- .../versions/v2022_11_28/types/group_0366.py | 37 +- .../versions/v2022_11_28/types/group_0367.py | 29 +- .../versions/v2022_11_28/types/group_0368.py | 17 +- .../versions/v2022_11_28/types/group_0369.py | 33 +- .../versions/v2022_11_28/types/group_0370.py | 278 +- .../versions/v2022_11_28/types/group_0371.py | 37 +- .../versions/v2022_11_28/types/group_0372.py | 58 +- .../versions/v2022_11_28/types/group_0373.py | 57 +- .../versions/v2022_11_28/types/group_0374.py | 72 +- .../versions/v2022_11_28/types/group_0375.py | 281 +- .../versions/v2022_11_28/types/group_0376.py | 43 +- .../versions/v2022_11_28/types/group_0377.py | 106 +- .../versions/v2022_11_28/types/group_0378.py | 66 +- .../versions/v2022_11_28/types/group_0379.py | 85 +- .../versions/v2022_11_28/types/group_0380.py | 85 +- .../versions/v2022_11_28/types/group_0381.py | 129 +- .../versions/v2022_11_28/types/group_0382.py | 80 +- .../versions/v2022_11_28/types/group_0383.py | 20 +- .../versions/v2022_11_28/types/group_0384.py | 43 +- .../versions/v2022_11_28/types/group_0385.py | 78 +- .../versions/v2022_11_28/types/group_0386.py | 84 +- .../versions/v2022_11_28/types/group_0387.py | 75 +- .../versions/v2022_11_28/types/group_0388.py | 370 +- .../versions/v2022_11_28/types/group_0389.py | 59 +- .../versions/v2022_11_28/types/group_0390.py | 375 +- .../versions/v2022_11_28/types/group_0391.py | 56 +- .../versions/v2022_11_28/types/group_0392.py | 45 +- .../versions/v2022_11_28/types/group_0393.py | 384 +- .../versions/v2022_11_28/types/group_0394.py | 76 +- .../versions/v2022_11_28/types/group_0395.py | 380 +- .../versions/v2022_11_28/types/group_0396.py | 34 +- .../versions/v2022_11_28/types/group_0397.py | 69 +- .../versions/v2022_11_28/types/group_0398.py | 148 +- .../versions/v2022_11_28/types/group_0399.py | 72 +- .../versions/v2022_11_28/types/group_0400.py | 58 +- .../versions/v2022_11_28/types/group_0401.py | 55 +- .../versions/v2022_11_28/types/group_0402.py | 68 +- .../versions/v2022_11_28/types/group_0403.py | 135 +- .../versions/v2022_11_28/types/group_0404.py | 56 +- .../versions/v2022_11_28/types/group_0405.py | 115 +- .../versions/v2022_11_28/types/group_0406.py | 28 +- .../versions/v2022_11_28/types/group_0407.py | 862 +- .../versions/v2022_11_28/types/group_0408.py | 124 +- .../versions/v2022_11_28/types/group_0409.py | 88 +- .../versions/v2022_11_28/types/group_0410.py | 135 +- .../versions/v2022_11_28/types/group_0411.py | 193 +- .../versions/v2022_11_28/types/group_0412.py | 68 +- .../versions/v2022_11_28/types/group_0413.py | 876 +- .../versions/v2022_11_28/types/group_0414.py | 161 +- .../versions/v2022_11_28/types/group_0415.py | 118 +- .../versions/v2022_11_28/types/group_0416.py | 142 +- .../versions/v2022_11_28/types/group_0417.py | 138 +- .../versions/v2022_11_28/types/group_0418.py | 68 +- .../versions/v2022_11_28/types/group_0419.py | 59 +- .../versions/v2022_11_28/types/group_0420.py | 101 +- .../versions/v2022_11_28/types/group_0421.py | 127 +- .../versions/v2022_11_28/types/group_0422.py | 129 +- .../versions/v2022_11_28/types/group_0423.py | 65 +- .../versions/v2022_11_28/types/group_0424.py | 23 +- .../versions/v2022_11_28/types/group_0425.py | 20 +- .../versions/v2022_11_28/types/group_0426.py | 25 +- .../versions/v2022_11_28/types/group_0427.py | 35 +- .../versions/v2022_11_28/types/group_0428.py | 169 +- .../versions/v2022_11_28/types/group_0429.py | 18 +- .../versions/v2022_11_28/types/group_0430.py | 8 +- .../versions/v2022_11_28/types/group_0431.py | 319 +- .../versions/v2022_11_28/types/group_0432.py | 316 +- .../versions/v2022_11_28/types/group_0433.py | 310 +- .../versions/v2022_11_28/types/group_0434.py | 147 +- .../versions/v2022_11_28/types/group_0435.py | 150 +- .../versions/v2022_11_28/types/group_0436.py | 117 +- .../versions/v2022_11_28/types/group_0437.py | 323 +- .../versions/v2022_11_28/types/group_0438.py | 344 +- .../versions/v2022_11_28/types/group_0439.py | 334 +- .../versions/v2022_11_28/types/group_0440.py | 155 +- .../versions/v2022_11_28/types/group_0441.py | 150 +- .../versions/v2022_11_28/types/group_0442.py | 120 +- .../versions/v2022_11_28/types/group_0443.py | 146 +- .../versions/v2022_11_28/types/group_0444.py | 125 +- .../versions/v2022_11_28/types/group_0445.py | 120 +- .../versions/v2022_11_28/types/group_0446.py | 101 +- .../versions/v2022_11_28/types/group_0447.py | 28 +- .../versions/v2022_11_28/types/group_0448.py | 28 +- .../versions/v2022_11_28/types/group_0449.py | 36 +- .../versions/v2022_11_28/types/group_0450.py | 28 +- .../versions/v2022_11_28/types/group_0451.py | 31 +- .../versions/v2022_11_28/types/group_0452.py | 24 +- .../versions/v2022_11_28/types/group_0453.py | 20 +- .../versions/v2022_11_28/types/group_0454.py | 24 +- .../versions/v2022_11_28/types/group_0455.py | 24 +- .../versions/v2022_11_28/types/group_0456.py | 599 +- .../versions/v2022_11_28/types/group_0457.py | 35 +- .../versions/v2022_11_28/types/group_0458.py | 416 +- .../versions/v2022_11_28/types/group_0459.py | 414 +- .../versions/v2022_11_28/types/group_0460.py | 447 +- .../versions/v2022_11_28/types/group_0461.py | 863 +- .../versions/v2022_11_28/types/group_0462.py | 599 +- .../versions/v2022_11_28/types/group_0463.py | 69 +- .../versions/v2022_11_28/types/group_0464.py | 414 +- .../versions/v2022_11_28/types/group_0465.py | 414 +- .../versions/v2022_11_28/types/group_0466.py | 449 +- .../versions/v2022_11_28/types/group_0467.py | 866 +- .../versions/v2022_11_28/types/group_0468.py | 22 +- .../versions/v2022_11_28/types/group_0469.py | 54 +- .../versions/v2022_11_28/types/group_0470.py | 45 +- .../versions/v2022_11_28/types/group_0471.py | 24 +- .../versions/v2022_11_28/types/group_0472.py | 22 +- .../versions/v2022_11_28/types/group_0473.py | 39 +- .../versions/v2022_11_28/types/group_0474.py | 20 +- .../versions/v2022_11_28/types/group_0475.py | 22 +- .../versions/v2022_11_28/types/group_0476.py | 51 +- .../versions/v2022_11_28/types/group_0477.py | 26 +- .../versions/v2022_11_28/types/group_0478.py | 22 +- .../versions/v2022_11_28/types/group_0479.py | 20 +- .../versions/v2022_11_28/types/group_0480.py | 20 +- .../versions/v2022_11_28/types/group_0481.py | 27 +- .../versions/v2022_11_28/types/group_0482.py | 149 +- .../versions/v2022_11_28/types/group_0483.py | 154 +- .../versions/v2022_11_28/types/group_0484.py | 28 +- .../versions/v2022_11_28/types/group_0485.py | 129 +- .../versions/v2022_11_28/types/group_0486.py | 22 +- .../versions/v2022_11_28/types/group_0487.py | 37 +- .../versions/v2022_11_28/types/group_0488.py | 157 +- .../versions/v2022_11_28/types/group_0489.py | 157 +- .../versions/v2022_11_28/types/group_0490.py | 27 +- .../versions/v2022_11_28/types/group_0491.py | 136 +- .../versions/v2022_11_28/types/group_0492.py | 47 +- .../versions/v2022_11_28/types/group_0493.py | 41 +- .../versions/v2022_11_28/types/group_0494.py | 97 +- .../versions/v2022_11_28/types/group_0495.py | 18 +- .../versions/v2022_11_28/types/group_0496.py | 31 +- .../versions/v2022_11_28/types/group_0497.py | 102 +- .../versions/v2022_11_28/types/group_0498.py | 163 +- .../versions/v2022_11_28/types/group_0499.py | 160 +- .../versions/v2022_11_28/types/group_0500.py | 91 +- .../versions/v2022_11_28/types/group_0501.py | 50 +- .../versions/v2022_11_28/types/group_0502.py | 62 +- .../versions/v2022_11_28/types/group_0503.py | 103 +- .../versions/v2022_11_28/types/group_0504.py | 201 +- .../versions/v2022_11_28/types/group_0505.py | 167 +- .../versions/v2022_11_28/types/group_0506.py | 67 +- .../versions/v2022_11_28/types/group_0507.py | 110 +- .../versions/v2022_11_28/types/group_0508.py | 62 +- .../versions/v2022_11_28/types/group_0509.py | 162 +- .../versions/v2022_11_28/types/group_0510.py | 206 +- .../versions/v2022_11_28/types/group_0511.py | 110 +- .../versions/v2022_11_28/types/group_0512.py | 54 +- .../versions/v2022_11_28/types/group_0513.py | 99 +- .../versions/v2022_11_28/types/group_0514.py | 94 +- .../versions/v2022_11_28/types/group_0515.py | 199 +- .../versions/v2022_11_28/types/group_0516.py | 167 +- .../versions/v2022_11_28/types/group_0517.py | 67 +- .../versions/v2022_11_28/types/group_0518.py | 108 +- .../versions/v2022_11_28/types/group_0519.py | 64 +- .../versions/v2022_11_28/types/group_0520.py | 162 +- .../versions/v2022_11_28/types/group_0521.py | 204 +- .../versions/v2022_11_28/types/group_0522.py | 110 +- .../versions/v2022_11_28/types/group_0523.py | 54 +- .../versions/v2022_11_28/types/group_0524.py | 97 +- .../versions/v2022_11_28/types/group_0525.py | 95 +- .../versions/v2022_11_28/types/group_0526.py | 201 +- .../versions/v2022_11_28/types/group_0527.py | 167 +- .../versions/v2022_11_28/types/group_0528.py | 67 +- .../versions/v2022_11_28/types/group_0529.py | 110 +- .../versions/v2022_11_28/types/group_0530.py | 60 +- .../versions/v2022_11_28/types/group_0531.py | 91 +- .../versions/v2022_11_28/types/group_0532.py | 234 +- .../versions/v2022_11_28/types/group_0533.py | 175 +- .../versions/v2022_11_28/types/group_0534.py | 54 +- .../versions/v2022_11_28/types/group_0535.py | 97 +- .../versions/v2022_11_28/types/group_0536.py | 91 +- .../versions/v2022_11_28/types/group_0537.py | 101 +- .../versions/v2022_11_28/types/group_0538.py | 171 +- .../versions/v2022_11_28/types/group_0539.py | 197 +- .../versions/v2022_11_28/types/group_0540.py | 50 +- .../versions/v2022_11_28/types/group_0541.py | 97 +- .../versions/v2022_11_28/types/group_0542.py | 340 +- .../versions/v2022_11_28/types/group_0543.py | 343 +- .../versions/v2022_11_28/types/group_0544.py | 425 +- .../versions/v2022_11_28/types/group_0545.py | 424 +- .../versions/v2022_11_28/types/group_0546.py | 391 +- .../versions/v2022_11_28/types/group_0547.py | 344 +- .../versions/v2022_11_28/types/group_0548.py | 670 +- .../versions/v2022_11_28/types/group_0549.py | 412 +- .../versions/v2022_11_28/types/group_0550.py | 131 +- .../versions/v2022_11_28/types/group_0551.py | 316 +- .../versions/v2022_11_28/types/group_0552.py | 408 +- .../versions/v2022_11_28/types/group_0553.py | 409 +- .../versions/v2022_11_28/types/group_0554.py | 669 +- .../versions/v2022_11_28/types/group_0555.py | 20 +- .../versions/v2022_11_28/types/group_0556.py | 408 +- .../versions/v2022_11_28/types/group_0557.py | 610 +- .../versions/v2022_11_28/types/group_0558.py | 62 +- .../versions/v2022_11_28/types/group_0559.py | 29 +- .../versions/v2022_11_28/types/group_0560.py | 421 +- .../versions/v2022_11_28/types/group_0561.py | 79 +- .../versions/v2022_11_28/types/group_0562.py | 81 +- .../versions/v2022_11_28/types/group_0563.py | 27 +- .../versions/v2022_11_28/types/group_0564.py | 71 +- .../versions/v2022_11_28/types/group_0565.py | 58 +- .../versions/v2022_11_28/types/group_0566.py | 77 +- .../versions/v2022_11_28/types/group_0567.py | 104 +- .../versions/v2022_11_28/types/group_0568.py | 104 +- .../versions/v2022_11_28/types/group_0569.py | 27 +- .../versions/v2022_11_28/types/group_0570.py | 66 +- .../versions/v2022_11_28/types/group_0571.py | 128 +- .../versions/v2022_11_28/types/group_0572.py | 24 +- .../versions/v2022_11_28/types/group_0573.py | 61 +- .../versions/v2022_11_28/types/group_0574.py | 61 +- .../versions/v2022_11_28/types/group_0575.py | 62 +- .../versions/v2022_11_28/types/group_0576.py | 27 +- .../versions/v2022_11_28/types/group_0577.py | 115 +- .../versions/v2022_11_28/types/group_0578.py | 28 +- .../versions/v2022_11_28/types/group_0579.py | 26 +- .../versions/v2022_11_28/types/group_0580.py | 26 +- .../versions/v2022_11_28/types/group_0581.py | 102 +- .../versions/v2022_11_28/types/group_0582.py | 26 +- .../versions/v2022_11_28/types/group_0583.py | 41 +- .../versions/v2022_11_28/types/group_0584.py | 49 +- .../versions/v2022_11_28/types/group_0585.py | 24 +- .../versions/v2022_11_28/types/group_0586.py | 79 +- .../versions/v2022_11_28/types/group_0587.py | 491 +- .../versions/v2022_11_28/types/group_0588.py | 26 +- .../versions/v2022_11_28/types/group_0589.py | 96 +- .../versions/v2022_11_28/types/group_0590.py | 187 +- .../versions/v2022_11_28/types/group_0591.py | 79 +- .../versions/v2022_11_28/types/group_0592.py | 77 +- .../versions/v2022_11_28/types/group_0593.py | 497 +- .../versions/v2022_11_28/types/group_0594.py | 26 +- .../versions/v2022_11_28/types/group_0595.py | 75 +- .../versions/v2022_11_28/types/group_0596.py | 168 +- .../versions/v2022_11_28/types/group_0597.py | 89 +- .../versions/v2022_11_28/types/group_0598.py | 23 +- .../versions/v2022_11_28/types/group_0599.py | 43 +- .../versions/v2022_11_28/types/group_0600.py | 24 +- .../versions/v2022_11_28/types/group_0601.py | 76 +- .../versions/v2022_11_28/types/group_0602.py | 43 +- .../versions/v2022_11_28/types/group_0603.py | 93 +- .../versions/v2022_11_28/types/group_0604.py | 54 +- .../versions/v2022_11_28/types/group_0605.py | 77 +- .../versions/v2022_11_28/types/group_0606.py | 22 +- .../versions/v2022_11_28/types/group_0607.py | 76 +- .../versions/v2022_11_28/types/group_0608.py | 43 +- .../versions/v2022_11_28/types/group_0609.py | 90 +- .../versions/v2022_11_28/types/group_0610.py | 63 +- .../versions/v2022_11_28/types/group_0611.py | 68 +- .../versions/v2022_11_28/types/group_0612.py | 26 +- .../versions/v2022_11_28/types/group_0613.py | 50 +- .../versions/v2022_11_28/types/group_0614.py | 28 +- .../versions/v2022_11_28/types/group_0615.py | 43 +- .../versions/v2022_11_28/types/group_0616.py | 27 +- .../versions/v2022_11_28/types/group_0617.py | 24 +- .../versions/v2022_11_28/types/group_0618.py | 75 +- .../versions/v2022_11_28/types/group_0619.py | 56 +- .../versions/v2022_11_28/types/group_0620.py | 46 +- .../versions/v2022_11_28/types/group_0621.py | 18 +- .../versions/v2022_11_28/types/group_0622.py | 21 +- .../versions/v2022_11_28/types/group_0623.py | 58 +- .../versions/v2022_11_28/types/group_0624.py | 67 +- .../versions/v2022_11_28/types/group_0625.py | 18 +- .../versions/v2022_11_28/types/group_0626.py | 40 +- .../versions/v2022_11_28/types/group_0627.py | 22 +- .../versions/v2022_11_28/types/group_0628.py | 938 +- .../versions/v2022_11_28/types/group_0629.py | 1008 +- .../versions/v2022_11_28/types/group_0630.py | 976 +- .../versions/v2022_11_28/types/group_0631.py | 27 +- .../versions/v2022_11_28/types/group_0632.py | 25 +- .../versions/v2022_11_28/types/group_0633.py | 29 +- .../versions/v2022_11_28/types/group_0634.py | 937 +- .../versions/v2022_11_28/types/group_0635.py | 98 +- .../versions/v2022_11_28/types/group_0636.py | 930 +- .../versions/v2022_11_28/types/group_0637.py | 260 +- .../versions/v2022_11_28/types/group_0638.py | 370 +- .../versions/v2022_11_28/types/group_0639.py | 977 +- .../versions/v2022_11_28/types/group_0640.py | 20 +- .../versions/v2022_11_28/types/group_0641.py | 20 +- .../versions/v2022_11_28/types/group_0642.py | 26 +- .../versions/v2022_11_28/types/group_0643.py | 566 +- .../versions/v2022_11_28/types/group_0644.py | 969 +- .../versions/v2022_11_28/types/group_0645.py | 419 +- .../versions/v2022_11_28/types/group_0646.py | 423 +- .../versions/v2022_11_28/types/group_0647.py | 360 +- .../versions/v2022_11_28/types/group_0648.py | 1056 +- .../versions/v2022_11_28/types/group_0649.py | 1069 +- .../versions/v2022_11_28/types/group_0650.py | 1032 +- .../versions/v2022_11_28/types/group_0651.py | 1046 +- .../versions/v2022_11_28/types/group_0652.py | 415 +- .../versions/v2022_11_28/types/group_0653.py | 437 +- .../versions/v2022_11_28/types/group_0654.py | 499 +- .../versions/v2022_11_28/types/group_0655.py | 455 +- .../versions/v2022_11_28/types/group_0656.py | 344 +- .../versions/v2022_11_28/types/group_0657.py | 451 +- .../versions/v2022_11_28/types/group_0658.py | 478 +- .../versions/v2022_11_28/types/group_0659.py | 972 +- .../versions/v2022_11_28/types/group_0660.py | 1049 +- .../versions/v2022_11_28/types/group_0661.py | 941 +- .../versions/v2022_11_28/types/group_0662.py | 1238 ++- .../versions/v2022_11_28/types/group_0663.py | 1102 +- .../versions/v2022_11_28/types/group_0664.py | 963 +- .../versions/v2022_11_28/types/group_0665.py | 989 +- .../versions/v2022_11_28/types/group_0666.py | 940 +- .../versions/v2022_11_28/types/group_0667.py | 934 +- .../versions/v2022_11_28/types/group_0668.py | 300 +- .../versions/v2022_11_28/types/group_0669.py | 154 +- .../versions/v2022_11_28/types/group_0670.py | 77 +- .../versions/v2022_11_28/types/group_0671.py | 524 +- .../versions/v2022_11_28/types/group_0672.py | 26 +- .../versions/v2022_11_28/types/group_0673.py | 73 +- .../versions/v2022_11_28/types/group_0674.py | 177 +- .../versions/v2022_11_28/types/group_0675.py | 20 +- .../versions/v2022_11_28/types/group_0676.py | 20 +- .../versions/v2022_11_28/types/group_0677.py | 55 +- .../versions/v2022_11_28/types/group_0678.py | 153 +- .../versions/v2022_11_28/types/group_0679.py | 65 +- .../versions/v2022_11_28/types/group_0680.py | 22 +- .../versions/v2022_11_28/types/group_0681.py | 22 +- .../versions/v2022_11_28/types/group_0682.py | 22 +- .../versions/v2022_11_28/types/group_0683.py | 46 +- .../versions/v2022_11_28/types/group_0684.py | 22 +- .../versions/v2022_11_28/types/group_0685.py | 22 +- .../versions/v2022_11_28/types/group_0686.py | 24 +- .../versions/v2022_11_28/types/group_0687.py | 45 +- .../versions/v2022_11_28/types/group_0688.py | 71 +- .../versions/v2022_11_28/types/group_0689.py | 94 +- .../versions/v2022_11_28/types/group_0690.py | 101 +- .../versions/v2022_11_28/types/group_0691.py | 122 +- .../versions/v2022_11_28/types/group_0692.py | 115 +- .../versions/v2022_11_28/types/group_0693.py | 22 +- .../versions/v2022_11_28/types/group_0694.py | 24 +- .../versions/v2022_11_28/types/group_0695.py | 86 +- .../versions/v2022_11_28/types/group_0696.py | 44 +- .../versions/v2022_11_28/types/group_0697.py | 87 +- .../versions/v2022_11_28/types/group_0698.py | 96 +- .../versions/v2022_11_28/types/group_0699.py | 298 +- .../versions/v2022_11_28/types/group_0700.py | 114 +- .../versions/v2022_11_28/types/group_0701.py | 103 +- .../versions/v2022_11_28/types/group_0702.py | 22 +- .../versions/v2022_11_28/types/group_0703.py | 24 +- .../versions/v2022_11_28/types/group_0704.py | 86 +- .../versions/v2022_11_28/types/group_0705.py | 26 +- .../versions/v2022_11_28/types/group_0706.py | 171 +- .../versions/v2022_11_28/types/group_0707.py | 24 +- .../versions/v2022_11_28/types/group_0708.py | 223 +- .../versions/v2022_11_28/types/group_0709.py | 13 +- .../versions/v2022_11_28/types/group_0710.py | 26 +- .../versions/v2022_11_28/types/group_0711.py | 26 +- .../versions/v2022_11_28/types/group_0712.py | 43 +- .../versions/v2022_11_28/types/group_0713.py | 25 +- .../versions/v2022_11_28/types/group_0714.py | 27 +- .../versions/v2022_11_28/types/group_0715.py | 130 +- .../versions/v2022_11_28/types/group_0716.py | 25 +- .../versions/v2022_11_28/types/group_0717.py | 21 +- .../versions/v2022_11_28/types/group_0718.py | 197 +- .../versions/v2022_11_28/types/group_0719.py | 28 +- .../versions/v2022_11_28/types/group_0720.py | 24 +- .../versions/v2022_11_28/types/group_0721.py | 45 +- .../versions/v2022_11_28/types/group_0722.py | 25 +- .../versions/v2022_11_28/types/group_0723.py | 27 +- .../versions/v2022_11_28/types/group_0724.py | 196 +- .../versions/v2022_11_28/types/group_0725.py | 187 +- .../versions/v2022_11_28/types/group_0726.py | 189 +- .../versions/v2022_11_28/types/group_0727.py | 322 +- .../versions/v2022_11_28/types/group_0728.py | 186 +- .../versions/v2022_11_28/types/group_0729.py | 22 +- .../versions/v2022_11_28/types/group_0730.py | 33 +- .../versions/v2022_11_28/types/group_0731.py | 76 +- .../versions/v2022_11_28/types/group_0732.py | 72 +- .../versions/v2022_11_28/types/group_0733.py | 210 +- .../versions/v2022_11_28/types/group_0734.py | 210 +- .../versions/v2022_11_28/types/group_0735.py | 199 +- .../versions/v2022_11_28/types/group_0736.py | 269 +- .../versions/v2022_11_28/types/group_0737.py | 211 +- .../versions/v2022_11_28/types/group_0738.py | 67 +- .../versions/v2022_11_28/types/group_0739.py | 417 +- .../versions/v2022_11_28/types/group_0740.py | 445 +- .../versions/v2022_11_28/types/group_0741.py | 425 +- .../versions/v2022_11_28/types/group_0742.py | 81 +- .../versions/v2022_11_28/types/group_0743.py | 72 +- .../versions/v2022_11_28/types/group_0744.py | 65 +- .../versions/v2022_11_28/types/group_0745.py | 55 +- .../versions/v2022_11_28/types/group_0746.py | 70 +- .../versions/v2022_11_28/types/group_0747.py | 69 +- .../versions/v2022_11_28/types/group_0748.py | 418 +- .../versions/v2022_11_28/types/group_0749.py | 421 +- .../versions/v2022_11_28/types/group_0750.py | 419 +- .../versions/v2022_11_28/types/group_0751.py | 45 +- .../versions/v2022_11_28/types/group_0752.py | 12 +- .../versions/v2022_11_28/types/group_0753.py | 14 +- .../versions/v2022_11_28/types/group_0754.py | 26 +- .../versions/v2022_11_28/types/group_0755.py | 25 +- .../versions/v2022_11_28/types/group_0756.py | 31 +- .../versions/v2022_11_28/types/group_0757.py | 8 +- .../versions/v2022_11_28/types/group_0758.py | 8 +- .../versions/v2022_11_28/types/group_0759.py | 8 +- .../versions/v2022_11_28/types/group_0760.py | 17 +- .../versions/v2022_11_28/types/group_0761.py | 13 +- .../versions/v2022_11_28/types/group_0762.py | 14 +- .../versions/v2022_11_28/types/group_0763.py | 8 +- .../versions/v2022_11_28/types/group_0764.py | 24 +- .../versions/v2022_11_28/types/group_0765.py | 61 +- .../versions/v2022_11_28/types/group_0766.py | 35 +- .../versions/v2022_11_28/types/group_0767.py | 12 +- .../versions/v2022_11_28/types/group_0768.py | 12 +- .../versions/v2022_11_28/types/group_0769.py | 9 +- .../versions/v2022_11_28/types/group_0770.py | 13 +- .../versions/v2022_11_28/types/group_0771.py | 15 +- .../versions/v2022_11_28/types/group_0772.py | 15 +- .../versions/v2022_11_28/types/group_0773.py | 14 +- .../versions/v2022_11_28/types/group_0774.py | 11 +- .../versions/v2022_11_28/types/group_0775.py | 54 +- .../versions/v2022_11_28/types/group_0776.py | 24 +- .../versions/v2022_11_28/types/group_0777.py | 29 +- .../versions/v2022_11_28/types/group_0778.py | 18 +- .../versions/v2022_11_28/types/group_0779.py | 11 +- .../versions/v2022_11_28/types/group_0780.py | 11 +- .../versions/v2022_11_28/types/group_0781.py | 30 +- .../versions/v2022_11_28/types/group_0782.py | 17 +- .../versions/v2022_11_28/types/group_0783.py | 18 +- .../versions/v2022_11_28/types/group_0784.py | 11 +- .../versions/v2022_11_28/types/group_0785.py | 8 +- .../versions/v2022_11_28/types/group_0786.py | 10 +- .../versions/v2022_11_28/types/group_0787.py | 32 +- .../versions/v2022_11_28/types/group_0788.py | 15 +- .../versions/v2022_11_28/types/group_0789.py | 11 +- .../versions/v2022_11_28/types/group_0790.py | 30 +- .../versions/v2022_11_28/types/group_0791.py | 28 +- .../versions/v2022_11_28/types/group_0792.py | 18 +- .../versions/v2022_11_28/types/group_0793.py | 15 +- .../versions/v2022_11_28/types/group_0794.py | 11 +- .../versions/v2022_11_28/types/group_0795.py | 12 +- .../versions/v2022_11_28/types/group_0796.py | 65 +- .../versions/v2022_11_28/types/group_0797.py | 40 +- .../versions/v2022_11_28/types/group_0798.py | 38 +- .../versions/v2022_11_28/types/group_0799.py | 15 +- .../versions/v2022_11_28/types/group_0800.py | 14 +- .../versions/v2022_11_28/types/group_0801.py | 21 +- .../versions/v2022_11_28/types/group_0802.py | 31 +- .../versions/v2022_11_28/types/group_0803.py | 17 +- .../versions/v2022_11_28/types/group_0804.py | 11 +- .../versions/v2022_11_28/types/group_0805.py | 8 +- .../versions/v2022_11_28/types/group_0806.py | 34 +- .../versions/v2022_11_28/types/group_0807.py | 31 +- .../versions/v2022_11_28/types/group_0808.py | 18 +- .../versions/v2022_11_28/types/group_0809.py | 11 +- .../versions/v2022_11_28/types/group_0810.py | 14 +- .../versions/v2022_11_28/types/group_0811.py | 15 +- .../versions/v2022_11_28/types/group_0812.py | 13 +- .../versions/v2022_11_28/types/group_0813.py | 12 +- .../versions/v2022_11_28/types/group_0814.py | 22 +- .../versions/v2022_11_28/types/group_0815.py | 12 +- .../versions/v2022_11_28/types/group_0816.py | 16 +- .../versions/v2022_11_28/types/group_0817.py | 11 +- .../versions/v2022_11_28/types/group_0818.py | 11 +- .../versions/v2022_11_28/types/group_0819.py | 28 +- .../versions/v2022_11_28/types/group_0820.py | 15 +- .../versions/v2022_11_28/types/group_0821.py | 16 +- .../versions/v2022_11_28/types/group_0822.py | 11 +- .../versions/v2022_11_28/types/group_0823.py | 32 +- .../versions/v2022_11_28/types/group_0824.py | 28 +- .../versions/v2022_11_28/types/group_0825.py | 17 +- .../versions/v2022_11_28/types/group_0826.py | 19 +- .../versions/v2022_11_28/types/group_0827.py | 12 +- .../versions/v2022_11_28/types/group_0828.py | 56 +- .../versions/v2022_11_28/types/group_0829.py | 78 +- .../versions/v2022_11_28/types/group_0830.py | 75 +- .../versions/v2022_11_28/types/group_0831.py | 31 +- .../versions/v2022_11_28/types/group_0832.py | 17 +- .../versions/v2022_11_28/types/group_0833.py | 13 +- .../versions/v2022_11_28/types/group_0834.py | 9 +- .../versions/v2022_11_28/types/group_0835.py | 8 +- .../versions/v2022_11_28/types/group_0836.py | 15 +- .../versions/v2022_11_28/types/group_0837.py | 22 +- .../versions/v2022_11_28/types/group_0838.py | 15 +- .../versions/v2022_11_28/types/group_0839.py | 13 +- .../versions/v2022_11_28/types/group_0840.py | 10 +- .../versions/v2022_11_28/types/group_0841.py | 10 +- .../versions/v2022_11_28/types/group_0842.py | 13 +- .../versions/v2022_11_28/types/group_0843.py | 14 +- .../versions/v2022_11_28/types/group_0844.py | 15 +- .../versions/v2022_11_28/types/group_0845.py | 54 +- .../versions/v2022_11_28/types/group_0846.py | 75 +- .../versions/v2022_11_28/types/group_0847.py | 76 +- .../versions/v2022_11_28/types/group_0848.py | 33 +- .../versions/v2022_11_28/types/group_0849.py | 30 +- .../versions/v2022_11_28/types/group_0850.py | 12 +- .../versions/v2022_11_28/types/group_0851.py | 12 +- .../versions/v2022_11_28/types/group_0852.py | 9 +- .../versions/v2022_11_28/types/group_0853.py | 26 +- .../versions/v2022_11_28/types/group_0854.py | 17 +- .../versions/v2022_11_28/types/group_0855.py | 11 +- .../versions/v2022_11_28/types/group_0856.py | 12 +- .../versions/v2022_11_28/types/group_0857.py | 14 +- .../versions/v2022_11_28/types/group_0858.py | 8 +- .../versions/v2022_11_28/types/group_0859.py | 9 +- .../versions/v2022_11_28/types/group_0860.py | 11 +- .../versions/v2022_11_28/types/group_0861.py | 8 +- .../versions/v2022_11_28/types/group_0862.py | 111 +- .../versions/v2022_11_28/types/group_0863.py | 15 +- .../versions/v2022_11_28/types/group_0864.py | 10 +- .../versions/v2022_11_28/types/group_0865.py | 26 +- .../versions/v2022_11_28/types/group_0866.py | 26 +- .../versions/v2022_11_28/types/group_0867.py | 12 +- .../versions/v2022_11_28/types/group_0868.py | 13 +- .../versions/v2022_11_28/types/group_0869.py | 13 +- .../versions/v2022_11_28/types/group_0870.py | 26 +- .../versions/v2022_11_28/types/group_0871.py | 9 +- .../versions/v2022_11_28/types/group_0872.py | 9 +- .../versions/v2022_11_28/types/group_0873.py | 15 +- .../versions/v2022_11_28/types/group_0874.py | 19 +- .../versions/v2022_11_28/types/group_0875.py | 17 +- .../versions/v2022_11_28/types/group_0876.py | 15 +- .../versions/v2022_11_28/types/group_0877.py | 11 +- .../versions/v2022_11_28/types/group_0878.py | 9 +- .../versions/v2022_11_28/types/group_0879.py | 130 +- .../versions/v2022_11_28/types/group_0880.py | 10 +- .../versions/v2022_11_28/types/group_0881.py | 9 +- .../versions/v2022_11_28/types/group_0882.py | 15 +- .../versions/v2022_11_28/types/group_0883.py | 13 +- .../versions/v2022_11_28/types/group_0884.py | 15 +- .../versions/v2022_11_28/types/group_0885.py | 37 +- .../versions/v2022_11_28/types/group_0886.py | 29 +- .../versions/v2022_11_28/types/group_0887.py | 16 +- .../versions/v2022_11_28/types/group_0888.py | 13 +- .../versions/v2022_11_28/types/group_0889.py | 130 +- .../versions/v2022_11_28/types/group_0890.py | 57 +- .../versions/v2022_11_28/types/group_0891.py | 33 +- .../versions/v2022_11_28/types/group_0892.py | 17 +- .../versions/v2022_11_28/types/group_0893.py | 17 +- .../versions/v2022_11_28/types/group_0894.py | 21 +- .../versions/v2022_11_28/types/group_0895.py | 17 +- .../versions/v2022_11_28/types/group_0896.py | 17 +- .../versions/v2022_11_28/types/group_0897.py | 17 +- .../versions/v2022_11_28/types/group_0898.py | 18 +- .../versions/v2022_11_28/types/group_0899.py | 15 +- .../versions/v2022_11_28/types/group_0900.py | 18 +- .../versions/v2022_11_28/types/group_0901.py | 18 +- .../versions/v2022_11_28/types/group_0902.py | 42 +- .../versions/v2022_11_28/types/group_0903.py | 26 +- .../versions/v2022_11_28/types/group_0904.py | 12 +- .../versions/v2022_11_28/types/group_0905.py | 70 +- .../versions/v2022_11_28/types/group_0906.py | 41 +- .../versions/v2022_11_28/types/group_0907.py | 90 +- .../versions/v2022_11_28/types/group_0908.py | 65 +- .../versions/v2022_11_28/types/group_0909.py | 149 +- .../versions/v2022_11_28/types/group_0910.py | 79 +- .../versions/v2022_11_28/types/group_0911.py | 33 +- .../versions/v2022_11_28/types/group_0912.py | 26 +- .../versions/v2022_11_28/types/group_0913.py | 17 +- .../versions/v2022_11_28/types/group_0914.py | 25 +- .../versions/v2022_11_28/types/group_0915.py | 24 +- .../versions/v2022_11_28/types/group_0916.py | 24 +- .../versions/v2022_11_28/types/group_0917.py | 26 +- .../versions/v2022_11_28/types/group_0918.py | 24 +- .../versions/v2022_11_28/types/group_0919.py | 15 +- .../versions/v2022_11_28/types/group_0920.py | 30 +- .../versions/v2022_11_28/types/group_0921.py | 28 +- .../versions/v2022_11_28/types/group_0922.py | 15 +- .../versions/v2022_11_28/types/group_0923.py | 27 +- .../versions/v2022_11_28/types/group_0924.py | 25 +- .../versions/v2022_11_28/types/group_0925.py | 58 +- .../versions/v2022_11_28/types/group_0926.py | 41 +- .../versions/v2022_11_28/types/group_0927.py | 47 +- .../versions/v2022_11_28/types/group_0928.py | 66 +- .../versions/v2022_11_28/types/group_0929.py | 45 +- .../versions/v2022_11_28/types/group_0930.py | 52 +- .../versions/v2022_11_28/types/group_0931.py | 42 +- .../versions/v2022_11_28/types/group_0932.py | 43 +- .../versions/v2022_11_28/types/group_0933.py | 21 +- .../versions/v2022_11_28/types/group_0934.py | 32 +- .../versions/v2022_11_28/types/group_0935.py | 16 +- .../versions/v2022_11_28/types/group_0936.py | 20 +- .../versions/v2022_11_28/types/group_0937.py | 31 +- .../versions/v2022_11_28/types/group_0938.py | 15 +- .../versions/v2022_11_28/types/group_0939.py | 23 +- .../versions/v2022_11_28/types/group_0940.py | 31 +- .../versions/v2022_11_28/types/group_0941.py | 38 +- .../versions/v2022_11_28/types/group_0942.py | 31 +- .../versions/v2022_11_28/types/group_0943.py | 22 +- .../versions/v2022_11_28/types/group_0944.py | 29 +- .../versions/v2022_11_28/types/group_0945.py | 15 +- .../versions/v2022_11_28/types/group_0946.py | 11 +- .../versions/v2022_11_28/types/group_0947.py | 12 +- .../versions/v2022_11_28/types/group_0948.py | 12 +- .../versions/v2022_11_28/types/group_0949.py | 12 +- .../versions/v2022_11_28/types/group_0950.py | 16 +- .../versions/v2022_11_28/types/group_0951.py | 39 +- .../versions/v2022_11_28/types/group_0952.py | 43 +- .../versions/v2022_11_28/types/group_0953.py | 18 +- .../versions/v2022_11_28/types/group_0954.py | 28 +- .../versions/v2022_11_28/types/group_0955.py | 29 +- .../versions/v2022_11_28/types/group_0956.py | 28 +- .../versions/v2022_11_28/types/group_0957.py | 35 +- .../versions/v2022_11_28/types/group_0958.py | 15 +- .../versions/v2022_11_28/types/group_0959.py | 21 +- .../versions/v2022_11_28/types/group_0960.py | 25 +- .../versions/v2022_11_28/types/group_0961.py | 37 +- .../versions/v2022_11_28/types/group_0962.py | 26 +- .../versions/v2022_11_28/types/group_0963.py | 15 +- .../versions/v2022_11_28/types/group_0964.py | 22 +- .../versions/v2022_11_28/types/group_0965.py | 15 +- .../versions/v2022_11_28/types/group_0966.py | 31 +- .../versions/v2022_11_28/types/group_0967.py | 12 +- .../versions/v2022_11_28/types/group_0968.py | 12 +- .../versions/v2022_11_28/types/group_0969.py | 35 +- .../versions/v2022_11_28/types/group_0970.py | 11 +- .../versions/v2022_11_28/types/group_0971.py | 10 +- .../versions/v2022_11_28/types/group_0972.py | 47 +- .../versions/v2022_11_28/types/group_0973.py | 12 +- .../versions/v2022_11_28/types/group_0974.py | 21 +- .../versions/v2022_11_28/types/group_0975.py | 28 +- .../versions/v2022_11_28/types/group_0976.py | 24 +- .../versions/v2022_11_28/types/group_0977.py | 29 +- .../versions/v2022_11_28/types/group_0978.py | 17 +- .../versions/v2022_11_28/types/group_0979.py | 13 +- .../versions/v2022_11_28/types/group_0980.py | 16 +- .../versions/v2022_11_28/types/group_0981.py | 14 +- .../versions/v2022_11_28/types/group_0982.py | 11 +- .../versions/v2022_11_28/types/group_0983.py | 13 +- .../versions/v2022_11_28/types/group_0984.py | 8 +- .../versions/v2022_11_28/types/group_0985.py | 11 +- .../versions/v2022_11_28/types/group_0986.py | 33 +- .../versions/v2022_11_28/types/group_0987.py | 15 +- .../versions/v2022_11_28/types/group_0988.py | 14 +- .../versions/v2022_11_28/types/group_0989.py | 43 +- .../versions/v2022_11_28/types/group_0990.py | 16 +- .../versions/v2022_11_28/types/group_0991.py | 20 +- .../versions/v2022_11_28/types/group_0992.py | 19 +- .../versions/v2022_11_28/types/group_0993.py | 20 +- .../versions/v2022_11_28/types/group_0994.py | 29 +- .../versions/v2022_11_28/types/group_0995.py | 21 +- .../versions/v2022_11_28/types/group_0996.py | 14 +- .../versions/v2022_11_28/types/group_0997.py | 22 +- .../versions/v2022_11_28/types/group_0998.py | 14 +- .../versions/v2022_11_28/types/group_0999.py | 16 +- .../versions/v2022_11_28/types/group_1000.py | 11 +- .../versions/v2022_11_28/types/group_1001.py | 11 +- .../versions/v2022_11_28/types/group_1002.py | 15 +- .../versions/v2022_11_28/types/group_1003.py | 17 +- .../versions/v2022_11_28/types/group_1004.py | 8 +- .../versions/v2022_11_28/types/group_1005.py | 15 +- .../versions/v2022_11_28/types/group_1006.py | 14 +- .../versions/v2022_11_28/types/group_1007.py | 21 +- .../versions/v2022_11_28/types/group_1008.py | 19 +- .../versions/v2022_11_28/types/group_1009.py | 11 +- .../versions/v2022_11_28/types/group_1010.py | 17 +- .../versions/v2022_11_28/types/group_1011.py | 20 +- .../versions/v2022_11_28/types/group_1012.py | 18 +- .../versions/v2022_11_28/types/group_1013.py | 21 +- .../versions/v2022_11_28/types/group_1014.py | 21 +- .../versions/v2022_11_28/types/group_1015.py | 21 +- .../versions/v2022_11_28/types/group_1016.py | 32 +- .../versions/v2022_11_28/types/group_1017.py | 14 +- .../versions/v2022_11_28/types/group_1018.py | 12 +- .../versions/v2022_11_28/types/group_1019.py | 17 +- .../versions/v2022_11_28/types/group_1020.py | 10 +- .../versions/v2022_11_28/types/group_1021.py | 10 +- .../versions/v2022_11_28/types/group_1022.py | 22 +- .../versions/v2022_11_28/types/group_1023.py | 17 +- .../versions/v2022_11_28/types/group_1024.py | 13 +- .../versions/v2022_11_28/types/group_1025.py | 19 +- .../versions/v2022_11_28/types/group_1026.py | 14 +- .../versions/v2022_11_28/types/group_1027.py | 76 +- .../versions/v2022_11_28/types/group_1028.py | 76 +- .../versions/v2022_11_28/types/group_1029.py | 15 +- .../versions/v2022_11_28/types/group_1030.py | 16 +- .../versions/v2022_11_28/types/group_1031.py | 10 +- .../versions/v2022_11_28/types/group_1032.py | 11 +- .../versions/v2022_11_28/types/group_1033.py | 11 +- .../versions/v2022_11_28/types/group_1034.py | 11 +- .../versions/v2022_11_28/types/group_1035.py | 14 +- .../versions/v2022_11_28/types/group_1036.py | 35 +- .../versions/v2022_11_28/types/group_1037.py | 10 +- .../versions/v2022_11_28/types/group_1038.py | 11 +- .../versions/v2022_11_28/types/group_1039.py | 12 +- .../versions/v2022_11_28/types/group_1040.py | 12 +- .../versions/v2022_11_28/types/group_1041.py | 18 +- .../versions/v2022_11_28/types/group_1042.py | 20 +- .../versions/v2022_11_28/types/group_1043.py | 11 +- .../versions/v2022_11_28/types/group_1044.py | 12 +- .../versions/v2022_11_28/types/group_1045.py | 17 +- .../versions/v2022_11_28/types/group_1046.py | 10 +- .../versions/v2022_11_28/types/group_1047.py | 74 +- .../versions/v2022_11_28/types/group_1048.py | 70 +- .../versions/v2022_11_28/types/group_1049.py | 25 +- .../versions/v2022_11_28/types/group_1050.py | 32 +- .../versions/v2022_11_28/types/group_1051.py | 30 +- .../versions/v2022_11_28/types/group_1052.py | 13 +- .../versions/v2022_11_28/types/group_1053.py | 11 +- .../versions/v2022_11_28/types/group_1054.py | 12 +- .../versions/v2022_11_28/types/group_1055.py | 15 +- .../versions/v2022_11_28/types/group_1056.py | 22 +- .../versions/v2022_11_28/types/group_1057.py | 9 +- .../versions/v2022_11_28/types/group_1058.py | 12 +- .../versions/v2022_11_28/types/group_1059.py | 13 +- .../versions/v2022_11_28/types/group_1060.py | 20 +- .../versions/v2022_11_28/types/group_1061.py | 18 +- .../versions/v2022_11_28/types/group_1062.py | 15 +- .../versions/v2022_11_28/types/group_1063.py | 14 +- .../versions/v2022_11_28/types/group_1064.py | 11 +- .../versions/v2022_11_28/types/group_1065.py | 10 +- .../versions/v2022_11_28/types/group_1066.py | 10 +- .../versions/v2022_11_28/types/group_1067.py | 25 +- .../versions/v2022_11_28/types/group_1068.py | 16 +- .../versions/v2022_11_28/types/group_1069.py | 49 +- .../versions/v2022_11_28/types/group_1070.py | 32 +- .../versions/v2022_11_28/types/group_1071.py | 29 +- .../versions/v2022_11_28/types/group_1072.py | 12 +- .../versions/v2022_11_28/types/group_1073.py | 25 + .../versions/v2022_11_28/types/group_1074.py | 22 + .../versions/v2022_11_28/types/group_1075.py | 24 + .../versions/v2022_11_28/types/group_1076.py | 25 + .../versions/v2022_11_28/types/group_1077.py | 22 + .../versions/v2022_11_28/types/group_1078.py | 22 + .../versions/v2022_11_28/types/group_1079.py | 26 + .../versions/v2022_11_28/types/group_1080.py | 31 + .../versions/v2022_11_28/types/group_1081.py | 22 + .../versions/v2022_11_28/types/group_1082.py | 25 + .../versions/v2022_11_28/types/group_1083.py | 26 + .../versions/v2022_11_28/types/group_1084.py | 19 + .../versions/v2022_11_28/types/group_1085.py | 22 + .../versions/v2022_11_28/types/group_1086.py | 22 + .../versions/v2022_11_28/types/group_1087.py | 30 + .../versions/v2022_11_28/types/group_1088.py | 23 + .../versions/v2022_11_28/types/group_1089.py | 46 + .../versions/v2022_11_28/types/group_1090.py | 27 + .../versions/v2022_11_28/types/group_1091.py | 27 + .../versions/v2022_11_28/types/group_1092.py | 22 + .../versions/v2022_11_28/types/group_1093.py | 151 + .../versions/v2022_11_28/webhooks/__init__.py | 10 + .../v2022_11_28/webhooks/_namespace.py | 13 + .../versions/v2022_11_28/webhooks/_types.py | 7 + .../webhooks/projects_v2_status_update.py | 47 + pyproject.toml | 2 +- 4413 files changed, 245516 insertions(+), 235552 deletions(-) create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1149.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1150.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1151.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1152.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1153.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1154.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1155.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1156.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1157.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1158.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1159.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1160.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1161.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1162.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1163.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1164.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1165.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1166.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1167.py create mode 100644 githubkit/versions/ghec_v2022_11_28/models/group_1168.py create mode 100644 githubkit/versions/ghec_v2022_11_28/rest/code_security.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1149.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1150.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1151.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1152.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1153.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1154.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1155.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1156.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1157.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1158.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1159.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1160.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1161.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1162.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1163.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1164.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1165.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1166.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1167.py create mode 100644 githubkit/versions/ghec_v2022_11_28/types/group_1168.py create mode 100644 githubkit/versions/ghec_v2022_11_28/webhooks/exemption_request_push_ruleset.py create mode 100644 githubkit/versions/ghec_v2022_11_28/webhooks/projects_v2_status_update.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1073.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1074.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1075.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1076.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1077.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1078.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1079.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1080.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1081.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1082.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1083.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1084.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1085.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1086.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1087.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1088.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1089.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1090.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1091.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1092.py create mode 100644 githubkit/versions/v2022_11_28/models/group_1093.py create mode 100644 githubkit/versions/v2022_11_28/rest/code_security.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1073.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1074.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1075.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1076.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1077.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1078.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1079.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1080.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1081.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1082.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1083.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1084.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1085.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1086.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1087.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1088.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1089.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1090.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1091.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1092.py create mode 100644 githubkit/versions/v2022_11_28/types/group_1093.py create mode 100644 githubkit/versions/v2022_11_28/webhooks/projects_v2_status_update.py diff --git a/githubkit/rest/__init__.py b/githubkit/rest/__init__.py index b5c64f263..ed6e19930 100644 --- a/githubkit/rest/__init__.py +++ b/githubkit/rest/__init__.py @@ -155,6 +155,7 @@ from githubkit.versions.v2022_11_28.models import CommitActivity as CommitActivity from githubkit.versions.v2022_11_28.models import ContentSymlink as ContentSymlink from githubkit.versions.v2022_11_28.models import ContentTraffic as ContentTraffic + from githubkit.versions.v2022_11_28.models import EnterpriseTeam as EnterpriseTeam from githubkit.versions.v2022_11_28.models import FullRepository as FullRepository from githubkit.versions.v2022_11_28.models import GlobalAdvisory as GlobalAdvisory from githubkit.versions.v2022_11_28.models import LicenseContent as LicenseContent @@ -182,6 +183,7 @@ from githubkit.versions.v2022_11_28.models import ReferrerTraffic as ReferrerTraffic from githubkit.versions.v2022_11_28.models import RuleSuitesItems as RuleSuitesItems from githubkit.versions.v2022_11_28.models import SelectedActions as SelectedActions + from githubkit.versions.v2022_11_28.models import SigstoreBundle0 as SigstoreBundle0 from githubkit.versions.v2022_11_28.models import SimpleClassroom as SimpleClassroom from githubkit.versions.v2022_11_28.models import SnapshotPropJob as SnapshotPropJob from githubkit.versions.v2022_11_28.models import ValidationError as ValidationError @@ -432,9 +434,15 @@ from githubkit.versions.v2022_11_28.models import ( SimpleUserWebhooks as SimpleUserWebhooks, ) + from githubkit.versions.v2022_11_28.models import ( + TeamRoleAssignment as TeamRoleAssignment, + ) from githubkit.versions.v2022_11_28.models import ( ThreadSubscription as ThreadSubscription, ) + from githubkit.versions.v2022_11_28.models import ( + UserRoleAssignment as UserRoleAssignment, + ) from githubkit.versions.v2022_11_28.models import ( WebhookLabelEdited as WebhookLabelEdited, ) @@ -867,6 +875,9 @@ from githubkit.versions.v2022_11_28.models import ( OrganizationInvitation as OrganizationInvitation, ) + from githubkit.versions.v2022_11_28.models import ( + ProjectsV2StatusUpdate as ProjectsV2StatusUpdate, + ) from githubkit.versions.v2022_11_28.models import ( PullRequestMergeResult as PullRequestMergeResult, ) @@ -1188,6 +1199,9 @@ from githubkit.versions.v2022_11_28.models import ( CodeScanningSarifsReceipt as CodeScanningSarifsReceipt, ) + from githubkit.versions.v2022_11_28.models import ( + CodeSecurityConfiguration as CodeSecurityConfiguration, + ) from githubkit.versions.v2022_11_28.models import ( CommunityProfilePropFiles as CommunityProfilePropFiles, ) @@ -1359,6 +1373,9 @@ from githubkit.versions.v2022_11_28.models import ( ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody, ) + from githubkit.versions.v2022_11_28.models import ( + ProjectsV2IterationSetting as ProjectsV2IterationSetting, + ) from githubkit.versions.v2022_11_28.models import ( PullRequestMinimalPropBase as PullRequestMinimalPropBase, ) @@ -1677,6 +1694,9 @@ from githubkit.versions.v2022_11_28.models import ( OrganizationDependabotSecret as OrganizationDependabotSecret, ) + from githubkit.versions.v2022_11_28.models import ( + ProjectsV2SingleSelectOption as ProjectsV2SingleSelectOption, + ) from githubkit.versions.v2022_11_28.models import ( ProtectedBranchAdminEnforced as ProtectedBranchAdminEnforced, ) @@ -2172,6 +2192,9 @@ from githubkit.versions.v2022_11_28.models import ( SecretScanningLocationIssueBody as SecretScanningLocationIssueBody, ) + from githubkit.versions.v2022_11_28.models import ( + SigstoreBundle0PropDsseEnvelope as SigstoreBundle0PropDsseEnvelope, + ) from githubkit.versions.v2022_11_28.models import ( UserInstallationsGetResponse200 as UserInstallationsGetResponse200, ) @@ -2478,6 +2501,9 @@ from githubkit.versions.v2022_11_28.models import ( RuleSuitePropRuleEvaluationsItems as RuleSuitePropRuleEvaluationsItems, ) + from githubkit.versions.v2022_11_28.models import ( + TeamRoleAssignmentPropPermissions as TeamRoleAssignmentPropPermissions, + ) from githubkit.versions.v2022_11_28.models import ( WebhookBranchProtectionRuleEdited as WebhookBranchProtectionRuleEdited, ) @@ -2571,6 +2597,9 @@ from githubkit.versions.v2022_11_28.models import ( PullRequestReviewPropLinksPropHtml as PullRequestReviewPropLinksPropHtml, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsPostBody as ReposOwnerRepoAttestationsPostBody, + ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoHooksHookIdPatchBody as ReposOwnerRepoHooksHookIdPatchBody, ) @@ -2778,6 +2807,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookProjectCardEditedPropChanges as WebhookProjectCardEditedPropChanges, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookProjectsV2StatusUpdateEdited as WebhookProjectsV2StatusUpdateEdited, + ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAutoMergeDisabled as WebhookPullRequestAutoMergeDisabled, ) @@ -2907,6 +2939,12 @@ from githubkit.versions.v2022_11_28.models import ( WebhookMetaDeletedPropHookPropConfig as WebhookMetaDeletedPropHookPropConfig, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookProjectsV2StatusUpdateCreated as WebhookProjectsV2StatusUpdateCreated, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookProjectsV2StatusUpdateDeleted as WebhookProjectsV2StatusUpdateDeleted, + ) from githubkit.versions.v2022_11_28.models import ( WebhookPushPropRepositoryPropLicense as WebhookPushPropRepositoryPropLicense, ) @@ -2946,6 +2984,9 @@ from githubkit.versions.v2022_11_28.models import ( CodeScanningVariantAnalysisRepository as CodeScanningVariantAnalysisRepository, ) + from githubkit.versions.v2022_11_28.models import ( + CodeSecurityConfigurationRepositories as CodeSecurityConfigurationRepositories, + ) from githubkit.versions.v2022_11_28.models import ( CopilotUsageMetricsPropBreakdownItems as CopilotUsageMetricsPropBreakdownItems, ) @@ -3060,6 +3101,9 @@ from githubkit.versions.v2022_11_28.models import ( CodeScanningDefaultSetupUpdateResponse as CodeScanningDefaultSetupUpdateResponse, ) + from githubkit.versions.v2022_11_28.models import ( + CodeSecurityDefaultConfigurationsItems as CodeSecurityDefaultConfigurationsItems, + ) from githubkit.versions.v2022_11_28.models import ( CommitSearchResultItemPropParentsItems as CommitSearchResultItemPropParentsItems, ) @@ -3255,6 +3299,9 @@ from githubkit.versions.v2022_11_28.models import ( SecurityAndAnalysisPropAdvancedSecurity as SecurityAndAnalysisPropAdvancedSecurity, ) + from githubkit.versions.v2022_11_28.models import ( + SigstoreBundle0PropVerificationMaterial as SigstoreBundle0PropVerificationMaterial, + ) from githubkit.versions.v2022_11_28.models import ( WebhookDeploymentCreatedPropWorkflowRun as WebhookDeploymentCreatedPropWorkflowRun, ) @@ -3453,6 +3500,9 @@ from githubkit.versions.v2022_11_28.models import ( EnvironmentPropProtectionRulesItemsAnyof2 as EnvironmentPropProtectionRulesItemsAnyof2, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgCodeSecurityConfigurationsPostBody as OrgsOrgCodeSecurityConfigurationsPostBody, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgCodespacesSecretsSecretNamePutBody as OrgsOrgCodespacesSecretsSecretNamePutBody, ) @@ -3471,6 +3521,9 @@ from githubkit.versions.v2022_11_28.models import ( PullRequestReviewPropLinksPropPullRequest as PullRequestReviewPropLinksPropPullRequest, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsPostResponse201 as ReposOwnerRepoAttestationsPostResponse201, + ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoCheckRunsPostBodyPropOutput as ReposOwnerRepoCheckRunsPostBodyPropOutput, ) @@ -3936,6 +3989,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoActionsWorkflowsGetResponse200 as ReposOwnerRepoActionsWorkflowsGetResponse200, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsPostBodyPropBundle as ReposOwnerRepoAttestationsPostBodyPropBundle, + ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBody as ReposOwnerRepoImportAuthorsAuthorIdPatchBody, ) @@ -4137,6 +4193,9 @@ from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsVariablesNameRepositoriesPutBody as OrgsOrgActionsVariablesNameRepositoriesPutBody, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgAttestationsSubjectDigestGetResponse200 as OrgsOrgAttestationsSubjectDigestGetResponse200, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBody as OrgsOrgCodespacesAccessSelectedUsersDeleteBody, ) @@ -4233,6 +4292,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookProjectCardMovedPropChangesPropColumnId as WebhookProjectCardMovedPropChangesPropColumnId, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookProjectsV2StatusUpdateEditedPropChanges as WebhookProjectsV2StatusUpdateEditedPropChanges, + ) from githubkit.versions.v2022_11_28.models import ( WebhookReleasePrereleasedPropReleasePropAuthor as WebhookReleasePrereleasedPropReleasePropAuthor, ) @@ -4743,6 +4805,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2, ) + from githubkit.versions.v2022_11_28.models import ( + SigstoreBundle0PropDsseEnvelopePropSignaturesItems as SigstoreBundle0PropDsseEnvelopePropSignaturesItems, + ) from githubkit.versions.v2022_11_28.models import ( UserCodespacesSecretsSecretNameRepositoriesPutBody as UserCodespacesSecretsSecretNameRepositoriesPutBody, ) @@ -4953,6 +5018,9 @@ from githubkit.versions.v2022_11_28.models import ( RepositoryRuleCommitAuthorEmailPatternPropParameters as RepositoryRuleCommitAuthorEmailPatternPropParameters, ) + from githubkit.versions.v2022_11_28.models import ( + UsersUsernameAttestationsSubjectDigestGetResponse200 as UsersUsernameAttestationsSubjectDigestGetResponse200, + ) from githubkit.versions.v2022_11_28.models import ( WebhookInstallationTargetRenamedPropChangesPropLogin as WebhookInstallationTargetRenamedPropChangesPropLogin, ) @@ -5061,6 +5129,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200 as ReposOwnerRepoAttestationsSubjectDigestGetResponse200, + ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaults as ReposOwnerRepoCodespacesNewGetResponse200PropDefaults, ) @@ -5199,6 +5270,9 @@ from githubkit.versions.v2022_11_28.models import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItems as WorkflowRunUsagePropBillablePropMacosPropJobRunsItems, ) + from githubkit.versions.v2022_11_28.models import ( + EnterprisesEnterpriseCopilotBillingSeatsGetResponse200 as EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody, ) @@ -5268,6 +5342,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnlockedPropIssuePropMilestonePropCreator as WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropBody as WebhookProjectsV2StatusUpdateEditedPropChangesPropBody, + ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAssignedPropPullRequestPropAutoMerge as WebhookPullRequestAssignedPropPullRequestPropAutoMerge, ) @@ -5463,6 +5540,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items, ) + from githubkit.versions.v2022_11_28.models import ( + SecurityAndAnalysisPropSecretScanningNonProviderPatterns as SecurityAndAnalysisPropSecretScanningNonProviderPatterns, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, ) @@ -5508,6 +5588,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookProjectsV2ProjectEditedPropChangesPropDescription as WebhookProjectsV2ProjectEditedPropChangesPropDescription, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus as WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus, + ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItems as WebhookPullRequestAssignedPropPullRequestPropLabelsItems, ) @@ -5595,6 +5678,9 @@ from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, + ) from githubkit.versions.v2022_11_28.models import ( ProtectedBranchPullRequestReviewPropDismissalRestrictions as ProtectedBranchPullRequestReviewPropDismissalRestrictions, ) @@ -5868,6 +5954,9 @@ from githubkit.versions.v2022_11_28.models import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage, ) + from githubkit.versions.v2022_11_28.models import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems, + ) from githubkit.versions.v2022_11_28.models import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository, ) @@ -5895,6 +5984,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee as WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate, + ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItems as WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, ) @@ -5967,6 +6059,9 @@ from githubkit.versions.v2022_11_28.models import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepository as PersonalAccessTokenRequestPropPermissionsAddedPropRepository, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope, + ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200 as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200, ) @@ -6003,6 +6098,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate, + ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits, ) @@ -6258,6 +6356,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, + ) from githubkit.versions.v2022_11_28.models import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganization as PersonalAccessTokenRequestPropPermissionsAddedPropOrganization, ) @@ -6405,6 +6506,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, ) @@ -6420,6 +6524,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody, ) + from githubkit.versions.v2022_11_28.models import ( + SigstoreBundle0PropVerificationMaterialPropX509CertificateChain as SigstoreBundle0PropVerificationMaterialPropX509CertificateChain, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems, ) @@ -6783,6 +6890,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync as WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor, ) @@ -6960,6 +7070,9 @@ from githubkit.versions.v2022_11_28.models import ( CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos as CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems, + ) from githubkit.versions.v2022_11_28.models import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage, ) @@ -7110,6 +7223,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial, + ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0, ) @@ -7119,6 +7235,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0, ) + from githubkit.versions.v2022_11_28.models import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId, + ) from githubkit.versions.v2022_11_28.models import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) @@ -7410,6 +7529,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, + ) from githubkit.versions.v2022_11_28.models import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, ) @@ -7539,6 +7661,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval as WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase, ) @@ -7809,6 +7934,9 @@ from githubkit.versions.v2022_11_28.models import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, ) + from githubkit.versions.v2022_11_28.models import ( + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage, ) @@ -7896,9 +8024,18 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems, + ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody, ) + from githubkit.versions.v2022_11_28.models import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation, ) @@ -8256,6 +8393,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) @@ -8409,6 +8549,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200, ) + from githubkit.versions.v2022_11_28.models import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) @@ -8655,6 +8798,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage, ) @@ -8712,6 +8858,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation, ) @@ -8763,12 +8912,18 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, + ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems, ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200, ) + from githubkit.versions.v2022_11_28.models import ( + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems, + ) from githubkit.versions.v2022_11_28.models import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel, ) @@ -9078,6 +9233,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, + ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) @@ -9144,9 +9302,15 @@ from githubkit.versions.v2022_11_28.models import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, + ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, + ) from githubkit.versions.v2022_11_28.models import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, ) @@ -9183,6 +9347,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, + ) else: __lazy_vars__ = { "githubkit.versions.v2022_11_28.models": ( @@ -9230,6 +9397,14 @@ "SimpleClassroomAssignment", "SimpleClassroom", "ClassroomAssignmentGrade", + "TeamSimple", + "Team", + "TeamPropPermissions", + "OrganizationSimple", + "CopilotSeatDetails", + "EnterpriseTeam", + "Organization", + "OrganizationPropPlan", "CopilotUsageMetrics", "CopilotUsageMetricsPropBreakdownItems", "DependabotAlertPackage", @@ -9286,6 +9461,7 @@ "SecurityAndAnalysisPropDependabotSecurityUpdates", "SecurityAndAnalysisPropSecretScanning", "SecurityAndAnalysisPropSecretScanningPushProtection", + "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", "MinimalRepository", "CodeOfConduct", "MinimalRepositoryPropPermissions", @@ -9297,7 +9473,6 @@ "OrganizationFullPropPlan", "ActionsCacheUsageOrgEnterprise", "OidcCustomSub", - "EmptyObject", "ActionsOrganizationPermissions", "SelectedActions", "ActionsGetDefaultWorkflowPermissions", @@ -9314,6 +9489,9 @@ "CodeScanningAlertLocation", "CodeScanningAlertInstancePropMessage", "CodeScanningOrganizationAlertItems", + "CodeSecurityConfiguration", + "CodeSecurityDefaultConfigurationsItems", + "CodeSecurityConfigurationRepositories", "CodespaceMachine", "Codespace", "CodespacePropGitStatus", @@ -9321,13 +9499,6 @@ "CodespacesPublicKey", "CopilotOrganizationDetails", "CopilotSeatBreakdown", - "TeamSimple", - "Team", - "TeamPropPermissions", - "CopilotSeatDetails", - "Organization", - "OrganizationPropPlan", - "OrgsOrgCopilotBillingSeatsGetResponse200", "DependabotPublicKey", "Package", "OrganizationInvitation", @@ -9336,12 +9507,14 @@ "InteractionLimitResponse", "InteractionLimit", "OrgMembership", - "OrganizationSimple", "OrgMembershipPropPermissions", "Migration", "OrganizationFineGrainedPermission", "OrganizationRole", "OrgsOrgOrganizationRolesGetResponse200", + "TeamRoleAssignment", + "TeamRoleAssignmentPropPermissions", + "UserRoleAssignment", "PackageVersion", "PackageVersionPropMetadata", "PackageVersionPropMetadataPropContainer", @@ -9527,6 +9700,7 @@ "Verification", "DiffEntry", "Commit", + "EmptyObject", "CommitPropParentsItems", "CommitPropStats", "CommitPropCommit", @@ -9965,6 +10139,7 @@ "WebhooksProjectChanges", "WebhooksProjectChangesPropArchivedAt", "ProjectsV2Item", + "ProjectsV2StatusUpdate", "PullRequestWebhook", "PullRequestWebhookAllof1", "WebhooksPullRequest5", @@ -10057,6 +10232,10 @@ "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", "WebhookCheckRunCompleted", @@ -10771,6 +10950,8 @@ "WebhookProjectsV2ItemEdited", "WebhookProjectsV2ItemEditedPropChangesOneof0", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", + "ProjectsV2SingleSelectOption", + "ProjectsV2IterationSetting", "WebhookProjectsV2ItemEditedPropChangesOneof1", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", "WebhookProjectsV2ItemReordered", @@ -10778,6 +10959,14 @@ "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", "WebhookProjectsV2ItemRestored", "WebhookProjectsV2ProjectReopened", + "WebhookProjectsV2StatusUpdateCreated", + "WebhookProjectsV2StatusUpdateDeleted", + "WebhookProjectsV2StatusUpdateEdited", + "WebhookProjectsV2StatusUpdateEditedPropChanges", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", "WebhookPublic", "WebhookPullRequestAssigned", "WebhookPullRequestAssignedPropPullRequest", @@ -11983,6 +12172,7 @@ "ApplicationsClientIdTokenPatchBody", "ApplicationsClientIdTokenScopedPostBody", "EmojisGetResponse200", + "EnterprisesEnterpriseCopilotBillingSeatsGetResponse200", "EnterprisesEnterpriseSecretScanningAlertsGetResponse503", "GistsPostBody", "GistsPostBodyPropFiles", @@ -12022,6 +12212,16 @@ "OrgsOrgActionsVariablesNamePatchBody", "OrgsOrgActionsVariablesNameRepositoriesGetResponse200", "OrgsOrgActionsVariablesNameRepositoriesPutBody", + "OrgsOrgAttestationsSubjectDigestGetResponse200", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + "OrgsOrgCodeSecurityConfigurationsPostBody", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", "OrgsOrgCodespacesGetResponse200", "OrgsOrgCodespacesAccessPutBody", "OrgsOrgCodespacesAccessSelectedUsersPostBody", @@ -12031,6 +12231,7 @@ "OrgsOrgCodespacesSecretsSecretNamePutBody", "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200", "OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody", + "OrgsOrgCopilotBillingSeatsGetResponse200", "OrgsOrgCopilotBillingSelectedTeamsPostBody", "OrgsOrgCopilotBillingSelectedTeamsPostResponse201", "OrgsOrgCopilotBillingSelectedTeamsDeleteBody", @@ -12111,6 +12312,7 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", "ReposOwnerRepoActionsArtifactsGetResponse200", "ReposOwnerRepoActionsJobsJobIdRerunPostBody", "ReposOwnerRepoActionsOidcCustomizationSubPutBody", @@ -12138,6 +12340,16 @@ "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", "ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200", + "ReposOwnerRepoAttestationsPostBody", + "ReposOwnerRepoAttestationsPostBodyPropBundle", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", + "ReposOwnerRepoAttestationsPostResponse201", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", "ReposOwnerRepoAutolinksPostBody", "ReposOwnerRepoBranchesBranchProtectionPutBody", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", @@ -12363,5 +12575,17 @@ "UserSocialAccountsPostBody", "UserSocialAccountsDeleteBody", "UserSshSigningKeysPostBody", + "UsersUsernameAttestationsSubjectDigestGetResponse200", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "SigstoreBundle0", + "SigstoreBundle0PropDsseEnvelope", + "SigstoreBundle0PropDsseEnvelopePropSignaturesItems", + "SigstoreBundle0PropVerificationMaterial", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChain", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise", ) } diff --git a/githubkit/versions/ghec_v2022_11_28/models/__init__.py b/githubkit/versions/ghec_v2022_11_28/models/__init__.py index 2d15e2acb..df3d7096d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/__init__.py +++ b/githubkit/versions/ghec_v2022_11_28/models/__init__.py @@ -10,917 +10,925 @@ from typing import TYPE_CHECKING if TYPE_CHECKING: - from .group_0179 import Job as Job - from .group_0358 import Tag as Tag - from .group_0395 import Key as Key + from .group_0183 import Job as Job + from .group_0362 import Tag as Tag + from .group_0399 import Key as Key from .group_0000 import Root as Root - from .group_0066 import Feed as Feed - from .group_0093 import Team as Team - from .group_0239 import Link as Link - from .group_0273 import Blob as Blob - from .group_0279 import Hook as Hook - from .group_0313 import Page as Page - from .group_0367 import Meta as Meta - from .group_0378 import User as User - from .group_0063 import Issue as Issue - from .group_0065 import Actor as Actor - from .group_0065 import Event as Event - from .group_0299 import Label as Label - from .group_0360 import Topic as Topic - from .group_0370 import Group as Group - from .group_0393 import Email as Email + from .group_0048 import Team as Team + from .group_0069 import Feed as Feed + from .group_0243 import Link as Link + from .group_0277 import Blob as Blob + from .group_0283 import Hook as Hook + from .group_0317 import Page as Page + from .group_0371 import Meta as Meta + from .group_0382 import User as User + from .group_0066 import Issue as Issue + from .group_0068 import Actor as Actor + from .group_0068 import Event as Event + from .group_0303 import Label as Label + from .group_0364 import Topic as Topic + from .group_0374 import Group as Group + from .group_0397 import Email as Email from .group_0034 import Runner as Runner - from .group_0080 import Thread as Thread - from .group_0206 import Commit as Commit - from .group_0245 import Status as Status - from .group_0275 import GitRef as GitRef - from .group_0276 import GitTag as GitTag - from .group_0280 import Import as Import - from .group_0394 import GpgKey as GpgKey - from .group_0073 import License as License - from .group_0099 import Package as Package - from .group_0104 import OrgHook as OrgHook - from .group_0114 import Project as Project - from .group_0203 import GitUser as GitUser - from .group_0277 import GitTree as GitTree - from .group_0330 import Release as Release - from .group_0361 import Traffic as Traffic - from .group_0067 import BaseGist as BaseGist - from .group_0164 import TeamFull as TeamFull - from .group_0167 import Reaction as Reaction - from .group_0177 import Artifact as Artifact - from .group_0195 import Activity as Activity - from .group_0196 import Autolink as Autolink - from .group_0213 import CheckRun as CheckRun - from .group_0259 import Metadata as Metadata - from .group_0261 import Manifest as Manifest - from .group_0262 import Snapshot as Snapshot - from .group_0310 import Language as Language - from .group_0378 import UserName as UserName - from .group_0379 import ScimUser as ScimUser - from .group_0957 import Workflow as Workflow + from .group_0083 import Thread as Thread + from .group_0210 import Commit as Commit + from .group_0249 import Status as Status + from .group_0279 import GitRef as GitRef + from .group_0280 import GitTag as GitTag + from .group_0284 import Import as Import + from .group_0398 import GpgKey as GpgKey + from .group_0076 import License as License + from .group_0101 import Package as Package + from .group_0106 import OrgHook as OrgHook + from .group_0118 import Project as Project + from .group_0207 import GitUser as GitUser + from .group_0281 import GitTree as GitTree + from .group_0334 import Release as Release + from .group_0365 import Traffic as Traffic + from .group_0070 import BaseGist as BaseGist + from .group_0168 import TeamFull as TeamFull + from .group_0171 import Reaction as Reaction + from .group_0181 import Artifact as Artifact + from .group_0199 import Activity as Activity + from .group_0200 import Autolink as Autolink + from .group_0217 import CheckRun as CheckRun + from .group_0263 import Metadata as Metadata + from .group_0265 import Manifest as Manifest + from .group_0266 import Snapshot as Snapshot + from .group_0314 import Language as Language + from .group_0382 import UserName as UserName + from .group_0383 import ScimUser as ScimUser + from .group_0973 import Workflow as Workflow from .group_0009 import ScimError as ScimError from .group_0022 import Classroom as Classroom - from .group_0061 import Milestone as Milestone - from .group_0089 import Codespace as Codespace - from .group_0108 import Migration as Migration - from .group_0160 import RuleSuite as RuleSuite - from .group_0174 import RateLimit as RateLimit - from .group_0205 import DiffEntry as DiffEntry - from .group_0240 import AutoMerge as AutoMerge - from .group_0272 import ShortBlob as ShortBlob - from .group_0274 import GitCommit as GitCommit - from .group_0309 import DeployKey as DeployKey - from .group_0314 import PageBuild as PageBuild - from .group_0353 import Stargazer as Stargazer - from .group_0400 import Hovercard as Hovercard - from .group_0401 import KeySimple as KeySimple + from .group_0064 import Milestone as Milestone + from .group_0094 import Codespace as Codespace + from .group_0110 import Migration as Migration + from .group_0164 import RuleSuite as RuleSuite + from .group_0178 import RateLimit as RateLimit + from .group_0209 import DiffEntry as DiffEntry + from .group_0244 import AutoMerge as AutoMerge + from .group_0276 import ShortBlob as ShortBlob + from .group_0278 import GitCommit as GitCommit + from .group_0313 import DeployKey as DeployKey + from .group_0318 import PageBuild as PageBuild + from .group_0357 import Stargazer as Stargazer + from .group_0404 import Hovercard as Hovercard + from .group_0405 import KeySimple as KeySimple from .group_0001 import SimpleUser as SimpleUser from .group_0003 import BasicError as BasicError from .group_0012 import Enterprise as Enterprise from .group_0017 import Repository as Repository - from .group_0069 import GistSimple as GistSimple - from .group_0069 import PublicUser as PublicUser - from .group_0071 import GistCommit as GistCommit - from .group_0092 import TeamSimple as TeamSimple - from .group_0192 import Deployment as Deployment - from .group_0215 import CheckSuite as CheckSuite - from .group_0253 import FileCommit as FileCommit - from .group_0260 import Dependency as Dependency - from .group_0283 import IssueEvent as IssueEvent - from .group_0418 import Discussion as Discussion - from .group_0432 import MergeGroup as MergeGroup - from .group_0439 import ProjectsV2 as ProjectsV2 + from .group_0047 import TeamSimple as TeamSimple + from .group_0072 import GistSimple as GistSimple + from .group_0072 import PublicUser as PublicUser + from .group_0074 import GistCommit as GistCommit + from .group_0196 import Deployment as Deployment + from .group_0219 import CheckSuite as CheckSuite + from .group_0257 import FileCommit as FileCommit + from .group_0264 import Dependency as Dependency + from .group_0287 import IssueEvent as IssueEvent + from .group_0422 import Discussion as Discussion + from .group_0436 import MergeGroup as MergeGroup + from .group_0443 import ProjectsV2 as ProjectsV2 from .group_0006 import Integration as Integration from .group_0033 import RunnerLabel as RunnerLabel - from .group_0068 import GistHistory as GistHistory - from .group_0070 import GistComment as GistComment - from .group_0077 import ApiOverview as ApiOverview - from .group_0085 import EmptyObject as EmptyObject - from .group_0169 import TeamProject as TeamProject - from .group_0171 import ProjectCard as ProjectCard - from .group_0187 import WorkflowRun as WorkflowRun - from .group_0202 import ShortBranch as ShortBranch - from .group_0238 import BranchShort as BranchShort - from .group_0248 import ContentTree as ContentTree - from .group_0250 import ContentFile as ContentFile - from .group_0254 import Contributor as Contributor - from .group_0265 import Environment as Environment - from .group_0319 import PullRequest as PullRequest - from .group_0365 import ViewTraffic as ViewTraffic - from .group_0371 import PatchSchema as PatchSchema - from .group_0389 import PrivateUser as PrivateUser - from .group_0523 import WebhookFork as WebhookFork - from .group_0638 import WebhookPing as WebhookPing - from .group_0701 import WebhookPush as WebhookPush + from .group_0071 import GistHistory as GistHistory + from .group_0073 import GistComment as GistComment + from .group_0080 import ApiOverview as ApiOverview + from .group_0173 import TeamProject as TeamProject + from .group_0175 import ProjectCard as ProjectCard + from .group_0191 import WorkflowRun as WorkflowRun + from .group_0206 import ShortBranch as ShortBranch + from .group_0210 import EmptyObject as EmptyObject + from .group_0242 import BranchShort as BranchShort + from .group_0252 import ContentTree as ContentTree + from .group_0254 import ContentFile as ContentFile + from .group_0258 import Contributor as Contributor + from .group_0269 import Environment as Environment + from .group_0323 import PullRequest as PullRequest + from .group_0369 import ViewTraffic as ViewTraffic + from .group_0375 import PatchSchema as PatchSchema + from .group_0393 import PrivateUser as PrivateUser + from .group_0528 import WebhookFork as WebhookFork + from .group_0643 import WebhookPing as WebhookPing + from .group_0709 import WebhookPush as WebhookPush from .group_0011 import HookDelivery as HookDelivery from .group_0015 import Installation as Installation from .group_0038 import Announcement as Announcement - from .group_0064 import IssueComment as IssueComment - from .group_0066 import LinkWithType as LinkWithType - from .group_0094 import Organization as Organization - from .group_0163 import GroupMapping as GroupMapping - from .group_0186 import SimpleCommit as SimpleCommit - from .group_0204 import Verification as Verification - from .group_0236 import Collaborator as Collaborator - from .group_0278 import HookResponse as HookResponse - from .group_0281 import PorterAuthor as PorterAuthor - from .group_0329 import ReleaseAsset as ReleaseAsset - from .group_0362 import CloneTraffic as CloneTraffic - from .group_0374 import UserResponse as UserResponse - from .group_0379 import ScimUserList as ScimUserList - from .group_0407 import WebhooksRule as WebhooksRule - from .group_0416 import WebhooksUser as WebhooksUser - from .group_0431 import WebhooksTeam as WebhooksTeam + from .group_0049 import Organization as Organization + from .group_0067 import IssueComment as IssueComment + from .group_0069 import LinkWithType as LinkWithType + from .group_0167 import GroupMapping as GroupMapping + from .group_0190 import SimpleCommit as SimpleCommit + from .group_0208 import Verification as Verification + from .group_0240 import Collaborator as Collaborator + from .group_0282 import HookResponse as HookResponse + from .group_0285 import PorterAuthor as PorterAuthor + from .group_0333 import ReleaseAsset as ReleaseAsset + from .group_0366 import CloneTraffic as CloneTraffic + from .group_0378 import UserResponse as UserResponse + from .group_0383 import ScimUserList as ScimUserList + from .group_0411 import WebhooksRule as WebhooksRule + from .group_0420 import WebhooksUser as WebhooksUser + from .group_0435 import WebhooksTeam as WebhooksTeam from .group_0002 import Vulnerability as Vulnerability from .group_0007 import WebhookConfig as WebhookConfig from .group_0016 import LicenseSimple as LicenseSimple from .group_0020 import Authorization as Authorization from .group_0039 import AuditLogEvent as AuditLogEvent - from .group_0065 import EventPropRepo as EventPropRepo - from .group_0066 import FeedPropLinks as FeedPropLinks - from .group_0079 import CodeOfConduct as CodeOfConduct - from .group_0084 import OidcCustomSub as OidcCustomSub - from .group_0100 import ExternalGroup as ExternalGroup - from .group_0107 import OrgMembership as OrgMembership - from .group_0172 import ProjectColumn as ProjectColumn - from .group_0181 import ActionsSecret as ActionsSecret - from .group_0194 import WorkflowUsage as WorkflowUsage - from .group_0237 import CommitComment as CommitComment - from .group_0327 import ReviewComment as ReviewComment - from .group_0358 import TagPropCommit as TagPropCommit - from .group_0359 import TagProtection as TagProtection - from .group_0366 import GroupResponse as GroupResponse - from .group_0373 import UserRoleItems as UserRoleItems - from .group_0397 import SocialAccount as SocialAccount - from .group_0398 import SshSigningKey as SshSigningKey - from .group_0420 import WebhooksLabel as WebhooksLabel - from .group_0425 import WebhooksIssue as WebhooksIssue - from .group_0449 import WebhooksAlert as WebhooksAlert - from .group_0454 import WebhooksTeam1 as WebhooksTeam1 - from .group_0483 import WebhookCreate as WebhookCreate - from .group_0488 import WebhookDelete as WebhookDelete - from .group_0529 import WebhookGollum as WebhookGollum - from .group_0669 import WebhookPublic as WebhookPublic - from .group_0760 import WebhookStatus as WebhookStatus - from .group_0818 import GistsPostBody as GistsPostBody - from .group_1123 import UserPatchBody as UserPatchBody + from .group_0068 import EventPropRepo as EventPropRepo + from .group_0069 import FeedPropLinks as FeedPropLinks + from .group_0082 import CodeOfConduct as CodeOfConduct + from .group_0087 import OidcCustomSub as OidcCustomSub + from .group_0102 import ExternalGroup as ExternalGroup + from .group_0109 import OrgMembership as OrgMembership + from .group_0176 import ProjectColumn as ProjectColumn + from .group_0185 import ActionsSecret as ActionsSecret + from .group_0198 import WorkflowUsage as WorkflowUsage + from .group_0241 import CommitComment as CommitComment + from .group_0331 import ReviewComment as ReviewComment + from .group_0362 import TagPropCommit as TagPropCommit + from .group_0363 import TagProtection as TagProtection + from .group_0370 import GroupResponse as GroupResponse + from .group_0377 import UserRoleItems as UserRoleItems + from .group_0401 import SocialAccount as SocialAccount + from .group_0402 import SshSigningKey as SshSigningKey + from .group_0424 import WebhooksLabel as WebhooksLabel + from .group_0429 import WebhooksIssue as WebhooksIssue + from .group_0454 import WebhooksAlert as WebhooksAlert + from .group_0459 import WebhooksTeam1 as WebhooksTeam1 + from .group_0488 import WebhookCreate as WebhookCreate + from .group_0493 import WebhookDelete as WebhookDelete + from .group_0534 import WebhookGollum as WebhookGollum + from .group_0677 import WebhookPublic as WebhookPublic + from .group_0768 import WebhookStatus as WebhookStatus + from .group_0827 import GistsPostBody as GistsPostBody + from .group_1142 import UserPatchBody as UserPatchBody from .group_0002 import GlobalAdvisory as GlobalAdvisory from .group_0014 import AppPermissions as AppPermissions - from .group_0062 import ReactionRollup as ReactionRollup - from .group_0101 import ExternalGroups as ExternalGroups - from .group_0111 import PackageVersion as PackageVersion - from .group_0119 import FullRepository as FullRepository - from .group_0165 import TeamDiscussion as TeamDiscussion - from .group_0168 import TeamMembership as TeamMembership - from .group_0170 import TeamRepository as TeamRepository - from .group_0251 import ContentSymlink as ContentSymlink - from .group_0311 import LicenseContent as LicenseContent - from .group_0312 import MergedUpstream as MergedUpstream - from .group_0316 import PageDeployment as PageDeployment - from .group_0354 import CommitActivity as CommitActivity - from .group_0363 import ContentTraffic as ContentTraffic - from .group_0417 import WebhooksAnswer as WebhooksAnswer - from .group_0427 import WebhooksIssue2 as WebhooksIssue2 - from .group_0441 import ProjectsV2Item as ProjectsV2Item - from .group_0446 import WebhooksReview as WebhooksReview - from .group_0765 import WebhookTeamAdd as WebhookTeamAdd + from .group_0049 import EnterpriseTeam as EnterpriseTeam + from .group_0065 import ReactionRollup as ReactionRollup + from .group_0103 import ExternalGroups as ExternalGroups + from .group_0115 import PackageVersion as PackageVersion + from .group_0123 import FullRepository as FullRepository + from .group_0169 import TeamDiscussion as TeamDiscussion + from .group_0172 import TeamMembership as TeamMembership + from .group_0174 import TeamRepository as TeamRepository + from .group_0255 import ContentSymlink as ContentSymlink + from .group_0315 import LicenseContent as LicenseContent + from .group_0316 import MergedUpstream as MergedUpstream + from .group_0320 import PageDeployment as PageDeployment + from .group_0358 import CommitActivity as CommitActivity + from .group_0367 import ContentTraffic as ContentTraffic + from .group_0421 import WebhooksAnswer as WebhooksAnswer + from .group_0431 import WebhooksIssue2 as WebhooksIssue2 + from .group_0445 import ProjectsV2Item as ProjectsV2Item + from .group_0451 import WebhooksReview as WebhooksReview + from .group_0773 import WebhookTeamAdd as WebhookTeamAdd from .group_0010 import ValidationError as ValidationError from .group_0023 import SimpleClassroom as SimpleClassroom from .group_0030 import SelectedActions as SelectedActions - from .group_0159 import RuleSuitesItems as RuleSuitesItems - from .group_0182 import ActionsVariable as ActionsVariable - from .group_0206 import CommitPropStats as CommitPropStats - from .group_0209 import ProtectedBranch as ProtectedBranch - from .group_0214 import CheckAnnotation as CheckAnnotation - from .group_0255 import DependabotAlert as DependabotAlert - from .group_0262 import SnapshotPropJob as SnapshotPropJob - from .group_0282 import PorterLargeFile as PorterLargeFile - from .group_0283 import IssueEventLabel as IssueEventLabel - from .group_0313 import PagesSourceHash as PagesSourceHash - from .group_0315 import PageBuildStatus as PageBuildStatus - from .group_0364 import ReferrerTraffic as ReferrerTraffic - from .group_0378 import UserEmailsItems as UserEmailsItems - from .group_0419 import WebhooksComment as WebhooksComment - from .group_0424 import WebhooksChanges as WebhooksChanges - from .group_0437 import WebhooksProject as WebhooksProject - from .group_0447 import WebhooksRelease as WebhooksRelease - from .group_0835 import RunnerGroupsOrg as RunnerGroupsOrg + from .group_0163 import RuleSuitesItems as RuleSuitesItems + from .group_0186 import ActionsVariable as ActionsVariable + from .group_0210 import CommitPropStats as CommitPropStats + from .group_0213 import ProtectedBranch as ProtectedBranch + from .group_0218 import CheckAnnotation as CheckAnnotation + from .group_0259 import DependabotAlert as DependabotAlert + from .group_0266 import SnapshotPropJob as SnapshotPropJob + from .group_0286 import PorterLargeFile as PorterLargeFile + from .group_0287 import IssueEventLabel as IssueEventLabel + from .group_0317 import PagesSourceHash as PagesSourceHash + from .group_0319 import PageBuildStatus as PageBuildStatus + from .group_0368 import ReferrerTraffic as ReferrerTraffic + from .group_0382 import UserEmailsItems as UserEmailsItems + from .group_0423 import WebhooksComment as WebhooksComment + from .group_0428 import WebhooksChanges as WebhooksChanges + from .group_0441 import WebhooksProject as WebhooksProject + from .group_0452 import WebhooksRelease as WebhooksRelease + from .group_0844 import RunnerGroupsOrg as RunnerGroupsOrg + from .group_1168 import SigstoreBundle0 as SigstoreBundle0 from .group_0008 import HookDeliveryItem as HookDeliveryItem from .group_0043 import SimpleRepository as SimpleRepository - from .group_0065 import EventPropPayload as EventPropPayload - from .group_0083 import OrganizationFull as OrganizationFull - from .group_0087 import ActionsPublicKey as ActionsPublicKey - from .group_0088 import CodespaceMachine as CodespaceMachine - from .group_0106 import InteractionLimit as InteractionLimit - from .group_0110 import OrganizationRole as OrganizationRole - from .group_0164 import TeamOrganization as TeamOrganization - from .group_0178 import ActionsCacheList as ActionsCacheList - from .group_0193 import WorkflowRunUsage as WorkflowRunUsage - from .group_0201 import BranchProtection as BranchProtection - from .group_0207 import CommitPropCommit as CommitPropCommit - from .group_0212 import DeploymentSimple as DeploymentSimple - from .group_0233 import CodeownersErrors as CodeownersErrors - from .group_0246 import CommunityProfile as CommunityProfile - from .group_0247 import CommitComparison as CommitComparison - from .group_0252 import ContentSubmodule as ContentSubmodule - from .group_0261 import ManifestPropFile as ManifestPropFile - from .group_0263 import DeploymentStatus as DeploymentStatus - from .group_0275 import GitRefPropObject as GitRefPropObject - from .group_0276 import GitTagPropObject as GitTagPropObject - from .group_0276 import GitTagPropTagger as GitTagPropTagger - from .group_0283 import IssueEventRename as IssueEventRename - from .group_0294 import LockedIssueEvent as LockedIssueEvent - from .group_0318 import PagesHealthCheck as PagesHealthCheck - from .group_0372 import UserNameResponse as UserNameResponse - from .group_0379 import ScimUserPropMeta as ScimUserPropMeta - from .group_0379 import ScimUserPropName as ScimUserPropName - from .group_0409 import ExemptionRequest as ExemptionRequest - from .group_0410 import SimpleCheckSuite as SimpleCheckSuite - from .group_0413 import WebhooksWorkflow as WebhooksWorkflow - from .group_0414 import WebhooksApprover as WebhooksApprover - from .group_0448 import WebhooksRelease1 as WebhooksRelease1 - from .group_0453 import WebhooksChanges8 as WebhooksChanges8 - from .group_0633 import WebhookPageBuild as WebhookPageBuild - from .group_0825 import MarkdownPostBody as MarkdownPostBody - from .group_0830 import OrgsOrgPatchBody as OrgsOrgPatchBody - from .group_1006 import DependabotSecret as DependabotSecret - from .group_1127 import CodespacesSecret as CodespacesSecret - from .group_1141 import UserKeysPostBody as UserKeysPostBody + from .group_0068 import EventPropPayload as EventPropPayload + from .group_0086 import OrganizationFull as OrganizationFull + from .group_0089 import ActionsPublicKey as ActionsPublicKey + from .group_0093 import CodespaceMachine as CodespaceMachine + from .group_0108 import InteractionLimit as InteractionLimit + from .group_0112 import OrganizationRole as OrganizationRole + from .group_0168 import TeamOrganization as TeamOrganization + from .group_0182 import ActionsCacheList as ActionsCacheList + from .group_0197 import WorkflowRunUsage as WorkflowRunUsage + from .group_0205 import BranchProtection as BranchProtection + from .group_0211 import CommitPropCommit as CommitPropCommit + from .group_0216 import DeploymentSimple as DeploymentSimple + from .group_0237 import CodeownersErrors as CodeownersErrors + from .group_0250 import CommunityProfile as CommunityProfile + from .group_0251 import CommitComparison as CommitComparison + from .group_0256 import ContentSubmodule as ContentSubmodule + from .group_0265 import ManifestPropFile as ManifestPropFile + from .group_0267 import DeploymentStatus as DeploymentStatus + from .group_0279 import GitRefPropObject as GitRefPropObject + from .group_0280 import GitTagPropObject as GitTagPropObject + from .group_0280 import GitTagPropTagger as GitTagPropTagger + from .group_0287 import IssueEventRename as IssueEventRename + from .group_0298 import LockedIssueEvent as LockedIssueEvent + from .group_0322 import PagesHealthCheck as PagesHealthCheck + from .group_0376 import UserNameResponse as UserNameResponse + from .group_0383 import ScimUserPropMeta as ScimUserPropMeta + from .group_0383 import ScimUserPropName as ScimUserPropName + from .group_0413 import ExemptionRequest as ExemptionRequest + from .group_0414 import SimpleCheckSuite as SimpleCheckSuite + from .group_0417 import WebhooksWorkflow as WebhooksWorkflow + from .group_0418 import WebhooksApprover as WebhooksApprover + from .group_0453 import WebhooksRelease1 as WebhooksRelease1 + from .group_0458 import WebhooksChanges8 as WebhooksChanges8 + from .group_0638 import WebhookPageBuild as WebhookPageBuild + from .group_0834 import MarkdownPostBody as MarkdownPostBody + from .group_0839 import OrgsOrgPatchBody as OrgsOrgPatchBody + from .group_1025 import DependabotSecret as DependabotSecret + from .group_1146 import CodespacesSecret as CodespacesSecret + from .group_1160 import UserKeysPostBody as UserKeysPostBody from .group_0018 import InstallationToken as InstallationToken from .group_0035 import RunnerApplication as RunnerApplication - from .group_0057 import GetAllCostCenters as GetAllCostCenters - from .group_0067 import BaseGistPropFiles as BaseGistPropFiles - from .group_0072 import GitignoreTemplate as GitignoreTemplate - from .group_0079 import MinimalRepository as MinimalRepository - from .group_0080 import ThreadPropSubject as ThreadPropSubject - from .group_0104 import OrgHookPropConfig as OrgHookPropConfig - from .group_0115 import OrgCustomProperty as OrgCustomProperty - from .group_0158 import RepositoryRuleset as RepositoryRuleset - from .group_0175 import RateLimitOverview as RateLimitOverview - from .group_0179 import JobPropStepsItems as JobPropStepsItems - from .group_0180 import OidcCustomSubRepo as OidcCustomSubRepo - from .group_0191 import PendingDeployment as PendingDeployment - from .group_0209 import StatusCheckPolicy as StatusCheckPolicy - from .group_0218 import CodeScanningAlert as CodeScanningAlert - from .group_0241 import PullRequestSimple as PullRequestSimple - from .group_0274 import GitCommitPropTree as GitCommitPropTree - from .group_0284 import LabeledIssueEvent as LabeledIssueEvent - from .group_0290 import RenamedIssueEvent as RenamedIssueEvent - from .group_0326 import PullRequestReview as PullRequestReview - from .group_0399 import StarredRepository as StarredRepository - from .group_0408 import ExemptionResponse as ExemptionResponse - from .group_0412 import WebhooksDeployKey as WebhooksDeployKey - from .group_0426 import WebhooksMilestone as WebhooksMilestone - from .group_0769 import WebhookTeamEdited as WebhookTeamEdited - from .group_1145 import UserReposPostBody as UserReposPostBody + from .group_0060 import GetAllCostCenters as GetAllCostCenters + from .group_0070 import BaseGistPropFiles as BaseGistPropFiles + from .group_0075 import GitignoreTemplate as GitignoreTemplate + from .group_0082 import MinimalRepository as MinimalRepository + from .group_0083 import ThreadPropSubject as ThreadPropSubject + from .group_0106 import OrgHookPropConfig as OrgHookPropConfig + from .group_0119 import OrgCustomProperty as OrgCustomProperty + from .group_0162 import RepositoryRuleset as RepositoryRuleset + from .group_0179 import RateLimitOverview as RateLimitOverview + from .group_0183 import JobPropStepsItems as JobPropStepsItems + from .group_0184 import OidcCustomSubRepo as OidcCustomSubRepo + from .group_0195 import PendingDeployment as PendingDeployment + from .group_0213 import StatusCheckPolicy as StatusCheckPolicy + from .group_0222 import CodeScanningAlert as CodeScanningAlert + from .group_0245 import PullRequestSimple as PullRequestSimple + from .group_0278 import GitCommitPropTree as GitCommitPropTree + from .group_0288 import LabeledIssueEvent as LabeledIssueEvent + from .group_0294 import RenamedIssueEvent as RenamedIssueEvent + from .group_0330 import PullRequestReview as PullRequestReview + from .group_0403 import StarredRepository as StarredRepository + from .group_0412 import ExemptionResponse as ExemptionResponse + from .group_0416 import WebhooksDeployKey as WebhooksDeployKey + from .group_0430 import WebhooksMilestone as WebhooksMilestone + from .group_0777 import WebhookTeamEdited as WebhookTeamEdited + from .group_1164 import UserReposPostBody as UserReposPostBody from .group_0019 import ScopedInstallation as ScopedInstallation from .group_0029 import OrganizationSimple as OrganizationSimple from .group_0037 import AnnouncementBanner as AnnouncementBanner - from .group_0060 import BillingUsageReport as BillingUsageReport - from .group_0069 import PublicUserPropPlan as PublicUserPropPlan - from .group_0081 import ThreadSubscription as ThreadSubscription - from .group_0094 import CopilotSeatDetails as CopilotSeatDetails - from .group_0162 import RepositoryAdvisory as RepositoryAdvisory - from .group_0185 import PullRequestMinimal as PullRequestMinimal - from .group_0187 import ReferencedWorkflow as ReferencedWorkflow - from .group_0213 import CheckRunPropOutput as CheckRunPropOutput - from .group_0244 import SimpleCommitStatus as SimpleCommitStatus - from .group_0286 import AssignedIssueEvent as AssignedIssueEvent - from .group_0314 import PageBuildPropError as PageBuildPropError - from .group_0356 import ParticipationStats as ParticipationStats - from .group_0396 import MarketplaceAccount as MarketplaceAccount - from .group_0402 import EnterpriseWebhooks as EnterpriseWebhooks - from .group_0403 import SimpleInstallation as SimpleInstallation - from .group_0405 import RepositoryWebhooks as RepositoryWebhooks - from .group_0406 import SimpleUserWebhooks as SimpleUserWebhooks - from .group_0418 import DiscussionPropUser as DiscussionPropUser - from .group_0433 import WebhooksMilestone3 as WebhooksMilestone3 - from .group_0434 import WebhooksMembership as WebhooksMembership - from .group_0442 import PullRequestWebhook as PullRequestWebhook - from .group_0600 import WebhookLabelEdited as WebhookLabelEdited - from .group_0606 import WebhookMemberAdded as WebhookMemberAdded - from .group_0613 import WebhookMetaDeleted as WebhookMetaDeleted - from .group_0758 import WebhookStarCreated as WebhookStarCreated - from .group_0759 import WebhookStarDeleted as WebhookStarDeleted - from .group_0767 import WebhookTeamCreated as WebhookTeamCreated - from .group_0768 import WebhookTeamDeleted as WebhookTeamDeleted + from .group_0049 import CopilotSeatDetails as CopilotSeatDetails + from .group_0063 import BillingUsageReport as BillingUsageReport + from .group_0072 import PublicUserPropPlan as PublicUserPropPlan + from .group_0084 import ThreadSubscription as ThreadSubscription + from .group_0113 import TeamRoleAssignment as TeamRoleAssignment + from .group_0114 import UserRoleAssignment as UserRoleAssignment + from .group_0166 import RepositoryAdvisory as RepositoryAdvisory + from .group_0189 import PullRequestMinimal as PullRequestMinimal + from .group_0191 import ReferencedWorkflow as ReferencedWorkflow + from .group_0217 import CheckRunPropOutput as CheckRunPropOutput + from .group_0248 import SimpleCommitStatus as SimpleCommitStatus + from .group_0290 import AssignedIssueEvent as AssignedIssueEvent + from .group_0318 import PageBuildPropError as PageBuildPropError + from .group_0360 import ParticipationStats as ParticipationStats + from .group_0400 import MarketplaceAccount as MarketplaceAccount + from .group_0406 import EnterpriseWebhooks as EnterpriseWebhooks + from .group_0407 import SimpleInstallation as SimpleInstallation + from .group_0409 import RepositoryWebhooks as RepositoryWebhooks + from .group_0410 import SimpleUserWebhooks as SimpleUserWebhooks + from .group_0422 import DiscussionPropUser as DiscussionPropUser + from .group_0437 import WebhooksMilestone3 as WebhooksMilestone3 + from .group_0438 import WebhooksMembership as WebhooksMembership + from .group_0447 import PullRequestWebhook as PullRequestWebhook + from .group_0605 import WebhookLabelEdited as WebhookLabelEdited + from .group_0611 import WebhookMemberAdded as WebhookMemberAdded + from .group_0618 import WebhookMetaDeleted as WebhookMetaDeleted + from .group_0766 import WebhookStarCreated as WebhookStarCreated + from .group_0767 import WebhookStarDeleted as WebhookStarDeleted + from .group_0775 import WebhookTeamCreated as WebhookTeamCreated + from .group_0776 import WebhookTeamDeleted as WebhookTeamDeleted from .group_0022 import ClassroomAssignment as ClassroomAssignment from .group_0023 import SimpleClassroomUser as SimpleClassroomUser from .group_0036 import AuthenticationToken as AuthenticationToken from .group_0046 import GetConsumedLicenses as GetConsumedLicenses - from .group_0047 import CopilotUsageMetrics as CopilotUsageMetrics - from .group_0055 import ActionsBillingUsage as ActionsBillingUsage - from .group_0069 import GistSimplePropFiles as GistSimplePropFiles - from .group_0075 import MarketplacePurchase as MarketplacePurchase - from .group_0078 import SecurityAndAnalysis as SecurityAndAnalysis - from .group_0090 import CodespacesPublicKey as CodespacesPublicKey - from .group_0093 import TeamPropPermissions as TeamPropPermissions - from .group_0098 import DependabotPublicKey as DependabotPublicKey - from .group_0116 import CustomPropertyValue as CustomPropertyValue - from .group_0118 import CodeOfConductSimple as CodeOfConductSimple - from .group_0246 import CommunityHealthFile as CommunityHealthFile - from .group_0274 import GitCommitPropAuthor as GitCommitPropAuthor - from .group_0283 import IssueEventMilestone as IssueEventMilestone - from .group_0285 import UnlabeledIssueEvent as UnlabeledIssueEvent - from .group_0320 import PullRequestPropHead as PullRequestPropHead - from .group_0321 import PullRequestPropBase as PullRequestPropBase - from .group_0331 import ReleaseNotesContent as ReleaseNotesContent - from .group_0349 import SecretScanningAlert as SecretScanningAlert - from .group_0355 import ContributorActivity as ContributorActivity - from .group_0389 import PrivateUserPropPlan as PrivateUserPropPlan - from .group_0436 import WebhooksProjectCard as WebhooksProjectCard - from .group_0452 import WebhooksSponsorship as WebhooksSponsorship - from .group_0573 import WebhookIssuesClosed as WebhookIssuesClosed - from .group_0586 import WebhookIssuesEdited as WebhookIssuesEdited - from .group_0588 import WebhookIssuesLocked as WebhookIssuesLocked - from .group_0590 import WebhookIssuesOpened as WebhookIssuesOpened - from .group_0591 import WebhookIssuesPinned as WebhookIssuesPinned - from .group_0598 import WebhookLabelCreated as WebhookLabelCreated - from .group_0599 import WebhookLabelDeleted as WebhookLabelDeleted - from .group_0607 import WebhookMemberEdited as WebhookMemberEdited - from .group_0639 import WebhookPingPropHook as WebhookPingPropHook - from .group_0771 import WebhookWatchStarted as WebhookWatchStarted - from .group_0859 import CodespacesOrgSecret as CodespacesOrgSecret - from .group_1137 import UserGpgKeysPostBody as UserGpgKeysPostBody + from .group_0048 import TeamPropPermissions as TeamPropPermissions + from .group_0050 import CopilotUsageMetrics as CopilotUsageMetrics + from .group_0058 import ActionsBillingUsage as ActionsBillingUsage + from .group_0072 import GistSimplePropFiles as GistSimplePropFiles + from .group_0078 import MarketplacePurchase as MarketplacePurchase + from .group_0081 import SecurityAndAnalysis as SecurityAndAnalysis + from .group_0095 import CodespacesPublicKey as CodespacesPublicKey + from .group_0100 import DependabotPublicKey as DependabotPublicKey + from .group_0120 import CustomPropertyValue as CustomPropertyValue + from .group_0122 import CodeOfConductSimple as CodeOfConductSimple + from .group_0250 import CommunityHealthFile as CommunityHealthFile + from .group_0278 import GitCommitPropAuthor as GitCommitPropAuthor + from .group_0287 import IssueEventMilestone as IssueEventMilestone + from .group_0289 import UnlabeledIssueEvent as UnlabeledIssueEvent + from .group_0324 import PullRequestPropHead as PullRequestPropHead + from .group_0325 import PullRequestPropBase as PullRequestPropBase + from .group_0335 import ReleaseNotesContent as ReleaseNotesContent + from .group_0353 import SecretScanningAlert as SecretScanningAlert + from .group_0359 import ContributorActivity as ContributorActivity + from .group_0393 import PrivateUserPropPlan as PrivateUserPropPlan + from .group_0440 import WebhooksProjectCard as WebhooksProjectCard + from .group_0457 import WebhooksSponsorship as WebhooksSponsorship + from .group_0578 import WebhookIssuesClosed as WebhookIssuesClosed + from .group_0591 import WebhookIssuesEdited as WebhookIssuesEdited + from .group_0593 import WebhookIssuesLocked as WebhookIssuesLocked + from .group_0595 import WebhookIssuesOpened as WebhookIssuesOpened + from .group_0596 import WebhookIssuesPinned as WebhookIssuesPinned + from .group_0603 import WebhookLabelCreated as WebhookLabelCreated + from .group_0604 import WebhookLabelDeleted as WebhookLabelDeleted + from .group_0612 import WebhookMemberEdited as WebhookMemberEdited + from .group_0644 import WebhookPingPropHook as WebhookPingPropHook + from .group_0779 import WebhookWatchStarted as WebhookWatchStarted + from .group_0874 import CodespacesOrgSecret as CodespacesOrgSecret + from .group_1156 import UserGpgKeysPostBody as UserGpgKeysPostBody from .group_0020 import AuthorizationPropApp as AuthorizationPropApp - from .group_0053 import GetLicenseSyncStatus as GetLicenseSyncStatus - from .group_0058 import PackagesBillingUsage as PackagesBillingUsage - from .group_0059 import CombinedBillingUsage as CombinedBillingUsage - from .group_0063 import IssuePropPullRequest as IssuePropPullRequest - from .group_0068 import GistSimplePropForkOf as GistSimplePropForkOf - from .group_0091 import CopilotSeatBreakdown as CopilotSeatBreakdown - from .group_0094 import OrganizationPropPlan as OrganizationPropPlan - from .group_0133 import RepositoryRuleUpdate as RepositoryRuleUpdate - from .group_0188 import EnvironmentApprovals as EnvironmentApprovals - from .group_0208 import BranchWithProtection as BranchWithProtection - from .group_0216 import CheckSuitePreference as CheckSuitePreference - from .group_0219 import CodeScanningAnalysis as CodeScanningAnalysis - from .group_0235 import RepositoryInvitation as RepositoryInvitation - from .group_0244 import CombinedCommitStatus as CombinedCommitStatus - from .group_0248 import ContentTreePropLinks as ContentTreePropLinks - from .group_0250 import ContentFilePropLinks as ContentFilePropLinks - from .group_0253 import FileCommitPropCommit as FileCommitPropCommit - from .group_0261 import ManifestPropResolved as ManifestPropResolved - from .group_0262 import SnapshotPropDetector as SnapshotPropDetector - from .group_0277 import GitTreePropTreeItems as GitTreePropTreeItems - from .group_0287 import UnassignedIssueEvent as UnassignedIssueEvent - from .group_0288 import MilestonedIssueEvent as MilestonedIssueEvent - from .group_0300 import TimelineCommentEvent as TimelineCommentEvent - from .group_0323 import PullRequestPropLinks as PullRequestPropLinks - from .group_0381 import CodeSearchResultItem as CodeSearchResultItem - from .group_0386 import RepoSearchResultItem as RepoSearchResultItem - from .group_0388 import UserSearchResultItem as UserSearchResultItem - from .group_0423 import WebhooksIssueComment as WebhooksIssueComment - from .group_0444 import WebhooksPullRequest5 as WebhooksPullRequest5 - from .group_0584 import WebhookIssuesDeleted as WebhookIssuesDeleted - from .group_0587 import WebhookIssuesLabeled as WebhookIssuesLabeled - from .group_0608 import WebhookMemberRemoved as WebhookMemberRemoved - from .group_0648 import WebhookProjectClosed as WebhookProjectClosed - from .group_0655 import WebhookProjectEdited as WebhookProjectEdited - from .group_0710 import WebhookReleaseEdited as WebhookReleaseEdited - from .group_0794 import EmojisGetResponse200 as EmojisGetResponse200 - from .group_0820 import GistsGistIdPatchBody as GistsGistIdPatchBody - from .group_0826 import NotificationsPutBody as NotificationsPutBody - from .group_0876 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody - from .group_0898 import OrgsOrgReposPostBody as OrgsOrgReposPostBody - from .group_0901 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody - from .group_0996 import RepoCodespacesSecret as RepoCodespacesSecret - from .group_1111 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody - from .group_1144 import UserProjectsPostBody as UserProjectsPostBody + from .group_0049 import OrganizationPropPlan as OrganizationPropPlan + from .group_0056 import GetLicenseSyncStatus as GetLicenseSyncStatus + from .group_0061 import PackagesBillingUsage as PackagesBillingUsage + from .group_0062 import CombinedBillingUsage as CombinedBillingUsage + from .group_0066 import IssuePropPullRequest as IssuePropPullRequest + from .group_0071 import GistSimplePropForkOf as GistSimplePropForkOf + from .group_0096 import CopilotSeatBreakdown as CopilotSeatBreakdown + from .group_0137 import RepositoryRuleUpdate as RepositoryRuleUpdate + from .group_0192 import EnvironmentApprovals as EnvironmentApprovals + from .group_0212 import BranchWithProtection as BranchWithProtection + from .group_0220 import CheckSuitePreference as CheckSuitePreference + from .group_0223 import CodeScanningAnalysis as CodeScanningAnalysis + from .group_0239 import RepositoryInvitation as RepositoryInvitation + from .group_0248 import CombinedCommitStatus as CombinedCommitStatus + from .group_0252 import ContentTreePropLinks as ContentTreePropLinks + from .group_0254 import ContentFilePropLinks as ContentFilePropLinks + from .group_0257 import FileCommitPropCommit as FileCommitPropCommit + from .group_0265 import ManifestPropResolved as ManifestPropResolved + from .group_0266 import SnapshotPropDetector as SnapshotPropDetector + from .group_0281 import GitTreePropTreeItems as GitTreePropTreeItems + from .group_0291 import UnassignedIssueEvent as UnassignedIssueEvent + from .group_0292 import MilestonedIssueEvent as MilestonedIssueEvent + from .group_0304 import TimelineCommentEvent as TimelineCommentEvent + from .group_0327 import PullRequestPropLinks as PullRequestPropLinks + from .group_0385 import CodeSearchResultItem as CodeSearchResultItem + from .group_0390 import RepoSearchResultItem as RepoSearchResultItem + from .group_0392 import UserSearchResultItem as UserSearchResultItem + from .group_0427 import WebhooksIssueComment as WebhooksIssueComment + from .group_0449 import WebhooksPullRequest5 as WebhooksPullRequest5 + from .group_0589 import WebhookIssuesDeleted as WebhookIssuesDeleted + from .group_0592 import WebhookIssuesLabeled as WebhookIssuesLabeled + from .group_0613 import WebhookMemberRemoved as WebhookMemberRemoved + from .group_0653 import WebhookProjectClosed as WebhookProjectClosed + from .group_0660 import WebhookProjectEdited as WebhookProjectEdited + from .group_0718 import WebhookReleaseEdited as WebhookReleaseEdited + from .group_0802 import EmojisGetResponse200 as EmojisGetResponse200 + from .group_0829 import GistsGistIdPatchBody as GistsGistIdPatchBody + from .group_0835 import NotificationsPutBody as NotificationsPutBody + from .group_0892 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody + from .group_0914 import OrgsOrgReposPostBody as OrgsOrgReposPostBody + from .group_0917 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody + from .group_1015 import RepoCodespacesSecret as RepoCodespacesSecret + from .group_1130 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody + from .group_1163 import UserProjectsPostBody as UserProjectsPostBody from .group_0004 import ValidationErrorSimple as ValidationErrorSimple from .group_0025 import ServerStatisticsItems as ServerStatisticsItems from .group_0039 import AuditLogEventPropData as AuditLogEventPropData - from .group_0132 import RepositoryRuleOneof14 as RepositoryRuleOneof14 - from .group_0132 import RepositoryRuleOneof16 as RepositoryRuleOneof16 - from .group_0135 import RepositoryRuleOneof15 as RepositoryRuleOneof15 - from .group_0157 import RepositoryRuleOneof17 as RepositoryRuleOneof17 - from .group_0166 import TeamDiscussionComment as TeamDiscussionComment - from .group_0202 import ShortBranchPropCommit as ShortBranchPropCommit - from .group_0218 import CodeScanningAlertRule as CodeScanningAlertRule - from .group_0238 import BranchShortPropCommit as BranchShortPropCommit - from .group_0249 import ContentDirectoryItems as ContentDirectoryItems - from .group_0253 import FileCommitPropContent as FileCommitPropContent - from .group_0262 import SnapshotPropManifests as SnapshotPropManifests - from .group_0283 import IssueEventProjectCard as IssueEventProjectCard - from .group_0304 import TimelineReviewedEvent as TimelineReviewedEvent - from .group_0308 import StateChangeIssueEvent as StateChangeIssueEvent - from .group_0313 import PagesHttpsCertificate as PagesHttpsCertificate - from .group_0317 import PagesDeploymentStatus as PagesDeploymentStatus - from .group_0370 import GroupPropMembersItems as GroupPropMembersItems - from .group_0384 import IssueSearchResultItem as IssueSearchResultItem - from .group_0385 import LabelSearchResultItem as LabelSearchResultItem - from .group_0387 import TopicSearchResultItem as TopicSearchResultItem - from .group_0394 import GpgKeyPropEmailsItems as GpgKeyPropEmailsItems - from .group_0425 import WebhooksIssuePropUser as WebhooksIssuePropUser - from .group_0428 import WebhooksUserMannequin as WebhooksUserMannequin - from .group_0438 import WebhooksProjectColumn as WebhooksProjectColumn - from .group_0445 import WebhooksReviewComment as WebhooksReviewComment - from .group_0524 import WebhookForkPropForkee as WebhookForkPropForkee - from .group_0572 import WebhookIssuesAssigned as WebhookIssuesAssigned - from .group_0592 import WebhookIssuesReopened as WebhookIssuesReopened - from .group_0596 import WebhookIssuesUnlocked as WebhookIssuesUnlocked - from .group_0597 import WebhookIssuesUnpinned as WebhookIssuesUnpinned - from .group_0630 import WebhookPackageUpdated as WebhookPackageUpdated - from .group_0653 import WebhookProjectCreated as WebhookProjectCreated - from .group_0654 import WebhookProjectDeleted as WebhookProjectDeleted - from .group_0701 import WebhookPushPropPusher as WebhookPushPropPusher - from .group_0708 import WebhookReleaseCreated as WebhookReleaseCreated - from .group_0709 import WebhookReleaseDeleted as WebhookReleaseDeleted + from .group_0136 import RepositoryRuleOneof14 as RepositoryRuleOneof14 + from .group_0136 import RepositoryRuleOneof16 as RepositoryRuleOneof16 + from .group_0139 import RepositoryRuleOneof15 as RepositoryRuleOneof15 + from .group_0161 import RepositoryRuleOneof17 as RepositoryRuleOneof17 + from .group_0170 import TeamDiscussionComment as TeamDiscussionComment + from .group_0206 import ShortBranchPropCommit as ShortBranchPropCommit + from .group_0222 import CodeScanningAlertRule as CodeScanningAlertRule + from .group_0242 import BranchShortPropCommit as BranchShortPropCommit + from .group_0253 import ContentDirectoryItems as ContentDirectoryItems + from .group_0257 import FileCommitPropContent as FileCommitPropContent + from .group_0266 import SnapshotPropManifests as SnapshotPropManifests + from .group_0287 import IssueEventProjectCard as IssueEventProjectCard + from .group_0308 import TimelineReviewedEvent as TimelineReviewedEvent + from .group_0312 import StateChangeIssueEvent as StateChangeIssueEvent + from .group_0317 import PagesHttpsCertificate as PagesHttpsCertificate + from .group_0321 import PagesDeploymentStatus as PagesDeploymentStatus + from .group_0374 import GroupPropMembersItems as GroupPropMembersItems + from .group_0388 import IssueSearchResultItem as IssueSearchResultItem + from .group_0389 import LabelSearchResultItem as LabelSearchResultItem + from .group_0391 import TopicSearchResultItem as TopicSearchResultItem + from .group_0398 import GpgKeyPropEmailsItems as GpgKeyPropEmailsItems + from .group_0429 import WebhooksIssuePropUser as WebhooksIssuePropUser + from .group_0432 import WebhooksUserMannequin as WebhooksUserMannequin + from .group_0442 import WebhooksProjectColumn as WebhooksProjectColumn + from .group_0450 import WebhooksReviewComment as WebhooksReviewComment + from .group_0529 import WebhookForkPropForkee as WebhookForkPropForkee + from .group_0577 import WebhookIssuesAssigned as WebhookIssuesAssigned + from .group_0597 import WebhookIssuesReopened as WebhookIssuesReopened + from .group_0601 import WebhookIssuesUnlocked as WebhookIssuesUnlocked + from .group_0602 import WebhookIssuesUnpinned as WebhookIssuesUnpinned + from .group_0635 import WebhookPackageUpdated as WebhookPackageUpdated + from .group_0658 import WebhookProjectCreated as WebhookProjectCreated + from .group_0659 import WebhookProjectDeleted as WebhookProjectDeleted + from .group_0709 import WebhookPushPropPusher as WebhookPushPropPusher + from .group_0716 import WebhookReleaseCreated as WebhookReleaseCreated + from .group_0717 import WebhookReleaseDeleted as WebhookReleaseDeleted from .group_0002 import GlobalAdvisoryPropCvss as GlobalAdvisoryPropCvss - from .group_0048 import DependabotAlertPackage as DependabotAlertPackage - from .group_0074 import MarketplaceListingPlan as MarketplaceListingPlan - from .group_0077 import ApiOverviewPropDomains as ApiOverviewPropDomains - from .group_0089 import CodespacePropGitStatus as CodespacePropGitStatus - from .group_0102 import OrganizationInvitation as OrganizationInvitation - from .group_0132 import RepositoryRuleCreation as RepositoryRuleCreation - from .group_0132 import RepositoryRuleDeletion as RepositoryRuleDeletion - from .group_0186 import SimpleCommitPropAuthor as SimpleCommitPropAuthor - from .group_0206 import CommitPropParentsItems as CommitPropParentsItems - from .group_0213 import CheckRunPropCheckSuite as CheckRunPropCheckSuite - from .group_0217 import CodeScanningAlertItems as CodeScanningAlertItems - from .group_0274 import GitCommitPropCommitter as GitCommitPropCommitter - from .group_0289 import DemilestonedIssueEvent as DemilestonedIssueEvent - from .group_0303 import TimelineCommittedEvent as TimelineCommittedEvent - from .group_0324 import PullRequestMergeResult as PullRequestMergeResult - from .group_0328 import ReviewCommentPropLinks as ReviewCommentPropLinks - from .group_0357 import RepositorySubscription as RepositorySubscription - from .group_0375 import ScimEnterpriseUserList as ScimEnterpriseUserList - from .group_0379 import ScimUserPropRolesItems as ScimUserPropRolesItems - from .group_0382 import CommitSearchResultItem as CommitSearchResultItem - from .group_0391 import CodespaceExportDetails as CodespaceExportDetails - from .group_0394 import GpgKeyPropSubkeysItems as GpgKeyPropSubkeysItems - from .group_0414 import WebhooksReviewersItems as WebhooksReviewersItems - from .group_0415 import WebhooksWorkflowJobRun as WebhooksWorkflowJobRun - from .group_0417 import WebhooksAnswerPropUser as WebhooksAnswerPropUser - from .group_0418 import DiscussionPropCategory as DiscussionPropCategory - from .group_0427 import WebhooksIssue2PropUser as WebhooksIssue2PropUser - from .group_0431 import WebhooksTeamPropParent as WebhooksTeamPropParent - from .group_0440 import WebhooksProjectChanges as WebhooksProjectChanges - from .group_0446 import WebhooksReviewPropUser as WebhooksReviewPropUser - from .group_0467 import WebhookCheckRunCreated as WebhookCheckRunCreated - from .group_0595 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled - from .group_0609 import WebhookMembershipAdded as WebhookMembershipAdded - from .group_0614 import WebhookMilestoneClosed as WebhookMilestoneClosed - from .group_0617 import WebhookMilestoneEdited as WebhookMilestoneEdited - from .group_0618 import WebhookMilestoneOpened as WebhookMilestoneOpened - from .group_0619 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked - from .group_0640 import WebhookPingFormEncoded as WebhookPingFormEncoded - from .group_0656 import WebhookProjectReopened as WebhookProjectReopened - from .group_0713 import WebhookReleaseReleased as WebhookReleaseReleased - from .group_0741 import SecretScanningLocation as SecretScanningLocation - from .group_0786 import AppHookConfigPatchBody as AppHookConfigPatchBody - from .group_0798 import RunnerGroupsEnterprise as RunnerGroupsEnterprise - from .group_0818 import GistsPostBodyPropFiles as GistsPostBodyPropFiles - from .group_1014 import DeploymentBranchPolicy as DeploymentBranchPolicy - from .group_1143 import UserMigrationsPostBody as UserMigrationsPostBody + from .group_0051 import DependabotAlertPackage as DependabotAlertPackage + from .group_0077 import MarketplaceListingPlan as MarketplaceListingPlan + from .group_0080 import ApiOverviewPropDomains as ApiOverviewPropDomains + from .group_0094 import CodespacePropGitStatus as CodespacePropGitStatus + from .group_0104 import OrganizationInvitation as OrganizationInvitation + from .group_0136 import RepositoryRuleCreation as RepositoryRuleCreation + from .group_0136 import RepositoryRuleDeletion as RepositoryRuleDeletion + from .group_0190 import SimpleCommitPropAuthor as SimpleCommitPropAuthor + from .group_0210 import CommitPropParentsItems as CommitPropParentsItems + from .group_0217 import CheckRunPropCheckSuite as CheckRunPropCheckSuite + from .group_0221 import CodeScanningAlertItems as CodeScanningAlertItems + from .group_0278 import GitCommitPropCommitter as GitCommitPropCommitter + from .group_0293 import DemilestonedIssueEvent as DemilestonedIssueEvent + from .group_0307 import TimelineCommittedEvent as TimelineCommittedEvent + from .group_0328 import PullRequestMergeResult as PullRequestMergeResult + from .group_0332 import ReviewCommentPropLinks as ReviewCommentPropLinks + from .group_0361 import RepositorySubscription as RepositorySubscription + from .group_0379 import ScimEnterpriseUserList as ScimEnterpriseUserList + from .group_0383 import ScimUserPropRolesItems as ScimUserPropRolesItems + from .group_0386 import CommitSearchResultItem as CommitSearchResultItem + from .group_0395 import CodespaceExportDetails as CodespaceExportDetails + from .group_0398 import GpgKeyPropSubkeysItems as GpgKeyPropSubkeysItems + from .group_0418 import WebhooksReviewersItems as WebhooksReviewersItems + from .group_0419 import WebhooksWorkflowJobRun as WebhooksWorkflowJobRun + from .group_0421 import WebhooksAnswerPropUser as WebhooksAnswerPropUser + from .group_0422 import DiscussionPropCategory as DiscussionPropCategory + from .group_0431 import WebhooksIssue2PropUser as WebhooksIssue2PropUser + from .group_0435 import WebhooksTeamPropParent as WebhooksTeamPropParent + from .group_0444 import WebhooksProjectChanges as WebhooksProjectChanges + from .group_0446 import ProjectsV2StatusUpdate as ProjectsV2StatusUpdate + from .group_0451 import WebhooksReviewPropUser as WebhooksReviewPropUser + from .group_0472 import WebhookCheckRunCreated as WebhookCheckRunCreated + from .group_0600 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled + from .group_0614 import WebhookMembershipAdded as WebhookMembershipAdded + from .group_0619 import WebhookMilestoneClosed as WebhookMilestoneClosed + from .group_0622 import WebhookMilestoneEdited as WebhookMilestoneEdited + from .group_0623 import WebhookMilestoneOpened as WebhookMilestoneOpened + from .group_0624 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked + from .group_0645 import WebhookPingFormEncoded as WebhookPingFormEncoded + from .group_0661 import WebhookProjectReopened as WebhookProjectReopened + from .group_0721 import WebhookReleaseReleased as WebhookReleaseReleased + from .group_0749 import SecretScanningLocation as SecretScanningLocation + from .group_0794 import AppHookConfigPatchBody as AppHookConfigPatchBody + from .group_0806 import RunnerGroupsEnterprise as RunnerGroupsEnterprise + from .group_0827 import GistsPostBodyPropFiles as GistsPostBodyPropFiles + from .group_1033 import DeploymentBranchPolicy as DeploymentBranchPolicy + from .group_1162 import UserMigrationsPostBody as UserMigrationsPostBody from .group_0011 import HookDeliveryPropRequest as HookDeliveryPropRequest from .group_0025 import ServerStatisticsActions as ServerStatisticsActions - from .group_0095 import CredentialAuthorization as CredentialAuthorization - from .group_0153 import RepositoryRuleWorkflows as RepositoryRuleWorkflows - from .group_0177 import ArtifactPropWorkflowRun as ArtifactPropWorkflowRun - from .group_0200 import BranchRestrictionPolicy as BranchRestrictionPolicy - from .group_0251 import ContentSymlinkPropLinks as ContentSymlinkPropLinks - from .group_0258 import DependencyGraphSpdxSbom as DependencyGraphSpdxSbom - from .group_0270 import CustomDeploymentRuleApp as CustomDeploymentRuleApp - from .group_0311 import LicenseContentPropLinks as LicenseContentPropLinks - from .group_0368 import ScimEnterpriseGroupList as ScimEnterpriseGroupList - from .group_0372 import UserEmailsResponseItems as UserEmailsResponseItems - from .group_0379 import ScimUserPropEmailsItems as ScimUserPropEmailsItems - from .group_0379 import ScimUserPropGroupsItems as ScimUserPropGroupsItems - from .group_0390 import CodespacesUserPublicKey as CodespacesUserPublicKey - from .group_0396 import UserMarketplacePurchase as UserMarketplacePurchase - from .group_0418 import DiscussionPropReactions as DiscussionPropReactions - from .group_0419 import WebhooksCommentPropUser as WebhooksCommentPropUser - from .group_0424 import WebhooksChangesPropBody as WebhooksChangesPropBody - from .group_0446 import WebhooksReviewPropLinks as WebhooksReviewPropLinks - from .group_0454 import WebhooksTeam1PropParent as WebhooksTeam1PropParent - from .group_0496 import WebhookDeployKeyCreated as WebhookDeployKeyCreated - from .group_0497 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted - from .group_0506 import WebhookDiscussionClosed as WebhookDiscussionClosed - from .group_0512 import WebhookDiscussionEdited as WebhookDiscussionEdited - from .group_0514 import WebhookDiscussionLocked as WebhookDiscussionLocked - from .group_0515 import WebhookDiscussionPinned as WebhookDiscussionPinned - from .group_0589 import WebhookIssuesMilestoned as WebhookIssuesMilestoned - from .group_0594 import WebhookIssuesUnassigned as WebhookIssuesUnassigned - from .group_0615 import WebhookMilestoneCreated as WebhookMilestoneCreated - from .group_0616 import WebhookMilestoneDeleted as WebhookMilestoneDeleted - from .group_0626 import WebhookRubygemsMetadata as WebhookRubygemsMetadata - from .group_0627 import WebhookPackagePublished as WebhookPackagePublished - from .group_0645 import WebhookProjectCardMoved as WebhookProjectCardMoved - from .group_0712 import WebhookReleasePublished as WebhookReleasePublished - from .group_0721 import WebhookRepositoryEdited as WebhookRepositoryEdited - from .group_0722 import WebhookRepositoryImport as WebhookRepositoryImport - from .group_0760 import WebhookStatusPropCommit as WebhookStatusPropCommit - from .group_0772 import WebhookWorkflowDispatch as WebhookWorkflowDispatch - from .group_0894 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody - from .group_0899 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody - from .group_0934 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody + from .group_0097 import CredentialAuthorization as CredentialAuthorization + from .group_0157 import RepositoryRuleWorkflows as RepositoryRuleWorkflows + from .group_0181 import ArtifactPropWorkflowRun as ArtifactPropWorkflowRun + from .group_0204 import BranchRestrictionPolicy as BranchRestrictionPolicy + from .group_0255 import ContentSymlinkPropLinks as ContentSymlinkPropLinks + from .group_0262 import DependencyGraphSpdxSbom as DependencyGraphSpdxSbom + from .group_0274 import CustomDeploymentRuleApp as CustomDeploymentRuleApp + from .group_0315 import LicenseContentPropLinks as LicenseContentPropLinks + from .group_0372 import ScimEnterpriseGroupList as ScimEnterpriseGroupList + from .group_0376 import UserEmailsResponseItems as UserEmailsResponseItems + from .group_0383 import ScimUserPropEmailsItems as ScimUserPropEmailsItems + from .group_0383 import ScimUserPropGroupsItems as ScimUserPropGroupsItems + from .group_0394 import CodespacesUserPublicKey as CodespacesUserPublicKey + from .group_0400 import UserMarketplacePurchase as UserMarketplacePurchase + from .group_0422 import DiscussionPropReactions as DiscussionPropReactions + from .group_0423 import WebhooksCommentPropUser as WebhooksCommentPropUser + from .group_0428 import WebhooksChangesPropBody as WebhooksChangesPropBody + from .group_0451 import WebhooksReviewPropLinks as WebhooksReviewPropLinks + from .group_0459 import WebhooksTeam1PropParent as WebhooksTeam1PropParent + from .group_0501 import WebhookDeployKeyCreated as WebhookDeployKeyCreated + from .group_0502 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted + from .group_0511 import WebhookDiscussionClosed as WebhookDiscussionClosed + from .group_0517 import WebhookDiscussionEdited as WebhookDiscussionEdited + from .group_0519 import WebhookDiscussionLocked as WebhookDiscussionLocked + from .group_0520 import WebhookDiscussionPinned as WebhookDiscussionPinned + from .group_0594 import WebhookIssuesMilestoned as WebhookIssuesMilestoned + from .group_0599 import WebhookIssuesUnassigned as WebhookIssuesUnassigned + from .group_0620 import WebhookMilestoneCreated as WebhookMilestoneCreated + from .group_0621 import WebhookMilestoneDeleted as WebhookMilestoneDeleted + from .group_0631 import WebhookRubygemsMetadata as WebhookRubygemsMetadata + from .group_0632 import WebhookPackagePublished as WebhookPackagePublished + from .group_0650 import WebhookProjectCardMoved as WebhookProjectCardMoved + from .group_0720 import WebhookReleasePublished as WebhookReleasePublished + from .group_0729 import WebhookRepositoryEdited as WebhookRepositoryEdited + from .group_0730 import WebhookRepositoryImport as WebhookRepositoryImport + from .group_0768 import WebhookStatusPropCommit as WebhookStatusPropCommit + from .group_0780 import WebhookWorkflowDispatch as WebhookWorkflowDispatch + from .group_0910 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody + from .group_0915 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody + from .group_0950 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody from .group_0002 import VulnerabilityPropPackage as VulnerabilityPropPackage from .group_0011 import HookDeliveryPropResponse as HookDeliveryPropResponse from .group_0024 import ClassroomAssignmentGrade as ClassroomAssignmentGrade from .group_0025 import ServerStatisticsPackages as ServerStatisticsPackages from .group_0041 import CodeScanningAnalysisTool as CodeScanningAnalysisTool - from .group_0069 import GistSimplePropForksItems as GistSimplePropForksItems - from .group_0083 import OrganizationFullPropPlan as OrganizationFullPropPlan - from .group_0105 import InteractionLimitResponse as InteractionLimitResponse - from .group_0161 import RepositoryAdvisoryCredit as RepositoryAdvisoryCredit - from .group_0164 import TeamOrganizationPropPlan as TeamOrganizationPropPlan - from .group_0207 import CommitPropCommitPropTree as CommitPropCommitPropTree - from .group_0228 import CodeScanningDefaultSetup as CodeScanningDefaultSetup - from .group_0232 import CodeScanningSarifsStatus as CodeScanningSarifsStatus - from .group_0257 import DependencyGraphDiffItems as DependencyGraphDiffItems - from .group_0271 import DeploymentProtectionRule as DeploymentProtectionRule - from .group_0295 import AddedToProjectIssueEvent as AddedToProjectIssueEvent - from .group_0305 import PullRequestReviewComment as PullRequestReviewComment - from .group_0325 import PullRequestReviewRequest as PullRequestReviewRequest - from .group_0350 import RepositoryAdvisoryCreate as RepositoryAdvisoryCreate - from .group_0352 import RepositoryAdvisoryUpdate as RepositoryAdvisoryUpdate - from .group_0381 import SearchCodeGetResponse200 as SearchCodeGetResponse200 - from .group_0443 import PullRequestWebhookAllof1 as PullRequestWebhookAllof1 - from .group_0451 import WebhooksSecurityAdvisory as WebhooksSecurityAdvisory - from .group_0453 import WebhooksChanges8PropTier as WebhooksChanges8PropTier - from .group_0465 import WebhookCheckRunCompleted as WebhookCheckRunCompleted - from .group_0498 import WebhookDeploymentCreated as WebhookDeploymentCreated - from .group_0510 import WebhookDiscussionCreated as WebhookDiscussionCreated - from .group_0511 import WebhookDiscussionDeleted as WebhookDiscussionDeleted - from .group_0513 import WebhookDiscussionLabeled as WebhookDiscussionLabeled - from .group_0593 import WebhookIssuesTransferred as WebhookIssuesTransferred - from .group_0610 import WebhookMembershipRemoved as WebhookMembershipRemoved - from .group_0620 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked - from .group_0644 import WebhookProjectCardEdited as WebhookProjectCardEdited - from .group_0673 import WebhookPullRequestClosed as WebhookPullRequestClosed - from .group_0677 import WebhookPullRequestEdited as WebhookPullRequestEdited - from .group_0680 import WebhookPullRequestLocked as WebhookPullRequestLocked - from .group_0682 import WebhookPullRequestOpened as WebhookPullRequestOpened - from .group_0718 import WebhookRepositoryCreated as WebhookRepositoryCreated - from .group_0719 import WebhookRepositoryDeleted as WebhookRepositoryDeleted - from .group_0725 import WebhookRepositoryRenamed as WebhookRepositoryRenamed - from .group_0754 import WebhookSponsorshipEdited as WebhookSponsorshipEdited - from .group_0779 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued - from .group_1135 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 + from .group_0072 import GistSimplePropForksItems as GistSimplePropForksItems + from .group_0086 import OrganizationFullPropPlan as OrganizationFullPropPlan + from .group_0107 import InteractionLimitResponse as InteractionLimitResponse + from .group_0165 import RepositoryAdvisoryCredit as RepositoryAdvisoryCredit + from .group_0168 import TeamOrganizationPropPlan as TeamOrganizationPropPlan + from .group_0211 import CommitPropCommitPropTree as CommitPropCommitPropTree + from .group_0232 import CodeScanningDefaultSetup as CodeScanningDefaultSetup + from .group_0236 import CodeScanningSarifsStatus as CodeScanningSarifsStatus + from .group_0261 import DependencyGraphDiffItems as DependencyGraphDiffItems + from .group_0275 import DeploymentProtectionRule as DeploymentProtectionRule + from .group_0299 import AddedToProjectIssueEvent as AddedToProjectIssueEvent + from .group_0309 import PullRequestReviewComment as PullRequestReviewComment + from .group_0329 import PullRequestReviewRequest as PullRequestReviewRequest + from .group_0354 import RepositoryAdvisoryCreate as RepositoryAdvisoryCreate + from .group_0356 import RepositoryAdvisoryUpdate as RepositoryAdvisoryUpdate + from .group_0385 import SearchCodeGetResponse200 as SearchCodeGetResponse200 + from .group_0448 import PullRequestWebhookAllof1 as PullRequestWebhookAllof1 + from .group_0456 import WebhooksSecurityAdvisory as WebhooksSecurityAdvisory + from .group_0458 import WebhooksChanges8PropTier as WebhooksChanges8PropTier + from .group_0470 import WebhookCheckRunCompleted as WebhookCheckRunCompleted + from .group_0503 import WebhookDeploymentCreated as WebhookDeploymentCreated + from .group_0515 import WebhookDiscussionCreated as WebhookDiscussionCreated + from .group_0516 import WebhookDiscussionDeleted as WebhookDiscussionDeleted + from .group_0518 import WebhookDiscussionLabeled as WebhookDiscussionLabeled + from .group_0598 import WebhookIssuesTransferred as WebhookIssuesTransferred + from .group_0615 import WebhookMembershipRemoved as WebhookMembershipRemoved + from .group_0625 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked + from .group_0649 import WebhookProjectCardEdited as WebhookProjectCardEdited + from .group_0681 import WebhookPullRequestClosed as WebhookPullRequestClosed + from .group_0685 import WebhookPullRequestEdited as WebhookPullRequestEdited + from .group_0688 import WebhookPullRequestLocked as WebhookPullRequestLocked + from .group_0690 import WebhookPullRequestOpened as WebhookPullRequestOpened + from .group_0726 import WebhookRepositoryCreated as WebhookRepositoryCreated + from .group_0727 import WebhookRepositoryDeleted as WebhookRepositoryDeleted + from .group_0733 import WebhookRepositoryRenamed as WebhookRepositoryRenamed + from .group_0762 import WebhookSponsorshipEdited as WebhookSponsorshipEdited + from .group_0787 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued + from .group_1154 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 from .group_0017 import RepositoryPropPermissions as RepositoryPropPermissions from .group_0021 import SimpleClassroomRepository as SimpleClassroomRepository from .group_0023 import SimpleClassroomAssignment as SimpleClassroomAssignment from .group_0042 import CodeScanningAlertInstance as CodeScanningAlertInstance from .group_0042 import CodeScanningAlertLocation as CodeScanningAlertLocation - from .group_0138 import RepositoryRulePullRequest as RepositoryRulePullRequest - from .group_0186 import SimpleCommitPropCommitter as SimpleCommitPropCommitter - from .group_0194 import WorkflowUsagePropBillable as WorkflowUsagePropBillable - from .group_0231 import CodeScanningSarifsReceipt as CodeScanningSarifsReceipt - from .group_0242 import PullRequestSimplePropBase as PullRequestSimplePropBase - from .group_0242 import PullRequestSimplePropHead as PullRequestSimplePropHead - from .group_0246 import CommunityProfilePropFiles as CommunityProfilePropFiles - from .group_0252 import ContentSubmodulePropLinks as ContentSubmodulePropLinks - from .group_0274 import GitCommitPropParentsItems as GitCommitPropParentsItems - from .group_0274 import GitCommitPropVerification as GitCommitPropVerification - from .group_0283 import IssueEventDismissedReview as IssueEventDismissedReview - from .group_0291 import ReviewRequestedIssueEvent as ReviewRequestedIssueEvent - from .group_0293 import ReviewDismissedIssueEvent as ReviewDismissedIssueEvent - from .group_0332 import RepositoryRuleRulesetInfo as RepositoryRuleRulesetInfo - from .group_0388 import SearchUsersGetResponse200 as SearchUsersGetResponse200 - from .group_0421 import WebhooksRepositoriesItems as WebhooksRepositoriesItems - from .group_0425 import WebhooksIssuePropAssignee as WebhooksIssuePropAssignee - from .group_0447 import WebhooksReleasePropAuthor as WebhooksReleasePropAuthor - from .group_0504 import WebhookDiscussionAnswered as WebhookDiscussionAnswered - from .group_0516 import WebhookDiscussionReopened as WebhookDiscussionReopened - from .group_0521 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked - from .group_0522 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned - from .group_0561 import WebhookIssueCommentEdited as WebhookIssueCommentEdited - from .group_0585 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned - from .group_0633 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild - from .group_0642 import WebhookProjectCardCreated as WebhookProjectCardCreated - from .group_0643 import WebhookProjectCardDeleted as WebhookProjectCardDeleted - from .group_0652 import WebhookProjectColumnMoved as WebhookProjectColumnMoved - from .group_0679 import WebhookPullRequestLabeled as WebhookPullRequestLabeled - from .group_0701 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit - from .group_0701 import WebhookPushPropRepository as WebhookPushPropRepository - from .group_0711 import WebhookReleasePrereleased as WebhookReleasePrereleased - from .group_0714 import WebhookReleaseUnpublished as WebhookReleaseUnpublished - from .group_0717 import WebhookRepositoryArchived as WebhookRepositoryArchived - from .group_0753 import WebhookSponsorshipCreated as WebhookSponsorshipCreated - from .group_0780 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting - from .group_0819 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 - from .group_0846 import OrganizationActionsSecret as OrganizationActionsSecret - from .group_0884 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody + from .group_0090 import CodeSecurityConfiguration as CodeSecurityConfiguration + from .group_0142 import RepositoryRulePullRequest as RepositoryRulePullRequest + from .group_0190 import SimpleCommitPropCommitter as SimpleCommitPropCommitter + from .group_0198 import WorkflowUsagePropBillable as WorkflowUsagePropBillable + from .group_0235 import CodeScanningSarifsReceipt as CodeScanningSarifsReceipt + from .group_0246 import PullRequestSimplePropBase as PullRequestSimplePropBase + from .group_0246 import PullRequestSimplePropHead as PullRequestSimplePropHead + from .group_0250 import CommunityProfilePropFiles as CommunityProfilePropFiles + from .group_0256 import ContentSubmodulePropLinks as ContentSubmodulePropLinks + from .group_0278 import GitCommitPropParentsItems as GitCommitPropParentsItems + from .group_0278 import GitCommitPropVerification as GitCommitPropVerification + from .group_0287 import IssueEventDismissedReview as IssueEventDismissedReview + from .group_0295 import ReviewRequestedIssueEvent as ReviewRequestedIssueEvent + from .group_0297 import ReviewDismissedIssueEvent as ReviewDismissedIssueEvent + from .group_0336 import RepositoryRuleRulesetInfo as RepositoryRuleRulesetInfo + from .group_0392 import SearchUsersGetResponse200 as SearchUsersGetResponse200 + from .group_0425 import WebhooksRepositoriesItems as WebhooksRepositoriesItems + from .group_0429 import WebhooksIssuePropAssignee as WebhooksIssuePropAssignee + from .group_0452 import WebhooksReleasePropAuthor as WebhooksReleasePropAuthor + from .group_0509 import WebhookDiscussionAnswered as WebhookDiscussionAnswered + from .group_0521 import WebhookDiscussionReopened as WebhookDiscussionReopened + from .group_0526 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked + from .group_0527 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned + from .group_0566 import WebhookIssueCommentEdited as WebhookIssueCommentEdited + from .group_0590 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned + from .group_0638 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild + from .group_0647 import WebhookProjectCardCreated as WebhookProjectCardCreated + from .group_0648 import WebhookProjectCardDeleted as WebhookProjectCardDeleted + from .group_0657 import WebhookProjectColumnMoved as WebhookProjectColumnMoved + from .group_0687 import WebhookPullRequestLabeled as WebhookPullRequestLabeled + from .group_0709 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit + from .group_0709 import WebhookPushPropRepository as WebhookPushPropRepository + from .group_0719 import WebhookReleasePrereleased as WebhookReleasePrereleased + from .group_0722 import WebhookReleaseUnpublished as WebhookReleaseUnpublished + from .group_0725 import WebhookRepositoryArchived as WebhookRepositoryArchived + from .group_0761 import WebhookSponsorshipCreated as WebhookSponsorshipCreated + from .group_0788 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting + from .group_0828 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 + from .group_0855 import OrganizationActionsSecret as OrganizationActionsSecret + from .group_0900 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody from .group_0005 import IntegrationPropPermissions as IntegrationPropPermissions - from .group_0063 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 - from .group_0071 import GistCommitPropChangeStatus as GistCommitPropChangeStatus - from .group_0091 import CopilotOrganizationDetails as CopilotOrganizationDetails - from .group_0111 import PackageVersionPropMetadata as PackageVersionPropMetadata - from .group_0129 import OrgRulesetConditionsOneof0 as OrgRulesetConditionsOneof0 - from .group_0130 import OrgRulesetConditionsOneof1 as OrgRulesetConditionsOneof1 - from .group_0131 import OrgRulesetConditionsOneof2 as OrgRulesetConditionsOneof2 - from .group_0155 import RepositoryRuleCodeScanning as RepositoryRuleCodeScanning - from .group_0158 import RepositoryRulesetPropLinks as RepositoryRulesetPropLinks - from .group_0162 import RepositoryAdvisoryPropCvss as RepositoryAdvisoryPropCvss - from .group_0169 import TeamProjectPropPermissions as TeamProjectPropPermissions - from .group_0185 import PullRequestMinimalPropBase as PullRequestMinimalPropBase - from .group_0185 import PullRequestMinimalPropHead as PullRequestMinimalPropHead - from .group_0221 import CodeScanningCodeqlDatabase as CodeScanningCodeqlDatabase - from .group_0243 import PullRequestSimplePropLinks as PullRequestSimplePropLinks - from .group_0284 import LabeledIssueEventPropLabel as LabeledIssueEventPropLabel - from .group_0305 import TimelineLineCommentedEvent as TimelineLineCommentedEvent - from .group_0306 import TimelineAssignedIssueEvent as TimelineAssignedIssueEvent - from .group_0318 import PagesHealthCheckPropDomain as PagesHealthCheckPropDomain - from .group_0320 import PullRequestPropLabelsItems as PullRequestPropLabelsItems - from .group_0326 import PullRequestReviewPropLinks as PullRequestReviewPropLinks - from .group_0375 import ScimEnterpriseUserResponse as ScimEnterpriseUserResponse - from .group_0384 import SearchIssuesGetResponse200 as SearchIssuesGetResponse200 - from .group_0385 import SearchLabelsGetResponse200 as SearchLabelsGetResponse200 - from .group_0387 import SearchTopicsGetResponse200 as SearchTopicsGetResponse200 - from .group_0400 import HovercardPropContextsItems as HovercardPropContextsItems - from .group_0404 import OrganizationSimpleWebhooks as OrganizationSimpleWebhooks - from .group_0425 import WebhooksIssuePropMilestone as WebhooksIssuePropMilestone - from .group_0425 import WebhooksIssuePropReactions as WebhooksIssuePropReactions - from .group_0427 import WebhooksIssue2PropAssignee as WebhooksIssue2PropAssignee - from .group_0434 import WebhooksMembershipPropUser as WebhooksMembershipPropUser - from .group_0435 import PersonalAccessTokenRequest as PersonalAccessTokenRequest - from .group_0437 import WebhooksProjectPropCreator as WebhooksProjectPropCreator - from .group_0448 import WebhooksRelease1PropAuthor as WebhooksRelease1PropAuthor - from .group_0449 import WebhooksAlertPropDismisser as WebhooksAlertPropDismisser - from .group_0450 import SecretScanningAlertWebhook as SecretScanningAlertWebhook - from .group_0471 import WebhookCheckRunRerequested as WebhookCheckRunRerequested - from .group_0473 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted - from .group_0474 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested - from .group_0520 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled - from .group_0530 import WebhookInstallationCreated as WebhookInstallationCreated - from .group_0531 import WebhookInstallationDeleted as WebhookInstallationDeleted - from .group_0535 import WebhookInstallationSuspend as WebhookInstallationSuspend - from .group_0538 import WebhookIssueCommentCreated as WebhookIssueCommentCreated - from .group_0550 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted - from .group_0612 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed - from .group_0613 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook - from .group_0621 import WebhookOrganizationDeleted as WebhookOrganizationDeleted - from .group_0625 import WebhookOrganizationRenamed as WebhookOrganizationRenamed - from .group_0651 import WebhookProjectColumnEdited as WebhookProjectColumnEdited - from .group_0670 import WebhookPullRequestAssigned as WebhookPullRequestAssigned - from .group_0676 import WebhookPullRequestDequeued as WebhookPullRequestDequeued - from .group_0678 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued - from .group_0684 import WebhookPullRequestReopened as WebhookPullRequestReopened - from .group_0700 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked - from .group_0749 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis - from .group_0881 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody - from .group_0929 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody - from .group_1053 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody - from .group_1136 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 - from .group_1146 import UserSocialAccountsPostBody as UserSocialAccountsPostBody - from .group_1148 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody + from .group_0066 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 + from .group_0074 import GistCommitPropChangeStatus as GistCommitPropChangeStatus + from .group_0096 import CopilotOrganizationDetails as CopilotOrganizationDetails + from .group_0115 import PackageVersionPropMetadata as PackageVersionPropMetadata + from .group_0133 import OrgRulesetConditionsOneof0 as OrgRulesetConditionsOneof0 + from .group_0134 import OrgRulesetConditionsOneof1 as OrgRulesetConditionsOneof1 + from .group_0135 import OrgRulesetConditionsOneof2 as OrgRulesetConditionsOneof2 + from .group_0159 import RepositoryRuleCodeScanning as RepositoryRuleCodeScanning + from .group_0162 import RepositoryRulesetPropLinks as RepositoryRulesetPropLinks + from .group_0166 import RepositoryAdvisoryPropCvss as RepositoryAdvisoryPropCvss + from .group_0173 import TeamProjectPropPermissions as TeamProjectPropPermissions + from .group_0189 import PullRequestMinimalPropBase as PullRequestMinimalPropBase + from .group_0189 import PullRequestMinimalPropHead as PullRequestMinimalPropHead + from .group_0225 import CodeScanningCodeqlDatabase as CodeScanningCodeqlDatabase + from .group_0247 import PullRequestSimplePropLinks as PullRequestSimplePropLinks + from .group_0288 import LabeledIssueEventPropLabel as LabeledIssueEventPropLabel + from .group_0309 import TimelineLineCommentedEvent as TimelineLineCommentedEvent + from .group_0310 import TimelineAssignedIssueEvent as TimelineAssignedIssueEvent + from .group_0322 import PagesHealthCheckPropDomain as PagesHealthCheckPropDomain + from .group_0324 import PullRequestPropLabelsItems as PullRequestPropLabelsItems + from .group_0330 import PullRequestReviewPropLinks as PullRequestReviewPropLinks + from .group_0379 import ScimEnterpriseUserResponse as ScimEnterpriseUserResponse + from .group_0388 import SearchIssuesGetResponse200 as SearchIssuesGetResponse200 + from .group_0389 import SearchLabelsGetResponse200 as SearchLabelsGetResponse200 + from .group_0391 import SearchTopicsGetResponse200 as SearchTopicsGetResponse200 + from .group_0404 import HovercardPropContextsItems as HovercardPropContextsItems + from .group_0408 import OrganizationSimpleWebhooks as OrganizationSimpleWebhooks + from .group_0429 import WebhooksIssuePropMilestone as WebhooksIssuePropMilestone + from .group_0429 import WebhooksIssuePropReactions as WebhooksIssuePropReactions + from .group_0431 import WebhooksIssue2PropAssignee as WebhooksIssue2PropAssignee + from .group_0438 import WebhooksMembershipPropUser as WebhooksMembershipPropUser + from .group_0439 import PersonalAccessTokenRequest as PersonalAccessTokenRequest + from .group_0441 import WebhooksProjectPropCreator as WebhooksProjectPropCreator + from .group_0453 import WebhooksRelease1PropAuthor as WebhooksRelease1PropAuthor + from .group_0454 import WebhooksAlertPropDismisser as WebhooksAlertPropDismisser + from .group_0455 import SecretScanningAlertWebhook as SecretScanningAlertWebhook + from .group_0476 import WebhookCheckRunRerequested as WebhookCheckRunRerequested + from .group_0478 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted + from .group_0479 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested + from .group_0525 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled + from .group_0535 import WebhookInstallationCreated as WebhookInstallationCreated + from .group_0536 import WebhookInstallationDeleted as WebhookInstallationDeleted + from .group_0540 import WebhookInstallationSuspend as WebhookInstallationSuspend + from .group_0543 import WebhookIssueCommentCreated as WebhookIssueCommentCreated + from .group_0555 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted + from .group_0617 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed + from .group_0618 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook + from .group_0626 import WebhookOrganizationDeleted as WebhookOrganizationDeleted + from .group_0630 import WebhookOrganizationRenamed as WebhookOrganizationRenamed + from .group_0656 import WebhookProjectColumnEdited as WebhookProjectColumnEdited + from .group_0670 import ProjectsV2IterationSetting as ProjectsV2IterationSetting + from .group_0678 import WebhookPullRequestAssigned as WebhookPullRequestAssigned + from .group_0684 import WebhookPullRequestDequeued as WebhookPullRequestDequeued + from .group_0686 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued + from .group_0692 import WebhookPullRequestReopened as WebhookPullRequestReopened + from .group_0708 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked + from .group_0757 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis + from .group_0897 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody + from .group_0945 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody + from .group_1072 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody + from .group_1155 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 + from .group_1165 import UserSocialAccountsPostBody as UserSocialAccountsPostBody + from .group_1167 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody from .group_0002 import GlobalAdvisoryPropCwesItems as GlobalAdvisoryPropCwesItems from .group_0022 import SimpleClassroomOrganization as SimpleClassroomOrganization from .group_0023 import ClassroomAcceptedAssignment as ClassroomAcceptedAssignment - from .group_0068 import GistHistoryPropChangeStatus as GistHistoryPropChangeStatus - from .group_0100 import ExternalGroupPropTeamsItems as ExternalGroupPropTeamsItems - from .group_0117 import OrgRepoCustomPropertyValues as OrgRepoCustomPropertyValues - from .group_0121 import RepositoryRulesetConditions as RepositoryRulesetConditions - from .group_0163 import GroupMappingPropGroupsItems as GroupMappingPropGroupsItems - from .group_0192 import DeploymentPropPayloadOneof0 as DeploymentPropPayloadOneof0 - from .group_0197 import CheckAutomatedSecurityFixes as CheckAutomatedSecurityFixes - from .group_0224 import CodeScanningVariantAnalysis as CodeScanningVariantAnalysis - from .group_0236 import CollaboratorPropPermissions as CollaboratorPropPermissions - from .group_0248 import ContentTreePropEntriesItems as ContentTreePropEntriesItems - from .group_0290 import RenamedIssueEventPropRename as RenamedIssueEventPropRename - from .group_0320 import PullRequestPropHeadPropRepo as PullRequestPropHeadPropRepo - from .group_0320 import PullRequestPropHeadPropUser as PullRequestPropHeadPropUser - from .group_0321 import PullRequestPropBasePropUser as PullRequestPropBasePropUser - from .group_0322 import PullRequestPropBasePropRepo as PullRequestPropBasePropRepo - from .group_0368 import ScimEnterpriseGroupResponse as ScimEnterpriseGroupResponse - from .group_0379 import ScimUserPropOperationsItems as ScimUserPropOperationsItems - from .group_0382 import SearchCommitsGetResponse200 as SearchCommitsGetResponse200 - from .group_0392 import CodespaceWithFullRepository as CodespaceWithFullRepository - from .group_0417 import WebhooksAnswerPropReactions as WebhooksAnswerPropReactions - from .group_0427 import WebhooksIssue2PropMilestone as WebhooksIssue2PropMilestone - from .group_0427 import WebhooksIssue2PropReactions as WebhooksIssue2PropReactions - from .group_0429 import WebhooksMarketplacePurchase as WebhooksMarketplacePurchase - from .group_0452 import WebhooksSponsorshipPropTier as WebhooksSponsorshipPropTier - from .group_0482 import WebhookCommitCommentCreated as WebhookCommitCommentCreated - from .group_0493 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed - from .group_0519 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered - from .group_0525 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 - from .group_0527 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 - from .group_0529 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems - from .group_0641 import WebhookProjectCardConverted as WebhookProjectCardConverted - from .group_0649 import WebhookProjectColumnCreated as WebhookProjectColumnCreated - from .group_0650 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted - from .group_0665 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited - from .group_0699 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled - from .group_0701 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems - from .group_0723 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized - from .group_0724 import WebhookRepositoryPublicized as WebhookRepositoryPublicized - from .group_0735 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived - from .group_0752 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled - from .group_0773 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted - from .group_0781 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted - from .group_0783 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested - from .group_0821 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody - from .group_0827 import NotificationsPutResponse202 as NotificationsPutResponse202 - from .group_0850 import OrganizationActionsVariable as OrganizationActionsVariable - from .group_0877 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody - from .group_1022 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody - from .group_1029 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody - from .group_1032 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody - from .group_1075 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody - from .group_1105 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody + from .group_0071 import GistHistoryPropChangeStatus as GistHistoryPropChangeStatus + from .group_0102 import ExternalGroupPropTeamsItems as ExternalGroupPropTeamsItems + from .group_0121 import OrgRepoCustomPropertyValues as OrgRepoCustomPropertyValues + from .group_0125 import RepositoryRulesetConditions as RepositoryRulesetConditions + from .group_0167 import GroupMappingPropGroupsItems as GroupMappingPropGroupsItems + from .group_0196 import DeploymentPropPayloadOneof0 as DeploymentPropPayloadOneof0 + from .group_0201 import CheckAutomatedSecurityFixes as CheckAutomatedSecurityFixes + from .group_0228 import CodeScanningVariantAnalysis as CodeScanningVariantAnalysis + from .group_0240 import CollaboratorPropPermissions as CollaboratorPropPermissions + from .group_0252 import ContentTreePropEntriesItems as ContentTreePropEntriesItems + from .group_0294 import RenamedIssueEventPropRename as RenamedIssueEventPropRename + from .group_0324 import PullRequestPropHeadPropRepo as PullRequestPropHeadPropRepo + from .group_0324 import PullRequestPropHeadPropUser as PullRequestPropHeadPropUser + from .group_0325 import PullRequestPropBasePropUser as PullRequestPropBasePropUser + from .group_0326 import PullRequestPropBasePropRepo as PullRequestPropBasePropRepo + from .group_0372 import ScimEnterpriseGroupResponse as ScimEnterpriseGroupResponse + from .group_0383 import ScimUserPropOperationsItems as ScimUserPropOperationsItems + from .group_0386 import SearchCommitsGetResponse200 as SearchCommitsGetResponse200 + from .group_0396 import CodespaceWithFullRepository as CodespaceWithFullRepository + from .group_0421 import WebhooksAnswerPropReactions as WebhooksAnswerPropReactions + from .group_0431 import WebhooksIssue2PropMilestone as WebhooksIssue2PropMilestone + from .group_0431 import WebhooksIssue2PropReactions as WebhooksIssue2PropReactions + from .group_0433 import WebhooksMarketplacePurchase as WebhooksMarketplacePurchase + from .group_0457 import WebhooksSponsorshipPropTier as WebhooksSponsorshipPropTier + from .group_0487 import WebhookCommitCommentCreated as WebhookCommitCommentCreated + from .group_0498 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed + from .group_0524 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered + from .group_0530 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 + from .group_0532 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 + from .group_0534 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems + from .group_0646 import WebhookProjectCardConverted as WebhookProjectCardConverted + from .group_0654 import WebhookProjectColumnCreated as WebhookProjectColumnCreated + from .group_0655 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted + from .group_0670 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited + from .group_0707 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled + from .group_0709 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems + from .group_0731 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized + from .group_0732 import WebhookRepositoryPublicized as WebhookRepositoryPublicized + from .group_0743 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived + from .group_0760 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled + from .group_0781 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted + from .group_0789 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted + from .group_0791 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested + from .group_0830 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody + from .group_0836 import NotificationsPutResponse202 as NotificationsPutResponse202 + from .group_0859 import OrganizationActionsVariable as OrganizationActionsVariable + from .group_0893 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody + from .group_1041 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody + from .group_1048 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody + from .group_1051 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody + from .group_1094 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody + from .group_1124 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody from .group_0028 import ActionsEnterprisePermissions as ActionsEnterprisePermissions from .group_0039 import AuditLogEventPropConfigItems as AuditLogEventPropConfigItems from .group_0039 import AuditLogEventPropEventsItems as AuditLogEventPropEventsItems from .group_0040 import CodeScanningAlertRuleSummary as CodeScanningAlertRuleSummary - from .group_0079 import MinimalRepositoryPropLicense as MinimalRepositoryPropLicense - from .group_0107 import OrgMembershipPropPermissions as OrgMembershipPropPermissions - from .group_0120 import RepositoryRulesetBypassActor as RepositoryRulesetBypassActor - from .group_0132 import RepositoryRuleNonFastForward as RepositoryRuleNonFastForward - from .group_0150 import RepositoryRuleTagNamePattern as RepositoryRuleTagNamePattern - from .group_0183 import ActionsRepositoryPermissions as ActionsRepositoryPermissions - from .group_0193 import WorkflowRunUsagePropBillable as WorkflowRunUsagePropBillable - from .group_0201 import ProtectedBranchAdminEnforced as ProtectedBranchAdminEnforced - from .group_0220 import CodeScanningAnalysisDeletion as CodeScanningAnalysisDeletion - from .group_0237 import TimelineCommitCommentedEvent as TimelineCommitCommentedEvent - from .group_0253 import FileCommitPropCommitPropTree as FileCommitPropCommitPropTree - from .group_0285 import UnlabeledIssueEventPropLabel as UnlabeledIssueEventPropLabel - from .group_0297 import RemovedFromProjectIssueEvent as RemovedFromProjectIssueEvent - from .group_0301 import TimelineCrossReferencedEvent as TimelineCrossReferencedEvent - from .group_0307 import TimelineUnassignedIssueEvent as TimelineUnassignedIssueEvent - from .group_0333 import RepositoryRuleDetailedOneof0 as RepositoryRuleDetailedOneof0 - from .group_0334 import RepositoryRuleDetailedOneof1 as RepositoryRuleDetailedOneof1 - from .group_0335 import RepositoryRuleDetailedOneof2 as RepositoryRuleDetailedOneof2 - from .group_0336 import RepositoryRuleDetailedOneof3 as RepositoryRuleDetailedOneof3 - from .group_0337 import RepositoryRuleDetailedOneof4 as RepositoryRuleDetailedOneof4 - from .group_0338 import RepositoryRuleDetailedOneof5 as RepositoryRuleDetailedOneof5 - from .group_0339 import RepositoryRuleDetailedOneof6 as RepositoryRuleDetailedOneof6 - from .group_0340 import RepositoryRuleDetailedOneof7 as RepositoryRuleDetailedOneof7 - from .group_0341 import RepositoryRuleDetailedOneof8 as RepositoryRuleDetailedOneof8 - from .group_0342 import RepositoryRuleDetailedOneof9 as RepositoryRuleDetailedOneof9 - from .group_0380 import SearchResultTextMatchesItems as SearchResultTextMatchesItems - from .group_0411 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite - from .group_0418 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy - from .group_0419 import WebhooksCommentPropReactions as WebhooksCommentPropReactions - from .group_0423 import WebhooksIssueCommentPropUser as WebhooksIssueCommentPropUser - from .group_0425 import WebhooksIssuePropLabelsItems as WebhooksIssuePropLabelsItems - from .group_0425 import WebhooksIssuePropPullRequest as WebhooksIssuePropPullRequest - from .group_0426 import WebhooksMilestonePropCreator as WebhooksMilestonePropCreator - from .group_0444 import WebhooksPullRequest5PropBase as WebhooksPullRequest5PropBase - from .group_0444 import WebhooksPullRequest5PropHead as WebhooksPullRequest5PropHead - from .group_0444 import WebhooksPullRequest5PropUser as WebhooksPullRequest5PropUser - from .group_0447 import WebhooksReleasePropReactions as WebhooksReleasePropReactions - from .group_0475 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested - from .group_0484 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated - from .group_0485 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted - from .group_0486 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated - from .group_0517 import WebhookDiscussionTransferred as WebhookDiscussionTransferred - from .group_0537 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend - from .group_0574 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue - from .group_0586 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue - from .group_0588 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue - from .group_0590 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue - from .group_0663 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated - from .group_0664 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted - from .group_0681 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned - from .group_0698 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned - from .group_0734 import WebhookRepositoryTransferred as WebhookRepositoryTransferred - from .group_0741 import SecretScanningLocationCommit as SecretScanningLocationCommit - from .group_0766 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository - from .group_0769 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges - from .group_0776 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress - from .group_0782 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress - from .group_0872 import OrganizationDependabotSecret as OrganizationDependabotSecret - from .group_1038 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody - from .group_1054 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody - from .group_1057 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody - from .group_1124 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 - from .group_1125 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 - from .group_1126 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 - from .group_1134 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody - from .group_1147 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody - from .group_0051 import ( + from .group_0082 import MinimalRepositoryPropLicense as MinimalRepositoryPropLicense + from .group_0109 import OrgMembershipPropPermissions as OrgMembershipPropPermissions + from .group_0124 import RepositoryRulesetBypassActor as RepositoryRulesetBypassActor + from .group_0136 import RepositoryRuleNonFastForward as RepositoryRuleNonFastForward + from .group_0154 import RepositoryRuleTagNamePattern as RepositoryRuleTagNamePattern + from .group_0187 import ActionsRepositoryPermissions as ActionsRepositoryPermissions + from .group_0197 import WorkflowRunUsagePropBillable as WorkflowRunUsagePropBillable + from .group_0205 import ProtectedBranchAdminEnforced as ProtectedBranchAdminEnforced + from .group_0224 import CodeScanningAnalysisDeletion as CodeScanningAnalysisDeletion + from .group_0241 import TimelineCommitCommentedEvent as TimelineCommitCommentedEvent + from .group_0257 import FileCommitPropCommitPropTree as FileCommitPropCommitPropTree + from .group_0289 import UnlabeledIssueEventPropLabel as UnlabeledIssueEventPropLabel + from .group_0301 import RemovedFromProjectIssueEvent as RemovedFromProjectIssueEvent + from .group_0305 import TimelineCrossReferencedEvent as TimelineCrossReferencedEvent + from .group_0311 import TimelineUnassignedIssueEvent as TimelineUnassignedIssueEvent + from .group_0337 import RepositoryRuleDetailedOneof0 as RepositoryRuleDetailedOneof0 + from .group_0338 import RepositoryRuleDetailedOneof1 as RepositoryRuleDetailedOneof1 + from .group_0339 import RepositoryRuleDetailedOneof2 as RepositoryRuleDetailedOneof2 + from .group_0340 import RepositoryRuleDetailedOneof3 as RepositoryRuleDetailedOneof3 + from .group_0341 import RepositoryRuleDetailedOneof4 as RepositoryRuleDetailedOneof4 + from .group_0342 import RepositoryRuleDetailedOneof5 as RepositoryRuleDetailedOneof5 + from .group_0343 import RepositoryRuleDetailedOneof6 as RepositoryRuleDetailedOneof6 + from .group_0344 import RepositoryRuleDetailedOneof7 as RepositoryRuleDetailedOneof7 + from .group_0345 import RepositoryRuleDetailedOneof8 as RepositoryRuleDetailedOneof8 + from .group_0346 import RepositoryRuleDetailedOneof9 as RepositoryRuleDetailedOneof9 + from .group_0384 import SearchResultTextMatchesItems as SearchResultTextMatchesItems + from .group_0415 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite + from .group_0422 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy + from .group_0423 import WebhooksCommentPropReactions as WebhooksCommentPropReactions + from .group_0427 import WebhooksIssueCommentPropUser as WebhooksIssueCommentPropUser + from .group_0429 import WebhooksIssuePropLabelsItems as WebhooksIssuePropLabelsItems + from .group_0429 import WebhooksIssuePropPullRequest as WebhooksIssuePropPullRequest + from .group_0430 import WebhooksMilestonePropCreator as WebhooksMilestonePropCreator + from .group_0449 import WebhooksPullRequest5PropBase as WebhooksPullRequest5PropBase + from .group_0449 import WebhooksPullRequest5PropHead as WebhooksPullRequest5PropHead + from .group_0449 import WebhooksPullRequest5PropUser as WebhooksPullRequest5PropUser + from .group_0452 import WebhooksReleasePropReactions as WebhooksReleasePropReactions + from .group_0480 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested + from .group_0489 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated + from .group_0490 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted + from .group_0491 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated + from .group_0522 import WebhookDiscussionTransferred as WebhookDiscussionTransferred + from .group_0542 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend + from .group_0579 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue + from .group_0591 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue + from .group_0593 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue + from .group_0595 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue + from .group_0668 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated + from .group_0669 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted + from .group_0670 import ProjectsV2SingleSelectOption as ProjectsV2SingleSelectOption + from .group_0689 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned + from .group_0706 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned + from .group_0742 import WebhookRepositoryTransferred as WebhookRepositoryTransferred + from .group_0749 import SecretScanningLocationCommit as SecretScanningLocationCommit + from .group_0774 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository + from .group_0777 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges + from .group_0784 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress + from .group_0790 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress + from .group_0888 import OrganizationDependabotSecret as OrganizationDependabotSecret + from .group_1057 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody + from .group_1073 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody + from .group_1076 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody + from .group_1143 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 + from .group_1144 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 + from .group_1145 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 + from .group_1153 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody + from .group_1166 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody + from .group_0054 import ( DependabotAlertWithRepository as DependabotAlertWithRepository, ) - from .group_0068 import ( + from .group_0071 import ( GistSimplePropForkOfPropFiles as GistSimplePropForkOfPropFiles, ) - from .group_0100 import ( + from .group_0102 import ( ExternalGroupPropMembersItems as ExternalGroupPropMembersItems, ) - from .group_0101 import ( + from .group_0103 import ( ExternalGroupsPropGroupsItems as ExternalGroupsPropGroupsItems, ) - from .group_0119 import ( + from .group_0123 import ( FullRepositoryPropPermissions as FullRepositoryPropPermissions, ) - from .group_0170 import ( + from .group_0174 import ( TeamRepositoryPropPermissions as TeamRepositoryPropPermissions, ) - from .group_0173 import ( + from .group_0177 import ( ProjectCollaboratorPermission as ProjectCollaboratorPermission, ) - from .group_0208 import ( + from .group_0212 import ( BranchWithProtectionPropLinks as BranchWithProtectionPropLinks, ) - from .group_0209 import ( + from .group_0213 import ( ProtectedBranchPropLockBranch as ProtectedBranchPropLockBranch, ) - from .group_0256 import ( + from .group_0260 import ( DependabotAlertPropDependency as DependabotAlertPropDependency, ) - from .group_0280 import ( + from .group_0284 import ( ImportPropProjectChoicesItems as ImportPropProjectChoicesItems, ) - from .group_0318 import ( + from .group_0322 import ( PagesHealthCheckPropAltDomain as PagesHealthCheckPropAltDomain, ) - from .group_0343 import ( + from .group_0347 import ( RepositoryRuleDetailedOneof10 as RepositoryRuleDetailedOneof10, ) - from .group_0344 import ( + from .group_0348 import ( RepositoryRuleDetailedOneof11 as RepositoryRuleDetailedOneof11, ) - from .group_0345 import ( + from .group_0349 import ( RepositoryRuleDetailedOneof12 as RepositoryRuleDetailedOneof12, ) - from .group_0346 import ( + from .group_0350 import ( RepositoryRuleDetailedOneof13 as RepositoryRuleDetailedOneof13, ) - from .group_0347 import ( + from .group_0351 import ( RepositoryRuleDetailedOneof14 as RepositoryRuleDetailedOneof14, ) - from .group_0348 import ( + from .group_0352 import ( RepositoryRuleDetailedOneof15 as RepositoryRuleDetailedOneof15, ) - from .group_0366 import ( + from .group_0370 import ( GroupResponsePropMembersItems as GroupResponsePropMembersItems, ) - from .group_0427 import ( + from .group_0431 import ( WebhooksIssue2PropLabelsItems as WebhooksIssue2PropLabelsItems, ) - from .group_0427 import ( + from .group_0431 import ( WebhooksIssue2PropPullRequest as WebhooksIssue2PropPullRequest, ) - from .group_0433 import ( + from .group_0437 import ( WebhooksMilestone3PropCreator as WebhooksMilestone3PropCreator, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLinks as WebhooksPullRequest5PropLinks, ) - from .group_0445 import ( + from .group_0450 import ( WebhooksReviewCommentPropUser as WebhooksReviewCommentPropUser, ) - from .group_0448 import ( + from .group_0453 import ( WebhooksRelease1PropReactions as WebhooksRelease1PropReactions, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCodeScanningAlertFixed as WebhookCodeScanningAlertFixed, ) - from .group_0491 import ( + from .group_0496 import ( WebhookDependabotAlertCreated as WebhookDependabotAlertCreated, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssue as WebhookIssuesDeletedPropIssue, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssue as WebhookIssuesLabeledPropIssue, ) - from .group_0600 import ( + from .group_0605 import ( WebhookLabelEditedPropChanges as WebhookLabelEditedPropChanges, ) - from .group_0606 import ( + from .group_0611 import ( WebhookMemberAddedPropChanges as WebhookMemberAddedPropChanges, ) - from .group_0639 import ( + from .group_0644 import ( WebhookPingPropHookPropConfig as WebhookPingPropHookPropConfig, ) - from .group_0661 import ( + from .group_0666 import ( WebhookProjectsV2ItemArchived as WebhookProjectsV2ItemArchived, ) - from .group_0667 import ( + from .group_0672 import ( WebhookProjectsV2ItemRestored as WebhookProjectsV2ItemRestored, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronize as WebhookPullRequestSynchronize, ) - from .group_0705 import ( + from .group_0713 import ( WebhookRegistryPackageUpdated as WebhookRegistryPackageUpdated, ) - from .group_0757 import ( + from .group_0765 import ( WebhookSponsorshipTierChanged as WebhookSponsorshipTierChanged, ) - from .group_0820 import ( + from .group_0829 import ( GistsGistIdPatchBodyPropFiles as GistsGistIdPatchBodyPropFiles, ) - from .group_0823 import ( + from .group_0832 import ( GistsGistIdStarGetResponse404 as GistsGistIdStarGetResponse404, ) - from .group_0831 import ( + from .group_0840 import ( ActionsCacheUsageByRepository as ActionsCacheUsageByRepository, ) - from .group_0902 import ( + from .group_0918 import ( OrgsOrgTeamsTeamSlugPatchBody as OrgsOrgTeamsTeamSlugPatchBody, ) - from .group_1025 import ( + from .group_1044 import ( ReposOwnerRepoGitRefsPostBody as ReposOwnerRepoGitRefsPostBody, ) - from .group_1027 import ( + from .group_1046 import ( ReposOwnerRepoGitTagsPostBody as ReposOwnerRepoGitTagsPostBody, ) - from .group_1033 import ( + from .group_1052 import ( ReposOwnerRepoImportPatchBody as ReposOwnerRepoImportPatchBody, ) from .group_0002 import ( @@ -938,451 +946,454 @@ from .group_0039 import ( AuditLogEventPropActorLocation as AuditLogEventPropActorLocation, ) - from .group_0065 import ( + from .group_0068 import ( EventPropPayloadPropPagesItems as EventPropPayloadPropPagesItems, ) - from .group_0086 import ( + from .group_0088 import ( ActionsOrganizationPermissions as ActionsOrganizationPermissions, ) - from .group_0176 import ( + from .group_0180 import ( RateLimitOverviewPropResources as RateLimitOverviewPropResources, ) - from .group_0190 import ( + from .group_0194 import ( ReviewCustomGatesStateRequired as ReviewCustomGatesStateRequired, ) - from .group_0201 import ( + from .group_0205 import ( BranchProtectionPropLockBranch as BranchProtectionPropLockBranch, ) - from .group_0229 import ( + from .group_0233 import ( CodeScanningDefaultSetupUpdate as CodeScanningDefaultSetupUpdate, ) - from .group_0249 import ( + from .group_0253 import ( ContentDirectoryItemsPropLinks as ContentDirectoryItemsPropLinks, ) - from .group_0253 import ( + from .group_0257 import ( FileCommitPropCommitPropAuthor as FileCommitPropCommitPropAuthor, ) - from .group_0253 import ( + from .group_0257 import ( FileCommitPropContentPropLinks as FileCommitPropContentPropLinks, ) - from .group_0264 import ( + from .group_0268 import ( DeploymentBranchPolicySettings as DeploymentBranchPolicySettings, ) - from .group_0292 import ( + from .group_0296 import ( ReviewRequestRemovedIssueEvent as ReviewRequestRemovedIssueEvent, ) - from .group_0296 import ( + from .group_0300 import ( MovedColumnInProjectIssueEvent as MovedColumnInProjectIssueEvent, ) - from .group_0298 import ( + from .group_0302 import ( ConvertedNoteToIssueIssueEvent as ConvertedNoteToIssueIssueEvent, ) - from .group_0303 import ( + from .group_0307 import ( TimelineCommittedEventPropTree as TimelineCommittedEventPropTree, ) - from .group_0304 import ( + from .group_0308 import ( TimelineReviewedEventPropLinks as TimelineReviewedEventPropLinks, ) - from .group_0371 import ( + from .group_0375 import ( PatchSchemaPropOperationsItems as PatchSchemaPropOperationsItems, ) - from .group_0409 import ( + from .group_0413 import ( ExemptionRequestSecretScanning as ExemptionRequestSecretScanning, ) - from .group_0422 import ( + from .group_0426 import ( WebhooksRepositoriesAddedItems as WebhooksRepositoriesAddedItems, ) - from .group_0436 import ( + from .group_0440 import ( WebhooksProjectCardPropCreator as WebhooksProjectCardPropCreator, ) - from .group_0445 import ( + from .group_0450 import ( WebhooksReviewCommentPropLinks as WebhooksReviewCommentPropLinks, ) - from .group_0447 import ( + from .group_0452 import ( WebhooksReleasePropAssetsItems as WebhooksReleasePropAssetsItems, ) - from .group_0452 import ( + from .group_0457 import ( WebhooksSponsorshipPropSponsor as WebhooksSponsorshipPropSponsor, ) - from .group_0462 import ( + from .group_0467 import ( WebhookExemptionRequestCreated as WebhookExemptionRequestCreated, ) - from .group_0469 import ( + from .group_0474 import ( WebhookCheckRunRequestedAction as WebhookCheckRunRequestedAction, ) - from .group_0495 import ( + from .group_0500 import ( WebhookDependabotAlertReopened as WebhookDependabotAlertReopened, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreated as WebhookDeploymentStatusCreated, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDiscussionCommentEdited as WebhookDiscussionCommentEdited, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropChanges as WebhookIssuesEditedPropChanges, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChanges as WebhookIssuesOpenedPropChanges, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssue as WebhookIssuesReopenedPropIssue, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssue as WebhookIssuesUnlockedPropIssue, ) - from .group_0607 import ( + from .group_0612 import ( WebhookMemberEditedPropChanges as WebhookMemberEditedPropChanges, ) - from .group_0622 import ( + from .group_0627 import ( WebhookOrganizationMemberAdded as WebhookOrganizationMemberAdded, ) - from .group_0657 import ( + from .group_0662 import ( WebhookProjectsV2ProjectClosed as WebhookProjectsV2ProjectClosed, ) - from .group_0660 import ( + from .group_0665 import ( WebhookProjectsV2ProjectEdited as WebhookProjectsV2ProjectEdited, ) - from .group_0662 import ( + from .group_0667 import ( WebhookProjectsV2ItemConverted as WebhookProjectsV2ItemConverted, ) - from .group_0666 import ( + from .group_0671 import ( WebhookProjectsV2ItemReordered as WebhookProjectsV2ItemReordered, ) - from .group_0675 import ( + from .group_0683 import ( WebhookPullRequestDemilestoned as WebhookPullRequestDemilestoned, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEdited as WebhookPullRequestReviewEdited, ) - from .group_0728 import ( + from .group_0736 import ( WebhookRepositoryRulesetEdited as WebhookRepositoryRulesetEdited, ) - from .group_0747 import ( + from .group_0755 import ( WebhookSecurityAdvisoryUpdated as WebhookSecurityAdvisoryUpdated, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropBranchesItems as WebhookStatusPropBranchesItems, ) - from .group_0856 import ( + from .group_0871 import ( OrgsOrgCodespacesAccessPutBody as OrgsOrgCodespacesAccessPutBody, ) - from .group_0876 import ( + from .group_0892 import ( OrgsOrgHooksPostBodyPropConfig as OrgsOrgHooksPostBodyPropConfig, ) - from .group_1023 import ( + from .group_1042 import ( ReposOwnerRepoGitBlobsPostBody as ReposOwnerRepoGitBlobsPostBody, ) - from .group_1028 import ( + from .group_1047 import ( ReposOwnerRepoGitTreesPostBody as ReposOwnerRepoGitTreesPostBody, ) - from .group_1073 import ( + from .group_1092 import ( ReposOwnerRepoProjectsPostBody as ReposOwnerRepoProjectsPostBody, ) - from .group_1094 import ( + from .group_1113 import ( ReposOwnerRepoReleasesPostBody as ReposOwnerRepoReleasesPostBody, ) - from .group_1099 import ( + from .group_1118 import ( ReposOwnerRepoRulesetsPostBody as ReposOwnerRepoRulesetsPostBody, ) - from .group_1106 import ( + from .group_1125 import ( ReposOwnerRepoTransferPostBody as ReposOwnerRepoTransferPostBody, ) - from .group_1112 import ( + from .group_1131 import ( TeamsTeamIdDiscussionsPostBody as TeamsTeamIdDiscussionsPostBody, ) from .group_0039 import ( AuditLogEventPropConfigWasItems as AuditLogEventPropConfigWasItems, ) - from .group_0050 import ( + from .group_0053 import ( DependabotAlertSecurityAdvisory as DependabotAlertSecurityAdvisory, ) - from .group_0054 import ( + from .group_0057 import ( OrganizationSecretScanningAlert as OrganizationSecretScanningAlert, ) - from .group_0089 import ( + from .group_0094 import ( CodespacePropRuntimeConstraints as CodespacePropRuntimeConstraints, ) - from .group_0103 import ( + from .group_0105 import ( RepositoryFineGrainedPermission as RepositoryFineGrainedPermission, ) - from .group_0148 import ( + from .group_0152 import ( RepositoryRuleBranchNamePattern as RepositoryRuleBranchNamePattern, ) - from .group_0162 import ( + from .group_0166 import ( RepositoryAdvisoryPropCwesItems as RepositoryAdvisoryPropCwesItems, ) - from .group_0162 import ( + from .group_0166 import ( RepositoryAdvisoryVulnerability as RepositoryAdvisoryVulnerability, ) - from .group_0233 import ( + from .group_0237 import ( CodeownersErrorsPropErrorsItems as CodeownersErrorsPropErrorsItems, ) - from .group_0258 import ( + from .group_0262 import ( DependencyGraphSpdxSbomPropSbom as DependencyGraphSpdxSbomPropSbom, ) - from .group_0425 import ( + from .group_0429 import ( WebhooksIssuePropAssigneesItems as WebhooksIssuePropAssigneesItems, ) - from .group_0446 import ( + from .group_0451 import ( WebhooksReviewPropLinksPropHtml as WebhooksReviewPropLinksPropHtml, ) - from .group_0448 import ( + from .group_0453 import ( WebhooksRelease1PropAssetsItems as WebhooksRelease1PropAssetsItems, ) - from .group_0478 import ( + from .group_0483 import ( WebhookCodeScanningAlertCreated as WebhookCodeScanningAlertCreated, ) - from .group_0492 import ( + from .group_0497 import ( WebhookDependabotAlertDismissed as WebhookDependabotAlertDismissed, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApproved as WebhookDeploymentReviewApproved, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejected as WebhookDeploymentReviewRejected, ) - from .group_0507 import ( + from .group_0512 import ( WebhookDiscussionCommentCreated as WebhookDiscussionCommentCreated, ) - from .group_0508 import ( + from .group_0513 import ( WebhookDiscussionCommentDeleted as WebhookDiscussionCommentDeleted, ) - from .group_0655 import ( + from .group_0660 import ( WebhookProjectEditedPropChanges as WebhookProjectEditedPropChanges, ) - from .group_0658 import ( + from .group_0663 import ( WebhookProjectsV2ProjectCreated as WebhookProjectsV2ProjectCreated, ) - from .group_0659 import ( + from .group_0664 import ( WebhookProjectsV2ProjectDeleted as WebhookProjectsV2ProjectDeleted, ) - from .group_0702 import ( + from .group_0710 import ( WebhookRegistryPackagePublished as WebhookRegistryPackagePublished, ) - from .group_0710 import ( + from .group_0718 import ( WebhookReleaseEditedPropChanges as WebhookReleaseEditedPropChanges, ) - from .group_0720 import ( + from .group_0728 import ( WebhookRepositoryDispatchSample as WebhookRepositoryDispatchSample, ) - from .group_0726 import ( + from .group_0734 import ( WebhookRepositoryRulesetCreated as WebhookRepositoryRulesetCreated, ) - from .group_0727 import ( + from .group_0735 import ( WebhookRepositoryRulesetDeleted as WebhookRepositoryRulesetDeleted, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationIssueBody as SecretScanningLocationIssueBody, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropRepository as WebhookTeamEditedPropRepository, ) - from .group_0851 import ( + from .group_0860 import ( OrgsOrgActionsVariablesPostBody as OrgsOrgActionsVariablesPostBody, ) - from .group_0855 import ( + from .group_0870 import ( OrgsOrgCodespacesGetResponse200 as OrgsOrgCodespacesGetResponse200, ) - from .group_0900 import ( + from .group_0916 import ( OrgsOrgRulesetsRulesetIdPutBody as OrgsOrgRulesetsRulesetIdPutBody, ) - from .group_0933 import ( + from .group_0949 import ( ReposOwnerRepoDeleteResponse403 as ReposOwnerRepoDeleteResponse403, ) - from .group_0960 import ( + from .group_0979 import ( ReposOwnerRepoAutolinksPostBody as ReposOwnerRepoAutolinksPostBody, ) - from .group_1138 import ( + from .group_1157 import ( UserInstallationsGetResponse200 as UserInstallationsGetResponse200, ) - from .group_1142 import ( + from .group_1161 import ( UserMembershipsOrgsOrgPatchBody as UserMembershipsOrgsOrgPatchBody, ) + from .group_1168 import ( + SigstoreBundle0PropDsseEnvelope as SigstoreBundle0PropDsseEnvelope, + ) from .group_0039 import ( AuditLogEventPropEventsWereItems as AuditLogEventPropEventsWereItems, ) - from .group_0056 import ( + from .group_0059 import ( AdvancedSecurityActiveCommitters as AdvancedSecurityActiveCommitters, ) - from .group_0079 import ( + from .group_0082 import ( MinimalRepositoryPropPermissions as MinimalRepositoryPropPermissions, ) - from .group_0082 import ( + from .group_0085 import ( OrganizationCustomRepositoryRole as OrganizationCustomRepositoryRole, ) - from .group_0132 import ( + from .group_0136 import ( RepositoryRuleRequiredSignatures as RepositoryRuleRequiredSignatures, ) - from .group_0162 import ( + from .group_0166 import ( RepositoryAdvisoryPropSubmission as RepositoryAdvisoryPropSubmission, ) - from .group_0189 import ( + from .group_0193 import ( ReviewCustomGatesCommentRequired as ReviewCustomGatesCommentRequired, ) - from .group_0191 import ( + from .group_0195 import ( PendingDeploymentPropEnvironment as PendingDeploymentPropEnvironment, ) - from .group_0198 import ( + from .group_0202 import ( ProtectedBranchPullRequestReview as ProtectedBranchPullRequestReview, ) - from .group_0209 import ( + from .group_0213 import ( ProtectedBranchPropEnforceAdmins as ProtectedBranchPropEnforceAdmins, ) - from .group_0209 import ( + from .group_0213 import ( StatusCheckPolicyPropChecksItems as StatusCheckPolicyPropChecksItems, ) - from .group_0236 import ( + from .group_0240 import ( RepositoryCollaboratorPermission as RepositoryCollaboratorPermission, ) - from .group_0241 import ( + from .group_0245 import ( PullRequestSimplePropLabelsItems as PullRequestSimplePropLabelsItems, ) - from .group_0303 import ( + from .group_0307 import ( TimelineCommittedEventPropAuthor as TimelineCommittedEventPropAuthor, ) - from .group_0351 import ( + from .group_0355 import ( PrivateVulnerabilityReportCreate as PrivateVulnerabilityReportCreate, ) - from .group_0376 import ( + from .group_0380 import ( ScimEnterpriseUserResponseAllof1 as ScimEnterpriseUserResponseAllof1, ) - from .group_0383 import ( + from .group_0387 import ( CommitSearchResultItemPropCommit as CommitSearchResultItemPropCommit, ) - from .group_0386 import ( + from .group_0390 import ( SearchRepositoriesGetResponse200 as SearchRepositoriesGetResponse200, ) - from .group_0427 import ( + from .group_0431 import ( WebhooksIssue2PropAssigneesItems as WebhooksIssue2PropAssigneesItems, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropAssignee as WebhooksPullRequest5PropAssignee, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropMergedBy as WebhooksPullRequest5PropMergedBy, ) - from .group_0451 import ( + from .group_0456 import ( WebhooksSecurityAdvisoryPropCvss as WebhooksSecurityAdvisoryPropCvss, ) - from .group_0453 import ( + from .group_0458 import ( WebhooksChanges8PropTierPropFrom as WebhooksChanges8PropTierPropFrom, ) - from .group_0460 import ( + from .group_0465 import ( WebhookExemptionRequestCancelled as WebhookExemptionRequestCancelled, ) - from .group_0461 import ( + from .group_0466 import ( WebhookExemptionRequestCompleted as WebhookExemptionRequestCompleted, ) - from .group_0480 import ( + from .group_0485 import ( WebhookCodeScanningAlertReopened as WebhookCodeScanningAlertReopened, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequested as WebhookDeploymentReviewRequested, ) - from .group_0505 import ( + from .group_0510 import ( WebhookDiscussionCategoryChanged as WebhookDiscussionCategoryChanged, ) - from .group_0524 import ( + from .group_0529 import ( WebhookForkPropForkeeMergedOwner as WebhookForkPropForkeeMergedOwner, ) - from .group_0536 import ( + from .group_0541 import ( WebhookInstallationTargetRenamed as WebhookInstallationTargetRenamed, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssue as WebhookIssuesMilestonedPropIssue, ) - from .group_0609 import ( + from .group_0614 import ( WebhookMembershipAddedPropSender as WebhookMembershipAddedPropSender, ) - from .group_0611 import ( + from .group_0616 import ( WebhookMergeGroupChecksRequested as WebhookMergeGroupChecksRequested, ) - from .group_0623 import ( + from .group_0628 import ( WebhookOrganizationMemberInvited as WebhookOrganizationMemberInvited, ) - from .group_0624 import ( + from .group_0629 import ( WebhookOrganizationMemberRemoved as WebhookOrganizationMemberRemoved, ) - from .group_0631 import ( + from .group_0636 import ( WebhookPackageUpdatedPropPackage as WebhookPackageUpdatedPropPackage, ) - from .group_0668 import ( + from .group_0673 import ( WebhookProjectsV2ProjectReopened as WebhookProjectsV2ProjectReopened, ) - from .group_0683 import ( + from .group_0691 import ( WebhookPullRequestReadyForReview as WebhookPullRequestReadyForReview, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationIssueTitle as SecretScanningLocationIssueTitle, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationWikiCommit as SecretScanningLocationWikiCommit, ) - from .group_0746 import ( + from .group_0754 import ( WebhookSecurityAdvisoryPublished as WebhookSecurityAdvisoryPublished, ) - from .group_0748 import ( + from .group_0756 import ( WebhookSecurityAdvisoryWithdrawn as WebhookSecurityAdvisoryWithdrawn, ) - from .group_0767 import ( + from .group_0775 import ( WebhookTeamCreatedPropRepository as WebhookTeamCreatedPropRepository, ) - from .group_0768 import ( + from .group_0776 import ( WebhookTeamDeletedPropRepository as WebhookTeamDeletedPropRepository, ) - from .group_0770 import ( + from .group_0778 import ( WebhookTeamRemovedFromRepository as WebhookTeamRemovedFromRepository, ) - from .group_0832 import ( + from .group_0841 import ( OrgsOrgActionsPermissionsPutBody as OrgsOrgActionsPermissionsPutBody, ) - from .group_0885 import ( + from .group_0901 import ( OrgsOrgOrganizationRolesPostBody as OrgsOrgOrganizationRolesPostBody, ) - from .group_0895 import ( + from .group_0911 import ( OrgsOrgPropertiesSchemaPatchBody as OrgsOrgPropertiesSchemaPatchBody, ) - from .group_0897 import ( + from .group_0913 import ( OrgsOrgPropertiesValuesPatchBody as OrgsOrgPropertiesValuesPatchBody, ) - from .group_0922 import ( + from .group_0938 import ( ProjectsColumnsColumnIdPatchBody as ProjectsColumnsColumnIdPatchBody, ) - from .group_0932 import ( + from .group_0948 import ( ProjectsProjectIdColumnsPostBody as ProjectsProjectIdColumnsPostBody, ) - from .group_0992 import ( + from .group_1011 import ( ReposOwnerRepoCodespacesPostBody as ReposOwnerRepoCodespacesPostBody, ) - from .group_1012 import ( + from .group_1031 import ( ReposOwnerRepoDispatchesPostBody as ReposOwnerRepoDispatchesPostBody, ) - from .group_1024 import ( + from .group_1043 import ( ReposOwnerRepoGitCommitsPostBody as ReposOwnerRepoGitCommitsPostBody, ) - from .group_1035 import ( + from .group_1054 import ( ReposOwnerRepoImportLfsPatchBody as ReposOwnerRepoImportLfsPatchBody, ) - from .group_1058 import ( + from .group_1077 import ( ReposOwnerRepoMilestonesPostBody as ReposOwnerRepoMilestonesPostBody, ) - from .group_1063 import ( + from .group_1082 import ( ReposOwnerRepoPagesPutBodyAnyof0 as ReposOwnerRepoPagesPutBodyAnyof0, ) - from .group_1064 import ( + from .group_1083 import ( ReposOwnerRepoPagesPutBodyAnyof1 as ReposOwnerRepoPagesPutBodyAnyof1, ) - from .group_1065 import ( + from .group_1084 import ( ReposOwnerRepoPagesPutBodyAnyof2 as ReposOwnerRepoPagesPutBodyAnyof2, ) - from .group_1066 import ( + from .group_1085 import ( ReposOwnerRepoPagesPutBodyAnyof3 as ReposOwnerRepoPagesPutBodyAnyof3, ) - from .group_1067 import ( + from .group_1086 import ( ReposOwnerRepoPagesPutBodyAnyof4 as ReposOwnerRepoPagesPutBodyAnyof4, ) - from .group_1121 import ( + from .group_1140 import ( TeamsTeamIdReposOwnerRepoPutBody as TeamsTeamIdReposOwnerRepoPutBody, ) from .group_0025 import ( @@ -1391,133 +1402,136 @@ from .group_0046 import ( GetConsumedLicensesPropUsersItems as GetConsumedLicensesPropUsersItems, ) - from .group_0077 import ( + from .group_0080 import ( ApiOverviewPropSshKeyFingerprints as ApiOverviewPropSshKeyFingerprints, ) - from .group_0109 import ( + from .group_0111 import ( OrganizationFineGrainedPermission as OrganizationFineGrainedPermission, ) - from .group_0136 import ( + from .group_0113 import ( + TeamRoleAssignmentPropPermissions as TeamRoleAssignmentPropPermissions, + ) + from .group_0140 import ( RepositoryRuleRequiredDeployments as RepositoryRuleRequiredDeployments, ) - from .group_0160 import ( + from .group_0164 import ( RuleSuitePropRuleEvaluationsItems as RuleSuitePropRuleEvaluationsItems, ) - from .group_0184 import ( + from .group_0188 import ( ActionsWorkflowAccessToRepository as ActionsWorkflowAccessToRepository, ) - from .group_0209 import ( + from .group_0213 import ( ProtectedBranchPropAllowDeletions as ProtectedBranchPropAllowDeletions, ) - from .group_0209 import ( + from .group_0213 import ( ProtectedBranchPropBlockCreations as ProtectedBranchPropBlockCreations, ) - from .group_0253 import ( + from .group_0257 import ( FileCommitPropCommitPropCommitter as FileCommitPropCommitPropCommitter, ) - from .group_0269 import ( + from .group_0273 import ( DeploymentBranchPolicyNamePattern as DeploymentBranchPolicyNamePattern, ) - from .group_0288 import ( + from .group_0292 import ( MilestonedIssueEventPropMilestone as MilestonedIssueEventPropMilestone, ) - from .group_0305 import ( + from .group_0309 import ( PullRequestReviewCommentPropLinks as PullRequestReviewCommentPropLinks, ) - from .group_0355 import ( + from .group_0359 import ( ContributorActivityPropWeeksItems as ContributorActivityPropWeeksItems, ) - from .group_0369 import ( + from .group_0373 import ( ScimEnterpriseGroupResponseAllof1 as ScimEnterpriseGroupResponseAllof1, ) - from .group_0405 import ( + from .group_0409 import ( RepositoryWebhooksPropPermissions as RepositoryWebhooksPropPermissions, ) - from .group_0409 import ( + from .group_0413 import ( ExemptionRequestPushRulesetBypass as ExemptionRequestPushRulesetBypass, ) - from .group_0423 import ( + from .group_0427 import ( WebhooksIssueCommentPropReactions as WebhooksIssueCommentPropReactions, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropAutoMerge as WebhooksPullRequest5PropAutoMerge, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropMilestone as WebhooksPullRequest5PropMilestone, ) - from .group_0452 import ( + from .group_0457 import ( WebhooksSponsorshipPropMaintainer as WebhooksSponsorshipPropMaintainer, ) - from .group_0459 import ( + from .group_0464 import ( WebhookBranchProtectionRuleEdited as WebhookBranchProtectionRuleEdited, ) - from .group_0468 import ( + from .group_0473 import ( WebhookCheckRunCreatedFormEncoded as WebhookCheckRunCreatedFormEncoded, ) - from .group_0602 import ( + from .group_0607 import ( WebhookMarketplacePurchaseChanged as WebhookMarketplacePurchaseChanged, ) - from .group_0617 import ( + from .group_0622 import ( WebhookMilestoneEditedPropChanges as WebhookMilestoneEditedPropChanges, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissed as WebhookPullRequestReviewDismissed, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmitted as WebhookPullRequestReviewSubmitted, ) - from .group_0716 import ( + from .group_0724 import ( WebhookRepositoryAdvisoryReported as WebhookRepositoryAdvisoryReported, ) - from .group_0740 import ( + from .group_0748 import ( WebhookSecretScanningAlertCreated as WebhookSecretScanningAlertCreated, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropCommitPropAuthor as WebhookStatusPropCommitPropAuthor, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropCommitPropCommit as WebhookStatusPropCommitPropCommit, ) - from .group_0772 import ( + from .group_0780 import ( WebhookWorkflowDispatchPropInputs as WebhookWorkflowDispatchPropInputs, ) - from .group_0790 import ( + from .group_0798 import ( ApplicationsClientIdTokenPostBody as ApplicationsClientIdTokenPostBody, ) - from .group_0878 import ( + from .group_0894 import ( OrgsOrgHooksHookIdConfigPatchBody as OrgsOrgHooksHookIdConfigPatchBody, ) - from .group_0883 import ( + from .group_0899 import ( OrgsOrgMembershipsUsernamePutBody as OrgsOrgMembershipsUsernamePutBody, ) - from .group_0930 import ( + from .group_0946 import ( ProjectsProjectIdPatchResponse403 as ProjectsProjectIdPatchResponse403, ) - from .group_0983 import ( + from .group_1002 import ( ReposOwnerRepoCheckSuitesPostBody as ReposOwnerRepoCheckSuitesPostBody, ) - from .group_1003 import ( + from .group_1022 import ( ReposOwnerRepoContentsPathPutBody as ReposOwnerRepoContentsPathPutBody, ) - from .group_1009 import ( + from .group_1028 import ( ReposOwnerRepoDeploymentsPostBody as ReposOwnerRepoDeploymentsPostBody, ) - from .group_1026 import ( + from .group_1045 import ( ReposOwnerRepoGitRefsRefPatchBody as ReposOwnerRepoGitRefsRefPatchBody, ) - from .group_1055 import ( + from .group_1074 import ( ReposOwnerRepoLabelsNamePatchBody as ReposOwnerRepoLabelsNamePatchBody, ) - from .group_1069 import ( + from .group_1088 import ( ReposOwnerRepoPagesPostBodyAnyof0 as ReposOwnerRepoPagesPostBodyAnyof0, ) - from .group_1070 import ( + from .group_1089 import ( ReposOwnerRepoPagesPostBodyAnyof1 as ReposOwnerRepoPagesPostBodyAnyof1, ) - from .group_1102 import ( + from .group_1121 import ( ReposOwnerRepoStatusesShaPostBody as ReposOwnerRepoStatusesShaPostBody, ) - from .group_1103 import ( + from .group_1122 import ( ReposOwnerRepoSubscriptionPutBody as ReposOwnerRepoSubscriptionPutBody, ) from .group_0002 import ( @@ -1538,286 +1552,292 @@ from .group_0045 import ( EnterpriseSecurityAnalysisSettings as EnterpriseSecurityAnalysisSettings, ) - from .group_0119 import ( + from .group_0123 import ( FullRepositoryPropCustomProperties as FullRepositoryPropCustomProperties, ) - from .group_0134 import ( + from .group_0138 import ( RepositoryRuleUpdatePropParameters as RepositoryRuleUpdatePropParameters, ) - from .group_0140 import ( + from .group_0144 import ( RepositoryRuleRequiredStatusChecks as RepositoryRuleRequiredStatusChecks, ) - from .group_0142 import ( + from .group_0146 import ( RepositoryRuleCommitMessagePattern as RepositoryRuleCommitMessagePattern, ) - from .group_0158 import ( + from .group_0162 import ( RepositoryRulesetPropLinksPropHtml as RepositoryRulesetPropLinksPropHtml, ) - from .group_0158 import ( + from .group_0162 import ( RepositoryRulesetPropLinksPropSelf as RepositoryRulesetPropLinksPropSelf, ) - from .group_0162 import ( + from .group_0166 import ( RepositoryAdvisoryPropCreditsItems as RepositoryAdvisoryPropCreditsItems, ) - from .group_0185 import ( + from .group_0189 import ( PullRequestMinimalPropBasePropRepo as PullRequestMinimalPropBasePropRepo, ) - from .group_0185 import ( + from .group_0189 import ( PullRequestMinimalPropHeadPropRepo as PullRequestMinimalPropHeadPropRepo, ) - from .group_0194 import ( + from .group_0198 import ( WorkflowUsagePropBillablePropMacos as WorkflowUsagePropBillablePropMacos, ) - from .group_0201 import ( + from .group_0205 import ( BranchProtectionPropAllowDeletions as BranchProtectionPropAllowDeletions, ) - from .group_0201 import ( + from .group_0205 import ( BranchProtectionPropBlockCreations as BranchProtectionPropBlockCreations, ) - from .group_0201 import ( + from .group_0205 import ( ProtectedBranchRequiredStatusCheck as ProtectedBranchRequiredStatusCheck, ) - from .group_0326 import ( + from .group_0330 import ( PullRequestReviewPropLinksPropHtml as PullRequestReviewPropLinksPropHtml, ) - from .group_0414 import ( + from .group_0418 import ( WebhooksReviewersItemsPropReviewer as WebhooksReviewersItemsPropReviewer, ) - from .group_0445 import ( + from .group_0450 import ( WebhooksReviewCommentPropReactions as WebhooksReviewCommentPropReactions, ) - from .group_0452 import ( + from .group_0457 import ( WebhooksSponsorshipPropSponsorable as WebhooksSponsorshipPropSponsorable, ) - from .group_0457 import ( + from .group_0462 import ( WebhookBranchProtectionRuleCreated as WebhookBranchProtectionRuleCreated, ) - from .group_0458 import ( + from .group_0463 import ( WebhookBranchProtectionRuleDeleted as WebhookBranchProtectionRuleDeleted, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCustomPropertyValuesUpdated as WebhookCustomPropertyValuesUpdated, ) - from .group_0490 import ( + from .group_0495 import ( WebhookDependabotAlertAutoReopened as WebhookDependabotAlertAutoReopened, ) - from .group_0494 import ( + from .group_0499 import ( WebhookDependabotAlertReintroduced as WebhookDependabotAlertReintroduced, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDiscussionEditedPropChanges as WebhookDiscussionEditedPropChanges, ) - from .group_0524 import ( + from .group_0529 import ( WebhookForkPropForkeeMergedLicense as WebhookForkPropForkeeMergedLicense, ) - from .group_0562 import ( + from .group_0567 import ( WebhookIssueCommentEditedPropIssue as WebhookIssueCommentEditedPropIssue, ) - from .group_0575 import ( + from .group_0580 import ( WebhookIssuesClosedPropIssueAllof0 as WebhookIssuesClosedPropIssueAllof0, ) - from .group_0581 import ( + from .group_0586 import ( WebhookIssuesClosedPropIssueAllof1 as WebhookIssuesClosedPropIssueAllof1, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssue as WebhookIssuesDemilestonedPropIssue, ) - from .group_0610 import ( + from .group_0615 import ( WebhookMembershipRemovedPropSender as WebhookMembershipRemovedPropSender, ) - from .group_0628 import ( + from .group_0633 import ( WebhookPackagePublishedPropPackage as WebhookPackagePublishedPropPackage, ) - from .group_0633 import ( + from .group_0638 import ( WebhookPageBuildPropBuildPropError as WebhookPageBuildPropBuildPropError, ) - from .group_0645 import ( + from .group_0650 import ( WebhookProjectCardMovedPropChanges as WebhookProjectCardMovedPropChanges, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabled as WebhookPullRequestAutoMergeEnabled, ) - from .group_0674 import ( + from .group_0682 import ( WebhookPullRequestConvertedToDraft as WebhookPullRequestConvertedToDraft, ) - from .group_0701 import ( + from .group_0709 import ( WebhookPushPropRepositoryPropOwner as WebhookPushPropRepositoryPropOwner, ) - from .group_0715 import ( + from .group_0723 import ( WebhookRepositoryAdvisoryPublished as WebhookRepositoryAdvisoryPublished, ) - from .group_0721 import ( + from .group_0729 import ( WebhookRepositoryEditedPropChanges as WebhookRepositoryEditedPropChanges, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationIssueComment as SecretScanningLocationIssueComment, ) - from .group_0743 import ( + from .group_0751 import ( WebhookSecretScanningAlertReopened as WebhookSecretScanningAlertReopened, ) - from .group_0744 import ( + from .group_0752 import ( WebhookSecretScanningAlertResolved as WebhookSecretScanningAlertResolved, ) - from .group_0792 import ( + from .group_0800 import ( ApplicationsClientIdTokenPatchBody as ApplicationsClientIdTokenPatchBody, ) - from .group_0819 import ( + from .group_0828 import ( GistsGistIdGetResponse403PropBlock as GistsGistIdGetResponse403PropBlock, ) - from .group_0836 import ( + from .group_0845 import ( OrgsOrgActionsRunnerGroupsPostBody as OrgsOrgActionsRunnerGroupsPostBody, ) - from .group_0879 import ( + from .group_0895 import ( OrgsOrgInstallationsGetResponse200 as OrgsOrgInstallationsGetResponse200, ) - from .group_0928 import ( + from .group_0944 import ( ProjectsProjectIdDeleteResponse403 as ProjectsProjectIdDeleteResponse403, ) - from .group_1030 import ( + from .group_0976 import ( + ReposOwnerRepoAttestationsPostBody as ReposOwnerRepoAttestationsPostBody, + ) + from .group_1049 import ( ReposOwnerRepoHooksHookIdPatchBody as ReposOwnerRepoHooksHookIdPatchBody, ) - from .group_1060 import ( + from .group_1079 import ( ReposOwnerRepoNotificationsPutBody as ReposOwnerRepoNotificationsPutBody, ) from .group_0011 import ( HookDeliveryPropResponsePropHeaders as HookDeliveryPropResponsePropHeaders, ) - from .group_0113 import ( + from .group_0117 import ( OrganizationProgrammaticAccessGrant as OrganizationProgrammaticAccessGrant, ) - from .group_0132 import ( + from .group_0136 import ( RepositoryRuleOneof14PropParameters as RepositoryRuleOneof14PropParameters, ) - from .group_0132 import ( + from .group_0136 import ( RepositoryRuleOneof16PropParameters as RepositoryRuleOneof16PropParameters, ) - from .group_0135 import ( + from .group_0139 import ( RepositoryRuleOneof15PropParameters as RepositoryRuleOneof15PropParameters, ) - from .group_0135 import ( + from .group_0139 import ( RepositoryRuleRequiredLinearHistory as RepositoryRuleRequiredLinearHistory, ) - from .group_0146 import ( + from .group_0150 import ( RepositoryRuleCommitterEmailPattern as RepositoryRuleCommitterEmailPattern, ) - from .group_0157 import ( + from .group_0161 import ( RepositoryRuleOneof17PropParameters as RepositoryRuleOneof17PropParameters, ) - from .group_0191 import ( + from .group_0195 import ( PendingDeploymentPropReviewersItems as PendingDeploymentPropReviewersItems, ) - from .group_0194 import ( + from .group_0198 import ( WorkflowUsagePropBillablePropUbuntu as WorkflowUsagePropBillablePropUbuntu, ) - from .group_0209 import ( + from .group_0213 import ( ProtectedBranchPropAllowForcePushes as ProtectedBranchPropAllowForcePushes, ) - from .group_0209 import ( + from .group_0213 import ( ProtectedBranchPropAllowForkSyncing as ProtectedBranchPropAllowForkSyncing, ) - from .group_0216 import ( + from .group_0220 import ( CheckSuitePreferencePropPreferences as CheckSuitePreferencePropPreferences, ) - from .group_0227 import ( + from .group_0231 import ( CodeScanningVariantAnalysisRepoTask as CodeScanningVariantAnalysisRepoTask, ) - from .group_0289 import ( + from .group_0293 import ( DemilestonedIssueEventPropMilestone as DemilestonedIssueEventPropMilestone, ) - from .group_0303 import ( + from .group_0307 import ( TimelineCommittedEventPropCommitter as TimelineCommittedEventPropCommitter, ) - from .group_0386 import ( + from .group_0390 import ( RepoSearchResultItemPropPermissions as RepoSearchResultItemPropPermissions, ) - from .group_0429 import ( + from .group_0433 import ( WebhooksMarketplacePurchasePropPlan as WebhooksMarketplacePurchasePropPlan, ) - from .group_0430 import ( + from .group_0434 import ( WebhooksPreviousMarketplacePurchase as WebhooksPreviousMarketplacePurchase, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLabelsItems as WebhooksPullRequest5PropLabelsItems, ) - from .group_0466 import ( + from .group_0471 import ( WebhookCheckRunCompletedFormEncoded as WebhookCheckRunCompletedFormEncoded, ) - from .group_0489 import ( + from .group_0494 import ( WebhookDependabotAlertAutoDismissed as WebhookDependabotAlertAutoDismissed, ) - from .group_0540 import ( + from .group_0545 import ( WebhookIssueCommentCreatedPropIssue as WebhookIssueCommentCreatedPropIssue, ) - from .group_0551 import ( + from .group_0556 import ( WebhookIssueCommentDeletedPropIssue as WebhookIssueCommentDeletedPropIssue, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChanges as WebhookIssuesTransferredPropChanges, ) - from .group_0601 import ( + from .group_0606 import ( WebhookMarketplacePurchaseCancelled as WebhookMarketplacePurchaseCancelled, ) - from .group_0605 import ( + from .group_0610 import ( WebhookMarketplacePurchasePurchased as WebhookMarketplacePurchasePurchased, ) - from .group_0626 import ( + from .group_0631 import ( WebhookRubygemsMetadataPropMetadata as WebhookRubygemsMetadataPropMetadata, ) - from .group_0633 import ( + from .group_0638 import ( WebhookPageBuildPropBuildPropPusher as WebhookPageBuildPropBuildPropPusher, ) - from .group_0644 import ( + from .group_0649 import ( WebhookProjectCardEditedPropChanges as WebhookProjectCardEditedPropChanges, ) - from .group_0671 import ( + from .group_0676 import ( + WebhookProjectsV2StatusUpdateEdited as WebhookProjectsV2StatusUpdateEdited, + ) + from .group_0679 import ( WebhookPullRequestAutoMergeDisabled as WebhookPullRequestAutoMergeDisabled, ) - from .group_0677 import ( + from .group_0685 import ( WebhookPullRequestEditedPropChanges as WebhookPullRequestEditedPropChanges, ) - from .group_0701 import ( + from .group_0709 import ( WebhookPushPropHeadCommitPropAuthor as WebhookPushPropHeadCommitPropAuthor, ) - from .group_0725 import ( + from .group_0733 import ( WebhookRepositoryRenamedPropChanges as WebhookRepositoryRenamedPropChanges, ) - from .group_0745 import ( + from .group_0753 import ( WebhookSecretScanningAlertValidated as WebhookSecretScanningAlertValidated, ) - from .group_0754 import ( + from .group_0762 import ( WebhookSponsorshipEditedPropChanges as WebhookSponsorshipEditedPropChanges, ) - from .group_0756 import ( + from .group_0764 import ( WebhookSponsorshipPendingTierChange as WebhookSponsorshipPendingTierChange, ) - from .group_0789 import ( + from .group_0797 import ( ApplicationsClientIdGrantDeleteBody as ApplicationsClientIdGrantDeleteBody, ) - from .group_0791 import ( + from .group_0799 import ( ApplicationsClientIdTokenDeleteBody as ApplicationsClientIdTokenDeleteBody, ) - from .group_0842 import ( + from .group_0851 import ( OrgsOrgActionsRunnersGetResponse200 as OrgsOrgActionsRunnersGetResponse200, ) - from .group_0846 import ( + from .group_0855 import ( OrgsOrgActionsSecretsGetResponse200 as OrgsOrgActionsSecretsGetResponse200, ) - from .group_0892 import ( + from .group_0908 import ( OrgsOrgPersonalAccessTokensPostBody as OrgsOrgPersonalAccessTokensPostBody, ) - from .group_0917 import ( + from .group_0933 import ( ProjectsColumnsCardsCardIdPatchBody as ProjectsColumnsCardsCardIdPatchBody, ) - from .group_1056 import ( + from .group_1075 import ( ReposOwnerRepoMergeUpstreamPostBody as ReposOwnerRepoMergeUpstreamPostBody, ) - from .group_1108 import ( + from .group_1127 import ( ScimV2OrganizationsOrgUsersPostBody as ScimV2OrganizationsOrgUsersPostBody, ) - from .group_1119 import ( + from .group_1138 import ( TeamsTeamIdProjectsProjectIdPutBody as TeamsTeamIdProjectsProjectIdPutBody, ) - from .group_1127 import ( + from .group_1146 import ( UserCodespacesSecretsGetResponse200 as UserCodespacesSecretsGetResponse200, ) from .group_0031 import ( @@ -1829,814 +1849,835 @@ from .group_0042 import ( CodeScanningAlertInstancePropMessage as CodeScanningAlertInstancePropMessage, ) - from .group_0049 import ( + from .group_0052 import ( DependabotAlertSecurityVulnerability as DependabotAlertSecurityVulnerability, ) - from .group_0056 import ( + from .group_0059 import ( AdvancedSecurityActiveCommittersUser as AdvancedSecurityActiveCommittersUser, ) - from .group_0111 import ( + from .group_0115 import ( PackageVersionPropMetadataPropDocker as PackageVersionPropMetadataPropDocker, ) - from .group_0156 import ( + from .group_0160 import ( RepositoryRuleParamsCodeScanningTool as RepositoryRuleParamsCodeScanningTool, ) - from .group_0194 import ( + from .group_0198 import ( WorkflowUsagePropBillablePropWindows as WorkflowUsagePropBillablePropWindows, ) - from .group_0200 import ( + from .group_0204 import ( BranchRestrictionPolicyPropAppsItems as BranchRestrictionPolicyPropAppsItems, ) - from .group_0201 import ( + from .group_0205 import ( BranchProtectionPropAllowForcePushes as BranchProtectionPropAllowForcePushes, ) - from .group_0201 import ( + from .group_0205 import ( BranchProtectionPropAllowForkSyncing as BranchProtectionPropAllowForkSyncing, ) - from .group_0248 import ( + from .group_0252 import ( ContentTreePropEntriesItemsPropLinks as ContentTreePropEntriesItemsPropLinks, ) - from .group_0253 import ( + from .group_0257 import ( FileCommitPropCommitPropParentsItems as FileCommitPropCommitPropParentsItems, ) - from .group_0253 import ( + from .group_0257 import ( FileCommitPropCommitPropVerification as FileCommitPropCommitPropVerification, ) - from .group_0320 import ( + from .group_0324 import ( PullRequestPropHeadPropRepoPropOwner as PullRequestPropHeadPropRepoPropOwner, ) - from .group_0322 import ( + from .group_0326 import ( PullRequestPropBasePropRepoPropOwner as PullRequestPropBasePropRepoPropOwner, ) - from .group_0384 import ( + from .group_0388 import ( IssueSearchResultItemPropLabelsItems as IssueSearchResultItemPropLabelsItems, ) - from .group_0384 import ( + from .group_0388 import ( IssueSearchResultItemPropPullRequest as IssueSearchResultItemPropPullRequest, ) - from .group_0440 import ( + from .group_0444 import ( WebhooksProjectChangesPropArchivedAt as WebhooksProjectChangesPropArchivedAt, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropBasePropRepo as WebhooksPullRequest5PropBasePropRepo, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropBasePropUser as WebhooksPullRequest5PropBasePropUser, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropHeadPropRepo as WebhooksPullRequest5PropHeadPropRepo, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropHeadPropUser as WebhooksPullRequest5PropHeadPropUser, ) - from .group_0477 import ( + from .group_0482 import ( WebhookCodeScanningAlertClosedByUser as WebhookCodeScanningAlertClosedByUser, ) - from .group_0525 import ( + from .group_0530 import ( WebhookForkPropForkeeAllof0PropOwner as WebhookForkPropForkeeAllof0PropOwner, ) - from .group_0527 import ( + from .group_0532 import ( WebhookForkPropForkeeAllof1PropOwner as WebhookForkPropForkeeAllof1PropOwner, ) - from .group_0528 import ( + from .group_0533 import ( WebhookGithubAppAuthorizationRevoked as WebhookGithubAppAuthorizationRevoked, ) - from .group_0533 import ( + from .group_0538 import ( WebhookInstallationRepositoriesAdded as WebhookInstallationRepositoriesAdded, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropUser as WebhookIssuesEditedPropIssuePropUser, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropUser as WebhookIssuesLockedPropIssuePropUser, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropUser as WebhookIssuesOpenedPropIssuePropUser, ) - from .group_0613 import ( + from .group_0618 import ( WebhookMetaDeletedPropHookPropConfig as WebhookMetaDeletedPropHookPropConfig, ) - from .group_0701 import ( + from .group_0674 import ( + WebhookProjectsV2StatusUpdateCreated as WebhookProjectsV2StatusUpdateCreated, + ) + from .group_0675 import ( + WebhookProjectsV2StatusUpdateDeleted as WebhookProjectsV2StatusUpdateDeleted, + ) + from .group_0709 import ( WebhookPushPropRepositoryPropLicense as WebhookPushPropRepositoryPropLicense, ) - from .group_0711 import ( + from .group_0719 import ( WebhookReleasePrereleasedPropRelease as WebhookReleasePrereleasedPropRelease, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationDiscussionBody as SecretScanningLocationDiscussionBody, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropCommitPropCommitter as WebhookStatusPropCommitPropCommitter, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropChangesPropName as WebhookTeamEditedPropChangesPropName, ) - from .group_0852 import ( + from .group_0861 import ( OrgsOrgActionsVariablesNamePatchBody as OrgsOrgActionsVariablesNamePatchBody, ) - from .group_0926 import ( + from .group_0942 import ( ProjectsColumnsColumnIdMovesPostBody as ProjectsColumnsColumnIdMovesPostBody, ) - from .group_1004 import ( + from .group_1023 import ( ReposOwnerRepoContentsPathDeleteBody as ReposOwnerRepoContentsPathDeleteBody, ) - from .group_1104 import ( + from .group_1123 import ( ReposOwnerRepoTagsProtectionPostBody as ReposOwnerRepoTagsProtectionPostBody, ) - from .group_1131 import ( + from .group_1150 import ( UserCodespacesCodespaceNamePatchBody as UserCodespacesCodespaceNamePatchBody, ) from .group_0025 import ( ServerStatisticsItemsPropDormantUsers as ServerStatisticsItemsPropDormantUsers, ) - from .group_0047 import ( + from .group_0050 import ( CopilotUsageMetricsPropBreakdownItems as CopilotUsageMetricsPropBreakdownItems, ) - from .group_0057 import ( + from .group_0060 import ( GetAllCostCentersPropCostCentersItems as GetAllCostCentersPropCostCentersItems, ) - from .group_0060 import ( + from .group_0063 import ( BillingUsageReportPropUsageItemsItems as BillingUsageReportPropUsageItemsItems, ) - from .group_0078 import ( + from .group_0081 import ( SecurityAndAnalysisPropSecretScanning as SecurityAndAnalysisPropSecretScanning, ) - from .group_0152 import ( + from .group_0092 import ( + CodeSecurityConfigurationRepositories as CodeSecurityConfigurationRepositories, + ) + from .group_0156 import ( RepositoryRuleParamsRestrictedCommits as RepositoryRuleParamsRestrictedCommits, ) - from .group_0154 import ( + from .group_0158 import ( RepositoryRuleWorkflowsPropParameters as RepositoryRuleWorkflowsPropParameters, ) - from .group_0193 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropMacos as WorkflowRunUsagePropBillablePropMacos, ) - from .group_0200 import ( + from .group_0204 import ( BranchRestrictionPolicyPropTeamsItems as BranchRestrictionPolicyPropTeamsItems, ) - from .group_0200 import ( + from .group_0204 import ( BranchRestrictionPolicyPropUsersItems as BranchRestrictionPolicyPropUsersItems, ) - from .group_0209 import ( + from .group_0213 import ( ProtectedBranchPropRequiredSignatures as ProtectedBranchPropRequiredSignatures, ) - from .group_0222 import ( + from .group_0226 import ( CodeScanningVariantAnalysisRepository as CodeScanningVariantAnalysisRepository, ) - from .group_0387 import ( + from .group_0391 import ( TopicSearchResultItemPropAliasesItems as TopicSearchResultItemPropAliasesItems, ) - from .group_0387 import ( + from .group_0391 import ( TopicSearchResultItemPropRelatedItems as TopicSearchResultItemPropRelatedItems, ) - from .group_0394 import ( + from .group_0398 import ( GpgKeyPropSubkeysItemsPropEmailsItems as GpgKeyPropSubkeysItemsPropEmailsItems, ) - from .group_0425 import ( + from .group_0429 import ( WebhooksIssuePropMilestonePropCreator as WebhooksIssuePropMilestonePropCreator, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLinksPropHtml as WebhooksPullRequest5PropLinksPropHtml, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLinksPropSelf as WebhooksPullRequest5PropLinksPropSelf, ) - from .group_0451 import ( + from .group_0456 import ( WebhooksSecurityAdvisoryPropCwesItems as WebhooksSecurityAdvisoryPropCwesItems, ) - from .group_0472 import ( + from .group_0477 import ( WebhookCheckRunRerequestedFormEncoded as WebhookCheckRunRerequestedFormEncoded, ) - from .group_0539 import ( + from .group_0544 import ( WebhookIssueCommentCreatedPropComment as WebhookIssueCommentCreatedPropComment, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropUser as WebhookIssuesDeletedPropIssuePropUser, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropUser as WebhookIssuesLabeledPropIssuePropUser, ) - from .group_0600 import ( + from .group_0605 import ( WebhookLabelEditedPropChangesPropName as WebhookLabelEditedPropChangesPropName, ) - from .group_0625 import ( + from .group_0630 import ( WebhookOrganizationRenamedPropChanges as WebhookOrganizationRenamedPropChanges, ) - from .group_0651 import ( + from .group_0656 import ( WebhookProjectColumnEditedPropChanges as WebhookProjectColumnEditedPropChanges, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEdited as WebhookPullRequestReviewCommentEdited, ) - from .group_0701 import ( + from .group_0709 import ( WebhookPushPropCommitsItemsPropAuthor as WebhookPushPropCommitsItemsPropAuthor, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationDiscussionTitle as SecretScanningLocationDiscussionTitle, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationPullRequestBody as SecretScanningLocationPullRequestBody, ) - from .group_0750 import ( + from .group_0758 import ( WebhookSecurityAndAnalysisPropChanges as WebhookSecurityAndAnalysisPropChanges, ) - from .group_0755 import ( + from .group_0763 import ( WebhookSponsorshipPendingCancellation as WebhookSponsorshipPendingCancellation, ) - from .group_0822 import ( + from .group_0831 import ( GistsGistIdCommentsCommentIdPatchBody as GistsGistIdCommentsCommentIdPatchBody, ) - from .group_0850 import ( + from .group_0859 import ( OrgsOrgActionsVariablesGetResponse200 as OrgsOrgActionsVariablesGetResponse200, ) - from .group_0877 import ( + from .group_0893 import ( OrgsOrgHooksHookIdPatchBodyPropConfig as OrgsOrgHooksHookIdPatchBodyPropConfig, ) - from .group_0978 import ( + from .group_0997 import ( ReposOwnerRepoCheckRunsPostBodyOneof0 as ReposOwnerRepoCheckRunsPostBodyOneof0, ) - from .group_0979 import ( + from .group_0998 import ( ReposOwnerRepoCheckRunsPostBodyOneof1 as ReposOwnerRepoCheckRunsPostBodyOneof1, ) - from .group_1029 import ( + from .group_1048 import ( ReposOwnerRepoHooksPostBodyPropConfig as ReposOwnerRepoHooksPostBodyPropConfig, ) - from .group_1068 import ( + from .group_1087 import ( ReposOwnerRepoPagesPostBodyPropSource as ReposOwnerRepoPagesPostBodyPropSource, ) - from .group_1118 import ( + from .group_1137 import ( TeamsTeamIdMembershipsUsernamePutBody as TeamsTeamIdMembershipsUsernamePutBody, ) from .group_0025 import ( ServerStatisticsItemsPropGithubConnect as ServerStatisticsItemsPropGithubConnect, ) - from .group_0110 import ( + from .group_0091 import ( + CodeSecurityDefaultConfigurationsItems as CodeSecurityDefaultConfigurationsItems, + ) + from .group_0112 import ( OrgsOrgOrganizationRolesGetResponse200 as OrgsOrgOrganizationRolesGetResponse200, ) - from .group_0122 import ( + from .group_0126 import ( RepositoryRulesetConditionsPropRefName as RepositoryRulesetConditionsPropRefName, ) - from .group_0144 import ( + from .group_0148 import ( RepositoryRuleCommitAuthorEmailPattern as RepositoryRuleCommitAuthorEmailPattern, ) - from .group_0162 import ( + from .group_0166 import ( RepositoryAdvisoryPropIdentifiersItems as RepositoryAdvisoryPropIdentifiersItems, ) - from .group_0178 import ( + from .group_0182 import ( ActionsCacheListPropActionsCachesItems as ActionsCacheListPropActionsCachesItems, ) - from .group_0193 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropUbuntu as WorkflowRunUsagePropBillablePropUbuntu, ) - from .group_0201 import ( + from .group_0205 import ( BranchProtectionPropRequiredSignatures as BranchProtectionPropRequiredSignatures, ) - from .group_0230 import ( + from .group_0234 import ( CodeScanningDefaultSetupUpdateResponse as CodeScanningDefaultSetupUpdateResponse, ) - from .group_0302 import ( + from .group_0306 import ( TimelineCrossReferencedEventPropSource as TimelineCrossReferencedEventPropSource, ) - from .group_0303 import ( + from .group_0307 import ( TimelineCommittedEventPropParentsItems as TimelineCommittedEventPropParentsItems, ) - from .group_0303 import ( + from .group_0307 import ( TimelineCommittedEventPropVerification as TimelineCommittedEventPropVerification, ) - from .group_0304 import ( + from .group_0308 import ( TimelineReviewedEventPropLinksPropHtml as TimelineReviewedEventPropLinksPropHtml, ) - from .group_0320 import ( + from .group_0324 import ( PullRequestPropHeadPropRepoPropLicense as PullRequestPropHeadPropRepoPropLicense, ) - from .group_0382 import ( + from .group_0386 import ( CommitSearchResultItemPropParentsItems as CommitSearchResultItemPropParentsItems, ) - from .group_0405 import ( + from .group_0409 import ( RepositoryWebhooksPropCustomProperties as RepositoryWebhooksPropCustomProperties, ) - from .group_0409 import ( + from .group_0413 import ( ExemptionRequestSecretScanningMetadata as ExemptionRequestSecretScanningMetadata, ) - from .group_0411 import ( + from .group_0415 import ( CheckRunWithSimpleCheckSuitePropOutput as CheckRunWithSimpleCheckSuitePropOutput, ) - from .group_0425 import ( + from .group_0429 import ( WebhooksIssuePropPerformedViaGithubApp as WebhooksIssuePropPerformedViaGithubApp, ) - from .group_0427 import ( + from .group_0431 import ( WebhooksIssue2PropMilestonePropCreator as WebhooksIssue2PropMilestonePropCreator, ) - from .group_0429 import ( + from .group_0433 import ( WebhooksMarketplacePurchasePropAccount as WebhooksMarketplacePurchasePropAccount, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropAssigneesItems as WebhooksPullRequest5PropAssigneesItems, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLinksPropIssue as WebhooksPullRequest5PropLinksPropIssue, ) - from .group_0445 import ( + from .group_0450 import ( WebhooksReviewCommentPropLinksPropHtml as WebhooksReviewCommentPropLinksPropHtml, ) - from .group_0445 import ( + from .group_0450 import ( WebhooksReviewCommentPropLinksPropSelf as WebhooksReviewCommentPropLinksPropSelf, ) - from .group_0446 import ( + from .group_0451 import ( WebhooksReviewPropLinksPropPullRequest as WebhooksReviewPropLinksPropPullRequest, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCodeScanningAlertFixedPropAlert as WebhookCodeScanningAlertFixedPropAlert, ) - from .group_0481 import ( + from .group_0486 import ( WebhookCodeScanningAlertReopenedByUser as WebhookCodeScanningAlertReopenedByUser, ) - from .group_0482 import ( + from .group_0487 import ( WebhookCommitCommentCreatedPropComment as WebhookCommitCommentCreatedPropComment, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropDeployment as WebhookDeploymentCreatedPropDeployment, ) - from .group_0525 import ( + from .group_0530 import ( WebhookForkPropForkeeAllof0PropLicense as WebhookForkPropForkeeAllof0PropLicense, ) - from .group_0527 import ( + from .group_0532 import ( WebhookForkPropForkeeAllof1PropLicense as WebhookForkPropForkeeAllof1PropLicense, ) - from .group_0534 import ( + from .group_0539 import ( WebhookInstallationRepositoriesRemoved as WebhookInstallationRepositoriesRemoved, ) - from .group_0574 import ( + from .group_0579 import ( WebhookIssuesClosedPropIssueMergedUser as WebhookIssuesClosedPropIssueMergedUser, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropChangesPropBody as WebhookIssuesEditedPropChangesPropBody, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropUser as WebhookIssuesReopenedPropIssuePropUser, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropUser as WebhookIssuesUnlockedPropIssuePropUser, ) - from .group_0600 import ( + from .group_0605 import ( WebhookLabelEditedPropChangesPropColor as WebhookLabelEditedPropChangesPropColor, ) - from .group_0626 import ( + from .group_0631 import ( WebhookRubygemsMetadataPropVersionInfo as WebhookRubygemsMetadataPropVersionInfo, ) - from .group_0641 import ( + from .group_0646 import ( WebhookProjectCardConvertedPropChanges as WebhookProjectCardConvertedPropChanges, ) - from .group_0645 import ( + from .group_0650 import ( WebhookProjectCardMovedPropProjectCard as WebhookProjectCardMovedPropProjectCard, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreated as WebhookPullRequestReviewCommentCreated, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeleted as WebhookPullRequestReviewCommentDeleted, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolved as WebhookPullRequestReviewThreadResolved, ) - from .group_0701 import ( + from .group_0709 import ( WebhookPushPropHeadCommitPropCommitter as WebhookPushPropHeadCommitPropCommitter, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationPullRequestTitle as SecretScanningLocationPullRequestTitle, ) - from .group_0824 import ( + from .group_0833 import ( InstallationRepositoriesGetResponse200 as InstallationRepositoriesGetResponse200, ) - from .group_0847 import ( + from .group_0856 import ( OrgsOrgActionsSecretsSecretNamePutBody as OrgsOrgActionsSecretsSecretNamePutBody, ) - from .group_0859 import ( + from .group_0874 import ( OrgsOrgCodespacesSecretsGetResponse200 as OrgsOrgCodespacesSecretsGetResponse200, ) - from .group_0872 import ( + from .group_0888 import ( OrgsOrgDependabotSecretsGetResponse200 as OrgsOrgDependabotSecretsGetResponse200, ) - from .group_0955 import ( + from .group_0971 import ( ReposOwnerRepoActionsVariablesPostBody as ReposOwnerRepoActionsVariablesPostBody, ) - from .group_0991 import ( + from .group_1010 import ( ReposOwnerRepoCodespacesGetResponse200 as ReposOwnerRepoCodespacesGetResponse200, ) - from .group_1071 import ( + from .group_1090 import ( ReposOwnerRepoPagesDeploymentsPostBody as ReposOwnerRepoPagesDeploymentsPostBody, ) - from .group_1078 import ( + from .group_1097 import ( ReposOwnerRepoPullsPullNumberPatchBody as ReposOwnerRepoPullsPullNumberPatchBody, ) - from .group_1100 import ( + from .group_1119 import ( ReposOwnerRepoRulesetsRulesetIdPutBody as ReposOwnerRepoRulesetsRulesetIdPutBody, ) - from .group_1128 import ( + from .group_1147 import ( UserCodespacesSecretsSecretNamePutBody as UserCodespacesSecretsSecretNamePutBody, ) - from .group_0050 import ( + from .group_0053 import ( DependabotAlertSecurityAdvisoryPropCvss as DependabotAlertSecurityAdvisoryPropCvss, ) - from .group_0078 import ( + from .group_0081 import ( SecurityAndAnalysisPropAdvancedSecurity as SecurityAndAnalysisPropAdvancedSecurity, ) - from .group_0111 import ( + from .group_0115 import ( PackageVersionPropMetadataPropContainer as PackageVersionPropMetadataPropContainer, ) - from .group_0139 import ( + from .group_0143 import ( RepositoryRulePullRequestPropParameters as RepositoryRulePullRequestPropParameters, ) - from .group_0193 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropWindows as WorkflowRunUsagePropBillablePropWindows, ) - from .group_0295 import ( + from .group_0299 import ( AddedToProjectIssueEventPropProjectCard as AddedToProjectIssueEventPropProjectCard, ) - from .group_0427 import ( + from .group_0431 import ( WebhooksIssue2PropPerformedViaGithubApp as WebhooksIssue2PropPerformedViaGithubApp, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRun as WebhookDeploymentCreatedPropWorkflowRun, ) - from .group_0518 import ( + from .group_0523 import ( WebhookDiscussionTransferredPropChanges as WebhookDiscussionTransferredPropChanges, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropChangesPropTitle as WebhookIssuesEditedPropChangesPropTitle, ) - from .group_0603 import ( + from .group_0608 import ( WebhookMarketplacePurchasePendingChange as WebhookMarketplacePurchasePendingChange, ) - from .group_0637 import ( + from .group_0642 import ( WebhookPersonalAccessTokenRequestDenied as WebhookPersonalAccessTokenRequestDenied, ) - from .group_0655 import ( + from .group_0660 import ( WebhookProjectEditedPropChangesPropBody as WebhookProjectEditedPropChangesPropBody, ) - from .group_0655 import ( + from .group_0660 import ( WebhookProjectEditedPropChangesPropName as WebhookProjectEditedPropChangesPropName, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequest as WebhookPullRequestLockedPropPullRequest, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0 as WebhookPullRequestReviewRequestedOneof0, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1 as WebhookPullRequestReviewRequestedOneof1, ) - from .group_0710 import ( + from .group_0718 import ( WebhookReleaseEditedPropChangesPropBody as WebhookReleaseEditedPropChangesPropBody, ) - from .group_0710 import ( + from .group_0718 import ( WebhookReleaseEditedPropChangesPropName as WebhookReleaseEditedPropChangesPropName, ) - from .group_0734 import ( + from .group_0742 import ( WebhookRepositoryTransferredPropChanges as WebhookRepositoryTransferredPropChanges, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationDiscussionComment as SecretScanningLocationDiscussionComment, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationPullRequestReview as SecretScanningLocationPullRequestReview, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropCommitPropParentsItems as WebhookStatusPropCommitPropParentsItems, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropChangesPropPrivacy as WebhookTeamEditedPropChangesPropPrivacy, ) - from .group_0779 import ( + from .group_0787 import ( WebhookWorkflowJobQueuedPropWorkflowJob as WebhookWorkflowJobQueuedPropWorkflowJob, ) - from .group_0793 import ( + from .group_0801 import ( ApplicationsClientIdTokenScopedPostBody as ApplicationsClientIdTokenScopedPostBody, ) - from .group_0886 import ( + from .group_0902 import ( OrgsOrgOrganizationRolesRoleIdPatchBody as OrgsOrgOrganizationRolesRoleIdPatchBody, ) - from .group_0903 import ( + from .group_0919 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsPostBody, ) - from .group_0918 import ( + from .group_0934 import ( ProjectsColumnsCardsCardIdMovesPostBody as ProjectsColumnsCardsCardIdMovesPostBody, ) - from .group_0940 import ( + from .group_0956 import ( ReposOwnerRepoActionsPermissionsPutBody as ReposOwnerRepoActionsPermissionsPutBody, ) - from .group_0945 import ( + from .group_0961 import ( ReposOwnerRepoActionsRunsGetResponse200 as ReposOwnerRepoActionsRunsGetResponse200, ) - from .group_1027 import ( + from .group_1046 import ( ReposOwnerRepoGitTagsPostBodyPropTagger as ReposOwnerRepoGitTagsPostBodyPropTagger, ) - from .group_1074 import ( + from .group_1093 import ( ReposOwnerRepoPropertiesValuesPatchBody as ReposOwnerRepoPropertiesValuesPatchBody, ) - from .group_0094 import ( - OrgsOrgCopilotBillingSeatsGetResponse200 as OrgsOrgCopilotBillingSeatsGetResponse200, + from .group_1168 import ( + SigstoreBundle0PropVerificationMaterial as SigstoreBundle0PropVerificationMaterial, ) - from .group_0156 import ( + from .group_0160 import ( RepositoryRuleCodeScanningPropParameters as RepositoryRuleCodeScanningPropParameters, ) - from .group_0209 import ( + from .group_0213 import ( ProtectedBranchPropRequiredLinearHistory as ProtectedBranchPropRequiredLinearHistory, ) - from .group_0265 import ( + from .group_0269 import ( ReposOwnerRepoEnvironmentsGetResponse200 as ReposOwnerRepoEnvironmentsGetResponse200, ) - from .group_0350 import ( + from .group_0354 import ( RepositoryAdvisoryCreatePropCreditsItems as RepositoryAdvisoryCreatePropCreditsItems, ) - from .group_0352 import ( + from .group_0356 import ( RepositoryAdvisoryUpdatePropCreditsItems as RepositoryAdvisoryUpdatePropCreditsItems, ) - from .group_0368 import ( + from .group_0372 import ( ScimEnterpriseGroupResponseMergedMembers as ScimEnterpriseGroupResponseMergedMembers, ) - from .group_0383 import ( + from .group_0387 import ( CommitSearchResultItemPropCommitPropTree as CommitSearchResultItemPropCommitPropTree, ) - from .group_0392 import ( + from .group_0396 import ( CodespaceWithFullRepositoryPropGitStatus as CodespaceWithFullRepositoryPropGitStatus, ) - from .group_0405 import ( + from .group_0409 import ( RepositoryWebhooksPropTemplateRepository as RepositoryWebhooksPropTemplateRepository, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLinksPropCommits as WebhooksPullRequest5PropLinksPropCommits, ) - from .group_0463 import ( + from .group_0468 import ( WebhookExemptionRequestResponseDismissed as WebhookExemptionRequestResponseDismissed, ) - from .group_0464 import ( + from .group_0469 import ( WebhookExemptionRequestResponseSubmitted as WebhookExemptionRequestResponseSubmitted, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuite as WebhookCheckSuiteCompletedPropCheckSuite, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuite as WebhookCheckSuiteRequestedPropCheckSuite, ) - from .group_0476 import ( + from .group_0481 import ( WebhookCodeScanningAlertAppearedInBranch as WebhookCodeScanningAlertAppearedInBranch, ) - from .group_0478 import ( + from .group_0483 import ( WebhookCodeScanningAlertCreatedPropAlert as WebhookCodeScanningAlertCreatedPropAlert, ) - from .group_0499 import ( + from .group_0504 import ( WebhookDeploymentProtectionRuleRequested as WebhookDeploymentProtectionRuleRequested, ) - from .group_0563 import ( + from .group_0568 import ( WebhookIssueCommentEditedPropIssueAllof0 as WebhookIssueCommentEditedPropIssueAllof0, ) - from .group_0569 import ( + from .group_0574 import ( WebhookIssueCommentEditedPropIssueAllof1 as WebhookIssueCommentEditedPropIssueAllof1, ) - from .group_0574 import ( + from .group_0579 import ( WebhookIssuesClosedPropIssueMergedLabels as WebhookIssuesClosedPropIssueMergedLabels, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropAssignee as WebhookIssuesEditedPropIssuePropAssignee, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropAssignee as WebhookIssuesLockedPropIssuePropAssignee, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropUser as WebhookIssuesMilestonedPropIssuePropUser, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropAssignee as WebhookIssuesOpenedPropIssuePropAssignee, ) - from .group_0636 import ( + from .group_0641 import ( WebhookPersonalAccessTokenRequestCreated as WebhookPersonalAccessTokenRequestCreated, ) - from .group_0643 import ( + from .group_0648 import ( WebhookProjectCardDeletedPropProjectCard as WebhookProjectCardDeletedPropProjectCard, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequest as WebhookPullRequestLabeledPropPullRequest, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolved as WebhookPullRequestReviewThreadUnresolved, ) - from .group_0701 import ( + from .group_0709 import ( WebhookPushPropCommitsItemsPropCommitter as WebhookPushPropCommitsItemsPropCommitter, ) - from .group_0701 import ( + from .group_0709 import ( WebhookPushPropRepositoryPropPermissions as WebhookPushPropRepositoryPropPermissions, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationPullRequestComment as SecretScanningLocationPullRequestComment, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropBranchesItemsPropCommit as WebhookStatusPropBranchesItemsPropCommit, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropRepositoryPropOwner as WebhookTeamEditedPropRepositoryPropOwner, ) - from .group_0780 import ( + from .group_0788 import ( WebhookWorkflowJobWaitingPropWorkflowJob as WebhookWorkflowJobWaitingPropWorkflowJob, ) - from .group_0835 import ( + from .group_0844 import ( OrgsOrgActionsRunnerGroupsGetResponse200 as OrgsOrgActionsRunnerGroupsGetResponse200, ) - from .group_0893 import ( + from .group_0878 import ( + OrgsOrgCopilotBillingSeatsGetResponse200 as OrgsOrgCopilotBillingSeatsGetResponse200, + ) + from .group_0909 import ( OrgsOrgPersonalAccessTokensPatIdPostBody as OrgsOrgPersonalAccessTokensPatIdPostBody, ) - from .group_0898 import ( + from .group_0914 import ( OrgsOrgReposPostBodyPropCustomProperties as OrgsOrgReposPostBodyPropCustomProperties, ) - from .group_0915 import ( + from .group_0931 import ( OrgsOrgSecurityProductEnablementPostBody as OrgsOrgSecurityProductEnablementPostBody, ) - from .group_0990 import ( + from .group_1009 import ( ReposOwnerRepoCodeScanningSarifsPostBody as ReposOwnerRepoCodeScanningSarifsPostBody, ) - from .group_0999 import ( + from .group_1018 import ( ReposOwnerRepoCommentsCommentIdPatchBody as ReposOwnerRepoCommentsCommentIdPatchBody, ) - from .group_1010 import ( + from .group_1029 import ( ReposOwnerRepoDeploymentsPostResponse202 as ReposOwnerRepoDeploymentsPostResponse202, ) - from .group_1031 import ( + from .group_1050 import ( ReposOwnerRepoHooksHookIdConfigPatchBody as ReposOwnerRepoHooksHookIdConfigPatchBody, ) - from .group_1041 import ( + from .group_1060 import ( ReposOwnerRepoIssuesIssueNumberPatchBody as ReposOwnerRepoIssuesIssueNumberPatchBody, ) - from .group_1097 import ( + from .group_1116 import ( ReposOwnerRepoReleasesReleaseIdPatchBody as ReposOwnerRepoReleasesReleaseIdPatchBody, ) from .group_0025 import ( ServerStatisticsItemsPropGheStatsPropOrgs as ServerStatisticsItemsPropGheStatsPropOrgs, ) - from .group_0154 import ( + from .group_0158 import ( RepositoryRuleParamsWorkflowFileReference as RepositoryRuleParamsWorkflowFileReference, ) - from .group_0188 import ( + from .group_0192 import ( EnvironmentApprovalsPropEnvironmentsItems as EnvironmentApprovalsPropEnvironmentsItems, ) - from .group_0201 import ( + from .group_0205 import ( BranchProtectionPropRequiredLinearHistory as BranchProtectionPropRequiredLinearHistory, ) - from .group_0234 import ( + from .group_0238 import ( CodespacesPermissionsCheckForDevcontainer as CodespacesPermissionsCheckForDevcontainer, ) - from .group_0265 import ( + from .group_0269 import ( EnvironmentPropProtectionRulesItemsAnyof0 as EnvironmentPropProtectionRulesItemsAnyof0, ) - from .group_0265 import ( + from .group_0269 import ( EnvironmentPropProtectionRulesItemsAnyof2 as EnvironmentPropProtectionRulesItemsAnyof2, ) - from .group_0266 import ( + from .group_0270 import ( EnvironmentPropProtectionRulesItemsAnyof1 as EnvironmentPropProtectionRulesItemsAnyof1, ) - from .group_0268 import ( + from .group_0272 import ( DeploymentBranchPolicyNamePatternWithType as DeploymentBranchPolicyNamePatternWithType, ) - from .group_0305 import ( + from .group_0309 import ( PullRequestReviewCommentPropLinksPropHtml as PullRequestReviewCommentPropLinksPropHtml, ) - from .group_0305 import ( + from .group_0309 import ( PullRequestReviewCommentPropLinksPropSelf as PullRequestReviewCommentPropLinksPropSelf, ) - from .group_0326 import ( + from .group_0330 import ( PullRequestReviewPropLinksPropPullRequest as PullRequestReviewPropLinksPropPullRequest, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLinksPropComments as WebhooksPullRequest5PropLinksPropComments, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLinksPropStatuses as WebhooksPullRequest5PropLinksPropStatuses, ) - from .group_0470 import ( + from .group_0475 import ( WebhookCheckRunRequestedActionFormEncoded as WebhookCheckRunRequestedActionFormEncoded, ) - from .group_0480 import ( + from .group_0485 import ( WebhookCodeScanningAlertReopenedPropAlert as WebhookCodeScanningAlertReopenedPropAlert, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDiscussionCommentEditedPropChanges as WebhookDiscussionCommentEditedPropChanges, ) - from .group_0532 import ( + from .group_0537 import ( WebhookInstallationNewPermissionsAccepted as WebhookInstallationNewPermissionsAccepted, ) - from .group_0541 import ( + from .group_0546 import ( WebhookIssueCommentCreatedPropIssueAllof0 as WebhookIssueCommentCreatedPropIssueAllof0, ) - from .group_0547 import ( + from .group_0552 import ( WebhookIssueCommentCreatedPropIssueAllof1 as WebhookIssueCommentCreatedPropIssueAllof1, ) - from .group_0552 import ( + from .group_0557 import ( WebhookIssueCommentDeletedPropIssueAllof0 as WebhookIssueCommentDeletedPropIssueAllof0, ) - from .group_0558 import ( + from .group_0563 import ( WebhookIssueCommentDeletedPropIssueAllof1 as WebhookIssueCommentDeletedPropIssueAllof1, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropAssignee as WebhookIssuesDeletedPropIssuePropAssignee, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropMilestone as WebhookIssuesEditedPropIssuePropMilestone, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropReactions as WebhookIssuesEditedPropIssuePropReactions, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropAssignee as WebhookIssuesLabeledPropIssuePropAssignee, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropMilestone as WebhookIssuesLockedPropIssuePropMilestone, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropReactions as WebhookIssuesLockedPropIssuePropReactions, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropMilestone as WebhookIssuesOpenedPropIssuePropMilestone, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropReactions as WebhookIssuesOpenedPropIssuePropReactions, ) - from .group_0606 import ( + from .group_0611 import ( WebhookMemberAddedPropChangesPropRoleName as WebhookMemberAddedPropChangesPropRoleName, ) - from .group_0631 import ( + from .group_0636 import ( WebhookPackageUpdatedPropPackagePropOwner as WebhookPackageUpdatedPropPackagePropOwner, ) - from .group_0634 import ( + from .group_0639 import ( WebhookPersonalAccessTokenRequestApproved as WebhookPersonalAccessTokenRequestApproved, ) - from .group_0660 import ( + from .group_0665 import ( WebhookProjectsV2ProjectEditedPropChanges as WebhookProjectsV2ProjectEditedPropChanges, ) - from .group_0662 import ( + from .group_0667 import ( WebhookProjectsV2ItemConvertedPropChanges as WebhookProjectsV2ItemConvertedPropChanges, ) - from .group_0666 import ( + from .group_0671 import ( WebhookProjectsV2ItemReorderedPropChanges as WebhookProjectsV2ItemReorderedPropChanges, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequest as WebhookPullRequestAssignedPropPullRequest, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequest as WebhookPullRequestDequeuedPropPullRequest, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequest as WebhookPullRequestEnqueuedPropPullRequest, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropChanges as WebhookPullRequestReviewEditedPropChanges, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequest as WebhookPullRequestUnlockedPropPullRequest, ) - from .group_0729 import ( + from .group_0737 import ( WebhookRepositoryRulesetEditedPropChanges as WebhookRepositoryRulesetEditedPropChanges, ) - from .group_0736 import ( + from .group_0744 import ( WebhookRepositoryVulnerabilityAlertCreate as WebhookRepositoryVulnerabilityAlertCreate, ) - from .group_0738 import ( + from .group_0746 import ( WebhookRepositoryVulnerabilityAlertReopen as WebhookRepositoryVulnerabilityAlertReopen, ) - from .group_0741 import ( + from .group_0749 import ( WebhookSecretScanningAlertLocationCreated as WebhookSecretScanningAlertLocationCreated, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropCommitPropCommitPropTree as WebhookStatusPropCommitPropCommitPropTree, ) - from .group_0767 import ( + from .group_0775 import ( WebhookTeamCreatedPropRepositoryPropOwner as WebhookTeamCreatedPropRepositoryPropOwner, ) - from .group_0768 import ( + from .group_0776 import ( WebhookTeamDeletedPropRepositoryPropOwner as WebhookTeamDeletedPropRepositoryPropOwner, ) - from .group_0860 import ( + from .group_0865 import ( + OrgsOrgCodeSecurityConfigurationsPostBody as OrgsOrgCodeSecurityConfigurationsPostBody, + ) + from .group_0875 import ( OrgsOrgCodespacesSecretsSecretNamePutBody as OrgsOrgCodespacesSecretsSecretNamePutBody, ) - from .group_0873 import ( + from .group_0889 import ( OrgsOrgDependabotSecretsSecretNamePutBody as OrgsOrgDependabotSecretsSecretNamePutBody, ) - from .group_0913 import ( + from .group_0929 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody, ) from .group_0977 import ( + ReposOwnerRepoAttestationsPostResponse201 as ReposOwnerRepoAttestationsPostResponse201, + ) + from .group_0996 import ( ReposOwnerRepoCheckRunsPostBodyPropOutput as ReposOwnerRepoCheckRunsPostBodyPropOutput, ) - from .group_0995 import ( + from .group_1014 import ( ReposOwnerRepoCodespacesNewGetResponse200 as ReposOwnerRepoCodespacesNewGetResponse200, ) - from .group_1061 import ( + from .group_1080 import ( ReposOwnerRepoNotificationsPutResponse202 as ReposOwnerRepoNotificationsPutResponse202, ) - from .group_1082 import ( + from .group_1101 import ( ReposOwnerRepoPullsPullNumberMergePutBody as ReposOwnerRepoPullsPullNumberMergePutBody, ) - from .group_1122 import ( + from .group_1141 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBody as TeamsTeamIdTeamSyncGroupMappingsPatchBody, ) - from .group_1140 import ( + from .group_1159 import ( UserInteractionLimitsGetResponse200Anyof1 as UserInteractionLimitsGetResponse200Anyof1, ) from .group_0025 import ( @@ -2660,172 +2701,172 @@ from .group_0027 import ( ActionsOidcCustomIssuerPolicyForEnterprise as ActionsOidcCustomIssuerPolicyForEnterprise, ) - from .group_0056 import ( + from .group_0059 import ( AdvancedSecurityActiveCommittersRepository as AdvancedSecurityActiveCommittersRepository, ) - from .group_0076 import ( + from .group_0079 import ( MarketplacePurchasePropMarketplacePurchase as MarketplacePurchasePropMarketplacePurchase, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrantRequest as OrganizationProgrammaticAccessGrantRequest, ) - from .group_0151 import ( + from .group_0155 import ( RepositoryRuleTagNamePatternPropParameters as RepositoryRuleTagNamePatternPropParameters, ) - from .group_0162 import ( + from .group_0166 import ( RepositoryAdvisoryVulnerabilityPropPackage as RepositoryAdvisoryVulnerabilityPropPackage, ) - from .group_0320 import ( + from .group_0324 import ( PullRequestPropHeadPropRepoPropPermissions as PullRequestPropHeadPropRepoPropPermissions, ) - from .group_0322 import ( + from .group_0326 import ( PullRequestPropBasePropRepoPropPermissions as PullRequestPropBasePropRepoPropPermissions, ) - from .group_0379 import ( + from .group_0383 import ( ScimUserPropOperationsItemsPropValueOneof1 as ScimUserPropOperationsItemsPropValueOneof1, ) - from .group_0383 import ( + from .group_0387 import ( CommitSearchResultItemPropCommitPropAuthor as CommitSearchResultItemPropCommitPropAuthor, ) - from .group_0447 import ( + from .group_0452 import ( WebhooksReleasePropAssetsItemsPropUploader as WebhooksReleasePropAssetsItemsPropUploader, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuite as WebhookCheckSuiteRerequestedPropCheckSuite, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCustomPropertyDeletedPropDefinition as WebhookCustomPropertyDeletedPropDefinition, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropCheckRun as WebhookDeploymentStatusCreatedPropCheckRun, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDiscussionEditedPropChangesPropBody as WebhookDiscussionEditedPropChangesPropBody, ) - from .group_0526 import ( + from .group_0531 import ( WebhookForkPropForkeeAllof0PropPermissions as WebhookForkPropForkeeAllof0PropPermissions, ) - from .group_0574 import ( + from .group_0579 import ( WebhookIssuesClosedPropIssueMergedAssignee as WebhookIssuesClosedPropIssueMergedAssignee, ) - from .group_0575 import ( + from .group_0580 import ( WebhookIssuesClosedPropIssueAllof0PropUser as WebhookIssuesClosedPropIssueAllof0PropUser, ) - from .group_0581 import ( + from .group_0586 import ( WebhookIssuesClosedPropIssueAllof1PropUser as WebhookIssuesClosedPropIssueAllof1PropUser, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropMilestone as WebhookIssuesDeletedPropIssuePropMilestone, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropReactions as WebhookIssuesDeletedPropIssuePropReactions, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropUser as WebhookIssuesDemilestonedPropIssuePropUser, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropMilestone as WebhookIssuesLabeledPropIssuePropMilestone, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropReactions as WebhookIssuesLabeledPropIssuePropReactions, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssue as WebhookIssuesOpenedPropChangesPropOldIssue, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropAssignee as WebhookIssuesReopenedPropIssuePropAssignee, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropAssignee as WebhookIssuesUnlockedPropIssuePropAssignee, ) - from .group_0617 import ( + from .group_0622 import ( WebhookMilestoneEditedPropChangesPropDueOn as WebhookMilestoneEditedPropChangesPropDueOn, ) - from .group_0617 import ( + from .group_0622 import ( WebhookMilestoneEditedPropChangesPropTitle as WebhookMilestoneEditedPropChangesPropTitle, ) - from .group_0635 import ( + from .group_0640 import ( WebhookPersonalAccessTokenRequestCancelled as WebhookPersonalAccessTokenRequestCancelled, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequest as WebhookPullRequestUnlabeledPropPullRequest, ) - from .group_0737 import ( + from .group_0745 import ( WebhookRepositoryVulnerabilityAlertDismiss as WebhookRepositoryVulnerabilityAlertDismiss, ) - from .group_0739 import ( + from .group_0747 import ( WebhookRepositoryVulnerabilityAlertResolve as WebhookRepositoryVulnerabilityAlertResolve, ) - from .group_0766 import ( + from .group_0774 import ( WebhookTeamAddedToRepositoryPropRepository as WebhookTeamAddedToRepositoryPropRepository, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropChangesPropRepository as WebhookTeamEditedPropChangesPropRepository, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropRepositoryPropLicense as WebhookTeamEditedPropRepositoryPropLicense, ) - from .group_0773 import ( + from .group_0781 import ( WebhookWorkflowJobCompletedPropWorkflowJob as WebhookWorkflowJobCompletedPropWorkflowJob, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRun as WebhookWorkflowRunCompletedPropWorkflowRun, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRun as WebhookWorkflowRunRequestedPropWorkflowRun, ) - from .group_0784 import ( + from .group_0792 import ( AppManifestsCodeConversionsPostResponse201 as AppManifestsCodeConversionsPostResponse201, ) - from .group_0844 import ( + from .group_0853 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBody as OrgsOrgActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0863 import ( + from .group_0879 import ( OrgsOrgCopilotBillingSelectedTeamsPostBody as OrgsOrgCopilotBillingSelectedTeamsPostBody, ) - from .group_0867 import ( + from .group_0883 import ( OrgsOrgCopilotBillingSelectedUsersPostBody as OrgsOrgCopilotBillingSelectedUsersPostBody, ) - from .group_0871 import ( + from .group_0887 import ( OrgsOrgCustomRepositoryRolesGetResponse200 as OrgsOrgCustomRepositoryRolesGetResponse200, ) - from .group_0887 import ( + from .group_0903 import ( OrgsOrgOutsideCollaboratorsUsernamePutBody as OrgsOrgOutsideCollaboratorsUsernamePutBody, ) - from .group_0890 import ( + from .group_0906 import ( OrgsOrgPersonalAccessTokenRequestsPostBody as OrgsOrgPersonalAccessTokenRequestsPostBody, ) - from .group_0923 import ( + from .group_0939 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0 as ProjectsColumnsColumnIdCardsPostBodyOneof0, ) - from .group_0924 import ( + from .group_0940 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1 as ProjectsColumnsColumnIdCardsPostBodyOneof1, ) - from .group_0941 import ( + from .group_0957 import ( ReposOwnerRepoActionsRunnersGetResponse200 as ReposOwnerRepoActionsRunnersGetResponse200, ) - from .group_0952 import ( + from .group_0968 import ( ReposOwnerRepoActionsSecretsGetResponse200 as ReposOwnerRepoActionsSecretsGetResponse200, ) - from .group_0976 import ( + from .group_0995 import ( ReposOwnerRepoBranchesBranchRenamePostBody as ReposOwnerRepoBranchesBranchRenamePostBody, ) - from .group_0998 import ( + from .group_1017 import ( ReposOwnerRepoCollaboratorsUsernamePutBody as ReposOwnerRepoCollaboratorsUsernamePutBody, ) - from .group_1024 import ( + from .group_1043 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthor as ReposOwnerRepoGitCommitsPostBodyPropAuthor, ) - from .group_1051 import ( + from .group_1070 import ( ReposOwnerRepoIssuesIssueNumberLockPutBody as ReposOwnerRepoIssuesIssueNumberLockPutBody, ) - from .group_1062 import ( + from .group_1081 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1 as ReposOwnerRepoPagesPutBodyPropSourceAnyof1, ) - from .group_1120 import ( + from .group_1139 import ( TeamsTeamIdProjectsProjectIdPutResponse403 as TeamsTeamIdProjectsProjectIdPutResponse403, ) - from .group_1133 import ( + from .group_1152 import ( UserCodespacesCodespaceNamePublishPostBody as UserCodespacesCodespaceNamePublishPostBody, ) from .group_0025 import ( @@ -2834,5586 +2875,5700 @@ from .group_0025 import ( ServerStatisticsPackagesPropEcosystemsItems as ServerStatisticsPackagesPropEcosystemsItems, ) - from .group_0052 import ( + from .group_0055 import ( DependabotAlertWithRepositoryPropDependency as DependabotAlertWithRepositoryPropDependency, ) - from .group_0055 import ( + from .group_0058 import ( ActionsBillingUsagePropMinutesUsedBreakdown as ActionsBillingUsagePropMinutesUsedBreakdown, ) - from .group_0223 import ( + from .group_0227 import ( CodeScanningVariantAnalysisSkippedRepoGroup as CodeScanningVariantAnalysisSkippedRepoGroup, ) - from .group_0297 import ( + from .group_0301 import ( RemovedFromProjectIssueEventPropProjectCard as RemovedFromProjectIssueEventPropProjectCard, ) - from .group_0409 import ( + from .group_0413 import ( ExemptionRequestSecretScanningPropDataItems as ExemptionRequestSecretScanningPropDataItems, ) - from .group_0430 import ( + from .group_0434 import ( WebhooksPreviousMarketplacePurchasePropPlan as WebhooksPreviousMarketplacePurchasePropPlan, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropRequestedTeamsItems as WebhooksPullRequest5PropRequestedTeamsItems, ) - from .group_0448 import ( + from .group_0453 import ( WebhooksRelease1PropAssetsItemsPropUploader as WebhooksRelease1PropAssetsItemsPropUploader, ) - from .group_0451 import ( + from .group_0456 import ( WebhooksSecurityAdvisoryPropReferencesItems as WebhooksSecurityAdvisoryPropReferencesItems, ) - from .group_0456 import ( + from .group_0461 import ( WebhookBranchProtectionConfigurationEnabled as WebhookBranchProtectionConfigurationEnabled, ) - from .group_0505 import ( + from .group_0510 import ( WebhookDiscussionCategoryChangedPropChanges as WebhookDiscussionCategoryChangedPropChanges, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDiscussionEditedPropChangesPropTitle as WebhookDiscussionEditedPropChangesPropTitle, ) - from .group_0536 import ( + from .group_0541 import ( WebhookInstallationTargetRenamedPropAccount as WebhookInstallationTargetRenamedPropAccount, ) - from .group_0536 import ( + from .group_0541 import ( WebhookInstallationTargetRenamedPropChanges as WebhookInstallationTargetRenamedPropChanges, ) - from .group_0574 import ( + from .group_0579 import ( WebhookIssuesClosedPropIssueMergedAssignees as WebhookIssuesClosedPropIssueMergedAssignees, ) - from .group_0574 import ( + from .group_0579 import ( WebhookIssuesClosedPropIssueMergedReactions as WebhookIssuesClosedPropIssueMergedReactions, ) - from .group_0582 import ( + from .group_0587 import ( WebhookIssuesClosedPropIssueMergedMilestone as WebhookIssuesClosedPropIssueMergedMilestone, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropLabelsItems as WebhookIssuesEditedPropIssuePropLabelsItems, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropPullRequest as WebhookIssuesEditedPropIssuePropPullRequest, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropLabelsItems as WebhookIssuesLockedPropIssuePropLabelsItems, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropPullRequest as WebhookIssuesLockedPropIssuePropPullRequest, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropLabelsItems as WebhookIssuesOpenedPropIssuePropLabelsItems, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropPullRequest as WebhookIssuesOpenedPropIssuePropPullRequest, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropMilestone as WebhookIssuesReopenedPropIssuePropMilestone, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropReactions as WebhookIssuesReopenedPropIssuePropReactions, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropMilestone as WebhookIssuesUnlockedPropIssuePropMilestone, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropReactions as WebhookIssuesUnlockedPropIssuePropReactions, ) - from .group_0606 import ( + from .group_0611 import ( WebhookMemberAddedPropChangesPropPermission as WebhookMemberAddedPropChangesPropPermission, ) - from .group_0628 import ( + from .group_0633 import ( WebhookPackagePublishedPropPackagePropOwner as WebhookPackagePublishedPropPackagePropOwner, ) - from .group_0644 import ( + from .group_0649 import ( WebhookProjectCardEditedPropChangesPropNote as WebhookProjectCardEditedPropChangesPropNote, ) - from .group_0677 import ( + from .group_0685 import ( WebhookPullRequestEditedPropChangesPropBase as WebhookPullRequestEditedPropChangesPropBase, ) - from .group_0677 import ( + from .group_0685 import ( WebhookPullRequestEditedPropChangesPropBody as WebhookPullRequestEditedPropChangesPropBody, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropReview as WebhookPullRequestReviewDismissedPropReview, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequest as WebhookPullRequestUnassignedPropPullRequest, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropCommitPropCommitPropAuthor as WebhookStatusPropCommitPropCommitPropAuthor, ) - from .group_0767 import ( + from .group_0775 import ( WebhookTeamCreatedPropRepositoryPropLicense as WebhookTeamCreatedPropRepositoryPropLicense, ) - from .group_0768 import ( + from .group_0776 import ( WebhookTeamDeletedPropRepositoryPropLicense as WebhookTeamDeletedPropRepositoryPropLicense, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropChangesPropDescription as WebhookTeamEditedPropChangesPropDescription, ) - from .group_0776 import ( + from .group_0784 import ( WebhookWorkflowJobInProgressPropWorkflowJob as WebhookWorkflowJobInProgressPropWorkflowJob, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRun as WebhookWorkflowRunInProgressPropWorkflowRun, ) - from .group_0845 import ( + from .group_0854 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBody as OrgsOrgActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0909 import ( + from .group_0925 import ( OrgsOrgTeamsTeamSlugExternalGroupsPatchBody as OrgsOrgTeamsTeamSlugExternalGroupsPatchBody, ) - from .group_0916 import ( + from .group_0932 import ( ProjectsColumnsCardsCardIdDeleteResponse403 as ProjectsColumnsCardsCardIdDeleteResponse403, ) - from .group_0925 import ( + from .group_0941 import ( ProjectsColumnsColumnIdCardsPostResponse503 as ProjectsColumnsColumnIdCardsPostResponse503, ) - from .group_0927 import ( + from .group_0943 import ( ProjectsColumnsColumnIdMovesPostResponse201 as ProjectsColumnsColumnIdMovesPostResponse201, ) - from .group_0936 import ( + from .group_0952 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBody as ReposOwnerRepoActionsJobsJobIdRerunPostBody, ) - from .group_0950 import ( + from .group_0966 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBody as ReposOwnerRepoActionsRunsRunIdRerunPostBody, ) - from .group_0956 import ( + from .group_0972 import ( ReposOwnerRepoActionsVariablesNamePatchBody as ReposOwnerRepoActionsVariablesNamePatchBody, ) - from .group_1003 import ( + from .group_1022 import ( ReposOwnerRepoContentsPathPutBodyPropAuthor as ReposOwnerRepoContentsPathPutBodyPropAuthor, ) - from .group_1028 import ( + from .group_1047 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItems as ReposOwnerRepoGitTreesPostBodyPropTreeItems, ) - from .group_1096 import ( + from .group_1115 import ( ReposOwnerRepoReleasesGenerateNotesPostBody as ReposOwnerRepoReleasesGenerateNotesPostBody, ) - from .group_1108 import ( + from .group_1127 import ( ScimV2OrganizationsOrgUsersPostBodyPropName as ScimV2OrganizationsOrgUsersPostBodyPropName, ) - from .group_1126 import ( + from .group_1145 import ( UserCodespacesPostBodyOneof1PropPullRequest as UserCodespacesPostBodyOneof1PropPullRequest, ) - from .group_0050 import ( + from .group_0053 import ( DependabotAlertSecurityAdvisoryPropCwesItems as DependabotAlertSecurityAdvisoryPropCwesItems, ) - from .group_0053 import ( + from .group_0056 import ( GetLicenseSyncStatusPropServerInstancesItems as GetLicenseSyncStatusPropServerInstancesItems, ) - from .group_0096 import ( + from .group_0098 import ( OrganizationCustomRepositoryRoleCreateSchema as OrganizationCustomRepositoryRoleCreateSchema, ) - from .group_0097 import ( + from .group_0099 import ( OrganizationCustomRepositoryRoleUpdateSchema as OrganizationCustomRepositoryRoleUpdateSchema, ) - from .group_0141 import ( + from .group_0145 import ( RepositoryRuleParamsStatusCheckConfiguration as RepositoryRuleParamsStatusCheckConfiguration, ) - from .group_0293 import ( + from .group_0297 import ( ReviewDismissedIssueEventPropDismissedReview as ReviewDismissedIssueEventPropDismissedReview, ) - from .group_0380 import ( + from .group_0384 import ( SearchResultTextMatchesItemsPropMatchesItems as SearchResultTextMatchesItemsPropMatchesItems, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropMilestonePropCreator as WebhooksPullRequest5PropMilestonePropCreator, ) - from .group_0451 import ( + from .group_0456 import ( WebhooksSecurityAdvisoryPropIdentifiersItems as WebhooksSecurityAdvisoryPropIdentifiersItems, ) - from .group_0455 import ( + from .group_0460 import ( WebhookBranchProtectionConfigurationDisabled as WebhookBranchProtectionConfigurationDisabled, ) - from .group_0459 import ( + from .group_0464 import ( WebhookBranchProtectionRuleEditedPropChanges as WebhookBranchProtectionRuleEditedPropChanges, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeployment as WebhookDeploymentStatusCreatedPropDeployment, ) - from .group_0562 import ( + from .group_0567 import ( WebhookIssueCommentEditedPropIssueMergedUser as WebhookIssueCommentEditedPropIssueMergedUser, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropLabelsItems as WebhookIssuesDeletedPropIssuePropLabelsItems, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropPullRequest as WebhookIssuesDeletedPropIssuePropPullRequest, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropLabelsItems as WebhookIssuesLabeledPropIssuePropLabelsItems, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropPullRequest as WebhookIssuesLabeledPropIssuePropPullRequest, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropAssignee as WebhookIssuesMilestonedPropIssuePropAssignee, ) - from .group_0600 import ( + from .group_0605 import ( WebhookLabelEditedPropChangesPropDescription as WebhookLabelEditedPropChangesPropDescription, ) - from .group_0607 import ( + from .group_0612 import ( WebhookMemberEditedPropChangesPropPermission as WebhookMemberEditedPropChangesPropPermission, ) - from .group_0626 import ( + from .group_0631 import ( WebhookRubygemsMetadataPropDependenciesItems as WebhookRubygemsMetadataPropDependenciesItems, ) - from .group_0631 import ( + from .group_0636 import ( WebhookPackageUpdatedPropPackagePropRegistry as WebhookPackageUpdatedPropPackagePropRegistry, ) - from .group_0646 import ( + from .group_0651 import ( WebhookProjectCardMovedPropProjectCardAllof0 as WebhookProjectCardMovedPropProjectCardAllof0, ) - from .group_0647 import ( + from .group_0652 import ( WebhookProjectCardMovedPropProjectCardAllof1 as WebhookProjectCardMovedPropProjectCardAllof1, ) - from .group_0665 import ( + from .group_0670 import ( WebhookProjectsV2ItemEditedPropChangesOneof0 as WebhookProjectsV2ItemEditedPropChangesOneof0, ) - from .group_0665 import ( + from .group_0670 import ( WebhookProjectsV2ItemEditedPropChangesOneof1 as WebhookProjectsV2ItemEditedPropChangesOneof1, ) - from .group_0677 import ( + from .group_0685 import ( WebhookPullRequestEditedPropChangesPropTitle as WebhookPullRequestEditedPropChangesPropTitle, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0 as WebhookPullRequestReviewRequestRemovedOneof0, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1 as WebhookPullRequestReviewRequestRemovedOneof1, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequest as WebhookPullRequestSynchronizePropPullRequest, ) - from .group_0721 import ( + from .group_0729 import ( WebhookRepositoryEditedPropChangesPropTopics as WebhookRepositoryEditedPropChangesPropTopics, ) - from .group_0834 import ( + from .group_0843 import ( OrgsOrgActionsPermissionsRepositoriesPutBody as OrgsOrgActionsPermissionsRepositoriesPutBody, ) - from .group_0857 import ( + from .group_0872 import ( OrgsOrgCodespacesAccessSelectedUsersPostBody as OrgsOrgCodespacesAccessSelectedUsersPostBody, ) - from .group_0865 import ( + from .group_0881 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBody as OrgsOrgCopilotBillingSelectedTeamsDeleteBody, ) - from .group_0869 import ( + from .group_0885 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBody as OrgsOrgCopilotBillingSelectedUsersDeleteBody, ) - from .group_0880 import ( + from .group_0896 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1 as OrgsOrgInteractionLimitsGetResponse200Anyof1, ) - from .group_0911 import ( + from .group_0927 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody, ) - from .group_0935 import ( + from .group_0951 import ( ReposOwnerRepoActionsArtifactsGetResponse200 as ReposOwnerRepoActionsArtifactsGetResponse200, ) - from .group_0954 import ( + from .group_0970 import ( ReposOwnerRepoActionsVariablesGetResponse200 as ReposOwnerRepoActionsVariablesGetResponse200, ) - from .group_0957 import ( + from .group_0973 import ( ReposOwnerRepoActionsWorkflowsGetResponse200 as ReposOwnerRepoActionsWorkflowsGetResponse200, ) - from .group_1034 import ( + from .group_0976 import ( + ReposOwnerRepoAttestationsPostBodyPropBundle as ReposOwnerRepoAttestationsPostBodyPropBundle, + ) + from .group_1053 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBody as ReposOwnerRepoImportAuthorsAuthorIdPatchBody, ) - from .group_1088 import ( + from .group_1107 import ( ReposOwnerRepoPullsPullNumberReviewsPostBody as ReposOwnerRepoPullsPullNumberReviewsPostBody, ) - from .group_1095 import ( + from .group_1114 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBody as ReposOwnerRepoReleasesAssetsAssetIdPatchBody, ) - from .group_1109 import ( + from .group_1128 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBody as ScimV2OrganizationsOrgUsersScimUserIdPutBody, ) from .group_0025 import ( ServerStatisticsItemsPropGheStatsPropComments as ServerStatisticsItemsPropGheStatsPropComments, ) - from .group_0125 import ( + from .group_0129 import ( RepositoryRulesetConditionsRepositoryIdTarget as RepositoryRulesetConditionsRepositoryIdTarget, ) - from .group_0149 import ( + from .group_0153 import ( RepositoryRuleBranchNamePatternPropParameters as RepositoryRuleBranchNamePatternPropParameters, ) - from .group_0200 import ( + from .group_0204 import ( BranchRestrictionPolicyPropAppsItemsPropOwner as BranchRestrictionPolicyPropAppsItemsPropOwner, ) - from .group_0210 import ( + from .group_0214 import ( ProtectedBranchPropRequiredPullRequestReviews as ProtectedBranchPropRequiredPullRequestReviews, ) - from .group_0296 import ( + from .group_0300 import ( MovedColumnInProjectIssueEventPropProjectCard as MovedColumnInProjectIssueEventPropProjectCard, ) - from .group_0298 import ( + from .group_0302 import ( ConvertedNoteToIssueIssueEventPropProjectCard as ConvertedNoteToIssueIssueEventPropProjectCard, ) - from .group_0304 import ( + from .group_0308 import ( TimelineReviewedEventPropLinksPropPullRequest as TimelineReviewedEventPropLinksPropPullRequest, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropBasePropRepoPropOwner as WebhooksPullRequest5PropBasePropRepoPropOwner, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropHeadPropRepoPropOwner as WebhooksPullRequest5PropHeadPropRepoPropOwner, ) - from .group_0445 import ( + from .group_0450 import ( WebhooksReviewCommentPropLinksPropPullRequest as WebhooksReviewCommentPropLinksPropPullRequest, ) - from .group_0477 import ( + from .group_0482 import ( WebhookCodeScanningAlertClosedByUserPropAlert as WebhookCodeScanningAlertClosedByUserPropAlert, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRun as WebhookDeploymentStatusCreatedPropWorkflowRun, ) - from .group_0539 import ( + from .group_0544 import ( WebhookIssueCommentCreatedPropCommentPropUser as WebhookIssueCommentCreatedPropCommentPropUser, ) - from .group_0540 import ( + from .group_0545 import ( WebhookIssueCommentCreatedPropIssueMergedUser as WebhookIssueCommentCreatedPropIssueMergedUser, ) - from .group_0551 import ( + from .group_0556 import ( WebhookIssueCommentDeletedPropIssueMergedUser as WebhookIssueCommentDeletedPropIssueMergedUser, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropMilestone as WebhookIssuesMilestonedPropIssuePropMilestone, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropReactions as WebhookIssuesMilestonedPropIssuePropReactions, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropLabelsItems as WebhookIssuesReopenedPropIssuePropLabelsItems, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropPullRequest as WebhookIssuesReopenedPropIssuePropPullRequest, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropLabelsItems as WebhookIssuesUnlockedPropIssuePropLabelsItems, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropPullRequest as WebhookIssuesUnlockedPropIssuePropPullRequest, ) - from .group_0651 import ( + from .group_0656 import ( WebhookProjectColumnEditedPropChangesPropName as WebhookProjectColumnEditedPropChangesPropName, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequest as WebhookPullRequestReviewEditedPropPullRequest, ) - from .group_0701 import ( + from .group_0709 import ( WebhookPushPropRepositoryPropCustomProperties as WebhookPushPropRepositoryPropCustomProperties, ) - from .group_0710 import ( + from .group_0718 import ( WebhookReleaseEditedPropChangesPropMakeLatest as WebhookReleaseEditedPropChangesPropMakeLatest, ) - from .group_0751 import ( + from .group_0759 import ( WebhookSecurityAndAnalysisPropChangesPropFrom as WebhookSecurityAndAnalysisPropChangesPropFrom, ) - from .group_0931 import ( + from .group_0947 import ( ProjectsProjectIdCollaboratorsUsernamePutBody as ProjectsProjectIdCollaboratorsUsernamePutBody, ) - from .group_0953 import ( + from .group_0969 import ( ReposOwnerRepoActionsSecretsSecretNamePutBody as ReposOwnerRepoActionsSecretsSecretNamePutBody, ) - from .group_0961 import ( + from .group_0980 import ( ReposOwnerRepoBranchesBranchProtectionPutBody as ReposOwnerRepoBranchesBranchProtectionPutBody, ) - from .group_0984 import ( + from .group_1003 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBody as ReposOwnerRepoCheckSuitesPreferencesPatchBody, ) - from .group_0996 import ( + from .group_1015 import ( ReposOwnerRepoCodespacesSecretsGetResponse200 as ReposOwnerRepoCodespacesSecretsGetResponse200, ) - from .group_1006 import ( + from .group_1025 import ( ReposOwnerRepoDependabotSecretsGetResponse200 as ReposOwnerRepoDependabotSecretsGetResponse200, ) - from .group_1024 import ( + from .group_1043 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitter as ReposOwnerRepoGitCommitsPostBodyPropCommitter, ) - from .group_1076 import ( + from .group_1095 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBody as ReposOwnerRepoPullsCommentsCommentIdPatchBody, ) - from .group_1080 import ( + from .group_1099 import ( ReposOwnerRepoPullsPullNumberCommentsPostBody as ReposOwnerRepoPullsPullNumberCommentsPostBody, ) - from .group_0409 import ( + from .group_0413 import ( ExemptionRequestPushRulesetBypassPropDataItems as ExemptionRequestPushRulesetBypassPropDataItems, ) - from .group_0430 import ( + from .group_0434 import ( WebhooksPreviousMarketplacePurchasePropAccount as WebhooksPreviousMarketplacePurchasePropAccount, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsAdded as PersonalAccessTokenRequestPropPermissionsAdded, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropAutoMergePropEnabledBy as WebhooksPullRequest5PropAutoMergePropEnabledBy, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLinksPropReviewComment as WebhooksPullRequest5PropLinksPropReviewComment, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCodeScanningAlertFixedPropAlertPropRule as WebhookCodeScanningAlertFixedPropAlertPropRule, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCodeScanningAlertFixedPropAlertPropTool as WebhookCodeScanningAlertFixedPropAlertPropTool, ) - from .group_0482 import ( + from .group_0487 import ( WebhookCommitCommentCreatedPropCommentPropUser as WebhookCommitCommentCreatedPropCommentPropUser, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRun as WebhookDeploymentReviewApprovedPropWorkflowRun, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRun as WebhookDeploymentReviewRejectedPropWorkflowRun, ) - from .group_0575 import ( + from .group_0580 import ( WebhookIssuesClosedPropIssueAllof0PropAssignee as WebhookIssuesClosedPropIssueAllof0PropAssignee, ) - from .group_0581 import ( + from .group_0586 import ( WebhookIssuesClosedPropIssueAllof1PropAssignee as WebhookIssuesClosedPropIssueAllof1PropAssignee, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropAssignee as WebhookIssuesDemilestonedPropIssuePropAssignee, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropAssigneesItems as WebhookIssuesEditedPropIssuePropAssigneesItems, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropAssigneesItems as WebhookIssuesLockedPropIssuePropAssigneesItems, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropAssigneesItems as WebhookIssuesOpenedPropIssuePropAssigneesItems, ) - from .group_0623 import ( + from .group_0628 import ( WebhookOrganizationMemberInvitedPropInvitation as WebhookOrganizationMemberInvitedPropInvitation, ) - from .group_0625 import ( + from .group_0630 import ( WebhookOrganizationRenamedPropChangesPropLogin as WebhookOrganizationRenamedPropChangesPropLogin, ) - from .group_0628 import ( + from .group_0633 import ( WebhookPackagePublishedPropPackagePropRegistry as WebhookPackagePublishedPropPackagePropRegistry, ) - from .group_0641 import ( + from .group_0646 import ( WebhookProjectCardConvertedPropChangesPropNote as WebhookProjectCardConvertedPropChangesPropNote, ) - from .group_0645 import ( + from .group_0650 import ( WebhookProjectCardMovedPropChangesPropColumnId as WebhookProjectCardMovedPropChangesPropColumnId, ) - from .group_0711 import ( + from .group_0676 import ( + WebhookProjectsV2StatusUpdateEditedPropChanges as WebhookProjectsV2StatusUpdateEditedPropChanges, + ) + from .group_0719 import ( WebhookReleasePrereleasedPropReleasePropAuthor as WebhookReleasePrereleasedPropReleasePropAuthor, ) - from .group_0721 import ( + from .group_0729 import ( WebhookRepositoryEditedPropChangesPropHomepage as WebhookRepositoryEditedPropChangesPropHomepage, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationPullRequestReviewComment as SecretScanningLocationPullRequestReviewComment, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropCommitPropCommitPropCommitter as WebhookStatusPropCommitPropCommitPropCommitter, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropRepositoryPropPermissions as WebhookTeamEditedPropRepositoryPropPermissions, ) - from .group_0770 import ( + from .group_0778 import ( WebhookTeamRemovedFromRepositoryPropRepository as WebhookTeamRemovedFromRepositoryPropRepository, ) - from .group_0795 import ( + from .group_0803 import ( EnterprisesEnterpriseActionsPermissionsPutBody as EnterprisesEnterpriseActionsPermissionsPutBody, ) - from .group_0843 import ( + from .group_0852 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBody as OrgsOrgActionsRunnersGenerateJitconfigPostBody, ) - from .group_0854 import ( + from .group_0863 import ( OrgsOrgActionsVariablesNameRepositoriesPutBody as OrgsOrgActionsVariablesNameRepositoriesPutBody, ) - from .group_0858 import ( + from .group_0864 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200 as OrgsOrgAttestationsSubjectDigestGetResponse200, + ) + from .group_0873 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBody as OrgsOrgCodespacesAccessSelectedUsersDeleteBody, ) - from .group_0882 import ( + from .group_0898 import ( OrgsOrgMembersUsernameCodespacesGetResponse200 as OrgsOrgMembersUsernameCodespacesGetResponse200, ) - from .group_0910 import ( + from .group_0926 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody, ) - from .group_0919 import ( + from .group_0935 import ( ProjectsColumnsCardsCardIdMovesPostResponse201 as ProjectsColumnsCardsCardIdMovesPostResponse201, ) - from .group_0920 import ( + from .group_0936 import ( ProjectsColumnsCardsCardIdMovesPostResponse403 as ProjectsColumnsCardsCardIdMovesPostResponse403, ) - from .group_0921 import ( + from .group_0937 import ( ProjectsColumnsCardsCardIdMovesPostResponse503 as ProjectsColumnsCardsCardIdMovesPostResponse503, ) - from .group_0934 import ( + from .group_0950 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysis as ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, ) - from .group_0994 import ( + from .group_1013 import ( ReposOwnerRepoCodespacesMachinesGetResponse200 as ReposOwnerRepoCodespacesMachinesGetResponse200, ) - from .group_1001 import ( + from .group_1020 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBody as ReposOwnerRepoCommitsCommitShaCommentsPostBody, ) - from .group_1003 import ( + from .group_1022 import ( ReposOwnerRepoContentsPathPutBodyPropCommitter as ReposOwnerRepoContentsPathPutBodyPropCommitter, ) - from .group_1004 import ( + from .group_1023 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthor as ReposOwnerRepoContentsPathDeleteBodyPropAuthor, ) - from .group_1037 import ( + from .group_1056 import ( ReposOwnerRepoInvitationsInvitationIdPatchBody as ReposOwnerRepoInvitationsInvitationIdPatchBody, ) - from .group_1039 import ( + from .group_1058 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBody as ReposOwnerRepoIssuesCommentsCommentIdPatchBody, ) - from .group_1107 import ( + from .group_1126 import ( ReposTemplateOwnerTemplateRepoGeneratePostBody as ReposTemplateOwnerTemplateRepoGeneratePostBody, ) - from .group_1110 import ( + from .group_1129 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBody as ScimV2OrganizationsOrgUsersScimUserIdPatchBody, ) from .group_0025 import ( ServerStatisticsItemsPropGheStatsPropMilestones as ServerStatisticsItemsPropGheStatsPropMilestones, ) - from .group_0076 import ( + from .group_0079 import ( MarketplacePurchasePropMarketplacePendingChange as MarketplacePurchasePropMarketplacePendingChange, ) - from .group_0123 import ( + from .group_0127 import ( RepositoryRulesetConditionsRepositoryNameTarget as RepositoryRulesetConditionsRepositoryNameTarget, ) - from .group_0137 import ( + from .group_0141 import ( RepositoryRuleRequiredDeploymentsPropParameters as RepositoryRuleRequiredDeploymentsPropParameters, ) - from .group_0160 import ( + from .group_0164 import ( RuleSuitePropRuleEvaluationsItemsPropRuleSource as RuleSuitePropRuleEvaluationsItemsPropRuleSource, ) - from .group_0258 import ( + from .group_0262 import ( DependencyGraphSpdxSbomPropSbomPropCreationInfo as DependencyGraphSpdxSbomPropSbomPropCreationInfo, ) - from .group_0377 import ( + from .group_0381 import ( ScimEnterpriseUserResponseAllof1PropGroupsItems as ScimEnterpriseUserResponseAllof1PropGroupsItems, ) - from .group_0425 import ( + from .group_0429 import ( WebhooksIssuePropPerformedViaGithubAppPropOwner as WebhooksIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsResult as PersonalAccessTokenRequestPropPermissionsResult, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropRepositoriesItems as PersonalAccessTokenRequestPropRepositoriesItems, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropBasePropRepoPropLicense as WebhooksPullRequest5PropBasePropRepoPropLicense, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropHeadPropRepoPropLicense as WebhooksPullRequest5PropHeadPropRepoPropLicense, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLinksPropReviewComments as WebhooksPullRequest5PropLinksPropReviewComments, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropApp as WebhookCheckSuiteCompletedPropCheckSuitePropApp, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropApp as WebhookCheckSuiteRequestedPropCheckSuitePropApp, ) - from .group_0481 import ( + from .group_0486 import ( WebhookCodeScanningAlertReopenedByUserPropAlert as WebhookCodeScanningAlertReopenedByUserPropAlert, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRun as WebhookDeploymentReviewRequestedPropWorkflowRun, ) - from .group_0575 import ( + from .group_0580 import ( WebhookIssuesClosedPropIssueAllof0PropReactions as WebhookIssuesClosedPropIssueAllof0PropReactions, ) - from .group_0577 import ( + from .group_0582 import ( WebhookIssuesClosedPropIssueAllof0PropMilestone as WebhookIssuesClosedPropIssueAllof0PropMilestone, ) - from .group_0581 import ( + from .group_0586 import ( WebhookIssuesClosedPropIssueAllof1PropMilestone as WebhookIssuesClosedPropIssueAllof1PropMilestone, ) - from .group_0581 import ( + from .group_0586 import ( WebhookIssuesClosedPropIssueAllof1PropReactions as WebhookIssuesClosedPropIssueAllof1PropReactions, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropAssigneesItems as WebhookIssuesDeletedPropIssuePropAssigneesItems, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropMilestone as WebhookIssuesDemilestonedPropIssuePropMilestone, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropReactions as WebhookIssuesDemilestonedPropIssuePropReactions, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropAssigneesItems as WebhookIssuesLabeledPropIssuePropAssigneesItems, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropLabelsItems as WebhookIssuesMilestonedPropIssuePropLabelsItems, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropPullRequest as WebhookIssuesMilestonedPropIssuePropPullRequest, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldRepository as WebhookIssuesOpenedPropChangesPropOldRepository, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssue as WebhookIssuesTransferredPropChangesPropNewIssue, ) - from .group_0607 import ( + from .group_0612 import ( WebhookMemberEditedPropChangesPropOldPermission as WebhookMemberEditedPropChangesPropOldPermission, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropBase as WebhookPullRequestLockedPropPullRequestPropBase, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropHead as WebhookPullRequestLockedPropPullRequestPropHead, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropUser as WebhookPullRequestLockedPropPullRequestPropUser, ) - from .group_0767 import ( + from .group_0775 import ( WebhookTeamCreatedPropRepositoryPropPermissions as WebhookTeamCreatedPropRepositoryPropPermissions, ) - from .group_0768 import ( + from .group_0776 import ( WebhookTeamDeletedPropRepositoryPropPermissions as WebhookTeamDeletedPropRepositoryPropPermissions, ) - from .group_0828 import ( + from .group_0837 import ( NotificationsThreadsThreadIdSubscriptionPutBody as NotificationsThreadsThreadIdSubscriptionPutBody, ) - from .group_0977 import ( + from .group_0996 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItems as ReposOwnerRepoCheckRunsPostBodyPropActionsItems, ) - from .group_1002 import ( + from .group_1021 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200 as ReposOwnerRepoCommitsRefCheckRunsGetResponse200, ) - from .group_1044 import ( + from .group_1063 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBody as ReposOwnerRepoIssuesIssueNumberCommentsPostBody, ) - from .group_1079 import ( + from .group_1098 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBody as ReposOwnerRepoPullsPullNumberCodespacesPostBody, ) - from .group_1113 import ( + from .group_1132 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberPatchBody, ) - from .group_0078 import ( + from .group_0081 import ( SecurityAndAnalysisPropDependabotSecurityUpdates as SecurityAndAnalysisPropDependabotSecurityUpdates, ) - from .group_0141 import ( + from .group_0145 import ( RepositoryRuleRequiredStatusChecksPropParameters as RepositoryRuleRequiredStatusChecksPropParameters, ) - from .group_0143 import ( + from .group_0147 import ( RepositoryRuleCommitMessagePatternPropParameters as RepositoryRuleCommitMessagePatternPropParameters, ) - from .group_0257 import ( + from .group_0261 import ( DependencyGraphDiffItemsPropVulnerabilitiesItems as DependencyGraphDiffItemsPropVulnerabilitiesItems, ) - from .group_0258 import ( + from .group_0262 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItems as DependencyGraphSpdxSbomPropSbomPropPackagesItems, ) - from .group_0305 import ( + from .group_0309 import ( PullRequestReviewCommentPropLinksPropPullRequest as PullRequestReviewCommentPropLinksPropPullRequest, ) - from .group_0350 import ( + from .group_0354 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItems as RepositoryAdvisoryCreatePropVulnerabilitiesItems, ) - from .group_0352 import ( + from .group_0356 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItems as RepositoryAdvisoryUpdatePropVulnerabilitiesItems, ) - from .group_0427 import ( + from .group_0431 import ( WebhooksIssue2PropPerformedViaGithubAppPropOwner as WebhooksIssue2PropPerformedViaGithubAppPropOwner, ) - from .group_0451 import ( + from .group_0456 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItems as WebhooksSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_0478 import ( + from .group_0483 import ( WebhookCodeScanningAlertCreatedPropAlertPropRule as WebhookCodeScanningAlertCreatedPropAlertPropRule, ) - from .group_0478 import ( + from .group_0483 import ( WebhookCodeScanningAlertCreatedPropAlertPropTool as WebhookCodeScanningAlertCreatedPropAlertPropTool, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropActor as WebhookDeploymentCreatedPropWorkflowRunPropActor, ) - from .group_0563 import ( + from .group_0568 import ( WebhookIssueCommentEditedPropIssueAllof0PropUser as WebhookIssueCommentEditedPropIssueAllof0PropUser, ) - from .group_0569 import ( + from .group_0574 import ( WebhookIssueCommentEditedPropIssueAllof1PropUser as WebhookIssueCommentEditedPropIssueAllof1PropUser, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropAssigneesItems as WebhookIssuesReopenedPropIssuePropAssigneesItems, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropAssigneesItems as WebhookIssuesUnlockedPropIssuePropAssigneesItems, ) - from .group_0604 import ( + from .group_0609 import ( WebhookMarketplacePurchasePendingChangeCancelled as WebhookMarketplacePurchasePendingChangeCancelled, ) - from .group_0617 import ( + from .group_0622 import ( WebhookMilestoneEditedPropChangesPropDescription as WebhookMilestoneEditedPropChangesPropDescription, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropBase as WebhookPullRequestLabeledPropPullRequestPropBase, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropHead as WebhookPullRequestLabeledPropPullRequestPropHead, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropUser as WebhookPullRequestLabeledPropPullRequestPropUser, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLinks as WebhookPullRequestLockedPropPullRequestPropLinks, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequest as WebhookPullRequestReviewDismissedPropPullRequest, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequest as WebhookPullRequestReviewSubmittedPropPullRequest, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropThread as WebhookPullRequestReviewThreadResolvedPropThread, ) - from .group_0706 import ( + from .group_0714 import ( WebhookRegistryPackageUpdatedPropRegistryPackage as WebhookRegistryPackageUpdatedPropRegistryPackage, ) - from .group_0720 import ( + from .group_0728 import ( WebhookRepositoryDispatchSamplePropClientPayload as WebhookRepositoryDispatchSamplePropClientPayload, ) - from .group_0734 import ( + from .group_0742 import ( WebhookRepositoryTransferredPropChangesPropOwner as WebhookRepositoryTransferredPropChangesPropOwner, ) - from .group_0774 import ( + from .group_0782 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0 as WebhookWorkflowJobCompletedPropWorkflowJobAllof0, ) - from .group_0775 import ( + from .group_0783 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1 as WebhookWorkflowJobCompletedPropWorkflowJobAllof1, ) - from .group_0785 import ( + from .group_0793 import ( AppManifestsCodeConversionsPostResponse201Allof1 as AppManifestsCodeConversionsPostResponse201Allof1, ) - from .group_0799 import ( + from .group_0807 import ( EnterprisesEnterpriseActionsRunnerGroupsPostBody as EnterprisesEnterpriseActionsRunnerGroupsPostBody, ) - from .group_0837 import ( + from .group_0846 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody, ) - from .group_0896 import ( + from .group_0912 import ( OrgsOrgPropertiesSchemaCustomPropertyNamePutBody as OrgsOrgPropertiesSchemaCustomPropertyNamePutBody, ) - from .group_0937 import ( + from .group_0953 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBody as ReposOwnerRepoActionsOidcCustomizationSubPutBody, ) - from .group_0948 import ( + from .group_0964 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200, ) - from .group_0981 import ( + from .group_1000 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0, ) - from .group_0982 import ( + from .group_1001 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1, ) - from .group_0997 import ( + from .group_1016 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBody as ReposOwnerRepoCodespacesSecretsSecretNamePutBody, ) - from .group_1000 import ( + from .group_1019 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBody as ReposOwnerRepoCommentsCommentIdReactionsPostBody, ) - from .group_1007 import ( + from .group_1026 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBody as ReposOwnerRepoDependabotSecretsSecretNamePutBody, ) - from .group_1013 import ( + from .group_1032 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNamePutBody, ) - from .group_1042 import ( + from .group_1061 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBody as ReposOwnerRepoIssuesIssueNumberAssigneesPostBody, ) - from .group_1052 import ( + from .group_1071 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBody as ReposOwnerRepoIssuesIssueNumberReactionsPostBody, ) - from .group_1059 import ( + from .group_1078 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBody as ReposOwnerRepoMilestonesMilestoneNumberPatchBody, ) - from .group_1083 import ( + from .group_1102 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405 as ReposOwnerRepoPullsPullNumberMergePutResponse405, ) - from .group_1084 import ( + from .group_1103 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409 as ReposOwnerRepoPullsPullNumberMergePutResponse409, ) - from .group_1092 import ( + from .group_1111 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBody as ReposOwnerRepoPullsPullNumberUpdateBranchPutBody, ) - from .group_1098 import ( + from .group_1117 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBody as ReposOwnerRepoReleasesReleaseIdReactionsPostBody, ) - from .group_0128 import ( + from .group_0132 import ( RepositoryRulesetConditionsRepositoryPropertySpec as RepositoryRulesetConditionsRepositoryPropertySpec, ) - from .group_0147 import ( + from .group_0151 import ( RepositoryRuleCommitterEmailPatternPropParameters as RepositoryRuleCommitterEmailPatternPropParameters, ) - from .group_0201 import ( + from .group_0205 import ( ProtectedBranchRequiredStatusCheckPropChecksItems as ProtectedBranchRequiredStatusCheckPropChecksItems, ) - from .group_0209 import ( + from .group_0213 import ( ProtectedBranchPropRequiredConversationResolution as ProtectedBranchPropRequiredConversationResolution, ) - from .group_0215 import ( + from .group_0219 import ( ReposOwnerRepoCommitsRefCheckSuitesGetResponse200 as ReposOwnerRepoCommitsRefCheckSuitesGetResponse200, ) - from .group_0369 import ( + from .group_0373 import ( ScimEnterpriseGroupResponseAllof1PropMembersItems as ScimEnterpriseGroupResponseAllof1PropMembersItems, ) - from .group_0392 import ( + from .group_0396 import ( CodespaceWithFullRepositoryPropRuntimeConstraints as CodespaceWithFullRepositoryPropRuntimeConstraints, ) - from .group_0405 import ( + from .group_0409 import ( RepositoryWebhooksPropTemplateRepositoryPropOwner as RepositoryWebhooksPropTemplateRepositoryPropOwner, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsUpgraded as PersonalAccessTokenRequestPropPermissionsUpgraded, ) - from .group_0469 import ( + from .group_0474 import ( WebhookCheckRunRequestedActionPropRequestedAction as WebhookCheckRunRequestedActionPropRequestedAction, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropApp as WebhookCheckSuiteRerequestedPropCheckSuitePropApp, ) - from .group_0476 import ( + from .group_0481 import ( WebhookCodeScanningAlertAppearedInBranchPropAlert as WebhookCodeScanningAlertAppearedInBranchPropAlert, ) - from .group_0480 import ( + from .group_0485 import ( WebhookCodeScanningAlertReopenedPropAlertPropRule as WebhookCodeScanningAlertReopenedPropAlertPropRule, ) - from .group_0480 import ( + from .group_0485 import ( WebhookCodeScanningAlertReopenedPropAlertPropTool as WebhookCodeScanningAlertReopenedPropAlertPropTool, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropDeploymentPropCreator as WebhookDeploymentCreatedPropDeploymentPropCreator, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDiscussionCommentEditedPropChangesPropBody as WebhookDiscussionCommentEditedPropChangesPropBody, ) - from .group_0541 import ( + from .group_0546 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUser as WebhookIssueCommentCreatedPropIssueAllof0PropUser, ) - from .group_0547 import ( + from .group_0552 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUser as WebhookIssueCommentCreatedPropIssueAllof1PropUser, ) - from .group_0552 import ( + from .group_0557 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUser as WebhookIssueCommentDeletedPropIssueAllof0PropUser, ) - from .group_0558 import ( + from .group_0563 import ( WebhookIssueCommentDeletedPropIssueAllof1PropUser as WebhookIssueCommentDeletedPropIssueAllof1PropUser, ) - from .group_0562 import ( + from .group_0567 import ( WebhookIssueCommentEditedPropIssueMergedAssignees as WebhookIssueCommentEditedPropIssueMergedAssignees, ) - from .group_0562 import ( + from .group_0567 import ( WebhookIssueCommentEditedPropIssueMergedReactions as WebhookIssueCommentEditedPropIssueMergedReactions, ) - from .group_0570 import ( + from .group_0575 import ( WebhookIssueCommentEditedPropIssueMergedMilestone as WebhookIssueCommentEditedPropIssueMergedMilestone, ) - from .group_0575 import ( + from .group_0580 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItems as WebhookIssuesClosedPropIssueAllof0PropLabelsItems, ) - from .group_0580 import ( + from .group_0585 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequest as WebhookIssuesClosedPropIssueAllof0PropPullRequest, ) - from .group_0581 import ( + from .group_0586 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItems as WebhookIssuesClosedPropIssueAllof1PropLabelsItems, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropLabelsItems as WebhookIssuesDemilestonedPropIssuePropLabelsItems, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropPullRequest as WebhookIssuesDemilestonedPropIssuePropPullRequest, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropBase as WebhookPullRequestAssignedPropPullRequestPropBase, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropHead as WebhookPullRequestAssignedPropPullRequestPropHead, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropUser as WebhookPullRequestAssignedPropPullRequestPropUser, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequest as WebhookPullRequestAutoMergeEnabledPropPullRequest, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropBase as WebhookPullRequestDequeuedPropPullRequestPropBase, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropHead as WebhookPullRequestDequeuedPropPullRequestPropHead, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropUser as WebhookPullRequestDequeuedPropPullRequestPropUser, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropBase as WebhookPullRequestEnqueuedPropPullRequestPropBase, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropHead as WebhookPullRequestEnqueuedPropPullRequestPropHead, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropUser as WebhookPullRequestEnqueuedPropPullRequestPropUser, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLinks as WebhookPullRequestLabeledPropPullRequestPropLinks, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropComment as WebhookPullRequestReviewCommentCreatedPropComment, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropChangesPropBody as WebhookPullRequestReviewEditedPropChangesPropBody, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropBase as WebhookPullRequestUnlockedPropPullRequestPropBase, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropHead as WebhookPullRequestUnlockedPropPullRequestPropHead, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropUser as WebhookPullRequestUnlockedPropPullRequestPropUser, ) - from .group_0711 import ( + from .group_0719 import ( WebhookReleasePrereleasedPropReleasePropReactions as WebhookReleasePrereleasedPropReleasePropReactions, ) - from .group_0721 import ( + from .group_0729 import ( WebhookRepositoryEditedPropChangesPropDescription as WebhookRepositoryEditedPropChangesPropDescription, ) - from .group_0725 import ( + from .group_0733 import ( WebhookRepositoryRenamedPropChangesPropRepository as WebhookRepositoryRenamedPropChangesPropRepository, ) - from .group_0729 import ( + from .group_0737 import ( WebhookRepositoryRulesetEditedPropChangesPropName as WebhookRepositoryRulesetEditedPropChangesPropName, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropCommitPropCommitPropVerification as WebhookStatusPropCommitPropCommitPropVerification, ) - from .group_0761 import ( + from .group_0769 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0 as WebhookStatusPropCommitPropCommitPropAuthorAllof0, ) - from .group_0762 import ( + from .group_0770 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1 as WebhookStatusPropCommitPropCommitPropAuthorAllof1, ) - from .group_0777 import ( + from .group_0785 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0 as WebhookWorkflowJobInProgressPropWorkflowJobAllof0, ) - from .group_0778 import ( + from .group_0786 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1 as WebhookWorkflowJobInProgressPropWorkflowJobAllof1, ) - from .group_0805 import ( + from .group_0813 import ( EnterprisesEnterpriseActionsRunnersGetResponse200 as EnterprisesEnterpriseActionsRunnersGetResponse200, ) - from .group_0864 import ( + from .group_0880 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201 as OrgsOrgCopilotBillingSelectedTeamsPostResponse201, ) - from .group_0868 import ( + from .group_0884 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201 as OrgsOrgCopilotBillingSelectedUsersPostResponse201, ) - from .group_0888 import ( + from .group_0904 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202 as OrgsOrgOutsideCollaboratorsUsernamePutResponse202, ) - from .group_0943 import ( + from .group_0959 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody, ) - from .group_1004 import ( + from .group_1023 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitter as ReposOwnerRepoContentsPathDeleteBodyPropCommitter, ) - from .group_1012 import ( + from .group_1031 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayload as ReposOwnerRepoDispatchesPostBodyPropClientPayload, ) - from .group_1038 import ( + from .group_1057 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1, ) - from .group_1132 import ( + from .group_1151 import ( UserCodespacesCodespaceNameMachinesGetResponse200 as UserCodespacesCodespaceNameMachinesGetResponse200, ) - from .group_0050 import ( + from .group_0053 import ( DependabotAlertSecurityAdvisoryPropReferencesItems as DependabotAlertSecurityAdvisoryPropReferencesItems, ) - from .group_0113 import ( + from .group_0117 import ( OrganizationProgrammaticAccessGrantPropPermissions as OrganizationProgrammaticAccessGrantPropPermissions, ) - from .group_0201 import ( + from .group_0205 import ( BranchProtectionPropRequiredConversationResolution as BranchProtectionPropRequiredConversationResolution, ) - from .group_0226 import ( + from .group_0230 import ( CodeScanningVariantAnalysisPropSkippedRepositories as CodeScanningVariantAnalysisPropSkippedRepositories, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropReviewersItems as WebhookDeploymentReviewRequestedPropReviewersItems, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRun as WebhookDeploymentReviewRequestedPropWorkflowJobRun, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentStatus as WebhookDeploymentStatusCreatedPropDeploymentStatus, ) - from .group_0539 import ( + from .group_0544 import ( WebhookIssueCommentCreatedPropCommentPropReactions as WebhookIssueCommentCreatedPropCommentPropReactions, ) - from .group_0540 import ( + from .group_0545 import ( WebhookIssueCommentCreatedPropIssueMergedAssignees as WebhookIssueCommentCreatedPropIssueMergedAssignees, ) - from .group_0540 import ( + from .group_0545 import ( WebhookIssueCommentCreatedPropIssueMergedReactions as WebhookIssueCommentCreatedPropIssueMergedReactions, ) - from .group_0548 import ( + from .group_0553 import ( WebhookIssueCommentCreatedPropIssueMergedMilestone as WebhookIssueCommentCreatedPropIssueMergedMilestone, ) - from .group_0551 import ( + from .group_0556 import ( WebhookIssueCommentDeletedPropIssueMergedAssignees as WebhookIssueCommentDeletedPropIssueMergedAssignees, ) - from .group_0551 import ( + from .group_0556 import ( WebhookIssueCommentDeletedPropIssueMergedReactions as WebhookIssueCommentDeletedPropIssueMergedReactions, ) - from .group_0559 import ( + from .group_0564 import ( WebhookIssueCommentDeletedPropIssueMergedMilestone as WebhookIssueCommentDeletedPropIssueMergedMilestone, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropAssigneesItems as WebhookIssuesMilestonedPropIssuePropAssigneesItems, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUser as WebhookIssuesOpenedPropChangesPropOldIssuePropUser, ) - from .group_0632 import ( + from .group_0637 import ( WebhookPackageUpdatedPropPackagePropPackageVersion as WebhookPackageUpdatedPropPackagePropPackageVersion, ) - from .group_0660 import ( + from .group_0665 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitle as WebhookProjectsV2ProjectEditedPropChangesPropTitle, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLinks as WebhookPullRequestAssignedPropPullRequestPropLinks, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequest as WebhookPullRequestAutoMergeDisabledPropPullRequest, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLinks as WebhookPullRequestDequeuedPropPullRequestPropLinks, ) - from .group_0677 import ( + from .group_0685 import ( WebhookPullRequestEditedPropChangesPropBasePropRef as WebhookPullRequestEditedPropChangesPropBasePropRef, ) - from .group_0677 import ( + from .group_0685 import ( WebhookPullRequestEditedPropChangesPropBasePropSha as WebhookPullRequestEditedPropChangesPropBasePropSha, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinks as WebhookPullRequestEnqueuedPropPullRequestPropLinks, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropThread as WebhookPullRequestReviewThreadUnresolvedPropThread, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropBase as WebhookPullRequestUnlabeledPropPullRequestPropBase, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropHead as WebhookPullRequestUnlabeledPropPullRequestPropHead, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropUser as WebhookPullRequestUnlabeledPropPullRequestPropUser, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLinks as WebhookPullRequestUnlockedPropPullRequestPropLinks, ) - from .group_0703 import ( + from .group_0711 import ( WebhookRegistryPackagePublishedPropRegistryPackage as WebhookRegistryPackagePublishedPropRegistryPackage, ) - from .group_0732 import ( + from .group_0740 import ( WebhookRepositoryRulesetEditedPropChangesPropRules as WebhookRepositoryRulesetEditedPropChangesPropRules, ) - from .group_0787 import ( + from .group_0795 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202 as AppHookDeliveriesDeliveryIdAttemptsPostResponse202, ) - from .group_0788 import ( + from .group_0796 import ( AppInstallationsInstallationIdAccessTokensPostBody as AppInstallationsInstallationIdAccessTokensPostBody, ) - from .group_0831 import ( + from .group_0840 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200 as OrgsOrgActionsCacheUsageByRepositoryGetResponse200, ) - from .group_0849 import ( + from .group_0858 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBody as OrgsOrgActionsSecretsSecretNameRepositoriesPutBody, ) - from .group_0914 import ( + from .group_0930 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody, ) - from .group_0944 import ( + from .group_0960 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody, ) - from .group_1005 import ( + from .group_1024 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBody as ReposOwnerRepoDependabotAlertsAlertNumberPatchBody, ) - from .group_1009 import ( + from .group_1028 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, ) - from .group_1043 import ( + from .group_1062 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody, ) - from .group_1045 import ( + from .group_1064 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0, ) - from .group_1046 import ( + from .group_1065 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2, ) - from .group_1108 import ( + from .group_1127 import ( ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems as ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems, ) - from .group_1130 import ( + from .group_1149 import ( UserCodespacesSecretsSecretNameRepositoriesPutBody as UserCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_0050 import ( + from .group_1168 import ( + SigstoreBundle0PropDsseEnvelopePropSignaturesItems as SigstoreBundle0PropDsseEnvelopePropSignaturesItems, + ) + from .group_0053 import ( DependabotAlertSecurityAdvisoryPropIdentifiersItems as DependabotAlertSecurityAdvisoryPropIdentifiersItems, ) - from .group_0078 import ( + from .group_0081 import ( SecurityAndAnalysisPropSecretScanningPushProtection as SecurityAndAnalysisPropSecretScanningPushProtection, ) - from .group_0078 import ( + from .group_0081 import ( SecurityAndAnalysisPropSecretScanningValidityChecks as SecurityAndAnalysisPropSecretScanningValidityChecks, ) - from .group_0127 import ( + from .group_0131 import ( RepositoryRulesetConditionsRepositoryPropertyTarget as RepositoryRulesetConditionsRepositoryPropertyTarget, ) - from .group_0200 import ( + from .group_0204 import ( BranchRestrictionPolicyPropAppsItemsPropPermissions as BranchRestrictionPolicyPropAppsItemsPropPermissions, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropBasePropRepoPropPermissions as WebhooksPullRequest5PropBasePropRepoPropPermissions, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropHeadPropRepoPropPermissions as WebhooksPullRequest5PropHeadPropRepoPropPermissions, ) - from .group_0482 import ( + from .group_0487 import ( WebhookCommitCommentCreatedPropCommentPropReactions as WebhookCommitCommentCreatedPropCommentPropReactions, ) - from .group_0536 import ( + from .group_0541 import ( WebhookInstallationTargetRenamedPropChangesPropSlug as WebhookInstallationTargetRenamedPropChangesPropSlug, ) - from .group_0643 import ( + from .group_0648 import ( WebhookProjectCardDeletedPropProjectCardPropCreator as WebhookProjectCardDeletedPropProjectCardPropCreator, ) - from .group_0645 import ( + from .group_0650 import ( WebhookProjectCardMovedPropProjectCardMergedCreator as WebhookProjectCardMovedPropProjectCardMergedCreator, ) - from .group_0660 import ( + from .group_0665 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublic as WebhookProjectsV2ProjectEditedPropChangesPropPublic, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropAssignee as WebhookPullRequestLockedPropPullRequestPropAssignee, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropMergedBy as WebhookPullRequestLockedPropPullRequestPropMergedBy, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropReviewPropUser as WebhookPullRequestReviewDismissedPropReviewPropUser, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropBase as WebhookPullRequestUnassignedPropPullRequestPropBase, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropHead as WebhookPullRequestUnassignedPropPullRequestPropHead, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropUser as WebhookPullRequestUnassignedPropPullRequestPropUser, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinks as WebhookPullRequestUnlabeledPropPullRequestPropLinks, ) - from .group_0711 import ( + from .group_0719 import ( WebhookReleasePrereleasedPropReleasePropAssetsItems as WebhookReleasePrereleasedPropReleasePropAssetsItems, ) - from .group_0721 import ( + from .group_0729 import ( WebhookRepositoryEditedPropChangesPropDefaultBranch as WebhookRepositoryEditedPropChangesPropDefaultBranch, ) - from .group_0737 import ( + from .group_0745 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlert as WebhookRepositoryVulnerabilityAlertDismissPropAlert, ) - from .group_0739 import ( + from .group_0747 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlert as WebhookRepositoryVulnerabilityAlertResolvePropAlert, ) - from .group_0754 import ( + from .group_0762 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevel as WebhookSponsorshipEditedPropChangesPropPrivacyLevel, ) - from .group_0766 import ( + from .group_0774 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwner as WebhookTeamAddedToRepositoryPropRepositoryPropOwner, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropChangesPropNotificationSetting as WebhookTeamEditedPropChangesPropNotificationSetting, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropRepositoryPropCustomProperties as WebhookTeamEditedPropRepositoryPropCustomProperties, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropActor as WebhookWorkflowRunCompletedPropWorkflowRunPropActor, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActor as WebhookWorkflowRunRequestedPropWorkflowRunPropActor, ) - from .group_0833 import ( + from .group_0842 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200 as OrgsOrgActionsPermissionsRepositoriesGetResponse200, ) - from .group_0866 import ( + from .group_0882 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200, ) - from .group_0870 import ( + from .group_0886 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200, ) - from .group_0912 import ( + from .group_0928 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403 as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403, ) - from .group_0993 import ( + from .group_1012 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200 as ReposOwnerRepoCodespacesDevcontainersGetResponse200, ) - from .group_1036 import ( + from .group_1055 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1 as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1, ) - from .group_1048 import ( + from .group_1067 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0, ) - from .group_1049 import ( + from .group_1068 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2, ) - from .group_1089 import ( + from .group_1108 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody, ) - from .group_0145 import ( + from .group_0149 import ( RepositoryRuleCommitAuthorEmailPatternPropParameters as RepositoryRuleCommitAuthorEmailPatternPropParameters, ) - from .group_0536 import ( + from .group_0541 import ( WebhookInstallationTargetRenamedPropChangesPropLogin as WebhookInstallationTargetRenamedPropChangesPropLogin, ) - from .group_0564 import ( + from .group_0569 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssignee as WebhookIssueCommentEditedPropIssueAllof0PropAssignee, ) - from .group_0569 import ( + from .group_0574 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssignee as WebhookIssueCommentEditedPropIssueAllof1PropAssignee, ) - from .group_0575 import ( + from .group_0580 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItems as WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, ) - from .group_0581 import ( + from .group_0586 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItems as WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropAssigneesItems as WebhookIssuesDemilestonedPropIssuePropAssigneesItems, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreator as WebhookIssuesEditedPropIssuePropMilestonePropCreator, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropMilestonePropCreator as WebhookIssuesLockedPropIssuePropMilestonePropCreator, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreator as WebhookIssuesOpenedPropIssuePropMilestonePropCreator, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewRepository as WebhookIssuesTransferredPropChangesPropNewRepository, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersion as WebhookPackagePublishedPropPackagePropPackageVersion, ) - from .group_0665 import ( + from .group_0670 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBody as WebhookProjectsV2ItemEditedPropChangesOneof1PropBody, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropAssignee as WebhookPullRequestLabeledPropPullRequestPropAssignee, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropMergedBy as WebhookPullRequestLabeledPropPullRequestPropMergedBy, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropAutoMerge as WebhookPullRequestLockedPropPullRequestPropAutoMerge, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropMilestone as WebhookPullRequestLockedPropPullRequestPropMilestone, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequest as WebhookPullRequestReviewCommentEditedPropPullRequest, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropReviewPropLinks as WebhookPullRequestReviewDismissedPropReviewPropLinks, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropBase as WebhookPullRequestSynchronizePropPullRequestPropBase, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropHead as WebhookPullRequestSynchronizePropPullRequestPropHead, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropUser as WebhookPullRequestSynchronizePropPullRequestPropUser, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLinks as WebhookPullRequestUnassignedPropPullRequestPropLinks, ) - from .group_0742 import ( + from .group_0750 import ( WebhookSecretScanningAlertLocationCreatedFormEncoded as WebhookSecretScanningAlertLocationCreatedFormEncoded, ) - from .group_0748 import ( + from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory, ) - from .group_0763 import ( + from .group_0771 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0 as WebhookStatusPropCommitPropCommitPropCommitterAllof0, ) - from .group_0764 import ( + from .group_0772 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1 as WebhookStatusPropCommitPropCommitPropCommitterAllof1, ) - from .group_0767 import ( + from .group_0775 import ( WebhookTeamCreatedPropRepositoryPropCustomProperties as WebhookTeamCreatedPropRepositoryPropCustomProperties, ) - from .group_0768 import ( + from .group_0776 import ( WebhookTeamDeletedPropRepositoryPropCustomProperties as WebhookTeamDeletedPropRepositoryPropCustomProperties, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropActor as WebhookWorkflowRunInProgressPropWorkflowRunPropActor, ) - from .group_0829 import ( + from .group_0838 import ( OrganizationsOrganizationIdCustomRolesGetResponse200 as OrganizationsOrganizationIdCustomRolesGetResponse200, ) - from .group_0889 import ( + from .group_0905 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422 as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422, ) - from .group_0980 import ( + from .group_0999 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, ) - from .group_0986 import ( + from .group_1005 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody, ) - from .group_1109 import ( + from .group_1128 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName, ) - from .group_0193 import ( + from .group_1168 import ( + UsersUsernameAttestationsSubjectDigestGetResponse200 as UsersUsernameAttestationsSubjectDigestGetResponse200, + ) + from .group_0197 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItems as WorkflowRunUsagePropBillablePropMacosPropJobRunsItems, ) - from .group_0425 import ( + from .group_0429 import ( WebhooksIssuePropPerformedViaGithubAppPropPermissions as WebhooksIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof0 as WebhooksPullRequest5PropRequestedReviewersItemsOneof0, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1 as WebhooksPullRequest5PropRequestedReviewersItemsOneof1, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropRequestedTeamsItemsPropParent as WebhooksPullRequest5PropRequestedTeamsItemsPropParent, ) - from .group_0477 import ( + from .group_0482 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRule as WebhookCodeScanningAlertClosedByUserPropAlertPropRule, ) - from .group_0477 import ( + from .group_0482 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropTool as WebhookCodeScanningAlertClosedByUserPropAlertPropTool, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedBy as WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepository as WebhookDeploymentCreatedPropWorkflowRunPropRepository, ) - from .group_0542 import ( + from .group_0547 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssignee as WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, ) - from .group_0547 import ( + from .group_0552 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssignee as WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, ) - from .group_0553 import ( + from .group_0558 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssignee as WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, ) - from .group_0558 import ( + from .group_0563 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssignee as WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, ) - from .group_0563 import ( + from .group_0568 import ( WebhookIssueCommentEditedPropIssueAllof0PropReactions as WebhookIssueCommentEditedPropIssueAllof0PropReactions, ) - from .group_0566 import ( + from .group_0571 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestone as WebhookIssueCommentEditedPropIssueAllof0PropMilestone, ) - from .group_0569 import ( + from .group_0574 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestone as WebhookIssueCommentEditedPropIssueAllof1PropMilestone, ) - from .group_0569 import ( + from .group_0574 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactions as WebhookIssueCommentEditedPropIssueAllof1PropReactions, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreator as WebhookIssuesDeletedPropIssuePropMilestonePropCreator, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubApp as WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreator as WebhookIssuesLabeledPropIssuePropMilestonePropCreator, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubApp as WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropAssignee as WebhookPullRequestAssignedPropPullRequestPropAssignee, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropMergedBy as WebhookPullRequestAssignedPropPullRequestPropMergedBy, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropAssignee as WebhookPullRequestDequeuedPropPullRequestPropAssignee, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedBy as WebhookPullRequestDequeuedPropPullRequestPropMergedBy, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssignee as WebhookPullRequestEnqueuedPropPullRequestPropAssignee, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedBy as WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMerge as WebhookPullRequestLabeledPropPullRequestPropAutoMerge, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropMilestone as WebhookPullRequestLabeledPropPullRequestPropMilestone, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequest as WebhookPullRequestReviewCommentCreatedPropPullRequest, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequest as WebhookPullRequestReviewCommentDeletedPropPullRequest, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropBase as WebhookPullRequestReviewEditedPropPullRequestPropBase, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropHead as WebhookPullRequestReviewEditedPropPullRequestPropHead, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropUser as WebhookPullRequestReviewEditedPropPullRequestPropUser, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequest as WebhookPullRequestReviewThreadResolvedPropPullRequest, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLinks as WebhookPullRequestSynchronizePropPullRequestPropLinks, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropAssignee as WebhookPullRequestUnlockedPropPullRequestPropAssignee, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedBy as WebhookPullRequestUnlockedPropPullRequestPropMergedBy, ) - from .group_0766 import ( + from .group_0774 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicense as WebhookTeamAddedToRepositoryPropRepositoryPropLicense, ) - from .group_0773 import ( + from .group_0781 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps as WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps, ) - from .group_0779 import ( + from .group_0787 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems, ) - from .group_0812 import ( + from .group_0820 import ( EnterprisesEnterpriseCodeScanningAlertsGetResponse503 as EnterprisesEnterpriseCodeScanningAlertsGetResponse503, ) - from .group_0813 import ( + from .group_0821 import ( EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody as EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody, ) - from .group_0841 import ( + from .group_0850 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody, ) - from .group_0853 import ( + from .group_0862 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200 as OrgsOrgActionsVariablesNameRepositoriesGetResponse200, ) - from .group_0862 import ( + from .group_0877 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_0875 import ( + from .group_0891 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody, ) - from .group_0942 import ( + from .group_0958 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody, ) - from .group_0946 import ( + from .group_0962 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200 as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200, ) - from .group_0951 import ( + from .group_0967 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody, ) - from .group_0995 import ( + from .group_0978 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200 as ReposOwnerRepoAttestationsSubjectDigestGetResponse200, + ) + from .group_1014 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaults as ReposOwnerRepoCodespacesNewGetResponse200PropDefaults, ) - from .group_1008 import ( + from .group_1027 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201 as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201, ) - from .group_1011 import ( + from .group_1030 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody, ) - from .group_1077 import ( + from .group_1096 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody, ) - from .group_0193 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems as WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems, ) - from .group_0387 import ( + from .group_0391 import ( TopicSearchResultItemPropAliasesItemsPropTopicRelation as TopicSearchResultItemPropAliasesItemsPropTopicRelation, ) - from .group_0387 import ( + from .group_0391 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelation as TopicSearchResultItemPropRelatedItemsPropTopicRelation, ) - from .group_0427 import ( + from .group_0431 import ( WebhooksIssue2PropPerformedViaGithubAppPropPermissions as WebhooksIssue2PropPerformedViaGithubAppPropPermissions, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, ) - from .group_0541 import ( + from .group_0546 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactions as WebhookIssueCommentCreatedPropIssueAllof0PropReactions, ) - from .group_0544 import ( + from .group_0549 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestone as WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, ) - from .group_0547 import ( + from .group_0552 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestone as WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, ) - from .group_0547 import ( + from .group_0552 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactions as WebhookIssueCommentCreatedPropIssueAllof1PropReactions, ) - from .group_0552 import ( + from .group_0557 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactions as WebhookIssueCommentDeletedPropIssueAllof0PropReactions, ) - from .group_0555 import ( + from .group_0560 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestone as WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, ) - from .group_0558 import ( + from .group_0563 import ( WebhookIssueCommentDeletedPropIssueAllof1PropMilestone as WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, ) - from .group_0558 import ( + from .group_0563 import ( WebhookIssueCommentDeletedPropIssueAllof1PropReactions as WebhookIssueCommentDeletedPropIssueAllof1PropReactions, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp as WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp as WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee as WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropMilestonePropCreator as WebhookIssuesReopenedPropIssuePropMilestonePropCreator, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropMilestonePropCreator as WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, ) - from .group_0670 import ( + from .group_0676 import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropBody as WebhookProjectsV2StatusUpdateEditedPropChangesPropBody, + ) + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMerge as WebhookPullRequestAssignedPropPullRequestPropAutoMerge, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropMilestone as WebhookPullRequestAssignedPropPullRequestPropMilestone, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMerge as WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestone as WebhookPullRequestDequeuedPropPullRequestPropMilestone, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge as WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestone as WebhookPullRequestEnqueuedPropPullRequestPropMilestone, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItems as WebhookPullRequestLockedPropPullRequestPropLabelsItems, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinks as WebhookPullRequestReviewEditedPropPullRequestPropLinks, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequest as WebhookPullRequestReviewRequestedOneof0PropPullRequest, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequest as WebhookPullRequestReviewRequestedOneof1PropPullRequest, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssignee as WebhookPullRequestUnlabeledPropPullRequestPropAssignee, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedBy as WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMerge as WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestone as WebhookPullRequestUnlockedPropPullRequestPropMilestone, ) - from .group_0776 import ( + from .group_0784 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps as WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps, ) - from .group_0780 import ( + from .group_0788 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems, ) - from .group_0798 import ( + from .group_0806 import ( EnterprisesEnterpriseActionsRunnerGroupsGetResponse200 as EnterprisesEnterpriseActionsRunnerGroupsGetResponse200, ) - from .group_0891 import ( + from .group_0822 import ( + EnterprisesEnterpriseCopilotBillingSeatsGetResponse200 as EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, + ) + from .group_0907 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody, ) - from .group_0938 import ( + from .group_0954 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200 as ReposOwnerRepoActionsOrganizationSecretsGetResponse200, ) - from .group_1040 import ( + from .group_1059 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody, ) - from .group_1101 import ( + from .group_1120 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody, ) - from .group_1114 import ( + from .group_1133 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_0057 import ( + from .group_0060 import ( GetAllCostCentersPropCostCentersItemsPropResourcesItems as GetAllCostCentersPropCostCentersItemsPropResourcesItems, ) - from .group_0193 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems as WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems, ) - from .group_0225 import ( + from .group_0229 import ( CodeScanningVariantAnalysisPropScannedRepositoriesItems as CodeScanningVariantAnalysisPropScannedRepositoriesItems, ) - from .group_0405 import ( + from .group_0409 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissions as RepositoryWebhooksPropTemplateRepositoryPropPermissions, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOther as PersonalAccessTokenRequestPropPermissionsAddedPropOther, ) - from .group_0481 import ( + from .group_0486 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRule as WebhookCodeScanningAlertReopenedByUserPropAlertPropRule, ) - from .group_0481 import ( + from .group_0486 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropTool as WebhookCodeScanningAlertReopenedByUserPropAlertPropTool, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0 as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreator as WebhookDeploymentStatusCreatedPropDeploymentPropCreator, ) - from .group_0505 import ( + from .group_0510 import ( WebhookDiscussionCategoryChangedPropChangesPropCategory as WebhookDiscussionCategoryChangedPropChangesPropCategory, ) - from .group_0564 import ( + from .group_0569 import ( WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems as WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, ) - from .group_0564 import ( + from .group_0569 import ( WebhookIssueCommentEditedPropIssueAllof0PropPullRequest as WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, ) - from .group_0569 import ( + from .group_0574 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems, ) - from .group_0583 import ( + from .group_0588 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp as WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactions as WebhookIssuesOpenedPropChangesPropOldIssuePropReactions, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp as WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUser as WebhookIssuesTransferredPropChangesPropNewIssuePropUser, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, ) - from .group_0646 import ( + from .group_0651 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreator as WebhookProjectCardMovedPropProjectCardAllof0PropCreator, ) - from .group_0647 import ( + from .group_0652 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreator as WebhookProjectCardMovedPropProjectCardAllof1PropCreator, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItems as WebhookPullRequestLabeledPropPullRequestPropLabelsItems, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepo as WebhookPullRequestLockedPropPullRequestPropBasePropRepo, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUser as WebhookPullRequestLockedPropPullRequestPropBasePropUser, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepo as WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUser as WebhookPullRequestLockedPropPullRequestPropHeadPropUser, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropPullRequest, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropAssignee as WebhookPullRequestUnassignedPropPullRequestPropAssignee, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedBy as WebhookPullRequestUnassignedPropPullRequestPropMergedBy, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge as WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestone as WebhookPullRequestUnlabeledPropPullRequestPropMilestone, ) - from .group_0730 import ( + from .group_0738 import ( WebhookRepositoryRulesetEditedPropChangesPropConditions as WebhookRepositoryRulesetEditedPropChangesPropConditions, ) - from .group_0770 import ( + from .group_0778 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, ) - from .group_1047 import ( + from .group_1066 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items, ) - from .group_1093 import ( + from .group_1112 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202 as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202, ) - from .group_1117 import ( + from .group_1136 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_0053 import ( + from .group_0056 import ( GetLicenseSyncStatusPropServerInstancesItemsPropLastSync as GetLicenseSyncStatusPropServerInstancesItemsPropLastSync, ) - from .group_0351 import ( + from .group_0081 import ( + SecurityAndAnalysisPropSecretScanningNonProviderPatterns as SecurityAndAnalysisPropSecretScanningNonProviderPatterns, + ) + from .group_0355 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItems as PrivateVulnerabilityReportCreatePropVulnerabilitiesItems, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsResultPropOther as PersonalAccessTokenRequestPropPermissionsResultPropOther, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit, ) - from .group_0480 import ( + from .group_0485 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy as WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, ) - from .group_0542 import ( + from .group_0547 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, ) - from .group_0542 import ( + from .group_0547 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, ) - from .group_0547 import ( + from .group_0552 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems, ) - from .group_0553 import ( + from .group_0558 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, ) - from .group_0553 import ( + from .group_0558 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, ) - from .group_0558 import ( + from .group_0563 import ( WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropMilestonePropCreator as WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, ) - from .group_0660 import ( + from .group_0665 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescription as WebhookProjectsV2ProjectEditedPropChangesPropDescription, ) - from .group_0662 import ( + from .group_0667 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentType as WebhookProjectsV2ItemConvertedPropChangesPropContentType, ) - from .group_0670 import ( + from .group_0676 import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus as WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus, + ) + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItems as WebhookPullRequestAssignedPropPullRequestPropLabelsItems, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItems as WebhookPullRequestDequeuedPropPullRequestPropLabelsItems, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepo as WebhookPullRequestLabeledPropPullRequestPropBasePropRepo, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUser as WebhookPullRequestLabeledPropPullRequestPropBasePropUser, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUser as WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtml as WebhookPullRequestLockedPropPullRequestPropLinksPropHtml, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelf as WebhookPullRequestLockedPropPullRequestPropLinksPropSelf, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBase as WebhookPullRequestReviewDismissedPropPullRequestPropBase, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHead as WebhookPullRequestReviewDismissedPropPullRequestPropHead, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropUser, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestedOneof1PropRequestedTeam, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBase as WebhookPullRequestReviewSubmittedPropPullRequestPropBase, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHead as WebhookPullRequestReviewSubmittedPropPullRequestPropHead, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropUser, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropAssignee as WebhookPullRequestSynchronizePropPullRequestPropAssignee, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedBy as WebhookPullRequestSynchronizePropPullRequestPropMergedBy, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMerge as WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestone as WebhookPullRequestUnassignedPropPullRequestPropMilestone, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItems as WebhookPullRequestUnlockedPropPullRequestPropLabelsItems, ) - from .group_0729 import ( + from .group_0737 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcement as WebhookRepositoryRulesetEditedPropChangesPropEnforcement, ) - from .group_0734 import ( + from .group_0742 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFrom as WebhookRepositoryTransferredPropChangesPropOwnerPropFrom, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropRepository, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropRepository, ) - from .group_0809 import ( + from .group_0817 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0904 import ( + from .group_0920 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody, ) - from .group_0939 import ( + from .group_0955 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200 as ReposOwnerRepoActionsOrganizationVariablesGetResponse200, ) - from .group_0949 import ( + from .group_0965 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody, ) - from .group_0977 import ( + from .group_0996 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems, ) - from .group_1050 import ( + from .group_1069 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items, ) - from .group_1122 import ( + from .group_1141 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems as TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrantRequestPropPermissions as OrganizationProgrammaticAccessGrantRequestPropPermissions, ) - from .group_0199 import ( + from .group_0203 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictions as ProtectedBranchPullRequestReviewPropDismissalRestrictions, ) - from .group_0476 import ( + from .group_0481 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule, ) - from .group_0476 import ( + from .group_0481 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool as WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest, ) - from .group_0623 import ( + from .group_0628 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviter as WebhookOrganizationMemberInvitedPropInvitationPropInviter, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepo as WebhookPullRequestAssignedPropPullRequestPropBasePropRepo, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUser as WebhookPullRequestAssignedPropPullRequestPropBasePropUser, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUser as WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUser as WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItems as WebhookPullRequestLockedPropPullRequestPropAssigneesItems, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssue as WebhookPullRequestLockedPropPullRequestPropLinksPropIssue, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUser as WebhookPullRequestReviewCommentCreatedPropCommentPropUser, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinks as WebhookPullRequestReviewDismissedPropPullRequestPropLinks, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssignee as WebhookPullRequestReviewEditedPropPullRequestPropAssignee, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinks as WebhookPullRequestReviewSubmittedPropPullRequestPropLinks, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMerge as WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestone as WebhookPullRequestSynchronizePropPullRequestPropMilestone, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUser as WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, ) - from .group_0706 import ( + from .group_0714 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner, ) - from .group_0725 import ( + from .group_0733 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropName as WebhookRepositoryRenamedPropChangesPropRepositoryPropName, ) - from .group_0766 import ( + from .group_0774 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissions as WebhookTeamAddedToRepositoryPropRepositoryPropPermissions, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissions as WebhookTeamEditedPropChangesPropRepositoryPropPermissions, ) - from .group_0770 import ( + from .group_0778 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropRepository, ) - from .group_0810 import ( + from .group_0818 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0848 import ( + from .group_0857 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1072 import ( + from .group_0866 import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, + ) + from .group_1091 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200 as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200, ) - from .group_1087 import ( + from .group_1106 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody, ) - from .group_1129 import ( + from .group_1148 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200 as UserCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1139 import ( + from .group_1158 import ( UserInstallationsInstallationIdRepositoriesGetResponse200 as UserInstallationsInstallationIdRepositoriesGetResponse200, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOther as PersonalAccessTokenRequestPropPermissionsUpgradedPropOther, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0563 import ( + from .group_0568 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, ) - from .group_0569 import ( + from .group_0574 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, ) - from .group_0576 import ( + from .group_0581 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, ) - from .group_0665 import ( + from .group_0670 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItems as WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinks as WebhookPullRequestReviewCommentCreatedPropCommentPropLinks, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestone as WebhookPullRequestReviewEditedPropPullRequestPropMilestone, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItems as WebhookPullRequestUnassignedPropPullRequestPropLabelsItems, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf, ) - from .group_0839 import ( + from .group_0848 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody, ) - from .group_0925 import ( + from .group_0941 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems, ) - from .group_0958 import ( + from .group_0974 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody, ) - from .group_0959 import ( + from .group_0975 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200 as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200, ) - from .group_0980 import ( + from .group_0999 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, ) - from .group_1020 import ( + from .group_1039 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody, ) - from .group_1091 import ( + from .group_1110 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody, ) - from .group_0049 import ( + from .group_0052 import ( DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion as DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion, ) - from .group_0113 import ( + from .group_0117 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOther as OrganizationProgrammaticAccessGrantPropPermissionsPropOther, ) - from .group_0267 import ( + from .group_0271 import ( EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems as EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems, ) - from .group_0350 import ( + from .group_0354 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage, ) - from .group_0352 import ( + from .group_0356 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage, ) - from .group_0451 import ( + from .group_0456 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository, ) - from .group_0541 import ( + from .group_0546 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, ) - from .group_0547 import ( + from .group_0552 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, ) - from .group_0552 import ( + from .group_0557 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, ) - from .group_0558 import ( + from .group_0563 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, ) - from .group_0579 import ( + from .group_0584 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0581 import ( + from .group_0586 import ( WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee as WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, ) - from .group_0670 import ( + from .group_0676 import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate, + ) + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItems as WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommits as WebhookPullRequestLockedPropPullRequestPropLinksPropCommits, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItems as WebhookPullRequestSynchronizePropPullRequestPropLabelsItems, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUser as WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue, ) - from .group_0703 import ( + from .group_0711 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwner as WebhookRegistryPackagePublishedPropRegistryPackagePropOwner, ) - from .group_0797 import ( + from .group_0805 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody as EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody, ) - from .group_1109 import ( + from .group_1128 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems, ) - from .group_0435 import ( + from .group_1168 import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems, + ) + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepository as PersonalAccessTokenRequestPropPermissionsAddedPropRepository, ) - from .group_0477 import ( + from .group_0482 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactions as WebhookIssuesTransferredPropChangesPropNewIssuePropReactions, ) - from .group_0632 import ( + from .group_0637 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, ) - from .group_0679 import ( + from .group_0676 import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate, + ) + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropComments as WebhookPullRequestLockedPropPullRequestPropLinksPropComments, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBase as WebhookPullRequestReviewCommentEditedPropPullRequestPropBase, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHead as WebhookPullRequestReviewCommentEditedPropPullRequestPropHead, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssignee as WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee as WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUser as WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue, ) - from .group_0706 import ( + from .group_0714 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, ) - from .group_0748 import ( + from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0806 import ( + from .group_0814 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody, ) - from .group_0840 import ( + from .group_0849 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200, ) - from .group_0861 import ( + from .group_0876 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0874 import ( + from .group_0890 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0985 import ( + from .group_0976 import ( + ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope, + ) + from .group_1004 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200 as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200, ) - from .group_0126 import ( + from .group_0130 import ( RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId as RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId, ) - from .group_0216 import ( + from .group_0220 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepository as PersonalAccessTokenRequestPropPermissionsResultPropRepository, ) - from .group_0459 import ( + from .group_0464 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1 as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, ) - from .group_0571 import ( + from .group_0576 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, ) - from .group_0632 import ( + from .group_0637 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease as WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease, ) - from .group_0660 import ( + from .group_0665 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescription as WebhookProjectsV2ProjectEditedPropChangesPropShortDescription, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropComments, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestone as WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits, ) - from .group_0770 import ( + from .group_0778 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0920 import ( + from .group_0936 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems, ) - from .group_0921 import ( + from .group_0937 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems, ) - from .group_0961 import ( + from .group_0980 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, ) - from .group_0977 import ( + from .group_0996 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems, ) - from .group_0987 import ( + from .group_1006 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0, ) - from .group_0988 import ( + from .group_1007 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1, ) - from .group_0989 import ( + from .group_1008 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2, ) - from .group_1041 import ( + from .group_1060 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1, ) - from .group_1081 import ( + from .group_1100 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody, ) - from .group_1085 import ( + from .group_1104 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0, ) - from .group_1086 import ( + from .group_1105 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1, ) - from .group_1088 import ( + from .group_1107 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems, ) - from .group_1090 import ( + from .group_1109 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganization as PersonalAccessTokenRequestPropPermissionsAddedPropOrganization, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0478 import ( + from .group_0483 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, ) - from .group_0549 import ( + from .group_0554 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, ) - from .group_0560 import ( + from .group_0565 import ( WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropComments, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactions as WebhookPullRequestReviewCommentCreatedPropCommentPropReactions, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses, ) - from .group_0703 import ( + from .group_0711 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, ) - from .group_0766 import ( + from .group_0774 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties as WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties, ) - from .group_0774 import ( + from .group_0782 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems, ) - from .group_0775 import ( + from .group_0783 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, ) - from .group_0800 import ( + from .group_0808 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody, ) - from .group_1017 import ( + from .group_0867 import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, + ) + from .group_1036 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200, ) - from .group_0199 import ( + from .group_0203 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganization as PersonalAccessTokenRequestPropPermissionsResultPropOrganization, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent as WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0480 import ( + from .group_0485 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0505 import ( + from .group_0510 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropRelease as WebhookPackagePublishedPropPackagePropPackageVersionPropRelease, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0711 import ( + from .group_0719 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, ) - from .group_0777 import ( + from .group_0785 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems, ) - from .group_0778 import ( + from .group_0786 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0808 import ( + from .group_0816 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200 as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200, ) - from .group_0905 import ( + from .group_0868 import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, + ) + from .group_0921 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_1021 import ( + from .group_1040 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody, ) - from .group_0113 import ( + from .group_1168 import ( + SigstoreBundle0PropVerificationMaterialPropX509CertificateChain as SigstoreBundle0PropVerificationMaterialPropX509CertificateChain, + ) + from .group_0117 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantPropPermissionsPropRepository, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0476 import ( + from .group_0481 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0533 import ( + from .group_0538 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems, ) - from .group_0565 import ( + from .group_0570 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0602 import ( + from .group_0607 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0734 import ( + from .group_0742 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, ) - from .group_0737 import ( + from .group_0745 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, ) - from .group_0739 import ( + from .group_0747 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, ) - from .group_0908 import ( + from .group_0924 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_0934 import ( + from .group_0950 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning, ) - from .group_1019 import ( + from .group_1038 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200, ) - from .group_0124 import ( + from .group_0128 import ( RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName as RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0543 import ( + from .group_0548 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0554 import ( + from .group_0559 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0568 import ( + from .group_0573 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0569 import ( + from .group_0574 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, ) - from .group_0748 import ( + from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0838 import ( + from .group_0847 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200 as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200, ) - from .group_0914 import ( + from .group_0930 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems, ) - from .group_1018 import ( + from .group_1037 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody, ) - from .group_1046 import ( + from .group_1065 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems, ) - from .group_1110 import ( + from .group_1129 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther, ) - from .group_0113 import ( + from .group_0117 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization, ) - from .group_0475 import ( + from .group_0464 import ( + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync as WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync, + ) + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0534 import ( + from .group_0539 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems, ) - from .group_0546 import ( + from .group_0551 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0547 import ( + from .group_0552 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0557 import ( + from .group_0562 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0558 import ( + from .group_0563 import ( WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1 as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0707 import ( + from .group_0715 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, ) - from .group_0733 import ( + from .group_0741 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, ) - from .group_0770 import ( + from .group_0778 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0796 import ( + from .group_0804 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200 as EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200, ) - from .group_0811 import ( + from .group_0819 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200 as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200, ) - from .group_0934 import ( + from .group_0950 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity, ) - from .group_1013 import ( + from .group_1032 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems, ) - from .group_1049 import ( + from .group_1068 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems, ) - from .group_0226 import ( + from .group_0230 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos as CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos, ) - from .group_0351 import ( + from .group_0355 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0477 import ( + from .group_0482 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, ) - from .group_0632 import ( + from .group_0637 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0804 import ( + from .group_0812 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody, ) - from .group_0807 import ( + from .group_0815 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201 as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201, ) - from .group_0963 import ( + from .group_0864 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems, + ) + from .group_0982 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody, ) - from .group_0967 import ( + from .group_0986 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0, ) - from .group_0980 import ( + from .group_0999 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems, ) - from .group_0459 import ( + from .group_0464 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames, ) - from .group_0459 import ( + from .group_0464 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly, ) - from .group_0459 import ( + from .group_0464 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0578 import ( + from .group_0583 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, ) - from .group_0958 import ( + from .group_0974 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs, ) - from .group_0968 import ( + from .group_0976 import ( + ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial, + ) + from .group_0987 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0, ) - from .group_0970 import ( + from .group_0989 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0, ) - from .group_0973 import ( + from .group_0992 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0, ) - from .group_1115 import ( + from .group_1134 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_0258 import ( + from .group_1168 import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId, + ) + from .group_0262 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0481 import ( + from .group_0486 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0947 import ( + from .group_0963 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200, ) - from .group_0961 import ( + from .group_0980 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, ) - from .group_0971 import ( + from .group_0990 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0, ) - from .group_0974 import ( + from .group_0993 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0, ) - from .group_0211 import ( + from .group_0215 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0603 import ( + from .group_0608 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0969 import ( + from .group_0869 import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, + ) + from .group_0988 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository, ) - from .group_0451 import ( + from .group_0456 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0475 import ( + from .group_0464 import ( + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval as WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval, + ) + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0476 import ( + from .group_0481 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, ) - from .group_0604 import ( + from .group_0609 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase, ) - from .group_0632 import ( + from .group_0637 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0632 import ( + from .group_0637 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments, ) - from .group_0731 import ( + from .group_0739 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, ) - from .group_0748 import ( + from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0972 import ( + from .group_0991 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0, ) - from .group_0975 import ( + from .group_0994 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0, ) - from .group_0984 import ( + from .group_1003 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties, ) - from .group_0602 import ( + from .group_0607 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0734 import ( + from .group_0742 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization, ) - from .group_0748 import ( + from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0980 import ( + from .group_0999 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization, ) - from .group_0128 import ( + from .group_0132 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, ) - from .group_0478 import ( + from .group_0483 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0632 import ( + from .group_0637 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0666 import ( + from .group_0671 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0802 import ( + from .group_0810 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody, ) - from .group_0962 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody, ) - from .group_0993 import ( + from .group_1012 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems, ) - from .group_0478 import ( + from .group_1168 import ( + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems, + ) + from .group_0464 import ( + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel, + ) + from .group_0483 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0480 import ( + from .group_0485 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0567 import ( + from .group_0572 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0578 import ( + from .group_0583 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0803 import ( + from .group_0811 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200, ) - from .group_1015 import ( + from .group_0978 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems, + ) + from .group_1034 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody, ) - from .group_0480 import ( + from .group_1168 import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion, + ) + from .group_0485 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, ) - from .group_0545 import ( + from .group_0550 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0556 import ( + from .group_0561 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0602 import ( + from .group_0607 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0814 import ( + from .group_0823 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody, ) - from .group_0961 import ( + from .group_0980 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, ) - from .group_0211 import ( + from .group_0215 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0707 import ( + from .group_0715 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0748 import ( + from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_1116 import ( + from .group_1135 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_0459 import ( + from .group_0464 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0707 import ( + from .group_0715 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0733 import ( + from .group_0741 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges, ) - from .group_0816 import ( + from .group_0825 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody, ) - from .group_0906 import ( + from .group_0864 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, + ) + from .group_0922 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_0477 import ( + from .group_0482 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0603 import ( + from .group_0608 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0934 import ( + from .group_0950 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection, ) - from .group_0934 import ( + from .group_0950 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0477 import ( + from .group_0482 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0604 import ( + from .group_0609 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0964 import ( + from .group_0983 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0, ) - from .group_1014 import ( + from .group_1033 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200, ) - from .group_0271 import ( + from .group_1168 import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise, + ) + from .group_0275 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200, ) - from .group_0481 import ( + from .group_0486 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0567 import ( + from .group_0572 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0801 import ( + from .group_0809 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200 as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200, ) - from .group_0965 import ( + from .group_0984 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0, ) - from .group_1110 import ( + from .group_1129 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0 as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0, ) - from .group_0481 import ( + from .group_0486 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0545 import ( + from .group_0550 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0556 import ( + from .group_0561 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0603 import ( + from .group_0608 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0476 import ( + from .group_0464 import ( + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel, + ) + from .group_0481 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0604 import ( + from .group_0609 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, ) - from .group_0731 import ( + from .group_0739 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges, ) - from .group_0815 import ( + from .group_0824 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200 as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200, ) - from .group_0963 import ( + from .group_0982 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems, ) - from .group_0966 import ( + from .group_0985 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0, ) - from .group_0476 import ( + from .group_0481 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, ) - from .group_0707 import ( + from .group_0715 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0459 import ( + from .group_0950 import ( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns, + ) + from .group_0464 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0817 import ( + from .group_0826 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200 as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200, ) - from .group_0961 import ( + from .group_0978 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, + ) + from .group_0980 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems, ) - from .group_1016 import ( + from .group_1035 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200, ) - from .group_0629 import ( + from .group_1168 import ( + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems, + ) + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0907 import ( + from .group_0923 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_1110 import ( + from .group_1129 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0707 import ( + from .group_0715 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0707 import ( + from .group_0715 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0748 import ( + from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0459 import ( + from .group_0464 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0733 import ( + from .group_0741 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0707 import ( + from .group_0715 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0733 import ( + from .group_0741 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0731 import ( + from .group_0739 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0731 import ( + from .group_0739 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude, ) - from .group_0731 import ( + from .group_0739 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude, ) - from .group_0704 import ( + from .group_0864 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, + ) + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0733 import ( + from .group_0741 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0962 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0731 import ( + from .group_0739 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType, ) - from .group_0748 import ( + from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0961 import ( + from .group_0978 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, + ) + from .group_0980 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0690 import ( + from .group_0864 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, + ) + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, ) - from .group_0962 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0961 import ( + from .group_0980 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) + from .group_0978 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, + ) else: __lazy_vars__ = { ".group_0000": ("Root",), @@ -8532,237 +8687,245 @@ "GetConsumedLicenses", "GetConsumedLicensesPropUsersItems", ), - ".group_0047": ( + ".group_0047": ("TeamSimple",), + ".group_0048": ( + "Team", + "TeamPropPermissions", + ), + ".group_0049": ( + "CopilotSeatDetails", + "EnterpriseTeam", + "Organization", + "OrganizationPropPlan", + ), + ".group_0050": ( "CopilotUsageMetrics", "CopilotUsageMetricsPropBreakdownItems", ), - ".group_0048": ("DependabotAlertPackage",), - ".group_0049": ( + ".group_0051": ("DependabotAlertPackage",), + ".group_0052": ( "DependabotAlertSecurityVulnerability", "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion", ), - ".group_0050": ( + ".group_0053": ( "DependabotAlertSecurityAdvisory", "DependabotAlertSecurityAdvisoryPropCvss", "DependabotAlertSecurityAdvisoryPropCwesItems", "DependabotAlertSecurityAdvisoryPropIdentifiersItems", "DependabotAlertSecurityAdvisoryPropReferencesItems", ), - ".group_0051": ("DependabotAlertWithRepository",), - ".group_0052": ("DependabotAlertWithRepositoryPropDependency",), - ".group_0053": ( + ".group_0054": ("DependabotAlertWithRepository",), + ".group_0055": ("DependabotAlertWithRepositoryPropDependency",), + ".group_0056": ( "GetLicenseSyncStatus", "GetLicenseSyncStatusPropServerInstancesItems", "GetLicenseSyncStatusPropServerInstancesItemsPropLastSync", ), - ".group_0054": ("OrganizationSecretScanningAlert",), - ".group_0055": ( + ".group_0057": ("OrganizationSecretScanningAlert",), + ".group_0058": ( "ActionsBillingUsage", "ActionsBillingUsagePropMinutesUsedBreakdown", ), - ".group_0056": ( + ".group_0059": ( "AdvancedSecurityActiveCommitters", "AdvancedSecurityActiveCommittersRepository", "AdvancedSecurityActiveCommittersUser", ), - ".group_0057": ( + ".group_0060": ( "GetAllCostCenters", "GetAllCostCentersPropCostCentersItems", "GetAllCostCentersPropCostCentersItemsPropResourcesItems", ), - ".group_0058": ("PackagesBillingUsage",), - ".group_0059": ("CombinedBillingUsage",), - ".group_0060": ( + ".group_0061": ("PackagesBillingUsage",), + ".group_0062": ("CombinedBillingUsage",), + ".group_0063": ( "BillingUsageReport", "BillingUsageReportPropUsageItemsItems", ), - ".group_0061": ("Milestone",), - ".group_0062": ("ReactionRollup",), - ".group_0063": ( + ".group_0064": ("Milestone",), + ".group_0065": ("ReactionRollup",), + ".group_0066": ( "Issue", "IssuePropLabelsItemsOneof1", "IssuePropPullRequest", ), - ".group_0064": ("IssueComment",), - ".group_0065": ( + ".group_0067": ("IssueComment",), + ".group_0068": ( "EventPropPayload", "EventPropPayloadPropPagesItems", "Event", "Actor", "EventPropRepo", ), - ".group_0066": ( + ".group_0069": ( "Feed", "FeedPropLinks", "LinkWithType", ), - ".group_0067": ( + ".group_0070": ( "BaseGist", "BaseGistPropFiles", ), - ".group_0068": ( + ".group_0071": ( "GistHistory", "GistHistoryPropChangeStatus", "GistSimplePropForkOf", "GistSimplePropForkOfPropFiles", ), - ".group_0069": ( + ".group_0072": ( "GistSimple", "GistSimplePropFiles", "GistSimplePropForksItems", "PublicUser", "PublicUserPropPlan", ), - ".group_0070": ("GistComment",), - ".group_0071": ( + ".group_0073": ("GistComment",), + ".group_0074": ( "GistCommit", "GistCommitPropChangeStatus", ), - ".group_0072": ("GitignoreTemplate",), - ".group_0073": ("License",), - ".group_0074": ("MarketplaceListingPlan",), - ".group_0075": ("MarketplacePurchase",), - ".group_0076": ( + ".group_0075": ("GitignoreTemplate",), + ".group_0076": ("License",), + ".group_0077": ("MarketplaceListingPlan",), + ".group_0078": ("MarketplacePurchase",), + ".group_0079": ( "MarketplacePurchasePropMarketplacePendingChange", "MarketplacePurchasePropMarketplacePurchase", ), - ".group_0077": ( + ".group_0080": ( "ApiOverview", "ApiOverviewPropSshKeyFingerprints", "ApiOverviewPropDomains", ), - ".group_0078": ( + ".group_0081": ( "SecurityAndAnalysis", "SecurityAndAnalysisPropAdvancedSecurity", "SecurityAndAnalysisPropDependabotSecurityUpdates", "SecurityAndAnalysisPropSecretScanning", "SecurityAndAnalysisPropSecretScanningPushProtection", + "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", "SecurityAndAnalysisPropSecretScanningValidityChecks", ), - ".group_0079": ( + ".group_0082": ( "MinimalRepository", "CodeOfConduct", "MinimalRepositoryPropPermissions", "MinimalRepositoryPropLicense", ), - ".group_0080": ( + ".group_0083": ( "Thread", "ThreadPropSubject", ), - ".group_0081": ("ThreadSubscription",), - ".group_0082": ("OrganizationCustomRepositoryRole",), - ".group_0083": ( + ".group_0084": ("ThreadSubscription",), + ".group_0085": ("OrganizationCustomRepositoryRole",), + ".group_0086": ( "OrganizationFull", "OrganizationFullPropPlan", ), - ".group_0084": ("OidcCustomSub",), - ".group_0085": ("EmptyObject",), - ".group_0086": ("ActionsOrganizationPermissions",), - ".group_0087": ("ActionsPublicKey",), - ".group_0088": ("CodespaceMachine",), - ".group_0089": ( + ".group_0087": ("OidcCustomSub",), + ".group_0088": ("ActionsOrganizationPermissions",), + ".group_0089": ("ActionsPublicKey",), + ".group_0090": ("CodeSecurityConfiguration",), + ".group_0091": ("CodeSecurityDefaultConfigurationsItems",), + ".group_0092": ("CodeSecurityConfigurationRepositories",), + ".group_0093": ("CodespaceMachine",), + ".group_0094": ( "Codespace", "CodespacePropGitStatus", "CodespacePropRuntimeConstraints", ), - ".group_0090": ("CodespacesPublicKey",), - ".group_0091": ( + ".group_0095": ("CodespacesPublicKey",), + ".group_0096": ( "CopilotOrganizationDetails", "CopilotSeatBreakdown", ), - ".group_0092": ("TeamSimple",), - ".group_0093": ( - "Team", - "TeamPropPermissions", - ), - ".group_0094": ( - "CopilotSeatDetails", - "Organization", - "OrganizationPropPlan", - "OrgsOrgCopilotBillingSeatsGetResponse200", - ), - ".group_0095": ("CredentialAuthorization",), - ".group_0096": ("OrganizationCustomRepositoryRoleCreateSchema",), - ".group_0097": ("OrganizationCustomRepositoryRoleUpdateSchema",), - ".group_0098": ("DependabotPublicKey",), - ".group_0099": ("Package",), - ".group_0100": ( + ".group_0097": ("CredentialAuthorization",), + ".group_0098": ("OrganizationCustomRepositoryRoleCreateSchema",), + ".group_0099": ("OrganizationCustomRepositoryRoleUpdateSchema",), + ".group_0100": ("DependabotPublicKey",), + ".group_0101": ("Package",), + ".group_0102": ( "ExternalGroup", "ExternalGroupPropTeamsItems", "ExternalGroupPropMembersItems", ), - ".group_0101": ( + ".group_0103": ( "ExternalGroups", "ExternalGroupsPropGroupsItems", ), - ".group_0102": ("OrganizationInvitation",), - ".group_0103": ("RepositoryFineGrainedPermission",), - ".group_0104": ( + ".group_0104": ("OrganizationInvitation",), + ".group_0105": ("RepositoryFineGrainedPermission",), + ".group_0106": ( "OrgHook", "OrgHookPropConfig", ), - ".group_0105": ("InteractionLimitResponse",), - ".group_0106": ("InteractionLimit",), - ".group_0107": ( + ".group_0107": ("InteractionLimitResponse",), + ".group_0108": ("InteractionLimit",), + ".group_0109": ( "OrgMembership", "OrgMembershipPropPermissions", ), - ".group_0108": ("Migration",), - ".group_0109": ("OrganizationFineGrainedPermission",), - ".group_0110": ( + ".group_0110": ("Migration",), + ".group_0111": ("OrganizationFineGrainedPermission",), + ".group_0112": ( "OrganizationRole", "OrgsOrgOrganizationRolesGetResponse200", ), - ".group_0111": ( + ".group_0113": ( + "TeamRoleAssignment", + "TeamRoleAssignmentPropPermissions", + ), + ".group_0114": ("UserRoleAssignment",), + ".group_0115": ( "PackageVersion", "PackageVersionPropMetadata", "PackageVersionPropMetadataPropContainer", "PackageVersionPropMetadataPropDocker", ), - ".group_0112": ( + ".group_0116": ( "OrganizationProgrammaticAccessGrantRequest", "OrganizationProgrammaticAccessGrantRequestPropPermissions", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", ), - ".group_0113": ( + ".group_0117": ( "OrganizationProgrammaticAccessGrant", "OrganizationProgrammaticAccessGrantPropPermissions", "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", ), - ".group_0114": ("Project",), - ".group_0115": ("OrgCustomProperty",), - ".group_0116": ("CustomPropertyValue",), - ".group_0117": ("OrgRepoCustomPropertyValues",), - ".group_0118": ("CodeOfConductSimple",), - ".group_0119": ( + ".group_0118": ("Project",), + ".group_0119": ("OrgCustomProperty",), + ".group_0120": ("CustomPropertyValue",), + ".group_0121": ("OrgRepoCustomPropertyValues",), + ".group_0122": ("CodeOfConductSimple",), + ".group_0123": ( "FullRepository", "FullRepositoryPropPermissions", "FullRepositoryPropCustomProperties", ), - ".group_0120": ("RepositoryRulesetBypassActor",), - ".group_0121": ("RepositoryRulesetConditions",), - ".group_0122": ("RepositoryRulesetConditionsPropRefName",), - ".group_0123": ("RepositoryRulesetConditionsRepositoryNameTarget",), - ".group_0124": ( + ".group_0124": ("RepositoryRulesetBypassActor",), + ".group_0125": ("RepositoryRulesetConditions",), + ".group_0126": ("RepositoryRulesetConditionsPropRefName",), + ".group_0127": ("RepositoryRulesetConditionsRepositoryNameTarget",), + ".group_0128": ( "RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName", ), - ".group_0125": ("RepositoryRulesetConditionsRepositoryIdTarget",), - ".group_0126": ( + ".group_0129": ("RepositoryRulesetConditionsRepositoryIdTarget",), + ".group_0130": ( "RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId", ), - ".group_0127": ("RepositoryRulesetConditionsRepositoryPropertyTarget",), - ".group_0128": ( + ".group_0131": ("RepositoryRulesetConditionsRepositoryPropertyTarget",), + ".group_0132": ( "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", "RepositoryRulesetConditionsRepositoryPropertySpec", ), - ".group_0129": ("OrgRulesetConditionsOneof0",), - ".group_0130": ("OrgRulesetConditionsOneof1",), - ".group_0131": ("OrgRulesetConditionsOneof2",), - ".group_0132": ( + ".group_0133": ("OrgRulesetConditionsOneof0",), + ".group_0134": ("OrgRulesetConditionsOneof1",), + ".group_0135": ("OrgRulesetConditionsOneof2",), + ".group_0136": ( "RepositoryRuleCreation", "RepositoryRuleDeletion", "RepositoryRuleRequiredSignatures", @@ -8772,61 +8935,61 @@ "RepositoryRuleOneof16", "RepositoryRuleOneof16PropParameters", ), - ".group_0133": ("RepositoryRuleUpdate",), - ".group_0134": ("RepositoryRuleUpdatePropParameters",), - ".group_0135": ( + ".group_0137": ("RepositoryRuleUpdate",), + ".group_0138": ("RepositoryRuleUpdatePropParameters",), + ".group_0139": ( "RepositoryRuleRequiredLinearHistory", "RepositoryRuleOneof15", "RepositoryRuleOneof15PropParameters", ), - ".group_0136": ("RepositoryRuleRequiredDeployments",), - ".group_0137": ("RepositoryRuleRequiredDeploymentsPropParameters",), - ".group_0138": ("RepositoryRulePullRequest",), - ".group_0139": ("RepositoryRulePullRequestPropParameters",), - ".group_0140": ("RepositoryRuleRequiredStatusChecks",), - ".group_0141": ( + ".group_0140": ("RepositoryRuleRequiredDeployments",), + ".group_0141": ("RepositoryRuleRequiredDeploymentsPropParameters",), + ".group_0142": ("RepositoryRulePullRequest",), + ".group_0143": ("RepositoryRulePullRequestPropParameters",), + ".group_0144": ("RepositoryRuleRequiredStatusChecks",), + ".group_0145": ( "RepositoryRuleRequiredStatusChecksPropParameters", "RepositoryRuleParamsStatusCheckConfiguration", ), - ".group_0142": ("RepositoryRuleCommitMessagePattern",), - ".group_0143": ("RepositoryRuleCommitMessagePatternPropParameters",), - ".group_0144": ("RepositoryRuleCommitAuthorEmailPattern",), - ".group_0145": ("RepositoryRuleCommitAuthorEmailPatternPropParameters",), - ".group_0146": ("RepositoryRuleCommitterEmailPattern",), - ".group_0147": ("RepositoryRuleCommitterEmailPatternPropParameters",), - ".group_0148": ("RepositoryRuleBranchNamePattern",), - ".group_0149": ("RepositoryRuleBranchNamePatternPropParameters",), - ".group_0150": ("RepositoryRuleTagNamePattern",), - ".group_0151": ("RepositoryRuleTagNamePatternPropParameters",), - ".group_0152": ("RepositoryRuleParamsRestrictedCommits",), - ".group_0153": ("RepositoryRuleWorkflows",), - ".group_0154": ( + ".group_0146": ("RepositoryRuleCommitMessagePattern",), + ".group_0147": ("RepositoryRuleCommitMessagePatternPropParameters",), + ".group_0148": ("RepositoryRuleCommitAuthorEmailPattern",), + ".group_0149": ("RepositoryRuleCommitAuthorEmailPatternPropParameters",), + ".group_0150": ("RepositoryRuleCommitterEmailPattern",), + ".group_0151": ("RepositoryRuleCommitterEmailPatternPropParameters",), + ".group_0152": ("RepositoryRuleBranchNamePattern",), + ".group_0153": ("RepositoryRuleBranchNamePatternPropParameters",), + ".group_0154": ("RepositoryRuleTagNamePattern",), + ".group_0155": ("RepositoryRuleTagNamePatternPropParameters",), + ".group_0156": ("RepositoryRuleParamsRestrictedCommits",), + ".group_0157": ("RepositoryRuleWorkflows",), + ".group_0158": ( "RepositoryRuleWorkflowsPropParameters", "RepositoryRuleParamsWorkflowFileReference", ), - ".group_0155": ("RepositoryRuleCodeScanning",), - ".group_0156": ( + ".group_0159": ("RepositoryRuleCodeScanning",), + ".group_0160": ( "RepositoryRuleCodeScanningPropParameters", "RepositoryRuleParamsCodeScanningTool", ), - ".group_0157": ( + ".group_0161": ( "RepositoryRuleOneof17", "RepositoryRuleOneof17PropParameters", ), - ".group_0158": ( + ".group_0162": ( "RepositoryRuleset", "RepositoryRulesetPropLinks", "RepositoryRulesetPropLinksPropSelf", "RepositoryRulesetPropLinksPropHtml", ), - ".group_0159": ("RuleSuitesItems",), - ".group_0160": ( + ".group_0163": ("RuleSuitesItems",), + ".group_0164": ( "RuleSuite", "RuleSuitePropRuleEvaluationsItems", "RuleSuitePropRuleEvaluationsItemsPropRuleSource", ), - ".group_0161": ("RepositoryAdvisoryCredit",), - ".group_0162": ( + ".group_0165": ("RepositoryAdvisoryCredit",), + ".group_0166": ( "RepositoryAdvisory", "RepositoryAdvisoryPropIdentifiersItems", "RepositoryAdvisoryPropSubmission", @@ -8836,82 +8999,82 @@ "RepositoryAdvisoryVulnerability", "RepositoryAdvisoryVulnerabilityPropPackage", ), - ".group_0163": ( + ".group_0167": ( "GroupMapping", "GroupMappingPropGroupsItems", ), - ".group_0164": ( + ".group_0168": ( "TeamFull", "TeamOrganization", "TeamOrganizationPropPlan", ), - ".group_0165": ("TeamDiscussion",), - ".group_0166": ("TeamDiscussionComment",), - ".group_0167": ("Reaction",), - ".group_0168": ("TeamMembership",), - ".group_0169": ( + ".group_0169": ("TeamDiscussion",), + ".group_0170": ("TeamDiscussionComment",), + ".group_0171": ("Reaction",), + ".group_0172": ("TeamMembership",), + ".group_0173": ( "TeamProject", "TeamProjectPropPermissions", ), - ".group_0170": ( + ".group_0174": ( "TeamRepository", "TeamRepositoryPropPermissions", ), - ".group_0171": ("ProjectCard",), - ".group_0172": ("ProjectColumn",), - ".group_0173": ("ProjectCollaboratorPermission",), - ".group_0174": ("RateLimit",), - ".group_0175": ("RateLimitOverview",), - ".group_0176": ("RateLimitOverviewPropResources",), - ".group_0177": ( + ".group_0175": ("ProjectCard",), + ".group_0176": ("ProjectColumn",), + ".group_0177": ("ProjectCollaboratorPermission",), + ".group_0178": ("RateLimit",), + ".group_0179": ("RateLimitOverview",), + ".group_0180": ("RateLimitOverviewPropResources",), + ".group_0181": ( "Artifact", "ArtifactPropWorkflowRun", ), - ".group_0178": ( + ".group_0182": ( "ActionsCacheList", "ActionsCacheListPropActionsCachesItems", ), - ".group_0179": ( + ".group_0183": ( "Job", "JobPropStepsItems", ), - ".group_0180": ("OidcCustomSubRepo",), - ".group_0181": ("ActionsSecret",), - ".group_0182": ("ActionsVariable",), - ".group_0183": ("ActionsRepositoryPermissions",), - ".group_0184": ("ActionsWorkflowAccessToRepository",), - ".group_0185": ( + ".group_0184": ("OidcCustomSubRepo",), + ".group_0185": ("ActionsSecret",), + ".group_0186": ("ActionsVariable",), + ".group_0187": ("ActionsRepositoryPermissions",), + ".group_0188": ("ActionsWorkflowAccessToRepository",), + ".group_0189": ( "PullRequestMinimal", "PullRequestMinimalPropHead", "PullRequestMinimalPropHeadPropRepo", "PullRequestMinimalPropBase", "PullRequestMinimalPropBasePropRepo", ), - ".group_0186": ( + ".group_0190": ( "SimpleCommit", "SimpleCommitPropAuthor", "SimpleCommitPropCommitter", ), - ".group_0187": ( + ".group_0191": ( "WorkflowRun", "ReferencedWorkflow", ), - ".group_0188": ( + ".group_0192": ( "EnvironmentApprovals", "EnvironmentApprovalsPropEnvironmentsItems", ), - ".group_0189": ("ReviewCustomGatesCommentRequired",), - ".group_0190": ("ReviewCustomGatesStateRequired",), - ".group_0191": ( + ".group_0193": ("ReviewCustomGatesCommentRequired",), + ".group_0194": ("ReviewCustomGatesStateRequired",), + ".group_0195": ( "PendingDeploymentPropReviewersItems", "PendingDeployment", "PendingDeploymentPropEnvironment", ), - ".group_0192": ( + ".group_0196": ( "Deployment", "DeploymentPropPayloadOneof0", ), - ".group_0193": ( + ".group_0197": ( "WorkflowRunUsage", "WorkflowRunUsagePropBillable", "WorkflowRunUsagePropBillablePropUbuntu", @@ -8921,22 +9084,22 @@ "WorkflowRunUsagePropBillablePropWindows", "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", ), - ".group_0194": ( + ".group_0198": ( "WorkflowUsage", "WorkflowUsagePropBillable", "WorkflowUsagePropBillablePropUbuntu", "WorkflowUsagePropBillablePropMacos", "WorkflowUsagePropBillablePropWindows", ), - ".group_0195": ("Activity",), - ".group_0196": ("Autolink",), - ".group_0197": ("CheckAutomatedSecurityFixes",), - ".group_0198": ("ProtectedBranchPullRequestReview",), - ".group_0199": ( + ".group_0199": ("Activity",), + ".group_0200": ("Autolink",), + ".group_0201": ("CheckAutomatedSecurityFixes",), + ".group_0202": ("ProtectedBranchPullRequestReview",), + ".group_0203": ( "ProtectedBranchPullRequestReviewPropDismissalRestrictions", "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", ), - ".group_0200": ( + ".group_0204": ( "BranchRestrictionPolicy", "BranchRestrictionPolicyPropUsersItems", "BranchRestrictionPolicyPropTeamsItems", @@ -8944,7 +9107,7 @@ "BranchRestrictionPolicyPropAppsItemsPropOwner", "BranchRestrictionPolicyPropAppsItemsPropPermissions", ), - ".group_0201": ( + ".group_0205": ( "BranchProtection", "ProtectedBranchAdminEnforced", "BranchProtectionPropRequiredLinearHistory", @@ -8958,27 +9121,28 @@ "ProtectedBranchRequiredStatusCheck", "ProtectedBranchRequiredStatusCheckPropChecksItems", ), - ".group_0202": ( + ".group_0206": ( "ShortBranch", "ShortBranchPropCommit", ), - ".group_0203": ("GitUser",), - ".group_0204": ("Verification",), - ".group_0205": ("DiffEntry",), - ".group_0206": ( + ".group_0207": ("GitUser",), + ".group_0208": ("Verification",), + ".group_0209": ("DiffEntry",), + ".group_0210": ( "Commit", + "EmptyObject", "CommitPropParentsItems", "CommitPropStats", ), - ".group_0207": ( + ".group_0211": ( "CommitPropCommit", "CommitPropCommitPropTree", ), - ".group_0208": ( + ".group_0212": ( "BranchWithProtection", "BranchWithProtectionPropLinks", ), - ".group_0209": ( + ".group_0213": ( "ProtectedBranch", "ProtectedBranchPropRequiredSignatures", "ProtectedBranchPropEnforceAdmins", @@ -8992,113 +9156,113 @@ "StatusCheckPolicy", "StatusCheckPolicyPropChecksItems", ), - ".group_0210": ("ProtectedBranchPropRequiredPullRequestReviews",), - ".group_0211": ( + ".group_0214": ("ProtectedBranchPropRequiredPullRequestReviews",), + ".group_0215": ( "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", ), - ".group_0212": ("DeploymentSimple",), - ".group_0213": ( + ".group_0216": ("DeploymentSimple",), + ".group_0217": ( "CheckRun", "CheckRunPropOutput", "CheckRunPropCheckSuite", ), - ".group_0214": ("CheckAnnotation",), - ".group_0215": ( + ".group_0218": ("CheckAnnotation",), + ".group_0219": ( "CheckSuite", "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", ), - ".group_0216": ( + ".group_0220": ( "CheckSuitePreference", "CheckSuitePreferencePropPreferences", "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", ), - ".group_0217": ("CodeScanningAlertItems",), - ".group_0218": ( + ".group_0221": ("CodeScanningAlertItems",), + ".group_0222": ( "CodeScanningAlert", "CodeScanningAlertRule", ), - ".group_0219": ("CodeScanningAnalysis",), - ".group_0220": ("CodeScanningAnalysisDeletion",), - ".group_0221": ("CodeScanningCodeqlDatabase",), - ".group_0222": ("CodeScanningVariantAnalysisRepository",), - ".group_0223": ("CodeScanningVariantAnalysisSkippedRepoGroup",), - ".group_0224": ("CodeScanningVariantAnalysis",), - ".group_0225": ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",), - ".group_0226": ( + ".group_0223": ("CodeScanningAnalysis",), + ".group_0224": ("CodeScanningAnalysisDeletion",), + ".group_0225": ("CodeScanningCodeqlDatabase",), + ".group_0226": ("CodeScanningVariantAnalysisRepository",), + ".group_0227": ("CodeScanningVariantAnalysisSkippedRepoGroup",), + ".group_0228": ("CodeScanningVariantAnalysis",), + ".group_0229": ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",), + ".group_0230": ( "CodeScanningVariantAnalysisPropSkippedRepositories", "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", ), - ".group_0227": ("CodeScanningVariantAnalysisRepoTask",), - ".group_0228": ("CodeScanningDefaultSetup",), - ".group_0229": ("CodeScanningDefaultSetupUpdate",), - ".group_0230": ("CodeScanningDefaultSetupUpdateResponse",), - ".group_0231": ("CodeScanningSarifsReceipt",), - ".group_0232": ("CodeScanningSarifsStatus",), - ".group_0233": ( + ".group_0231": ("CodeScanningVariantAnalysisRepoTask",), + ".group_0232": ("CodeScanningDefaultSetup",), + ".group_0233": ("CodeScanningDefaultSetupUpdate",), + ".group_0234": ("CodeScanningDefaultSetupUpdateResponse",), + ".group_0235": ("CodeScanningSarifsReceipt",), + ".group_0236": ("CodeScanningSarifsStatus",), + ".group_0237": ( "CodeownersErrors", "CodeownersErrorsPropErrorsItems", ), - ".group_0234": ("CodespacesPermissionsCheckForDevcontainer",), - ".group_0235": ("RepositoryInvitation",), - ".group_0236": ( + ".group_0238": ("CodespacesPermissionsCheckForDevcontainer",), + ".group_0239": ("RepositoryInvitation",), + ".group_0240": ( "RepositoryCollaboratorPermission", "Collaborator", "CollaboratorPropPermissions", ), - ".group_0237": ( + ".group_0241": ( "CommitComment", "TimelineCommitCommentedEvent", ), - ".group_0238": ( + ".group_0242": ( "BranchShort", "BranchShortPropCommit", ), - ".group_0239": ("Link",), - ".group_0240": ("AutoMerge",), - ".group_0241": ( + ".group_0243": ("Link",), + ".group_0244": ("AutoMerge",), + ".group_0245": ( "PullRequestSimple", "PullRequestSimplePropLabelsItems", ), - ".group_0242": ( + ".group_0246": ( "PullRequestSimplePropHead", "PullRequestSimplePropBase", ), - ".group_0243": ("PullRequestSimplePropLinks",), - ".group_0244": ( + ".group_0247": ("PullRequestSimplePropLinks",), + ".group_0248": ( "CombinedCommitStatus", "SimpleCommitStatus", ), - ".group_0245": ("Status",), - ".group_0246": ( + ".group_0249": ("Status",), + ".group_0250": ( "CommunityProfilePropFiles", "CommunityHealthFile", "CommunityProfile", ), - ".group_0247": ("CommitComparison",), - ".group_0248": ( + ".group_0251": ("CommitComparison",), + ".group_0252": ( "ContentTree", "ContentTreePropLinks", "ContentTreePropEntriesItems", "ContentTreePropEntriesItemsPropLinks", ), - ".group_0249": ( + ".group_0253": ( "ContentDirectoryItems", "ContentDirectoryItemsPropLinks", ), - ".group_0250": ( + ".group_0254": ( "ContentFile", "ContentFilePropLinks", ), - ".group_0251": ( + ".group_0255": ( "ContentSymlink", "ContentSymlinkPropLinks", ), - ".group_0252": ( + ".group_0256": ( "ContentSubmodule", "ContentSubmodulePropLinks", ), - ".group_0253": ( + ".group_0257": ( "FileCommit", "FileCommitPropContent", "FileCommitPropContentPropLinks", @@ -9109,53 +9273,53 @@ "FileCommitPropCommitPropParentsItems", "FileCommitPropCommitPropVerification", ), - ".group_0254": ("Contributor",), - ".group_0255": ("DependabotAlert",), - ".group_0256": ("DependabotAlertPropDependency",), - ".group_0257": ( + ".group_0258": ("Contributor",), + ".group_0259": ("DependabotAlert",), + ".group_0260": ("DependabotAlertPropDependency",), + ".group_0261": ( "DependencyGraphDiffItems", "DependencyGraphDiffItemsPropVulnerabilitiesItems", ), - ".group_0258": ( + ".group_0262": ( "DependencyGraphSpdxSbom", "DependencyGraphSpdxSbomPropSbom", "DependencyGraphSpdxSbomPropSbomPropCreationInfo", "DependencyGraphSpdxSbomPropSbomPropPackagesItems", "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", ), - ".group_0259": ("Metadata",), - ".group_0260": ("Dependency",), - ".group_0261": ( + ".group_0263": ("Metadata",), + ".group_0264": ("Dependency",), + ".group_0265": ( "Manifest", "ManifestPropFile", "ManifestPropResolved", ), - ".group_0262": ( + ".group_0266": ( "Snapshot", "SnapshotPropJob", "SnapshotPropDetector", "SnapshotPropManifests", ), - ".group_0263": ("DeploymentStatus",), - ".group_0264": ("DeploymentBranchPolicySettings",), - ".group_0265": ( + ".group_0267": ("DeploymentStatus",), + ".group_0268": ("DeploymentBranchPolicySettings",), + ".group_0269": ( "Environment", "EnvironmentPropProtectionRulesItemsAnyof0", "EnvironmentPropProtectionRulesItemsAnyof2", "ReposOwnerRepoEnvironmentsGetResponse200", ), - ".group_0266": ("EnvironmentPropProtectionRulesItemsAnyof1",), - ".group_0267": ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",), - ".group_0268": ("DeploymentBranchPolicyNamePatternWithType",), - ".group_0269": ("DeploymentBranchPolicyNamePattern",), - ".group_0270": ("CustomDeploymentRuleApp",), - ".group_0271": ( + ".group_0270": ("EnvironmentPropProtectionRulesItemsAnyof1",), + ".group_0271": ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",), + ".group_0272": ("DeploymentBranchPolicyNamePatternWithType",), + ".group_0273": ("DeploymentBranchPolicyNamePattern",), + ".group_0274": ("CustomDeploymentRuleApp",), + ".group_0275": ( "DeploymentProtectionRule", "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", ), - ".group_0272": ("ShortBlob",), - ".group_0273": ("Blob",), - ".group_0274": ( + ".group_0276": ("ShortBlob",), + ".group_0277": ("Blob",), + ".group_0278": ( "GitCommit", "GitCommitPropAuthor", "GitCommitPropCommitter", @@ -9163,28 +9327,28 @@ "GitCommitPropParentsItems", "GitCommitPropVerification", ), - ".group_0275": ( + ".group_0279": ( "GitRef", "GitRefPropObject", ), - ".group_0276": ( + ".group_0280": ( "GitTag", "GitTagPropTagger", "GitTagPropObject", ), - ".group_0277": ( + ".group_0281": ( "GitTree", "GitTreePropTreeItems", ), - ".group_0278": ("HookResponse",), - ".group_0279": ("Hook",), - ".group_0280": ( + ".group_0282": ("HookResponse",), + ".group_0283": ("Hook",), + ".group_0284": ( "Import", "ImportPropProjectChoicesItems", ), - ".group_0281": ("PorterAuthor",), - ".group_0282": ("PorterLargeFile",), - ".group_0283": ( + ".group_0285": ("PorterAuthor",), + ".group_0286": ("PorterLargeFile",), + ".group_0287": ( "IssueEvent", "IssueEventLabel", "IssueEventDismissedReview", @@ -9192,56 +9356,56 @@ "IssueEventProjectCard", "IssueEventRename", ), - ".group_0284": ( + ".group_0288": ( "LabeledIssueEvent", "LabeledIssueEventPropLabel", ), - ".group_0285": ( + ".group_0289": ( "UnlabeledIssueEvent", "UnlabeledIssueEventPropLabel", ), - ".group_0286": ("AssignedIssueEvent",), - ".group_0287": ("UnassignedIssueEvent",), - ".group_0288": ( + ".group_0290": ("AssignedIssueEvent",), + ".group_0291": ("UnassignedIssueEvent",), + ".group_0292": ( "MilestonedIssueEvent", "MilestonedIssueEventPropMilestone", ), - ".group_0289": ( + ".group_0293": ( "DemilestonedIssueEvent", "DemilestonedIssueEventPropMilestone", ), - ".group_0290": ( + ".group_0294": ( "RenamedIssueEvent", "RenamedIssueEventPropRename", ), - ".group_0291": ("ReviewRequestedIssueEvent",), - ".group_0292": ("ReviewRequestRemovedIssueEvent",), - ".group_0293": ( + ".group_0295": ("ReviewRequestedIssueEvent",), + ".group_0296": ("ReviewRequestRemovedIssueEvent",), + ".group_0297": ( "ReviewDismissedIssueEvent", "ReviewDismissedIssueEventPropDismissedReview", ), - ".group_0294": ("LockedIssueEvent",), - ".group_0295": ( + ".group_0298": ("LockedIssueEvent",), + ".group_0299": ( "AddedToProjectIssueEvent", "AddedToProjectIssueEventPropProjectCard", ), - ".group_0296": ( + ".group_0300": ( "MovedColumnInProjectIssueEvent", "MovedColumnInProjectIssueEventPropProjectCard", ), - ".group_0297": ( + ".group_0301": ( "RemovedFromProjectIssueEvent", "RemovedFromProjectIssueEventPropProjectCard", ), - ".group_0298": ( + ".group_0302": ( "ConvertedNoteToIssueIssueEvent", "ConvertedNoteToIssueIssueEventPropProjectCard", ), - ".group_0299": ("Label",), - ".group_0300": ("TimelineCommentEvent",), - ".group_0301": ("TimelineCrossReferencedEvent",), - ".group_0302": ("TimelineCrossReferencedEventPropSource",), - ".group_0303": ( + ".group_0303": ("Label",), + ".group_0304": ("TimelineCommentEvent",), + ".group_0305": ("TimelineCrossReferencedEvent",), + ".group_0306": ("TimelineCrossReferencedEventPropSource",), + ".group_0307": ( "TimelineCommittedEvent", "TimelineCommittedEventPropAuthor", "TimelineCommittedEventPropCommitter", @@ -9249,13 +9413,13 @@ "TimelineCommittedEventPropParentsItems", "TimelineCommittedEventPropVerification", ), - ".group_0304": ( + ".group_0308": ( "TimelineReviewedEvent", "TimelineReviewedEventPropLinks", "TimelineReviewedEventPropLinksPropHtml", "TimelineReviewedEventPropLinksPropPullRequest", ), - ".group_0305": ( + ".group_0309": ( "PullRequestReviewComment", "PullRequestReviewCommentPropLinks", "PullRequestReviewCommentPropLinksPropSelf", @@ -9263,35 +9427,35 @@ "PullRequestReviewCommentPropLinksPropPullRequest", "TimelineLineCommentedEvent", ), - ".group_0306": ("TimelineAssignedIssueEvent",), - ".group_0307": ("TimelineUnassignedIssueEvent",), - ".group_0308": ("StateChangeIssueEvent",), - ".group_0309": ("DeployKey",), - ".group_0310": ("Language",), - ".group_0311": ( + ".group_0310": ("TimelineAssignedIssueEvent",), + ".group_0311": ("TimelineUnassignedIssueEvent",), + ".group_0312": ("StateChangeIssueEvent",), + ".group_0313": ("DeployKey",), + ".group_0314": ("Language",), + ".group_0315": ( "LicenseContent", "LicenseContentPropLinks", ), - ".group_0312": ("MergedUpstream",), - ".group_0313": ( + ".group_0316": ("MergedUpstream",), + ".group_0317": ( "Page", "PagesSourceHash", "PagesHttpsCertificate", ), - ".group_0314": ( + ".group_0318": ( "PageBuild", "PageBuildPropError", ), - ".group_0315": ("PageBuildStatus",), - ".group_0316": ("PageDeployment",), - ".group_0317": ("PagesDeploymentStatus",), - ".group_0318": ( + ".group_0319": ("PageBuildStatus",), + ".group_0320": ("PageDeployment",), + ".group_0321": ("PagesDeploymentStatus",), + ".group_0322": ( "PagesHealthCheck", "PagesHealthCheckPropDomain", "PagesHealthCheckPropAltDomain", ), - ".group_0319": ("PullRequest",), - ".group_0320": ( + ".group_0323": ("PullRequest",), + ".group_0324": ( "PullRequestPropLabelsItems", "PullRequestPropHead", "PullRequestPropHeadPropRepo", @@ -9300,123 +9464,123 @@ "PullRequestPropHeadPropRepoPropLicense", "PullRequestPropHeadPropUser", ), - ".group_0321": ( + ".group_0325": ( "PullRequestPropBase", "PullRequestPropBasePropUser", ), - ".group_0322": ( + ".group_0326": ( "PullRequestPropBasePropRepo", "PullRequestPropBasePropRepoPropOwner", "PullRequestPropBasePropRepoPropPermissions", ), - ".group_0323": ("PullRequestPropLinks",), - ".group_0324": ("PullRequestMergeResult",), - ".group_0325": ("PullRequestReviewRequest",), - ".group_0326": ( + ".group_0327": ("PullRequestPropLinks",), + ".group_0328": ("PullRequestMergeResult",), + ".group_0329": ("PullRequestReviewRequest",), + ".group_0330": ( "PullRequestReview", "PullRequestReviewPropLinks", "PullRequestReviewPropLinksPropHtml", "PullRequestReviewPropLinksPropPullRequest", ), - ".group_0327": ("ReviewComment",), - ".group_0328": ("ReviewCommentPropLinks",), - ".group_0329": ("ReleaseAsset",), - ".group_0330": ("Release",), - ".group_0331": ("ReleaseNotesContent",), - ".group_0332": ("RepositoryRuleRulesetInfo",), - ".group_0333": ("RepositoryRuleDetailedOneof0",), - ".group_0334": ("RepositoryRuleDetailedOneof1",), - ".group_0335": ("RepositoryRuleDetailedOneof2",), - ".group_0336": ("RepositoryRuleDetailedOneof3",), - ".group_0337": ("RepositoryRuleDetailedOneof4",), - ".group_0338": ("RepositoryRuleDetailedOneof5",), - ".group_0339": ("RepositoryRuleDetailedOneof6",), - ".group_0340": ("RepositoryRuleDetailedOneof7",), - ".group_0341": ("RepositoryRuleDetailedOneof8",), - ".group_0342": ("RepositoryRuleDetailedOneof9",), - ".group_0343": ("RepositoryRuleDetailedOneof10",), - ".group_0344": ("RepositoryRuleDetailedOneof11",), - ".group_0345": ("RepositoryRuleDetailedOneof12",), - ".group_0346": ("RepositoryRuleDetailedOneof13",), - ".group_0347": ("RepositoryRuleDetailedOneof14",), - ".group_0348": ("RepositoryRuleDetailedOneof15",), - ".group_0349": ("SecretScanningAlert",), - ".group_0350": ( + ".group_0331": ("ReviewComment",), + ".group_0332": ("ReviewCommentPropLinks",), + ".group_0333": ("ReleaseAsset",), + ".group_0334": ("Release",), + ".group_0335": ("ReleaseNotesContent",), + ".group_0336": ("RepositoryRuleRulesetInfo",), + ".group_0337": ("RepositoryRuleDetailedOneof0",), + ".group_0338": ("RepositoryRuleDetailedOneof1",), + ".group_0339": ("RepositoryRuleDetailedOneof2",), + ".group_0340": ("RepositoryRuleDetailedOneof3",), + ".group_0341": ("RepositoryRuleDetailedOneof4",), + ".group_0342": ("RepositoryRuleDetailedOneof5",), + ".group_0343": ("RepositoryRuleDetailedOneof6",), + ".group_0344": ("RepositoryRuleDetailedOneof7",), + ".group_0345": ("RepositoryRuleDetailedOneof8",), + ".group_0346": ("RepositoryRuleDetailedOneof9",), + ".group_0347": ("RepositoryRuleDetailedOneof10",), + ".group_0348": ("RepositoryRuleDetailedOneof11",), + ".group_0349": ("RepositoryRuleDetailedOneof12",), + ".group_0350": ("RepositoryRuleDetailedOneof13",), + ".group_0351": ("RepositoryRuleDetailedOneof14",), + ".group_0352": ("RepositoryRuleDetailedOneof15",), + ".group_0353": ("SecretScanningAlert",), + ".group_0354": ( "RepositoryAdvisoryCreate", "RepositoryAdvisoryCreatePropCreditsItems", "RepositoryAdvisoryCreatePropVulnerabilitiesItems", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", ), - ".group_0351": ( + ".group_0355": ( "PrivateVulnerabilityReportCreate", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", ), - ".group_0352": ( + ".group_0356": ( "RepositoryAdvisoryUpdate", "RepositoryAdvisoryUpdatePropCreditsItems", "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", ), - ".group_0353": ("Stargazer",), - ".group_0354": ("CommitActivity",), - ".group_0355": ( + ".group_0357": ("Stargazer",), + ".group_0358": ("CommitActivity",), + ".group_0359": ( "ContributorActivity", "ContributorActivityPropWeeksItems", ), - ".group_0356": ("ParticipationStats",), - ".group_0357": ("RepositorySubscription",), - ".group_0358": ( + ".group_0360": ("ParticipationStats",), + ".group_0361": ("RepositorySubscription",), + ".group_0362": ( "Tag", "TagPropCommit", ), - ".group_0359": ("TagProtection",), - ".group_0360": ("Topic",), - ".group_0361": ("Traffic",), - ".group_0362": ("CloneTraffic",), - ".group_0363": ("ContentTraffic",), - ".group_0364": ("ReferrerTraffic",), - ".group_0365": ("ViewTraffic",), - ".group_0366": ( + ".group_0363": ("TagProtection",), + ".group_0364": ("Topic",), + ".group_0365": ("Traffic",), + ".group_0366": ("CloneTraffic",), + ".group_0367": ("ContentTraffic",), + ".group_0368": ("ReferrerTraffic",), + ".group_0369": ("ViewTraffic",), + ".group_0370": ( "GroupResponse", "GroupResponsePropMembersItems", ), - ".group_0367": ("Meta",), - ".group_0368": ( + ".group_0371": ("Meta",), + ".group_0372": ( "ScimEnterpriseGroupResponse", "ScimEnterpriseGroupResponseMergedMembers", "ScimEnterpriseGroupList", ), - ".group_0369": ( + ".group_0373": ( "ScimEnterpriseGroupResponseAllof1", "ScimEnterpriseGroupResponseAllof1PropMembersItems", ), - ".group_0370": ( + ".group_0374": ( "Group", "GroupPropMembersItems", ), - ".group_0371": ( + ".group_0375": ( "PatchSchema", "PatchSchemaPropOperationsItems", ), - ".group_0372": ( + ".group_0376": ( "UserNameResponse", "UserEmailsResponseItems", ), - ".group_0373": ("UserRoleItems",), - ".group_0374": ("UserResponse",), - ".group_0375": ( + ".group_0377": ("UserRoleItems",), + ".group_0378": ("UserResponse",), + ".group_0379": ( "ScimEnterpriseUserResponse", "ScimEnterpriseUserList", ), - ".group_0376": ("ScimEnterpriseUserResponseAllof1",), - ".group_0377": ("ScimEnterpriseUserResponseAllof1PropGroupsItems",), - ".group_0378": ( + ".group_0380": ("ScimEnterpriseUserResponseAllof1",), + ".group_0381": ("ScimEnterpriseUserResponseAllof1PropGroupsItems",), + ".group_0382": ( "User", "UserName", "UserEmailsItems", ), - ".group_0379": ( + ".group_0383": ( "ScimUserList", "ScimUser", "ScimUserPropName", @@ -9427,40 +9591,40 @@ "ScimUserPropOperationsItems", "ScimUserPropOperationsItemsPropValueOneof1", ), - ".group_0380": ( + ".group_0384": ( "SearchResultTextMatchesItems", "SearchResultTextMatchesItemsPropMatchesItems", ), - ".group_0381": ( + ".group_0385": ( "CodeSearchResultItem", "SearchCodeGetResponse200", ), - ".group_0382": ( + ".group_0386": ( "CommitSearchResultItem", "CommitSearchResultItemPropParentsItems", "SearchCommitsGetResponse200", ), - ".group_0383": ( + ".group_0387": ( "CommitSearchResultItemPropCommit", "CommitSearchResultItemPropCommitPropAuthor", "CommitSearchResultItemPropCommitPropTree", ), - ".group_0384": ( + ".group_0388": ( "IssueSearchResultItem", "IssueSearchResultItemPropLabelsItems", "IssueSearchResultItemPropPullRequest", "SearchIssuesGetResponse200", ), - ".group_0385": ( + ".group_0389": ( "LabelSearchResultItem", "SearchLabelsGetResponse200", ), - ".group_0386": ( + ".group_0390": ( "RepoSearchResultItem", "RepoSearchResultItemPropPermissions", "SearchRepositoriesGetResponse200", ), - ".group_0387": ( + ".group_0391": ( "TopicSearchResultItem", "TopicSearchResultItemPropRelatedItems", "TopicSearchResultItemPropRelatedItemsPropTopicRelation", @@ -9468,45 +9632,45 @@ "TopicSearchResultItemPropAliasesItemsPropTopicRelation", "SearchTopicsGetResponse200", ), - ".group_0388": ( + ".group_0392": ( "UserSearchResultItem", "SearchUsersGetResponse200", ), - ".group_0389": ( + ".group_0393": ( "PrivateUser", "PrivateUserPropPlan", ), - ".group_0390": ("CodespacesUserPublicKey",), - ".group_0391": ("CodespaceExportDetails",), - ".group_0392": ( + ".group_0394": ("CodespacesUserPublicKey",), + ".group_0395": ("CodespaceExportDetails",), + ".group_0396": ( "CodespaceWithFullRepository", "CodespaceWithFullRepositoryPropGitStatus", "CodespaceWithFullRepositoryPropRuntimeConstraints", ), - ".group_0393": ("Email",), - ".group_0394": ( + ".group_0397": ("Email",), + ".group_0398": ( "GpgKey", "GpgKeyPropEmailsItems", "GpgKeyPropSubkeysItems", "GpgKeyPropSubkeysItemsPropEmailsItems", ), - ".group_0395": ("Key",), - ".group_0396": ( + ".group_0399": ("Key",), + ".group_0400": ( "UserMarketplacePurchase", "MarketplaceAccount", ), - ".group_0397": ("SocialAccount",), - ".group_0398": ("SshSigningKey",), - ".group_0399": ("StarredRepository",), - ".group_0400": ( + ".group_0401": ("SocialAccount",), + ".group_0402": ("SshSigningKey",), + ".group_0403": ("StarredRepository",), + ".group_0404": ( "Hovercard", "HovercardPropContextsItems", ), - ".group_0401": ("KeySimple",), - ".group_0402": ("EnterpriseWebhooks",), - ".group_0403": ("SimpleInstallation",), - ".group_0404": ("OrganizationSimpleWebhooks",), - ".group_0405": ( + ".group_0405": ("KeySimple",), + ".group_0406": ("EnterpriseWebhooks",), + ".group_0407": ("SimpleInstallation",), + ".group_0408": ("OrganizationSimpleWebhooks",), + ".group_0409": ( "RepositoryWebhooks", "RepositoryWebhooksPropPermissions", "RepositoryWebhooksPropCustomProperties", @@ -9514,10 +9678,10 @@ "RepositoryWebhooksPropTemplateRepositoryPropOwner", "RepositoryWebhooksPropTemplateRepositoryPropPermissions", ), - ".group_0406": ("SimpleUserWebhooks",), - ".group_0407": ("WebhooksRule",), - ".group_0408": ("ExemptionResponse",), - ".group_0409": ( + ".group_0410": ("SimpleUserWebhooks",), + ".group_0411": ("WebhooksRule",), + ".group_0412": ("ExemptionResponse",), + ".group_0413": ( "ExemptionRequest", "ExemptionRequestSecretScanningMetadata", "ExemptionRequestPushRulesetBypass", @@ -9525,50 +9689,50 @@ "ExemptionRequestSecretScanning", "ExemptionRequestSecretScanningPropDataItems", ), - ".group_0410": ("SimpleCheckSuite",), - ".group_0411": ( + ".group_0414": ("SimpleCheckSuite",), + ".group_0415": ( "CheckRunWithSimpleCheckSuite", "CheckRunWithSimpleCheckSuitePropOutput", ), - ".group_0412": ("WebhooksDeployKey",), - ".group_0413": ("WebhooksWorkflow",), - ".group_0414": ( + ".group_0416": ("WebhooksDeployKey",), + ".group_0417": ("WebhooksWorkflow",), + ".group_0418": ( "WebhooksApprover", "WebhooksReviewersItems", "WebhooksReviewersItemsPropReviewer", ), - ".group_0415": ("WebhooksWorkflowJobRun",), - ".group_0416": ("WebhooksUser",), - ".group_0417": ( + ".group_0419": ("WebhooksWorkflowJobRun",), + ".group_0420": ("WebhooksUser",), + ".group_0421": ( "WebhooksAnswer", "WebhooksAnswerPropReactions", "WebhooksAnswerPropUser", ), - ".group_0418": ( + ".group_0422": ( "Discussion", "DiscussionPropAnswerChosenBy", "DiscussionPropCategory", "DiscussionPropReactions", "DiscussionPropUser", ), - ".group_0419": ( + ".group_0423": ( "WebhooksComment", "WebhooksCommentPropReactions", "WebhooksCommentPropUser", ), - ".group_0420": ("WebhooksLabel",), - ".group_0421": ("WebhooksRepositoriesItems",), - ".group_0422": ("WebhooksRepositoriesAddedItems",), - ".group_0423": ( + ".group_0424": ("WebhooksLabel",), + ".group_0425": ("WebhooksRepositoriesItems",), + ".group_0426": ("WebhooksRepositoriesAddedItems",), + ".group_0427": ( "WebhooksIssueComment", "WebhooksIssueCommentPropReactions", "WebhooksIssueCommentPropUser", ), - ".group_0424": ( + ".group_0428": ( "WebhooksChanges", "WebhooksChangesPropBody", ), - ".group_0425": ( + ".group_0429": ( "WebhooksIssue", "WebhooksIssuePropAssignee", "WebhooksIssuePropAssigneesItems", @@ -9582,11 +9746,11 @@ "WebhooksIssuePropReactions", "WebhooksIssuePropUser", ), - ".group_0426": ( + ".group_0430": ( "WebhooksMilestone", "WebhooksMilestonePropCreator", ), - ".group_0427": ( + ".group_0431": ( "WebhooksIssue2", "WebhooksIssue2PropAssignee", "WebhooksIssue2PropAssigneesItems", @@ -9600,31 +9764,31 @@ "WebhooksIssue2PropReactions", "WebhooksIssue2PropUser", ), - ".group_0428": ("WebhooksUserMannequin",), - ".group_0429": ( + ".group_0432": ("WebhooksUserMannequin",), + ".group_0433": ( "WebhooksMarketplacePurchase", "WebhooksMarketplacePurchasePropAccount", "WebhooksMarketplacePurchasePropPlan", ), - ".group_0430": ( + ".group_0434": ( "WebhooksPreviousMarketplacePurchase", "WebhooksPreviousMarketplacePurchasePropAccount", "WebhooksPreviousMarketplacePurchasePropPlan", ), - ".group_0431": ( + ".group_0435": ( "WebhooksTeam", "WebhooksTeamPropParent", ), - ".group_0432": ("MergeGroup",), - ".group_0433": ( + ".group_0436": ("MergeGroup",), + ".group_0437": ( "WebhooksMilestone3", "WebhooksMilestone3PropCreator", ), - ".group_0434": ( + ".group_0438": ( "WebhooksMembership", "WebhooksMembershipPropUser", ), - ".group_0435": ( + ".group_0439": ( "PersonalAccessTokenRequest", "PersonalAccessTokenRequestPropRepositoriesItems", "PersonalAccessTokenRequestPropPermissionsAdded", @@ -9640,24 +9804,25 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepository", "PersonalAccessTokenRequestPropPermissionsResultPropOther", ), - ".group_0436": ( + ".group_0440": ( "WebhooksProjectCard", "WebhooksProjectCardPropCreator", ), - ".group_0437": ( + ".group_0441": ( "WebhooksProject", "WebhooksProjectPropCreator", ), - ".group_0438": ("WebhooksProjectColumn",), - ".group_0439": ("ProjectsV2",), - ".group_0440": ( + ".group_0442": ("WebhooksProjectColumn",), + ".group_0443": ("ProjectsV2",), + ".group_0444": ( "WebhooksProjectChanges", "WebhooksProjectChangesPropArchivedAt", ), - ".group_0441": ("ProjectsV2Item",), - ".group_0442": ("PullRequestWebhook",), - ".group_0443": ("PullRequestWebhookAllof1",), - ".group_0444": ( + ".group_0445": ("ProjectsV2Item",), + ".group_0446": ("ProjectsV2StatusUpdate",), + ".group_0447": ("PullRequestWebhook",), + ".group_0448": ("PullRequestWebhookAllof1",), + ".group_0449": ( "WebhooksPullRequest5", "WebhooksPullRequest5PropAssignee", "WebhooksPullRequest5PropAssigneesItems", @@ -9695,7 +9860,7 @@ "WebhooksPullRequest5PropRequestedTeamsItems", "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", ), - ".group_0445": ( + ".group_0450": ( "WebhooksReviewComment", "WebhooksReviewCommentPropReactions", "WebhooksReviewCommentPropUser", @@ -9704,33 +9869,33 @@ "WebhooksReviewCommentPropLinksPropPullRequest", "WebhooksReviewCommentPropLinksPropSelf", ), - ".group_0446": ( + ".group_0451": ( "WebhooksReview", "WebhooksReviewPropUser", "WebhooksReviewPropLinks", "WebhooksReviewPropLinksPropHtml", "WebhooksReviewPropLinksPropPullRequest", ), - ".group_0447": ( + ".group_0452": ( "WebhooksRelease", "WebhooksReleasePropAuthor", "WebhooksReleasePropReactions", "WebhooksReleasePropAssetsItems", "WebhooksReleasePropAssetsItemsPropUploader", ), - ".group_0448": ( + ".group_0453": ( "WebhooksRelease1", "WebhooksRelease1PropAssetsItems", "WebhooksRelease1PropAssetsItemsPropUploader", "WebhooksRelease1PropAuthor", "WebhooksRelease1PropReactions", ), - ".group_0449": ( + ".group_0454": ( "WebhooksAlert", "WebhooksAlertPropDismisser", ), - ".group_0450": ("SecretScanningAlertWebhook",), - ".group_0451": ( + ".group_0455": ("SecretScanningAlertWebhook",), + ".group_0456": ( "WebhooksSecurityAdvisory", "WebhooksSecurityAdvisoryPropCvss", "WebhooksSecurityAdvisoryPropCwesItems", @@ -9740,27 +9905,27 @@ "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0452": ( + ".group_0457": ( "WebhooksSponsorship", "WebhooksSponsorshipPropMaintainer", "WebhooksSponsorshipPropSponsor", "WebhooksSponsorshipPropSponsorable", "WebhooksSponsorshipPropTier", ), - ".group_0453": ( + ".group_0458": ( "WebhooksChanges8", "WebhooksChanges8PropTier", "WebhooksChanges8PropTierPropFrom", ), - ".group_0454": ( + ".group_0459": ( "WebhooksTeam1", "WebhooksTeam1PropParent", ), - ".group_0455": ("WebhookBranchProtectionConfigurationDisabled",), - ".group_0456": ("WebhookBranchProtectionConfigurationEnabled",), - ".group_0457": ("WebhookBranchProtectionRuleCreated",), - ".group_0458": ("WebhookBranchProtectionRuleDeleted",), - ".group_0459": ( + ".group_0460": ("WebhookBranchProtectionConfigurationDisabled",), + ".group_0461": ("WebhookBranchProtectionConfigurationEnabled",), + ".group_0462": ("WebhookBranchProtectionRuleCreated",), + ".group_0463": ("WebhookBranchProtectionRuleDeleted",), + ".group_0464": ( "WebhookBranchProtectionRuleEdited", "WebhookBranchProtectionRuleEditedPropChanges", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", @@ -9768,26 +9933,30 @@ "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", ), - ".group_0460": ("WebhookExemptionRequestCancelled",), - ".group_0461": ("WebhookExemptionRequestCompleted",), - ".group_0462": ("WebhookExemptionRequestCreated",), - ".group_0463": ("WebhookExemptionRequestResponseDismissed",), - ".group_0464": ("WebhookExemptionRequestResponseSubmitted",), - ".group_0465": ("WebhookCheckRunCompleted",), - ".group_0466": ("WebhookCheckRunCompletedFormEncoded",), - ".group_0467": ("WebhookCheckRunCreated",), - ".group_0468": ("WebhookCheckRunCreatedFormEncoded",), - ".group_0469": ( + ".group_0465": ("WebhookExemptionRequestCancelled",), + ".group_0466": ("WebhookExemptionRequestCompleted",), + ".group_0467": ("WebhookExemptionRequestCreated",), + ".group_0468": ("WebhookExemptionRequestResponseDismissed",), + ".group_0469": ("WebhookExemptionRequestResponseSubmitted",), + ".group_0470": ("WebhookCheckRunCompleted",), + ".group_0471": ("WebhookCheckRunCompletedFormEncoded",), + ".group_0472": ("WebhookCheckRunCreated",), + ".group_0473": ("WebhookCheckRunCreatedFormEncoded",), + ".group_0474": ( "WebhookCheckRunRequestedAction", "WebhookCheckRunRequestedActionPropRequestedAction", ), - ".group_0470": ("WebhookCheckRunRequestedActionFormEncoded",), - ".group_0471": ("WebhookCheckRunRerequested",), - ".group_0472": ("WebhookCheckRunRerequestedFormEncoded",), - ".group_0473": ( + ".group_0475": ("WebhookCheckRunRequestedActionFormEncoded",), + ".group_0476": ("WebhookCheckRunRerequested",), + ".group_0477": ("WebhookCheckRunRerequestedFormEncoded",), + ".group_0478": ( "WebhookCheckSuiteCompleted", "WebhookCheckSuiteCompletedPropCheckSuite", "WebhookCheckSuiteCompletedPropCheckSuitePropApp", @@ -9802,7 +9971,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0474": ( + ".group_0479": ( "WebhookCheckSuiteRequested", "WebhookCheckSuiteRequestedPropCheckSuite", "WebhookCheckSuiteRequestedPropCheckSuitePropApp", @@ -9817,7 +9986,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0475": ( + ".group_0480": ( "WebhookCheckSuiteRerequested", "WebhookCheckSuiteRerequestedPropCheckSuite", "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", @@ -9832,7 +10001,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0476": ( + ".group_0481": ( "WebhookCodeScanningAlertAppearedInBranch", "WebhookCodeScanningAlertAppearedInBranchPropAlert", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", @@ -9842,7 +10011,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", ), - ".group_0477": ( + ".group_0482": ( "WebhookCodeScanningAlertClosedByUser", "WebhookCodeScanningAlertClosedByUserPropAlert", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", @@ -9852,7 +10021,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", ), - ".group_0478": ( + ".group_0483": ( "WebhookCodeScanningAlertCreated", "WebhookCodeScanningAlertCreatedPropAlert", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", @@ -9861,7 +10030,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRule", "WebhookCodeScanningAlertCreatedPropAlertPropTool", ), - ".group_0479": ( + ".group_0484": ( "WebhookCodeScanningAlertFixed", "WebhookCodeScanningAlertFixedPropAlert", "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", @@ -9871,7 +10040,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRule", "WebhookCodeScanningAlertFixedPropAlertPropTool", ), - ".group_0480": ( + ".group_0485": ( "WebhookCodeScanningAlertReopened", "WebhookCodeScanningAlertReopenedPropAlert", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", @@ -9881,7 +10050,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRule", "WebhookCodeScanningAlertReopenedPropAlertPropTool", ), - ".group_0481": ( + ".group_0486": ( "WebhookCodeScanningAlertReopenedByUser", "WebhookCodeScanningAlertReopenedByUserPropAlert", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", @@ -9890,31 +10059,31 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", ), - ".group_0482": ( + ".group_0487": ( "WebhookCommitCommentCreated", "WebhookCommitCommentCreatedPropComment", "WebhookCommitCommentCreatedPropCommentPropReactions", "WebhookCommitCommentCreatedPropCommentPropUser", ), - ".group_0483": ("WebhookCreate",), - ".group_0484": ("WebhookCustomPropertyCreated",), - ".group_0485": ( + ".group_0488": ("WebhookCreate",), + ".group_0489": ("WebhookCustomPropertyCreated",), + ".group_0490": ( "WebhookCustomPropertyDeleted", "WebhookCustomPropertyDeletedPropDefinition", ), - ".group_0486": ("WebhookCustomPropertyUpdated",), - ".group_0487": ("WebhookCustomPropertyValuesUpdated",), - ".group_0488": ("WebhookDelete",), - ".group_0489": ("WebhookDependabotAlertAutoDismissed",), - ".group_0490": ("WebhookDependabotAlertAutoReopened",), - ".group_0491": ("WebhookDependabotAlertCreated",), - ".group_0492": ("WebhookDependabotAlertDismissed",), - ".group_0493": ("WebhookDependabotAlertFixed",), - ".group_0494": ("WebhookDependabotAlertReintroduced",), - ".group_0495": ("WebhookDependabotAlertReopened",), - ".group_0496": ("WebhookDeployKeyCreated",), - ".group_0497": ("WebhookDeployKeyDeleted",), - ".group_0498": ( + ".group_0491": ("WebhookCustomPropertyUpdated",), + ".group_0492": ("WebhookCustomPropertyValuesUpdated",), + ".group_0493": ("WebhookDelete",), + ".group_0494": ("WebhookDependabotAlertAutoDismissed",), + ".group_0495": ("WebhookDependabotAlertAutoReopened",), + ".group_0496": ("WebhookDependabotAlertCreated",), + ".group_0497": ("WebhookDependabotAlertDismissed",), + ".group_0498": ("WebhookDependabotAlertFixed",), + ".group_0499": ("WebhookDependabotAlertReintroduced",), + ".group_0500": ("WebhookDependabotAlertReopened",), + ".group_0501": ("WebhookDeployKeyCreated",), + ".group_0502": ("WebhookDeployKeyDeleted",), + ".group_0503": ( "WebhookDeploymentCreated", "WebhookDeploymentCreatedPropDeployment", "WebhookDeploymentCreatedPropDeploymentPropCreator", @@ -9936,8 +10105,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0499": ("WebhookDeploymentProtectionRuleRequested",), - ".group_0500": ( + ".group_0504": ("WebhookDeploymentProtectionRuleRequested",), + ".group_0505": ( "WebhookDeploymentReviewApproved", "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", "WebhookDeploymentReviewApprovedPropWorkflowRun", @@ -9955,7 +10124,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0501": ( + ".group_0506": ( "WebhookDeploymentReviewRejected", "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", "WebhookDeploymentReviewRejectedPropWorkflowRun", @@ -9973,7 +10142,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0502": ( + ".group_0507": ( "WebhookDeploymentReviewRequested", "WebhookDeploymentReviewRequestedPropWorkflowJobRun", "WebhookDeploymentReviewRequestedPropReviewersItems", @@ -9993,7 +10162,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0503": ( + ".group_0508": ( "WebhookDeploymentStatusCreated", "WebhookDeploymentStatusCreatedPropCheckRun", "WebhookDeploymentStatusCreatedPropDeployment", @@ -10021,116 +10190,116 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0504": ("WebhookDiscussionAnswered",), - ".group_0505": ( + ".group_0509": ("WebhookDiscussionAnswered",), + ".group_0510": ( "WebhookDiscussionCategoryChanged", "WebhookDiscussionCategoryChangedPropChanges", "WebhookDiscussionCategoryChangedPropChangesPropCategory", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", ), - ".group_0506": ("WebhookDiscussionClosed",), - ".group_0507": ("WebhookDiscussionCommentCreated",), - ".group_0508": ("WebhookDiscussionCommentDeleted",), - ".group_0509": ( + ".group_0511": ("WebhookDiscussionClosed",), + ".group_0512": ("WebhookDiscussionCommentCreated",), + ".group_0513": ("WebhookDiscussionCommentDeleted",), + ".group_0514": ( "WebhookDiscussionCommentEdited", "WebhookDiscussionCommentEditedPropChanges", "WebhookDiscussionCommentEditedPropChangesPropBody", ), - ".group_0510": ("WebhookDiscussionCreated",), - ".group_0511": ("WebhookDiscussionDeleted",), - ".group_0512": ( + ".group_0515": ("WebhookDiscussionCreated",), + ".group_0516": ("WebhookDiscussionDeleted",), + ".group_0517": ( "WebhookDiscussionEdited", "WebhookDiscussionEditedPropChanges", "WebhookDiscussionEditedPropChangesPropBody", "WebhookDiscussionEditedPropChangesPropTitle", ), - ".group_0513": ("WebhookDiscussionLabeled",), - ".group_0514": ("WebhookDiscussionLocked",), - ".group_0515": ("WebhookDiscussionPinned",), - ".group_0516": ("WebhookDiscussionReopened",), - ".group_0517": ("WebhookDiscussionTransferred",), - ".group_0518": ("WebhookDiscussionTransferredPropChanges",), - ".group_0519": ("WebhookDiscussionUnanswered",), - ".group_0520": ("WebhookDiscussionUnlabeled",), - ".group_0521": ("WebhookDiscussionUnlocked",), - ".group_0522": ("WebhookDiscussionUnpinned",), - ".group_0523": ("WebhookFork",), - ".group_0524": ( + ".group_0518": ("WebhookDiscussionLabeled",), + ".group_0519": ("WebhookDiscussionLocked",), + ".group_0520": ("WebhookDiscussionPinned",), + ".group_0521": ("WebhookDiscussionReopened",), + ".group_0522": ("WebhookDiscussionTransferred",), + ".group_0523": ("WebhookDiscussionTransferredPropChanges",), + ".group_0524": ("WebhookDiscussionUnanswered",), + ".group_0525": ("WebhookDiscussionUnlabeled",), + ".group_0526": ("WebhookDiscussionUnlocked",), + ".group_0527": ("WebhookDiscussionUnpinned",), + ".group_0528": ("WebhookFork",), + ".group_0529": ( "WebhookForkPropForkee", "WebhookForkPropForkeeMergedLicense", "WebhookForkPropForkeeMergedOwner", ), - ".group_0525": ( + ".group_0530": ( "WebhookForkPropForkeeAllof0", "WebhookForkPropForkeeAllof0PropLicense", "WebhookForkPropForkeeAllof0PropOwner", ), - ".group_0526": ("WebhookForkPropForkeeAllof0PropPermissions",), - ".group_0527": ( + ".group_0531": ("WebhookForkPropForkeeAllof0PropPermissions",), + ".group_0532": ( "WebhookForkPropForkeeAllof1", "WebhookForkPropForkeeAllof1PropLicense", "WebhookForkPropForkeeAllof1PropOwner", ), - ".group_0528": ("WebhookGithubAppAuthorizationRevoked",), - ".group_0529": ( + ".group_0533": ("WebhookGithubAppAuthorizationRevoked",), + ".group_0534": ( "WebhookGollum", "WebhookGollumPropPagesItems", ), - ".group_0530": ("WebhookInstallationCreated",), - ".group_0531": ("WebhookInstallationDeleted",), - ".group_0532": ("WebhookInstallationNewPermissionsAccepted",), - ".group_0533": ( + ".group_0535": ("WebhookInstallationCreated",), + ".group_0536": ("WebhookInstallationDeleted",), + ".group_0537": ("WebhookInstallationNewPermissionsAccepted",), + ".group_0538": ( "WebhookInstallationRepositoriesAdded", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", ), - ".group_0534": ( + ".group_0539": ( "WebhookInstallationRepositoriesRemoved", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", ), - ".group_0535": ("WebhookInstallationSuspend",), - ".group_0536": ( + ".group_0540": ("WebhookInstallationSuspend",), + ".group_0541": ( "WebhookInstallationTargetRenamed", "WebhookInstallationTargetRenamedPropAccount", "WebhookInstallationTargetRenamedPropChanges", "WebhookInstallationTargetRenamedPropChangesPropLogin", "WebhookInstallationTargetRenamedPropChangesPropSlug", ), - ".group_0537": ("WebhookInstallationUnsuspend",), - ".group_0538": ("WebhookIssueCommentCreated",), - ".group_0539": ( + ".group_0542": ("WebhookInstallationUnsuspend",), + ".group_0543": ("WebhookIssueCommentCreated",), + ".group_0544": ( "WebhookIssueCommentCreatedPropComment", "WebhookIssueCommentCreatedPropCommentPropReactions", "WebhookIssueCommentCreatedPropCommentPropUser", ), - ".group_0540": ( + ".group_0545": ( "WebhookIssueCommentCreatedPropIssue", "WebhookIssueCommentCreatedPropIssueMergedAssignees", "WebhookIssueCommentCreatedPropIssueMergedReactions", "WebhookIssueCommentCreatedPropIssueMergedUser", ), - ".group_0541": ( + ".group_0546": ( "WebhookIssueCommentCreatedPropIssueAllof0", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", "WebhookIssueCommentCreatedPropIssueAllof0PropUser", ), - ".group_0542": ( + ".group_0547": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", ), - ".group_0543": ( + ".group_0548": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0544": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), - ".group_0545": ( + ".group_0549": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), + ".group_0550": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0546": ( + ".group_0551": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0547": ( + ".group_0552": ( "WebhookIssueCommentCreatedPropIssueAllof1", "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", @@ -10140,40 +10309,40 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", "WebhookIssueCommentCreatedPropIssueAllof1PropUser", ), - ".group_0548": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), - ".group_0549": ( + ".group_0553": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), + ".group_0554": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp", ), - ".group_0550": ("WebhookIssueCommentDeleted",), - ".group_0551": ( + ".group_0555": ("WebhookIssueCommentDeleted",), + ".group_0556": ( "WebhookIssueCommentDeletedPropIssue", "WebhookIssueCommentDeletedPropIssueMergedAssignees", "WebhookIssueCommentDeletedPropIssueMergedReactions", "WebhookIssueCommentDeletedPropIssueMergedUser", ), - ".group_0552": ( + ".group_0557": ( "WebhookIssueCommentDeletedPropIssueAllof0", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", "WebhookIssueCommentDeletedPropIssueAllof0PropUser", ), - ".group_0553": ( + ".group_0558": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", ), - ".group_0554": ( + ".group_0559": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0555": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), - ".group_0556": ( + ".group_0560": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), + ".group_0561": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0557": ( + ".group_0562": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0558": ( + ".group_0563": ( "WebhookIssueCommentDeletedPropIssueAllof1", "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", @@ -10183,40 +10352,40 @@ "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", "WebhookIssueCommentDeletedPropIssueAllof1PropUser", ), - ".group_0559": ("WebhookIssueCommentDeletedPropIssueMergedMilestone",), - ".group_0560": ( + ".group_0564": ("WebhookIssueCommentDeletedPropIssueMergedMilestone",), + ".group_0565": ( "WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp", ), - ".group_0561": ("WebhookIssueCommentEdited",), - ".group_0562": ( + ".group_0566": ("WebhookIssueCommentEdited",), + ".group_0567": ( "WebhookIssueCommentEditedPropIssue", "WebhookIssueCommentEditedPropIssueMergedAssignees", "WebhookIssueCommentEditedPropIssueMergedReactions", "WebhookIssueCommentEditedPropIssueMergedUser", ), - ".group_0563": ( + ".group_0568": ( "WebhookIssueCommentEditedPropIssueAllof0", "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentEditedPropIssueAllof0PropReactions", "WebhookIssueCommentEditedPropIssueAllof0PropUser", ), - ".group_0564": ( + ".group_0569": ( "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", ), - ".group_0565": ( + ".group_0570": ( "WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0566": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",), - ".group_0567": ( + ".group_0571": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",), + ".group_0572": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0568": ( + ".group_0573": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0569": ( + ".group_0574": ( "WebhookIssueCommentEditedPropIssueAllof1", "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", @@ -10226,13 +10395,13 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactions", "WebhookIssueCommentEditedPropIssueAllof1PropUser", ), - ".group_0570": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), - ".group_0571": ( + ".group_0575": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), + ".group_0576": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp", ), - ".group_0572": ("WebhookIssuesAssigned",), - ".group_0573": ("WebhookIssuesClosed",), - ".group_0574": ( + ".group_0577": ("WebhookIssuesAssigned",), + ".group_0578": ("WebhookIssuesClosed",), + ".group_0579": ( "WebhookIssuesClosedPropIssue", "WebhookIssuesClosedPropIssueMergedAssignee", "WebhookIssuesClosedPropIssueMergedAssignees", @@ -10240,7 +10409,7 @@ "WebhookIssuesClosedPropIssueMergedReactions", "WebhookIssuesClosedPropIssueMergedUser", ), - ".group_0575": ( + ".group_0580": ( "WebhookIssuesClosedPropIssueAllof0", "WebhookIssuesClosedPropIssueAllof0PropAssignee", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", @@ -10248,15 +10417,15 @@ "WebhookIssuesClosedPropIssueAllof0PropReactions", "WebhookIssuesClosedPropIssueAllof0PropUser", ), - ".group_0576": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), - ".group_0577": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), - ".group_0578": ( + ".group_0581": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), + ".group_0582": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), + ".group_0583": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0579": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), - ".group_0580": ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",), - ".group_0581": ( + ".group_0584": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), + ".group_0585": ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",), + ".group_0586": ( "WebhookIssuesClosedPropIssueAllof1", "WebhookIssuesClosedPropIssueAllof1PropAssignee", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", @@ -10266,9 +10435,9 @@ "WebhookIssuesClosedPropIssueAllof1PropReactions", "WebhookIssuesClosedPropIssueAllof1PropUser", ), - ".group_0582": ("WebhookIssuesClosedPropIssueMergedMilestone",), - ".group_0583": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), - ".group_0584": ( + ".group_0587": ("WebhookIssuesClosedPropIssueMergedMilestone",), + ".group_0588": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), + ".group_0589": ( "WebhookIssuesDeleted", "WebhookIssuesDeletedPropIssue", "WebhookIssuesDeletedPropIssuePropAssignee", @@ -10283,7 +10452,7 @@ "WebhookIssuesDeletedPropIssuePropReactions", "WebhookIssuesDeletedPropIssuePropUser", ), - ".group_0585": ( + ".group_0590": ( "WebhookIssuesDemilestoned", "WebhookIssuesDemilestonedPropIssue", "WebhookIssuesDemilestonedPropIssuePropAssignee", @@ -10298,7 +10467,7 @@ "WebhookIssuesDemilestonedPropIssuePropReactions", "WebhookIssuesDemilestonedPropIssuePropUser", ), - ".group_0586": ( + ".group_0591": ( "WebhookIssuesEdited", "WebhookIssuesEditedPropChanges", "WebhookIssuesEditedPropChangesPropBody", @@ -10316,7 +10485,7 @@ "WebhookIssuesEditedPropIssuePropReactions", "WebhookIssuesEditedPropIssuePropUser", ), - ".group_0587": ( + ".group_0592": ( "WebhookIssuesLabeled", "WebhookIssuesLabeledPropIssue", "WebhookIssuesLabeledPropIssuePropAssignee", @@ -10331,7 +10500,7 @@ "WebhookIssuesLabeledPropIssuePropReactions", "WebhookIssuesLabeledPropIssuePropUser", ), - ".group_0588": ( + ".group_0593": ( "WebhookIssuesLocked", "WebhookIssuesLockedPropIssue", "WebhookIssuesLockedPropIssuePropAssignee", @@ -10346,7 +10515,7 @@ "WebhookIssuesLockedPropIssuePropReactions", "WebhookIssuesLockedPropIssuePropUser", ), - ".group_0589": ( + ".group_0594": ( "WebhookIssuesMilestoned", "WebhookIssuesMilestonedPropIssue", "WebhookIssuesMilestonedPropIssuePropAssignee", @@ -10361,7 +10530,7 @@ "WebhookIssuesMilestonedPropIssuePropReactions", "WebhookIssuesMilestonedPropIssuePropUser", ), - ".group_0590": ( + ".group_0595": ( "WebhookIssuesOpened", "WebhookIssuesOpenedPropIssue", "WebhookIssuesOpenedPropIssuePropAssignee", @@ -10394,8 +10563,8 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", ), - ".group_0591": ("WebhookIssuesPinned",), - ".group_0592": ( + ".group_0596": ("WebhookIssuesPinned",), + ".group_0597": ( "WebhookIssuesReopened", "WebhookIssuesReopenedPropIssue", "WebhookIssuesReopenedPropIssuePropAssignee", @@ -10410,7 +10579,7 @@ "WebhookIssuesReopenedPropIssuePropReactions", "WebhookIssuesReopenedPropIssuePropUser", ), - ".group_0593": ( + ".group_0598": ( "WebhookIssuesTransferred", "WebhookIssuesTransferredPropChanges", "WebhookIssuesTransferredPropChangesPropNewIssue", @@ -10431,9 +10600,9 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", ), - ".group_0594": ("WebhookIssuesUnassigned",), - ".group_0595": ("WebhookIssuesUnlabeled",), - ".group_0596": ( + ".group_0599": ("WebhookIssuesUnassigned",), + ".group_0600": ("WebhookIssuesUnlabeled",), + ".group_0601": ( "WebhookIssuesUnlocked", "WebhookIssuesUnlockedPropIssue", "WebhookIssuesUnlockedPropIssuePropAssignee", @@ -10448,103 +10617,103 @@ "WebhookIssuesUnlockedPropIssuePropReactions", "WebhookIssuesUnlockedPropIssuePropUser", ), - ".group_0597": ("WebhookIssuesUnpinned",), - ".group_0598": ("WebhookLabelCreated",), - ".group_0599": ("WebhookLabelDeleted",), - ".group_0600": ( + ".group_0602": ("WebhookIssuesUnpinned",), + ".group_0603": ("WebhookLabelCreated",), + ".group_0604": ("WebhookLabelDeleted",), + ".group_0605": ( "WebhookLabelEdited", "WebhookLabelEditedPropChanges", "WebhookLabelEditedPropChangesPropColor", "WebhookLabelEditedPropChangesPropDescription", "WebhookLabelEditedPropChangesPropName", ), - ".group_0601": ("WebhookMarketplacePurchaseCancelled",), - ".group_0602": ( + ".group_0606": ("WebhookMarketplacePurchaseCancelled",), + ".group_0607": ( "WebhookMarketplacePurchaseChanged", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", ), - ".group_0603": ( + ".group_0608": ( "WebhookMarketplacePurchasePendingChange", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", ), - ".group_0604": ( + ".group_0609": ( "WebhookMarketplacePurchasePendingChangeCancelled", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", ), - ".group_0605": ("WebhookMarketplacePurchasePurchased",), - ".group_0606": ( + ".group_0610": ("WebhookMarketplacePurchasePurchased",), + ".group_0611": ( "WebhookMemberAdded", "WebhookMemberAddedPropChanges", "WebhookMemberAddedPropChangesPropPermission", "WebhookMemberAddedPropChangesPropRoleName", ), - ".group_0607": ( + ".group_0612": ( "WebhookMemberEdited", "WebhookMemberEditedPropChanges", "WebhookMemberEditedPropChangesPropOldPermission", "WebhookMemberEditedPropChangesPropPermission", ), - ".group_0608": ("WebhookMemberRemoved",), - ".group_0609": ( + ".group_0613": ("WebhookMemberRemoved",), + ".group_0614": ( "WebhookMembershipAdded", "WebhookMembershipAddedPropSender", ), - ".group_0610": ( + ".group_0615": ( "WebhookMembershipRemoved", "WebhookMembershipRemovedPropSender", ), - ".group_0611": ("WebhookMergeGroupChecksRequested",), - ".group_0612": ("WebhookMergeGroupDestroyed",), - ".group_0613": ( + ".group_0616": ("WebhookMergeGroupChecksRequested",), + ".group_0617": ("WebhookMergeGroupDestroyed",), + ".group_0618": ( "WebhookMetaDeleted", "WebhookMetaDeletedPropHook", "WebhookMetaDeletedPropHookPropConfig", ), - ".group_0614": ("WebhookMilestoneClosed",), - ".group_0615": ("WebhookMilestoneCreated",), - ".group_0616": ("WebhookMilestoneDeleted",), - ".group_0617": ( + ".group_0619": ("WebhookMilestoneClosed",), + ".group_0620": ("WebhookMilestoneCreated",), + ".group_0621": ("WebhookMilestoneDeleted",), + ".group_0622": ( "WebhookMilestoneEdited", "WebhookMilestoneEditedPropChanges", "WebhookMilestoneEditedPropChangesPropDescription", "WebhookMilestoneEditedPropChangesPropDueOn", "WebhookMilestoneEditedPropChangesPropTitle", ), - ".group_0618": ("WebhookMilestoneOpened",), - ".group_0619": ("WebhookOrgBlockBlocked",), - ".group_0620": ("WebhookOrgBlockUnblocked",), - ".group_0621": ("WebhookOrganizationDeleted",), - ".group_0622": ("WebhookOrganizationMemberAdded",), - ".group_0623": ( + ".group_0623": ("WebhookMilestoneOpened",), + ".group_0624": ("WebhookOrgBlockBlocked",), + ".group_0625": ("WebhookOrgBlockUnblocked",), + ".group_0626": ("WebhookOrganizationDeleted",), + ".group_0627": ("WebhookOrganizationMemberAdded",), + ".group_0628": ( "WebhookOrganizationMemberInvited", "WebhookOrganizationMemberInvitedPropInvitation", "WebhookOrganizationMemberInvitedPropInvitationPropInviter", ), - ".group_0624": ("WebhookOrganizationMemberRemoved",), - ".group_0625": ( + ".group_0629": ("WebhookOrganizationMemberRemoved",), + ".group_0630": ( "WebhookOrganizationRenamed", "WebhookOrganizationRenamedPropChanges", "WebhookOrganizationRenamedPropChangesPropLogin", ), - ".group_0626": ( + ".group_0631": ( "WebhookRubygemsMetadata", "WebhookRubygemsMetadataPropVersionInfo", "WebhookRubygemsMetadataPropMetadata", "WebhookRubygemsMetadataPropDependenciesItems", ), - ".group_0627": ("WebhookPackagePublished",), - ".group_0628": ( + ".group_0632": ("WebhookPackagePublished",), + ".group_0633": ( "WebhookPackagePublishedPropPackage", "WebhookPackagePublishedPropPackagePropOwner", "WebhookPackagePublishedPropPackagePropRegistry", ), - ".group_0629": ( + ".group_0634": ( "WebhookPackagePublishedPropPackagePropPackageVersion", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", @@ -10576,13 +10745,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0630": ("WebhookPackageUpdated",), - ".group_0631": ( + ".group_0635": ("WebhookPackageUpdated",), + ".group_0636": ( "WebhookPackageUpdatedPropPackage", "WebhookPackageUpdatedPropPackagePropOwner", "WebhookPackageUpdatedPropPackagePropRegistry", ), - ".group_0632": ( + ".group_0637": ( "WebhookPackageUpdatedPropPackagePropPackageVersion", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", @@ -10591,75 +10760,75 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0633": ( + ".group_0638": ( "WebhookPageBuild", "WebhookPageBuildPropBuild", "WebhookPageBuildPropBuildPropError", "WebhookPageBuildPropBuildPropPusher", ), - ".group_0634": ("WebhookPersonalAccessTokenRequestApproved",), - ".group_0635": ("WebhookPersonalAccessTokenRequestCancelled",), - ".group_0636": ("WebhookPersonalAccessTokenRequestCreated",), - ".group_0637": ("WebhookPersonalAccessTokenRequestDenied",), - ".group_0638": ("WebhookPing",), - ".group_0639": ( + ".group_0639": ("WebhookPersonalAccessTokenRequestApproved",), + ".group_0640": ("WebhookPersonalAccessTokenRequestCancelled",), + ".group_0641": ("WebhookPersonalAccessTokenRequestCreated",), + ".group_0642": ("WebhookPersonalAccessTokenRequestDenied",), + ".group_0643": ("WebhookPing",), + ".group_0644": ( "WebhookPingPropHook", "WebhookPingPropHookPropConfig", ), - ".group_0640": ("WebhookPingFormEncoded",), - ".group_0641": ( + ".group_0645": ("WebhookPingFormEncoded",), + ".group_0646": ( "WebhookProjectCardConverted", "WebhookProjectCardConvertedPropChanges", "WebhookProjectCardConvertedPropChangesPropNote", ), - ".group_0642": ("WebhookProjectCardCreated",), - ".group_0643": ( + ".group_0647": ("WebhookProjectCardCreated",), + ".group_0648": ( "WebhookProjectCardDeleted", "WebhookProjectCardDeletedPropProjectCard", "WebhookProjectCardDeletedPropProjectCardPropCreator", ), - ".group_0644": ( + ".group_0649": ( "WebhookProjectCardEdited", "WebhookProjectCardEditedPropChanges", "WebhookProjectCardEditedPropChangesPropNote", ), - ".group_0645": ( + ".group_0650": ( "WebhookProjectCardMoved", "WebhookProjectCardMovedPropChanges", "WebhookProjectCardMovedPropChangesPropColumnId", "WebhookProjectCardMovedPropProjectCard", "WebhookProjectCardMovedPropProjectCardMergedCreator", ), - ".group_0646": ( + ".group_0651": ( "WebhookProjectCardMovedPropProjectCardAllof0", "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", ), - ".group_0647": ( + ".group_0652": ( "WebhookProjectCardMovedPropProjectCardAllof1", "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", ), - ".group_0648": ("WebhookProjectClosed",), - ".group_0649": ("WebhookProjectColumnCreated",), - ".group_0650": ("WebhookProjectColumnDeleted",), - ".group_0651": ( + ".group_0653": ("WebhookProjectClosed",), + ".group_0654": ("WebhookProjectColumnCreated",), + ".group_0655": ("WebhookProjectColumnDeleted",), + ".group_0656": ( "WebhookProjectColumnEdited", "WebhookProjectColumnEditedPropChanges", "WebhookProjectColumnEditedPropChangesPropName", ), - ".group_0652": ("WebhookProjectColumnMoved",), - ".group_0653": ("WebhookProjectCreated",), - ".group_0654": ("WebhookProjectDeleted",), - ".group_0655": ( + ".group_0657": ("WebhookProjectColumnMoved",), + ".group_0658": ("WebhookProjectCreated",), + ".group_0659": ("WebhookProjectDeleted",), + ".group_0660": ( "WebhookProjectEdited", "WebhookProjectEditedPropChanges", "WebhookProjectEditedPropChangesPropBody", "WebhookProjectEditedPropChangesPropName", ), - ".group_0656": ("WebhookProjectReopened",), - ".group_0657": ("WebhookProjectsV2ProjectClosed",), - ".group_0658": ("WebhookProjectsV2ProjectCreated",), - ".group_0659": ("WebhookProjectsV2ProjectDeleted",), - ".group_0660": ( + ".group_0661": ("WebhookProjectReopened",), + ".group_0662": ("WebhookProjectsV2ProjectClosed",), + ".group_0663": ("WebhookProjectsV2ProjectCreated",), + ".group_0664": ("WebhookProjectsV2ProjectDeleted",), + ".group_0665": ( "WebhookProjectsV2ProjectEdited", "WebhookProjectsV2ProjectEditedPropChanges", "WebhookProjectsV2ProjectEditedPropChangesPropDescription", @@ -10667,30 +10836,42 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", "WebhookProjectsV2ProjectEditedPropChangesPropTitle", ), - ".group_0661": ("WebhookProjectsV2ItemArchived",), - ".group_0662": ( + ".group_0666": ("WebhookProjectsV2ItemArchived",), + ".group_0667": ( "WebhookProjectsV2ItemConverted", "WebhookProjectsV2ItemConvertedPropChanges", "WebhookProjectsV2ItemConvertedPropChangesPropContentType", ), - ".group_0663": ("WebhookProjectsV2ItemCreated",), - ".group_0664": ("WebhookProjectsV2ItemDeleted",), - ".group_0665": ( + ".group_0668": ("WebhookProjectsV2ItemCreated",), + ".group_0669": ("WebhookProjectsV2ItemDeleted",), + ".group_0670": ( "WebhookProjectsV2ItemEdited", "WebhookProjectsV2ItemEditedPropChangesOneof0", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", + "ProjectsV2SingleSelectOption", + "ProjectsV2IterationSetting", "WebhookProjectsV2ItemEditedPropChangesOneof1", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", ), - ".group_0666": ( + ".group_0671": ( "WebhookProjectsV2ItemReordered", "WebhookProjectsV2ItemReorderedPropChanges", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", ), - ".group_0667": ("WebhookProjectsV2ItemRestored",), - ".group_0668": ("WebhookProjectsV2ProjectReopened",), - ".group_0669": ("WebhookPublic",), - ".group_0670": ( + ".group_0672": ("WebhookProjectsV2ItemRestored",), + ".group_0673": ("WebhookProjectsV2ProjectReopened",), + ".group_0674": ("WebhookProjectsV2StatusUpdateCreated",), + ".group_0675": ("WebhookProjectsV2StatusUpdateDeleted",), + ".group_0676": ( + "WebhookProjectsV2StatusUpdateEdited", + "WebhookProjectsV2StatusUpdateEditedPropChanges", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", + ), + ".group_0677": ("WebhookPublic",), + ".group_0678": ( "WebhookPullRequestAssigned", "WebhookPullRequestAssignedPropPullRequest", "WebhookPullRequestAssignedPropPullRequestPropAssignee", @@ -10729,7 +10910,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0671": ( + ".group_0679": ( "WebhookPullRequestAutoMergeDisabled", "WebhookPullRequestAutoMergeDisabledPropPullRequest", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", @@ -10768,7 +10949,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0672": ( + ".group_0680": ( "WebhookPullRequestAutoMergeEnabled", "WebhookPullRequestAutoMergeEnabledPropPullRequest", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", @@ -10807,10 +10988,10 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0673": ("WebhookPullRequestClosed",), - ".group_0674": ("WebhookPullRequestConvertedToDraft",), - ".group_0675": ("WebhookPullRequestDemilestoned",), - ".group_0676": ( + ".group_0681": ("WebhookPullRequestClosed",), + ".group_0682": ("WebhookPullRequestConvertedToDraft",), + ".group_0683": ("WebhookPullRequestDemilestoned",), + ".group_0684": ( "WebhookPullRequestDequeued", "WebhookPullRequestDequeuedPropPullRequest", "WebhookPullRequestDequeuedPropPullRequestPropAssignee", @@ -10849,7 +11030,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0677": ( + ".group_0685": ( "WebhookPullRequestEdited", "WebhookPullRequestEditedPropChanges", "WebhookPullRequestEditedPropChangesPropBody", @@ -10858,7 +11039,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRef", "WebhookPullRequestEditedPropChangesPropBasePropSha", ), - ".group_0678": ( + ".group_0686": ( "WebhookPullRequestEnqueued", "WebhookPullRequestEnqueuedPropPullRequest", "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", @@ -10897,7 +11078,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0679": ( + ".group_0687": ( "WebhookPullRequestLabeled", "WebhookPullRequestLabeledPropPullRequest", "WebhookPullRequestLabeledPropPullRequestPropAssignee", @@ -10936,7 +11117,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0680": ( + ".group_0688": ( "WebhookPullRequestLocked", "WebhookPullRequestLockedPropPullRequest", "WebhookPullRequestLockedPropPullRequestPropAssignee", @@ -10975,11 +11156,11 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0681": ("WebhookPullRequestMilestoned",), - ".group_0682": ("WebhookPullRequestOpened",), - ".group_0683": ("WebhookPullRequestReadyForReview",), - ".group_0684": ("WebhookPullRequestReopened",), - ".group_0685": ( + ".group_0689": ("WebhookPullRequestMilestoned",), + ".group_0690": ("WebhookPullRequestOpened",), + ".group_0691": ("WebhookPullRequestReadyForReview",), + ".group_0692": ("WebhookPullRequestReopened",), + ".group_0693": ( "WebhookPullRequestReviewCommentCreated", "WebhookPullRequestReviewCommentCreatedPropComment", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", @@ -11024,7 +11205,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0686": ( + ".group_0694": ( "WebhookPullRequestReviewCommentDeleted", "WebhookPullRequestReviewCommentDeletedPropPullRequest", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", @@ -11062,7 +11243,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0687": ( + ".group_0695": ( "WebhookPullRequestReviewCommentEdited", "WebhookPullRequestReviewCommentEditedPropPullRequest", "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", @@ -11100,7 +11281,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0688": ( + ".group_0696": ( "WebhookPullRequestReviewDismissed", "WebhookPullRequestReviewDismissedPropReview", "WebhookPullRequestReviewDismissedPropReviewPropUser", @@ -11143,7 +11324,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0689": ( + ".group_0697": ( "WebhookPullRequestReviewEdited", "WebhookPullRequestReviewEditedPropChanges", "WebhookPullRequestReviewEditedPropChangesPropBody", @@ -11183,7 +11364,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0690": ( + ".group_0698": ( "WebhookPullRequestReviewRequestRemovedOneof0", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", @@ -11223,7 +11404,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0691": ( + ".group_0699": ( "WebhookPullRequestReviewRequestRemovedOneof1", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", @@ -11264,7 +11445,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0692": ( + ".group_0700": ( "WebhookPullRequestReviewRequestedOneof0", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestedOneof0PropPullRequest", @@ -11304,7 +11485,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0693": ( + ".group_0701": ( "WebhookPullRequestReviewRequestedOneof1", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", @@ -11345,7 +11526,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0694": ( + ".group_0702": ( "WebhookPullRequestReviewSubmitted", "WebhookPullRequestReviewSubmittedPropPullRequest", "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", @@ -11383,7 +11564,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0695": ( + ".group_0703": ( "WebhookPullRequestReviewThreadResolved", "WebhookPullRequestReviewThreadResolvedPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", @@ -11429,7 +11610,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0696": ( + ".group_0704": ( "WebhookPullRequestReviewThreadUnresolved", "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", @@ -11475,7 +11656,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0697": ( + ".group_0705": ( "WebhookPullRequestSynchronize", "WebhookPullRequestSynchronizePropPullRequest", "WebhookPullRequestSynchronizePropPullRequestPropAssignee", @@ -11514,7 +11695,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0698": ( + ".group_0706": ( "WebhookPullRequestUnassigned", "WebhookPullRequestUnassignedPropPullRequest", "WebhookPullRequestUnassignedPropPullRequestPropAssignee", @@ -11553,7 +11734,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0699": ( + ".group_0707": ( "WebhookPullRequestUnlabeled", "WebhookPullRequestUnlabeledPropPullRequest", "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", @@ -11592,7 +11773,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0700": ( + ".group_0708": ( "WebhookPullRequestUnlocked", "WebhookPullRequestUnlockedPropPullRequest", "WebhookPullRequestUnlockedPropPullRequestPropAssignee", @@ -11631,7 +11812,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0701": ( + ".group_0709": ( "WebhookPush", "WebhookPushPropHeadCommit", "WebhookPushPropHeadCommitPropAuthor", @@ -11646,13 +11827,13 @@ "WebhookPushPropRepositoryPropOwner", "WebhookPushPropRepositoryPropPermissions", ), - ".group_0702": ("WebhookRegistryPackagePublished",), - ".group_0703": ( + ".group_0710": ("WebhookRegistryPackagePublished",), + ".group_0711": ( "WebhookRegistryPackagePublishedPropRegistryPackage", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", ), - ".group_0704": ( + ".group_0712": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", @@ -11683,13 +11864,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0705": ("WebhookRegistryPackageUpdated",), - ".group_0706": ( + ".group_0713": ("WebhookRegistryPackageUpdated",), + ".group_0714": ( "WebhookRegistryPackageUpdatedPropRegistryPackage", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", ), - ".group_0707": ( + ".group_0715": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", @@ -11698,16 +11879,16 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0708": ("WebhookReleaseCreated",), - ".group_0709": ("WebhookReleaseDeleted",), - ".group_0710": ( + ".group_0716": ("WebhookReleaseCreated",), + ".group_0717": ("WebhookReleaseDeleted",), + ".group_0718": ( "WebhookReleaseEdited", "WebhookReleaseEditedPropChanges", "WebhookReleaseEditedPropChangesPropBody", "WebhookReleaseEditedPropChangesPropName", "WebhookReleaseEditedPropChangesPropMakeLatest", ), - ".group_0711": ( + ".group_0719": ( "WebhookReleasePrereleased", "WebhookReleasePrereleasedPropRelease", "WebhookReleasePrereleasedPropReleasePropAssetsItems", @@ -11715,19 +11896,19 @@ "WebhookReleasePrereleasedPropReleasePropAuthor", "WebhookReleasePrereleasedPropReleasePropReactions", ), - ".group_0712": ("WebhookReleasePublished",), - ".group_0713": ("WebhookReleaseReleased",), - ".group_0714": ("WebhookReleaseUnpublished",), - ".group_0715": ("WebhookRepositoryAdvisoryPublished",), - ".group_0716": ("WebhookRepositoryAdvisoryReported",), - ".group_0717": ("WebhookRepositoryArchived",), - ".group_0718": ("WebhookRepositoryCreated",), - ".group_0719": ("WebhookRepositoryDeleted",), - ".group_0720": ( + ".group_0720": ("WebhookReleasePublished",), + ".group_0721": ("WebhookReleaseReleased",), + ".group_0722": ("WebhookReleaseUnpublished",), + ".group_0723": ("WebhookRepositoryAdvisoryPublished",), + ".group_0724": ("WebhookRepositoryAdvisoryReported",), + ".group_0725": ("WebhookRepositoryArchived",), + ".group_0726": ("WebhookRepositoryCreated",), + ".group_0727": ("WebhookRepositoryDeleted",), + ".group_0728": ( "WebhookRepositoryDispatchSample", "WebhookRepositoryDispatchSamplePropClientPayload", ), - ".group_0721": ( + ".group_0729": ( "WebhookRepositoryEdited", "WebhookRepositoryEditedPropChanges", "WebhookRepositoryEditedPropChangesPropDefaultBranch", @@ -11735,25 +11916,25 @@ "WebhookRepositoryEditedPropChangesPropHomepage", "WebhookRepositoryEditedPropChangesPropTopics", ), - ".group_0722": ("WebhookRepositoryImport",), - ".group_0723": ("WebhookRepositoryPrivatized",), - ".group_0724": ("WebhookRepositoryPublicized",), - ".group_0725": ( + ".group_0730": ("WebhookRepositoryImport",), + ".group_0731": ("WebhookRepositoryPrivatized",), + ".group_0732": ("WebhookRepositoryPublicized",), + ".group_0733": ( "WebhookRepositoryRenamed", "WebhookRepositoryRenamedPropChanges", "WebhookRepositoryRenamedPropChangesPropRepository", "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", ), - ".group_0726": ("WebhookRepositoryRulesetCreated",), - ".group_0727": ("WebhookRepositoryRulesetDeleted",), - ".group_0728": ("WebhookRepositoryRulesetEdited",), - ".group_0729": ( + ".group_0734": ("WebhookRepositoryRulesetCreated",), + ".group_0735": ("WebhookRepositoryRulesetDeleted",), + ".group_0736": ("WebhookRepositoryRulesetEdited",), + ".group_0737": ( "WebhookRepositoryRulesetEditedPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropName", "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", ), - ".group_0730": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), - ".group_0731": ( + ".group_0738": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), + ".group_0739": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", @@ -11761,15 +11942,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", ), - ".group_0732": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), - ".group_0733": ( + ".group_0740": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), + ".group_0741": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", ), - ".group_0734": ( + ".group_0742": ( "WebhookRepositoryTransferred", "WebhookRepositoryTransferredPropChanges", "WebhookRepositoryTransferredPropChangesPropOwner", @@ -11777,21 +11958,21 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", ), - ".group_0735": ("WebhookRepositoryUnarchived",), - ".group_0736": ("WebhookRepositoryVulnerabilityAlertCreate",), - ".group_0737": ( + ".group_0743": ("WebhookRepositoryUnarchived",), + ".group_0744": ("WebhookRepositoryVulnerabilityAlertCreate",), + ".group_0745": ( "WebhookRepositoryVulnerabilityAlertDismiss", "WebhookRepositoryVulnerabilityAlertDismissPropAlert", "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", ), - ".group_0738": ("WebhookRepositoryVulnerabilityAlertReopen",), - ".group_0739": ( + ".group_0746": ("WebhookRepositoryVulnerabilityAlertReopen",), + ".group_0747": ( "WebhookRepositoryVulnerabilityAlertResolve", "WebhookRepositoryVulnerabilityAlertResolvePropAlert", "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", ), - ".group_0740": ("WebhookSecretScanningAlertCreated",), - ".group_0741": ( + ".group_0748": ("WebhookSecretScanningAlertCreated",), + ".group_0749": ( "WebhookSecretScanningAlertLocationCreated", "SecretScanningLocation", "SecretScanningLocationCommit", @@ -11808,13 +11989,13 @@ "SecretScanningLocationPullRequestReview", "SecretScanningLocationPullRequestReviewComment", ), - ".group_0742": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), - ".group_0743": ("WebhookSecretScanningAlertReopened",), - ".group_0744": ("WebhookSecretScanningAlertResolved",), - ".group_0745": ("WebhookSecretScanningAlertValidated",), - ".group_0746": ("WebhookSecurityAdvisoryPublished",), - ".group_0747": ("WebhookSecurityAdvisoryUpdated",), - ".group_0748": ( + ".group_0750": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), + ".group_0751": ("WebhookSecretScanningAlertReopened",), + ".group_0752": ("WebhookSecretScanningAlertResolved",), + ".group_0753": ("WebhookSecretScanningAlertValidated",), + ".group_0754": ("WebhookSecurityAdvisoryPublished",), + ".group_0755": ("WebhookSecurityAdvisoryUpdated",), + ".group_0756": ( "WebhookSecurityAdvisoryWithdrawn", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", @@ -11825,22 +12006,22 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0749": ("WebhookSecurityAndAnalysis",), - ".group_0750": ("WebhookSecurityAndAnalysisPropChanges",), - ".group_0751": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), - ".group_0752": ("WebhookSponsorshipCancelled",), - ".group_0753": ("WebhookSponsorshipCreated",), - ".group_0754": ( + ".group_0757": ("WebhookSecurityAndAnalysis",), + ".group_0758": ("WebhookSecurityAndAnalysisPropChanges",), + ".group_0759": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), + ".group_0760": ("WebhookSponsorshipCancelled",), + ".group_0761": ("WebhookSponsorshipCreated",), + ".group_0762": ( "WebhookSponsorshipEdited", "WebhookSponsorshipEditedPropChanges", "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", ), - ".group_0755": ("WebhookSponsorshipPendingCancellation",), - ".group_0756": ("WebhookSponsorshipPendingTierChange",), - ".group_0757": ("WebhookSponsorshipTierChanged",), - ".group_0758": ("WebhookStarCreated",), - ".group_0759": ("WebhookStarDeleted",), - ".group_0760": ( + ".group_0763": ("WebhookSponsorshipPendingCancellation",), + ".group_0764": ("WebhookSponsorshipPendingTierChange",), + ".group_0765": ("WebhookSponsorshipTierChanged",), + ".group_0766": ("WebhookStarCreated",), + ".group_0767": ("WebhookStarDeleted",), + ".group_0768": ( "WebhookStatus", "WebhookStatusPropBranchesItems", "WebhookStatusPropBranchesItemsPropCommit", @@ -11854,12 +12035,12 @@ "WebhookStatusPropCommitPropCommitPropTree", "WebhookStatusPropCommitPropCommitPropVerification", ), - ".group_0761": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), - ".group_0762": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), - ".group_0763": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), - ".group_0764": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), - ".group_0765": ("WebhookTeamAdd",), - ".group_0766": ( + ".group_0769": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), + ".group_0770": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), + ".group_0771": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), + ".group_0772": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), + ".group_0773": ("WebhookTeamAdd",), + ".group_0774": ( "WebhookTeamAddedToRepository", "WebhookTeamAddedToRepositoryPropRepository", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", @@ -11867,7 +12048,7 @@ "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", ), - ".group_0767": ( + ".group_0775": ( "WebhookTeamCreated", "WebhookTeamCreatedPropRepository", "WebhookTeamCreatedPropRepositoryPropCustomProperties", @@ -11875,7 +12056,7 @@ "WebhookTeamCreatedPropRepositoryPropOwner", "WebhookTeamCreatedPropRepositoryPropPermissions", ), - ".group_0768": ( + ".group_0776": ( "WebhookTeamDeleted", "WebhookTeamDeletedPropRepository", "WebhookTeamDeletedPropRepositoryPropCustomProperties", @@ -11883,7 +12064,7 @@ "WebhookTeamDeletedPropRepositoryPropOwner", "WebhookTeamDeletedPropRepositoryPropPermissions", ), - ".group_0769": ( + ".group_0777": ( "WebhookTeamEdited", "WebhookTeamEditedPropRepository", "WebhookTeamEditedPropRepositoryPropCustomProperties", @@ -11899,7 +12080,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", ), - ".group_0770": ( + ".group_0778": ( "WebhookTeamRemovedFromRepository", "WebhookTeamRemovedFromRepositoryPropRepository", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", @@ -11907,48 +12088,48 @@ "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", ), - ".group_0771": ("WebhookWatchStarted",), - ".group_0772": ( + ".group_0779": ("WebhookWatchStarted",), + ".group_0780": ( "WebhookWorkflowDispatch", "WebhookWorkflowDispatchPropInputs", ), - ".group_0773": ( + ".group_0781": ( "WebhookWorkflowJobCompleted", "WebhookWorkflowJobCompletedPropWorkflowJob", "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ), - ".group_0774": ( + ".group_0782": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ), - ".group_0775": ( + ".group_0783": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", ), - ".group_0776": ( + ".group_0784": ( "WebhookWorkflowJobInProgress", "WebhookWorkflowJobInProgressPropWorkflowJob", "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", ), - ".group_0777": ( + ".group_0785": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", ), - ".group_0778": ( + ".group_0786": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", ), - ".group_0779": ( + ".group_0787": ( "WebhookWorkflowJobQueued", "WebhookWorkflowJobQueuedPropWorkflowJob", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", ), - ".group_0780": ( + ".group_0788": ( "WebhookWorkflowJobWaiting", "WebhookWorkflowJobWaitingPropWorkflowJob", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", ), - ".group_0781": ( + ".group_0789": ( "WebhookWorkflowRunCompleted", "WebhookWorkflowRunCompletedPropWorkflowRun", "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", @@ -11967,7 +12148,7 @@ "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0782": ( + ".group_0790": ( "WebhookWorkflowRunInProgress", "WebhookWorkflowRunInProgressPropWorkflowRun", "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", @@ -11986,7 +12167,7 @@ "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0783": ( + ".group_0791": ( "WebhookWorkflowRunRequested", "WebhookWorkflowRunRequestedPropWorkflowRun", "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", @@ -12005,294 +12186,329 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0784": ("AppManifestsCodeConversionsPostResponse201",), - ".group_0785": ("AppManifestsCodeConversionsPostResponse201Allof1",), - ".group_0786": ("AppHookConfigPatchBody",), - ".group_0787": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), - ".group_0788": ("AppInstallationsInstallationIdAccessTokensPostBody",), - ".group_0789": ("ApplicationsClientIdGrantDeleteBody",), - ".group_0790": ("ApplicationsClientIdTokenPostBody",), - ".group_0791": ("ApplicationsClientIdTokenDeleteBody",), - ".group_0792": ("ApplicationsClientIdTokenPatchBody",), - ".group_0793": ("ApplicationsClientIdTokenScopedPostBody",), - ".group_0794": ("EmojisGetResponse200",), - ".group_0795": ("EnterprisesEnterpriseActionsPermissionsPutBody",), - ".group_0796": ( + ".group_0792": ("AppManifestsCodeConversionsPostResponse201",), + ".group_0793": ("AppManifestsCodeConversionsPostResponse201Allof1",), + ".group_0794": ("AppHookConfigPatchBody",), + ".group_0795": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), + ".group_0796": ("AppInstallationsInstallationIdAccessTokensPostBody",), + ".group_0797": ("ApplicationsClientIdGrantDeleteBody",), + ".group_0798": ("ApplicationsClientIdTokenPostBody",), + ".group_0799": ("ApplicationsClientIdTokenDeleteBody",), + ".group_0800": ("ApplicationsClientIdTokenPatchBody",), + ".group_0801": ("ApplicationsClientIdTokenScopedPostBody",), + ".group_0802": ("EmojisGetResponse200",), + ".group_0803": ("EnterprisesEnterpriseActionsPermissionsPutBody",), + ".group_0804": ( "EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200", ), - ".group_0797": ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",), - ".group_0798": ( + ".group_0805": ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",), + ".group_0806": ( "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200", "RunnerGroupsEnterprise", ), - ".group_0799": ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",), - ".group_0800": ( + ".group_0807": ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",), + ".group_0808": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody", ), - ".group_0801": ( + ".group_0809": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200", ), - ".group_0802": ( + ".group_0810": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody", ), - ".group_0803": ( + ".group_0811": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", ), - ".group_0804": ( + ".group_0812": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody", ), - ".group_0805": ("EnterprisesEnterpriseActionsRunnersGetResponse200",), - ".group_0806": ( + ".group_0813": ("EnterprisesEnterpriseActionsRunnersGetResponse200",), + ".group_0814": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody", ), - ".group_0807": ( + ".group_0815": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201", ), - ".group_0808": ( + ".group_0816": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200", ), - ".group_0809": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",), - ".group_0810": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",), - ".group_0811": ( + ".group_0817": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",), + ".group_0818": ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",), + ".group_0819": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200", ), - ".group_0812": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",), - ".group_0813": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",), - ".group_0814": ( + ".group_0820": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",), + ".group_0821": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",), + ".group_0822": ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200",), + ".group_0823": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody", ), - ".group_0815": ( + ".group_0824": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200", ), - ".group_0816": ( + ".group_0825": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody", ), - ".group_0817": ( + ".group_0826": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200", ), - ".group_0818": ( + ".group_0827": ( "GistsPostBody", "GistsPostBodyPropFiles", ), - ".group_0819": ( + ".group_0828": ( "GistsGistIdGetResponse403", "GistsGistIdGetResponse403PropBlock", ), - ".group_0820": ( + ".group_0829": ( "GistsGistIdPatchBody", "GistsGistIdPatchBodyPropFiles", ), - ".group_0821": ("GistsGistIdCommentsPostBody",), - ".group_0822": ("GistsGistIdCommentsCommentIdPatchBody",), - ".group_0823": ("GistsGistIdStarGetResponse404",), - ".group_0824": ("InstallationRepositoriesGetResponse200",), - ".group_0825": ("MarkdownPostBody",), - ".group_0826": ("NotificationsPutBody",), - ".group_0827": ("NotificationsPutResponse202",), - ".group_0828": ("NotificationsThreadsThreadIdSubscriptionPutBody",), - ".group_0829": ("OrganizationsOrganizationIdCustomRolesGetResponse200",), - ".group_0830": ("OrgsOrgPatchBody",), - ".group_0831": ( + ".group_0830": ("GistsGistIdCommentsPostBody",), + ".group_0831": ("GistsGistIdCommentsCommentIdPatchBody",), + ".group_0832": ("GistsGistIdStarGetResponse404",), + ".group_0833": ("InstallationRepositoriesGetResponse200",), + ".group_0834": ("MarkdownPostBody",), + ".group_0835": ("NotificationsPutBody",), + ".group_0836": ("NotificationsPutResponse202",), + ".group_0837": ("NotificationsThreadsThreadIdSubscriptionPutBody",), + ".group_0838": ("OrganizationsOrganizationIdCustomRolesGetResponse200",), + ".group_0839": ("OrgsOrgPatchBody",), + ".group_0840": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", "ActionsCacheUsageByRepository", ), - ".group_0832": ("OrgsOrgActionsPermissionsPutBody",), - ".group_0833": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), - ".group_0834": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), - ".group_0835": ( + ".group_0841": ("OrgsOrgActionsPermissionsPutBody",), + ".group_0842": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), + ".group_0843": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), + ".group_0844": ( "OrgsOrgActionsRunnerGroupsGetResponse200", "RunnerGroupsOrg", ), - ".group_0836": ("OrgsOrgActionsRunnerGroupsPostBody",), - ".group_0837": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",), - ".group_0838": ( + ".group_0845": ("OrgsOrgActionsRunnerGroupsPostBody",), + ".group_0846": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",), + ".group_0847": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200", ), - ".group_0839": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",), - ".group_0840": ( + ".group_0848": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",), + ".group_0849": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", ), - ".group_0841": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",), - ".group_0842": ("OrgsOrgActionsRunnersGetResponse200",), - ".group_0843": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), - ".group_0844": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), - ".group_0845": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), - ".group_0846": ( + ".group_0850": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",), + ".group_0851": ("OrgsOrgActionsRunnersGetResponse200",), + ".group_0852": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), + ".group_0853": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), + ".group_0854": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), + ".group_0855": ( "OrgsOrgActionsSecretsGetResponse200", "OrganizationActionsSecret", ), - ".group_0847": ("OrgsOrgActionsSecretsSecretNamePutBody",), - ".group_0848": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), - ".group_0849": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), - ".group_0850": ( + ".group_0856": ("OrgsOrgActionsSecretsSecretNamePutBody",), + ".group_0857": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), + ".group_0858": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), + ".group_0859": ( "OrgsOrgActionsVariablesGetResponse200", "OrganizationActionsVariable", ), - ".group_0851": ("OrgsOrgActionsVariablesPostBody",), - ".group_0852": ("OrgsOrgActionsVariablesNamePatchBody",), - ".group_0853": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), - ".group_0854": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), - ".group_0855": ("OrgsOrgCodespacesGetResponse200",), - ".group_0856": ("OrgsOrgCodespacesAccessPutBody",), - ".group_0857": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), - ".group_0858": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), - ".group_0859": ( + ".group_0860": ("OrgsOrgActionsVariablesPostBody",), + ".group_0861": ("OrgsOrgActionsVariablesNamePatchBody",), + ".group_0862": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), + ".group_0863": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), + ".group_0864": ( + "OrgsOrgAttestationsSubjectDigestGetResponse200", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + ), + ".group_0865": ("OrgsOrgCodeSecurityConfigurationsPostBody",), + ".group_0866": ("OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody",), + ".group_0867": ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody", + ), + ".group_0868": ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", + ), + ".group_0869": ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", + ), + ".group_0870": ("OrgsOrgCodespacesGetResponse200",), + ".group_0871": ("OrgsOrgCodespacesAccessPutBody",), + ".group_0872": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), + ".group_0873": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), + ".group_0874": ( "OrgsOrgCodespacesSecretsGetResponse200", "CodespacesOrgSecret", ), - ".group_0860": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), - ".group_0861": ( + ".group_0875": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), + ".group_0876": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0862": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_0863": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), - ".group_0864": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), - ".group_0865": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), - ".group_0866": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), - ".group_0867": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), - ".group_0868": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), - ".group_0869": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), - ".group_0870": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), - ".group_0871": ("OrgsOrgCustomRepositoryRolesGetResponse200",), - ".group_0872": ( + ".group_0877": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_0878": ("OrgsOrgCopilotBillingSeatsGetResponse200",), + ".group_0879": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), + ".group_0880": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), + ".group_0881": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), + ".group_0882": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), + ".group_0883": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), + ".group_0884": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), + ".group_0885": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), + ".group_0886": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), + ".group_0887": ("OrgsOrgCustomRepositoryRolesGetResponse200",), + ".group_0888": ( "OrgsOrgDependabotSecretsGetResponse200", "OrganizationDependabotSecret", ), - ".group_0873": ("OrgsOrgDependabotSecretsSecretNamePutBody",), - ".group_0874": ( + ".group_0889": ("OrgsOrgDependabotSecretsSecretNamePutBody",), + ".group_0890": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0875": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), - ".group_0876": ( + ".group_0891": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), + ".group_0892": ( "OrgsOrgHooksPostBody", "OrgsOrgHooksPostBodyPropConfig", ), - ".group_0877": ( + ".group_0893": ( "OrgsOrgHooksHookIdPatchBody", "OrgsOrgHooksHookIdPatchBodyPropConfig", ), - ".group_0878": ("OrgsOrgHooksHookIdConfigPatchBody",), - ".group_0879": ("OrgsOrgInstallationsGetResponse200",), - ".group_0880": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), - ".group_0881": ("OrgsOrgInvitationsPostBody",), - ".group_0882": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), - ".group_0883": ("OrgsOrgMembershipsUsernamePutBody",), - ".group_0884": ("OrgsOrgMigrationsPostBody",), - ".group_0885": ("OrgsOrgOrganizationRolesPostBody",), - ".group_0886": ("OrgsOrgOrganizationRolesRoleIdPatchBody",), - ".group_0887": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), - ".group_0888": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), - ".group_0889": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), - ".group_0890": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), - ".group_0891": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), - ".group_0892": ("OrgsOrgPersonalAccessTokensPostBody",), - ".group_0893": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), - ".group_0894": ("OrgsOrgProjectsPostBody",), - ".group_0895": ("OrgsOrgPropertiesSchemaPatchBody",), - ".group_0896": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",), - ".group_0897": ("OrgsOrgPropertiesValuesPatchBody",), - ".group_0898": ( + ".group_0894": ("OrgsOrgHooksHookIdConfigPatchBody",), + ".group_0895": ("OrgsOrgInstallationsGetResponse200",), + ".group_0896": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), + ".group_0897": ("OrgsOrgInvitationsPostBody",), + ".group_0898": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), + ".group_0899": ("OrgsOrgMembershipsUsernamePutBody",), + ".group_0900": ("OrgsOrgMigrationsPostBody",), + ".group_0901": ("OrgsOrgOrganizationRolesPostBody",), + ".group_0902": ("OrgsOrgOrganizationRolesRoleIdPatchBody",), + ".group_0903": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), + ".group_0904": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), + ".group_0905": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), + ".group_0906": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), + ".group_0907": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), + ".group_0908": ("OrgsOrgPersonalAccessTokensPostBody",), + ".group_0909": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), + ".group_0910": ("OrgsOrgProjectsPostBody",), + ".group_0911": ("OrgsOrgPropertiesSchemaPatchBody",), + ".group_0912": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",), + ".group_0913": ("OrgsOrgPropertiesValuesPatchBody",), + ".group_0914": ( "OrgsOrgReposPostBody", "OrgsOrgReposPostBodyPropCustomProperties", ), - ".group_0899": ("OrgsOrgRulesetsPostBody",), - ".group_0900": ("OrgsOrgRulesetsRulesetIdPutBody",), - ".group_0901": ("OrgsOrgTeamsPostBody",), - ".group_0902": ("OrgsOrgTeamsTeamSlugPatchBody",), - ".group_0903": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), - ".group_0904": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), - ".group_0905": ( + ".group_0915": ("OrgsOrgRulesetsPostBody",), + ".group_0916": ("OrgsOrgRulesetsRulesetIdPutBody",), + ".group_0917": ("OrgsOrgTeamsPostBody",), + ".group_0918": ("OrgsOrgTeamsTeamSlugPatchBody",), + ".group_0919": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), + ".group_0920": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), + ".group_0921": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody", ), - ".group_0906": ( + ".group_0922": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_0907": ( + ".group_0923": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_0908": ( + ".group_0924": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody", ), - ".group_0909": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",), - ".group_0910": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), - ".group_0911": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), - ".group_0912": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), - ".group_0913": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), - ".group_0914": ( + ".group_0925": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",), + ".group_0926": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), + ".group_0927": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), + ".group_0928": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), + ".group_0929": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), + ".group_0930": ( "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody", "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems", ), - ".group_0915": ("OrgsOrgSecurityProductEnablementPostBody",), - ".group_0916": ("ProjectsColumnsCardsCardIdDeleteResponse403",), - ".group_0917": ("ProjectsColumnsCardsCardIdPatchBody",), - ".group_0918": ("ProjectsColumnsCardsCardIdMovesPostBody",), - ".group_0919": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), - ".group_0920": ( + ".group_0931": ("OrgsOrgSecurityProductEnablementPostBody",), + ".group_0932": ("ProjectsColumnsCardsCardIdDeleteResponse403",), + ".group_0933": ("ProjectsColumnsCardsCardIdPatchBody",), + ".group_0934": ("ProjectsColumnsCardsCardIdMovesPostBody",), + ".group_0935": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), + ".group_0936": ( "ProjectsColumnsCardsCardIdMovesPostResponse403", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", ), - ".group_0921": ( + ".group_0937": ( "ProjectsColumnsCardsCardIdMovesPostResponse503", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", ), - ".group_0922": ("ProjectsColumnsColumnIdPatchBody",), - ".group_0923": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), - ".group_0924": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), - ".group_0925": ( + ".group_0938": ("ProjectsColumnsColumnIdPatchBody",), + ".group_0939": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), + ".group_0940": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), + ".group_0941": ( "ProjectsColumnsColumnIdCardsPostResponse503", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", ), - ".group_0926": ("ProjectsColumnsColumnIdMovesPostBody",), - ".group_0927": ("ProjectsColumnsColumnIdMovesPostResponse201",), - ".group_0928": ("ProjectsProjectIdDeleteResponse403",), - ".group_0929": ("ProjectsProjectIdPatchBody",), - ".group_0930": ("ProjectsProjectIdPatchResponse403",), - ".group_0931": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), - ".group_0932": ("ProjectsProjectIdColumnsPostBody",), - ".group_0933": ("ReposOwnerRepoDeleteResponse403",), - ".group_0934": ( + ".group_0942": ("ProjectsColumnsColumnIdMovesPostBody",), + ".group_0943": ("ProjectsColumnsColumnIdMovesPostResponse201",), + ".group_0944": ("ProjectsProjectIdDeleteResponse403",), + ".group_0945": ("ProjectsProjectIdPatchBody",), + ".group_0946": ("ProjectsProjectIdPatchResponse403",), + ".group_0947": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), + ".group_0948": ("ProjectsProjectIdColumnsPostBody",), + ".group_0949": ("ReposOwnerRepoDeleteResponse403",), + ".group_0950": ( "ReposOwnerRepoPatchBody", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks", ), - ".group_0935": ("ReposOwnerRepoActionsArtifactsGetResponse200",), - ".group_0936": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), - ".group_0937": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), - ".group_0938": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), - ".group_0939": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), - ".group_0940": ("ReposOwnerRepoActionsPermissionsPutBody",), - ".group_0941": ("ReposOwnerRepoActionsRunnersGetResponse200",), - ".group_0942": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), - ".group_0943": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), - ".group_0944": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), - ".group_0945": ("ReposOwnerRepoActionsRunsGetResponse200",), - ".group_0946": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), - ".group_0947": ( + ".group_0951": ("ReposOwnerRepoActionsArtifactsGetResponse200",), + ".group_0952": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), + ".group_0953": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), + ".group_0954": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), + ".group_0955": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), + ".group_0956": ("ReposOwnerRepoActionsPermissionsPutBody",), + ".group_0957": ("ReposOwnerRepoActionsRunnersGetResponse200",), + ".group_0958": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), + ".group_0959": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), + ".group_0960": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), + ".group_0961": ("ReposOwnerRepoActionsRunsGetResponse200",), + ".group_0962": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), + ".group_0963": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200", ), - ".group_0948": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), - ".group_0949": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), - ".group_0950": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), - ".group_0951": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), - ".group_0952": ("ReposOwnerRepoActionsSecretsGetResponse200",), - ".group_0953": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), - ".group_0954": ("ReposOwnerRepoActionsVariablesGetResponse200",), - ".group_0955": ("ReposOwnerRepoActionsVariablesPostBody",), - ".group_0956": ("ReposOwnerRepoActionsVariablesNamePatchBody",), - ".group_0957": ( + ".group_0964": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), + ".group_0965": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), + ".group_0966": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), + ".group_0967": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), + ".group_0968": ("ReposOwnerRepoActionsSecretsGetResponse200",), + ".group_0969": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), + ".group_0970": ("ReposOwnerRepoActionsVariablesGetResponse200",), + ".group_0971": ("ReposOwnerRepoActionsVariablesPostBody",), + ".group_0972": ("ReposOwnerRepoActionsVariablesNamePatchBody",), + ".group_0973": ( "ReposOwnerRepoActionsWorkflowsGetResponse200", "Workflow", ), - ".group_0958": ( + ".group_0974": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", ), - ".group_0959": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), - ".group_0960": ("ReposOwnerRepoAutolinksPostBody",), - ".group_0961": ( + ".group_0975": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), + ".group_0976": ( + "ReposOwnerRepoAttestationsPostBody", + "ReposOwnerRepoAttestationsPostBodyPropBundle", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", + ), + ".group_0977": ("ReposOwnerRepoAttestationsPostResponse201",), + ".group_0978": ( + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + ), + ".group_0979": ("ReposOwnerRepoAutolinksPostBody",), + ".group_0980": ( "ReposOwnerRepoBranchesBranchProtectionPutBody", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", @@ -12301,349 +12517,363 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", ), - ".group_0962": ( + ".group_0981": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", ), - ".group_0963": ( + ".group_0982": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", ), - ".group_0964": ( + ".group_0983": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", ), - ".group_0965": ( + ".group_0984": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", ), - ".group_0966": ( + ".group_0985": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", ), - ".group_0967": ( + ".group_0986": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0", ), - ".group_0968": ( + ".group_0987": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0", ), - ".group_0969": ( + ".group_0988": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0", ), - ".group_0970": ( + ".group_0989": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0", ), - ".group_0971": ( + ".group_0990": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0", ), - ".group_0972": ( + ".group_0991": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0", ), - ".group_0973": ( + ".group_0992": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0", ), - ".group_0974": ( + ".group_0993": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0", ), - ".group_0975": ( + ".group_0994": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0", ), - ".group_0976": ("ReposOwnerRepoBranchesBranchRenamePostBody",), - ".group_0977": ( + ".group_0995": ("ReposOwnerRepoBranchesBranchRenamePostBody",), + ".group_0996": ( "ReposOwnerRepoCheckRunsPostBodyPropOutput", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", ), - ".group_0978": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), - ".group_0979": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), - ".group_0980": ( + ".group_0997": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), + ".group_0998": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), + ".group_0999": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", ), - ".group_0981": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), - ".group_0982": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), - ".group_0983": ("ReposOwnerRepoCheckSuitesPostBody",), - ".group_0984": ( + ".group_1000": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), + ".group_1001": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), + ".group_1002": ("ReposOwnerRepoCheckSuitesPostBody",), + ".group_1003": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBody", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", ), - ".group_0985": ( + ".group_1004": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200", ), - ".group_0986": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), - ".group_0987": ( + ".group_1005": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), + ".group_1006": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0", ), - ".group_0988": ( + ".group_1007": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1", ), - ".group_0989": ( + ".group_1008": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2", ), - ".group_0990": ("ReposOwnerRepoCodeScanningSarifsPostBody",), - ".group_0991": ("ReposOwnerRepoCodespacesGetResponse200",), - ".group_0992": ("ReposOwnerRepoCodespacesPostBody",), - ".group_0993": ( + ".group_1009": ("ReposOwnerRepoCodeScanningSarifsPostBody",), + ".group_1010": ("ReposOwnerRepoCodespacesGetResponse200",), + ".group_1011": ("ReposOwnerRepoCodespacesPostBody",), + ".group_1012": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", ), - ".group_0994": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), - ".group_0995": ( + ".group_1013": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), + ".group_1014": ( "ReposOwnerRepoCodespacesNewGetResponse200", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", ), - ".group_0996": ( + ".group_1015": ( "ReposOwnerRepoCodespacesSecretsGetResponse200", "RepoCodespacesSecret", ), - ".group_0997": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), - ".group_0998": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), - ".group_0999": ("ReposOwnerRepoCommentsCommentIdPatchBody",), - ".group_1000": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), - ".group_1001": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), - ".group_1002": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), - ".group_1003": ( + ".group_1016": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), + ".group_1017": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), + ".group_1018": ("ReposOwnerRepoCommentsCommentIdPatchBody",), + ".group_1019": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), + ".group_1020": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), + ".group_1021": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), + ".group_1022": ( "ReposOwnerRepoContentsPathPutBody", "ReposOwnerRepoContentsPathPutBodyPropCommitter", "ReposOwnerRepoContentsPathPutBodyPropAuthor", ), - ".group_1004": ( + ".group_1023": ( "ReposOwnerRepoContentsPathDeleteBody", "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", ), - ".group_1005": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), - ".group_1006": ( + ".group_1024": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), + ".group_1025": ( "ReposOwnerRepoDependabotSecretsGetResponse200", "DependabotSecret", ), - ".group_1007": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), - ".group_1008": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), - ".group_1009": ( + ".group_1026": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), + ".group_1027": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), + ".group_1028": ( "ReposOwnerRepoDeploymentsPostBody", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", ), - ".group_1010": ("ReposOwnerRepoDeploymentsPostResponse202",), - ".group_1011": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), - ".group_1012": ( + ".group_1029": ("ReposOwnerRepoDeploymentsPostResponse202",), + ".group_1030": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), + ".group_1031": ( "ReposOwnerRepoDispatchesPostBody", "ReposOwnerRepoDispatchesPostBodyPropClientPayload", ), - ".group_1013": ( + ".group_1032": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", ), - ".group_1014": ( + ".group_1033": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", "DeploymentBranchPolicy", ), - ".group_1015": ( + ".group_1034": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", ), - ".group_1016": ( + ".group_1035": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", ), - ".group_1017": ( + ".group_1036": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200", ), - ".group_1018": ( + ".group_1037": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody", ), - ".group_1019": ( + ".group_1038": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200", ), - ".group_1020": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), - ".group_1021": ( + ".group_1039": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), + ".group_1040": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody", ), - ".group_1022": ("ReposOwnerRepoForksPostBody",), - ".group_1023": ("ReposOwnerRepoGitBlobsPostBody",), - ".group_1024": ( + ".group_1041": ("ReposOwnerRepoForksPostBody",), + ".group_1042": ("ReposOwnerRepoGitBlobsPostBody",), + ".group_1043": ( "ReposOwnerRepoGitCommitsPostBody", "ReposOwnerRepoGitCommitsPostBodyPropAuthor", "ReposOwnerRepoGitCommitsPostBodyPropCommitter", ), - ".group_1025": ("ReposOwnerRepoGitRefsPostBody",), - ".group_1026": ("ReposOwnerRepoGitRefsRefPatchBody",), - ".group_1027": ( + ".group_1044": ("ReposOwnerRepoGitRefsPostBody",), + ".group_1045": ("ReposOwnerRepoGitRefsRefPatchBody",), + ".group_1046": ( "ReposOwnerRepoGitTagsPostBody", "ReposOwnerRepoGitTagsPostBodyPropTagger", ), - ".group_1028": ( + ".group_1047": ( "ReposOwnerRepoGitTreesPostBody", "ReposOwnerRepoGitTreesPostBodyPropTreeItems", ), - ".group_1029": ( + ".group_1048": ( "ReposOwnerRepoHooksPostBody", "ReposOwnerRepoHooksPostBodyPropConfig", ), - ".group_1030": ("ReposOwnerRepoHooksHookIdPatchBody",), - ".group_1031": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), - ".group_1032": ("ReposOwnerRepoImportPutBody",), - ".group_1033": ("ReposOwnerRepoImportPatchBody",), - ".group_1034": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), - ".group_1035": ("ReposOwnerRepoImportLfsPatchBody",), - ".group_1036": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), - ".group_1037": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), - ".group_1038": ( + ".group_1049": ("ReposOwnerRepoHooksHookIdPatchBody",), + ".group_1050": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), + ".group_1051": ("ReposOwnerRepoImportPutBody",), + ".group_1052": ("ReposOwnerRepoImportPatchBody",), + ".group_1053": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), + ".group_1054": ("ReposOwnerRepoImportLfsPatchBody",), + ".group_1055": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), + ".group_1056": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), + ".group_1057": ( "ReposOwnerRepoIssuesPostBody", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", ), - ".group_1039": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), - ".group_1040": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), - ".group_1041": ( + ".group_1058": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), + ".group_1059": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), + ".group_1060": ( "ReposOwnerRepoIssuesIssueNumberPatchBody", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", ), - ".group_1042": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), - ".group_1043": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), - ".group_1044": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), - ".group_1045": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), - ".group_1046": ( + ".group_1061": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), + ".group_1062": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), + ".group_1063": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), + ".group_1064": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), + ".group_1065": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", ), - ".group_1047": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), - ".group_1048": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), - ".group_1049": ( + ".group_1066": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), + ".group_1067": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), + ".group_1068": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", ), - ".group_1050": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), - ".group_1051": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), - ".group_1052": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), - ".group_1053": ("ReposOwnerRepoKeysPostBody",), - ".group_1054": ("ReposOwnerRepoLabelsPostBody",), - ".group_1055": ("ReposOwnerRepoLabelsNamePatchBody",), - ".group_1056": ("ReposOwnerRepoMergeUpstreamPostBody",), - ".group_1057": ("ReposOwnerRepoMergesPostBody",), - ".group_1058": ("ReposOwnerRepoMilestonesPostBody",), - ".group_1059": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), - ".group_1060": ("ReposOwnerRepoNotificationsPutBody",), - ".group_1061": ("ReposOwnerRepoNotificationsPutResponse202",), - ".group_1062": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), - ".group_1063": ("ReposOwnerRepoPagesPutBodyAnyof0",), - ".group_1064": ("ReposOwnerRepoPagesPutBodyAnyof1",), - ".group_1065": ("ReposOwnerRepoPagesPutBodyAnyof2",), - ".group_1066": ("ReposOwnerRepoPagesPutBodyAnyof3",), - ".group_1067": ("ReposOwnerRepoPagesPutBodyAnyof4",), - ".group_1068": ("ReposOwnerRepoPagesPostBodyPropSource",), - ".group_1069": ("ReposOwnerRepoPagesPostBodyAnyof0",), - ".group_1070": ("ReposOwnerRepoPagesPostBodyAnyof1",), - ".group_1071": ("ReposOwnerRepoPagesDeploymentsPostBody",), - ".group_1072": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), - ".group_1073": ("ReposOwnerRepoProjectsPostBody",), - ".group_1074": ("ReposOwnerRepoPropertiesValuesPatchBody",), - ".group_1075": ("ReposOwnerRepoPullsPostBody",), - ".group_1076": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), - ".group_1077": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), - ".group_1078": ("ReposOwnerRepoPullsPullNumberPatchBody",), - ".group_1079": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), - ".group_1080": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), - ".group_1081": ( + ".group_1069": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), + ".group_1070": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), + ".group_1071": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), + ".group_1072": ("ReposOwnerRepoKeysPostBody",), + ".group_1073": ("ReposOwnerRepoLabelsPostBody",), + ".group_1074": ("ReposOwnerRepoLabelsNamePatchBody",), + ".group_1075": ("ReposOwnerRepoMergeUpstreamPostBody",), + ".group_1076": ("ReposOwnerRepoMergesPostBody",), + ".group_1077": ("ReposOwnerRepoMilestonesPostBody",), + ".group_1078": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), + ".group_1079": ("ReposOwnerRepoNotificationsPutBody",), + ".group_1080": ("ReposOwnerRepoNotificationsPutResponse202",), + ".group_1081": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), + ".group_1082": ("ReposOwnerRepoPagesPutBodyAnyof0",), + ".group_1083": ("ReposOwnerRepoPagesPutBodyAnyof1",), + ".group_1084": ("ReposOwnerRepoPagesPutBodyAnyof2",), + ".group_1085": ("ReposOwnerRepoPagesPutBodyAnyof3",), + ".group_1086": ("ReposOwnerRepoPagesPutBodyAnyof4",), + ".group_1087": ("ReposOwnerRepoPagesPostBodyPropSource",), + ".group_1088": ("ReposOwnerRepoPagesPostBodyAnyof0",), + ".group_1089": ("ReposOwnerRepoPagesPostBodyAnyof1",), + ".group_1090": ("ReposOwnerRepoPagesDeploymentsPostBody",), + ".group_1091": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), + ".group_1092": ("ReposOwnerRepoProjectsPostBody",), + ".group_1093": ("ReposOwnerRepoPropertiesValuesPatchBody",), + ".group_1094": ("ReposOwnerRepoPullsPostBody",), + ".group_1095": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), + ".group_1096": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), + ".group_1097": ("ReposOwnerRepoPullsPullNumberPatchBody",), + ".group_1098": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), + ".group_1099": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), + ".group_1100": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody", ), - ".group_1082": ("ReposOwnerRepoPullsPullNumberMergePutBody",), - ".group_1083": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), - ".group_1084": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), - ".group_1085": ( + ".group_1101": ("ReposOwnerRepoPullsPullNumberMergePutBody",), + ".group_1102": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), + ".group_1103": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), + ".group_1104": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0", ), - ".group_1086": ( + ".group_1105": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1", ), - ".group_1087": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), - ".group_1088": ( + ".group_1106": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), + ".group_1107": ( "ReposOwnerRepoPullsPullNumberReviewsPostBody", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", ), - ".group_1089": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), - ".group_1090": ( + ".group_1108": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), + ".group_1109": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody", ), - ".group_1091": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), - ".group_1092": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), - ".group_1093": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), - ".group_1094": ("ReposOwnerRepoReleasesPostBody",), - ".group_1095": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), - ".group_1096": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), - ".group_1097": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), - ".group_1098": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), - ".group_1099": ("ReposOwnerRepoRulesetsPostBody",), - ".group_1100": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), - ".group_1101": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), - ".group_1102": ("ReposOwnerRepoStatusesShaPostBody",), - ".group_1103": ("ReposOwnerRepoSubscriptionPutBody",), - ".group_1104": ("ReposOwnerRepoTagsProtectionPostBody",), - ".group_1105": ("ReposOwnerRepoTopicsPutBody",), - ".group_1106": ("ReposOwnerRepoTransferPostBody",), - ".group_1107": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), - ".group_1108": ( + ".group_1110": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), + ".group_1111": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), + ".group_1112": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), + ".group_1113": ("ReposOwnerRepoReleasesPostBody",), + ".group_1114": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), + ".group_1115": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), + ".group_1116": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), + ".group_1117": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), + ".group_1118": ("ReposOwnerRepoRulesetsPostBody",), + ".group_1119": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), + ".group_1120": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), + ".group_1121": ("ReposOwnerRepoStatusesShaPostBody",), + ".group_1122": ("ReposOwnerRepoSubscriptionPutBody",), + ".group_1123": ("ReposOwnerRepoTagsProtectionPostBody",), + ".group_1124": ("ReposOwnerRepoTopicsPutBody",), + ".group_1125": ("ReposOwnerRepoTransferPostBody",), + ".group_1126": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), + ".group_1127": ( "ScimV2OrganizationsOrgUsersPostBody", "ScimV2OrganizationsOrgUsersPostBodyPropName", "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems", ), - ".group_1109": ( + ".group_1128": ( "ScimV2OrganizationsOrgUsersScimUserIdPutBody", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems", ), - ".group_1110": ( + ".group_1129": ( "ScimV2OrganizationsOrgUsersScimUserIdPatchBody", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items", ), - ".group_1111": ("TeamsTeamIdPatchBody",), - ".group_1112": ("TeamsTeamIdDiscussionsPostBody",), - ".group_1113": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), - ".group_1114": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), - ".group_1115": ( + ".group_1130": ("TeamsTeamIdPatchBody",), + ".group_1131": ("TeamsTeamIdDiscussionsPostBody",), + ".group_1132": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), + ".group_1133": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), + ".group_1134": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_1116": ( + ".group_1135": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_1117": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), - ".group_1118": ("TeamsTeamIdMembershipsUsernamePutBody",), - ".group_1119": ("TeamsTeamIdProjectsProjectIdPutBody",), - ".group_1120": ("TeamsTeamIdProjectsProjectIdPutResponse403",), - ".group_1121": ("TeamsTeamIdReposOwnerRepoPutBody",), - ".group_1122": ( + ".group_1136": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), + ".group_1137": ("TeamsTeamIdMembershipsUsernamePutBody",), + ".group_1138": ("TeamsTeamIdProjectsProjectIdPutBody",), + ".group_1139": ("TeamsTeamIdProjectsProjectIdPutResponse403",), + ".group_1140": ("TeamsTeamIdReposOwnerRepoPutBody",), + ".group_1141": ( "TeamsTeamIdTeamSyncGroupMappingsPatchBody", "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems", ), - ".group_1123": ("UserPatchBody",), - ".group_1124": ("UserCodespacesGetResponse200",), - ".group_1125": ("UserCodespacesPostBodyOneof0",), - ".group_1126": ( + ".group_1142": ("UserPatchBody",), + ".group_1143": ("UserCodespacesGetResponse200",), + ".group_1144": ("UserCodespacesPostBodyOneof0",), + ".group_1145": ( "UserCodespacesPostBodyOneof1", "UserCodespacesPostBodyOneof1PropPullRequest", ), - ".group_1127": ( + ".group_1146": ( "UserCodespacesSecretsGetResponse200", "CodespacesSecret", ), - ".group_1128": ("UserCodespacesSecretsSecretNamePutBody",), - ".group_1129": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), - ".group_1130": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_1131": ("UserCodespacesCodespaceNamePatchBody",), - ".group_1132": ("UserCodespacesCodespaceNameMachinesGetResponse200",), - ".group_1133": ("UserCodespacesCodespaceNamePublishPostBody",), - ".group_1134": ("UserEmailVisibilityPatchBody",), - ".group_1135": ("UserEmailsPostBodyOneof0",), - ".group_1136": ("UserEmailsDeleteBodyOneof0",), - ".group_1137": ("UserGpgKeysPostBody",), - ".group_1138": ("UserInstallationsGetResponse200",), - ".group_1139": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), - ".group_1140": ("UserInteractionLimitsGetResponse200Anyof1",), - ".group_1141": ("UserKeysPostBody",), - ".group_1142": ("UserMembershipsOrgsOrgPatchBody",), - ".group_1143": ("UserMigrationsPostBody",), - ".group_1144": ("UserProjectsPostBody",), - ".group_1145": ("UserReposPostBody",), - ".group_1146": ("UserSocialAccountsPostBody",), - ".group_1147": ("UserSocialAccountsDeleteBody",), - ".group_1148": ("UserSshSigningKeysPostBody",), + ".group_1147": ("UserCodespacesSecretsSecretNamePutBody",), + ".group_1148": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), + ".group_1149": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_1150": ("UserCodespacesCodespaceNamePatchBody",), + ".group_1151": ("UserCodespacesCodespaceNameMachinesGetResponse200",), + ".group_1152": ("UserCodespacesCodespaceNamePublishPostBody",), + ".group_1153": ("UserEmailVisibilityPatchBody",), + ".group_1154": ("UserEmailsPostBodyOneof0",), + ".group_1155": ("UserEmailsDeleteBodyOneof0",), + ".group_1156": ("UserGpgKeysPostBody",), + ".group_1157": ("UserInstallationsGetResponse200",), + ".group_1158": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), + ".group_1159": ("UserInteractionLimitsGetResponse200Anyof1",), + ".group_1160": ("UserKeysPostBody",), + ".group_1161": ("UserMembershipsOrgsOrgPatchBody",), + ".group_1162": ("UserMigrationsPostBody",), + ".group_1163": ("UserProjectsPostBody",), + ".group_1164": ("UserReposPostBody",), + ".group_1165": ("UserSocialAccountsPostBody",), + ".group_1166": ("UserSocialAccountsDeleteBody",), + ".group_1167": ("UserSshSigningKeysPostBody",), + ".group_1168": ( + "UsersUsernameAttestationsSubjectDigestGetResponse200", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "SigstoreBundle0", + "SigstoreBundle0PropDsseEnvelope", + "SigstoreBundle0PropDsseEnvelopePropSignaturesItems", + "SigstoreBundle0PropVerificationMaterial", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChain", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise", + ), } diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0047.py b/githubkit/versions/ghec_v2022_11_28/models/group_0047.py index 960bacbf1..5a2cdf61e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0047.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0047.py @@ -9,102 +9,45 @@ from __future__ import annotations -from datetime import date -from typing import List, Union +from typing import Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class CopilotUsageMetrics(GitHubModel): - """Copilot Usage Metrics +class TeamSimple(GitHubModel): + """Team Simple - Summary of Copilot usage. + Groups of organization members that gives permissions on specified repositories. """ - day: date = Field( - description="The date for which the usage metrics are reported, in `YYYY-MM-DD` format." + 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_suggestions_count: Missing[int] = Field( - default=UNSET, - description="The total number of Copilot code completion suggestions shown to users.", - ) - total_acceptances_count: Missing[int] = Field( - default=UNSET, - description="The total number of Copilot code completion suggestions accepted by users.", - ) - total_lines_suggested: Missing[int] = Field( - default=UNSET, - description="The total number of lines of code completions suggested by Copilot.", - ) - total_lines_accepted: Missing[int] = Field( - default=UNSET, - description="The total number of lines of code completions accepted by users.", - ) - total_active_users: Missing[int] = Field( - default=UNSET, - description="The total number of users who were shown Copilot code completion suggestions during the day specified.", - ) - total_chat_acceptances: Missing[int] = Field( - default=UNSET, - description="The total instances of users who accepted code suggested by Copilot Chat in the IDE (panel and inline).", - ) - total_chat_turns: Missing[int] = Field( - default=UNSET, - description="The total number of chat turns (prompt and response pairs) sent between users and Copilot Chat in the IDE.", - ) - total_active_chat_users: Missing[int] = Field( - default=UNSET, - description="The total number of users who interacted with Copilot Chat in the IDE during the day specified.", - ) - breakdown: Union[List[CopilotUsageMetricsPropBreakdownItems], None] = Field( - description="Breakdown of Copilot code completions usage by language and editor" + privacy: Missing[str] = Field( + default=UNSET, description="The level of privacy this team should have" ) - - -class CopilotUsageMetricsPropBreakdownItems(ExtraGitHubModel): - """CopilotUsageMetricsPropBreakdownItems - - Breakdown of Copilot usage by editor for this language - """ - - language: Missing[str] = Field( - default=UNSET, - description="The language in which Copilot suggestions were shown to users in the specified editor.", - ) - editor: Missing[str] = Field( - default=UNSET, - description="The editor in which Copilot suggestions were shown to users for the specified language.", - ) - suggestions_count: Missing[int] = Field( - default=UNSET, - description="The number of Copilot suggestions shown to users in the editor specified during the day specified.", - ) - acceptances_count: Missing[int] = Field( - default=UNSET, - description="The number of Copilot suggestions accepted by users in the editor specified during the day specified.", - ) - lines_suggested: Missing[int] = Field( - default=UNSET, - description="The number of lines of code suggested by Copilot in the editor specified during the day specified.", - ) - lines_accepted: Missing[int] = Field( - default=UNSET, - description="The number of lines of code accepted by users in the editor specified during the day specified.", + notification_setting: Missing[str] = Field( + default=UNSET, description="The notification setting the team has set" ) - active_users: Missing[int] = Field( + html_url: str = Field() + repositories_url: str = Field() + slug: str = Field() + ldap_dn: Missing[str] = Field( default=UNSET, - description="The number of users who were shown Copilot completion suggestions in the editor specified during the day specified.", + description="Distinguished Name (DN) that team maps to within LDAP environment", ) -model_rebuild(CopilotUsageMetrics) -model_rebuild(CopilotUsageMetricsPropBreakdownItems) +model_rebuild(TeamSimple) -__all__ = ( - "CopilotUsageMetrics", - "CopilotUsageMetricsPropBreakdownItems", -) +__all__ = ("TeamSimple",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0048.py b/githubkit/versions/ghec_v2022_11_28/models/group_0048.py index ff820726e..20ca0f0ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0048.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0048.py @@ -9,23 +9,53 @@ from __future__ import annotations +from typing import Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0047 import TeamSimple -class DependabotAlertPackage(GitHubModel): - """DependabotAlertPackage - - Details for the vulnerable package. - """ - ecosystem: str = Field( - description="The package's language or package management ecosystem." - ) - name: str = Field(description="The unique package name within its ecosystem.") +class Team(GitHubModel): + """Team + Groups of organization members that gives permissions on specified repositories. + """ -model_rebuild(DependabotAlertPackage) - -__all__ = ("DependabotAlertPackage",) + 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/ghec_v2022_11_28/models/group_0049.py b/githubkit/versions/ghec_v2022_11_28/models/group_0049.py index bfa8f608f..fe5c699b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0049.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0049.py @@ -9,52 +9,145 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union +from datetime import date, datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0048 import DependabotAlertPackage +from .group_0048 import Team +from .group_0001 import SimpleUser +from .group_0029 import OrganizationSimple -class DependabotAlertSecurityVulnerability(GitHubModel): - """DependabotAlertSecurityVulnerability +class CopilotSeatDetails(GitHubModel): + """Copilot Business Seat Detail - Details pertaining to one vulnerable version range for the advisory. + Information about a Copilot Business seat assignment for a user, team, or + organization. """ - package: DependabotAlertPackage = Field( - description="Details for the vulnerable package." + assignee: Union[SimpleUser, Team, Organization] = Field( + description="The assignee that has been granted access to GitHub Copilot." ) - severity: Literal["low", "medium", "high", "critical"] = Field( - description="The severity of the vulnerability." + organization: Missing[Union[OrganizationSimple, None]] = Field( + default=UNSET, description="The organization to which this seat belongs." ) - vulnerable_version_range: str = Field( - description="Conditions that identify vulnerable versions of this vulnerability's package." + 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.", ) - first_patched_version: Union[ - DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion, None - ] = Field( - description="Details pertaining to the package version that patches this vulnerability." + 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="Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.", + ) + + +class EnterpriseTeam(GitHubModel): + """Enterprise Team + + Group of enterprise owners and/or members + """ + + id: int = Field() + name: str = Field() + slug: str = Field() + url: str = Field() + sync_to_organizations: str = Field() + group_id: Missing[Union[int, None]] = Field(default=UNSET) + html_url: str = Field() + members_url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() -class DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion(GitHubModel): - """DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion +class Organization(GitHubModel): + """Organization - Details pertaining to the package version that patches this vulnerability. + GitHub account for managing multiple users, teams, and repositories """ - identifier: str = Field( - description="The package version that patches this vulnerability." + login: str = Field(description="Unique login name of the organization") + url: str = Field(description="URL for the organization") + id: int = Field() + node_id: 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() + blog: Missing[str] = Field( + default=UNSET, description="Display blog url for the organization" ) + html_url: str = Field() + name: Missing[str] = Field( + default=UNSET, description="Display name for the organization" + ) + company: Missing[str] = Field( + default=UNSET, description="Display company name for the organization" + ) + location: Missing[str] = Field( + default=UNSET, description="Display location for the organization" + ) + email: Missing[str] = Field( + default=UNSET, description="Display email for the organization" + ) + has_organization_projects: bool = Field( + description="Specifies if organization projects are enabled for this org" + ) + has_repository_projects: bool = Field( + description="Specifies if repository projects are enabled for repositories that belong to this org" + ) + is_verified: Missing[bool] = Field(default=UNSET) + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() + type: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + plan: Missing[OrganizationPropPlan] = Field(default=UNSET) + + +class OrganizationPropPlan(GitHubModel): + """OrganizationPropPlan""" + + name: Missing[str] = Field(default=UNSET) + space: Missing[int] = Field(default=UNSET) + private_repos: Missing[int] = Field(default=UNSET) + filled_seats: Missing[int] = Field(default=UNSET) + seats: Missing[int] = Field(default=UNSET) -model_rebuild(DependabotAlertSecurityVulnerability) -model_rebuild(DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion) +model_rebuild(CopilotSeatDetails) +model_rebuild(EnterpriseTeam) +model_rebuild(Organization) +model_rebuild(OrganizationPropPlan) __all__ = ( - "DependabotAlertSecurityVulnerability", - "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion", + "CopilotSeatDetails", + "EnterpriseTeam", + "Organization", + "OrganizationPropPlan", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0050.py b/githubkit/versions/ghec_v2022_11_28/models/group_0050.py index 6a57aa2dd..960bacbf1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0050.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0050.py @@ -9,114 +9,102 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from datetime import date +from typing import List, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0049 import DependabotAlertSecurityVulnerability +class CopilotUsageMetrics(GitHubModel): + """Copilot Usage Metrics -class DependabotAlertSecurityAdvisory(GitHubModel): - """DependabotAlertSecurityAdvisory - - Details for the GitHub Security Advisory. + Summary of Copilot usage. """ - 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." + day: date = Field( + description="The date for which the usage metrics are reported, in `YYYY-MM-DD` format." ) - vulnerabilities: List[DependabotAlertSecurityVulnerability] = Field( - description="Vulnerable version range information for the advisory." + total_suggestions_count: Missing[int] = Field( + default=UNSET, + description="The total number of Copilot code completion suggestions shown to users.", ) - severity: Literal["low", "medium", "high", "critical"] = Field( - description="The severity of the advisory." + total_acceptances_count: Missing[int] = Field( + default=UNSET, + description="The total number of Copilot code completion suggestions accepted by users.", ) - cvss: DependabotAlertSecurityAdvisoryPropCvss = Field( - description="Details for the advisory pertaining to the Common Vulnerability Scoring System." + total_lines_suggested: Missing[int] = Field( + default=UNSET, + description="The total number of lines of code completions suggested by Copilot.", ) - cwes: List[DependabotAlertSecurityAdvisoryPropCwesItems] = Field( - description="Details for the advisory pertaining to Common Weakness Enumeration." + total_lines_accepted: Missing[int] = Field( + default=UNSET, + description="The total number of lines of code completions accepted by users.", ) - identifiers: List[DependabotAlertSecurityAdvisoryPropIdentifiersItems] = Field( - description="Values that identify this advisory among security information sources." + total_active_users: Missing[int] = Field( + default=UNSET, + description="The total number of users who were shown Copilot code completion suggestions during the day specified.", ) - references: List[DependabotAlertSecurityAdvisoryPropReferencesItems] = Field( - description="Links to additional advisory information." + total_chat_acceptances: Missing[int] = Field( + default=UNSET, + description="The total instances of users who accepted code suggested by Copilot Chat in the IDE (panel and inline).", ) - published_at: datetime = Field( - description="The time that the advisory was published in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + total_chat_turns: Missing[int] = Field( + default=UNSET, + description="The total number of chat turns (prompt and response pairs) sent between users and Copilot Chat in the IDE.", ) - updated_at: datetime = Field( - description="The time that the advisory was last modified in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + total_active_chat_users: Missing[int] = Field( + default=UNSET, + description="The total number of users who interacted with Copilot Chat in the IDE during the day specified.", ) - withdrawn_at: Union[datetime, None] = Field( - description="The time that the advisory was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + breakdown: Union[List[CopilotUsageMetricsPropBreakdownItems], None] = Field( + description="Breakdown of Copilot code completions usage by language and editor" ) -class DependabotAlertSecurityAdvisoryPropCvss(GitHubModel): - """DependabotAlertSecurityAdvisoryPropCvss +class CopilotUsageMetricsPropBreakdownItems(ExtraGitHubModel): + """CopilotUsageMetricsPropBreakdownItems - Details for the advisory pertaining to the Common Vulnerability Scoring System. + Breakdown of Copilot usage by editor for this language """ - 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." + language: Missing[str] = Field( + default=UNSET, + description="The language in which Copilot suggestions were shown to users in the specified editor.", + ) + editor: Missing[str] = Field( + default=UNSET, + description="The editor in which Copilot suggestions were shown to users for the specified language.", + ) + suggestions_count: Missing[int] = Field( + default=UNSET, + description="The number of Copilot suggestions shown to users in the editor specified during the day specified.", + ) + acceptances_count: Missing[int] = Field( + default=UNSET, + description="The number of Copilot suggestions accepted by users in the editor specified during the day specified.", + ) + lines_suggested: Missing[int] = Field( + default=UNSET, + description="The number of lines of code suggested by Copilot in the editor specified during the day specified.", + ) + lines_accepted: Missing[int] = Field( + default=UNSET, + description="The number of lines of code accepted by users in the editor specified during the day specified.", + ) + active_users: Missing[int] = Field( + default=UNSET, + description="The number of users who were shown Copilot completion suggestions in the editor specified during the day specified.", ) -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(CopilotUsageMetrics) +model_rebuild(CopilotUsageMetricsPropBreakdownItems) __all__ = ( - "DependabotAlertSecurityAdvisory", - "DependabotAlertSecurityAdvisoryPropCvss", - "DependabotAlertSecurityAdvisoryPropCwesItems", - "DependabotAlertSecurityAdvisoryPropIdentifiersItems", - "DependabotAlertSecurityAdvisoryPropReferencesItems", + "CopilotUsageMetrics", + "CopilotUsageMetricsPropBreakdownItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0051.py b/githubkit/versions/ghec_v2022_11_28/models/group_0051.py index d97ebd0e7..ff820726e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0051.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0051.py @@ -9,75 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import Annotated - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0043 import SimpleRepository -from .group_0050 import DependabotAlertSecurityAdvisory -from .group_0049 import DependabotAlertSecurityVulnerability -from .group_0052 import DependabotAlertWithRepositoryPropDependency - -class DependabotAlertWithRepository(GitHubModel): - """DependabotAlertWithRepository +class DependabotAlertPackage(GitHubModel): + """DependabotAlertPackage - A Dependabot alert. + 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." - ) - dependency: DependabotAlertWithRepositoryPropDependency = Field( - description="Details for the vulnerable dependency." - ) - security_advisory: DependabotAlertSecurityAdvisory = Field( - description="Details for the GitHub Security Advisory." - ) - security_vulnerability: DependabotAlertSecurityVulnerability = Field( - description="Details pertaining to one vulnerable version range for the advisory." - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: datetime = Field( - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], - ] = Field(description="The reason that the alert was dismissed.") - dismissed_comment: Union[Annotated[str, Field(max_length=280)], None] = Field( - description="An optional comment associated with the alert's dismissal." - ) - fixed_at: Union[datetime, None] = Field( - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - auto_dismissed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The 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." + 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(DependabotAlertWithRepository) +model_rebuild(DependabotAlertPackage) -__all__ = ("DependabotAlertWithRepository",) +__all__ = ("DependabotAlertPackage",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0052.py b/githubkit/versions/ghec_v2022_11_28/models/group_0052.py index 057aba989..381f73438 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0052.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0052.py @@ -13,31 +13,48 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0048 import DependabotAlertPackage +from .group_0051 import DependabotAlertPackage -class DependabotAlertWithRepositoryPropDependency(GitHubModel): - """DependabotAlertWithRepositoryPropDependency +class DependabotAlertSecurityVulnerability(GitHubModel): + """DependabotAlertSecurityVulnerability - Details for the vulnerable dependency. + Details pertaining to one vulnerable version range for the advisory. """ - package: Missing[DependabotAlertPackage] = Field( - default=UNSET, description="Details for the vulnerable package." + package: DependabotAlertPackage = Field( + 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.", + severity: Literal["low", "medium", "high", "critical"] = Field( + description="The severity of the vulnerability." ) - scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( - default=UNSET, description="The execution scope of the vulnerable dependency." + vulnerable_version_range: str = Field( + description="Conditions that identify vulnerable versions of this vulnerability's package." + ) + first_patched_version: Union[ + DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion, None + ] = Field( + description="Details pertaining to the package version that patches this vulnerability." + ) + + +class DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion(GitHubModel): + """DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion + + Details pertaining to the package version that patches this vulnerability. + """ + + identifier: str = Field( + description="The package version that patches this vulnerability." ) -model_rebuild(DependabotAlertWithRepositoryPropDependency) +model_rebuild(DependabotAlertSecurityVulnerability) +model_rebuild(DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion) -__all__ = ("DependabotAlertWithRepositoryPropDependency",) +__all__ = ( + "DependabotAlertSecurityVulnerability", + "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0053.py b/githubkit/versions/ghec_v2022_11_28/models/group_0053.py index 9e091a2ba..817cb8c0d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0053.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0053.py @@ -9,50 +9,114 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0052 import DependabotAlertSecurityVulnerability -class GetLicenseSyncStatus(GitHubModel): - """License Sync Status - Information about the status of a license sync job for an enterprise. +class DependabotAlertSecurityAdvisory(GitHubModel): + """DependabotAlertSecurityAdvisory + + Details for the GitHub Security Advisory. """ - server_instances: Missing[List[GetLicenseSyncStatusPropServerInstancesItems]] = ( - Field(default=UNSET) + 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." + ) + 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." + ) + cwes: List[DependabotAlertSecurityAdvisoryPropCwesItems] = Field( + description="Details for the advisory pertaining to Common Weakness Enumeration." + ) + identifiers: List[DependabotAlertSecurityAdvisoryPropIdentifiersItems] = Field( + description="Values that identify this advisory among security information sources." + ) + references: List[DependabotAlertSecurityAdvisoryPropReferencesItems] = Field( + description="Links to additional advisory information." + ) + published_at: datetime = Field( + description="The time that the advisory was published in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + updated_at: datetime = Field( + description="The time that the advisory was last modified in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + withdrawn_at: Union[datetime, None] = Field( + description="The time that the advisory was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) -class GetLicenseSyncStatusPropServerInstancesItems(GitHubModel): - """GetLicenseSyncStatusPropServerInstancesItems""" +class DependabotAlertSecurityAdvisoryPropCvss(GitHubModel): + """DependabotAlertSecurityAdvisoryPropCvss - server_id: Missing[str] = Field(default=UNSET) - hostname: Missing[str] = Field(default=UNSET) - last_sync: Missing[GetLicenseSyncStatusPropServerInstancesItemsPropLastSync] = ( - Field(default=UNSET) + 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 GetLicenseSyncStatusPropServerInstancesItemsPropLastSync(GitHubModel): - """GetLicenseSyncStatusPropServerInstancesItemsPropLastSync""" +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. + """ - date: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - error: Missing[str] = Field(default=UNSET) + url: str = Field(description="The URL of the reference.") -model_rebuild(GetLicenseSyncStatus) -model_rebuild(GetLicenseSyncStatusPropServerInstancesItems) -model_rebuild(GetLicenseSyncStatusPropServerInstancesItemsPropLastSync) +model_rebuild(DependabotAlertSecurityAdvisory) +model_rebuild(DependabotAlertSecurityAdvisoryPropCvss) +model_rebuild(DependabotAlertSecurityAdvisoryPropCwesItems) +model_rebuild(DependabotAlertSecurityAdvisoryPropIdentifiersItems) +model_rebuild(DependabotAlertSecurityAdvisoryPropReferencesItems) __all__ = ( - "GetLicenseSyncStatus", - "GetLicenseSyncStatusPropServerInstancesItems", - "GetLicenseSyncStatusPropServerInstancesItemsPropLastSync", + "DependabotAlertSecurityAdvisory", + "DependabotAlertSecurityAdvisoryPropCvss", + "DependabotAlertSecurityAdvisoryPropCwesItems", + "DependabotAlertSecurityAdvisoryPropIdentifiersItems", + "DependabotAlertSecurityAdvisoryPropReferencesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0054.py b/githubkit/versions/ghec_v2022_11_28/models/group_0054.py index 137d6fd68..0817b7d0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0054.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0054.py @@ -11,6 +11,7 @@ from datetime import datetime from typing import Union, Literal +from typing_extensions import Annotated from pydantic import Field @@ -20,75 +21,63 @@ from .group_0001 import SimpleUser from .group_0043 import SimpleRepository +from .group_0053 import DependabotAlertSecurityAdvisory +from .group_0052 import DependabotAlertSecurityVulnerability +from .group_0055 import DependabotAlertWithRepositoryPropDependency -class OrganizationSecretScanningAlert(GitHubModel): - """OrganizationSecretScanningAlert""" +class DependabotAlertWithRepository(GitHubModel): + """DependabotAlertWithRepository - 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`.", + A Dependabot alert. + """ + + number: int = Field(description="The security alert number.") + state: Literal["auto_dismissed", "dismissed", "fixed", "open"] = Field( + description="The state of the Dependabot alert." ) - 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.", + dependency: DependabotAlertWithRepositoryPropDependency = Field( + description="Details for the vulnerable dependency." ) - 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`.", + security_advisory: DependabotAlertSecurityAdvisory = Field( + description="Details for the GitHub Security Advisory." ) - 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." + security_vulnerability: DependabotAlertSecurityVulnerability = Field( + description="Details pertaining to one vulnerable version range for the advisory." ) - 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 "[Secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)."', + 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`." ) - secret: Missing[str] = Field( - default=UNSET, description="The secret that was detected." + updated_at: datetime = Field( + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - repository: Missing[SimpleRepository] = Field( - default=UNSET, title="Simple Repository", description="A GitHub repository." + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether push protection was bypassed for the detected secret.", + 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." ) - 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`.", + 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`." ) - resolution_comment: Missing[Union[str, None]] = Field( + auto_dismissed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The comment that was optionally added when this alert was closed", + description="The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." + repository: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." ) -model_rebuild(OrganizationSecretScanningAlert) +model_rebuild(DependabotAlertWithRepository) -__all__ = ("OrganizationSecretScanningAlert",) +__all__ = ("DependabotAlertWithRepository",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0055.py b/githubkit/versions/ghec_v2022_11_28/models/group_0055.py index 4be9aa73e..f0222a0b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0055.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0055.py @@ -9,99 +9,35 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0051 import DependabotAlertPackage -class ActionsBillingUsage(GitHubModel): - """ActionsBillingUsage""" - - total_minutes_used: int = Field( - description="The sum of the free and paid GitHub Actions minutes used." - ) - total_paid_minutes_used: int = Field( - description="The total paid GitHub Actions minutes used." - ) - included_minutes: int = Field( - description="The amount of free GitHub Actions minutes available." - ) - minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdown = Field() +class DependabotAlertWithRepositoryPropDependency(GitHubModel): + """DependabotAlertWithRepositoryPropDependency -class ActionsBillingUsagePropMinutesUsedBreakdown(GitHubModel): - """ActionsBillingUsagePropMinutesUsedBreakdown""" + Details for the vulnerable dependency. + """ - 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.", + package: Missing[DependabotAlertPackage] = Field( + default=UNSET, description="Details for the vulnerable package." ) - macos_12_core: Missing[int] = Field( + manifest_path: Missing[str] = Field( default=UNSET, - description="Total minutes used on macOS 12 core runner machines.", + description="The full path to the dependency manifest file, relative to the root of the repository.", ) - total: Missing[int] = Field( - default=UNSET, description="Total minutes used on all runner machines." + scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( + default=UNSET, description="The execution scope of the vulnerable dependency." ) -model_rebuild(ActionsBillingUsage) -model_rebuild(ActionsBillingUsagePropMinutesUsedBreakdown) +model_rebuild(DependabotAlertWithRepositoryPropDependency) -__all__ = ( - "ActionsBillingUsage", - "ActionsBillingUsagePropMinutesUsedBreakdown", -) +__all__ = ("DependabotAlertWithRepositoryPropDependency",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0056.py b/githubkit/versions/ghec_v2022_11_28/models/group_0056.py index 6e93ec075..9e091a2ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0056.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0056.py @@ -18,46 +18,41 @@ from githubkit.compat import GitHubModel, model_rebuild -class AdvancedSecurityActiveCommitters(GitHubModel): - """AdvancedSecurityActiveCommitters""" - - total_advanced_security_committers: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - maximum_advanced_security_committers: Missing[int] = Field( - default=UNSET, - description="The total number of GitHub Advanced Security licences required if all repositories were to enable GitHub Advanced Security", - ) - purchased_advanced_security_committers: Missing[int] = Field( - default=UNSET, - description="The total number of GitHub Advanced Security licences purchased", +class GetLicenseSyncStatus(GitHubModel): + """License Sync Status + + Information about the status of a license sync job for an enterprise. + """ + + server_instances: Missing[List[GetLicenseSyncStatusPropServerInstancesItems]] = ( + Field(default=UNSET) ) - repositories: List[AdvancedSecurityActiveCommittersRepository] = Field() -class AdvancedSecurityActiveCommittersRepository(GitHubModel): - """AdvancedSecurityActiveCommittersRepository""" +class GetLicenseSyncStatusPropServerInstancesItems(GitHubModel): + """GetLicenseSyncStatusPropServerInstancesItems""" - name: str = Field() - advanced_security_committers: int = Field() - advanced_security_committers_breakdown: List[ - AdvancedSecurityActiveCommittersUser - ] = Field() + server_id: Missing[str] = Field(default=UNSET) + hostname: Missing[str] = Field(default=UNSET) + last_sync: Missing[GetLicenseSyncStatusPropServerInstancesItemsPropLastSync] = ( + Field(default=UNSET) + ) -class AdvancedSecurityActiveCommittersUser(GitHubModel): - """AdvancedSecurityActiveCommittersUser""" +class GetLicenseSyncStatusPropServerInstancesItemsPropLastSync(GitHubModel): + """GetLicenseSyncStatusPropServerInstancesItemsPropLastSync""" - user_login: str = Field() - last_pushed_date: str = Field() - last_pushed_email: str = Field() + date: Missing[str] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + error: Missing[str] = Field(default=UNSET) -model_rebuild(AdvancedSecurityActiveCommitters) -model_rebuild(AdvancedSecurityActiveCommittersRepository) -model_rebuild(AdvancedSecurityActiveCommittersUser) +model_rebuild(GetLicenseSyncStatus) +model_rebuild(GetLicenseSyncStatusPropServerInstancesItems) +model_rebuild(GetLicenseSyncStatusPropServerInstancesItemsPropLastSync) __all__ = ( - "AdvancedSecurityActiveCommitters", - "AdvancedSecurityActiveCommittersRepository", - "AdvancedSecurityActiveCommittersUser", + "GetLicenseSyncStatus", + "GetLicenseSyncStatusPropServerInstancesItems", + "GetLicenseSyncStatusPropServerInstancesItemsPropLastSync", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0057.py b/githubkit/versions/ghec_v2022_11_28/models/group_0057.py index f90654001..137d6fd68 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0057.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0057.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,36 +18,77 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0043 import SimpleRepository -class GetAllCostCenters(GitHubModel): - """GetAllCostCenters""" - cost_centers: Missing[List[GetAllCostCentersPropCostCentersItems]] = Field( - default=UNSET, alias="costCenters" - ) - - -class GetAllCostCentersPropCostCentersItems(GitHubModel): - """GetAllCostCentersPropCostCentersItems""" - - id: str = Field(description="ID of the cost center.") - name: str = Field(description="Name of the cost center.") - resources: List[GetAllCostCentersPropCostCentersItemsPropResourcesItems] = Field() - - -class GetAllCostCentersPropCostCentersItemsPropResourcesItems(GitHubModel): - """GetAllCostCentersPropCostCentersItemsPropResourcesItems""" +class OrganizationSecretScanningAlert(GitHubModel): + """OrganizationSecretScanningAlert""" - type: str = Field(description="Type of the resource.") - name: str = Field(description="Name of the resource.") + number: Missing[int] = Field( + default=UNSET, description="The security alert number." + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." + ) + locations_url: Missing[str] = Field( + default=UNSET, + description="The REST API URL of the code locations for this alert.", + ) + state: Missing[Literal["open", "resolved"]] = Field( + default=UNSET, + description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", + ) + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( + default=UNSET, + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", + ) + resolved_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + secret_type_display_name: Missing[str] = Field( + default=UNSET, + description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)."', + ) + 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`.", + ) + 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." + ) -model_rebuild(GetAllCostCenters) -model_rebuild(GetAllCostCentersPropCostCentersItems) -model_rebuild(GetAllCostCentersPropCostCentersItemsPropResourcesItems) +model_rebuild(OrganizationSecretScanningAlert) -__all__ = ( - "GetAllCostCenters", - "GetAllCostCentersPropCostCentersItems", - "GetAllCostCentersPropCostCentersItemsPropResourcesItems", -) +__all__ = ("OrganizationSecretScanningAlert",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0058.py b/githubkit/versions/ghec_v2022_11_28/models/group_0058.py index b7be403af..4be9aa73e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0058.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0058.py @@ -11,23 +11,97 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class PackagesBillingUsage(GitHubModel): - """PackagesBillingUsage""" +class ActionsBillingUsage(GitHubModel): + """ActionsBillingUsage""" - total_gigabytes_bandwidth_used: int = Field( - description="Sum of the free and paid storage space (GB) for GitHuub Packages." + total_minutes_used: int = Field( + description="The sum of the free and paid GitHub Actions minutes used." ) - total_paid_gigabytes_bandwidth_used: int = Field( - description="Total paid storage space (GB) for GitHuub Packages." + total_paid_minutes_used: int = Field( + description="The total paid GitHub Actions minutes used." ) - included_gigabytes_bandwidth: int = Field( - description="Free storage space (GB) for GitHub Packages." + included_minutes: int = Field( + description="The amount of free GitHub Actions minutes available." ) + minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdown = Field() -model_rebuild(PackagesBillingUsage) +class ActionsBillingUsagePropMinutesUsedBreakdown(GitHubModel): + """ActionsBillingUsagePropMinutesUsedBreakdown""" -__all__ = ("PackagesBillingUsage",) + ubuntu: Missing[int] = Field( + default=UNSET, + alias="UBUNTU", + description="Total minutes used on Ubuntu runner machines.", + ) + macos: Missing[int] = Field( + default=UNSET, + alias="MACOS", + description="Total minutes used on macOS runner machines.", + ) + windows: Missing[int] = Field( + default=UNSET, + alias="WINDOWS", + description="Total minutes used on Windows runner machines.", + ) + ubuntu_4_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 4 core runner machines.", + ) + ubuntu_8_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 8 core runner machines.", + ) + ubuntu_16_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 16 core runner machines.", + ) + ubuntu_32_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 32 core runner machines.", + ) + ubuntu_64_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 64 core runner machines.", + ) + windows_4_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 4 core runner machines.", + ) + windows_8_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 8 core runner machines.", + ) + windows_16_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 16 core runner machines.", + ) + windows_32_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 32 core runner machines.", + ) + windows_64_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 64 core runner machines.", + ) + macos_12_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on macOS 12 core runner machines.", + ) + total: Missing[int] = Field( + default=UNSET, description="Total minutes used on all runner machines." + ) + + +model_rebuild(ActionsBillingUsage) +model_rebuild(ActionsBillingUsagePropMinutesUsedBreakdown) + +__all__ = ( + "ActionsBillingUsage", + "ActionsBillingUsagePropMinutesUsedBreakdown", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0059.py b/githubkit/versions/ghec_v2022_11_28/models/group_0059.py index 7f2b2b444..6e93ec075 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0059.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0059.py @@ -9,25 +9,55 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class CombinedBillingUsage(GitHubModel): - """CombinedBillingUsage""" +class AdvancedSecurityActiveCommitters(GitHubModel): + """AdvancedSecurityActiveCommitters""" - days_left_in_billing_cycle: int = Field( - description="Numbers of days left in billing cycle." - ) - estimated_paid_storage_for_month: int = Field( - description="Estimated storage space (GB) used in billing cycle." + total_advanced_security_committers: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + maximum_advanced_security_committers: Missing[int] = Field( + default=UNSET, + description="The total number of GitHub Advanced Security licences required if all repositories were to enable GitHub Advanced Security", ) - estimated_storage_for_month: int = Field( - description="Estimated sum of free and paid storage space (GB) used in billing cycle." + purchased_advanced_security_committers: Missing[int] = Field( + default=UNSET, + description="The total number of GitHub Advanced Security licences purchased", ) + repositories: List[AdvancedSecurityActiveCommittersRepository] = Field() + + +class AdvancedSecurityActiveCommittersRepository(GitHubModel): + """AdvancedSecurityActiveCommittersRepository""" + + name: str = Field() + advanced_security_committers: int = Field() + advanced_security_committers_breakdown: List[ + AdvancedSecurityActiveCommittersUser + ] = Field() + + +class AdvancedSecurityActiveCommittersUser(GitHubModel): + """AdvancedSecurityActiveCommittersUser""" + + user_login: str = Field() + last_pushed_date: str = Field() + last_pushed_email: str = Field() -model_rebuild(CombinedBillingUsage) +model_rebuild(AdvancedSecurityActiveCommitters) +model_rebuild(AdvancedSecurityActiveCommittersRepository) +model_rebuild(AdvancedSecurityActiveCommittersUser) -__all__ = ("CombinedBillingUsage",) +__all__ = ( + "AdvancedSecurityActiveCommitters", + "AdvancedSecurityActiveCommittersRepository", + "AdvancedSecurityActiveCommittersUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0060.py b/githubkit/versions/ghec_v2022_11_28/models/group_0060.py index 1d50a3260..f90654001 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0060.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0060.py @@ -18,48 +18,35 @@ from githubkit.compat import GitHubModel, model_rebuild -class BillingUsageReport(GitHubModel): - """BillingUsageReport""" +class GetAllCostCenters(GitHubModel): + """GetAllCostCenters""" - usage_items: Missing[List[BillingUsageReportPropUsageItemsItems]] = Field( - default=UNSET, alias="usageItems" + cost_centers: Missing[List[GetAllCostCentersPropCostCentersItems]] = Field( + default=UNSET, alias="costCenters" ) -class BillingUsageReportPropUsageItemsItems(GitHubModel): - """BillingUsageReportPropUsageItemsItems""" +class GetAllCostCentersPropCostCentersItems(GitHubModel): + """GetAllCostCentersPropCostCentersItems""" - date: str = Field(description="Date of the usage line item.") - product: str = Field(description="Product name.") - sku: str = Field(description="SKU name.") - quantity: int = Field(description="Quantity of the usage line item.") - unit_type: str = Field( - alias="unitType", description="Unit type of the usage line item." - ) - price_per_unit: float = Field( - alias="pricePerUnit", description="Price per unit of the usage line item." - ) - gross_amount: float = Field( - alias="grossAmount", description="Gross amount of the usage line item." - ) - discount_amount: float = Field( - alias="discountAmount", description="Discount amount of the usage line item." - ) - net_amount: float = Field( - alias="netAmount", description="Net amount of the usage line item." - ) - organization_name: str = Field( - alias="organizationName", description="Name of the organization." - ) - repository_name: Missing[str] = Field( - default=UNSET, alias="repositoryName", description="Name of the repository." - ) + id: str = Field(description="ID of the cost center.") + name: str = Field(description="Name of the cost center.") + resources: List[GetAllCostCentersPropCostCentersItemsPropResourcesItems] = Field() + + +class GetAllCostCentersPropCostCentersItemsPropResourcesItems(GitHubModel): + """GetAllCostCentersPropCostCentersItemsPropResourcesItems""" + + type: str = Field(description="Type of the resource.") + name: str = Field(description="Name of the resource.") -model_rebuild(BillingUsageReport) -model_rebuild(BillingUsageReportPropUsageItemsItems) +model_rebuild(GetAllCostCenters) +model_rebuild(GetAllCostCentersPropCostCentersItems) +model_rebuild(GetAllCostCentersPropCostCentersItemsPropResourcesItems) __all__ = ( - "BillingUsageReport", - "BillingUsageReportPropUsageItemsItems", + "GetAllCostCenters", + "GetAllCostCentersPropCostCentersItems", + "GetAllCostCentersPropCostCentersItemsPropResourcesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0061.py b/githubkit/versions/ghec_v2022_11_28/models/group_0061.py index d723b51dc..b7be403af 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0061.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0061.py @@ -9,42 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser - - -class Milestone(GitHubModel): - """Milestone - A collection of related issues and pull requests. - """ +class PackagesBillingUsage(GitHubModel): + """PackagesBillingUsage""" - url: str = Field() - html_url: str = Field() - labels_url: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - state: Literal["open", "closed"] = Field( - default="open", description="The state of the milestone." + total_gigabytes_bandwidth_used: int = Field( + description="Sum of the free and paid storage space (GB) for GitHuub Packages." + ) + total_paid_gigabytes_bandwidth_used: int = Field( + description="Total paid storage space (GB) for GitHuub Packages." + ) + included_gigabytes_bandwidth: int = Field( + description="Free storage space (GB) for GitHub Packages." ) - title: str = Field(description="The title of the milestone.") - description: Union[str, None] = Field() - creator: Union[None, SimpleUser] = Field() - open_issues: int = Field() - closed_issues: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - due_on: Union[datetime, None] = Field() -model_rebuild(Milestone) +model_rebuild(PackagesBillingUsage) -__all__ = ("Milestone",) +__all__ = ("PackagesBillingUsage",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0062.py b/githubkit/versions/ghec_v2022_11_28/models/group_0062.py index fd85f1373..7f2b2b444 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0062.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0062.py @@ -14,21 +14,20 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReactionRollup(GitHubModel): - """Reaction Rollup""" +class CombinedBillingUsage(GitHubModel): + """CombinedBillingUsage""" - 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() + days_left_in_billing_cycle: int = Field( + description="Numbers of days left in billing cycle." + ) + estimated_paid_storage_for_month: int = Field( + description="Estimated storage space (GB) used in billing cycle." + ) + estimated_storage_for_month: int = Field( + description="Estimated sum of free and paid storage space (GB) used in billing cycle." + ) -model_rebuild(ReactionRollup) +model_rebuild(CombinedBillingUsage) -__all__ = ("ReactionRollup",) +__all__ = ("CombinedBillingUsage",) 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 acfd0877e..1d50a3260 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0063.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0063.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from pydantic import Field @@ -18,108 +17,49 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0061 import Milestone -from .group_0001 import SimpleUser -from .group_0017 import Repository -from .group_0006 import Integration -from .group_0062 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" + +class BillingUsageReport(GitHubModel): + """BillingUsageReport""" + + usage_items: Missing[List[BillingUsageReportPropUsageItemsItems]] = Field( + default=UNSET, alias="usageItems" ) - state: str = Field(description="State of the issue; either 'open' or 'closed'") - state_reason: Missing[ - Union[None, Literal["completed", "reopened", "not_planned"]] - ] = Field(default=UNSET, description="The reason for the current state") - title: str = Field(description="Title of the issue") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Contents of the issue" + + +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." ) - 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" + price_per_unit: float = Field( + alias="pricePerUnit", description="Price per unit of the usage line item." ) - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - milestone: Union[None, Milestone] = Field() - locked: bool = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - comments: int = Field() - pull_request: Missing[IssuePropPullRequest] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - closed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - body_html: Missing[Union[str, None]] = Field(default=UNSET) - body_text: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - repository: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." + gross_amount: float = Field( + alias="grossAmount", description="Gross amount of the usage line item." ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET + discount_amount: float = Field( + alias="discountAmount", description="Discount amount of the usage line item." ) - 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.", + 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." ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - - -class IssuePropLabelsItemsOneof1(GitHubModel): - """IssuePropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - default: Missing[bool] = Field(default=UNSET) - - -class IssuePropPullRequest(GitHubModel): - """IssuePropPullRequest""" - - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - diff_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - patch_url: Union[str, None] = Field() - url: Union[str, None] = Field() -model_rebuild(Issue) -model_rebuild(IssuePropLabelsItemsOneof1) -model_rebuild(IssuePropPullRequest) +model_rebuild(BillingUsageReport) +model_rebuild(BillingUsageReportPropUsageItemsItems) __all__ = ( - "Issue", - "IssuePropLabelsItemsOneof1", - "IssuePropPullRequest", + "BillingUsageReport", + "BillingUsageReportPropUsageItemsItems", ) 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 f48ed8e40..d723b51dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0064.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0064.py @@ -14,53 +14,37 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -from .group_0006 import Integration -from .group_0062 import ReactionRollup -class IssueComment(GitHubModel): - """Issue Comment +class Milestone(GitHubModel): + """Milestone - Comments provide a way for people to collaborate on an issue. + A collection of related issues and pull requests. """ - id: int = Field(description="Unique identifier of the issue comment") + url: str = Field() + html_url: str = Field() + labels_url: str = Field() + id: int = Field() node_id: str = Field() - url: str = Field(description="URL for the issue comment") - body: Missing[str] = Field( - default=UNSET, description="Contents of the issue comment" + number: int = Field(description="The number of the milestone.") + state: Literal["open", "closed"] = Field( + default="open", description="The state of the milestone." ) - body_text: Missing[str] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - html_url: str = Field() - user: Union[None, SimpleUser] = Field() + 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() - 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") + closed_at: Union[datetime, None] = Field() + due_on: Union[datetime, None] = Field() -model_rebuild(IssueComment) +model_rebuild(Milestone) -__all__ = ("IssueComment",) +__all__ = ("Milestone",) 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 9ab85d6fa..fd85f1373 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0065.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0065.py @@ -9,95 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0063 import Issue -from .group_0064 import IssueComment - - -class EventPropPayload(GitHubModel): - """EventPropPayload""" - - action: Missing[str] = Field(default=UNSET) - issue: Missing[Issue] = Field( - default=UNSET, - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", - ) - comment: Missing[IssueComment] = Field( - default=UNSET, - title="Issue Comment", - description="Comments provide a way for people to collaborate on an issue.", - ) - pages: Missing[List[EventPropPayloadPropPagesItems]] = Field(default=UNSET) - - -class EventPropPayloadPropPagesItems(GitHubModel): - """EventPropPayloadPropPagesItems""" - - page_name: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - summary: Missing[Union[str, None]] = Field(default=UNSET) - action: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - - -class Event(GitHubModel): - """Event - - Event - """ - - id: str = Field() - type: Union[str, None] = Field() - actor: Actor = Field(title="Actor", description="Actor") - repo: EventPropRepo = Field() - org: Missing[Actor] = Field(default=UNSET, title="Actor", description="Actor") - payload: EventPropPayload = Field() - public: bool = Field() - created_at: Union[datetime, None] = Field() - - -class Actor(GitHubModel): - """Actor - - Actor - """ - - id: int = Field() - login: str = Field() - display_login: Missing[str] = Field(default=UNSET) - gravatar_id: Union[str, None] = Field() - url: str = Field() - avatar_url: str = Field() - -class EventPropRepo(GitHubModel): - """EventPropRepo""" +class ReactionRollup(GitHubModel): + """Reaction Rollup""" - id: int = Field() - name: str = Field() url: str = Field() + total_count: int = Field() + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + laugh: int = Field() + confused: int = Field() + heart: int = Field() + hooray: int = Field() + eyes: int = Field() + rocket: int = Field() -model_rebuild(EventPropPayload) -model_rebuild(EventPropPayloadPropPagesItems) -model_rebuild(Event) -model_rebuild(Actor) -model_rebuild(EventPropRepo) +model_rebuild(ReactionRollup) -__all__ = ( - "EventPropPayload", - "EventPropPayloadPropPagesItems", - "Event", - "Actor", - "EventPropRepo", -) +__all__ = ("ReactionRollup",) 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 583006545..25f8782a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0066.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0066.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,80 +18,108 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0064 import Milestone +from .group_0001 import SimpleUser +from .group_0017 import Repository +from .group_0006 import Integration +from .group_0065 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 Issue(GitHubModel): + """Issue -class FeedPropLinks(GitHubModel): - """FeedPropLinks""" + Issues are a great way to keep track of tasks, enhancements, and bugs for your + projects. + """ - timeline: LinkWithType = Field( - title="Link With Type", description="Hypermedia Link with Type" + id: int = Field() + node_id: str = Field() + url: str = Field(description="URL for the issue") + repository_url: str = Field() + labels_url: str = Field() + comments_url: str = Field() + events_url: str = Field() + html_url: str = Field() + number: int = Field( + description="Number uniquely identifying the issue within its repository" ) - user: LinkWithType = Field( - title="Link With Type", description="Hypermedia Link with Type" + state: str = Field(description="State of the issue; either 'open' or 'closed'") + state_reason: Missing[ + Union[None, Literal["completed", "reopened", "not_planned"]] + ] = Field(default=UNSET, description="The reason for the current state") + title: str = Field(description="Title of the issue") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Contents of the issue" ) - security_advisories: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + user: Union[None, SimpleUser] = Field() + labels: List[Union[str, IssuePropLabelsItemsOneof1]] = Field( + description="Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository" ) - current_user: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) + milestone: Union[None, Milestone] = Field() + locked: bool = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + comments: int = Field() + pull_request: Missing[IssuePropPullRequest] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + closed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + repository: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." ) - 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" + 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 LinkWithType(GitHubModel): - """Link With Type +class IssuePropLabelsItemsOneof1(GitHubModel): + """IssuePropLabelsItemsOneof1""" - Hypermedia Link with Type - """ + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + color: Missing[Union[str, None]] = Field(default=UNSET) + default: Missing[bool] = Field(default=UNSET) + + +class IssuePropPullRequest(GitHubModel): + """IssuePropPullRequest""" - href: str = Field() - type: str = Field() + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + diff_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + patch_url: Union[str, None] = Field() + url: Union[str, None] = Field() -model_rebuild(Feed) -model_rebuild(FeedPropLinks) -model_rebuild(LinkWithType) +model_rebuild(Issue) +model_rebuild(IssuePropLabelsItemsOneof1) +model_rebuild(IssuePropPullRequest) __all__ = ( - "Feed", - "FeedPropLinks", - "LinkWithType", + "Issue", + "IssuePropLabelsItemsOneof1", + "IssuePropPullRequest", ) 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 94caec0b4..e4adb83cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0067.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0067.py @@ -10,55 +10,57 @@ from __future__ import annotations from datetime import datetime -from typing import Any, List, Union +from typing import Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser +from .group_0006 import Integration +from .group_0065 import ReactionRollup -class BaseGist(GitHubModel): - """Base Gist +class IssueComment(GitHubModel): + """Issue Comment - Base Gist + Comments provide a way for people to collaborate on an issue. """ - url: str = Field() - forks_url: str = Field() - commits_url: str = Field() - id: str = Field() + id: int = Field(description="Unique identifier of the issue comment") node_id: str = Field() - git_pull_url: str = Field() - git_push_url: str = Field() + url: str = Field(description="URL for the issue comment") + body: Missing[str] = Field( + default=UNSET, description="Contents of the issue comment" + ) + body_text: Missing[str] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) html_url: str = Field() - files: BaseGistPropFiles = Field() - public: bool = Field() + user: Union[None, SimpleUser] = Field() created_at: datetime = Field() updated_at: datetime = Field() - description: Union[str, None] = Field() - comments: int = Field() - user: Union[None, SimpleUser] = Field() - comments_url: str = Field() - owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + issue_url: str = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", ) - truncated: Missing[bool] = Field(default=UNSET) - forks: Missing[List[Any]] = Field(default=UNSET) - history: Missing[List[Any]] = Field(default=UNSET) - - -class BaseGistPropFiles(ExtraGitHubModel): - """BaseGistPropFiles""" + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(BaseGist) -model_rebuild(BaseGistPropFiles) +model_rebuild(IssueComment) -__all__ = ( - "BaseGist", - "BaseGistPropFiles", -) +__all__ = ("IssueComment",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0068.py b/githubkit/versions/ghec_v2022_11_28/models/group_0068.py index df09f74a0..1c730cfbf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0068.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0068.py @@ -10,78 +10,94 @@ from __future__ import annotations from datetime import datetime -from typing import Any, List, Union +from typing import List, Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +from .group_0066 import Issue +from .group_0067 import IssueComment -class GistHistory(GitHubModel): - """Gist History +class EventPropPayload(GitHubModel): + """EventPropPayload""" - Gist History - """ - - user: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - committed_at: Missing[datetime] = Field(default=UNSET) - change_status: Missing[GistHistoryPropChangeStatus] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + action: Missing[str] = Field(default=UNSET) + issue: Missing[Issue] = Field( + default=UNSET, + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) + comment: Missing[IssueComment] = Field( + default=UNSET, + title="Issue Comment", + description="Comments provide a way for people to collaborate on an issue.", + ) + pages: Missing[List[EventPropPayloadPropPagesItems]] = Field(default=UNSET) -class GistHistoryPropChangeStatus(GitHubModel): - """GistHistoryPropChangeStatus""" +class EventPropPayloadPropPagesItems(GitHubModel): + """EventPropPayloadPropPagesItems""" - total: Missing[int] = Field(default=UNSET) - additions: Missing[int] = Field(default=UNSET) - deletions: Missing[int] = Field(default=UNSET) + page_name: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + summary: Missing[Union[str, None]] = Field(default=UNSET) + action: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) -class GistSimplePropForkOf(GitHubModel): - """Gist +class Event(GitHubModel): + """Event - Gist + Event """ - url: str = Field() - forks_url: str = Field() - commits_url: str = Field() id: str = Field() - node_id: str = Field() - git_pull_url: str = Field() - git_push_url: str = Field() - html_url: str = Field() - files: GistSimplePropForkOfPropFiles = Field() + type: Union[str, None] = Field() + actor: Actor = Field(title="Actor", description="Actor") + repo: EventPropRepo = Field() + org: Missing[Actor] = Field(default=UNSET, title="Actor", description="Actor") + payload: EventPropPayload = Field() public: bool = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - description: Union[str, None] = Field() - comments: int = Field() - user: Union[None, SimpleUser] = Field() - comments_url: str = Field() - owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - truncated: Missing[bool] = Field(default=UNSET) - forks: Missing[List[Any]] = Field(default=UNSET) - history: Missing[List[Any]] = Field(default=UNSET) + created_at: Union[datetime, None] = Field() -class GistSimplePropForkOfPropFiles(ExtraGitHubModel): - """GistSimplePropForkOfPropFiles""" +class Actor(GitHubModel): + """Actor + + Actor + """ + + id: int = Field() + login: str = Field() + display_login: Missing[str] = Field(default=UNSET) + gravatar_id: Union[str, None] = Field() + url: str = Field() + avatar_url: str = Field() + + +class EventPropRepo(GitHubModel): + """EventPropRepo""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(GistHistory) -model_rebuild(GistHistoryPropChangeStatus) -model_rebuild(GistSimplePropForkOf) -model_rebuild(GistSimplePropForkOfPropFiles) +model_rebuild(EventPropPayload) +model_rebuild(EventPropPayloadPropPagesItems) +model_rebuild(Event) +model_rebuild(Actor) +model_rebuild(EventPropRepo) __all__ = ( - "GistHistory", - "GistHistoryPropChangeStatus", - "GistSimplePropForkOf", - "GistSimplePropForkOfPropFiles", + "EventPropPayload", + "EventPropPayloadPropPagesItems", + "Event", + "Actor", + "EventPropRepo", ) 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 0006e2f02..583006545 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0069.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0069.py @@ -9,135 +9,88 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import List from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0068 import GistHistory, GistSimplePropForkOf +class Feed(GitHubModel): + """Feed -class GistSimple(GitHubModel): - """Gist Simple - - Gist Simple + Feed """ - forks: Missing[Union[List[GistSimplePropForksItems], None]] = Field(default=UNSET) - history: Missing[Union[List[GistHistory], None]] = Field(default=UNSET) - fork_of: Missing[Union[GistSimplePropForkOf, None]] = Field( - default=UNSET, title="Gist", description="Gist" + timeline_url: str = Field() + user_url: str = Field() + current_user_public_url: Missing[str] = Field(default=UNSET) + current_user_url: Missing[str] = Field(default=UNSET) + current_user_actor_url: Missing[str] = Field(default=UNSET) + current_user_organization_url: Missing[str] = Field(default=UNSET) + current_user_organization_urls: Missing[List[str]] = Field(default=UNSET) + security_advisories_url: Missing[str] = Field(default=UNSET) + repository_discussions_url: Missing[str] = Field( + default=UNSET, description="A feed of discussions for a given repository." ) - url: Missing[str] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - git_pull_url: Missing[str] = Field(default=UNSET) - git_push_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - files: Missing[GistSimplePropFiles] = Field(default=UNSET) - public: Missing[bool] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - user: Missing[Union[str, None]] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + repository_discussions_category_url: Missing[str] = Field( + default=UNSET, + description="A feed of discussions for a given repository and category.", ) - truncated: Missing[bool] = Field(default=UNSET) - + links: FeedPropLinks = Field(alias="_links") -class GistSimplePropFiles(ExtraGitHubModel): - """GistSimplePropFiles""" +class FeedPropLinks(GitHubModel): + """FeedPropLinks""" -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" + timeline: LinkWithType = Field( + title="Link With Type", description="Hypermedia Link with Type" + ) + user: LinkWithType = Field( + title="Link With Type", description="Hypermedia Link with Type" + ) + security_advisories: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_public: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_actor: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_organization: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + current_user_organizations: Missing[List[LinkWithType]] = Field(default=UNSET) + repository_discussions: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" + ) + repository_discussions_category: Missing[LinkWithType] = Field( + default=UNSET, title="Link With Type", description="Hypermedia Link with Type" ) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) -class PublicUser(GitHubModel): - """Public User +class LinkWithType(GitHubModel): + """Link With Type - Public User + Hypermedia Link with Type """ - login: str = Field() - id: int = Field() - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() + href: str = Field() type: str = Field() - site_admin: bool = Field() - name: Union[str, None] = Field() - company: Union[str, None] = Field() - blog: Union[str, None] = Field() - location: Union[str, None] = Field() - email: Union[str, None] = Field() - notification_email: Missing[Union[str, None]] = Field(default=UNSET) - hireable: Union[bool, None] = Field() - bio: Union[str, None] = Field() - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - plan: Missing[PublicUserPropPlan] = Field(default=UNSET) - suspended_at: Missing[Union[datetime, None]] = Field(default=UNSET) - private_gists: Missing[int] = Field(default=UNSET) - total_private_repos: Missing[int] = Field(default=UNSET) - owned_private_repos: Missing[int] = Field(default=UNSET) - disk_usage: Missing[int] = Field(default=UNSET) - collaborators: Missing[int] = Field(default=UNSET) - - -class PublicUserPropPlan(GitHubModel): - """PublicUserPropPlan""" - - collaborators: int = Field() - name: str = Field() - space: int = Field() - private_repos: int = Field() - - -model_rebuild(GistSimple) -model_rebuild(GistSimplePropFiles) -model_rebuild(GistSimplePropForksItems) -model_rebuild(PublicUser) -model_rebuild(PublicUserPropPlan) + + +model_rebuild(Feed) +model_rebuild(FeedPropLinks) +model_rebuild(LinkWithType) __all__ = ( - "GistSimple", - "GistSimplePropFiles", - "GistSimplePropForksItems", - "PublicUser", - "PublicUserPropPlan", + "Feed", + "FeedPropLinks", + "LinkWithType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0070.py b/githubkit/versions/ghec_v2022_11_28/models/group_0070.py index 32e3658f4..94caec0b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0070.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0070.py @@ -10,43 +10,55 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import Any, List, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild from .group_0001 import SimpleUser -class GistComment(GitHubModel): - """Gist Comment +class BaseGist(GitHubModel): + """Base Gist - A comment made to a gist. + Base Gist """ - id: int = Field() - node_id: str = Field() url: str = Field() - body: str = Field(max_length=65535, description="The comment text.") - user: Union[None, SimpleUser] = Field() + forks_url: str = Field() + commits_url: str = Field() + id: str = Field() + node_id: str = Field() + git_pull_url: str = Field() + git_push_url: str = Field() + html_url: str = Field() + files: BaseGistPropFiles = Field() + public: bool = Field() created_at: datetime = Field() updated_at: datetime = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", + description: Union[str, None] = Field() + comments: int = Field() + user: Union[None, SimpleUser] = Field() + comments_url: str = Field() + owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) + truncated: Missing[bool] = Field(default=UNSET) + forks: Missing[List[Any]] = Field(default=UNSET) + history: Missing[List[Any]] = Field(default=UNSET) + + +class BaseGistPropFiles(ExtraGitHubModel): + """BaseGistPropFiles""" -model_rebuild(GistComment) +model_rebuild(BaseGist) +model_rebuild(BaseGistPropFiles) -__all__ = ("GistComment",) +__all__ = ( + "BaseGist", + "BaseGistPropFiles", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0071.py b/githubkit/versions/ghec_v2022_11_28/models/group_0071.py index 3fa53b8b7..df09f74a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0071.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0071.py @@ -9,43 +9,79 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import Any, List, Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild from .group_0001 import SimpleUser -class GistCommit(GitHubModel): - """Gist Commit +class GistHistory(GitHubModel): + """Gist History - Gist Commit + Gist History """ - url: str = Field() - version: str = Field() - user: Union[None, SimpleUser] = Field() - change_status: GistCommitPropChangeStatus = Field() - committed_at: datetime = Field() + user: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + committed_at: Missing[datetime] = Field(default=UNSET) + change_status: Missing[GistHistoryPropChangeStatus] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class GistCommitPropChangeStatus(GitHubModel): - """GistCommitPropChangeStatus""" +class GistHistoryPropChangeStatus(GitHubModel): + """GistHistoryPropChangeStatus""" total: Missing[int] = Field(default=UNSET) additions: Missing[int] = Field(default=UNSET) deletions: Missing[int] = Field(default=UNSET) -model_rebuild(GistCommit) -model_rebuild(GistCommitPropChangeStatus) +class GistSimplePropForkOf(GitHubModel): + """Gist + + Gist + """ + + url: str = Field() + forks_url: str = Field() + commits_url: str = Field() + id: str = Field() + node_id: str = Field() + git_pull_url: str = Field() + git_push_url: str = Field() + html_url: str = Field() + files: GistSimplePropForkOfPropFiles = Field() + public: bool = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + description: Union[str, None] = Field() + comments: int = Field() + user: Union[None, SimpleUser] = Field() + comments_url: str = Field() + owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + truncated: Missing[bool] = Field(default=UNSET) + forks: Missing[List[Any]] = Field(default=UNSET) + history: Missing[List[Any]] = Field(default=UNSET) + + +class GistSimplePropForkOfPropFiles(ExtraGitHubModel): + """GistSimplePropForkOfPropFiles""" + + +model_rebuild(GistHistory) +model_rebuild(GistHistoryPropChangeStatus) +model_rebuild(GistSimplePropForkOf) +model_rebuild(GistSimplePropForkOfPropFiles) __all__ = ( - "GistCommit", - "GistCommitPropChangeStatus", + "GistHistory", + "GistHistoryPropChangeStatus", + "GistSimplePropForkOf", + "GistSimplePropForkOfPropFiles", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0072.py b/githubkit/versions/ghec_v2022_11_28/models/group_0072.py index 68fca7a2b..52793f0a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0072.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0072.py @@ -9,21 +9,135 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + +from .group_0001 import SimpleUser +from .group_0071 import GistHistory, GistSimplePropForkOf -class GitignoreTemplate(GitHubModel): - """Gitignore Template +class GistSimple(GitHubModel): + """Gist Simple - Gitignore Template + Gist Simple """ + forks: Missing[Union[List[GistSimplePropForksItems], None]] = Field(default=UNSET) + history: Missing[Union[List[GistHistory], None]] = Field(default=UNSET) + fork_of: Missing[Union[GistSimplePropForkOf, None]] = Field( + default=UNSET, title="Gist", description="Gist" + ) + url: Missing[str] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + id: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + git_pull_url: Missing[str] = Field(default=UNSET) + git_push_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + files: Missing[GistSimplePropFiles] = Field(default=UNSET) + public: Missing[bool] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + user: Missing[Union[str, None]] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + truncated: Missing[bool] = Field(default=UNSET) + + +class GistSimplePropFiles(ExtraGitHubModel): + """GistSimplePropFiles""" + + +class GistSimplePropForksItems(GitHubModel): + """GistSimplePropForksItems""" + + id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[PublicUser] = Field( + default=UNSET, title="Public User", description="Public User" + ) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + + +class PublicUser(GitHubModel): + """Public User + + Public User + """ + + login: str = Field() + id: int = Field() + 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) + suspended_at: Missing[Union[datetime, None]] = Field(default=UNSET) + private_gists: Missing[int] = Field(default=UNSET) + total_private_repos: Missing[int] = Field(default=UNSET) + owned_private_repos: Missing[int] = Field(default=UNSET) + disk_usage: Missing[int] = Field(default=UNSET) + collaborators: Missing[int] = Field(default=UNSET) + + +class PublicUserPropPlan(GitHubModel): + """PublicUserPropPlan""" + + collaborators: int = Field() name: str = Field() - source: str = Field() + space: int = Field() + private_repos: int = Field() -model_rebuild(GitignoreTemplate) +model_rebuild(GistSimple) +model_rebuild(GistSimplePropFiles) +model_rebuild(GistSimplePropForksItems) +model_rebuild(PublicUser) +model_rebuild(PublicUserPropPlan) -__all__ = ("GitignoreTemplate",) +__all__ = ( + "GistSimple", + "GistSimplePropFiles", + "GistSimplePropForksItems", + "PublicUser", + "PublicUserPropPlan", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0073.py b/githubkit/versions/ghec_v2022_11_28/models/group_0073.py index 1922e917d..32e3658f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0073.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0073.py @@ -9,34 +9,44 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import Union, Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class License(GitHubModel): - """License - License +class GistComment(GitHubModel): + """Gist Comment + + A comment made to a gist. """ - key: str = Field() - name: str = Field() - spdx_id: Union[str, None] = Field() - url: Union[str, None] = Field() + id: int = Field() node_id: str = Field() - html_url: str = Field() - description: str = Field() - implementation: str = Field() - permissions: List[str] = Field() - conditions: List[str] = Field() - limitations: List[str] = Field() - body: str = Field() - featured: bool = Field() - - -model_rebuild(License) - -__all__ = ("License",) + url: str = Field() + body: str = Field(max_length=65535, description="The comment text.") + user: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + + +model_rebuild(GistComment) + +__all__ = ("GistComment",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0074.py b/githubkit/versions/ghec_v2022_11_28/models/group_0074.py index d49a37f42..3fa53b8b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0074.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0074.py @@ -9,34 +9,43 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union +from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class MarketplaceListingPlan(GitHubModel): - """Marketplace Listing Plan - Marketplace Listing Plan +class GistCommit(GitHubModel): + """Gist Commit + + Gist Commit """ url: str = Field() - accounts_url: str = Field() - id: int = Field() - number: int = Field() - name: str = Field() - description: str = Field() - monthly_price_in_cents: int = Field() - yearly_price_in_cents: int = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - has_free_trial: bool = Field() - unit_name: Union[str, None] = Field() - state: str = Field() - bullets: List[str] = Field() - - -model_rebuild(MarketplaceListingPlan) - -__all__ = ("MarketplaceListingPlan",) + version: str = Field() + user: Union[None, SimpleUser] = Field() + change_status: GistCommitPropChangeStatus = Field() + committed_at: datetime = Field() + + +class GistCommitPropChangeStatus(GitHubModel): + """GistCommitPropChangeStatus""" + + total: Missing[int] = Field(default=UNSET) + additions: Missing[int] = Field(default=UNSET) + deletions: Missing[int] = Field(default=UNSET) + + +model_rebuild(GistCommit) +model_rebuild(GistCommitPropChangeStatus) + +__all__ = ( + "GistCommit", + "GistCommitPropChangeStatus", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0075.py b/githubkit/versions/ghec_v2022_11_28/models/group_0075.py index 267beabd9..68fca7a2b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0075.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0075.py @@ -9,38 +9,21 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0076 import ( - MarketplacePurchasePropMarketplacePurchase, - MarketplacePurchasePropMarketplacePendingChange, -) - -class MarketplacePurchase(GitHubModel): - """Marketplace Purchase +class GitignoreTemplate(GitHubModel): + """Gitignore Template - Marketplace Purchase + Gitignore Template """ - url: str = Field() - type: str = Field() - id: int = Field() - login: str = Field() - organization_billing_email: Missing[str] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - marketplace_pending_change: Missing[ - Union[MarketplacePurchasePropMarketplacePendingChange, None] - ] = Field(default=UNSET) - marketplace_purchase: MarketplacePurchasePropMarketplacePurchase = Field() + name: str = Field() + source: str = Field() -model_rebuild(MarketplacePurchase) +model_rebuild(GitignoreTemplate) -__all__ = ("MarketplacePurchase",) +__all__ = ("GitignoreTemplate",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0076.py b/githubkit/versions/ghec_v2022_11_28/models/group_0076.py index 04298c090..1922e917d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0076.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0076.py @@ -9,52 +9,34 @@ from __future__ import annotations -from typing import Union +from typing import List, Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0074 import MarketplaceListingPlan +class License(GitHubModel): + """License -class MarketplacePurchasePropMarketplacePendingChange(GitHubModel): - """MarketplacePurchasePropMarketplacePendingChange""" + License + """ - 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", - ) + 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() -class MarketplacePurchasePropMarketplacePurchase(GitHubModel): - """MarketplacePurchasePropMarketplacePurchase""" +model_rebuild(License) - 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", -) +__all__ = ("License",) 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 319af6342..d49a37f42 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0077.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0077.py @@ -9,65 +9,34 @@ from __future__ import annotations -from typing import List +from typing import List, Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ApiOverview(GitHubModel): - """Api Overview +class MarketplaceListingPlan(GitHubModel): + """Marketplace Listing Plan - Api Overview + Marketplace Listing Plan """ - verifiable_password_authentication: bool = Field() - ssh_key_fingerprints: Missing[ApiOverviewPropSshKeyFingerprints] = Field( - default=UNSET - ) - ssh_keys: Missing[List[str]] = Field(default=UNSET) - hooks: Missing[List[str]] = Field(default=UNSET) - github_enterprise_importer: Missing[List[str]] = Field(default=UNSET) - web: Missing[List[str]] = Field(default=UNSET) - api: Missing[List[str]] = Field(default=UNSET) - git: Missing[List[str]] = Field(default=UNSET) - packages: Missing[List[str]] = Field(default=UNSET) - pages: Missing[List[str]] = Field(default=UNSET) - importer: Missing[List[str]] = Field(default=UNSET) - actions: Missing[List[str]] = Field(default=UNSET) - actions_macos: Missing[List[str]] = Field(default=UNSET) - dependabot: Missing[List[str]] = Field(default=UNSET) - domains: Missing[ApiOverviewPropDomains] = Field(default=UNSET) + url: str = Field() + accounts_url: str = Field() + id: int = Field() + number: int = Field() + name: str = Field() + description: str = Field() + monthly_price_in_cents: int = Field() + yearly_price_in_cents: int = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + has_free_trial: bool = Field() + unit_name: Union[str, None] = Field() + state: str = Field() + bullets: List[str] = Field() -class ApiOverviewPropSshKeyFingerprints(GitHubModel): - """ApiOverviewPropSshKeyFingerprints""" +model_rebuild(MarketplaceListingPlan) - 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) - - -model_rebuild(ApiOverview) -model_rebuild(ApiOverviewPropSshKeyFingerprints) -model_rebuild(ApiOverviewPropDomains) - -__all__ = ( - "ApiOverview", - "ApiOverviewPropSshKeyFingerprints", - "ApiOverviewPropDomains", -) +__all__ = ("MarketplaceListingPlan",) 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 c6c18c42e..28afd5ff1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0078.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0078.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,78 +17,30 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class SecurityAndAnalysis(GitHubModel): - """SecurityAndAnalysis""" - - advanced_security: Missing[SecurityAndAnalysisPropAdvancedSecurity] = Field( - default=UNSET - ) - dependabot_security_updates: Missing[ - SecurityAndAnalysisPropDependabotSecurityUpdates - ] = Field( - default=UNSET, - description="Enable or disable Dependabot security updates for the repository.", - ) - secret_scanning: Missing[SecurityAndAnalysisPropSecretScanning] = Field( - default=UNSET - ) - secret_scanning_push_protection: Missing[ - SecurityAndAnalysisPropSecretScanningPushProtection - ] = Field(default=UNSET) - secret_scanning_validity_checks: Missing[ - SecurityAndAnalysisPropSecretScanningValidityChecks - ] = Field(default=UNSET) - - -class SecurityAndAnalysisPropAdvancedSecurity(GitHubModel): - """SecurityAndAnalysisPropAdvancedSecurity""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) +from .group_0079 import ( + MarketplacePurchasePropMarketplacePurchase, + MarketplacePurchasePropMarketplacePendingChange, +) -class SecurityAndAnalysisPropDependabotSecurityUpdates(GitHubModel): - """SecurityAndAnalysisPropDependabotSecurityUpdates +class MarketplacePurchase(GitHubModel): + """Marketplace Purchase - Enable or disable Dependabot security updates for the repository. + Marketplace Purchase """ - status: Missing[Literal["enabled", "disabled"]] = Field( - default=UNSET, - description="The enablement status of Dependabot security updates for the repository.", - ) - - -class SecurityAndAnalysisPropSecretScanning(GitHubModel): - """SecurityAndAnalysisPropSecretScanning""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropSecretScanningPushProtection(GitHubModel): - """SecurityAndAnalysisPropSecretScanningPushProtection""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropSecretScanningValidityChecks(GitHubModel): - """SecurityAndAnalysisPropSecretScanningValidityChecks""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + url: str = Field() + type: str = Field() + id: int = Field() + login: str = Field() + organization_billing_email: Missing[str] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + marketplace_pending_change: Missing[ + Union[MarketplacePurchasePropMarketplacePendingChange, None] + ] = Field(default=UNSET) + marketplace_purchase: MarketplacePurchasePropMarketplacePurchase = Field() -model_rebuild(SecurityAndAnalysis) -model_rebuild(SecurityAndAnalysisPropAdvancedSecurity) -model_rebuild(SecurityAndAnalysisPropDependabotSecurityUpdates) -model_rebuild(SecurityAndAnalysisPropSecretScanning) -model_rebuild(SecurityAndAnalysisPropSecretScanningPushProtection) -model_rebuild(SecurityAndAnalysisPropSecretScanningValidityChecks) +model_rebuild(MarketplacePurchase) -__all__ = ( - "SecurityAndAnalysis", - "SecurityAndAnalysisPropAdvancedSecurity", - "SecurityAndAnalysisPropDependabotSecurityUpdates", - "SecurityAndAnalysisPropSecretScanning", - "SecurityAndAnalysisPropSecretScanningPushProtection", - "SecurityAndAnalysisPropSecretScanningValidityChecks", -) +__all__ = ("MarketplacePurchase",) 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 e80fe6019..a1223900b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0079.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0079.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import Union from pydantic import Field @@ -18,155 +17,44 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0078 import SecurityAndAnalysis - - -class MinimalRepository(GitHubModel): - """Minimal Repository - - Minimal Repository - """ - - id: int = Field() - node_id: str = Field() - name: str = Field() - full_name: str = Field() - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field() - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: Missing[str] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[Union[str, None]] = Field(default=UNSET) - hooks_url: str = Field() - svn_url: Missing[str] = Field(default=UNSET) - homepage: Missing[Union[str, None]] = Field(default=UNSET) - language: Missing[Union[str, None]] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) - size: Missing[int] = Field( - default=UNSET, - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.", - ) - default_branch: Missing[str] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[List[str]] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - has_discussions: Missing[bool] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - pushed_at: Missing[Union[datetime, None]] = Field(default=UNSET) - created_at: Missing[Union[datetime, None]] = Field(default=UNSET) - updated_at: Missing[Union[datetime, None]] = Field(default=UNSET) - permissions: Missing[MinimalRepositoryPropPermissions] = Field(default=UNSET) - role_name: Missing[str] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - code_of_conduct: Missing[CodeOfConduct] = Field( - default=UNSET, title="Code Of Conduct", description="Code Of Conduct" - ) - license_: Missing[Union[MinimalRepositoryPropLicense, None]] = Field( - default=UNSET, alias="license" - ) - forks: Missing[int] = Field(default=UNSET) - open_issues: Missing[int] = Field(default=UNSET) - watchers: Missing[int] = Field(default=UNSET) - allow_forking: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET - ) - - -class CodeOfConduct(GitHubModel): - """Code Of Conduct +from .group_0077 import MarketplaceListingPlan - Code Of Conduct - """ - key: str = Field() - name: str = Field() - url: str = Field() - body: Missing[str] = Field(default=UNSET) - html_url: Union[str, None] = Field() +class MarketplacePurchasePropMarketplacePendingChange(GitHubModel): + """MarketplacePurchasePropMarketplacePendingChange""" - -class MinimalRepositoryPropPermissions(GitHubModel): - """MinimalRepositoryPropPermissions""" - - admin: Missing[bool] = Field(default=UNSET) - maintain: Missing[bool] = Field(default=UNSET) - push: Missing[bool] = Field(default=UNSET) - triage: Missing[bool] = Field(default=UNSET) - pull: Missing[bool] = Field(default=UNSET) + is_installed: Missing[bool] = Field(default=UNSET) + effective_date: Missing[str] = Field(default=UNSET) + unit_count: Missing[Union[int, None]] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + plan: Missing[MarketplaceListingPlan] = Field( + default=UNSET, + title="Marketplace Listing Plan", + description="Marketplace Listing Plan", + ) -class MinimalRepositoryPropLicense(GitHubModel): - """MinimalRepositoryPropLicense""" +class MarketplacePurchasePropMarketplacePurchase(GitHubModel): + """MarketplacePurchasePropMarketplacePurchase""" - key: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - spdx_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) + billing_cycle: Missing[str] = Field(default=UNSET) + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + is_installed: Missing[bool] = Field(default=UNSET) + unit_count: Missing[Union[int, None]] = Field(default=UNSET) + on_free_trial: Missing[bool] = Field(default=UNSET) + free_trial_ends_on: Missing[Union[str, None]] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + plan: Missing[MarketplaceListingPlan] = Field( + default=UNSET, + title="Marketplace Listing Plan", + description="Marketplace Listing Plan", + ) -model_rebuild(MinimalRepository) -model_rebuild(CodeOfConduct) -model_rebuild(MinimalRepositoryPropPermissions) -model_rebuild(MinimalRepositoryPropLicense) +model_rebuild(MarketplacePurchasePropMarketplacePendingChange) +model_rebuild(MarketplacePurchasePropMarketplacePurchase) __all__ = ( - "MinimalRepository", - "CodeOfConduct", - "MinimalRepositoryPropPermissions", - "MinimalRepositoryPropLicense", + "MarketplacePurchasePropMarketplacePendingChange", + "MarketplacePurchasePropMarketplacePurchase", ) 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 bc61f5623..319af6342 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0080.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0080.py @@ -9,47 +9,65 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0079 import MinimalRepository +class ApiOverview(GitHubModel): + """Api Overview -class Thread(GitHubModel): - """Thread - - Thread + Api Overview """ - id: str = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + verifiable_password_authentication: bool = Field() + ssh_key_fingerprints: Missing[ApiOverviewPropSshKeyFingerprints] = Field( + default=UNSET ) - 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() + 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) + dependabot: 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 ThreadPropSubject(GitHubModel): - """ThreadPropSubject""" +class ApiOverviewPropDomains(GitHubModel): + """ApiOverviewPropDomains""" - title: str = Field() - url: str = Field() - latest_comment_url: str = Field() - type: str = Field() + 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) -model_rebuild(Thread) -model_rebuild(ThreadPropSubject) +model_rebuild(ApiOverview) +model_rebuild(ApiOverviewPropSshKeyFingerprints) +model_rebuild(ApiOverviewPropDomains) __all__ = ( - "Thread", - "ThreadPropSubject", + "ApiOverview", + "ApiOverviewPropSshKeyFingerprints", + "ApiOverviewPropDomains", ) 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 c7f24dd2f..3c24d53b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0081.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0081.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Literal from pydantic import Field @@ -19,21 +18,88 @@ from githubkit.compat import GitHubModel, model_rebuild -class ThreadSubscription(GitHubModel): - """Thread Subscription +class SecurityAndAnalysis(GitHubModel): + """SecurityAndAnalysis""" - Thread Subscription + advanced_security: Missing[SecurityAndAnalysisPropAdvancedSecurity] = Field( + default=UNSET + ) + dependabot_security_updates: Missing[ + SecurityAndAnalysisPropDependabotSecurityUpdates + ] = Field( + default=UNSET, + description="Enable or disable Dependabot security updates for the repository.", + ) + secret_scanning: Missing[SecurityAndAnalysisPropSecretScanning] = Field( + default=UNSET + ) + secret_scanning_push_protection: Missing[ + SecurityAndAnalysisPropSecretScanningPushProtection + ] = Field(default=UNSET) + secret_scanning_non_provider_patterns: Missing[ + SecurityAndAnalysisPropSecretScanningNonProviderPatterns + ] = Field(default=UNSET) + secret_scanning_validity_checks: Missing[ + SecurityAndAnalysisPropSecretScanningValidityChecks + ] = Field(default=UNSET) + + +class SecurityAndAnalysisPropAdvancedSecurity(GitHubModel): + """SecurityAndAnalysisPropAdvancedSecurity""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropDependabotSecurityUpdates(GitHubModel): + """SecurityAndAnalysisPropDependabotSecurityUpdates + + Enable or disable Dependabot security updates for the repository. """ - subscribed: bool = Field() - ignored: bool = Field() - reason: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - url: str = Field() - thread_url: Missing[str] = Field(default=UNSET) - repository_url: Missing[str] = Field(default=UNSET) + status: Missing[Literal["enabled", "disabled"]] = Field( + default=UNSET, + description="The enablement status of Dependabot security updates for the repository.", + ) + + +class SecurityAndAnalysisPropSecretScanning(GitHubModel): + """SecurityAndAnalysisPropSecretScanning""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropSecretScanningPushProtection(GitHubModel): + """SecurityAndAnalysisPropSecretScanningPushProtection""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropSecretScanningNonProviderPatterns(GitHubModel): + """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropSecretScanningValidityChecks(GitHubModel): + """SecurityAndAnalysisPropSecretScanningValidityChecks""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) -model_rebuild(ThreadSubscription) +model_rebuild(SecurityAndAnalysis) +model_rebuild(SecurityAndAnalysisPropAdvancedSecurity) +model_rebuild(SecurityAndAnalysisPropDependabotSecurityUpdates) +model_rebuild(SecurityAndAnalysisPropSecretScanning) +model_rebuild(SecurityAndAnalysisPropSecretScanningPushProtection) +model_rebuild(SecurityAndAnalysisPropSecretScanningNonProviderPatterns) +model_rebuild(SecurityAndAnalysisPropSecretScanningValidityChecks) -__all__ = ("ThreadSubscription",) +__all__ = ( + "SecurityAndAnalysis", + "SecurityAndAnalysisPropAdvancedSecurity", + "SecurityAndAnalysisPropDependabotSecurityUpdates", + "SecurityAndAnalysisPropSecretScanning", + "SecurityAndAnalysisPropSecretScanningPushProtection", + "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", + "SecurityAndAnalysisPropSecretScanningValidityChecks", +) 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 3ca682bdb..11cbeb9e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0082.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0082.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from pydantic import Field @@ -19,31 +19,154 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser +from .group_0081 import SecurityAndAnalysis -class OrganizationCustomRepositoryRole(GitHubModel): - """Organization Custom Repository Role +class MinimalRepository(GitHubModel): + """Minimal Repository - Custom repository roles created by organization owners + Minimal Repository """ - id: int = Field(description="The unique identifier of the custom role.") - name: str = Field(description="The name of the custom role.") - description: Missing[Union[str, None]] = Field( + id: int = Field() + node_id: str = Field() + name: str = Field() + full_name: str = Field() + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field() + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: Missing[str] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: Missing[str] = Field(default=UNSET) + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: Missing[str] = Field(default=UNSET) + mirror_url: Missing[Union[str, None]] = Field(default=UNSET) + hooks_url: str = Field() + svn_url: Missing[str] = Field(default=UNSET) + homepage: Missing[Union[str, None]] = Field(default=UNSET) + language: Missing[Union[str, None]] = Field(default=UNSET) + forks_count: Missing[int] = Field(default=UNSET) + stargazers_count: Missing[int] = Field(default=UNSET) + watchers_count: Missing[int] = Field(default=UNSET) + size: Missing[int] = Field( default=UNSET, - description="A short description about who this role is for or what permissions it grants.", + description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.", ) - base_role: Literal["read", "triage", "write", "maintain"] = Field( - description="The system role from which this role inherits permissions." + default_branch: Missing[str] = Field(default=UNSET) + open_issues_count: Missing[int] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + topics: Missing[List[str]] = Field(default=UNSET) + has_issues: Missing[bool] = Field(default=UNSET) + has_projects: Missing[bool] = Field(default=UNSET) + has_wiki: Missing[bool] = Field(default=UNSET) + has_pages: Missing[bool] = Field(default=UNSET) + has_downloads: Missing[bool] = Field(default=UNSET) + has_discussions: Missing[bool] = Field(default=UNSET) + archived: Missing[bool] = Field(default=UNSET) + disabled: Missing[bool] = Field(default=UNSET) + visibility: Missing[str] = Field(default=UNSET) + pushed_at: Missing[Union[datetime, None]] = Field(default=UNSET) + created_at: Missing[Union[datetime, None]] = Field(default=UNSET) + updated_at: Missing[Union[datetime, None]] = Field(default=UNSET) + permissions: Missing[MinimalRepositoryPropPermissions] = Field(default=UNSET) + role_name: Missing[str] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + code_of_conduct: Missing[CodeOfConduct] = Field( + default=UNSET, title="Code Of Conduct", description="Code Of Conduct" ) - permissions: List[str] = Field( - description="A list of additional permissions included in this role." + license_: Missing[Union[MinimalRepositoryPropLicense, None]] = Field( + default=UNSET, alias="license" ) - organization: SimpleUser = Field(title="Simple User", description="A GitHub user.") - created_at: datetime = Field() - updated_at: datetime = Field() + forks: Missing[int] = Field(default=UNSET) + open_issues: Missing[int] = Field(default=UNSET) + watchers: Missing[int] = Field(default=UNSET) + allow_forking: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET + ) + + +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) -model_rebuild(OrganizationCustomRepositoryRole) +model_rebuild(MinimalRepository) +model_rebuild(CodeOfConduct) +model_rebuild(MinimalRepositoryPropPermissions) +model_rebuild(MinimalRepositoryPropLicense) -__all__ = ("OrganizationCustomRepositoryRole",) +__all__ = ( + "MinimalRepository", + "CodeOfConduct", + "MinimalRepositoryPropPermissions", + "MinimalRepositoryPropLicense", +) 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 f8d2ce7bf..7fba206a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0083.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0083.py @@ -10,124 +10,46 @@ from __future__ import annotations from typing import Union -from datetime import datetime from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0082 import MinimalRepository -class OrganizationFull(GitHubModel): - """Organization Full - Organization Full +class Thread(GitHubModel): + """Thread + + Thread """ - login: str = Field() - id: int = Field() - node_id: str = Field() - url: str = Field() - repos_url: str = Field() - events_url: str = Field() - hooks_url: str = Field() - issues_url: str = Field() - members_url: str = Field() - public_members_url: str = Field() - avatar_url: str = Field() - description: Union[str, None] = Field() - name: Missing[Union[str, None]] = Field(default=UNSET) - company: Missing[Union[str, None]] = Field(default=UNSET) - blog: Missing[Union[str, None]] = Field(default=UNSET) - location: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - is_verified: Missing[bool] = Field(default=UNSET) - has_organization_projects: bool = Field() - has_repository_projects: bool = Field() - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - html_url: str = Field() - type: str = Field() - total_private_repos: Missing[int] = Field(default=UNSET) - owned_private_repos: Missing[int] = Field(default=UNSET) - private_gists: Missing[Union[int, None]] = Field(default=UNSET) - disk_usage: Missing[Union[int, None]] = Field(default=UNSET) - collaborators: Missing[Union[int, None]] = Field(default=UNSET) - billing_email: Missing[Union[str, None]] = Field(default=UNSET) - plan: Missing[OrganizationFullPropPlan] = Field(default=UNSET) - default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) - members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) - two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) - members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) - members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_pages: Missing[bool] = Field(default=UNSET) - members_can_create_public_pages: Missing[bool] = Field(default=UNSET) - members_can_create_private_pages: Missing[bool] = Field(default=UNSET) - members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( - default=UNSET - ) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - advanced_security_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether GitHub Advanced Security is automatically enabled for new repositories and repositories transferred to\nthis organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether dependabot security updates are automatically enabled for new repositories and repositories transferred\nto this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether dependency graph is automatically enabled for new repositories and repositories transferred to this\norganization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether secret scanning is automatically enabled for new repositories and repositories transferred to this\norganization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + id: str = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether secret scanning push protection is automatically enabled for new repositories and repositories\ntransferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - 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="Whether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization.", - ) - created_at: datetime = Field() - updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() + subject: ThreadPropSubject = Field() + reason: str = Field() + unread: bool = Field() + updated_at: str = Field() + last_read_at: Union[str, None] = Field() + url: str = Field() + subscription_url: str = Field() -class OrganizationFullPropPlan(GitHubModel): - """OrganizationFullPropPlan""" +class ThreadPropSubject(GitHubModel): + """ThreadPropSubject""" - name: str = Field() - space: int = Field() - private_repos: int = Field() - filled_seats: Missing[int] = Field(default=UNSET) - seats: Missing[int] = Field(default=UNSET) + title: str = Field() + url: str = Field() + latest_comment_url: str = Field() + type: str = Field() -model_rebuild(OrganizationFull) -model_rebuild(OrganizationFullPropPlan) +model_rebuild(Thread) +model_rebuild(ThreadPropSubject) __all__ = ( - "OrganizationFull", - "OrganizationFullPropPlan", + "Thread", + "ThreadPropSubject", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0084.py b/githubkit/versions/ghec_v2022_11_28/models/group_0084.py index cb271d715..c7f24dd2f 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,31 @@ from __future__ import annotations -from typing import List +from typing import Union +from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OidcCustomSub(GitHubModel): - """Actions OIDC Subject customization +class ThreadSubscription(GitHubModel): + """Thread Subscription - Actions OIDC Subject customization + Thread Subscription """ - include_claim_keys: List[str] = Field( - description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores." - ) + subscribed: bool = Field() + ignored: bool = Field() + reason: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + url: str = Field() + thread_url: Missing[str] = Field(default=UNSET) + repository_url: Missing[str] = Field(default=UNSET) -model_rebuild(OidcCustomSub) +model_rebuild(ThreadSubscription) -__all__ = ("OidcCustomSub",) +__all__ = ("ThreadSubscription",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0085.py b/githubkit/versions/ghec_v2022_11_28/models/group_0085.py index c4eca12ed..3ca682bdb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0085.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0085.py @@ -9,16 +9,41 @@ from __future__ import annotations -from githubkit.compat import GitHubModel, model_rebuild +from datetime import datetime +from typing import List, Union, Literal +from pydantic import Field -class EmptyObject(GitHubModel): - """Empty Object +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild - An object without any properties. - """ +from .group_0001 import SimpleUser -model_rebuild(EmptyObject) +class OrganizationCustomRepositoryRole(GitHubModel): + """Organization Custom Repository Role + + Custom repository roles created by organization owners + """ -__all__ = ("EmptyObject",) + id: int = Field(description="The unique identifier of the custom role.") + name: str = Field(description="The name of the custom role.") + description: Missing[Union[str, None]] = Field( + default=UNSET, + description="A short description about who this role is for or what permissions it grants.", + ) + base_role: Literal["read", "triage", "write", "maintain"] = Field( + description="The system role from which this role inherits permissions." + ) + permissions: List[str] = Field( + description="A list of additional permissions included in this role." + ) + organization: SimpleUser = Field(title="Simple User", description="A GitHub user.") + created_at: datetime = Field() + updated_at: datetime = Field() + + +model_rebuild(OrganizationCustomRepositoryRole) + +__all__ = ("OrganizationCustomRepositoryRole",) 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 b6ec716a4..f8d2ce7bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0086.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0086.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from typing import Union +from datetime import datetime from pydantic import Field @@ -18,26 +19,115 @@ from githubkit.compat import GitHubModel, model_rebuild -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." + Organization Full + """ + + 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) + billing_email: Missing[Union[str, None]] = Field(default=UNSET) + plan: Missing[OrganizationFullPropPlan] = Field(default=UNSET) + default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) + members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) + two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) + members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) + members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_pages: Missing[bool] = Field(default=UNSET) + members_can_create_public_pages: Missing[bool] = Field(default=UNSET) + members_can_create_private_pages: Missing[bool] = Field(default=UNSET) + members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( + default=UNSET + ) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + advanced_security_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether GitHub Advanced Security is automatically enabled for new repositories and repositories transferred to\nthis organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether dependabot security updates are automatically enabled for new repositories and repositories transferred\nto this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether dependency graph is automatically enabled for new repositories and repositories transferred to this\norganization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether secret scanning is automatically enabled for new repositories and repositories transferred to this\norganization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether secret scanning push protection is automatically enabled for new repositories and repositories\ntransferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", ) - selected_repositories_url: Missing[str] = Field( + secret_scanning_push_protection_custom_link_enabled: Missing[bool] = 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="Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.", ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + description="An optional URL string to display to contributors who are blocked from pushing a secret.", ) - selected_actions_url: Missing[str] = Field( + secret_scanning_validity_checks_enabled: 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="Whether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization.", ) + created_at: datetime = Field() + updated_at: datetime = Field() + archived_at: Union[datetime, None] = Field() + + +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(ActionsOrganizationPermissions) +model_rebuild(OrganizationFull) +model_rebuild(OrganizationFullPropPlan) -__all__ = ("ActionsOrganizationPermissions",) +__all__ = ( + "OrganizationFull", + "OrganizationFullPropPlan", +) 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 b8d8694be..cb271d715 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0087.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0087.py @@ -9,27 +9,24 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class 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_0088.py b/githubkit/versions/ghec_v2022_11_28/models/group_0088.py index 4fbdf9f60..b6ec716a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0088.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0088.py @@ -9,36 +9,35 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class CodespaceMachine(GitHubModel): - """Codespace machine +class ActionsOrganizationPermissions(GitHubModel): + """ActionsOrganizationPermissions""" - A description of the machine powering a codespace. - """ - - name: str = Field(description="The name of the machine.") - display_name: str = Field( - description="The display name of the machine includes cores, memory, and storage." + enabled_repositories: Literal["all", "none", "selected"] = Field( + description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." ) - operating_system: str = Field(description="The operating system of the machine.") - storage_in_bytes: int = Field( - description="How much storage is available to the codespace." + selected_repositories_url: Missing[str] = Field( + default=UNSET, + description="The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`.", ) - memory_in_bytes: int = Field( - description="How much memory is available to the codespace." + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + default=UNSET, + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) - cpus: int = Field(description="How many cores are available to the codespace.") - prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] = Field( - description='Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status.' + selected_actions_url: Missing[str] = Field( + default=UNSET, + description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", ) -model_rebuild(CodespaceMachine) +model_rebuild(ActionsOrganizationPermissions) -__all__ = ("CodespaceMachine",) +__all__ = ("ActionsOrganizationPermissions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0089.py b/githubkit/versions/ghec_v2022_11_28/models/group_0089.py index 55dd1de8d..b8d8694be 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0089.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0089.py @@ -9,166 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0088 import CodespaceMachine -from .group_0079 import MinimalRepository - - -class Codespace(GitHubModel): - """Codespace - - A codespace. - """ - - id: int = Field() - name: str = Field(description="Automatically generated name of this codespace.") - display_name: Missing[Union[str, None]] = Field( - default=UNSET, description="Display name for this codespace." - ) - environment_id: Union[str, None] = Field( - description="UUID identifying this codespace's environment." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - billable_owner: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - machine: Union[None, CodespaceMachine] = Field() - devcontainer_path: Missing[Union[str, None]] = Field( - default=UNSET, - description="Path to devcontainer.json from repo root used to create Codespace.", - ) - prebuild: Union[bool, None] = Field( - description="Whether the codespace was created from a prebuild." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - last_used_at: datetime = Field( - description="Last known time this codespace was started." - ) - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] = Field(description="State of this codespace.") - url: str = Field(description="API URL for this codespace.") - git_status: CodespacePropGitStatus = Field( - description="Details about the codespace's git repository." - ) - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( - description="The initally assigned location of a new codespace." - ) - idle_timeout_minutes: Union[int, None] = Field( - description="The number of minutes of inactivity after which this codespace will be automatically stopped." - ) - web_url: str = Field(description="URL to access this codespace on the web.") - machines_url: str = Field( - description="API URL to access available alternate machine types for this codespace." - ) - start_url: str = Field(description="API URL to start this codespace.") - stop_url: str = Field(description="API URL to stop this codespace.") - publish_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="API URL to publish this codespace to a new repository.", - ) - pulls_url: Union[str, None] = Field( - description="API URL for the Pull Request associated with this codespace, if any." - ) - recent_folders: List[str] = Field() - runtime_constraints: Missing[CodespacePropRuntimeConstraints] = Field(default=UNSET) - pending_operation: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", - ) - pending_operation_disabled_reason: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace is disabled by a pending operation", - ) - idle_timeout_notice: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", - ) - retention_period_minutes: Missing[Union[int, None]] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) - retention_expires_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', - ) - last_known_stop_notice: Missing[Union[str, None]] = Field( - default=UNSET, - description="The text to display to a user when a codespace has been stopped for a potentially actionable reason.", - ) - -class CodespacePropGitStatus(GitHubModel): - """CodespacePropGitStatus +class ActionsPublicKey(GitHubModel): + """ActionsPublicKey - Details about the codespace's git repository. + The public key used for setting Actions Secrets. """ - ahead: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is ahead of the remote.", - ) - behind: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is behind the remote.", - ) - has_unpushed_changes: Missing[bool] = Field( - default=UNSET, description="Whether the local repository has unpushed changes." - ) - has_uncommitted_changes: Missing[bool] = Field( - default=UNSET, - description="Whether the local repository has uncommitted changes.", - ) - ref: Missing[str] = Field( - default=UNSET, - description="The current branch (or SHA if in detached HEAD state) of the local repository.", - ) - - -class CodespacePropRuntimeConstraints(GitHubModel): - """CodespacePropRuntimeConstraints""" - - allowed_port_privacy_settings: Missing[Union[List[str], None]] = Field( - default=UNSET, - description="The privacy settings a user can select from when forwarding a port.", - ) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") + id: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) -model_rebuild(Codespace) -model_rebuild(CodespacePropGitStatus) -model_rebuild(CodespacePropRuntimeConstraints) +model_rebuild(ActionsPublicKey) -__all__ = ( - "Codespace", - "CodespacePropGitStatus", - "CodespacePropRuntimeConstraints", -) +__all__ = ("ActionsPublicKey",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0090.py b/githubkit/versions/ghec_v2022_11_28/models/group_0090.py index 61840d31d..f3d32b974 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0090.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0090.py @@ -9,6 +9,9 @@ from __future__ import annotations +from typing import Literal +from datetime import datetime + from pydantic import Field from githubkit.utils import UNSET @@ -16,20 +19,75 @@ from githubkit.compat import GitHubModel, model_rebuild -class CodespacesPublicKey(GitHubModel): - """CodespacesPublicKey +class CodeSecurityConfiguration(GitHubModel): + """CodeSecurityConfiguration - The public key used for setting Codespaces secrets. + A code security configuration """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") - id: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field( + default=UNSET, description="The ID of the code security configuration" + ) + name: Missing[str] = Field( + default=UNSET, + description="The name of the code security configuration. Must be unique within the organization.", + ) + target_type: Missing[Literal["global", "organization"]] = Field( + default=UNSET, description="The type of the code security configuration." + ) + description: Missing[str] = Field( + default=UNSET, description="A description of the code security configuration" + ) + advanced_security: Missing[Literal["enabled", "disabled"]] = Field( + default=UNSET, description="The enablement status of GitHub Advanced Security" + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) + url: Missing[str] = Field(default=UNSET, description="The URL of the configuration") + html_url: Missing[str] = Field( + default=UNSET, description="The URL of the configuration" + ) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) -model_rebuild(CodespacesPublicKey) +model_rebuild(CodeSecurityConfiguration) -__all__ = ("CodespacesPublicKey",) +__all__ = ("CodeSecurityConfiguration",) 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 638c75792..1bd919f1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0091.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0091.py @@ -15,77 +15,25 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from .group_0090 import CodeSecurityConfiguration -class CopilotOrganizationDetails(ExtraGitHubModel): - """Copilot Business Organization Details - Information about the seat breakdown and policies set for an organization with a - Copilot Business subscription. - """ +class CodeSecurityDefaultConfigurationsItems(GitHubModel): + """CodeSecurityDefaultConfigurationsItems""" - seat_breakdown: CopilotSeatBreakdown = Field( - title="Copilot Business Seat Breakdown", - description="The breakdown of Copilot Business seats for the organization.", - ) - public_code_suggestions: Literal["allow", "block", "unconfigured", "unknown"] = ( + default_for_new_repos: Missing[Literal["public", "private_and_internal", "all"]] = ( Field( - description="The organization policy for allowing or disallowing Copilot to make suggestions that match public code." + default=UNSET, + description="The visibility of newly created repositories for which the code security configuration will be applied to by default", ) ) - ide_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( - default=UNSET, - description="The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor.", - ) - platform_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( - default=UNSET, - description="The organization policy for allowing or disallowing organization members to use Copilot features within github.com.", - ) - cli: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( - default=UNSET, - description="The organization policy for allowing or disallowing organization members to use Copilot within their CLI.", - ) - seat_management_setting: Literal[ - "assign_all", "assign_selected", "disabled", "unconfigured" - ] = Field(description="The mode of assigning new seats.") - - -class CopilotSeatBreakdown(GitHubModel): - """Copilot Business Seat Breakdown - - The breakdown of Copilot Business seats for the organization. - """ - - total: Missing[int] = Field( - default=UNSET, - description="The total number of seats being billed for the organization as of the current billing cycle.", - ) - added_this_cycle: Missing[int] = Field( - default=UNSET, description="Seats added during the current billing cycle." - ) - pending_cancellation: Missing[int] = Field( - default=UNSET, - description="The number of seats that are pending cancellation at the end of the current billing cycle.", - ) - pending_invitation: Missing[int] = Field( - default=UNSET, - description="The number of seats that have been assigned to users that have not yet accepted an invitation to this organization.", - ) - active_this_cycle: Missing[int] = Field( - default=UNSET, - description="The number of seats that have used Copilot during the current billing cycle.", - ) - inactive_this_cycle: Missing[int] = Field( - default=UNSET, - description="The number of seats that have not used Copilot during the current billing cycle.", + configuration: Missing[CodeSecurityConfiguration] = Field( + default=UNSET, description="A code security configuration" ) -model_rebuild(CopilotOrganizationDetails) -model_rebuild(CopilotSeatBreakdown) +model_rebuild(CodeSecurityDefaultConfigurationsItems) -__all__ = ( - "CopilotOrganizationDetails", - "CopilotSeatBreakdown", -) +__all__ = ("CodeSecurityDefaultConfigurationsItems",) 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 5a2cdf61e..94880c59e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0092.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0092.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,37 +17,26 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0043 import SimpleRepository -class TeamSimple(GitHubModel): - """Team Simple - Groups of organization members that gives permissions on specified repositories. +class CodeSecurityConfigurationRepositories(GitHubModel): + """CodeSecurityConfigurationRepositories + + Repositories associated with a code security configuration and attachment status """ - 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( + status: Missing[ + Literal["attached", "attaching", "detached", "enforced", "failed", "updating"] + ] = Field( default=UNSET, - description="Distinguished Name (DN) that team maps to within LDAP environment", + 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." ) -model_rebuild(TeamSimple) +model_rebuild(CodeSecurityConfigurationRepositories) -__all__ = ("TeamSimple",) +__all__ = ("CodeSecurityConfigurationRepositories",) 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 556c2241f..4fbdf9f60 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0093.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0093.py @@ -9,53 +9,36 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0092 import TeamSimple +class CodespaceMachine(GitHubModel): + """Codespace machine -class Team(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. + A description of the machine powering a codespace. """ - id: int = Field() - node_id: str = Field() - name: str = Field() - slug: str = Field() - description: Union[str, None] = Field() - privacy: Missing[str] = Field(default=UNSET) - notification_setting: Missing[str] = Field(default=UNSET) - permission: str = Field() - permissions: Missing[TeamPropPermissions] = Field(default=UNSET) - url: str = Field() - html_url: str = Field() - members_url: str = Field() - repositories_url: str = Field() - parent: Union[None, TeamSimple] = Field() - - -class TeamPropPermissions(GitHubModel): - """TeamPropPermissions""" - - pull: bool = Field() - triage: bool = Field() - push: bool = Field() - maintain: bool = Field() - admin: bool = Field() - - -model_rebuild(Team) -model_rebuild(TeamPropPermissions) - -__all__ = ( - "Team", - "TeamPropPermissions", -) + name: str = Field(description="The name of the machine.") + display_name: str = Field( + description="The display name of the machine includes cores, memory, and storage." + ) + operating_system: str = Field(description="The operating system of the machine.") + storage_in_bytes: int = Field( + description="How much storage is available to the codespace." + ) + memory_in_bytes: int = Field( + description="How much memory is available to the codespace." + ) + cpus: int = Field(description="How many cores are available to the codespace.") + prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] = Field( + description='Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status.' + ) + + +model_rebuild(CodespaceMachine) + +__all__ = ("CodespaceMachine",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0094.py b/githubkit/versions/ghec_v2022_11_28/models/group_0094.py index 5551fda9b..0c9195da4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0094.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0094.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import List, Union -from datetime import date, datetime +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,124 +18,157 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0093 import Team from .group_0001 import SimpleUser +from .group_0093 import CodespaceMachine +from .group_0082 import MinimalRepository -class CopilotSeatDetails(GitHubModel): - """Copilot Business Seat Detail +class Codespace(GitHubModel): + """Codespace - Information about a Copilot Business seat assignment for a user, team, or - organization. + A codespace. """ - assignee: Union[SimpleUser, Team, Organization] = Field( - description="The assignee that has been granted access to GitHub Copilot." + 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." ) - assigning_team: Missing[Union[Team, None]] = Field( + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + machine: Union[None, CodespaceMachine] = Field() + devcontainer_path: Missing[Union[str, None]] = Field( default=UNSET, - description="The team that granted access to GitHub Copilot to the assignee. This will be null if the user was assigned a seat individually.", + 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." ) - pending_cancellation_date: Missing[Union[date, None]] = Field( + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( + description="The initally assigned location of a new codespace." + ) + idle_timeout_minutes: Union[int, None] = Field( + description="The number of minutes of inactivity after which this codespace will be automatically stopped." + ) + web_url: str = Field(description="URL to access this codespace on the web.") + machines_url: str = Field( + description="API URL to access available alternate machine types for this codespace." + ) + start_url: str = Field(description="API URL to start this codespace.") + stop_url: str = Field(description="API URL to stop this codespace.") + publish_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="API URL to publish this codespace to a new repository.", + ) + pulls_url: Union[str, None] = Field( + description="API URL for the Pull Request associated with this codespace, if any." + ) + recent_folders: List[str] = Field() + runtime_constraints: Missing[CodespacePropRuntimeConstraints] = Field(default=UNSET) + pending_operation: Missing[Union[bool, None]] = Field( default=UNSET, - description="The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle.", + description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", ) - last_activity_at: Missing[Union[datetime, None]] = Field( + pending_operation_disabled_reason: Missing[Union[str, None]] = Field( default=UNSET, - description="Timestamp of user's last GitHub Copilot activity, in ISO 8601 format.", + description="Text to show user when codespace is disabled by a pending operation", ) - last_activity_editor: Missing[Union[str, None]] = Field( + idle_timeout_notice: Missing[Union[str, None]] = Field( default=UNSET, - description="Last editor that was used by the user for a GitHub Copilot completion.", + description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", ) - created_at: datetime = Field( - description="Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format." + 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).", ) - updated_at: Missing[datetime] = Field( + retention_expires_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.", + 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 Organization(GitHubModel): - """Organization +class CodespacePropGitStatus(GitHubModel): + """CodespacePropGitStatus - GitHub account for managing multiple users, teams, and repositories + Details about the codespace's git repository. """ - login: str = Field(description="Unique login name of the organization") - url: str = Field(description="URL for the organization") - id: int = Field() - node_id: 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() - blog: Missing[str] = Field( - default=UNSET, description="Display blog url for the organization" - ) - html_url: str = Field() - name: Missing[str] = Field( - default=UNSET, description="Display name for the organization" - ) - company: Missing[str] = Field( - default=UNSET, description="Display company name for the organization" - ) - location: Missing[str] = Field( - default=UNSET, description="Display location for the organization" - ) - email: Missing[str] = Field( - default=UNSET, description="Display email for the organization" - ) - has_organization_projects: bool = Field( - description="Specifies if organization projects are enabled for this org" - ) - has_repository_projects: bool = Field( - description="Specifies if repository projects are enabled for repositories that belong to this org" - ) - is_verified: Missing[bool] = Field(default=UNSET) - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - type: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - plan: Missing[OrganizationPropPlan] = Field(default=UNSET) - - -class OrganizationPropPlan(GitHubModel): - """OrganizationPropPlan""" - - name: Missing[str] = Field(default=UNSET) - space: Missing[int] = Field(default=UNSET) - private_repos: Missing[int] = Field(default=UNSET) - filled_seats: Missing[int] = Field(default=UNSET) - seats: Missing[int] = Field(default=UNSET) + ahead: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is ahead of the remote.", + ) + behind: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is behind the remote.", + ) + has_unpushed_changes: Missing[bool] = Field( + default=UNSET, description="Whether the local repository has unpushed changes." + ) + has_uncommitted_changes: Missing[bool] = Field( + default=UNSET, + description="Whether the local repository has uncommitted changes.", + ) + ref: Missing[str] = Field( + default=UNSET, + description="The current branch (or SHA if in detached HEAD state) of the local repository.", + ) -class OrgsOrgCopilotBillingSeatsGetResponse200(GitHubModel): - """OrgsOrgCopilotBillingSeatsGetResponse200""" +class CodespacePropRuntimeConstraints(GitHubModel): + """CodespacePropRuntimeConstraints""" - total_seats: Missing[int] = Field( + allowed_port_privacy_settings: Missing[Union[List[str], None]] = Field( default=UNSET, - description="Total number of Copilot seats for the organization currently being billed.", + description="The privacy settings a user can select from when forwarding a port.", ) - seats: Missing[List[CopilotSeatDetails]] = Field(default=UNSET) -model_rebuild(CopilotSeatDetails) -model_rebuild(Organization) -model_rebuild(OrganizationPropPlan) -model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) +model_rebuild(Codespace) +model_rebuild(CodespacePropGitStatus) +model_rebuild(CodespacePropRuntimeConstraints) __all__ = ( - "CopilotSeatDetails", - "Organization", - "OrganizationPropPlan", - "OrgsOrgCopilotBillingSeatsGetResponse200", + "Codespace", + "CodespacePropGitStatus", + "CodespacePropRuntimeConstraints", ) 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 b17f40797..61840d31d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0095.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0095.py @@ -9,9 +9,6 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union - from pydantic import Field from githubkit.utils import UNSET @@ -19,49 +16,20 @@ from githubkit.compat import GitHubModel, model_rebuild -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 credential.") - 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() - 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_0096.py b/githubkit/versions/ghec_v2022_11_28/models/group_0096.py index edbf89236..638c75792 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0096.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0096.py @@ -9,31 +9,83 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class OrganizationCustomRepositoryRoleCreateSchema(GitHubModel): - """OrganizationCustomRepositoryRoleCreateSchema""" +class CopilotOrganizationDetails(ExtraGitHubModel): + """Copilot Business 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 subscription. + """ + + seat_breakdown: CopilotSeatBreakdown = Field( + title="Copilot Business Seat Breakdown", + description="The breakdown of Copilot Business seats for the organization.", + ) + public_code_suggestions: Literal["allow", "block", "unconfigured", "unknown"] = ( + Field( + description="The organization policy for allowing or disallowing Copilot to make suggestions that match public code." + ) + ) + ide_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + default=UNSET, + description="The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor.", + ) + platform_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + default=UNSET, + description="The organization policy for allowing or disallowing organization members to use Copilot features within github.com.", + ) + cli: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + default=UNSET, + description="The organization policy for allowing or disallowing organization members to use Copilot within their CLI.", + ) + seat_management_setting: Literal[ + "assign_all", "assign_selected", "disabled", "unconfigured" + ] = Field(description="The mode of assigning new seats.") + + +class CopilotSeatBreakdown(GitHubModel): + """Copilot Business Seat Breakdown + + The breakdown of Copilot Business seats for the organization. + """ + + total: Missing[int] = Field( + default=UNSET, + description="The total number of seats being billed for the organization as of the current billing cycle.", + ) + added_this_cycle: Missing[int] = Field( + default=UNSET, description="Seats added during the current billing cycle." + ) + pending_cancellation: Missing[int] = Field( default=UNSET, - description="A short description about who this role is for or what permissions it grants.", + description="The number of seats that are pending cancellation at the end of the current billing cycle.", ) - base_role: Literal["read", "triage", "write", "maintain"] = Field( - description="The system role from which this role inherits permissions." + pending_invitation: Missing[int] = Field( + default=UNSET, + description="The number of seats that have been assigned to users that have not yet accepted an invitation to this organization.", ) - permissions: List[str] = Field( - description="A list of additional permissions included in this role." + 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(CopilotSeatBreakdown) -__all__ = ("OrganizationCustomRepositoryRoleCreateSchema",) +__all__ = ( + "CopilotOrganizationDetails", + "CopilotSeatBreakdown", +) 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 903230dc9..b17f40797 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0097.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0097.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import List, Union from pydantic import Field @@ -18,26 +19,49 @@ from githubkit.compat import GitHubModel, model_rebuild -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 credential.") + 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" ) - description: Missing[Union[str, None]] = Field( + authorized_credential_id: Union[int, 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_0098.py b/githubkit/versions/ghec_v2022_11_28/models/group_0098.py index a7dfe2e7d..edbf89236 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0098.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0098.py @@ -9,21 +9,31 @@ from __future__ import annotations +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -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_0099.py b/githubkit/versions/ghec_v2022_11_28/models/group_0099.py index f942ae5db..903230dc9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0099.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0099.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,31 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0079 import MinimalRepository +class OrganizationCustomRepositoryRoleUpdateSchema(GitHubModel): + """OrganizationCustomRepositoryRoleUpdateSchema""" -class Package(GitHubModel): - """Package + name: Missing[str] = Field( + default=UNSET, description="The name of the custom role." + ) + description: Missing[Union[str, None]] = Field( + default=UNSET, + description="A short description about who this role is for or what permissions it grants.", + ) + base_role: Missing[Literal["read", "triage", "write", "maintain"]] = Field( + default=UNSET, + description="The system role from which this role inherits permissions.", + ) + permissions: Missing[List[str]] = Field( + default=UNSET, + description="A list of additional permissions included in this role.", + ) - A software package - """ - id: int = Field(description="Unique identifier of the package.") - name: str = Field(description="The name of the package.") - package_type: Literal[ - "npm", "maven", "rubygems", "docker", "nuget", "container" - ] = Field() - url: str = Field() - html_url: str = Field() - version_count: int = Field(description="The number of versions of the package.") - visibility: Literal["private", "public"] = Field() - owner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - repository: Missing[Union[None, MinimalRepository]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() +model_rebuild(OrganizationCustomRepositoryRoleUpdateSchema) - -model_rebuild(Package) - -__all__ = ("Package",) +__all__ = ("OrganizationCustomRepositoryRoleUpdateSchema",) 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 8425c8dac..a7dfe2e7d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0100.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0100.py @@ -9,56 +9,21 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ExternalGroup(GitHubModel): - """ExternalGroup +class DependabotPublicKey(GitHubModel): + """DependabotPublicKey - Information about an external group's usage and its members + The public key used for setting Dependabot Secrets. """ - group_id: int = Field(description="The internal ID of the group") - group_name: str = Field(description="The display name for the group") - updated_at: Missing[str] = Field( - default=UNSET, description="The date when the group was last updated_at" - ) - teams: List[ExternalGroupPropTeamsItems] = Field( - description="An array of teams linked to this group" - ) - members: List[ExternalGroupPropMembersItems] = Field( - description="An array of external members linked to this group" - ) - - -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") + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") -model_rebuild(ExternalGroup) -model_rebuild(ExternalGroupPropTeamsItems) -model_rebuild(ExternalGroupPropMembersItems) +model_rebuild(DependabotPublicKey) -__all__ = ( - "ExternalGroup", - "ExternalGroupPropTeamsItems", - "ExternalGroupPropMembersItems", -) +__all__ = ("DependabotPublicKey",) 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 0ae20642c..70bac12c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0101.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0101.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,31 +18,31 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0082 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_0102.py b/githubkit/versions/ghec_v2022_11_28/models/group_0102.py index 1f1596144..8425c8dac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0102.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0102.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field @@ -17,29 +17,48 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class ExternalGroup(GitHubModel): + """ExternalGroup -class OrganizationInvitation(GitHubModel): - """Organization Invitation - - 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", + "ExternalGroupPropTeamsItems", + "ExternalGroupPropMembersItems", +) 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 467053545..0ae20642c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0103.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0103.py @@ -9,21 +9,39 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class 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", + ) + + +class ExternalGroupsPropGroupsItems(GitHubModel): + """ExternalGroupsPropGroupsItems""" + + group_id: int = Field(description="The internal ID of the group") + group_name: str = Field(description="The display name of the group") + updated_at: str = Field(description="The time of the last update for this group") -model_rebuild(RepositoryFineGrainedPermission) +model_rebuild(ExternalGroups) +model_rebuild(ExternalGroupsPropGroupsItems) -__all__ = ("RepositoryFineGrainedPermission",) +__all__ = ( + "ExternalGroups", + "ExternalGroupsPropGroupsItems", +) 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 ad190d5de..1f1596144 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0104.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0104.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import List -from datetime import datetime +from typing import Union from pydantic import Field @@ -18,39 +17,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 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_0105.py b/githubkit/versions/ghec_v2022_11_28/models/group_0105.py index 9b7c2e376..467053545 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0105.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0105.py @@ -9,27 +9,21 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class InteractionLimitResponse(GitHubModel): - """Interaction Limits +class RepositoryFineGrainedPermission(GitHubModel): + """Repository Fine-Grained Permission - Interaction limit settings. + A fine-grained permission that protects repository resources. """ - limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( - description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." - ) - origin: str = Field() - expires_at: datetime = Field() + name: str = Field() + description: str = Field() -model_rebuild(InteractionLimitResponse) +model_rebuild(RepositoryFineGrainedPermission) -__all__ = ("InteractionLimitResponse",) +__all__ = ("RepositoryFineGrainedPermission",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0106.py b/githubkit/versions/ghec_v2022_11_28/models/group_0106.py index 691af00f1..ad190d5de 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0106.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0106.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from typing import List +from datetime import datetime from pydantic import Field @@ -18,23 +19,38 @@ from githubkit.compat import GitHubModel, model_rebuild -class InteractionLimit(GitHubModel): - """Interaction Restrictions +class OrgHook(GitHubModel): + """Org Hook - Limit interactions to a specific type of user for a specified duration + Org Hook """ - limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( - description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." - ) - expiry: Missing[ - Literal["one_day", "three_days", "one_week", "one_month", "six_months"] - ] = Field( - default=UNSET, - description="The duration of the interaction restriction. Default: `one_day`.", - ) + id: int = Field() + url: str = Field() + ping_url: str = Field() + deliveries_url: Missing[str] = Field(default=UNSET) + name: str = Field() + events: List[str] = Field() + active: bool = Field() + config: OrgHookPropConfig = Field() + updated_at: datetime = Field() + created_at: datetime = Field() + type: str = Field() -model_rebuild(InteractionLimit) +class OrgHookPropConfig(GitHubModel): + """OrgHookPropConfig""" -__all__ = ("InteractionLimit",) + url: Missing[str] = Field(default=UNSET) + insecure_ssl: Missing[str] = Field(default=UNSET) + content_type: Missing[str] = Field(default=UNSET) + secret: Missing[str] = Field(default=UNSET) + + +model_rebuild(OrgHook) +model_rebuild(OrgHookPropConfig) + +__all__ = ( + "OrgHook", + "OrgHookPropConfig", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0107.py b/githubkit/versions/ghec_v2022_11_28/models/group_0107.py index 364cec24a..9b7c2e376 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0107.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0107.py @@ -9,49 +9,27 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal +from datetime import datetime from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0029 import OrganizationSimple +class InteractionLimitResponse(GitHubModel): + """Interaction Limits -class OrgMembership(GitHubModel): - """Org Membership - - Org Membership + Interaction limit settings. """ - url: str = Field() - state: Literal["active", "pending"] = Field( - description="The state of the member in the organization. The `pending` state indicates the user has not yet accepted an invitation." - ) - role: Literal["admin", "member", "billing_manager"] = Field( - description="The user's membership type in the organization." - ) - organization_url: str = Field() - organization: OrganizationSimple = Field( - title="Organization Simple", description="A GitHub organization." + limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( + description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." ) - user: Union[None, SimpleUser] = Field() - permissions: Missing[OrgMembershipPropPermissions] = Field(default=UNSET) - - -class OrgMembershipPropPermissions(GitHubModel): - """OrgMembershipPropPermissions""" - - can_create_repository: bool = Field() + origin: str = Field() + expires_at: datetime = Field() -model_rebuild(OrgMembership) -model_rebuild(OrgMembershipPropPermissions) +model_rebuild(InteractionLimitResponse) -__all__ = ( - "OrgMembership", - "OrgMembershipPropPermissions", -) +__all__ = ("InteractionLimitResponse",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0108.py b/githubkit/versions/ghec_v2022_11_28/models/group_0108.py index 90b3e4df8..691af00f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0108.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0108.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import Literal from pydantic import Field @@ -18,41 +17,24 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0017 import Repository +class InteractionLimit(GitHubModel): + """Interaction Restrictions -class Migration(GitHubModel): - """Migration - - A migration. + Limit interactions to a specific type of user for a specified duration """ - id: int = Field() - owner: Union[None, SimpleUser] = Field() - guid: str = Field() - state: str = Field() - lock_repositories: bool = Field() - exclude_metadata: bool = Field() - exclude_git_data: bool = Field() - exclude_attachments: bool = Field() - exclude_releases: bool = Field() - exclude_owner_projects: bool = Field() - org_metadata_only: bool = Field() - repositories: List[Repository] = Field( - description="The repositories included in the migration. Only returned for export migrations." + limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( + description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." ) - url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - node_id: str = Field() - archive_url: Missing[str] = Field(default=UNSET) - exclude: Missing[List[str]] = Field( + expiry: Missing[ + Literal["one_day", "three_days", "one_week", "one_month", "six_months"] + ] = Field( default=UNSET, - description='Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `"repositories"`.', + description="The duration of the interaction restriction. Default: `one_day`.", ) -model_rebuild(Migration) +model_rebuild(InteractionLimit) -__all__ = ("Migration",) +__all__ = ("InteractionLimit",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0109.py b/githubkit/versions/ghec_v2022_11_28/models/group_0109.py index d92a39bb6..364cec24a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0109.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0109.py @@ -9,21 +9,49 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0029 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." + ) + 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_0110.py b/githubkit/versions/ghec_v2022_11_28/models/group_0110.py index 73cbad8d5..90b3e4df8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0110.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0110.py @@ -19,47 +19,40 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser +from .group_0017 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.", - ) - 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_0111.py b/githubkit/versions/ghec_v2022_11_28/models/group_0111.py index 7284dd91d..d92a39bb6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0111.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0111.py @@ -9,71 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class PackageVersion(GitHubModel): - """Package Version +class OrganizationFineGrainedPermission(GitHubModel): + """Organization Fine-Grained Permission - A version of a software package + A fine-grained permission that protects organization resources. """ - 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 PackageVersionPropMetadata(GitHubModel): - """Package Version Metadata""" - - package_type: Literal[ - "npm", "maven", "rubygems", "docker", "nuget", "container" - ] = Field() - container: Missing[PackageVersionPropMetadataPropContainer] = Field( - default=UNSET, title="Container Metadata" - ) - docker: Missing[PackageVersionPropMetadataPropDocker] = Field( - default=UNSET, title="Docker Metadata" - ) - - -class PackageVersionPropMetadataPropContainer(GitHubModel): - """Container Metadata""" - - tags: List[str] = Field() - - -class PackageVersionPropMetadataPropDocker(GitHubModel): - """Docker Metadata""" - - tag: Missing[List[str]] = Field(default=UNSET) + name: str = Field() + description: str = Field() -model_rebuild(PackageVersion) -model_rebuild(PackageVersionPropMetadata) -model_rebuild(PackageVersionPropMetadataPropContainer) -model_rebuild(PackageVersionPropMetadataPropDocker) +model_rebuild(OrganizationFineGrainedPermission) -__all__ = ( - "PackageVersion", - "PackageVersionPropMetadata", - "PackageVersionPropMetadataPropContainer", - "PackageVersionPropMetadataPropDocker", -) +__all__ = ("OrganizationFineGrainedPermission",) 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 3fdddf239..73cbad8d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0112.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0112.py @@ -9,97 +9,57 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -class OrganizationProgrammaticAccessGrantRequest(GitHubModel): - """Simple Organization Programmatic Access Grant Request +class OrganizationRole(GitHubModel): + """Organization Role - Minimal representation of an organization programmatic access grant request for - enumerations + Organization roles """ - id: int = Field( - description="Unique identifier of the request for access via fine-grained personal access token. The `pat_request_id` used to review PAT requests." + id: int = Field(description="The unique identifier of the role.") + name: str = Field(description="The name of the role.") + description: Missing[Union[str, None]] = Field( + default=UNSET, + description="A short description about who this role is for or what permissions it grants.", ) - reason: Union[str, None] = Field(description="Reason for requesting access.") - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - repository_selection: Literal["none", "all", "subset"] = Field( - description="Type of repository selection requested." + permissions: List[str] = Field( + description="A list of permissions included in this role." ) - 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`." + 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." ) - 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_expired: bool = Field( - description="Whether the associated fine-grained personal access token has expired." - ) - token_expires_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token expires." - ) - token_last_used_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token was last used for authentication." - ) - -class OrganizationProgrammaticAccessGrantRequestPropPermissions(GitHubModel): - """OrganizationProgrammaticAccessGrantRequestPropPermissions - - Permissions requested, categorized by type of permission. - """ - organization: Missing[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository - ] = Field(default=UNSET) - other: Missing[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther - ] = Field(default=UNSET) +class OrgsOrgOrganizationRolesGetResponse200(GitHubModel): + """OrgsOrgOrganizationRolesGetResponse200""" - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization""" - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository""" - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther""" + total_count: Missing[int] = Field( + default=UNSET, + description="The total number of organization roles available to the organization.", + ) + roles: Missing[List[OrganizationRole]] = Field( + default=UNSET, + description="The list of organization roles available to the organization.", + ) -model_rebuild(OrganizationProgrammaticAccessGrantRequest) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissions) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther) +model_rebuild(OrganizationRole) +model_rebuild(OrgsOrgOrganizationRolesGetResponse200) __all__ = ( - "OrganizationProgrammaticAccessGrantRequest", - "OrganizationProgrammaticAccessGrantRequestPropPermissions", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", + "OrganizationRole", + "OrgsOrgOrganizationRolesGetResponse200", ) 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 a4c5c0aa0..cdcae2066 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0113.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0113.py @@ -9,94 +9,53 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +from .group_0047 import TeamSimple -class OrganizationProgrammaticAccessGrant(GitHubModel): - """Organization Programmatic Access Grant +class TeamRoleAssignment(GitHubModel): + """A Role Assignment for a Team - Minimal representation of an organization programmatic access grant for - enumerations + The Relationship a Team has with a role. """ - id: int = Field( - description="Unique identifier of the fine-grained personal access token. 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_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""" - + 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 OrganizationProgrammaticAccessGrantPropPermissionsPropRepository( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantPropPermissionsPropRepository""" +class TeamRoleAssignmentPropPermissions(GitHubModel): + """TeamRoleAssignmentPropPermissions""" -class OrganizationProgrammaticAccessGrantPropPermissionsPropOther(ExtraGitHubModel): - """OrganizationProgrammaticAccessGrantPropPermissionsPropOther""" + pull: bool = Field() + triage: bool = Field() + push: bool = Field() + maintain: bool = Field() + admin: bool = Field() -model_rebuild(OrganizationProgrammaticAccessGrant) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissions) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropRepository) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOther) +model_rebuild(TeamRoleAssignment) +model_rebuild(TeamRoleAssignmentPropPermissions) __all__ = ( - "OrganizationProgrammaticAccessGrant", - "OrganizationProgrammaticAccessGrantPropPermissions", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", - "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", + "TeamRoleAssignment", + "TeamRoleAssignmentPropPermissions", ) 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 1003eee7e..c8f8a9538 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0114.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0114.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from pydantic import Field @@ -18,38 +17,36 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class UserRoleAssignment(GitHubModel): + """A Role Assignment for a User -class Project(GitHubModel): - """Project - - Projects are a way to organize columns and cards of work. + The Relationship a User has with a role. """ - owner_url: str = Field() - url: str = Field() - html_url: str = Field() - columns_url: str = Field() + 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() - name: str = Field(description="Name of the project") - body: Union[str, None] = Field(description="Body of the project") - number: int = Field() - state: str = Field(description="State of the project; either 'open' or 'closed'") - creator: Union[None, SimpleUser] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( - default=UNSET, - description="The baseline permission that all organization members have on this project. Only present if owner is an organization.", - ) - private: Missing[bool] = Field( - default=UNSET, - description="Whether or not this project can be seen by everyone. Only present if owner is an organization.", - ) - - -model_rebuild(Project) - -__all__ = ("Project",) + 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) + + +model_rebuild(UserRoleAssignment) + +__all__ = ("UserRoleAssignment",) 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 47364c2fe..7284dd91d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0115.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0115.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import Annotated +from datetime import datetime +from typing import List, Literal from pydantic import Field @@ -19,41 +19,61 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgCustomProperty(GitHubModel): - """Organization Custom Property +class PackageVersion(GitHubModel): + """Package Version - Custom property defined on an organization + A version of a software package """ - property_name: str = Field(description="The name of the property") - value_type: Literal["string", "single_select"] = Field( - description="The type of the value for the property" + 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" ) - required: Missing[bool] = Field( - default=UNSET, description="Whether the property is required." - ) - default_value: Missing[Union[str, List[str], None]] = Field( - default=UNSET, description="Default value of the property" - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the property" + + +class PackageVersionPropMetadata(GitHubModel): + """Package Version Metadata""" + + package_type: Literal[ + "npm", "maven", "rubygems", "docker", "nuget", "container" + ] = Field() + container: Missing[PackageVersionPropMetadataPropContainer] = Field( + default=UNSET, title="Container Metadata" ) - allowed_values: Missing[ - Union[ - Annotated[ - List[Annotated[str, Field(max_length=75)]], Field(max_length=200) - ], - None, - ] - ] = Field( - default=UNSET, - description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", + docker: Missing[PackageVersionPropMetadataPropDocker] = Field( + default=UNSET, title="Docker Metadata" ) - values_editable_by: Missing[ - Union[None, Literal["org_actors", "org_and_repo_actors"]] - ] = Field(default=UNSET, description="Who can edit the values of the property") -model_rebuild(OrgCustomProperty) +class PackageVersionPropMetadataPropContainer(GitHubModel): + """Container Metadata""" + + tags: List[str] = Field() + + +class PackageVersionPropMetadataPropDocker(GitHubModel): + """Docker Metadata""" + + tag: Missing[List[str]] = Field(default=UNSET) + + +model_rebuild(PackageVersion) +model_rebuild(PackageVersionPropMetadata) +model_rebuild(PackageVersionPropMetadataPropContainer) +model_rebuild(PackageVersionPropMetadataPropDocker) -__all__ = ("OrgCustomProperty",) +__all__ = ( + "PackageVersion", + "PackageVersionPropMetadata", + "PackageVersionPropMetadataPropContainer", + "PackageVersionPropMetadataPropDocker", +) 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 9b8b64121..3fdddf239 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0116.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0116.py @@ -9,25 +9,97 @@ from __future__ import annotations -from typing import List, Union +from typing import Union, Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from .group_0001 import SimpleUser -class CustomPropertyValue(GitHubModel): - """Custom Property Value - Custom property name and associated value +class OrganizationProgrammaticAccessGrantRequest(GitHubModel): + """Simple Organization Programmatic Access Grant Request + + Minimal representation of an organization programmatic access grant request for + enumerations """ - property_name: str = Field(description="The name of the property") - value: Union[str, List[str], None] = Field( - description="The value assigned to the property" + id: int = Field( + description="Unique identifier of the request for access via fine-grained personal access token. The `pat_request_id` used to review PAT requests." + ) + reason: Union[str, None] = Field(description="Reason for requesting access.") + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + repository_selection: Literal["none", "all", "subset"] = Field( + description="Type of repository selection requested." + ) + repositories_url: str = Field( + description="URL to the list of repositories requested to be accessed via fine-grained personal access token. Should only be followed when `repository_selection` is `subset`." + ) + permissions: OrganizationProgrammaticAccessGrantRequestPropPermissions = Field( + description="Permissions requested, categorized by type of permission." + ) + created_at: str = Field( + description="Date and time when the request for access was created." ) + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." + ) + token_expires_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token expires." + ) + token_last_used_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token was last used for authentication." + ) + + +class OrganizationProgrammaticAccessGrantRequestPropPermissions(GitHubModel): + """OrganizationProgrammaticAccessGrantRequestPropPermissions + + Permissions requested, categorized by type of permission. + """ + + organization: Missing[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository + ] = Field(default=UNSET) + other: Missing[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther + ] = Field(default=UNSET) + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization""" + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository""" + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther( + ExtraGitHubModel +): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther""" -model_rebuild(CustomPropertyValue) +model_rebuild(OrganizationProgrammaticAccessGrantRequest) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissions) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther) -__all__ = ("CustomPropertyValue",) +__all__ = ( + "OrganizationProgrammaticAccessGrantRequest", + "OrganizationProgrammaticAccessGrantRequestPropPermissions", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", +) 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 2270a1d05..a4c5c0aa0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0117.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0117.py @@ -9,29 +9,94 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0116 import CustomPropertyValue +from .group_0001 import SimpleUser -class OrgRepoCustomPropertyValues(GitHubModel): - """Organization Repository Custom Property Values +class OrganizationProgrammaticAccessGrant(GitHubModel): + """Organization Programmatic Access Grant - List of custom property values for a repository + Minimal representation of an organization programmatic access grant for + enumerations """ - repository_id: int = Field() - repository_name: str = Field() - repository_full_name: str = Field() - properties: List[CustomPropertyValue] = Field( - description="List of custom property names and associated values" + id: int = Field( + description="Unique identifier of the fine-grained personal access token. 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_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(OrgRepoCustomPropertyValues) +model_rebuild(OrganizationProgrammaticAccessGrant) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissions) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropRepository) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOther) -__all__ = ("OrgRepoCustomPropertyValues",) +__all__ = ( + "OrganizationProgrammaticAccessGrant", + "OrganizationProgrammaticAccessGrantPropPermissions", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", + "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", +) 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 35b60a16d..1003eee7e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0118.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0118.py @@ -9,25 +9,47 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class CodeOfConductSimple(GitHubModel): - """Code Of Conduct Simple - Code of Conduct Simple +class Project(GitHubModel): + """Project + + Projects are a way to organize columns and cards of work. """ + owner_url: str = Field() url: str = Field() - key: str = Field() - name: str = Field() - html_url: Union[str, None] = Field() - - -model_rebuild(CodeOfConductSimple) - -__all__ = ("CodeOfConductSimple",) + html_url: str = Field() + columns_url: str = Field() + id: int = Field() + node_id: str = Field() + name: str = Field(description="Name of the project") + body: Union[str, None] = Field(description="Body of the project") + number: int = Field() + state: str = Field(description="State of the project; either 'open' or 'closed'") + creator: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( + default=UNSET, + description="The baseline permission that all organization members have on this project. Only present if owner is an organization.", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Whether or not this project can be seen by everyone. Only present if owner is an organization.", + ) + + +model_rebuild(Project) + +__all__ = ("Project",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0119.py b/githubkit/versions/ghec_v2022_11_28/models/group_0119.py index 4511e05b9..04d3f49ab 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0119.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0119.py @@ -9,196 +9,51 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal +from typing_extensions import Annotated from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0017 import Repository -from .group_0016 import LicenseSimple -from .group_0078 import SecurityAndAnalysis -from .group_0118 import CodeOfConductSimple +class OrgCustomProperty(GitHubModel): + """Organization Custom Property -class FullRepository(GitHubModel): - """Full Repository - - Full Repository + Custom property defined on an organization """ - id: int = Field() - node_id: str = Field() - name: str = Field() - full_name: str = Field() - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field() - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field( - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." + property_name: str = Field(description="The name of the property") + value_type: Literal["string", "single_select", "multi_select", "true_false"] = ( + Field(description="The type of the value for the property") ) - default_branch: str = Field() - open_issues_count: int = Field() - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[List[str]] = Field(default=UNSET) - has_issues: bool = Field() - has_projects: bool = Field() - has_wiki: bool = Field() - has_pages: bool = Field() - has_downloads: Missing[bool] = Field(default=UNSET) - has_discussions: bool = Field() - archived: bool = Field() - disabled: bool = Field( - description="Returns whether or not this repository disabled." + required: Missing[bool] = Field( + default=UNSET, description="Whether the property is required." ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", + default_value: Missing[Union[str, List[str], None]] = Field( + default=UNSET, description="Default value of the property" ) - pushed_at: datetime = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - permissions: Missing[FullRepositoryPropPermissions] = Field(default=UNSET) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - template_repository: Missing[Union[None, Repository]] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - allow_update_branch: Missing[bool] = Field(default=UNSET) - use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Short description of the property" ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + allowed_values: Missing[ + Union[ + Annotated[ + List[Annotated[str, Field(max_length=75)]], Field(max_length=200) + ], + None, + ] ] = Field( default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_forking: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - subscribers_count: int = Field() - network_count: int = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - parent: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - source: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - forks: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - anonymous_access_enabled: Missing[bool] = Field( - default=UNSET, description="Whether anonymous git access is allowed." - ) - code_of_conduct: Missing[CodeOfConductSimple] = Field( - default=UNSET, - title="Code Of Conduct Simple", - description="Code of Conduct Simple", + description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", ) - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET - ) - custom_properties: Missing[FullRepositoryPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - - -class FullRepositoryPropPermissions(GitHubModel): - """FullRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - - -class FullRepositoryPropCustomProperties(ExtraGitHubModel): - """FullRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ + values_editable_by: Missing[ + Union[None, Literal["org_actors", "org_and_repo_actors"]] + ] = Field(default=UNSET, description="Who can edit the values of the property") -model_rebuild(FullRepository) -model_rebuild(FullRepositoryPropPermissions) -model_rebuild(FullRepositoryPropCustomProperties) +model_rebuild(OrgCustomProperty) -__all__ = ( - "FullRepository", - "FullRepositoryPropPermissions", - "FullRepositoryPropCustomProperties", -) +__all__ = ("OrgCustomProperty",) 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 6c8d0b2ff..9b8b64121 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0120.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0120.py @@ -9,33 +9,25 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRulesetBypassActor(GitHubModel): - """Repository Ruleset Bypass Actor +class CustomPropertyValue(GitHubModel): + """Custom Property Value - An actor that can bypass rules in a ruleset + Custom property name and associated value """ - actor_id: Missing[Union[int, None]] = Field( - default=UNSET, - description="The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories.\n", - ) - actor_type: Literal[ - "Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey" - ] = Field(description="The type of actor that can bypass a ruleset.\n") - bypass_mode: Literal["always", "pull_request"] = Field( - 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.\n" + property_name: str = Field(description="The name of the property") + value: Union[str, List[str], None] = Field( + description="The value assigned to the property" ) -model_rebuild(RepositoryRulesetBypassActor) +model_rebuild(CustomPropertyValue) -__all__ = ("RepositoryRulesetBypassActor",) +__all__ = ("CustomPropertyValue",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0121.py b/githubkit/versions/ghec_v2022_11_28/models/group_0121.py index 7458e64b2..5475c5100 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0121.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0121.py @@ -9,24 +9,29 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0122 import RepositoryRulesetConditionsPropRefName +from .group_0120 import CustomPropertyValue -class RepositoryRulesetConditions(GitHubModel): - """Repository ruleset conditions for ref names +class OrgRepoCustomPropertyValues(GitHubModel): + """Organization Repository Custom Property Values - Parameters for a repository ruleset ref name condition + List of custom property values for a repository """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_id: int = Field() + repository_name: str = Field() + repository_full_name: str = Field() + properties: List[CustomPropertyValue] = Field( + description="List of custom property names and associated values" + ) -model_rebuild(RepositoryRulesetConditions) +model_rebuild(OrgRepoCustomPropertyValues) -__all__ = ("RepositoryRulesetConditions",) +__all__ = ("OrgRepoCustomPropertyValues",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0122.py b/githubkit/versions/ghec_v2022_11_28/models/group_0122.py index cac223a59..35b60a16d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0122.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0122.py @@ -9,28 +9,25 @@ from __future__ import annotations -from typing import List +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRulesetConditionsPropRefName(GitHubModel): - """RepositoryRulesetConditionsPropRefName""" +class CodeOfConductSimple(GitHubModel): + """Code Of Conduct Simple - include: Missing[List[str]] = Field( - default=UNSET, - description="Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.", - ) - exclude: Missing[List[str]] = Field( - default=UNSET, - description="Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.", - ) + Code of Conduct Simple + """ + url: str = Field() + key: str = Field() + name: str = Field() + html_url: Union[str, None] = Field() -model_rebuild(RepositoryRulesetConditionsPropRefName) -__all__ = ("RepositoryRulesetConditionsPropRefName",) +model_rebuild(CodeOfConductSimple) + +__all__ = ("CodeOfConductSimple",) 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 4e1ac3326..fc7d3c9b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0123.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0123.py @@ -9,24 +9,196 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0124 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, -) +from .group_0001 import SimpleUser +from .group_0017 import Repository +from .group_0016 import LicenseSimple +from .group_0081 import SecurityAndAnalysis +from .group_0122 import CodeOfConductSimple -class RepositoryRulesetConditionsRepositoryNameTarget(GitHubModel): - """Repository ruleset conditions for repository names +class FullRepository(GitHubModel): + """Full Repository - Parameters for a repository name condition + Full Repository """ - repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() + id: int = Field() + node_id: str = Field() + name: str = Field() + full_name: str = Field() + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field() + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field( + description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." + ) + default_branch: str = Field() + open_issues_count: int = Field() + is_template: Missing[bool] = Field(default=UNSET) + topics: Missing[List[str]] = Field(default=UNSET) + has_issues: bool = Field() + has_projects: bool = Field() + has_wiki: bool = Field() + has_pages: bool = Field() + has_downloads: Missing[bool] = Field(default=UNSET) + has_discussions: bool = Field() + archived: bool = Field() + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + pushed_at: datetime = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + permissions: Missing[FullRepositoryPropPermissions] = Field(default=UNSET) + allow_rebase_merge: Missing[bool] = Field(default=UNSET) + template_repository: Missing[Union[None, Repository]] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + allow_merge_commit: Missing[bool] = Field(default=UNSET) + allow_update_branch: Missing[bool] = Field(default=UNSET) + use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + allow_forking: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + subscribers_count: int = Field() + network_count: int = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + parent: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + source: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + forks: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + open_issues: int = Field() + watchers: int = Field() + anonymous_access_enabled: Missing[bool] = Field( + default=UNSET, description="Whether anonymous git access is allowed." + ) + code_of_conduct: Missing[CodeOfConductSimple] = Field( + default=UNSET, + title="Code Of Conduct Simple", + description="Code of Conduct Simple", + ) + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET + ) + custom_properties: Missing[FullRepositoryPropCustomProperties] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + + +class FullRepositoryPropPermissions(GitHubModel): + """FullRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + pull: bool = Field() -model_rebuild(RepositoryRulesetConditionsRepositoryNameTarget) +class FullRepositoryPropCustomProperties(ExtraGitHubModel): + """FullRepositoryPropCustomProperties -__all__ = ("RepositoryRulesetConditionsRepositoryNameTarget",) + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +model_rebuild(FullRepository) +model_rebuild(FullRepositoryPropPermissions) +model_rebuild(FullRepositoryPropCustomProperties) + +__all__ = ( + "FullRepository", + "FullRepositoryPropPermissions", + "FullRepositoryPropCustomProperties", +) 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 5729a4ea4..6c8d0b2ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0124.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0124.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field @@ -18,23 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName(GitHubModel): - """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" +class RepositoryRulesetBypassActor(GitHubModel): + """Repository Ruleset Bypass Actor - include: Missing[List[str]] = Field( - default=UNSET, - description="Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.", - ) - exclude: Missing[List[str]] = Field( + An actor that can bypass rules in a ruleset + """ + + actor_id: Missing[Union[int, None]] = Field( default=UNSET, - description="Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.", + description="The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories.\n", ) - protected: Missing[bool] = Field( - default=UNSET, - description="Whether renaming of target repositories is prevented.", + actor_type: Literal[ + "Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey" + ] = Field(description="The type of actor that can bypass a ruleset.\n") + bypass_mode: Literal["always", "pull_request"] = Field( + 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.\n" ) -model_rebuild(RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName) +model_rebuild(RepositoryRulesetBypassActor) -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName",) +__all__ = ("RepositoryRulesetBypassActor",) 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 3c28e4d4a..aa01dba7b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0125.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0125.py @@ -11,22 +11,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0126 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId +from .group_0126 import RepositoryRulesetConditionsPropRefName -class RepositoryRulesetConditionsRepositoryIdTarget(GitHubModel): - """Repository ruleset conditions for repository IDs +class RepositoryRulesetConditions(GitHubModel): + """Repository ruleset conditions for ref names - Parameters for a repository ID condition + Parameters for a repository ruleset ref name condition """ - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( - Field() - ) + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) -model_rebuild(RepositoryRulesetConditionsRepositoryIdTarget) +model_rebuild(RepositoryRulesetConditions) -__all__ = ("RepositoryRulesetConditionsRepositoryIdTarget",) +__all__ = ("RepositoryRulesetConditions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0126.py b/githubkit/versions/ghec_v2022_11_28/models/group_0126.py index cdb3781a4..cac223a59 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0126.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0126.py @@ -18,15 +18,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId(GitHubModel): - """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" +class RepositoryRulesetConditionsPropRefName(GitHubModel): + """RepositoryRulesetConditionsPropRefName""" - repository_ids: Missing[List[int]] = Field( + include: Missing[List[str]] = Field( default=UNSET, - description="The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.", + description="Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.", + ) + exclude: Missing[List[str]] = Field( + default=UNSET, + description="Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.", ) -model_rebuild(RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId) +model_rebuild(RepositoryRulesetConditionsPropRefName) -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId",) +__all__ = ("RepositoryRulesetConditionsPropRefName",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0127.py b/githubkit/versions/ghec_v2022_11_28/models/group_0127.py index ce100d180..9ed82f261 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0127.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0127.py @@ -14,19 +14,19 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0128 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, ) -class RepositoryRulesetConditionsRepositoryPropertyTarget(GitHubModel): - """Repository ruleset conditions for repository properties +class RepositoryRulesetConditionsRepositoryNameTarget(GitHubModel): + """Repository ruleset conditions for repository names - Parameters for a repository property condition + Parameters for a repository name condition """ - repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() + repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() -model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTarget) +model_rebuild(RepositoryRulesetConditionsRepositoryNameTarget) -__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTarget",) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTarget",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0128.py b/githubkit/versions/ghec_v2022_11_28/models/group_0128.py index 78f66546d..5729a4ea4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0128.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0128.py @@ -18,37 +18,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty( - GitHubModel -): - """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" +class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName(GitHubModel): + """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" - include: Missing[List[RepositoryRulesetConditionsRepositoryPropertySpec]] = Field( + include: Missing[List[str]] = Field( default=UNSET, - description="The repository properties and values to include. All of these properties must match for the condition to pass.", + description="Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.", ) - exclude: Missing[List[RepositoryRulesetConditionsRepositoryPropertySpec]] = Field( + exclude: Missing[List[str]] = Field( default=UNSET, - description="The repository properties and values to exclude. The condition will not pass if any of these properties match.", + description="Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.", ) - - -class RepositoryRulesetConditionsRepositoryPropertySpec(GitHubModel): - """Repository ruleset property targeting definition - - Parameters for a targeting a repository property - """ - - name: str = Field(description="The name of the repository property to target") - property_values: List[str] = Field( - description="The values to match for the repository property" + protected: Missing[bool] = Field( + default=UNSET, + description="Whether renaming of target repositories is prevented.", ) -model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty) -model_rebuild(RepositoryRulesetConditionsRepositoryPropertySpec) +model_rebuild(RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName) -__all__ = ( - "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", - "RepositoryRulesetConditionsRepositoryPropertySpec", -) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName",) 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 f10d8bbe7..4086fb1c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0129.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0129.py @@ -11,26 +11,22 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0122 import RepositoryRulesetConditionsPropRefName -from .group_0124 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, -) +from .group_0130 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId -class OrgRulesetConditionsOneof0(GitHubModel): - """repository_name_and_ref_name +class RepositoryRulesetConditionsRepositoryIdTarget(GitHubModel): + """Repository ruleset conditions for repository IDs - Conditions to target repositories by name and refs by name + Parameters for a repository ID condition """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) - repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( + Field() + ) -model_rebuild(OrgRulesetConditionsOneof0) +model_rebuild(RepositoryRulesetConditionsRepositoryIdTarget) -__all__ = ("OrgRulesetConditionsOneof0",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTarget",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0130.py b/githubkit/versions/ghec_v2022_11_28/models/group_0130.py index 308d6ee0b..cdb3781a4 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,24 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0122 import RepositoryRulesetConditionsPropRefName -from .group_0126 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId - - -class OrgRulesetConditionsOneof1(GitHubModel): - """repository_id_and_ref_name - Conditions to target repositories by id and refs by name - """ +class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId(GitHubModel): + """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( - Field() + repository_ids: Missing[List[int]] = Field( + default=UNSET, + description="The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.", ) -model_rebuild(OrgRulesetConditionsOneof1) +model_rebuild(RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId) -__all__ = ("OrgRulesetConditionsOneof1",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0131.py b/githubkit/versions/ghec_v2022_11_28/models/group_0131.py index 5b4c81869..9e68823bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0131.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0131.py @@ -11,26 +11,22 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0122 import RepositoryRulesetConditionsPropRefName -from .group_0128 import ( +from .group_0132 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, ) -class OrgRulesetConditionsOneof2(GitHubModel): - """repository_property_and_ref_name +class RepositoryRulesetConditionsRepositoryPropertyTarget(GitHubModel): + """Repository ruleset conditions for repository properties - Conditions to target repositories by property and refs by name + Parameters for a repository property condition """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() -model_rebuild(OrgRulesetConditionsOneof2) +model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTarget) -__all__ = ("OrgRulesetConditionsOneof2",) +__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTarget",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0132.py b/githubkit/versions/ghec_v2022_11_28/models/group_0132.py index 9e33343bc..854c188ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0132.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0132.py @@ -18,100 +18,41 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleCreation(GitHubModel): - """creation - - Only allow users with bypass permission to create matching refs. - """ - - type: Literal["creation"] = Field() - - -class RepositoryRuleDeletion(GitHubModel): - """deletion - - Only allow users with bypass permissions to delete matching refs. - """ - - type: Literal["deletion"] = Field() - - -class RepositoryRuleRequiredSignatures(GitHubModel): - """required_signatures - - Commits pushed to matching refs must have verified signatures. - """ - - type: Literal["required_signatures"] = Field() - - -class RepositoryRuleNonFastForward(GitHubModel): - """non_fast_forward - - Prevent users with push access from force pushing to refs. - """ - - type: Literal["non_fast_forward"] = Field() - - -class RepositoryRuleOneof14(GitHubModel): - """file_path_restriction - - Note: file_path_restriction is in beta and subject to change. - - Prevent commits that include changes in specified file paths from being pushed - to the commit graph. - """ - - type: Literal["file_path_restriction"] = Field() - parameters: Missing[RepositoryRuleOneof14PropParameters] = Field(default=UNSET) - - -class RepositoryRuleOneof14PropParameters(GitHubModel): - """RepositoryRuleOneof14PropParameters""" - - restricted_file_paths: List[str] = Field( - description="The file paths that are restricted from being pushed to the commit graph." +class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty( + GitHubModel +): + """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" + + include: Missing[List[RepositoryRulesetConditionsRepositoryPropertySpec]] = Field( + default=UNSET, + description="The repository properties and values to include. All of these properties must match for the condition to pass.", + ) + exclude: Missing[List[RepositoryRulesetConditionsRepositoryPropertySpec]] = Field( + default=UNSET, + description="The repository properties and values to exclude. The condition will not pass if any of these properties match.", ) -class RepositoryRuleOneof16(GitHubModel): - """file_extension_restriction - - Note: file_extension_restriction is in beta and subject to change. +class RepositoryRulesetConditionsRepositoryPropertySpec(GitHubModel): + """Repository ruleset property targeting definition - Prevent commits that include files with specified file extensions from being - pushed to the commit graph. + Parameters for a targeting a repository property """ - type: Literal["file_extension_restriction"] = Field() - parameters: Missing[RepositoryRuleOneof16PropParameters] = Field(default=UNSET) - - -class RepositoryRuleOneof16PropParameters(GitHubModel): - """RepositoryRuleOneof16PropParameters""" - - restricted_file_extensions: List[str] = Field( - description="The file extensions that are restricted from being pushed to the commit graph." + name: str = Field(description="The name of the repository property to target") + property_values: List[str] = Field( + description="The values to match for the repository property" + ) + source: Missing[Literal["custom", "system"]] = Field( + default=UNSET, + description="The source of the repository property. Defaults to 'custom' if not specified.", ) -model_rebuild(RepositoryRuleCreation) -model_rebuild(RepositoryRuleDeletion) -model_rebuild(RepositoryRuleRequiredSignatures) -model_rebuild(RepositoryRuleNonFastForward) -model_rebuild(RepositoryRuleOneof14) -model_rebuild(RepositoryRuleOneof14PropParameters) -model_rebuild(RepositoryRuleOneof16) -model_rebuild(RepositoryRuleOneof16PropParameters) +model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty) +model_rebuild(RepositoryRulesetConditionsRepositoryPropertySpec) __all__ = ( - "RepositoryRuleCreation", - "RepositoryRuleDeletion", - "RepositoryRuleRequiredSignatures", - "RepositoryRuleNonFastForward", - "RepositoryRuleOneof14", - "RepositoryRuleOneof14PropParameters", - "RepositoryRuleOneof16", - "RepositoryRuleOneof16PropParameters", + "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", + "RepositoryRulesetConditionsRepositoryPropertySpec", ) 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 ff6b337c8..d2c0c155f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0133.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0133.py @@ -9,27 +9,28 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0134 import RepositoryRuleUpdatePropParameters +from .group_0126 import RepositoryRulesetConditionsPropRefName +from .group_0128 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, +) -class RepositoryRuleUpdate(GitHubModel): - """update +class OrgRulesetConditionsOneof0(GitHubModel): + """repository_name_and_ref_name - Only allow users with bypass permission to update matching refs. + Conditions to target repositories by name and refs by name """ - type: Literal["update"] = Field() - parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() -model_rebuild(RepositoryRuleUpdate) +model_rebuild(OrgRulesetConditionsOneof0) -__all__ = ("RepositoryRuleUpdate",) +__all__ = ("OrgRulesetConditionsOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0134.py b/githubkit/versions/ghec_v2022_11_28/models/group_0134.py index 24be869ac..afa81c8c0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0134.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0134.py @@ -11,17 +11,26 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0126 import RepositoryRulesetConditionsPropRefName +from .group_0130 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId -class RepositoryRuleUpdatePropParameters(GitHubModel): - """RepositoryRuleUpdatePropParameters""" - update_allows_fetch_and_merge: bool = Field( - description="Branch can pull changes from its upstream repository" +class OrgRulesetConditionsOneof1(GitHubModel): + """repository_id_and_ref_name + + Conditions to target repositories by id and refs by name + """ + + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( + Field() ) -model_rebuild(RepositoryRuleUpdatePropParameters) +model_rebuild(OrgRulesetConditionsOneof1) -__all__ = ("RepositoryRuleUpdatePropParameters",) +__all__ = ("OrgRulesetConditionsOneof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0135.py b/githubkit/versions/ghec_v2022_11_28/models/group_0135.py index 2a7438d93..5ebfc82d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0135.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0135.py @@ -9,53 +9,28 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0126 import RepositoryRulesetConditionsPropRefName +from .group_0132 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, +) -class RepositoryRuleRequiredLinearHistory(GitHubModel): - """required_linear_history - - Prevent merge commits from being pushed to matching refs. - """ - - type: Literal["required_linear_history"] = Field() - - -class RepositoryRuleOneof15(GitHubModel): - """max_file_path_length - Note: max_file_path_length is in beta and subject to change. +class OrgRulesetConditionsOneof2(GitHubModel): + """repository_property_and_ref_name - Prevent commits that include file paths that exceed a specified character limit - from being pushed to the commit graph. + Conditions to target repositories by property and refs by name """ - type: Literal["max_file_path_length"] = Field() - parameters: Missing[RepositoryRuleOneof15PropParameters] = Field(default=UNSET) - - -class RepositoryRuleOneof15PropParameters(GitHubModel): - """RepositoryRuleOneof15PropParameters""" + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() - max_file_path_length: int = Field( - le=256.0, - ge=1.0, - description="The maximum amount of characters allowed in file paths", - ) +model_rebuild(OrgRulesetConditionsOneof2) -model_rebuild(RepositoryRuleRequiredLinearHistory) -model_rebuild(RepositoryRuleOneof15) -model_rebuild(RepositoryRuleOneof15PropParameters) - -__all__ = ( - "RepositoryRuleRequiredLinearHistory", - "RepositoryRuleOneof15", - "RepositoryRuleOneof15PropParameters", -) +__all__ = ("OrgRulesetConditionsOneof2",) 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 0dccf2dfd..9e33343bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0136.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0136.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field @@ -17,22 +17,101 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0137 import RepositoryRuleRequiredDeploymentsPropParameters +class RepositoryRuleCreation(GitHubModel): + """creation -class RepositoryRuleRequiredDeployments(GitHubModel): - """required_deployments + 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 - Choose which environments must be successfully deployed to before refs can be - pushed into a ref that matches this rule. + Commits pushed to matching refs must have verified signatures. """ - type: Literal["required_deployments"] = Field() - parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( - default=UNSET + type: Literal["required_signatures"] = Field() + + +class RepositoryRuleNonFastForward(GitHubModel): + """non_fast_forward + + Prevent users with push access from force pushing to refs. + """ + + type: Literal["non_fast_forward"] = Field() + + +class RepositoryRuleOneof14(GitHubModel): + """file_path_restriction + + Note: file_path_restriction is in beta and subject to change. + + Prevent commits that include changes in specified file paths from being pushed + to the commit graph. + """ + + type: Literal["file_path_restriction"] = Field() + parameters: Missing[RepositoryRuleOneof14PropParameters] = Field(default=UNSET) + + +class RepositoryRuleOneof14PropParameters(GitHubModel): + """RepositoryRuleOneof14PropParameters""" + + restricted_file_paths: List[str] = Field( + description="The file paths that are restricted from being pushed to the commit graph." + ) + + +class RepositoryRuleOneof16(GitHubModel): + """file_extension_restriction + + Note: file_extension_restriction is in beta and subject to change. + + Prevent commits that include files with specified file extensions from being + pushed to the commit graph. + """ + + type: Literal["file_extension_restriction"] = Field() + parameters: Missing[RepositoryRuleOneof16PropParameters] = Field(default=UNSET) + + +class RepositoryRuleOneof16PropParameters(GitHubModel): + """RepositoryRuleOneof16PropParameters""" + + restricted_file_extensions: List[str] = Field( + description="The file extensions that are restricted from being pushed to the commit graph." ) -model_rebuild(RepositoryRuleRequiredDeployments) +model_rebuild(RepositoryRuleCreation) +model_rebuild(RepositoryRuleDeletion) +model_rebuild(RepositoryRuleRequiredSignatures) +model_rebuild(RepositoryRuleNonFastForward) +model_rebuild(RepositoryRuleOneof14) +model_rebuild(RepositoryRuleOneof14PropParameters) +model_rebuild(RepositoryRuleOneof16) +model_rebuild(RepositoryRuleOneof16PropParameters) -__all__ = ("RepositoryRuleRequiredDeployments",) +__all__ = ( + "RepositoryRuleCreation", + "RepositoryRuleDeletion", + "RepositoryRuleRequiredSignatures", + "RepositoryRuleNonFastForward", + "RepositoryRuleOneof14", + "RepositoryRuleOneof14PropParameters", + "RepositoryRuleOneof16", + "RepositoryRuleOneof16PropParameters", +) 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 8f7b74ce6..9a640f3b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0137.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0137.py @@ -9,21 +9,27 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0138 import RepositoryRuleUpdatePropParameters -class RepositoryRuleRequiredDeploymentsPropParameters(GitHubModel): - """RepositoryRuleRequiredDeploymentsPropParameters""" - required_deployment_environments: List[str] = Field( - description="The environments that must be successfully deployed to before branches can be merged." - ) +class RepositoryRuleUpdate(GitHubModel): + """update + Only allow users with bypass permission to update matching refs. + """ -model_rebuild(RepositoryRuleRequiredDeploymentsPropParameters) + type: Literal["update"] = Field() + parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) -__all__ = ("RepositoryRuleRequiredDeploymentsPropParameters",) + +model_rebuild(RepositoryRuleUpdate) + +__all__ = ("RepositoryRuleUpdate",) 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 8cfddae0c..24be869ac 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,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0139 import RepositoryRulePullRequestPropParameters - - -class RepositoryRulePullRequest(GitHubModel): - """pull_request - Require all commits be made to a non-target branch and submitted via a pull - request before they can be merged. - """ +class RepositoryRuleUpdatePropParameters(GitHubModel): + """RepositoryRuleUpdatePropParameters""" - type: Literal["pull_request"] = Field() - parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) + update_allows_fetch_and_merge: bool = Field( + description="Branch can pull changes from its upstream repository" + ) -model_rebuild(RepositoryRulePullRequest) +model_rebuild(RepositoryRuleUpdatePropParameters) -__all__ = ("RepositoryRulePullRequest",) +__all__ = ("RepositoryRuleUpdatePropParameters",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0139.py b/githubkit/versions/ghec_v2022_11_28/models/group_0139.py index d08a2932e..2a7438d93 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0139.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0139.py @@ -9,32 +9,53 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRulePullRequestPropParameters(GitHubModel): - """RepositoryRulePullRequestPropParameters""" +class RepositoryRuleRequiredLinearHistory(GitHubModel): + """required_linear_history - dismiss_stale_reviews_on_push: bool = Field( - description="New, reviewable commits pushed will dismiss previous pull request review approvals." - ) - require_code_owner_review: bool = Field( - description="Require an approving review in pull requests that modify files that have a designated code owner." - ) - require_last_push_approval: bool = Field( - description="Whether the most recent reviewable push must be approved by someone other than the person who pushed it." - ) - required_approving_review_count: int = Field( - le=10.0, - description="The number of approving reviews that are required before a pull request can be merged.", - ) - required_review_thread_resolution: bool = Field( - description="All conversations on code must be resolved before a pull request can be merged." + Prevent merge commits from being pushed to matching refs. + """ + + type: Literal["required_linear_history"] = Field() + + +class RepositoryRuleOneof15(GitHubModel): + """max_file_path_length + + Note: max_file_path_length is in beta and subject to change. + + Prevent commits that include file paths that exceed a specified character limit + from being pushed to the commit graph. + """ + + type: Literal["max_file_path_length"] = Field() + parameters: Missing[RepositoryRuleOneof15PropParameters] = Field(default=UNSET) + + +class RepositoryRuleOneof15PropParameters(GitHubModel): + """RepositoryRuleOneof15PropParameters""" + + max_file_path_length: int = Field( + le=256.0, + ge=1.0, + description="The maximum amount of characters allowed in file paths", ) -model_rebuild(RepositoryRulePullRequestPropParameters) +model_rebuild(RepositoryRuleRequiredLinearHistory) +model_rebuild(RepositoryRuleOneof15) +model_rebuild(RepositoryRuleOneof15PropParameters) -__all__ = ("RepositoryRulePullRequestPropParameters",) +__all__ = ( + "RepositoryRuleRequiredLinearHistory", + "RepositoryRuleOneof15", + "RepositoryRuleOneof15PropParameters", +) 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 1413d9822..406653f40 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0140.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0140.py @@ -17,22 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0141 import RepositoryRuleRequiredStatusChecksPropParameters +from .group_0141 import RepositoryRuleRequiredDeploymentsPropParameters -class RepositoryRuleRequiredStatusChecks(GitHubModel): - """required_status_checks +class RepositoryRuleRequiredDeployments(GitHubModel): + """required_deployments - Choose which status checks must pass before the ref is updated. When enabled, - commits must first be pushed to another ref where the checks pass. + Choose which environments must be successfully deployed to before refs can be + pushed into a ref that matches this rule. """ - type: Literal["required_status_checks"] = Field() - parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( + type: Literal["required_deployments"] = Field() + parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleRequiredStatusChecks) +model_rebuild(RepositoryRuleRequiredDeployments) -__all__ = ("RepositoryRuleRequiredStatusChecks",) +__all__ = ("RepositoryRuleRequiredDeployments",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0141.py b/githubkit/versions/ghec_v2022_11_28/models/group_0141.py index a0cca3785..8f7b74ce6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0141.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0141.py @@ -13,41 +13,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleRequiredStatusChecksPropParameters(GitHubModel): - """RepositoryRuleRequiredStatusChecksPropParameters""" +class RepositoryRuleRequiredDeploymentsPropParameters(GitHubModel): + """RepositoryRuleRequiredDeploymentsPropParameters""" - required_status_checks: List[RepositoryRuleParamsStatusCheckConfiguration] = Field( - description="Status checks that are required." - ) - strict_required_status_checks_policy: bool = Field( - description="Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled." - ) - - -class RepositoryRuleParamsStatusCheckConfiguration(GitHubModel): - """StatusCheckConfiguration - - Required status check - """ - - context: str = Field( - description="The status check context name that must be present on the commit." - ) - integration_id: Missing[int] = Field( - default=UNSET, - description="The optional integration ID that this status check must originate from.", + required_deployment_environments: List[str] = Field( + description="The environments that must be successfully deployed to before branches can be merged." ) -model_rebuild(RepositoryRuleRequiredStatusChecksPropParameters) -model_rebuild(RepositoryRuleParamsStatusCheckConfiguration) +model_rebuild(RepositoryRuleRequiredDeploymentsPropParameters) -__all__ = ( - "RepositoryRuleRequiredStatusChecksPropParameters", - "RepositoryRuleParamsStatusCheckConfiguration", -) +__all__ = ("RepositoryRuleRequiredDeploymentsPropParameters",) 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 e1198d632..e7ef26cc7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0142.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0142.py @@ -17,21 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0143 import RepositoryRuleCommitMessagePatternPropParameters +from .group_0143 import RepositoryRulePullRequestPropParameters -class RepositoryRuleCommitMessagePattern(GitHubModel): - """commit_message_pattern +class RepositoryRulePullRequest(GitHubModel): + """pull_request - Parameters to be used for the commit_message_pattern rule + Require all commits be made to a non-target branch and submitted via a pull + request before they can be merged. """ - type: Literal["commit_message_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( - default=UNSET - ) + type: Literal["pull_request"] = Field() + parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) -model_rebuild(RepositoryRuleCommitMessagePattern) +model_rebuild(RepositoryRulePullRequest) -__all__ = ("RepositoryRuleCommitMessagePattern",) +__all__ = ("RepositoryRulePullRequest",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0143.py b/githubkit/versions/ghec_v2022_11_28/models/group_0143.py index e05238ec3..d08a2932e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0143.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0143.py @@ -9,30 +9,32 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleCommitMessagePatternPropParameters(GitHubModel): - """RepositoryRuleCommitMessagePatternPropParameters""" +class RepositoryRulePullRequestPropParameters(GitHubModel): + """RepositoryRulePullRequestPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." + 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." ) - negate: Missing[bool] = Field( - default=UNSET, description="If true, the rule will fail if the pattern matches." + 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.", ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." + required_review_thread_resolution: bool = Field( + description="All conversations on code must be resolved before a pull request can be merged." ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleCommitMessagePatternPropParameters) +model_rebuild(RepositoryRulePullRequestPropParameters) -__all__ = ("RepositoryRuleCommitMessagePatternPropParameters",) +__all__ = ("RepositoryRulePullRequestPropParameters",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0144.py b/githubkit/versions/ghec_v2022_11_28/models/group_0144.py index cef19f0f3..5dc5083eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0144.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0144.py @@ -17,21 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0145 import RepositoryRuleCommitAuthorEmailPatternPropParameters +from .group_0145 import RepositoryRuleRequiredStatusChecksPropParameters -class RepositoryRuleCommitAuthorEmailPattern(GitHubModel): - """commit_author_email_pattern +class RepositoryRuleRequiredStatusChecks(GitHubModel): + """required_status_checks - Parameters to be used for the commit_author_email_pattern rule + Choose which status checks must pass before the ref is updated. When enabled, + commits must first be pushed to another ref where the checks pass. """ - type: Literal["commit_author_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( + type: Literal["required_status_checks"] = Field() + parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleCommitAuthorEmailPattern) +model_rebuild(RepositoryRuleRequiredStatusChecks) -__all__ = ("RepositoryRuleCommitAuthorEmailPattern",) +__all__ = ("RepositoryRuleRequiredStatusChecks",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0145.py b/githubkit/versions/ghec_v2022_11_28/models/group_0145.py index a92c84f61..a0cca3785 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0145.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0145.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -18,21 +18,36 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleCommitAuthorEmailPatternPropParameters(GitHubModel): - """RepositoryRuleCommitAuthorEmailPatternPropParameters""" +class RepositoryRuleRequiredStatusChecksPropParameters(GitHubModel): + """RepositoryRuleRequiredStatusChecksPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." + 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." ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." + + +class RepositoryRuleParamsStatusCheckConfiguration(GitHubModel): + """StatusCheckConfiguration + + Required status check + """ + + context: str = Field( + description="The status check context name that must be present on the commit." + ) + integration_id: Missing[int] = Field( + default=UNSET, + description="The optional integration ID that this status check must originate from.", ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleCommitAuthorEmailPatternPropParameters) +model_rebuild(RepositoryRuleRequiredStatusChecksPropParameters) +model_rebuild(RepositoryRuleParamsStatusCheckConfiguration) -__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParameters",) +__all__ = ( + "RepositoryRuleRequiredStatusChecksPropParameters", + "RepositoryRuleParamsStatusCheckConfiguration", +) 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 d57bc5d13..743608686 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0146.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0146.py @@ -17,21 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0147 import RepositoryRuleCommitterEmailPatternPropParameters +from .group_0147 import RepositoryRuleCommitMessagePatternPropParameters -class RepositoryRuleCommitterEmailPattern(GitHubModel): - """committer_email_pattern +class RepositoryRuleCommitMessagePattern(GitHubModel): + """commit_message_pattern - Parameters to be used for the committer_email_pattern rule + Parameters to be used for the commit_message_pattern rule """ - type: Literal["committer_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( + type: Literal["commit_message_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleCommitterEmailPattern) +model_rebuild(RepositoryRuleCommitMessagePattern) -__all__ = ("RepositoryRuleCommitterEmailPattern",) +__all__ = ("RepositoryRuleCommitMessagePattern",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0147.py b/githubkit/versions/ghec_v2022_11_28/models/group_0147.py index 1741604e2..e05238ec3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0147.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0147.py @@ -18,8 +18,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleCommitterEmailPatternPropParameters(GitHubModel): - """RepositoryRuleCommitterEmailPatternPropParameters""" +class RepositoryRuleCommitMessagePatternPropParameters(GitHubModel): + """RepositoryRuleCommitMessagePatternPropParameters""" name: Missing[str] = Field( default=UNSET, description="How this rule will appear to users." @@ -33,6 +33,6 @@ class RepositoryRuleCommitterEmailPatternPropParameters(GitHubModel): pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleCommitterEmailPatternPropParameters) +model_rebuild(RepositoryRuleCommitMessagePatternPropParameters) -__all__ = ("RepositoryRuleCommitterEmailPatternPropParameters",) +__all__ = ("RepositoryRuleCommitMessagePatternPropParameters",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0148.py b/githubkit/versions/ghec_v2022_11_28/models/group_0148.py index a9ec5121b..e4fb84c32 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0148.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0148.py @@ -17,21 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0149 import RepositoryRuleBranchNamePatternPropParameters +from .group_0149 import RepositoryRuleCommitAuthorEmailPatternPropParameters -class RepositoryRuleBranchNamePattern(GitHubModel): - """branch_name_pattern +class RepositoryRuleCommitAuthorEmailPattern(GitHubModel): + """commit_author_email_pattern - Parameters to be used for the branch_name_pattern rule + Parameters to be used for the commit_author_email_pattern rule """ - type: Literal["branch_name_pattern"] = Field() - parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( + type: Literal["commit_author_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleBranchNamePattern) +model_rebuild(RepositoryRuleCommitAuthorEmailPattern) -__all__ = ("RepositoryRuleBranchNamePattern",) +__all__ = ("RepositoryRuleCommitAuthorEmailPattern",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0149.py b/githubkit/versions/ghec_v2022_11_28/models/group_0149.py index 682aa611e..a92c84f61 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0149.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0149.py @@ -18,8 +18,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleBranchNamePatternPropParameters(GitHubModel): - """RepositoryRuleBranchNamePatternPropParameters""" +class RepositoryRuleCommitAuthorEmailPatternPropParameters(GitHubModel): + """RepositoryRuleCommitAuthorEmailPatternPropParameters""" name: Missing[str] = Field( default=UNSET, description="How this rule will appear to users." @@ -33,6 +33,6 @@ class RepositoryRuleBranchNamePatternPropParameters(GitHubModel): pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleBranchNamePatternPropParameters) +model_rebuild(RepositoryRuleCommitAuthorEmailPatternPropParameters) -__all__ = ("RepositoryRuleBranchNamePatternPropParameters",) +__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParameters",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0150.py b/githubkit/versions/ghec_v2022_11_28/models/group_0150.py index e258010da..201069915 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0150.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0150.py @@ -17,21 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0151 import RepositoryRuleTagNamePatternPropParameters +from .group_0151 import RepositoryRuleCommitterEmailPatternPropParameters -class RepositoryRuleTagNamePattern(GitHubModel): - """tag_name_pattern +class RepositoryRuleCommitterEmailPattern(GitHubModel): + """committer_email_pattern - Parameters to be used for the tag_name_pattern rule + Parameters to be used for the committer_email_pattern rule """ - type: Literal["tag_name_pattern"] = Field() - parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( + type: Literal["committer_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( default=UNSET ) -model_rebuild(RepositoryRuleTagNamePattern) +model_rebuild(RepositoryRuleCommitterEmailPattern) -__all__ = ("RepositoryRuleTagNamePattern",) +__all__ = ("RepositoryRuleCommitterEmailPattern",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0151.py b/githubkit/versions/ghec_v2022_11_28/models/group_0151.py index 6b7565aaa..1741604e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0151.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0151.py @@ -18,8 +18,8 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleTagNamePatternPropParameters(GitHubModel): - """RepositoryRuleTagNamePatternPropParameters""" +class RepositoryRuleCommitterEmailPatternPropParameters(GitHubModel): + """RepositoryRuleCommitterEmailPatternPropParameters""" name: Missing[str] = Field( default=UNSET, description="How this rule will appear to users." @@ -33,6 +33,6 @@ class RepositoryRuleTagNamePatternPropParameters(GitHubModel): pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleTagNamePatternPropParameters) +model_rebuild(RepositoryRuleCommitterEmailPatternPropParameters) -__all__ = ("RepositoryRuleTagNamePatternPropParameters",) +__all__ = ("RepositoryRuleCommitterEmailPatternPropParameters",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0152.py b/githubkit/versions/ghec_v2022_11_28/models/group_0152.py index 396fce809..857c2596c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0152.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0152.py @@ -9,23 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0153 import RepositoryRuleBranchNamePatternPropParameters + -class RepositoryRuleParamsRestrictedCommits(GitHubModel): - """RestrictedCommits +class RepositoryRuleBranchNamePattern(GitHubModel): + """branch_name_pattern - Restricted commit + Parameters to be used for the branch_name_pattern rule """ - oid: str = Field(description="Full or abbreviated commit hash to reject") - reason: Missing[str] = Field(default=UNSET, description="Reason for restriction") + type: Literal["branch_name_pattern"] = Field() + parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( + default=UNSET + ) -model_rebuild(RepositoryRuleParamsRestrictedCommits) +model_rebuild(RepositoryRuleBranchNamePattern) -__all__ = ("RepositoryRuleParamsRestrictedCommits",) +__all__ = ("RepositoryRuleBranchNamePattern",) 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 45b030e53..682aa611e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0153.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0153.py @@ -17,20 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0154 import RepositoryRuleWorkflowsPropParameters +class RepositoryRuleBranchNamePatternPropParameters(GitHubModel): + """RepositoryRuleBranchNamePatternPropParameters""" -class RepositoryRuleWorkflows(GitHubModel): - """workflows + 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.") - Require all changes made to a targeted branch to pass the specified workflows - before they can be merged. - """ - type: Literal["workflows"] = Field() - parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) +model_rebuild(RepositoryRuleBranchNamePatternPropParameters) - -model_rebuild(RepositoryRuleWorkflows) - -__all__ = ("RepositoryRuleWorkflows",) +__all__ = ("RepositoryRuleBranchNamePatternPropParameters",) 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 dab0871f3..9c0361e53 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0154.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0154.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -17,37 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0155 import RepositoryRuleTagNamePatternPropParameters -class RepositoryRuleWorkflowsPropParameters(GitHubModel): - """RepositoryRuleWorkflowsPropParameters""" - workflows: List[RepositoryRuleParamsWorkflowFileReference] = Field( - description="Workflows that must pass for this rule to pass." - ) - - -class RepositoryRuleParamsWorkflowFileReference(GitHubModel): - """WorkflowFileReference +class RepositoryRuleTagNamePattern(GitHubModel): + """tag_name_pattern - A workflow that must run for this rule to pass + Parameters to be used for the tag_name_pattern rule """ - 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" + type: Literal["tag_name_pattern"] = Field() + parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( + default=UNSET ) -model_rebuild(RepositoryRuleWorkflowsPropParameters) -model_rebuild(RepositoryRuleParamsWorkflowFileReference) +model_rebuild(RepositoryRuleTagNamePattern) -__all__ = ( - "RepositoryRuleWorkflowsPropParameters", - "RepositoryRuleParamsWorkflowFileReference", -) +__all__ = ("RepositoryRuleTagNamePattern",) 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 556924e9e..6b7565aaa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0155.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0155.py @@ -17,21 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0156 import RepositoryRuleCodeScanningPropParameters +class RepositoryRuleTagNamePatternPropParameters(GitHubModel): + """RepositoryRuleTagNamePatternPropParameters""" -class RepositoryRuleCodeScanning(GitHubModel): - """code_scanning + 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.") - 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) +model_rebuild(RepositoryRuleTagNamePatternPropParameters) - -model_rebuild(RepositoryRuleCodeScanning) - -__all__ = ("RepositoryRuleCodeScanning",) +__all__ = ("RepositoryRuleTagNamePatternPropParameters",) 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 d669830d6..396fce809 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0156.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0156.py @@ -9,42 +9,23 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleCodeScanningPropParameters(GitHubModel): - """RepositoryRuleCodeScanningPropParameters""" - - code_scanning_tools: List[RepositoryRuleParamsCodeScanningTool] = Field( - description="Tools that must provide code scanning results for this rule to pass." - ) - - -class RepositoryRuleParamsCodeScanningTool(GitHubModel): - """CodeScanningTool +class RepositoryRuleParamsRestrictedCommits(GitHubModel): + """RestrictedCommits - A tool that must provide code scanning results for this rule to pass. + Restricted commit """ - alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] = Field( - description='The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/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") + oid: str = Field(description="Full or abbreviated commit hash to reject") + reason: Missing[str] = Field(default=UNSET, description="Reason for restriction") -model_rebuild(RepositoryRuleCodeScanningPropParameters) -model_rebuild(RepositoryRuleParamsCodeScanningTool) +model_rebuild(RepositoryRuleParamsRestrictedCommits) -__all__ = ( - "RepositoryRuleCodeScanningPropParameters", - "RepositoryRuleParamsCodeScanningTool", -) +__all__ = ("RepositoryRuleParamsRestrictedCommits",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0157.py b/githubkit/versions/ghec_v2022_11_28/models/group_0157.py index 2b26e71c6..467b92549 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0157.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0157.py @@ -17,34 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0158 import RepositoryRuleWorkflowsPropParameters -class RepositoryRuleOneof17(GitHubModel): - """max_file_size - Note: max_file_size is in beta and subject to change. +class RepositoryRuleWorkflows(GitHubModel): + """workflows - Prevent commits that exceed a specified file size limit from being pushed to the - commit. + Require all changes made to a targeted branch to pass the specified workflows + before they can be merged. """ - type: Literal["max_file_size"] = Field() - parameters: Missing[RepositoryRuleOneof17PropParameters] = Field(default=UNSET) + type: Literal["workflows"] = Field() + parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) -class RepositoryRuleOneof17PropParameters(GitHubModel): - """RepositoryRuleOneof17PropParameters""" +model_rebuild(RepositoryRuleWorkflows) - 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(RepositoryRuleOneof17) -model_rebuild(RepositoryRuleOneof17PropParameters) - -__all__ = ( - "RepositoryRuleOneof17", - "RepositoryRuleOneof17PropParameters", -) +__all__ = ("RepositoryRuleWorkflows",) 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 a87a264b3..dab0871f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0158.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0158.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from pydantic import Field @@ -18,133 +17,37 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0133 import RepositoryRuleUpdate -from .group_0157 import RepositoryRuleOneof17 -from .group_0153 import RepositoryRuleWorkflows -from .group_0138 import RepositoryRulePullRequest -from .group_0129 import OrgRulesetConditionsOneof0 -from .group_0130 import OrgRulesetConditionsOneof1 -from .group_0131 import OrgRulesetConditionsOneof2 -from .group_0155 import RepositoryRuleCodeScanning -from .group_0121 import RepositoryRulesetConditions -from .group_0120 import RepositoryRulesetBypassActor -from .group_0150 import RepositoryRuleTagNamePattern -from .group_0148 import RepositoryRuleBranchNamePattern -from .group_0136 import RepositoryRuleRequiredDeployments -from .group_0140 import RepositoryRuleRequiredStatusChecks -from .group_0142 import RepositoryRuleCommitMessagePattern -from .group_0146 import RepositoryRuleCommitterEmailPattern -from .group_0144 import RepositoryRuleCommitAuthorEmailPattern -from .group_0135 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory -from .group_0132 import ( - RepositoryRuleOneof14, - RepositoryRuleOneof16, - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) + +class RepositoryRuleWorkflowsPropParameters(GitHubModel): + """RepositoryRuleWorkflowsPropParameters""" + + workflows: List[RepositoryRuleParamsWorkflowFileReference] = Field( + description="Workflows that must pass for this rule to pass." + ) -class RepositoryRuleset(GitHubModel): - """Repository ruleset +class RepositoryRuleParamsWorkflowFileReference(GitHubModel): + """WorkflowFileReference - A set of rules to apply when specified conditions are met. + A workflow that must run for this rule to pass """ - id: int = Field(description="The ID of the ruleset") - name: str = Field(description="The name of the ruleset") - target: Missing[Literal["branch", "tag", "push"]] = Field( - default=UNSET, - description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", - ) - source_type: Missing[Literal["Repository", "Organization"]] = 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." - ) - bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", + 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" ) - 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.", + repository_id: int = Field( + description="The ID of the repository where the workflow is defined" ) - 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, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - 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" + sha: Missing[str] = Field( + default=UNSET, description="The commit SHA of the workflow file to use" ) - html: Missing[RepositoryRulesetPropLinksPropHtml] = 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) +model_rebuild(RepositoryRuleWorkflowsPropParameters) +model_rebuild(RepositoryRuleParamsWorkflowFileReference) __all__ = ( - "RepositoryRuleset", - "RepositoryRulesetPropLinks", - "RepositoryRulesetPropLinksPropSelf", - "RepositoryRulesetPropLinksPropHtml", + "RepositoryRuleWorkflowsPropParameters", + "RepositoryRuleParamsWorkflowFileReference", ) 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 19d31c199..000c3b053 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0159.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0159.py @@ -10,7 +10,6 @@ from __future__ import annotations from typing import Literal -from datetime import datetime from pydantic import Field @@ -18,47 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0160 import RepositoryRuleCodeScanningPropParameters -class RuleSuitesItems(GitHubModel): - """RuleSuitesItems""" - 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"]] = 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`.", - ) +class RepositoryRuleCodeScanning(GitHubModel): + """code_scanning + Choose which tools must provide code scanning results before the reference is + updated. When configured, code scanning must be enabled and have results for + both the commit and the reference being updated. + """ -model_rebuild(RuleSuitesItems) + type: Literal["code_scanning"] = Field() + parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) -__all__ = ("RuleSuitesItems",) + +model_rebuild(RepositoryRuleCodeScanning) + +__all__ = ("RepositoryRuleCodeScanning",) 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 1986e3106..d669830d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0160.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0160.py @@ -9,99 +9,42 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class RuleSuite(GitHubModel): - """Rule Suite +class RepositoryRuleCodeScanningPropParameters(GitHubModel): + """RepositoryRuleCodeScanningPropParameters""" - Response - """ - - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the rule insight." - ) - actor_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The number that identifies the user." - ) - actor_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The handle for the GitHub user account." - ) - before_sha: Missing[str] = Field( - default=UNSET, description="The first commit sha before the push evaluation." - ) - after_sha: Missing[str] = Field( - default=UNSET, description="The last commit sha in the push evaluation." - ) - ref: Missing[str] = Field( - default=UNSET, description="The ref name that the evaluation ran on." - ) - repository_id: Missing[int] = Field( - default=UNSET, - description="The ID of the repository associated with the rule evaluation.", - ) - repository_name: Missing[str] = Field( - default=UNSET, - description="The name of the repository without the `.git` extension.", - ) - pushed_at: Missing[datetime] = Field(default=UNSET) - result: Missing[Literal["pass", "fail", "bypass"]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` enforcement status.", - ) - evaluation_result: Missing[Literal["pass", "fail"]] = 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`.", - ) - rule_evaluations: Missing[List[RuleSuitePropRuleEvaluationsItems]] = Field( - default=UNSET, description="Details on the evaluated rules." + code_scanning_tools: List[RepositoryRuleParamsCodeScanningTool] = Field( + description="Tools that must provide code scanning results for this rule to pass." ) -class RuleSuitePropRuleEvaluationsItems(GitHubModel): - """RuleSuitePropRuleEvaluationsItems""" +class RepositoryRuleParamsCodeScanningTool(GitHubModel): + """CodeScanningTool - 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[str] = Field( - default=UNSET, description="Any associated details with the rule evaluation." - ) - - -class RuleSuitePropRuleEvaluationsItemsPropRuleSource(GitHubModel): - """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" + A tool that must provide code scanning results for this rule to pass. + """ - 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." + 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)."' ) - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the rule source." + 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(RuleSuite) -model_rebuild(RuleSuitePropRuleEvaluationsItems) -model_rebuild(RuleSuitePropRuleEvaluationsItemsPropRuleSource) +model_rebuild(RepositoryRuleCodeScanningPropParameters) +model_rebuild(RepositoryRuleParamsCodeScanningTool) __all__ = ( - "RuleSuite", - "RuleSuitePropRuleEvaluationsItems", - "RuleSuitePropRuleEvaluationsItemsPropRuleSource", + "RepositoryRuleCodeScanningPropParameters", + "RepositoryRuleParamsCodeScanningTool", ) 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 68d3ec209..2b26e71c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0161.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0161.py @@ -13,35 +13,38 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class RepositoryRuleOneof17(GitHubModel): + """max_file_size -class RepositoryAdvisoryCredit(GitHubModel): - """RepositoryAdvisoryCredit + Note: max_file_size is in beta and subject to change. - A credit given to a user for a repository security advisory. + Prevent commits that exceed a specified file size limit from being pushed to the + commit. """ - 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." + type: Literal["max_file_size"] = Field() + parameters: Missing[RepositoryRuleOneof17PropParameters] = Field(default=UNSET) + + +class RepositoryRuleOneof17PropParameters(GitHubModel): + """RepositoryRuleOneof17PropParameters""" + + 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(RepositoryAdvisoryCredit) +model_rebuild(RepositoryRuleOneof17) +model_rebuild(RepositoryRuleOneof17PropParameters) -__all__ = ("RepositoryAdvisoryCredit",) +__all__ = ( + "RepositoryRuleOneof17", + "RepositoryRuleOneof17PropParameters", +) 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 5a8e6d87c..e7ea7f604 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0162.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0162.py @@ -11,7 +11,6 @@ from datetime import datetime from typing import List, Union, Literal -from typing_extensions import Annotated from pydantic import Field @@ -19,189 +18,133 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0093 import Team -from .group_0001 import SimpleUser -from .group_0161 import RepositoryAdvisoryCredit +from .group_0137 import RepositoryRuleUpdate +from .group_0161 import RepositoryRuleOneof17 +from .group_0157 import RepositoryRuleWorkflows +from .group_0142 import RepositoryRulePullRequest +from .group_0133 import OrgRulesetConditionsOneof0 +from .group_0134 import OrgRulesetConditionsOneof1 +from .group_0135 import OrgRulesetConditionsOneof2 +from .group_0159 import RepositoryRuleCodeScanning +from .group_0125 import RepositoryRulesetConditions +from .group_0124 import RepositoryRulesetBypassActor +from .group_0154 import RepositoryRuleTagNamePattern +from .group_0152 import RepositoryRuleBranchNamePattern +from .group_0140 import RepositoryRuleRequiredDeployments +from .group_0144 import RepositoryRuleRequiredStatusChecks +from .group_0146 import RepositoryRuleCommitMessagePattern +from .group_0150 import RepositoryRuleCommitterEmailPattern +from .group_0148 import RepositoryRuleCommitAuthorEmailPattern +from .group_0139 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory +from .group_0136 import ( + RepositoryRuleOneof14, + RepositoryRuleOneof16, + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class RepositoryAdvisory(GitHubModel): - """RepositoryAdvisory +class RepositoryRuleset(GitHubModel): + """Repository ruleset - A repository security advisory. + A set of rules to apply when specified conditions are met. """ - 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() - 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.") + id: int = Field(description="The ID of the ruleset") + name: str = Field(description="The name of the ruleset") + target: Missing[Literal["branch", "tag", "push"]] = Field( + default=UNSET, + description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", + ) + source_type: Missing[Literal["Repository", "Organization"]] = 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." + ) + 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, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) -class RepositoryAdvisoryPropCreditsItems(GitHubModel): - """RepositoryAdvisoryPropCreditsItems""" +class RepositoryRulesetPropLinks(GitHubModel): + """RepositoryRulesetPropLinks""" - login: Missing[str] = Field( - default=UNSET, description="The username of the user credited." + self_: Missing[RepositoryRulesetPropLinksPropSelf] = Field( + default=UNSET, alias="self" ) - 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.") - + html: Missing[RepositoryRulesetPropLinksPropHtml] = Field(default=UNSET) -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 RepositoryRulesetPropLinksPropSelf(GitHubModel): + """RepositoryRulesetPropLinksPropSelf""" + href: Missing[str] = Field(default=UNSET, description="The URL of the ruleset") -class RepositoryAdvisoryVulnerabilityPropPackage(GitHubModel): - """RepositoryAdvisoryVulnerabilityPropPackage - The name of the package affected by the vulnerability. - """ +class RepositoryRulesetPropLinksPropHtml(GitHubModel): + """RepositoryRulesetPropLinksPropHtml""" - 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." - ) + href: Missing[str] = Field(default=UNSET, description="The html URL of the ruleset") -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(RepositoryRuleset) +model_rebuild(RepositoryRulesetPropLinks) +model_rebuild(RepositoryRulesetPropLinksPropSelf) +model_rebuild(RepositoryRulesetPropLinksPropHtml) __all__ = ( - "RepositoryAdvisory", - "RepositoryAdvisoryPropIdentifiersItems", - "RepositoryAdvisoryPropSubmission", - "RepositoryAdvisoryPropCvss", - "RepositoryAdvisoryPropCwesItems", - "RepositoryAdvisoryPropCreditsItems", - "RepositoryAdvisoryVulnerability", - "RepositoryAdvisoryVulnerabilityPropPackage", + "RepositoryRuleset", + "RepositoryRulesetPropLinks", + "RepositoryRulesetPropLinksPropSelf", + "RepositoryRulesetPropLinksPropHtml", ) 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 68621a3ed..19d31c199 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0163.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0163.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal +from datetime import datetime from pydantic import Field @@ -18,35 +19,46 @@ from githubkit.compat import GitHubModel, model_rebuild -class GroupMapping(GitHubModel): - """GroupMapping +class RuleSuitesItems(GitHubModel): + """RuleSuitesItems""" - External Groups to be mapped to a team for membership - """ - - groups: Missing[List[GroupMappingPropGroupsItems]] = Field( - default=UNSET, description="Array of groups to be mapped to this team" + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the rule insight." ) - - -class GroupMappingPropGroupsItems(GitHubModel): - """GroupMappingPropGroupsItems""" - - group_id: str = Field(description="The ID of the group") - group_name: str = Field(description="The name of the group") - group_description: str = Field(description="a description of the group") - status: Missing[str] = Field( - default=UNSET, description="synchronization status for this group mapping" + actor_id: Missing[int] = Field( + default=UNSET, description="The number that identifies the user." + ) + actor_name: Missing[str] = Field( + default=UNSET, description="The handle for the GitHub user account." + ) + before_sha: Missing[str] = Field( + default=UNSET, description="The first commit sha before the push evaluation." + ) + after_sha: Missing[str] = Field( + default=UNSET, description="The last commit sha in the push evaluation." + ) + ref: Missing[str] = Field( + default=UNSET, description="The ref name that the evaluation ran on." + ) + repository_id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository associated with the rule evaluation.", + ) + repository_name: Missing[str] = Field( + default=UNSET, + description="The name of the repository without the `.git` extension.", + ) + pushed_at: Missing[datetime] = Field(default=UNSET) + result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` enforcement status.", ) - synced_at: Missing[Union[str, None]] = Field( - default=UNSET, description="the time of the last sync for this group-mapping" + evaluation_result: Missing[Literal["pass", "fail"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`.", ) -model_rebuild(GroupMapping) -model_rebuild(GroupMappingPropGroupsItems) +model_rebuild(RuleSuitesItems) -__all__ = ( - "GroupMapping", - "GroupMappingPropGroupsItems", -) +__all__ = ("RuleSuitesItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0164.py b/githubkit/versions/ghec_v2022_11_28/models/group_0164.py index 778b5ea46..1986e3106 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0164.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0164.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,122 +18,90 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0092 import TeamSimple +class RuleSuite(GitHubModel): + """Rule Suite -class TeamFull(GitHubModel): - """Full Team - - Groups of organization members that gives permissions on specified repositories. + Response """ - id: int = Field(description="Unique identifier of the team") - node_id: str = Field() - url: str = Field(description="URL for the team") - html_url: str = Field() - name: str = Field(description="Name of the team") - slug: str = Field() - description: Union[str, None] = Field() - privacy: Missing[Literal["closed", "secret"]] = Field( - default=UNSET, description="The level of privacy this team should have" - ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field(default=UNSET, description="The notification setting the team has set") - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - members_url: str = Field() - repositories_url: str = Field() - parent: Missing[Union[None, TeamSimple]] = Field(default=UNSET) - members_count: int = Field() - repos_count: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - organization: TeamOrganization = Field( - title="Team Organization", description="Team Organization" - ) - ldap_dn: Missing[str] = Field( + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the rule insight." + ) + actor_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The number that identifies the user." + ) + actor_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The handle for the GitHub user account." + ) + before_sha: Missing[str] = Field( + default=UNSET, description="The first commit sha before the push evaluation." + ) + after_sha: Missing[str] = Field( + default=UNSET, description="The last commit sha in the push evaluation." + ) + ref: Missing[str] = Field( + default=UNSET, description="The ref name that the evaluation ran on." + ) + repository_id: Missing[int] = Field( default=UNSET, - description="Distinguished Name (DN) that team maps to within LDAP environment", + description="The ID of the repository associated with the rule evaluation.", + ) + repository_name: Missing[str] = Field( + default=UNSET, + description="The name of the repository without the `.git` extension.", + ) + pushed_at: Missing[datetime] = Field(default=UNSET) + result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` enforcement status.", + ) + evaluation_result: Missing[Literal["pass", "fail"]] = 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`.", + ) + rule_evaluations: Missing[List[RuleSuitePropRuleEvaluationsItems]] = Field( + default=UNSET, description="Details on the evaluated rules." ) -class TeamOrganization(GitHubModel): - """Team Organization - - Team Organization - """ +class RuleSuitePropRuleEvaluationsItems(GitHubModel): + """RuleSuitePropRuleEvaluationsItems""" - login: str = Field() - id: int = Field() - node_id: str = Field() - url: str = Field() - repos_url: str = Field() - events_url: str = Field() - hooks_url: str = Field() - issues_url: str = Field() - members_url: str = Field() - public_members_url: str = Field() - avatar_url: str = Field() - description: Union[str, None] = Field() - name: Missing[Union[str, None]] = Field(default=UNSET) - company: Missing[Union[str, None]] = Field(default=UNSET) - blog: Missing[Union[str, None]] = Field(default=UNSET) - location: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - is_verified: Missing[bool] = Field(default=UNSET) - has_organization_projects: bool = Field() - has_repository_projects: bool = Field() - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - html_url: str = Field() - created_at: datetime = Field() - type: str = Field() - total_private_repos: Missing[int] = Field(default=UNSET) - owned_private_repos: Missing[int] = Field(default=UNSET) - private_gists: Missing[Union[int, None]] = Field(default=UNSET) - disk_usage: Missing[Union[int, None]] = Field(default=UNSET) - collaborators: Missing[Union[int, None]] = Field(default=UNSET) - billing_email: Missing[Union[str, None]] = Field(default=UNSET) - plan: Missing[TeamOrganizationPropPlan] = Field(default=UNSET) - default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) - members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) - two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) - members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) - members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_pages: Missing[bool] = Field(default=UNSET) - members_can_create_public_pages: Missing[bool] = Field(default=UNSET) - members_can_create_private_pages: Missing[bool] = Field(default=UNSET) - members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( + rule_source: Missing[RuleSuitePropRuleEvaluationsItemsPropRuleSource] = Field( default=UNSET ) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() + enforcement: Missing[Literal["active", "evaluate", "deleted ruleset"]] = Field( + default=UNSET, description="The enforcement level of this rule source." + ) + result: Missing[Literal["pass", "fail"]] = Field( + default=UNSET, + description="The result of the evaluation of the individual rule.", + ) + rule_type: Missing[str] = Field(default=UNSET, description="The type of rule.") + details: Missing[str] = Field( + default=UNSET, description="Any associated details with the rule evaluation." + ) -class TeamOrganizationPropPlan(GitHubModel): - """TeamOrganizationPropPlan""" +class RuleSuitePropRuleEvaluationsItemsPropRuleSource(GitHubModel): + """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" - name: str = Field() - space: int = Field() - private_repos: int = Field() - filled_seats: Missing[int] = Field(default=UNSET) - seats: Missing[int] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET, description="The type of rule source.") + id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of the rule source." + ) + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the rule source." + ) -model_rebuild(TeamFull) -model_rebuild(TeamOrganization) -model_rebuild(TeamOrganizationPropPlan) +model_rebuild(RuleSuite) +model_rebuild(RuleSuitePropRuleEvaluationsItems) +model_rebuild(RuleSuitePropRuleEvaluationsItemsPropRuleSource) __all__ = ( - "TeamFull", - "TeamOrganization", - "TeamOrganizationPropPlan", + "RuleSuite", + "RuleSuitePropRuleEvaluationsItems", + "RuleSuitePropRuleEvaluationsItemsPropRuleSource", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0165.py b/githubkit/versions/ghec_v2022_11_28/models/group_0165.py index 0b019d16c..68d3ec209 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0165.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0165.py @@ -9,52 +9,39 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -from .group_0062 import ReactionRollup -class TeamDiscussion(GitHubModel): - """Team Discussion +class RepositoryAdvisoryCredit(GitHubModel): + """RepositoryAdvisoryCredit - A team discussion is a persistent record of a free-form conversation within a - team. + A credit given to a user for a repository security advisory. """ - author: Union[None, SimpleUser] = Field() - body: str = Field(description="The main text of the discussion.") - body_html: str = Field() - body_version: str = Field( - description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") + state: Literal["accepted", "declined", "pending"] = Field( + description="The state of the user's acceptance of the credit." ) - comments_count: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - last_edited_at: Union[datetime, None] = Field() - html_url: str = Field() - node_id: str = Field() - number: int = Field(description="The unique sequence number of a team discussion.") - pinned: bool = Field( - description="Whether or not this discussion should be pinned for easy retrieval." - ) - private: bool = Field( - description="Whether or not this discussion should be restricted to team members and organization owners." - ) - team_url: str = Field() - title: str = Field(description="The title of the discussion.") - updated_at: datetime = Field() - url: str = Field() - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TeamDiscussion) +model_rebuild(RepositoryAdvisoryCredit) -__all__ = ("TeamDiscussion",) +__all__ = ("RepositoryAdvisoryCredit",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0166.py b/githubkit/versions/ghec_v2022_11_28/models/group_0166.py index b9bab26e5..33addddc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0166.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0166.py @@ -9,8 +9,9 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import Annotated from pydantic import Field @@ -18,35 +19,189 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0048 import Team from .group_0001 import SimpleUser -from .group_0062 import ReactionRollup +from .group_0165 import RepositoryAdvisoryCredit -class TeamDiscussionComment(GitHubModel): - """Team Discussion Comment +class RepositoryAdvisory(GitHubModel): + """RepositoryAdvisory - A reply to a discussion within a team. + A repository security advisory. """ - author: Union[None, SimpleUser] = Field() - body: str = Field(description="The main text of the comment.") - body_html: str = Field() - body_version: str = Field( - description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." + ghsa_id: str = Field(description="The GitHub Security Advisory ID.") + cve_id: Union[str, None] = Field( + description="The Common Vulnerabilities and Exposures (CVE) ID." ) - created_at: datetime = Field() - last_edited_at: Union[datetime, None] = Field() - discussion_url: str = Field() - html_url: str = Field() - node_id: str = Field() - number: int = Field( - description="The unique sequence number of a team discussion comment." + url: str = Field(description="The API URL for the advisory.") + html_url: str = Field(description="The URL for the advisory.") + summary: str = Field( + max_length=1024, description="A short summary of the advisory." + ) + description: Union[Annotated[str, Field(max_length=65535)], None] = Field( + description="A detailed description of what the advisory entails." + ) + severity: Union[None, Literal["critical", "high", "medium", "low"]] = Field( + description="The severity of the advisory." + ) + author: None = Field(description="The author of the advisory.") + publisher: None = Field(description="The publisher of the advisory.") + identifiers: List[RepositoryAdvisoryPropIdentifiersItems] = Field() + state: Literal["published", "closed", "withdrawn", "draft", "triage"] = Field( + description="The state of the advisory." + ) + created_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was created, in ISO 8601 format." + ) + updated_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was last updated, in ISO 8601 format." + ) + published_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was published, in ISO 8601 format." + ) + closed_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was closed, in ISO 8601 format." + ) + withdrawn_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was withdrawn, in ISO 8601 format." + ) + submission: Union[RepositoryAdvisoryPropSubmission, None] = Field() + vulnerabilities: Union[List[RepositoryAdvisoryVulnerability], None] = Field() + cvss: Union[RepositoryAdvisoryPropCvss, None] = Field() + cwes: Union[List[RepositoryAdvisoryPropCwesItems], None] = Field() + cwe_ids: Union[List[str], None] = Field(description="A list of only the CWE IDs.") + credits_: Union[List[RepositoryAdvisoryPropCreditsItems], None] = Field( + alias="credits" + ) + credits_detailed: Union[List[RepositoryAdvisoryCredit], None] = Field() + collaborating_users: Union[List[SimpleUser], None] = Field( + description="A list of users that collaborate on the advisory." + ) + collaborating_teams: Union[List[Team], None] = Field( + description="A list of teams that collaborate on the advisory." + ) + private_fork: None = Field( + description="A temporary private fork of the advisory's repository for collaborating on a fix." + ) + + +class RepositoryAdvisoryPropIdentifiersItems(GitHubModel): + """RepositoryAdvisoryPropIdentifiersItems""" + + type: Literal["CVE", "GHSA"] = Field(description="The type of identifier.") + value: str = Field(description="The identifier value.") + + +class RepositoryAdvisoryPropSubmission(GitHubModel): + """RepositoryAdvisoryPropSubmission""" + + accepted: bool = Field( + description="Whether a private vulnerability report was accepted by the repository's administrators." + ) + + +class RepositoryAdvisoryPropCvss(GitHubModel): + """RepositoryAdvisoryPropCvss""" + + vector_string: Union[str, None] = Field(description="The CVSS vector.") + score: Union[Annotated[float, Field(le=10.0)], None] = Field( + description="The CVSS score." + ) + + +class RepositoryAdvisoryPropCwesItems(GitHubModel): + """RepositoryAdvisoryPropCwesItems""" + + cwe_id: str = Field(description="The Common Weakness Enumeration (CWE) identifier.") + name: str = Field(description="The name of the CWE.") + + +class RepositoryAdvisoryPropCreditsItems(GitHubModel): + """RepositoryAdvisoryPropCreditsItems""" + + login: Missing[str] = Field( + default=UNSET, description="The username of the user credited." + ) + type: Missing[ + Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + ] = Field(default=UNSET, description="The type of credit the user is receiving.") + + +class RepositoryAdvisoryVulnerability(GitHubModel): + """RepositoryAdvisoryVulnerability + + A product affected by the vulnerability detailed in a repository security + advisory. + """ + + package: Union[RepositoryAdvisoryVulnerabilityPropPackage, None] = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Union[str, None] = Field( + description="The range of the package versions affected by the vulnerability." + ) + patched_versions: Union[str, None] = Field( + description="The package version(s) that resolve the vulnerability." + ) + vulnerable_functions: Union[List[str], None] = Field( + description="The functions in the package that are affected." + ) + + +class RepositoryAdvisoryVulnerabilityPropPackage(GitHubModel): + """RepositoryAdvisoryVulnerabilityPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Union[str, None] = Field( + description="The unique package name within its ecosystem." ) - updated_at: datetime = Field() - url: str = Field() - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TeamDiscussionComment) +model_rebuild(RepositoryAdvisory) +model_rebuild(RepositoryAdvisoryPropIdentifiersItems) +model_rebuild(RepositoryAdvisoryPropSubmission) +model_rebuild(RepositoryAdvisoryPropCvss) +model_rebuild(RepositoryAdvisoryPropCwesItems) +model_rebuild(RepositoryAdvisoryPropCreditsItems) +model_rebuild(RepositoryAdvisoryVulnerability) +model_rebuild(RepositoryAdvisoryVulnerabilityPropPackage) -__all__ = ("TeamDiscussionComment",) +__all__ = ( + "RepositoryAdvisory", + "RepositoryAdvisoryPropIdentifiersItems", + "RepositoryAdvisoryPropSubmission", + "RepositoryAdvisoryPropCvss", + "RepositoryAdvisoryPropCwesItems", + "RepositoryAdvisoryPropCreditsItems", + "RepositoryAdvisoryVulnerability", + "RepositoryAdvisoryVulnerabilityPropPackage", +) 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 1b65a991f..68621a3ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0167.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0167.py @@ -9,32 +9,44 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class GroupMapping(GitHubModel): + """GroupMapping -class Reaction(GitHubModel): - """Reaction - - Reactions to conversations provide a way to help people express their feelings - more simply and effectively. + External Groups to be mapped to a team for membership """ - id: int = Field() - node_id: str = Field() - user: Union[None, SimpleUser] = Field() - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field(description="The reaction to use") - created_at: datetime = Field() + groups: Missing[List[GroupMappingPropGroupsItems]] = Field( + default=UNSET, description="Array of groups to be mapped to this team" + ) + + +class GroupMappingPropGroupsItems(GitHubModel): + """GroupMappingPropGroupsItems""" + + group_id: str = Field(description="The ID of the group") + group_name: str = Field(description="The name of the group") + group_description: str = Field(description="a description of the group") + status: Missing[str] = Field( + default=UNSET, description="synchronization status for this group mapping" + ) + synced_at: Missing[Union[str, None]] = Field( + default=UNSET, description="the time of the last sync for this group-mapping" + ) -model_rebuild(Reaction) +model_rebuild(GroupMapping) +model_rebuild(GroupMappingPropGroupsItems) -__all__ = ("Reaction",) +__all__ = ( + "GroupMapping", + "GroupMappingPropGroupsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0168.py b/githubkit/versions/ghec_v2022_11_28/models/group_0168.py index bf5d392cb..a6f93edec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0168.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0168.py @@ -9,28 +9,131 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0047 import TeamSimple -class TeamMembership(GitHubModel): - """Team Membership - Team Membership +class TeamFull(GitHubModel): + """Full Team + + Groups of organization members that gives permissions on specified repositories. """ - url: str = Field() - role: Literal["member", "maintainer"] = Field( - default="member", description="The role of the user in the team." + id: int = Field(description="Unique identifier of the team") + node_id: str = Field() + url: str = Field(description="URL for the team") + html_url: str = Field() + name: str = Field(description="Name of the team") + slug: str = Field() + description: Union[str, None] = Field() + privacy: Missing[Literal["closed", "secret"]] = Field( + default=UNSET, description="The level of privacy this team should have" + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field(default=UNSET, description="The notification setting the team has set") + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + members_url: str = Field() + repositories_url: str = Field() + parent: Missing[Union[None, TeamSimple]] = Field(default=UNSET) + members_count: int = Field() + repos_count: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + organization: TeamOrganization = Field( + title="Team Organization", description="Team Organization" ) - state: Literal["active", "pending"] = Field( - description="The state of the user's membership in the team." + ldap_dn: Missing[str] = Field( + default=UNSET, + description="Distinguished Name (DN) that team maps to within LDAP environment", + ) + + +class TeamOrganization(GitHubModel): + """Team Organization + + Team Organization + """ + + login: str = Field() + id: int = Field() + node_id: str = Field() + url: str = Field() + repos_url: str = Field() + events_url: str = Field() + hooks_url: str = Field() + issues_url: str = Field() + members_url: str = Field() + public_members_url: str = Field() + avatar_url: str = Field() + description: Union[str, None] = Field() + name: Missing[Union[str, None]] = Field(default=UNSET) + company: Missing[Union[str, None]] = Field(default=UNSET) + blog: Missing[Union[str, None]] = Field(default=UNSET) + location: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + is_verified: Missing[bool] = Field(default=UNSET) + has_organization_projects: bool = Field() + has_repository_projects: bool = Field() + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() + html_url: str = Field() + created_at: datetime = Field() + type: str = Field() + total_private_repos: Missing[int] = Field(default=UNSET) + owned_private_repos: Missing[int] = Field(default=UNSET) + private_gists: Missing[Union[int, None]] = Field(default=UNSET) + disk_usage: Missing[Union[int, None]] = Field(default=UNSET) + collaborators: Missing[Union[int, None]] = Field(default=UNSET) + billing_email: Missing[Union[str, None]] = Field(default=UNSET) + plan: Missing[TeamOrganizationPropPlan] = Field(default=UNSET) + default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) + members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) + two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) + members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) + members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_pages: Missing[bool] = Field(default=UNSET) + members_can_create_public_pages: Missing[bool] = Field(default=UNSET) + members_can_create_private_pages: Missing[bool] = Field(default=UNSET) + members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( + default=UNSET ) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + updated_at: datetime = Field() + archived_at: Union[datetime, None] = Field() + + +class TeamOrganizationPropPlan(GitHubModel): + """TeamOrganizationPropPlan""" + + name: str = Field() + space: int = Field() + private_repos: int = Field() + filled_seats: Missing[int] = Field(default=UNSET) + seats: Missing[int] = Field(default=UNSET) -model_rebuild(TeamMembership) +model_rebuild(TeamFull) +model_rebuild(TeamOrganization) +model_rebuild(TeamOrganizationPropPlan) -__all__ = ("TeamMembership",) +__all__ = ( + "TeamFull", + "TeamOrganization", + "TeamOrganizationPropPlan", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0169.py b/githubkit/versions/ghec_v2022_11_28/models/group_0169.py index d5b5146c9..ea02500f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0169.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0169.py @@ -10,6 +10,7 @@ from __future__ import annotations from typing import Union +from datetime import datetime from pydantic import Field @@ -18,50 +19,42 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser +from .group_0065 import ReactionRollup -class TeamProject(GitHubModel): - """Team Project +class TeamDiscussion(GitHubModel): + """Team Discussion - A team's access to a project. + A team discussion is a persistent record of a free-form conversation within a + team. """ - owner_url: str = Field() - url: str = Field() + author: Union[None, SimpleUser] = Field() + body: str = Field(description="The main text of the discussion.") + body_html: str = Field() + body_version: str = Field( + description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." + ) + comments_count: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + last_edited_at: Union[datetime, None] = Field() html_url: str = Field() - columns_url: str = Field() - id: int = Field() node_id: str = Field() - name: str = Field() - body: Union[str, None] = Field() - number: int = Field() - state: str = Field() - creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") - created_at: str = Field() - updated_at: str = Field() - organization_permission: Missing[str] = Field( - default=UNSET, - description="The organization permission for this project. Only present when owner is an organization.", + number: int = Field(description="The unique sequence number of a team discussion.") + pinned: bool = Field( + description="Whether or not this discussion should be pinned for easy retrieval." ) - private: Missing[bool] = Field( - default=UNSET, - description="Whether the project is private or not. Only present when owner is an organization.", + private: bool = Field( + description="Whether or not this discussion should be restricted to team members and organization owners." ) - permissions: TeamProjectPropPermissions = Field() - - -class TeamProjectPropPermissions(GitHubModel): - """TeamProjectPropPermissions""" - - read: bool = Field() - write: bool = Field() - admin: bool = Field() + team_url: str = Field() + title: str = Field(description="The title of the discussion.") + updated_at: datetime = Field() + url: str = Field() + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TeamProject) -model_rebuild(TeamProjectPropPermissions) +model_rebuild(TeamDiscussion) -__all__ = ( - "TeamProject", - "TeamProjectPropPermissions", -) +__all__ = ("TeamDiscussion",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0170.py b/githubkit/versions/ghec_v2022_11_28/models/group_0170.py index 2665ccb3b..ef5b1f7e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0170.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0170.py @@ -9,8 +9,8 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union from pydantic import Field @@ -19,153 +19,34 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -from .group_0016 import LicenseSimple +from .group_0065 import ReactionRollup -class TeamRepository(GitHubModel): - """Team Repository +class TeamDiscussionComment(GitHubModel): + """Team Discussion Comment - A team's access to a repository. + A reply to a discussion within a team. """ - id: int = Field(description="Unique identifier of the repository") - node_id: str = Field() - name: str = Field(description="The name of the repository.") - full_name: str = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - forks: int = Field() - permissions: Missing[TeamRepositoryPropPermissions] = Field(default=UNSET) - role_name: Missing[str] = Field(default=UNSET) - owner: Union[None, SimpleUser] = Field() - private: bool = Field( - default=False, description="Whether the repository is private or public." + author: Union[None, SimpleUser] = Field() + body: str = Field(description="The main text of the comment.") + body_html: str = Field() + body_version: str = Field( + description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." ) + created_at: datetime = Field() + last_edited_at: Union[datetime, None] = Field() + discussion_url: str = Field() html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field() - default_branch: str = Field(description="The default branch of the repository.") - open_issues_count: int = Field() - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", - ) - topics: Missing[List[str]] = Field(default=UNSET) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_pages: bool = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - pushed_at: Union[datetime, None] = Field() - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to allow Auto-merge to be used on pull requests.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow forking this repo" - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", + node_id: str = Field() + number: int = Field( + description="The unique sequence number of a team discussion comment." ) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - - -class TeamRepositoryPropPermissions(GitHubModel): - """TeamRepositoryPropPermissions""" - - admin: bool = Field() - pull: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - push: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) + updated_at: datetime = Field() + url: str = Field() + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TeamRepository) -model_rebuild(TeamRepositoryPropPermissions) +model_rebuild(TeamDiscussionComment) -__all__ = ( - "TeamRepository", - "TeamRepositoryPropPermissions", -) +__all__ = ("TeamDiscussionComment",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0171.py b/githubkit/versions/ghec_v2022_11_28/models/group_0171.py index b7cb92d6f..1b65a991f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0171.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0171.py @@ -9,41 +9,32 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -class ProjectCard(GitHubModel): - """Project Card +class Reaction(GitHubModel): + """Reaction - Project cards represent a scope of work. + Reactions to conversations provide a way to help people express their feelings + more simply and effectively. """ - url: str = Field() - id: int = Field(description="The project card's ID") + id: int = Field() node_id: str = Field() - note: Union[str, None] = Field() - creator: Union[None, SimpleUser] = Field() + user: Union[None, SimpleUser] = Field() + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field(description="The reaction to use") created_at: datetime = Field() - updated_at: datetime = Field() - archived: Missing[bool] = Field( - default=UNSET, description="Whether or not the card is archived" - ) - column_name: Missing[str] = Field(default=UNSET) - project_id: Missing[str] = Field(default=UNSET) - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - project_url: str = Field() -model_rebuild(ProjectCard) +model_rebuild(Reaction) -__all__ = ("ProjectCard",) +__all__ = ("Reaction",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0172.py b/githubkit/versions/ghec_v2022_11_28/models/group_0172.py index 08e6fd84f..bf5d392cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0172.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0172.py @@ -9,29 +9,28 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ProjectColumn(GitHubModel): - """Project Column +class TeamMembership(GitHubModel): + """Team Membership - Project columns contain cards of work. + Team Membership """ url: str = Field() - project_url: str = Field() - cards_url: str = Field() - id: int = Field(description="The unique identifier of the project column") - node_id: str = Field() - name: str = Field(description="Name of the project column") - created_at: datetime = Field() - updated_at: datetime = Field() + role: Literal["member", "maintainer"] = Field( + default="member", description="The role of the user in the team." + ) + state: Literal["active", "pending"] = Field( + description="The state of the user's membership in the team." + ) -model_rebuild(ProjectColumn) +model_rebuild(TeamMembership) -__all__ = ("ProjectColumn",) +__all__ = ("TeamMembership",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0173.py b/githubkit/versions/ghec_v2022_11_28/models/group_0173.py index 667f2f8ab..d5b5146c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0173.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0173.py @@ -13,21 +13,55 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -class ProjectCollaboratorPermission(GitHubModel): - """Project Collaborator Permission +class TeamProject(GitHubModel): + """Team Project - Project Collaborator Permission + A team's access to a project. """ - permission: str = Field() - user: Union[None, SimpleUser] = Field() + owner_url: str = Field() + url: str = Field() + html_url: str = Field() + columns_url: str = Field() + id: int = Field() + node_id: str = Field() + name: str = Field() + body: Union[str, None] = Field() + number: int = Field() + state: str = Field() + creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") + created_at: str = Field() + updated_at: str = Field() + organization_permission: Missing[str] = Field( + default=UNSET, + description="The organization permission for this project. Only present when owner is an organization.", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Whether the project is private or not. Only present when owner is an organization.", + ) + permissions: TeamProjectPropPermissions = Field() -model_rebuild(ProjectCollaboratorPermission) +class TeamProjectPropPermissions(GitHubModel): + """TeamProjectPropPermissions""" -__all__ = ("ProjectCollaboratorPermission",) + read: bool = Field() + write: bool = Field() + admin: bool = Field() + + +model_rebuild(TeamProject) +model_rebuild(TeamProjectPropPermissions) + +__all__ = ( + "TeamProject", + "TeamProjectPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0174.py b/githubkit/versions/ghec_v2022_11_28/models/group_0174.py index 335b1a1b9..2665ccb3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0174.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0174.py @@ -9,20 +9,163 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0016 import LicenseSimple + + +class TeamRepository(GitHubModel): + """Team Repository + + A team's access to a repository. + """ + + id: int = Field(description="Unique identifier of the repository") + node_id: str = Field() + name: str = Field(description="The name of the repository.") + full_name: str = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + forks: int = Field() + permissions: Missing[TeamRepositoryPropPermissions] = Field(default=UNSET) + role_name: Missing[str] = Field(default=UNSET) + owner: Union[None, SimpleUser] = Field() + private: bool = Field( + default=False, description="Whether the repository is private or public." + ) + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field() + default_branch: str = Field(description="The default branch of the repository.") + open_issues_count: int = Field() + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + topics: Missing[List[str]] = Field(default=UNSET) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_pages: bool = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + pushed_at: Union[datetime, None] = Field() + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow forking this repo" + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + open_issues: int = Field() + watchers: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + -class RateLimit(GitHubModel): - """Rate Limit""" +class TeamRepositoryPropPermissions(GitHubModel): + """TeamRepositoryPropPermissions""" - limit: int = Field() - remaining: int = Field() - reset: int = Field() - used: int = Field() + admin: bool = Field() + pull: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + push: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) -model_rebuild(RateLimit) +model_rebuild(TeamRepository) +model_rebuild(TeamRepositoryPropPermissions) -__all__ = ("RateLimit",) +__all__ = ( + "TeamRepository", + "TeamRepositoryPropPermissions", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0175.py b/githubkit/versions/ghec_v2022_11_28/models/group_0175.py index 98b7c73f9..b7cb92d6f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0175.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0175.py @@ -9,24 +9,41 @@ from __future__ import annotations +from typing import Union +from datetime import datetime + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0174 import RateLimit -from .group_0176 import RateLimitOverviewPropResources +from .group_0001 import SimpleUser -class RateLimitOverview(GitHubModel): - """Rate Limit Overview +class ProjectCard(GitHubModel): + """Project Card - Rate Limit Overview + Project cards represent a scope of work. """ - resources: RateLimitOverviewPropResources = Field() - rate: RateLimit = Field(title="Rate Limit") - - -model_rebuild(RateLimitOverview) - -__all__ = ("RateLimitOverview",) + url: str = Field() + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + creator: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + archived: Missing[bool] = Field( + default=UNSET, description="Whether or not the card is archived" + ) + column_name: Missing[str] = Field(default=UNSET) + project_id: Missing[str] = Field(default=UNSET) + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + project_url: str = Field() + + +model_rebuild(ProjectCard) + +__all__ = ("ProjectCard",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0176.py b/githubkit/versions/ghec_v2022_11_28/models/group_0176.py index bf90af2e7..08e6fd84f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0176.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0176.py @@ -9,32 +9,29 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0174 import RateLimit +class ProjectColumn(GitHubModel): + """Project Column -class RateLimitOverviewPropResources(GitHubModel): - """RateLimitOverviewPropResources""" + Project columns contain cards of work. + """ - core: RateLimit = Field(title="Rate Limit") - graphql: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - search: RateLimit = Field(title="Rate Limit") - code_search: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - source_import: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - integration_manifest: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - code_scanning_upload: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - actions_runner_registration: Missing[RateLimit] = Field( - default=UNSET, title="Rate Limit" - ) - scim: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - dependency_snapshots: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + url: str = Field() + project_url: str = Field() + cards_url: str = Field() + id: int = Field(description="The unique identifier of the project column") + node_id: str = Field() + name: str = Field(description="Name of the project column") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(RateLimitOverviewPropResources) +model_rebuild(ProjectColumn) -__all__ = ("RateLimitOverviewPropResources",) +__all__ = ("ProjectColumn",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0177.py b/githubkit/versions/ghec_v2022_11_28/models/group_0177.py index 04f67c7ff..667f2f8ab 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0177.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0177.py @@ -10,48 +10,24 @@ from __future__ import annotations from typing import Union -from datetime import datetime from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class Artifact(GitHubModel): - """Artifact - An artifact - """ - - id: int = Field() - node_id: str = Field() - name: str = Field(description="The name of the artifact.") - size_in_bytes: int = Field(description="The size in bytes of the artifact.") - url: str = Field() - archive_download_url: str = Field() - expired: bool = Field(description="Whether or not the artifact has expired.") - created_at: Union[datetime, None] = Field() - expires_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - workflow_run: Missing[Union[ArtifactPropWorkflowRun, None]] = Field(default=UNSET) +class ProjectCollaboratorPermission(GitHubModel): + """Project Collaborator Permission + Project Collaborator Permission + """ -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) + permission: str = Field() + user: Union[None, SimpleUser] = Field() -model_rebuild(Artifact) -model_rebuild(ArtifactPropWorkflowRun) +model_rebuild(ProjectCollaboratorPermission) -__all__ = ( - "Artifact", - "ArtifactPropWorkflowRun", -) +__all__ = ("ProjectCollaboratorPermission",) 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 a51bdd0eb..335b1a1b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0178.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0178.py @@ -9,44 +9,20 @@ from __future__ import annotations -from typing import List -from datetime import datetime - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ActionsCacheList(GitHubModel): - """Repository actions caches - - Repository actions caches - """ - - total_count: int = Field(description="Total number of caches") - actions_caches: List[ActionsCacheListPropActionsCachesItems] = Field( - description="Array of caches" - ) - - -class ActionsCacheListPropActionsCachesItems(GitHubModel): - """ActionsCacheListPropActionsCachesItems""" +class RateLimit(GitHubModel): + """Rate Limit""" - id: Missing[int] = Field(default=UNSET) - ref: Missing[str] = Field(default=UNSET) - key: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - last_accessed_at: Missing[datetime] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - size_in_bytes: Missing[int] = Field(default=UNSET) + limit: int = Field() + remaining: int = Field() + reset: int = Field() + used: int = Field() -model_rebuild(ActionsCacheList) -model_rebuild(ActionsCacheListPropActionsCachesItems) +model_rebuild(RateLimit) -__all__ = ( - "ActionsCacheList", - "ActionsCacheListPropActionsCachesItems", -) +__all__ = ("RateLimit",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0179.py b/githubkit/versions/ghec_v2022_11_28/models/group_0179.py index 2252539d9..8866aeee5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0179.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0179.py @@ -9,102 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0178 import RateLimit +from .group_0180 import RateLimitOverviewPropResources -class Job(GitHubModel): - """Job - - Information of a job execution in a workflow run - """ - id: int = Field(description="The id of the job.") - run_id: int = Field(description="The id of the associated workflow run.") - run_url: str = Field() - run_attempt: Missing[int] = Field( - default=UNSET, - description="Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.", - ) - node_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being run.") - url: str = Field() - html_url: Union[str, None] = Field() - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ] = Field(description="The phase of the lifecycle that the job is currently in.") - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] = Field(description="The outcome of the job.") - created_at: datetime = Field( - description="The time that the job created, in ISO 8601 format." - ) - started_at: datetime = Field( - description="The time that the job started, in ISO 8601 format." - ) - completed_at: Union[datetime, None] = Field( - description="The time that the job finished, in ISO 8601 format." - ) - name: str = Field(description="The name of the job.") - steps: Missing[List[JobPropStepsItems]] = Field( - default=UNSET, description="Steps in this job." - ) - check_run_url: str = Field() - labels: List[str] = Field( - description='Labels for the workflow job. Specified by the "runs_on" attribute in the action\'s workflow file.' - ) - runner_id: Union[int, None] = Field( - description="The ID of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - runner_name: Union[str, None] = Field( - description="The name of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - head_branch: Union[str, None] = Field(description="The name of the current branch.") +class RateLimitOverview(GitHubModel): + """Rate Limit Overview + Rate Limit Overview + """ -class JobPropStepsItems(GitHubModel): - """JobPropStepsItems""" - - status: Literal["queued", "in_progress", "completed"] = Field( - description="The phase of the lifecycle that the job is currently in." - ) - conclusion: Union[str, None] = Field(description="The outcome of the job.") - name: str = Field(description="The name of the job.") - number: int = Field() - started_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="The time that the step started, in ISO 8601 format." - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="The time that the job finished, in ISO 8601 format." - ) + resources: RateLimitOverviewPropResources = Field() + rate: RateLimit = Field(title="Rate Limit") -model_rebuild(Job) -model_rebuild(JobPropStepsItems) +model_rebuild(RateLimitOverview) -__all__ = ( - "Job", - "JobPropStepsItems", -) +__all__ = ("RateLimitOverview",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0180.py b/githubkit/versions/ghec_v2022_11_28/models/group_0180.py index 897f77145..4d4d08fc3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0180.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0180.py @@ -9,30 +9,32 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0178 import RateLimit -class OidcCustomSubRepo(GitHubModel): - """Actions OIDC subject customization for a repository - Actions OIDC subject customization for a repository - """ +class RateLimitOverviewPropResources(GitHubModel): + """RateLimitOverviewPropResources""" - use_default: bool = Field( - description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." - ) - include_claim_keys: Missing[List[str]] = Field( - default=UNSET, - description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", + core: RateLimit = Field(title="Rate Limit") + graphql: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + search: RateLimit = Field(title="Rate Limit") + code_search: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + source_import: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + integration_manifest: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + code_scanning_upload: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + actions_runner_registration: Missing[RateLimit] = Field( + default=UNSET, title="Rate Limit" ) + scim: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + dependency_snapshots: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") -model_rebuild(OidcCustomSubRepo) +model_rebuild(RateLimitOverviewPropResources) -__all__ = ("OidcCustomSubRepo",) +__all__ = ("RateLimitOverviewPropResources",) 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 4e5c3a572..04f67c7ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0181.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0181.py @@ -9,24 +9,49 @@ from __future__ import annotations +from typing import Union from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ActionsSecret(GitHubModel): - """Actions Secret +class Artifact(GitHubModel): + """Artifact - Set secrets for GitHub Actions. + An artifact """ - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() + id: int = Field() + node_id: str = Field() + name: str = Field(description="The name of the artifact.") + size_in_bytes: int = Field(description="The size in bytes of the artifact.") + url: str = Field() + archive_download_url: str = Field() + expired: bool = Field(description="Whether or not the artifact has expired.") + created_at: Union[datetime, None] = Field() + expires_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + workflow_run: Missing[Union[ArtifactPropWorkflowRun, None]] = Field(default=UNSET) -model_rebuild(ActionsSecret) +class ArtifactPropWorkflowRun(GitHubModel): + """ArtifactPropWorkflowRun""" -__all__ = ("ActionsSecret",) + id: Missing[int] = Field(default=UNSET) + repository_id: Missing[int] = Field(default=UNSET) + head_repository_id: Missing[int] = Field(default=UNSET) + head_branch: Missing[str] = Field(default=UNSET) + head_sha: Missing[str] = Field(default=UNSET) + + +model_rebuild(Artifact) +model_rebuild(ArtifactPropWorkflowRun) + +__all__ = ( + "Artifact", + "ArtifactPropWorkflowRun", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0182.py b/githubkit/versions/ghec_v2022_11_28/models/group_0182.py index cb0c0f09c..a51bdd0eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0182.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0182.py @@ -9,26 +9,44 @@ from __future__ import annotations +from typing import List from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ActionsVariable(GitHubModel): - """Actions Variable""" +class ActionsCacheList(GitHubModel): + """Repository actions caches - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - created_at: datetime = Field( - description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + Repository actions caches + """ + + total_count: int = Field(description="Total number of caches") + actions_caches: List[ActionsCacheListPropActionsCachesItems] = Field( + description="Array of caches" ) -model_rebuild(ActionsVariable) +class ActionsCacheListPropActionsCachesItems(GitHubModel): + """ActionsCacheListPropActionsCachesItems""" + + id: Missing[int] = Field(default=UNSET) + ref: Missing[str] = Field(default=UNSET) + key: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + last_accessed_at: Missing[datetime] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + size_in_bytes: Missing[int] = Field(default=UNSET) + + +model_rebuild(ActionsCacheList) +model_rebuild(ActionsCacheListPropActionsCachesItems) -__all__ = ("ActionsVariable",) +__all__ = ( + "ActionsCacheList", + "ActionsCacheListPropActionsCachesItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0183.py b/githubkit/versions/ghec_v2022_11_28/models/group_0183.py index e41a57331..2252539d9 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 List, Union, Literal from pydantic import Field @@ -18,22 +19,92 @@ from githubkit.compat import GitHubModel, model_rebuild -class ActionsRepositoryPermissions(GitHubModel): - """ActionsRepositoryPermissions""" +class Job(GitHubModel): + """Job - enabled: bool = Field( - description="Whether GitHub Actions is enabled on the repository." - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + Information of a job execution in a workflow run + """ + + id: int = Field(description="The id of the job.") + run_id: int = Field(description="The id of the associated workflow run.") + run_url: str = Field() + run_attempt: Missing[int] = Field( default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + description="Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.", ) - selected_actions_url: Missing[str] = Field( - default=UNSET, - description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", + node_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being run.") + url: str = Field() + html_url: Union[str, None] = Field() + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] = Field(description="The phase of the lifecycle that the job is currently in.") + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] = Field(description="The outcome of the job.") + created_at: datetime = Field( + description="The time that the job created, in ISO 8601 format." + ) + started_at: datetime = Field( + description="The time that the job started, in ISO 8601 format." + ) + completed_at: Union[datetime, None] = Field( + description="The time that the job finished, in ISO 8601 format." + ) + name: str = Field(description="The name of the job.") + steps: Missing[List[JobPropStepsItems]] = Field( + default=UNSET, description="Steps in this job." + ) + check_run_url: str = Field() + labels: List[str] = Field( + description='Labels for the workflow job. Specified by the "runs_on" attribute in the action\'s workflow file.' + ) + runner_id: Union[int, None] = Field( + description="The ID of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + runner_name: Union[str, None] = Field( + description="The name of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + runner_group_name: Union[str, None] = Field( + description="The name of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + head_branch: Union[str, None] = Field(description="The name of the current branch.") + + +class JobPropStepsItems(GitHubModel): + """JobPropStepsItems""" + + status: Literal["queued", "in_progress", "completed"] = Field( + description="The phase of the lifecycle that the job is currently in." + ) + conclusion: Union[str, None] = Field(description="The outcome of the job.") + name: str = Field(description="The name of the job.") + number: int = Field() + started_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="The time that the step started, in ISO 8601 format." + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="The time that the job finished, in ISO 8601 format." ) -model_rebuild(ActionsRepositoryPermissions) +model_rebuild(Job) +model_rebuild(JobPropStepsItems) -__all__ = ("ActionsRepositoryPermissions",) +__all__ = ( + "Job", + "JobPropStepsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0184.py b/githubkit/versions/ghec_v2022_11_28/models/group_0184.py index dbc0521ec..897f77145 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0184.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0184.py @@ -9,21 +9,30 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ActionsWorkflowAccessToRepository(GitHubModel): - """ActionsWorkflowAccessToRepository""" +class OidcCustomSubRepo(GitHubModel): + """Actions OIDC subject customization for a repository - access_level: Literal["none", "user", "organization", "enterprise"] = Field( - description="Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the\nrepository.\n\n`none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization. `enterprise` level access allows sharing across the enterprise." + 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(ActionsWorkflowAccessToRepository) +model_rebuild(OidcCustomSubRepo) -__all__ = ("ActionsWorkflowAccessToRepository",) +__all__ = ("OidcCustomSubRepo",) 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 e33032524..4e5c3a572 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0185.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0185.py @@ -9,63 +9,24 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class PullRequestMinimal(GitHubModel): - """Pull Request Minimal""" - - id: int = Field() - number: int = Field() - url: str = Field() - head: PullRequestMinimalPropHead = Field() - base: PullRequestMinimalPropBase = Field() - - -class PullRequestMinimalPropHead(GitHubModel): - """PullRequestMinimalPropHead""" - - ref: str = Field() - sha: str = Field() - repo: PullRequestMinimalPropHeadPropRepo = Field() - - -class PullRequestMinimalPropHeadPropRepo(GitHubModel): - """PullRequestMinimalPropHeadPropRepo""" - - id: int = Field() - url: str = Field() - name: str = Field() - - -class PullRequestMinimalPropBase(GitHubModel): - """PullRequestMinimalPropBase""" - - ref: str = Field() - sha: str = Field() - repo: PullRequestMinimalPropBasePropRepo = Field() - +class ActionsSecret(GitHubModel): + """Actions Secret -class PullRequestMinimalPropBasePropRepo(GitHubModel): - """PullRequestMinimalPropBasePropRepo""" + Set secrets for GitHub Actions. + """ - id: int = Field() - url: str = Field() - name: str = Field() + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(PullRequestMinimal) -model_rebuild(PullRequestMinimalPropHead) -model_rebuild(PullRequestMinimalPropHeadPropRepo) -model_rebuild(PullRequestMinimalPropBase) -model_rebuild(PullRequestMinimalPropBasePropRepo) +model_rebuild(ActionsSecret) -__all__ = ( - "PullRequestMinimal", - "PullRequestMinimalPropHead", - "PullRequestMinimalPropHeadPropRepo", - "PullRequestMinimalPropBase", - "PullRequestMinimalPropBasePropRepo", -) +__all__ = ("ActionsSecret",) 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 ec954ebac..cb0c0f09c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0186.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0186.py @@ -9,7 +9,6 @@ from __future__ import annotations -from typing import Union from datetime import datetime from pydantic import Field @@ -17,50 +16,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class SimpleCommit(GitHubModel): - """Simple Commit +class ActionsVariable(GitHubModel): + """Actions Variable""" - A commit. - """ - - id: str = Field(description="SHA for the commit") - tree_id: str = Field(description="SHA for the commit's tree") - message: str = Field(description="Message describing the purpose of the commit") - timestamp: datetime = Field(description="Timestamp of the commit") - author: Union[SimpleCommitPropAuthor, None] = Field( - description="Information about the Git author" + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + created_at: datetime = Field( + description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - committer: Union[SimpleCommitPropCommitter, None] = Field( - description="Information about the Git committer" + updated_at: datetime = Field( + description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) -class SimpleCommitPropAuthor(GitHubModel): - """SimpleCommitPropAuthor - - Information about the Git author - """ - - name: str = Field(description="Name of the commit's author") - email: str = Field(description="Git email address of the commit's author") - - -class SimpleCommitPropCommitter(GitHubModel): - """SimpleCommitPropCommitter - - Information about the Git committer - """ - - name: str = Field(description="Name of the commit's committer") - email: str = Field(description="Git email address of the commit's committer") - - -model_rebuild(SimpleCommit) -model_rebuild(SimpleCommitPropAuthor) -model_rebuild(SimpleCommitPropCommitter) +model_rebuild(ActionsVariable) -__all__ = ( - "SimpleCommit", - "SimpleCommitPropAuthor", - "SimpleCommitPropCommitter", -) +__all__ = ("ActionsVariable",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0187.py b/githubkit/versions/ghec_v2022_11_28/models/group_0187.py index 40f3723f0..e41a57331 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0187.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0187.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import Literal from pydantic import Field @@ -18,107 +17,23 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0186 import SimpleCommit -from .group_0079 import MinimalRepository -from .group_0185 import PullRequestMinimal +class ActionsRepositoryPermissions(GitHubModel): + """ActionsRepositoryPermissions""" -class WorkflowRun(GitHubModel): - """Workflow Run - - An invocation of a workflow - """ - - id: int = Field(description="The ID of the workflow run.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow run." - ) - node_id: str = Field() - check_suite_id: Missing[int] = Field( - default=UNSET, description="The ID of the associated check suite." - ) - check_suite_node_id: Missing[str] = Field( - default=UNSET, description="The node ID of the associated check suite." - ) - head_branch: Union[str, None] = Field() - head_sha: str = Field( - description="The SHA of the head commit that points to the version of the workflow being run." + enabled: bool = Field( + description="Whether GitHub Actions is enabled on the repository." ) - path: str = Field(description="The full path of the workflow") - run_number: int = Field( - description="The auto incrementing run number for the workflow run." - ) - run_attempt: Missing[int] = Field( + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( default=UNSET, - description="Attempt number of the run, 1 for first attempt and higher if the workflow was re-run.", - ) - referenced_workflows: Missing[Union[List[ReferencedWorkflow], None]] = Field( - default=UNSET - ) - event: str = Field() - status: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - workflow_id: int = Field(description="The ID of the parent workflow.") - url: str = Field(description="The URL to the workflow run.") - html_url: str = Field() - pull_requests: Union[List[PullRequestMinimal], None] = Field( - description="Pull requests that are open with a `head_sha` or `head_branch` that matches the workflow run. The returned pull requests do not necessarily indicate pull requests that triggered the run." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - actor: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - triggering_actor: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) - run_started_at: Missing[datetime] = Field( - default=UNSET, description="The start time of the latest run. Resets on re-run." - ) - jobs_url: str = Field(description="The URL to the jobs for the workflow run.") - logs_url: str = Field( - description="The URL to download the logs for the workflow run." - ) - check_suite_url: str = Field(description="The URL to the associated check suite.") - artifacts_url: str = Field( - description="The URL to the artifacts for the workflow run." - ) - cancel_url: str = Field(description="The URL to cancel the workflow run.") - rerun_url: str = Field(description="The URL to rerun the workflow run.") - previous_attempt_url: Missing[Union[str, None]] = Field( + selected_actions_url: Missing[str] = Field( default=UNSET, - description="The URL to the previous attempted run of this workflow, if one exists.", - ) - workflow_url: str = Field(description="The URL to the workflow.") - head_commit: Union[None, SimpleCommit] = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - head_repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + description="The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` is set to `selected`.", ) - head_repository_id: Missing[int] = Field(default=UNSET) - display_title: str = Field( - description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow." - ) - - -class ReferencedWorkflow(GitHubModel): - """Referenced workflow - - A workflow referenced/reused by the initial caller workflow - """ - - path: str = Field() - sha: str = Field() - ref: Missing[str] = Field(default=UNSET) -model_rebuild(WorkflowRun) -model_rebuild(ReferencedWorkflow) +model_rebuild(ActionsRepositoryPermissions) -__all__ = ( - "WorkflowRun", - "ReferencedWorkflow", -) +__all__ = ("ActionsRepositoryPermissions",) 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 ac687db77..dbc0521ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0188.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0188.py @@ -9,58 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class ActionsWorkflowAccessToRepository(GitHubModel): + """ActionsWorkflowAccessToRepository""" -class EnvironmentApprovals(GitHubModel): - """Environment Approval - - An entry in the reviews log for environment deployments - """ - - environments: List[EnvironmentApprovalsPropEnvironmentsItems] = Field( - description="The list of environments that were approved or rejected" - ) - state: Literal["approved", "rejected", "pending"] = Field( - description="Whether deployment to the environment(s) was approved or rejected or pending (with comments)" - ) - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - comment: str = Field(description="The comment submitted with the deployment review") - - -class EnvironmentApprovalsPropEnvironmentsItems(GitHubModel): - """EnvironmentApprovalsPropEnvironmentsItems""" - - id: Missing[int] = Field(default=UNSET, description="The id of the environment.") - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field( - default=UNSET, description="The name of the environment." - ) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the environment was created, in ISO 8601 format.", - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the environment was last updated, in ISO 8601 format.", + access_level: Literal["none", "user", "organization", "enterprise"] = Field( + description="Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the\nrepository.\n\n`none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization. `enterprise` level access allows sharing across the enterprise." ) -model_rebuild(EnvironmentApprovals) -model_rebuild(EnvironmentApprovalsPropEnvironmentsItems) +model_rebuild(ActionsWorkflowAccessToRepository) -__all__ = ( - "EnvironmentApprovals", - "EnvironmentApprovalsPropEnvironmentsItems", -) +__all__ = ("ActionsWorkflowAccessToRepository",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0189.py b/githubkit/versions/ghec_v2022_11_28/models/group_0189.py index 831ca354e..e33032524 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0189.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0189.py @@ -14,17 +14,58 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReviewCustomGatesCommentRequired(GitHubModel): - """ReviewCustomGatesCommentRequired""" +class PullRequestMinimal(GitHubModel): + """Pull Request Minimal""" - environment_name: str = Field( - description="The name of the environment to approve or reject." - ) - comment: str = Field( - description="Comment associated with the pending deployment protection rule. **Required when state is not provided.**" - ) + id: int = Field() + number: int = Field() + url: str = Field() + head: PullRequestMinimalPropHead = Field() + base: PullRequestMinimalPropBase = Field() -model_rebuild(ReviewCustomGatesCommentRequired) +class PullRequestMinimalPropHead(GitHubModel): + """PullRequestMinimalPropHead""" -__all__ = ("ReviewCustomGatesCommentRequired",) + ref: str = Field() + sha: str = Field() + repo: PullRequestMinimalPropHeadPropRepo = Field() + + +class PullRequestMinimalPropHeadPropRepo(GitHubModel): + """PullRequestMinimalPropHeadPropRepo""" + + id: int = Field() + url: str = Field() + name: str = Field() + + +class PullRequestMinimalPropBase(GitHubModel): + """PullRequestMinimalPropBase""" + + ref: str = Field() + sha: str = Field() + repo: PullRequestMinimalPropBasePropRepo = Field() + + +class PullRequestMinimalPropBasePropRepo(GitHubModel): + """PullRequestMinimalPropBasePropRepo""" + + id: int = Field() + url: str = Field() + name: str = Field() + + +model_rebuild(PullRequestMinimal) +model_rebuild(PullRequestMinimalPropHead) +model_rebuild(PullRequestMinimalPropHeadPropRepo) +model_rebuild(PullRequestMinimalPropBase) +model_rebuild(PullRequestMinimalPropBasePropRepo) + +__all__ = ( + "PullRequestMinimal", + "PullRequestMinimalPropHead", + "PullRequestMinimalPropHeadPropRepo", + "PullRequestMinimalPropBase", + "PullRequestMinimalPropBasePropRepo", +) 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 21a8d9682..ec954ebac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0190.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0190.py @@ -9,29 +9,58 @@ from __future__ import annotations -from typing import Literal +from typing import Union +from datetime import datetime from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReviewCustomGatesStateRequired(GitHubModel): - """ReviewCustomGatesStateRequired""" +class SimpleCommit(GitHubModel): + """Simple Commit - environment_name: str = Field( - description="The name of the environment to approve or reject." - ) - state: Literal["approved", "rejected"] = Field( - description="Whether to approve or reject deployment to the specified environments." + A commit. + """ + + id: str = Field(description="SHA for the commit") + tree_id: str = Field(description="SHA for the commit's tree") + message: str = Field(description="Message describing the purpose of the commit") + timestamp: datetime = Field(description="Timestamp of the commit") + author: Union[SimpleCommitPropAuthor, None] = Field( + description="Information about the Git author" ) - comment: Missing[str] = Field( - default=UNSET, description="Optional comment to include with the review." + committer: Union[SimpleCommitPropCommitter, None] = Field( + description="Information about the Git committer" ) -model_rebuild(ReviewCustomGatesStateRequired) +class SimpleCommitPropAuthor(GitHubModel): + """SimpleCommitPropAuthor + + Information about the Git author + """ + + name: str = Field(description="Name of the commit's author") + email: str = Field(description="Git email address of the commit's author") + + +class SimpleCommitPropCommitter(GitHubModel): + """SimpleCommitPropCommitter + + Information about the Git committer + """ + + name: str = Field(description="Name of the commit's committer") + email: str = Field(description="Git email address of the commit's committer") + + +model_rebuild(SimpleCommit) +model_rebuild(SimpleCommitPropAuthor) +model_rebuild(SimpleCommitPropCommitter) -__all__ = ("ReviewCustomGatesStateRequired",) +__all__ = ( + "SimpleCommit", + "SimpleCommitPropAuthor", + "SimpleCommitPropCommitter", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0191.py b/githubkit/versions/ghec_v2022_11_28/models/group_0191.py index e0aa39b0a..f83917c89 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0191.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0191.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from pydantic import Field @@ -18,56 +18,107 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0093 import Team from .group_0001 import SimpleUser +from .group_0190 import SimpleCommit +from .group_0082 import MinimalRepository +from .group_0189 import PullRequestMinimal -class PendingDeploymentPropReviewersItems(GitHubModel): - """PendingDeploymentPropReviewersItems""" +class WorkflowRun(GitHubModel): + """Workflow Run - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." - ) - reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) - - -class PendingDeployment(GitHubModel): - """Pending Deployment - - Details of a deployment that is waiting for protection rules to pass + An invocation of a workflow """ - environment: PendingDeploymentPropEnvironment = Field() - wait_timer: int = Field(description="The set duration of the wait timer") - wait_timer_started_at: Union[datetime, None] = Field( - description="The time that the wait timer began." + id: int = Field(description="The ID of the workflow run.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow run." + ) + node_id: str = Field() + check_suite_id: Missing[int] = Field( + default=UNSET, description="The ID of the associated check suite." + ) + check_suite_node_id: Missing[str] = Field( + default=UNSET, description="The node ID of the associated check suite." + ) + head_branch: Union[str, None] = Field() + head_sha: str = Field( + description="The SHA of the head commit that points to the version of the workflow being run." + ) + path: str = Field(description="The full path of the workflow") + run_number: int = Field( + description="The auto incrementing run number for the workflow run." + ) + run_attempt: Missing[int] = Field( + default=UNSET, + description="Attempt number of the run, 1 for first attempt and higher if the workflow was re-run.", + ) + referenced_workflows: Missing[Union[List[ReferencedWorkflow], None]] = Field( + default=UNSET + ) + event: str = Field() + status: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + workflow_id: int = Field(description="The ID of the parent workflow.") + url: str = Field(description="The URL to the workflow run.") + html_url: str = Field() + pull_requests: Union[List[PullRequestMinimal], None] = Field( + description="Pull requests that are open with a `head_sha` or `head_branch` that matches the workflow run. The returned pull requests do not necessarily indicate pull requests that triggered the run." ) - current_user_can_approve: bool = Field( - description="Whether the currently authenticated user can approve the deployment" + created_at: datetime = Field() + updated_at: datetime = Field() + actor: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - reviewers: List[PendingDeploymentPropReviewersItems] = Field( - description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed." + triggering_actor: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + run_started_at: Missing[datetime] = Field( + default=UNSET, description="The start time of the latest run. Resets on re-run." + ) + jobs_url: str = Field(description="The URL to the jobs for the workflow run.") + logs_url: str = Field( + description="The URL to download the logs for the workflow run." + ) + check_suite_url: str = Field(description="The URL to the associated check suite.") + artifacts_url: str = Field( + description="The URL to the artifacts for the workflow run." + ) + cancel_url: str = Field(description="The URL to cancel the workflow run.") + rerun_url: str = Field(description="The URL to rerun the workflow run.") + previous_attempt_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="The URL to the previous attempted run of this workflow, if one exists.", + ) + workflow_url: str = Field(description="The URL to the workflow.") + head_commit: Union[None, SimpleCommit] = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + head_repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + head_repository_id: Missing[int] = Field(default=UNSET) + display_title: str = Field( + description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow." ) -class PendingDeploymentPropEnvironment(GitHubModel): - """PendingDeploymentPropEnvironment""" +class ReferencedWorkflow(GitHubModel): + """Referenced workflow - id: Missing[int] = Field(default=UNSET, description="The id of the environment.") - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field( - default=UNSET, description="The name of the environment." - ) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + A workflow referenced/reused by the initial caller workflow + """ + + path: str = Field() + sha: str = Field() + ref: Missing[str] = Field(default=UNSET) -model_rebuild(PendingDeploymentPropReviewersItems) -model_rebuild(PendingDeployment) -model_rebuild(PendingDeploymentPropEnvironment) +model_rebuild(WorkflowRun) +model_rebuild(ReferencedWorkflow) __all__ = ( - "PendingDeploymentPropReviewersItems", - "PendingDeployment", - "PendingDeploymentPropEnvironment", + "WorkflowRun", + "ReferencedWorkflow", ) 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 8375afbb3..ac687db77 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0192.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0192.py @@ -9,63 +9,58 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -from .group_0006 import Integration -class Deployment(GitHubModel): - """Deployment +class EnvironmentApprovals(GitHubModel): + """Environment Approval - A request for a specific ref(branch,sha,tag) to be deployed + An entry in the reviews log for environment deployments """ - url: str = Field() - id: int = Field(description="Unique identifier of the deployment") - node_id: str = Field() - sha: str = Field() - ref: str = Field( - description="The ref to deploy. This can be a branch, tag, or sha." + environments: List[EnvironmentApprovalsPropEnvironmentsItems] = Field( + description="The list of environments that were approved or rejected" ) - task: str = Field(description="Parameter to specify a task to execute") - payload: Union[DeploymentPropPayloadOneof0, str] = Field() - original_environment: Missing[str] = Field(default=UNSET) - environment: str = Field(description="Name for the target deployment environment.") - description: Union[str, None] = Field() - creator: Union[None, SimpleUser] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - statuses_url: str = Field() - repository_url: str = Field() - transient_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", + state: Literal["approved", "rejected", "pending"] = Field( + description="Whether deployment to the environment(s) was approved or rejected or pending (with comments)" + ) + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + comment: str = Field(description="The comment submitted with the deployment review") + + +class EnvironmentApprovalsPropEnvironmentsItems(GitHubModel): + """EnvironmentApprovalsPropEnvironmentsItems""" + + id: Missing[int] = Field(default=UNSET, description="The id of the environment.") + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( + default=UNSET, description="The name of the environment." ) - production_environment: Missing[bool] = Field( + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + created_at: Missing[datetime] = Field( default=UNSET, - description="Specifies if the given environment is one that end-users directly interact with. Default: false.", + description="The time that the environment was created, in ISO 8601 format.", ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the environment was last updated, in ISO 8601 format.", ) -class DeploymentPropPayloadOneof0(ExtraGitHubModel): - """DeploymentPropPayloadOneof0""" - - -model_rebuild(Deployment) -model_rebuild(DeploymentPropPayloadOneof0) +model_rebuild(EnvironmentApprovals) +model_rebuild(EnvironmentApprovalsPropEnvironmentsItems) __all__ = ( - "Deployment", - "DeploymentPropPayloadOneof0", + "EnvironmentApprovals", + "EnvironmentApprovalsPropEnvironmentsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0193.py b/githubkit/versions/ghec_v2022_11_28/models/group_0193.py index 3cca2c7af..831ca354e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0193.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0193.py @@ -9,106 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WorkflowRunUsage(GitHubModel): - """Workflow Run Usage - - Workflow Run Usage - """ - - billable: WorkflowRunUsagePropBillable = Field() - run_duration_ms: Missing[int] = Field(default=UNSET) - +class ReviewCustomGatesCommentRequired(GitHubModel): + """ReviewCustomGatesCommentRequired""" -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" + environment_name: str = Field( + description="The name of the environment to approve or reject." ) - - -class WorkflowRunUsagePropBillablePropUbuntu(GitHubModel): - """WorkflowRunUsagePropBillablePropUbuntu""" - - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[List[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems]] = ( - Field(default=UNSET) + comment: str = Field( + description="Comment associated with the pending deployment protection rule. **Required when state is not provided.**" ) -class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" - - job_id: int = Field() - duration_ms: int = Field() - - -class WorkflowRunUsagePropBillablePropMacos(GitHubModel): - """WorkflowRunUsagePropBillablePropMacos""" - - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[List[WorkflowRunUsagePropBillablePropMacosPropJobRunsItems]] = ( - Field(default=UNSET) - ) - - -class WorkflowRunUsagePropBillablePropMacosPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" - - job_id: int = Field() - duration_ms: int = Field() - - -class WorkflowRunUsagePropBillablePropWindows(GitHubModel): - """WorkflowRunUsagePropBillablePropWindows""" - - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[List[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems]] = ( - Field(default=UNSET) - ) - - -class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" - - job_id: int = Field() - duration_ms: int = Field() - - -model_rebuild(WorkflowRunUsage) -model_rebuild(WorkflowRunUsagePropBillable) -model_rebuild(WorkflowRunUsagePropBillablePropUbuntu) -model_rebuild(WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems) -model_rebuild(WorkflowRunUsagePropBillablePropMacos) -model_rebuild(WorkflowRunUsagePropBillablePropMacosPropJobRunsItems) -model_rebuild(WorkflowRunUsagePropBillablePropWindows) -model_rebuild(WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems) +model_rebuild(ReviewCustomGatesCommentRequired) -__all__ = ( - "WorkflowRunUsage", - "WorkflowRunUsagePropBillable", - "WorkflowRunUsagePropBillablePropUbuntu", - "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems", - "WorkflowRunUsagePropBillablePropMacos", - "WorkflowRunUsagePropBillablePropMacosPropJobRunsItems", - "WorkflowRunUsagePropBillablePropWindows", - "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", -) +__all__ = ("ReviewCustomGatesCommentRequired",) 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 23b0c91f9..21a8d9682 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0194.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0194.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,57 +18,20 @@ from githubkit.compat import GitHubModel, model_rebuild -class WorkflowUsage(GitHubModel): - """Workflow Usage - - Workflow Usage - """ - - billable: WorkflowUsagePropBillable = Field() - +class ReviewCustomGatesStateRequired(GitHubModel): + """ReviewCustomGatesStateRequired""" -class WorkflowUsagePropBillable(GitHubModel): - """WorkflowUsagePropBillable""" - - ubuntu: Missing[WorkflowUsagePropBillablePropUbuntu] = Field( - default=UNSET, alias="UBUNTU" + environment_name: str = Field( + description="The name of the environment to approve or reject." ) - macos: Missing[WorkflowUsagePropBillablePropMacos] = Field( - default=UNSET, alias="MACOS" + state: Literal["approved", "rejected"] = Field( + description="Whether to approve or reject deployment to the specified environments." ) - windows: Missing[WorkflowUsagePropBillablePropWindows] = Field( - default=UNSET, alias="WINDOWS" + comment: Missing[str] = Field( + default=UNSET, description="Optional comment to include with the review." ) -class WorkflowUsagePropBillablePropUbuntu(GitHubModel): - """WorkflowUsagePropBillablePropUbuntu""" - - total_ms: Missing[int] = Field(default=UNSET) - - -class WorkflowUsagePropBillablePropMacos(GitHubModel): - """WorkflowUsagePropBillablePropMacos""" - - total_ms: Missing[int] = Field(default=UNSET) - - -class WorkflowUsagePropBillablePropWindows(GitHubModel): - """WorkflowUsagePropBillablePropWindows""" - - total_ms: Missing[int] = Field(default=UNSET) - - -model_rebuild(WorkflowUsage) -model_rebuild(WorkflowUsagePropBillable) -model_rebuild(WorkflowUsagePropBillablePropUbuntu) -model_rebuild(WorkflowUsagePropBillablePropMacos) -model_rebuild(WorkflowUsagePropBillablePropWindows) +model_rebuild(ReviewCustomGatesStateRequired) -__all__ = ( - "WorkflowUsage", - "WorkflowUsagePropBillable", - "WorkflowUsagePropBillablePropUbuntu", - "WorkflowUsagePropBillablePropMacos", - "WorkflowUsagePropBillablePropWindows", -) +__all__ = ("ReviewCustomGatesStateRequired",) 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 468497ad7..55cdd3502 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0195.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0195.py @@ -10,40 +10,64 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0048 import Team from .group_0001 import SimpleUser -class Activity(GitHubModel): - """Activity +class PendingDeploymentPropReviewersItems(GitHubModel): + """PendingDeploymentPropReviewersItems""" - Activity + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." + ) + reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) + + +class PendingDeployment(GitHubModel): + """Pending Deployment + + Details of a deployment that is waiting for protection rules to pass """ - id: int = Field() - node_id: str = Field() - before: str = Field(description="The SHA of the commit before the activity.") - after: str = Field(description="The SHA of the commit after the activity.") - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + environment: PendingDeploymentPropEnvironment = Field() + wait_timer: int = Field(description="The set duration of the wait timer") + wait_timer_started_at: Union[datetime, None] = Field( + description="The time that the wait timer began." + ) + current_user_can_approve: bool = Field( + description="Whether the currently authenticated user can approve the deployment" + ) + reviewers: List[PendingDeploymentPropReviewersItems] = Field( + description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed." + ) + + +class PendingDeploymentPropEnvironment(GitHubModel): + """PendingDeploymentPropEnvironment""" + + id: Missing[int] = Field(default=UNSET, description="The id of the environment.") + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( + default=UNSET, description="The name of the environment." ) - timestamp: datetime = Field(description="The time when the activity occurred.") - activity_type: Literal[ - "push", - "force_push", - "branch_deletion", - "branch_creation", - "pr_merge", - "merge_queue_merge", - ] = Field(description="The type of the activity that was performed.") - actor: Union[None, SimpleUser] = Field() + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) -model_rebuild(Activity) +model_rebuild(PendingDeploymentPropReviewersItems) +model_rebuild(PendingDeployment) +model_rebuild(PendingDeploymentPropEnvironment) -__all__ = ("Activity",) +__all__ = ( + "PendingDeploymentPropReviewersItems", + "PendingDeployment", + "PendingDeploymentPropEnvironment", +) 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 245d14611..8375afbb3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0196.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0196.py @@ -9,27 +9,63 @@ 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.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + +from .group_0001 import SimpleUser +from .group_0006 import Integration -class Autolink(GitHubModel): - """Autolink reference +class Deployment(GitHubModel): + """Deployment - An autolink reference. + A request for a specific ref(branch,sha,tag) to be deployed """ - id: int = Field() - key_prefix: str = Field(description="The prefix of a key that is linkified.") - url_template: str = Field( - description="A template for the target URL that is generated if a key was found." + url: str = Field() + id: int = Field(description="Unique identifier of the deployment") + node_id: str = Field() + sha: str = Field() + ref: str = Field( + description="The ref to deploy. This can be a branch, tag, or sha." + ) + task: str = Field(description="Parameter to specify a task to execute") + payload: Union[DeploymentPropPayloadOneof0, str] = Field() + original_environment: Missing[str] = Field(default=UNSET) + environment: str = Field(description="Name for the target deployment environment.") + description: Union[str, None] = Field() + creator: Union[None, SimpleUser] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + statuses_url: str = Field() + repository_url: str = Field() + transient_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", ) - is_alphanumeric: bool = Field( - description="Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters." + production_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is one that end-users directly interact with. Default: false.", ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + + +class DeploymentPropPayloadOneof0(ExtraGitHubModel): + """DeploymentPropPayloadOneof0""" -model_rebuild(Autolink) +model_rebuild(Deployment) +model_rebuild(DeploymentPropPayloadOneof0) -__all__ = ("Autolink",) +__all__ = ( + "Deployment", + "DeploymentPropPayloadOneof0", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0197.py b/githubkit/versions/ghec_v2022_11_28/models/group_0197.py index 3a5b5b6e7..3cca2c7af 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0197.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0197.py @@ -9,25 +9,106 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class CheckAutomatedSecurityFixes(GitHubModel): - """Check Automated Security Fixes +class WorkflowRunUsage(GitHubModel): + """Workflow Run Usage - Check Automated Security Fixes + Workflow Run Usage """ - enabled: bool = Field( - description="Whether automated security fixes are enabled for the repository." + billable: WorkflowRunUsagePropBillable = Field() + run_duration_ms: Missing[int] = Field(default=UNSET) + + +class WorkflowRunUsagePropBillable(GitHubModel): + """WorkflowRunUsagePropBillable""" + + ubuntu: Missing[WorkflowRunUsagePropBillablePropUbuntu] = Field( + default=UNSET, alias="UBUNTU" + ) + macos: Missing[WorkflowRunUsagePropBillablePropMacos] = Field( + default=UNSET, alias="MACOS" + ) + 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) ) - paused: bool = Field( - description="Whether automated security fixes are paused for the repository." + + +class WorkflowRunUsagePropBillablePropMacosPropJobRunsItems(GitHubModel): + """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" + + job_id: int = Field() + duration_ms: int = Field() + + +class WorkflowRunUsagePropBillablePropWindows(GitHubModel): + """WorkflowRunUsagePropBillablePropWindows""" + + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[List[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems]] = ( + Field(default=UNSET) ) -model_rebuild(CheckAutomatedSecurityFixes) +class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems(GitHubModel): + """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" + + job_id: int = Field() + duration_ms: int = Field() + + +model_rebuild(WorkflowRunUsage) +model_rebuild(WorkflowRunUsagePropBillable) +model_rebuild(WorkflowRunUsagePropBillablePropUbuntu) +model_rebuild(WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems) +model_rebuild(WorkflowRunUsagePropBillablePropMacos) +model_rebuild(WorkflowRunUsagePropBillablePropMacosPropJobRunsItems) +model_rebuild(WorkflowRunUsagePropBillablePropWindows) +model_rebuild(WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems) -__all__ = ("CheckAutomatedSecurityFixes",) +__all__ = ( + "WorkflowRunUsage", + "WorkflowRunUsagePropBillable", + "WorkflowRunUsagePropBillablePropUbuntu", + "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems", + "WorkflowRunUsagePropBillablePropMacos", + "WorkflowRunUsagePropBillablePropMacosPropJobRunsItems", + "WorkflowRunUsagePropBillablePropWindows", + "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", +) 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 e35b05cad..23b0c91f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0198.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0198.py @@ -15,37 +15,58 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0199 import ( - ProtectedBranchPullRequestReviewPropDismissalRestrictions, - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, -) - -class ProtectedBranchPullRequestReview(GitHubModel): - """Protected Branch Pull Request Review +class WorkflowUsage(GitHubModel): + """Workflow Usage - Protected Branch Pull Request Review + Workflow Usage """ - url: Missing[str] = Field(default=UNSET) - dismissal_restrictions: Missing[ - ProtectedBranchPullRequestReviewPropDismissalRestrictions - ] = Field(default=UNSET) - bypass_pull_request_allowances: Missing[ - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", + billable: WorkflowUsagePropBillable = Field() + + +class WorkflowUsagePropBillable(GitHubModel): + """WorkflowUsagePropBillable""" + + ubuntu: Missing[WorkflowUsagePropBillablePropUbuntu] = Field( + default=UNSET, alias="UBUNTU" + ) + macos: Missing[WorkflowUsagePropBillablePropMacos] = Field( + default=UNSET, alias="MACOS" ) - dismiss_stale_reviews: bool = Field() - require_code_owner_reviews: bool = Field() - required_approving_review_count: Missing[int] = Field(le=6.0, default=UNSET) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it.", + windows: Missing[WorkflowUsagePropBillablePropWindows] = Field( + default=UNSET, alias="WINDOWS" ) -model_rebuild(ProtectedBranchPullRequestReview) +class WorkflowUsagePropBillablePropUbuntu(GitHubModel): + """WorkflowUsagePropBillablePropUbuntu""" + + total_ms: Missing[int] = Field(default=UNSET) + -__all__ = ("ProtectedBranchPullRequestReview",) +class WorkflowUsagePropBillablePropMacos(GitHubModel): + """WorkflowUsagePropBillablePropMacos""" + + total_ms: Missing[int] = Field(default=UNSET) + + +class WorkflowUsagePropBillablePropWindows(GitHubModel): + """WorkflowUsagePropBillablePropWindows""" + + total_ms: Missing[int] = Field(default=UNSET) + + +model_rebuild(WorkflowUsage) +model_rebuild(WorkflowUsagePropBillable) +model_rebuild(WorkflowUsagePropBillablePropUbuntu) +model_rebuild(WorkflowUsagePropBillablePropMacos) +model_rebuild(WorkflowUsagePropBillablePropWindows) + +__all__ = ( + "WorkflowUsage", + "WorkflowUsagePropBillable", + "WorkflowUsagePropBillablePropUbuntu", + "WorkflowUsagePropBillablePropMacos", + "WorkflowUsagePropBillablePropWindows", +) 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 170416371..468497ad7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0199.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0199.py @@ -9,60 +9,41 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0093 import Team from .group_0001 import SimpleUser -from .group_0006 import Integration -class ProtectedBranchPullRequestReviewPropDismissalRestrictions(GitHubModel): - """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" +class Activity(GitHubModel): + """Activity - users: Missing[List[SimpleUser]] = Field( - default=UNSET, description="The list of users with review dismissal access." - ) - teams: Missing[List[Team]] = Field( - default=UNSET, description="The list of teams with review dismissal access." - ) - apps: Missing[List[Union[Integration, None]]] = Field( - default=UNSET, description="The list of apps with review dismissal access." - ) - url: Missing[str] = Field(default=UNSET) - users_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - - -class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances(GitHubModel): - """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. + Activity """ - users: Missing[List[SimpleUser]] = Field( - default=UNSET, - description="The list of users allowed to bypass pull request requirements.", - ) - teams: Missing[List[Team]] = Field( - default=UNSET, - description="The list of teams allowed to bypass pull request requirements.", - ) - apps: Missing[List[Union[Integration, None]]] = Field( - default=UNSET, - description="The list of apps allowed to bypass pull request requirements.", + id: int = Field() + node_id: str = Field() + before: str = Field(description="The SHA of the commit before the activity.") + after: str = Field(description="The SHA of the commit after the activity.") + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." ) + timestamp: datetime = Field(description="The time when the activity occurred.") + activity_type: Literal[ + "push", + "force_push", + "branch_deletion", + "branch_creation", + "pr_merge", + "merge_queue_merge", + ] = Field(description="The type of the activity that was performed.") + actor: Union[None, SimpleUser] = Field() -model_rebuild(ProtectedBranchPullRequestReviewPropDismissalRestrictions) -model_rebuild(ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances) +model_rebuild(Activity) -__all__ = ( - "ProtectedBranchPullRequestReviewPropDismissalRestrictions", - "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", -) +__all__ = ("Activity",) 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 23aa15d33..245d14611 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0200.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0200.py @@ -9,139 +9,27 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class BranchRestrictionPolicy(GitHubModel): - """Branch Restriction Policy +class Autolink(GitHubModel): + """Autolink reference - Branch Restriction Policy + An autolink reference. """ - url: str = Field() - users_url: str = Field() - teams_url: str = Field() - apps_url: str = Field() - users: List[BranchRestrictionPolicyPropUsersItems] = Field() - teams: List[BranchRestrictionPolicyPropTeamsItems] = Field() - apps: List[BranchRestrictionPolicyPropAppsItems] = Field() - - -class BranchRestrictionPolicyPropUsersItems(GitHubModel): - """BranchRestrictionPolicyPropUsersItems""" - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - - -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) - description: Missing[str] = Field(default=UNSET) - external_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - permissions: Missing[BranchRestrictionPolicyPropAppsItemsPropPermissions] = Field( - default=UNSET + id: int = Field() + key_prefix: str = Field(description="The prefix of a key that is linkified.") + url_template: str = Field( + description="A template for the target URL that is generated if a key was found." + ) + is_alphanumeric: bool = Field( + description="Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters." ) - events: Missing[List[str]] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropAppsItemsPropOwner(GitHubModel): - """BranchRestrictionPolicyPropAppsItemsPropOwner""" - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - members_url: Missing[str] = Field(default=UNSET) - public_members_url: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - - -class BranchRestrictionPolicyPropAppsItemsPropPermissions(GitHubModel): - """BranchRestrictionPolicyPropAppsItemsPropPermissions""" - - metadata: Missing[str] = Field(default=UNSET) - contents: Missing[str] = Field(default=UNSET) - issues: Missing[str] = Field(default=UNSET) - single_file: Missing[str] = Field(default=UNSET) -model_rebuild(BranchRestrictionPolicy) -model_rebuild(BranchRestrictionPolicyPropUsersItems) -model_rebuild(BranchRestrictionPolicyPropTeamsItems) -model_rebuild(BranchRestrictionPolicyPropAppsItems) -model_rebuild(BranchRestrictionPolicyPropAppsItemsPropOwner) -model_rebuild(BranchRestrictionPolicyPropAppsItemsPropPermissions) +model_rebuild(Autolink) -__all__ = ( - "BranchRestrictionPolicy", - "BranchRestrictionPolicyPropUsersItems", - "BranchRestrictionPolicyPropTeamsItems", - "BranchRestrictionPolicyPropAppsItems", - "BranchRestrictionPolicyPropAppsItemsPropOwner", - "BranchRestrictionPolicyPropAppsItemsPropPermissions", -) +__all__ = ("Autolink",) 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 00171af37..3a5b5b6e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0201.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0201.py @@ -9,184 +9,25 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0200 import BranchRestrictionPolicy -from .group_0198 import ProtectedBranchPullRequestReview - -class BranchProtection(GitHubModel): - """Branch Protection +class CheckAutomatedSecurityFixes(GitHubModel): + """Check Automated Security Fixes - Branch Protection + Check Automated Security Fixes """ - url: Missing[str] = Field(default=UNSET) - enabled: Missing[bool] = Field(default=UNSET) - required_status_checks: Missing[ProtectedBranchRequiredStatusCheck] = Field( - default=UNSET, - title="Protected Branch Required Status Check", - description="Protected Branch Required Status Check", - ) - enforce_admins: Missing[ProtectedBranchAdminEnforced] = Field( - default=UNSET, - title="Protected Branch Admin Enforced", - description="Protected Branch Admin Enforced", - ) - required_pull_request_reviews: Missing[ProtectedBranchPullRequestReview] = Field( - default=UNSET, - title="Protected Branch Pull Request Review", - description="Protected Branch Pull Request Review", - ) - restrictions: Missing[BranchRestrictionPolicy] = Field( - default=UNSET, - title="Branch Restriction Policy", - description="Branch Restriction Policy", - ) - required_linear_history: Missing[BranchProtectionPropRequiredLinearHistory] = Field( - default=UNSET - ) - allow_force_pushes: Missing[BranchProtectionPropAllowForcePushes] = Field( - default=UNSET + enabled: bool = Field( + description="Whether automated security fixes are enabled for the repository." ) - allow_deletions: Missing[BranchProtectionPropAllowDeletions] = Field(default=UNSET) - block_creations: Missing[BranchProtectionPropBlockCreations] = Field(default=UNSET) - required_conversation_resolution: Missing[ - BranchProtectionPropRequiredConversationResolution - ] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - protection_url: Missing[str] = Field(default=UNSET) - required_signatures: Missing[BranchProtectionPropRequiredSignatures] = Field( - default=UNSET + paused: bool = Field( + description="Whether automated security fixes are paused for the repository." ) - lock_branch: Missing[BranchProtectionPropLockBranch] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", - ) - allow_fork_syncing: Missing[BranchProtectionPropAllowForkSyncing] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", - ) - - -class ProtectedBranchAdminEnforced(GitHubModel): - """Protected Branch Admin Enforced - - Protected Branch Admin Enforced - """ - - url: str = Field() - enabled: bool = Field() - - -class BranchProtectionPropRequiredLinearHistory(GitHubModel): - """BranchProtectionPropRequiredLinearHistory""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowForcePushes(GitHubModel): - """BranchProtectionPropAllowForcePushes""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowDeletions(GitHubModel): - """BranchProtectionPropAllowDeletions""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropBlockCreations(GitHubModel): - """BranchProtectionPropBlockCreations""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropRequiredConversationResolution(GitHubModel): - """BranchProtectionPropRequiredConversationResolution""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropRequiredSignatures(GitHubModel): - """BranchProtectionPropRequiredSignatures""" - - url: str = Field() - enabled: bool = Field() - - -class BranchProtectionPropLockBranch(GitHubModel): - """BranchProtectionPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowForkSyncing(GitHubModel): - """BranchProtectionPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchRequiredStatusCheck(GitHubModel): - """Protected Branch Required Status Check - - Protected Branch Required Status Check - """ - - url: Missing[str] = Field(default=UNSET) - enforcement_level: Missing[str] = Field(default=UNSET) - contexts: List[str] = Field() - checks: List[ProtectedBranchRequiredStatusCheckPropChecksItems] = Field() - contexts_url: Missing[str] = Field(default=UNSET) - strict: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchRequiredStatusCheckPropChecksItems(GitHubModel): - """ProtectedBranchRequiredStatusCheckPropChecksItems""" - - context: str = Field() - app_id: Union[int, None] = Field() -model_rebuild(BranchProtection) -model_rebuild(ProtectedBranchAdminEnforced) -model_rebuild(BranchProtectionPropRequiredLinearHistory) -model_rebuild(BranchProtectionPropAllowForcePushes) -model_rebuild(BranchProtectionPropAllowDeletions) -model_rebuild(BranchProtectionPropBlockCreations) -model_rebuild(BranchProtectionPropRequiredConversationResolution) -model_rebuild(BranchProtectionPropRequiredSignatures) -model_rebuild(BranchProtectionPropLockBranch) -model_rebuild(BranchProtectionPropAllowForkSyncing) -model_rebuild(ProtectedBranchRequiredStatusCheck) -model_rebuild(ProtectedBranchRequiredStatusCheckPropChecksItems) +model_rebuild(CheckAutomatedSecurityFixes) -__all__ = ( - "BranchProtection", - "ProtectedBranchAdminEnforced", - "BranchProtectionPropRequiredLinearHistory", - "BranchProtectionPropAllowForcePushes", - "BranchProtectionPropAllowDeletions", - "BranchProtectionPropBlockCreations", - "BranchProtectionPropRequiredConversationResolution", - "BranchProtectionPropRequiredSignatures", - "BranchProtectionPropLockBranch", - "BranchProtectionPropAllowForkSyncing", - "ProtectedBranchRequiredStatusCheck", - "ProtectedBranchRequiredStatusCheckPropChecksItems", -) +__all__ = ("CheckAutomatedSecurityFixes",) 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 a9d3b0c81..0cb7eafa8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0202.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0202.py @@ -15,35 +15,37 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0201 import BranchProtection +from .group_0203 import ( + ProtectedBranchPullRequestReviewPropDismissalRestrictions, + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, +) -class ShortBranch(GitHubModel): - """Short Branch +class ProtectedBranchPullRequestReview(GitHubModel): + """Protected Branch Pull Request Review - Short Branch + Protected Branch Pull Request Review """ - name: str = Field() - commit: ShortBranchPropCommit = Field() - protected: bool = Field() - protection: Missing[BranchProtection] = Field( - default=UNSET, title="Branch Protection", description="Branch Protection" + url: Missing[str] = Field(default=UNSET) + dismissal_restrictions: Missing[ + ProtectedBranchPullRequestReviewPropDismissalRestrictions + ] = Field(default=UNSET) + bypass_pull_request_allowances: Missing[ + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances + ] = Field( + default=UNSET, + description="Allow specific users, teams, or apps to bypass pull request requirements.", + ) + dismiss_stale_reviews: bool = Field() + require_code_owner_reviews: bool = Field() + required_approving_review_count: Missing[int] = Field(le=6.0, default=UNSET) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it.", ) - protection_url: Missing[str] = Field(default=UNSET) - - -class ShortBranchPropCommit(GitHubModel): - """ShortBranchPropCommit""" - - sha: str = Field() - url: str = Field() -model_rebuild(ShortBranch) -model_rebuild(ShortBranchPropCommit) +model_rebuild(ProtectedBranchPullRequestReview) -__all__ = ( - "ShortBranch", - "ShortBranchPropCommit", -) +__all__ = ("ProtectedBranchPullRequestReview",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0203.py b/githubkit/versions/ghec_v2022_11_28/models/group_0203.py index 8ddc071e1..13e3b43b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0203.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0203.py @@ -9,24 +9,60 @@ from __future__ import annotations +from typing import List, Union + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0048 import Team +from .group_0001 import SimpleUser +from .group_0006 import Integration + + +class ProtectedBranchPullRequestReviewPropDismissalRestrictions(GitHubModel): + """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" + + users: Missing[List[SimpleUser]] = Field( + default=UNSET, description="The list of users with review dismissal access." + ) + teams: Missing[List[Team]] = Field( + default=UNSET, description="The list of teams with review dismissal access." + ) + apps: Missing[List[Union[Integration, None]]] = Field( + default=UNSET, description="The list of apps with review dismissal access." + ) + url: Missing[str] = Field(default=UNSET) + users_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + -class GitUser(GitHubModel): - """Git User +class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances(GitHubModel): + """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances - Metaproperties for Git author/committer information. + Allow specific users, teams, or apps to bypass pull request requirements. """ - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) - date: Missing[str] = Field(default=UNSET) + users: Missing[List[SimpleUser]] = Field( + default=UNSET, + description="The list of users allowed to bypass pull request requirements.", + ) + teams: Missing[List[Team]] = Field( + default=UNSET, + description="The list of teams allowed to bypass pull request requirements.", + ) + apps: Missing[List[Union[Integration, None]]] = Field( + default=UNSET, + description="The list of apps allowed to bypass pull request requirements.", + ) -model_rebuild(GitUser) +model_rebuild(ProtectedBranchPullRequestReviewPropDismissalRestrictions) +model_rebuild(ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances) -__all__ = ("GitUser",) +__all__ = ( + "ProtectedBranchPullRequestReviewPropDismissalRestrictions", + "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", +) 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 03ad6635a..23aa15d33 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0204.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0204.py @@ -9,22 +9,139 @@ from __future__ import annotations -from typing import Union +from typing import List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class Verification(GitHubModel): - """Verification""" +class BranchRestrictionPolicy(GitHubModel): + """Branch Restriction Policy - verified: bool = Field() - reason: str = Field() - payload: Union[str, None] = Field() - signature: Union[str, None] = Field() + Branch Restriction Policy + """ + url: str = Field() + users_url: str = Field() + teams_url: str = Field() + apps_url: str = Field() + users: List[BranchRestrictionPolicyPropUsersItems] = Field() + teams: List[BranchRestrictionPolicyPropTeamsItems] = Field() + apps: List[BranchRestrictionPolicyPropAppsItems] = Field() -model_rebuild(Verification) -__all__ = ("Verification",) +class BranchRestrictionPolicyPropUsersItems(GitHubModel): + """BranchRestrictionPolicyPropUsersItems""" + + login: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + + +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) + 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) + + +class BranchRestrictionPolicyPropAppsItemsPropPermissions(GitHubModel): + """BranchRestrictionPolicyPropAppsItemsPropPermissions""" + + metadata: Missing[str] = Field(default=UNSET) + contents: Missing[str] = Field(default=UNSET) + issues: Missing[str] = Field(default=UNSET) + single_file: Missing[str] = Field(default=UNSET) + + +model_rebuild(BranchRestrictionPolicy) +model_rebuild(BranchRestrictionPolicyPropUsersItems) +model_rebuild(BranchRestrictionPolicyPropTeamsItems) +model_rebuild(BranchRestrictionPolicyPropAppsItems) +model_rebuild(BranchRestrictionPolicyPropAppsItemsPropOwner) +model_rebuild(BranchRestrictionPolicyPropAppsItemsPropPermissions) + +__all__ = ( + "BranchRestrictionPolicy", + "BranchRestrictionPolicyPropUsersItems", + "BranchRestrictionPolicyPropTeamsItems", + "BranchRestrictionPolicyPropAppsItems", + "BranchRestrictionPolicyPropAppsItemsPropOwner", + "BranchRestrictionPolicyPropAppsItemsPropPermissions", +) 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 ce82b54ec..fe4081deb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0205.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0205.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from pydantic import Field @@ -17,28 +17,176 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0204 import BranchRestrictionPolicy +from .group_0202 import ProtectedBranchPullRequestReview -class DiffEntry(GitHubModel): - """Diff Entry - Diff Entry +class BranchProtection(GitHubModel): + """Branch Protection + + Branch Protection + """ + + url: Missing[str] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) + required_status_checks: Missing[ProtectedBranchRequiredStatusCheck] = Field( + default=UNSET, + title="Protected Branch Required Status Check", + description="Protected Branch Required Status Check", + ) + enforce_admins: Missing[ProtectedBranchAdminEnforced] = Field( + default=UNSET, + title="Protected Branch Admin Enforced", + description="Protected Branch Admin Enforced", + ) + required_pull_request_reviews: Missing[ProtectedBranchPullRequestReview] = Field( + default=UNSET, + title="Protected Branch Pull Request Review", + description="Protected Branch Pull Request Review", + ) + restrictions: Missing[BranchRestrictionPolicy] = Field( + default=UNSET, + title="Branch Restriction Policy", + description="Branch Restriction Policy", + ) + required_linear_history: Missing[BranchProtectionPropRequiredLinearHistory] = Field( + default=UNSET + ) + allow_force_pushes: Missing[BranchProtectionPropAllowForcePushes] = Field( + default=UNSET + ) + allow_deletions: Missing[BranchProtectionPropAllowDeletions] = Field(default=UNSET) + block_creations: Missing[BranchProtectionPropBlockCreations] = Field(default=UNSET) + required_conversation_resolution: Missing[ + BranchProtectionPropRequiredConversationResolution + ] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + protection_url: Missing[str] = Field(default=UNSET) + required_signatures: Missing[BranchProtectionPropRequiredSignatures] = Field( + default=UNSET + ) + lock_branch: Missing[BranchProtectionPropLockBranch] = Field( + default=UNSET, + description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", + ) + allow_fork_syncing: Missing[BranchProtectionPropAllowForkSyncing] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", + ) + + +class ProtectedBranchAdminEnforced(GitHubModel): + """Protected Branch Admin Enforced + + Protected Branch Admin Enforced + """ + + url: str = Field() + enabled: bool = Field() + + +class BranchProtectionPropRequiredLinearHistory(GitHubModel): + """BranchProtectionPropRequiredLinearHistory""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropAllowForcePushes(GitHubModel): + """BranchProtectionPropAllowForcePushes""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropAllowDeletions(GitHubModel): + """BranchProtectionPropAllowDeletions""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropBlockCreations(GitHubModel): + """BranchProtectionPropBlockCreations""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropRequiredConversationResolution(GitHubModel): + """BranchProtectionPropRequiredConversationResolution""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropRequiredSignatures(GitHubModel): + """BranchProtectionPropRequiredSignatures""" + + url: str = Field() + enabled: bool = Field() + + +class BranchProtectionPropLockBranch(GitHubModel): + """BranchProtectionPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. """ - sha: str = Field() - filename: str = Field() - status: Literal[ - "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" - ] = Field() - additions: int = Field() - deletions: int = Field() - changes: int = Field() - blob_url: str = Field() - raw_url: str = Field() - contents_url: str = Field() - patch: Missing[str] = Field(default=UNSET) - previous_filename: Missing[str] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) + + +class BranchProtectionPropAllowForkSyncing(GitHubModel): + """BranchProtectionPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchRequiredStatusCheck(GitHubModel): + """Protected Branch Required Status Check + + Protected Branch Required Status Check + """ + + url: Missing[str] = Field(default=UNSET) + enforcement_level: Missing[str] = Field(default=UNSET) + contexts: List[str] = Field() + checks: List[ProtectedBranchRequiredStatusCheckPropChecksItems] = Field() + contexts_url: Missing[str] = Field(default=UNSET) + strict: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchRequiredStatusCheckPropChecksItems(GitHubModel): + """ProtectedBranchRequiredStatusCheckPropChecksItems""" + + context: str = Field() + app_id: Union[int, None] = Field() -model_rebuild(DiffEntry) +model_rebuild(BranchProtection) +model_rebuild(ProtectedBranchAdminEnforced) +model_rebuild(BranchProtectionPropRequiredLinearHistory) +model_rebuild(BranchProtectionPropAllowForcePushes) +model_rebuild(BranchProtectionPropAllowDeletions) +model_rebuild(BranchProtectionPropBlockCreations) +model_rebuild(BranchProtectionPropRequiredConversationResolution) +model_rebuild(BranchProtectionPropRequiredSignatures) +model_rebuild(BranchProtectionPropLockBranch) +model_rebuild(BranchProtectionPropAllowForkSyncing) +model_rebuild(ProtectedBranchRequiredStatusCheck) +model_rebuild(ProtectedBranchRequiredStatusCheckPropChecksItems) -__all__ = ("DiffEntry",) +__all__ = ( + "BranchProtection", + "ProtectedBranchAdminEnforced", + "BranchProtectionPropRequiredLinearHistory", + "BranchProtectionPropAllowForcePushes", + "BranchProtectionPropAllowDeletions", + "BranchProtectionPropBlockCreations", + "BranchProtectionPropRequiredConversationResolution", + "BranchProtectionPropRequiredSignatures", + "BranchProtectionPropLockBranch", + "BranchProtectionPropAllowForkSyncing", + "ProtectedBranchRequiredStatusCheck", + "ProtectedBranchRequiredStatusCheckPropChecksItems", +) 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 131823986..c1dc9aaf8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0206.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0206.py @@ -9,60 +9,41 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0205 import DiffEntry -from .group_0001 import SimpleUser -from .group_0207 import CommitPropCommit +from .group_0205 import BranchProtection -class Commit(GitHubModel): - """Commit +class ShortBranch(GitHubModel): + """Short Branch - Commit + Short Branch """ - url: str = Field() - sha: str = Field() - node_id: str = Field() - html_url: str = Field() - comments_url: str = Field() - commit: CommitPropCommit = Field() - author: Union[None, SimpleUser] = Field() - committer: Union[None, SimpleUser] = Field() - parents: List[CommitPropParentsItems] = Field() - stats: Missing[CommitPropStats] = Field(default=UNSET) - files: Missing[List[DiffEntry]] = Field(default=UNSET) + name: str = Field() + commit: ShortBranchPropCommit = Field() + protected: bool = Field() + protection: Missing[BranchProtection] = Field( + default=UNSET, title="Branch Protection", description="Branch Protection" + ) + protection_url: Missing[str] = Field(default=UNSET) -class CommitPropParentsItems(GitHubModel): - """CommitPropParentsItems""" +class ShortBranchPropCommit(GitHubModel): + """ShortBranchPropCommit""" sha: str = Field() url: str = Field() - html_url: Missing[str] = Field(default=UNSET) - - -class CommitPropStats(GitHubModel): - """CommitPropStats""" - - additions: Missing[int] = Field(default=UNSET) - deletions: Missing[int] = Field(default=UNSET) - total: Missing[int] = Field(default=UNSET) -model_rebuild(Commit) -model_rebuild(CommitPropParentsItems) -model_rebuild(CommitPropStats) +model_rebuild(ShortBranch) +model_rebuild(ShortBranchPropCommit) __all__ = ( - "Commit", - "CommitPropParentsItems", - "CommitPropStats", + "ShortBranch", + "ShortBranchPropCommit", ) 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 9555220d7..8ddc071e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0207.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0207.py @@ -9,41 +9,24 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0203 import GitUser -from .group_0204 import Verification - - -class CommitPropCommit(GitHubModel): - """CommitPropCommit""" - - url: str = Field() - author: Union[None, GitUser] = Field() - committer: Union[None, GitUser] = Field() - message: str = Field() - comment_count: int = Field() - tree: CommitPropCommitPropTree = Field() - verification: Missing[Verification] = Field(default=UNSET, title="Verification") +class GitUser(GitHubModel): + """Git User -class CommitPropCommitPropTree(GitHubModel): - """CommitPropCommitPropTree""" + Metaproperties for Git author/committer information. + """ - sha: str = Field() - url: str = Field() + name: Missing[str] = Field(default=UNSET) + email: Missing[str] = Field(default=UNSET) + date: Missing[str] = Field(default=UNSET) -model_rebuild(CommitPropCommit) -model_rebuild(CommitPropCommitPropTree) +model_rebuild(GitUser) -__all__ = ( - "CommitPropCommit", - "CommitPropCommitPropTree", -) +__all__ = ("GitUser",) 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 73349da87..03ad6635a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0208.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0208.py @@ -9,45 +9,22 @@ from __future__ import annotations +from typing import Union + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0206 import Commit -from .group_0201 import BranchProtection - - -class BranchWithProtection(GitHubModel): - """Branch With Protection - - Branch With Protection - """ - - name: str = Field() - commit: Commit = Field(title="Commit", description="Commit") - links: BranchWithProtectionPropLinks = Field(alias="_links") - protected: bool = Field() - protection: BranchProtection = Field( - title="Branch Protection", description="Branch Protection" - ) - protection_url: str = Field() - pattern: Missing[str] = Field(default=UNSET) - required_approving_review_count: Missing[int] = Field(default=UNSET) - -class BranchWithProtectionPropLinks(GitHubModel): - """BranchWithProtectionPropLinks""" +class Verification(GitHubModel): + """Verification""" - html: str = Field() - self_: str = Field(alias="self") + verified: bool = Field() + reason: str = Field() + payload: Union[str, None] = Field() + signature: Union[str, None] = Field() -model_rebuild(BranchWithProtection) -model_rebuild(BranchWithProtectionPropLinks) +model_rebuild(Verification) -__all__ = ( - "BranchWithProtection", - "BranchWithProtectionPropLinks", -) +__all__ = ("Verification",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0209.py b/githubkit/versions/ghec_v2022_11_28/models/group_0209.py index e303fb6f7..ce82b54ec 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 List, Union +from typing import Literal from pydantic import Field @@ -17,161 +17,28 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0200 import BranchRestrictionPolicy -from .group_0210 import ProtectedBranchPropRequiredPullRequestReviews +class DiffEntry(GitHubModel): + """Diff Entry -class ProtectedBranch(GitHubModel): - """Protected Branch - - Branch protections protect branches - """ - - url: str = Field() - required_status_checks: Missing[StatusCheckPolicy] = Field( - default=UNSET, title="Status Check Policy", description="Status Check Policy" - ) - required_pull_request_reviews: Missing[ - ProtectedBranchPropRequiredPullRequestReviews - ] = Field(default=UNSET) - required_signatures: Missing[ProtectedBranchPropRequiredSignatures] = Field( - default=UNSET - ) - enforce_admins: Missing[ProtectedBranchPropEnforceAdmins] = Field(default=UNSET) - required_linear_history: Missing[ProtectedBranchPropRequiredLinearHistory] = Field( - default=UNSET - ) - allow_force_pushes: Missing[ProtectedBranchPropAllowForcePushes] = Field( - default=UNSET - ) - allow_deletions: Missing[ProtectedBranchPropAllowDeletions] = Field(default=UNSET) - restrictions: Missing[BranchRestrictionPolicy] = Field( - default=UNSET, - title="Branch Restriction Policy", - description="Branch Restriction Policy", - ) - required_conversation_resolution: Missing[ - ProtectedBranchPropRequiredConversationResolution - ] = Field(default=UNSET) - block_creations: Missing[ProtectedBranchPropBlockCreations] = Field(default=UNSET) - lock_branch: Missing[ProtectedBranchPropLockBranch] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", - ) - allow_fork_syncing: Missing[ProtectedBranchPropAllowForkSyncing] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", - ) - - -class ProtectedBranchPropRequiredSignatures(GitHubModel): - """ProtectedBranchPropRequiredSignatures""" - - url: str = Field() - enabled: bool = Field() - - -class ProtectedBranchPropEnforceAdmins(GitHubModel): - """ProtectedBranchPropEnforceAdmins""" - - url: str = Field() - enabled: bool = Field() - - -class ProtectedBranchPropRequiredLinearHistory(GitHubModel): - """ProtectedBranchPropRequiredLinearHistory""" - - enabled: bool = Field() - - -class ProtectedBranchPropAllowForcePushes(GitHubModel): - """ProtectedBranchPropAllowForcePushes""" - - enabled: bool = Field() - - -class ProtectedBranchPropAllowDeletions(GitHubModel): - """ProtectedBranchPropAllowDeletions""" - - enabled: bool = Field() - - -class ProtectedBranchPropRequiredConversationResolution(GitHubModel): - """ProtectedBranchPropRequiredConversationResolution""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchPropBlockCreations(GitHubModel): - """ProtectedBranchPropBlockCreations""" - - enabled: bool = Field() - - -class ProtectedBranchPropLockBranch(GitHubModel): - """ProtectedBranchPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchPropAllowForkSyncing(GitHubModel): - """ProtectedBranchPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class StatusCheckPolicy(GitHubModel): - """Status Check Policy - - Status Check Policy + Diff Entry """ - url: str = Field() - strict: bool = Field() - contexts: List[str] = Field() - checks: List[StatusCheckPolicyPropChecksItems] = Field() - contexts_url: str = Field() - - -class StatusCheckPolicyPropChecksItems(GitHubModel): - """StatusCheckPolicyPropChecksItems""" - - context: str = Field() - app_id: Union[int, None] = Field() + sha: str = Field() + filename: str = Field() + status: Literal[ + "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" + ] = Field() + additions: int = Field() + deletions: int = Field() + changes: int = Field() + blob_url: str = Field() + raw_url: str = Field() + contents_url: str = Field() + patch: Missing[str] = Field(default=UNSET) + previous_filename: Missing[str] = Field(default=UNSET) -model_rebuild(ProtectedBranch) -model_rebuild(ProtectedBranchPropRequiredSignatures) -model_rebuild(ProtectedBranchPropEnforceAdmins) -model_rebuild(ProtectedBranchPropRequiredLinearHistory) -model_rebuild(ProtectedBranchPropAllowForcePushes) -model_rebuild(ProtectedBranchPropAllowDeletions) -model_rebuild(ProtectedBranchPropRequiredConversationResolution) -model_rebuild(ProtectedBranchPropBlockCreations) -model_rebuild(ProtectedBranchPropLockBranch) -model_rebuild(ProtectedBranchPropAllowForkSyncing) -model_rebuild(StatusCheckPolicy) -model_rebuild(StatusCheckPolicyPropChecksItems) +model_rebuild(DiffEntry) -__all__ = ( - "ProtectedBranch", - "ProtectedBranchPropRequiredSignatures", - "ProtectedBranchPropEnforceAdmins", - "ProtectedBranchPropRequiredLinearHistory", - "ProtectedBranchPropAllowForcePushes", - "ProtectedBranchPropAllowDeletions", - "ProtectedBranchPropRequiredConversationResolution", - "ProtectedBranchPropBlockCreations", - "ProtectedBranchPropLockBranch", - "ProtectedBranchPropAllowForkSyncing", - "StatusCheckPolicy", - "StatusCheckPolicyPropChecksItems", -) +__all__ = ("DiffEntry",) 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 d0d3c3535..81a5f20ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0210.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0210.py @@ -9,37 +9,69 @@ from __future__ import annotations +from typing import List, Union + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0211 import ( - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, -) +from .group_0209 import DiffEntry +from .group_0001 import SimpleUser +from .group_0211 import CommitPropCommit + +class Commit(GitHubModel): + """Commit -class ProtectedBranchPropRequiredPullRequestReviews(GitHubModel): - """ProtectedBranchPropRequiredPullRequestReviews""" + Commit + """ url: str = Field() - dismiss_stale_reviews: Missing[bool] = Field(default=UNSET) - require_code_owner_reviews: Missing[bool] = Field(default=UNSET) - required_approving_review_count: Missing[int] = Field(default=UNSET) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it.", - ) - dismissal_restrictions: Missing[ - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions - ] = Field(default=UNSET) - bypass_pull_request_allowances: Missing[ - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances - ] = Field(default=UNSET) - - -model_rebuild(ProtectedBranchPropRequiredPullRequestReviews) - -__all__ = ("ProtectedBranchPropRequiredPullRequestReviews",) + sha: str = Field() + node_id: str = Field() + html_url: str = Field() + comments_url: str = Field() + commit: CommitPropCommit = Field() + author: Union[SimpleUser, EmptyObject, None] = Field() + committer: Union[SimpleUser, EmptyObject, None] = Field() + parents: List[CommitPropParentsItems] = Field() + stats: Missing[CommitPropStats] = Field(default=UNSET) + files: Missing[List[DiffEntry]] = Field(default=UNSET) + + +class EmptyObject(GitHubModel): + """Empty Object + + An object without any properties. + """ + + +class CommitPropParentsItems(GitHubModel): + """CommitPropParentsItems""" + + sha: str = Field() + url: str = Field() + html_url: Missing[str] = Field(default=UNSET) + + +class CommitPropStats(GitHubModel): + """CommitPropStats""" + + additions: Missing[int] = Field(default=UNSET) + deletions: Missing[int] = Field(default=UNSET) + total: Missing[int] = Field(default=UNSET) + + +model_rebuild(Commit) +model_rebuild(EmptyObject) +model_rebuild(CommitPropParentsItems) +model_rebuild(CommitPropStats) + +__all__ = ( + "Commit", + "EmptyObject", + "CommitPropParentsItems", + "CommitPropStats", +) 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 6b5ab0ed8..652a51a9c 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 List, Union +from typing import Union from pydantic import Field @@ -17,40 +17,33 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0093 import Team -from .group_0001 import SimpleUser -from .group_0006 import Integration +from .group_0207 import GitUser +from .group_0208 import Verification -class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions( - GitHubModel -): - """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" +class CommitPropCommit(GitHubModel): + """CommitPropCommit""" url: str = Field() - users_url: str = Field() - teams_url: str = Field() - users: List[SimpleUser] = Field() - teams: List[Team] = Field() - apps: Missing[List[Union[Integration, None]]] = Field(default=UNSET) + author: Union[None, GitUser] = Field() + committer: Union[None, GitUser] = Field() + message: str = Field() + comment_count: int = Field() + tree: CommitPropCommitPropTree = Field() + verification: Missing[Verification] = Field(default=UNSET, title="Verification") -class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( - GitHubModel -): - """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" +class CommitPropCommitPropTree(GitHubModel): + """CommitPropCommitPropTree""" - users: List[SimpleUser] = Field() - teams: List[Team] = Field() - apps: Missing[List[Union[Integration, None]]] = Field(default=UNSET) + sha: str = Field() + url: str = Field() -model_rebuild(ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions) -model_rebuild( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances -) +model_rebuild(CommitPropCommit) +model_rebuild(CommitPropCommitPropTree) __all__ = ( - "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", - "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "CommitPropCommit", + "CommitPropCommitPropTree", ) 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 54d28e22f..a5b946f2f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0212.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0212.py @@ -9,49 +9,45 @@ from __future__ import annotations -from typing import Union -from datetime import datetime - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0006 import Integration +from .group_0210 import Commit +from .group_0205 import BranchProtection -class DeploymentSimple(GitHubModel): - """Deployment +class BranchWithProtection(GitHubModel): + """Branch With Protection - A deployment created as the result of an Actions check run from a workflow that - references an environment + Branch With Protection """ - url: str = Field() - id: int = Field(description="Unique identifier of the deployment") - node_id: str = Field() - task: str = Field(description="Parameter to specify a task to execute") - original_environment: Missing[str] = Field(default=UNSET) - environment: str = Field(description="Name for the target deployment environment.") - description: Union[str, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - statuses_url: str = Field() - repository_url: str = Field() - transient_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", - ) - production_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is one that end-users directly interact with. Default: false.", - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET + name: str = Field() + commit: Commit = Field(title="Commit", description="Commit") + links: BranchWithProtectionPropLinks = Field(alias="_links") + protected: bool = Field() + protection: BranchProtection = Field( + title="Branch Protection", description="Branch Protection" ) + protection_url: str = Field() + pattern: Missing[str] = Field(default=UNSET) + required_approving_review_count: Missing[int] = Field(default=UNSET) + + +class BranchWithProtectionPropLinks(GitHubModel): + """BranchWithProtectionPropLinks""" + + html: str = Field() + self_: str = Field(alias="self") -model_rebuild(DeploymentSimple) +model_rebuild(BranchWithProtection) +model_rebuild(BranchWithProtectionPropLinks) -__all__ = ("DeploymentSimple",) +__all__ = ( + "BranchWithProtection", + "BranchWithProtectionPropLinks", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0213.py b/githubkit/versions/ghec_v2022_11_28/models/group_0213.py index 4c2f3a0c3..85b5530aa 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 List, Union, Literal +from typing import List, Union from pydantic import Field @@ -18,79 +17,161 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0006 import Integration -from .group_0212 import DeploymentSimple -from .group_0185 import PullRequestMinimal +from .group_0204 import BranchRestrictionPolicy +from .group_0214 import ProtectedBranchPropRequiredPullRequestReviews -class CheckRun(GitHubModel): - """CheckRun +class ProtectedBranch(GitHubModel): + """Protected Branch - A check performed on the code of a given code change + Branch protections protect branches """ - id: int = Field(description="The id of the check.") - head_sha: str = Field(description="The SHA of the commit that is being checked.") - node_id: str = Field() - external_id: Union[str, None] = Field() url: str = Field() - html_url: Union[str, None] = Field() - details_url: Union[str, None] = Field() - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ] = Field( - description="The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs." + required_status_checks: Missing[StatusCheckPolicy] = Field( + default=UNSET, title="Status Check Policy", description="Status Check Policy" ) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] = Field() - started_at: Union[datetime, None] = Field() - completed_at: Union[datetime, None] = Field() - output: CheckRunPropOutput = Field() - name: str = Field(description="The name of the check.") - check_suite: Union[CheckRunPropCheckSuite, None] = Field() - app: Union[None, Integration, None] = Field() - pull_requests: List[PullRequestMinimal] = Field( - description="Pull requests that are open with a `head_sha` or `head_branch` that matches the check. The returned pull requests do not necessarily indicate pull requests that triggered the check." + required_pull_request_reviews: Missing[ + ProtectedBranchPropRequiredPullRequestReviews + ] = Field(default=UNSET) + required_signatures: Missing[ProtectedBranchPropRequiredSignatures] = Field( + default=UNSET ) - deployment: Missing[DeploymentSimple] = Field( + enforce_admins: Missing[ProtectedBranchPropEnforceAdmins] = Field(default=UNSET) + required_linear_history: Missing[ProtectedBranchPropRequiredLinearHistory] = Field( + default=UNSET + ) + allow_force_pushes: Missing[ProtectedBranchPropAllowForcePushes] = Field( + default=UNSET + ) + allow_deletions: Missing[ProtectedBranchPropAllowDeletions] = Field(default=UNSET) + restrictions: Missing[BranchRestrictionPolicy] = Field( + default=UNSET, + title="Branch Restriction Policy", + description="Branch Restriction Policy", + ) + required_conversation_resolution: Missing[ + ProtectedBranchPropRequiredConversationResolution + ] = Field(default=UNSET) + block_creations: Missing[ProtectedBranchPropBlockCreations] = Field(default=UNSET) + lock_branch: Missing[ProtectedBranchPropLockBranch] = Field( + default=UNSET, + description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", + ) + allow_fork_syncing: Missing[ProtectedBranchPropAllowForkSyncing] = Field( default=UNSET, - title="Deployment", - description="A deployment created as the result of an Actions check run from a workflow that references an environment", + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", ) -class CheckRunPropOutput(GitHubModel): - """CheckRunPropOutput""" +class ProtectedBranchPropRequiredSignatures(GitHubModel): + """ProtectedBranchPropRequiredSignatures""" + + url: str = Field() + enabled: bool = Field() + + +class ProtectedBranchPropEnforceAdmins(GitHubModel): + """ProtectedBranchPropEnforceAdmins""" + + url: str = Field() + enabled: bool = Field() + + +class ProtectedBranchPropRequiredLinearHistory(GitHubModel): + """ProtectedBranchPropRequiredLinearHistory""" + + enabled: bool = Field() + + +class ProtectedBranchPropAllowForcePushes(GitHubModel): + """ProtectedBranchPropAllowForcePushes""" + + enabled: bool = Field() + + +class ProtectedBranchPropAllowDeletions(GitHubModel): + """ProtectedBranchPropAllowDeletions""" + + enabled: bool = Field() - title: Union[str, None] = Field() - summary: Union[str, None] = Field() - text: Union[str, None] = Field() - annotations_count: int = Field() - annotations_url: str = Field() + +class ProtectedBranchPropRequiredConversationResolution(GitHubModel): + """ProtectedBranchPropRequiredConversationResolution""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchPropBlockCreations(GitHubModel): + """ProtectedBranchPropBlockCreations""" + + enabled: bool = Field() + + +class ProtectedBranchPropLockBranch(GitHubModel): + """ProtectedBranchPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchPropAllowForkSyncing(GitHubModel): + """ProtectedBranchPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: Missing[bool] = Field(default=UNSET) + + +class StatusCheckPolicy(GitHubModel): + """Status Check Policy + + Status Check Policy + """ + + url: str = Field() + strict: bool = Field() + contexts: List[str] = Field() + checks: List[StatusCheckPolicyPropChecksItems] = Field() + contexts_url: str = Field() -class CheckRunPropCheckSuite(GitHubModel): - """CheckRunPropCheckSuite""" +class StatusCheckPolicyPropChecksItems(GitHubModel): + """StatusCheckPolicyPropChecksItems""" - id: int = Field() + context: str = Field() + app_id: Union[int, None] = Field() -model_rebuild(CheckRun) -model_rebuild(CheckRunPropOutput) -model_rebuild(CheckRunPropCheckSuite) +model_rebuild(ProtectedBranch) +model_rebuild(ProtectedBranchPropRequiredSignatures) +model_rebuild(ProtectedBranchPropEnforceAdmins) +model_rebuild(ProtectedBranchPropRequiredLinearHistory) +model_rebuild(ProtectedBranchPropAllowForcePushes) +model_rebuild(ProtectedBranchPropAllowDeletions) +model_rebuild(ProtectedBranchPropRequiredConversationResolution) +model_rebuild(ProtectedBranchPropBlockCreations) +model_rebuild(ProtectedBranchPropLockBranch) +model_rebuild(ProtectedBranchPropAllowForkSyncing) +model_rebuild(StatusCheckPolicy) +model_rebuild(StatusCheckPolicyPropChecksItems) __all__ = ( - "CheckRun", - "CheckRunPropOutput", - "CheckRunPropCheckSuite", + "ProtectedBranch", + "ProtectedBranchPropRequiredSignatures", + "ProtectedBranchPropEnforceAdmins", + "ProtectedBranchPropRequiredLinearHistory", + "ProtectedBranchPropAllowForcePushes", + "ProtectedBranchPropAllowDeletions", + "ProtectedBranchPropRequiredConversationResolution", + "ProtectedBranchPropBlockCreations", + "ProtectedBranchPropLockBranch", + "ProtectedBranchPropAllowForkSyncing", + "StatusCheckPolicy", + "StatusCheckPolicyPropChecksItems", ) 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 2dfb0cd0e..b39bde374 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0214.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0214.py @@ -9,31 +9,37 @@ from __future__ import annotations -from typing import Union - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0215 import ( + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, +) -class CheckAnnotation(GitHubModel): - """Check Annotation - Check Annotation - """ +class ProtectedBranchPropRequiredPullRequestReviews(GitHubModel): + """ProtectedBranchPropRequiredPullRequestReviews""" - path: str = Field() - start_line: int = Field() - end_line: int = Field() - start_column: Union[int, None] = Field() - end_column: Union[int, None] = Field() - annotation_level: Union[str, None] = Field() - title: Union[str, None] = Field() - message: Union[str, None] = Field() - raw_details: Union[str, None] = Field() - blob_href: str = Field() + url: str = Field() + dismiss_stale_reviews: Missing[bool] = Field(default=UNSET) + require_code_owner_reviews: Missing[bool] = Field(default=UNSET) + required_approving_review_count: Missing[int] = Field(default=UNSET) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it.", + ) + dismissal_restrictions: Missing[ + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions + ] = Field(default=UNSET) + bypass_pull_request_allowances: Missing[ + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances + ] = Field(default=UNSET) -model_rebuild(CheckAnnotation) +model_rebuild(ProtectedBranchPropRequiredPullRequestReviews) -__all__ = ("CheckAnnotation",) +__all__ = ("ProtectedBranchPropRequiredPullRequestReviews",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0215.py b/githubkit/versions/ghec_v2022_11_28/models/group_0215.py index e1a3e2d02..5a77a0528 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0215.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0215.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from pydantic import Field @@ -18,74 +17,40 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0048 import Team +from .group_0001 import SimpleUser from .group_0006 import Integration -from .group_0186 import SimpleCommit -from .group_0079 import MinimalRepository -from .group_0185 import PullRequestMinimal - - -class CheckSuite(GitHubModel): - """CheckSuite - - A suite of checks performed on the code of a given code change - """ - - id: int = Field() - node_id: str = Field() - head_branch: Union[str, None] = Field() - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - status: Union[ - None, - Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ], - ] = Field( - description="The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites." - ) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "startup_failure", - "stale", - ], - ] = Field() - url: Union[str, None] = Field() - before: Union[str, None] = Field() - after: Union[str, None] = Field() - pull_requests: Union[List[PullRequestMinimal], None] = Field() - app: Union[None, Integration, None] = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") - latest_check_runs_count: int = Field() - check_runs_url: str = Field() - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - - -class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" - - total_count: int = Field() - check_suites: List[CheckSuite] = Field() - - -model_rebuild(CheckSuite) -model_rebuild(ReposOwnerRepoCommitsRefCheckSuitesGetResponse200) + + +class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions( + GitHubModel +): + """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" + + url: str = Field() + users_url: str = Field() + teams_url: str = Field() + users: List[SimpleUser] = Field() + teams: List[Team] = Field() + apps: Missing[List[Union[Integration, None]]] = Field(default=UNSET) + + +class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( + GitHubModel +): + """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" + + users: List[SimpleUser] = Field() + teams: List[Team] = Field() + apps: Missing[List[Union[Integration, None]]] = Field(default=UNSET) + + +model_rebuild(ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions) +model_rebuild( + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances +) __all__ = ( - "CheckSuite", - "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", + "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", + "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", ) 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 4caa02997..54d28e22f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0216.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0216.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List +from typing import Union +from datetime import datetime from pydantic import Field @@ -17,42 +18,40 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0079 import MinimalRepository +from .group_0006 import Integration -class CheckSuitePreference(GitHubModel): - """Check Suite Preference +class DeploymentSimple(GitHubModel): + """Deployment - Check suite configuration preferences for a repository. + A deployment created as the result of an Actions check run from a workflow that + references an environment """ - preferences: CheckSuitePreferencePropPreferences = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + url: str = Field() + id: int = Field(description="Unique identifier of the deployment") + node_id: str = Field() + task: str = Field(description="Parameter to specify a task to execute") + original_environment: Missing[str] = Field(default=UNSET) + environment: str = Field(description="Name for the target deployment environment.") + description: Union[str, None] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + statuses_url: str = Field() + repository_url: str = Field() + transient_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", + ) + production_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is one that end-users directly interact with. Default: false.", + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) -class CheckSuitePreferencePropPreferences(GitHubModel): - """CheckSuitePreferencePropPreferences""" - - auto_trigger_checks: Missing[ - List[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems] - ] = Field(default=UNSET) - - -class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems(GitHubModel): - """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" - - app_id: int = Field() - setting: bool = Field() - - -model_rebuild(CheckSuitePreference) -model_rebuild(CheckSuitePreferencePropPreferences) -model_rebuild(CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems) +model_rebuild(DeploymentSimple) -__all__ = ( - "CheckSuitePreference", - "CheckSuitePreferencePropPreferences", - "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", -) +__all__ = ("DeploymentSimple",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0217.py b/githubkit/versions/ghec_v2022_11_28/models/group_0217.py index 5d3463101..ddc339f74 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0217.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0217.py @@ -10,8 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal -from typing_extensions import Annotated +from typing import List, Union, Literal from pydantic import Field @@ -19,55 +18,79 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0041 import CodeScanningAnalysisTool -from .group_0042 import CodeScanningAlertInstance -from .group_0040 import CodeScanningAlertRuleSummary +from .group_0006 import Integration +from .group_0216 import DeploymentSimple +from .group_0189 import PullRequestMinimal -class CodeScanningAlertItems(GitHubModel): - """CodeScanningAlertItems""" +class CheckRun(GitHubModel): + """CheckRun - number: int = Field(description="The security alert number.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: str = Field( - description="The REST API URL for fetching the list of instances for an alert." + A check performed on the code of a given code change + """ + + id: int = Field(description="The id of the check.") + head_sha: str = Field(description="The SHA of the commit that is being checked.") + node_id: str = Field() + external_id: Union[str, None] = Field() + url: str = Field() + html_url: Union[str, None] = Field() + details_url: Union[str, None] = Field() + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] = Field( + description="The phase of the lifecycle that the check is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check runs." ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] = Field() + started_at: Union[datetime, None] = Field() + completed_at: Union[datetime, None] = Field() + output: CheckRunPropOutput = Field() + name: str = Field(description="The name of the check.") + check_suite: Union[CheckRunPropCheckSuite, None] = Field() + app: Union[None, Integration, None] = Field() + pull_requests: List[PullRequestMinimal] = Field( + description="Pull requests that are open with a `head_sha` or `head_branch` that matches the check. The returned pull requests do not necessarily indicate pull requests that triggered the check." ) - fixed_at: Missing[Union[datetime, None]] = Field( + deployment: Missing[DeploymentSimple] = Field( default=UNSET, - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field( - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + title="Deployment", + description="A deployment created as the result of an Actions check run from a workflow that references an environment", ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - rule: CodeScanningAlertRuleSummary = Field() - tool: CodeScanningAnalysisTool = Field() - most_recent_instance: CodeScanningAlertInstance = Field() -model_rebuild(CodeScanningAlertItems) +class CheckRunPropOutput(GitHubModel): + """CheckRunPropOutput""" + + title: Union[str, None] = Field() + summary: Union[str, None] = Field() + text: Union[str, None] = Field() + annotations_count: int = Field() + annotations_url: str = Field() + + +class CheckRunPropCheckSuite(GitHubModel): + """CheckRunPropCheckSuite""" + + id: int = Field() + + +model_rebuild(CheckRun) +model_rebuild(CheckRunPropOutput) +model_rebuild(CheckRunPropCheckSuite) -__all__ = ("CodeScanningAlertItems",) +__all__ = ( + "CheckRun", + "CheckRunPropOutput", + "CheckRunPropCheckSuite", +) 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 ea216ad40..2dfb0cd0e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0218.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0218.py @@ -9,105 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import Annotated +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0041 import CodeScanningAnalysisTool -from .group_0042 import CodeScanningAlertInstance +class CheckAnnotation(GitHubModel): + """Check Annotation -class CodeScanningAlert(GitHubModel): - """CodeScanningAlert""" + Check Annotation + """ - number: int = Field(description="The security alert number.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: str = Field( - description="The REST API URL for fetching the list of instances for an alert." - ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - fixed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field( - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." - ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - rule: CodeScanningAlertRule = Field() - tool: CodeScanningAnalysisTool = Field() - most_recent_instance: CodeScanningAlertInstance = Field() + path: str = Field() + start_line: int = Field() + end_line: int = Field() + start_column: Union[int, None] = Field() + end_column: Union[int, None] = Field() + annotation_level: Union[str, None] = Field() + title: Union[str, None] = Field() + message: Union[str, None] = Field() + raw_details: Union[str, None] = Field() + blob_href: str = Field() -class CodeScanningAlertRule(GitHubModel): - """CodeScanningAlertRule""" +model_rebuild(CheckAnnotation) - id: Missing[Union[str, None]] = Field( - default=UNSET, - description="A unique identifier for the rule used to detect the alert.", - ) - name: Missing[str] = Field( - default=UNSET, description="The name of the rule used to detect the alert." - ) - severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field( - default=UNSET, description="The severity of the alert." - ) - security_severity_level: Missing[ - Union[None, Literal["low", "medium", "high", "critical"]] - ] = Field(default=UNSET, description="The security severity of the alert.") - description: Missing[str] = Field( - default=UNSET, - description="A short description of the rule used to detect the alert.", - ) - full_description: Missing[str] = Field( - default=UNSET, description="description of the rule used to detect the alert." - ) - tags: Missing[Union[List[str], None]] = Field( - default=UNSET, description="A set of tags applicable for the rule." - ) - help_: Missing[Union[str, None]] = Field( - default=UNSET, - alias="help", - description="Detailed documentation for the rule as GitHub Flavored Markdown.", - ) - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - - -model_rebuild(CodeScanningAlert) -model_rebuild(CodeScanningAlertRule) - -__all__ = ( - "CodeScanningAlert", - "CodeScanningAlertRule", -) +__all__ = ("CheckAnnotation",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0219.py b/githubkit/versions/ghec_v2022_11_28/models/group_0219.py index d016af428..7c236f7cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0219.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0219.py @@ -10,6 +10,7 @@ from __future__ import annotations from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,49 +18,74 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0041 import CodeScanningAnalysisTool +from .group_0006 import Integration +from .group_0190 import SimpleCommit +from .group_0082 import MinimalRepository +from .group_0189 import PullRequestMinimal -class CodeScanningAnalysis(GitHubModel): - """CodeScanningAnalysis""" +class CheckSuite(GitHubModel): + """CheckSuite - ref: str = Field( - description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``." - ) - commit_sha: str = Field( - min_length=40, - max_length=40, - pattern="^[0-9a-fA-F]+$", - description="The SHA of the commit to which the analysis you are uploading relates.", - ) - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - environment: str = Field( - description="Identifies the variable values associated with the environment in which this analysis was performed." - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.", - ) - error: str = Field() - created_at: datetime = Field( - description="The time that the analysis was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + A suite of checks performed on the code of a given code change + """ + + id: int = Field() + node_id: str = Field() + head_branch: Union[str, None] = Field() + head_sha: str = Field( + description="The SHA of the head commit that is being checked." ) - results_count: int = Field( - description="The total number of results in the analysis." + status: Union[ + None, + Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ], + ] = Field( + description="The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites." ) - rules_count: int = Field( - description="The total number of rules used in the analysis." + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "startup_failure", + "stale", + ], + ] = Field() + url: Union[str, None] = Field() + before: Union[str, None] = Field() + after: Union[str, None] = Field() + pull_requests: Union[List[PullRequestMinimal], None] = Field() + app: Union[None, Integration, None] = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) - id: int = Field(description="Unique identifier for this analysis.") - url: str = Field(description="The REST API URL of the analysis resource.") - sarif_id: str = Field(description="An identifier for the upload.") - tool: CodeScanningAnalysisTool = Field() - deletable: bool = Field() - warning: str = Field(description="Warning generated when processing the analysis") + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") + latest_check_runs_count: int = Field() + check_runs_url: str = Field() + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + + +class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" + + total_count: int = Field() + check_suites: List[CheckSuite] = Field() -model_rebuild(CodeScanningAnalysis) +model_rebuild(CheckSuite) +model_rebuild(ReposOwnerRepoCommitsRefCheckSuitesGetResponse200) -__all__ = ("CodeScanningAnalysis",) +__all__ = ( + "CheckSuite", + "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0220.py b/githubkit/versions/ghec_v2022_11_28/models/group_0220.py index d589823d8..16960adb8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0220.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0220.py @@ -9,27 +9,50 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0082 import MinimalRepository -class CodeScanningAnalysisDeletion(GitHubModel): - """Analysis deletion - Successful deletion of a code scanning analysis +class CheckSuitePreference(GitHubModel): + """Check Suite Preference + + Check suite configuration preferences for a repository. """ - next_analysis_url: Union[str, None] = Field( - description="Next deletable analysis in chain, without last analysis deletion confirmation" - ) - confirm_delete_url: Union[str, None] = Field( - description="Next deletable analysis in chain, with last analysis deletion confirmation" + preferences: CheckSuitePreferencePropPreferences = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) -model_rebuild(CodeScanningAnalysisDeletion) +class CheckSuitePreferencePropPreferences(GitHubModel): + """CheckSuitePreferencePropPreferences""" + + auto_trigger_checks: Missing[ + List[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems] + ] = Field(default=UNSET) + + +class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems(GitHubModel): + """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" + + app_id: int = Field() + setting: bool = Field() + + +model_rebuild(CheckSuitePreference) +model_rebuild(CheckSuitePreferencePropPreferences) +model_rebuild(CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems) -__all__ = ("CodeScanningAnalysisDeletion",) +__all__ = ( + "CheckSuitePreference", + "CheckSuitePreferencePropPreferences", + "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0221.py b/githubkit/versions/ghec_v2022_11_28/models/group_0221.py index 18e1e1dc1..5d3463101 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0221.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0221.py @@ -9,8 +9,9 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import Union, Literal +from typing_extensions import Annotated from pydantic import Field @@ -19,35 +20,54 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser +from .group_0041 import CodeScanningAnalysisTool +from .group_0042 import CodeScanningAlertInstance +from .group_0040 import CodeScanningAlertRuleSummary -class CodeScanningCodeqlDatabase(GitHubModel): - """CodeQL Database +class CodeScanningAlertItems(GitHubModel): + """CodeScanningAlertItems""" - A CodeQL database. - """ - - id: int = Field(description="The ID of the CodeQL database.") - name: str = Field(description="The name of the CodeQL database.") - language: str = Field(description="The language of the CodeQL database.") - uploader: SimpleUser = Field(title="Simple User", description="A GitHub user.") - content_type: str = Field(description="The MIME type of the CodeQL database file.") - size: int = Field(description="The size of the CodeQL database file in bytes.") + number: int = Field(description="The security alert number.") created_at: datetime = Field( - description="The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - updated_at: datetime = Field( - description="The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: str = Field( + description="The REST API URL for fetching the list of instances for an alert." ) - url: str = Field( - description="The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property." + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." ) - commit_oid: Missing[Union[str, None]] = Field( + fixed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="The commit SHA of the repository at the time the CodeQL database was created.", + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field( + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) ) + rule: CodeScanningAlertRuleSummary = Field() + tool: CodeScanningAnalysisTool = Field() + most_recent_instance: CodeScanningAlertInstance = Field() -model_rebuild(CodeScanningCodeqlDatabase) +model_rebuild(CodeScanningAlertItems) -__all__ = ("CodeScanningCodeqlDatabase",) +__all__ = ("CodeScanningAlertItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0222.py b/githubkit/versions/ghec_v2022_11_28/models/group_0222.py index 45858fe34..ea216ad40 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0222.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0222.py @@ -9,30 +9,105 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import Annotated from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0041 import CodeScanningAnalysisTool +from .group_0042 import CodeScanningAlertInstance -class CodeScanningVariantAnalysisRepository(GitHubModel): - """Repository Identifier - Repository Identifier - """ +class CodeScanningAlert(GitHubModel): + """CodeScanningAlert""" - id: int = Field(description="A unique identifier of the repository.") - name: str = Field(description="The name of the repository.") - full_name: str = Field( - description="The full, globally unique, name of the repository." + number: int = Field(description="The security alert number.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: str = Field( + description="The REST API URL for fetching the list of instances for an alert." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + fixed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field( + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + rule: CodeScanningAlertRule = Field() + tool: CodeScanningAnalysisTool = Field() + most_recent_instance: CodeScanningAlertInstance = Field() + + +class CodeScanningAlertRule(GitHubModel): + """CodeScanningAlertRule""" + + id: Missing[Union[str, None]] = Field( + default=UNSET, + description="A unique identifier for the rule used to detect the alert.", + ) + name: Missing[str] = Field( + default=UNSET, description="The name of the rule used to detect the alert." + ) + severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field( + default=UNSET, description="The severity of the alert." + ) + security_severity_level: Missing[ + Union[None, Literal["low", "medium", "high", "critical"]] + ] = Field(default=UNSET, description="The security severity of the alert.") + description: Missing[str] = Field( + default=UNSET, + description="A short description of the rule used to detect the alert.", + ) + full_description: Missing[str] = Field( + default=UNSET, description="description of the rule used to detect the alert." + ) + tags: Missing[Union[List[str], None]] = Field( + default=UNSET, description="A set of tags applicable for the rule." + ) + help_: Missing[Union[str, None]] = Field( + default=UNSET, + alias="help", + description="Detailed documentation for the rule as GitHub Flavored Markdown.", + ) + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", ) - private: bool = Field(description="Whether the repository is private.") - stargazers_count: int = Field() - updated_at: Union[datetime, None] = Field() -model_rebuild(CodeScanningVariantAnalysisRepository) +model_rebuild(CodeScanningAlert) +model_rebuild(CodeScanningAlertRule) -__all__ = ("CodeScanningVariantAnalysisRepository",) +__all__ = ( + "CodeScanningAlert", + "CodeScanningAlertRule", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0223.py b/githubkit/versions/ghec_v2022_11_28/models/group_0223.py index d8686f1cc..d016af428 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0223.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0223.py @@ -9,26 +9,57 @@ from __future__ import annotations -from typing import List +from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0222 import CodeScanningVariantAnalysisRepository +from .group_0041 import CodeScanningAnalysisTool -class CodeScanningVariantAnalysisSkippedRepoGroup(GitHubModel): - """CodeScanningVariantAnalysisSkippedRepoGroup""" +class CodeScanningAnalysis(GitHubModel): + """CodeScanningAnalysis""" - repository_count: int = Field( - description="The total number of repositories that were skipped for this reason." + ref: str = Field( + description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``." ) - 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_sha: str = Field( + min_length=40, + max_length=40, + pattern="^[0-9a-fA-F]+$", + description="The SHA of the commit to which the analysis you are uploading relates.", ) + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + environment: str = Field( + description="Identifies the variable values associated with the environment in which this analysis was performed." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.", + ) + error: str = Field() + created_at: datetime = Field( + description="The time that the analysis was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + results_count: int = Field( + description="The total number of results in the analysis." + ) + rules_count: int = Field( + description="The total number of rules used in the analysis." + ) + id: int = Field(description="Unique identifier for this analysis.") + url: str = Field(description="The REST API URL of the analysis resource.") + sarif_id: str = Field(description="An identifier for the upload.") + tool: CodeScanningAnalysisTool = Field() + deletable: bool = Field() + warning: str = Field(description="Warning generated when processing the analysis") -model_rebuild(CodeScanningVariantAnalysisSkippedRepoGroup) +model_rebuild(CodeScanningAnalysis) -__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroup",) +__all__ = ("CodeScanningAnalysis",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0224.py b/githubkit/versions/ghec_v2022_11_28/models/group_0224.py index c57677d20..d589823d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0224.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0224.py @@ -9,70 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0043 import SimpleRepository -from .group_0226 import CodeScanningVariantAnalysisPropSkippedRepositories -from .group_0225 import CodeScanningVariantAnalysisPropScannedRepositoriesItems +class CodeScanningAnalysisDeletion(GitHubModel): + """Analysis deletion -class CodeScanningVariantAnalysis(GitHubModel): - """Variant Analysis - - A run of a CodeQL query against one or more repositories. + Successful deletion of a code scanning analysis """ - id: int = Field(description="The ID of the variant analysis.") - controller_repo: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." - ) - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - query_language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack_url: str = Field(description="The download url for the query pack.") - created_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The date and time at which the variant analysis was completed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the variant analysis has not yet completed or this information is not available.", - ) - status: Literal["in_progress", "succeeded", "failed", "cancelled"] = Field() - actions_workflow_run_id: Missing[int] = Field( - default=UNSET, - description="The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started.", - ) - failure_reason: Missing[ - Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] - ] = Field( - default=UNSET, - description="The reason for a failure of the variant analysis. This is only available if the variant analysis has failed.", + next_analysis_url: Union[str, None] = Field( + description="Next deletable analysis in chain, without last analysis deletion confirmation" ) - scanned_repositories: Missing[ - List[CodeScanningVariantAnalysisPropScannedRepositoriesItems] - ] = Field(default=UNSET) - skipped_repositories: Missing[ - CodeScanningVariantAnalysisPropSkippedRepositories - ] = Field( - default=UNSET, - description="Information about repositories that were skipped from processing. This information is only available to the user that initiated the variant analysis.", + confirm_delete_url: Union[str, None] = Field( + description="Next deletable analysis in chain, with last analysis deletion confirmation" ) -model_rebuild(CodeScanningVariantAnalysis) +model_rebuild(CodeScanningAnalysisDeletion) -__all__ = ("CodeScanningVariantAnalysis",) +__all__ = ("CodeScanningAnalysisDeletion",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0225.py b/githubkit/versions/ghec_v2022_11_28/models/group_0225.py index 291e3cba9..18e1e1dc1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0225.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0225.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from typing import Union +from datetime import datetime from pydantic import Field @@ -17,34 +18,36 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0222 import CodeScanningVariantAnalysisRepository +from .group_0001 import SimpleUser -class CodeScanningVariantAnalysisPropScannedRepositoriesItems(GitHubModel): - """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" +class CodeScanningCodeqlDatabase(GitHubModel): + """CodeQL Database - repository: CodeScanningVariantAnalysisRepository = Field( - title="Repository Identifier", description="Repository Identifier" - ) - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] = Field( - description="The new status of the CodeQL variant analysis repository task." + A CodeQL database. + """ + + id: int = Field(description="The ID of the CodeQL database.") + name: str = Field(description="The name of the CodeQL database.") + language: str = Field(description="The language of the CodeQL database.") + uploader: SimpleUser = Field(title="Simple User", description="A GitHub user.") + content_type: str = Field(description="The MIME type of the CodeQL database file.") + size: int = Field(description="The size of the CodeQL database file in bytes.") + created_at: datetime = Field( + description="The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - result_count: Missing[int] = Field( - default=UNSET, - description="The number of results in the case of a successful analysis. This is only available for successful analyses.", + updated_at: datetime = Field( + description="The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - artifact_size_in_bytes: Missing[int] = Field( - default=UNSET, - description="The size of the artifact. This is only available for successful analyses.", + url: str = Field( + description="The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property." ) - failure_message: Missing[str] = Field( + commit_oid: Missing[Union[str, None]] = Field( default=UNSET, - description="The reason of the failure of this repo task. This is only available if the repository task has failed.", + description="The commit SHA of the repository at the time the CodeQL database was created.", ) -model_rebuild(CodeScanningVariantAnalysisPropScannedRepositoriesItems) +model_rebuild(CodeScanningCodeqlDatabase) -__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",) +__all__ = ("CodeScanningCodeqlDatabase",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0226.py b/githubkit/versions/ghec_v2022_11_28/models/group_0226.py index 1cc861223..45858fe34 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0226.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0226.py @@ -9,43 +9,30 @@ from __future__ import annotations -from typing import List +from typing import Union +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0223 import CodeScanningVariantAnalysisSkippedRepoGroup +class CodeScanningVariantAnalysisRepository(GitHubModel): + """Repository Identifier -class CodeScanningVariantAnalysisPropSkippedRepositories(GitHubModel): - """CodeScanningVariantAnalysisPropSkippedRepositories - - Information about repositories that were skipped from processing. This - information is only available to the user that initiated the variant analysis. + Repository Identifier """ - access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() - not_found_repos: CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos = Field() - no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() - over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() - - -class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos(GitHubModel): - """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" - - repository_count: int = Field( - description="The total number of repositories that were skipped for this reason." - ) - repository_full_names: List[str] = Field( - description="A list of full repository names that were skipped. This list may not include all repositories that were skipped." + id: int = Field(description="A unique identifier of the repository.") + name: str = Field(description="The name of the repository.") + full_name: str = Field( + description="The full, globally unique, name of the repository." ) + private: bool = Field(description="Whether the repository is private.") + stargazers_count: int = Field() + updated_at: Union[datetime, None] = Field() -model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositories) -model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos) +model_rebuild(CodeScanningVariantAnalysisRepository) -__all__ = ( - "CodeScanningVariantAnalysisPropSkippedRepositories", - "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", -) +__all__ = ("CodeScanningVariantAnalysisRepository",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0227.py b/githubkit/versions/ghec_v2022_11_28/models/group_0227.py index 205ca0e56..47df9bd24 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0227.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0227.py @@ -9,54 +9,26 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0043 import SimpleRepository +from .group_0226 import CodeScanningVariantAnalysisRepository -class CodeScanningVariantAnalysisRepoTask(GitHubModel): - """CodeScanningVariantAnalysisRepoTask""" +class CodeScanningVariantAnalysisSkippedRepoGroup(GitHubModel): + """CodeScanningVariantAnalysisSkippedRepoGroup""" - repository: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." + repository_count: int = Field( + description="The total number of repositories that were skipped for this reason." ) - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] = Field( - description="The new status of the CodeQL variant analysis repository task." - ) - artifact_size_in_bytes: Missing[int] = Field( - default=UNSET, - description="The size of the artifact. This is only available for successful analyses.", - ) - result_count: Missing[int] = Field( - default=UNSET, - description="The number of results in the case of a successful analysis. This is only available for successful analyses.", - ) - failure_message: Missing[str] = Field( - default=UNSET, - description="The reason of the failure of this repo task. This is only available if the repository task has failed.", - ) - database_commit_sha: Missing[str] = Field( - default=UNSET, - description="The SHA of the commit the CodeQL database was built against. This is only available for successful analyses.", - ) - source_location_prefix: Missing[str] = Field( - default=UNSET, - description="The source location prefix to use. This is only available for successful analyses.", - ) - artifact_url: Missing[str] = Field( - default=UNSET, - description="The URL of the artifact. This is only available for successful analyses.", + repositories: List[CodeScanningVariantAnalysisRepository] = Field( + description="A list of repositories that were skipped. This list may not include all repositories that were skipped. This is only available when the repository was found and the user has access to it." ) -model_rebuild(CodeScanningVariantAnalysisRepoTask) +model_rebuild(CodeScanningVariantAnalysisSkippedRepoGroup) -__all__ = ("CodeScanningVariantAnalysisRepoTask",) +__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroup",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0228.py b/githubkit/versions/ghec_v2022_11_28/models/group_0228.py index f3d93ae7d..bc3528abb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0228.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0228.py @@ -18,44 +18,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0043 import SimpleRepository +from .group_0230 import CodeScanningVariantAnalysisPropSkippedRepositories +from .group_0229 import CodeScanningVariantAnalysisPropScannedRepositoriesItems -class CodeScanningDefaultSetup(GitHubModel): - """CodeScanningDefaultSetup - Configuration for code scanning default setup. +class CodeScanningVariantAnalysis(GitHubModel): + """Variant Analysis + + A run of a CodeQL query against one or more repositories. """ - state: Missing[Literal["configured", "not-configured"]] = Field( + id: int = Field(description="The ID of the variant analysis.") + controller_repo: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." + ) + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + query_language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack_url: str = Field(description="The download url for the query pack.") + created_at: Missing[datetime] = Field( default=UNSET, - description="Code scanning default setup has been configured or not.", + description="The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", ) - languages: Missing[ - List[ - Literal[ - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "javascript", - "python", - "ruby", - "typescript", - "swift", - ] - ] - ] = Field(default=UNSET, description="Languages to be analyzed.") - query_suite: Missing[Literal["default", "extended"]] = Field( - default=UNSET, description="CodeQL query suite to be used." + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", ) - updated_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="Timestamp of latest configuration update." + 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.", ) - schedule: Missing[Union[None, Literal["weekly"]]] = Field( - default=UNSET, description="The frequency of the periodic analysis." + 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.", ) -model_rebuild(CodeScanningDefaultSetup) +model_rebuild(CodeScanningVariantAnalysis) -__all__ = ("CodeScanningDefaultSetup",) +__all__ = ("CodeScanningVariantAnalysis",) 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 de2f0166a..b6ad61aed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0229.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0229.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field @@ -17,35 +17,34 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0226 import CodeScanningVariantAnalysisRepository -class CodeScanningDefaultSetupUpdate(GitHubModel): - """CodeScanningDefaultSetupUpdate - Configuration for code scanning default setup. - """ +class CodeScanningVariantAnalysisPropScannedRepositoriesItems(GitHubModel): + """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" - state: Missing[Literal["configured", "not-configured"]] = Field( - default=UNSET, description="The desired state of code scanning default setup." + repository: CodeScanningVariantAnalysisRepository = Field( + title="Repository Identifier", description="Repository Identifier" ) - query_suite: Missing[Literal["default", "extended"]] = Field( - default=UNSET, description="CodeQL query suite 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." ) - languages: Missing[ - List[ - Literal[ - "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",) + result_count: Missing[int] = Field( + default=UNSET, + description="The number of results in the case of a successful analysis. This is only available for successful analyses.", + ) + artifact_size_in_bytes: Missing[int] = Field( + default=UNSET, + description="The size of the artifact. This is only available for successful analyses.", + ) + failure_message: Missing[str] = Field( + default=UNSET, + description="The reason of the failure of this repo task. This is only available if the repository task has failed.", + ) + + +model_rebuild(CodeScanningVariantAnalysisPropScannedRepositoriesItems) + +__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",) 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 f521485d8..8600456c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0230.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0230.py @@ -9,29 +9,43 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0227 import CodeScanningVariantAnalysisSkippedRepoGroup + -class CodeScanningDefaultSetupUpdateResponse(GitHubModel): - """CodeScanningDefaultSetupUpdateResponse +class CodeScanningVariantAnalysisPropSkippedRepositories(GitHubModel): + """CodeScanningVariantAnalysisPropSkippedRepositories - 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. + Information about repositories that were skipped from processing. This + information is only available to the user that initiated the variant analysis. """ - run_id: Missing[int] = Field( - default=UNSET, description="ID of the corresponding run." + access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() + not_found_repos: CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos = Field() + no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() + over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() + + +class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos(GitHubModel): + """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" + + repository_count: int = Field( + description="The total number of repositories that were skipped for this reason." ) - run_url: Missing[str] = Field( - default=UNSET, description="URL of the corresponding run." + repository_full_names: List[str] = Field( + description="A list of full repository names that were skipped. This list may not include all repositories that were skipped." ) -model_rebuild(CodeScanningDefaultSetupUpdateResponse) +model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositories) +model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos) -__all__ = ("CodeScanningDefaultSetupUpdateResponse",) +__all__ = ( + "CodeScanningVariantAnalysisPropSkippedRepositories", + "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0231.py b/githubkit/versions/ghec_v2022_11_28/models/group_0231.py index e3dd21ec7..205ca0e56 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0231.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0231.py @@ -9,23 +9,54 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0043 import SimpleRepository + -class CodeScanningSarifsReceipt(GitHubModel): - """CodeScanningSarifsReceipt""" +class CodeScanningVariantAnalysisRepoTask(GitHubModel): + """CodeScanningVariantAnalysisRepoTask""" - id: Missing[str] = Field(default=UNSET, description="An identifier for the upload.") - url: Missing[str] = Field( + repository: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." + ) + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" + ] = Field( + description="The new status of the CodeQL variant analysis repository task." + ) + artifact_size_in_bytes: Missing[int] = Field( + default=UNSET, + description="The size of the artifact. This is only available for successful analyses.", + ) + result_count: Missing[int] = Field( + default=UNSET, + description="The number of results in the case of a successful analysis. This is only available for successful analyses.", + ) + failure_message: Missing[str] = Field( + default=UNSET, + description="The reason of the failure of this repo task. This is only available if the repository task has failed.", + ) + database_commit_sha: Missing[str] = Field( + default=UNSET, + description="The SHA of the commit the CodeQL database was built against. This is only available for successful analyses.", + ) + source_location_prefix: Missing[str] = Field( + default=UNSET, + description="The source location prefix to use. This is only available for successful analyses.", + ) + artifact_url: Missing[str] = Field( default=UNSET, - description="The REST API URL for checking the status of the upload.", + description="The URL of the artifact. This is only available for successful analyses.", ) -model_rebuild(CodeScanningSarifsReceipt) +model_rebuild(CodeScanningVariantAnalysisRepoTask) -__all__ = ("CodeScanningSarifsReceipt",) +__all__ = ("CodeScanningVariantAnalysisRepoTask",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0232.py b/githubkit/versions/ghec_v2022_11_28/models/group_0232.py index 7414dcd5c..f3d93ae7d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0232.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0232.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,23 +19,43 @@ from githubkit.compat import GitHubModel, model_rebuild -class CodeScanningSarifsStatus(GitHubModel): - """CodeScanningSarifsStatus""" +class CodeScanningDefaultSetup(GitHubModel): + """CodeScanningDefaultSetup - processing_status: Missing[Literal["pending", "complete", "failed"]] = Field( + Configuration for code scanning default setup. + """ + + state: Missing[Literal["configured", "not-configured"]] = Field( default=UNSET, - description="`pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed.", + description="Code scanning default setup has been configured or not.", ) - analyses_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="The REST API URL for getting the analyses associated with the upload.", + languages: Missing[ + List[ + Literal[ + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "javascript", + "python", + "ruby", + "typescript", + "swift", + ] + ] + ] = Field(default=UNSET, description="Languages to be analyzed.") + query_suite: Missing[Literal["default", "extended"]] = Field( + default=UNSET, description="CodeQL query suite to be used." ) - errors: Missing[Union[List[str], None]] = Field( - default=UNSET, - description="Any errors that ocurred during processing of the delivery.", + updated_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="Timestamp of latest configuration update." + ) + schedule: Missing[Union[None, Literal["weekly"]]] = Field( + default=UNSET, description="The frequency of the periodic analysis." ) -model_rebuild(CodeScanningSarifsStatus) +model_rebuild(CodeScanningDefaultSetup) -__all__ = ("CodeScanningSarifsStatus",) +__all__ = ("CodeScanningDefaultSetup",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0233.py b/githubkit/versions/ghec_v2022_11_28/models/group_0233.py index b4a4ef9df..de2f0166a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0233.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0233.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import List, Literal from pydantic import Field @@ -18,38 +18,34 @@ from githubkit.compat import GitHubModel, model_rebuild -class CodeownersErrors(GitHubModel): - """CODEOWNERS errors +class CodeScanningDefaultSetupUpdate(GitHubModel): + """CodeScanningDefaultSetupUpdate - A list of errors found in a repo's CODEOWNERS file + Configuration for code scanning default setup. """ - errors: List[CodeownersErrorsPropErrorsItems] = Field() - - -class CodeownersErrorsPropErrorsItems(GitHubModel): - """CodeownersErrorsPropErrorsItems""" - - line: int = Field(description="The line number where this errors occurs.") - column: int = Field(description="The column number where this errors occurs.") - source: Missing[str] = Field( - default=UNSET, description="The contents of the line where the error occurs." - ) - 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.", + state: Missing[Literal["configured", "not-configured"]] = Field( + default=UNSET, description="The desired state of code scanning default setup." ) - 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)." + query_suite: Missing[Literal["default", "extended"]] = Field( + default=UNSET, description="CodeQL query suite to be used." ) - path: str = Field(description="The path of the file where the error occured.") - - -model_rebuild(CodeownersErrors) -model_rebuild(CodeownersErrorsPropErrorsItems) - -__all__ = ( - "CodeownersErrors", - "CodeownersErrorsPropErrorsItems", -) + languages: Missing[ + List[ + Literal[ + "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_0234.py b/githubkit/versions/ghec_v2022_11_28/models/group_0234.py index de6f0cf08..f521485d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0234.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0234.py @@ -11,20 +11,27 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class CodespacesPermissionsCheckForDevcontainer(GitHubModel): - """Codespaces Permissions Check +class CodeScanningDefaultSetupUpdateResponse(GitHubModel): + """CodeScanningDefaultSetupUpdateResponse - Permission check result for a given devcontainer config. + 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. """ - accepted: bool = Field( - description="Whether the user has accepted the permissions defined by the devcontainer config" + run_id: Missing[int] = Field( + default=UNSET, description="ID of the corresponding run." + ) + run_url: Missing[str] = Field( + default=UNSET, description="URL of the corresponding run." ) -model_rebuild(CodespacesPermissionsCheckForDevcontainer) +model_rebuild(CodeScanningDefaultSetupUpdateResponse) -__all__ = ("CodespacesPermissionsCheckForDevcontainer",) +__all__ = ("CodeScanningDefaultSetupUpdateResponse",) 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 6245afea4..e3dd21ec7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0235.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0235.py @@ -9,43 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0079 import MinimalRepository - - -class RepositoryInvitation(GitHubModel): - """Repository Invitation - Repository invitations let you manage who you collaborate with. - """ +class CodeScanningSarifsReceipt(GitHubModel): + """CodeScanningSarifsReceipt""" - id: int = Field(description="Unique identifier of the repository invitation.") - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - invitee: Union[None, SimpleUser] = Field() - inviter: Union[None, SimpleUser] = Field() - permissions: Literal["read", "write", "admin", "triage", "maintain"] = Field( - description="The permission associated with the invitation." - ) - created_at: datetime = Field() - expired: Missing[bool] = Field( - default=UNSET, description="Whether or not the invitation has expired" + id: Missing[str] = Field(default=UNSET, description="An identifier for the upload.") + url: Missing[str] = Field( + default=UNSET, + description="The REST API URL for checking the status of the upload.", ) - url: str = Field(description="URL for the repository invitation") - html_url: str = Field() - node_id: str = Field() -model_rebuild(RepositoryInvitation) +model_rebuild(CodeScanningSarifsReceipt) -__all__ = ("RepositoryInvitation",) +__all__ = ("CodeScanningSarifsReceipt",) 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 0829293dd..7414dcd5c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0236.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0236.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import List, Union, Literal from pydantic import Field @@ -18,63 +18,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryCollaboratorPermission(GitHubModel): - """Repository Collaborator Permission +class CodeScanningSarifsStatus(GitHubModel): + """CodeScanningSarifsStatus""" - Repository Collaborator Permission - """ + processing_status: Missing[Literal["pending", "complete", "failed"]] = Field( + default=UNSET, + description="`pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed.", + ) + analyses_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="The REST API URL for getting the analyses associated with the upload.", + ) + errors: Missing[Union[List[str], None]] = Field( + default=UNSET, + description="Any errors that ocurred during processing of the delivery.", + ) - permission: str = Field() - role_name: str = Field() - user: Union[None, Collaborator] = Field() +model_rebuild(CodeScanningSarifsStatus) -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() - - -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__ = ( - "RepositoryCollaboratorPermission", - "Collaborator", - "CollaboratorPropPermissions", -) +__all__ = ("CodeScanningSarifsStatus",) 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 c3e86f892..b4a4ef9df 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0237.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0237.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from pydantic import Field @@ -18,60 +17,39 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0062 import ReactionRollup +class CodeownersErrors(GitHubModel): + """CODEOWNERS errors -class CommitComment(GitHubModel): - """Commit Comment - - Commit Comment + A list of errors found in a repo's CODEOWNERS file """ - html_url: str = Field() - url: str = Field() - id: int = Field() - node_id: str = Field() - body: str = Field() - path: Union[str, None] = Field() - position: Union[int, None] = Field() - line: Union[int, None] = Field() - commit_id: str = Field() - user: Union[None, SimpleUser] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - + errors: List[CodeownersErrorsPropErrorsItems] = Field() -class TimelineCommitCommentedEvent(GitHubModel): - """Timeline Commit Commented Event - Timeline Commit Commented Event - """ +class CodeownersErrorsPropErrorsItems(GitHubModel): + """CodeownersErrorsPropErrorsItems""" - event: Missing[Literal["commit_commented"]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - commit_id: Missing[str] = Field(default=UNSET) - comments: Missing[List[CommitComment]] = Field(default=UNSET) + line: int = Field(description="The line number where this errors occurs.") + column: int = Field(description="The column number where this errors occurs.") + source: Missing[str] = Field( + default=UNSET, description="The contents of the line where the error occurs." + ) + kind: str = Field(description="The type of error.") + suggestion: Missing[Union[str, None]] = Field( + default=UNSET, + description="Suggested action to fix the error. This will usually be `null`, but is provided for some common errors.", + ) + message: str = Field( + description="A human-readable description of the error, combining information from multiple fields, laid out for display in a monospaced typeface (for example, a command-line setting)." + ) + path: str = Field(description="The path of the file where the error occured.") -model_rebuild(CommitComment) -model_rebuild(TimelineCommitCommentedEvent) +model_rebuild(CodeownersErrors) +model_rebuild(CodeownersErrorsPropErrorsItems) __all__ = ( - "CommitComment", - "TimelineCommitCommentedEvent", + "CodeownersErrors", + "CodeownersErrorsPropErrorsItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0238.py b/githubkit/versions/ghec_v2022_11_28/models/group_0238.py index 1899117e7..de6f0cf08 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0238.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0238.py @@ -14,28 +14,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class BranchShort(GitHubModel): - """Branch Short +class CodespacesPermissionsCheckForDevcontainer(GitHubModel): + """Codespaces Permissions Check - Branch Short + Permission check result for a given devcontainer config. """ - name: str = Field() - commit: BranchShortPropCommit = Field() - protected: bool = Field() + accepted: bool = Field( + description="Whether the user has accepted the permissions defined by the devcontainer config" + ) -class BranchShortPropCommit(GitHubModel): - """BranchShortPropCommit""" +model_rebuild(CodespacesPermissionsCheckForDevcontainer) - sha: str = Field() - url: str = Field() - - -model_rebuild(BranchShort) -model_rebuild(BranchShortPropCommit) - -__all__ = ( - "BranchShort", - "BranchShortPropCommit", -) +__all__ = ("CodespacesPermissionsCheckForDevcontainer",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0239.py b/githubkit/versions/ghec_v2022_11_28/models/group_0239.py index b537858f8..e61f21b33 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0239.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0239.py @@ -9,20 +9,43 @@ from __future__ import annotations +from datetime import datetime +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0082 import MinimalRepository -class Link(GitHubModel): - """Link - - Hypermedia Link - """ - href: str = Field() +class RepositoryInvitation(GitHubModel): + """Repository Invitation + Repository invitations let you manage who you collaborate with. + """ -model_rebuild(Link) - -__all__ = ("Link",) + id: int = Field(description="Unique identifier of the repository invitation.") + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + invitee: Union[None, SimpleUser] = Field() + inviter: Union[None, SimpleUser] = Field() + permissions: Literal["read", "write", "admin", "triage", "maintain"] = Field( + description="The permission associated with the invitation." + ) + created_at: datetime = Field() + expired: Missing[bool] = Field( + default=UNSET, description="Whether or not the invitation has expired" + ) + url: str = Field(description="URL for the repository invitation") + html_url: str = Field() + node_id: str = Field() + + +model_rebuild(RepositoryInvitation) + +__all__ = ("RepositoryInvitation",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0240.py b/githubkit/versions/ghec_v2022_11_28/models/group_0240.py index 7c19d354d..0829293dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0240.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0240.py @@ -9,33 +9,72 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class RepositoryCollaboratorPermission(GitHubModel): + """Repository Collaborator Permission -class AutoMerge(GitHubModel): - """Auto merge + Repository Collaborator Permission + """ + + permission: str = Field() + role_name: str = Field() + user: Union[None, Collaborator] = Field() + + +class Collaborator(GitHubModel): + """Collaborator - The status of auto merging a pull request. + Collaborator """ - enabled_by: SimpleUser = Field(title="Simple User", description="A GitHub user.") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) + login: str = Field() + id: int = Field() + email: Missing[Union[str, None]] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() + type: str = Field() + site_admin: bool = Field() + permissions: Missing[CollaboratorPropPermissions] = Field(default=UNSET) + role_name: str = Field() + + +class CollaboratorPropPermissions(GitHubModel): + """CollaboratorPropPermissions""" + + pull: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + push: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + admin: bool = Field() -model_rebuild(AutoMerge) +model_rebuild(RepositoryCollaboratorPermission) +model_rebuild(Collaborator) +model_rebuild(CollaboratorPropPermissions) -__all__ = ("AutoMerge",) +__all__ = ( + "RepositoryCollaboratorPermission", + "Collaborator", + "CollaboratorPropPermissions", +) 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 b2f5b671d..7826b295b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0241.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0241.py @@ -18,53 +18,28 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0093 import Team -from .group_0061 import Milestone -from .group_0240 import AutoMerge from .group_0001 import SimpleUser -from .group_0243 import PullRequestSimplePropLinks -from .group_0242 import PullRequestSimplePropBase, PullRequestSimplePropHead +from .group_0065 import ReactionRollup -class PullRequestSimple(GitHubModel): - """Pull Request Simple +class CommitComment(GitHubModel): + """Commit Comment - Pull Request Simple + Commit Comment """ + html_url: str = Field() url: str = Field() id: int = Field() node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field() - state: str = Field() - locked: bool = Field() - title: str = Field() + body: str = Field() + path: Union[str, None] = Field() + position: Union[int, None] = Field() + line: Union[int, None] = Field() + commit_id: str = Field() user: Union[None, SimpleUser] = Field() - body: Union[str, None] = Field() - labels: List[PullRequestSimplePropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) created_at: datetime = Field() updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[List[Team], None]] = Field(default=UNSET) - head: PullRequestSimplePropHead = Field() - base: PullRequestSimplePropBase = Field() - links: PullRequestSimplePropLinks = Field(alias="_links") author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -78,31 +53,25 @@ class PullRequestSimple(GitHubModel): title="author_association", description="How the author is associated with the repository.", ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -class PullRequestSimplePropLabelsItems(GitHubModel): - """PullRequestSimplePropLabelsItems""" +class TimelineCommitCommentedEvent(GitHubModel): + """Timeline Commit Commented Event - id: int = Field() - node_id: str = Field() - url: str = Field() - name: str = Field() - description: Union[str, None] = Field() - color: str = Field() - default: bool = Field() + Timeline Commit Commented Event + """ + + event: Missing[Literal["commit_commented"]] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + commit_id: Missing[str] = Field(default=UNSET) + comments: Missing[List[CommitComment]] = Field(default=UNSET) -model_rebuild(PullRequestSimple) -model_rebuild(PullRequestSimplePropLabelsItems) +model_rebuild(CommitComment) +model_rebuild(TimelineCommitCommentedEvent) __all__ = ( - "PullRequestSimple", - "PullRequestSimplePropLabelsItems", + "CommitComment", + "TimelineCommitCommentedEvent", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0242.py b/githubkit/versions/ghec_v2022_11_28/models/group_0242.py index def6cd3fc..1899117e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0242.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0242.py @@ -9,40 +9,33 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0017 import Repository +class BranchShort(GitHubModel): + """Branch Short -class PullRequestSimplePropHead(GitHubModel): - """PullRequestSimplePropHead""" + Branch Short + """ - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[None, Repository] = Field() - sha: str = Field() - user: Union[None, SimpleUser] = Field() + name: str = Field() + commit: BranchShortPropCommit = Field() + protected: bool = Field() -class PullRequestSimplePropBase(GitHubModel): - """PullRequestSimplePropBase""" +class BranchShortPropCommit(GitHubModel): + """BranchShortPropCommit""" - label: str = Field() - ref: str = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") sha: str = Field() - user: Union[None, SimpleUser] = Field() + url: str = Field() -model_rebuild(PullRequestSimplePropHead) -model_rebuild(PullRequestSimplePropBase) +model_rebuild(BranchShort) +model_rebuild(BranchShortPropCommit) __all__ = ( - "PullRequestSimplePropHead", - "PullRequestSimplePropBase", + "BranchShort", + "BranchShortPropCommit", ) 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 2261108d7..b537858f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0243.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0243.py @@ -13,22 +13,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0239 import Link +class Link(GitHubModel): + """Link -class PullRequestSimplePropLinks(GitHubModel): - """PullRequestSimplePropLinks""" + Hypermedia Link + """ - comments: Link = Field(title="Link", description="Hypermedia Link") - commits: Link = Field(title="Link", description="Hypermedia Link") - statuses: Link = Field(title="Link", description="Hypermedia Link") - html: Link = Field(title="Link", description="Hypermedia Link") - issue: Link = Field(title="Link", description="Hypermedia Link") - review_comments: Link = Field(title="Link", description="Hypermedia Link") - review_comment: Link = Field(title="Link", description="Hypermedia Link") - self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") + href: str = Field() -model_rebuild(PullRequestSimplePropLinks) +model_rebuild(Link) -__all__ = ("PullRequestSimplePropLinks",) +__all__ = ("Link",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0244.py b/githubkit/versions/ghec_v2022_11_28/models/group_0244.py index ad96e28b5..7c19d354d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0244.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0244.py @@ -9,55 +9,33 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0079 import MinimalRepository +from .group_0001 import SimpleUser -class CombinedCommitStatus(GitHubModel): - """Combined Commit Status +class AutoMerge(GitHubModel): + """Auto merge - Combined Commit Status + The status of auto merging a pull request. """ - state: str = Field() - statuses: List[SimpleCommitStatus] = Field() - sha: str = Field() - total_count: int = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + enabled_by: SimpleUser = Field(title="Simple User", description="A GitHub user.") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." ) - commit_url: str = Field() - url: str = Field() - - -class SimpleCommitStatus(GitHubModel): - """Simple Commit Status""" - - description: Union[str, None] = Field() - id: int = Field() - node_id: str = Field() - state: str = Field() - context: str = Field() - target_url: Union[str, None] = Field() - required: Missing[Union[bool, None]] = Field(default=UNSET) - avatar_url: Union[str, None] = Field() - url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() -model_rebuild(CombinedCommitStatus) -model_rebuild(SimpleCommitStatus) +model_rebuild(AutoMerge) -__all__ = ( - "CombinedCommitStatus", - "SimpleCommitStatus", -) +__all__ = ("AutoMerge",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0245.py b/githubkit/versions/ghec_v2022_11_28/models/group_0245.py index 5a4a1eb53..9995717b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0245.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0245.py @@ -9,34 +9,100 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0048 import Team +from .group_0064 import Milestone +from .group_0244 import AutoMerge from .group_0001 import SimpleUser +from .group_0247 import PullRequestSimplePropLinks +from .group_0246 import PullRequestSimplePropBase, PullRequestSimplePropHead -class Status(GitHubModel): - """Status +class PullRequestSimple(GitHubModel): + """Pull Request Simple - The status of a commit. + Pull Request Simple """ url: str = Field() - avatar_url: Union[str, None] = Field() id: int = Field() node_id: str = Field() + html_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + issue_url: str = Field() + commits_url: str = Field() + review_comments_url: str = Field() + review_comment_url: str = Field() + comments_url: str = Field() + statuses_url: str = Field() + number: int = Field() state: str = Field() + locked: bool = Field() + title: str = Field() + user: Union[None, SimpleUser] = Field() + body: Union[str, None] = Field() + labels: List[PullRequestSimplePropLabelsItems] = Field() + milestone: Union[None, Milestone] = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + created_at: datetime = Field() + updated_at: datetime = Field() + closed_at: Union[datetime, None] = Field() + merged_at: Union[datetime, None] = Field() + merge_commit_sha: Union[str, None] = Field() + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) + requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) + requested_teams: Missing[Union[List[Team], None]] = Field(default=UNSET) + head: PullRequestSimplePropHead = Field() + base: PullRequestSimplePropBase = Field() + links: PullRequestSimplePropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", description="The status of auto merging a pull request." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="Indicates whether or not the pull request is a draft.", + ) + + +class PullRequestSimplePropLabelsItems(GitHubModel): + """PullRequestSimplePropLabelsItems""" + + id: int = Field() + node_id: str = Field() + url: str = Field() + name: str = Field() description: Union[str, None] = Field() - target_url: Union[str, None] = Field() - context: str = Field() - created_at: str = Field() - updated_at: str = Field() - creator: Union[None, SimpleUser] = Field() + color: str = Field() + default: bool = Field() -model_rebuild(Status) +model_rebuild(PullRequestSimple) +model_rebuild(PullRequestSimplePropLabelsItems) -__all__ = ("Status",) +__all__ = ( + "PullRequestSimple", + "PullRequestSimplePropLabelsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0246.py b/githubkit/versions/ghec_v2022_11_28/models/group_0246.py index 23905a69f..def6cd3fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0246.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0246.py @@ -10,57 +10,39 @@ from __future__ import annotations from typing import Union -from datetime import datetime from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0016 import LicenseSimple -from .group_0118 import CodeOfConductSimple +from .group_0001 import SimpleUser +from .group_0017 import Repository -class CommunityProfilePropFiles(GitHubModel): - """CommunityProfilePropFiles""" +class PullRequestSimplePropHead(GitHubModel): + """PullRequestSimplePropHead""" - code_of_conduct: Union[None, CodeOfConductSimple] = Field() - code_of_conduct_file: Union[None, CommunityHealthFile] = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - contributing: Union[None, CommunityHealthFile] = Field() - readme: Union[None, CommunityHealthFile] = Field() - issue_template: Union[None, CommunityHealthFile] = Field() - pull_request_template: Union[None, CommunityHealthFile] = Field() + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[None, Repository] = Field() + sha: str = Field() + user: Union[None, SimpleUser] = Field() -class CommunityHealthFile(GitHubModel): - """Community Health File""" +class PullRequestSimplePropBase(GitHubModel): + """PullRequestSimplePropBase""" - url: str = Field() - html_url: str = Field() + label: str = Field() + ref: str = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") + sha: str = Field() + user: Union[None, SimpleUser] = Field() -class CommunityProfile(GitHubModel): - """Community Profile - - Community Profile - """ - - health_percentage: int = Field() - description: Union[str, None] = Field() - documentation: Union[str, None] = Field() - files: CommunityProfilePropFiles = Field() - updated_at: Union[datetime, None] = Field() - content_reports_enabled: Missing[bool] = Field(default=UNSET) - - -model_rebuild(CommunityProfilePropFiles) -model_rebuild(CommunityHealthFile) -model_rebuild(CommunityProfile) +model_rebuild(PullRequestSimplePropHead) +model_rebuild(PullRequestSimplePropBase) __all__ = ( - "CommunityProfilePropFiles", - "CommunityHealthFile", - "CommunityProfile", + "PullRequestSimplePropHead", + "PullRequestSimplePropBase", ) 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 046c8942a..685746315 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0247.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0247.py @@ -9,39 +9,26 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0206 import Commit -from .group_0205 import DiffEntry - +from .group_0243 import Link -class CommitComparison(GitHubModel): - """Commit Comparison - Commit Comparison - """ +class PullRequestSimplePropLinks(GitHubModel): + """PullRequestSimplePropLinks""" - url: str = Field() - html_url: str = Field() - permalink_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - base_commit: Commit = Field(title="Commit", description="Commit") - merge_base_commit: Commit = Field(title="Commit", description="Commit") - status: Literal["diverged", "ahead", "behind", "identical"] = Field() - ahead_by: int = Field() - behind_by: int = Field() - total_commits: int = Field() - commits: List[Commit] = Field() - files: Missing[List[DiffEntry]] = Field(default=UNSET) + comments: Link = Field(title="Link", description="Hypermedia Link") + commits: Link = Field(title="Link", description="Hypermedia Link") + statuses: Link = Field(title="Link", description="Hypermedia Link") + html: Link = Field(title="Link", description="Hypermedia Link") + issue: Link = Field(title="Link", description="Hypermedia Link") + review_comments: Link = Field(title="Link", description="Hypermedia Link") + review_comment: Link = Field(title="Link", description="Hypermedia Link") + self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") -model_rebuild(CommitComparison) +model_rebuild(PullRequestSimplePropLinks) -__all__ = ("CommitComparison",) +__all__ = ("PullRequestSimplePropLinks",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0248.py b/githubkit/versions/ghec_v2022_11_28/models/group_0248.py index d7e74cd04..b12fa8639 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0248.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0248.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union from pydantic import Field @@ -17,66 +18,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0082 import MinimalRepository -class ContentTree(GitHubModel): - """Content Tree - Content Tree +class CombinedCommitStatus(GitHubModel): + """Combined Commit Status + + Combined Commit Status """ - type: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() + state: str = Field() + statuses: List[SimpleCommitStatus] = Field() sha: str = Field() + total_count: int = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + commit_url: str = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - entries: Missing[List[ContentTreePropEntriesItems]] = Field(default=UNSET) - links: ContentTreePropLinks = Field(alias="_links") - - -class ContentTreePropLinks(GitHubModel): - """ContentTreePropLinks""" - - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") -class ContentTreePropEntriesItems(GitHubModel): - """ContentTreePropEntriesItems""" +class SimpleCommitStatus(GitHubModel): + """Simple Commit Status""" - type: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() - content: Missing[str] = Field(default=UNSET) - sha: str = Field() + description: Union[str, None] = Field() + id: int = Field() + node_id: str = Field() + state: str = Field() + context: str = Field() + target_url: Union[str, None] = Field() + required: Missing[Union[bool, None]] = Field(default=UNSET) + avatar_url: Union[str, None] = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentTreePropEntriesItemsPropLinks = Field(alias="_links") - - -class ContentTreePropEntriesItemsPropLinks(GitHubModel): - """ContentTreePropEntriesItemsPropLinks""" - - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ContentTree) -model_rebuild(ContentTreePropLinks) -model_rebuild(ContentTreePropEntriesItems) -model_rebuild(ContentTreePropEntriesItemsPropLinks) +model_rebuild(CombinedCommitStatus) +model_rebuild(SimpleCommitStatus) __all__ = ( - "ContentTree", - "ContentTreePropLinks", - "ContentTreePropEntriesItems", - "ContentTreePropEntriesItemsPropLinks", + "CombinedCommitStatus", + "SimpleCommitStatus", ) 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 f782c8d1f..5a4a1eb53 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0249.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0249.py @@ -9,43 +9,34 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class ContentDirectoryItems(GitHubModel): - """ContentDirectoryItems""" - - type: Literal["dir", "file", "submodule", "symlink"] = Field() - size: int = Field() - name: str = Field() - path: str = Field() - content: Missing[str] = Field(default=UNSET) - sha: str = Field() - url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentDirectoryItemsPropLinks = Field(alias="_links") +class Status(GitHubModel): + """Status -class ContentDirectoryItemsPropLinks(GitHubModel): - """ContentDirectoryItemsPropLinks""" + The status of a commit. + """ - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + url: str = Field() + avatar_url: Union[str, None] = Field() + id: int = Field() + node_id: str = Field() + state: str = Field() + description: Union[str, None] = Field() + target_url: Union[str, None] = Field() + context: str = Field() + created_at: str = Field() + updated_at: str = Field() + creator: Union[None, SimpleUser] = Field() -model_rebuild(ContentDirectoryItems) -model_rebuild(ContentDirectoryItemsPropLinks) +model_rebuild(Status) -__all__ = ( - "ContentDirectoryItems", - "ContentDirectoryItemsPropLinks", -) +__all__ = ("Status",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0250.py b/githubkit/versions/ghec_v2022_11_28/models/group_0250.py index 1af5fd9fd..83962ba7a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0250.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0250.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union +from datetime import datetime from pydantic import Field @@ -17,41 +18,49 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0016 import LicenseSimple +from .group_0122 import CodeOfConductSimple -class ContentFile(GitHubModel): - """Content File - Content File - """ +class CommunityProfilePropFiles(GitHubModel): + """CommunityProfilePropFiles""" + + code_of_conduct: Union[None, CodeOfConductSimple] = Field() + code_of_conduct_file: Union[None, CommunityHealthFile] = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + contributing: Union[None, CommunityHealthFile] = Field() + readme: Union[None, CommunityHealthFile] = Field() + issue_template: Union[None, CommunityHealthFile] = Field() + pull_request_template: Union[None, CommunityHealthFile] = Field() + + +class CommunityHealthFile(GitHubModel): + """Community Health File""" - type: Literal["file"] = Field() - encoding: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() - content: str = Field() - sha: str = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentFilePropLinks = Field(alias="_links") - target: Missing[str] = Field(default=UNSET) - submodule_git_url: Missing[str] = Field(default=UNSET) + html_url: str = Field() + +class CommunityProfile(GitHubModel): + """Community Profile -class ContentFilePropLinks(GitHubModel): - """ContentFilePropLinks""" + Community Profile + """ - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + health_percentage: int = Field() + description: Union[str, None] = Field() + documentation: Union[str, None] = Field() + files: CommunityProfilePropFiles = Field() + updated_at: Union[datetime, None] = Field() + content_reports_enabled: Missing[bool] = Field(default=UNSET) -model_rebuild(ContentFile) -model_rebuild(ContentFilePropLinks) +model_rebuild(CommunityProfilePropFiles) +model_rebuild(CommunityHealthFile) +model_rebuild(CommunityProfile) __all__ = ( - "ContentFile", - "ContentFilePropLinks", + "CommunityProfilePropFiles", + "CommunityHealthFile", + "CommunityProfile", ) 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 8f2dc9b36..589c90c62 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0251.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0251.py @@ -9,44 +9,39 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0210 import Commit +from .group_0209 import DiffEntry -class ContentSymlink(GitHubModel): - """Symlink Content - An object describing a symlink +class CommitComparison(GitHubModel): + """Commit Comparison + + Commit Comparison """ - type: Literal["symlink"] = Field() - target: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() - sha: str = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentSymlinkPropLinks = Field(alias="_links") - - -class ContentSymlinkPropLinks(GitHubModel): - """ContentSymlinkPropLinks""" - - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") - - -model_rebuild(ContentSymlink) -model_rebuild(ContentSymlinkPropLinks) - -__all__ = ( - "ContentSymlink", - "ContentSymlinkPropLinks", -) + html_url: str = Field() + permalink_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + base_commit: Commit = Field(title="Commit", description="Commit") + merge_base_commit: Commit = Field(title="Commit", description="Commit") + status: Literal["diverged", "ahead", "behind", "identical"] = Field() + ahead_by: int = Field() + behind_by: int = Field() + total_commits: int = Field() + commits: List[Commit] = Field() + files: Missing[List[DiffEntry]] = Field(default=UNSET) + + +model_rebuild(CommitComparison) + +__all__ = ("CommitComparison",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0252.py b/githubkit/versions/ghec_v2022_11_28/models/group_0252.py index 23682cfb1..d7e74cd04 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0252.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0252.py @@ -9,21 +9,22 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ContentSubmodule(GitHubModel): - """Submodule Content +class ContentTree(GitHubModel): + """Content Tree - An object describing a submodule + Content Tree """ - type: Literal["submodule"] = Field() - submodule_git_url: str = Field() + type: str = Field() size: int = Field() name: str = Field() path: str = Field() @@ -32,21 +33,50 @@ class ContentSubmodule(GitHubModel): git_url: Union[str, None] = Field() html_url: Union[str, None] = Field() download_url: Union[str, None] = Field() - links: ContentSubmodulePropLinks = Field(alias="_links") + entries: Missing[List[ContentTreePropEntriesItems]] = Field(default=UNSET) + links: ContentTreePropLinks = Field(alias="_links") -class ContentSubmodulePropLinks(GitHubModel): - """ContentSubmodulePropLinks""" +class ContentTreePropLinks(GitHubModel): + """ContentTreePropLinks""" git: Union[str, None] = Field() html: Union[str, None] = Field() self_: str = Field(alias="self") -model_rebuild(ContentSubmodule) -model_rebuild(ContentSubmodulePropLinks) +class ContentTreePropEntriesItems(GitHubModel): + """ContentTreePropEntriesItems""" + + type: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + 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: ContentTreePropEntriesItemsPropLinks = Field(alias="_links") + + +class ContentTreePropEntriesItemsPropLinks(GitHubModel): + """ContentTreePropEntriesItemsPropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +model_rebuild(ContentTree) +model_rebuild(ContentTreePropLinks) +model_rebuild(ContentTreePropEntriesItems) +model_rebuild(ContentTreePropEntriesItemsPropLinks) __all__ = ( - "ContentSubmodule", - "ContentSubmodulePropLinks", + "ContentTree", + "ContentTreePropLinks", + "ContentTreePropEntriesItems", + "ContentTreePropEntriesItemsPropLinks", ) 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 ef42a5d0b..f782c8d1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0253.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0253.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import Union, Literal from pydantic import Field @@ -18,114 +18,34 @@ from githubkit.compat import GitHubModel, model_rebuild -class FileCommit(GitHubModel): - """File Commit +class ContentDirectoryItems(GitHubModel): + """ContentDirectoryItems""" - File Commit - """ + type: Literal["dir", "file", "submodule", "symlink"] = Field() + size: int = Field() + name: str = Field() + path: str = Field() + content: Missing[str] = Field(default=UNSET) + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentDirectoryItemsPropLinks = Field(alias="_links") - content: Union[FileCommitPropContent, None] = Field() - commit: FileCommitPropCommit = Field() +class ContentDirectoryItemsPropLinks(GitHubModel): + """ContentDirectoryItemsPropLinks""" -class FileCommitPropContent(GitHubModel): - """FileCommitPropContent""" + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") - name: Missing[str] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - download_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - links: Missing[FileCommitPropContentPropLinks] = Field( - default=UNSET, alias="_links" - ) - -class FileCommitPropContentPropLinks(GitHubModel): - """FileCommitPropContentPropLinks""" - - self_: Missing[str] = Field(default=UNSET, alias="self") - git: Missing[str] = Field(default=UNSET) - html: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommit(GitHubModel): - """FileCommitPropCommit""" - - sha: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - author: Missing[FileCommitPropCommitPropAuthor] = Field(default=UNSET) - committer: Missing[FileCommitPropCommitPropCommitter] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - tree: Missing[FileCommitPropCommitPropTree] = Field(default=UNSET) - parents: Missing[List[FileCommitPropCommitPropParentsItems]] = Field(default=UNSET) - verification: Missing[FileCommitPropCommitPropVerification] = Field(default=UNSET) - - -class FileCommitPropCommitPropAuthor(GitHubModel): - """FileCommitPropCommitPropAuthor""" - - date: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropCommitter(GitHubModel): - """FileCommitPropCommitPropCommitter""" - - date: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropTree(GitHubModel): - """FileCommitPropCommitPropTree""" - - url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropParentsItems(GitHubModel): - """FileCommitPropCommitPropParentsItems""" - - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - - -class FileCommitPropCommitPropVerification(GitHubModel): - """FileCommitPropCommitPropVerification""" - - verified: Missing[bool] = Field(default=UNSET) - reason: Missing[str] = Field(default=UNSET) - signature: Missing[Union[str, None]] = Field(default=UNSET) - payload: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(FileCommit) -model_rebuild(FileCommitPropContent) -model_rebuild(FileCommitPropContentPropLinks) -model_rebuild(FileCommitPropCommit) -model_rebuild(FileCommitPropCommitPropAuthor) -model_rebuild(FileCommitPropCommitPropCommitter) -model_rebuild(FileCommitPropCommitPropTree) -model_rebuild(FileCommitPropCommitPropParentsItems) -model_rebuild(FileCommitPropCommitPropVerification) +model_rebuild(ContentDirectoryItems) +model_rebuild(ContentDirectoryItemsPropLinks) __all__ = ( - "FileCommit", - "FileCommitPropContent", - "FileCommitPropContentPropLinks", - "FileCommitPropCommit", - "FileCommitPropCommitPropAuthor", - "FileCommitPropCommitPropCommitter", - "FileCommitPropCommitPropTree", - "FileCommitPropCommitPropParentsItems", - "FileCommitPropCommitPropVerification", + "ContentDirectoryItems", + "ContentDirectoryItemsPropLinks", ) 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 bd8204a62..1af5fd9fd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0254.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0254.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from pydantic import Field @@ -18,35 +18,40 @@ from githubkit.compat import GitHubModel, model_rebuild -class Contributor(GitHubModel): - """Contributor +class ContentFile(GitHubModel): + """Content File - Contributor + Content File """ - 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) - - -model_rebuild(Contributor) - -__all__ = ("Contributor",) + type: Literal["file"] = Field() + encoding: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + content: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentFilePropLinks = Field(alias="_links") + target: Missing[str] = Field(default=UNSET) + submodule_git_url: Missing[str] = Field(default=UNSET) + + +class ContentFilePropLinks(GitHubModel): + """ContentFilePropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +model_rebuild(ContentFile) +model_rebuild(ContentFilePropLinks) + +__all__ = ( + "ContentFile", + "ContentFilePropLinks", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0255.py b/githubkit/versions/ghec_v2022_11_28/models/group_0255.py index 2e923dfe3..8f2dc9b36 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0255.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0255.py @@ -9,71 +9,44 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import Annotated from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0256 import DependabotAlertPropDependency -from .group_0050 import DependabotAlertSecurityAdvisory -from .group_0049 import DependabotAlertSecurityVulnerability +class ContentSymlink(GitHubModel): + """Symlink Content -class DependabotAlert(GitHubModel): - """DependabotAlert - - A Dependabot alert. + An object describing a symlink """ - number: int = Field(description="The security alert number.") - state: Literal["auto_dismissed", "dismissed", "fixed", "open"] = Field( - description="The state of the Dependabot alert." - ) - dependency: DependabotAlertPropDependency = Field( - description="Details for the vulnerable dependency." - ) - security_advisory: DependabotAlertSecurityAdvisory = Field( - description="Details for the GitHub Security Advisory." - ) - security_vulnerability: DependabotAlertSecurityVulnerability = Field( - description="Details pertaining to one vulnerable version range for the advisory." - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: datetime = Field( - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], - ] = Field(description="The reason that the alert was dismissed.") - dismissed_comment: Union[Annotated[str, Field(max_length=280)], None] = Field( - description="An optional comment associated with the alert's dismissal." - ) - fixed_at: Union[datetime, None] = Field( - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - auto_dismissed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - - -model_rebuild(DependabotAlert) - -__all__ = ("DependabotAlert",) + type: Literal["symlink"] = Field() + target: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentSymlinkPropLinks = Field(alias="_links") + + +class ContentSymlinkPropLinks(GitHubModel): + """ContentSymlinkPropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +model_rebuild(ContentSymlink) +model_rebuild(ContentSymlinkPropLinks) + +__all__ = ( + "ContentSymlink", + "ContentSymlinkPropLinks", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0256.py b/githubkit/versions/ghec_v2022_11_28/models/group_0256.py index 7efb0ab4d..23682cfb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0256.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0256.py @@ -13,31 +13,40 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0048 import DependabotAlertPackage +class ContentSubmodule(GitHubModel): + """Submodule Content -class DependabotAlertPropDependency(GitHubModel): - """DependabotAlertPropDependency - - Details for the vulnerable dependency. + An object describing a submodule """ - package: Missing[DependabotAlertPackage] = Field( - default=UNSET, description="Details for the vulnerable package." - ) - manifest_path: Missing[str] = Field( - default=UNSET, - description="The full path to the dependency manifest file, relative to the root of the repository.", - ) - scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( - default=UNSET, description="The execution scope of the vulnerable dependency." - ) + type: Literal["submodule"] = Field() + submodule_git_url: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentSubmodulePropLinks = Field(alias="_links") + + +class ContentSubmodulePropLinks(GitHubModel): + """ContentSubmodulePropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") -model_rebuild(DependabotAlertPropDependency) +model_rebuild(ContentSubmodule) +model_rebuild(ContentSubmodulePropLinks) -__all__ = ("DependabotAlertPropDependency",) +__all__ = ( + "ContentSubmodule", + "ContentSubmodulePropLinks", +) 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 f34e182ab..ef42a5d0b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0257.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0257.py @@ -9,43 +9,123 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class 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 FileCommit(GitHubModel): + """File Commit + + File Commit + """ + + content: Union[FileCommitPropContent, None] = Field() + commit: FileCommitPropCommit = Field() + + +class FileCommitPropContent(GitHubModel): + """FileCommitPropContent""" + + name: Missing[str] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + git_url: Missing[str] = Field(default=UNSET) + download_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + links: Missing[FileCommitPropContentPropLinks] = Field( + default=UNSET, alias="_links" ) -class DependencyGraphDiffItemsPropVulnerabilitiesItems(GitHubModel): - """DependencyGraphDiffItemsPropVulnerabilitiesItems""" +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""" - severity: str = Field() - advisory_ghsa_id: str = Field() - advisory_summary: str = Field() - advisory_url: str = Field() + 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) -model_rebuild(DependencyGraphDiffItems) -model_rebuild(DependencyGraphDiffItemsPropVulnerabilitiesItems) +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__ = ( - "DependencyGraphDiffItems", - "DependencyGraphDiffItemsPropVulnerabilitiesItems", + "FileCommit", + "FileCommitPropContent", + "FileCommitPropContentPropLinks", + "FileCommitPropCommit", + "FileCommitPropCommitPropAuthor", + "FileCommitPropCommitPropCommitter", + "FileCommitPropCommitPropTree", + "FileCommitPropCommitPropParentsItems", + "FileCommitPropCommitPropVerification", ) 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 7f410acba..bd8204a62 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0258.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0258.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Union from pydantic import Field @@ -18,124 +18,35 @@ from githubkit.compat import GitHubModel, model_rebuild -class DependencyGraphSpdxSbom(GitHubModel): - """Dependency Graph SPDX SBOM +class Contributor(GitHubModel): + """Contributor - A schema for the SPDX JSON format returned by the Dependency Graph. + Contributor """ - sbom: DependencyGraphSpdxSbomPropSbom = Field() - - -class DependencyGraphSpdxSbomPropSbom(GitHubModel): - """DependencyGraphSpdxSbomPropSbom""" - - spdxid: str = Field( - alias="SPDXID", description="The SPDX identifier for the SPDX document." - ) - spdx_version: str = Field( - alias="spdxVersion", - description="The version of the SPDX specification that this document conforms to.", - ) - 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_describes: List[str] = Field( - alias="documentDescribes", - description="The name of the repository that the SPDX document describes.", - ) - document_namespace: str = Field( - alias="documentNamespace", description="The namespace for the SPDX document." - ) - packages: List[DependencyGraphSpdxSbomPropSbomPropPackagesItems] = Field() - - -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 DependencyGraphSpdxSbomPropSbomPropPackagesItems(GitHubModel): - """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" - - spdxid: Missing[str] = Field( - default=UNSET, - alias="SPDXID", - description="A unique SPDX identifier for the package.", - ) - name: Missing[str] = Field(default=UNSET, description="The name of the package.") - version_info: Missing[str] = Field( - default=UNSET, - alias="versionInfo", - description="The version of the package. If the package does not have an exact version specified,\na version range is given.", - ) - download_location: Missing[str] = Field( - default=UNSET, - alias="downloadLocation", - description="The location where the package can be downloaded,\nor NOASSERTION if this has not been determined.", - ) - files_analyzed: Missing[bool] = Field( - default=UNSET, - alias="filesAnalyzed", - description="Whether the package's file content has been subjected to\nanalysis during the creation of the SPDX document.", - ) - license_concluded: Missing[str] = Field( - default=UNSET, - alias="licenseConcluded", - description="The license of the package as determined while creating the SPDX document.", - ) - license_declared: Missing[str] = Field( - default=UNSET, - alias="licenseDeclared", - description="The license of the package as declared by its author, or NOASSERTION if this information\nwas not available when the SPDX document was created.", - ) - supplier: Missing[str] = Field( - default=UNSET, - description="The distribution source of this package, or NOASSERTION if this was not determined.", - ) - external_refs: Missing[ - List[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems] - ] = Field(default=UNSET, alias="externalRefs") - - -class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems( - GitHubModel -): - """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" - - reference_category: str = Field( - alias="referenceCategory", - description="The category of reference to an external resource this reference refers to.", - ) - reference_locator: str = Field( - alias="referenceLocator", - description="A locator for the particular external resource this reference refers to.", - ) - reference_type: str = Field( - alias="referenceType", - description="The category of reference to an external resource this reference refers to.", - ) - - -model_rebuild(DependencyGraphSpdxSbom) -model_rebuild(DependencyGraphSpdxSbomPropSbom) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropCreationInfo) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItems) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems) - -__all__ = ( - "DependencyGraphSpdxSbom", - "DependencyGraphSpdxSbomPropSbom", - "DependencyGraphSpdxSbomPropSbomPropCreationInfo", - "DependencyGraphSpdxSbomPropSbomPropPackagesItems", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", -) + 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) + + +model_rebuild(Contributor) + +__all__ = ("Contributor",) 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 ffac1fb50..4af3a5830 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0259.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0259.py @@ -9,17 +9,71 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from datetime import datetime +from typing import Union, Literal +from typing_extensions import Annotated +from pydantic import Field -class Metadata(ExtraGitHubModel): - """metadata +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. +from .group_0001 import SimpleUser +from .group_0260 import DependabotAlertPropDependency +from .group_0053 import DependabotAlertSecurityAdvisory +from .group_0052 import DependabotAlertSecurityVulnerability + + +class DependabotAlert(GitHubModel): + """DependabotAlert + + A Dependabot alert. """ + number: int = Field(description="The security alert number.") + state: Literal["auto_dismissed", "dismissed", "fixed", "open"] = Field( + description="The state of the Dependabot alert." + ) + dependency: DependabotAlertPropDependency = Field( + description="Details for the vulnerable dependency." + ) + security_advisory: DependabotAlertSecurityAdvisory = Field( + description="Details for the GitHub Security Advisory." + ) + security_vulnerability: DependabotAlertSecurityVulnerability = Field( + description="Details pertaining to one vulnerable version range for the advisory." + ) + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + updated_at: datetime = Field( + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_reason: Union[ + None, + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ], + ] = Field(description="The reason that the alert was dismissed.") + dismissed_comment: Union[Annotated[str, Field(max_length=280)], None] = Field( + description="An optional comment associated with the alert's dismissal." + ) + fixed_at: Union[datetime, None] = Field( + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + auto_dismissed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + -model_rebuild(Metadata) +model_rebuild(DependabotAlert) -__all__ = ("Metadata",) +__all__ = ("DependabotAlert",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0260.py b/githubkit/versions/ghec_v2022_11_28/models/group_0260.py index a198e9ba8..d04adb000 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0260.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0260.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union, Literal from pydantic import Field @@ -17,36 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0259 import Metadata +from .group_0051 import DependabotAlertPackage -class Dependency(GitHubModel): - """Dependency""" +class DependabotAlertPropDependency(GitHubModel): + """DependabotAlertPropDependency - package_url: Missing[str] = Field( - pattern="^pkg", - default=UNSET, - description="Package-url (PURL) of dependency. See https://github.com/package-url/purl-spec for more details.", - ) - metadata: Missing[Metadata] = Field( - default=UNSET, - title="metadata", - description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", - ) - relationship: Missing[Literal["direct", "indirect"]] = Field( - default=UNSET, - description="A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency.", + Details for the vulnerable dependency. + """ + + package: Missing[DependabotAlertPackage] = Field( + default=UNSET, description="Details for the vulnerable package." ) - scope: Missing[Literal["runtime", "development"]] = Field( + manifest_path: Missing[str] = 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.", + description="The full path to the dependency manifest file, relative to the root of the repository.", ) - dependencies: Missing[List[str]] = Field( - default=UNSET, - description="Array of package-url (PURLs) of direct child dependencies.", + scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( + default=UNSET, description="The execution scope of the vulnerable dependency." ) -model_rebuild(Dependency) +model_rebuild(DependabotAlertPropDependency) -__all__ = ("Dependency",) +__all__ = ("DependabotAlertPropDependency",) 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 c6ba543fc..f34e182ab 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0261.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0261.py @@ -9,52 +9,43 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - -from .group_0259 import Metadata - +from typing import List, Union, Literal -class Manifest(GitHubModel): - """Manifest""" +from pydantic import Field - name: str = Field(description="The name of the manifest.") - file: Missing[ManifestPropFile] = Field(default=UNSET) - metadata: Missing[Metadata] = Field( - default=UNSET, - title="metadata", - description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", - ) - resolved: Missing[ManifestPropResolved] = Field( - default=UNSET, description="A collection of resolved package dependencies." - ) +from githubkit.compat import GitHubModel, model_rebuild -class ManifestPropFile(GitHubModel): - """ManifestPropFile""" +class DependencyGraphDiffItems(GitHubModel): + """DependencyGraphDiffItems""" - source_location: Missing[str] = Field( - default=UNSET, - description="The path of the manifest file relative to the root of the Git repository.", + change_type: Literal["added", "removed"] = Field() + manifest: str = Field() + ecosystem: str = Field() + name: str = Field() + version: str = Field() + package_url: Union[str, None] = Field() + license_: Union[str, None] = Field(alias="license") + source_repository_url: Union[str, None] = Field() + vulnerabilities: List[DependencyGraphDiffItemsPropVulnerabilitiesItems] = Field() + scope: Literal["unknown", "runtime", "development"] = Field( + description="Where the dependency is utilized. `development` means that the dependency is only utilized in the development environment. `runtime` means that the dependency is utilized at runtime and in the development environment." ) -class ManifestPropResolved(ExtraGitHubModel): - """ManifestPropResolved +class DependencyGraphDiffItemsPropVulnerabilitiesItems(GitHubModel): + """DependencyGraphDiffItemsPropVulnerabilitiesItems""" - A collection of resolved package dependencies. - """ + severity: str = Field() + advisory_ghsa_id: str = Field() + advisory_summary: str = Field() + advisory_url: str = Field() -model_rebuild(Manifest) -model_rebuild(ManifestPropFile) -model_rebuild(ManifestPropResolved) +model_rebuild(DependencyGraphDiffItems) +model_rebuild(DependencyGraphDiffItemsPropVulnerabilitiesItems) __all__ = ( - "Manifest", - "ManifestPropFile", - "ManifestPropResolved", + "DependencyGraphDiffItems", + "DependencyGraphDiffItemsPropVulnerabilitiesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0262.py b/githubkit/versions/ghec_v2022_11_28/models/group_0262.py index ba3dd7738..f363ea7ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0262.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0262.py @@ -9,88 +9,138 @@ from __future__ import annotations -from datetime import datetime +from typing import List from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0259 import Metadata +class DependencyGraphSpdxSbom(GitHubModel): + """Dependency Graph SPDX SBOM -class Snapshot(GitHubModel): - """snapshot - - Create a new snapshot of a repository's dependencies. + A schema for the SPDX JSON format returned by the Dependency Graph. """ - version: int = Field( - description="The version of the repository snapshot submission." + sbom: DependencyGraphSpdxSbomPropSbom = Field() + + +class DependencyGraphSpdxSbomPropSbom(GitHubModel): + """DependencyGraphSpdxSbomPropSbom""" + + spdxid: str = Field( + alias="SPDXID", description="The SPDX identifier for the SPDX document." ) - job: SnapshotPropJob = Field() - sha: str = Field( - min_length=40, - max_length=40, - description="The commit SHA associated with this dependency snapshot. Maximum length: 40 characters.", + spdx_version: str = Field( + alias="spdxVersion", + description="The version of the SPDX specification that this document conforms to.", ) - ref: str = Field( - pattern="^refs/", - description="The repository branch that triggered this snapshot.", + creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfo = Field( + alias="creationInfo" ) - detector: SnapshotPropDetector = Field( - description="A description of the detector used." + 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.", ) - metadata: Missing[Metadata] = Field( - default=UNSET, - title="metadata", - description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", + document_describes: List[str] = Field( + alias="documentDescribes", + description="The name of the repository that the SPDX document describes.", ) - manifests: Missing[SnapshotPropManifests] = Field( - default=UNSET, - description="A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies.", + document_namespace: str = Field( + alias="documentNamespace", description="The namespace for the SPDX document." ) - scanned: datetime = Field(description="The time at which the snapshot was scanned.") + packages: List[DependencyGraphSpdxSbomPropSbomPropPackagesItems] = Field() -class SnapshotPropJob(GitHubModel): - """SnapshotPropJob""" +class DependencyGraphSpdxSbomPropSbomPropCreationInfo(GitHubModel): + """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" - id: str = Field(description="The external ID of the job.") - correlator: str = Field( - description="Correlator provides a key that is used to group snapshots submitted over time. Only the \"latest\" submitted snapshot for a given combination of `job.correlator` and `detector.name` will be considered when calculating a repository's current dependencies. Correlator should be as unique as it takes to distinguish all detection runs for a given \"wave\" of CI workflow you run. If you're using GitHub Actions, a good default value for this could be the environment variables GITHUB_WORKFLOW and GITHUB_JOB concatenated together. If you're using a build matrix, then you'll also need to add additional key(s) to distinguish between each submission inside a matrix variation." + created: str = Field(description="The date and time the SPDX document was created.") + creators: List[str] = Field( + description="The tools that were used to generate the SPDX document." ) - html_url: Missing[str] = Field(default=UNSET, description="The url for the job.") - -class SnapshotPropDetector(GitHubModel): - """SnapshotPropDetector - A description of the detector used. - """ +class DependencyGraphSpdxSbomPropSbomPropPackagesItems(GitHubModel): + """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" - 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.") + spdxid: Missing[str] = Field( + default=UNSET, + alias="SPDXID", + description="A unique SPDX identifier for the package.", + ) + name: Missing[str] = Field(default=UNSET, description="The name of the package.") + version_info: Missing[str] = Field( + default=UNSET, + alias="versionInfo", + description="The version of the package. If the package does not have an exact version specified,\na version range is given.", + ) + download_location: Missing[str] = Field( + default=UNSET, + alias="downloadLocation", + description="The location where the package can be downloaded,\nor NOASSERTION if this has not been determined.", + ) + files_analyzed: Missing[bool] = Field( + default=UNSET, + alias="filesAnalyzed", + description="Whether the package's file content has been subjected to\nanalysis during the creation of the SPDX document.", + ) + license_concluded: Missing[str] = Field( + default=UNSET, + alias="licenseConcluded", + description="The license of the package as determined while creating the SPDX document.", + ) + license_declared: Missing[str] = Field( + default=UNSET, + alias="licenseDeclared", + description="The license of the package as declared by its author, or NOASSERTION if this information\nwas not available when the SPDX document was created.", + ) + supplier: Missing[str] = Field( + default=UNSET, + description="The distribution source of this package, or NOASSERTION if this was not determined.", + ) + copyright_text: Missing[str] = Field( + default=UNSET, + alias="copyrightText", + description="The copyright holders of the package, and any dates present with those notices, if available.", + ) + external_refs: Missing[ + List[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems] + ] = Field(default=UNSET, alias="externalRefs") -class SnapshotPropManifests(ExtraGitHubModel): - """SnapshotPropManifests +class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems( + GitHubModel +): + """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" - A collection of package manifests, which are a collection of related - dependencies declared in a file or representing a logical group of dependencies. - """ + reference_category: str = Field( + alias="referenceCategory", + description="The category of reference to an external resource this reference refers to.", + ) + reference_locator: str = Field( + alias="referenceLocator", + description="A locator for the particular external resource this reference refers to.", + ) + reference_type: str = Field( + alias="referenceType", + description="The category of reference to an external resource this reference refers to.", + ) -model_rebuild(Snapshot) -model_rebuild(SnapshotPropJob) -model_rebuild(SnapshotPropDetector) -model_rebuild(SnapshotPropManifests) +model_rebuild(DependencyGraphSpdxSbom) +model_rebuild(DependencyGraphSpdxSbomPropSbom) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropCreationInfo) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItems) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems) __all__ = ( - "Snapshot", - "SnapshotPropJob", - "SnapshotPropDetector", - "SnapshotPropManifests", + "DependencyGraphSpdxSbom", + "DependencyGraphSpdxSbomPropSbom", + "DependencyGraphSpdxSbomPropSbomPropCreationInfo", + "DependencyGraphSpdxSbomPropSbomPropPackagesItems", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", ) 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 46820d7ea..ffac1fb50 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0263.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0263.py @@ -9,57 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from githubkit.compat import ExtraGitHubModel, model_rebuild -from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +class Metadata(ExtraGitHubModel): + """metadata -from .group_0001 import SimpleUser -from .group_0006 import Integration - - -class DeploymentStatus(GitHubModel): - """Deployment Status - - The status of a deployment. + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. """ - url: str = Field() - id: int = Field() - node_id: str = Field() - state: Literal[ - "error", "failure", "inactive", "pending", "success", "queued", "in_progress" - ] = Field(description="The state of the status.") - creator: Union[None, SimpleUser] = Field() - description: str = Field( - max_length=140, default="", description="A short description of the status." - ) - environment: Missing[str] = Field( - default=UNSET, - description="The environment of the deployment that the status is for.", - ) - target_url: str = Field( - default="", description="Deprecated: the URL to associate with this status." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - deployment_url: str = Field() - repository_url: str = Field() - environment_url: Missing[str] = Field( - default=UNSET, description="The URL for accessing your environment." - ) - log_url: Missing[str] = Field( - default=UNSET, description="The URL to associate with this status." - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - -model_rebuild(DeploymentStatus) +model_rebuild(Metadata) -__all__ = ("DeploymentStatus",) +__all__ = ("Metadata",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0264.py b/githubkit/versions/ghec_v2022_11_28/models/group_0264.py index 2969bea8b..61320c4f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0264.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0264.py @@ -9,26 +9,44 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0263 import Metadata -class DeploymentBranchPolicySettings(GitHubModel): - """DeploymentBranchPolicySettings - The type of deployment branch policy for this environment. To allow all branches - to deploy, set to `null`. - """ +class Dependency(GitHubModel): + """Dependency""" - protected_branches: bool = Field( - description="Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`." + package_url: Missing[str] = Field( + pattern="^pkg", + default=UNSET, + description="Package-url (PURL) of dependency. See https://github.com/package-url/purl-spec for more details.", + ) + metadata: Missing[Metadata] = Field( + default=UNSET, + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", + ) + relationship: Missing[Literal["direct", "indirect"]] = Field( + default=UNSET, + description="A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency.", + ) + scope: Missing[Literal["runtime", "development"]] = Field( + default=UNSET, + description="A notation of whether the dependency is required for the primary build artifact (runtime) or is only used for development. Future versions of this specification may allow for more granular scopes.", ) - custom_branch_policies: bool = Field( - description="Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`." + dependencies: Missing[List[str]] = Field( + default=UNSET, + description="Array of package-url (PURLs) of direct child dependencies.", ) -model_rebuild(DeploymentBranchPolicySettings) +model_rebuild(Dependency) -__all__ = ("DeploymentBranchPolicySettings",) +__all__ = ("Dependency",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0265.py b/githubkit/versions/ghec_v2022_11_28/models/group_0265.py index 54fed003f..ba57c4edd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0265.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0265.py @@ -9,93 +9,52 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0264 import DeploymentBranchPolicySettings -from .group_0266 import EnvironmentPropProtectionRulesItemsAnyof1 +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from .group_0263 import Metadata -class Environment(GitHubModel): - """Environment - Details of a deployment environment - """ +class Manifest(GitHubModel): + """Manifest""" - id: int = Field(description="The id of the environment.") - node_id: str = Field() - name: str = Field(description="The name of the environment.") - url: str = Field() - html_url: str = Field() - created_at: datetime = Field( - description="The time that the environment was created, in ISO 8601 format." - ) - updated_at: datetime = Field( - description="The time that the environment was last updated, in ISO 8601 format." - ) - protection_rules: Missing[ - List[ - Union[ - EnvironmentPropProtectionRulesItemsAnyof0, - EnvironmentPropProtectionRulesItemsAnyof1, - EnvironmentPropProtectionRulesItemsAnyof2, - ] - ] - ] = Field( + name: str = Field(description="The name of the manifest.") + file: Missing[ManifestPropFile] = Field(default=UNSET) + metadata: Missing[Metadata] = Field( default=UNSET, - description="Built-in deployment protection rules for the environment.", + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", ) - deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( - Field( - default=UNSET, - description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", - ) + resolved: Missing[ManifestPropResolved] = Field( + default=UNSET, description="A collection of resolved package dependencies." ) -class EnvironmentPropProtectionRulesItemsAnyof0(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof0""" +class ManifestPropFile(GitHubModel): + """ManifestPropFile""" - id: int = Field() - node_id: str = Field() - type: str = Field() - wait_timer: Missing[int] = Field( + source_location: Missing[str] = Field( default=UNSET, - description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", + description="The path of the manifest file relative to the root of the Git repository.", ) -class EnvironmentPropProtectionRulesItemsAnyof2(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof2""" +class ManifestPropResolved(ExtraGitHubModel): + """ManifestPropResolved - id: int = Field() - node_id: str = Field() - type: str = Field() - - -class ReposOwnerRepoEnvironmentsGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsGetResponse200""" - - total_count: Missing[int] = Field( - default=UNSET, description="The number of environments in this repository" - ) - environments: Missing[List[Environment]] = Field(default=UNSET) + A collection of resolved package dependencies. + """ -model_rebuild(Environment) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof0) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof2) -model_rebuild(ReposOwnerRepoEnvironmentsGetResponse200) +model_rebuild(Manifest) +model_rebuild(ManifestPropFile) +model_rebuild(ManifestPropResolved) __all__ = ( - "Environment", - "EnvironmentPropProtectionRulesItemsAnyof0", - "EnvironmentPropProtectionRulesItemsAnyof2", - "ReposOwnerRepoEnvironmentsGetResponse200", + "Manifest", + "ManifestPropFile", + "ManifestPropResolved", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0266.py b/githubkit/versions/ghec_v2022_11_28/models/group_0266.py index 95da3c36e..9206ad115 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0266.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0266.py @@ -9,35 +9,88 @@ from __future__ import annotations -from typing import List +from datetime import datetime from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0267 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems +from .group_0263 import Metadata -class EnvironmentPropProtectionRulesItemsAnyof1(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof1""" +class Snapshot(GitHubModel): + """snapshot - id: int = Field() - node_id: str = Field() - prevent_self_review: Missing[bool] = Field( + 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." + ) + metadata: Missing[Metadata] = Field( default=UNSET, - description="Whether deployments to this environment can be approved by the user who created the deployment.", + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", ) - type: str = Field() - reviewers: Missing[ - List[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems] - ] = Field( + manifests: Missing[SnapshotPropManifests] = Field( default=UNSET, - description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", + description="A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies.", + ) + scanned: datetime = Field(description="The time at which the snapshot was scanned.") + + +class SnapshotPropJob(GitHubModel): + """SnapshotPropJob""" + + id: str = Field(description="The external ID of the job.") + correlator: str = Field( + description="Correlator provides a key that is used to group snapshots submitted over time. Only the \"latest\" submitted snapshot for a given combination of `job.correlator` and `detector.name` will be considered when calculating a repository's current dependencies. Correlator should be as unique as it takes to distinguish all detection runs for a given \"wave\" of CI workflow you run. If you're using GitHub Actions, a good default value for this could be the environment variables GITHUB_WORKFLOW and GITHUB_JOB concatenated together. If you're using a build matrix, then you'll also need to add additional key(s) to distinguish between each submission inside a matrix variation." ) + html_url: Missing[str] = Field(default=UNSET, description="The url for the job.") + + +class SnapshotPropDetector(GitHubModel): + """SnapshotPropDetector + + A description of the detector used. + """ + + name: str = Field(description="The name of the detector used.") + version: str = Field(description="The version of the detector used.") + url: str = Field(description="The url of the detector used.") + + +class SnapshotPropManifests(ExtraGitHubModel): + """SnapshotPropManifests + + A collection of package manifests, which are a collection of related + dependencies declared in a file or representing a logical group of dependencies. + """ -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1) +model_rebuild(Snapshot) +model_rebuild(SnapshotPropJob) +model_rebuild(SnapshotPropDetector) +model_rebuild(SnapshotPropManifests) -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1",) +__all__ = ( + "Snapshot", + "SnapshotPropJob", + "SnapshotPropDetector", + "SnapshotPropManifests", +) 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 55782496a..46820d7ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0267.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0267.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -17,19 +18,48 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0093 import Team from .group_0001 import SimpleUser +from .group_0006 import Integration -class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" +class DeploymentStatus(GitHubModel): + """Deployment Status - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." + The status of a deployment. + """ + + url: str = Field() + id: int = Field() + node_id: str = Field() + state: Literal[ + "error", "failure", "inactive", "pending", "success", "queued", "in_progress" + ] = Field(description="The state of the status.") + creator: Union[None, SimpleUser] = Field() + description: str = Field( + max_length=140, default="", description="A short description of the status." + ) + environment: Missing[str] = Field( + default=UNSET, + description="The environment of the deployment that the status is for.", + ) + target_url: str = Field( + default="", description="Deprecated: the URL to associate with this status." + ) + created_at: datetime = Field() + updated_at: datetime = Field() + deployment_url: str = Field() + repository_url: str = Field() + environment_url: Missing[str] = Field( + default=UNSET, description="The URL for accessing your environment." + ) + log_url: Missing[str] = Field( + default=UNSET, description="The URL to associate with this status." + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) - reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems) +model_rebuild(DeploymentStatus) -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",) +__all__ = ("DeploymentStatus",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0268.py b/githubkit/versions/ghec_v2022_11_28/models/group_0268.py index aee2faae9..2969bea8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0268.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0268.py @@ -9,26 +9,26 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class DeploymentBranchPolicyNamePatternWithType(GitHubModel): - """Deployment branch and tag policy name pattern""" +class DeploymentBranchPolicySettings(GitHubModel): + """DeploymentBranchPolicySettings + + The type of deployment branch policy for this environment. To allow all branches + to deploy, set to `null`. + """ - name: str = Field( - description="The name pattern that branches or tags must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + protected_branches: bool = Field( + description="Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`." ) - type: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="Whether this rule targets a branch or tag" + custom_branch_policies: bool = Field( + description="Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`." ) -model_rebuild(DeploymentBranchPolicyNamePatternWithType) +model_rebuild(DeploymentBranchPolicySettings) -__all__ = ("DeploymentBranchPolicyNamePatternWithType",) +__all__ = ("DeploymentBranchPolicySettings",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0269.py b/githubkit/versions/ghec_v2022_11_28/models/group_0269.py index 11e46307f..497611685 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0269.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0269.py @@ -9,19 +9,93 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0268 import DeploymentBranchPolicySettings +from .group_0270 import EnvironmentPropProtectionRulesItemsAnyof1 + + +class Environment(GitHubModel): + """Environment + + Details of a deployment environment + """ + + id: int = Field(description="The id of the environment.") + node_id: str = Field() + name: str = Field(description="The name of the environment.") + url: str = Field() + html_url: str = Field() + created_at: datetime = Field( + description="The time that the environment was created, in ISO 8601 format." + ) + updated_at: datetime = Field( + description="The time that the environment was last updated, in ISO 8601 format." + ) + protection_rules: Missing[ + List[ + Union[ + EnvironmentPropProtectionRulesItemsAnyof0, + EnvironmentPropProtectionRulesItemsAnyof1, + EnvironmentPropProtectionRulesItemsAnyof2, + ] + ] + ] = Field( + default=UNSET, + description="Built-in deployment protection rules for the environment.", + ) + deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( + Field( + default=UNSET, + description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", + ) + ) + + +class EnvironmentPropProtectionRulesItemsAnyof0(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof0""" + + id: int = Field() + node_id: str = Field() + type: str = Field() + wait_timer: Missing[int] = Field( + default=UNSET, + description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", + ) + + +class EnvironmentPropProtectionRulesItemsAnyof2(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof2""" + + id: int = Field() + node_id: str = Field() + type: str = Field() + -class DeploymentBranchPolicyNamePattern(GitHubModel): - """Deployment branch policy name pattern""" +class ReposOwnerRepoEnvironmentsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsGetResponse200""" - name: str = Field( - description="The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + total_count: Missing[int] = Field( + default=UNSET, description="The number of environments in this repository" ) + environments: Missing[List[Environment]] = Field(default=UNSET) -model_rebuild(DeploymentBranchPolicyNamePattern) +model_rebuild(Environment) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof0) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof2) +model_rebuild(ReposOwnerRepoEnvironmentsGetResponse200) -__all__ = ("DeploymentBranchPolicyNamePattern",) +__all__ = ( + "Environment", + "EnvironmentPropProtectionRulesItemsAnyof0", + "EnvironmentPropProtectionRulesItemsAnyof2", + "ReposOwnerRepoEnvironmentsGetResponse200", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0270.py b/githubkit/versions/ghec_v2022_11_28/models/group_0270.py index ec57f6950..90e7180a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0270.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0270.py @@ -9,31 +9,35 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0271 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems -class CustomDeploymentRuleApp(GitHubModel): - """Custom deployment protection rule app - A GitHub App that is providing a custom deployment protection rule. - """ +class EnvironmentPropProtectionRulesItemsAnyof1(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof1""" - id: int = Field( - description="The unique identifier of the deployment protection rule integration." - ) - 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." + 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.", ) - node_id: str = Field( - description="The node ID for the deployment protection rule integration." + type: str = Field() + reviewers: Missing[ + List[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems] + ] = Field( + default=UNSET, + description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", ) -model_rebuild(CustomDeploymentRuleApp) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1) -__all__ = ("CustomDeploymentRuleApp",) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0271.py b/githubkit/versions/ghec_v2022_11_28/models/group_0271.py index 4f5b99164..c6c550a43 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0271.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0271.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field @@ -17,52 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0270 import CustomDeploymentRuleApp +from .group_0048 import Team +from .group_0001 import SimpleUser -class DeploymentProtectionRule(GitHubModel): - """Deployment protection rule +class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" - 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 + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." ) + reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) -model_rebuild(DeploymentProtectionRule) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 -) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems) -__all__ = ( - "DeploymentProtectionRule", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", -) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0272.py b/githubkit/versions/ghec_v2022_11_28/models/group_0272.py index 23227f8fe..aee2faae9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0272.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0272.py @@ -9,21 +9,26 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ShortBlob(GitHubModel): - """Short Blob - - Short Blob - """ +class DeploymentBranchPolicyNamePatternWithType(GitHubModel): + """Deployment branch and tag policy name pattern""" - url: str = Field() - sha: str = Field() + name: str = Field( + description="The name pattern that branches or tags must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + ) + type: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="Whether this rule targets a branch or tag" + ) -model_rebuild(ShortBlob) +model_rebuild(DeploymentBranchPolicyNamePatternWithType) -__all__ = ("ShortBlob",) +__all__ = ("DeploymentBranchPolicyNamePatternWithType",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0273.py b/githubkit/versions/ghec_v2022_11_28/models/group_0273.py index c52a12148..11e46307f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0273.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0273.py @@ -9,30 +9,19 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class Blob(GitHubModel): - """Blob - - Blob - """ +class DeploymentBranchPolicyNamePattern(GitHubModel): + """Deployment branch policy name pattern""" - content: str = Field() - encoding: str = Field() - url: str = Field() - sha: str = Field() - size: Union[int, None] = Field() - node_id: str = Field() - highlighted_content: Missing[str] = Field(default=UNSET) + name: str = Field( + description="The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + ) -model_rebuild(Blob) +model_rebuild(DeploymentBranchPolicyNamePattern) -__all__ = ("Blob",) +__all__ = ("DeploymentBranchPolicyNamePattern",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0274.py b/githubkit/versions/ghec_v2022_11_28/models/group_0274.py index 314d3773a..ec57f6950 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0274.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0274.py @@ -9,94 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class GitCommit(GitHubModel): - """Git Commit +class CustomDeploymentRuleApp(GitHubModel): + """Custom deployment protection rule app - Low-level Git commit operations within a repository + A GitHub App that is providing a custom deployment protection rule. """ - sha: str = Field(description="SHA for the commit") - node_id: str = Field() - url: str = Field() - author: GitCommitPropAuthor = Field( - description="Identifying information for the git-user" + id: int = Field( + description="The unique identifier of the deployment protection rule integration." ) - committer: GitCommitPropCommitter = Field( - description="Identifying information for the git-user" + slug: str = Field( + description="The slugified name of the deployment protection rule integration." + ) + integration_url: str = Field( + description="The URL for the endpoint to get details about the app." + ) + node_id: str = Field( + description="The node ID for the deployment protection rule integration." ) - message: str = Field(description="Message describing the purpose of the commit") - tree: GitCommitPropTree = Field() - parents: List[GitCommitPropParentsItems] = Field() - verification: GitCommitPropVerification = Field() - html_url: str = Field() - - -class GitCommitPropAuthor(GitHubModel): - """GitCommitPropAuthor - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") - - -class GitCommitPropCommitter(GitHubModel): - """GitCommitPropCommitter - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") - - -class GitCommitPropTree(GitHubModel): - """GitCommitPropTree""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - - -class GitCommitPropParentsItems(GitHubModel): - """GitCommitPropParentsItems""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - html_url: str = Field() - - -class GitCommitPropVerification(GitHubModel): - """GitCommitPropVerification""" - - verified: bool = Field() - reason: str = Field() - signature: Union[str, None] = Field() - payload: Union[str, None] = Field() -model_rebuild(GitCommit) -model_rebuild(GitCommitPropAuthor) -model_rebuild(GitCommitPropCommitter) -model_rebuild(GitCommitPropTree) -model_rebuild(GitCommitPropParentsItems) -model_rebuild(GitCommitPropVerification) +model_rebuild(CustomDeploymentRuleApp) -__all__ = ( - "GitCommit", - "GitCommitPropAuthor", - "GitCommitPropCommitter", - "GitCommitPropTree", - "GitCommitPropParentsItems", - "GitCommitPropVerification", -) +__all__ = ("CustomDeploymentRuleApp",) 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 ee31507d1..1d2390863 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0275.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0275.py @@ -9,35 +9,60 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0274 import CustomDeploymentRuleApp -class GitRef(GitHubModel): - """Git Reference - - Git references within a repository - """ - ref: str = Field() - node_id: str = Field() - url: str = Field() - object_: GitRefPropObject = Field(alias="object") +class DeploymentProtectionRule(GitHubModel): + """Deployment protection rule + Deployment protection rule + """ -class GitRefPropObject(GitHubModel): - """GitRefPropObject""" + id: int = Field( + description="The unique identifier for the deployment protection rule." + ) + node_id: str = Field(description="The node ID for the deployment protection rule.") + enabled: bool = Field( + description="Whether the deployment protection rule is enabled for the environment." + ) + app: CustomDeploymentRuleApp = Field( + title="Custom deployment protection rule app", + description="A GitHub App that is providing a custom deployment protection rule.", + ) + + +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 + + Examples: + {'$ref': '#/components/examples/deployment-protection-rules'} + """ - type: str = Field() - sha: str = Field(min_length=40, max_length=40, description="SHA for the reference") - url: str = Field() + total_count: Missing[int] = Field( + default=UNSET, + description="The number of enabled custom deployment protection rules for this environment", + ) + custom_deployment_protection_rules: Missing[List[DeploymentProtectionRule]] = Field( + default=UNSET + ) -model_rebuild(GitRef) -model_rebuild(GitRefPropObject) +model_rebuild(DeploymentProtectionRule) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 +) __all__ = ( - "GitRef", - "GitRefPropObject", + "DeploymentProtectionRule", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0276.py b/githubkit/versions/ghec_v2022_11_28/models/group_0276.py index 16d2ec5b7..23227f8fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0276.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0276.py @@ -11,51 +11,19 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0204 import Verification +class ShortBlob(GitHubModel): + """Short Blob -class GitTag(GitHubModel): - """Git Tag - - Metadata for a Git tag + Short Blob """ - node_id: str = Field() - tag: str = Field(description="Name of the tag") - sha: str = Field() - url: str = Field(description="URL for the tag") - message: str = Field(description="Message describing the purpose of the tag") - tagger: GitTagPropTagger = Field() - object_: GitTagPropObject = Field(alias="object") - verification: Missing[Verification] = Field(default=UNSET, title="Verification") - - -class GitTagPropTagger(GitHubModel): - """GitTagPropTagger""" - - date: str = Field() - email: str = Field() - name: str = Field() - - -class GitTagPropObject(GitHubModel): - """GitTagPropObject""" - - sha: str = Field() - type: str = Field() url: str = Field() + sha: str = Field() -model_rebuild(GitTag) -model_rebuild(GitTagPropTagger) -model_rebuild(GitTagPropObject) +model_rebuild(ShortBlob) -__all__ = ( - "GitTag", - "GitTagPropTagger", - "GitTagPropObject", -) +__all__ = ("ShortBlob",) 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 458d88b27..c52a12148 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 List +from typing import Union from pydantic import Field @@ -18,35 +18,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class GitTree(GitHubModel): - """Git Tree +class Blob(GitHubModel): + """Blob - The hierarchy between files in a Git repository. + Blob """ - sha: str = Field() + content: str = Field() + encoding: str = Field() url: str = Field() - truncated: bool = Field() - tree: List[GitTreePropTreeItems] = Field( - description="Objects specifying a tree structure" - ) - - -class GitTreePropTreeItems(GitHubModel): - """GitTreePropTreeItems""" - - path: Missing[str] = Field(default=UNSET) - mode: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + sha: str = Field() + size: Union[int, None] = Field() + node_id: str = Field() + highlighted_content: Missing[str] = Field(default=UNSET) -model_rebuild(GitTree) -model_rebuild(GitTreePropTreeItems) +model_rebuild(Blob) -__all__ = ( - "GitTree", - "GitTreePropTreeItems", -) +__all__ = ("Blob",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0278.py b/githubkit/versions/ghec_v2022_11_28/models/group_0278.py index 544751a06..314d3773a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0278.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0278.py @@ -9,21 +9,94 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class HookResponse(GitHubModel): - """Hook Response""" +class GitCommit(GitHubModel): + """Git Commit - code: Union[int, None] = Field() - status: Union[str, None] = Field() - message: Union[str, None] = Field() + Low-level Git commit operations within a repository + """ + sha: str = Field(description="SHA for the commit") + node_id: str = Field() + url: str = Field() + author: GitCommitPropAuthor = Field( + description="Identifying information for the git-user" + ) + committer: GitCommitPropCommitter = Field( + description="Identifying information for the git-user" + ) + message: str = Field(description="Message describing the purpose of the commit") + tree: GitCommitPropTree = Field() + parents: List[GitCommitPropParentsItems] = Field() + verification: GitCommitPropVerification = Field() + html_url: str = Field() -model_rebuild(HookResponse) -__all__ = ("HookResponse",) +class GitCommitPropAuthor(GitHubModel): + """GitCommitPropAuthor + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class GitCommitPropCommitter(GitHubModel): + """GitCommitPropCommitter + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class GitCommitPropTree(GitHubModel): + """GitCommitPropTree""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + + +class GitCommitPropParentsItems(GitHubModel): + """GitCommitPropParentsItems""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + html_url: str = Field() + + +class GitCommitPropVerification(GitHubModel): + """GitCommitPropVerification""" + + verified: bool = Field() + reason: str = Field() + signature: Union[str, None] = Field() + payload: Union[str, None] = Field() + + +model_rebuild(GitCommit) +model_rebuild(GitCommitPropAuthor) +model_rebuild(GitCommitPropCommitter) +model_rebuild(GitCommitPropTree) +model_rebuild(GitCommitPropParentsItems) +model_rebuild(GitCommitPropVerification) + +__all__ = ( + "GitCommit", + "GitCommitPropAuthor", + "GitCommitPropCommitter", + "GitCommitPropTree", + "GitCommitPropParentsItems", + "GitCommitPropVerification", +) 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 390da3edd..ee31507d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0279.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0279.py @@ -9,48 +9,35 @@ from __future__ import annotations -from typing import List -from datetime import datetime - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0278 import HookResponse -from .group_0007 import WebhookConfig - -class Hook(GitHubModel): - """Webhook +class GitRef(GitHubModel): + """Git Reference - Webhooks for repositories. + Git references within a repository """ + ref: str = Field() + node_id: str = Field() + url: str = Field() + object_: GitRefPropObject = Field(alias="object") + + +class GitRefPropObject(GitHubModel): + """GitRefPropObject""" + type: str = Field() - id: int = Field(description="Unique identifier of the webhook.") - name: str = Field( - description="The name of a valid service, use 'web' for a webhook." - ) - active: bool = Field( - description="Determines whether the hook is actually triggered on pushes." - ) - events: List[str] = Field( - description="Determines what events the hook is triggered for. Default: ['push']." - ) - config: WebhookConfig = Field( - title="Webhook Configuration", description="Configuration object of the webhook" - ) - updated_at: datetime = Field() - created_at: datetime = Field() + sha: str = Field(min_length=40, max_length=40, description="SHA for the reference") url: str = Field() - test_url: str = Field() - ping_url: str = Field() - deliveries_url: Missing[str] = Field(default=UNSET) - last_response: HookResponse = Field(title="Hook Response") -model_rebuild(Hook) +model_rebuild(GitRef) +model_rebuild(GitRefPropObject) -__all__ = ("Hook",) +__all__ = ( + "GitRef", + "GitRefPropObject", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0280.py b/githubkit/versions/ghec_v2022_11_28/models/group_0280.py index be9c31456..4e9d0219f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0280.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0280.py @@ -9,75 +9,53 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0208 import Verification + -class Import(GitHubModel): - """Import +class GitTag(GitHubModel): + """Git Tag - A repository import from an external source. + Metadata for a Git tag """ - vcs: Union[str, None] = Field() - use_lfs: Missing[bool] = Field(default=UNSET) - vcs_url: str = Field(description="The URL of the originating repository.") - svc_root: Missing[str] = Field(default=UNSET) - tfvc_project: Missing[str] = Field(default=UNSET) - status: Literal[ - "auth", - "error", - "none", - "detecting", - "choose", - "auth_failed", - "importing", - "mapping", - "waiting_to_push", - "pushing", - "complete", - "setup", - "unknown", - "detection_found_multiple", - "detection_found_nothing", - "detection_needs_auth", - ] = Field() - status_text: Missing[Union[str, None]] = Field(default=UNSET) - failed_step: Missing[Union[str, None]] = Field(default=UNSET) - error_message: Missing[Union[str, None]] = Field(default=UNSET) - import_percent: Missing[Union[int, None]] = Field(default=UNSET) - commit_count: Missing[Union[int, None]] = Field(default=UNSET) - push_percent: Missing[Union[int, None]] = Field(default=UNSET) - has_large_files: Missing[bool] = Field(default=UNSET) - large_files_size: Missing[int] = Field(default=UNSET) - large_files_count: Missing[int] = Field(default=UNSET) - project_choices: Missing[List[ImportPropProjectChoicesItems]] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - authors_count: Missing[Union[int, None]] = Field(default=UNSET) - url: str = Field() - html_url: str = Field() - authors_url: str = Field() - repository_url: str = Field() - svn_root: Missing[str] = Field(default=UNSET) + node_id: str = Field() + tag: str = Field(description="Name of the tag") + sha: str = Field() + url: str = Field(description="URL for the tag") + message: str = Field(description="Message describing the purpose of the tag") + tagger: GitTagPropTagger = Field() + object_: GitTagPropObject = Field(alias="object") + verification: Missing[Verification] = Field(default=UNSET, title="Verification") + +class GitTagPropTagger(GitHubModel): + """GitTagPropTagger""" -class ImportPropProjectChoicesItems(GitHubModel): - """ImportPropProjectChoicesItems""" + date: str = Field() + email: str = Field() + name: str = Field() - vcs: Missing[str] = Field(default=UNSET) - tfvc_project: Missing[str] = Field(default=UNSET) - human_name: Missing[str] = Field(default=UNSET) + +class GitTagPropObject(GitHubModel): + """GitTagPropObject""" + + sha: str = Field() + type: str = Field() + url: str = Field() -model_rebuild(Import) -model_rebuild(ImportPropProjectChoicesItems) +model_rebuild(GitTag) +model_rebuild(GitTagPropTagger) +model_rebuild(GitTagPropObject) __all__ = ( - "Import", - "ImportPropProjectChoicesItems", + "GitTag", + "GitTagPropTagger", + "GitTagPropObject", ) 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 7ed1d272d..458d88b27 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0281.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0281.py @@ -9,26 +9,44 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class PorterAuthor(GitHubModel): - """Porter Author +class GitTree(GitHubModel): + """Git Tree - Porter Author + The hierarchy between files in a Git repository. """ - id: int = Field() - remote_id: str = Field() - remote_name: str = Field() - email: str = Field() - name: str = Field() + sha: str = Field() url: str = Field() - import_url: str = Field() + truncated: bool = Field() + tree: List[GitTreePropTreeItems] = Field( + description="Objects specifying a tree structure" + ) + + +class GitTreePropTreeItems(GitHubModel): + """GitTreePropTreeItems""" + + path: Missing[str] = Field(default=UNSET) + mode: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(PorterAuthor) +model_rebuild(GitTree) +model_rebuild(GitTreePropTreeItems) -__all__ = ("PorterAuthor",) +__all__ = ( + "GitTree", + "GitTreePropTreeItems", +) 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 c54f24120..544751a06 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0282.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0282.py @@ -9,23 +9,21 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class PorterLargeFile(GitHubModel): - """Porter Large File - - Porter Large File - """ +class HookResponse(GitHubModel): + """Hook Response""" - ref_name: str = Field() - path: str = Field() - oid: str = Field() - size: int = Field() + code: Union[int, None] = Field() + status: Union[str, None] = Field() + message: Union[str, None] = Field() -model_rebuild(PorterLargeFile) +model_rebuild(HookResponse) -__all__ = ("PorterLargeFile",) +__all__ = ("HookResponse",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0283.py b/githubkit/versions/ghec_v2022_11_28/models/group_0283.py index 1f92c04ec..2aa468ebc 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,8 @@ from __future__ import annotations +from typing import List from datetime import datetime -from typing import Union, Literal from pydantic import Field @@ -18,141 +18,39 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0093 import Team -from .group_0063 import Issue -from .group_0001 import SimpleUser -from .group_0006 import Integration +from .group_0282 import HookResponse +from .group_0007 import WebhookConfig -class IssueEvent(GitHubModel): - """Issue Event +class Hook(GitHubModel): + """Webhook - Issue Event + Webhooks for repositories. """ - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: Union[None, SimpleUser] = Field() - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: datetime = Field() - issue: Missing[Union[None, Issue]] = Field(default=UNSET) - label: Missing[IssueEventLabel] = Field( - default=UNSET, title="Issue Event Label", description="Issue Event Label" - ) - assignee: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - assigner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - review_requester: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - requested_reviewer: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - requested_team: Missing[Team] = Field( - default=UNSET, - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - dismissed_review: Missing[IssueEventDismissedReview] = Field( - default=UNSET, title="Issue Event Dismissed Review" + type: str = Field() + id: int = Field(description="Unique identifier of the webhook.") + name: str = Field( + description="The name of a valid service, use 'web' for a webhook." ) - milestone: Missing[IssueEventMilestone] = Field( - default=UNSET, - title="Issue Event Milestone", - description="Issue Event Milestone", + active: bool = Field( + description="Determines whether the hook is actually triggered on pushes." ) - project_card: Missing[IssueEventProjectCard] = Field( - default=UNSET, - title="Issue Event Project Card", - description="Issue Event Project Card", + events: List[str] = Field( + description="Determines what events the hook is triggered for. Default: ['push']." ) - rename: Missing[IssueEventRename] = Field( - default=UNSET, title="Issue Event Rename", description="Issue Event Rename" + config: WebhookConfig = Field( + title="Webhook Configuration", description="Configuration object of the webhook" ) - author_association: Missing[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - ] = Field( - default=UNSET, - title="author_association", - description="How the author is associated with the repository.", - ) - lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - - -class IssueEventLabel(GitHubModel): - """Issue Event Label - - Issue Event Label - """ - - name: Union[str, None] = Field() - color: Union[str, None] = Field() - - -class IssueEventDismissedReview(GitHubModel): - """Issue Event Dismissed Review""" - - state: str = Field() - review_id: int = Field() - dismissal_message: Union[str, None] = Field() - dismissal_commit_id: Missing[Union[str, None]] = Field(default=UNSET) - - -class IssueEventMilestone(GitHubModel): - """Issue Event Milestone - - Issue Event Milestone - """ - - title: str = Field() - - -class IssueEventProjectCard(GitHubModel): - """Issue Event Project Card - - Issue Event Project Card - """ - + updated_at: datetime = Field() + created_at: datetime = Field() url: str = Field() - id: int = Field() - project_url: str = Field() - project_id: int = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -class IssueEventRename(GitHubModel): - """Issue Event Rename - - Issue Event Rename - """ - - from_: str = Field(alias="from") - to: str = Field() + test_url: str = Field() + ping_url: str = Field() + deliveries_url: Missing[str] = Field(default=UNSET) + last_response: HookResponse = Field(title="Hook Response") -model_rebuild(IssueEvent) -model_rebuild(IssueEventLabel) -model_rebuild(IssueEventDismissedReview) -model_rebuild(IssueEventMilestone) -model_rebuild(IssueEventProjectCard) -model_rebuild(IssueEventRename) +model_rebuild(Hook) -__all__ = ( - "IssueEvent", - "IssueEventLabel", - "IssueEventDismissedReview", - "IssueEventMilestone", - "IssueEventProjectCard", - "IssueEventRename", -) +__all__ = ("Hook",) 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 6f376ebe4..be9c31456 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0284.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0284.py @@ -9,45 +9,75 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0006 import Integration +class Import(GitHubModel): + """Import -class LabeledIssueEvent(GitHubModel): - """Labeled Issue Event - - Labeled Issue Event + A repository import from an external source. """ - id: int = Field() - node_id: str = Field() + vcs: Union[str, None] = Field() + use_lfs: Missing[bool] = Field(default=UNSET) + vcs_url: str = Field(description="The URL of the originating repository.") + svc_root: Missing[str] = Field(default=UNSET) + tfvc_project: Missing[str] = Field(default=UNSET) + status: Literal[ + "auth", + "error", + "none", + "detecting", + "choose", + "auth_failed", + "importing", + "mapping", + "waiting_to_push", + "pushing", + "complete", + "setup", + "unknown", + "detection_found_multiple", + "detection_found_nothing", + "detection_needs_auth", + ] = Field() + status_text: Missing[Union[str, None]] = Field(default=UNSET) + failed_step: Missing[Union[str, None]] = Field(default=UNSET) + error_message: Missing[Union[str, None]] = Field(default=UNSET) + import_percent: Missing[Union[int, None]] = Field(default=UNSET) + commit_count: Missing[Union[int, None]] = Field(default=UNSET) + push_percent: Missing[Union[int, None]] = Field(default=UNSET) + has_large_files: Missing[bool] = Field(default=UNSET) + large_files_size: Missing[int] = Field(default=UNSET) + large_files_count: Missing[int] = Field(default=UNSET) + project_choices: Missing[List[ImportPropProjectChoicesItems]] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + authors_count: Missing[Union[int, None]] = Field(default=UNSET) url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["labeled"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - label: LabeledIssueEventPropLabel = Field() + html_url: str = Field() + authors_url: str = Field() + repository_url: str = Field() + svn_root: Missing[str] = Field(default=UNSET) -class LabeledIssueEventPropLabel(GitHubModel): - """LabeledIssueEventPropLabel""" +class ImportPropProjectChoicesItems(GitHubModel): + """ImportPropProjectChoicesItems""" - name: str = Field() - color: str = Field() + vcs: Missing[str] = Field(default=UNSET) + tfvc_project: Missing[str] = Field(default=UNSET) + human_name: Missing[str] = Field(default=UNSET) -model_rebuild(LabeledIssueEvent) -model_rebuild(LabeledIssueEventPropLabel) +model_rebuild(Import) +model_rebuild(ImportPropProjectChoicesItems) __all__ = ( - "LabeledIssueEvent", - "LabeledIssueEventPropLabel", + "Import", + "ImportPropProjectChoicesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0285.py b/githubkit/versions/ghec_v2022_11_28/models/group_0285.py index ad01f1526..7ed1d272d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0285.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0285.py @@ -9,45 +9,26 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0006 import Integration - -class UnlabeledIssueEvent(GitHubModel): - """Unlabeled Issue Event +class PorterAuthor(GitHubModel): + """Porter Author - Unlabeled Issue Event + Porter Author """ id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["unlabeled"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - label: UnlabeledIssueEventPropLabel = Field() - - -class UnlabeledIssueEventPropLabel(GitHubModel): - """UnlabeledIssueEventPropLabel""" - + remote_id: str = Field() + remote_name: str = Field() + email: str = Field() name: str = Field() - color: str = Field() + url: str = Field() + import_url: str = Field() -model_rebuild(UnlabeledIssueEvent) -model_rebuild(UnlabeledIssueEventPropLabel) +model_rebuild(PorterAuthor) -__all__ = ( - "UnlabeledIssueEvent", - "UnlabeledIssueEventPropLabel", -) +__all__ = ("PorterAuthor",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0286.py b/githubkit/versions/ghec_v2022_11_28/models/group_0286.py index d58f7c5ed..c54f24120 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0286.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0286.py @@ -9,38 +9,23 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0006 import Integration - -class AssignedIssueEvent(GitHubModel): - """Assigned Issue Event +class PorterLargeFile(GitHubModel): + """Porter Large File - Assigned Issue Event + Porter Large File """ - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[Integration, None] = Field( - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") - assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(AssignedIssueEvent) - -__all__ = ("AssignedIssueEvent",) + ref_name: str = Field() + path: str = Field() + oid: str = Field() + size: int = Field() + + +model_rebuild(PorterLargeFile) + +__all__ = ("PorterLargeFile",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0287.py b/githubkit/versions/ghec_v2022_11_28/models/group_0287.py index 1c9e0e427..284384514 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0287.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0287.py @@ -9,35 +9,150 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0048 import Team +from .group_0066 import Issue from .group_0001 import SimpleUser from .group_0006 import Integration -class UnassignedIssueEvent(GitHubModel): - """Unassigned Issue Event +class IssueEvent(GitHubModel): + """Issue Event - Unassigned Issue Event + Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + actor: Union[None, SimpleUser] = Field() event: str = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") - assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + created_at: datetime = Field() + issue: Missing[Union[None, Issue]] = Field(default=UNSET) + label: Missing[IssueEventLabel] = Field( + default=UNSET, title="Issue Event Label", description="Issue Event Label" + ) + assignee: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + assigner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + review_requester: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + requested_reviewer: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + requested_team: Missing[Team] = Field( + default=UNSET, + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + dismissed_review: Missing[IssueEventDismissedReview] = Field( + default=UNSET, title="Issue Event Dismissed Review" + ) + milestone: Missing[IssueEventMilestone] = Field( + default=UNSET, + title="Issue Event Milestone", + description="Issue Event Milestone", + ) + project_card: Missing[IssueEventProjectCard] = Field( + default=UNSET, + title="Issue Event Project Card", + description="Issue Event Project Card", + ) + rename: Missing[IssueEventRename] = Field( + default=UNSET, title="Issue Event Rename", description="Issue Event Rename" + ) + author_association: Missing[ + Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + ] = Field( + default=UNSET, + title="author_association", + description="How the author is associated with the repository.", + ) + lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) -model_rebuild(UnassignedIssueEvent) +class IssueEventLabel(GitHubModel): + """Issue Event Label -__all__ = ("UnassignedIssueEvent",) + Issue Event Label + """ + + name: Union[str, None] = Field() + color: Union[str, None] = Field() + + +class IssueEventDismissedReview(GitHubModel): + """Issue Event Dismissed Review""" + + state: str = Field() + review_id: int = Field() + dismissal_message: Union[str, None] = Field() + dismissal_commit_id: Missing[Union[str, None]] = Field(default=UNSET) + + +class IssueEventMilestone(GitHubModel): + """Issue Event Milestone + + Issue Event Milestone + """ + + title: str = Field() + + +class IssueEventProjectCard(GitHubModel): + """Issue Event Project Card + + Issue Event Project Card + """ + + url: str = Field() + id: int = Field() + project_url: str = Field() + project_id: int = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +class IssueEventRename(GitHubModel): + """Issue Event Rename + + Issue Event Rename + """ + + from_: str = Field(alias="from") + to: str = Field() + + +model_rebuild(IssueEvent) +model_rebuild(IssueEventLabel) +model_rebuild(IssueEventDismissedReview) +model_rebuild(IssueEventMilestone) +model_rebuild(IssueEventProjectCard) +model_rebuild(IssueEventRename) + +__all__ = ( + "IssueEvent", + "IssueEventLabel", + "IssueEventDismissedReview", + "IssueEventMilestone", + "IssueEventProjectCard", + "IssueEventRename", +) 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 7493096af..6f376ebe4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0288.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0288.py @@ -19,34 +19,35 @@ from .group_0006 import Integration -class MilestonedIssueEvent(GitHubModel): - """Milestoned Issue Event +class LabeledIssueEvent(GitHubModel): + """Labeled Issue Event - Milestoned Issue Event + Labeled Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["milestoned"] = Field() + event: Literal["labeled"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - milestone: MilestonedIssueEventPropMilestone = Field() + label: LabeledIssueEventPropLabel = Field() -class MilestonedIssueEventPropMilestone(GitHubModel): - """MilestonedIssueEventPropMilestone""" +class LabeledIssueEventPropLabel(GitHubModel): + """LabeledIssueEventPropLabel""" - title: str = Field() + name: str = Field() + color: str = Field() -model_rebuild(MilestonedIssueEvent) -model_rebuild(MilestonedIssueEventPropMilestone) +model_rebuild(LabeledIssueEvent) +model_rebuild(LabeledIssueEventPropLabel) __all__ = ( - "MilestonedIssueEvent", - "MilestonedIssueEventPropMilestone", + "LabeledIssueEvent", + "LabeledIssueEventPropLabel", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0289.py b/githubkit/versions/ghec_v2022_11_28/models/group_0289.py index 9420ade70..ad01f1526 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0289.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0289.py @@ -19,34 +19,35 @@ from .group_0006 import Integration -class DemilestonedIssueEvent(GitHubModel): - """Demilestoned Issue Event +class UnlabeledIssueEvent(GitHubModel): + """Unlabeled Issue Event - Demilestoned Issue Event + Unlabeled Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["demilestoned"] = Field() + event: Literal["unlabeled"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - milestone: DemilestonedIssueEventPropMilestone = Field() + label: UnlabeledIssueEventPropLabel = Field() -class DemilestonedIssueEventPropMilestone(GitHubModel): - """DemilestonedIssueEventPropMilestone""" +class UnlabeledIssueEventPropLabel(GitHubModel): + """UnlabeledIssueEventPropLabel""" - title: str = Field() + name: str = Field() + color: str = Field() -model_rebuild(DemilestonedIssueEvent) -model_rebuild(DemilestonedIssueEventPropMilestone) +model_rebuild(UnlabeledIssueEvent) +model_rebuild(UnlabeledIssueEventPropLabel) __all__ = ( - "DemilestonedIssueEvent", - "DemilestonedIssueEventPropMilestone", + "UnlabeledIssueEvent", + "UnlabeledIssueEventPropLabel", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0290.py b/githubkit/versions/ghec_v2022_11_28/models/group_0290.py index ccefbdde8..d58f7c5ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0290.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0290.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union from pydantic import Field @@ -19,35 +19,28 @@ from .group_0006 import Integration -class RenamedIssueEvent(GitHubModel): - """Renamed Issue Event +class AssignedIssueEvent(GitHubModel): + """Assigned Issue Event - Renamed Issue Event + Assigned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["renamed"] = Field() + event: str = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - rename: RenamedIssueEventPropRename = Field() + performed_via_github_app: Union[Integration, None] = Field( + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class RenamedIssueEventPropRename(GitHubModel): - """RenamedIssueEventPropRename""" +model_rebuild(AssignedIssueEvent) - from_: str = Field(alias="from") - to: str = Field() - - -model_rebuild(RenamedIssueEvent) -model_rebuild(RenamedIssueEventPropRename) - -__all__ = ( - "RenamedIssueEvent", - "RenamedIssueEventPropRename", -) +__all__ = ("AssignedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0291.py b/githubkit/versions/ghec_v2022_11_28/models/group_0291.py index 92ccf2d7d..1c9e0e427 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0291.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0291.py @@ -9,47 +9,35 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0093 import Team from .group_0001 import SimpleUser from .group_0006 import Integration -class ReviewRequestedIssueEvent(GitHubModel): - """Review Requested Issue Event +class UnassignedIssueEvent(GitHubModel): + """Unassigned Issue Event - Review Requested Issue Event + Unassigned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_requested"] = Field() + event: str = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - review_requester: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - requested_team: Missing[Team] = Field( - default=UNSET, - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - requested_reviewer: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -model_rebuild(ReviewRequestedIssueEvent) - -__all__ = ("ReviewRequestedIssueEvent",) + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(UnassignedIssueEvent) + +__all__ = ("UnassignedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0292.py b/githubkit/versions/ghec_v2022_11_28/models/group_0292.py index 7c389078c..7493096af 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0292.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0292.py @@ -13,43 +13,40 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0093 import Team from .group_0001 import SimpleUser from .group_0006 import Integration -class ReviewRequestRemovedIssueEvent(GitHubModel): - """Review Request Removed Issue Event +class MilestonedIssueEvent(GitHubModel): + """Milestoned Issue Event - Review Request Removed Issue Event + Milestoned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_request_removed"] = Field() + event: Literal["milestoned"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - review_requester: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - requested_team: Missing[Team] = Field( - default=UNSET, - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - requested_reviewer: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -model_rebuild(ReviewRequestRemovedIssueEvent) - -__all__ = ("ReviewRequestRemovedIssueEvent",) + milestone: MilestonedIssueEventPropMilestone = Field() + + +class MilestonedIssueEventPropMilestone(GitHubModel): + """MilestonedIssueEventPropMilestone""" + + title: str = Field() + + +model_rebuild(MilestonedIssueEvent) +model_rebuild(MilestonedIssueEventPropMilestone) + +__all__ = ( + "MilestonedIssueEvent", + "MilestonedIssueEventPropMilestone", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0293.py b/githubkit/versions/ghec_v2022_11_28/models/group_0293.py index e01a0c7ee..9420ade70 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0293.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0293.py @@ -13,45 +13,40 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser from .group_0006 import Integration -class ReviewDismissedIssueEvent(GitHubModel): - """Review Dismissed Issue Event +class DemilestonedIssueEvent(GitHubModel): + """Demilestoned Issue Event - Review Dismissed Issue Event + Demilestoned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_dismissed"] = Field() + event: Literal["demilestoned"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - dismissed_review: ReviewDismissedIssueEventPropDismissedReview = Field() + milestone: DemilestonedIssueEventPropMilestone = Field() -class ReviewDismissedIssueEventPropDismissedReview(GitHubModel): - """ReviewDismissedIssueEventPropDismissedReview""" +class DemilestonedIssueEventPropMilestone(GitHubModel): + """DemilestonedIssueEventPropMilestone""" - state: str = Field() - review_id: int = Field() - dismissal_message: Union[str, None] = Field() - dismissal_commit_id: Missing[str] = Field(default=UNSET) + title: str = Field() -model_rebuild(ReviewDismissedIssueEvent) -model_rebuild(ReviewDismissedIssueEventPropDismissedReview) +model_rebuild(DemilestonedIssueEvent) +model_rebuild(DemilestonedIssueEventPropMilestone) __all__ = ( - "ReviewDismissedIssueEvent", - "ReviewDismissedIssueEventPropDismissedReview", + "DemilestonedIssueEvent", + "DemilestonedIssueEventPropMilestone", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0294.py b/githubkit/versions/ghec_v2022_11_28/models/group_0294.py index c49e31371..ccefbdde8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0294.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0294.py @@ -19,24 +19,35 @@ from .group_0006 import Integration -class LockedIssueEvent(GitHubModel): - """Locked Issue Event +class RenamedIssueEvent(GitHubModel): + """Renamed Issue Event - Locked Issue Event + Renamed Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["locked"] = Field() + event: Literal["renamed"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - lock_reason: Union[str, None] = Field() + rename: RenamedIssueEventPropRename = Field() -model_rebuild(LockedIssueEvent) +class RenamedIssueEventPropRename(GitHubModel): + """RenamedIssueEventPropRename""" -__all__ = ("LockedIssueEvent",) + from_: str = Field(alias="from") + to: str = Field() + + +model_rebuild(RenamedIssueEvent) +model_rebuild(RenamedIssueEventPropRename) + +__all__ = ( + "RenamedIssueEvent", + "RenamedIssueEventPropRename", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0295.py b/githubkit/versions/ghec_v2022_11_28/models/group_0295.py index ed998c928..32ac1946c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0295.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0295.py @@ -17,45 +17,39 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0048 import Team from .group_0001 import SimpleUser from .group_0006 import Integration -class AddedToProjectIssueEvent(GitHubModel): - """Added to Project Issue Event +class ReviewRequestedIssueEvent(GitHubModel): + """Review Requested Issue Event - Added to Project Issue Event + Review Requested Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["added_to_project"] = Field() + event: Literal["review_requested"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[AddedToProjectIssueEventPropProjectCard] = Field( - default=UNSET + review_requester: SimpleUser = Field( + title="Simple User", description="A GitHub user." + ) + requested_team: Missing[Team] = Field( + default=UNSET, + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + requested_reviewer: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -class AddedToProjectIssueEventPropProjectCard(GitHubModel): - """AddedToProjectIssueEventPropProjectCard""" - - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -model_rebuild(AddedToProjectIssueEvent) -model_rebuild(AddedToProjectIssueEventPropProjectCard) +model_rebuild(ReviewRequestedIssueEvent) -__all__ = ( - "AddedToProjectIssueEvent", - "AddedToProjectIssueEventPropProjectCard", -) +__all__ = ("ReviewRequestedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0296.py b/githubkit/versions/ghec_v2022_11_28/models/group_0296.py index b8b953f8b..4d54981a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0296.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0296.py @@ -17,45 +17,39 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0048 import Team from .group_0001 import SimpleUser from .group_0006 import Integration -class MovedColumnInProjectIssueEvent(GitHubModel): - """Moved Column in Project Issue Event +class ReviewRequestRemovedIssueEvent(GitHubModel): + """Review Request Removed Issue Event - Moved Column in Project Issue Event + Review Request Removed Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["moved_columns_in_project"] = Field() + event: Literal["review_request_removed"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[MovedColumnInProjectIssueEventPropProjectCard] = Field( - default=UNSET + review_requester: SimpleUser = Field( + title="Simple User", description="A GitHub user." + ) + requested_team: Missing[Team] = Field( + default=UNSET, + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + requested_reviewer: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -class MovedColumnInProjectIssueEventPropProjectCard(GitHubModel): - """MovedColumnInProjectIssueEventPropProjectCard""" - - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -model_rebuild(MovedColumnInProjectIssueEvent) -model_rebuild(MovedColumnInProjectIssueEventPropProjectCard) +model_rebuild(ReviewRequestRemovedIssueEvent) -__all__ = ( - "MovedColumnInProjectIssueEvent", - "MovedColumnInProjectIssueEventPropProjectCard", -) +__all__ = ("ReviewRequestRemovedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0297.py b/githubkit/versions/ghec_v2022_11_28/models/group_0297.py index e148a7e54..e01a0c7ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0297.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0297.py @@ -21,41 +21,37 @@ from .group_0006 import Integration -class RemovedFromProjectIssueEvent(GitHubModel): - """Removed from Project Issue Event +class ReviewDismissedIssueEvent(GitHubModel): + """Review Dismissed Issue Event - Removed from Project Issue Event + Review Dismissed Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["removed_from_project"] = Field() + event: Literal["review_dismissed"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[RemovedFromProjectIssueEventPropProjectCard] = Field( - default=UNSET - ) + dismissed_review: ReviewDismissedIssueEventPropDismissedReview = Field() -class RemovedFromProjectIssueEventPropProjectCard(GitHubModel): - """RemovedFromProjectIssueEventPropProjectCard""" +class ReviewDismissedIssueEventPropDismissedReview(GitHubModel): + """ReviewDismissedIssueEventPropDismissedReview""" - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) + state: str = Field() + review_id: int = Field() + dismissal_message: Union[str, None] = Field() + dismissal_commit_id: Missing[str] = Field(default=UNSET) -model_rebuild(RemovedFromProjectIssueEvent) -model_rebuild(RemovedFromProjectIssueEventPropProjectCard) +model_rebuild(ReviewDismissedIssueEvent) +model_rebuild(ReviewDismissedIssueEventPropDismissedReview) __all__ = ( - "RemovedFromProjectIssueEvent", - "RemovedFromProjectIssueEventPropProjectCard", + "ReviewDismissedIssueEvent", + "ReviewDismissedIssueEventPropDismissedReview", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0298.py b/githubkit/versions/ghec_v2022_11_28/models/group_0298.py index cf5133829..c49e31371 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0298.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0298.py @@ -13,52 +13,30 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser from .group_0006 import Integration -class ConvertedNoteToIssueIssueEvent(GitHubModel): - """Converted Note to Issue Issue Event +class LockedIssueEvent(GitHubModel): + """Locked Issue Event - Converted Note to Issue Issue Event + Locked Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["converted_note_to_issue"] = Field() + event: Literal["locked"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() - performed_via_github_app: Union[Integration, None] = Field( - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - project_card: Missing[ConvertedNoteToIssueIssueEventPropProjectCard] = Field( - default=UNSET - ) + performed_via_github_app: Union[None, Integration, None] = Field() + lock_reason: Union[str, None] = Field() -class ConvertedNoteToIssueIssueEventPropProjectCard(GitHubModel): - """ConvertedNoteToIssueIssueEventPropProjectCard""" +model_rebuild(LockedIssueEvent) - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -model_rebuild(ConvertedNoteToIssueIssueEvent) -model_rebuild(ConvertedNoteToIssueIssueEventPropProjectCard) - -__all__ = ( - "ConvertedNoteToIssueIssueEvent", - "ConvertedNoteToIssueIssueEventPropProjectCard", -) +__all__ = ("LockedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0299.py b/githubkit/versions/ghec_v2022_11_28/models/group_0299.py index 4ab6afdfe..ed998c928 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0299.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0299.py @@ -9,31 +9,53 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0006 import Integration -class Label(GitHubModel): - """Label - Color-coded labels help you categorize and filter your issues (just like labels - in Gmail). +class AddedToProjectIssueEvent(GitHubModel): + """Added to Project Issue Event + + Added to Project Issue Event """ id: int = Field() 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() - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["added_to_project"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + project_card: Missing[AddedToProjectIssueEventPropProjectCard] = Field( + default=UNSET ) - default: bool = Field() -model_rebuild(Label) +class AddedToProjectIssueEventPropProjectCard(GitHubModel): + """AddedToProjectIssueEventPropProjectCard""" + + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +model_rebuild(AddedToProjectIssueEvent) +model_rebuild(AddedToProjectIssueEventPropProjectCard) -__all__ = ("Label",) +__all__ = ( + "AddedToProjectIssueEvent", + "AddedToProjectIssueEventPropProjectCard", +) 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 e9864dd87..b8b953f8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0300.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0300.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -20,49 +19,43 @@ from .group_0001 import SimpleUser from .group_0006 import Integration -from .group_0062 import ReactionRollup -class TimelineCommentEvent(GitHubModel): - """Timeline Comment Event +class MovedColumnInProjectIssueEvent(GitHubModel): + """Moved Column in Project Issue Event - Timeline Comment Event + Moved Column in 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["moved_columns_in_project"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + project_card: Missing[MovedColumnInProjectIssueEventPropProjectCard] = Field( default=UNSET ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TimelineCommentEvent) +class MovedColumnInProjectIssueEventPropProjectCard(GitHubModel): + """MovedColumnInProjectIssueEventPropProjectCard""" + + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +model_rebuild(MovedColumnInProjectIssueEvent) +model_rebuild(MovedColumnInProjectIssueEventPropProjectCard) -__all__ = ("TimelineCommentEvent",) +__all__ = ( + "MovedColumnInProjectIssueEvent", + "MovedColumnInProjectIssueEventPropProjectCard", +) 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 679edf0a0..e148a7e54 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0301.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0301.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -19,24 +18,44 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -from .group_0302 import TimelineCrossReferencedEventPropSource +from .group_0006 import Integration -class TimelineCrossReferencedEvent(GitHubModel): - """Timeline Cross Referenced Event +class RemovedFromProjectIssueEvent(GitHubModel): + """Removed from Project Issue Event - Timeline Cross Referenced Event + Removed from Project Issue Event """ - event: Literal["cross-referenced"] = Field() - actor: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["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 ) - created_at: datetime = Field() - updated_at: datetime = Field() - source: TimelineCrossReferencedEventPropSource = Field() -model_rebuild(TimelineCrossReferencedEvent) +class RemovedFromProjectIssueEventPropProjectCard(GitHubModel): + """RemovedFromProjectIssueEventPropProjectCard""" -__all__ = ("TimelineCrossReferencedEvent",) + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +model_rebuild(RemovedFromProjectIssueEvent) +model_rebuild(RemovedFromProjectIssueEventPropProjectCard) + +__all__ = ( + "RemovedFromProjectIssueEvent", + "RemovedFromProjectIssueEventPropProjectCard", +) 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 99dad8462..cf5133829 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0302.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0302.py @@ -9,26 +9,56 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0063 import Issue +from .group_0001 import SimpleUser +from .group_0006 import Integration + +class ConvertedNoteToIssueIssueEvent(GitHubModel): + """Converted Note to Issue Issue Event -class TimelineCrossReferencedEventPropSource(GitHubModel): - """TimelineCrossReferencedEventPropSource""" + Converted Note to Issue Issue Event + """ - type: Missing[str] = Field(default=UNSET) - issue: Missing[Issue] = Field( - default=UNSET, - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["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.", + ) + project_card: Missing[ConvertedNoteToIssueIssueEventPropProjectCard] = Field( + default=UNSET ) -model_rebuild(TimelineCrossReferencedEventPropSource) +class ConvertedNoteToIssueIssueEventPropProjectCard(GitHubModel): + """ConvertedNoteToIssueIssueEventPropProjectCard""" + + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +model_rebuild(ConvertedNoteToIssueIssueEvent) +model_rebuild(ConvertedNoteToIssueIssueEventPropProjectCard) -__all__ = ("TimelineCrossReferencedEventPropSource",) +__all__ = ( + "ConvertedNoteToIssueIssueEvent", + "ConvertedNoteToIssueIssueEventPropProjectCard", +) 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 350a6156a..4ab6afdfe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0303.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0303.py @@ -9,97 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class TimelineCommittedEvent(GitHubModel): - """Timeline Committed Event +class Label(GitHubModel): + """Label - Timeline Committed Event + Color-coded labels help you categorize and filter your issues (just like labels + in Gmail). """ - event: Missing[Literal["committed"]] = Field(default=UNSET) - sha: str = Field(description="SHA for the commit") + id: int = Field() node_id: str = Field() - url: str = Field() - author: TimelineCommittedEventPropAuthor = Field( - description="Identifying information for the git-user" + url: str = Field(description="URL for the label") + name: str = Field(description="The name of the label.") + description: Union[str, None] = Field() + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) - committer: TimelineCommittedEventPropCommitter = Field( - description="Identifying information for the git-user" - ) - message: str = Field(description="Message describing the purpose of the commit") - tree: TimelineCommittedEventPropTree = Field() - parents: List[TimelineCommittedEventPropParentsItems] = Field() - verification: TimelineCommittedEventPropVerification = Field() - html_url: str = Field() - - -class TimelineCommittedEventPropAuthor(GitHubModel): - """TimelineCommittedEventPropAuthor - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") - - -class TimelineCommittedEventPropCommitter(GitHubModel): - """TimelineCommittedEventPropCommitter - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") - - -class TimelineCommittedEventPropTree(GitHubModel): - """TimelineCommittedEventPropTree""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - - -class TimelineCommittedEventPropParentsItems(GitHubModel): - """TimelineCommittedEventPropParentsItems""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - html_url: str = Field() - - -class TimelineCommittedEventPropVerification(GitHubModel): - """TimelineCommittedEventPropVerification""" - - verified: bool = Field() - reason: str = Field() - signature: Union[str, None] = Field() - payload: Union[str, None] = Field() + default: bool = Field() -model_rebuild(TimelineCommittedEvent) -model_rebuild(TimelineCommittedEventPropAuthor) -model_rebuild(TimelineCommittedEventPropCommitter) -model_rebuild(TimelineCommittedEventPropTree) -model_rebuild(TimelineCommittedEventPropParentsItems) -model_rebuild(TimelineCommittedEventPropVerification) +model_rebuild(Label) -__all__ = ( - "TimelineCommittedEvent", - "TimelineCommittedEventPropAuthor", - "TimelineCommittedEventPropCommitter", - "TimelineCommittedEventPropTree", - "TimelineCommittedEventPropParentsItems", - "TimelineCommittedEventPropVerification", -) +__all__ = ("Label",) 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 01fd30cac..c710c084f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0304.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0304.py @@ -19,27 +19,31 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser +from .group_0006 import Integration +from .group_0065 import ReactionRollup -class TimelineReviewedEvent(GitHubModel): - """Timeline Reviewed Event +class TimelineCommentEvent(GitHubModel): + """Timeline Comment Event - Timeline Reviewed Event + Timeline Comment Event """ - event: Literal["reviewed"] = Field() - id: int = Field(description="Unique identifier of the review") + event: Literal["commented"] = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + id: int = Field(description="Unique identifier of the issue comment") node_id: str = Field() - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field(description="The text of the review.") - state: str = Field() + url: str = Field(description="URL for the issue comment") + body: Missing[str] = Field( + default=UNSET, description="Contents of the issue comment" + ) + body_text: Missing[str] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) html_url: str = Field() - pull_request_url: str = Field() - links: TimelineReviewedEventPropLinks = Field(alias="_links") - submitted_at: Missing[datetime] = Field(default=UNSET) - commit_id: str = Field(description="A commit SHA for the review.") - body_html: Missing[Union[str, None]] = Field(default=UNSET) - body_text: Missing[Union[str, None]] = Field(default=UNSET) + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + created_at: datetime = Field() + updated_at: datetime = Field() + issue_url: str = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -53,35 +57,12 @@ class TimelineReviewedEvent(GitHubModel): title="author_association", description="How the author is associated with the repository.", ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -class TimelineReviewedEventPropLinks(GitHubModel): - """TimelineReviewedEventPropLinks""" - - html: TimelineReviewedEventPropLinksPropHtml = Field() - pull_request: TimelineReviewedEventPropLinksPropPullRequest = Field() - - -class TimelineReviewedEventPropLinksPropHtml(GitHubModel): - """TimelineReviewedEventPropLinksPropHtml""" - - href: str = Field() - - -class TimelineReviewedEventPropLinksPropPullRequest(GitHubModel): - """TimelineReviewedEventPropLinksPropPullRequest""" - - href: str = Field() - - -model_rebuild(TimelineReviewedEvent) -model_rebuild(TimelineReviewedEventPropLinks) -model_rebuild(TimelineReviewedEventPropLinksPropHtml) -model_rebuild(TimelineReviewedEventPropLinksPropPullRequest) +model_rebuild(TimelineCommentEvent) -__all__ = ( - "TimelineReviewedEvent", - "TimelineReviewedEventPropLinks", - "TimelineReviewedEventPropLinksPropHtml", - "TimelineReviewedEventPropLinksPropPullRequest", -) +__all__ = ("TimelineCommentEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0305.py b/githubkit/versions/ghec_v2022_11_28/models/group_0305.py index 8357c6755..4bdceca35 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,8 @@ from __future__ import annotations +from typing import Literal from datetime import datetime -from typing import List, Union, Literal from pydantic import Field @@ -19,149 +19,24 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -from .group_0062 import ReactionRollup +from .group_0306 import TimelineCrossReferencedEventPropSource -class PullRequestReviewComment(GitHubModel): - """Pull Request Review Comment +class TimelineCrossReferencedEvent(GitHubModel): + """Timeline Cross Referenced Event - Pull Request Review Comments are comments on a portion of the Pull Request's - diff. + Timeline Cross Referenced Event """ - url: str = Field(description="URL for the pull request review comment") - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." + event: Literal["cross-referenced"] = Field() + actor: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - id: int = Field(description="The ID of the pull request review comment.") - node_id: str = Field(description="The node ID of the pull request review comment.") - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Missing[int] = Field( - default=UNSET, - description="The line index in the diff to which the comment applies. This field is deprecated; 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 deprecated; use `original_line` instead.", - ) - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: str = Field(description="The text of the comment.") created_at: datetime = Field() updated_at: datetime = Field() - html_url: str = Field(description="HTML URL for the pull request review comment.") - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - links: PullRequestReviewCommentPropLinks = Field(alias="_links") - start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The first line of the range for a multi-line comment.", - ) - original_start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The first line of the range for a multi-line comment.", - ) - start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( - default=UNSET, - description="The side of the first line of the range for a multi-line comment.", - ) - line: Missing[int] = Field( - default=UNSET, - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", - ) - original_line: Missing[int] = Field( - default=UNSET, - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", - ) - side: Missing[Literal["LEFT", "RIGHT"]] = Field( - default=UNSET, - description="The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - body_html: Missing[str] = Field(default=UNSET) - body_text: Missing[str] = Field(default=UNSET) - - -class PullRequestReviewCommentPropLinks(GitHubModel): - """PullRequestReviewCommentPropLinks""" - - self_: PullRequestReviewCommentPropLinksPropSelf = Field(alias="self") - html: PullRequestReviewCommentPropLinksPropHtml = Field() - pull_request: PullRequestReviewCommentPropLinksPropPullRequest = Field() - - -class PullRequestReviewCommentPropLinksPropSelf(GitHubModel): - """PullRequestReviewCommentPropLinksPropSelf""" - - href: str = Field() - - -class PullRequestReviewCommentPropLinksPropHtml(GitHubModel): - """PullRequestReviewCommentPropLinksPropHtml""" - - href: str = Field() - - -class PullRequestReviewCommentPropLinksPropPullRequest(GitHubModel): - """PullRequestReviewCommentPropLinksPropPullRequest""" - - href: str = Field() - - -class TimelineLineCommentedEvent(GitHubModel): - """Timeline Line Commented Event - - Timeline Line Commented Event - """ - - event: Missing[Literal["line_commented"]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - comments: Missing[List[PullRequestReviewComment]] = Field(default=UNSET) + source: TimelineCrossReferencedEventPropSource = Field() -model_rebuild(PullRequestReviewComment) -model_rebuild(PullRequestReviewCommentPropLinks) -model_rebuild(PullRequestReviewCommentPropLinksPropSelf) -model_rebuild(PullRequestReviewCommentPropLinksPropHtml) -model_rebuild(PullRequestReviewCommentPropLinksPropPullRequest) -model_rebuild(TimelineLineCommentedEvent) +model_rebuild(TimelineCrossReferencedEvent) -__all__ = ( - "PullRequestReviewComment", - "PullRequestReviewCommentPropLinks", - "PullRequestReviewCommentPropLinksPropSelf", - "PullRequestReviewCommentPropLinksPropHtml", - "PullRequestReviewCommentPropLinksPropPullRequest", - "TimelineLineCommentedEvent", -) +__all__ = ("TimelineCrossReferencedEvent",) 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 4f5cd2cb1..2ec7011cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0306.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0306.py @@ -9,34 +9,26 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0006 import Integration - +from .group_0066 import Issue -class TimelineAssignedIssueEvent(GitHubModel): - """Timeline Assigned Issue Event - Timeline Assigned Issue Event - """ +class TimelineCrossReferencedEventPropSource(GitHubModel): + """TimelineCrossReferencedEventPropSource""" - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["assigned"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + type: Missing[str] = Field(default=UNSET) + issue: Missing[Issue] = Field( + default=UNSET, + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) -model_rebuild(TimelineAssignedIssueEvent) +model_rebuild(TimelineCrossReferencedEventPropSource) -__all__ = ("TimelineAssignedIssueEvent",) +__all__ = ("TimelineCrossReferencedEventPropSource",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0307.py b/githubkit/versions/ghec_v2022_11_28/models/group_0307.py index 5aa20a106..350a6156a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0307.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0307.py @@ -9,34 +9,97 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0006 import Integration +class TimelineCommittedEvent(GitHubModel): + """Timeline Committed Event -class TimelineUnassignedIssueEvent(GitHubModel): - """Timeline Unassigned Issue Event - - Timeline Unassigned Issue Event + Timeline Committed Event """ - id: int = Field() + event: Missing[Literal["committed"]] = Field(default=UNSET) + sha: str = Field(description="SHA for the commit") node_id: str = Field() url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["unassigned"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + author: TimelineCommittedEventPropAuthor = Field( + description="Identifying information for the git-user" + ) + committer: TimelineCommittedEventPropCommitter = Field( + description="Identifying information for the git-user" + ) + message: str = Field(description="Message describing the purpose of the commit") + tree: TimelineCommittedEventPropTree = Field() + parents: List[TimelineCommittedEventPropParentsItems] = Field() + verification: TimelineCommittedEventPropVerification = Field() + html_url: str = Field() + + +class TimelineCommittedEventPropAuthor(GitHubModel): + """TimelineCommittedEventPropAuthor + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class TimelineCommittedEventPropCommitter(GitHubModel): + """TimelineCommittedEventPropCommitter + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class TimelineCommittedEventPropTree(GitHubModel): + """TimelineCommittedEventPropTree""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + + +class TimelineCommittedEventPropParentsItems(GitHubModel): + """TimelineCommittedEventPropParentsItems""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + html_url: str = Field() + + +class TimelineCommittedEventPropVerification(GitHubModel): + """TimelineCommittedEventPropVerification""" + + verified: bool = Field() + reason: str = Field() + signature: Union[str, None] = Field() + payload: Union[str, None] = Field() -model_rebuild(TimelineUnassignedIssueEvent) +model_rebuild(TimelineCommittedEvent) +model_rebuild(TimelineCommittedEventPropAuthor) +model_rebuild(TimelineCommittedEventPropCommitter) +model_rebuild(TimelineCommittedEventPropTree) +model_rebuild(TimelineCommittedEventPropParentsItems) +model_rebuild(TimelineCommittedEventPropVerification) -__all__ = ("TimelineUnassignedIssueEvent",) +__all__ = ( + "TimelineCommittedEvent", + "TimelineCommittedEventPropAuthor", + "TimelineCommittedEventPropCommitter", + "TimelineCommittedEventPropTree", + "TimelineCommittedEventPropParentsItems", + "TimelineCommittedEventPropVerification", +) 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 809377a35..01fd30cac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0308.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0308.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -18,27 +19,69 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -from .group_0006 import Integration -class StateChangeIssueEvent(GitHubModel): - """State Change Issue Event +class TimelineReviewedEvent(GitHubModel): + """Timeline Reviewed Event - State Change Issue Event + Timeline Reviewed Event """ - id: int = Field() + event: Literal["reviewed"] = Field() + id: int = Field(description="Unique identifier of the review") node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - state_reason: Missing[Union[str, None]] = Field(default=UNSET) + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field(description="The text of the review.") + state: str = Field() + html_url: str = Field() + pull_request_url: str = Field() + links: TimelineReviewedEventPropLinks = Field(alias="_links") + submitted_at: Missing[datetime] = Field(default=UNSET) + commit_id: str = Field(description="A commit SHA for the review.") + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) -model_rebuild(StateChangeIssueEvent) +class TimelineReviewedEventPropLinks(GitHubModel): + """TimelineReviewedEventPropLinks""" -__all__ = ("StateChangeIssueEvent",) + html: TimelineReviewedEventPropLinksPropHtml = Field() + pull_request: TimelineReviewedEventPropLinksPropPullRequest = Field() + + +class TimelineReviewedEventPropLinksPropHtml(GitHubModel): + """TimelineReviewedEventPropLinksPropHtml""" + + href: str = Field() + + +class TimelineReviewedEventPropLinksPropPullRequest(GitHubModel): + """TimelineReviewedEventPropLinksPropPullRequest""" + + href: str = Field() + + +model_rebuild(TimelineReviewedEvent) +model_rebuild(TimelineReviewedEventPropLinks) +model_rebuild(TimelineReviewedEventPropLinksPropHtml) +model_rebuild(TimelineReviewedEventPropLinksPropPullRequest) + +__all__ = ( + "TimelineReviewedEvent", + "TimelineReviewedEventPropLinks", + "TimelineReviewedEventPropLinksPropHtml", + "TimelineReviewedEventPropLinksPropPullRequest", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0309.py b/githubkit/versions/ghec_v2022_11_28/models/group_0309.py index a711bb72a..bc173d832 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0309.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0309.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,24 +18,150 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0065 import ReactionRollup -class DeployKey(GitHubModel): - """Deploy Key - An SSH key granting access to a single repository. +class PullRequestReviewComment(GitHubModel): + """Pull Request Review Comment + + Pull Request Review Comments are comments on a portion of the Pull Request's + diff. + """ + + url: str = Field(description="URL for the pull request review comment") + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + id: int = Field(description="The ID of the pull request review comment.") + node_id: str = Field(description="The node ID of the pull request review comment.") + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Missing[int] = Field( + default=UNSET, + description="The line index in the diff to which the comment applies. This field is deprecated; 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 deprecated; use `original_line` instead.", + ) + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: str = Field(description="The text of the comment.") + created_at: datetime = Field() + updated_at: datetime = Field() + html_url: str = Field(description="HTML URL for the pull request review comment.") + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + links: PullRequestReviewCommentPropLinks = Field(alias="_links") + start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The first line of the range for a multi-line comment.", + ) + original_start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The first line of the range for a multi-line comment.", + ) + start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( + default=UNSET, + description="The side of the first line of the range for a multi-line comment.", + ) + line: Missing[int] = Field( + default=UNSET, + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + original_line: Missing[int] = Field( + default=UNSET, + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + side: Missing[Literal["LEFT", "RIGHT"]] = Field( + default=UNSET, + description="The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + + +class PullRequestReviewCommentPropLinks(GitHubModel): + """PullRequestReviewCommentPropLinks""" + + self_: PullRequestReviewCommentPropLinksPropSelf = Field(alias="self") + html: PullRequestReviewCommentPropLinksPropHtml = Field() + pull_request: PullRequestReviewCommentPropLinksPropPullRequest = Field() + + +class PullRequestReviewCommentPropLinksPropSelf(GitHubModel): + """PullRequestReviewCommentPropLinksPropSelf""" + + href: str = Field() + + +class PullRequestReviewCommentPropLinksPropHtml(GitHubModel): + """PullRequestReviewCommentPropLinksPropHtml""" + + href: str = Field() + + +class PullRequestReviewCommentPropLinksPropPullRequest(GitHubModel): + """PullRequestReviewCommentPropLinksPropPullRequest""" + + href: str = Field() + + +class TimelineLineCommentedEvent(GitHubModel): + """Timeline Line Commented Event + + Timeline Line Commented Event """ - id: int = Field() - key: str = Field() - url: str = Field() - title: str = Field() - verified: bool = Field() - created_at: str = Field() - read_only: bool = Field() - added_by: Missing[Union[str, None]] = Field(default=UNSET) - last_used: Missing[Union[str, None]] = Field(default=UNSET) + event: Missing[Literal["line_commented"]] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + comments: Missing[List[PullRequestReviewComment]] = Field(default=UNSET) -model_rebuild(DeployKey) +model_rebuild(PullRequestReviewComment) +model_rebuild(PullRequestReviewCommentPropLinks) +model_rebuild(PullRequestReviewCommentPropLinksPropSelf) +model_rebuild(PullRequestReviewCommentPropLinksPropHtml) +model_rebuild(PullRequestReviewCommentPropLinksPropPullRequest) +model_rebuild(TimelineLineCommentedEvent) -__all__ = ("DeployKey",) +__all__ = ( + "PullRequestReviewComment", + "PullRequestReviewCommentPropLinks", + "PullRequestReviewCommentPropLinksPropSelf", + "PullRequestReviewCommentPropLinksPropHtml", + "PullRequestReviewCommentPropLinksPropPullRequest", + "TimelineLineCommentedEvent", +) 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 58247c327..4f5cd2cb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0310.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0310.py @@ -9,16 +9,34 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from typing import Union, Literal +from pydantic import Field -class Language(ExtraGitHubModel): - """Language +from githubkit.compat import GitHubModel, model_rebuild - Language +from .group_0001 import SimpleUser +from .group_0006 import Integration + + +class TimelineAssignedIssueEvent(GitHubModel): + """Timeline Assigned Issue Event + + Timeline Assigned Issue Event """ + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["assigned"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + -model_rebuild(Language) +model_rebuild(TimelineAssignedIssueEvent) -__all__ = ("Language",) +__all__ = ("TimelineAssignedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0311.py b/githubkit/versions/ghec_v2022_11_28/models/group_0311.py index 535642846..5aa20a106 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0311.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0311.py @@ -9,48 +9,34 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0016 import LicenseSimple +from .group_0001 import SimpleUser +from .group_0006 import Integration -class LicenseContent(GitHubModel): - """License Content +class TimelineUnassignedIssueEvent(GitHubModel): + """Timeline Unassigned Issue Event - License Content + Timeline Unassigned Issue Event """ - name: str = Field() - path: str = Field() - sha: str = Field() - size: int = Field() + id: int = Field() + node_id: str = Field() url: str = Field() - html_url: Union[str, None] = Field() - git_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - type: str = Field() - content: str = Field() - encoding: str = Field() - links: LicenseContentPropLinks = Field(alias="_links") - license_: Union[None, LicenseSimple] = Field(alias="license") + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["unassigned"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") -class LicenseContentPropLinks(GitHubModel): - """LicenseContentPropLinks""" +model_rebuild(TimelineUnassignedIssueEvent) - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") - - -model_rebuild(LicenseContent) -model_rebuild(LicenseContentPropLinks) - -__all__ = ( - "LicenseContent", - "LicenseContentPropLinks", -) +__all__ = ("TimelineUnassignedIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0312.py b/githubkit/versions/ghec_v2022_11_28/models/group_0312.py index 564733c8a..809377a35 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0312.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0312.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,18 +17,28 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0006 import Integration -class MergedUpstream(GitHubModel): - """Merged upstream - Results of a successful merge upstream request +class StateChangeIssueEvent(GitHubModel): + """State Change Issue Event + + State Change Issue Event """ - message: Missing[str] = Field(default=UNSET) - merge_type: Missing[Literal["merge", "fast-forward", "none"]] = Field(default=UNSET) - base_branch: Missing[str] = Field(default=UNSET) + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: str = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + state_reason: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(MergedUpstream) +model_rebuild(StateChangeIssueEvent) -__all__ = ("MergedUpstream",) +__all__ = ("StateChangeIssueEvent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0313.py b/githubkit/versions/ghec_v2022_11_28/models/group_0313.py index 8f748b081..a711bb72a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0313.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0313.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import date, datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field @@ -19,82 +18,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class Page(GitHubModel): - """GitHub Pages +class DeployKey(GitHubModel): + """Deploy Key - The configuration for GitHub Pages for a repository. + An SSH key granting access to a single repository. """ - url: str = Field(description="The API address for accessing this Page resource.") - status: Union[None, Literal["built", "building", "errored"]] = Field( - description="The status of the most recent build of the Page." - ) - cname: Union[str, None] = Field(description="The Pages site's custom domain") - protected_domain_state: Missing[ - Union[None, Literal["pending", "verified", "unverified"]] - ] = Field(default=UNSET, description="The state if the domain is verified") - pending_domain_unverified_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The timestamp when a pending domain becomes unverified.", - ) - custom_404: bool = Field( - default=False, description="Whether the Page has a custom 404 page." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The web address the Page can be accessed from." - ) - build_type: Missing[Union[None, Literal["legacy", "workflow"]]] = Field( - default=UNSET, description="The process in which the Page will be built." - ) - source: Missing[PagesSourceHash] = Field(default=UNSET, title="Pages Source Hash") - public: bool = Field( - description="Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site." - ) - https_certificate: Missing[PagesHttpsCertificate] = Field( - default=UNSET, title="Pages Https Certificate" - ) - https_enforced: Missing[bool] = Field( - default=UNSET, description="Whether https is enabled on the domain" - ) + id: int = Field() + key: str = Field() + url: str = Field() + title: str = Field() + verified: bool = Field() + created_at: str = Field() + read_only: bool = Field() + added_by: Missing[Union[str, None]] = Field(default=UNSET) + last_used: Missing[Union[str, None]] = Field(default=UNSET) -class PagesSourceHash(GitHubModel): - """Pages Source Hash""" +model_rebuild(DeployKey) - branch: str = Field() - path: str = Field() - - -class PagesHttpsCertificate(GitHubModel): - """Pages Https Certificate""" - - state: Literal[ - "new", - "authorization_created", - "authorization_pending", - "authorized", - "authorization_revoked", - "issued", - "uploaded", - "approved", - "errored", - "bad_authz", - "destroy_pending", - "dns_changed", - ] = Field() - description: str = Field() - domains: List[str] = Field( - description="Array of the domain set and its alternate name (if it is configured)" - ) - expires_at: Missing[date] = Field(default=UNSET) - - -model_rebuild(Page) -model_rebuild(PagesSourceHash) -model_rebuild(PagesHttpsCertificate) - -__all__ = ( - "Page", - "PagesSourceHash", - "PagesHttpsCertificate", -) +__all__ = ("DeployKey",) 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 c24d44917..58247c327 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0314.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0314.py @@ -9,42 +9,16 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from githubkit.compat import ExtraGitHubModel, model_rebuild -from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +class Language(ExtraGitHubModel): + """Language -from .group_0001 import SimpleUser - - -class PageBuild(GitHubModel): - """Page Build - - Page Build + Language """ - url: str = Field() - status: str = Field() - error: PageBuildPropError = Field() - pusher: Union[None, SimpleUser] = Field() - commit: str = Field() - duration: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - - -class PageBuildPropError(GitHubModel): - """PageBuildPropError""" - - message: Union[str, None] = Field() - -model_rebuild(PageBuild) -model_rebuild(PageBuildPropError) +model_rebuild(Language) -__all__ = ( - "PageBuild", - "PageBuildPropError", -) +__all__ = ("Language",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0315.py b/githubkit/versions/ghec_v2022_11_28/models/group_0315.py index 4b54230bc..535642846 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0315.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0315.py @@ -9,21 +9,48 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0016 import LicenseSimple + -class PageBuildStatus(GitHubModel): - """Page Build Status +class LicenseContent(GitHubModel): + """License Content - Page Build Status + License Content """ + name: str = Field() + path: str = Field() + sha: str = Field() + size: int = Field() url: str = Field() - status: str = Field() + html_url: Union[str, None] = Field() + git_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + type: str = Field() + content: str = Field() + encoding: str = Field() + links: LicenseContentPropLinks = Field(alias="_links") + license_: Union[None, LicenseSimple] = Field(alias="license") + + +class LicenseContentPropLinks(GitHubModel): + """LicenseContentPropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") -model_rebuild(PageBuildStatus) +model_rebuild(LicenseContent) +model_rebuild(LicenseContentPropLinks) -__all__ = ("PageBuildStatus",) +__all__ = ( + "LicenseContent", + "LicenseContentPropLinks", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0316.py b/githubkit/versions/ghec_v2022_11_28/models/group_0316.py index 2b58439e7..564733c8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0316.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0316.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -18,24 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class PageDeployment(GitHubModel): - """GitHub Pages +class MergedUpstream(GitHubModel): + """Merged upstream - The GitHub Pages deployment status. + Results of a successful merge upstream request """ - id: Union[int, str] = Field( - description="The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit." - ) - status_url: str = Field( - description="The URI to monitor GitHub Pages deployment status." - ) - page_url: str = Field(description="The URI to the deployed GitHub Pages.") - preview_url: Missing[str] = Field( - default=UNSET, description="The URI to the deployed GitHub Pages preview." - ) + message: Missing[str] = Field(default=UNSET) + merge_type: Missing[Literal["merge", "fast-forward", "none"]] = Field(default=UNSET) + base_branch: Missing[str] = Field(default=UNSET) -model_rebuild(PageDeployment) +model_rebuild(MergedUpstream) -__all__ = ("PageDeployment",) +__all__ = ("MergedUpstream",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0317.py b/githubkit/versions/ghec_v2022_11_28/models/group_0317.py index 7c20e9413..8f748b081 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0317.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0317.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import date, datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,26 +19,82 @@ from githubkit.compat import GitHubModel, model_rebuild -class PagesDeploymentStatus(GitHubModel): - """GitHub Pages deployment status""" +class Page(GitHubModel): + """GitHub Pages - status: Missing[ - Literal[ - "deployment_in_progress", - "syncing_files", - "finished_file_sync", - "updating_pages", - "purging_cdn", - "deployment_cancelled", - "deployment_failed", - "deployment_content_failed", - "deployment_attempt_error", - "deployment_lost", - "succeed", - ] - ] = Field(default=UNSET, description="The current status of the deployment.") + The configuration for GitHub Pages for a repository. + """ + url: str = Field(description="The API address for accessing this Page resource.") + status: Union[None, Literal["built", "building", "errored"]] = Field( + description="The status of the most recent build of the Page." + ) + cname: Union[str, None] = Field(description="The Pages site's custom domain") + protected_domain_state: Missing[ + Union[None, Literal["pending", "verified", "unverified"]] + ] = Field(default=UNSET, description="The state if the domain is verified") + pending_domain_unverified_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The timestamp when a pending domain becomes unverified.", + ) + custom_404: bool = Field( + default=False, description="Whether the Page has a custom 404 page." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The web address the Page can be accessed from." + ) + build_type: Missing[Union[None, Literal["legacy", "workflow"]]] = Field( + default=UNSET, description="The process in which the Page will be built." + ) + source: Missing[PagesSourceHash] = Field(default=UNSET, title="Pages Source Hash") + public: bool = Field( + description="Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site." + ) + https_certificate: Missing[PagesHttpsCertificate] = Field( + default=UNSET, title="Pages Https Certificate" + ) + https_enforced: Missing[bool] = Field( + default=UNSET, description="Whether https is enabled on the domain" + ) -model_rebuild(PagesDeploymentStatus) -__all__ = ("PagesDeploymentStatus",) +class PagesSourceHash(GitHubModel): + """Pages Source Hash""" + + branch: str = Field() + path: str = Field() + + +class PagesHttpsCertificate(GitHubModel): + """Pages Https Certificate""" + + state: Literal[ + "new", + "authorization_created", + "authorization_pending", + "authorized", + "authorization_revoked", + "issued", + "uploaded", + "approved", + "errored", + "bad_authz", + "destroy_pending", + "dns_changed", + ] = Field() + description: str = Field() + domains: List[str] = Field( + description="Array of the domain set and its alternate name (if it is configured)" + ) + expires_at: Missing[date] = Field(default=UNSET) + + +model_rebuild(Page) +model_rebuild(PagesSourceHash) +model_rebuild(PagesHttpsCertificate) + +__all__ = ( + "Page", + "PagesSourceHash", + "PagesHttpsCertificate", +) 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 9e283e574..c24d44917 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0318.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0318.py @@ -10,102 +10,41 @@ from __future__ import annotations from typing import Union +from datetime import datetime from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class PagesHealthCheck(GitHubModel): - """Pages Health Check Status - Pages Health Check Status +class PageBuild(GitHubModel): + """Page Build + + Page Build """ - domain: Missing[PagesHealthCheckPropDomain] = Field(default=UNSET) - alt_domain: Missing[Union[PagesHealthCheckPropAltDomain, None]] = Field( - default=UNSET - ) - - -class PagesHealthCheckPropDomain(GitHubModel): - """PagesHealthCheckPropDomain""" - - host: Missing[str] = Field(default=UNSET) - uri: Missing[str] = Field(default=UNSET) - nameservers: Missing[str] = Field(default=UNSET) - dns_resolves: Missing[bool] = Field(default=UNSET) - is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) - is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) - is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid_domain: Missing[bool] = Field(default=UNSET) - is_apex_domain: Missing[bool] = Field(default=UNSET) - should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( - default=UNSET - ) - is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) - is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_pages_domain: Missing[bool] = Field(default=UNSET) - is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid: Missing[bool] = Field(default=UNSET) - reason: Missing[Union[str, None]] = Field(default=UNSET) - responds_to_https: Missing[bool] = Field(default=UNSET) - enforces_https: Missing[bool] = Field(default=UNSET) - https_error: Missing[Union[str, None]] = Field(default=UNSET) - is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) - caa_error: Missing[Union[str, None]] = Field(default=UNSET) - - -class PagesHealthCheckPropAltDomain(GitHubModel): - """PagesHealthCheckPropAltDomain""" - - host: Missing[str] = Field(default=UNSET) - uri: Missing[str] = Field(default=UNSET) - nameservers: Missing[str] = Field(default=UNSET) - dns_resolves: Missing[bool] = Field(default=UNSET) - is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) - is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) - is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) - has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid_domain: Missing[bool] = Field(default=UNSET) - is_apex_domain: Missing[bool] = Field(default=UNSET) - should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) - is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( - default=UNSET - ) - is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) - is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) - is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) - is_pages_domain: Missing[bool] = Field(default=UNSET) - is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) - is_valid: Missing[bool] = Field(default=UNSET) - reason: Missing[Union[str, None]] = Field(default=UNSET) - responds_to_https: Missing[bool] = Field(default=UNSET) - enforces_https: Missing[bool] = Field(default=UNSET) - https_error: Missing[Union[str, None]] = Field(default=UNSET) - is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) - caa_error: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(PagesHealthCheck) -model_rebuild(PagesHealthCheckPropDomain) -model_rebuild(PagesHealthCheckPropAltDomain) + url: str = Field() + status: str = Field() + error: PageBuildPropError = Field() + pusher: Union[None, SimpleUser] = Field() + commit: str = Field() + duration: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + + +class PageBuildPropError(GitHubModel): + """PageBuildPropError""" + + message: Union[str, None] = Field() + + +model_rebuild(PageBuild) +model_rebuild(PageBuildPropError) __all__ = ( - "PagesHealthCheck", - "PagesHealthCheckPropDomain", - "PagesHealthCheckPropAltDomain", + "PageBuild", + "PageBuildPropError", ) 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 6c1051b3e..4b54230bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0319.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0319.py @@ -9,106 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0061 import Milestone -from .group_0240 import AutoMerge -from .group_0001 import SimpleUser -from .group_0092 import TeamSimple -from .group_0321 import PullRequestPropBase -from .group_0323 import PullRequestPropLinks -from .group_0320 import PullRequestPropHead, PullRequestPropLabelsItems - -class PullRequest(GitHubModel): - """Pull Request +class PageBuildStatus(GitHubModel): + """Page Build Status - Pull requests let you tell others about changes you've pushed to a repository on - GitHub. Once a pull request is sent, interested parties can review the set of - changes, discuss potential modifications, and even push follow-up commits if - necessary. + Page Build Status """ url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: List[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() + status: str = Field() -model_rebuild(PullRequest) +model_rebuild(PageBuildStatus) -__all__ = ("PullRequest",) +__all__ = ("PageBuildStatus",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0320.py b/githubkit/versions/ghec_v2022_11_28/models/group_0320.py index d2cc30430..2b58439e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0320.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0320.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import Union from pydantic import Field @@ -19,205 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class PullRequestPropLabelsItems(GitHubModel): - """PullRequestPropLabelsItems""" +class PageDeployment(GitHubModel): + """GitHub Pages - id: int = Field() - node_id: str = Field() - url: str = Field() - name: str = Field() - description: Union[str, None] = Field() - color: str = Field() - default: bool = Field() + The GitHub Pages deployment status. + """ - -class PullRequestPropHead(GitHubModel): - """PullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[PullRequestPropHeadPropRepo, None] = Field() - sha: str = Field() - user: Union[PullRequestPropHeadPropUser, None] = Field() - - -class PullRequestPropHeadPropRepo(GitHubModel): - """PullRequestPropHeadPropRepo""" - - 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() - node_id: 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() - name: str = Field() - notifications_url: str = Field() - owner: PullRequestPropHeadPropRepoPropOwner = Field() - private: bool = Field() - 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() - clone_url: str = Field() - default_branch: str = Field() - forks: int = Field() - forks_count: int = Field() - git_url: str = Field() - has_downloads: bool = Field() - has_issues: bool = Field() - has_projects: bool = Field() - has_wiki: bool = Field() - has_pages: bool = Field() - has_discussions: bool = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - master_branch: Missing[str] = Field(default=UNSET) - archived: bool = Field() - disabled: bool = Field() - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", + id: Union[int, str] = Field( + description="The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit." ) - mirror_url: Union[str, None] = Field() - open_issues: int = Field() - open_issues_count: int = Field() - permissions: Missing[PullRequestPropHeadPropRepoPropPermissions] = Field( - default=UNSET + status_url: str = Field( + description="The URI to monitor GitHub Pages deployment status." ) - 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) - license_: Union[PullRequestPropHeadPropRepoPropLicense, None] = Field( - alias="license" + 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." ) - pushed_at: datetime = Field() - size: int = Field() - ssh_url: str = Field() - stargazers_count: int = Field() - svn_url: str = Field() - topics: Missing[List[str]] = Field(default=UNSET) - watchers: int = Field() - watchers_count: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - allow_forking: Missing[bool] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - - -class PullRequestPropHeadPropRepoPropOwner(GitHubModel): - """PullRequestPropHeadPropRepoPropOwner""" - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: Union[str, None] = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - login: 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() - - -class PullRequestPropHeadPropRepoPropPermissions(GitHubModel): - """PullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - - -class PullRequestPropHeadPropRepoPropLicense(GitHubModel): - """PullRequestPropHeadPropRepoPropLicense""" - - key: str = Field() - name: str = Field() - url: Union[str, None] = Field() - spdx_id: Union[str, None] = Field() - node_id: str = Field() - - -class PullRequestPropHeadPropUser(GitHubModel): - """PullRequestPropHeadPropUser""" - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: Union[str, None] = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - login: 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() -model_rebuild(PullRequestPropLabelsItems) -model_rebuild(PullRequestPropHead) -model_rebuild(PullRequestPropHeadPropRepo) -model_rebuild(PullRequestPropHeadPropRepoPropOwner) -model_rebuild(PullRequestPropHeadPropRepoPropPermissions) -model_rebuild(PullRequestPropHeadPropRepoPropLicense) -model_rebuild(PullRequestPropHeadPropUser) +model_rebuild(PageDeployment) -__all__ = ( - "PullRequestPropLabelsItems", - "PullRequestPropHead", - "PullRequestPropHeadPropRepo", - "PullRequestPropHeadPropRepoPropOwner", - "PullRequestPropHeadPropRepoPropPermissions", - "PullRequestPropHeadPropRepoPropLicense", - "PullRequestPropHeadPropUser", -) +__all__ = ("PageDeployment",) 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 fc7f82853..7c20e9413 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0321.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0321.py @@ -9,52 +9,35 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0322 import PullRequestPropBasePropRepo - - -class PullRequestPropBase(GitHubModel): - """PullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: PullRequestPropBasePropRepo = Field() - sha: str = Field() - user: PullRequestPropBasePropUser = Field() - - -class PullRequestPropBasePropUser(GitHubModel): - """PullRequestPropBasePropUser""" - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: Union[str, None] = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - login: 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() - - -model_rebuild(PullRequestPropBase) -model_rebuild(PullRequestPropBasePropUser) - -__all__ = ( - "PullRequestPropBase", - "PullRequestPropBasePropUser", -) + +class PagesDeploymentStatus(GitHubModel): + """GitHub Pages deployment status""" + + status: Missing[ + Literal[ + "deployment_in_progress", + "syncing_files", + "finished_file_sync", + "updating_pages", + "purging_cdn", + "deployment_cancelled", + "deployment_failed", + "deployment_content_failed", + "deployment_attempt_error", + "deployment_lost", + "succeed", + ] + ] = Field(default=UNSET, description="The current status of the deployment.") + + +model_rebuild(PagesDeploymentStatus) + +__all__ = ("PagesDeploymentStatus",) 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 7d789e957..9e283e574 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0322.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0322.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import Union from pydantic import Field @@ -18,143 +17,95 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0016 import LicenseSimple - - -class PullRequestPropBasePropRepo(GitHubModel): - """PullRequestPropBasePropRepo""" - - 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() - is_template: Missing[bool] = Field(default=UNSET) - node_id: 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() - name: str = Field() - notifications_url: str = Field() - owner: PullRequestPropBasePropRepoPropOwner = Field() - private: bool = Field() - 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() - clone_url: str = Field() - default_branch: str = Field() - forks: int = Field() - forks_count: int = Field() - git_url: str = Field() - has_downloads: bool = Field() - has_issues: bool = Field() - has_projects: bool = Field() - has_wiki: bool = Field() - has_pages: bool = Field() - has_discussions: bool = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - master_branch: Missing[str] = Field(default=UNSET) - archived: bool = Field() - disabled: bool = Field() - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", + +class PagesHealthCheck(GitHubModel): + """Pages Health Check Status + + Pages Health Check Status + """ + + domain: Missing[PagesHealthCheckPropDomain] = Field(default=UNSET) + alt_domain: Missing[Union[PagesHealthCheckPropAltDomain, None]] = Field( + default=UNSET + ) + + +class PagesHealthCheckPropDomain(GitHubModel): + """PagesHealthCheckPropDomain""" + + 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 ) - mirror_url: Union[str, None] = Field() - open_issues: int = Field() - open_issues_count: int = Field() - permissions: Missing[PullRequestPropBasePropRepoPropPermissions] = Field( + 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 ) - 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) - license_: Union[None, LicenseSimple] = Field(alias="license") - pushed_at: datetime = Field() - size: int = Field() - ssh_url: str = Field() - stargazers_count: int = Field() - svn_url: str = Field() - topics: Missing[List[str]] = Field(default=UNSET) - watchers: int = Field() - watchers_count: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - allow_forking: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - - -class PullRequestPropBasePropRepoPropOwner(GitHubModel): - """PullRequestPropBasePropRepoPropOwner""" - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: Union[str, None] = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - login: 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() - - -class PullRequestPropBasePropRepoPropPermissions(GitHubModel): - """PullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - - -model_rebuild(PullRequestPropBasePropRepo) -model_rebuild(PullRequestPropBasePropRepoPropOwner) -model_rebuild(PullRequestPropBasePropRepoPropPermissions) + 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__ = ( - "PullRequestPropBasePropRepo", - "PullRequestPropBasePropRepoPropOwner", - "PullRequestPropBasePropRepoPropPermissions", + "PagesHealthCheck", + "PagesHealthCheckPropDomain", + "PagesHealthCheckPropAltDomain", ) 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 a9731de10..72e239428 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0323.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0323.py @@ -9,26 +9,106 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0239 import Link +from .group_0064 import Milestone +from .group_0244 import AutoMerge +from .group_0001 import SimpleUser +from .group_0047 import TeamSimple +from .group_0325 import PullRequestPropBase +from .group_0327 import PullRequestPropLinks +from .group_0324 import PullRequestPropHead, PullRequestPropLabelsItems + +class PullRequest(GitHubModel): + """Pull Request -class PullRequestPropLinks(GitHubModel): - """PullRequestPropLinks""" + 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. + """ - comments: Link = Field(title="Link", description="Hypermedia Link") - commits: Link = Field(title="Link", description="Hypermedia Link") - statuses: Link = Field(title="Link", description="Hypermedia Link") - html: Link = Field(title="Link", description="Hypermedia Link") - issue: Link = Field(title="Link", description="Hypermedia Link") - review_comments: Link = Field(title="Link", description="Hypermedia Link") - review_comment: Link = Field(title="Link", description="Hypermedia Link") - self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") + url: str = Field() + 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(PullRequestPropLinks) +model_rebuild(PullRequest) -__all__ = ("PullRequestPropLinks",) +__all__ = ("PullRequest",) 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 da433b3b8..d2cc30430 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0324.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0324.py @@ -9,22 +9,215 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class PullRequestMergeResult(GitHubModel): - """Pull Request Merge Result +class PullRequestPropLabelsItems(GitHubModel): + """PullRequestPropLabelsItems""" + + id: int = Field() + node_id: str = Field() + url: str = Field() + name: str = Field() + description: Union[str, None] = Field() + color: str = Field() + default: bool = Field() + - Pull Request Merge Result - """ +class PullRequestPropHead(GitHubModel): + """PullRequestPropHead""" + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[PullRequestPropHeadPropRepo, None] = Field() sha: str = Field() - merged: bool = Field() - message: str = Field() + user: Union[PullRequestPropHeadPropUser, None] = Field() + + +class PullRequestPropHeadPropRepo(GitHubModel): + """PullRequestPropHeadPropRepo""" + + 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() + node_id: 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() + name: str = Field() + notifications_url: str = Field() + owner: PullRequestPropHeadPropRepoPropOwner = Field() + private: bool = Field() + 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() + clone_url: str = Field() + default_branch: str = Field() + forks: int = Field() + forks_count: int = Field() + git_url: str = Field() + has_downloads: bool = Field() + has_issues: bool = Field() + has_projects: bool = Field() + has_wiki: bool = Field() + has_pages: bool = Field() + has_discussions: bool = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + master_branch: Missing[str] = Field(default=UNSET) + archived: bool = Field() + disabled: bool = Field() + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + mirror_url: Union[str, None] = Field() + open_issues: int = Field() + open_issues_count: int = Field() + permissions: Missing[PullRequestPropHeadPropRepoPropPermissions] = 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) + license_: Union[PullRequestPropHeadPropRepoPropLicense, None] = Field( + alias="license" + ) + pushed_at: datetime = Field() + size: int = Field() + ssh_url: str = Field() + stargazers_count: int = Field() + svn_url: str = Field() + topics: Missing[List[str]] = Field(default=UNSET) + watchers: int = Field() + watchers_count: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + allow_forking: Missing[bool] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + + +class PullRequestPropHeadPropRepoPropOwner(GitHubModel): + """PullRequestPropHeadPropRepoPropOwner""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: Union[str, None] = Field() + html_url: str = Field() + id: int = Field() + node_id: str = Field() + login: 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() + + +class PullRequestPropHeadPropRepoPropPermissions(GitHubModel): + """PullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + + +class PullRequestPropHeadPropRepoPropLicense(GitHubModel): + """PullRequestPropHeadPropRepoPropLicense""" + + key: str = Field() + name: str = Field() + url: Union[str, None] = Field() + spdx_id: Union[str, None] = Field() + node_id: str = Field() + + +class PullRequestPropHeadPropUser(GitHubModel): + """PullRequestPropHeadPropUser""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: Union[str, None] = Field() + html_url: str = Field() + id: int = Field() + node_id: str = Field() + login: 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() -model_rebuild(PullRequestMergeResult) +model_rebuild(PullRequestPropLabelsItems) +model_rebuild(PullRequestPropHead) +model_rebuild(PullRequestPropHeadPropRepo) +model_rebuild(PullRequestPropHeadPropRepoPropOwner) +model_rebuild(PullRequestPropHeadPropRepoPropPermissions) +model_rebuild(PullRequestPropHeadPropRepoPropLicense) +model_rebuild(PullRequestPropHeadPropUser) -__all__ = ("PullRequestMergeResult",) +__all__ = ( + "PullRequestPropLabelsItems", + "PullRequestPropHead", + "PullRequestPropHeadPropRepo", + "PullRequestPropHeadPropRepoPropOwner", + "PullRequestPropHeadPropRepoPropPermissions", + "PullRequestPropHeadPropRepoPropLicense", + "PullRequestPropHeadPropUser", +) 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 94aec1bdd..f493919c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0325.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0325.py @@ -9,26 +9,52 @@ from __future__ import annotations -from typing import List +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0093 import Team -from .group_0001 import SimpleUser - - -class PullRequestReviewRequest(GitHubModel): - """Pull Request Review Request - - Pull Request Review Request - """ - - users: List[SimpleUser] = Field() - teams: List[Team] = Field() - - -model_rebuild(PullRequestReviewRequest) - -__all__ = ("PullRequestReviewRequest",) +from .group_0326 import PullRequestPropBasePropRepo + + +class PullRequestPropBase(GitHubModel): + """PullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: PullRequestPropBasePropRepo = Field() + sha: str = Field() + user: PullRequestPropBasePropUser = Field() + + +class PullRequestPropBasePropUser(GitHubModel): + """PullRequestPropBasePropUser""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: Union[str, None] = Field() + html_url: str = Field() + id: int = Field() + node_id: str = Field() + login: 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() + + +model_rebuild(PullRequestPropBase) +model_rebuild(PullRequestPropBasePropUser) + +__all__ = ( + "PullRequestPropBase", + "PullRequestPropBasePropUser", +) 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 e9cc5181f..7d789e957 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0326.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0326.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union from pydantic import Field @@ -18,71 +18,143 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 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() +from .group_0016 import LicenseSimple + + +class PullRequestPropBasePropRepo(GitHubModel): + """PullRequestPropBasePropRepo""" + + 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() - 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`." + id: int = Field() + is_template: Missing[bool] = Field(default=UNSET) + node_id: 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() + name: str = Field() + notifications_url: str = Field() + owner: PullRequestPropBasePropRepoPropOwner = Field() + private: bool = Field() + 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() + clone_url: str = Field() + default_branch: str = Field() + forks: int = Field() + forks_count: int = Field() + git_url: str = Field() + has_downloads: bool = Field() + has_issues: bool = Field() + has_projects: bool = Field() + has_wiki: bool = Field() + has_pages: bool = Field() + has_discussions: bool = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + master_branch: Missing[str] = Field(default=UNSET) + archived: bool = Field() + disabled: bool = Field() + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", ) - 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.", + mirror_url: Union[str, None] = Field() + open_issues: int = Field() + open_issues_count: int = Field() + permissions: Missing[PullRequestPropBasePropRepoPropPermissions] = 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) + license_: Union[None, LicenseSimple] = Field(alias="license") + pushed_at: datetime = Field() + size: int = Field() + ssh_url: str = Field() + stargazers_count: int = Field() + svn_url: str = Field() + topics: Missing[List[str]] = Field(default=UNSET) + watchers: int = Field() + watchers_count: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + allow_forking: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + + +class PullRequestPropBasePropRepoPropOwner(GitHubModel): + """PullRequestPropBasePropRepoPropOwner""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: Union[str, None] = Field() + html_url: str = Field() + id: int = Field() + node_id: str = Field() + login: 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() -class PullRequestReviewPropLinks(GitHubModel): - """PullRequestReviewPropLinks""" - - html: PullRequestReviewPropLinksPropHtml = Field() - pull_request: PullRequestReviewPropLinksPropPullRequest = Field() - - -class PullRequestReviewPropLinksPropHtml(GitHubModel): - """PullRequestReviewPropLinksPropHtml""" - - href: str = Field() - - -class PullRequestReviewPropLinksPropPullRequest(GitHubModel): - """PullRequestReviewPropLinksPropPullRequest""" +class PullRequestPropBasePropRepoPropPermissions(GitHubModel): + """PullRequestPropBasePropRepoPropPermissions""" - href: str = Field() + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + pull: bool = Field() -model_rebuild(PullRequestReview) -model_rebuild(PullRequestReviewPropLinks) -model_rebuild(PullRequestReviewPropLinksPropHtml) -model_rebuild(PullRequestReviewPropLinksPropPullRequest) +model_rebuild(PullRequestPropBasePropRepo) +model_rebuild(PullRequestPropBasePropRepoPropOwner) +model_rebuild(PullRequestPropBasePropRepoPropPermissions) __all__ = ( - "PullRequestReview", - "PullRequestReviewPropLinks", - "PullRequestReviewPropLinksPropHtml", - "PullRequestReviewPropLinksPropPullRequest", + "PullRequestPropBasePropRepo", + "PullRequestPropBasePropRepoPropOwner", + "PullRequestPropBasePropRepoPropPermissions", ) 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 f8e6fe3df..456ae3e58 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0327.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0327.py @@ -9,86 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0062 import ReactionRollup -from .group_0328 import ReviewCommentPropLinks - +from .group_0243 import Link -class ReviewComment(GitHubModel): - """Legacy Review Comment - Legacy Review Comment - """ +class PullRequestPropLinks(GitHubModel): + """PullRequestPropLinks""" - url: str = Field() - pull_request_review_id: Union[int, None] = Field() - id: int = Field() - node_id: str = Field() - diff_hunk: str = Field() - path: str = Field() - position: Union[int, None] = Field() - original_position: int = Field() - commit_id: str = Field() - original_commit_id: str = Field() - in_reply_to_id: Missing[int] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - body: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - html_url: str = Field() - pull_request_url: str = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - links: ReviewCommentPropLinks = Field(alias="_links") - body_text: Missing[str] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - side: Missing[Literal["LEFT", "RIGHT"]] = Field( - default=UNSET, - description="The side of the first line of the range for a multi-line comment.", - ) - start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( - default=UNSET, - description="The side of the first line of the range for a multi-line comment.", - ) - line: Missing[int] = Field( - default=UNSET, - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", - ) - original_line: Missing[int] = Field( - default=UNSET, - description="The original line of the blob to which the comment applies. The last line of the range for a multi-line comment", - ) - start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The first line of the range for a multi-line comment.", - ) - original_start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The original first line of the range for a multi-line comment.", - ) + comments: Link = Field(title="Link", description="Hypermedia Link") + commits: Link = Field(title="Link", description="Hypermedia Link") + statuses: Link = Field(title="Link", description="Hypermedia Link") + html: Link = Field(title="Link", description="Hypermedia Link") + issue: Link = Field(title="Link", description="Hypermedia Link") + review_comments: Link = Field(title="Link", description="Hypermedia Link") + review_comment: Link = Field(title="Link", description="Hypermedia Link") + self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") -model_rebuild(ReviewComment) +model_rebuild(PullRequestPropLinks) -__all__ = ("ReviewComment",) +__all__ = ("PullRequestPropLinks",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0328.py b/githubkit/versions/ghec_v2022_11_28/models/group_0328.py index 6b64c3885..da433b3b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0328.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0328.py @@ -13,17 +13,18 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0239 import Link +class PullRequestMergeResult(GitHubModel): + """Pull Request Merge Result -class ReviewCommentPropLinks(GitHubModel): - """ReviewCommentPropLinks""" + Pull Request Merge Result + """ - self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") - html: Link = Field(title="Link", description="Hypermedia Link") - pull_request: Link = Field(title="Link", description="Hypermedia Link") + sha: str = Field() + merged: bool = Field() + message: str = Field() -model_rebuild(ReviewCommentPropLinks) +model_rebuild(PullRequestMergeResult) -__all__ = ("ReviewCommentPropLinks",) +__all__ = ("PullRequestMergeResult",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0329.py b/githubkit/versions/ghec_v2022_11_28/models/group_0329.py index c653fae45..7e138a335 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0329.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0329.py @@ -9,39 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0048 import Team from .group_0001 import SimpleUser -class ReleaseAsset(GitHubModel): - """Release Asset +class PullRequestReviewRequest(GitHubModel): + """Pull Request Review Request - Data related to a release. + Pull Request Review Request """ - url: str = Field() - browser_download_url: str = Field() - id: int = Field() - node_id: str = Field() - name: str = Field(description="The file name of the asset.") - label: Union[str, None] = Field() - state: Literal["uploaded", "open"] = Field( - description="State of the release asset." - ) - content_type: str = Field() - size: int = Field() - download_count: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - uploader: Union[None, SimpleUser] = Field() - - -model_rebuild(ReleaseAsset) - -__all__ = ("ReleaseAsset",) + users: List[SimpleUser] = Field() + teams: List[Team] = Field() + + +model_rebuild(PullRequestReviewRequest) + +__all__ = ("PullRequestReviewRequest",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0330.py b/githubkit/versions/ghec_v2022_11_28/models/group_0330.py index f385cd0f6..e9cc5181f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0330.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0330.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union +from typing import Union, Literal from pydantic import Field @@ -19,49 +19,70 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -from .group_0329 import ReleaseAsset -from .group_0062 import ReactionRollup -class Release(GitHubModel): - """Release +class PullRequestReview(GitHubModel): + """Pull Request Review - A release. + Pull Request Reviews are reviews on pull requests. """ - url: str = Field() - html_url: str = Field() - assets_url: str = Field() - upload_url: str = Field() - tarball_url: Union[str, None] = Field() - zipball_url: Union[str, None] = Field() - id: int = Field() + id: int = Field(description="Unique identifier of the review") node_id: str = Field() - tag_name: str = Field(description="The name of the tag.") - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - name: Union[str, None] = Field() - body: Missing[Union[str, None]] = Field(default=UNSET) - draft: bool = Field( - description="true to create a draft (unpublished) release, false to create a published one." - ) - prerelease: bool = Field( - description="Whether to identify the release as a prerelease or a full release." + user: Union[None, SimpleUser] = Field() + body: str = Field(description="The text of the review.") + state: str = Field() + html_url: str = Field() + pull_request_url: str = Field() + links: PullRequestReviewPropLinks = Field(alias="_links") + submitted_at: Missing[datetime] = Field(default=UNSET) + commit_id: Union[str, None] = Field( + description="A commit SHA for the review. If the commit object was garbage collected or forcibly deleted, then it no longer exists in Git and this value will be `null`." ) - created_at: datetime = Field() - published_at: Union[datetime, None] = Field() - author: SimpleUser = Field(title="Simple User", description="A GitHub user.") - assets: List[ReleaseAsset] = Field() - body_html: Missing[Union[str, None]] = Field(default=UNSET) - body_text: Missing[Union[str, None]] = Field(default=UNSET) - mentions_count: Missing[int] = Field(default=UNSET) - discussion_url: Missing[str] = Field( - default=UNSET, description="The URL of the release discussion." + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(Release) +class PullRequestReviewPropLinks(GitHubModel): + """PullRequestReviewPropLinks""" + + html: PullRequestReviewPropLinksPropHtml = Field() + pull_request: PullRequestReviewPropLinksPropPullRequest = Field() + + +class PullRequestReviewPropLinksPropHtml(GitHubModel): + """PullRequestReviewPropLinksPropHtml""" + + href: str = Field() + + +class PullRequestReviewPropLinksPropPullRequest(GitHubModel): + """PullRequestReviewPropLinksPropPullRequest""" + + href: str = Field() + + +model_rebuild(PullRequestReview) +model_rebuild(PullRequestReviewPropLinks) +model_rebuild(PullRequestReviewPropLinksPropHtml) +model_rebuild(PullRequestReviewPropLinksPropPullRequest) -__all__ = ("Release",) +__all__ = ( + "PullRequestReview", + "PullRequestReviewPropLinks", + "PullRequestReviewPropLinksPropHtml", + "PullRequestReviewPropLinksPropPullRequest", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0331.py b/githubkit/versions/ghec_v2022_11_28/models/group_0331.py index e30bd3be3..0868718d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0331.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0331.py @@ -9,23 +9,86 @@ from __future__ import annotations +from datetime import datetime +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0065 import ReactionRollup +from .group_0332 import ReviewCommentPropLinks + -class ReleaseNotesContent(GitHubModel): - """Generated Release Notes Content +class ReviewComment(GitHubModel): + """Legacy Review Comment - Generated name and body describing a release + Legacy Review Comment """ - name: str = Field(description="The generated name of the release") - body: str = Field( - description="The generated body describing the contents of the release supporting markdown formatting" + url: str = Field() + pull_request_review_id: Union[int, None] = Field() + id: int = Field() + node_id: str = Field() + diff_hunk: str = Field() + path: str = Field() + position: Union[int, None] = Field() + original_position: int = Field() + commit_id: str = Field() + original_commit_id: str = Field() + in_reply_to_id: Missing[int] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + body: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + html_url: str = Field() + pull_request_url: str = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + links: ReviewCommentPropLinks = Field(alias="_links") + body_text: Missing[str] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + side: Missing[Literal["LEFT", "RIGHT"]] = Field( + default=UNSET, + description="The side of the first line of the range for a multi-line comment.", + ) + start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( + default=UNSET, + description="The side of the first line of the range for a multi-line comment.", + ) + line: Missing[int] = Field( + default=UNSET, + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + original_line: Missing[int] = Field( + default=UNSET, + description="The original line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The first line of the range for a multi-line comment.", + ) + original_start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The original first line of the range for a multi-line comment.", ) -model_rebuild(ReleaseNotesContent) +model_rebuild(ReviewComment) -__all__ = ("ReleaseNotesContent",) +__all__ = ("ReviewComment",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0332.py b/githubkit/versions/ghec_v2022_11_28/models/group_0332.py index 5ea214237..ee37bdd34 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0332.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0332.py @@ -9,35 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0243 import Link -class RepositoryRuleRulesetInfo(GitHubModel): - """repository ruleset data for rule - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. - """ +class ReviewCommentPropLinks(GitHubModel): + """ReviewCommentPropLinks""" - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." - ) + self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") + html: Link = Field(title="Link", description="Hypermedia Link") + pull_request: Link = Field(title="Link", description="Hypermedia Link") -model_rebuild(RepositoryRuleRulesetInfo) +model_rebuild(ReviewCommentPropLinks) -__all__ = ("RepositoryRuleRulesetInfo",) +__all__ = ("ReviewCommentPropLinks",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0333.py b/githubkit/versions/ghec_v2022_11_28/models/group_0333.py index 44c4c2b32..c653fae45 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0333.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0333.py @@ -9,32 +9,39 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class RepositoryRuleDetailedOneof0(GitHubModel): - """RepositoryRuleDetailedOneof0""" - type: Literal["creation"] = Field() - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." +class ReleaseAsset(GitHubModel): + """Release Asset + + Data related to a release. + """ + + url: str = Field() + browser_download_url: str = Field() + id: int = Field() + node_id: str = Field() + name: str = Field(description="The file name of the asset.") + label: Union[str, None] = Field() + state: Literal["uploaded", "open"] = Field( + description="State of the release asset." ) + content_type: str = Field() + size: int = Field() + download_count: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + uploader: Union[None, SimpleUser] = Field() -model_rebuild(RepositoryRuleDetailedOneof0) +model_rebuild(ReleaseAsset) -__all__ = ("RepositoryRuleDetailedOneof0",) +__all__ = ("ReleaseAsset",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0334.py b/githubkit/versions/ghec_v2022_11_28/models/group_0334.py index cd5435754..12940c868 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0334.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0334.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union from pydantic import Field @@ -17,27 +18,50 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0134 import RepositoryRuleUpdatePropParameters +from .group_0001 import SimpleUser +from .group_0333 import ReleaseAsset +from .group_0065 import ReactionRollup -class RepositoryRuleDetailedOneof1(GitHubModel): - """RepositoryRuleDetailedOneof1""" +class Release(GitHubModel): + """Release - type: Literal["update"] = Field() - parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", + A release. + """ + + url: str = Field() + html_url: str = Field() + assets_url: str = Field() + upload_url: str = Field() + tarball_url: Union[str, None] = Field() + zipball_url: Union[str, None] = Field() + id: int = Field() + node_id: str = Field() + tag_name: str = Field(description="The name of the tag.") + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + name: Union[str, None] = Field() + body: Missing[Union[str, None]] = Field(default=UNSET) + draft: bool = Field( + description="true to create a draft (unpublished) release, false to create a published one." ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", + prerelease: bool = Field( + description="Whether to identify the release as a prerelease or a full release." ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + created_at: datetime = Field() + published_at: Union[datetime, None] = Field() + author: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assets: List[ReleaseAsset] = Field() + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + mentions_count: Missing[int] = Field(default=UNSET) + discussion_url: Missing[str] = Field( + default=UNSET, description="The URL of the release discussion." ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(RepositoryRuleDetailedOneof1) +model_rebuild(Release) -__all__ = ("RepositoryRuleDetailedOneof1",) +__all__ = ("Release",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0335.py b/githubkit/versions/ghec_v2022_11_28/models/group_0335.py index 6c5ebd286..e30bd3be3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0335.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0335.py @@ -9,32 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleDetailedOneof2(GitHubModel): - """RepositoryRuleDetailedOneof2""" +class ReleaseNotesContent(GitHubModel): + """Generated Release Notes Content - type: Literal["deletion"] = Field() - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + Generated name and body describing a release + """ + + name: str = Field(description="The generated name of the release") + body: str = Field( + description="The generated body describing the contents of the release supporting markdown formatting" ) -model_rebuild(RepositoryRuleDetailedOneof2) +model_rebuild(ReleaseNotesContent) -__all__ = ("RepositoryRuleDetailedOneof2",) +__all__ = ("ReleaseNotesContent",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0336.py b/githubkit/versions/ghec_v2022_11_28/models/group_0336.py index 4d5e6da2a..5ea214237 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0336.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0336.py @@ -18,10 +18,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleDetailedOneof3(GitHubModel): - """RepositoryRuleDetailedOneof3""" +class RepositoryRuleRulesetInfo(GitHubModel): + """repository ruleset data for rule + + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. + """ - type: Literal["required_linear_history"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -35,6 +38,6 @@ class RepositoryRuleDetailedOneof3(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof3) +model_rebuild(RepositoryRuleRulesetInfo) -__all__ = ("RepositoryRuleDetailedOneof3",) +__all__ = ("RepositoryRuleRulesetInfo",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0337.py b/githubkit/versions/ghec_v2022_11_28/models/group_0337.py index 5df5159e4..44c4c2b32 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0337.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0337.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0137 import RepositoryRuleRequiredDeploymentsPropParameters +class RepositoryRuleDetailedOneof0(GitHubModel): + """RepositoryRuleDetailedOneof0""" -class RepositoryRuleDetailedOneof4(GitHubModel): - """RepositoryRuleDetailedOneof4""" - - type: Literal["required_deployments"] = Field() - parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( - default=UNSET - ) + type: Literal["creation"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +35,6 @@ class RepositoryRuleDetailedOneof4(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof4) +model_rebuild(RepositoryRuleDetailedOneof0) -__all__ = ("RepositoryRuleDetailedOneof4",) +__all__ = ("RepositoryRuleDetailedOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0338.py b/githubkit/versions/ghec_v2022_11_28/models/group_0338.py index 700c31a55..b047e4b04 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0338.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0338.py @@ -17,11 +17,14 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0138 import RepositoryRuleUpdatePropParameters -class RepositoryRuleDetailedOneof5(GitHubModel): - """RepositoryRuleDetailedOneof5""" - type: Literal["required_signatures"] = 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 RepositoryRuleDetailedOneof5(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof5) +model_rebuild(RepositoryRuleDetailedOneof1) -__all__ = ("RepositoryRuleDetailedOneof5",) +__all__ = ("RepositoryRuleDetailedOneof1",) 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 eed3d424a..6c5ebd286 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0339.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0339.py @@ -17,14 +17,11 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0139 import RepositoryRulePullRequestPropParameters +class RepositoryRuleDetailedOneof2(GitHubModel): + """RepositoryRuleDetailedOneof2""" -class RepositoryRuleDetailedOneof6(GitHubModel): - """RepositoryRuleDetailedOneof6""" - - type: Literal["pull_request"] = Field() - parameters: Missing[RepositoryRulePullRequestPropParameters] = 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 RepositoryRuleDetailedOneof6(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof6) +model_rebuild(RepositoryRuleDetailedOneof2) -__all__ = ("RepositoryRuleDetailedOneof6",) +__all__ = ("RepositoryRuleDetailedOneof2",) 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 763363077..4d5e6da2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0340.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0340.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0141 import RepositoryRuleRequiredStatusChecksPropParameters +class RepositoryRuleDetailedOneof3(GitHubModel): + """RepositoryRuleDetailedOneof3""" -class RepositoryRuleDetailedOneof7(GitHubModel): - """RepositoryRuleDetailedOneof7""" - - type: Literal["required_status_checks"] = Field() - parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = 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 RepositoryRuleDetailedOneof7(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof7) +model_rebuild(RepositoryRuleDetailedOneof3) -__all__ = ("RepositoryRuleDetailedOneof7",) +__all__ = ("RepositoryRuleDetailedOneof3",) 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 6319e5592..471b3e0b5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0341.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0341.py @@ -17,11 +17,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0141 import RepositoryRuleRequiredDeploymentsPropParameters -class RepositoryRuleDetailedOneof8(GitHubModel): - """RepositoryRuleDetailedOneof8""" - type: Literal["non_fast_forward"] = Field() +class RepositoryRuleDetailedOneof4(GitHubModel): + """RepositoryRuleDetailedOneof4""" + + type: Literal["required_deployments"] = Field() + parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( + default=UNSET + ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -35,6 +40,6 @@ class RepositoryRuleDetailedOneof8(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof8) +model_rebuild(RepositoryRuleDetailedOneof4) -__all__ = ("RepositoryRuleDetailedOneof8",) +__all__ = ("RepositoryRuleDetailedOneof4",) 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 5f742af5a..700c31a55 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0342.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0342.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0143 import RepositoryRuleCommitMessagePatternPropParameters +class RepositoryRuleDetailedOneof5(GitHubModel): + """RepositoryRuleDetailedOneof5""" -class RepositoryRuleDetailedOneof9(GitHubModel): - """RepositoryRuleDetailedOneof9""" - - type: Literal["commit_message_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( - default=UNSET - ) + type: Literal["required_signatures"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +35,6 @@ class RepositoryRuleDetailedOneof9(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof9) +model_rebuild(RepositoryRuleDetailedOneof5) -__all__ = ("RepositoryRuleDetailedOneof9",) +__all__ = ("RepositoryRuleDetailedOneof5",) 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 2269aa28a..1c07f1cb5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0343.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0343.py @@ -17,16 +17,14 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0145 import RepositoryRuleCommitAuthorEmailPatternPropParameters +from .group_0143 import RepositoryRulePullRequestPropParameters -class RepositoryRuleDetailedOneof10(GitHubModel): - """RepositoryRuleDetailedOneof10""" +class RepositoryRuleDetailedOneof6(GitHubModel): + """RepositoryRuleDetailedOneof6""" - type: Literal["commit_author_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( - default=UNSET - ) + type: Literal["pull_request"] = Field() + parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +38,6 @@ class RepositoryRuleDetailedOneof10(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof10) +model_rebuild(RepositoryRuleDetailedOneof6) -__all__ = ("RepositoryRuleDetailedOneof10",) +__all__ = ("RepositoryRuleDetailedOneof6",) 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 88d7e908c..0dbc2602f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0344.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0344.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0147 import RepositoryRuleCommitterEmailPatternPropParameters +from .group_0145 import RepositoryRuleRequiredStatusChecksPropParameters -class RepositoryRuleDetailedOneof11(GitHubModel): - """RepositoryRuleDetailedOneof11""" +class RepositoryRuleDetailedOneof7(GitHubModel): + """RepositoryRuleDetailedOneof7""" - type: Literal["committer_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( + type: Literal["required_status_checks"] = Field() + parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof11(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof11) +model_rebuild(RepositoryRuleDetailedOneof7) -__all__ = ("RepositoryRuleDetailedOneof11",) +__all__ = ("RepositoryRuleDetailedOneof7",) 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 7b35cbc9c..6319e5592 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0345.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0345.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0149 import RepositoryRuleBranchNamePatternPropParameters +class RepositoryRuleDetailedOneof8(GitHubModel): + """RepositoryRuleDetailedOneof8""" -class RepositoryRuleDetailedOneof12(GitHubModel): - """RepositoryRuleDetailedOneof12""" - - type: Literal["branch_name_pattern"] = Field() - parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( - default=UNSET - ) + type: Literal["non_fast_forward"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +35,6 @@ class RepositoryRuleDetailedOneof12(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof12) +model_rebuild(RepositoryRuleDetailedOneof8) -__all__ = ("RepositoryRuleDetailedOneof12",) +__all__ = ("RepositoryRuleDetailedOneof8",) 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 15f60718e..2a6e3ce4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0346.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0346.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0151 import RepositoryRuleTagNamePatternPropParameters +from .group_0147 import RepositoryRuleCommitMessagePatternPropParameters -class RepositoryRuleDetailedOneof13(GitHubModel): - """RepositoryRuleDetailedOneof13""" +class RepositoryRuleDetailedOneof9(GitHubModel): + """RepositoryRuleDetailedOneof9""" - type: Literal["tag_name_pattern"] = Field() - parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( + type: Literal["commit_message_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof13(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof13) +model_rebuild(RepositoryRuleDetailedOneof9) -__all__ = ("RepositoryRuleDetailedOneof13",) +__all__ = ("RepositoryRuleDetailedOneof9",) 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 708bc9c10..a7da7025c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0347.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0347.py @@ -17,14 +17,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0154 import RepositoryRuleWorkflowsPropParameters +from .group_0149 import RepositoryRuleCommitAuthorEmailPatternPropParameters -class RepositoryRuleDetailedOneof14(GitHubModel): - """RepositoryRuleDetailedOneof14""" +class RepositoryRuleDetailedOneof10(GitHubModel): + """RepositoryRuleDetailedOneof10""" - type: Literal["workflows"] = Field() - parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + type: Literal["commit_author_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( + default=UNSET + ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +40,6 @@ class RepositoryRuleDetailedOneof14(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof14) +model_rebuild(RepositoryRuleDetailedOneof10) -__all__ = ("RepositoryRuleDetailedOneof14",) +__all__ = ("RepositoryRuleDetailedOneof10",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0348.py b/githubkit/versions/ghec_v2022_11_28/models/group_0348.py index 22a43fc8c..b6faea211 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0348.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0348.py @@ -17,14 +17,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0156 import RepositoryRuleCodeScanningPropParameters +from .group_0151 import RepositoryRuleCommitterEmailPatternPropParameters -class RepositoryRuleDetailedOneof15(GitHubModel): - """RepositoryRuleDetailedOneof15""" +class RepositoryRuleDetailedOneof11(GitHubModel): + """RepositoryRuleDetailedOneof11""" - type: Literal["code_scanning"] = Field() - parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + type: Literal["committer_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( + default=UNSET + ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +40,6 @@ class RepositoryRuleDetailedOneof15(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof15) +model_rebuild(RepositoryRuleDetailedOneof11) -__all__ = ("RepositoryRuleDetailedOneof15",) +__all__ = ("RepositoryRuleDetailedOneof11",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0349.py b/githubkit/versions/ghec_v2022_11_28/models/group_0349.py index 99ef81c35..88c450054 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0349.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0349.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,72 +17,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +from .group_0153 import RepositoryRuleBranchNamePatternPropParameters -class SecretScanningAlert(GitHubModel): - """SecretScanningAlert""" +class RepositoryRuleDetailedOneof12(GitHubModel): + """RepositoryRuleDetailedOneof12""" - number: Missing[int] = Field( - default=UNSET, description="The security alert number." + type: Literal["branch_name_pattern"] = Field() + parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( + default=UNSET ) - created_at: Missing[datetime] = Field( + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The type of source for the ruleset that includes this rule.", ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." - ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", - ) - state: Missing[Literal["open", "resolved"]] = Field( - default=UNSET, - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", - ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolved_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, description="An optional comment to resolve an alert." - ) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." - ) - secret_type_display_name: Missing[str] = Field( - default=UNSET, - description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)."', - ) - 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( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The name of the source of the ruleset that includes this rule.", ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningAlert) +model_rebuild(RepositoryRuleDetailedOneof12) -__all__ = ("SecretScanningAlert",) +__all__ = ("RepositoryRuleDetailedOneof12",) 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 efed65a18..459fcea54 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0350.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0350.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,120 +17,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0155 import RepositoryRuleTagNamePatternPropParameters -class RepositoryAdvisoryCreate(GitHubModel): - """RepositoryAdvisoryCreate""" - summary: str = Field( - max_length=1024, description="A short summary of the advisory." - ) - description: str = Field( - max_length=65535, - description="A detailed description of what the advisory impacts.", - ) - cve_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." - ) - vulnerabilities: List[RepositoryAdvisoryCreatePropVulnerabilitiesItems] = Field( - description="A product affected by the vulnerability detailed in a repository security advisory." - ) - cwe_ids: Missing[Union[List[str], None]] = Field( - default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." - ) - credits_: Missing[Union[List[RepositoryAdvisoryCreatePropCreditsItems], None]] = ( - Field( - default=UNSET, - alias="credits", - description="A list of users receiving credit for their participation in the security advisory.", - ) - ) - severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( - Field( - default=UNSET, - description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", - ) - ) - cvss_vector_string: Missing[Union[str, None]] = Field( - default=UNSET, - description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", - ) - start_private_fork: Missing[bool] = Field( - default=UNSET, - description="Whether to create a temporary private fork of the repository to collaborate on a fix.", - ) +class RepositoryRuleDetailedOneof13(GitHubModel): + """RepositoryRuleDetailedOneof13""" - -class RepositoryAdvisoryCreatePropCreditsItems(GitHubModel): - """RepositoryAdvisoryCreatePropCreditsItems""" - - login: str = Field(description="The username of the user credited.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] = Field(description="The type of credit the user is receiving.") - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItems(GitHubModel): - """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage = Field( - description="The name of the package affected by the vulnerability." + type: Literal["tag_name_pattern"] = Field() + parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( + default=UNSET ) - vulnerable_version_range: Missing[Union[str, None]] = Field( + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description="The range of the package versions affected by the vulnerability.", + description="The type of source for the ruleset that includes this rule.", ) - patched_versions: Missing[Union[str, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The package version(s) that resolve the vulnerability.", + description="The name of the source of the ruleset that includes this rule.", ) - vulnerable_functions: Missing[Union[List[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." - ) - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(RepositoryAdvisoryCreate) -model_rebuild(RepositoryAdvisoryCreatePropCreditsItems) -model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItems) -model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage) +model_rebuild(RepositoryRuleDetailedOneof13) -__all__ = ( - "RepositoryAdvisoryCreate", - "RepositoryAdvisoryCreatePropCreditsItems", - "RepositoryAdvisoryCreatePropVulnerabilitiesItems", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", -) +__all__ = ("RepositoryRuleDetailedOneof13",) 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 7b8c49810..eb30a58c4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0351.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0351.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,93 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0158 import RepositoryRuleWorkflowsPropParameters -class PrivateVulnerabilityReportCreate(GitHubModel): - """PrivateVulnerabilityReportCreate""" - summary: str = Field( - max_length=1024, description="A short summary of the advisory." - ) - description: str = Field( - max_length=65535, - description="A detailed description of what the advisory impacts.", - ) - vulnerabilities: Missing[ - Union[List[PrivateVulnerabilityReportCreatePropVulnerabilitiesItems], None] - ] = Field( - default=UNSET, - description="An array of products affected by the vulnerability detailed in a repository security advisory.", - ) - cwe_ids: Missing[Union[List[str], None]] = Field( - default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." - ) - severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( - Field( - default=UNSET, - description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", - ) - ) - cvss_vector_string: Missing[Union[str, None]] = Field( - default=UNSET, - description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", - ) - start_private_fork: Missing[bool] = Field( - default=UNSET, - description="Whether to create a temporary private fork of the repository to collaborate on a fix.", - ) - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItems(GitHubModel): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" +class RepositoryRuleDetailedOneof14(GitHubModel): + """RepositoryRuleDetailedOneof14""" - package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage = ( - Field(description="The name of the package affected by the vulnerability.") - ) - vulnerable_version_range: Missing[Union[str, None]] = Field( + type: Literal["workflows"] = Field() + parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description="The range of the package versions affected by the vulnerability.", + description="The type of source for the ruleset that includes this rule.", ) - patched_versions: Missing[Union[str, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The package version(s) that resolve the vulnerability.", - ) - vulnerable_functions: Missing[Union[List[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." + description="The name of the source of the ruleset that includes this rule.", ) - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(PrivateVulnerabilityReportCreate) -model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItems) -model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage) +model_rebuild(RepositoryRuleDetailedOneof14) -__all__ = ( - "PrivateVulnerabilityReportCreate", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", -) +__all__ = ("RepositoryRuleDetailedOneof14",) 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 ab7417cce..0ed6e57da 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0352.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0352.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,131 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0160 import RepositoryRuleCodeScanningPropParameters -class RepositoryAdvisoryUpdate(GitHubModel): - """RepositoryAdvisoryUpdate""" - summary: Missing[str] = Field( - max_length=1024, default=UNSET, description="A short summary of the advisory." - ) - description: Missing[str] = Field( - max_length=65535, - default=UNSET, - description="A detailed description of what the advisory impacts.", - ) - cve_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." - ) - vulnerabilities: Missing[List[RepositoryAdvisoryUpdatePropVulnerabilitiesItems]] = ( - Field( - default=UNSET, - description="A product affected by the vulnerability detailed in a repository security advisory.", - ) - ) - cwe_ids: Missing[Union[List[str], None]] = Field( - default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." - ) - credits_: Missing[Union[List[RepositoryAdvisoryUpdatePropCreditsItems], None]] = ( - Field( - default=UNSET, - alias="credits", - description="A list of users receiving credit for their participation in the security advisory.", - ) - ) - severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( - Field( - default=UNSET, - description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", - ) - ) - cvss_vector_string: Missing[Union[str, None]] = Field( - default=UNSET, - description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", - ) - state: Missing[Literal["published", "closed", "draft"]] = Field( - default=UNSET, description="The state of the advisory." - ) - collaborating_users: Missing[Union[List[str], None]] = Field( - default=UNSET, - description="A list of usernames who have been granted write access to the advisory.", - ) - collaborating_teams: Missing[Union[List[str], None]] = Field( - default=UNSET, - description="A list of team slugs which have been granted write access to the advisory.", - ) - - -class RepositoryAdvisoryUpdatePropCreditsItems(GitHubModel): - """RepositoryAdvisoryUpdatePropCreditsItems""" - - login: str = Field(description="The username of the user credited.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] = Field(description="The type of credit the user is receiving.") - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItems(GitHubModel): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" +class RepositoryRuleDetailedOneof15(GitHubModel): + """RepositoryRuleDetailedOneof15""" - package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage = Field( - description="The name of the package affected by the vulnerability." - ) - vulnerable_version_range: Missing[Union[str, None]] = Field( + type: Literal["code_scanning"] = Field() + parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description="The range of the package versions affected by the vulnerability.", + description="The type of source for the ruleset that includes this rule.", ) - patched_versions: Missing[Union[str, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The package version(s) that resolve the vulnerability.", - ) - vulnerable_functions: Missing[Union[List[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." + description="The name of the source of the ruleset that includes this rule.", ) - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(RepositoryAdvisoryUpdate) -model_rebuild(RepositoryAdvisoryUpdatePropCreditsItems) -model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItems) -model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage) +model_rebuild(RepositoryRuleDetailedOneof15) -__all__ = ( - "RepositoryAdvisoryUpdate", - "RepositoryAdvisoryUpdatePropCreditsItems", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", -) +__all__ = ("RepositoryRuleDetailedOneof15",) 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 3a0e47a6f..99ef81c35 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0353.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0353.py @@ -9,26 +9,81 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -class Stargazer(GitHubModel): - """Stargazer +class SecretScanningAlert(GitHubModel): + """SecretScanningAlert""" - Stargazer - """ + number: Missing[int] = Field( + default=UNSET, description="The security alert number." + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." + ) + locations_url: Missing[str] = Field( + default=UNSET, + description="The REST API URL of the code locations for this alert.", + ) + state: Missing[Literal["open", "resolved"]] = Field( + default=UNSET, + description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", + ) + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( + default=UNSET, + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", + ) + resolved_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, description="An optional comment to resolve an alert." + ) + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + secret_type_display_name: Missing[str] = Field( + default=UNSET, + description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)."', + ) + 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`.", + ) + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." + ) - starred_at: datetime = Field() - user: Union[None, SimpleUser] = Field() +model_rebuild(SecretScanningAlert) -model_rebuild(Stargazer) - -__all__ = ("Stargazer",) +__all__ = ("SecretScanningAlert",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0354.py b/githubkit/versions/ghec_v2022_11_28/models/group_0354.py index e36a25e25..efed65a18 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0354.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0354.py @@ -9,24 +9,128 @@ from __future__ import annotations -from typing import List +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class CommitActivity(GitHubModel): - """Commit Activity +class RepositoryAdvisoryCreate(GitHubModel): + """RepositoryAdvisoryCreate""" - Commit Activity + summary: str = Field( + max_length=1024, description="A short summary of the advisory." + ) + description: str = Field( + max_length=65535, + description="A detailed description of what the advisory impacts.", + ) + cve_id: Missing[Union[str, None]] = Field( + default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." + ) + vulnerabilities: List[RepositoryAdvisoryCreatePropVulnerabilitiesItems] = Field( + description="A product affected by the vulnerability detailed in a repository security advisory." + ) + cwe_ids: Missing[Union[List[str], None]] = Field( + default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." + ) + credits_: Missing[Union[List[RepositoryAdvisoryCreatePropCreditsItems], None]] = ( + Field( + default=UNSET, + alias="credits", + description="A list of users receiving credit for their participation in the security advisory.", + ) + ) + severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( + Field( + default=UNSET, + description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", + ) + ) + cvss_vector_string: Missing[Union[str, None]] = Field( + default=UNSET, + description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + ) + start_private_fork: Missing[bool] = Field( + default=UNSET, + description="Whether to create a temporary private fork of the repository to collaborate on a fix.", + ) + + +class RepositoryAdvisoryCreatePropCreditsItems(GitHubModel): + """RepositoryAdvisoryCreatePropCreditsItems""" + + login: str = Field(description="The username of the user credited.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") + + +class RepositoryAdvisoryCreatePropVulnerabilitiesItems(GitHubModel): + """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Missing[Union[str, None]] = Field( + default=UNSET, + description="The range of the package versions affected by the vulnerability.", + ) + patched_versions: Missing[Union[str, None]] = Field( + default=UNSET, + description="The package version(s) that resolve the vulnerability.", + ) + vulnerable_functions: Missing[Union[List[str], None]] = Field( + default=UNSET, description="The functions in the package that are affected." + ) + + +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. """ - 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(RepositoryAdvisoryCreate) +model_rebuild(RepositoryAdvisoryCreatePropCreditsItems) +model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItems) +model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage) -__all__ = ("CommitActivity",) +__all__ = ( + "RepositoryAdvisoryCreate", + "RepositoryAdvisoryCreatePropCreditsItems", + "RepositoryAdvisoryCreatePropVulnerabilitiesItems", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", +) 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 7b033f045..7b8c49810 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0355.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0355.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import List, Union, Literal from pydantic import Field @@ -17,33 +17,93 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser - -class ContributorActivity(GitHubModel): - """Contributor Activity - - Contributor Activity +class PrivateVulnerabilityReportCreate(GitHubModel): + """PrivateVulnerabilityReportCreate""" + + summary: str = Field( + max_length=1024, description="A short summary of the advisory." + ) + description: str = Field( + max_length=65535, + description="A detailed description of what the advisory impacts.", + ) + vulnerabilities: Missing[ + Union[List[PrivateVulnerabilityReportCreatePropVulnerabilitiesItems], None] + ] = Field( + default=UNSET, + description="An array of products affected by the vulnerability detailed in a repository security advisory.", + ) + cwe_ids: Missing[Union[List[str], None]] = Field( + default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." + ) + severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( + Field( + default=UNSET, + description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", + ) + ) + cvss_vector_string: Missing[Union[str, None]] = Field( + default=UNSET, + description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + ) + start_private_fork: Missing[bool] = Field( + default=UNSET, + description="Whether to create a temporary private fork of the repository to collaborate on a fix.", + ) + + +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItems(GitHubModel): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" + + package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage = ( + Field(description="The name of the package affected by the vulnerability.") + ) + vulnerable_version_range: Missing[Union[str, None]] = Field( + default=UNSET, + description="The range of the package versions affected by the vulnerability.", + ) + patched_versions: Missing[Union[str, None]] = Field( + default=UNSET, + description="The package version(s) that resolve the vulnerability.", + ) + vulnerable_functions: Missing[Union[List[str], None]] = Field( + default=UNSET, description="The functions in the package that are affected." + ) + + +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. """ - author: Union[None, SimpleUser] = Field() - total: int = Field() - weeks: List[ContributorActivityPropWeeksItems] = Field() - - -class ContributorActivityPropWeeksItems(GitHubModel): - """ContributorActivityPropWeeksItems""" - - w: Missing[int] = Field(default=UNSET) - a: Missing[int] = Field(default=UNSET) - d: Missing[int] = Field(default=UNSET) - c: Missing[int] = Field(default=UNSET) - - -model_rebuild(ContributorActivity) -model_rebuild(ContributorActivityPropWeeksItems) + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The unique package name within its ecosystem." + ) + + +model_rebuild(PrivateVulnerabilityReportCreate) +model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItems) +model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage) __all__ = ( - "ContributorActivity", - "ContributorActivityPropWeeksItems", + "PrivateVulnerabilityReportCreate", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", ) 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 1d3f14e20..ab7417cce 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0356.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0356.py @@ -9,20 +9,139 @@ from __future__ import annotations -from typing import List +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ParticipationStats(GitHubModel): - """Participation Stats""" +class RepositoryAdvisoryUpdate(GitHubModel): + """RepositoryAdvisoryUpdate""" - all_: List[int] = Field(alias="all") - owner: List[int] = Field() + 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.", + ) -model_rebuild(ParticipationStats) +class RepositoryAdvisoryUpdatePropCreditsItems(GitHubModel): + """RepositoryAdvisoryUpdatePropCreditsItems""" -__all__ = ("ParticipationStats",) + login: str = Field(description="The username of the user credited.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItems(GitHubModel): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Missing[Union[str, None]] = Field( + default=UNSET, + description="The range of the package versions affected by the vulnerability.", + ) + patched_versions: Missing[Union[str, None]] = Field( + default=UNSET, + description="The package version(s) that resolve the vulnerability.", + ) + vulnerable_functions: Missing[Union[List[str], None]] = Field( + default=UNSET, description="The functions in the package that are affected." + ) + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The unique package name within its ecosystem." + ) + + +model_rebuild(RepositoryAdvisoryUpdate) +model_rebuild(RepositoryAdvisoryUpdatePropCreditsItems) +model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItems) +model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage) + +__all__ = ( + "RepositoryAdvisoryUpdate", + "RepositoryAdvisoryUpdatePropCreditsItems", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", +) 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 ef630501d..3a0e47a6f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0357.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0357.py @@ -16,25 +16,19 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class RepositorySubscription(GitHubModel): - """Repository Invitation - Repository invitations let you manage who you collaborate with. +class Stargazer(GitHubModel): + """Stargazer + + Stargazer """ - 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() + starred_at: datetime = Field() + user: Union[None, SimpleUser] = Field() -model_rebuild(RepositorySubscription) +model_rebuild(Stargazer) -__all__ = ("RepositorySubscription",) +__all__ = ("Stargazer",) 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 c5f394186..e36a25e25 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0358.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0358.py @@ -9,35 +9,24 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class Tag(GitHubModel): - """Tag +class CommitActivity(GitHubModel): + """Commit Activity - Tag + Commit Activity """ - name: str = Field() - commit: TagPropCommit = Field() - zipball_url: str = Field() - tarball_url: str = Field() - node_id: str = Field() - - -class TagPropCommit(GitHubModel): - """TagPropCommit""" - - sha: str = Field() - url: str = Field() + days: List[int] = Field() + total: int = Field() + week: int = Field() -model_rebuild(Tag) -model_rebuild(TagPropCommit) +model_rebuild(CommitActivity) -__all__ = ( - "Tag", - "TagPropCommit", -) +__all__ = ("CommitActivity",) 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 a7005e85e..7b033f045 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0359.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0359.py @@ -9,26 +9,41 @@ from __future__ import annotations +from typing import List, Union + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser + -class TagProtection(GitHubModel): - """Tag protection +class ContributorActivity(GitHubModel): + """Contributor Activity - Tag protection + Contributor Activity """ - id: Missing[int] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - enabled: Missing[bool] = Field(default=UNSET) - pattern: str = Field() + 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(TagProtection) +model_rebuild(ContributorActivity) +model_rebuild(ContributorActivityPropWeeksItems) -__all__ = ("TagProtection",) +__all__ = ( + "ContributorActivity", + "ContributorActivityPropWeeksItems", +) 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 0ab144da3..1d3f14e20 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0360.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0360.py @@ -16,15 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class Topic(GitHubModel): - """Topic +class ParticipationStats(GitHubModel): + """Participation Stats""" - A topic aggregates entities that are related to a subject. - """ + all_: List[int] = Field(alias="all") + owner: List[int] = Field() - names: List[str] = Field() +model_rebuild(ParticipationStats) -model_rebuild(Topic) - -__all__ = ("Topic",) +__all__ = ("ParticipationStats",) 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 8f9d3f9f8..ef630501d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0361.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0361.py @@ -9,6 +9,7 @@ from __future__ import annotations +from typing import Union from datetime import datetime from pydantic import Field @@ -16,14 +17,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class Traffic(GitHubModel): - """Traffic""" +class RepositorySubscription(GitHubModel): + """Repository Invitation - timestamp: datetime = Field() - uniques: int = Field() - count: int = Field() + Repository invitations let you manage who you collaborate with. + """ + 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(Traffic) -__all__ = ("Traffic",) +model_rebuild(RepositorySubscription) + +__all__ = ("RepositorySubscription",) 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 e31f1ce7e..c5f394186 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0362.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0362.py @@ -9,26 +9,35 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0361 import Traffic - -class CloneTraffic(GitHubModel): - """Clone Traffic +class Tag(GitHubModel): + """Tag - Clone Traffic + Tag """ - count: int = Field() - uniques: int = Field() - clones: List[Traffic] = Field() + name: str = Field() + commit: TagPropCommit = Field() + zipball_url: str = Field() + tarball_url: str = Field() + node_id: str = Field() + + +class TagPropCommit(GitHubModel): + """TagPropCommit""" + + sha: str = Field() + url: str = Field() -model_rebuild(CloneTraffic) +model_rebuild(Tag) +model_rebuild(TagPropCommit) -__all__ = ("CloneTraffic",) +__all__ = ( + "Tag", + "TagPropCommit", +) 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 97ab65074..a7005e85e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0363.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0363.py @@ -11,21 +11,24 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ContentTraffic(GitHubModel): - """Content Traffic +class TagProtection(GitHubModel): + """Tag protection - Content Traffic + Tag protection """ - path: str = Field() - title: str = Field() - count: int = Field() - uniques: int = Field() + id: Missing[int] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) + pattern: str = Field() -model_rebuild(ContentTraffic) +model_rebuild(TagProtection) -__all__ = ("ContentTraffic",) +__all__ = ("TagProtection",) 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 7ced93dd8..0ab144da3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0364.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0364.py @@ -9,22 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReferrerTraffic(GitHubModel): - """Referrer Traffic +class Topic(GitHubModel): + """Topic - Referrer Traffic + A topic aggregates entities that are related to a subject. """ - referrer: str = Field() - count: int = Field() - uniques: int = Field() + names: List[str] = Field() -model_rebuild(ReferrerTraffic) +model_rebuild(Topic) -__all__ = ("ReferrerTraffic",) +__all__ = ("Topic",) 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 41f1fb122..8f9d3f9f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0365.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0365.py @@ -9,26 +9,21 @@ from __future__ import annotations -from typing import List +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0361 import Traffic +class Traffic(GitHubModel): + """Traffic""" -class ViewTraffic(GitHubModel): - """View Traffic - - View Traffic - """ - - count: int = Field() + timestamp: datetime = Field() uniques: int = Field() - views: List[Traffic] = Field() + count: int = Field() -model_rebuild(ViewTraffic) +model_rebuild(Traffic) -__all__ = ("ViewTraffic",) +__all__ = ("Traffic",) 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 74f4928d4..e4ca2a7e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0366.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0366.py @@ -9,55 +9,26 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0365 import Traffic -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 CloneTraffic(GitHubModel): + """Clone Traffic + + Clone Traffic + """ + + count: int = Field() + uniques: int = Field() + clones: List[Traffic] = Field() + + +model_rebuild(CloneTraffic) + +__all__ = ("CloneTraffic",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0367.py b/githubkit/versions/ghec_v2022_11_28/models/group_0367.py index d8243b9c8..97ab65074 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0367.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0367.py @@ -9,37 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class Meta(GitHubModel): - """Meta +class ContentTraffic(GitHubModel): + """Content Traffic - The metadata associated with the creation/updates to the user. + Content 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",) + path: str = Field() + title: str = Field() + count: int = Field() + uniques: int = Field() + + +model_rebuild(ContentTraffic) + +__all__ = ("ContentTraffic",) 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 b41da4b3c..7ced93dd8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0368.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0368.py @@ -9,88 +9,22 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import Meta - - -class ScimEnterpriseGroupResponse(GitHubModel): - """ScimEnterpriseGroupResponse""" - - schemas: List[ - Literal[ - "urn:ietf:params:scim:schemas:core:2.0:Group", - "urn:ietf:params:scim:api:messages:2.0:ListResponse", - ] - ] = Field( - description="The URIs that are used to indicate the namespaces of the SCIM schemas." - ) - external_id: Missing[Union[str, None]] = Field( - default=UNSET, - alias="externalId", - description="A unique identifier for the resource as defined by the provisioning client.", - ) - display_name: Missing[Union[str, None]] = Field( - default=UNSET, - alias="displayName", - description="A human-readable name for a security group.", - ) - members: Missing[List[ScimEnterpriseGroupResponseMergedMembers]] = Field( - default=UNSET, description="The group members." - ) - id: Missing[str] = Field( - default=UNSET, description="The internally generated id for the group object." - ) - meta: Missing[Meta] = Field( - default=UNSET, - description="The metadata associated with the creation/updates to the user.", - ) - - -class ScimEnterpriseGroupResponseMergedMembers(GitHubModel): - """ScimEnterpriseGroupResponseMergedMembers""" - - value: str = Field(description="The local unique identifier for the member") - ref: str = Field(alias="$ref") - display: Missing[str] = Field( - default=UNSET, description="The display name associated with the member" - ) +class ReferrerTraffic(GitHubModel): + """Referrer Traffic -class ScimEnterpriseGroupList(GitHubModel): - """ScimEnterpriseGroupList""" + Referrer Traffic + """ - schemas: List[Literal["urn:ietf:params:scim:api:messages:2.0:ListResponse"]] = ( - Field( - description="The URIs that are used to indicate the namespaces of the list SCIM schemas." - ) - ) - total_results: int = Field( - alias="totalResults", description="Number of results found" - ) - resources: List[ScimEnterpriseGroupResponse] = Field( - alias="Resources", description="Information about each provisioned group." - ) - start_index: int = Field( - alias="startIndex", description="A starting index for the returned page" - ) - items_per_page: int = Field( - alias="itemsPerPage", description="Number of objects per page" - ) + referrer: str = Field() + count: int = Field() + uniques: int = Field() -model_rebuild(ScimEnterpriseGroupResponse) -model_rebuild(ScimEnterpriseGroupResponseMergedMembers) -model_rebuild(ScimEnterpriseGroupList) +model_rebuild(ReferrerTraffic) -__all__ = ( - "ScimEnterpriseGroupResponse", - "ScimEnterpriseGroupResponseMergedMembers", - "ScimEnterpriseGroupList", -) +__all__ = ("ReferrerTraffic",) 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 dbc60e726..f786d854b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0369.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0369.py @@ -13,40 +13,22 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import Meta +from .group_0365 import Traffic -class ScimEnterpriseGroupResponseAllof1(GitHubModel): - """ScimEnterpriseGroupResponseAllof1""" +class ViewTraffic(GitHubModel): + """View Traffic - id: Missing[str] = Field( - default=UNSET, description="The internally generated id for the group object." - ) - members: Missing[List[ScimEnterpriseGroupResponseAllof1PropMembersItems]] = Field( - default=UNSET, description="The security group members." - ) - meta: Missing[Meta] = Field( - default=UNSET, - description="The metadata associated with the creation/updates to the user.", - ) + View Traffic + """ + count: int = Field() + uniques: int = Field() + views: List[Traffic] = Field() -class ScimEnterpriseGroupResponseAllof1PropMembersItems(GitHubModel): - """ScimEnterpriseGroupResponseAllof1PropMembersItems""" - value: Missing[str] = Field(default=UNSET) - ref: Missing[str] = Field(default=UNSET, alias="$ref") - display: Missing[str] = Field(default=UNSET) +model_rebuild(ViewTraffic) - -model_rebuild(ScimEnterpriseGroupResponseAllof1) -model_rebuild(ScimEnterpriseGroupResponseAllof1PropMembersItems) - -__all__ = ( - "ScimEnterpriseGroupResponseAllof1", - "ScimEnterpriseGroupResponseAllof1PropMembersItems", -) +__all__ = ("ViewTraffic",) 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 6de6e2299..74f4928d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0370.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0370.py @@ -9,42 +9,55 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class Group(GitHubModel): - """Group""" +class GroupResponse(GitHubModel): + """GroupResponse""" - schemas: List[Literal["urn:ietf:params:scim:schemas:core:2.0:Group"]] = Field( + schemas: List[ + Literal[ + "urn:ietf:params:scim:schemas:core:2.0:Group", + "urn:ietf:params:scim:api:messages:2.0:ListResponse", + ] + ] = Field( description="The URIs that are used to indicate the namespaces of the SCIM schemas." ) - external_id: 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[GroupResponsePropMembersItems]] = Field( + default=UNSET, description="The group members." ) - members: List[GroupPropMembersItems] = Field(description="The group members.") -class GroupPropMembersItems(GitHubModel): - """GroupPropMembersItems""" +class GroupResponsePropMembersItems(GitHubModel): + """GroupResponsePropMembersItems""" 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" ) -model_rebuild(Group) -model_rebuild(GroupPropMembersItems) +model_rebuild(GroupResponse) +model_rebuild(GroupResponsePropMembersItems) __all__ = ( - "Group", - "GroupPropMembersItems", + "GroupResponse", + "GroupResponsePropMembersItems", ) 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 cffcef7fc..d8243b9c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0371.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0371.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field @@ -18,30 +18,28 @@ from githubkit.compat import GitHubModel, model_rebuild -class PatchSchema(GitHubModel): - """PatchSchema""" +class Meta(GitHubModel): + """Meta - 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""" + The metadata associated with the creation/updates to the user. + """ - op: Literal["add", "replace", "remove"] = Field() - path: Missing[str] = Field(default=UNSET) - value: Missing[str] = Field( + 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, - description="Corresponding 'value' of that field specified by 'path'", + 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(PatchSchema) -model_rebuild(PatchSchemaPropOperationsItems) +model_rebuild(Meta) -__all__ = ( - "PatchSchema", - "PatchSchemaPropOperationsItems", -) +__all__ = ("Meta",) 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 7da867eb6..49372ae01 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0372.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0372.py @@ -9,45 +9,88 @@ from __future__ import annotations +from typing import List, Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0371 import Meta + -class UserNameResponse(GitHubModel): - """UserNameResponse""" +class ScimEnterpriseGroupResponse(GitHubModel): + """ScimEnterpriseGroupResponse""" - formatted: Missing[str] = Field( + schemas: List[ + Literal[ + "urn:ietf:params:scim:schemas:core:2.0:Group", + "urn:ietf:params:scim:api:messages:2.0:ListResponse", + ] + ] = Field( + description="The URIs that are used to indicate the namespaces of the SCIM schemas." + ) + external_id: Missing[Union[str, None]] = Field( default=UNSET, - description="The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.", + alias="externalId", + description="A unique identifier for the resource as defined by the provisioning client.", ) - family_name: Missing[str] = Field( - default=UNSET, alias="familyName", description="The family name of the user." + display_name: Missing[Union[str, None]] = Field( + default=UNSET, + alias="displayName", + description="A human-readable name for a security group.", ) - given_name: Missing[str] = Field( - default=UNSET, alias="givenName", description="The given name of the user." + 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.", ) - middle_name: Missing[str] = Field( - default=UNSET, alias="middleName", description="The middle name(s) of the user." + + +class ScimEnterpriseGroupResponseMergedMembers(GitHubModel): + """ScimEnterpriseGroupResponseMergedMembers""" + + value: str = Field(description="The local unique identifier for the member") + ref: str = Field(alias="$ref") + display: Missing[str] = Field( + default=UNSET, description="The display name associated with the member" ) -class UserEmailsResponseItems(GitHubModel): - """UserEmailsResponseItems""" +class ScimEnterpriseGroupList(GitHubModel): + """ScimEnterpriseGroupList""" - 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." + 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(UserNameResponse) -model_rebuild(UserEmailsResponseItems) +model_rebuild(ScimEnterpriseGroupResponse) +model_rebuild(ScimEnterpriseGroupResponseMergedMembers) +model_rebuild(ScimEnterpriseGroupList) __all__ = ( - "UserNameResponse", - "UserEmailsResponseItems", + "ScimEnterpriseGroupResponse", + "ScimEnterpriseGroupResponseMergedMembers", + "ScimEnterpriseGroupList", ) 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 2768f5e2c..2753bc89b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0373.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0373.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -17,29 +17,36 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0371 import Meta -class UserRoleItems(GitHubModel): - """UserRoleItems""" - display: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - value: Literal[ - "user", - "27d9891d-2c17-4f45-a262-781a0e55c80a", - "guest_collaborator", - "1ebc4a02-e56c-43a6-92a5-02ee09b90824", - "enterprise_owner", - "981df190-8801-4618-a08a-d91f6206c954", - "ba4987ab-a1c3-412a-b58c-360fc407cb10", - "billing_manager", - "0e338b8c-cc7f-498a-928d-ea3470d7e7e3", - "e6be2762-e4ad-4108-b72d-1bbe884a0f91", - ] = Field(description="The role value representing a user role in GitHub.") - primary: Missing[bool] = Field( - default=UNSET, description="Is the role a primary role for the user." +class ScimEnterpriseGroupResponseAllof1(GitHubModel): + """ScimEnterpriseGroupResponseAllof1""" + + 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.", ) -model_rebuild(UserRoleItems) +class ScimEnterpriseGroupResponseAllof1PropMembersItems(GitHubModel): + """ScimEnterpriseGroupResponseAllof1PropMembersItems""" + + value: Missing[str] = Field(default=UNSET) + ref: Missing[str] = Field(default=UNSET, alias="$ref") + display: Missing[str] = Field(default=UNSET) + + +model_rebuild(ScimEnterpriseGroupResponseAllof1) +model_rebuild(ScimEnterpriseGroupResponseAllof1PropMembersItems) -__all__ = ("UserRoleItems",) +__all__ = ( + "ScimEnterpriseGroupResponseAllof1", + "ScimEnterpriseGroupResponseAllof1PropMembersItems", +) 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 ec980de48..6de6e2299 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0374.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0374.py @@ -9,47 +9,42 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0373 import UserRoleItems -from .group_0372 import UserNameResponse, UserEmailsResponseItems +class Group(GitHubModel): + """Group""" -class UserResponse(GitHubModel): - """UserResponse""" - - schemas: List[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] = Field( + schemas: List[Literal["urn:ietf:params:scim:schemas:core:2.0:Group"]] = Field( description="The URIs that are used to indicate the namespaces of the SCIM schemas." ) - external_id: Missing[Union[str, None]] = Field( - default=UNSET, + external_id: str = Field( alias="externalId", description="A unique identifier for the resource as defined by the provisioning client.", ) - active: bool = Field(description="Whether the user active in the IdP.") - user_name: Missing[str] = Field( - default=UNSET, alias="userName", description="The username for the user." - ) - name: Missing[UserNameResponse] = Field(default=UNSET) - display_name: Missing[Union[str, None]] = Field( - default=UNSET, - alias="displayName", - description="A human-readable name for the user.", - ) - emails: List[UserEmailsResponseItems] = Field( - description="The emails for the user." + display_name: str = Field( + alias="displayName", description="A human-readable name for a security group." ) - roles: Missing[List[UserRoleItems]] = Field( - default=UNSET, description="The roles assigned to the user." + members: List[GroupPropMembersItems] = Field(description="The group members.") + + +class GroupPropMembersItems(GitHubModel): + """GroupPropMembersItems""" + + 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(UserResponse) +model_rebuild(Group) +model_rebuild(GroupPropMembersItems) -__all__ = ("UserResponse",) +__all__ = ( + "Group", + "GroupPropMembersItems", +) 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 5c28fd6f6..cffcef7fc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0375.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0375.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Literal from pydantic import Field @@ -17,75 +17,31 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import Meta -from .group_0373 import UserRoleItems -from .group_0372 import UserNameResponse, UserEmailsResponseItems -from .group_0377 import ScimEnterpriseUserResponseAllof1PropGroupsItems +class PatchSchema(GitHubModel): + """PatchSchema""" -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." + operations: List[PatchSchemaPropOperationsItems] = Field( + alias="Operations", description="patch operations list" ) + schemas: List[Literal["urn:ietf:params:scim:api:messages:2.0:PatchOp"]] = Field() -class ScimEnterpriseUserList(GitHubModel): - """ScimEnterpriseUserList""" +class PatchSchemaPropOperationsItems(GitHubModel): + """PatchSchemaPropOperationsItems""" - 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" + 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(ScimEnterpriseUserResponse) -model_rebuild(ScimEnterpriseUserList) +model_rebuild(PatchSchema) +model_rebuild(PatchSchemaPropOperationsItems) __all__ = ( - "ScimEnterpriseUserResponse", - "ScimEnterpriseUserList", + "PatchSchema", + "PatchSchemaPropOperationsItems", ) 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 35942d60f..7da867eb6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0376.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0376.py @@ -9,31 +9,45 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import Meta -from .group_0377 import ScimEnterpriseUserResponseAllof1PropGroupsItems - -class ScimEnterpriseUserResponseAllof1(GitHubModel): - """ScimEnterpriseUserResponseAllof1""" +class UserNameResponse(GitHubModel): + """UserNameResponse""" - id: str = Field(description="The internally generated id for the user object.") - groups: Missing[List[ScimEnterpriseUserResponseAllof1PropGroupsItems]] = Field( + formatted: Missing[str] = Field( default=UNSET, - description="Provisioned SCIM groups that the user is a member of.", + description="The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.", + ) + family_name: Missing[str] = Field( + default=UNSET, alias="familyName", description="The family name of the user." + ) + given_name: Missing[str] = Field( + default=UNSET, alias="givenName", description="The given name of the user." ) - meta: Meta = Field( - description="The metadata associated with the creation/updates to the user." + middle_name: Missing[str] = Field( + default=UNSET, alias="middleName", description="The middle name(s) of the user." + ) + + +class UserEmailsResponseItems(GitHubModel): + """UserEmailsResponseItems""" + + value: str = Field(description="The email address.") + type: Missing[str] = Field(default=UNSET, description="The type of email address.") + primary: Missing[bool] = Field( + default=UNSET, description="Whether this email address is the primary address." ) -model_rebuild(ScimEnterpriseUserResponseAllof1) +model_rebuild(UserNameResponse) +model_rebuild(UserEmailsResponseItems) -__all__ = ("ScimEnterpriseUserResponseAllof1",) +__all__ = ( + "UserNameResponse", + "UserEmailsResponseItems", +) 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 2240790bd..2768f5e2c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0377.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0377.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,14 +18,28 @@ from githubkit.compat import GitHubModel, model_rebuild -class ScimEnterpriseUserResponseAllof1PropGroupsItems(GitHubModel): - """ScimEnterpriseUserResponseAllof1PropGroupsItems""" +class UserRoleItems(GitHubModel): + """UserRoleItems""" - value: Missing[str] = Field(default=UNSET) - ref: Missing[str] = Field(default=UNSET, alias="$ref") display: Missing[str] = Field(default=UNSET) - - -model_rebuild(ScimEnterpriseUserResponseAllof1PropGroupsItems) - -__all__ = ("ScimEnterpriseUserResponseAllof1PropGroupsItems",) + 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(UserRoleItems) + +__all__ = ("UserRoleItems",) 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 1f8632698..6a9e06dad 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0378.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0378.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,65 +17,39 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0373 import UserRoleItems +from .group_0377 import UserRoleItems +from .group_0376 import UserNameResponse, UserEmailsResponseItems -class User(GitHubModel): - """User""" +class UserResponse(GitHubModel): + """UserResponse""" 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( + 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: 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." + user_name: Missing[str] = Field( + default=UNSET, alias="userName", description="The username for the user." ) - - -class UserName(GitHubModel): - """UserName""" - - formatted: Missing[str] = Field( + name: Missing[UserNameResponse] = Field(default=UNSET) + display_name: Missing[Union[str, None]] = Field( default=UNSET, - description="The full name, including all middle names, titles, and suffixes as appropriate, formatted for display.", + alias="displayName", + description="A human-readable name for the user.", ) - family_name: str = Field( - alias="familyName", description="The family name of the user." + emails: List[UserEmailsResponseItems] = Field( + description="The emails for the user." ) - given_name: str = Field( - alias="givenName", description="The given name of the user." - ) - middle_name: Missing[str] = Field( - default=UNSET, alias="middleName", description="The middle name(s) of the user." - ) - - -class UserEmailsItems(GitHubModel): - """UserEmailsItems""" - - value: str = Field(description="The email address.") - type: str = Field(description="The type of email address.") - primary: bool = Field( - description="Whether this email address is the primary address." + roles: Missing[List[UserRoleItems]] = Field( + default=UNSET, description="The roles assigned to the user." ) -model_rebuild(User) -model_rebuild(UserName) -model_rebuild(UserEmailsItems) +model_rebuild(UserResponse) -__all__ = ( - "User", - "UserName", - "UserEmailsItems", -) +__all__ = ("UserResponse",) 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 0f6844463..e6caeb40b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0379.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0379.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, List, Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,134 +17,75 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0371 import Meta +from .group_0377 import UserRoleItems +from .group_0376 import UserNameResponse, UserEmailsResponseItems +from .group_0381 import ScimEnterpriseUserResponseAllof1PropGroupsItems -class ScimUserList(GitHubModel): - """SCIM User List - SCIM User List - """ +class ScimEnterpriseUserResponse(GitHubModel): + """ScimEnterpriseUserResponse""" - schemas: List[str] = Field(min_length=1, 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, 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." + 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." ) - user_name: Missing[Union[str, None]] = Field( + external_id: Missing[Union[str, None]] = Field( default=UNSET, - alias="userName", - description="Configured by the admin. Could be an email, login, or username", + alias="externalId", + description="A unique identifier for the resource as defined by the provisioning client.", ) + active: bool = Field(description="Whether the user active in the IdP.") + user_name: Missing[str] = Field( + default=UNSET, alias="userName", description="The username for the user." + ) + name: Missing[UserNameResponse] = Field(default=UNSET) display_name: Missing[Union[str, None]] = Field( default=UNSET, alias="displayName", - description="The name of the user, suitable for display to end-users", + description="A human-readable name for the user.", ) - name: Missing[ScimUserPropName] = Field(default=UNSET) - emails: List[ScimUserPropEmailsItems] = Field(description="user emails") - active: bool = Field(description="The active status of the User.") - meta: ScimUserPropMeta = Field() - organization_id: Missing[int] = Field( - default=UNSET, description="The ID of the organization." + emails: List[UserEmailsResponseItems] = Field( + description="The emails for the user." ) - operations: Missing[List[ScimUserPropOperationsItems]] = Field( - min_length=1, default=UNSET, description="Set of operations to be performed" + roles: Missing[List[UserRoleItems]] = Field( + default=UNSET, description="The roles assigned to the user." ) - groups: Missing[List[ScimUserPropGroupsItems]] = Field( - default=UNSET, description="associated groups" + 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." ) - 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 ScimEnterpriseUserList(GitHubModel): + """ScimEnterpriseUserList""" -class ScimUserPropOperationsItemsPropValueOneof1(GitHubModel): - """ScimUserPropOperationsItemsPropValueOneof1""" + 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(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(ScimEnterpriseUserResponse) +model_rebuild(ScimEnterpriseUserList) __all__ = ( - "ScimUserList", - "ScimUser", - "ScimUserPropName", - "ScimUserPropEmailsItems", - "ScimUserPropMeta", - "ScimUserPropGroupsItems", - "ScimUserPropRolesItems", - "ScimUserPropOperationsItems", - "ScimUserPropOperationsItemsPropValueOneof1", + "ScimEnterpriseUserResponse", + "ScimEnterpriseUserList", ) 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 2b52c39fa..d7fa45224 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0380.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0380.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import List from pydantic import Field @@ -17,30 +17,23 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0371 import Meta +from .group_0381 import ScimEnterpriseUserResponseAllof1PropGroupsItems -class SearchResultTextMatchesItems(GitHubModel): - """SearchResultTextMatchesItems""" - object_url: Missing[str] = Field(default=UNSET) - object_type: Missing[Union[str, None]] = Field(default=UNSET) - property_: Missing[str] = Field(default=UNSET, alias="property") - fragment: Missing[str] = Field(default=UNSET) - matches: Missing[List[SearchResultTextMatchesItemsPropMatchesItems]] = Field( - default=UNSET - ) - - -class SearchResultTextMatchesItemsPropMatchesItems(GitHubModel): - """SearchResultTextMatchesItemsPropMatchesItems""" +class ScimEnterpriseUserResponseAllof1(GitHubModel): + """ScimEnterpriseUserResponseAllof1""" - text: Missing[str] = Field(default=UNSET) - indices: Missing[List[int]] = Field(default=UNSET) + id: str = Field(description="The internally generated id for the user object.") + groups: Missing[List[ScimEnterpriseUserResponseAllof1PropGroupsItems]] = Field( + default=UNSET, + description="Provisioned SCIM groups that the user is a member of.", + ) + meta: Meta = Field( + description="The metadata associated with the creation/updates to the user." + ) -model_rebuild(SearchResultTextMatchesItems) -model_rebuild(SearchResultTextMatchesItemsPropMatchesItems) +model_rebuild(ScimEnterpriseUserResponseAllof1) -__all__ = ( - "SearchResultTextMatchesItems", - "SearchResultTextMatchesItemsPropMatchesItems", -) +__all__ = ("ScimEnterpriseUserResponseAllof1",) 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 d95a1a743..2240790bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0381.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0381.py @@ -9,56 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0079 import MinimalRepository -from .group_0380 import SearchResultTextMatchesItems - - -class CodeSearchResultItem(GitHubModel): - """Code Search Result Item - - Code Search Result Item - """ - - name: str = Field() - path: str = Field() - sha: str = Field() - url: str = Field() - git_url: str = Field() - html_url: str = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - score: float = Field() - file_size: Missing[int] = Field(default=UNSET) - language: Missing[Union[str, None]] = Field(default=UNSET) - last_modified_at: Missing[datetime] = Field(default=UNSET) - line_numbers: Missing[List[str]] = Field(default=UNSET) - text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) - -class SearchCodeGetResponse200(GitHubModel): - """SearchCodeGetResponse200""" +class ScimEnterpriseUserResponseAllof1PropGroupsItems(GitHubModel): + """ScimEnterpriseUserResponseAllof1PropGroupsItems""" - total_count: int = Field() - incomplete_results: bool = Field() - items: List[CodeSearchResultItem] = Field() + value: Missing[str] = Field(default=UNSET) + ref: Missing[str] = Field(default=UNSET, alias="$ref") + display: Missing[str] = Field(default=UNSET) -model_rebuild(CodeSearchResultItem) -model_rebuild(SearchCodeGetResponse200) +model_rebuild(ScimEnterpriseUserResponseAllof1PropGroupsItems) -__all__ = ( - "CodeSearchResultItem", - "SearchCodeGetResponse200", -) +__all__ = ("ScimEnterpriseUserResponseAllof1PropGroupsItems",) 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 30982cca8..4795f60fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0382.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0382.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import List, Literal from pydantic import Field @@ -17,59 +17,65 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0203 import GitUser -from .group_0001 import SimpleUser -from .group_0079 import MinimalRepository -from .group_0380 import SearchResultTextMatchesItems -from .group_0383 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" +from .group_0377 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." ) - score: float = Field() - node_id: str = Field() - text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" + 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 CommitSearchResultItemPropParentsItems(GitHubModel): - """CommitSearchResultItemPropParentsItems""" +class UserName(GitHubModel): + """UserName""" - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) + 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 SearchCommitsGetResponse200(GitHubModel): - """SearchCommitsGetResponse200""" +class UserEmailsItems(GitHubModel): + """UserEmailsItems""" - total_count: int = Field() - incomplete_results: bool = Field() - items: List[CommitSearchResultItem] = Field() + value: str = Field(description="The email address.") + type: str = Field(description="The type of email address.") + primary: bool = Field( + description="Whether this email address is the primary address." + ) -model_rebuild(CommitSearchResultItem) -model_rebuild(CommitSearchResultItemPropParentsItems) -model_rebuild(SearchCommitsGetResponse200) +model_rebuild(User) +model_rebuild(UserName) +model_rebuild(UserEmailsItems) __all__ = ( - "CommitSearchResultItem", - "CommitSearchResultItemPropParentsItems", - "SearchCommitsGetResponse200", + "User", + "UserName", + "UserEmailsItems", ) 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 210e34a67..0f6844463 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0383.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0383.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import Any, List, Union, Literal from pydantic import Field @@ -18,43 +18,134 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0203 import GitUser -from .group_0204 import Verification +class ScimUserList(GitHubModel): + """SCIM User List -class CommitSearchResultItemPropCommit(GitHubModel): - """CommitSearchResultItemPropCommit""" + SCIM User List + """ - 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") + schemas: List[str] = Field(min_length=1, 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 CommitSearchResultItemPropCommitPropAuthor(GitHubModel): - """CommitSearchResultItemPropCommitPropAuthor""" +class ScimUser(GitHubModel): + """SCIM /Users - name: str = Field() - email: str = Field() - date: datetime = Field() + SCIM /Users provisioning endpoints + """ + schemas: List[str] = Field(min_length=1, 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, 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 CommitSearchResultItemPropCommitPropTree(GitHubModel): - """CommitSearchResultItemPropCommitPropTree""" - sha: str = Field() - url: str = Field() +class ScimUserPropName(GitHubModel): + """ScimUserPropName + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ -model_rebuild(CommitSearchResultItemPropCommit) -model_rebuild(CommitSearchResultItemPropCommitPropAuthor) -model_rebuild(CommitSearchResultItemPropCommitPropTree) + given_name: Missing[Union[str, None]] = Field(default=UNSET, alias="givenName") + family_name: Missing[Union[str, None]] = Field(default=UNSET, alias="familyName") + formatted: Missing[Union[str, None]] = Field(default=UNSET) + + +class ScimUserPropEmailsItems(GitHubModel): + """ScimUserPropEmailsItems""" + + value: str = Field() + primary: Missing[bool] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + + +class ScimUserPropMeta(GitHubModel): + """ScimUserPropMeta""" + + resource_type: Missing[str] = Field(default=UNSET, alias="resourceType") + created: Missing[datetime] = Field(default=UNSET) + last_modified: Missing[datetime] = Field(default=UNSET, alias="lastModified") + location: Missing[str] = Field(default=UNSET) + + +class ScimUserPropGroupsItems(GitHubModel): + """ScimUserPropGroupsItems""" + + value: Missing[str] = Field(default=UNSET) + display: Missing[str] = Field(default=UNSET) + + +class ScimUserPropRolesItems(GitHubModel): + """ScimUserPropRolesItems""" + + value: Missing[str] = Field(default=UNSET) + primary: Missing[bool] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + display: Missing[str] = Field(default=UNSET) + + +class ScimUserPropOperationsItems(GitHubModel): + """ScimUserPropOperationsItems""" + + op: Literal["add", "remove", "replace"] = Field() + path: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[str, ScimUserPropOperationsItemsPropValueOneof1, List[Any]] + ] = Field(default=UNSET) + + +class ScimUserPropOperationsItemsPropValueOneof1(GitHubModel): + """ScimUserPropOperationsItemsPropValueOneof1""" + + +model_rebuild(ScimUserList) +model_rebuild(ScimUser) +model_rebuild(ScimUserPropName) +model_rebuild(ScimUserPropEmailsItems) +model_rebuild(ScimUserPropMeta) +model_rebuild(ScimUserPropGroupsItems) +model_rebuild(ScimUserPropRolesItems) +model_rebuild(ScimUserPropOperationsItems) +model_rebuild(ScimUserPropOperationsItemsPropValueOneof1) __all__ = ( - "CommitSearchResultItemPropCommit", - "CommitSearchResultItemPropCommitPropAuthor", - "CommitSearchResultItemPropCommitPropTree", + "ScimUserList", + "ScimUser", + "ScimUserPropName", + "ScimUserPropEmailsItems", + "ScimUserPropMeta", + "ScimUserPropGroupsItems", + "ScimUserPropRolesItems", + "ScimUserPropOperationsItems", + "ScimUserPropOperationsItemsPropValueOneof1", ) 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 3dc929a47..2b52c39fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0384.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0384.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from pydantic import Field @@ -18,113 +17,30 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0061 import Milestone -from .group_0001 import SimpleUser -from .group_0017 import Repository -from .group_0006 import Integration -from .group_0062 import ReactionRollup -from .group_0380 import SearchResultTextMatchesItems - - -class IssueSearchResultItem(GitHubModel): - """Issue Search Result Item - - Issue Search Result Item - """ - - url: str = Field() - repository_url: str = Field() - labels_url: str = Field() - comments_url: str = Field() - events_url: str = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - title: str = Field() - locked: bool = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - labels: List[IssueSearchResultItemPropLabelsItems] = Field() - state: str = Field() - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[None, SimpleUser] = Field() - milestone: Union[None, Milestone] = Field() - comments: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) - pull_request: Missing[IssueSearchResultItemPropPullRequest] = Field(default=UNSET) - body: Missing[str] = Field(default=UNSET) - score: float = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - draft: Missing[bool] = Field(default=UNSET) - repository: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - body_html: Missing[str] = Field(default=UNSET) - body_text: Missing[str] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - -class IssueSearchResultItemPropLabelsItems(GitHubModel): - """IssueSearchResultItemPropLabelsItems""" +class SearchResultTextMatchesItems(GitHubModel): + """SearchResultTextMatchesItems""" - 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 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() + 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 SearchIssuesGetResponse200(GitHubModel): - """SearchIssuesGetResponse200""" +class SearchResultTextMatchesItemsPropMatchesItems(GitHubModel): + """SearchResultTextMatchesItemsPropMatchesItems""" - total_count: int = Field() - incomplete_results: bool = Field() - items: List[IssueSearchResultItem] = Field() + text: Missing[str] = Field(default=UNSET) + indices: Missing[List[int]] = Field(default=UNSET) -model_rebuild(IssueSearchResultItem) -model_rebuild(IssueSearchResultItemPropLabelsItems) -model_rebuild(IssueSearchResultItemPropPullRequest) -model_rebuild(SearchIssuesGetResponse200) +model_rebuild(SearchResultTextMatchesItems) +model_rebuild(SearchResultTextMatchesItemsPropMatchesItems) __all__ = ( - "IssueSearchResultItem", - "IssueSearchResultItemPropLabelsItems", - "IssueSearchResultItemPropPullRequest", - "SearchIssuesGetResponse200", + "SearchResultTextMatchesItems", + "SearchResultTextMatchesItemsPropMatchesItems", ) 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 c949d4f27..560e44e38 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0385.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0385.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union from pydantic import Field @@ -17,40 +18,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0380 import SearchResultTextMatchesItems +from .group_0082 import MinimalRepository +from .group_0384 import SearchResultTextMatchesItems -class LabelSearchResultItem(GitHubModel): - """Label Search Result Item +class CodeSearchResultItem(GitHubModel): + """Code Search Result Item - Label Search Result Item + Code Search Result Item """ - id: int = Field() - node_id: str = Field() - url: str = Field() name: str = Field() - color: str = Field() - default: bool = Field() - description: Union[str, None] = Field() + 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 SearchLabelsGetResponse200(GitHubModel): - """SearchLabelsGetResponse200""" +class SearchCodeGetResponse200(GitHubModel): + """SearchCodeGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: List[LabelSearchResultItem] = Field() + items: List[CodeSearchResultItem] = Field() -model_rebuild(LabelSearchResultItem) -model_rebuild(SearchLabelsGetResponse200) +model_rebuild(CodeSearchResultItem) +model_rebuild(SearchCodeGetResponse200) __all__ = ( - "LabelSearchResultItem", - "SearchLabelsGetResponse200", + "CodeSearchResultItem", + "SearchCodeGetResponse200", ) 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 962d6d6c0..04eac681e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0386.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0386.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union from pydantic import Field @@ -18,139 +17,59 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0207 import GitUser from .group_0001 import SimpleUser -from .group_0016 import LicenseSimple -from .group_0380 import SearchResultTextMatchesItems +from .group_0082 import MinimalRepository +from .group_0384 import SearchResultTextMatchesItems +from .group_0387 import CommitSearchResultItemPropCommit -class RepoSearchResultItem(GitHubModel): - """Repo Search Result Item +class CommitSearchResultItem(GitHubModel): + """Commit Search Result Item - Repo Search Result Item + Commit Search Result Item """ - id: int = Field() - node_id: str = Field() - name: str = Field() - full_name: str = Field() - owner: Union[None, SimpleUser] = Field() - private: bool = Field() - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - pushed_at: datetime = Field() - homepage: Union[str, None] = Field() - size: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - open_issues_count: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - default_branch: str = Field() - score: float = Field() - forks_url: str = Field() - keys_url: str = Field() - collaborators_url: str = Field() - teams_url: str = Field() - hooks_url: str = Field() - issue_events_url: str = Field() - events_url: str = Field() - assignees_url: str = Field() - branches_url: str = Field() - tags_url: str = Field() - blobs_url: str = Field() - git_tags_url: str = Field() - git_refs_url: str = Field() - trees_url: str = Field() - statuses_url: str = Field() - languages_url: str = Field() - stargazers_url: str = Field() - contributors_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - commits_url: str = Field() - git_commits_url: str = Field() + sha: str = Field() + html_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." + 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" ) - 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) + score: float = Field() + node_id: str = Field() text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( default=UNSET, title="Search Result Text Matches" ) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_forking: Missing[bool] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) -class RepoSearchResultItemPropPermissions(GitHubModel): - """RepoSearchResultItemPropPermissions""" +class CommitSearchResultItemPropParentsItems(GitHubModel): + """CommitSearchResultItemPropParentsItems""" - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - pull: bool = Field() + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) -class SearchRepositoriesGetResponse200(GitHubModel): - """SearchRepositoriesGetResponse200""" +class SearchCommitsGetResponse200(GitHubModel): + """SearchCommitsGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: List[RepoSearchResultItem] = Field() + items: List[CommitSearchResultItem] = Field() -model_rebuild(RepoSearchResultItem) -model_rebuild(RepoSearchResultItemPropPermissions) -model_rebuild(SearchRepositoriesGetResponse200) +model_rebuild(CommitSearchResultItem) +model_rebuild(CommitSearchResultItemPropParentsItems) +model_rebuild(SearchCommitsGetResponse200) __all__ = ( - "RepoSearchResultItem", - "RepoSearchResultItemPropPermissions", - "SearchRepositoriesGetResponse200", + "CommitSearchResultItem", + "CommitSearchResultItemPropParentsItems", + "SearchCommitsGetResponse200", ) 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 3e868b6ba..e04731ad0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0387.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0387.py @@ -9,8 +9,8 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union from pydantic import Field @@ -18,93 +18,43 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0380 import SearchResultTextMatchesItems +from .group_0207 import GitUser +from .group_0208 import Verification -class TopicSearchResultItem(GitHubModel): - """Topic Search Result Item +class CommitSearchResultItemPropCommit(GitHubModel): + """CommitSearchResultItemPropCommit""" - Topic Search Result Item - """ + author: CommitSearchResultItemPropCommitPropAuthor = Field() + committer: Union[None, GitUser] = Field() + comment_count: int = Field() + message: str = Field() + tree: CommitSearchResultItemPropCommitPropTree = Field() + url: str = Field() + verification: Missing[Verification] = Field(default=UNSET, title="Verification") - name: str = Field() - display_name: Union[str, None] = Field() - short_description: Union[str, None] = Field() - description: Union[str, None] = Field() - created_by: Union[str, None] = Field() - released: Union[str, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - featured: bool = Field() - curated: bool = Field() - score: float = Field() - repository_count: Missing[Union[int, None]] = Field(default=UNSET) - logo_url: Missing[Union[str, None]] = Field(default=UNSET) - text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) - related: Missing[Union[List[TopicSearchResultItemPropRelatedItems], None]] = Field( - default=UNSET - ) - aliases: Missing[Union[List[TopicSearchResultItemPropAliasesItems], None]] = Field( - default=UNSET - ) - - -class TopicSearchResultItemPropRelatedItems(GitHubModel): - """TopicSearchResultItemPropRelatedItems""" - - topic_relation: Missing[TopicSearchResultItemPropRelatedItemsPropTopicRelation] = ( - Field(default=UNSET) - ) - - -class TopicSearchResultItemPropRelatedItemsPropTopicRelation(GitHubModel): - """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - topic_id: Missing[int] = Field(default=UNSET) - relation_type: Missing[str] = Field(default=UNSET) +class CommitSearchResultItemPropCommitPropAuthor(GitHubModel): + """CommitSearchResultItemPropCommitPropAuthor""" - -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) + name: str = Field() + email: str = Field() + date: datetime = Field() -class SearchTopicsGetResponse200(GitHubModel): - """SearchTopicsGetResponse200""" +class CommitSearchResultItemPropCommitPropTree(GitHubModel): + """CommitSearchResultItemPropCommitPropTree""" - total_count: int = Field() - incomplete_results: bool = Field() - items: List[TopicSearchResultItem] = Field() + sha: str = Field() + url: str = Field() -model_rebuild(TopicSearchResultItem) -model_rebuild(TopicSearchResultItemPropRelatedItems) -model_rebuild(TopicSearchResultItemPropRelatedItemsPropTopicRelation) -model_rebuild(TopicSearchResultItemPropAliasesItems) -model_rebuild(TopicSearchResultItemPropAliasesItemsPropTopicRelation) -model_rebuild(SearchTopicsGetResponse200) +model_rebuild(CommitSearchResultItemPropCommit) +model_rebuild(CommitSearchResultItemPropCommitPropAuthor) +model_rebuild(CommitSearchResultItemPropCommitPropTree) __all__ = ( - "TopicSearchResultItem", - "TopicSearchResultItemPropRelatedItems", - "TopicSearchResultItemPropRelatedItemsPropTopicRelation", - "TopicSearchResultItemPropAliasesItems", - "TopicSearchResultItemPropAliasesItemsPropTopicRelation", - "SearchTopicsGetResponse200", + "CommitSearchResultItemPropCommit", + "CommitSearchResultItemPropCommitPropAuthor", + "CommitSearchResultItemPropCommitPropTree", ) 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 f4a22c250..dad9851df 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0388.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0388.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union +from typing import List, Union, Literal from pydantic import Field @@ -18,65 +18,113 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0380 import SearchResultTextMatchesItems +from .group_0064 import Milestone +from .group_0001 import SimpleUser +from .group_0017 import Repository +from .group_0006 import Integration +from .group_0065 import ReactionRollup +from .group_0384 import SearchResultTextMatchesItems -class UserSearchResultItem(GitHubModel): - """User Search Result Item +class IssueSearchResultItem(GitHubModel): + """Issue Search Result Item - User Search Result Item + Issue Search Result Item """ - login: str = Field() - id: int = Field() - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() url: str = Field() - html_url: str = Field() - followers_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - received_events_url: str = Field() - type: str = Field() - score: float = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() + repository_url: str = Field() + labels_url: str = Field() + comments_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) + 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() + state: str = Field() + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[None, SimpleUser] = Field() + milestone: Union[None, Milestone] = Field() + comments: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + closed_at: Union[datetime, None] = Field() text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( default=UNSET, title="Search Result Text Matches" ) - 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) + pull_request: Missing[IssueSearchResultItemPropPullRequest] = Field(default=UNSET) + body: Missing[str] = Field(default=UNSET) + score: float = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + draft: Missing[bool] = Field(default=UNSET) + repository: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + + +class IssueSearchResultItemPropLabelsItems(GitHubModel): + """IssueSearchResultItemPropLabelsItems""" + + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + color: Missing[str] = Field(default=UNSET) + default: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + + +class IssueSearchResultItemPropPullRequest(GitHubModel): + """IssueSearchResultItemPropPullRequest""" + + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + diff_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + patch_url: Union[str, None] = Field() + url: Union[str, None] = Field() -class SearchUsersGetResponse200(GitHubModel): - """SearchUsersGetResponse200""" +class SearchIssuesGetResponse200(GitHubModel): + """SearchIssuesGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: List[UserSearchResultItem] = Field() + items: List[IssueSearchResultItem] = Field() -model_rebuild(UserSearchResultItem) -model_rebuild(SearchUsersGetResponse200) +model_rebuild(IssueSearchResultItem) +model_rebuild(IssueSearchResultItemPropLabelsItems) +model_rebuild(IssueSearchResultItemPropPullRequest) +model_rebuild(SearchIssuesGetResponse200) __all__ = ( - "UserSearchResultItem", - "SearchUsersGetResponse200", + "IssueSearchResultItem", + "IssueSearchResultItemPropLabelsItems", + "IssueSearchResultItemPropPullRequest", + "SearchIssuesGetResponse200", ) 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 4c009363c..2b4fc2bd1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0389.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0389.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import List, Union from pydantic import Field @@ -18,71 +17,40 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0384 import SearchResultTextMatchesItems -class PrivateUser(GitHubModel): - """Private User - Private User +class LabelSearchResultItem(GitHubModel): + """Label Search Result Item + + Label Search Result Item """ - login: str = Field() id: int = Field() node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() url: str = Field() - html_url: str = Field() - followers_url: str = Field() - 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) - suspended_at: Missing[Union[datetime, None]] = 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() + color: str = Field() + default: bool = Field() + description: Union[str, None] = Field() + score: float = Field() + text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + + +class SearchLabelsGetResponse200(GitHubModel): + """SearchLabelsGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: List[LabelSearchResultItem] = Field() -model_rebuild(PrivateUser) -model_rebuild(PrivateUserPropPlan) +model_rebuild(LabelSearchResultItem) +model_rebuild(SearchLabelsGetResponse200) __all__ = ( - "PrivateUser", - "PrivateUserPropPlan", + "LabelSearchResultItem", + "SearchLabelsGetResponse200", ) 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 f6bee6e63..19e42e99b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0390.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0390.py @@ -9,21 +9,148 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0016 import LicenseSimple +from .group_0384 import SearchResultTextMatchesItems + -class CodespacesUserPublicKey(GitHubModel): - """CodespacesUserPublicKey +class RepoSearchResultItem(GitHubModel): + """Repo Search Result Item - The public key used for setting user Codespaces' Secrets. + Repo Search Result Item """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") + id: int = Field() + node_id: str = Field() + name: str = Field() + full_name: str = Field() + owner: Union[None, SimpleUser] = Field() + private: bool = Field() + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + pushed_at: datetime = Field() + homepage: Union[str, None] = Field() + size: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + open_issues_count: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + default_branch: str = Field() + score: float = Field() + forks_url: str = Field() + keys_url: str = Field() + collaborators_url: str = Field() + teams_url: str = Field() + hooks_url: str = Field() + issue_events_url: str = Field() + events_url: str = Field() + assignees_url: str = Field() + branches_url: str = Field() + tags_url: str = Field() + blobs_url: str = Field() + git_tags_url: str = Field() + git_refs_url: str = Field() + trees_url: str = Field() + statuses_url: str = Field() + languages_url: str = Field() + stargazers_url: str = Field() + contributors_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + commits_url: str = Field() + git_commits_url: str = Field() + comments_url: str = Field() + issue_comment_url: str = Field() + contents_url: str = Field() + compare_url: str = Field() + merges_url: str = Field() + archive_url: str = Field() + downloads_url: str = Field() + issues_url: str = Field() + pulls_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + labels_url: str = Field() + releases_url: str = Field() + deployments_url: str = Field() + git_url: str = Field() + ssh_url: str = Field() + clone_url: str = Field() + svn_url: str = Field() + forks: int = Field() + open_issues: int = Field() + watchers: int = Field() + topics: Missing[List[str]] = Field(default=UNSET) + mirror_url: Union[str, None] = Field() + has_issues: bool = Field() + has_projects: bool = Field() + has_pages: bool = Field() + has_wiki: bool = Field() + has_downloads: bool = Field() + has_discussions: Missing[bool] = Field(default=UNSET) + archived: bool = Field() + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + license_: Union[None, LicenseSimple] = Field(alias="license") + permissions: Missing[RepoSearchResultItemPropPermissions] = Field(default=UNSET) + text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_merge_commit: Missing[bool] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field(default=UNSET) + allow_rebase_merge: Missing[bool] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + allow_forking: Missing[bool] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + + +class RepoSearchResultItemPropPermissions(GitHubModel): + """RepoSearchResultItemPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + + +class SearchRepositoriesGetResponse200(GitHubModel): + """SearchRepositoriesGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: List[RepoSearchResultItem] = Field() -model_rebuild(CodespacesUserPublicKey) +model_rebuild(RepoSearchResultItem) +model_rebuild(RepoSearchResultItemPropPermissions) +model_rebuild(SearchRepositoriesGetResponse200) -__all__ = ("CodespacesUserPublicKey",) +__all__ = ( + "RepoSearchResultItem", + "RepoSearchResultItemPropPermissions", + "SearchRepositoriesGetResponse200", +) 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 a59d9e60b..06d34f575 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0391.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0391.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union from pydantic import Field @@ -18,35 +18,93 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0384 import SearchResultTextMatchesItems -class CodespaceExportDetails(GitHubModel): - """Fetches information about an export of a codespace. - An export of a codespace. Also, latest export details for a codespace can be - fetched with id = latest +class TopicSearchResultItem(GitHubModel): + """Topic Search Result Item + + Topic Search Result Item """ - state: Missing[Union[str, None]] = Field( - default=UNSET, description="State of the latest export" - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="Completion time of the last export operation" + name: str = Field() + display_name: Union[str, None] = Field() + short_description: Union[str, None] = Field() + description: Union[str, None] = Field() + created_by: Union[str, None] = Field() + released: Union[str, None] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + featured: bool = Field() + curated: bool = Field() + score: float = Field() + repository_count: Missing[Union[int, None]] = Field(default=UNSET) + logo_url: Missing[Union[str, None]] = Field(default=UNSET) + text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" ) - branch: Missing[Union[str, None]] = Field( - default=UNSET, description="Name of the exported branch" + related: Missing[Union[List[TopicSearchResultItemPropRelatedItems], None]] = Field( + default=UNSET ) - sha: Missing[Union[str, None]] = Field( - default=UNSET, description="Git commit SHA of the exported branch" + aliases: Missing[Union[List[TopicSearchResultItemPropAliasesItems], None]] = Field( + default=UNSET ) - 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" + + +class TopicSearchResultItemPropRelatedItems(GitHubModel): + """TopicSearchResultItemPropRelatedItems""" + + topic_relation: Missing[TopicSearchResultItemPropRelatedItemsPropTopicRelation] = ( + Field(default=UNSET) ) - html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="Web url for the exported branch" + + +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) ) -model_rebuild(CodespaceExportDetails) +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(TopicSearchResultItem) +model_rebuild(TopicSearchResultItemPropRelatedItems) +model_rebuild(TopicSearchResultItemPropRelatedItemsPropTopicRelation) +model_rebuild(TopicSearchResultItemPropAliasesItems) +model_rebuild(TopicSearchResultItemPropAliasesItemsPropTopicRelation) +model_rebuild(SearchTopicsGetResponse200) -__all__ = ("CodespaceExportDetails",) +__all__ = ( + "TopicSearchResultItem", + "TopicSearchResultItemPropRelatedItems", + "TopicSearchResultItemPropRelatedItemsPropTopicRelation", + "TopicSearchResultItemPropAliasesItems", + "TopicSearchResultItemPropAliasesItemsPropTopicRelation", + "SearchTopicsGetResponse200", +) 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 3f33a3604..7b3472f37 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0392.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0392.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from pydantic import Field @@ -18,155 +18,65 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0119 import FullRepository -from .group_0088 import CodespaceMachine +from .group_0384 import SearchResultTextMatchesItems -class CodespaceWithFullRepository(GitHubModel): - """Codespace +class UserSearchResultItem(GitHubModel): + """User Search Result Item - A codespace. + User Search Result Item """ + login: str = Field() id: int = Field() - name: str = Field(description="Automatically generated name of this codespace.") - display_name: Missing[Union[str, None]] = Field( - default=UNSET, description="Display name for this codespace." - ) - environment_id: Union[str, None] = Field( - description="UUID identifying this codespace's environment." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - billable_owner: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - repository: FullRepository = Field( - title="Full Repository", description="Full Repository" - ) - machine: Union[None, CodespaceMachine] = Field() - devcontainer_path: Missing[Union[str, None]] = Field( - default=UNSET, - description="Path to devcontainer.json from repo root used to create Codespace.", - ) - prebuild: Union[bool, None] = Field( - description="Whether the codespace was created from a prebuild." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - last_used_at: datetime = Field( - description="Last known time this codespace was started." - ) - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] = Field(description="State of this codespace.") - url: str = Field(description="API URL for this codespace.") - git_status: CodespaceWithFullRepositoryPropGitStatus = Field( - description="Details about the codespace's git repository." - ) - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( - description="The initally assigned location of a new codespace." - ) - idle_timeout_minutes: Union[int, None] = Field( - description="The number of minutes of inactivity after which this codespace will be automatically stopped." - ) - web_url: str = Field(description="URL to access this codespace on the web.") - machines_url: str = Field( - description="API URL to access available alternate machine types for this codespace." - ) - start_url: str = Field(description="API URL to start this codespace.") - stop_url: str = Field(description="API URL to stop this codespace.") - publish_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="API URL to publish this codespace to a new repository.", - ) - pulls_url: Union[str, None] = Field( - description="API URL for the Pull Request associated with this codespace, if any." - ) - recent_folders: List[str] = Field() - runtime_constraints: Missing[CodespaceWithFullRepositoryPropRuntimeConstraints] = ( - Field(default=UNSET) - ) - pending_operation: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", - ) - pending_operation_disabled_reason: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace is disabled by a pending operation", - ) - idle_timeout_notice: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", - ) - retention_period_minutes: Missing[Union[int, None]] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) - retention_expires_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', - ) - - -class CodespaceWithFullRepositoryPropGitStatus(GitHubModel): - """CodespaceWithFullRepositoryPropGitStatus - - Details about the codespace's git repository. - """ - - ahead: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is ahead of the remote.", - ) - behind: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is behind the remote.", - ) - has_unpushed_changes: Missing[bool] = Field( - default=UNSET, description="Whether the local repository has unpushed changes." - ) - has_uncommitted_changes: Missing[bool] = Field( - default=UNSET, - description="Whether the local repository has uncommitted changes.", - ) - ref: Missing[str] = Field( - default=UNSET, - description="The current branch (or SHA if in detached HEAD state) of the local repository.", - ) - - -class CodespaceWithFullRepositoryPropRuntimeConstraints(GitHubModel): - """CodespaceWithFullRepositoryPropRuntimeConstraints""" - - allowed_port_privacy_settings: Missing[Union[List[str], None]] = Field( - default=UNSET, - description="The privacy settings a user can select from when forwarding a port.", - ) - - -model_rebuild(CodespaceWithFullRepository) -model_rebuild(CodespaceWithFullRepositoryPropGitStatus) -model_rebuild(CodespaceWithFullRepositoryPropRuntimeConstraints) + 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) + + +class SearchUsersGetResponse200(GitHubModel): + """SearchUsersGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: List[UserSearchResultItem] = Field() + + +model_rebuild(UserSearchResultItem) +model_rebuild(SearchUsersGetResponse200) __all__ = ( - "CodespaceWithFullRepository", - "CodespaceWithFullRepositoryPropGitStatus", - "CodespaceWithFullRepositoryPropRuntimeConstraints", + "UserSearchResultItem", + "SearchUsersGetResponse200", ) 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 1fb1f3941..4c009363c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0393.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0393.py @@ -10,24 +10,79 @@ from __future__ import annotations from typing import Union +from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class Email(GitHubModel): - """Email +class PrivateUser(GitHubModel): + """Private User - Email + Private User """ - email: str = Field() - primary: bool = Field() - verified: bool = Field() - visibility: Union[str, None] = Field() + login: str = Field() + id: int = Field() + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + 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) + suspended_at: Missing[Union[datetime, None]] = Field(default=UNSET) + business_plus: Missing[bool] = Field(default=UNSET) + ldap_dn: Missing[str] = Field(default=UNSET) -model_rebuild(Email) +class PrivateUserPropPlan(GitHubModel): + """PrivateUserPropPlan""" -__all__ = ("Email",) + 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_0394.py b/githubkit/versions/ghec_v2022_11_28/models/group_0394.py index ed85687e5..f6bee6e63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0394.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0394.py @@ -9,80 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, List, Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class GpgKey(GitHubModel): - """GPG Key +class CodespacesUserPublicKey(GitHubModel): + """CodespacesUserPublicKey - A unique encryption key + The public key used for setting user Codespaces' Secrets. """ - id: int = Field() - name: Missing[Union[str, None]] = Field(default=UNSET) - primary_key_id: Union[int, None] = Field() - key_id: str = Field() - public_key: str = Field() - emails: List[GpgKeyPropEmailsItems] = Field() - subkeys: List[GpgKeyPropSubkeysItems] = Field() - can_sign: bool = Field() - can_encrypt_comms: bool = Field() - can_encrypt_storage: bool = Field() - can_certify: bool = Field() - created_at: datetime = Field() - expires_at: Union[datetime, None] = Field() - revoked: bool = Field() - raw_key: Union[str, None] = Field() - - -class GpgKeyPropEmailsItems(GitHubModel): - """GpgKeyPropEmailsItems""" - - email: Missing[str] = Field(default=UNSET) - verified: Missing[bool] = Field(default=UNSET) - - -class GpgKeyPropSubkeysItems(GitHubModel): - """GpgKeyPropSubkeysItems""" - - id: Missing[int] = Field(default=UNSET) - primary_key_id: Missing[int] = Field(default=UNSET) - key_id: Missing[str] = Field(default=UNSET) - public_key: Missing[str] = Field(default=UNSET) - emails: Missing[List[GpgKeyPropSubkeysItemsPropEmailsItems]] = Field(default=UNSET) - subkeys: Missing[List[Any]] = Field(default=UNSET) - can_sign: Missing[bool] = Field(default=UNSET) - can_encrypt_comms: Missing[bool] = Field(default=UNSET) - can_encrypt_storage: Missing[bool] = Field(default=UNSET) - can_certify: Missing[bool] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - expires_at: Missing[Union[str, None]] = Field(default=UNSET) - raw_key: Missing[Union[str, None]] = Field(default=UNSET) - revoked: Missing[bool] = Field(default=UNSET) - - -class GpgKeyPropSubkeysItemsPropEmailsItems(GitHubModel): - """GpgKeyPropSubkeysItemsPropEmailsItems""" - - email: Missing[str] = Field(default=UNSET) - verified: Missing[bool] = Field(default=UNSET) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") -model_rebuild(GpgKey) -model_rebuild(GpgKeyPropEmailsItems) -model_rebuild(GpgKeyPropSubkeysItems) -model_rebuild(GpgKeyPropSubkeysItemsPropEmailsItems) +model_rebuild(CodespacesUserPublicKey) -__all__ = ( - "GpgKey", - "GpgKeyPropEmailsItems", - "GpgKeyPropSubkeysItems", - "GpgKeyPropSubkeysItemsPropEmailsItems", -) +__all__ = ("CodespacesUserPublicKey",) 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 f75f4e54d..a59d9e60b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0395.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0395.py @@ -9,28 +9,44 @@ from __future__ import annotations +from typing import Union from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class Key(GitHubModel): - """Key +class CodespaceExportDetails(GitHubModel): + """Fetches information about an export of a codespace. - Key + An export of a codespace. Also, latest export details for a codespace can be + fetched with id = latest """ - key: str = Field() - id: int = Field() - url: str = Field() - title: str = Field() - created_at: datetime = Field() - verified: bool = Field() - read_only: bool = Field() - - -model_rebuild(Key) - -__all__ = ("Key",) + 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_0396.py b/githubkit/versions/ghec_v2022_11_28/models/group_0396.py index a01c990d3..bdfe8b75e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0396.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0396.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,43 +18,155 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0074 import MarketplaceListingPlan +from .group_0001 import SimpleUser +from .group_0123 import FullRepository +from .group_0093 import CodespaceMachine -class UserMarketplacePurchase(GitHubModel): - """User Marketplace Purchase +class CodespaceWithFullRepository(GitHubModel): + """Codespace - User Marketplace Purchase + A codespace. """ - 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" + 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 MarketplaceAccount(GitHubModel): - """Marketplace Account""" +class CodespaceWithFullRepositoryPropGitStatus(GitHubModel): + """CodespaceWithFullRepositoryPropGitStatus - 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) + Details about the codespace's git repository. + """ + + ahead: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is ahead of the remote.", + ) + behind: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is behind the remote.", + ) + has_unpushed_changes: Missing[bool] = Field( + default=UNSET, description="Whether the local repository has unpushed changes." + ) + has_uncommitted_changes: Missing[bool] = Field( + default=UNSET, + description="Whether the local repository has uncommitted changes.", + ) + ref: Missing[str] = Field( + default=UNSET, + description="The current branch (or SHA if in detached HEAD state) of the local repository.", + ) + + +class CodespaceWithFullRepositoryPropRuntimeConstraints(GitHubModel): + """CodespaceWithFullRepositoryPropRuntimeConstraints""" + + allowed_port_privacy_settings: Missing[Union[List[str], None]] = Field( + default=UNSET, + description="The privacy settings a user can select from when forwarding a port.", + ) -model_rebuild(UserMarketplacePurchase) -model_rebuild(MarketplaceAccount) +model_rebuild(CodespaceWithFullRepository) +model_rebuild(CodespaceWithFullRepositoryPropGitStatus) +model_rebuild(CodespaceWithFullRepositoryPropRuntimeConstraints) __all__ = ( - "UserMarketplacePurchase", - "MarketplaceAccount", + "CodespaceWithFullRepository", + "CodespaceWithFullRepositoryPropGitStatus", + "CodespaceWithFullRepositoryPropRuntimeConstraints", ) 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 cae25bb86..1fb1f3941 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0397.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0397.py @@ -9,21 +9,25 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class SocialAccount(GitHubModel): - """Social account +class Email(GitHubModel): + """Email - Social media account + Email """ - provider: str = Field() - url: str = Field() + email: str = Field() + primary: bool = Field() + verified: bool = Field() + visibility: Union[str, None] = Field() -model_rebuild(SocialAccount) +model_rebuild(Email) -__all__ = ("SocialAccount",) +__all__ = ("Email",) 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 e6313b836..ed85687e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0398.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0398.py @@ -10,24 +10,79 @@ from __future__ import annotations from datetime import datetime +from typing import Any, List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class SshSigningKey(GitHubModel): - """SSH Signing Key +class GpgKey(GitHubModel): + """GPG Key - A public SSH key used to sign Git commits + A unique encryption key """ - key: str = Field() id: int = Field() - title: str = Field() + name: Missing[Union[str, None]] = Field(default=UNSET) + primary_key_id: Union[int, None] = Field() + key_id: str = Field() + public_key: str = Field() + emails: List[GpgKeyPropEmailsItems] = Field() + subkeys: List[GpgKeyPropSubkeysItems] = Field() + can_sign: bool = Field() + can_encrypt_comms: bool = Field() + can_encrypt_storage: bool = Field() + can_certify: bool = Field() created_at: datetime = Field() + expires_at: Union[datetime, None] = Field() + revoked: bool = Field() + raw_key: Union[str, None] = Field() -model_rebuild(SshSigningKey) +class GpgKeyPropEmailsItems(GitHubModel): + """GpgKeyPropEmailsItems""" -__all__ = ("SshSigningKey",) + 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__ = ( + "GpgKey", + "GpgKeyPropEmailsItems", + "GpgKeyPropSubkeysItems", + "GpgKeyPropSubkeysItemsPropEmailsItems", +) 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 d048a0350..f75f4e54d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0399.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0399.py @@ -15,19 +15,22 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0017 import Repository +class Key(GitHubModel): + """Key -class StarredRepository(GitHubModel): - """Starred Repository - - Starred Repository + Key """ - starred_at: datetime = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") + key: str = Field() + id: int = Field() + url: str = Field() + title: str = Field() + created_at: datetime = Field() + verified: bool = Field() + read_only: bool = Field() -model_rebuild(StarredRepository) +model_rebuild(Key) -__all__ = ("StarredRepository",) +__all__ = ("Key",) 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 7d0eefaae..b679ea771 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0400.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0400.py @@ -9,33 +9,52 @@ from __future__ import annotations -from typing import List +from typing import Union +from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0077 import MarketplaceListingPlan -class Hovercard(GitHubModel): - """Hovercard - Hovercard +class UserMarketplacePurchase(GitHubModel): + """User Marketplace Purchase + + User Marketplace Purchase """ - contexts: List[HovercardPropContextsItems] = 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 HovercardPropContextsItems(GitHubModel): - """HovercardPropContextsItems""" +class MarketplaceAccount(GitHubModel): + """Marketplace Account""" - message: str = Field() - octicon: str = Field() + 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(Hovercard) -model_rebuild(HovercardPropContextsItems) +model_rebuild(UserMarketplacePurchase) +model_rebuild(MarketplaceAccount) __all__ = ( - "Hovercard", - "HovercardPropContextsItems", + "UserMarketplacePurchase", + "MarketplaceAccount", ) 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 fd0411072..cae25bb86 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0401.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0401.py @@ -14,16 +14,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class KeySimple(GitHubModel): - """Key Simple +class SocialAccount(GitHubModel): + """Social account - Key Simple + Social media account """ - id: int = Field() - key: str = Field() + provider: str = Field() + url: str = Field() -model_rebuild(KeySimple) +model_rebuild(SocialAccount) -__all__ = ("KeySimple",) +__all__ = ("SocialAccount",) 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 2fbeee7bf..e6313b836 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0402.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0402.py @@ -9,43 +9,25 @@ from __future__ import annotations -from typing import Union from datetime import datetime from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class EnterpriseWebhooks(GitHubModel): - """Enterprise +class SshSigningKey(GitHubModel): + """SSH Signing Key - An enterprise on GitHub. Webhook payloads contain the `enterprise` property when - the webhook is configured - on an enterprise account or an organization that's part of an enterprise - account. For more information, - see "[About enterprise accounts](https://docs.github.com/enterprise- - cloud@latest//admin/overview/about-enterprise-accounts)." + A public SSH key used to sign Git commits """ - description: Missing[Union[str, None]] = Field( - default=UNSET, description="A short description of the enterprise." - ) - html_url: str = Field() - website_url: Missing[Union[str, None]] = Field( - default=UNSET, description="The enterprise's website URL." - ) - id: int = Field(description="Unique identifier of the enterprise") - node_id: str = Field() - name: str = Field(description="The name of the enterprise.") - slug: str = Field(description="The slug url identifier for the enterprise.") - created_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - avatar_url: str = Field() - - -model_rebuild(EnterpriseWebhooks) - -__all__ = ("EnterpriseWebhooks",) + key: str = Field() + id: int = Field() + title: str = Field() + created_at: datetime = Field() + + +model_rebuild(SshSigningKey) + +__all__ = ("SshSigningKey",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0403.py b/githubkit/versions/ghec_v2022_11_28/models/group_0403.py index b18d5d9e7..d048a0350 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0403.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0403.py @@ -9,26 +9,25 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0017 import Repository + -class SimpleInstallation(GitHubModel): - """Simple Installation +class StarredRepository(GitHubModel): + """Starred Repository - The GitHub App installation. Webhook payloads contain the `installation` - property when the event is configured - for and sent to a GitHub App. For more information, - see "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise- - cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks- - with-github-apps)." + Starred Repository """ - id: int = Field(description="The ID of the installation.") - node_id: str = Field(description="The global node ID of the installation.") + starred_at: datetime = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") -model_rebuild(SimpleInstallation) +model_rebuild(StarredRepository) -__all__ = ("SimpleInstallation",) +__all__ = ("StarredRepository",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0404.py b/githubkit/versions/ghec_v2022_11_28/models/group_0404.py index 29be5dd8a..7d0eefaae 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0404.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0404.py @@ -9,36 +9,33 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrganizationSimpleWebhooks(GitHubModel): - """Organization Simple +class Hovercard(GitHubModel): + """Hovercard - A GitHub organization. Webhook payloads contain the `organization` property when - the webhook is configured for an - organization, or when the event occurs from activity in a repository owned by an - organization. + Hovercard """ - login: str = Field() - id: int = Field() - node_id: str = Field() - url: str = Field() - repos_url: str = Field() - events_url: str = Field() - hooks_url: str = Field() - issues_url: str = Field() - members_url: str = Field() - public_members_url: str = Field() - avatar_url: str = Field() - description: Union[str, None] = Field() + contexts: List[HovercardPropContextsItems] = Field() -model_rebuild(OrganizationSimpleWebhooks) +class HovercardPropContextsItems(GitHubModel): + """HovercardPropContextsItems""" -__all__ = ("OrganizationSimpleWebhooks",) + message: str = Field() + octicon: str = Field() + + +model_rebuild(Hovercard) +model_rebuild(HovercardPropContextsItems) + +__all__ = ( + "Hovercard", + "HovercardPropContextsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0405.py b/githubkit/versions/ghec_v2022_11_28/models/group_0405.py index 548b0540c..fd0411072 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0405.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0405.py @@ -9,372 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - -from .group_0001 import SimpleUser -from .group_0016 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 has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow forking this repo" - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - starred_at: Missing[str] = Field(default=UNSET) - anonymous_access_enabled: Missing[bool] = Field( - default=UNSET, - description="Whether anonymous git access is enabled for this repository", - ) - - -class RepositoryWebhooksPropPermissions(GitHubModel): - """RepositoryWebhooksPropPermissions""" +from githubkit.compat import GitHubModel, model_rebuild - admin: bool = Field() - pull: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - push: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) +class KeySimple(GitHubModel): + """Key Simple -class RepositoryWebhooksPropCustomProperties(ExtraGitHubModel): - """RepositoryWebhooksPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. + Key Simple """ - -class RepositoryWebhooksPropTemplateRepository(GitHubModel): - """RepositoryWebhooksPropTemplateRepository""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - owner: Missing[RepositoryWebhooksPropTemplateRepositoryPropOwner] = Field( - default=UNSET - ) - private: Missing[bool] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - clone_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - svn_url: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - language: Missing[str] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - default_branch: Missing[str] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[List[str]] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - pushed_at: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - permissions: Missing[RepositoryWebhooksPropTemplateRepositoryPropPermissions] = ( - Field(default=UNSET) - ) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_update_branch: Missing[bool] = Field(default=UNSET) - use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - - -class RepositoryWebhooksPropTemplateRepositoryPropOwner(GitHubModel): - """RepositoryWebhooksPropTemplateRepositoryPropOwner""" - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - - -class RepositoryWebhooksPropTemplateRepositoryPropPermissions(GitHubModel): - """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" - - admin: Missing[bool] = Field(default=UNSET) - maintain: Missing[bool] = Field(default=UNSET) - push: Missing[bool] = Field(default=UNSET) - triage: Missing[bool] = Field(default=UNSET) - pull: Missing[bool] = Field(default=UNSET) + id: int = Field() + key: str = Field() -model_rebuild(RepositoryWebhooks) -model_rebuild(RepositoryWebhooksPropPermissions) -model_rebuild(RepositoryWebhooksPropCustomProperties) -model_rebuild(RepositoryWebhooksPropTemplateRepository) -model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropOwner) -model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropPermissions) +model_rebuild(KeySimple) -__all__ = ( - "RepositoryWebhooks", - "RepositoryWebhooksPropPermissions", - "RepositoryWebhooksPropCustomProperties", - "RepositoryWebhooksPropTemplateRepository", - "RepositoryWebhooksPropTemplateRepositoryPropOwner", - "RepositoryWebhooksPropTemplateRepositoryPropPermissions", -) +__all__ = ("KeySimple",) 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 0b0e642ec..2fbeee7bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0406.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0406.py @@ -10,6 +10,7 @@ from __future__ import annotations from typing import Union +from datetime import datetime from pydantic import Field @@ -18,36 +19,33 @@ from githubkit.compat import GitHubModel, model_rebuild -class SimpleUserWebhooks(GitHubModel): - """Simple User +class EnterpriseWebhooks(GitHubModel): + """Enterprise - The GitHub user that triggered the event. This property is included in every - webhook payload. + 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)." """ - name: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - 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() + 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() - 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) - - -model_rebuild(SimpleUserWebhooks) - -__all__ = ("SimpleUserWebhooks",) + + +model_rebuild(EnterpriseWebhooks) + +__all__ = ("EnterpriseWebhooks",) 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 32203248b..b18d5d9e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0407.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0407.py @@ -9,74 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksRule(GitHubModel): - """branch protection rule +class SimpleInstallation(GitHubModel): + """Simple Installation - 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. + 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)." """ - 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() - 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() + id: int = Field(description="The ID of the installation.") + node_id: str = Field(description="The global node ID of the installation.") -model_rebuild(WebhooksRule) +model_rebuild(SimpleInstallation) -__all__ = ("WebhooksRule",) +__all__ = ("SimpleInstallation",) 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 9e1c1a43d..29be5dd8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0408.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0408.py @@ -9,42 +9,36 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ExemptionResponse(GitHubModel): - """Exemption response +class OrganizationSimpleWebhooks(GitHubModel): + """Organization Simple - A response to an exemption request by a delegated bypasser. + 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. """ - id: Missing[int] = Field( - default=UNSET, description="The ID of the exemption response." - ) - reviewer_id: Missing[int] = Field( - default=UNSET, - description="The ID of the user who reviewed the exemption request.", - ) - reviewer_login: Missing[str] = Field( - default=UNSET, - description="The login of the user who reviewed the exemption request.", - ) - status: Missing[Literal["approved", "rejected", "dismissed"]] = Field( - default=UNSET, description="The status of the exemption response." - ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the exemption request was created.", - ) - - -model_rebuild(ExemptionResponse) - -__all__ = ("ExemptionResponse",) + 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(OrganizationSimpleWebhooks) + +__all__ = ("OrganizationSimpleWebhooks",) 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 2775b6d66..548b0540c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0409.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0409.py @@ -16,156 +16,365 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0408 import ExemptionResponse +from .group_0001 import SimpleUser +from .group_0016 import LicenseSimple -class ExemptionRequest(GitHubModel): - """Exemption Request +class RepositoryWebhooks(GitHubModel): + """Repository - A request from a user to be exempted from a set of rules. + 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 request." + 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." ) - number: Missing[int] = 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(description="The default branch of the repository.") + open_issues_count: int = Field() + is_template: Missing[bool] = Field( default=UNSET, - description="The number uniquely identifying the exemption request within it's repository.", + description="Whether this repository acts as a template that can be used to generate new repositories.", ) - repository_id: Missing[int] = Field( + topics: Missing[List[str]] = Field(default=UNSET) + custom_properties: Missing[RepositoryWebhooksPropCustomProperties] = Field( default=UNSET, - description="The ID of the repository the exemption request is for.", + 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.", ) - requester_id: Missing[int] = Field( - default=UNSET, description="The ID of the user who requested the exemption." + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_projects: bool = Field( + default=True, description="Whether projects are enabled." ) - requester_login: Missing[str] = Field( - default=UNSET, description="The login of the user who requested the exemption." + 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." ) - request_type: Missing[Literal["push_ruleset_bypass", "secret_scanning"]] = Field( - default=UNSET, description="The type of request." + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." ) - exemption_request_data: Missing[ - Union[ExemptionRequestPushRulesetBypass, ExemptionRequestSecretScanning] - ] = Field(default=UNSET) - resource_identifier: Missing[str] = Field( - default=UNSET, - description="The unique identifier for the request type of the exemption request. For example, a commit SHA.", + archived: bool = Field( + default=False, description="Whether the repository is archived." ) - status: Missing[Literal["pending", "rejected", "cancelled", "completed"]] = Field( - default=UNSET, description="The status of the exemption request." + disabled: bool = Field( + description="Returns whether or not this repository disabled." ) - requester_comment: Missing[Union[str, None]] = Field( + visibility: Missing[str] = Field( default=UNSET, - description="The comment the requester provided when creating the exemption request.", + description="The repository visibility: public, private, or internal.", ) - metadata: Missing[Union[ExemptionRequestSecretScanningMetadata, None]] = Field( - default=UNSET, description="Metadata about the exemption request." + 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." ) - expires_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time the exemption request will expire.", + 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." ) - created_at: Missing[datetime] = Field( + allow_auto_merge: Missing[bool] = Field( default=UNSET, - description="The date and time the exemption request was created.", + description="Whether to allow Auto-merge to be used on pull requests.", ) - 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." + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", ) - - -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" + 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.", ) - reason: Missing[Literal["fixed_later", "false_positive", "tests"]] = Field( - default=UNSET, description="The reason for the exemption request" + use_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 has been deprecated. Please use `squash_merge_commit_title` instead.", ) - - -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" + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) ) - data: Missing[List[ExemptionRequestPushRulesetBypassPropDataItems]] = Field( + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( default=UNSET, - description="The data pertaining to the push rules that are being requested to be bypassed.", + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", ) - - -class ExemptionRequestPushRulesetBypassPropDataItems(GitHubModel): - """ExemptionRequestPushRulesetBypassPropDataItems""" - - ruleset_id: Missing[int] = Field( + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( default=UNSET, - description="The ID of the ruleset for the rules that were violated", + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", ) - ruleset_name: Missing[str] = Field( + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( default=UNSET, - description="The name of the ruleset for the rules that were violated", + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default 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." ) - total_violations: Missing[int] = Field( - default=UNSET, description="The number of violations" + 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", ) - rule_type: Missing[str] = Field( - default=UNSET, description="The type of rule that was violated" + 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 ExemptionRequestSecretScanning(GitHubModel): - """Secret scanning push protection exemption request data +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) + - Secret scanning push protections that are being requested to be bypassed. +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. """ - type: Missing[Literal["secret_scanning"]] = Field( - default=UNSET, description="The type of request" + +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).", + ) ) - data: Missing[List[ExemptionRequestSecretScanningPropDataItems]] = Field( + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( default=UNSET, - description="The data pertaining to the secret scanning push protections that are being requested to be bypassed.", + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", ) - - -class ExemptionRequestSecretScanningPropDataItems(GitHubModel): - """ExemptionRequestSecretScanningPropDataItems""" - - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that was detected" + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", ) - commits: Missing[List[str]] = Field( - default=UNSET, description="The commits that introduced the secret" + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) - - -model_rebuild(ExemptionRequest) -model_rebuild(ExemptionRequestSecretScanningMetadata) -model_rebuild(ExemptionRequestPushRulesetBypass) -model_rebuild(ExemptionRequestPushRulesetBypassPropDataItems) -model_rebuild(ExemptionRequestSecretScanning) -model_rebuild(ExemptionRequestSecretScanningPropDataItems) + allow_merge_commit: Missing[bool] = Field(default=UNSET) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + + +class RepositoryWebhooksPropTemplateRepositoryPropOwner(GitHubModel): + """RepositoryWebhooksPropTemplateRepositoryPropOwner""" + + login: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + + +class RepositoryWebhooksPropTemplateRepositoryPropPermissions(GitHubModel): + """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" + + admin: Missing[bool] = Field(default=UNSET) + maintain: Missing[bool] = Field(default=UNSET) + push: Missing[bool] = Field(default=UNSET) + triage: Missing[bool] = Field(default=UNSET) + pull: Missing[bool] = Field(default=UNSET) + + +model_rebuild(RepositoryWebhooks) +model_rebuild(RepositoryWebhooksPropPermissions) +model_rebuild(RepositoryWebhooksPropCustomProperties) +model_rebuild(RepositoryWebhooksPropTemplateRepository) +model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropOwner) +model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropPermissions) __all__ = ( - "ExemptionRequest", - "ExemptionRequestSecretScanningMetadata", - "ExemptionRequestPushRulesetBypass", - "ExemptionRequestPushRulesetBypassPropDataItems", - "ExemptionRequestSecretScanning", - "ExemptionRequestSecretScanningPropDataItems", + "RepositoryWebhooks", + "RepositoryWebhooksPropPermissions", + "RepositoryWebhooksPropCustomProperties", + "RepositoryWebhooksPropTemplateRepository", + "RepositoryWebhooksPropTemplateRepositoryPropOwner", + "RepositoryWebhooksPropTemplateRepositoryPropPermissions", ) 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 6afa6d1d3..0b0e642ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0410.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0410.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field @@ -18,58 +17,37 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0006 import Integration -from .group_0079 import MinimalRepository -from .group_0185 import PullRequestMinimal +class SimpleUserWebhooks(GitHubModel): + """Simple User -class SimpleCheckSuite(GitHubModel): - """SimpleCheckSuite - - A suite of checks performed on the code of a given code change + The GitHub user that triggered the event. This property is included in every + webhook payload. """ - 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(SimpleCheckSuite) - -__all__ = ("SimpleCheckSuite",) + 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) + + +model_rebuild(SimpleUserWebhooks) + +__all__ = ("SimpleUserWebhooks",) 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 0b113f871..b577aefa9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0411.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0411.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,74 +18,72 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0006 import Integration -from .group_0212 import DeploymentSimple -from .group_0410 import SimpleCheckSuite -from .group_0185 import PullRequestMinimal +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/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. """ - app: Union[None, Integration, None] = Field() - check_suite: SimpleCheckSuite = Field( - description="A suite of checks performed on the code of a given code change" + 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() ) - 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/ghec_v2022_11_28/models/group_0412.py b/githubkit/versions/ghec_v2022_11_28/models/group_0412.py index d55969b12..9e1c1a43d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0412.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0412.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from typing import Literal +from datetime import datetime from pydantic import Field @@ -18,24 +19,32 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksDeployKey(GitHubModel): - """WebhooksDeployKey +class ExemptionResponse(GitHubModel): + """Exemption response - The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- - keys/deploy-keys#get-a-deploy-key) resource. + A response to an exemption request by a delegated bypasser. """ - 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() - - -model_rebuild(WebhooksDeployKey) - -__all__ = ("WebhooksDeployKey",) + id: Missing[int] = Field( + default=UNSET, description="The ID of the exemption response." + ) + reviewer_id: Missing[int] = Field( + default=UNSET, + description="The ID of the user who reviewed the exemption request.", + ) + reviewer_login: Missing[str] = Field( + default=UNSET, + description="The login of the user who reviewed the exemption request.", + ) + status: Missing[Literal["approved", "rejected", "dismissed"]] = Field( + default=UNSET, description="The status of the exemption response." + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time the exemption request was created.", + ) + + +model_rebuild(ExemptionResponse) + +__all__ = ("ExemptionResponse",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0413.py b/githubkit/versions/ghec_v2022_11_28/models/group_0413.py index 8e1eed602..bfdadf602 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0413.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0413.py @@ -10,27 +10,162 @@ from __future__ import annotations from datetime import datetime +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0412 import ExemptionResponse -class WebhooksWorkflow(GitHubModel): - """Workflow""" - badge_url: str = Field() - created_at: datetime = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - node_id: str = Field() - path: str = Field() - state: str = Field() - updated_at: datetime = Field() - url: str = Field() +class ExemptionRequest(GitHubModel): + """Exemption Request + A request from a user to be exempted from a set of rules. + """ -model_rebuild(WebhooksWorkflow) + id: Missing[int] = Field( + default=UNSET, description="The ID of the exemption request." + ) + number: Missing[int] = Field( + default=UNSET, + description="The number uniquely identifying the exemption request within it's repository.", + ) + repository_id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository the exemption request is for.", + ) + requester_id: Missing[int] = Field( + default=UNSET, description="The ID of the user who requested the exemption." + ) + requester_login: Missing[str] = Field( + default=UNSET, description="The login of the user who requested the exemption." + ) + request_type: Missing[Literal["push_ruleset_bypass", "secret_scanning"]] = Field( + default=UNSET, description="The type of request." + ) + exemption_request_data: Missing[ + Union[ExemptionRequestPushRulesetBypass, ExemptionRequestSecretScanning] + ] = Field(default=UNSET) + resource_identifier: Missing[str] = Field( + default=UNSET, + description="The unique identifier for the request type of the exemption request. For example, a commit SHA.", + ) + status: Missing[Literal["pending", "rejected", "cancelled", "completed"]] = Field( + default=UNSET, description="The status of the exemption request." + ) + requester_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="The comment the requester provided when creating the exemption request.", + ) + metadata: Missing[Union[ExemptionRequestSecretScanningMetadata, None]] = Field( + default=UNSET, description="Metadata about the exemption request." + ) + expires_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time the exemption request will expire.", + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time the exemption request was created.", + ) + responses: Missing[Union[List[ExemptionResponse], None]] = Field( + default=UNSET, description="The responses to the exemption request." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The URL to view the exemption request in a browser." + ) -__all__ = ("WebhooksWorkflow",) + +class ExemptionRequestSecretScanningMetadata(GitHubModel): + """Secret Scanning Push Protection Exemption Request Metadata + + Metadata for a secret scanning push protection exemption request. + """ + + label: Missing[str] = Field( + default=UNSET, description="The label for the secret type" + ) + reason: Missing[Literal["fixed_later", "false_positive", "tests"]] = Field( + default=UNSET, description="The reason for the exemption request" + ) + + +class ExemptionRequestPushRulesetBypass(GitHubModel): + """Push ruleset bypass exemption request data + + Push rules that are being requested to be bypassed. + """ + + type: Missing[Literal["push_ruleset_bypass"]] = Field( + default=UNSET, description="The type of request" + ) + data: Missing[List[ExemptionRequestPushRulesetBypassPropDataItems]] = Field( + default=UNSET, + description="The data pertaining to the push rules that are being requested to be bypassed.", + ) + + +class ExemptionRequestPushRulesetBypassPropDataItems(GitHubModel): + """ExemptionRequestPushRulesetBypassPropDataItems""" + + ruleset_id: Missing[int] = Field( + default=UNSET, + description="The ID of the ruleset for the rules that were violated", + ) + ruleset_name: Missing[str] = Field( + default=UNSET, + description="The name of the ruleset for the rules that were violated", + ) + total_violations: Missing[int] = Field( + default=UNSET, description="The number of violations" + ) + rule_type: Missing[str] = Field( + default=UNSET, description="The type of rule that was violated" + ) + + +class ExemptionRequestSecretScanning(GitHubModel): + """Secret scanning push protection exemption request data + + Secret scanning push protections that are being requested to be bypassed. + """ + + type: Missing[Literal["secret_scanning"]] = Field( + default=UNSET, description="The type of request" + ) + data: Missing[List[ExemptionRequestSecretScanningPropDataItems]] = Field( + default=UNSET, + description="The data pertaining to the secret scanning push protections that are being requested to be bypassed.", + ) + + +class ExemptionRequestSecretScanningPropDataItems(GitHubModel): + """ExemptionRequestSecretScanningPropDataItems""" + + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that was detected" + ) + commits: Missing[List[str]] = Field( + default=UNSET, description="The commits that introduced the secret" + ) + + +model_rebuild(ExemptionRequest) +model_rebuild(ExemptionRequestSecretScanningMetadata) +model_rebuild(ExemptionRequestPushRulesetBypass) +model_rebuild(ExemptionRequestPushRulesetBypassPropDataItems) +model_rebuild(ExemptionRequestSecretScanning) +model_rebuild(ExemptionRequestSecretScanningPropDataItems) + +__all__ = ( + "ExemptionRequest", + "ExemptionRequestSecretScanningMetadata", + "ExemptionRequestPushRulesetBypass", + "ExemptionRequestPushRulesetBypassPropDataItems", + "ExemptionRequestSecretScanning", + "ExemptionRequestSecretScanningPropDataItems", +) 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 6ba220e91..920a36a1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0414.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0414.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,71 +18,58 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0006 import Integration +from .group_0082 import MinimalRepository +from .group_0189 import PullRequestMinimal -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) +class SimpleCheckSuite(GitHubModel): + """SimpleCheckSuite + A suite of checks performed on the code of a given code change + """ -class WebhooksReviewersItems(GitHubModel): - """WebhooksReviewersItems""" - - reviewer: Missing[Union[WebhooksReviewersItemsPropReviewer, None]] = Field( - default=UNSET, title="User" + 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.", ) - type: Missing[Literal["User"]] = Field(default=UNSET) - - -class WebhooksReviewersItemsPropReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + before: Missing[Union[str, None]] = Field(default=UNSET) + conclusion: Missing[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + ] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + head_branch: Missing[Union[str, None]] = Field(default=UNSET) + head_sha: Missing[str] = Field( + default=UNSET, description="The SHA of the head commit that is being checked." + ) + id: Missing[int] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + pull_requests: Missing[List[PullRequestMinimal]] = Field(default=UNSET) + repository: Missing[MinimalRepository] = Field( + default=UNSET, title="Minimal Repository", description="Minimal Repository" + ) + status: Missing[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksApprover) -model_rebuild(WebhooksReviewersItems) -model_rebuild(WebhooksReviewersItemsPropReviewer) +model_rebuild(SimpleCheckSuite) -__all__ = ( - "WebhooksApprover", - "WebhooksReviewersItems", - "WebhooksReviewersItemsPropReviewer", -) +__all__ = ("SimpleCheckSuite",) 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 291bcddcd..63c2aa1cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0415.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0415.py @@ -9,24 +9,83 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0006 import Integration +from .group_0216 import DeploymentSimple +from .group_0414 import SimpleCheckSuite +from .group_0189 import PullRequestMinimal + + +class CheckRunWithSimpleCheckSuite(GitHubModel): + """CheckRun -class WebhooksWorkflowJobRun(GitHubModel): - """WebhooksWorkflowJobRun""" + A check performed on the code of a given code change + """ - conclusion: None = Field() - created_at: str = Field() - environment: str = Field() + app: Union[None, Integration, None] = Field() + check_suite: SimpleCheckSuite = Field( + description="A suite of checks performed on the code of a given code change" + ) + completed_at: Union[datetime, None] = Field() + conclusion: Union[ + None, + Literal[ + "waiting", + "pending", + "startup_failure", + "stale", + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] = Field() + deployment: Missing[DeploymentSimple] = Field( + default=UNSET, + title="Deployment", + description="A deployment created as the result of an Actions check run from a workflow that references an environment", + ) + details_url: str = Field() + external_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being checked.") html_url: str = Field() - id: int = Field() - name: None = Field() - status: str = Field() - updated_at: str = Field() + id: int = Field(description="The id of the check.") + name: str = Field(description="The name of the check.") + node_id: str = Field() + output: CheckRunWithSimpleCheckSuitePropOutput = Field() + pull_requests: List[PullRequestMinimal] = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "pending"] = Field( + description="The phase of the lifecycle that the check is currently in." + ) + url: str = Field() + + +class CheckRunWithSimpleCheckSuitePropOutput(GitHubModel): + """CheckRunWithSimpleCheckSuitePropOutput""" + + annotations_count: int = Field() + annotations_url: str = Field() + summary: Union[str, None] = Field() + text: Union[str, None] = Field() + title: Union[str, None] = Field() -model_rebuild(WebhooksWorkflowJobRun) +model_rebuild(CheckRunWithSimpleCheckSuite) +model_rebuild(CheckRunWithSimpleCheckSuitePropOutput) -__all__ = ("WebhooksWorkflowJobRun",) +__all__ = ( + "CheckRunWithSimpleCheckSuite", + "CheckRunWithSimpleCheckSuitePropOutput", +) 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 28089a5fe..d55969b12 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0416.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0416.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union from pydantic import Field @@ -18,32 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksUser(GitHubModel): - """User""" +class WebhooksDeployKey(GitHubModel): + """WebhooksDeployKey - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: 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. + """ + + 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) - - -model_rebuild(WebhooksUser) - -__all__ = ("WebhooksUser",) + 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() + + +model_rebuild(WebhooksDeployKey) + +__all__ = ("WebhooksDeployKey",) 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 468cd4b7a..8e1eed602 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0417.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0417.py @@ -10,94 +10,27 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksAnswer(GitHubModel): - """WebhooksAnswer""" +class WebhooksWorkflow(GitHubModel): + """Workflow""" - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field() - child_comment_count: int = Field() + badge_url: str = Field() created_at: datetime = Field() - discussion_id: int = Field() html_url: str = Field() id: int = Field() + name: str = Field() node_id: str = Field() - parent_id: None = Field() - reactions: Missing[WebhooksAnswerPropReactions] = Field( - default=UNSET, title="Reactions" - ) - repository_url: str = Field() + path: str = Field() + state: 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) - - -model_rebuild(WebhooksAnswer) -model_rebuild(WebhooksAnswerPropReactions) -model_rebuild(WebhooksAnswerPropUser) +model_rebuild(WebhooksWorkflow) -__all__ = ( - "WebhooksAnswer", - "WebhooksAnswerPropReactions", - "WebhooksAnswerPropUser", -) +__all__ = ("WebhooksWorkflow",) 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 f6857b9b0..6ba220e91 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0418.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0418.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -19,69 +18,18 @@ from githubkit.compat import GitHubModel, model_rebuild -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") - - -class DiscussionPropAnswerChosenBy(GitHubModel): - """User""" +class WebhooksApprover(GitHubModel): + """WebhooksApprover""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: 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) @@ -89,41 +37,20 @@ class DiscussionPropAnswerChosenBy(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class DiscussionPropCategory(GitHubModel): - """DiscussionPropCategory""" +class WebhooksReviewersItems(GitHubModel): + """WebhooksReviewersItems""" - 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() + reviewer: Missing[Union[WebhooksReviewersItemsPropReviewer, None]] = Field( + default=UNSET, title="User" + ) + type: Missing[Literal["User"]] = Field(default=UNSET) -class DiscussionPropUser(GitHubModel): +class WebhooksReviewersItemsPropReviewer(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -149,16 +76,12 @@ class DiscussionPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(Discussion) -model_rebuild(DiscussionPropAnswerChosenBy) -model_rebuild(DiscussionPropCategory) -model_rebuild(DiscussionPropReactions) -model_rebuild(DiscussionPropUser) +model_rebuild(WebhooksApprover) +model_rebuild(WebhooksReviewersItems) +model_rebuild(WebhooksReviewersItemsPropReviewer) __all__ = ( - "Discussion", - "DiscussionPropAnswerChosenBy", - "DiscussionPropCategory", - "DiscussionPropReactions", - "DiscussionPropUser", + "WebhooksApprover", + "WebhooksReviewersItems", + "WebhooksReviewersItemsPropReviewer", ) 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 0c2738c6c..291bcddcd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0419.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0419.py @@ -9,92 +9,24 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksComment(GitHubModel): - """WebhooksComment""" +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() + conclusion: None = Field() created_at: str = Field() - discussion_id: int = Field() + environment: str = Field() html_url: str = Field() id: int = Field() - node_id: str = Field() - parent_id: Union[int, None] = Field() - reactions: WebhooksCommentPropReactions = Field(title="Reactions") - repository_url: str = Field() + name: None = Field() + status: 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) -model_rebuild(WebhooksComment) -model_rebuild(WebhooksCommentPropReactions) -model_rebuild(WebhooksCommentPropUser) +model_rebuild(WebhooksWorkflowJobRun) -__all__ = ( - "WebhooksComment", - "WebhooksCommentPropReactions", - "WebhooksCommentPropUser", -) +__all__ = ("WebhooksWorkflowJobRun",) 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 6e6effd19..28089a5fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0420.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0420.py @@ -9,27 +9,41 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksLabel(GitHubModel): - """Label""" +class WebhooksUser(GitHubModel): + """User""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -model_rebuild(WebhooksLabel) - -__all__ = ("WebhooksLabel",) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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(WebhooksUser) + +__all__ = ("WebhooksUser",) 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 ba770b6b0..468cd4b7a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0421.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0421.py @@ -9,21 +9,95 @@ from __future__ import annotations +from datetime import datetime +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksRepositoriesItems(GitHubModel): - """WebhooksRepositoriesItems""" +class WebhooksAnswer(GitHubModel): + """WebhooksAnswer""" - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field() + child_comment_count: int = Field() + created_at: datetime = Field() + discussion_id: int = Field() + html_url: str = Field() + id: int = Field() node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") + parent_id: None = Field() + reactions: Missing[WebhooksAnswerPropReactions] = Field( + default=UNSET, title="Reactions" + ) + repository_url: str = Field() + updated_at: datetime = Field() + user: Union[WebhooksAnswerPropUser, None] = Field(title="User") + + +class WebhooksAnswerPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksAnswerPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksRepositoriesItems) +model_rebuild(WebhooksAnswer) +model_rebuild(WebhooksAnswerPropReactions) +model_rebuild(WebhooksAnswerPropUser) -__all__ = ("WebhooksRepositoriesItems",) +__all__ = ( + "WebhooksAnswer", + "WebhooksAnswerPropReactions", + "WebhooksAnswerPropUser", +) 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 f17279ee4..f6857b9b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0422.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0422.py @@ -9,21 +9,156 @@ from __future__ import annotations +from datetime import datetime +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksRepositoriesAddedItems(GitHubModel): - """WebhooksRepositoriesAddedItems""" +class Discussion(GitHubModel): + """Discussion + + A Discussion in a repository. + """ - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the 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() - private: bool = Field(description="Whether the repository is private or public.") + 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") + + +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) + + +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) -model_rebuild(WebhooksRepositoriesAddedItems) +model_rebuild(Discussion) +model_rebuild(DiscussionPropAnswerChosenBy) +model_rebuild(DiscussionPropCategory) +model_rebuild(DiscussionPropReactions) +model_rebuild(DiscussionPropUser) -__all__ = ("WebhooksRepositoriesAddedItems",) +__all__ = ( + "Discussion", + "DiscussionPropAnswerChosenBy", + "DiscussionPropCategory", + "DiscussionPropReactions", + "DiscussionPropUser", +) 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 0357dcd5f..0c2738c6c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0423.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0423.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -18,15 +17,9 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0006 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 WebhooksComment(GitHubModel): + """WebhooksComment""" author_association: Literal[ "COLLABORATOR", @@ -41,23 +34,21 @@ class WebhooksIssueComment(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: str = Field(description="Contents of the issue comment") - created_at: datetime = Field() + body: str = Field() + child_comment_count: int = Field() + created_at: str = Field() + discussion_id: int = Field() html_url: str = Field() - id: int = Field(description="Unique identifier of the issue comment") - issue_url: str = Field() + id: int = Field() node_id: str = Field() - performed_via_github_app: Union[Integration, None] = Field( - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - 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") + 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 WebhooksIssueCommentPropReactions(GitHubModel): +class WebhooksCommentPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -72,7 +63,7 @@ class WebhooksIssueCommentPropReactions(GitHubModel): url: str = Field() -class WebhooksIssueCommentPropUser(GitHubModel): +class WebhooksCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -94,18 +85,16 @@ class WebhooksIssueCommentPropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksIssueComment) -model_rebuild(WebhooksIssueCommentPropReactions) -model_rebuild(WebhooksIssueCommentPropUser) +model_rebuild(WebhooksComment) +model_rebuild(WebhooksCommentPropReactions) +model_rebuild(WebhooksCommentPropUser) __all__ = ( - "WebhooksIssueComment", - "WebhooksIssueCommentPropReactions", - "WebhooksIssueCommentPropUser", + "WebhooksComment", + "WebhooksCommentPropReactions", + "WebhooksCommentPropUser", ) 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 2491fe3f4..6e6effd19 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0424.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0424.py @@ -9,32 +9,27 @@ from __future__ import annotations +from typing import Union + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksChanges(GitHubModel): - """WebhooksChanges - - The changes to the comment. - """ - - body: Missing[WebhooksChangesPropBody] = Field(default=UNSET) - - -class WebhooksChangesPropBody(GitHubModel): - """WebhooksChangesPropBody""" +class WebhooksLabel(GitHubModel): + """Label""" - from_: str = Field(alias="from", description="The previous version of the body.") + color: str = Field( + description="6-character hex code, without the 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") -model_rebuild(WebhooksChanges) -model_rebuild(WebhooksChangesPropBody) +model_rebuild(WebhooksLabel) -__all__ = ( - "WebhooksChanges", - "WebhooksChangesPropBody", -) +__all__ = ("WebhooksLabel",) 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 304168b55..ba770b6b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0425.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0425.py @@ -9,437 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ +class WebhooksRepositoriesItems(GitHubModel): + """WebhooksRepositoriesItems""" - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhooksIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhooksIssuePropAssigneesItems, None]] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhooksIssuePropLabelsItems]] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhooksIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhooksIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhooksIssuePropPullRequest] = Field(default=UNSET) - reactions: WebhooksIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhooksIssuePropUser, None] = Field(title="User") - - -class WebhooksIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -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) - - -class WebhooksIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhooksIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksIssuePropMilestonePropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=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 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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = 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) - - -class WebhooksIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhooksIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhooksIssuePropPullRequest(GitHubModel): - """WebhooksIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") -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) +model_rebuild(WebhooksRepositoriesItems) -__all__ = ( - "WebhooksIssue", - "WebhooksIssuePropAssignee", - "WebhooksIssuePropAssigneesItems", - "WebhooksIssuePropLabelsItems", - "WebhooksIssuePropMilestone", - "WebhooksIssuePropMilestonePropCreator", - "WebhooksIssuePropPerformedViaGithubApp", - "WebhooksIssuePropPerformedViaGithubAppPropOwner", - "WebhooksIssuePropPerformedViaGithubAppPropPermissions", - "WebhooksIssuePropPullRequest", - "WebhooksIssuePropReactions", - "WebhooksIssuePropUser", -) +__all__ = ("WebhooksRepositoriesItems",) 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 a251b7a85..f17279ee4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0426.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0426.py @@ -9,72 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhooksRepositoriesAddedItems(GitHubModel): + """WebhooksRepositoriesAddedItems""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksMilestonePropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhooksMilestone) -model_rebuild(WebhooksMilestonePropCreator) +model_rebuild(WebhooksRepositoriesAddedItems) -__all__ = ( - "WebhooksMilestone", - "WebhooksMilestonePropCreator", -) +__all__ = ("WebhooksRepositoriesAddedItems",) 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 39fe77f95..0357dcd5f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0427.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0427.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,21 +18,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0006 import Integration -class WebhooksIssue2(GitHubModel): - """Issue - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. +class WebhooksIssueComment(GitHubModel): + """issue comment + + 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[WebhooksIssue2PropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhooksIssue2PropAssigneesItems, None]] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -46,324 +41,23 @@ class WebhooksIssue2(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[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.", - ) + 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[WebhooksIssue2PropPerformedViaGithubApp, 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[WebhooksIssue2PropPullRequest] = Field(default=UNSET) - reactions: WebhooksIssue2PropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") + reactions: WebhooksIssueCommentPropReactions = Field(title="Reactions") updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhooksIssue2PropUser, None] = Field(title="User") - + url: str = Field(description="URL for the issue comment") + user: Union[WebhooksIssueCommentPropUser, 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) - - -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) - - -class WebhooksIssue2PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhooksIssue2PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksIssue2PropMilestonePropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksIssue2PropMilestonePropCreator(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = 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) - - -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): +class WebhooksIssueCommentPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -378,7 +72,7 @@ class WebhooksIssue2PropReactions(GitHubModel): url: str = Field() -class WebhooksIssue2PropUser(GitHubModel): +class WebhooksIssueCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -400,34 +94,18 @@ 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) -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) +model_rebuild(WebhooksIssueComment) +model_rebuild(WebhooksIssueCommentPropReactions) +model_rebuild(WebhooksIssueCommentPropUser) __all__ = ( - "WebhooksIssue2", - "WebhooksIssue2PropAssignee", - "WebhooksIssue2PropAssigneesItems", - "WebhooksIssue2PropLabelsItems", - "WebhooksIssue2PropMilestone", - "WebhooksIssue2PropMilestonePropCreator", - "WebhooksIssue2PropPerformedViaGithubApp", - "WebhooksIssue2PropPerformedViaGithubAppPropOwner", - "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", - "WebhooksIssue2PropPullRequest", - "WebhooksIssue2PropReactions", - "WebhooksIssue2PropUser", + "WebhooksIssueComment", + "WebhooksIssueCommentPropReactions", + "WebhooksIssueCommentPropUser", ) 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 3c33afe16..2491fe3f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0428.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0428.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,34 +16,25 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksUserMannequin(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksUserMannequin) - -__all__ = ("WebhooksUserMannequin",) +class WebhooksChanges(GitHubModel): + """WebhooksChanges + + The changes to the comment. + """ + + body: Missing[WebhooksChangesPropBody] = Field(default=UNSET) + + +class WebhooksChangesPropBody(GitHubModel): + """WebhooksChangesPropBody""" + + from_: str = Field(alias="from", description="The previous version of the body.") + + +model_rebuild(WebhooksChanges) +model_rebuild(WebhooksChangesPropBody) + +__all__ = ( + "WebhooksChanges", + "WebhooksChangesPropBody", +) 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 2d6d781be..304168b55 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0429.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0429.py @@ -9,55 +9,437 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" +class WebhooksIssue(GitHubModel): + """Issue - 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() + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhooksIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhooksIssuePropAssigneesItems, None]] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhooksIssuePropLabelsItems]] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhooksIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhooksIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhooksIssuePropPullRequest] = Field(default=UNSET) + reactions: WebhooksIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhooksIssuePropUser, None] = Field(title="User") + + +class WebhooksIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +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) + + +class WebhooksIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhooksIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhooksIssuePropMilestonePropCreator, None] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhooksMarketplacePurchasePropAccount(GitHubModel): - """WebhooksMarketplacePurchasePropAccount""" +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) + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() + owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhooksIssuePropPerformedViaGithubAppPropPermissions] = Field( + default=UNSET, description="The set of permissions for the GitHub app" + ) + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhooksIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhooksMarketplacePurchasePropPlan(GitHubModel): - """WebhooksMarketplacePurchasePropPlan""" +class WebhooksIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhooksIssuePropPerformedViaGithubAppPropPermissions - bullets: List[Union[str, None]] = Field() - description: str = Field() - has_free_trial: bool = Field() + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhooksIssuePropPullRequest(GitHubModel): + """WebhooksIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksMarketplacePurchase) -model_rebuild(WebhooksMarketplacePurchasePropAccount) -model_rebuild(WebhooksMarketplacePurchasePropPlan) +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__ = ( - "WebhooksMarketplacePurchase", - "WebhooksMarketplacePurchasePropAccount", - "WebhooksMarketplacePurchasePropPlan", + "WebhooksIssue", + "WebhooksIssuePropAssignee", + "WebhooksIssuePropAssigneesItems", + "WebhooksIssuePropLabelsItems", + "WebhooksIssuePropMilestone", + "WebhooksIssuePropMilestonePropCreator", + "WebhooksIssuePropPerformedViaGithubApp", + "WebhooksIssuePropPerformedViaGithubAppPropOwner", + "WebhooksIssuePropPerformedViaGithubAppPropPermissions", + "WebhooksIssuePropPullRequest", + "WebhooksIssuePropReactions", + "WebhooksIssuePropUser", ) 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 482bffab9..a251b7a85 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0430.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0430.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -18,48 +19,62 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksPreviousMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" +class WebhooksMilestone(GitHubModel): + """Milestone - 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""" + 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() - login: str = Field() + labels_url: str = Field() node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhooksPreviousMarketplacePurchasePropPlan(GitHubModel): - """WebhooksPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "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() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhooksPreviousMarketplacePurchase) -model_rebuild(WebhooksPreviousMarketplacePurchasePropAccount) -model_rebuild(WebhooksPreviousMarketplacePurchasePropPlan) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksMilestone) +model_rebuild(WebhooksMilestonePropCreator) __all__ = ( - "WebhooksPreviousMarketplacePurchase", - "WebhooksPreviousMarketplacePurchasePropAccount", - "WebhooksPreviousMarketplacePurchasePropPlan", + "WebhooksMilestone", + "WebhooksMilestonePropCreator", ) 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 37c1135a6..39fe77f95 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0431.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0431.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,62 +19,415 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksTeam(GitHubModel): - """Team +class WebhooksIssue2(GitHubModel): + """Issue - Groups of organization members that gives permissions on specified repositories. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" + 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() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhooksIssue2PropUser, None] = Field(title="User") + + +class WebhooksIssue2PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhooksTeamPropParent, None]] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: 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) + + +class WebhooksIssue2PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) - 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") + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhooksTeamPropParent(GitHubModel): - """WebhooksTeamPropParent""" +class WebhooksIssue2PropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ - description: Union[str, None] = Field(description="Description of the team") + 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(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") + id: int = Field() + labels_url: str = Field() node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class 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) + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = 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) + + +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 ) - 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" - ) + 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 ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + 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) -model_rebuild(WebhooksTeam) -model_rebuild(WebhooksTeamPropParent) +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__ = ( - "WebhooksTeam", - "WebhooksTeamPropParent", + "WebhooksIssue2", + "WebhooksIssue2PropAssignee", + "WebhooksIssue2PropAssigneesItems", + "WebhooksIssue2PropLabelsItems", + "WebhooksIssue2PropMilestone", + "WebhooksIssue2PropMilestonePropCreator", + "WebhooksIssue2PropPerformedViaGithubApp", + "WebhooksIssue2PropPerformedViaGithubAppPropOwner", + "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", + "WebhooksIssue2PropPullRequest", + "WebhooksIssue2PropReactions", + "WebhooksIssue2PropUser", ) 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 6d0b230a9..3c33afe16 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0432.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0432.py @@ -9,28 +9,43 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0186 import SimpleCommit - - -class MergeGroup(GitHubModel): - """Merge Group - - A group of pull requests that the merge queue has grouped together to be merged. - """ - 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." +class WebhooksUserMannequin(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") + url: Missing[str] = Field(default=UNSET) -model_rebuild(MergeGroup) +model_rebuild(WebhooksUserMannequin) -__all__ = ("MergeGroup",) +__all__ = ("WebhooksUserMannequin",) 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 8f317fbe3..2d6d781be 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0433.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0433.py @@ -9,70 +9,55 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksMilestone3(GitHubModel): - """Milestone +class WebhooksMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" - A collection of related issues and pull requests. - """ + 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""" - 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() + login: str = Field() node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "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) + 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() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + 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(WebhooksMilestone3) -model_rebuild(WebhooksMilestone3PropCreator) +model_rebuild(WebhooksMarketplacePurchase) +model_rebuild(WebhooksMarketplacePurchasePropAccount) +model_rebuild(WebhooksMarketplacePurchasePropPlan) __all__ = ( - "WebhooksMilestone3", - "WebhooksMilestone3PropCreator", + "WebhooksMarketplacePurchase", + "WebhooksMarketplacePurchasePropAccount", + "WebhooksMarketplacePurchasePropPlan", ) 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 dc3320449..482bffab9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0434.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0434.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,50 +18,48 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksMembership(GitHubModel): - """Membership +class WebhooksPreviousMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" - The membership between the user and the organization. Not present when the - action is `member_invited`. - """ + account: WebhooksPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: None = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: bool = Field() + plan: WebhooksPreviousMarketplacePurchasePropPlan = Field() + unit_count: int = Field() - organization_url: str = Field() - role: str = Field() - state: str = Field() - url: str = Field() - user: Union[WebhooksMembershipPropUser, None] = Field(title="User") +class WebhooksPreviousMarketplacePurchasePropAccount(GitHubModel): + """WebhooksPreviousMarketplacePurchasePropAccount""" -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) + 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(WebhooksMembership) -model_rebuild(WebhooksMembershipPropUser) +model_rebuild(WebhooksPreviousMarketplacePurchase) +model_rebuild(WebhooksPreviousMarketplacePurchasePropAccount) +model_rebuild(WebhooksPreviousMarketplacePurchasePropPlan) __all__ = ( - "WebhooksMembership", - "WebhooksMembershipPropUser", + "WebhooksPreviousMarketplacePurchase", + "WebhooksPreviousMarketplacePurchasePropAccount", + "WebhooksPreviousMarketplacePurchasePropPlan", ) 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 8614622e5..37c1135a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0435.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0435.py @@ -9,190 +9,71 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class WebhooksTeam(GitHubModel): + """Team -class PersonalAccessTokenRequest(GitHubModel): - """Personal Access Token Request - - Details of a Personal Access Token Request. + Groups of organization members that gives permissions on specified repositories. """ - 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_expired: bool = Field( - description="Whether the associated fine-grained personal access token has expired." + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" ) - token_expires_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token expires." + 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", ) - token_last_used_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token was last used for authentication." - ) - - -class PersonalAccessTokenRequestPropRepositoriesItems(GitHubModel): - """PersonalAccessTokenRequestPropRepositoriesItems""" - - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") - - -class PersonalAccessTokenRequestPropPermissionsAdded(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsAdded - - New requested permissions, categorized by type of permission. - """ - - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsAddedPropOrganization + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsAddedPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsAddedPropOther] = Field( - default=UNSET - ) - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOrganization(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" - + 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 PersonalAccessTokenRequestPropPermissionsAddedPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" +class WebhooksTeamPropParent(GitHubModel): + """WebhooksTeamPropParent""" -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 + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: 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" ) - - -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 + 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") -class PersonalAccessTokenRequestPropPermissionsResultPropOrganization(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsResultPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsResultPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropOther""" - - -model_rebuild(PersonalAccessTokenRequest) -model_rebuild(PersonalAccessTokenRequestPropRepositoriesItems) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAdded) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOther) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgraded) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOther) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResult) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOther) +model_rebuild(WebhooksTeam) +model_rebuild(WebhooksTeamPropParent) __all__ = ( - "PersonalAccessTokenRequest", - "PersonalAccessTokenRequestPropRepositoriesItems", - "PersonalAccessTokenRequestPropPermissionsAdded", - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepository", - "PersonalAccessTokenRequestPropPermissionsAddedPropOther", - "PersonalAccessTokenRequestPropPermissionsUpgraded", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOther", - "PersonalAccessTokenRequestPropPermissionsResult", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganization", - "PersonalAccessTokenRequestPropPermissionsResultPropRepository", - "PersonalAccessTokenRequestPropPermissionsResultPropOther", + "WebhooksTeam", + "WebhooksTeamPropParent", ) 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 bb54bf921..b4a380a1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0436.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0436.py @@ -9,64 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0190 import SimpleCommit -class WebhooksProjectCard(GitHubModel): - """Project Card""" - - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhooksProjectCardPropCreator, None] = Field(title="User") - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() +class MergeGroup(GitHubModel): + """Merge Group -class WebhooksProjectCardPropCreator(GitHubModel): - """User""" + A group of pull requests that the merge queue has grouped together to be merged. + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + 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(WebhooksProjectCard) -model_rebuild(WebhooksProjectCardPropCreator) +model_rebuild(MergeGroup) -__all__ = ( - "WebhooksProjectCard", - "WebhooksProjectCardPropCreator", -) +__all__ = ("MergeGroup",) 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 09fa0ec4b..8f317fbe3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0437.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0437.py @@ -19,27 +19,31 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksProject(GitHubModel): - """Project""" +class WebhooksMilestone3(GitHubModel): + """Milestone - body: Union[str, None] = Field(description="Body of the project") - columns_url: str = Field() + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhooksProjectPropCreator, None] = Field(title="User") + 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() - name: str = Field(description="Name of the project") + labels_url: str = Field() node_id: str = Field() - number: int = Field() - owner_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the project; either 'open' or 'closed'" - ) + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "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 WebhooksProjectPropCreator(GitHubModel): +class WebhooksMilestone3PropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -65,10 +69,10 @@ class WebhooksProjectPropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksProject) -model_rebuild(WebhooksProjectPropCreator) +model_rebuild(WebhooksMilestone3) +model_rebuild(WebhooksMilestone3PropCreator) __all__ = ( - "WebhooksProject", - "WebhooksProjectPropCreator", + "WebhooksMilestone3", + "WebhooksMilestone3PropCreator", ) 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 8b615adb9..dc3320449 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0438.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0438.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -19,20 +18,50 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksProjectColumn(GitHubModel): - """Project Column""" +class WebhooksMembership(GitHubModel): + """Membership - 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() + The membership between the user and the organization. Not present when the + action is `member_invited`. + """ + + organization_url: str = Field() + role: str = Field() + state: str = Field() url: str = Field() + user: Union[WebhooksMembershipPropUser, None] = Field(title="User") + + +class WebhooksMembershipPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksProjectColumn) +model_rebuild(WebhooksMembership) +model_rebuild(WebhooksMembershipPropUser) -__all__ = ("WebhooksProjectColumn",) +__all__ = ( + "WebhooksMembership", + "WebhooksMembershipPropUser", +) 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 3528848a1..8614622e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0439.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0439.py @@ -9,38 +9,190 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import List, Union, Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild from .group_0001 import SimpleUser -class ProjectsV2(GitHubModel): - """Projects v2 Project +class PersonalAccessTokenRequest(GitHubModel): + """Personal Access Token Request - A projects v2 project + Details of a Personal Access Token Request. """ - id: float = Field() - node_id: str = Field() + id: int = Field( + description="Unique identifier of the request for access via fine-grained personal access token. Used as the `pat_request_id` parameter in the list and review API calls." + ) owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") - title: str = Field() - description: Union[str, None] = Field() - public: bool = Field() - closed_at: Union[datetime, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - number: int = Field() - short_description: Union[str, None] = Field() - deleted_at: Union[datetime, None] = Field() - deleted_by: Union[None, SimpleUser] = Field() - - -model_rebuild(ProjectsV2) - -__all__ = ("ProjectsV2",) + 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_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." + ) + token_expires_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token expires." + ) + token_last_used_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token was last used for authentication." + ) + + +class PersonalAccessTokenRequestPropRepositoriesItems(GitHubModel): + """PersonalAccessTokenRequestPropRepositoriesItems""" + + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") + + +class PersonalAccessTokenRequestPropPermissionsAdded(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsAdded + + New requested permissions, categorized by type of permission. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsAddedPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsAddedPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsAddedPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOrganization(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" + + +class PersonalAccessTokenRequestPropPermissionsUpgraded(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgraded + + Requested permissions that elevate access for a previously approved request for + access, categorized by type of permission. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsUpgradedPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization( + ExtraGitHubModel +): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOther""" + + +class PersonalAccessTokenRequestPropPermissionsResult(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsResult + + Permissions requested, categorized by type of permission. This field + incorporates `permissions_added` and `permissions_upgraded`. + """ + + organization: Missing[ + PersonalAccessTokenRequestPropPermissionsResultPropOrganization + ] = Field(default=UNSET) + repository: Missing[ + PersonalAccessTokenRequestPropPermissionsResultPropRepository + ] = Field(default=UNSET) + other: Missing[PersonalAccessTokenRequestPropPermissionsResultPropOther] = Field( + default=UNSET + ) + + +class PersonalAccessTokenRequestPropPermissionsResultPropOrganization(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropRepository(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropOther(ExtraGitHubModel): + """PersonalAccessTokenRequestPropPermissionsResultPropOther""" + + +model_rebuild(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__ = ( + "PersonalAccessTokenRequest", + "PersonalAccessTokenRequestPropRepositoriesItems", + "PersonalAccessTokenRequestPropPermissionsAdded", + "PersonalAccessTokenRequestPropPermissionsAddedPropOrganization", + "PersonalAccessTokenRequestPropPermissionsAddedPropRepository", + "PersonalAccessTokenRequestPropPermissionsAddedPropOther", + "PersonalAccessTokenRequestPropPermissionsUpgraded", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOther", + "PersonalAccessTokenRequestPropPermissionsResult", + "PersonalAccessTokenRequestPropPermissionsResultPropOrganization", + "PersonalAccessTokenRequestPropPermissionsResultPropRepository", + "PersonalAccessTokenRequestPropPermissionsResultPropOther", +) 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 cf59e18a4..bb54bf921 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0440.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0440.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -19,23 +19,54 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksProjectChanges(GitHubModel): - """WebhooksProjectChanges""" - - archived_at: Missing[WebhooksProjectChangesPropArchivedAt] = Field(default=UNSET) - - -class WebhooksProjectChangesPropArchivedAt(GitHubModel): - """WebhooksProjectChangesPropArchivedAt""" - - from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[datetime, None]] = Field(default=UNSET) - - -model_rebuild(WebhooksProjectChanges) -model_rebuild(WebhooksProjectChangesPropArchivedAt) +class WebhooksProjectCard(GitHubModel): + """Project Card""" + + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhooksProjectCardPropCreator, None] = Field(title="User") + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhooksProjectCardPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksProjectCard) +model_rebuild(WebhooksProjectCardPropCreator) __all__ = ( - "WebhooksProjectChanges", - "WebhooksProjectChangesPropArchivedAt", + "WebhooksProjectCard", + "WebhooksProjectCardPropCreator", ) 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 4f045f2bc..09fa0ec4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0441.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0441.py @@ -18,31 +18,57 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 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") + 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 ProjectsV2Item(GitHubModel): - """Projects v2 Item - An item belonging to a project - """ +class WebhooksProjectPropCreator(GitHubModel): + """User""" - id: float = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - project_node_id: Missing[str] = Field(default=UNSET) - content_node_id: str = Field() - content_type: Literal["Issue", "PullRequest", "DraftIssue"] = Field( - title="Projects v2 Item Content Type", - description="The type of content tracked in a project item", - ) - creator: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(ProjectsV2Item) +model_rebuild(WebhooksProject) +model_rebuild(WebhooksProjectPropCreator) -__all__ = ("ProjectsV2Item",) +__all__ = ( + "WebhooksProject", + "WebhooksProjectPropCreator", +) 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 964e8ac59..8b615adb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0442.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0442.py @@ -9,8 +9,8 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from pydantic import Field @@ -18,126 +18,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0061 import Milestone -from .group_0240 import AutoMerge -from .group_0001 import SimpleUser -from .group_0092 import TeamSimple -from .group_0321 import PullRequestPropBase -from .group_0323 import PullRequestPropLinks -from .group_0320 import PullRequestPropHead, PullRequestPropLabelsItems +class WebhooksProjectColumn(GitHubModel): + """Project Column""" -class PullRequestWebhook(GitHubModel): - """PullRequestWebhook""" - - url: str = Field() - id: int = Field() - node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: List[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + after_id: Missing[Union[int, None]] = Field(default=UNSET) + cards_url: str = Field() created_at: datetime = Field() + id: int = Field(description="The unique identifier of the project column") + name: str = Field(description="Name of the project column") + node_id: str = Field() + project_url: str = Field() updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", - ) + url: str = Field() -model_rebuild(PullRequestWebhook) +model_rebuild(WebhooksProjectColumn) -__all__ = ("PullRequestWebhook",) +__all__ = ("WebhooksProjectColumn",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0443.py b/githubkit/versions/ghec_v2022_11_28/models/group_0443.py index c72e6b1e8..3528848a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0443.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0443.py @@ -9,55 +9,38 @@ from __future__ import annotations -from typing import Literal +from typing import Union +from datetime import datetime from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 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).", - ) - ) - use_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 has been deprecated. Please use `squash_merge_commit_title` instead.**", - ) - - -model_rebuild(PullRequestWebhookAllof1) - -__all__ = ("PullRequestWebhookAllof1",) + +class ProjectsV2(GitHubModel): + """Projects v2 Project + + A projects v2 project + """ + + id: float = Field() + node_id: str = Field() + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") + title: str = Field() + description: Union[str, None] = Field() + public: bool = Field() + closed_at: Union[datetime, None] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + number: int = Field() + short_description: Union[str, None] = Field() + deleted_at: Union[datetime, None] = Field() + deleted_by: Union[None, SimpleUser] = Field() + + +model_rebuild(ProjectsV2) + +__all__ = ("ProjectsV2",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0444.py b/githubkit/versions/ghec_v2022_11_28/models/group_0444.py index 0b9614fd6..cf59e18a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0444.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0444.py @@ -9,8 +9,8 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from pydantic import Field @@ -19,1053 +19,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksPullRequest5(GitHubModel): - """Pull Request""" +class WebhooksProjectChanges(GitHubModel): + """WebhooksProjectChanges""" - links: WebhooksPullRequest5PropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhooksPullRequest5PropAssignee, None] = Field(title="User") - assignees: List[Union[WebhooksPullRequest5PropAssigneesItems, None]] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhooksPullRequest5PropAutoMerge, None] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhooksPullRequest5PropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhooksPullRequest5PropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhooksPullRequest5PropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[Union[WebhooksPullRequest5PropMergedBy, None]] = Field( - default=UNSET, title="User" - ) - milestone: Union[WebhooksPullRequest5PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhooksPullRequest5PropRequestedReviewersItemsOneof0, - None, - WebhooksPullRequest5PropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[WebhooksPullRequest5PropRequestedTeamsItems] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhooksPullRequest5PropUser, None] = Field(title="User") + archived_at: Missing[WebhooksProjectChangesPropArchivedAt] = Field(default=UNSET) -class WebhooksPullRequest5PropAssignee(GitHubModel): - """User""" +class WebhooksProjectChangesPropArchivedAt(GitHubModel): + """WebhooksProjectChangesPropArchivedAt""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) + from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[datetime, None]] = Field(default=UNSET) -class WebhooksPullRequest5PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledBy, None] = Field( - title="User" - ) - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhooksPullRequest5PropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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) - - -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) - - -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) - - -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) - - -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) - - -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) - - -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) - - -class WebhooksPullRequest5PropHeadPropRepoPropPermissions(GitHubModel): - """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent, None] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent(GitHubModel): - """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhooksPullRequest5PropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParent, None] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhooksPullRequest5PropRequestedTeamsItemsPropParent(GitHubModel): - """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhooksPullRequest5) -model_rebuild(WebhooksPullRequest5PropAssignee) -model_rebuild(WebhooksPullRequest5PropAssigneesItems) -model_rebuild(WebhooksPullRequest5PropAutoMerge) -model_rebuild(WebhooksPullRequest5PropAutoMergePropEnabledBy) -model_rebuild(WebhooksPullRequest5PropLabelsItems) -model_rebuild(WebhooksPullRequest5PropMergedBy) -model_rebuild(WebhooksPullRequest5PropMilestone) -model_rebuild(WebhooksPullRequest5PropMilestonePropCreator) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof0) -model_rebuild(WebhooksPullRequest5PropUser) -model_rebuild(WebhooksPullRequest5PropLinks) -model_rebuild(WebhooksPullRequest5PropLinksPropComments) -model_rebuild(WebhooksPullRequest5PropLinksPropCommits) -model_rebuild(WebhooksPullRequest5PropLinksPropHtml) -model_rebuild(WebhooksPullRequest5PropLinksPropIssue) -model_rebuild(WebhooksPullRequest5PropLinksPropReviewComment) -model_rebuild(WebhooksPullRequest5PropLinksPropReviewComments) -model_rebuild(WebhooksPullRequest5PropLinksPropSelf) -model_rebuild(WebhooksPullRequest5PropLinksPropStatuses) -model_rebuild(WebhooksPullRequest5PropBase) -model_rebuild(WebhooksPullRequest5PropBasePropUser) -model_rebuild(WebhooksPullRequest5PropBasePropRepo) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropLicense) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropOwner) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropPermissions) -model_rebuild(WebhooksPullRequest5PropHead) -model_rebuild(WebhooksPullRequest5PropHeadPropUser) -model_rebuild(WebhooksPullRequest5PropHeadPropRepo) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropLicense) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropOwner) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropPermissions) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent) -model_rebuild(WebhooksPullRequest5PropRequestedTeamsItems) -model_rebuild(WebhooksPullRequest5PropRequestedTeamsItemsPropParent) +model_rebuild(WebhooksProjectChanges) +model_rebuild(WebhooksProjectChangesPropArchivedAt) __all__ = ( - "WebhooksPullRequest5", - "WebhooksPullRequest5PropAssignee", - "WebhooksPullRequest5PropAssigneesItems", - "WebhooksPullRequest5PropAutoMerge", - "WebhooksPullRequest5PropAutoMergePropEnabledBy", - "WebhooksPullRequest5PropLabelsItems", - "WebhooksPullRequest5PropMergedBy", - "WebhooksPullRequest5PropMilestone", - "WebhooksPullRequest5PropMilestonePropCreator", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof0", - "WebhooksPullRequest5PropUser", - "WebhooksPullRequest5PropLinks", - "WebhooksPullRequest5PropLinksPropComments", - "WebhooksPullRequest5PropLinksPropCommits", - "WebhooksPullRequest5PropLinksPropHtml", - "WebhooksPullRequest5PropLinksPropIssue", - "WebhooksPullRequest5PropLinksPropReviewComment", - "WebhooksPullRequest5PropLinksPropReviewComments", - "WebhooksPullRequest5PropLinksPropSelf", - "WebhooksPullRequest5PropLinksPropStatuses", - "WebhooksPullRequest5PropBase", - "WebhooksPullRequest5PropBasePropUser", - "WebhooksPullRequest5PropBasePropRepo", - "WebhooksPullRequest5PropBasePropRepoPropLicense", - "WebhooksPullRequest5PropBasePropRepoPropOwner", - "WebhooksPullRequest5PropBasePropRepoPropPermissions", - "WebhooksPullRequest5PropHead", - "WebhooksPullRequest5PropHeadPropUser", - "WebhooksPullRequest5PropHeadPropRepo", - "WebhooksPullRequest5PropHeadPropRepoPropLicense", - "WebhooksPullRequest5PropHeadPropRepoPropOwner", - "WebhooksPullRequest5PropHeadPropRepoPropPermissions", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent", - "WebhooksPullRequest5PropRequestedTeamsItems", - "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", + "WebhooksProjectChanges", + "WebhooksProjectChangesPropArchivedAt", ) 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 6eef31b8e..4f045f2bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0445.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0445.py @@ -18,171 +18,31 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class WebhooksReviewComment(GitHubModel): - """Pull Request Review Comment - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. +class ProjectsV2Item(GitHubModel): + """Projects v2 Item + + An item belonging to a project """ - links: WebhooksReviewCommentPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + id: float = Field() + node_id: Missing[str] = Field(default=UNSET) + project_node_id: Missing[str] = Field(default=UNSET) + content_node_id: str = Field() + content_type: Literal["Issue", "PullRequest", "DraftIssue"] = Field( + title="Projects v2 Item Content Type", + description="The type of content tracked in a project item", ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." + creator: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: int = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhooksReviewCommentPropReactions = Field(title="Reactions") - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[WebhooksReviewCommentPropUser, None] = Field(title="User") - - -class WebhooksReviewCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksReviewCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksReviewCommentPropLinks(GitHubModel): - """WebhooksReviewCommentPropLinks""" - - html: WebhooksReviewCommentPropLinksPropHtml = Field(title="Link") - pull_request: WebhooksReviewCommentPropLinksPropPullRequest = Field(title="Link") - self_: WebhooksReviewCommentPropLinksPropSelf = Field(alias="self", title="Link") - - -class WebhooksReviewCommentPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksReviewCommentPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksReviewCommentPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() + archived_at: Union[datetime, None] = Field() -model_rebuild(WebhooksReviewComment) -model_rebuild(WebhooksReviewCommentPropReactions) -model_rebuild(WebhooksReviewCommentPropUser) -model_rebuild(WebhooksReviewCommentPropLinks) -model_rebuild(WebhooksReviewCommentPropLinksPropHtml) -model_rebuild(WebhooksReviewCommentPropLinksPropPullRequest) -model_rebuild(WebhooksReviewCommentPropLinksPropSelf) +model_rebuild(ProjectsV2Item) -__all__ = ( - "WebhooksReviewComment", - "WebhooksReviewCommentPropReactions", - "WebhooksReviewCommentPropUser", - "WebhooksReviewCommentPropLinks", - "WebhooksReviewCommentPropLinksPropHtml", - "WebhooksReviewCommentPropLinksPropPullRequest", - "WebhooksReviewCommentPropLinksPropSelf", -) +__all__ = ("ProjectsV2Item",) 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 672b54986..48026565a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0446.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0446.py @@ -9,8 +9,8 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal +from datetime import date, datetime from pydantic import Field @@ -18,93 +18,33 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class WebhooksReview(GitHubModel): - """WebhooksReview - The review that was affected. +class ProjectsV2StatusUpdate(GitHubModel): + """Projects v2 Status Update + + An status update belonging to a project """ - links: WebhooksReviewPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="The text of the review.") - commit_id: str = Field(description="A commit SHA for the review.") - html_url: str = Field() - id: int = Field(description="Unique identifier of the review") + id: float = Field() node_id: str = Field() - pull_request_url: str = Field() - state: str = Field() - submitted_at: Union[datetime, None] = Field() - user: Union[WebhooksReviewPropUser, None] = Field(title="User") - - -class WebhooksReviewPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksReviewPropLinks(GitHubModel): - """WebhooksReviewPropLinks""" - - html: WebhooksReviewPropLinksPropHtml = Field(title="Link") - pull_request: WebhooksReviewPropLinksPropPullRequest = Field(title="Link") - - -class WebhooksReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() + project_node_id: Missing[str] = Field(default=UNSET) + creator: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + created_at: datetime = Field() + updated_at: datetime = Field() + status: Missing[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] = Field(default=UNSET) + start_date: Missing[date] = Field(default=UNSET) + target_date: Missing[date] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the status update" + ) -model_rebuild(WebhooksReview) -model_rebuild(WebhooksReviewPropUser) -model_rebuild(WebhooksReviewPropLinks) -model_rebuild(WebhooksReviewPropLinksPropHtml) -model_rebuild(WebhooksReviewPropLinksPropPullRequest) +model_rebuild(ProjectsV2StatusUpdate) -__all__ = ( - "WebhooksReview", - "WebhooksReviewPropUser", - "WebhooksReviewPropLinks", - "WebhooksReviewPropLinksPropHtml", - "WebhooksReviewPropLinksPropPullRequest", -) +__all__ = ("ProjectsV2StatusUpdate",) 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 2ab5115bd..3e0017dbf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0447.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0447.py @@ -18,142 +18,126 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0064 import Milestone +from .group_0244 import AutoMerge +from .group_0001 import SimpleUser +from .group_0047 import TeamSimple +from .group_0325 import PullRequestPropBase +from .group_0327 import PullRequestPropLinks +from .group_0324 import PullRequestPropHead, PullRequestPropLabelsItems -class WebhooksRelease(GitHubModel): - """Release - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ +class PullRequestWebhook(GitHubModel): + """PullRequestWebhook""" - assets: List[WebhooksReleasePropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhooksReleasePropAuthor, None] = Field(title="User") - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() + url: str = Field() id: int = Field() - name: Union[str, None] = Field() node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhooksReleasePropReactions] = Field( - default=UNSET, title="Reactions" + html_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + issue_url: str = Field() + commits_url: str = Field() + review_comments_url: str = Field() + review_comment_url: str = Field() + comments_url: str = Field() + statuses_url: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhooksReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() + locked: bool = Field() + title: str = Field(description="The title of the pull request.") + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field() + labels: List[PullRequestPropLabelsItems] = Field() + milestone: Union[None, Milestone] = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") updated_at: datetime = Field() - uploader: Missing[Union[WebhooksReleasePropAssetsItemsPropUploader, None]] = Field( - default=UNSET, title="User" + closed_at: Union[datetime, None] = Field() + merged_at: Union[datetime, None] = Field() + merge_commit_sha: Union[str, None] = Field() + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) + requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) + requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) + head: PullRequestPropHead = Field() + base: PullRequestPropBase = Field() + links: PullRequestPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", description="The status of auto merging a pull request." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="Indicates whether or not the pull request is a draft.", + ) + merged: bool = Field() + mergeable: Union[bool, None] = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: str = Field() + merged_by: Union[None, SimpleUser] = Field() + comments: int = Field() + review_comments: int = Field() + maintainer_can_modify: bool = Field( + description="Indicates whether maintainers can modify the pull request." + ) + commits: int = Field() + additions: int = Field() + deletions: int = Field() + changed_files: int = Field() + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to allow updating the pull request's branch.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged.", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", ) - url: str = Field() - - -class WebhooksReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksRelease) -model_rebuild(WebhooksReleasePropAuthor) -model_rebuild(WebhooksReleasePropReactions) -model_rebuild(WebhooksReleasePropAssetsItems) -model_rebuild(WebhooksReleasePropAssetsItemsPropUploader) +model_rebuild(PullRequestWebhook) -__all__ = ( - "WebhooksRelease", - "WebhooksReleasePropAuthor", - "WebhooksReleasePropReactions", - "WebhooksReleasePropAssetsItems", - "WebhooksReleasePropAssetsItemsPropUploader", -) +__all__ = ("PullRequestWebhook",) 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 908a75094..c72e6b1e8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0448.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0448.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -19,141 +18,46 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksRelease1(GitHubModel): - """Release +class PullRequestWebhookAllof1(GitHubModel): + """PullRequestWebhookAllof1""" - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ - - assets: List[Union[WebhooksRelease1PropAssetsItems, None]] = Field() - assets_url: str = Field() - author: Union[WebhooksRelease1PropAuthor, None] = Field(title="User") - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhooksRelease1PropReactions] = Field( - default=UNSET, title="Reactions" + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to allow updating the pull request's branch.", ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged.", ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhooksRelease1PropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[Union[WebhooksRelease1PropAssetsItemsPropUploader, None]] = Field( - default=UNSET, title="User" + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", ) - url: str = Field() - - -class WebhooksRelease1PropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksRelease1PropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksRelease1PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() -model_rebuild(WebhooksRelease1) -model_rebuild(WebhooksRelease1PropAssetsItems) -model_rebuild(WebhooksRelease1PropAssetsItemsPropUploader) -model_rebuild(WebhooksRelease1PropAuthor) -model_rebuild(WebhooksRelease1PropReactions) +model_rebuild(PullRequestWebhookAllof1) -__all__ = ( - "WebhooksRelease1", - "WebhooksRelease1PropAssetsItems", - "WebhooksRelease1PropAssetsItemsPropUploader", - "WebhooksRelease1PropAuthor", - "WebhooksRelease1PropReactions", -) +__all__ = ("PullRequestWebhookAllof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0449.py b/githubkit/versions/ghec_v2022_11_28/models/group_0449.py index ad502fe9e..0b9614fd6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0449.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0449.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -19,34 +19,854 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksAlert(GitHubModel): - """Repository Vulnerability Alert Alert +class WebhooksPullRequest5(GitHubModel): + """Pull Request""" - The security alert of the vulnerable dependency. + links: WebhooksPullRequest5PropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhooksPullRequest5PropAssignee, None] = Field(title="User") + assignees: List[Union[WebhooksPullRequest5PropAssigneesItems, None]] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhooksPullRequest5PropAutoMerge, None] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhooksPullRequest5PropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhooksPullRequest5PropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhooksPullRequest5PropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[Union[WebhooksPullRequest5PropMergedBy, None]] = Field( + default=UNSET, title="User" + ) + milestone: Union[WebhooksPullRequest5PropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhooksPullRequest5PropRequestedReviewersItemsOneof0, + None, + WebhooksPullRequest5PropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[WebhooksPullRequest5PropRequestedTeamsItems] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhooksPullRequest5PropUser, None] = Field(title="User") + + +class WebhooksPullRequest5PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. """ - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[Union[WebhooksAlertPropDismisser, None]] = Field( - default=UNSET, title="User" + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledBy, None] = Field( + title="User" + ) + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhooksPullRequest5PropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +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) + + +class WebhooksPullRequest5PropRequestedReviewersItemsOneof0(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksPullRequest5PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() + url: Missing[str] = Field(default=UNSET) + + +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) + + +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) + + +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) + + +class WebhooksPullRequest5PropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhooksPullRequest5PropHeadPropRepoPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhooksPullRequest5PropHeadPropRepoPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhooksPullRequest5PropHeadPropRepoPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhooksPullRequest5PropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["open"] = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhooksAlertPropDismisser(GitHubModel): +class WebhooksPullRequest5PropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -72,10 +892,180 @@ class WebhooksAlertPropDismisser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksAlert) -model_rebuild(WebhooksAlertPropDismisser) +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__ = ( - "WebhooksAlert", - "WebhooksAlertPropDismisser", + "WebhooksPullRequest5", + "WebhooksPullRequest5PropAssignee", + "WebhooksPullRequest5PropAssigneesItems", + "WebhooksPullRequest5PropAutoMerge", + "WebhooksPullRequest5PropAutoMergePropEnabledBy", + "WebhooksPullRequest5PropLabelsItems", + "WebhooksPullRequest5PropMergedBy", + "WebhooksPullRequest5PropMilestone", + "WebhooksPullRequest5PropMilestonePropCreator", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof0", + "WebhooksPullRequest5PropUser", + "WebhooksPullRequest5PropLinks", + "WebhooksPullRequest5PropLinksPropComments", + "WebhooksPullRequest5PropLinksPropCommits", + "WebhooksPullRequest5PropLinksPropHtml", + "WebhooksPullRequest5PropLinksPropIssue", + "WebhooksPullRequest5PropLinksPropReviewComment", + "WebhooksPullRequest5PropLinksPropReviewComments", + "WebhooksPullRequest5PropLinksPropSelf", + "WebhooksPullRequest5PropLinksPropStatuses", + "WebhooksPullRequest5PropBase", + "WebhooksPullRequest5PropBasePropUser", + "WebhooksPullRequest5PropBasePropRepo", + "WebhooksPullRequest5PropBasePropRepoPropLicense", + "WebhooksPullRequest5PropBasePropRepoPropOwner", + "WebhooksPullRequest5PropBasePropRepoPropPermissions", + "WebhooksPullRequest5PropHead", + "WebhooksPullRequest5PropHeadPropUser", + "WebhooksPullRequest5PropHeadPropRepo", + "WebhooksPullRequest5PropHeadPropRepoPropLicense", + "WebhooksPullRequest5PropHeadPropRepoPropOwner", + "WebhooksPullRequest5PropHeadPropRepoPropPermissions", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent", + "WebhooksPullRequest5PropRequestedTeamsItems", + "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", ) 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 fcf080f13..6eef31b8e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0450.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0450.py @@ -18,68 +18,171 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class WebhooksReviewComment(GitHubModel): + """Pull Request Review Comment -class SecretScanningAlertWebhook(GitHubModel): - """SecretScanningAlertWebhook""" + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ - number: Missing[int] = Field( - default=UNSET, description="The security alert number." + links: WebhooksReviewCommentPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - created_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", - ) - resolution: Missing[ - Union[ - None, - Literal[ - "false_positive", - "wont_fix", - "revoked", - "used_in_tests", - "pattern_deleted", - "pattern_edited", - ], - ] - ] = Field(default=UNSET, description="The reason for resolving the alert.") - resolved_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, description="An optional comment to resolve an alert." + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." ) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." + original_line: int = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether push protection was bypassed for the detected secret.", + 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." ) - push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - push_protection_bypassed_at: Missing[Union[datetime, None]] = Field( + 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 time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The level at which the comment is targeted, can be a diff line or a file.", ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[WebhooksReviewCommentPropUser, None] = Field(title="User") + + +class WebhooksReviewCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksReviewCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksReviewCommentPropLinks(GitHubModel): + """WebhooksReviewCommentPropLinks""" + + html: WebhooksReviewCommentPropLinksPropHtml = Field(title="Link") + pull_request: WebhooksReviewCommentPropLinksPropPullRequest = Field(title="Link") + self_: WebhooksReviewCommentPropLinksPropSelf = Field(alias="self", title="Link") + + +class WebhooksReviewCommentPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksReviewCommentPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksReviewCommentPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() -model_rebuild(SecretScanningAlertWebhook) +model_rebuild(WebhooksReviewComment) +model_rebuild(WebhooksReviewCommentPropReactions) +model_rebuild(WebhooksReviewCommentPropUser) +model_rebuild(WebhooksReviewCommentPropLinks) +model_rebuild(WebhooksReviewCommentPropLinksPropHtml) +model_rebuild(WebhooksReviewCommentPropLinksPropPullRequest) +model_rebuild(WebhooksReviewCommentPropLinksPropSelf) -__all__ = ("SecretScanningAlertWebhook",) +__all__ = ( + "WebhooksReviewComment", + "WebhooksReviewCommentPropReactions", + "WebhooksReviewCommentPropUser", + "WebhooksReviewCommentPropLinks", + "WebhooksReviewCommentPropLinksPropHtml", + "WebhooksReviewCommentPropLinksPropPullRequest", + "WebhooksReviewCommentPropLinksPropSelf", +) 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 b8cdae3ae..672b54986 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0451.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0451.py @@ -9,103 +9,102 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksSecurityAdvisory(GitHubModel): - """WebhooksSecurityAdvisory +class WebhooksReview(GitHubModel): + """WebhooksReview - The details of the security advisory, including summary, description, and - severity. + The review that was affected. """ - cvss: WebhooksSecurityAdvisoryPropCvss = Field() - cwes: List[WebhooksSecurityAdvisoryPropCwesItems] = Field() - description: str = Field() - ghsa_id: str = Field() - identifiers: List[WebhooksSecurityAdvisoryPropIdentifiersItems] = Field() - published_at: str = Field() - references: List[WebhooksSecurityAdvisoryPropReferencesItems] = Field() - severity: str = Field() - summary: str = Field() - updated_at: str = Field() - vulnerabilities: List[WebhooksSecurityAdvisoryPropVulnerabilitiesItems] = Field() - withdrawn_at: Union[str, None] = Field() - - -class WebhooksSecurityAdvisoryPropCvss(GitHubModel): - """WebhooksSecurityAdvisoryPropCvss""" - - score: float = Field() - vector_string: Union[str, None] = Field() - - -class WebhooksSecurityAdvisoryPropCwesItems(GitHubModel): - """WebhooksSecurityAdvisoryPropCwesItems""" - - cwe_id: str = Field() - name: str = Field() - - -class WebhooksSecurityAdvisoryPropIdentifiersItems(GitHubModel): - """WebhooksSecurityAdvisoryPropIdentifiersItems""" - - type: str = Field() - value: str = Field() - - -class WebhooksSecurityAdvisoryPropReferencesItems(GitHubModel): - """WebhooksSecurityAdvisoryPropReferencesItems""" - - url: str = Field() - - -class WebhooksSecurityAdvisoryPropVulnerabilitiesItems(GitHubModel): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" - - first_patched_version: Union[ - WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, None - ] = Field() - package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() - severity: str = Field() - vulnerable_version_range: str = Field() - - -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( - GitHubModel -): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" - - identifier: str = Field() - - -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage(GitHubModel): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" - - ecosystem: str = Field() - name: str = Field() - - -model_rebuild(WebhooksSecurityAdvisory) -model_rebuild(WebhooksSecurityAdvisoryPropCvss) -model_rebuild(WebhooksSecurityAdvisoryPropCwesItems) -model_rebuild(WebhooksSecurityAdvisoryPropIdentifiersItems) -model_rebuild(WebhooksSecurityAdvisoryPropReferencesItems) -model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItems) -model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion) -model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage) + links: WebhooksReviewPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="The text of the review.") + commit_id: str = Field(description="A commit SHA for the review.") + html_url: str = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + pull_request_url: str = Field() + state: str = Field() + submitted_at: Union[datetime, None] = Field() + user: Union[WebhooksReviewPropUser, None] = Field(title="User") + + +class WebhooksReviewPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksReviewPropLinks(GitHubModel): + """WebhooksReviewPropLinks""" + + html: WebhooksReviewPropLinksPropHtml = Field(title="Link") + pull_request: WebhooksReviewPropLinksPropPullRequest = Field(title="Link") + + +class WebhooksReviewPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhooksReviewPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() + + +model_rebuild(WebhooksReview) +model_rebuild(WebhooksReviewPropUser) +model_rebuild(WebhooksReviewPropLinks) +model_rebuild(WebhooksReviewPropLinksPropHtml) +model_rebuild(WebhooksReviewPropLinksPropPullRequest) __all__ = ( - "WebhooksSecurityAdvisory", - "WebhooksSecurityAdvisoryPropCvss", - "WebhooksSecurityAdvisoryPropCwesItems", - "WebhooksSecurityAdvisoryPropIdentifiersItems", - "WebhooksSecurityAdvisoryPropReferencesItems", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItems", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", + "WebhooksReview", + "WebhooksReviewPropUser", + "WebhooksReviewPropLinks", + "WebhooksReviewPropLinksPropHtml", + "WebhooksReviewPropLinksPropPullRequest", ) 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 55fa41c47..2ab5115bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0452.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0452.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,45 +19,42 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksSponsorship(GitHubModel): - """WebhooksSponsorship""" +class WebhooksRelease(GitHubModel): + """Release - created_at: str = Field() - maintainer: Missing[WebhooksSponsorshipPropMaintainer] = Field(default=UNSET) + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ + + assets: List[WebhooksReleasePropAssetsItems] = Field() + assets_url: str = Field() + author: Union[WebhooksReleasePropAuthor, None] = Field(title="User") + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() node_id: str = Field() - privacy_level: str = Field() - sponsor: Union[WebhooksSponsorshipPropSponsor, None] = Field(title="User") - sponsorable: Union[WebhooksSponsorshipPropSponsorable, None] = Field(title="User") - tier: WebhooksSponsorshipPropTier = Field( - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhooksReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() -class WebhooksSponsorshipPropMaintainer(GitHubModel): - """WebhooksSponsorshipPropMaintainer""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksSponsorshipPropSponsor(GitHubModel): +class WebhooksReleasePropAuthor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -82,7 +80,45 @@ class WebhooksSponsorshipPropSponsor(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhooksSponsorshipPropSponsorable(GitHubModel): +class WebhooksReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[Union[WebhooksReleasePropAssetsItemsPropUploader, None]] = Field( + default=UNSET, title="User" + ) + url: str = Field() + + +class WebhooksReleasePropAssetsItemsPropUploader(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -108,35 +144,16 @@ class WebhooksSponsorshipPropSponsorable(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhooksSponsorshipPropTier(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ - - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() - - -model_rebuild(WebhooksSponsorship) -model_rebuild(WebhooksSponsorshipPropMaintainer) -model_rebuild(WebhooksSponsorshipPropSponsor) -model_rebuild(WebhooksSponsorshipPropSponsorable) -model_rebuild(WebhooksSponsorshipPropTier) +model_rebuild(WebhooksRelease) +model_rebuild(WebhooksReleasePropAuthor) +model_rebuild(WebhooksReleasePropReactions) +model_rebuild(WebhooksReleasePropAssetsItems) +model_rebuild(WebhooksReleasePropAssetsItemsPropUploader) __all__ = ( - "WebhooksSponsorship", - "WebhooksSponsorshipPropMaintainer", - "WebhooksSponsorshipPropSponsor", - "WebhooksSponsorshipPropSponsorable", - "WebhooksSponsorshipPropTier", + "WebhooksRelease", + "WebhooksReleasePropAuthor", + "WebhooksReleasePropReactions", + "WebhooksReleasePropAssetsItems", + "WebhooksReleasePropAssetsItemsPropUploader", ) 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 9ce36e738..908a75094 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0453.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0453.py @@ -9,6 +9,9 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,47 +19,141 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksChanges8(GitHubModel): - """WebhooksChanges8""" - - tier: WebhooksChanges8PropTier = Field() - +class WebhooksRelease1(GitHubModel): + """Release -class WebhooksChanges8PropTier(GitHubModel): - """WebhooksChanges8PropTier""" + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ - from_: WebhooksChanges8PropTierPropFrom = Field( - alias="from", - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", + assets: List[Union[WebhooksRelease1PropAssetsItems, None]] = Field() + assets_url: str = Field() + author: Union[WebhooksRelease1PropAuthor, None] = Field(title="User") + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhooksRelease1PropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() -class WebhooksChanges8PropTierPropFrom(GitHubModel): - """Sponsorship Tier +class WebhooksRelease1PropAssetsItems(GitHubModel): + """Release Asset - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. + Data related to a release. """ - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") node_id: str = Field() - - -model_rebuild(WebhooksChanges8) -model_rebuild(WebhooksChanges8PropTier) -model_rebuild(WebhooksChanges8PropTierPropFrom) + size: int = Field() + 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) + + +class WebhooksRelease1PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +model_rebuild(WebhooksRelease1) +model_rebuild(WebhooksRelease1PropAssetsItems) +model_rebuild(WebhooksRelease1PropAssetsItemsPropUploader) +model_rebuild(WebhooksRelease1PropAuthor) +model_rebuild(WebhooksRelease1PropReactions) __all__ = ( - "WebhooksChanges8", - "WebhooksChanges8PropTier", - "WebhooksChanges8PropTierPropFrom", + "WebhooksRelease1", + "WebhooksRelease1PropAssetsItems", + "WebhooksRelease1PropAssetsItemsPropUploader", + "WebhooksRelease1PropAuthor", + "WebhooksRelease1PropReactions", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0454.py b/githubkit/versions/ghec_v2022_11_28/models/group_0454.py index f54fe0e54..ad502fe9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0454.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0454.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -18,65 +19,63 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksTeam1(GitHubModel): - """Team +class WebhooksAlert(GitHubModel): + """Repository Vulnerability Alert Alert - Groups of organization members that gives permissions on specified repositories. + The security alert of the vulnerable dependency. """ - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhooksTeam1PropParent, None]] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_reason: Missing[str] = Field(default=UNSET) + dismissed_at: Missing[str] = Field(default=UNSET) + dismisser: Missing[Union[WebhooksAlertPropDismisser, None]] = Field( + default=UNSET, title="User" ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + severity: str = Field() + state: Literal["open"] = Field() -class WebhooksTeam1PropParent(GitHubModel): - """WebhooksTeam1PropParent""" +class WebhooksAlertPropDismisser(GitHubModel): + """User""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) - ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksTeam1) -model_rebuild(WebhooksTeam1PropParent) +model_rebuild(WebhooksAlert) +model_rebuild(WebhooksAlertPropDismisser) __all__ = ( - "WebhooksTeam1", - "WebhooksTeam1PropParent", + "WebhooksAlert", + "WebhooksAlertPropDismisser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0455.py b/githubkit/versions/ghec_v2022_11_28/models/group_0455.py index 760bd3bb0..7333c6266 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0455.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0455.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,42 +18,72 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0001 import SimpleUser -class WebhookBranchProtectionConfigurationDisabled(GitHubModel): - """branch protection configuration disabled event""" +class SecretScanningAlertWebhook(GitHubModel): + """SecretScanningAlertWebhook""" - action: Literal["disabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + number: Missing[int] = Field( + default=UNSET, description="The security alert number." + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." + ) + locations_url: Missing[str] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + description="The REST API URL of the code locations for this alert.", ) - installation: Missing[SimpleInstallation] = Field( + resolution: Missing[ + Union[ + None, + Literal[ + "false_positive", + "wont_fix", + "revoked", + "used_in_tests", + "pattern_deleted", + "pattern_edited", + ], + ] + ] = Field(default=UNSET, description="The reason for resolving the alert.") + resolved_at: Missing[Union[datetime, None]] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, description="An optional comment to resolve an alert." + ) + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + secret_type_display_name: Missing[str] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Secret scanning patterns](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)."', ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + 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`.", ) -model_rebuild(WebhookBranchProtectionConfigurationDisabled) +model_rebuild(SecretScanningAlertWebhook) -__all__ = ("WebhookBranchProtectionConfigurationDisabled",) +__all__ = ("SecretScanningAlertWebhook",) 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 a94b46ff1..b8cdae3ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0456.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0456.py @@ -9,50 +9,103 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks - - -class WebhookBranchProtectionConfigurationEnabled(GitHubModel): - """branch protection configuration enabled event""" - - action: Literal["enabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookBranchProtectionConfigurationEnabled) - -__all__ = ("WebhookBranchProtectionConfigurationEnabled",) + +class WebhooksSecurityAdvisory(GitHubModel): + """WebhooksSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhooksSecurityAdvisoryPropCvss = Field() + cwes: List[WebhooksSecurityAdvisoryPropCwesItems] = Field() + description: str = Field() + ghsa_id: str = Field() + identifiers: List[WebhooksSecurityAdvisoryPropIdentifiersItems] = Field() + published_at: str = Field() + references: List[WebhooksSecurityAdvisoryPropReferencesItems] = Field() + severity: str = Field() + summary: str = Field() + updated_at: str = Field() + vulnerabilities: List[WebhooksSecurityAdvisoryPropVulnerabilitiesItems] = Field() + withdrawn_at: Union[str, None] = Field() + + +class WebhooksSecurityAdvisoryPropCvss(GitHubModel): + """WebhooksSecurityAdvisoryPropCvss""" + + score: float = Field() + vector_string: Union[str, None] = Field() + + +class WebhooksSecurityAdvisoryPropCwesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropCwesItems""" + + cwe_id: str = Field() + name: str = Field() + + +class WebhooksSecurityAdvisoryPropIdentifiersItems(GitHubModel): + """WebhooksSecurityAdvisoryPropIdentifiersItems""" + + type: str = Field() + value: str = Field() + + +class WebhooksSecurityAdvisoryPropReferencesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropReferencesItems""" + + url: str = Field() + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, None + ] = Field() + package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() + severity: str = Field() + vulnerable_version_range: str = Field() + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( + GitHubModel +): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" + + identifier: str = Field() + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage(GitHubModel): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" + + ecosystem: str = Field() + name: str = Field() + + +model_rebuild(WebhooksSecurityAdvisory) +model_rebuild(WebhooksSecurityAdvisoryPropCvss) +model_rebuild(WebhooksSecurityAdvisoryPropCwesItems) +model_rebuild(WebhooksSecurityAdvisoryPropIdentifiersItems) +model_rebuild(WebhooksSecurityAdvisoryPropReferencesItems) +model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItems) +model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion) +model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage) + +__all__ = ( + "WebhooksSecurityAdvisory", + "WebhooksSecurityAdvisoryPropCvss", + "WebhooksSecurityAdvisoryPropCwesItems", + "WebhooksSecurityAdvisoryPropIdentifiersItems", + "WebhooksSecurityAdvisoryPropReferencesItems", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItems", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0457.py b/githubkit/versions/ghec_v2022_11_28/models/group_0457.py index aa06d010b..55fa41c47 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 +from typing import Union, Literal from pydantic import Field @@ -17,47 +17,126 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0407 import WebhooksRule -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +class WebhooksSponsorship(GitHubModel): + """WebhooksSponsorship""" -class WebhookBranchProtectionRuleCreated(GitHubModel): - """branch protection rule created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - rule: WebhooksRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + 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.", ) -model_rebuild(WebhookBranchProtectionRuleCreated) +class WebhooksSponsorshipPropMaintainer(GitHubModel): + """WebhooksSponsorshipPropMaintainer""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +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) + + +class WebhooksSponsorshipPropTier(GitHubModel): + """Sponsorship Tier + + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. + """ + + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() + name: str = Field() + node_id: str = Field() + + +model_rebuild(WebhooksSponsorship) +model_rebuild(WebhooksSponsorshipPropMaintainer) +model_rebuild(WebhooksSponsorshipPropSponsor) +model_rebuild(WebhooksSponsorshipPropSponsorable) +model_rebuild(WebhooksSponsorshipPropTier) -__all__ = ("WebhookBranchProtectionRuleCreated",) +__all__ = ( + "WebhooksSponsorship", + "WebhooksSponsorshipPropMaintainer", + "WebhooksSponsorshipPropSponsor", + "WebhooksSponsorshipPropSponsorable", + "WebhooksSponsorshipPropTier", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0458.py b/githubkit/versions/ghec_v2022_11_28/models/group_0458.py index 0bcb653d9..9ce36e738 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0458.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0458.py @@ -9,55 +9,54 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0407 import WebhooksRule -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +class WebhooksChanges8(GitHubModel): + """WebhooksChanges8""" -class WebhookBranchProtectionRuleDeleted(GitHubModel): - """branch protection rule deleted event""" + tier: WebhooksChanges8PropTier = Field() - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - rule: WebhooksRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + +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.", ) -model_rebuild(WebhookBranchProtectionRuleDeleted) +class WebhooksChanges8PropTierPropFrom(GitHubModel): + """Sponsorship Tier + + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. + """ + + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() + name: str = Field() + node_id: str = Field() + + +model_rebuild(WebhooksChanges8) +model_rebuild(WebhooksChanges8PropTier) +model_rebuild(WebhooksChanges8PropTierPropFrom) -__all__ = ("WebhookBranchProtectionRuleDeleted",) +__all__ = ( + "WebhooksChanges8", + "WebhooksChanges8PropTier", + "WebhooksChanges8PropTierPropFrom", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0459.py b/githubkit/versions/ghec_v2022_11_28/models/group_0459.py index 6b52b3702..f54fe0e54 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0459.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0459.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -17,156 +17,66 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0407 import WebhooksRule -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +class WebhooksTeam1(GitHubModel): + """Team -class WebhookBranchProtectionRuleEdited(GitHubModel): - """branch protection rule edited event""" + Groups of organization members that gives permissions on specified repositories. + """ - action: Literal["edited"] = Field() - changes: Missing[WebhookBranchProtectionRuleEditedPropChanges] = Field( - default=UNSET, - description="If the action was `edited`, the changes to the rule.", + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" ) - enterprise: Missing[EnterpriseWebhooks] = Field( + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhooksTeam1PropParent, None]] = Field(default=UNSET) + permission: Missing[str] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + description="Permission that the team will have for its repositories", ) - installation: Missing[SimpleInstallation] = Field( + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when 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.", + description="Whether team members will receive notifications when their team is @mentioned", ) - rule: WebhooksRule = Field( - title="branch protection rule", - description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", + 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" ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + 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") -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) - 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 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(WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel -) +model_rebuild(WebhooksTeam1) +model_rebuild(WebhooksTeam1PropParent) __all__ = ( - "WebhookBranchProtectionRuleEdited", - "WebhookBranchProtectionRuleEditedPropChanges", - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", + "WebhooksTeam1", + "WebhooksTeam1PropParent", ) 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 3a3a3c609..e127b1fcb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0460.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0460.py @@ -17,18 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0409 import ExemptionRequest -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookExemptionRequestCancelled(GitHubModel): - """Exemption request cancellation event""" +class WebhookBranchProtectionConfigurationDisabled(GitHubModel): + """branch protection configuration disabled event""" - action: Literal["cancelled"] = Field() + action: Literal["disabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,21 +43,16 @@ class WebhookExemptionRequestCancelled(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - exemption_request: ExemptionRequest = Field( - title="Exemption Request", - description="A request from a user to be exempted from a set of rules.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookExemptionRequestCancelled) +model_rebuild(WebhookBranchProtectionConfigurationDisabled) -__all__ = ("WebhookExemptionRequestCancelled",) +__all__ = ("WebhookBranchProtectionConfigurationDisabled",) 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 d56296f5a..9c003213d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0461.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0461.py @@ -17,18 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0409 import ExemptionRequest -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookExemptionRequestCompleted(GitHubModel): - """Exemption request completed event""" +class WebhookBranchProtectionConfigurationEnabled(GitHubModel): + """branch protection configuration enabled event""" - action: Literal["completed"] = Field() + action: Literal["enabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,21 +43,16 @@ class WebhookExemptionRequestCompleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - exemption_request: ExemptionRequest = Field( - title="Exemption Request", - description="A request from a user to be exempted from a set of rules.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookExemptionRequestCompleted) +model_rebuild(WebhookBranchProtectionConfigurationEnabled) -__all__ = ("WebhookExemptionRequestCompleted",) +__all__ = ("WebhookBranchProtectionConfigurationEnabled",) 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 4d03b98f6..fe48fcafb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0462.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0462.py @@ -17,16 +17,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0409 import ExemptionRequest -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0411 import WebhooksRule +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookExemptionRequestCreated(GitHubModel): - """Exemption request created event""" +class WebhookBranchProtectionRuleCreated(GitHubModel): + """branch protection rule created event""" action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( @@ -44,14 +44,13 @@ class WebhookExemptionRequestCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - exemption_request: ExemptionRequest = Field( - title="Exemption Request", - description="A request from a user to be exempted from a set of rules.", + 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: SimpleUserWebhooks = Field( title="Simple User", @@ -59,6 +58,6 @@ class WebhookExemptionRequestCreated(GitHubModel): ) -model_rebuild(WebhookExemptionRequestCreated) +model_rebuild(WebhookBranchProtectionRuleCreated) -__all__ = ("WebhookExemptionRequestCreated",) +__all__ = ("WebhookBranchProtectionRuleCreated",) 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 6f1d91f06..830297cbf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0463.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0463.py @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0409 import ExemptionRequest -from .group_0408 import ExemptionResponse -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0411 import WebhooksRule +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookExemptionRequestResponseDismissed(GitHubModel): - """Exemption response dismissed event""" +class WebhookBranchProtectionRuleDeleted(GitHubModel): + """branch protection rule deleted event""" - action: Literal["response_dismissed"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,18 +44,13 @@ class WebhookExemptionRequestResponseDismissed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - exemption_request: ExemptionRequest = Field( - title="Exemption Request", - description="A request from a user to be exempted from a set of rules.", - ) - exemption_response: ExemptionResponse = Field( - title="Exemption response", - description="A response to an exemption request by a delegated bypasser.", + 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: SimpleUserWebhooks = Field( title="Simple User", @@ -64,6 +58,6 @@ class WebhookExemptionRequestResponseDismissed(GitHubModel): ) -model_rebuild(WebhookExemptionRequestResponseDismissed) +model_rebuild(WebhookBranchProtectionRuleDeleted) -__all__ = ("WebhookExemptionRequestResponseDismissed",) +__all__ = ("WebhookBranchProtectionRuleDeleted",) 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 e98410ccf..f8fad358f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0464.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0464.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,19 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0409 import ExemptionRequest -from .group_0408 import ExemptionResponse -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0411 import WebhooksRule +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookExemptionRequestResponseSubmitted(GitHubModel): - """Exemption response submitted event""" +class WebhookBranchProtectionRuleEdited(GitHubModel): + """branch protection rule edited event""" - action: Literal["response_submitted"] = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookBranchProtectionRuleEditedPropChanges] = Field( + default=UNSET, + description="If the action was `edited`, the changes to the rule.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,18 +48,13 @@ class WebhookExemptionRequestResponseSubmitted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - exemption_request: ExemptionRequest = Field( - title="Exemption Request", - description="A request from a user to be exempted from a set of rules.", - ) - exemption_response: ExemptionResponse = Field( - title="Exemption response", - description="A response to an exemption request by a delegated bypasser.", + rule: WebhooksRule = Field( + title="branch protection rule", + description="The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings.", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -64,6 +62,167 @@ class WebhookExemptionRequestResponseSubmitted(GitHubModel): ) -model_rebuild(WebhookExemptionRequestResponseSubmitted) +class WebhookBranchProtectionRuleEditedPropChanges(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChanges + + If the action was `edited`, the changes to the rule. + """ + + admin_enforced: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced + ] = Field(default=UNSET) + authorized_actor_names: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames + ] = Field(default=UNSET) + authorized_actors_only: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly + ] = Field(default=UNSET) + authorized_dismissal_actors_only: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly + ] = Field(default=UNSET) + linear_history_requirement_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel + ] = Field(default=UNSET) + lock_branch_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel + ] = Field(default=UNSET) + lock_allows_fork_sync: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync + ] = Field(default=UNSET) + pull_request_reviews_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel + ] = Field(default=UNSET) + require_last_push_approval: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval + ] = Field(default=UNSET) + required_status_checks: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks + ] = Field(default=UNSET) + required_status_checks_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel + ] = Field(default=UNSET) + + +class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" + + from_: List[str] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem + entLevel + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev + el + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + + from_: List[str] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL + evel + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +model_rebuild(WebhookBranchProtectionRuleEdited) +model_rebuild(WebhookBranchProtectionRuleEditedPropChanges) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly +) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel +) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel +) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel +) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel +) -__all__ = ("WebhookExemptionRequestResponseSubmitted",) +__all__ = ( + "WebhookBranchProtectionRuleEdited", + "WebhookBranchProtectionRuleEditedPropChanges", + "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", + "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", +) 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 30363624e..2cc25226e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0465.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0465.py @@ -17,20 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0411 import CheckRunWithSimpleCheckSuite +from .group_0413 import ExemptionRequest +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookCheckRunCompleted(GitHubModel): - """Check Run Completed Event""" +class WebhookExemptionRequestCancelled(GitHubModel): + """Exemption request cancellation event""" - action: Literal["completed"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + action: Literal["cancelled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -42,16 +44,21 @@ class WebhookCheckRunCompleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + exemption_request: ExemptionRequest = Field( + title="Exemption Request", + description="A request from a user to be exempted from a set of rules.", + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCheckRunCompleted) +model_rebuild(WebhookExemptionRequestCancelled) -__all__ = ("WebhookCheckRunCompleted",) +__all__ = ("WebhookExemptionRequestCancelled",) 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 15f0118a0..9ec44e518 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0466.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0466.py @@ -9,22 +9,56 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0413 import ExemptionRequest +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookCheckRunCompletedFormEncoded(GitHubModel): - """Check Run Completed Event - The check_run.completed webhook encoded with URL encoding - """ +class WebhookExemptionRequestCompleted(GitHubModel): + """Exemption request completed event""" - payload: str = Field( - description="A URL-encoded string of the check_run.completed JSON payload. The decoded payload is a JSON object." + action: Literal["completed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + exemption_request: ExemptionRequest = Field( + title="Exemption Request", + description="A request from a user to be exempted from a set of rules.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCheckRunCompletedFormEncoded) +model_rebuild(WebhookExemptionRequestCompleted) -__all__ = ("WebhookCheckRunCompletedFormEncoded",) +__all__ = ("WebhookExemptionRequestCompleted",) 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 3f1afd941..0a75a540a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0467.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0467.py @@ -17,20 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0411 import CheckRunWithSimpleCheckSuite +from .group_0413 import ExemptionRequest +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookCheckRunCreated(GitHubModel): - """Check Run Created Event""" +class WebhookExemptionRequestCreated(GitHubModel): + """Exemption request created event""" action: Literal["created"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -42,16 +44,21 @@ class WebhookCheckRunCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + exemption_request: ExemptionRequest = Field( + title="Exemption Request", + description="A request from a user to be exempted from a set of rules.", + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCheckRunCreated) +model_rebuild(WebhookExemptionRequestCreated) -__all__ = ("WebhookCheckRunCreated",) +__all__ = ("WebhookExemptionRequestCreated",) 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 2a3f094c3..527e80073 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0468.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0468.py @@ -9,22 +9,61 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0413 import ExemptionRequest +from .group_0412 import ExemptionResponse +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookCheckRunCreatedFormEncoded(GitHubModel): - """Check Run Created Event - The check_run.created webhook encoded with URL encoding - """ +class WebhookExemptionRequestResponseDismissed(GitHubModel): + """Exemption response dismissed event""" - payload: str = Field( - description="A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object." + action: Literal["response_dismissed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCheckRunCreatedFormEncoded) +model_rebuild(WebhookExemptionRequestResponseDismissed) -__all__ = ("WebhookCheckRunCreatedFormEncoded",) +__all__ = ("WebhookExemptionRequestResponseDismissed",) 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 497e1eaca..7d364b954 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0469.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0469.py @@ -17,20 +17,23 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0411 import CheckRunWithSimpleCheckSuite +from .group_0413 import ExemptionRequest +from .group_0412 import ExemptionResponse +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookCheckRunRequestedAction(GitHubModel): - """Check Run Requested Action Event""" +class WebhookExemptionRequestResponseSubmitted(GitHubModel): + """Exemption response submitted event""" - action: Literal["requested_action"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + action: Literal["response_submitted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -42,12 +45,18 @@ class WebhookCheckRunRequestedAction(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_action: Missing[WebhookCheckRunRequestedActionPropRequestedAction] = ( - Field(default=UNSET, description="The action requested by the user.") + exemption_request: ExemptionRequest = Field( + title="Exemption Request", + description="A request from a user to be exempted from a set of rules.", + ) + exemption_response: ExemptionResponse = Field( + title="Exemption response", + description="A response to an exemption request by a delegated bypasser.", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -55,22 +64,6 @@ class WebhookCheckRunRequestedAction(GitHubModel): ) -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(WebhookExemptionRequestResponseSubmitted) -__all__ = ( - "WebhookCheckRunRequestedAction", - "WebhookCheckRunRequestedActionPropRequestedAction", -) +__all__ = ("WebhookExemptionRequestResponseSubmitted",) 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 ccf1a4c5f..25c392ba1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0470.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0470.py @@ -9,22 +9,49 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0415 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): - """Check Run Requested Action Event - The check_run.requested_action webhook encoded with URL encoding - """ +class WebhookCheckRunCompleted(GitHubModel): + """Check Run Completed Event""" - payload: str = Field( - description="A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object." + action: Literal["completed"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCheckRunRequestedActionFormEncoded) +model_rebuild(WebhookCheckRunCompleted) -__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) +__all__ = ("WebhookCheckRunCompleted",) 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 16ff175ef..15f0118a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0471.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0471.py @@ -9,49 +9,22 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0411 import CheckRunWithSimpleCheckSuite +class WebhookCheckRunCompletedFormEncoded(GitHubModel): + """Check Run Completed Event -class WebhookCheckRunRerequested(GitHubModel): - """Check Run Re-Requested Event""" + The check_run.completed webhook encoded with URL encoding + """ - action: Literal["rerequested"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + payload: str = Field( + description="A URL-encoded string of the check_run.completed JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookCheckRunRerequested) +model_rebuild(WebhookCheckRunCompletedFormEncoded) -__all__ = ("WebhookCheckRunRerequested",) +__all__ = ("WebhookCheckRunCompletedFormEncoded",) 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 a44f5cc13..973b4cfc5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0472.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0472.py @@ -9,22 +9,49 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0415 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunRerequestedFormEncoded(GitHubModel): - """Check Run Re-Requested Event - The check_run.rerequested webhook encoded with URL encoding - """ +class WebhookCheckRunCreated(GitHubModel): + """Check Run Created Event""" - payload: str = Field( - description="A URL-encoded string of the check_run.rerequested JSON payload. The decoded payload is a JSON object." + action: Literal["created"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCheckRunRerequestedFormEncoded) +model_rebuild(WebhookCheckRunCreated) -__all__ = ("WebhookCheckRunRerequestedFormEncoded",) +__all__ = ("WebhookCheckRunCreated",) 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 ba05e95e1..2a3f094c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0473.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0473.py @@ -9,407 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks - - -class WebhookCheckSuiteCompleted(GitHubModel): - """check_suite completed event""" - - action: Literal["completed"] = Field() - check_suite: WebhookCheckSuiteCompletedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "merge_group", - "pull_request_review_thread", - "workflow_job", - "merge_queue_entry", - "security_and_analysis", - "projects_v2_item", - "secret_scanning_alert_location", - ] - ] - ] = 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[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) - - -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 +class WebhookCheckRunCreatedFormEncoded(GitHubModel): + """Check Run Created Event - Metaproperties for Git author/committer information. + The check_run.created webhook encoded with URL encoding """ - 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() + payload: str = Field( + description="A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object." ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookCheckSuiteCompleted) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuite) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunCreatedFormEncoded) -__all__ = ( - "WebhookCheckSuiteCompleted", - "WebhookCheckSuiteCompletedPropCheckSuite", - "WebhookCheckSuiteCompletedPropCheckSuitePropApp", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunCreatedFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0474.py b/githubkit/versions/ghec_v2022_11_28/models/group_0474.py index 1749e28de..ec30ef7d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0474.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0474.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,24 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0415 import CheckRunWithSimpleCheckSuite -class WebhookCheckSuiteRequested(GitHubModel): - """check_suite requested event""" +class WebhookCheckRunRequestedAction(GitHubModel): + """Check Run Requested Action Event""" - action: Literal["requested"] = Field() - check_suite: WebhookCheckSuiteRequestedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + action: Literal["requested_action"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -51,365 +46,31 @@ class WebhookCheckSuiteRequested(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requested_action: Missing[WebhookCheckRunRequestedActionPropRequestedAction] = ( + Field(default=UNSET, description="The action requested by the user.") + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookCheckSuiteRequestedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteRequestedPropCheckSuite +class WebhookCheckRunRequestedActionPropRequestedAction(GitHubModel): + """WebhookCheckRunRequestedActionPropRequestedAction - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). + The action requested by the user. """ - after: Union[str, None] = 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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "workflow_job", - "merge_queue_entry", - "security_and_analysis", - "secret_scanning_alert_location", - "projects_v2_item", - "merge_group", - "repository_import", - ] - ] - ] = 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[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) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + identifier: Missing[str] = Field( + default=UNSET, + description="The integrator reference of the action requested by the user.", ) - sha: str = Field() - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - id: int = Field() - name: str = Field() - url: str = Field() - - -model_rebuild(WebhookCheckSuiteRequested) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuite) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunRequestedAction) +model_rebuild(WebhookCheckRunRequestedActionPropRequestedAction) __all__ = ( - "WebhookCheckSuiteRequested", - "WebhookCheckSuiteRequestedPropCheckSuite", - "WebhookCheckSuiteRequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", + "WebhookCheckRunRequestedAction", + "WebhookCheckRunRequestedActionPropRequestedAction", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0475.py b/githubkit/versions/ghec_v2022_11_28/models/group_0475.py index d367e66d7..ccf1a4c5f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0475.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0475.py @@ -9,403 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks - - -class WebhookCheckSuiteRerequested(GitHubModel): - """check_suite rerequested event""" - - action: Literal["rerequested"] = Field() - check_suite: WebhookCheckSuiteRerequestedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] = Field() - app: WebhookCheckSuiteRerequestedPropCheckSuitePropApp = Field( - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: List[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( - Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "merge_queue_entry", - "workflow_job", - ] - ] - ] = 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[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer +class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): + """Check Run Requested Action Event - Metaproperties for Git author/committer information. + The check_run.requested_action webhook encoded with URL encoding """ - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() + payload: str = Field( + description="A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object." ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookCheckSuiteRerequested) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuite) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunRequestedActionFormEncoded) -__all__ = ( - "WebhookCheckSuiteRerequested", - "WebhookCheckSuiteRerequestedPropCheckSuite", - "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0476.py b/githubkit/versions/ghec_v2022_11_28/models/group_0476.py index 0da8f5e4b..005c55307 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0476.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0476.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,27 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0415 import CheckRunWithSimpleCheckSuite -class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): - """code_scanning_alert appeared_in_branch event""" +class WebhookCheckRunRerequested(GitHubModel): + """Check Run Re-Requested Event""" - action: Literal["appeared_in_branch"] = Field() - alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + action: Literal["rerequested"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -50,9 +42,6 @@ class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -63,166 +52,6 @@ class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): ) -class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlert - - The code scanning alert involved in the event. - """ - - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - 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: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool = Field() - url: str = Field() - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance( - GitHubModel -): - """Alert Instance""" - - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", - ) - classifications: Missing[List[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." - ) - location: Missing[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." - ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion - """ - - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge - """ - - text: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" - - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) - - -model_rebuild(WebhookCodeScanningAlertAppearedInBranch) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation -) -model_rebuild( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage -) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) +model_rebuild(WebhookCheckRunRerequested) -__all__ = ( - "WebhookCodeScanningAlertAppearedInBranch", - "WebhookCodeScanningAlertAppearedInBranchPropAlert", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", -) +__all__ = ("WebhookCheckRunRerequested",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0477.py b/githubkit/versions/ghec_v2022_11_28/models/group_0477.py index fa797847c..a44f5cc13 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0477.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0477.py @@ -9,220 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks - - -class WebhookCodeScanningAlertClosedByUser(GitHubModel): - """code_scanning_alert closed_by_user event""" - - action: Literal["closed_by_user"] = Field() - alert: WebhookCodeScanningAlertClosedByUserPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - -class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlert +class WebhookCheckRunRerequestedFormEncoded(GitHubModel): + """Check Run Re-Requested Event - The code scanning alert involved in the event. + The check_run.rerequested webhook encoded with URL encoding """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: datetime = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRule = Field() - state: Literal["dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() - url: str = Field() - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" - - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", - ) - classifications: Missing[List[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." - ) - location: Missing[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." - ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" - - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" - - text: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" - - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[List[str], None]] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" - - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + payload: str = Field( + description="A URL-encoded string of the check_run.rerequested JSON payload. The decoded payload is a JSON object." ) -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(WebhookCheckRunRerequestedFormEncoded) -__all__ = ( - "WebhookCodeScanningAlertClosedByUser", - "WebhookCodeScanningAlertClosedByUserPropAlert", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", - "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", -) +__all__ = ("WebhookCheckRunRerequestedFormEncoded",) 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 769976497..93db7373e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0478.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0478.py @@ -11,7 +11,6 @@ from datetime import datetime from typing import List, Union, Literal -from typing_extensions import Annotated from pydantic import Field @@ -19,22 +18,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookCodeScanningAlertCreated(GitHubModel): - """code_scanning_alert created event""" +class WebhookCheckSuiteCompleted(GitHubModel): + """check_suite completed event""" - action: Literal["created"] = Field() - alert: WebhookCodeScanningAlertCreatedPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["completed"] = Field() + check_suite: WebhookCheckSuiteCompletedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -51,9 +47,6 @@ class WebhookCodeScanningAlertCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -64,143 +57,359 @@ class WebhookCodeScanningAlertCreated(GitHubModel): ) -class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlert +class WebhookCheckSuiteCompletedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteCompletedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ - created_at: Union[datetime, None] = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + after: Union[str, None] = Field() + app: WebhookCheckSuiteCompletedPropCheckSuitePropApp = Field( + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - dismissed_at: None = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has `completed`." ) - dismissed_by: None = Field() - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." ) - dismissed_reason: None = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." - ) - fixed_at: Missing[None] = Field(default=UNSET) - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: Missing[str] = Field(default=UNSET) - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertCreatedPropAlertPropRule = Field() - state: Literal["open", "dismissed"] = Field( - description="State of a code scanning alert." - ) - tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() - updated_at: Missing[Union[str, None]] = Field(default=UNSET) - url: str = Field() + 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 WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" +class WebhookCheckSuiteCompletedPropCheckSuitePropApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "merge_group", + "pull_request_review_thread", + "workflow_job", + "merge_queue_entry", + "security_and_analysis", + "projects_v2_item", + "secret_scanning_alert_location", + ] + ] + ] = 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[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + 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) + + +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 ) - classifications: Missing[List[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - location: Missing[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + 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 WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( +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 ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + ref: str = Field() + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( GitHubModel ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: Missing[str] = Field(default=UNSET) + id: int = Field() + name: str = Field() + url: str = Field() -class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." + ref: str = Field() + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[List[str], None]] = Field(default=UNSET) + sha: str = Field() -class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlertPropTool""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertCreated) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCheckSuiteCompleted) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuite) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase) +model_rebuild( + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertCreated", - "WebhookCodeScanningAlertCreatedPropAlert", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertCreatedPropAlertPropRule", - "WebhookCodeScanningAlertCreatedPropAlertPropTool", + "WebhookCheckSuiteCompleted", + "WebhookCheckSuiteCompletedPropCheckSuite", + "WebhookCheckSuiteCompletedPropCheckSuitePropApp", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0479.py b/githubkit/versions/ghec_v2022_11_28/models/group_0479.py index 2598a2f56..bd39441ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0479.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0479.py @@ -18,22 +18,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookCodeScanningAlertFixed(GitHubModel): - """code_scanning_alert fixed event""" +class WebhookCheckSuiteRequested(GitHubModel): + """check_suite requested event""" - action: Literal["fixed"] = Field() - alert: WebhookCodeScanningAlertFixedPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["requested"] = Field() + check_suite: WebhookCheckSuiteRequestedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertFixed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -63,37 +57,152 @@ class WebhookCodeScanningAlertFixed(GitHubModel): ) -class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlert +class WebhookCheckSuiteRequestedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteRequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + after: Union[str, None] = Field() + app: WebhookCheckSuiteRequestedPropCheckSuitePropApp = Field( + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + 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." ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + 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`." + ) ) - dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, None] = ( + 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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "workflow_job", + "merge_queue_entry", + "security_and_analysis", + "secret_scanning_alert_location", + "projects_v2_item", + "merge_group", + "repository_import", + ] + ] + ] = 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[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, None] = ( Field(title="User") ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: Missing[str] = Field(default=UNSET) - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertFixedPropAlertPropRule = Field() - state: Literal["fixed"] = Field(description="State of a code scanning alert.") - tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() - url: str = Field() + permissions: Missing[ + WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -119,105 +228,188 @@ class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(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 + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) - 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." + committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) ) - location: Missing[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase( GitHubModel ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + ref: str = Field() + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( GitHubModel ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: Missing[str] = Field(default=UNSET) + id: int = Field() + name: str = Field() + url: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str = Field( - description="A short description of the rule used to detect the alert." + ref: str = Field() + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) - 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) + sha: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertFixed) -model_rebuild(WebhookCodeScanningAlertFixedPropAlert) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropTool) +model_rebuild(WebhookCheckSuiteRequested) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuite) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase) +model_rebuild( + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead) +model_rebuild( + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo +) __all__ = ( - "WebhookCodeScanningAlertFixed", - "WebhookCodeScanningAlertFixedPropAlert", - "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertFixedPropAlertPropRule", - "WebhookCodeScanningAlertFixedPropAlertPropTool", + "WebhookCheckSuiteRequested", + "WebhookCheckSuiteRequestedPropCheckSuite", + "WebhookCheckSuiteRequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0480.py b/githubkit/versions/ghec_v2022_11_28/models/group_0480.py index 111dc894f..6d4914f6d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0480.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0480.py @@ -18,22 +18,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookCodeScanningAlertReopened(GitHubModel): - """code_scanning_alert reopened event""" +class WebhookCheckSuiteRerequested(GitHubModel): + """check_suite rerequested event""" - action: Literal["reopened"] = Field() - alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: Union[str, None] = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["rerequested"] = Field() + check_suite: WebhookCheckSuiteRerequestedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: Union[str, None] = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -63,144 +57,355 @@ class WebhookCodeScanningAlertReopened(GitHubModel): ) -class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteRerequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + after: Union[str, None] = Field() + app: WebhookCheckSuiteRerequestedPropCheckSuitePropApp = Field( + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - dismissed_at: Union[str, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." ) - dismissed_by: Union[ - WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, None - ] = Field() - dismissed_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`." + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." ) - 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: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" ) - tool: WebhookCodeScanningAlertReopenedPropAlertPropTool = Field() - url: str = Field() + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: List[ + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( + Field( + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." + ) + ) + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") -class WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "merge_queue_entry", + "workflow_job", + ] + ] + ] = 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[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - 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[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage - ] = 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 WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( GitHubModel ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """Committer - 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 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." +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) - tags: Missing[Union[List[str], None]] = Field(default=UNSET) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + sha: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) + sha: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertReopened) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCheckSuiteRerequested) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuite) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase) model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertReopened", - "WebhookCodeScanningAlertReopenedPropAlert", - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedPropAlertPropRule", - "WebhookCodeScanningAlertReopenedPropAlertPropTool", + "WebhookCheckSuiteRerequested", + "WebhookCheckSuiteRerequestedPropCheckSuite", + "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0481.py b/githubkit/versions/ghec_v2022_11_28/models/group_0481.py index c3265d33c..210aa2b83 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0481.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0481.py @@ -18,18 +18,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookCodeScanningAlertReopenedByUser(GitHubModel): - """code_scanning_alert reopened_by_user event""" +class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): + """code_scanning_alert appeared_in_branch event""" - action: Literal["reopened_by_user"] = Field() - alert: WebhookCodeScanningAlertReopenedByUserPropAlert = Field( + action: Literal["appeared_in_branch"] = Field() + alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( description="The code scanning alert involved in the event." ) commit_oid: str = Field( @@ -63,8 +63,8 @@ class WebhookCodeScanningAlertReopenedByUser(GitHubModel): ) -class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlert The code scanning alert involved in the event. """ @@ -72,29 +72,58 @@ 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_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_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None + ] = Field(title="User") + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") html_url: str = Field(description="The GitHub URL of the alert resource.") most_recent_instance: Missing[ Union[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, None + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, + None, ] ] = Field(default=UNSET, title="Alert Instance") number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRule = Field() - state: Literal["open", "fixed"] = Field( + rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule = Field() + state: Literal["open", "dismissed", "fixed"] = Field( description="State of a code scanning alert." ) - tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropTool = Field() + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool = Field() url: str = Field() -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance( GitHubModel ): """Alert Instance""" @@ -112,10 +141,10 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." ) location: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation ] = Field(default=UNSET) message: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage ] = Field(default=UNSET) ref: str = Field( description="The full Git reference, formatted as `refs/heads/`." @@ -125,11 +154,11 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( ) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( GitHubModel ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion """ end_column: Missing[int] = Field(default=UNSET) @@ -139,16 +168,18 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropL start_line: Missing[int] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( GitHubModel ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ text: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" description: str = Field( description="A short description of the rule used to detect the alert." @@ -161,8 +192,8 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropRule(GitHubModel): ) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" name: str = Field( description="The name of the tool used to generate the code scanning analysis alert." @@ -172,24 +203,26 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): ) -model_rebuild(WebhookCodeScanningAlertReopenedByUser) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance) +model_rebuild(WebhookCodeScanningAlertAppearedInBranch) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation ) model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage ) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropTool) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertReopenedByUser", - "WebhookCodeScanningAlertReopenedByUserPropAlert", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", + "WebhookCodeScanningAlertAppearedInBranch", + "WebhookCodeScanningAlertAppearedInBranchPropAlert", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0482.py b/githubkit/versions/ghec_v2022_11_28/models/group_0482.py index 43ec5461f..772bdeffb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0482.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0482.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,21 +18,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookCommitCommentCreated(GitHubModel): - """commit_comment created event""" +class WebhookCodeScanningAlertClosedByUser(GitHubModel): + """code_scanning_alert closed_by_user event""" - action: Literal["created"] = Field( - description="The action performed. Can be `created`." + action: Literal["closed_by_user"] = Field() + alert: WebhookCodeScanningAlertClosedByUserPropAlert = Field( + description="The code scanning alert involved in the event." ) - comment: WebhookCommitCommentCreatedPropComment = Field( - description="The [commit comment](https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#get-a-commit-comment) resource." + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -48,6 +50,9 @@ class WebhookCommitCommentCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -58,69 +63,38 @@ class WebhookCommitCommentCreated(GitHubModel): ) -class WebhookCommitCommentCreatedPropComment(GitHubModel): - """WebhookCommitCommentCreatedPropComment +class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlert - The [commit comment](https://docs.github.com/enterprise- - cloud@latest//rest/commits/comments#get-a-commit-comment) resource. + The code scanning alert involved in the event. """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: str = Field() - html_url: str = Field() - id: int = Field(description="The ID of the commit comment.") - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the commit comment.") - path: Union[str, None] = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - reactions: Missing[WebhookCommitCommentCreatedPropCommentPropReactions] = Field( - default=UNSET, title="Reactions" - ) - updated_at: str = Field() - url: str = Field() - user: Union[WebhookCommitCommentCreatedPropCommentPropUser, None] = Field( - title="User" + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" ) - - -class WebhookCommitCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() + dismissed_at: datetime = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None + ] = Field(title="User") + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRule = Field() + state: Literal["dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() url: str = Field() -class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -146,14 +120,109 @@ class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookCommitCommentCreated) -model_rebuild(WebhookCommitCommentCreatedPropComment) -model_rebuild(WebhookCommitCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookCommitCommentCreatedPropCommentPropUser) +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[List[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[List[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertClosedByUser) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlert) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropTool) __all__ = ( - "WebhookCommitCommentCreated", - "WebhookCommitCommentCreatedPropComment", - "WebhookCommitCommentCreatedPropCommentPropReactions", - "WebhookCommitCommentCreatedPropCommentPropUser", + "WebhookCodeScanningAlertClosedByUser", + "WebhookCodeScanningAlertClosedByUserPropAlert", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", + "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", ) 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 dfa3a1530..de0567e20 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0483.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0483.py @@ -9,7 +9,9 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import Annotated from pydantic import Field @@ -17,18 +19,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookCreate(GitHubModel): - """create event""" +class WebhookCodeScanningAlertCreated(GitHubModel): + """code_scanning_alert created event""" - description: Union[str, None] = Field( - description="The repository's current description." + action: Literal["created"] = Field() + alert: WebhookCodeScanningAlertCreatedPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -40,22 +46,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", @@ -67,6 +64,143 @@ class WebhookCreate(GitHubModel): ) -model_rebuild(WebhookCreate) +class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: Union[datetime, None] = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: None = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: None = Field() + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: None = Field( + description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." + ) + fixed_at: Missing[None] = Field(default=UNSET) + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: Missing[str] = Field(default=UNSET) + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertCreatedPropAlertPropRule = Field() + state: Literal["open", "dismissed"] = Field( + description="State of a code scanning alert." + ) + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() + updated_at: Missing[Union[str, None]] = Field(default=UNSET) + url: str = Field() + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[List[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[List[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertCreated) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation +) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) -__all__ = ("WebhookCreate",) +__all__ = ( + "WebhookCodeScanningAlertCreated", + "WebhookCodeScanningAlertCreatedPropAlert", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertCreatedPropAlertPropRule", + "WebhookCodeScanningAlertCreatedPropAlertPropTool", +) 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 db9e6db9c..a139374c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0484.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0484.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,20 +18,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0115 import OrgCustomProperty -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookCustomPropertyCreated(GitHubModel): - """custom property created event""" +class WebhookCodeScanningAlertFixed(GitHubModel): + """code_scanning_alert fixed event""" - action: Literal["created"] = Field() - definition: OrgCustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + action: Literal["fixed"] = Field() + alert: WebhookCodeScanningAlertFixedPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -42,17 +45,179 @@ class WebhookCustomPropertyCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCustomPropertyCreated) +class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, None] = ( + Field(title="User") + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: Missing[str] = Field(default=UNSET) + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertFixedPropAlertPropRule = Field() + state: Literal["fixed"] = Field(description="State of a code scanning alert.") + tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[List[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[List[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertFixed) +model_rebuild(WebhookCodeScanningAlertFixedPropAlert) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropTool) -__all__ = ("WebhookCustomPropertyCreated",) +__all__ = ( + "WebhookCodeScanningAlertFixed", + "WebhookCodeScanningAlertFixedPropAlert", + "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertFixedPropAlertPropRule", + "WebhookCodeScanningAlertFixedPropAlertPropTool", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0485.py b/githubkit/versions/ghec_v2022_11_28/models/group_0485.py index 426d7b1ca..23fd56582 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0485.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0485.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,17 +18,23 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookCustomPropertyDeleted(GitHubModel): - """custom property deleted event""" +class WebhookCodeScanningAlertReopened(GitHubModel): + """code_scanning_alert reopened event""" - action: Literal["deleted"] = Field() - definition: WebhookCustomPropertyDeletedPropDefinition = Field() + action: Literal["reopened"] = Field() + alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: Union[str, None] = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -38,27 +45,162 @@ 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)."', ) - 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[SimpleUserWebhooks] = Field( - default=UNSET, + ref: Union[str, None] = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookCustomPropertyDeletedPropDefinition(GitHubModel): - """WebhookCustomPropertyDeletedPropDefinition""" +class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: Union[str, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[ + WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, None + ] = Field() + dismissed_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`." + ) + 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: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + tool: WebhookCodeScanningAlertReopenedPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" - property_name: str = Field(description="The name of the property that was deleted.") + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[List[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) -model_rebuild(WebhookCustomPropertyDeleted) -model_rebuild(WebhookCustomPropertyDeletedPropDefinition) +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[List[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertReopened) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) __all__ = ( - "WebhookCustomPropertyDeleted", - "WebhookCustomPropertyDeletedPropDefinition", + "WebhookCodeScanningAlertReopened", + "WebhookCodeScanningAlertReopenedPropAlert", + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedPropAlertPropRule", + "WebhookCodeScanningAlertReopenedPropAlertPropTool", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0486.py b/githubkit/versions/ghec_v2022_11_28/models/group_0486.py index ed36da9de..9e04571b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0486.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0486.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,20 +18,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0115 import OrgCustomProperty -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookCustomPropertyUpdated(GitHubModel): - """custom property updated event""" +class WebhookCodeScanningAlertReopenedByUser(GitHubModel): + """code_scanning_alert reopened_by_user event""" - action: Literal["updated"] = Field() - definition: OrgCustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + action: Literal["reopened_by_user"] = Field() + alert: WebhookCodeScanningAlertReopenedByUserPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -42,17 +45,151 @@ class WebhookCustomPropertyUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCustomPropertyUpdated) +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_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`." + ) + 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: Literal["open", "fixed"] = Field( + description="State of a code scanning alert." + ) + 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__ = ("WebhookCustomPropertyUpdated",) +__all__ = ( + "WebhookCodeScanningAlertReopenedByUser", + "WebhookCodeScanningAlertReopenedByUserPropAlert", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", +) 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 467fae953..b04314db5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0487.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0487.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union, Literal from pydantic import Field @@ -17,18 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0116 import CustomPropertyValue -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookCustomPropertyValuesUpdated(GitHubModel): - """Custom property values updated event""" +class WebhookCommitCommentCreated(GitHubModel): + """commit_comment created event""" - action: Literal["updated"] = Field() + action: Literal["created"] = Field( + description="The action performed. Can be `created`." + ) + comment: WebhookCommitCommentCreatedPropComment = Field( + description="The [commit comment](https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#get-a-commit-comment) resource." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,27 +43,117 @@ class WebhookCustomPropertyValuesUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - new_property_values: List[CustomPropertyValue] = Field( - description="The new custom property values for the repository." + + +class WebhookCommitCommentCreatedPropComment(GitHubModel): + """WebhookCommitCommentCreatedPropComment + + The [commit comment](https://docs.github.com/enterprise- + cloud@latest//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" ) - old_property_values: List[CustomPropertyValue] = Field( - description="The old custom property values for the repository." + updated_at: str = Field() + url: str = Field() + user: Union[WebhookCommitCommentCreatedPropCommentPropUser, None] = Field( + title="User" ) -model_rebuild(WebhookCustomPropertyValuesUpdated) +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) + + +model_rebuild(WebhookCommitCommentCreated) +model_rebuild(WebhookCommitCommentCreatedPropComment) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropUser) -__all__ = ("WebhookCustomPropertyValuesUpdated",) +__all__ = ( + "WebhookCommitCommentCreated", + "WebhookCommitCommentCreatedPropComment", + "WebhookCommitCommentCreatedPropCommentPropReactions", + "WebhookCommitCommentCreatedPropCommentPropUser", +) 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 a948710bb..14fdc4647 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0488.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0488.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,16 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDelete(GitHubModel): - """delete event""" +class WebhookCreate(GitHubModel): + """create event""" + description: Union[str, None] = Field( + description="The repository's current description." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -37,6 +40,9 @@ class WebhookDelete(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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", @@ -49,7 +55,7 @@ class WebhookDelete(GitHubModel): description="The [`git ref`](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#get-a-reference) resource." ) ref_type: Literal["tag", "branch"] = Field( - description="The type of Git ref object deleted in the repository." + description="The type of Git ref object created in the repository." ) repository: RepositoryWebhooks = Field( title="Repository", @@ -61,6 +67,6 @@ class WebhookDelete(GitHubModel): ) -model_rebuild(WebhookDelete) +model_rebuild(WebhookCreate) -__all__ = ("WebhookDelete",) +__all__ = ("WebhookCreate",) 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 f0fb3228d..f6c1c5e6e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0489.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0489.py @@ -17,44 +17,42 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0255 import DependabotAlert -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0119 import OrgCustomProperty +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDependabotAlertAutoDismissed(GitHubModel): - """Dependabot alert auto-dismissed event""" +class WebhookCustomPropertyCreated(GitHubModel): + """custom property created event""" - action: Literal["auto_dismissed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["created"] = Field() + definition: OrgCustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookDependabotAlertAutoDismissed) +model_rebuild(WebhookCustomPropertyCreated) -__all__ = ("WebhookDependabotAlertAutoDismissed",) +__all__ = ("WebhookCustomPropertyCreated",) 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 401748143..dc5782b43 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0490.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0490.py @@ -17,44 +17,48 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0255 import DependabotAlert -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDependabotAlertAutoReopened(GitHubModel): - """Dependabot alert auto-reopened event""" +class WebhookCustomPropertyDeleted(GitHubModel): + """custom property deleted event""" - action: Literal["auto_reopened"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["deleted"] = Field() + definition: WebhookCustomPropertyDeletedPropDefinition = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookDependabotAlertAutoReopened) +class WebhookCustomPropertyDeletedPropDefinition(GitHubModel): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str = Field(description="The name of the property that was deleted.") + + +model_rebuild(WebhookCustomPropertyDeleted) +model_rebuild(WebhookCustomPropertyDeletedPropDefinition) -__all__ = ("WebhookDependabotAlertAutoReopened",) +__all__ = ( + "WebhookCustomPropertyDeleted", + "WebhookCustomPropertyDeletedPropDefinition", +) 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 e7bdfe542..910d9bf84 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0491.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0491.py @@ -17,44 +17,42 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0255 import DependabotAlert -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0119 import OrgCustomProperty +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDependabotAlertCreated(GitHubModel): - """Dependabot alert created event""" +class WebhookCustomPropertyUpdated(GitHubModel): + """custom property updated event""" - action: Literal["created"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["updated"] = Field() + definition: OrgCustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookDependabotAlertCreated) +model_rebuild(WebhookCustomPropertyUpdated) -__all__ = ("WebhookDependabotAlertCreated",) +__all__ = ("WebhookCustomPropertyUpdated",) 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 0b925acd5..1c3451598 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0492.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0492.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field @@ -17,44 +17,49 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0255 import DependabotAlert -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0120 import CustomPropertyValue +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDependabotAlertDismissed(GitHubModel): - """Dependabot alert dismissed event""" +class WebhookCustomPropertyValuesUpdated(GitHubModel): + """Custom property values updated event""" - action: Literal["dismissed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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.", - ) + 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)."\n', ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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.", ) - sender: SimpleUserWebhooks = Field( + 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: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + 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(WebhookDependabotAlertDismissed) +model_rebuild(WebhookCustomPropertyValuesUpdated) -__all__ = ("WebhookDependabotAlertDismissed",) +__all__ = ("WebhookCustomPropertyValuesUpdated",) 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 49178bcae..14bdf8c70 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0493.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0493.py @@ -17,19 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0255 import DependabotAlert -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDependabotAlertFixed(GitHubModel): - """Dependabot alert fixed event""" +class WebhookDelete(GitHubModel): + """delete event""" - action: Literal["fixed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,10 +42,14 @@ class WebhookDependabotAlertFixed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + 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", @@ -55,6 +61,6 @@ class WebhookDependabotAlertFixed(GitHubModel): ) -model_rebuild(WebhookDependabotAlertFixed) +model_rebuild(WebhookDelete) -__all__ = ("WebhookDependabotAlertFixed",) +__all__ = ("WebhookDelete",) 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 4ada23439..ef83f4ef5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0494.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0494.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0255 import DependabotAlert -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0259 import DependabotAlert +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDependabotAlertReintroduced(GitHubModel): - """Dependabot alert reintroduced event""" +class WebhookDependabotAlertAutoDismissed(GitHubModel): + """Dependabot alert auto-dismissed event""" - action: Literal["reintroduced"] = Field() + action: Literal["auto_dismissed"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -55,6 +55,6 @@ class WebhookDependabotAlertReintroduced(GitHubModel): ) -model_rebuild(WebhookDependabotAlertReintroduced) +model_rebuild(WebhookDependabotAlertAutoDismissed) -__all__ = ("WebhookDependabotAlertReintroduced",) +__all__ = ("WebhookDependabotAlertAutoDismissed",) 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 2010b47aa..886d20549 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0495.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0495.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0255 import DependabotAlert -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0259 import DependabotAlert +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDependabotAlertReopened(GitHubModel): - """Dependabot alert reopened event""" +class WebhookDependabotAlertAutoReopened(GitHubModel): + """Dependabot alert auto-reopened event""" - action: Literal["reopened"] = Field() + action: Literal["auto_reopened"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -55,6 +55,6 @@ class WebhookDependabotAlertReopened(GitHubModel): ) -model_rebuild(WebhookDependabotAlertReopened) +model_rebuild(WebhookDependabotAlertAutoReopened) -__all__ = ("WebhookDependabotAlertReopened",) +__all__ = ("WebhookDependabotAlertAutoReopened",) 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 2586dd77b..c4e4a138d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0496.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0496.py @@ -17,36 +17,34 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0412 import WebhooksDeployKey -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0259 import DependabotAlert +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDeployKeyCreated(GitHubModel): - """deploy_key created event""" +class WebhookDependabotAlertCreated(GitHubModel): + """Dependabot alert created event""" action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) + 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)."\n', + ) repository: RepositoryWebhooks = Field( title="Repository", 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,6 +55,6 @@ class WebhookDeployKeyCreated(GitHubModel): ) -model_rebuild(WebhookDeployKeyCreated) +model_rebuild(WebhookDependabotAlertCreated) -__all__ = ("WebhookDeployKeyCreated",) +__all__ = ("WebhookDependabotAlertCreated",) 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 2c606e748..264cfc947 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0497.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0497.py @@ -17,36 +17,34 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0412 import WebhooksDeployKey -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0259 import DependabotAlert +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDeployKeyDeleted(GitHubModel): - """deploy_key deleted event""" +class WebhookDependabotAlertDismissed(GitHubModel): + """Dependabot alert dismissed event""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["dismissed"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - key: WebhooksDeployKey = Field( - description="The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) repository: RepositoryWebhooks = Field( title="Repository", 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,6 +55,6 @@ class WebhookDeployKeyDeleted(GitHubModel): ) -model_rebuild(WebhookDeployKeyDeleted) +model_rebuild(WebhookDependabotAlertDismissed) -__all__ = ("WebhookDeployKeyDeleted",) +__all__ = ("WebhookDependabotAlertDismissed",) 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 2ffb845bc..8efc75432 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0498.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0498.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,27 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0413 import WebhooksWorkflow -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0259 import DependabotAlert +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDeploymentCreated(GitHubModel): - """deployment created event""" +class WebhookDependabotAlertFixed(GitHubModel): + """Dependabot alert fixed event""" - action: Literal["created"] = Field() - deployment: WebhookDeploymentCreatedPropDeployment = Field( - title="Deployment", - description="The [deployment](https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#list-deployments).", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["fixed"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -49,6 +40,11 @@ class WebhookDeploymentCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) repository: RepositoryWebhooks = Field( title="Repository", 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,616 +53,8 @@ class WebhookDeploymentCreated(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - 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[WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0, str] = ( - 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) - - -class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0(GitHubModel): - """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0""" - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "workflow_job", - "pull_request_review_thread", - "merge_queue_entry", - "secret_scanning_alert_location", - "merge_group", - ] - ] - ] = 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) - - -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) - - -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) - - -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(WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRun) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDependabotAlertFixed) -__all__ = ( - "WebhookDeploymentCreated", - "WebhookDeploymentCreatedPropDeployment", - "WebhookDeploymentCreatedPropDeploymentPropCreator", - "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentCreatedPropWorkflowRun", - "WebhookDeploymentCreatedPropWorkflowRunPropActor", - "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookDependabotAlertFixed",) 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 1bae11905..88c9b7bff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0499.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0499.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field @@ -17,57 +17,44 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0192 import Deployment -from .group_0319 import PullRequest -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0259 import DependabotAlert +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDeploymentProtectionRuleRequested(GitHubModel): - """deployment protection rule requested event""" +class WebhookDependabotAlertReintroduced(GitHubModel): + """Dependabot alert reintroduced event""" - action: Literal["requested"] = Field() - environment: Missing[str] = Field( - default=UNSET, - description="The name of the environment that has the deployment protection rule.", - ) - event: Missing[str] = Field( - default=UNSET, - description="The event that triggered the deployment protection rule.", - ) - deployment_callback_url: Missing[str] = Field( - default=UNSET, description="The URL to review the deployment protection rule." - ) - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - pull_requests: Missing[List[PullRequest]] = Field(default=UNSET) - repository: Missing[RepositoryWebhooks] = Field( + action: Literal["reintroduced"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - installation: Missing[SimpleInstallation] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - sender: Missing[SimpleUserWebhooks] = 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: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookDeploymentProtectionRuleRequested) +model_rebuild(WebhookDependabotAlertReintroduced) -__all__ = ("WebhookDeploymentProtectionRuleRequested",) +__all__ = ("WebhookDependabotAlertReintroduced",) 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 33c6ea914..1c5d823a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0500.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0500.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,457 +17,44 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0415 import WebhooksWorkflowJobRun -from .group_0404 import OrganizationSimpleWebhooks -from .group_0414 import WebhooksApprover, WebhooksReviewersItems +from .group_0259 import DependabotAlert +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDeploymentReviewApproved(GitHubModel): - """WebhookDeploymentReviewApproved""" +class WebhookDependabotAlertReopened(GitHubModel): + """Dependabot alert reopened event""" - action: Literal["approved"] = Field() - approver: Missing[WebhooksApprover] = Field(default=UNSET) - comment: Missing[str] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["reopened"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) repository: RepositoryWebhooks = Field( title="Repository", 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: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - since: str = Field() - workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) - workflow_job_runs: Missing[ - List[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems] - ] = Field(default=UNSET) - workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - - conclusion: Missing[None] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - environment: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - display_title: str = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: List[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewApproved) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDependabotAlertReopened) -__all__ = ( - "WebhookDeploymentReviewApproved", - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRun", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActor", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookDependabotAlertReopened",) 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 d655dc05d..6b21468a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0501.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0501.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,21 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0415 import WebhooksWorkflowJobRun -from .group_0404 import OrganizationSimpleWebhooks -from .group_0414 import WebhooksApprover, WebhooksReviewersItems +from .group_0416 import WebhooksDeployKey +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDeploymentReviewRejected(GitHubModel): - """WebhookDeploymentReviewRejected""" +class WebhookDeployKeyCreated(GitHubModel): + """deploy_key created event""" - action: Literal["rejected"] = Field() - approver: Missing[WebhooksApprover] = Field(default=UNSET) - comment: Missing[str] = Field(default=UNSET) + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,7 +39,11 @@ class WebhookDeploymentReviewRejected(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + key: WebhooksDeployKey = Field( + description="The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -51,424 +51,12 @@ class WebhookDeploymentReviewRejected(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - reviewers: Missing[List[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - since: str = Field() - workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) - workflow_job_runs: Missing[ - List[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems] - ] = Field(default=UNSET) - workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - - conclusion: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - environment: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: List[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal["requested", "in_progress", "completed", "queued", "waiting"] = ( - Field() - ) - triggering_actor: Union[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - display_title: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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) - - -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) - - -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) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewRejected) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDeployKeyCreated) -__all__ = ( - "WebhookDeploymentReviewRejected", - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRun", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookDeployKeyCreated",) 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 06c335db6..50f01d425 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0502.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0502.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,30 +17,33 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0416 import WebhooksUser -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0416 import WebhooksDeployKey +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDeploymentReviewRequested(GitHubModel): - """WebhookDeploymentReviewRequested""" +class WebhookDeployKeyDeleted(GitHubModel): + """deploy_key deleted event""" - action: Literal["requested"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - environment: str = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + key: WebhooksDeployKey = Field( + description="The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -49,463 +51,12 @@ class WebhookDeploymentReviewRequested(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requestor: Union[WebhooksUser, None] = Field(title="User") - reviewers: List[WebhookDeploymentReviewRequestedPropReviewersItems] = Field() sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - 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) - - -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) - - -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) - - -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) - - -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) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewRequested) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowJobRun) -model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItems) -model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner -) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDeployKeyDeleted) -__all__ = ( - "WebhookDeploymentReviewRequested", - "WebhookDeploymentReviewRequestedPropWorkflowJobRun", - "WebhookDeploymentReviewRequestedPropReviewersItems", - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer", - "WebhookDeploymentReviewRequestedPropWorkflowRun", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookDeployKeyDeleted",) 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 1c98c8fa9..be59a9bde 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0503.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0503.py @@ -18,28 +18,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0413 import WebhooksWorkflow -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0417 import WebhooksWorkflow +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDeploymentStatusCreated(GitHubModel): - """deployment_status created event""" +class WebhookDeploymentCreated(GitHubModel): + """deployment created event""" action: Literal["created"] = Field() - check_run: Missing[Union[WebhookDeploymentStatusCreatedPropCheckRun, None]] = Field( - default=UNSET - ) - deployment: WebhookDeploymentStatusCreatedPropDeployment = Field( + deployment: WebhookDeploymentCreatedPropDeployment = Field( title="Deployment", description="The [deployment](https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#list-deployments).", ) - deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatus = Field( - description="The [deployment status](https://docs.github.com/enterprise-cloud@latest//rest/deployments/statuses#list-deployment-statuses)." - ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -63,48 +57,13 @@ class WebhookDeploymentStatusCreated(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - workflow: Missing[Union[WebhooksWorkflow, None]] = Field( - default=UNSET, title="Workflow" - ) - workflow_run: Missing[ - Union[WebhookDeploymentStatusCreatedPropWorkflowRun, None] - ] = Field(default=UNSET, title="Deployment Workflow Run") - - -class WebhookDeploymentStatusCreatedPropCheckRun(GitHubModel): - """WebhookDeploymentStatusCreatedPropCheckRun""" - - completed_at: Union[datetime, None] = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] = Field( - description="The result of the completed check run. This value will be `null` until the check run has completed." - ) - details_url: str = Field() - external_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being checked.") - html_url: str = Field() - id: int = Field(description="The id of the check.") - name: str = Field(description="The name of the check run.") - node_id: str = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "waiting", "pending"] = Field( - description="The current status of the check run. Can be `queued`, `in_progress`, or `completed`." + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" ) - url: str = Field() -class WebhookDeploymentStatusCreatedPropDeployment(GitHubModel): +class WebhookDeploymentCreatedPropDeployment(GitHubModel): """Deployment The [deployment](https://docs.github.com/enterprise- @@ -112,21 +71,19 @@ class WebhookDeploymentStatusCreatedPropDeployment(GitHubModel): """ created_at: str = Field() - creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreator, None] = ( - Field(title="User") + creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreator, None] = Field( + title="User" ) description: Union[str, None] = Field() environment: str = Field() id: int = Field() node_id: str = Field() original_environment: str = Field() - payload: Union[ - str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, None - ] = Field() + payload: Union[WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0, str] = ( + Field() + ) performed_via_github_app: Missing[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, None - ] + Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", @@ -143,7 +100,7 @@ class WebhookDeploymentStatusCreatedPropDeployment(GitHubModel): url: str = Field() -class WebhookDeploymentStatusCreatedPropDeploymentPropCreator(GitHubModel): +class WebhookDeploymentCreatedPropDeploymentPropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -169,13 +126,11 @@ class WebhookDeploymentStatusCreatedPropDeploymentPropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1(GitHubModel): - """WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1""" +class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0(GitHubModel): + """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0""" -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp( - GitHubModel -): +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -234,241 +189,11 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", - "merge_queue_entry", "workflow_job", "pull_request_review_thread", - "secret_scanning_alert_location", - "merge_group", - ] - ] - ] = 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) - - -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) - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", "merge_queue_entry", - "workflow_job", - "merge_group", "secret_scanning_alert_location", + "merge_group", ] ] ] = Field(default=UNSET, description="The list of events for the GitHub app") @@ -478,11 +203,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, - None, + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions + 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" @@ -490,7 +214,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner( +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner( GitHubModel ): """User""" @@ -518,11 +242,10 @@ class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAp url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP - ermissions + """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -568,10 +291,10 @@ class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAp workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRun(GitHubModel): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, None] = Field( + actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActor, None] = Field( title="User" ) artifacts_url: Missing[str] = Field(default=UNSET) @@ -589,7 +312,6 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): "timed_out", "action_required", "stale", - "startup_failure", ], ] = Field() created_at: datetime = Field() @@ -598,7 +320,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): head_branch: str = Field() head_commit: Missing[None] = Field(default=UNSET) head_repository: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository ] = Field(default=UNSET) head_sha: str = Field() html_url: str = Field() @@ -610,18 +332,16 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): path: str = Field() previous_attempt_url: Missing[None] = Field(default=UNSET) pull_requests: List[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems ] = Field() referenced_workflows: Missing[ Union[ - List[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems - ], + List[WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems], None, ] ] = Field(default=UNSET) - repository: Missing[WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository] = ( - Field(default=UNSET) + repository: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepository] = Field( + default=UNSET ) rerun_url: Missing[str] = Field(default=UNSET) run_attempt: int = Field() @@ -630,16 +350,16 @@ class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): status: Literal[ "requested", "in_progress", "completed", "queued", "waiting", "pending" ] = Field() - triggering_actor: Union[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") + triggering_actor: Missing[ + Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, None] + ] = Field(default=UNSET, title="User") updated_at: datetime = Field() url: str = Field() workflow_id: int = Field() workflow_url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRunPropActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -665,17 +385,15 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" +class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" path: str = Field() ref: Missing[str] = Field(default=UNSET) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -701,8 +419,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -739,7 +457,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubMode node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner ] = Field(default=UNSET) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) @@ -754,10 +472,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubMode url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -779,8 +495,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" archive_url: Missing[str] = Field(default=UNSET) assignees_url: Missing[str] = Field(default=UNSET) @@ -816,9 +532,9 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) + owner: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner] = ( + Field(default=UNSET) + ) private: Missing[bool] = Field(default=UNSET) pulls_url: Missing[str] = Field(default=UNSET) releases_url: Missing[str] = Field(default=UNSET) @@ -832,8 +548,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) @@ -855,33 +571,27 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHu url: Missing[str] = Field(default=UNSET) -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): """Check Run Pull Request""" - base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() - ) + base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead = Field() id: int = Field() number: int = Field() url: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( GitHubModel ): """Repo Ref""" @@ -891,19 +601,17 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase url: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( title="Repo Ref" ) sha: str = Field() -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( GitHubModel ): """Repo Ref""" @@ -913,76 +621,52 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead url: str = Field() -model_rebuild(WebhookDeploymentStatusCreated) -model_rebuild(WebhookDeploymentStatusCreatedPropCheckRun) -model_rebuild(WebhookDeploymentStatusCreatedPropDeployment) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropCreator) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatus) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRun) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase -) +model_rebuild(WebhookDeploymentCreated) +model_rebuild(WebhookDeploymentCreatedPropDeployment) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropCreator) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions ) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRun) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead) model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo ) __all__ = ( - "WebhookDeploymentStatusCreated", - "WebhookDeploymentStatusCreatedPropCheckRun", - "WebhookDeploymentStatusCreatedPropDeployment", - "WebhookDeploymentStatusCreatedPropDeploymentPropCreator", - "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentStatusCreatedPropDeploymentStatus", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentStatusCreatedPropWorkflowRun", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropActor", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookDeploymentCreated", + "WebhookDeploymentCreatedPropDeployment", + "WebhookDeploymentCreatedPropDeploymentPropCreator", + "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentCreatedPropWorkflowRun", + "WebhookDeploymentCreatedPropWorkflowRunPropActor", + "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentCreatedPropWorkflowRunPropRepository", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ) 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 a5651fed2..932db8ff4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0504.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0504.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field @@ -17,48 +17,57 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0418 import Discussion -from .group_0417 import WebhooksAnswer -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0196 import Deployment +from .group_0323 import PullRequest +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDiscussionAnswered(GitHubModel): - """discussion answered event""" +class WebhookDeploymentProtectionRuleRequested(GitHubModel): + """deployment protection rule requested event""" - action: Literal["answered"] = Field() - answer: WebhooksAnswer = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." + action: Literal["requested"] = Field() + environment: Missing[str] = Field( + default=UNSET, + description="The name of the environment that has the deployment protection rule.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( + event: Missing[str] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + description="The event that triggered the deployment protection rule.", ) - installation: Missing[SimpleInstallation] = Field( + deployment_callback_url: Missing[str] = Field( + default=UNSET, description="The URL to review the deployment protection rule." + ) + deployment: Missing[Deployment] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + pull_requests: Missing[List[PullRequest]] = Field(default=UNSET) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookDiscussionAnswered) +model_rebuild(WebhookDeploymentProtectionRuleRequested) -__all__ = ("WebhookDiscussionAnswered",) +__all__ = ("WebhookDeploymentProtectionRuleRequested",) 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 e4649a23c..76c8b8c2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0505.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0505.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import Literal from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,22 +18,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0418 import Discussion -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0419 import WebhooksWorkflowJobRun +from .group_0408 import OrganizationSimpleWebhooks +from .group_0418 import WebhooksApprover, WebhooksReviewersItems -class WebhookDiscussionCategoryChanged(GitHubModel): - """discussion category changed event""" +class WebhookDeploymentReviewApproved(GitHubModel): + """WebhookDeploymentReviewApproved""" - action: Literal["category_changed"] = Field() - changes: WebhookDiscussionCategoryChangedPropChanges = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["approved"] = Field() + approver: Missing[WebhooksApprover] = Field(default=UNSET) + comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,8 +43,7 @@ class WebhookDiscussionCategoryChanged(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -53,49 +51,424 @@ class WebhookDiscussionCategoryChanged(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + reviewers: Missing[List[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + since: str = Field() + workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) + workflow_job_runs: Missing[ + List[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems] + ] = Field(default=UNSET) + workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) -class WebhookDiscussionCategoryChangedPropChanges(GitHubModel): - """WebhookDiscussionCategoryChangedPropChanges""" +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - category: WebhookDiscussionCategoryChangedPropChangesPropCategory = Field() + conclusion: Missing[None] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + environment: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) -class WebhookDiscussionCategoryChangedPropChangesPropCategory(GitHubModel): - """WebhookDiscussionCategoryChangedPropChangesPropCategory""" +class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" - from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom = Field( - alias="from" + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( + title="User" ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() + created_at: datetime = Field() + display_title: str = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: List[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) -class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom(GitHubModel): - """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): + """User""" - created_at: datetime = Field() - description: str = Field() - emoji: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - is_answerable: bool = Field() - name: str = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - repository_id: int = Field() - slug: str = Field() - updated_at: str = Field() + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" -model_rebuild(WebhookDiscussionCategoryChanged) -model_rebuild(WebhookDiscussionCategoryChangedPropChanges) -model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategory) -model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom) + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +model_rebuild(WebhookDeploymentReviewApproved) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) __all__ = ( - "WebhookDiscussionCategoryChanged", - "WebhookDiscussionCategoryChangedPropChanges", - "WebhookDiscussionCategoryChangedPropChangesPropCategory", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", + "WebhookDeploymentReviewApproved", + "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRun", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropActor", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ) 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 b9bc344ce..639fe1a51 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0506.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0506.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,21 +18,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0418 import Discussion -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0419 import WebhooksWorkflowJobRun +from .group_0408 import OrganizationSimpleWebhooks +from .group_0418 import WebhooksApprover, WebhooksReviewersItems -class WebhookDiscussionClosed(GitHubModel): - """discussion closed event""" +class WebhookDeploymentReviewRejected(GitHubModel): + """WebhookDeploymentReviewRejected""" - action: Literal["closed"] = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["rejected"] = Field() + approver: Missing[WebhooksApprover] = Field(default=UNSET) + comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,8 +43,7 @@ class WebhookDiscussionClosed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -51,12 +51,424 @@ class WebhookDiscussionClosed(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + reviewers: Missing[List[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + since: str = Field() + workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) + workflow_job_runs: Missing[ + List[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems] + ] = Field(default=UNSET) + workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) + + +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" + + conclusion: Missing[Union[str, None]] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + environment: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: List[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] = ( + Field() + ) + triggering_actor: Union[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + display_title: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +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) + + +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) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionClosed) +model_rebuild(WebhookDeploymentReviewRejected) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionClosed",) +__all__ = ( + "WebhookDeploymentReviewRejected", + "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRun", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropActor", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", +) 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 2ce0317ad..e3cad100a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0507.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0507.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,35 +18,30 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0418 import Discussion -from .group_0419 import WebhooksComment -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0420 import WebhooksUser +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDiscussionCommentCreated(GitHubModel): - """discussion_comment created event""" +class WebhookDeploymentReviewRequested(GitHubModel): + """WebhookDeploymentReviewRequested""" - action: Literal["created"] = Field() - comment: WebhooksComment = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) + 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,12 +49,463 @@ class WebhookDiscussionCommentCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requestor: Union[WebhooksUser, None] = Field(title="User") + reviewers: List[WebhookDeploymentReviewRequestedPropReviewersItems] = Field() sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + 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) + + +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) + + +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) + + +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) + + +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) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionCommentCreated) +model_rebuild(WebhookDeploymentReviewRequested) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowJobRun) +model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItems) +model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner +) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionCommentCreated",) +__all__ = ( + "WebhookDeploymentReviewRequested", + "WebhookDeploymentReviewRequestedPropWorkflowJobRun", + "WebhookDeploymentReviewRequestedPropReviewersItems", + "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer", + "WebhookDeploymentReviewRequestedPropWorkflowRun", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropActor", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", +) 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 275585ca5..5700aaca7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0508.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0508.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,22 +18,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0418 import Discussion -from .group_0419 import WebhooksComment -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0417 import WebhooksWorkflow +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDiscussionCommentDeleted(GitHubModel): - """discussion_comment deleted event""" +class WebhookDeploymentStatusCreated(GitHubModel): + """deployment_status created event""" - action: Literal["deleted"] = Field() - comment: WebhooksComment = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." + action: Literal["created"] = Field() + check_run: Missing[Union[WebhookDeploymentStatusCreatedPropCheckRun, None]] = Field( + default=UNSET + ) + deployment: WebhookDeploymentStatusCreatedPropDeployment = Field( + title="Deployment", + description="The [deployment](https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#list-deployments).", + ) + deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatus = Field( + description="The [deployment status](https://docs.github.com/enterprise-cloud@latest//rest/deployments/statuses#list-deployment-statuses)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -57,8 +63,926 @@ class WebhookDiscussionCommentDeleted(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + 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) + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1(GitHubModel): + """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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "merge_queue_entry", + "workflow_job", + "pull_request_review_thread", + "secret_scanning_alert_location", + "merge_group", + ] + ] + ] = 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) + + +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) + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "merge_queue_entry", + "workflow_job", + "merge_group", + "secret_scanning_alert_location", + ] + ] + ] = 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) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP + ermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] = Field() + created_at: datetime = Field() + display_title: str = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[None] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[None] = Field(default=UNSET) + pull_requests: List[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository] = ( + Field(default=UNSET) + ) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionCommentDeleted) +model_rebuild(WebhookDeploymentStatusCreated) +model_rebuild(WebhookDeploymentStatusCreatedPropCheckRun) +model_rebuild(WebhookDeploymentStatusCreatedPropDeployment) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropCreator) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatus) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRun) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionCommentDeleted",) +__all__ = ( + "WebhookDeploymentStatusCreated", + "WebhookDeploymentStatusCreatedPropCheckRun", + "WebhookDeploymentStatusCreatedPropDeployment", + "WebhookDeploymentStatusCreatedPropDeploymentPropCreator", + "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentStatusCreatedPropDeploymentStatus", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentStatusCreatedPropWorkflowRun", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropActor", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", +) 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 f06d0b63b..4338dd4d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0509.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0509.py @@ -17,21 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0418 import Discussion -from .group_0419 import WebhooksComment -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0422 import Discussion +from .group_0421 import WebhooksAnswer +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDiscussionCommentEdited(GitHubModel): - """discussion_comment edited event""" +class WebhookDiscussionAnswered(GitHubModel): + """discussion answered event""" - action: Literal["edited"] = Field() - changes: WebhookDiscussionCommentEditedPropChanges = Field() - comment: WebhooksComment = Field() + action: Literal["answered"] = Field() + answer: WebhooksAnswer = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -60,24 +59,6 @@ class WebhookDiscussionCommentEdited(GitHubModel): ) -class WebhookDiscussionCommentEditedPropChanges(GitHubModel): - """WebhookDiscussionCommentEditedPropChanges""" +model_rebuild(WebhookDiscussionAnswered) - body: WebhookDiscussionCommentEditedPropChangesPropBody = Field() - - -class WebhookDiscussionCommentEditedPropChangesPropBody(GitHubModel): - """WebhookDiscussionCommentEditedPropChangesPropBody""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookDiscussionCommentEdited) -model_rebuild(WebhookDiscussionCommentEditedPropChanges) -model_rebuild(WebhookDiscussionCommentEditedPropChangesPropBody) - -__all__ = ( - "WebhookDiscussionCommentEdited", - "WebhookDiscussionCommentEditedPropChanges", - "WebhookDiscussionCommentEditedPropChangesPropBody", -) +__all__ = ("WebhookDiscussionAnswered",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0510.py b/githubkit/versions/ghec_v2022_11_28/models/group_0510.py index d36d93122..d9a14ff8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0510.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0510.py @@ -10,6 +10,7 @@ from __future__ import annotations from typing import Literal +from datetime import datetime from pydantic import Field @@ -17,18 +18,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0418 import Discussion -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0422 import Discussion +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDiscussionCreated(GitHubModel): - """discussion created event""" +class WebhookDiscussionCategoryChanged(GitHubModel): + """discussion category changed event""" - action: Literal["created"] = Field() + action: Literal["category_changed"] = Field() + changes: WebhookDiscussionCategoryChangedPropChanges = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +59,43 @@ class WebhookDiscussionCreated(GitHubModel): ) -model_rebuild(WebhookDiscussionCreated) +class WebhookDiscussionCategoryChangedPropChanges(GitHubModel): + """WebhookDiscussionCategoryChangedPropChanges""" -__all__ = ("WebhookDiscussionCreated",) + category: WebhookDiscussionCategoryChangedPropChangesPropCategory = Field() + + +class WebhookDiscussionCategoryChangedPropChangesPropCategory(GitHubModel): + """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + + from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom = Field( + alias="from" + ) + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom(GitHubModel): + """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + + created_at: datetime = Field() + description: str = Field() + emoji: str = Field() + id: int = Field() + is_answerable: bool = Field() + name: str = Field() + node_id: Missing[str] = Field(default=UNSET) + repository_id: int = Field() + slug: str = Field() + updated_at: str = Field() + + +model_rebuild(WebhookDiscussionCategoryChanged) +model_rebuild(WebhookDiscussionCategoryChangedPropChanges) +model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategory) +model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom) + +__all__ = ( + "WebhookDiscussionCategoryChanged", + "WebhookDiscussionCategoryChangedPropChanges", + "WebhookDiscussionCategoryChangedPropChangesPropCategory", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0511.py b/githubkit/versions/ghec_v2022_11_28/models/group_0511.py index 7e9b65654..621f69602 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0511.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0511.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0418 import Discussion -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0422 import Discussion +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDiscussionDeleted(GitHubModel): - """discussion deleted event""" +class WebhookDiscussionClosed(GitHubModel): + """discussion closed event""" - action: Literal["deleted"] = Field() + action: Literal["closed"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +57,6 @@ class WebhookDiscussionDeleted(GitHubModel): ) -model_rebuild(WebhookDiscussionDeleted) +model_rebuild(WebhookDiscussionClosed) -__all__ = ("WebhookDiscussionDeleted",) +__all__ = ("WebhookDiscussionClosed",) 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 15f048737..087618b30 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0512.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0512.py @@ -17,19 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0418 import Discussion -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0422 import Discussion +from .group_0423 import WebhooksComment +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDiscussionEdited(GitHubModel): - """discussion edited event""" +class WebhookDiscussionCommentCreated(GitHubModel): + """discussion_comment created event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) + action: Literal["created"] = Field() + comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -58,33 +59,6 @@ class WebhookDiscussionEdited(GitHubModel): ) -class WebhookDiscussionEditedPropChanges(GitHubModel): - """WebhookDiscussionEditedPropChanges""" +model_rebuild(WebhookDiscussionCommentCreated) - body: Missing[WebhookDiscussionEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookDiscussionEditedPropChangesPropTitle] = Field(default=UNSET) - - -class WebhookDiscussionEditedPropChangesPropBody(GitHubModel): - """WebhookDiscussionEditedPropChangesPropBody""" - - from_: str = Field(alias="from") - - -class WebhookDiscussionEditedPropChangesPropTitle(GitHubModel): - """WebhookDiscussionEditedPropChangesPropTitle""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookDiscussionEdited) -model_rebuild(WebhookDiscussionEditedPropChanges) -model_rebuild(WebhookDiscussionEditedPropChangesPropBody) -model_rebuild(WebhookDiscussionEditedPropChangesPropTitle) - -__all__ = ( - "WebhookDiscussionEdited", - "WebhookDiscussionEditedPropChanges", - "WebhookDiscussionEditedPropChangesPropBody", - "WebhookDiscussionEditedPropChangesPropTitle", -) +__all__ = ("WebhookDiscussionCommentCreated",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0513.py b/githubkit/versions/ghec_v2022_11_28/models/group_0513.py index b14de7492..392d1a324 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0513.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0513.py @@ -17,19 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0418 import Discussion -from .group_0420 import WebhooksLabel -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0422 import Discussion +from .group_0423 import WebhooksComment +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDiscussionLabeled(GitHubModel): - """discussion labeled event""" +class WebhookDiscussionCommentDeleted(GitHubModel): + """discussion_comment deleted event""" - action: Literal["labeled"] = Field() + action: Literal["deleted"] = Field() + comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -43,7 +44,6 @@ class WebhookDiscussionLabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -59,6 +59,6 @@ class WebhookDiscussionLabeled(GitHubModel): ) -model_rebuild(WebhookDiscussionLabeled) +model_rebuild(WebhookDiscussionCommentDeleted) -__all__ = ("WebhookDiscussionLabeled",) +__all__ = ("WebhookDiscussionCommentDeleted",) 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 def1d7550..d19ebc9cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0514.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0514.py @@ -17,18 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0418 import Discussion -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0422 import Discussion +from .group_0423 import WebhooksComment +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDiscussionLocked(GitHubModel): - """discussion locked event""" +class WebhookDiscussionCommentEdited(GitHubModel): + """discussion_comment edited event""" - action: Literal["locked"] = Field() + action: Literal["edited"] = Field() + changes: WebhookDiscussionCommentEditedPropChanges = Field() + comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +60,24 @@ class WebhookDiscussionLocked(GitHubModel): ) -model_rebuild(WebhookDiscussionLocked) +class WebhookDiscussionCommentEditedPropChanges(GitHubModel): + """WebhookDiscussionCommentEditedPropChanges""" -__all__ = ("WebhookDiscussionLocked",) + body: WebhookDiscussionCommentEditedPropChangesPropBody = Field() + + +class WebhookDiscussionCommentEditedPropChangesPropBody(GitHubModel): + """WebhookDiscussionCommentEditedPropChangesPropBody""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookDiscussionCommentEdited) +model_rebuild(WebhookDiscussionCommentEditedPropChanges) +model_rebuild(WebhookDiscussionCommentEditedPropChangesPropBody) + +__all__ = ( + "WebhookDiscussionCommentEdited", + "WebhookDiscussionCommentEditedPropChanges", + "WebhookDiscussionCommentEditedPropChangesPropBody", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0515.py b/githubkit/versions/ghec_v2022_11_28/models/group_0515.py index 0495ac053..adc9419c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0515.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0515.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0418 import Discussion -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0422 import Discussion +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDiscussionPinned(GitHubModel): - """discussion pinned event""" +class WebhookDiscussionCreated(GitHubModel): + """discussion created event""" - action: Literal["pinned"] = Field() + action: Literal["created"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +57,6 @@ class WebhookDiscussionPinned(GitHubModel): ) -model_rebuild(WebhookDiscussionPinned) +model_rebuild(WebhookDiscussionCreated) -__all__ = ("WebhookDiscussionPinned",) +__all__ = ("WebhookDiscussionCreated",) 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 8c1ff022d..5dd8b4aee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0516.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0516.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0418 import Discussion -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0422 import Discussion +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDiscussionReopened(GitHubModel): - """discussion reopened event""" +class WebhookDiscussionDeleted(GitHubModel): + """discussion deleted event""" - action: Literal["reopened"] = Field() + action: Literal["deleted"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +57,6 @@ class WebhookDiscussionReopened(GitHubModel): ) -model_rebuild(WebhookDiscussionReopened) +model_rebuild(WebhookDiscussionDeleted) -__all__ = ("WebhookDiscussionReopened",) +__all__ = ("WebhookDiscussionDeleted",) 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 8d8e3cb73..0f2e2e35b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0517.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0517.py @@ -17,20 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0418 import Discussion -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0518 import WebhookDiscussionTransferredPropChanges +from .group_0422 import Discussion +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDiscussionTransferred(GitHubModel): - """discussion transferred event""" +class WebhookDiscussionEdited(GitHubModel): + """discussion edited event""" - action: Literal["transferred"] = Field() - changes: WebhookDiscussionTransferredPropChanges = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -59,6 +58,33 @@ class WebhookDiscussionTransferred(GitHubModel): ) -model_rebuild(WebhookDiscussionTransferred) +class WebhookDiscussionEditedPropChanges(GitHubModel): + """WebhookDiscussionEditedPropChanges""" -__all__ = ("WebhookDiscussionTransferred",) + body: Missing[WebhookDiscussionEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookDiscussionEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookDiscussionEditedPropChangesPropBody(GitHubModel): + """WebhookDiscussionEditedPropChangesPropBody""" + + from_: str = Field(alias="from") + + +class WebhookDiscussionEditedPropChangesPropTitle(GitHubModel): + """WebhookDiscussionEditedPropChangesPropTitle""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookDiscussionEdited) +model_rebuild(WebhookDiscussionEditedPropChanges) +model_rebuild(WebhookDiscussionEditedPropChangesPropBody) +model_rebuild(WebhookDiscussionEditedPropChangesPropTitle) + +__all__ = ( + "WebhookDiscussionEdited", + "WebhookDiscussionEditedPropChanges", + "WebhookDiscussionEditedPropChangesPropBody", + "WebhookDiscussionEditedPropChangesPropTitle", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0518.py b/githubkit/versions/ghec_v2022_11_28/models/group_0518.py index 632c7fe50..ff443014f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0518.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0518.py @@ -9,26 +9,56 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0418 import Discussion -from .group_0405 import RepositoryWebhooks +from .group_0422 import Discussion +from .group_0424 import WebhooksLabel +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDiscussionTransferredPropChanges(GitHubModel): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionLabeled(GitHubModel): + """discussion labeled event""" - new_discussion: Discussion = Field( + action: Literal["labeled"] = Field() + discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - new_repository: RepositoryWebhooks = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: WebhooksLabel = Field(title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -model_rebuild(WebhookDiscussionTransferredPropChanges) +model_rebuild(WebhookDiscussionLabeled) -__all__ = ("WebhookDiscussionTransferredPropChanges",) +__all__ = ("WebhookDiscussionLabeled",) 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 e0ea0665f..7cee699d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0519.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0519.py @@ -17,21 +17,31 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0418 import Discussion -from .group_0417 import WebhooksAnswer -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0422 import Discussion +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDiscussionUnanswered(GitHubModel): - """discussion unanswered event""" +class WebhookDiscussionLocked(GitHubModel): + """discussion locked event""" - action: Literal["unanswered"] = Field() + action: Literal["locked"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - old_answer: WebhooksAnswer = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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,13 +51,12 @@ 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[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookDiscussionUnanswered) +model_rebuild(WebhookDiscussionLocked) -__all__ = ("WebhookDiscussionUnanswered",) +__all__ = ("WebhookDiscussionLocked",) 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 895978def..a6bdb6a37 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0520.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0520.py @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0418 import Discussion -from .group_0420 import WebhooksLabel -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0422 import Discussion +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDiscussionUnlabeled(GitHubModel): - """discussion unlabeled event""" +class WebhookDiscussionPinned(GitHubModel): + """discussion pinned event""" - action: Literal["unlabeled"] = Field() + action: Literal["pinned"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -43,7 +42,6 @@ class WebhookDiscussionUnlabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -59,6 +57,6 @@ class WebhookDiscussionUnlabeled(GitHubModel): ) -model_rebuild(WebhookDiscussionUnlabeled) +model_rebuild(WebhookDiscussionPinned) -__all__ = ("WebhookDiscussionUnlabeled",) +__all__ = ("WebhookDiscussionPinned",) 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 763b40b8c..5835379d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0521.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0521.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0418 import Discussion -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0422 import Discussion +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookDiscussionUnlocked(GitHubModel): - """discussion unlocked event""" +class WebhookDiscussionReopened(GitHubModel): + """discussion reopened event""" - action: Literal["unlocked"] = Field() + action: Literal["reopened"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +57,6 @@ class WebhookDiscussionUnlocked(GitHubModel): ) -model_rebuild(WebhookDiscussionUnlocked) +model_rebuild(WebhookDiscussionReopened) -__all__ = ("WebhookDiscussionUnlocked",) +__all__ = ("WebhookDiscussionReopened",) 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 f9e628097..10cb10f7c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0522.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0522.py @@ -17,18 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0418 import Discussion -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0422 import Discussion +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0523 import WebhookDiscussionTransferredPropChanges -class WebhookDiscussionUnpinned(GitHubModel): - """discussion unpinned event""" +class WebhookDiscussionTransferred(GitHubModel): + """discussion transferred event""" - action: Literal["unpinned"] = Field() + action: Literal["transferred"] = Field() + changes: WebhookDiscussionTransferredPropChanges = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +59,6 @@ class WebhookDiscussionUnpinned(GitHubModel): ) -model_rebuild(WebhookDiscussionUnpinned) +model_rebuild(WebhookDiscussionTransferred) -__all__ = ("WebhookDiscussionUnpinned",) +__all__ = ("WebhookDiscussionTransferred",) 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 046c8ca06..39730c127 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0523.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0523.py @@ -11,52 +11,24 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0524 import WebhookForkPropForkee -from .group_0404 import OrganizationSimpleWebhooks +from .group_0422 import Discussion +from .group_0409 import RepositoryWebhooks -class WebhookFork(GitHubModel): - """fork event +class WebhookDiscussionTransferredPropChanges(GitHubModel): + """WebhookDiscussionTransferredPropChanges""" - A user forks a repository. - """ - - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - forkee: WebhookForkPropForkee = Field( - description="The created [`repository`](https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#get-a-repository) resource." - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + new_discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( + 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) -model_rebuild(WebhookFork) +model_rebuild(WebhookDiscussionTransferredPropChanges) -__all__ = ("WebhookFork",) +__all__ = ("WebhookDiscussionTransferredPropChanges",) 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 50e6f99cb..bec0aa011 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,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,176 +17,37 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0526 import WebhookForkPropForkeeAllof0PropPermissions +from .group_0422 import Discussion +from .group_0421 import WebhooksAnswer +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookForkPropForkee(GitHubModel): - """WebhookForkPropForkee +class WebhookDiscussionUnanswered(GitHubModel): + """discussion unanswered event""" - The created [`repository`](https://docs.github.com/enterprise- - cloud@latest//rest/repos/repos#get-a-repository) resource. - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." + action: Literal["unanswered"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: datetime = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + old_answer: WebhooksAnswer = Field() + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[Union[str, None], None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: Literal[True] = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[Union[str, None], None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[None, None] = Field() - languages_url: str = Field() - license_: Union[WebhookForkPropForkeeMergedLicense, None] = Field(alias="license") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[None, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: WebhookForkPropForkeeMergedOwner = Field() - permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( - default=UNSET - ) - 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( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - description="Whether to require contributors to sign off on web-based commits", + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -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) - - -model_rebuild(WebhookForkPropForkee) -model_rebuild(WebhookForkPropForkeeMergedLicense) -model_rebuild(WebhookForkPropForkeeMergedOwner) +model_rebuild(WebhookDiscussionUnanswered) -__all__ = ( - "WebhookForkPropForkee", - "WebhookForkPropForkeeMergedLicense", - "WebhookForkPropForkeeMergedOwner", -) +__all__ = ("WebhookDiscussionUnanswered",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0525.py b/githubkit/versions/ghec_v2022_11_28/models/group_0525.py index 6eddc91b4..028b8fe77 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0525.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0525.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,177 +17,48 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0526 import WebhookForkPropForkeeAllof0PropPermissions +from .group_0422 import Discussion +from .group_0424 import WebhooksLabel +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookForkPropForkeeAllof0(GitHubModel): - """Repository +class WebhookDiscussionUnlabeled(GitHubModel): + """discussion unlabeled event""" - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." + action: Literal["unlabeled"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - has_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" + 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.", ) - 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 + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -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) - - -model_rebuild(WebhookForkPropForkeeAllof0) -model_rebuild(WebhookForkPropForkeeAllof0PropLicense) -model_rebuild(WebhookForkPropForkeeAllof0PropOwner) +model_rebuild(WebhookDiscussionUnlabeled) -__all__ = ( - "WebhookForkPropForkeeAllof0", - "WebhookForkPropForkeeAllof0PropLicense", - "WebhookForkPropForkeeAllof0PropOwner", -) +__all__ = ("WebhookDiscussionUnlabeled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0526.py b/githubkit/versions/ghec_v2022_11_28/models/group_0526.py index 3eb52973b..4318774f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0526.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0526.py @@ -9,23 +9,54 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): - """WebhookForkPropForkeeAllof0PropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) - -__all__ = ("WebhookForkPropForkeeAllof0PropPermissions",) +from .group_0422 import Discussion +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks + + +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)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +model_rebuild(WebhookDiscussionUnlocked) + +__all__ = ("WebhookDiscussionUnlocked",) 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 14ecf8b8e..f88cd6b2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0527.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0527.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,125 +17,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0422 import Discussion +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookForkPropForkeeAllof1(GitHubModel): - """WebhookForkPropForkeeAllof1""" - allow_forking: Missing[bool] = Field(default=UNSET) - archive_url: Missing[str] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - clone_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - default_branch: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[Literal[True]] = Field(default=UNSET) - forks: Missing[int] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - homepage: Missing[Union[str, None]] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - language: Missing[None] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - license_: Missing[Union[WebhookForkPropForkeeAllof1PropLicense, None]] = Field( - default=UNSET, alias="license" - ) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[None] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - open_issues: Missing[int] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - owner: Missing[WebhookForkPropForkeeAllof1PropOwner] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - public: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - pushed_at: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - svn_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - topics: Missing[List[Union[str, None]]] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - watchers: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) - - -class WebhookForkPropForkeeAllof1PropLicense(GitHubModel): - """WebhookForkPropForkeeAllof1PropLicense""" +class WebhookDiscussionUnpinned(GitHubModel): + """discussion unpinned event""" - -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) + action: Literal["unpinned"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -model_rebuild(WebhookForkPropForkeeAllof1) -model_rebuild(WebhookForkPropForkeeAllof1PropLicense) -model_rebuild(WebhookForkPropForkeeAllof1PropOwner) +model_rebuild(WebhookDiscussionUnpinned) -__all__ = ( - "WebhookForkPropForkeeAllof1", - "WebhookForkPropForkeeAllof1PropLicense", - "WebhookForkPropForkeeAllof1PropOwner", -) +__all__ = ("WebhookDiscussionUnpinned",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0528.py b/githubkit/versions/ghec_v2022_11_28/models/group_0528.py index dc1c83288..a4f5b29b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0528.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0528.py @@ -9,25 +9,54 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0406 import SimpleUserWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0529 import WebhookForkPropForkee +from .group_0408 import OrganizationSimpleWebhooks + +class WebhookFork(GitHubModel): + """fork event -class WebhookGithubAppAuthorizationRevoked(GitHubModel): - """github_app_authorization revoked event""" + A user forks a repository. + """ - action: Literal["revoked"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + forkee: WebhookForkPropForkee = Field( + description="The created [`repository`](https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#get-a-repository) resource." + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookGithubAppAuthorizationRevoked) +model_rebuild(WebhookFork) -__all__ = ("WebhookGithubAppAuthorizationRevoked",) +__all__ = ("WebhookFork",) 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 686b10968..df79f83f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0529.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0529.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -17,61 +18,176 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0531 import WebhookForkPropForkeeAllof0PropPermissions -class WebhookGollum(GitHubModel): - """gollum event""" +class WebhookForkPropForkee(GitHubModel): + """WebhookForkPropForkee - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + The created [`repository`](https://docs.github.com/enterprise- + cloud@latest//rest/repos/repos#get-a-repository) resource. + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: datetime = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="Whether to delete head branches when pull requests are merged", ) - pages: List[WebhookGollumPropPagesItems] = Field( - description="The pages that were updated." + deployments_url: str = Field() + description: Union[Union[str, None], None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + downloads_url: str = Field() + events_url: str = Field() + fork: Literal[True] = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." ) - - -class WebhookGollumPropPagesItems(GitHubModel): - """WebhookGollumPropPagesItems""" - - action: Literal["created", "edited"] = Field( - description="The action that was performed on the page. Can be `created` or `edited`." + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[Union[str, None], None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[None, None] = Field() + languages_url: str = Field() + license_: Union[WebhookForkPropForkeeMergedLicense, None] = Field(alias="license") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[None, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: WebhookForkPropForkeeMergedOwner = Field() + permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: datetime = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", ) - html_url: str = Field(description="Points to the HTML wiki page.") - page_name: str = Field(description="The name of the page.") - sha: str = Field(description="The latest commit SHA of the page.") - summary: Union[str, None] = Field() - title: str = Field(description="The current page title.") -model_rebuild(WebhookGollum) -model_rebuild(WebhookGollumPropPagesItems) +class WebhookForkPropForkeeMergedLicense(GitHubModel): + """WebhookForkPropForkeeMergedLicense""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookForkPropForkeeMergedOwner(GitHubModel): + """WebhookForkPropForkeeMergedOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookForkPropForkee) +model_rebuild(WebhookForkPropForkeeMergedLicense) +model_rebuild(WebhookForkPropForkeeMergedOwner) __all__ = ( - "WebhookGollum", - "WebhookGollumPropPagesItems", + "WebhookForkPropForkee", + "WebhookForkPropForkeeMergedLicense", + "WebhookForkPropForkeeMergedOwner", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0530.py b/githubkit/versions/ghec_v2022_11_28/models/group_0530.py index 6fd8ed8d0..8b64afacc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0530.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0530.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -17,46 +18,177 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation -from .group_0416 import WebhooksUser -from .group_0402 import EnterpriseWebhooks -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0421 import WebhooksRepositoriesItems -from .group_0404 import OrganizationSimpleWebhooks +from .group_0531 import WebhookForkPropForkeeAllof0PropPermissions -class WebhookInstallationCreated(GitHubModel): - """installation created event""" +class WebhookForkPropForkeeAllof0(GitHubModel): + """Repository - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" ) - repositories: Missing[List[WebhooksRepositoriesItems]] = Field( - default=UNSET, - description="An array of repository objects that the installation can access.", + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) - repository: Missing[RepositoryWebhooks] = Field( + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + 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." ) - requester: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookForkPropForkeeAllof0PropLicense, None] = Field( + alias="license", title="License" ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookForkPropForkeeAllof0PropOwner, None] = Field(title="User") + permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookForkPropForkeeAllof0PropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookInstallationCreated) +model_rebuild(WebhookForkPropForkeeAllof0) +model_rebuild(WebhookForkPropForkeeAllof0PropLicense) +model_rebuild(WebhookForkPropForkeeAllof0PropOwner) -__all__ = ("WebhookInstallationCreated",) +__all__ = ( + "WebhookForkPropForkeeAllof0", + "WebhookForkPropForkeeAllof0PropLicense", + "WebhookForkPropForkeeAllof0PropOwner", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0531.py b/githubkit/versions/ghec_v2022_11_28/models/group_0531.py index f51f7d390..3eb52973b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0531.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0531.py @@ -9,53 +9,23 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation -from .group_0402 import EnterpriseWebhooks -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0421 import WebhooksRepositoriesItems -from .group_0404 import OrganizationSimpleWebhooks - - -class WebhookInstallationDeleted(GitHubModel): - """installation deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repositories: Missing[List[WebhooksRepositoriesItems]] = Field( - default=UNSET, - description="An array of repository objects that the installation can access.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - requester: Missing[None] = Field(default=UNSET) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookInstallationDeleted) - -__all__ = ("WebhookInstallationDeleted",) + +class WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): + """WebhookForkPropForkeeAllof0PropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) + +__all__ = ("WebhookForkPropForkeeAllof0PropPermissions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0532.py b/githubkit/versions/ghec_v2022_11_28/models/group_0532.py index c3d85815e..14ecf8b8e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0532.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0532.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,45 +17,125 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation -from .group_0402 import EnterpriseWebhooks -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0421 import WebhooksRepositoriesItems -from .group_0404 import OrganizationSimpleWebhooks +class WebhookForkPropForkeeAllof1(GitHubModel): + """WebhookForkPropForkeeAllof1""" -class WebhookInstallationNewPermissionsAccepted(GitHubModel): - """installation new_permissions_accepted event""" - - action: Literal["new_permissions_accepted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repositories: Missing[List[WebhooksRepositoriesItems]] = Field( - default=UNSET, - description="An array of repository objects that the installation can access.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - requester: Missing[None] = Field(default=UNSET) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + allow_forking: Missing[bool] = Field(default=UNSET) + archive_url: Missing[str] = Field(default=UNSET) + archived: Missing[bool] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + clone_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + default_branch: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + disabled: Missing[bool] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[Literal[True]] = Field(default=UNSET) + forks: Missing[int] = Field(default=UNSET) + forks_count: Missing[int] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + git_url: Missing[str] = Field(default=UNSET) + has_downloads: Missing[bool] = Field(default=UNSET) + has_issues: Missing[bool] = Field(default=UNSET) + has_pages: Missing[bool] = Field(default=UNSET) + has_projects: Missing[bool] = Field(default=UNSET) + has_wiki: Missing[bool] = Field(default=UNSET) + homepage: Missing[Union[str, None]] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + language: Missing[None] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + license_: Missing[Union[WebhookForkPropForkeeAllof1PropLicense, None]] = Field( + default=UNSET, alias="license" ) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + mirror_url: Missing[None] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + open_issues: Missing[int] = Field(default=UNSET) + open_issues_count: Missing[int] = Field(default=UNSET) + owner: Missing[WebhookForkPropForkeeAllof1PropOwner] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + public: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + pushed_at: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + ssh_url: Missing[str] = Field(default=UNSET) + stargazers_count: Missing[int] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + svn_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + topics: Missing[List[Union[str, None]]] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + visibility: Missing[str] = Field(default=UNSET) + watchers: Missing[int] = Field(default=UNSET) + watchers_count: Missing[int] = Field(default=UNSET) + + +class WebhookForkPropForkeeAllof1PropLicense(GitHubModel): + """WebhookForkPropForkeeAllof1PropLicense""" + + +class WebhookForkPropForkeeAllof1PropOwner(GitHubModel): + """WebhookForkPropForkeeAllof1PropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookInstallationNewPermissionsAccepted) +model_rebuild(WebhookForkPropForkeeAllof1) +model_rebuild(WebhookForkPropForkeeAllof1PropLicense) +model_rebuild(WebhookForkPropForkeeAllof1PropOwner) -__all__ = ("WebhookInstallationNewPermissionsAccepted",) +__all__ = ( + "WebhookForkPropForkeeAllof1", + "WebhookForkPropForkeeAllof1PropLicense", + "WebhookForkPropForkeeAllof1PropOwner", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0533.py b/githubkit/versions/ghec_v2022_11_28/models/group_0533.py index 18a14c95b..8bf554c4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0533.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0533.py @@ -9,79 +9,25 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation -from .group_0416 import WebhooksUser -from .group_0402 import EnterpriseWebhooks -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0422 import WebhooksRepositoriesAddedItems +from .group_0410 import SimpleUserWebhooks -class WebhookInstallationRepositoriesAdded(GitHubModel): - """installation_repositories added event""" +class WebhookGithubAppAuthorizationRevoked(GitHubModel): + """github_app_authorization revoked event""" - action: Literal["added"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repositories_added: List[WebhooksRepositoriesAddedItems] = Field( - description="An array of repository objects, which were added to the installation." - ) - repositories_removed: List[ - WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems - ] = Field( - description="An array of repository objects, which were removed from the installation." - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - repository_selection: Literal["all", "selected"] = Field( - description="Describe whether all repositories have been selected or there's a selection involved" - ) - requester: Union[WebhooksUser, None] = Field(title="User") + action: Literal["revoked"] = Field() sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -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(WebhookGithubAppAuthorizationRevoked) -__all__ = ( - "WebhookInstallationRepositoriesAdded", - "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", -) +__all__ = ("WebhookGithubAppAuthorizationRevoked",) 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 a00325a36..ae9849c35 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0534.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0534.py @@ -17,67 +17,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation -from .group_0416 import WebhooksUser -from .group_0402 import EnterpriseWebhooks -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0422 import WebhooksRepositoriesAddedItems +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookInstallationRepositoriesRemoved(GitHubModel): - """installation_repositories removed event""" +class WebhookGollum(GitHubModel): + """gollum event""" - action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - installation: Installation = Field(title="Installation", description="Installation") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repositories_added: List[WebhooksRepositoriesAddedItems] = Field( - description="An array of repository objects, which were added to the installation." - ) - repositories_removed: List[ - WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems - ] = Field( - description="An array of repository objects, which were removed from the installation." + pages: List[WebhookGollumPropPagesItems] = Field( + description="The pages that were updated." ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_selection: Literal["all", "selected"] = Field( - description="Describe whether all repositories have been selected or there's a selection involved" - ) - requester: Union[WebhooksUser, None] = Field(title="User") sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems(GitHubModel): - """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" +class WebhookGollumPropPagesItems(GitHubModel): + """WebhookGollumPropPagesItems""" - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") + action: Literal["created", "edited"] = Field( + description="The action that was performed on the page. Can be `created` or `edited`." + ) + html_url: str = Field(description="Points to the HTML wiki page.") + page_name: str = Field(description="The name of the page.") + sha: str = Field(description="The latest commit SHA of the page.") + summary: Union[str, None] = Field() + title: str = Field(description="The current page title.") -model_rebuild(WebhookInstallationRepositoriesRemoved) -model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems) +model_rebuild(WebhookGollum) +model_rebuild(WebhookGollumPropPagesItems) __all__ = ( - "WebhookInstallationRepositoriesRemoved", - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", + "WebhookGollum", + "WebhookGollumPropPagesItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0535.py b/githubkit/versions/ghec_v2022_11_28/models/group_0535.py index 677b84c79..9248ea1e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0535.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0535.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,17 +18,18 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0015 import Installation -from .group_0402 import EnterpriseWebhooks -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0421 import WebhooksRepositoriesItems -from .group_0404 import OrganizationSimpleWebhooks +from .group_0420 import WebhooksUser +from .group_0406 import EnterpriseWebhooks +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0425 import WebhooksRepositoriesItems +from .group_0408 import OrganizationSimpleWebhooks -class WebhookInstallationSuspend(GitHubModel): - """installation suspend event""" +class WebhookInstallationCreated(GitHubModel): + """installation created event""" - action: Literal["suspend"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,13 +50,13 @@ class WebhookInstallationSuspend(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requester: Missing[None] = Field(default=UNSET) + requester: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookInstallationSuspend) +model_rebuild(WebhookInstallationCreated) -__all__ = ("WebhookInstallationSuspend",) +__all__ = ("WebhookInstallationCreated",) 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 101699011..f33c25a19 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0536.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0536.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from pydantic import Field @@ -17,120 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0015 import Installation +from .group_0406 import EnterpriseWebhooks +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0425 import WebhooksRepositoriesItems +from .group_0408 import OrganizationSimpleWebhooks -class WebhookInstallationTargetRenamed(GitHubModel): - """WebhookInstallationTargetRenamed""" +class WebhookInstallationDeleted(GitHubModel): + """installation deleted event""" - account: WebhookInstallationTargetRenamedPropAccount = Field() - action: Literal["renamed"] = Field() - changes: WebhookInstallationTargetRenamedPropChanges = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) + installation: Installation = Field(title="Installation", description="Installation") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + repositories: Missing[List[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + requester: Missing[None] = Field(default=UNSET) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - 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) - - -class WebhookInstallationTargetRenamedPropChanges(GitHubModel): - """WebhookInstallationTargetRenamedPropChanges""" - - login: Missing[WebhookInstallationTargetRenamedPropChangesPropLogin] = Field( - default=UNSET - ) - slug: Missing[WebhookInstallationTargetRenamedPropChangesPropSlug] = Field( - default=UNSET - ) - - -class WebhookInstallationTargetRenamedPropChangesPropLogin(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropLogin""" - - from_: str = Field(alias="from") - - -class WebhookInstallationTargetRenamedPropChangesPropSlug(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropSlug""" - - from_: str = Field(alias="from") -model_rebuild(WebhookInstallationTargetRenamed) -model_rebuild(WebhookInstallationTargetRenamedPropAccount) -model_rebuild(WebhookInstallationTargetRenamedPropChanges) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) +model_rebuild(WebhookInstallationDeleted) -__all__ = ( - "WebhookInstallationTargetRenamed", - "WebhookInstallationTargetRenamedPropAccount", - "WebhookInstallationTargetRenamedPropChanges", - "WebhookInstallationTargetRenamedPropChangesPropLogin", - "WebhookInstallationTargetRenamedPropChangesPropSlug", -) +__all__ = ("WebhookInstallationDeleted",) 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 05bd204ec..3c6852746 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0537.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0537.py @@ -18,17 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0015 import Installation -from .group_0402 import EnterpriseWebhooks -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0421 import WebhooksRepositoriesItems -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0425 import WebhooksRepositoriesItems +from .group_0408 import OrganizationSimpleWebhooks -class WebhookInstallationUnsuspend(GitHubModel): - """installation unsuspend event""" +class WebhookInstallationNewPermissionsAccepted(GitHubModel): + """installation new_permissions_accepted event""" - action: Literal["unsuspend"] = Field() + action: Literal["new_permissions_accepted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -56,6 +56,6 @@ class WebhookInstallationUnsuspend(GitHubModel): ) -model_rebuild(WebhookInstallationUnsuspend) +model_rebuild(WebhookInstallationNewPermissionsAccepted) -__all__ = ("WebhookInstallationUnsuspend",) +__all__ = ("WebhookInstallationNewPermissionsAccepted",) 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 a68e04c6f..653a8cc15 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0538.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0538.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,51 +17,71 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0540 import WebhookIssueCommentCreatedPropIssue -from .group_0539 import WebhookIssueCommentCreatedPropComment +from .group_0015 import Installation +from .group_0420 import WebhooksUser +from .group_0406 import EnterpriseWebhooks +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0426 import WebhooksRepositoriesAddedItems -class WebhookIssueCommentCreated(GitHubModel): - """issue_comment created event""" +class WebhookInstallationRepositoriesAdded(GitHubModel): + """installation_repositories added event""" - action: Literal["created"] = Field() - comment: WebhookIssueCommentCreatedPropComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", - ) + action: Literal["added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentCreatedPropIssue = Field( - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." - ) + installation: Installation = Field(title="Installation", description="Installation") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repositories_added: List[WebhooksRepositoriesAddedItems] = Field( + description="An array of repository objects, which were added to the installation." + ) + repositories_removed: List[ + WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems + ] = Field( + description="An array of repository objects, which were removed from the installation." + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" + ) + requester: Union[WebhooksUser, None] = Field(title="User") sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookIssueCommentCreated) +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" + + full_name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field( + default=UNSET, description="Unique identifier of the repository" + ) + name: Missing[str] = Field(default=UNSET, description="The name of the repository.") + node_id: Missing[str] = Field(default=UNSET) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private or public." + ) + + +model_rebuild(WebhookInstallationRepositoriesAdded) +model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems) -__all__ = ("WebhookIssueCommentCreated",) +__all__ = ( + "WebhookInstallationRepositoriesAdded", + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0539.py b/githubkit/versions/ghec_v2022_11_28/models/group_0539.py index 82fa754b5..2feef1268 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0539.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0539.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,93 +17,67 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0006 import Integration +from .group_0015 import Installation +from .group_0420 import WebhooksUser +from .group_0406 import EnterpriseWebhooks +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0426 import WebhooksRepositoriesAddedItems -class WebhookIssueCommentCreatedPropComment(GitHubModel): - """issue comment +class WebhookInstallationRepositoriesRemoved(GitHubModel): + """installation_repositories removed event""" - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/issues/comments#get-an-issue-comment) itself. - """ - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + action: Literal["removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repositories_added: List[WebhooksRepositoriesAddedItems] = Field( + description="An array of repository objects, which were added to the installation." + ) + repositories_removed: List[ + WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + description="An array of repository objects, which were removed from the installation." ) - body: str = Field(description="Contents of the issue comment") - created_at: datetime = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the issue comment") - issue_url: str = Field() - node_id: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - reactions: WebhookIssueCommentCreatedPropCommentPropReactions = Field( - title="Reactions" + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue comment") - user: Union[WebhookIssueCommentCreatedPropCommentPropUser, None] = Field( - title="User" + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" ) + requester: Union[WebhooksUser, None] = Field(title="User") + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" + + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") -class WebhookIssueCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentCreatedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentCreatedPropComment) -model_rebuild(WebhookIssueCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookIssueCommentCreatedPropCommentPropUser) +model_rebuild(WebhookInstallationRepositoriesRemoved) +model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems) __all__ = ( - "WebhookIssueCommentCreatedPropComment", - "WebhookIssueCommentCreatedPropCommentPropReactions", - "WebhookIssueCommentCreatedPropCommentPropUser", + "WebhookInstallationRepositoriesRemoved", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0540.py b/githubkit/versions/ghec_v2022_11_28/models/group_0540.py index 5772c613a..806fc8ef0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0540.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0540.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,155 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0548 import WebhookIssueCommentCreatedPropIssueMergedMilestone -from .group_0549 import WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp -from .group_0542 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, -) +from .group_0015 import Installation +from .group_0406 import EnterpriseWebhooks +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0425 import WebhooksRepositoriesItems +from .group_0408 import OrganizationSimpleWebhooks -class WebhookIssueCommentCreatedPropIssue(GitHubModel): - """WebhookIssueCommentCreatedPropIssue +class WebhookInstallationSuspend(GitHubModel): + """installation suspend event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: List[WebhookIssueCommentCreatedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + action: Literal["suspend"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - reactions: WebhookIssueCommentCreatedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + repositories: Missing[List[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentCreatedPropIssueMergedUser = Field() - - -class WebhookIssueCommentCreatedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + 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 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 + requester: Missing[None] = Field(default=UNSET) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssue) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) +model_rebuild(WebhookInstallationSuspend) -__all__ = ( - "WebhookIssueCommentCreatedPropIssue", - "WebhookIssueCommentCreatedPropIssueMergedAssignees", - "WebhookIssueCommentCreatedPropIssueMergedReactions", - "WebhookIssueCommentCreatedPropIssueMergedUser", -) +__all__ = ("WebhookInstallationSuspend",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0541.py b/githubkit/versions/ghec_v2022_11_28/models/group_0541.py index 08e92f0db..c58fe285a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0541.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0541.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,174 +17,120 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0544 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone -from .group_0546 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0542 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, -) +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -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( +class WebhookInstallationTargetRenamed(GitHubModel): + """WebhookInstallationTargetRenamed""" + + account: WebhookInstallationTargetRenamedPropAccount = Field() + action: Literal["renamed"] = Field() + changes: WebhookInstallationTargetRenamedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactions = Field( - title="Reactions" + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( - title="User" + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + target_type: str = Field() -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" +class WebhookInstallationTargetRenamedPropAccount(GitHubModel): + """WebhookInstallationTargetRenamedPropAccount""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) + archived_at: Missing[Union[str, None]] = Field(default=UNSET) + avatar_url: str = Field() + created_at: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) + followers: Missing[int] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) + following: Missing[int] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + has_organization_projects: Missing[bool] = Field(default=UNSET) + has_repository_projects: Missing[bool] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: str = Field() id: int = Field() - login: str = Field() + is_verified: Missing[bool] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + members_url: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() organizations_url: Missing[str] = Field(default=UNSET) + public_gists: Missing[int] = Field(default=UNSET) + public_members_url: Missing[str] = Field(default=UNSET) + public_repos: Missing[int] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) repos_url: Missing[str] = Field(default=UNSET) site_admin: Missing[bool] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + 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) + + +class WebhookInstallationTargetRenamedPropChanges(GitHubModel): + """WebhookInstallationTargetRenamedPropChanges""" + + login: Missing[WebhookInstallationTargetRenamedPropChangesPropLogin] = Field( + default=UNSET + ) + slug: Missing[WebhookInstallationTargetRenamedPropChangesPropSlug] = Field( default=UNSET ) - url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookInstallationTargetRenamedPropChangesPropLogin(GitHubModel): + """WebhookInstallationTargetRenamedPropChangesPropLogin""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() + from_: str = Field(alias="from") -class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): - """User""" +class WebhookInstallationTargetRenamedPropChangesPropSlug(GitHubModel): + """WebhookInstallationTargetRenamedPropChangesPropSlug""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) + from_: str = Field(alias="from") -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) +model_rebuild(WebhookInstallationTargetRenamed) +model_rebuild(WebhookInstallationTargetRenamedPropAccount) +model_rebuild(WebhookInstallationTargetRenamedPropChanges) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0", - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof0PropUser", + "WebhookInstallationTargetRenamed", + "WebhookInstallationTargetRenamedPropAccount", + "WebhookInstallationTargetRenamedPropChanges", + "WebhookInstallationTargetRenamedPropChangesPropLogin", + "WebhookInstallationTargetRenamedPropChangesPropSlug", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0542.py b/githubkit/versions/ghec_v2022_11_28/models/group_0542.py index 6171043ad..12a8d2985 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0542.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0542.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,65 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0015 import Installation +from .group_0406 import EnterpriseWebhooks +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0425 import WebhooksRepositoriesItems +from .group_0408 import OrganizationSimpleWebhooks -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) - - -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookInstallationUnsuspend(GitHubModel): + """installation unsuspend event""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + action: Literal["unsuspend"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repositories: Missing[List[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + requester: Missing[None] = Field(default=UNSET) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookInstallationUnsuspend) -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", -) +__all__ = ("WebhookInstallationUnsuspend",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0543.py b/githubkit/versions/ghec_v2022_11_28/models/group_0543.py index dc932bbb6..092d79bcc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0543.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0543.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,35 +17,51 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0545 import WebhookIssueCommentCreatedPropIssue +from .group_0544 import WebhookIssueCommentCreatedPropComment -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + +class WebhookIssueCommentCreated(GitHubModel): + """issue_comment created event""" + + action: Literal["created"] = Field() + comment: WebhookIssueCommentCreatedPropComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssueCommentCreatedPropIssue = Field( + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssueCommentCreated) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ("WebhookIssueCommentCreated",) 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 481a1b61a..82fa754b5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0544.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0544.py @@ -14,39 +14,97 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0543 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, -) +from .group_0006 import Integration -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookIssueCommentCreatedPropComment(GitHubModel): + """issue comment - A collection of related issues and pull requests. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) itself. """ - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="Contents of the issue comment") created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() html_url: str = Field() - id: int = Field() - labels_url: str = Field() + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") + performed_via_github_app: Union[None, Integration, None] = Field() + reactions: WebhookIssueCommentCreatedPropCommentPropReactions = Field( + title="Reactions" + ) updated_at: datetime = Field() + url: str = Field(description="URL for the issue comment") + user: Union[WebhookIssueCommentCreatedPropCommentPropUser, None] = Field( + title="User" + ) + + +class WebhookIssueCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() url: str = Field() -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) +class WebhookIssueCommentCreatedPropCommentPropUser(GitHubModel): + """User""" -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropComment) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropUser) + +__all__ = ( + "WebhookIssueCommentCreatedPropComment", + "WebhookIssueCommentCreatedPropCommentPropReactions", + "WebhookIssueCommentCreatedPropCommentPropUser", +) 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 0cf598b48..9ee8c0602 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0545.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0545.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,11 +18,78 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0553 import WebhookIssueCommentCreatedPropIssueMergedMilestone +from .group_0554 import WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp +from .group_0547 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, +) + + +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() + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentCreatedPropIssueMergedUser = Field() + -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" +class WebhookIssueCommentCreatedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -42,72 +110,63 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwne site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentCreatedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" - The set of permissions for the GitHub app - """ + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + +class WebhookIssueCommentCreatedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropIssue) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookIssueCommentCreatedPropIssue", + "WebhookIssueCommentCreatedPropIssueMergedAssignees", + "WebhookIssueCommentCreatedPropIssueMergedReactions", + "WebhookIssueCommentCreatedPropIssueMergedUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0546.py b/githubkit/versions/ghec_v2022_11_28/models/group_0546.py index 21f433dae..992dbffdf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0546.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0546.py @@ -18,94 +18,174 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0545 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0549 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone +from .group_0551 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0547 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, ) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): + """Issue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + 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: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels: Missing[List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) node_id: str = Field() - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + + +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0", + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof0PropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0547.py b/githubkit/versions/ghec_v2022_11_28/models/group_0547.py index 6da98bf11..6171043ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0547.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0547.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -18,53 +19,7 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookIssueCommentCreatedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, None] = ( - Field(title="User") - ) - assignees: Missing[ - List[Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: List[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropUser] = Field( - default=UNSET - ) - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -92,11 +47,7 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -110,68 +61,22 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssueCommentCreatedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" - +class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" -class WebhookIssueCommentCreatedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentCreatedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof1PropUser", + "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0548.py b/githubkit/versions/ghec_v2022_11_28/models/group_0548.py index 0e3b38334..dc932bbb6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0548.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0548.py @@ -9,41 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0543 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, -) +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" -class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedMilestone) - -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) + +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) 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 45c91eea8..4814b75fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0549.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0549.py @@ -10,96 +10,43 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0545 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0548 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - created_at: Union[datetime, None] = Field() + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels_url: str = Field() node_id: str = Field() - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0550.py b/githubkit/versions/ghec_v2022_11_28/models/group_0550.py index c01ec82d8..0cf598b48 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0550.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0550.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,51 +17,97 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0423 import WebhooksIssueComment -from .group_0404 import OrganizationSimpleWebhooks -from .group_0551 import WebhookIssueCommentDeletedPropIssue +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" -class WebhookIssueCommentDeleted(GitHubModel): - """issue_comment deleted event""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) - action: Literal["deleted"] = Field() - comment: WebhooksIssueComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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." + +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: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + 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(WebhookIssueCommentDeleted) +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentDeleted",) +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) 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 117f89e15..f072cbe6a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0551.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0551.py @@ -18,155 +18,94 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0559 import WebhookIssueCommentDeletedPropIssueMergedMilestone -from .group_0560 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp -from .group_0553 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, +from .group_0550 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) -class WebhookIssueCommentDeletedPropIssue(GitHubModel): - """WebhookIssueCommentDeletedPropIssue +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: List[WebhookIssueCommentDeletedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - 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() + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = 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: List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestone, None] = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentDeletedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentDeletedPropIssueMergedUser = Field() - - -class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - url: Missing[str] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssue) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ( - "WebhookIssueCommentDeletedPropIssue", - "WebhookIssueCommentDeletedPropIssueMergedAssignees", - "WebhookIssueCommentDeletedPropIssueMergedReactions", - "WebhookIssueCommentDeletedPropIssueMergedUser", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0552.py b/githubkit/versions/ghec_v2022_11_28/models/group_0552.py index ece50dd2a..6da98bf11 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0552.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0552.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,96 +17,54 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0555 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone -from .group_0557 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0553 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, -) +class WebhookIssueCommentCreatedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1""" -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.", - ) + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, None] = ( + Field(title="User") ) - node_id: str = Field() - number: int = Field() + assignees: Missing[ + List[Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: List[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactions = Field( - title="Reactions" + Union[WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropReactions] = Field( + default=UNSET ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( - title="User" + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropUser] = Field( + default=UNSET ) -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -135,36 +92,59 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): + """Label""" -class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): - """User""" + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssueCommentCreatedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentCreatedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: 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) @@ -172,20 +152,26 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0", - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", - "WebhookIssueCommentDeletedPropIssueAllof0PropUser", + "WebhookIssueCommentCreatedPropIssueAllof1", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", + "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof1PropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0553.py b/githubkit/versions/ghec_v2022_11_28/models/group_0553.py index 1accd904c..4b35bb9f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0553.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0553.py @@ -14,69 +14,36 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) +from .group_0548 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") + labels_url: str = Field() node_id: str = Field() - url: str = Field(description="URL for the label") + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedMilestone) - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest) - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0554.py b/githubkit/versions/ghec_v2022_11_28/models/group_0554.py index 011ca8ea7..6897859b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0554.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0554.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,35 +18,88 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0550 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - url: Missing[str] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0555.py b/githubkit/versions/ghec_v2022_11_28/models/group_0555.py index c11dc482b..bcb01ac4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0555.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0555.py @@ -9,44 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0554 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, -) +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0427 import WebhooksIssueComment +from .group_0408 import OrganizationSimpleWebhooks +from .group_0556 import WebhookIssueCommentDeletedPropIssue -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookIssueCommentDeleted(GitHubModel): + """issue_comment deleted event""" - A collection of related issues and pull requests. - """ + action: Literal["deleted"] = Field() + comment: WebhooksIssueComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() +model_rebuild(WebhookIssueCommentDeleted) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssueCommentDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0556.py b/githubkit/versions/ghec_v2022_11_28/models/group_0556.py index b527e3f15..affe51f9b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0556.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0556.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,11 +18,78 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0564 import WebhookIssueCommentDeletedPropIssueMergedMilestone +from .group_0565 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp +from .group_0558 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, +) + + +class WebhookIssueCommentDeletedPropIssue(GitHubModel): + """WebhookIssueCommentDeletedPropIssue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Union[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: List[WebhookIssueCommentDeletedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems] = Field() + labels_url: str = Field() + locked: bool = Field() + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestone, None] = Field() + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentDeletedPropIssueMergedReactions = Field() + repository_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentDeletedPropIssueMergedUser = Field() + -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" +class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -42,68 +110,63 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwne site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" - The set of permissions for the GitHub app - """ + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + +class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -model_rebuild( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentDeletedPropIssue) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookIssueCommentDeletedPropIssue", + "WebhookIssueCommentDeletedPropIssueMergedAssignees", + "WebhookIssueCommentDeletedPropIssueMergedReactions", + "WebhookIssueCommentDeletedPropIssueMergedUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0557.py b/githubkit/versions/ghec_v2022_11_28/models/group_0557.py index eadecc9ad..5c0d3dd2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0557.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0557.py @@ -18,92 +18,174 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0556 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0560 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone +from .group_0562 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0558 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, ) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): + """Issue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + 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: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels: Missing[List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) node_id: str = Field() - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", + "WebhookIssueCommentDeletedPropIssueAllof0PropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0558.py b/githubkit/versions/ghec_v2022_11_28/models/group_0558.py index 3e9e40f0f..1accd904c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0558.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0558.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -18,53 +19,7 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookIssueCommentDeletedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, None] = ( - Field(title="User") - ) - assignees: Missing[ - List[Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: List[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropUser] = Field( - default=UNSET - ) - - -class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -92,11 +47,7 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -110,68 +61,22 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssueCommentDeletedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" - +class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" -class WebhookIssueCommentDeletedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentDeletedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof1", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentDeletedPropIssueAllof1PropMilestone", - "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", - "WebhookIssueCommentDeletedPropIssueAllof1PropUser", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", + "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0559.py b/githubkit/versions/ghec_v2022_11_28/models/group_0559.py index b1890d64a..011ca8ea7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0559.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0559.py @@ -9,41 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0554 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, -) +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" -class WebhookIssueCommentDeletedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedMilestone) - -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestone",) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator) + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator",) 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 f4f0f1f35..fa72ff8bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0560.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0560.py @@ -10,94 +10,43 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0556 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0559 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, ) -class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - created_at: Union[datetime, None] = Field() + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels_url: str = Field() node_id: str = Field() - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0561.py b/githubkit/versions/ghec_v2022_11_28/models/group_0561.py index b7f6b3eef..b527e3f15 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0561.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0561.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,53 +17,93 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0424 import WebhooksChanges -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0423 import WebhooksIssueComment -from .group_0404 import OrganizationSimpleWebhooks -from .group_0562 import WebhookIssueCommentEditedPropIssue +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" -class WebhookIssueCommentEdited(GitHubModel): - """issue_comment edited event""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) - action: Literal["edited"] = Field() - changes: WebhooksChanges = Field(description="The changes to the comment.") - comment: WebhooksIssueComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentEditedPropIssue = Field( - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEdited) +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssueCommentEdited",) +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) 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 fe7c6a128..4d41e3338 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0562.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0562.py @@ -18,155 +18,92 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0570 import WebhookIssueCommentEditedPropIssueMergedMilestone -from .group_0571 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp -from .group_0564 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssignee, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, +from .group_0561 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) -class WebhookIssueCommentEditedPropIssue(GitHubModel): - """WebhookIssueCommentEditedPropIssue +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: List[WebhookIssueCommentEditedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - 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() + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = 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: List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestone, None] = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentEditedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentEditedPropIssueMergedUser = Field() - - -class WebhookIssueCommentEditedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentEditedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - url: Missing[str] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentEditedPropIssue) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ( - "WebhookIssueCommentEditedPropIssue", - "WebhookIssueCommentEditedPropIssueMergedAssignees", - "WebhookIssueCommentEditedPropIssueMergedReactions", - "WebhookIssueCommentEditedPropIssueMergedUser", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0563.py b/githubkit/versions/ghec_v2022_11_28/models/group_0563.py index 40eeb285d..3e9e40f0f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0563.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0563.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,96 +17,54 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0566 import WebhookIssueCommentEditedPropIssueAllof0PropMilestone -from .group_0568 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0564 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssignee, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, -) +class WebhookIssueCommentDeletedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1""" -class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, None] = ( + Field(title="User") ) - node_id: str = Field() - number: int = Field() + assignees: Missing[ + List[Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: List[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactions = Field( - title="Reactions" + Union[WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropReactions] = Field( + default=UNSET ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUser, None] = Field( - title="User" + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropUser] = Field( + default=UNSET ) -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -135,36 +92,59 @@ class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems(GitHubModel): + """Label""" -class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): - """User""" + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssueCommentDeletedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentDeletedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: 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) @@ -172,20 +152,26 @@ class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropUser) __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0", - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentEditedPropIssueAllof0PropReactions", - "WebhookIssueCommentEditedPropIssueAllof0PropUser", + "WebhookIssueCommentDeletedPropIssueAllof1", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentDeletedPropIssueAllof1PropMilestone", + "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", + "WebhookIssueCommentDeletedPropIssueAllof1PropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0564.py b/githubkit/versions/ghec_v2022_11_28/models/group_0564.py index 65b348d39..93d7afc73 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0564.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0564.py @@ -14,69 +14,36 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) +from .group_0559 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, +) -class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookIssueCommentDeletedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedMilestone""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") + labels_url: str = Field() node_id: str = Field() - url: str = Field(description="URL for the label") + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhookIssueCommentEditedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedMilestone) - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPullRequest) - -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", - "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0565.py b/githubkit/versions/ghec_v2022_11_28/models/group_0565.py index 265267a2d..92fee86b8 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 Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,35 +18,86 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0561 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + +class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - url: Missing[str] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0566.py b/githubkit/versions/ghec_v2022_11_28/models/group_0566.py index 442a833b8..2165d1aa4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0566.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0566.py @@ -9,42 +9,61 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0565 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator +from .group_0428 import WebhooksChanges +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0427 import WebhooksIssueComment +from .group_0408 import OrganizationSimpleWebhooks +from .group_0567 import WebhookIssueCommentEditedPropIssue -class WebhookIssueCommentEditedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookIssueCommentEdited(GitHubModel): + """issue_comment edited event""" - A collection of related issues and pull requests. - """ + action: Literal["edited"] = Field() + changes: WebhooksChanges = Field(description="The changes to the comment.") + comment: WebhooksIssueComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssueCommentEditedPropIssue = Field( + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() +model_rebuild(WebhookIssueCommentEdited) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssueCommentEdited",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0567.py b/githubkit/versions/ghec_v2022_11_28/models/group_0567.py index 0a173e32e..716038c7e 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,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,11 +18,78 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0575 import WebhookIssueCommentEditedPropIssueMergedMilestone +from .group_0576 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp +from .group_0569 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssignee, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, +) + + +class WebhookIssueCommentEditedPropIssue(GitHubModel): + """WebhookIssueCommentEditedPropIssue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Union[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: List[WebhookIssueCommentEditedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems] = Field() + labels_url: str = Field() + locked: bool = Field() + milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestone, None] = Field() + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentEditedPropIssueMergedReactions = Field() + repository_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentEditedPropIssueMergedUser = Field() + -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" +class WebhookIssueCommentEditedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedAssignees""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -42,69 +110,63 @@ class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +class WebhookIssueCommentEditedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedReactions""" - The set of permissions for the GitHub app - """ + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + +class WebhookIssueCommentEditedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -model_rebuild( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentEditedPropIssue) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedUser) __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookIssueCommentEditedPropIssue", + "WebhookIssueCommentEditedPropIssueMergedAssignees", + "WebhookIssueCommentEditedPropIssueMergedReactions", + "WebhookIssueCommentEditedPropIssueMergedUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0568.py b/githubkit/versions/ghec_v2022_11_28/models/group_0568.py index e08ecc56d..5e8f48fd5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0568.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0568.py @@ -18,93 +18,174 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0567 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0571 import WebhookIssueCommentEditedPropIssueAllof0PropMilestone +from .group_0573 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0569 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssignee, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, ) -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): + """Issue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: List[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels: Missing[List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) node_id: str = Field() - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUser, None] = Field( + title="User" + ) + + +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropUser) -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0", + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentEditedPropIssueAllof0PropReactions", + "WebhookIssueCommentEditedPropIssueAllof0PropUser", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0569.py b/githubkit/versions/ghec_v2022_11_28/models/group_0569.py index 61298c7a7..65b348d39 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0569.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0569.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -18,53 +19,7 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookIssueCommentEditedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssignee, None] = Field( - title="User" - ) - assignees: Missing[ - List[Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: List[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentEditedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentEditedPropIssueAllof1PropUser] = Field( - default=UNSET - ) - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): +class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -92,11 +47,7 @@ class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems(GitHubModel): +class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -110,68 +61,22 @@ class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssueCommentEditedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" - +class WebhookIssueCommentEditedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" -class WebhookIssueCommentEditedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPullRequest) __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1", - "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentEditedPropIssueAllof1PropReactions", - "WebhookIssueCommentEditedPropIssueAllof1PropUser", + "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", + "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0570.py b/githubkit/versions/ghec_v2022_11_28/models/group_0570.py index b0f425972..265267a2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0570.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0570.py @@ -9,39 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0565 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator +class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" -class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssueCommentEditedPropIssueMergedMilestone) - -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator) + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator",) 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 a021f7929..81cc24c39 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0571.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0571.py @@ -10,95 +10,41 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0567 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0570 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator -class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentEditedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - created_at: Union[datetime, None] = Field() + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels_url: str = Field() node_id: str = Field() - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0572.py b/githubkit/versions/ghec_v2022_11_28/models/group_0572.py index e9b0c4832..0a173e32e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0572.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0572.py @@ -17,49 +17,94 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0416 import WebhooksUser -from .group_0425 import WebhooksIssue -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks - - -class WebhookIssuesAssigned(GitHubModel): - """issues assigned event""" - - action: Literal["assigned"] = Field(description="The action that was performed.") - assignee: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhooksIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + 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(WebhookIssuesAssigned) +model_rebuild( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssuesAssigned",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) 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 b05d9a819..57b71aac1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0573.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0573.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,46 +18,93 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0574 import WebhookIssuesClosedPropIssue +from .group_0572 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesClosed(GitHubModel): - """issues closed event""" +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - action: Literal["closed"] = Field(description="The action that was performed.") - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesClosedPropIssue = Field( - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to 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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesClosed) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ("WebhookIssuesClosed",) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp",) 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 b0d084efd..61298c7a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0574.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0574.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,104 +17,55 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0582 import WebhookIssuesClosedPropIssueMergedMilestone -from .group_0580 import WebhookIssuesClosedPropIssueAllof0PropPullRequest -from .group_0583 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp +class WebhookIssueCommentEditedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1""" -class WebhookIssuesClosedPropIssue(GitHubModel): - """WebhookIssuesClosedPropIssue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Missing[Union[WebhookIssuesClosedPropIssueMergedAssignee, None]] = Field( - default=UNSET - ) - assignees: List[WebhookIssuesClosedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesClosedPropIssueMergedLabels]] = Field( - default=UNSET + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssignee, None] = Field( + title="User" ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesClosedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() + assignees: Missing[ + List[Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: List[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, None] + Union[WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, None] ] = Field(default=UNSET) - pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( + reactions: Missing[WebhookIssueCommentEditedPropIssueAllof1PropReactions] = Field( default=UNSET ) - reactions: WebhookIssuesClosedPropIssueMergedReactions = Field() - repository_url: str = Field() + repository_url: Missing[str] = Field(default=UNSET) state: Literal["open", "closed"] = Field( description="State of the issue; either 'open' or 'closed'" ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: 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( + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentEditedPropIssueAllof1PropUser] = Field( default=UNSET ) - url: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesClosedPropIssueMergedAssignees""" +class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -142,8 +92,12 @@ class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesClosedPropIssueMergedLabels""" +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems(GitHubModel): + """Label""" color: str = Field( description="6-character hex code, without the leading #, identifying the color" @@ -156,36 +110,41 @@ class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesClosedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesClosedPropIssueMergedReactions""" +class WebhookIssueCommentEditedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" -class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): - """WebhookIssuesClosedPropIssueMergedUser""" + +class WebhookIssueCommentEditedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -193,24 +152,26 @@ class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssue) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) -model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) -model_rebuild(WebhookIssuesClosedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropUser) __all__ = ( - "WebhookIssuesClosedPropIssue", - "WebhookIssuesClosedPropIssueMergedAssignee", - "WebhookIssuesClosedPropIssueMergedAssignees", - "WebhookIssuesClosedPropIssueMergedLabels", - "WebhookIssuesClosedPropIssueMergedReactions", - "WebhookIssuesClosedPropIssueMergedUser", + "WebhookIssueCommentEditedPropIssueAllof1", + "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentEditedPropIssueAllof1PropReactions", + "WebhookIssueCommentEditedPropIssueAllof1PropUser", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0575.py b/githubkit/versions/ghec_v2022_11_28/models/group_0575.py index eb9161f11..0ed018daa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0575.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0575.py @@ -10,218 +10,38 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0577 import WebhookIssuesClosedPropIssueAllof0PropMilestone -from .group_0580 import WebhookIssuesClosedPropIssueAllof0PropPullRequest -from .group_0579 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp +from .group_0570 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesClosedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof0PropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: List[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() + closed_issues: int = Field() created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesClosedPropIssueAllof0PropLabelsItems]] = Field( - default=UNSET - ) labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesClosedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - 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") + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") - - -class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -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) - - -class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() url: str = Field() -class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesClosedPropIssueAllof0) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedMilestone) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0", - "WebhookIssuesClosedPropIssueAllof0PropAssignee", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof0PropReactions", - "WebhookIssuesClosedPropIssueAllof0PropUser", -) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0576.py b/githubkit/versions/ghec_v2022_11_28/models/group_0576.py index 67637d8b2..bf1f53807 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0576.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0576.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,35 +18,87 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0572 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - url: Missing[str] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0577.py b/githubkit/versions/ghec_v2022_11_28/models/group_0577.py index 5d6b0b07f..ea065aff9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0577.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0577.py @@ -9,42 +9,57 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0576 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator +from .group_0420 import WebhooksUser +from .group_0429 import WebhooksIssue +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookIssuesClosedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookIssuesAssigned(GitHubModel): + """issues assigned event""" - 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") + 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)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +model_rebuild(WebhookIssuesAssigned) + +__all__ = ("WebhookIssuesAssigned",) 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 0f1382f9f..0021cd66b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0578.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0578.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,90 +17,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0579 import WebhookIssuesClosedPropIssue -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookIssuesClosed(GitHubModel): + """issues closed event""" - -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + action: Literal["closed"] = Field(description="The action that was performed.") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesClosedPropIssue = Field( + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - 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(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssuesClosed) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssuesClosed",) 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 17f01dac3..27c9ed799 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0579.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0579.py @@ -18,94 +18,199 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0578 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0587 import WebhookIssuesClosedPropIssueMergedMilestone +from .group_0585 import WebhookIssuesClosedPropIssueAllof0PropPullRequest +from .group_0588 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssuesClosedPropIssue(GitHubModel): + """WebhookIssuesClosedPropIssue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + 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: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels: Missing[List[WebhookIssuesClosedPropIssueMergedLabels]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesClosedPropIssueMergedMilestone, None] = Field() + node_id: str = Field() + 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() + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssuesClosedPropIssueMergedUser = Field() + + +class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): + """WebhookIssuesClosedPropIssueMergedAssignee""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): + """WebhookIssuesClosedPropIssueMergedAssignees""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): + """WebhookIssuesClosedPropIssueMergedLabels""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - 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" + 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 ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosedPropIssue) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) +model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) +model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) +model_rebuild(WebhookIssuesClosedPropIssueMergedUser) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ( + "WebhookIssuesClosedPropIssue", + "WebhookIssuesClosedPropIssueMergedAssignee", + "WebhookIssuesClosedPropIssueMergedAssignees", + "WebhookIssuesClosedPropIssueMergedLabels", + "WebhookIssuesClosedPropIssueMergedReactions", + "WebhookIssuesClosedPropIssueMergedUser", +) 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 dbed44f7e..594994b6a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0580.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0580.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,17 +18,210 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0582 import WebhookIssuesClosedPropIssueAllof0PropMilestone +from .group_0585 import WebhookIssuesClosedPropIssueAllof0PropPullRequest +from .group_0584 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp -class WebhookIssuesClosedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - diff_url: Missing[str] = Field(default=UNSET) +class WebhookIssuesClosedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof0PropAssignee, None]] = ( + Field(default=UNSET, title="User") + ) + assignees: List[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesClosedPropIssueAllof0PropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesClosedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") + + +class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +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) + + +class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - 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) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssuesClosedPropIssueAllof0) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropUser) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0", + "WebhookIssuesClosedPropIssueAllof0PropAssignee", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof0PropReactions", + "WebhookIssuesClosedPropIssueAllof0PropUser", +) 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 61782b677..67637d8b2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0581.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0581.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,97 +18,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookIssuesClosedPropIssueAllof1(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1""" - - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( - Field(default=UNSET) - ) - assignees: Missing[ - List[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Union[str, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - List[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - locked: Missing[bool] = Field(default=UNSET) - milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( - Field(default=UNSET) - ) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) - performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssuesClosedPropIssueAllof1PropReactions] = Field( - default=UNSET - ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["closed", "open"] = Field() - timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesClosedPropIssueAllof1PropUser] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropUser""" +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -116,26 +40,12 @@ class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof1) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropUser) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof1", - "WebhookIssuesClosedPropIssueAllof1PropAssignee", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof1PropMilestone", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesClosedPropIssueAllof1PropReactions", - "WebhookIssuesClosedPropIssueAllof1PropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0582.py b/githubkit/versions/ghec_v2022_11_28/models/group_0582.py index 8e290c5a5..a8e2f5e8d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0582.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0582.py @@ -16,11 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0576 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator +from .group_0581 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueMergedMilestone""" +class WebhookIssuesClosedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ closed_at: Union[datetime, None] = Field() closed_issues: int = Field() @@ -42,6 +45,6 @@ class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): url: str = Field() -model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0583.py b/githubkit/versions/ghec_v2022_11_28/models/group_0583.py index 9c3fab9c1..0f1382f9f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0583.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0583.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,88 +17,90 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0578 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ -class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "reminder", - "pull_request_review_thread", - ] - ] - ] = 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" + 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 ) - updated_at: Union[datetime, None] = 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(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner) +model_rebuild( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) 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 e49365b34..dee02a7d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0584.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0584.py @@ -18,237 +18,13 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks - - -class WebhookIssuesDeleted(GitHubModel): - """issues deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesDeletedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookIssuesDeletedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesDeletedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesDeletedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +from .group_0583 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -307,7 +83,9 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "security_and_analysis", "reminder", + "pull_request_review_thread", ] ] ] = Field(default=UNSET, description="The list of events for the GitHub app") @@ -317,10 +95,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + 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" @@ -328,158 +106,6 @@ class actors within GitHub. 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) - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = 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) - - -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", - "WebhookIssuesDeletedPropIssue", - "WebhookIssuesDeletedPropIssuePropAssignee", - "WebhookIssuesDeletedPropIssuePropAssigneesItems", - "WebhookIssuesDeletedPropIssuePropLabelsItems", - "WebhookIssuesDeletedPropIssuePropMilestone", - "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDeletedPropIssuePropPullRequest", - "WebhookIssuesDeletedPropIssuePropReactions", - "WebhookIssuesDeletedPropIssuePropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) 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 1a79344bd..dbed44f7e 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,8 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from pydantic import Field @@ -18,408 +18,9 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0426 import WebhooksMilestone -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks - -class WebhookIssuesDemilestoned(GitHubModel): - """issues demilestoned event""" - - action: Literal["demilestoned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesDemilestonedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - milestone: Missing[WebhooksMilestone] = Field( - default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookIssuesDemilestonedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesDemilestonedPropIssuePropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: List[ - Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - List[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesDemilestonedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesDemilestonedPropIssuePropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesDemilestonedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesDemilestonedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesDemilestonedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = 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) - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesDemilestonedPropIssuePropPullRequest""" +class WebhookIssuesClosedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -428,77 +29,6 @@ class WebhookIssuesDemilestonedPropIssuePropPullRequest(GitHubModel): 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 - ) - url: 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) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) -__all__ = ( - "WebhookIssuesDemilestoned", - "WebhookIssuesDemilestonedPropIssue", - "WebhookIssuesDemilestonedPropIssuePropAssignee", - "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", - "WebhookIssuesDemilestonedPropIssuePropLabelsItems", - "WebhookIssuesDemilestonedPropIssuePropMilestone", - "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDemilestonedPropIssuePropPullRequest", - "WebhookIssuesDemilestonedPropIssuePropReactions", - "WebhookIssuesDemilestonedPropIssuePropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",) 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 0ec8caa53..61782b677 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0586.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0586.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,466 +17,98 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0420 import WebhooksLabel -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +class WebhookIssuesClosedPropIssueAllof1(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1""" -class WebhookIssuesEdited(GitHubModel): - """issues edited event""" - - action: Literal["edited"] = Field() - changes: WebhookIssuesEditedPropChanges = Field( - description="The changes to the issue." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesEditedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookIssuesEditedPropChanges(GitHubModel): - """WebhookIssuesEditedPropChanges - - The changes to the issue. - """ - - body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) - - -class WebhookIssuesEditedPropChangesPropBody(GitHubModel): - """WebhookIssuesEditedPropChangesPropBody""" - - from_: str = Field(alias="from", description="The previous version of the body.") - - -class WebhookIssuesEditedPropChangesPropTitle(GitHubModel): - """WebhookIssuesEditedPropChangesPropTitle""" - - from_: str = Field(alias="from", description="The previous version of the title.") - - -class WebhookIssuesEditedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesEditedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( - default=UNSET + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( + Field(default=UNSET) ) - reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - 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) - - -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) + assignees: Missing[ + List[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Union[str, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class 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" + id: Missing[int] = Field(default=UNSET) + labels: Missing[ + List[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + locked: Missing[bool] = Field(default=UNSET) + milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( + Field(default=UNSET) ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class 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( + 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 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. - """ +class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "pull_request_review_thread", - "reminder", - ] - ] - ] = 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 WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" -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) +class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions +class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" - The set of permissions for the GitHub app - """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) +class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" -class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesEditedPropIssuePropPullRequest""" +class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class 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""" +class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropUser""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -485,44 +116,26 @@ class WebhookIssuesEditedPropIssuePropUser(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) -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) +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__ = ( - "WebhookIssuesEdited", - "WebhookIssuesEditedPropChanges", - "WebhookIssuesEditedPropChangesPropBody", - "WebhookIssuesEditedPropChangesPropTitle", - "WebhookIssuesEditedPropIssue", - "WebhookIssuesEditedPropIssuePropAssignee", - "WebhookIssuesEditedPropIssuePropAssigneesItems", - "WebhookIssuesEditedPropIssuePropLabelsItems", - "WebhookIssuesEditedPropIssuePropMilestone", - "WebhookIssuesEditedPropIssuePropMilestonePropCreator", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesEditedPropIssuePropPullRequest", - "WebhookIssuesEditedPropIssuePropReactions", - "WebhookIssuesEditedPropIssuePropUser", + "WebhookIssuesClosedPropIssueAllof1", + "WebhookIssuesClosedPropIssueAllof1PropAssignee", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof1PropMilestone", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssuesClosedPropIssueAllof1PropReactions", + "WebhookIssuesClosedPropIssueAllof1PropUser", ) 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 c1bd25151..6c8ba81aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0587.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0587.py @@ -10,209 +10,23 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0420 import WebhooksLabel -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0581 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesLabeled(GitHubModel): - """issues labeled event""" - - action: Literal["labeled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesLabeledPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookIssuesLabeledPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesLabeledPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesLabeledPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -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. - """ +class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueMergedMilestone""" closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreator, None] = Field( - title="User" + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( + Field(title="User") ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -228,271 +42,6 @@ class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): 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) - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "reminder", - ] - ] - ] = 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) - - -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 - ) - url: 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) +model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) -__all__ = ( - "WebhookIssuesLabeled", - "WebhookIssuesLabeledPropIssue", - "WebhookIssuesLabeledPropIssuePropAssignee", - "WebhookIssuesLabeledPropIssuePropAssigneesItems", - "WebhookIssuesLabeledPropIssuePropLabelsItems", - "WebhookIssuesLabeledPropIssuePropMilestone", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLabeledPropIssuePropPullRequest", - "WebhookIssuesLabeledPropIssuePropReactions", - "WebhookIssuesLabeledPropIssuePropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) 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 a8f4452f4..4c732c032 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0588.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0588.py @@ -18,244 +18,14 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks - - -class WebhookIssuesLocked(GitHubModel): - """issues locked event""" - - action: Literal["locked"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesLockedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookIssuesLockedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesLockedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesLockedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[Union[WebhookIssuesLockedPropIssuePropLabelsItems, None]]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Literal[True] = Field() - milestone: Union[WebhookIssuesLockedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesLockedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesLockedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLockedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesLockedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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) - - -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) - +from .group_0583 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -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. - """ +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() @@ -307,8 +77,9 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", - "reminder", "security_and_analysis", + "reminder", + "pull_request_review_thread", ] ] ] = Field(default=UNSET, description="The list of events for the GitHub app") @@ -318,10 +89,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions + 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" @@ -329,156 +100,6 @@ class actors within GitHub. 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) - +model_rebuild(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) -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) - - -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", - "WebhookIssuesLockedPropIssue", - "WebhookIssuesLockedPropIssuePropAssignee", - "WebhookIssuesLockedPropIssuePropAssigneesItems", - "WebhookIssuesLockedPropIssuePropLabelsItems", - "WebhookIssuesLockedPropIssuePropMilestone", - "WebhookIssuesLockedPropIssuePropMilestonePropCreator", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLockedPropIssuePropPullRequest", - "WebhookIssuesLockedPropIssuePropReactions", - "WebhookIssuesLockedPropIssuePropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) 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 57509e3e5..cc79883cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0589.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0589.py @@ -18,18 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0426 import WebhooksMilestone -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookIssuesMilestoned(GitHubModel): - """issues milestoned event""" +class WebhookIssuesDeleted(GitHubModel): + """issues deleted event""" - action: Literal["milestoned"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,14 +39,10 @@ class WebhookIssuesMilestoned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesMilestonedPropIssue = Field( + issue: WebhookIssuesDeletedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -63,7 +58,7 @@ class WebhookIssuesMilestoned(GitHubModel): ) -class WebhookIssuesMilestonedPropIssue(GitHubModel): +class WebhookIssuesDeletedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/enterprise- @@ -73,10 +68,10 @@ class WebhookIssuesMilestonedPropIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesMilestonedPropIssuePropAssignee, None]] = ( - Field(default=UNSET, title="User") + assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" ) - assignees: List[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItems, None]] = ( + assignees: List[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( Field() ) author_association: Literal[ @@ -101,28 +96,28 @@ class WebhookIssuesMilestonedPropIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[ - List[Union[WebhookIssuesMilestonedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) + labels: Missing[List[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestone, None] = Field( + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, None] + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - pull_request: Missing[WebhookIssuesMilestonedPropIssuePropPullRequest] = Field( + pull_request: Missing[WebhookIssuesDeletedPropIssuePropPullRequest] = Field( default=UNSET ) - reactions: WebhookIssuesMilestonedPropIssuePropReactions = Field(title="Reactions") + reactions: WebhookIssuesDeletedPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" @@ -132,10 +127,10 @@ class WebhookIssuesMilestonedPropIssue(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesMilestonedPropIssuePropUser, None] = Field(title="User") + user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesMilestonedPropIssuePropAssignee(GitHubModel): +class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -161,7 +156,7 @@ class WebhookIssuesMilestonedPropIssuePropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesMilestonedPropIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -187,7 +182,7 @@ class WebhookIssuesMilestonedPropIssuePropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesMilestonedPropIssuePropLabelsItems(GitHubModel): +class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -201,7 +196,7 @@ class WebhookIssuesMilestonedPropIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): +class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -210,8 +205,8 @@ class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( + title="User" ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -227,7 +222,7 @@ class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesMilestonedPropIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -249,13 +244,11 @@ class WebhookIssuesMilestonedPropIssuePropMilestonePropCreator(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 WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -324,10 +317,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + 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" @@ -335,7 +328,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -361,10 +354,10 @@ class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions( +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -388,9 +381,7 @@ class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions( 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_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 @@ -412,8 +403,8 @@ class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions( workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesMilestonedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesMilestonedPropIssuePropPullRequest""" +class WebhookIssuesDeletedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesDeletedPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -422,7 +413,7 @@ class WebhookIssuesMilestonedPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesMilestonedPropIssuePropReactions(GitHubModel): +class WebhookIssuesDeletedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -437,7 +428,7 @@ class WebhookIssuesMilestonedPropIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesMilestonedPropIssuePropUser(GitHubModel): +class WebhookIssuesDeletedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -463,32 +454,32 @@ class WebhookIssuesMilestonedPropIssuePropUser(GitHubModel): url: 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) +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__ = ( - "WebhookIssuesMilestoned", - "WebhookIssuesMilestonedPropIssue", - "WebhookIssuesMilestonedPropIssuePropAssignee", - "WebhookIssuesMilestonedPropIssuePropAssigneesItems", - "WebhookIssuesMilestonedPropIssuePropLabelsItems", - "WebhookIssuesMilestonedPropIssuePropMilestone", - "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesMilestonedPropIssuePropPullRequest", - "WebhookIssuesMilestonedPropIssuePropReactions", - "WebhookIssuesMilestonedPropIssuePropUser", + "WebhookIssuesDeleted", + "WebhookIssuesDeletedPropIssue", + "WebhookIssuesDeletedPropIssuePropAssignee", + "WebhookIssuesDeletedPropIssuePropAssigneesItems", + "WebhookIssuesDeletedPropIssuePropLabelsItems", + "WebhookIssuesDeletedPropIssuePropMilestone", + "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDeletedPropIssuePropPullRequest", + "WebhookIssuesDeletedPropIssuePropReactions", + "WebhookIssuesDeletedPropIssuePropUser", ) 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 59bda40a7..215c4f168 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0590.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0590.py @@ -16,20 +16,20 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0430 import WebhooksMilestone +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookIssuesOpened(GitHubModel): - """issues opened event""" +class WebhookIssuesDemilestoned(GitHubModel): + """issues demilestoned event""" - action: Literal["opened"] = Field() - changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) + action: Literal["demilestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,10 +40,15 @@ class WebhookIssuesOpened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesOpenedPropIssue = Field( + issue: WebhookIssuesDemilestonedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) + milestone: Missing[WebhooksMilestone] = Field( + default=UNSET, + title="Milestone", + description="A collection of related issues and pull requests.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -59,7 +64,7 @@ class WebhookIssuesOpened(GitHubModel): ) -class WebhookIssuesOpenedPropIssue(GitHubModel): +class WebhookIssuesDemilestonedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/enterprise- @@ -69,12 +74,12 @@ class WebhookIssuesOpenedPropIssue(GitHubModel): 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() + assignee: Missing[Union[WebhookIssuesDemilestonedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") ) + assignees: List[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItems, None] + ] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -97,28 +102,30 @@ class WebhookIssuesOpenedPropIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesOpenedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) + labels: Missing[ + List[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesOpenedPropIssuePropMilestone, None] = Field( + milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, None] + Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( + pull_request: Missing[WebhookIssuesDemilestonedPropIssuePropPullRequest] = Field( default=UNSET ) - reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") + reactions: WebhookIssuesDemilestonedPropIssuePropReactions = Field( + title="Reactions" + ) repository_url: str = Field() state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" @@ -128,10 +135,10 @@ class WebhookIssuesOpenedPropIssue(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") + user: Union[WebhookIssuesDemilestonedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): +class WebhookIssuesDemilestonedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -153,11 +160,13 @@ class WebhookIssuesOpenedPropIssuePropAssignee(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 WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesDemilestonedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -179,11 +188,13 @@ class WebhookIssuesOpenedPropIssuePropAssigneesItems(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 WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): +class WebhookIssuesDemilestonedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -197,7 +208,7 @@ class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): +class WebhookIssuesDemilestonedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -206,8 +217,8 @@ class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( - title="User" + creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -223,7 +234,7 @@ class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesOpenedPropIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -251,7 +262,7 @@ class WebhookIssuesOpenedPropIssuePropMilestonePropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -310,9 +321,6 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", - "security_and_analysis", - "pull_request_review_thread", - "reminder", ] ] ] = Field(default=UNSET, description="The list of events for the GitHub app") @@ -322,10 +330,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + 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" @@ -333,7 +341,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -359,8 +367,10 @@ class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel url: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -408,8 +418,8 @@ class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions(GitHu workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropIssuePropPullRequest""" +class WebhookIssuesDemilestonedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesDemilestonedPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -418,7 +428,7 @@ class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): +class WebhookIssuesDemilestonedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -433,323 +443,7 @@ class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): url: str = 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) - - -class WebhookIssuesOpenedPropChanges(GitHubModel): - """WebhookIssuesOpenedPropChanges""" - - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( - title="Repository", description="A git repository" - ) - - -class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None] = Field( - title="User" - ) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): +class WebhookIssuesDemilestonedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -771,370 +465,40 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwn site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(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 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( + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( default=UNSET ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class 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) - - -class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether the repository has discussions enabled." - ) - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, description="Whether to require commit signoff." - ) - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesOpened) -model_rebuild(WebhookIssuesOpenedPropIssue) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesOpenedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropIssuePropUser) -model_rebuild(WebhookIssuesOpenedPropChanges) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssue) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner -) +model_rebuild(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( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions ) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropReactions) +model_rebuild(WebhookIssuesDemilestonedPropIssuePropUser) __all__ = ( - "WebhookIssuesOpened", - "WebhookIssuesOpenedPropIssue", - "WebhookIssuesOpenedPropIssuePropAssignee", - "WebhookIssuesOpenedPropIssuePropAssigneesItems", - "WebhookIssuesOpenedPropIssuePropLabelsItems", - "WebhookIssuesOpenedPropIssuePropMilestone", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropIssuePropPullRequest", - "WebhookIssuesOpenedPropIssuePropReactions", - "WebhookIssuesOpenedPropIssuePropUser", - "WebhookIssuesOpenedPropChanges", - "WebhookIssuesOpenedPropChangesPropOldIssue", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", - "WebhookIssuesOpenedPropChangesPropOldRepository", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", + "WebhookIssuesDemilestoned", + "WebhookIssuesDemilestonedPropIssue", + "WebhookIssuesDemilestonedPropIssuePropAssignee", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", + "WebhookIssuesDemilestonedPropIssuePropLabelsItems", + "WebhookIssuesDemilestonedPropIssuePropMilestone", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDemilestonedPropIssuePropPullRequest", + "WebhookIssuesDemilestonedPropIssuePropReactions", + "WebhookIssuesDemilestonedPropIssuePropUser", ) 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 cb7da48f8..07711b9d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0591.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0591.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,18 +18,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0427 import WebhooksIssue2 -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0424 import WebhooksLabel +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookIssuesPinned(GitHubModel): - """issues pinned event""" +class WebhookIssuesEdited(GitHubModel): + """issues edited event""" - action: Literal["pinned"] = Field() + action: Literal["edited"] = Field() + changes: WebhookIssuesEditedPropChanges = Field( + description="The changes to the issue." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +43,11 @@ class 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: WebhookIssuesEditedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -58,6 +63,466 @@ class WebhookIssuesPinned(GitHubModel): ) -model_rebuild(WebhookIssuesPinned) +class WebhookIssuesEditedPropChanges(GitHubModel): + """WebhookIssuesEditedPropChanges + + The changes to the issue. + """ + + body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookIssuesEditedPropChangesPropBody(GitHubModel): + """WebhookIssuesEditedPropChangesPropBody""" + + from_: str = Field(alias="from", description="The previous version of the body.") + + +class WebhookIssuesEditedPropChangesPropTitle(GitHubModel): + """WebhookIssuesEditedPropChangesPropTitle""" + + from_: str = Field(alias="from", description="The previous version of the title.") + + +class WebhookIssuesEditedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesEditedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesEditedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +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) + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "security_and_analysis", + "pull_request_review_thread", + "reminder", + ] + ] + ] = 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) + + +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) + + +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__ = ("WebhookIssuesPinned",) +__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_0592.py b/githubkit/versions/ghec_v2022_11_28/models/group_0592.py index 01c085a30..54f07eb18 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0592.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0592.py @@ -18,17 +18,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0424 import WebhooksLabel +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookIssuesReopened(GitHubModel): - """issues reopened event""" +class WebhookIssuesLabeled(GitHubModel): + """issues labeled event""" - action: Literal["reopened"] = Field() + action: Literal["labeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +40,11 @@ class WebhookIssuesReopened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesReopenedPropIssue = Field( + issue: WebhookIssuesLabeledPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -58,7 +60,7 @@ class WebhookIssuesReopened(GitHubModel): ) -class WebhookIssuesReopenedPropIssue(GitHubModel): +class WebhookIssuesLabeledPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/enterprise- @@ -68,10 +70,10 @@ class WebhookIssuesReopenedPropIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesReopenedPropIssuePropAssignee, None]] = Field( + assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( default=UNSET, title="User" ) - assignees: List[Union[WebhookIssuesReopenedPropIssuePropAssigneesItems, None]] = ( + assignees: List[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( Field() ) author_association: Literal[ @@ -96,41 +98,41 @@ class WebhookIssuesReopenedPropIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[ - List[Union[WebhookIssuesReopenedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) + labels: Missing[List[WebhookIssuesLabeledPropIssuePropLabelsItems]] = Field( + default=UNSET + ) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesReopenedPropIssuePropMilestone, None] = Field( + milestone: Union[WebhookIssuesLabeledPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, None] + Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - pull_request: Missing[WebhookIssuesReopenedPropIssuePropPullRequest] = Field( + pull_request: Missing[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( default=UNSET ) - reactions: WebhookIssuesReopenedPropIssuePropReactions = Field(title="Reactions") + reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" ) state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesReopenedPropIssuePropUser, None] = Field(title="User") + user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): +class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -152,11 +154,13 @@ class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -184,7 +188,7 @@ class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): +class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -198,7 +202,7 @@ class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): +class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -207,8 +211,8 @@ class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") + creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreator, None] = Field( + title="User" ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -224,7 +228,7 @@ class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesLabeledPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -252,7 +256,7 @@ class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -322,10 +326,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + 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" @@ -333,7 +337,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -359,10 +363,10 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -398,9 +402,7 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( pages: Missing[Literal["read", "write"]] = Field(default=UNSET) pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) @@ -412,8 +414,8 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesReopenedPropIssuePropPullRequest""" +class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesLabeledPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -422,7 +424,7 @@ class WebhookIssuesReopenedPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropReactions(GitHubModel): +class WebhookIssuesLabeledPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -437,7 +439,7 @@ class WebhookIssuesReopenedPropIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesReopenedPropIssuePropUser(GitHubModel): +class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -465,32 +467,32 @@ class WebhookIssuesReopenedPropIssuePropUser(GitHubModel): url: 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) +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__ = ( - "WebhookIssuesReopened", - "WebhookIssuesReopenedPropIssue", - "WebhookIssuesReopenedPropIssuePropAssignee", - "WebhookIssuesReopenedPropIssuePropAssigneesItems", - "WebhookIssuesReopenedPropIssuePropLabelsItems", - "WebhookIssuesReopenedPropIssuePropMilestone", - "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesReopenedPropIssuePropPullRequest", - "WebhookIssuesReopenedPropIssuePropReactions", - "WebhookIssuesReopenedPropIssuePropUser", + "WebhookIssuesLabeled", + "WebhookIssuesLabeledPropIssue", + "WebhookIssuesLabeledPropIssuePropAssignee", + "WebhookIssuesLabeledPropIssuePropAssigneesItems", + "WebhookIssuesLabeledPropIssuePropLabelsItems", + "WebhookIssuesLabeledPropIssuePropMilestone", + "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLabeledPropIssuePropPullRequest", + "WebhookIssuesLabeledPropIssuePropReactions", + "WebhookIssuesLabeledPropIssuePropUser", ) 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 9497e008b..c45648e88 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0593.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0593.py @@ -16,21 +16,19 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0427 import WebhooksIssue2 -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookIssuesTransferred(GitHubModel): - """issues transferred event""" +class WebhookIssuesLocked(GitHubModel): + """issues locked event""" - action: Literal["transferred"] = Field() - changes: WebhookIssuesTransferredPropChanges = Field() + action: Literal["locked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,7 +39,7 @@ class WebhookIssuesTransferred(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue2 = Field( + issue: WebhookIssuesLockedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) @@ -60,19 +58,7 @@ class WebhookIssuesTransferred(GitHubModel): ) -class WebhookIssuesTransferredPropChanges(GitHubModel): - """WebhookIssuesTransferredPropChanges""" - - new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", - ) - new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( - title="Repository", description="A git repository" - ) - - -class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): +class WebhookIssuesLockedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/enterprise- @@ -82,12 +68,12 @@ class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, None] - ] = Field() + assignee: Missing[Union[WebhookIssuesLockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesLockedPropIssuePropAssigneesItems, None]] = ( + Field() + ) author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -110,35 +96,28 @@ class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[ - List[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems] - ] = Field(default=UNSET) + labels: Missing[List[Union[WebhookIssuesLockedPropIssuePropLabelsItems, None]]] = ( + Field(default=UNSET) + ) labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, None - ] = 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[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, - None, - ] + Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - pull_request: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest - ] = Field(default=UNSET) - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( - title="Reactions" + pull_request: Missing[WebhookIssuesLockedPropIssuePropPullRequest] = Field( + default=UNSET ) + reactions: WebhookIssuesLockedPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" @@ -148,12 +127,10 @@ class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUser, None] = Field( - title="User" - ) + user: Union[WebhookIssuesLockedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): +class WebhookIssuesLockedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -179,7 +156,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesLockedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -205,7 +182,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems(GitHubMo url: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel): +class WebhookIssuesLockedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -219,7 +196,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel url: str = Field(description="URL for the label") -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): +class WebhookIssuesLockedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -228,9 +205,9 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, None - ] = Field(title="User") + creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -245,9 +222,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( - GitHubModel -): +class WebhookIssuesLockedPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -273,9 +248,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( url: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp( - GitHubModel -): +class WebhookIssuesLockedPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -334,6 +307,8 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "reminder", + "security_and_analysis", ] ] ] = Field(default=UNSET, description="The list of events for the GitHub app") @@ -343,11 +318,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, - None, + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions + 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" @@ -355,9 +329,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -383,11 +355,8 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr url: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -433,8 +402,8 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" +class WebhookIssuesLockedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesLockedPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -443,7 +412,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel url: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): +class WebhookIssuesLockedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -458,7 +427,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): +class WebhookIssuesLockedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -484,242 +453,32 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesTransferred) -model_rebuild(WebhookIssuesTransferredPropChanges) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssue) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropReactions) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) +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__ = ( - "WebhookIssuesTransferred", - "WebhookIssuesTransferredPropChanges", - "WebhookIssuesTransferredPropChangesPropNewIssue", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", - "WebhookIssuesTransferredPropChangesPropNewRepository", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", + "WebhookIssuesLocked", + "WebhookIssuesLockedPropIssue", + "WebhookIssuesLockedPropIssuePropAssignee", + "WebhookIssuesLockedPropIssuePropAssigneesItems", + "WebhookIssuesLockedPropIssuePropLabelsItems", + "WebhookIssuesLockedPropIssuePropMilestone", + "WebhookIssuesLockedPropIssuePropMilestonePropCreator", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLockedPropIssuePropPullRequest", + "WebhookIssuesLockedPropIssuePropReactions", + "WebhookIssuesLockedPropIssuePropUser", ) 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 de4decafb..ca9f0e84c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0594.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0594.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,22 +18,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0425 import WebhooksIssue -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0428 import WebhooksUserMannequin -from .group_0404 import OrganizationSimpleWebhooks +from .group_0430 import WebhooksMilestone +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookIssuesUnassigned(GitHubModel): - """issues unassigned event""" +class WebhookIssuesMilestoned(GitHubModel): + """issues milestoned event""" - action: Literal["unassigned"] = Field(description="The action that was performed.") - assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( - default=UNSET, title="User" - ) + action: Literal["milestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,10 +40,14 @@ class WebhookIssuesUnassigned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue = Field( + issue: WebhookIssuesMilestonedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -62,6 +63,432 @@ class WebhookIssuesUnassigned(GitHubModel): ) -model_rebuild(WebhookIssuesUnassigned) +class WebhookIssuesMilestonedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesMilestonedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") + ) + assignees: List[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + List[Union[WebhookIssuesMilestonedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesMilestonedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesMilestonedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesMilestonedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesMilestonedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesMilestonedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +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__ = ("WebhookIssuesUnassigned",) +__all__ = ( + "WebhookIssuesMilestoned", + "WebhookIssuesMilestonedPropIssue", + "WebhookIssuesMilestonedPropIssuePropAssignee", + "WebhookIssuesMilestonedPropIssuePropAssigneesItems", + "WebhookIssuesMilestonedPropIssuePropLabelsItems", + "WebhookIssuesMilestonedPropIssuePropMilestone", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesMilestonedPropIssuePropPullRequest", + "WebhookIssuesMilestonedPropIssuePropReactions", + "WebhookIssuesMilestonedPropIssuePropUser", +) 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 a88a71be8..40f3454b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0595.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0595.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0420 import WebhooksLabel -from .group_0425 import WebhooksIssue -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookIssuesUnlabeled(GitHubModel): - """issues unlabeled event""" +class WebhookIssuesOpened(GitHubModel): + """issues opened event""" - action: Literal["unlabeled"] = Field() + action: Literal["opened"] = Field() + changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,11 +40,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: WebhookIssuesOpenedPropIssue = 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", @@ -60,6 +59,1082 @@ class WebhookIssuesUnlabeled(GitHubModel): ) -model_rebuild(WebhookIssuesUnlabeled) +class WebhookIssuesOpenedPropIssue(GitHubModel): + """Issue -__all__ = ("WebhookIssuesUnlabeled",) + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesOpenedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesOpenedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesOpenedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesOpenedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "security_and_analysis", + "pull_request_review_thread", + "reminder", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class 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) + + +class WebhookIssuesOpenedPropChanges(GitHubModel): + """WebhookIssuesOpenedPropChanges""" + + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( + title="Repository", description="A git repository" + ) + + +class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: List[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None] = Field( + title="User" + ) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio + ns + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class 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) + + +class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether the repository has discussions enabled." + ) + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, description="Whether to require commit signoff." + ) + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesOpened) +model_rebuild(WebhookIssuesOpenedPropIssue) +model_rebuild(WebhookIssuesOpenedPropIssuePropAssignee) +model_rebuild(WebhookIssuesOpenedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesOpenedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesOpenedPropIssuePropMilestone) +model_rebuild(WebhookIssuesOpenedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesOpenedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesOpenedPropIssuePropReactions) +model_rebuild(WebhookIssuesOpenedPropIssuePropUser) +model_rebuild(WebhookIssuesOpenedPropChanges) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssue) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp) +model_rebuild( + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropReactions) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) + +__all__ = ( + "WebhookIssuesOpened", + "WebhookIssuesOpenedPropIssue", + "WebhookIssuesOpenedPropIssuePropAssignee", + "WebhookIssuesOpenedPropIssuePropAssigneesItems", + "WebhookIssuesOpenedPropIssuePropLabelsItems", + "WebhookIssuesOpenedPropIssuePropMilestone", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropIssuePropPullRequest", + "WebhookIssuesOpenedPropIssuePropReactions", + "WebhookIssuesOpenedPropIssuePropUser", + "WebhookIssuesOpenedPropChanges", + "WebhookIssuesOpenedPropChangesPropOldIssue", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", + "WebhookIssuesOpenedPropChangesPropOldRepository", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", +) 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 2de0618ce..c49afa993 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0596.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0596.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,17 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0431 import WebhooksIssue2 +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookIssuesUnlocked(GitHubModel): - """issues unlocked event""" +class WebhookIssuesPinned(GitHubModel): + """issues pinned event""" - action: Literal["unlocked"] = Field() + action: Literal["pinned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +39,7 @@ class WebhookIssuesUnlocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesUnlockedPropIssue = Field( + issue: WebhooksIssue2 = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) @@ -58,427 +58,6 @@ class WebhookIssuesUnlocked(GitHubModel): ) -class WebhookIssuesUnlockedPropIssue(GitHubModel): - """Issue +model_rebuild(WebhookIssuesPinned) - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesUnlockedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - List[Union[WebhookIssuesUnlockedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Literal[False] = Field() - milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesUnlockedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesUnlockedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesUnlockedPropIssuePropUser, None] = Field(title="User") - - -class 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) - - -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) - - -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) - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = 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) - - -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) - - -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", - "WebhookIssuesUnlockedPropIssue", - "WebhookIssuesUnlockedPropIssuePropAssignee", - "WebhookIssuesUnlockedPropIssuePropAssigneesItems", - "WebhookIssuesUnlockedPropIssuePropLabelsItems", - "WebhookIssuesUnlockedPropIssuePropMilestone", - "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnlockedPropIssuePropPullRequest", - "WebhookIssuesUnlockedPropIssuePropReactions", - "WebhookIssuesUnlockedPropIssuePropUser", -) +__all__ = ("WebhookIssuesPinned",) 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 4f4ed8148..caf07c0a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0597.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0597.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,18 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0427 import WebhooksIssue2 -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookIssuesUnpinned(GitHubModel): - """issues unpinned event""" +class WebhookIssuesReopened(GitHubModel): + """issues reopened event""" - action: Literal["unpinned"] = Field() + action: Literal["reopened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +39,7 @@ class WebhookIssuesUnpinned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue2 = Field( + issue: WebhookIssuesReopenedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) @@ -58,6 +58,439 @@ class WebhookIssuesUnpinned(GitHubModel): ) -model_rebuild(WebhookIssuesUnpinned) +class WebhookIssuesReopenedPropIssue(GitHubModel): + """Issue -__all__ = ("WebhookIssuesUnpinned",) + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesReopenedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesReopenedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + List[Union[WebhookIssuesReopenedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesReopenedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesReopenedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesReopenedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "reminder", + ] + ] + ] = 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) + + +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 + ) + url: 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", + "WebhookIssuesReopenedPropIssue", + "WebhookIssuesReopenedPropIssuePropAssignee", + "WebhookIssuesReopenedPropIssuePropAssigneesItems", + "WebhookIssuesReopenedPropIssuePropLabelsItems", + "WebhookIssuesReopenedPropIssuePropMilestone", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesReopenedPropIssuePropPullRequest", + "WebhookIssuesReopenedPropIssuePropReactions", + "WebhookIssuesReopenedPropIssuePropUser", +) 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 b66a7c28d..23b060aae 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0598.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0598.py @@ -9,26 +9,28 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0420 import WebhooksLabel -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0431 import WebhooksIssue2 +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookLabelCreated(GitHubModel): - """label created event""" +class WebhookIssuesTransferred(GitHubModel): + """issues transferred event""" - action: Literal["created"] = Field() + action: Literal["transferred"] = Field() + changes: WebhookIssuesTransferredPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +41,10 @@ class WebhookLabelCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") + issue: WebhooksIssue2 = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -49,13 +54,672 @@ 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[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookLabelCreated) +class WebhookIssuesTransferredPropChanges(GitHubModel): + """WebhookIssuesTransferredPropChanges""" + + new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( + title="Repository", description="A git repository" + ) + + +class WebhookIssuesTransferredPropChangesPropNewIssue(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[WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: List[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + List[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, + None, + ] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest + ] = Field(default=UNSET) + reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUser, None] = Field( + title="User" + ) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm + issions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class 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) + + +class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesTransferred) +model_rebuild(WebhookIssuesTransferredPropChanges) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssue) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp) +model_rebuild( + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropReactions) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) -__all__ = ("WebhookLabelCreated",) +__all__ = ( + "WebhookIssuesTransferred", + "WebhookIssuesTransferredPropChanges", + "WebhookIssuesTransferredPropChangesPropNewIssue", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", + "WebhookIssuesTransferredPropChangesPropNewRepository", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", +) 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 e15aae917..237013e71 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0599.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0599.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,18 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0420 import WebhooksLabel -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0429 import WebhooksIssue +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0432 import WebhooksUserMannequin +from .group_0408 import OrganizationSimpleWebhooks -class WebhookLabelDeleted(GitHubModel): - """label deleted event""" +class WebhookIssuesUnassigned(GitHubModel): + """issues unassigned event""" - action: Literal["deleted"] = 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", @@ -39,7 +43,10 @@ class WebhookLabelDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") + issue: 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", @@ -55,6 +62,6 @@ class WebhookLabelDeleted(GitHubModel): ) -model_rebuild(WebhookLabelDeleted) +model_rebuild(WebhookIssuesUnassigned) -__all__ = ("WebhookLabelDeleted",) +__all__ = ("WebhookIssuesUnassigned",) 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 a0e8cca3a..83ca5c3f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0600.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0600.py @@ -17,22 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0420 import WebhooksLabel -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0424 import WebhooksLabel +from .group_0429 import WebhooksIssue +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookLabelEdited(GitHubModel): - """label edited event""" +class WebhookIssuesUnlabeled(GitHubModel): + """issues unlabeled event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookLabelEditedPropChanges] = Field( - default=UNSET, - description="The changes to the label if the action was `edited`.", - ) + action: Literal["unlabeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,7 +40,11 @@ class WebhookLabelEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", + ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -59,56 +60,6 @@ class WebhookLabelEdited(GitHubModel): ) -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(WebhookIssuesUnlabeled) -__all__ = ( - "WebhookLabelEdited", - "WebhookLabelEditedPropChanges", - "WebhookLabelEditedPropChangesPropColor", - "WebhookLabelEditedPropChangesPropDescription", - "WebhookLabelEditedPropChangesPropName", -) +__all__ = ("WebhookIssuesUnlabeled",) 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 4b9210400..9345f16d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0601.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0601.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,20 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0429 import WebhooksMarketplacePurchase -from .group_0430 import WebhooksPreviousMarketplacePurchase +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchaseCancelled(GitHubModel): - """marketplace_purchase cancelled event""" +class WebhookIssuesUnlocked(GitHubModel): + """issues unlocked event""" - action: Literal["cancelled"] = Field() - effective_date: str = Field() + action: Literal["unlocked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,19 +39,16 @@ class WebhookMarketplacePurchaseCancelled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" + issue: WebhookIssuesUnlockedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[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.", ) @@ -63,6 +58,427 @@ class WebhookMarketplacePurchaseCancelled(GitHubModel): ) -model_rebuild(WebhookMarketplacePurchaseCancelled) +class WebhookIssuesUnlockedPropIssue(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[WebhookIssuesUnlockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + List[Union[WebhookIssuesUnlockedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Literal[False] = Field() + milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesUnlockedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesUnlockedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesUnlockedPropIssuePropUser, None] = Field(title="User") + + +class 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) + + +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) + + +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) + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = 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) + + +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) + + +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__ = ("WebhookMarketplacePurchaseCancelled",) +__all__ = ( + "WebhookIssuesUnlocked", + "WebhookIssuesUnlockedPropIssue", + "WebhookIssuesUnlockedPropIssuePropAssignee", + "WebhookIssuesUnlockedPropIssuePropAssigneesItems", + "WebhookIssuesUnlockedPropIssuePropLabelsItems", + "WebhookIssuesUnlockedPropIssuePropMilestone", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnlockedPropIssuePropPullRequest", + "WebhookIssuesUnlockedPropIssuePropReactions", + "WebhookIssuesUnlockedPropIssuePropUser", +) 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 78cb1f90a..095f5faf5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0602.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0602.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0429 import WebhooksMarketplacePurchase +from .group_0431 import WebhooksIssue2 +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchaseChanged(GitHubModel): - """marketplace_purchase changed event""" +class WebhookIssuesUnpinned(GitHubModel): + """issues unpinned event""" - action: Literal["changed"] = Field() - effective_date: str = Field() + action: Literal["unpinned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,19 +39,16 @@ class WebhookMarketplacePurchaseChanged(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" + issue: WebhooksIssue2 = Field( + title="Issue", + description="The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -62,58 +58,6 @@ class WebhookMarketplacePurchaseChanged(GitHubModel): ) -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: Union[bool, None] = Field() - plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan = ( - Field() - ) - unit_count: int = Field() - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" - - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchaseChanged) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount -) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan) +model_rebuild(WebhookIssuesUnpinned) -__all__ = ( - "WebhookMarketplacePurchaseChanged", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", -) +__all__ = ("WebhookIssuesUnpinned",) 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 35282a302..3d7f45ab2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0603.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0603.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0429 import WebhooksMarketplacePurchase +from .group_0424 import WebhooksLabel +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePendingChange(GitHubModel): - """marketplace_purchase pending_change event""" +class WebhookLabelCreated(GitHubModel): + """label created event""" - action: Literal["pending_change"] = Field() - effective_date: str = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,84 +39,23 @@ class WebhookMarketplacePurchasePendingChange(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" - ) + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( - GitHubModel -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t - """ - - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchasePendingChange) -model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan -) +model_rebuild(WebhookLabelCreated) -__all__ = ( - "WebhookMarketplacePurchasePendingChange", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", -) +__all__ = ("WebhookLabelCreated",) 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 60cddfa07..135a33d23 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0604.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0604.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0430 import WebhooksPreviousMarketplacePurchase +from .group_0424 import WebhooksLabel +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): - """marketplace_purchase pending_change_cancelled event""" +class WebhookLabelDeleted(GitHubModel): + """label deleted event""" - action: Literal["pending_change_cancelled"] = Field() - effective_date: str = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,19 +39,13 @@ class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase = Field( - title="Marketplace Purchase" - ) + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -62,62 +55,6 @@ class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): ) -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( - GitHubModel -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: Union[str, None] = Field() - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou - nt - """ - - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchasePendingChangeCancelled) -model_rebuild(WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan -) +model_rebuild(WebhookLabelDeleted) -__all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelled", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", -) +__all__ = ("WebhookLabelDeleted",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0605.py b/githubkit/versions/ghec_v2022_11_28/models/group_0605.py index 9cf363ed2..9e0980cde 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0605.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0605.py @@ -17,20 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0429 import WebhooksMarketplacePurchase -from .group_0430 import WebhooksPreviousMarketplacePurchase +from .group_0424 import WebhooksLabel +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePurchased(GitHubModel): - """marketplace_purchase purchased event""" +class WebhookLabelEdited(GitHubModel): + """label edited event""" - action: Literal["purchased"] = Field() - effective_date: str = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookLabelEditedPropChanges] = Field( + default=UNSET, + description="The changes to the label if the action was `edited`.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,19 +43,13 @@ class WebhookMarketplacePurchasePurchased(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" - ) + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -63,6 +59,56 @@ class WebhookMarketplacePurchasePurchased(GitHubModel): ) -model_rebuild(WebhookMarketplacePurchasePurchased) +class WebhookLabelEditedPropChanges(GitHubModel): + """WebhookLabelEditedPropChanges + + The changes to the label if the action was `edited`. + """ + + color: Missing[WebhookLabelEditedPropChangesPropColor] = Field(default=UNSET) + description: Missing[WebhookLabelEditedPropChangesPropDescription] = Field( + default=UNSET + ) + name: Missing[WebhookLabelEditedPropChangesPropName] = Field(default=UNSET) + + +class WebhookLabelEditedPropChangesPropColor(GitHubModel): + """WebhookLabelEditedPropChangesPropColor""" + + from_: str = Field( + alias="from", + description="The previous version of the color if the action was `edited`.", + ) + + +class WebhookLabelEditedPropChangesPropDescription(GitHubModel): + """WebhookLabelEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", + ) + + +class WebhookLabelEditedPropChangesPropName(GitHubModel): + """WebhookLabelEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) + + +model_rebuild(WebhookLabelEdited) +model_rebuild(WebhookLabelEditedPropChanges) +model_rebuild(WebhookLabelEditedPropChangesPropColor) +model_rebuild(WebhookLabelEditedPropChangesPropDescription) +model_rebuild(WebhookLabelEditedPropChangesPropName) -__all__ = ("WebhookMarketplacePurchasePurchased",) +__all__ = ( + "WebhookLabelEdited", + "WebhookLabelEditedPropChanges", + "WebhookLabelEditedPropChangesPropColor", + "WebhookLabelEditedPropChangesPropDescription", + "WebhookLabelEditedPropChangesPropName", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0606.py b/githubkit/versions/ghec_v2022_11_28/models/group_0606.py index f3a011503..a4b93a28a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0606.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0606.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,19 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0416 import WebhooksUser -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0433 import WebhooksMarketplacePurchase +from .group_0434 import WebhooksPreviousMarketplacePurchase -class WebhookMemberAdded(GitHubModel): - """member added event""" +class WebhookMarketplacePurchaseCancelled(GitHubModel): + """marketplace_purchase cancelled event""" - action: Literal["added"] = Field() - changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) + action: Literal["cancelled"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,13 +41,19 @@ class WebhookMemberAdded(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -56,50 +63,6 @@ class WebhookMemberAdded(GitHubModel): ) -class WebhookMemberAddedPropChanges(GitHubModel): - """WebhookMemberAddedPropChanges""" - - permission: Missing[WebhookMemberAddedPropChangesPropPermission] = Field( - default=UNSET, - description="This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.", - ) - role_name: Missing[WebhookMemberAddedPropChangesPropRoleName] = Field( - default=UNSET, description="The role assigned to the collaborator." - ) - - -class WebhookMemberAddedPropChangesPropPermission(GitHubModel): - """WebhookMemberAddedPropChangesPropPermission - - This field is included for legacy purposes; use the `role_name` field instead. - The `maintain` - role is mapped to `write` and the `triage` role is mapped to `read`. To - determine the role - assigned to the collaborator, use the `role_name` field instead, which will - provide the full - role name, including custom roles. - """ - - to: Literal["write", "admin", "read"] = Field() - - -class WebhookMemberAddedPropChangesPropRoleName(GitHubModel): - """WebhookMemberAddedPropChangesPropRoleName - - The role assigned to the collaborator. - """ - - to: str = Field() - - -model_rebuild(WebhookMemberAdded) -model_rebuild(WebhookMemberAddedPropChanges) -model_rebuild(WebhookMemberAddedPropChangesPropPermission) -model_rebuild(WebhookMemberAddedPropChangesPropRoleName) +model_rebuild(WebhookMarketplacePurchaseCancelled) -__all__ = ( - "WebhookMemberAdded", - "WebhookMemberAddedPropChanges", - "WebhookMemberAddedPropChangesPropPermission", - "WebhookMemberAddedPropChangesPropRoleName", -) +__all__ = ("WebhookMarketplacePurchaseCancelled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0607.py b/githubkit/versions/ghec_v2022_11_28/models/group_0607.py index 3a8a65a9f..b27ab0864 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0607.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0607.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,21 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0416 import WebhooksUser -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0433 import WebhooksMarketplacePurchase -class WebhookMemberEdited(GitHubModel): - """member edited event""" +class WebhookMarketplacePurchaseChanged(GitHubModel): + """marketplace_purchase changed event""" - action: Literal["edited"] = Field() - changes: WebhookMemberEditedPropChanges = Field( - description="The changes to the collaborator permissions" - ) + action: Literal["changed"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,13 +40,19 @@ class WebhookMemberEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -58,44 +62,58 @@ class WebhookMemberEdited(GitHubModel): ) -class WebhookMemberEditedPropChanges(GitHubModel): - """WebhookMemberEditedPropChanges - - The changes to the collaborator permissions - """ +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" - old_permission: Missing[WebhookMemberEditedPropChangesPropOldPermission] = Field( - default=UNSET - ) - permission: Missing[WebhookMemberEditedPropChangesPropPermission] = Field( - default=UNSET + account: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: Union[bool, None] = Field() + plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan = ( + Field() ) + unit_count: int = Field() -class WebhookMemberEditedPropChangesPropOldPermission(GitHubModel): - """WebhookMemberEditedPropChangesPropOldPermission""" +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" - from_: str = Field( - alias="from", - description="The previous permissions of the collaborator if the action was edited.", - ) + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() -class WebhookMemberEditedPropChangesPropPermission(GitHubModel): - """WebhookMemberEditedPropChangesPropPermission""" +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) + bullets: List[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() -model_rebuild(WebhookMemberEdited) -model_rebuild(WebhookMemberEditedPropChanges) -model_rebuild(WebhookMemberEditedPropChangesPropOldPermission) -model_rebuild(WebhookMemberEditedPropChangesPropPermission) +model_rebuild(WebhookMarketplacePurchaseChanged) +model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount +) +model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan) __all__ = ( - "WebhookMemberEdited", - "WebhookMemberEditedPropChanges", - "WebhookMemberEditedPropChangesPropOldPermission", - "WebhookMemberEditedPropChangesPropPermission", + "WebhookMarketplacePurchaseChanged", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0608.py b/githubkit/versions/ghec_v2022_11_28/models/group_0608.py index 7a07a3b7e..c2116f731 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0608.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0608.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0416 import WebhooksUser -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0433 import WebhooksMarketplacePurchase -class WebhookMemberRemoved(GitHubModel): - """member removed event""" +class WebhookMarketplacePurchasePendingChange(GitHubModel): + """marketplace_purchase pending_change event""" - action: Literal["removed"] = Field() + action: Literal["pending_change"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,13 +40,19 @@ class WebhookMemberRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -55,6 +62,62 @@ class WebhookMemberRemoved(GitHubModel): ) -model_rebuild(WebhookMemberRemoved) +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( + GitHubModel +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchasePendingChange) +model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan +) -__all__ = ("WebhookMemberRemoved",) +__all__ = ( + "WebhookMarketplacePurchasePendingChange", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0609.py b/githubkit/versions/ghec_v2022_11_28/models/group_0609.py index 0218c080d..82afc8363 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0609.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0609.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0416 import WebhooksUser -from .group_0431 import WebhooksTeam -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0434 import WebhooksPreviousMarketplacePurchase -class WebhookMembershipAdded(GitHubModel): - """membership added event""" +class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): + """marketplace_purchase pending_change_cancelled event""" - action: Literal["added"] = Field() + action: Literal["pending_change_cancelled"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,56 +40,84 @@ class WebhookMembershipAdded(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") - organization: OrganizationSimpleWebhooks = Field( + marketplace_purchase: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase = Field( + title="Marketplace Purchase" + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - scope: Literal["team"] = Field( - description="The scope of the membership. Currently, can only be `team`." - ) - sender: Union[WebhookMembershipAddedPropSender, None] = Field(title="User") - team: WebhooksTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookMembershipAddedPropSender(GitHubModel): - """User""" +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( + GitHubModel +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: None = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() -model_rebuild(WebhookMembershipAdded) -model_rebuild(WebhookMembershipAddedPropSender) +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" + + bullets: List[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelled) +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan +) __all__ = ( - "WebhookMembershipAdded", - "WebhookMembershipAddedPropSender", + "WebhookMarketplacePurchasePendingChangeCancelled", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0610.py b/githubkit/versions/ghec_v2022_11_28/models/group_0610.py index 74cc7bbe7..6a3b5a9e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0610.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0610.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,18 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0416 import WebhooksUser -from .group_0431 import WebhooksTeam -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0433 import WebhooksMarketplacePurchase +from .group_0434 import WebhooksPreviousMarketplacePurchase -class WebhookMembershipRemoved(GitHubModel): - """membership removed event""" +class WebhookMarketplacePurchasePurchased(GitHubModel): + """marketplace_purchase purchased event""" - action: Literal["removed"] = Field() + action: Literal["purchased"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,56 +41,28 @@ class WebhookMembershipRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") - organization: OrganizationSimpleWebhooks = Field( + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - scope: Literal["team", "organization"] = Field( - description="The scope of the membership. Currently, can only be `team`." - ) - sender: Union[WebhookMembershipRemovedPropSender, None] = Field(title="User") - team: WebhooksTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -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) - - -model_rebuild(WebhookMembershipRemoved) -model_rebuild(WebhookMembershipRemovedPropSender) +model_rebuild(WebhookMarketplacePurchasePurchased) -__all__ = ( - "WebhookMembershipRemoved", - "WebhookMembershipRemovedPropSender", -) +__all__ = ("WebhookMarketplacePurchasePurchased",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0611.py b/githubkit/versions/ghec_v2022_11_28/models/group_0611.py index f3bd6d2a1..494e2f1a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0611.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0611.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,43 +17,89 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0432 import MergeGroup -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0420 import WebhooksUser +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookMergeGroupChecksRequested(GitHubModel): - """WebhookMergeGroupChecksRequested""" +class WebhookMemberAdded(GitHubModel): + """member added event""" - action: Literal["checks_requested"] = Field() + action: Literal["added"] = Field() + changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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.\n", - ) + member: Union[WebhooksUser, None] = Field(title="User") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookMergeGroupChecksRequested) +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__ = ("WebhookMergeGroupChecksRequested",) +__all__ = ( + "WebhookMemberAdded", + "WebhookMemberAddedPropChanges", + "WebhookMemberAddedPropChangesPropPermission", + "WebhookMemberAddedPropChangesPropRoleName", +) 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 c19ca4002..1ff413b21 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0612.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0612.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,47 +17,85 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0432 import MergeGroup -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0420 import WebhooksUser +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookMergeGroupDestroyed(GitHubModel): - """WebhookMergeGroupDestroyed""" +class WebhookMemberEdited(GitHubModel): + """member edited event""" - action: Literal["destroyed"] = Field() - reason: Missing[Literal["merged", "invalidated", "dequeued"]] = Field( + action: Literal["edited"] = Field() + changes: WebhookMemberEditedPropChanges = Field( + description="The changes to the collaborator permissions" + ) + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated).", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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.\n", - ) + member: Union[WebhooksUser, None] = Field(title="User") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookMergeGroupDestroyed) +class WebhookMemberEditedPropChanges(GitHubModel): + """WebhookMemberEditedPropChanges + + The changes to the collaborator permissions + """ + + old_permission: Missing[WebhookMemberEditedPropChangesPropOldPermission] = Field( + default=UNSET + ) + permission: Missing[WebhookMemberEditedPropChangesPropPermission] = Field( + default=UNSET + ) + + +class WebhookMemberEditedPropChangesPropOldPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropOldPermission""" + + from_: str = Field( + alias="from", + description="The previous permissions of the collaborator if the action was edited.", + ) + + +class WebhookMemberEditedPropChangesPropPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropPermission""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(WebhookMemberEdited) +model_rebuild(WebhookMemberEditedPropChanges) +model_rebuild(WebhookMemberEditedPropChangesPropOldPermission) +model_rebuild(WebhookMemberEditedPropChangesPropPermission) -__all__ = ("WebhookMergeGroupDestroyed",) +__all__ = ( + "WebhookMemberEdited", + "WebhookMemberEditedPropChanges", + "WebhookMemberEditedPropChangesPropOldPermission", + "WebhookMemberEditedPropChangesPropPermission", +) 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 ea15336e6..eb493dbc4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0613.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0613.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -17,131 +17,44 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0420 import WebhooksUser +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookMetaDeleted(GitHubModel): - """meta deleted event""" +class WebhookMemberRemoved(GitHubModel): + """member removed event""" - action: Literal["deleted"] = Field() + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - hook: WebhookMetaDeletedPropHook = Field( - description="The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace." - ) - hook_id: int = Field(description="The id of the modified webhook.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + member: Union[WebhooksUser, None] = Field(title="User") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUserWebhooks] = 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: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookMetaDeletedPropHook(GitHubModel): - """WebhookMetaDeletedPropHook - - The modified webhook. This will contain different keys based on the type of - webhook it is: repository, organization, business, app, or GitHub Marketplace. - """ - - active: bool = Field() - config: WebhookMetaDeletedPropHookPropConfig = Field() - created_at: str = Field() - events: List[ - Literal[ - "*", - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "create", - "delete", - "deployment", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "meta", - "milestone", - "organization", - "org_block", - "package", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "pull_request_review_thread", - "push", - "registry_package", - "release", - "repository", - "repository_import", - "repository_vulnerability_alert", - "secret_scanning_alert", - "secret_scanning_alert_location", - "security_and_analysis", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_job", - "workflow_run", - "repository_dispatch", - "projects_v2_item", - ] - ] = Field() - id: int = Field() - name: str = Field() - type: str = Field() - updated_at: str = Field() - - -class WebhookMetaDeletedPropHookPropConfig(GitHubModel): - """WebhookMetaDeletedPropHookPropConfig""" - - content_type: Literal["json", "form"] = Field() - insecure_ssl: str = Field() - secret: Missing[str] = Field(default=UNSET) - url: str = Field() - - -model_rebuild(WebhookMetaDeleted) -model_rebuild(WebhookMetaDeletedPropHook) -model_rebuild(WebhookMetaDeletedPropHookPropConfig) +model_rebuild(WebhookMemberRemoved) -__all__ = ( - "WebhookMetaDeleted", - "WebhookMetaDeletedPropHook", - "WebhookMetaDeletedPropHookPropConfig", -) +__all__ = ("WebhookMemberRemoved",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0614.py b/githubkit/versions/ghec_v2022_11_28/models/group_0614.py index 985c21d93..cb109a695 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0614.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0614.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0426 import WebhooksMilestone -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0420 import WebhooksUser +from .group_0435 import WebhooksTeam +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookMilestoneClosed(GitHubModel): - """milestone closed event""" +class WebhookMembershipAdded(GitHubModel): + """membership added event""" - action: Literal["closed"] = Field() + action: Literal["added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,25 +39,56 @@ class WebhookMilestoneClosed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + member: Union[WebhooksUser, None] = Field(title="User") + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + 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.", ) -model_rebuild(WebhookMilestoneClosed) +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) + + +model_rebuild(WebhookMembershipAdded) +model_rebuild(WebhookMembershipAddedPropSender) -__all__ = ("WebhookMilestoneClosed",) +__all__ = ( + "WebhookMembershipAdded", + "WebhookMembershipAddedPropSender", +) 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 04eb4ea22..60ebb7335 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 Union, Literal from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0433 import WebhooksMilestone3 -from .group_0404 import OrganizationSimpleWebhooks +from .group_0420 import WebhooksUser +from .group_0435 import WebhooksTeam +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookMilestoneCreated(GitHubModel): - """milestone created event""" +class WebhookMembershipRemoved(GitHubModel): + """membership removed event""" - action: Literal["created"] = Field() + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,25 +39,56 @@ class WebhookMilestoneCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone3 = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + member: Union[WebhooksUser, None] = Field(title="User") + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + scope: Literal["team", "organization"] = Field( + description="The scope of the membership. Currently, can only be `team`." + ) + sender: Union[WebhookMembershipRemovedPropSender, None] = Field(title="User") + team: WebhooksTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", ) -model_rebuild(WebhookMilestoneCreated) +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) + + +model_rebuild(WebhookMembershipRemoved) +model_rebuild(WebhookMembershipRemovedPropSender) -__all__ = ("WebhookMilestoneCreated",) +__all__ = ( + "WebhookMembershipRemoved", + "WebhookMembershipRemovedPropSender", +) 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 b939889e9..2a854b6d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0616.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0616.py @@ -17,47 +17,43 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0426 import WebhooksMilestone -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0436 import MergeGroup +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookMilestoneDeleted(GitHubModel): - """milestone deleted event""" +class WebhookMergeGroupChecksRequested(GitHubModel): + """WebhookMergeGroupChecksRequested""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["checks_requested"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + merge_group: MergeGroup = Field( + title="Merge Group", + description="A group of pull requests that the merge queue has grouped together to be merged.\n", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when 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: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookMilestoneDeleted) +model_rebuild(WebhookMergeGroupChecksRequested) -__all__ = ("WebhookMilestoneDeleted",) +__all__ = ("WebhookMergeGroupChecksRequested",) 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 df5e7955b..837d9d79e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0617.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0617.py @@ -17,100 +17,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0426 import WebhooksMilestone -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0436 import MergeGroup +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookMilestoneEdited(GitHubModel): - """milestone edited event""" +class WebhookMergeGroupDestroyed(GitHubModel): + """WebhookMergeGroupDestroyed""" - action: Literal["edited"] = Field() - changes: WebhookMilestoneEditedPropChanges = Field( - description="The changes to the milestone if the action was `edited`." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( + action: Literal["destroyed"] = Field() + reason: Missing[Literal["merged", "invalidated", "dequeued"]] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + description="Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated).", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + merge_group: MergeGroup = Field( + title="Merge Group", + description="A group of pull requests that the merge queue has grouped together to be merged.\n", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when 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: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -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(WebhookMergeGroupDestroyed) -__all__ = ( - "WebhookMilestoneEdited", - "WebhookMilestoneEditedPropChanges", - "WebhookMilestoneEditedPropChangesPropDescription", - "WebhookMilestoneEditedPropChangesPropDueOn", - "WebhookMilestoneEditedPropChangesPropTitle", -) +__all__ = ("WebhookMergeGroupDestroyed",) 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 5013aaa93..d87eca785 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0618.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0618.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,47 +17,131 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0433 import WebhooksMilestone3 -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookMilestoneOpened(GitHubModel): - """milestone opened event""" +class WebhookMetaDeleted(GitHubModel): + """meta deleted event""" - action: Literal["opened"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) + hook: WebhookMetaDeletedPropHook = Field( + description="The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace." + ) + hook_id: int = Field(description="The id of the modified webhook.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone3 = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookMilestoneOpened) +class WebhookMetaDeletedPropHook(GitHubModel): + """WebhookMetaDeletedPropHook + + The modified webhook. This will contain different keys based on the type of + webhook it is: repository, organization, business, app, or GitHub Marketplace. + """ + + active: bool = Field() + config: WebhookMetaDeletedPropHookPropConfig = Field() + created_at: str = Field() + events: List[ + Literal[ + "*", + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "create", + "delete", + "deployment", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "meta", + "milestone", + "organization", + "org_block", + "package", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "pull_request_review_thread", + "push", + "registry_package", + "release", + "repository", + "repository_import", + "repository_vulnerability_alert", + "secret_scanning_alert", + "secret_scanning_alert_location", + "security_and_analysis", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_job", + "workflow_run", + "repository_dispatch", + "projects_v2_item", + ] + ] = Field() + id: int = Field() + name: str = Field() + type: str = Field() + updated_at: str = Field() + + +class WebhookMetaDeletedPropHookPropConfig(GitHubModel): + """WebhookMetaDeletedPropHookPropConfig""" + + content_type: Literal["json", "form"] = Field() + insecure_ssl: str = Field() + secret: Missing[str] = Field(default=UNSET) + url: str = Field() + + +model_rebuild(WebhookMetaDeleted) +model_rebuild(WebhookMetaDeletedPropHook) +model_rebuild(WebhookMetaDeletedPropHookPropConfig) -__all__ = ("WebhookMilestoneOpened",) +__all__ = ( + "WebhookMetaDeleted", + "WebhookMetaDeletedPropHook", + "WebhookMetaDeletedPropHookPropConfig", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0619.py b/githubkit/versions/ghec_v2022_11_28/models/group_0619.py index 05e881327..eb1acc755 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 Union, Literal +from typing import Literal from pydantic import Field @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0416 import WebhooksUser -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0430 import WebhooksMilestone +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookOrgBlockBlocked(GitHubModel): - """org_block blocked event""" +class WebhookMilestoneClosed(GitHubModel): + """milestone closed event""" - action: Literal["blocked"] = Field() - blocked_user: Union[WebhooksUser, None] = Field(title="User") + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,12 +39,16 @@ class WebhookOrgBlockBlocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -55,6 +58,6 @@ class WebhookOrgBlockBlocked(GitHubModel): ) -model_rebuild(WebhookOrgBlockBlocked) +model_rebuild(WebhookMilestoneClosed) -__all__ = ("WebhookOrgBlockBlocked",) +__all__ = ("WebhookMilestoneClosed",) 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 8cd47cfb8..0284cffed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0620.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0620.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0416 import WebhooksUser -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0437 import WebhooksMilestone3 +from .group_0408 import OrganizationSimpleWebhooks -class WebhookOrgBlockUnblocked(GitHubModel): - """org_block unblocked event""" +class WebhookMilestoneCreated(GitHubModel): + """milestone created event""" - action: Literal["unblocked"] = Field() - blocked_user: Union[WebhooksUser, None] = Field(title="User") + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,12 +39,16 @@ class WebhookOrgBlockUnblocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + milestone: WebhooksMilestone3 = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -55,6 +58,6 @@ class WebhookOrgBlockUnblocked(GitHubModel): ) -model_rebuild(WebhookOrgBlockUnblocked) +model_rebuild(WebhookMilestoneCreated) -__all__ = ("WebhookOrgBlockUnblocked",) +__all__ = ("WebhookMilestoneCreated",) 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 36e5cbd13..323d7d5a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0621.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0621.py @@ -17,16 +17,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0434 import WebhooksMembership -from .group_0404 import OrganizationSimpleWebhooks +from .group_0430 import WebhooksMilestone +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookOrganizationDeleted(GitHubModel): - """organization deleted event""" +class WebhookMilestoneDeleted(GitHubModel): + """milestone deleted event""" action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( @@ -39,17 +39,16 @@ class WebhookOrganizationDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: Missing[WebhooksMembership] = Field( - default=UNSET, - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -59,6 +58,6 @@ class WebhookOrganizationDeleted(GitHubModel): ) -model_rebuild(WebhookOrganizationDeleted) +model_rebuild(WebhookMilestoneDeleted) -__all__ = ("WebhookOrganizationDeleted",) +__all__ = ("WebhookMilestoneDeleted",) 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 96d84dba9..a15a931eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0622.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0622.py @@ -17,18 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0434 import WebhooksMembership -from .group_0404 import OrganizationSimpleWebhooks +from .group_0430 import WebhooksMilestone +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookOrganizationMemberAdded(GitHubModel): - """organization member_added event""" +class WebhookMilestoneEdited(GitHubModel): + """milestone edited event""" - action: Literal["member_added"] = Field() + action: Literal["edited"] = Field() + changes: WebhookMilestoneEditedPropChanges = Field( + description="The changes to the milestone if the action was `edited`." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,16 +42,16 @@ class WebhookOrganizationMemberAdded(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: WebhooksMembership = Field( - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -58,6 +61,56 @@ class WebhookOrganizationMemberAdded(GitHubModel): ) -model_rebuild(WebhookOrganizationMemberAdded) +class WebhookMilestoneEditedPropChanges(GitHubModel): + """WebhookMilestoneEditedPropChanges + + The changes to the milestone if the action was `edited`. + """ + + description: Missing[WebhookMilestoneEditedPropChangesPropDescription] = Field( + default=UNSET + ) + due_on: Missing[WebhookMilestoneEditedPropChangesPropDueOn] = Field(default=UNSET) + title: Missing[WebhookMilestoneEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookMilestoneEditedPropChangesPropDescription(GitHubModel): + """WebhookMilestoneEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", + ) + + +class WebhookMilestoneEditedPropChangesPropDueOn(GitHubModel): + """WebhookMilestoneEditedPropChangesPropDueOn""" + + from_: str = Field( + alias="from", + description="The previous version of the due date if the action was `edited`.", + ) + + +class WebhookMilestoneEditedPropChangesPropTitle(GitHubModel): + """WebhookMilestoneEditedPropChangesPropTitle""" + + from_: str = Field( + alias="from", + description="The previous version of the title if the action was `edited`.", + ) + + +model_rebuild(WebhookMilestoneEdited) +model_rebuild(WebhookMilestoneEditedPropChanges) +model_rebuild(WebhookMilestoneEditedPropChangesPropDescription) +model_rebuild(WebhookMilestoneEditedPropChangesPropDueOn) +model_rebuild(WebhookMilestoneEditedPropChangesPropTitle) -__all__ = ("WebhookOrganizationMemberAdded",) +__all__ = ( + "WebhookMilestoneEdited", + "WebhookMilestoneEditedPropChanges", + "WebhookMilestoneEditedPropChangesPropDescription", + "WebhookMilestoneEditedPropChangesPropDueOn", + "WebhookMilestoneEditedPropChangesPropTitle", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0623.py b/githubkit/versions/ghec_v2022_11_28/models/group_0623.py index 7367383f1..8136b3ba1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0623.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0623.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0416 import WebhooksUser -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0437 import WebhooksMilestone3 +from .group_0408 import OrganizationSimpleWebhooks -class WebhookOrganizationMemberInvited(GitHubModel): - """organization member_invited event""" +class WebhookMilestoneOpened(GitHubModel): + """milestone opened event""" - action: Literal["member_invited"] = Field() + action: Literal["opened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,15 +39,16 @@ class WebhookOrganizationMemberInvited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - invitation: WebhookOrganizationMemberInvitedPropInvitation = Field( - description="The invitation for the user or email if the action is `member_invited`." + milestone: WebhooksMilestone3 = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -56,63 +56,8 @@ class WebhookOrganizationMemberInvited(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - user: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") - - -class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): - """WebhookOrganizationMemberInvitedPropInvitation - - The invitation for the user or email if the action is `member_invited`. - """ - - created_at: datetime = Field() - email: Union[str, None] = Field() - failed_at: Union[datetime, None] = Field() - failed_reason: Union[str, None] = Field() - id: float = Field() - invitation_teams_url: str = Field() - inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviter, None] = ( - Field(title="User") - ) - login: Union[str, None] = Field() - node_id: str = Field() - role: str = Field() - team_count: float = Field() - invitation_source: Missing[str] = Field(default=UNSET) - - -class WebhookOrganizationMemberInvitedPropInvitationPropInviter(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookOrganizationMemberInvited) -model_rebuild(WebhookOrganizationMemberInvitedPropInvitation) -model_rebuild(WebhookOrganizationMemberInvitedPropInvitationPropInviter) +model_rebuild(WebhookMilestoneOpened) -__all__ = ( - "WebhookOrganizationMemberInvited", - "WebhookOrganizationMemberInvitedPropInvitation", - "WebhookOrganizationMemberInvitedPropInvitationPropInviter", -) +__all__ = ("WebhookMilestoneOpened",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0624.py b/githubkit/versions/ghec_v2022_11_28/models/group_0624.py index 6ea295c53..ea128ab32 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0624.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0624.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0434 import WebhooksMembership -from .group_0404 import OrganizationSimpleWebhooks +from .group_0420 import WebhooksUser +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookOrganizationMemberRemoved(GitHubModel): - """organization member_removed event""" +class WebhookOrgBlockBlocked(GitHubModel): + """org_block blocked event""" - action: Literal["member_removed"] = Field() + action: Literal["blocked"] = Field() + blocked_user: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +40,6 @@ class WebhookOrganizationMemberRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: WebhooksMembership = Field( - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", - ) organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", @@ -58,6 +55,6 @@ class WebhookOrganizationMemberRemoved(GitHubModel): ) -model_rebuild(WebhookOrganizationMemberRemoved) +model_rebuild(WebhookOrgBlockBlocked) -__all__ = ("WebhookOrganizationMemberRemoved",) +__all__ = ("WebhookOrgBlockBlocked",) 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 81151eb98..dac57d224 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0625.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0625.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,19 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0434 import WebhooksMembership -from .group_0404 import OrganizationSimpleWebhooks +from .group_0420 import WebhooksUser +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookOrganizationRenamed(GitHubModel): - """organization renamed event""" +class WebhookOrgBlockUnblocked(GitHubModel): + """org_block unblocked event""" - action: Literal["renamed"] = Field() - changes: Missing[WebhookOrganizationRenamedPropChanges] = Field(default=UNSET) + action: Literal["unblocked"] = Field() + blocked_user: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,11 +40,6 @@ class WebhookOrganizationRenamed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: Missing[WebhooksMembership] = Field( - default=UNSET, - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", - ) organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", @@ -60,26 +55,6 @@ class WebhookOrganizationRenamed(GitHubModel): ) -class WebhookOrganizationRenamedPropChanges(GitHubModel): - """WebhookOrganizationRenamedPropChanges""" - - login: Missing[WebhookOrganizationRenamedPropChangesPropLogin] = Field( - default=UNSET - ) - - -class WebhookOrganizationRenamedPropChangesPropLogin(GitHubModel): - """WebhookOrganizationRenamedPropChangesPropLogin""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -model_rebuild(WebhookOrganizationRenamed) -model_rebuild(WebhookOrganizationRenamedPropChanges) -model_rebuild(WebhookOrganizationRenamedPropChangesPropLogin) +model_rebuild(WebhookOrgBlockUnblocked) -__all__ = ( - "WebhookOrganizationRenamed", - "WebhookOrganizationRenamedPropChanges", - "WebhookOrganizationRenamedPropChangesPropLogin", -) +__all__ = ("WebhookOrgBlockUnblocked",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0626.py b/githubkit/versions/ghec_v2022_11_28/models/group_0626.py index 5e0345a0d..544ddbfa8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0626.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0626.py @@ -9,54 +9,56 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - - -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""" +from githubkit.compat import GitHubModel, model_rebuild - version: Missing[str] = Field(default=UNSET) +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0438 import WebhooksMembership +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): - """WebhookRubygemsMetadataPropMetadata""" +class WebhookOrganizationDeleted(GitHubModel): + """organization deleted event""" - -class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): - """WebhookRubygemsMetadataPropDependenciesItems""" + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: Missing[WebhooksMembership] = Field( + default=UNSET, + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -model_rebuild(WebhookRubygemsMetadata) -model_rebuild(WebhookRubygemsMetadataPropVersionInfo) -model_rebuild(WebhookRubygemsMetadataPropMetadata) -model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) +model_rebuild(WebhookOrganizationDeleted) -__all__ = ( - "WebhookRubygemsMetadata", - "WebhookRubygemsMetadataPropVersionInfo", - "WebhookRubygemsMetadataPropMetadata", - "WebhookRubygemsMetadataPropDependenciesItems", -) +__all__ = ("WebhookOrganizationDeleted",) 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 76bc896d6..888ba2600 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0627.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0627.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0628 import WebhookPackagePublishedPropPackage +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0438 import WebhooksMembership +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPackagePublished(GitHubModel): - """package published event""" +class WebhookOrganizationMemberAdded(GitHubModel): + """organization member_added event""" - action: Literal["published"] = Field() + action: Literal["member_added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,14 +39,14 @@ class WebhookPackagePublished(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + membership: WebhooksMembership = Field( + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - package: WebhookPackagePublishedPropPackage = Field( - description="Information about the package." - ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -58,6 +58,6 @@ class WebhookPackagePublished(GitHubModel): ) -model_rebuild(WebhookPackagePublished) +model_rebuild(WebhookOrganizationMemberAdded) -__all__ = ("WebhookPackagePublished",) +__all__ = ("WebhookOrganizationMemberAdded",) 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 74db7ef11..6ae7431cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0628.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0628.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -17,34 +18,70 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0629 import WebhookPackagePublishedPropPackagePropPackageVersion +from .group_0420 import WebhooksUser +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPackagePublishedPropPackage(GitHubModel): - """WebhookPackagePublishedPropPackage +class WebhookOrganizationMemberInvited(GitHubModel): + """organization member_invited event""" - Information about the package. + action: Literal["member_invited"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + invitation: WebhookOrganizationMemberInvitedPropInvitation = Field( + description="The invitation for the user or email if the action is `member_invited`." + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + user: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") + + +class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): + """WebhookOrganizationMemberInvitedPropInvitation + + The invitation for the user or email if the action is `member_invited`. """ - created_at: Union[str, None] = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - namespace: str = Field() - owner: Union[WebhookPackagePublishedPropPackagePropOwner, None] = Field( - title="User" + created_at: datetime = Field() + email: Union[str, None] = Field() + failed_at: Union[datetime, None] = Field() + failed_reason: Union[str, None] = Field() + id: float = Field() + invitation_teams_url: str = Field() + inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviter, None] = ( + Field(title="User") ) - package_type: str = Field() - package_version: Union[ - WebhookPackagePublishedPropPackagePropPackageVersion, None - ] = Field() - registry: Union[WebhookPackagePublishedPropPackagePropRegistry, None] = Field() - updated_at: Union[str, None] = Field() + login: Union[str, None] = Field() + node_id: str = Field() + role: str = Field() + team_count: float = Field() + invitation_source: Missing[str] = Field(default=UNSET) -class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): +class WebhookOrganizationMemberInvitedPropInvitationPropInviter(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -70,22 +107,12 @@ class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPackagePublishedPropPackagePropRegistry(GitHubModel): - """WebhookPackagePublishedPropPackagePropRegistry""" - - about_url: str = Field() - name: str = Field() - type: str = Field() - url: str = Field() - vendor: str = Field() - - -model_rebuild(WebhookPackagePublishedPropPackage) -model_rebuild(WebhookPackagePublishedPropPackagePropOwner) -model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) +model_rebuild(WebhookOrganizationMemberInvited) +model_rebuild(WebhookOrganizationMemberInvitedPropInvitation) +model_rebuild(WebhookOrganizationMemberInvitedPropInvitationPropInviter) __all__ = ( - "WebhookPackagePublishedPropPackage", - "WebhookPackagePublishedPropPackagePropOwner", - "WebhookPackagePublishedPropPackagePropRegistry", + "WebhookOrganizationMemberInvited", + "WebhookOrganizationMemberInvitedPropInvitation", + "WebhookOrganizationMemberInvitedPropInvitationPropInviter", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0629.py b/githubkit/versions/ghec_v2022_11_28/models/group_0629.py index 6d6a299fe..47bc9982a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0629.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0629.py @@ -9,562 +9,55 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - -from .group_0626 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) - - -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) - - -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", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories", - "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", - "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", -) +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0438 import WebhooksMembership +from .group_0408 import OrganizationSimpleWebhooks + + +class WebhookOrganizationMemberRemoved(GitHubModel): + """organization member_removed event""" + + action: Literal["member_removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: WebhooksMembership = Field( + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +model_rebuild(WebhookOrganizationMemberRemoved) + +__all__ = ("WebhookOrganizationMemberRemoved",) 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 215a036b6..b7ef75f93 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0630.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0630.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0631 import WebhookPackageUpdatedPropPackage +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0438 import WebhooksMembership +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPackageUpdated(GitHubModel): - """package updated event""" +class WebhookOrganizationRenamed(GitHubModel): + """organization renamed event""" - action: Literal["updated"] = Field() + action: Literal["renamed"] = Field() + changes: Missing[WebhookOrganizationRenamedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,15 +40,17 @@ class WebhookPackageUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + membership: Missing[WebhooksMembership] = Field( default=UNSET, + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - package: WebhookPackageUpdatedPropPackage = Field( - description="Information about the package." - ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -57,6 +60,26 @@ class WebhookPackageUpdated(GitHubModel): ) -model_rebuild(WebhookPackageUpdated) +class WebhookOrganizationRenamedPropChanges(GitHubModel): + """WebhookOrganizationRenamedPropChanges""" + + login: Missing[WebhookOrganizationRenamedPropChangesPropLogin] = Field( + default=UNSET + ) + + +class WebhookOrganizationRenamedPropChangesPropLogin(GitHubModel): + """WebhookOrganizationRenamedPropChangesPropLogin""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookOrganizationRenamed) +model_rebuild(WebhookOrganizationRenamedPropChanges) +model_rebuild(WebhookOrganizationRenamedPropChangesPropLogin) -__all__ = ("WebhookPackageUpdated",) +__all__ = ( + "WebhookOrganizationRenamed", + "WebhookOrganizationRenamedPropChanges", + "WebhookOrganizationRenamedPropChangesPropLogin", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0631.py b/githubkit/versions/ghec_v2022_11_28/models/group_0631.py index 089ad79c4..5e0345a0d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0631.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0631.py @@ -9,79 +9,54 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0632 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() +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + + +class WebhookRubygemsMetadata(GitHubModel): + """Ruby Gems metadata""" + name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + version_info: Missing[WebhookRubygemsMetadataPropVersionInfo] = Field(default=UNSET) + platform: Missing[str] = Field(default=UNSET) + metadata: Missing[WebhookRubygemsMetadataPropMetadata] = Field(default=UNSET) + repo: Missing[str] = Field(default=UNSET) + dependencies: Missing[List[WebhookRubygemsMetadataPropDependenciesItems]] = Field( + default=UNSET + ) + commit_oid: Missing[str] = Field(default=UNSET) + + +class WebhookRubygemsMetadataPropVersionInfo(GitHubModel): + """WebhookRubygemsMetadataPropVersionInfo""" + + version: Missing[str] = Field(default=UNSET) + +class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): + """WebhookRubygemsMetadataPropMetadata""" -class WebhookPackageUpdatedPropPackagePropRegistry(GitHubModel): - """WebhookPackageUpdatedPropPackagePropRegistry""" - about_url: str = Field() - name: str = Field() - type: str = Field() - url: str = Field() - vendor: str = Field() +class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): + """WebhookRubygemsMetadataPropDependenciesItems""" -model_rebuild(WebhookPackageUpdatedPropPackage) -model_rebuild(WebhookPackageUpdatedPropPackagePropOwner) -model_rebuild(WebhookPackageUpdatedPropPackagePropRegistry) +model_rebuild(WebhookRubygemsMetadata) +model_rebuild(WebhookRubygemsMetadataPropVersionInfo) +model_rebuild(WebhookRubygemsMetadataPropMetadata) +model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) __all__ = ( - "WebhookPackageUpdatedPropPackage", - "WebhookPackageUpdatedPropPackagePropOwner", - "WebhookPackageUpdatedPropPackagePropRegistry", + "WebhookRubygemsMetadata", + "WebhookRubygemsMetadataPropVersionInfo", + "WebhookRubygemsMetadataPropMetadata", + "WebhookRubygemsMetadataPropDependenciesItems", ) 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 4cc8b13fd..f579e6463 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0632.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0632.py @@ -9,175 +9,55 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0626 import WebhookRubygemsMetadata +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0633 import WebhookPackagePublishedPropPackage -class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" +class WebhookPackagePublished(GitHubModel): + """package published event""" - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None - ] = Field(title="User") - body: str = Field() - body_html: str = Field() - created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - List[WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - package_files: List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease] = ( - Field(default=UNSET) + action: Literal["published"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - 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) - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: Missing[List[str]] = Field(default=UNSET) - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: str = Field() - size: int = Field() - state: str = Field() - updated_at: str = Field() - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, None - ] = Field(title="User") - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersion) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor) +model_rebuild(WebhookPackagePublished) -__all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersion", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", -) +__all__ = ("WebhookPackagePublished",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0633.py b/githubkit/versions/ghec_v2022_11_28/models/group_0633.py index 17351d4d5..efccba61d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0633.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0633.py @@ -17,69 +17,34 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0634 import WebhookPackagePublishedPropPackagePropPackageVersion -class WebhookPageBuild(GitHubModel): - """page_build event""" +class WebhookPackagePublishedPropPackage(GitHubModel): + """WebhookPackagePublishedPropPackage - build: WebhookPageBuildPropBuild = Field( - description="The [List GitHub Pages builds](https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#list-github-pages-builds) itself." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - id: int = Field() - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookPageBuildPropBuild(GitHubModel): - """WebhookPageBuildPropBuild - - The [List GitHub Pages builds](https://docs.github.com/enterprise- - cloud@latest//rest/pages/pages#list-github-pages-builds) itself. + Information about the package. """ - commit: Union[str, None] = Field() - created_at: str = Field() - duration: int = Field() - error: WebhookPageBuildPropBuildPropError = Field() - pusher: Union[WebhookPageBuildPropBuildPropPusher, None] = Field(title="User") - status: str = Field() - updated_at: str = Field() - url: str = Field() - - -class WebhookPageBuildPropBuildPropError(GitHubModel): - """WebhookPageBuildPropBuildPropError""" - - message: Union[str, None] = Field() + created_at: Union[str, None] = Field() + description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: Union[WebhookPackagePublishedPropPackagePropOwner, None] = Field( + title="User" + ) + package_type: str = Field() + package_version: Union[ + WebhookPackagePublishedPropPackagePropPackageVersion, None + ] = Field() + registry: Union[WebhookPackagePublishedPropPackagePropRegistry, None] = Field() + updated_at: Union[str, None] = Field() -class WebhookPageBuildPropBuildPropPusher(GitHubModel): +class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -105,14 +70,22 @@ class WebhookPageBuildPropBuildPropPusher(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPageBuild) -model_rebuild(WebhookPageBuildPropBuild) -model_rebuild(WebhookPageBuildPropBuildPropError) -model_rebuild(WebhookPageBuildPropBuildPropPusher) +class WebhookPackagePublishedPropPackagePropRegistry(GitHubModel): + """WebhookPackagePublishedPropPackagePropRegistry""" + + about_url: str = Field() + name: str = Field() + type: str = Field() + url: str = Field() + vendor: str = Field() + + +model_rebuild(WebhookPackagePublishedPropPackage) +model_rebuild(WebhookPackagePublishedPropPackagePropOwner) +model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) __all__ = ( - "WebhookPageBuild", - "WebhookPageBuildPropBuild", - "WebhookPageBuildPropBuildPropError", - "WebhookPageBuildPropBuildPropPusher", + "WebhookPackagePublishedPropPackage", + "WebhookPackagePublishedPropPackagePropOwner", + "WebhookPackagePublishedPropPackagePropRegistry", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0634.py b/githubkit/versions/ghec_v2022_11_28/models/group_0634.py index ff2fb02b6..0e1bb57f4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0634.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0634.py @@ -9,48 +9,562 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0435 import PersonalAccessTokenRequest - - -class WebhookPersonalAccessTokenRequestApproved(GitHubModel): - """personal_access_token_request approved event""" - - action: Literal["approved"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - - -model_rebuild(WebhookPersonalAccessTokenRequestApproved) - -__all__ = ("WebhookPersonalAccessTokenRequestApproved",) +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + +from .group_0631 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) + + +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) + + +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", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories", + "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", + "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", +) 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 3bf8f3ebf..d5eb37c31 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0635.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0635.py @@ -17,40 +17,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0435 import PersonalAccessTokenRequest +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0636 import WebhookPackageUpdatedPropPackage -class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): - """personal_access_token_request cancelled event""" +class WebhookPackageUpdated(GitHubModel): + """package updated event""" - action: Literal["cancelled"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - organization: OrganizationSimpleWebhooks = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + 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: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - 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(WebhookPersonalAccessTokenRequestCancelled) +model_rebuild(WebhookPackageUpdated) -__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) +__all__ = ("WebhookPackageUpdated",) 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 5bd67cda6..9f2d0ab0a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0636.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0636.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,41 +17,71 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0435 import PersonalAccessTokenRequest - - -class WebhookPersonalAccessTokenRequestCreated(GitHubModel): - """personal_access_token_request created event""" - - action: Literal["created"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - - -model_rebuild(WebhookPersonalAccessTokenRequestCreated) - -__all__ = ("WebhookPersonalAccessTokenRequestCreated",) +from .group_0637 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) + + +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_0637.py b/githubkit/versions/ghec_v2022_11_28/models/group_0637.py index e62fb74c3..e2d3be496 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0637.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0637.py @@ -9,48 +9,175 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0435 import PersonalAccessTokenRequest +from .group_0631 import WebhookRubygemsMetadata -class WebhookPersonalAccessTokenRequestDenied(GitHubModel): - """personal_access_token_request denied event""" +class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" - action: Literal["denied"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None + ] = Field(title="User") + body: str = Field() + body_html: str = Field() + created_at: str = Field() + description: str = Field() + docker_metadata: Missing[ + List[WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + package_files: List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: Missing[str] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease] = ( + Field(default=UNSET) ) + rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) + source_url: Missing[str] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: str = Field() + target_oid: str = Field() + updated_at: str = Field() + version: str = Field() + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: Missing[List[str]] = Field(default=UNSET) + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() + id: int = Field() + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: str = Field() + size: int = Field() + state: str = Field() + updated_at: str = Field() + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease(GitHubModel): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, None + ] = Field(title="User") + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() + url: str = Field() + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPersonalAccessTokenRequestDenied) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersion) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor) -__all__ = ("WebhookPersonalAccessTokenRequestDenied",) +__all__ = ( + "WebhookPackageUpdatedPropPackagePropPackageVersion", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0638.py b/githubkit/versions/ghec_v2022_11_28/models/group_0638.py index b7d659936..7ff8bd6ab 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0638.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0638.py @@ -9,45 +9,110 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0639 import WebhookPingPropHook -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPing(GitHubModel): - """WebhookPing""" +class WebhookPageBuild(GitHubModel): + """page_build event""" - hook: Missing[WebhookPingPropHook] = Field( - default=UNSET, title="Webhook", description="The webhook that is being pinged" + build: WebhookPageBuildPropBuild = Field( + description="The [List GitHub Pages builds](https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#list-github-pages-builds) itself." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - hook_id: Missing[int] = Field( - default=UNSET, description="The ID of the webhook that triggered the ping." + id: int = Field() + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - zen: Missing[str] = Field(default=UNSET, description="Random string of GitHub zen.") -model_rebuild(WebhookPing) +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) + + +model_rebuild(WebhookPageBuild) +model_rebuild(WebhookPageBuildPropBuild) +model_rebuild(WebhookPageBuildPropBuildPropError) +model_rebuild(WebhookPageBuildPropBuildPropPusher) -__all__ = ("WebhookPing",) +__all__ = ( + "WebhookPageBuild", + "WebhookPageBuildPropBuild", + "WebhookPageBuildPropBuildPropError", + "WebhookPageBuildPropBuildPropPusher", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0639.py b/githubkit/versions/ghec_v2022_11_28/models/group_0639.py index 0cd89ef4c..19bb218ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0639.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0639.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,61 +17,40 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0278 import HookResponse +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0439 import PersonalAccessTokenRequest -class WebhookPingPropHook(GitHubModel): - """Webhook +class WebhookPersonalAccessTokenRequestApproved(GitHubModel): + """personal_access_token_request approved event""" - The webhook that is being pinged - """ - - active: bool = Field( - description="Determines whether the hook is actually triggered for the events it subscribes to." + action: Literal["approved"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", ) - app_id: Missing[int] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Only included for GitHub Apps. When you register a new GitHub App, GitHub sends a ping event to the webhook URL you specified during registration. The GitHub App ID sent in this field is required for authenticating an app.", - ) - config: WebhookPingPropHookPropConfig = Field() - created_at: datetime = Field() - deliveries_url: Missing[str] = Field(default=UNSET) - events: List[str] = Field( - description="Determines what events the hook is triggered for. Default: ['push']." + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - 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`.", + 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.", ) - 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).", + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) -model_rebuild(WebhookPingPropHook) -model_rebuild(WebhookPingPropHookPropConfig) +model_rebuild(WebhookPersonalAccessTokenRequestApproved) -__all__ = ( - "WebhookPingPropHook", - "WebhookPingPropHookPropConfig", -) +__all__ = ("WebhookPersonalAccessTokenRequestApproved",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0640.py b/githubkit/versions/ghec_v2022_11_28/models/group_0640.py index fac71cc70..011604953 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0640.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0640.py @@ -9,22 +9,48 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0439 import PersonalAccessTokenRequest -class WebhookPingFormEncoded(GitHubModel): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. - """ +class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): + """personal_access_token_request cancelled event""" - payload: str = Field( - description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." + action: Literal["cancelled"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) -model_rebuild(WebhookPingFormEncoded) +model_rebuild(WebhookPersonalAccessTokenRequestCancelled) -__all__ = ("WebhookPingFormEncoded",) +__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0641.py b/githubkit/versions/ghec_v2022_11_28/models/group_0641.py index b1a4e7d0f..472d30753 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0641.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0641.py @@ -17,64 +17,41 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0436 import WebhooksProjectCard -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0439 import PersonalAccessTokenRequest -class WebhookProjectCardConverted(GitHubModel): - """project_card converted event""" +class WebhookPersonalAccessTokenRequestCreated(GitHubModel): + """personal_access_token_request created event""" - action: Literal["converted"] = Field() - changes: WebhookProjectCardConvertedPropChanges = Field() + action: Literal["created"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhooksProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) -class WebhookProjectCardConvertedPropChanges(GitHubModel): - """WebhookProjectCardConvertedPropChanges""" - - note: WebhookProjectCardConvertedPropChangesPropNote = Field() - - -class WebhookProjectCardConvertedPropChangesPropNote(GitHubModel): - """WebhookProjectCardConvertedPropChangesPropNote""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookProjectCardConverted) -model_rebuild(WebhookProjectCardConvertedPropChanges) -model_rebuild(WebhookProjectCardConvertedPropChangesPropNote) +model_rebuild(WebhookPersonalAccessTokenRequestCreated) -__all__ = ( - "WebhookProjectCardConverted", - "WebhookProjectCardConvertedPropChanges", - "WebhookProjectCardConvertedPropChangesPropNote", -) +__all__ = ("WebhookPersonalAccessTokenRequestCreated",) 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 1e55bb251..03f06e7f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0642.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0642.py @@ -17,45 +17,40 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0436 import WebhooksProjectCard -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0439 import PersonalAccessTokenRequest -class WebhookProjectCardCreated(GitHubModel): - """project_card created event""" +class WebhookPersonalAccessTokenRequestDenied(GitHubModel): + """personal_access_token_request denied 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)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + action: Literal["denied"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhooksProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) -model_rebuild(WebhookProjectCardCreated) +model_rebuild(WebhookPersonalAccessTokenRequestDenied) -__all__ = ("WebhookProjectCardCreated",) +__all__ = ("WebhookPersonalAccessTokenRequestDenied",) 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 94d053a62..affe0416f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0643.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0643.py @@ -9,103 +9,45 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0644 import WebhookPingPropHook +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectCardDeleted(GitHubModel): - """project_card deleted event""" +class WebhookPing(GitHubModel): + """WebhookPing""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + hook: Missing[WebhookPingPropHook] = Field( + default=UNSET, title="Webhook", description="The webhook that is being pinged" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + hook_id: Missing[int] = Field( + default=UNSET, description="The ID of the webhook that triggered the ping." ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: SimpleUserWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + zen: Missing[str] = Field(default=UNSET, description="Random string of GitHub zen.") -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) - - -model_rebuild(WebhookProjectCardDeleted) -model_rebuild(WebhookProjectCardDeletedPropProjectCard) -model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) +model_rebuild(WebhookPing) -__all__ = ( - "WebhookProjectCardDeleted", - "WebhookProjectCardDeletedPropProjectCard", - "WebhookProjectCardDeletedPropProjectCardPropCreator", -) +__all__ = ("WebhookPing",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0644.py b/githubkit/versions/ghec_v2022_11_28/models/group_0644.py index 37c439473..04b42356a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0644.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0644.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,64 +18,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0436 import WebhooksProjectCard -from .group_0404 import OrganizationSimpleWebhooks +from .group_0282 import HookResponse -class WebhookProjectCardEdited(GitHubModel): - """project_card edited event""" +class WebhookPingPropHook(GitHubModel): + """Webhook - action: Literal["edited"] = Field() - changes: WebhookProjectCardEditedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + The webhook that is being pinged + """ + + active: bool = Field( + description="Determines whether the hook is actually triggered for the events it subscribes to." ) - installation: Missing[SimpleInstallation] = Field( + app_id: Missing[int] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Only included for GitHub Apps. When you register a new GitHub App, GitHub sends a ping event to the webhook URL you specified during registration. The GitHub App ID sent in this field is required for authenticating an app.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + config: WebhookPingPropHookPropConfig = Field() + created_at: datetime = Field() + deliveries_url: Missing[str] = Field(default=UNSET) + events: List[str] = Field( + description="Determines what events the hook is triggered for. Default: ['push']." ) - project_card: WebhooksProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + id: int = Field(description="Unique identifier of the webhook.") + last_response: Missing[HookResponse] = Field(default=UNSET, title="Hook Response") + name: Literal["web"] = Field( + description="The type of webhook. The only valid value is 'web'." ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookProjectCardEditedPropChanges(GitHubModel): - """WebhookProjectCardEditedPropChanges""" + ping_url: Missing[str] = Field(default=UNSET) + test_url: Missing[str] = Field(default=UNSET) + type: str = Field() + updated_at: datetime = Field() + url: Missing[str] = Field(default=UNSET) - note: WebhookProjectCardEditedPropChangesPropNote = Field() +class WebhookPingPropHookPropConfig(GitHubModel): + """WebhookPingPropHookPropConfig""" -class WebhookProjectCardEditedPropChangesPropNote(GitHubModel): - """WebhookProjectCardEditedPropChangesPropNote""" - - from_: Union[str, None] = Field(alias="from") + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + ) + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) -model_rebuild(WebhookProjectCardEdited) -model_rebuild(WebhookProjectCardEditedPropChanges) -model_rebuild(WebhookProjectCardEditedPropChangesPropNote) +model_rebuild(WebhookPingPropHook) +model_rebuild(WebhookPingPropHookPropConfig) __all__ = ( - "WebhookProjectCardEdited", - "WebhookProjectCardEditedPropChanges", - "WebhookProjectCardEditedPropChangesPropNote", + "WebhookPingPropHook", + "WebhookPingPropHookPropConfig", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0645.py b/githubkit/versions/ghec_v2022_11_28/models/group_0645.py index ccecb2ff1..fac71cc70 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0645.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0645.py @@ -9,122 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks - - -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)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookProjectCardMovedPropChanges(GitHubModel): - """WebhookProjectCardMovedPropChanges""" - - column_id: WebhookProjectCardMovedPropChangesPropColumnId = Field() - - -class WebhookProjectCardMovedPropChangesPropColumnId(GitHubModel): - """WebhookProjectCardMovedPropChangesPropColumnId""" - - from_: int = Field(alias="from") - - -class WebhookProjectCardMovedPropProjectCard(GitHubModel): - """WebhookProjectCardMovedPropProjectCard""" - - after_id: Union[Union[int, None], None] = Field() - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreator, None] = Field() - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[Union[str, None], None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() +class WebhookPingFormEncoded(GitHubModel): + """WebhookPingFormEncoded -class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" + The webhooks ping payload encoded with URL encoding. + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + payload: str = Field( + description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." ) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardMoved) -model_rebuild(WebhookProjectCardMovedPropChanges) -model_rebuild(WebhookProjectCardMovedPropChangesPropColumnId) -model_rebuild(WebhookProjectCardMovedPropProjectCard) -model_rebuild(WebhookProjectCardMovedPropProjectCardMergedCreator) +model_rebuild(WebhookPingFormEncoded) -__all__ = ( - "WebhookProjectCardMoved", - "WebhookProjectCardMovedPropChanges", - "WebhookProjectCardMovedPropChangesPropColumnId", - "WebhookProjectCardMovedPropProjectCard", - "WebhookProjectCardMovedPropProjectCardMergedCreator", -) +__all__ = ("WebhookPingFormEncoded",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0646.py b/githubkit/versions/ghec_v2022_11_28/models/group_0646.py index 8df8ef190..8cff16279 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0646.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0646.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,59 +17,64 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0440 import WebhooksProjectCard +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): - """Project Card""" - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreator, None] = ( - Field(title="User") +class WebhookProjectCardConverted(GitHubModel): + """project_card converted event""" + + action: Literal["converted"] = Field() + changes: WebhookProjectCardConvertedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + project_card: WebhooksProjectCard = Field(title="Project Card") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - url: Missing[str] = Field(default=UNSET) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookProjectCardConvertedPropChanges(GitHubModel): + """WebhookProjectCardConvertedPropChanges""" + + note: WebhookProjectCardConvertedPropChangesPropNote = Field() + + +class WebhookProjectCardConvertedPropChangesPropNote(GitHubModel): + """WebhookProjectCardConvertedPropChangesPropNote""" + + from_: str = Field(alias="from") -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) +model_rebuild(WebhookProjectCardConverted) +model_rebuild(WebhookProjectCardConvertedPropChanges) +model_rebuild(WebhookProjectCardConvertedPropChangesPropNote) __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0", - "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", + "WebhookProjectCardConverted", + "WebhookProjectCardConvertedPropChanges", + "WebhookProjectCardConvertedPropChangesPropNote", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0647.py b/githubkit/versions/ghec_v2022_11_28/models/group_0647.py index aeb9c0e62..8cf22441f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0647.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0647.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,53 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -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_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0440 import WebhooksProjectCard +from .group_0408 import OrganizationSimpleWebhooks + + +class WebhookProjectCardCreated(GitHubModel): + """project_card created event""" + + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +model_rebuild(WebhookProjectCardCreated) + +__all__ = ("WebhookProjectCardCreated",) 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 3889b204b..c9daaade3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0648.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0648.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,18 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0437 import WebhooksProject -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectClosed(GitHubModel): - """project closed event""" +class WebhookProjectCardDeleted(GitHubModel): + """project_card deleted event""" - action: Literal["closed"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +44,68 @@ class WebhookProjectClosed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) + project_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookProjectClosed) +class WebhookProjectCardDeletedPropProjectCard(GitHubModel): + """Project Card""" + + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: Union[int, None] = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreator, None] = Field( + title="User" + ) + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardDeletedPropProjectCardPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCardDeleted) +model_rebuild(WebhookProjectCardDeletedPropProjectCard) +model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) -__all__ = ("WebhookProjectClosed",) +__all__ = ( + "WebhookProjectCardDeleted", + "WebhookProjectCardDeletedPropProjectCard", + "WebhookProjectCardDeletedPropProjectCardPropCreator", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0649.py b/githubkit/versions/ghec_v2022_11_28/models/group_0649.py index c204cf1d4..eff4231b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0649.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0649.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0438 import WebhooksProjectColumn -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0440 import WebhooksProjectCard +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectColumnCreated(GitHubModel): - """project_column created event""" +class WebhookProjectCardEdited(GitHubModel): + """project_card edited event""" - action: Literal["created"] = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectCardEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,19 +45,36 @@ class WebhookProjectColumnCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhooksProjectColumn = Field(title="Project Column") + project_card: WebhooksProjectCard = Field(title="Project Card") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookProjectColumnCreated) +class WebhookProjectCardEditedPropChanges(GitHubModel): + """WebhookProjectCardEditedPropChanges""" + + note: WebhookProjectCardEditedPropChangesPropNote = Field() + + +class WebhookProjectCardEditedPropChangesPropNote(GitHubModel): + """WebhookProjectCardEditedPropChangesPropNote""" + + from_: Union[str, None] = Field(alias="from") + + +model_rebuild(WebhookProjectCardEdited) +model_rebuild(WebhookProjectCardEditedPropChanges) +model_rebuild(WebhookProjectCardEditedPropChangesPropNote) -__all__ = ("WebhookProjectColumnCreated",) +__all__ = ( + "WebhookProjectCardEdited", + "WebhookProjectCardEditedPropChanges", + "WebhookProjectCardEditedPropChangesPropNote", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0650.py b/githubkit/versions/ghec_v2022_11_28/models/group_0650.py index 3919cc106..0a386a3f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0650.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0650.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -17,18 +18,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0438 import WebhooksProjectColumn -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectColumnDeleted(GitHubModel): - """project_column deleted event""" +class WebhookProjectCardMoved(GitHubModel): + """project_card moved event""" - action: Literal["deleted"] = Field() + action: Literal["moved"] = Field() + changes: Missing[WebhookProjectCardMovedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,15 +45,86 @@ class WebhookProjectColumnDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhooksProjectColumn = Field(title="Project Column") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUserWebhooks] = Field( + 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: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookProjectColumnDeleted) +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) + + +model_rebuild(WebhookProjectCardMoved) +model_rebuild(WebhookProjectCardMovedPropChanges) +model_rebuild(WebhookProjectCardMovedPropChangesPropColumnId) +model_rebuild(WebhookProjectCardMovedPropProjectCard) +model_rebuild(WebhookProjectCardMovedPropProjectCardMergedCreator) -__all__ = ("WebhookProjectColumnDeleted",) +__all__ = ( + "WebhookProjectCardMoved", + "WebhookProjectCardMovedPropChanges", + "WebhookProjectCardMovedPropChangesPropColumnId", + "WebhookProjectCardMovedPropProjectCard", + "WebhookProjectCardMovedPropProjectCardMergedCreator", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0651.py b/githubkit/versions/ghec_v2022_11_28/models/group_0651.py index 1dbc40125..8df8ef190 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0651.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0651.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,65 +18,59 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0438 import WebhooksProjectColumn -from .group_0404 import OrganizationSimpleWebhooks +class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): + """Project Card""" -class WebhookProjectColumnEdited(GitHubModel): - """project_column edited event""" - - action: Literal["edited"] = Field() - changes: WebhookProjectColumnEditedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreator, None] = ( + Field(title="User") ) - project_column: WebhooksProjectColumn = Field(title="Project Column") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookProjectColumnEditedPropChanges(GitHubModel): - """WebhookProjectColumnEditedPropChanges""" - - name: Missing[WebhookProjectColumnEditedPropChangesPropName] = Field(default=UNSET) - - -class WebhookProjectColumnEditedPropChangesPropName(GitHubModel): - """WebhookProjectColumnEditedPropChangesPropName""" - - from_: str = Field(alias="from") + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectColumnEdited) -model_rebuild(WebhookProjectColumnEditedPropChanges) -model_rebuild(WebhookProjectColumnEditedPropChangesPropName) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) __all__ = ( - "WebhookProjectColumnEdited", - "WebhookProjectColumnEditedPropChanges", - "WebhookProjectColumnEditedPropChangesPropName", + "WebhookProjectCardMovedPropProjectCardAllof0", + "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0652.py b/githubkit/versions/ghec_v2022_11_28/models/group_0652.py index 2db2508e0..aeb9c0e62 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0652.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0652.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,45 +17,53 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0438 import WebhooksProjectColumn -from .group_0404 import OrganizationSimpleWebhooks - - -class WebhookProjectColumnMoved(GitHubModel): - """project_column moved event""" - - action: Literal["moved"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project_column: WebhooksProjectColumn = Field(title="Project Column") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookProjectColumnMoved) - -__all__ = ("WebhookProjectColumnMoved",) + +class WebhookProjectCardMovedPropProjectCardAllof1(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1""" + + after_id: Union[int, None] = Field() + archived: Missing[bool] = Field(default=UNSET) + column_id: Missing[int] = Field(default=UNSET) + column_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + creator: Missing[ + Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreator, None] + ] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + note: Missing[Union[str, None]] = Field(default=UNSET) + project_url: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1PropCreator) + +__all__ = ( + "WebhookProjectCardMovedPropProjectCardAllof1", + "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0653.py b/githubkit/versions/ghec_v2022_11_28/models/group_0653.py index 8b5e5993e..2ebd5e9de 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0653.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0653.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0437 import WebhooksProject -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0441 import WebhooksProject +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectCreated(GitHubModel): - """project created event""" +class WebhookProjectClosed(GitHubModel): + """project closed event""" - action: Literal["created"] = Field() + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -56,6 +56,6 @@ class WebhookProjectCreated(GitHubModel): ) -model_rebuild(WebhookProjectCreated) +model_rebuild(WebhookProjectClosed) -__all__ = ("WebhookProjectCreated",) +__all__ = ("WebhookProjectClosed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0654.py b/githubkit/versions/ghec_v2022_11_28/models/group_0654.py index 70440cebd..92b7fd689 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0654.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0654.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0437 import WebhooksProject -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0442 import WebhooksProjectColumn +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectDeleted(GitHubModel): - """project deleted event""" +class WebhookProjectColumnCreated(GitHubModel): + """project_column created event""" - action: Literal["deleted"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,8 +44,12 @@ class WebhookProjectDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + project_column: WebhooksProjectColumn = Field(title="Project Column") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, title="Simple User", @@ -53,6 +57,6 @@ class WebhookProjectDeleted(GitHubModel): ) -model_rebuild(WebhookProjectDeleted) +model_rebuild(WebhookProjectColumnCreated) -__all__ = ("WebhookProjectDeleted",) +__all__ = ("WebhookProjectColumnCreated",) 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 3d5fbd3f0..728f9feb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0655.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0655.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,22 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0437 import WebhooksProject -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0442 import WebhooksProjectColumn +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectEdited(GitHubModel): - """project edited event""" +class WebhookProjectColumnDeleted(GitHubModel): + """project_column deleted event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookProjectEditedPropChanges] = Field( - default=UNSET, - description="The changes to the project if the action was `edited`.", - ) + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,12 +44,8 @@ class WebhookProjectEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) + project_column: WebhooksProjectColumn = Field(title="Project Column") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, title="Simple User", @@ -61,42 +53,6 @@ class WebhookProjectEdited(GitHubModel): ) -class WebhookProjectEditedPropChanges(GitHubModel): - """WebhookProjectEditedPropChanges - - The changes to the project if the action was `edited`. - """ - - body: Missing[WebhookProjectEditedPropChangesPropBody] = Field(default=UNSET) - name: Missing[WebhookProjectEditedPropChangesPropName] = Field(default=UNSET) - - -class WebhookProjectEditedPropChangesPropBody(GitHubModel): - """WebhookProjectEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookProjectEditedPropChangesPropName(GitHubModel): - """WebhookProjectEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The changes to the project if the action was `edited`.", - ) - - -model_rebuild(WebhookProjectEdited) -model_rebuild(WebhookProjectEditedPropChanges) -model_rebuild(WebhookProjectEditedPropChangesPropBody) -model_rebuild(WebhookProjectEditedPropChangesPropName) +model_rebuild(WebhookProjectColumnDeleted) -__all__ = ( - "WebhookProjectEdited", - "WebhookProjectEditedPropChanges", - "WebhookProjectEditedPropChangesPropBody", - "WebhookProjectEditedPropChangesPropName", -) +__all__ = ("WebhookProjectColumnDeleted",) 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 e56ef6f20..66fd69737 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0656.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0656.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0437 import WebhooksProject -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0442 import WebhooksProjectColumn +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectReopened(GitHubModel): - """project reopened event""" +class WebhookProjectColumnEdited(GitHubModel): + """project_column edited event""" - action: Literal["reopened"] = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectColumnEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +45,37 @@ class WebhookProjectReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") + project_column: WebhooksProjectColumn = Field(title="Project Column") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookProjectReopened) +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__ = ("WebhookProjectReopened",) +__all__ = ( + "WebhookProjectColumnEdited", + "WebhookProjectColumnEditedPropChanges", + "WebhookProjectColumnEditedPropChangesPropName", +) 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 df1ad99a7..56ee5927e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0657.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0657.py @@ -17,27 +17,38 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0439 import ProjectsV2 -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0442 import WebhooksProjectColumn +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectClosed(GitHubModel): - """Projects v2 Project Closed Event""" +class WebhookProjectColumnMoved(GitHubModel): + """project_column moved event""" - action: Literal["closed"] = Field() + action: Literal["moved"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project_column: WebhooksProjectColumn = Field(title="Project Column") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -45,6 +56,6 @@ class WebhookProjectsV2ProjectClosed(GitHubModel): ) -model_rebuild(WebhookProjectsV2ProjectClosed) +model_rebuild(WebhookProjectColumnMoved) -__all__ = ("WebhookProjectsV2ProjectClosed",) +__all__ = ("WebhookProjectColumnMoved",) 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 e169de71e..22585c965 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0658.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0658.py @@ -17,30 +17,38 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0439 import ProjectsV2 -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0441 import WebhooksProject +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectCreated(GitHubModel): - """WebhookProjectsV2ProjectCreated - - A project was created - """ +class WebhookProjectCreated(GitHubModel): + """project created event""" action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project: WebhooksProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -48,6 +56,6 @@ class WebhookProjectsV2ProjectCreated(GitHubModel): ) -model_rebuild(WebhookProjectsV2ProjectCreated) +model_rebuild(WebhookProjectCreated) -__all__ = ("WebhookProjectsV2ProjectCreated",) +__all__ = ("WebhookProjectCreated",) 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 1dafe3363..7fcceff2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0659.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0659.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,34 +17,42 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0439 import ProjectsV2 -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0441 import WebhooksProject +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectDeleted(GitHubModel): - """Projects v2 Project Deleted Event""" +class WebhookProjectDeleted(GitHubModel): + """project deleted event""" action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" - ) - sender: SimpleUserWebhooks = Field( + project: WebhooksProject = Field(title="Project") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookProjectsV2ProjectDeleted) +model_rebuild(WebhookProjectDeleted) -__all__ = ("WebhookProjectsV2ProjectDeleted",) +__all__ = ("WebhookProjectDeleted",) 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 e040f2679..f286f7add 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0660.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0660.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,92 +17,86 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0439 import ProjectsV2 -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0441 import WebhooksProject +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectEdited(GitHubModel): - """Projects v2 Project Edited Event""" +class WebhookProjectEdited(GitHubModel): + """project edited event""" action: Literal["edited"] = Field() - changes: WebhookProjectsV2ProjectEditedPropChanges = Field() + changes: Missing[WebhookProjectEditedPropChanges] = Field( + default=UNSET, + description="The changes to the project if the action was `edited`.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project: WebhooksProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChanges""" +class WebhookProjectEditedPropChanges(GitHubModel): + """WebhookProjectEditedPropChanges - 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) + The changes to the project if the action was `edited`. + """ + body: Missing[WebhookProjectEditedPropChangesPropBody] = Field(default=UNSET) + name: Missing[WebhookProjectEditedPropChangesPropName] = Field(default=UNSET) -class WebhookProjectsV2ProjectEditedPropChangesPropPublic(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - from_: Missing[bool] = Field(default=UNSET, alias="from") - to: Missing[bool] = Field(default=UNSET) +class WebhookProjectEditedPropChangesPropBody(GitHubModel): + """WebhookProjectEditedPropChangesPropBody""" - -class WebhookProjectsV2ProjectEditedPropChangesPropShortDescription(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) -class WebhookProjectsV2ProjectEditedPropChangesPropTitle(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" +class WebhookProjectEditedPropChangesPropName(GitHubModel): + """WebhookProjectEditedPropChangesPropName""" - from_: Missing[str] = Field(default=UNSET, alias="from") - to: Missing[str] = Field(default=UNSET) + from_: str = Field( + alias="from", + description="The changes to the project if the action was `edited`.", + ) -model_rebuild(WebhookProjectsV2ProjectEdited) -model_rebuild(WebhookProjectsV2ProjectEditedPropChanges) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropDescription) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropPublic) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropShortDescription) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropTitle) +model_rebuild(WebhookProjectEdited) +model_rebuild(WebhookProjectEditedPropChanges) +model_rebuild(WebhookProjectEditedPropChangesPropBody) +model_rebuild(WebhookProjectEditedPropChangesPropName) __all__ = ( - "WebhookProjectsV2ProjectEdited", - "WebhookProjectsV2ProjectEditedPropChanges", - "WebhookProjectsV2ProjectEditedPropChangesPropDescription", - "WebhookProjectsV2ProjectEditedPropChangesPropPublic", - "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", - "WebhookProjectsV2ProjectEditedPropChangesPropTitle", + "WebhookProjectEdited", + "WebhookProjectEditedPropChanges", + "WebhookProjectEditedPropChangesPropBody", + "WebhookProjectEditedPropChangesPropName", ) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0661.py b/githubkit/versions/ghec_v2022_11_28/models/group_0661.py index 68ab1a47e..a958c2d8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0661.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0661.py @@ -17,29 +17,38 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0441 import ProjectsV2Item -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0440 import WebhooksProjectChanges -from .group_0404 import OrganizationSimpleWebhooks +from .group_0441 import WebhooksProject +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemArchived(GitHubModel): - """Projects v2 Item Archived Event""" +class WebhookProjectReopened(GitHubModel): + """project reopened event""" - action: Literal["archived"] = Field() - changes: WebhooksProjectChanges = Field() + action: Literal["reopened"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + project: WebhooksProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -47,6 +56,6 @@ class WebhookProjectsV2ItemArchived(GitHubModel): ) -model_rebuild(WebhookProjectsV2ItemArchived) +model_rebuild(WebhookProjectReopened) -__all__ = ("WebhookProjectsV2ItemArchived",) +__all__ = ("WebhookProjectReopened",) 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 6668e6c05..c95676bd6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0662.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0662.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,17 +17,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0441 import ProjectsV2Item -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0443 import ProjectsV2 +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemConverted(GitHubModel): - """Projects v2 Item Converted Event""" +class WebhookProjectsV2ProjectClosed(GitHubModel): + """Projects v2 Project Closed Event""" - action: Literal["converted"] = Field() - changes: WebhookProjectsV2ItemConvertedPropChanges = Field() + action: Literal["closed"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -37,8 +36,8 @@ class WebhookProjectsV2ItemConverted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -46,27 +45,6 @@ class WebhookProjectsV2ItemConverted(GitHubModel): ) -class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChanges""" +model_rebuild(WebhookProjectsV2ProjectClosed) - content_type: Missing[WebhookProjectsV2ItemConvertedPropChangesPropContentType] = ( - Field(default=UNSET) - ) - - -class WebhookProjectsV2ItemConvertedPropChangesPropContentType(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemConverted) -model_rebuild(WebhookProjectsV2ItemConvertedPropChanges) -model_rebuild(WebhookProjectsV2ItemConvertedPropChangesPropContentType) - -__all__ = ( - "WebhookProjectsV2ItemConverted", - "WebhookProjectsV2ItemConvertedPropChanges", - "WebhookProjectsV2ItemConvertedPropChangesPropContentType", -) +__all__ = ("WebhookProjectsV2ProjectClosed",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0663.py b/githubkit/versions/ghec_v2022_11_28/models/group_0663.py index 10c2b02f9..55e0deba2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0663.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0663.py @@ -17,14 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0441 import ProjectsV2Item -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0443 import ProjectsV2 +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemCreated(GitHubModel): - """Projects v2 Item Created Event""" +class WebhookProjectsV2ProjectCreated(GitHubModel): + """WebhookProjectsV2ProjectCreated + + A project was created + """ action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( @@ -36,8 +39,8 @@ class WebhookProjectsV2ItemCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -45,6 +48,6 @@ class WebhookProjectsV2ItemCreated(GitHubModel): ) -model_rebuild(WebhookProjectsV2ItemCreated) +model_rebuild(WebhookProjectsV2ProjectCreated) -__all__ = ("WebhookProjectsV2ItemCreated",) +__all__ = ("WebhookProjectsV2ProjectCreated",) 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 2e1e305a8..fb7031499 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0664.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0664.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0441 import ProjectsV2Item -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0443 import ProjectsV2 +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemDeleted(GitHubModel): - """Projects v2 Item Deleted Event""" +class WebhookProjectsV2ProjectDeleted(GitHubModel): + """Projects v2 Project Deleted Event""" action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( @@ -36,8 +36,8 @@ class WebhookProjectsV2ItemDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -45,6 +45,6 @@ class WebhookProjectsV2ItemDeleted(GitHubModel): ) -model_rebuild(WebhookProjectsV2ItemDeleted) +model_rebuild(WebhookProjectsV2ProjectDeleted) -__all__ = ("WebhookProjectsV2ItemDeleted",) +__all__ = ("WebhookProjectsV2ProjectDeleted",) 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 35b1c2560..50ce2ef12 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0665.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0665.py @@ -17,22 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0441 import ProjectsV2Item -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0443 import ProjectsV2 +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemEdited(GitHubModel): - """Projects v2 Item Edited Event""" +class WebhookProjectsV2ProjectEdited(GitHubModel): + """Projects v2 Project Edited Event""" action: Literal["edited"] = Field() - changes: Missing[ - Union[ - WebhookProjectsV2ItemEditedPropChangesOneof0, - WebhookProjectsV2ItemEditedPropChangesOneof1, - ] - ] = Field(default=UNSET) + changes: WebhookProjectsV2ProjectEditedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -42,8 +37,8 @@ class WebhookProjectsV2ItemEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -51,42 +46,63 @@ class WebhookProjectsV2ItemEdited(GitHubModel): ) -class WebhookProjectsV2ItemEditedPropChangesOneof0(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" +class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChanges""" - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue = Field() + 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 WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" +class WebhookProjectsV2ProjectEditedPropChangesPropDescription(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - field_node_id: Missing[str] = Field(default=UNSET) - field_type: Missing[str] = Field(default=UNSET) + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) -class WebhookProjectsV2ItemEditedPropChangesOneof1(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof1""" +class WebhookProjectsV2ProjectEditedPropChangesPropPublic(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBody = Field() + from_: Missing[bool] = Field(default=UNSET, alias="from") + to: Missing[bool] = Field(default=UNSET) -class WebhookProjectsV2ItemEditedPropChangesOneof1PropBody(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" +class WebhookProjectsV2ProjectEditedPropChangesPropShortDescription(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" 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(WebhookProjectsV2ItemEditedPropChangesOneof1) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1PropBody) +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__ = ( - "WebhookProjectsV2ItemEdited", - "WebhookProjectsV2ItemEditedPropChangesOneof0", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", - "WebhookProjectsV2ItemEditedPropChangesOneof1", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", + "WebhookProjectsV2ProjectEdited", + "WebhookProjectsV2ProjectEditedPropChanges", + "WebhookProjectsV2ProjectEditedPropChangesPropDescription", + "WebhookProjectsV2ProjectEditedPropChangesPropPublic", + "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", + "WebhookProjectsV2ProjectEditedPropChangesPropTitle", ) 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 12ae7d1f5..2935173c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0666.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0666.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,17 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0441 import ProjectsV2Item -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0445 import ProjectsV2Item +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0444 import WebhooksProjectChanges +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemReordered(GitHubModel): - """Projects v2 Item Reordered Event""" +class WebhookProjectsV2ItemArchived(GitHubModel): + """Projects v2 Item Archived Event""" - action: Literal["reordered"] = Field() - changes: WebhookProjectsV2ItemReorderedPropChanges = Field() + action: Literal["archived"] = Field() + changes: WebhooksProjectChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -46,29 +47,6 @@ class WebhookProjectsV2ItemReordered(GitHubModel): ) -class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): - """WebhookProjectsV2ItemReorderedPropChanges""" +model_rebuild(WebhookProjectsV2ItemArchived) - previous_projects_v2_item_node_id: Missing[ - WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId - ] = Field(default=UNSET) - - -class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId( - GitHubModel -): - """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemReordered) -model_rebuild(WebhookProjectsV2ItemReorderedPropChanges) -model_rebuild(WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId) - -__all__ = ( - "WebhookProjectsV2ItemReordered", - "WebhookProjectsV2ItemReorderedPropChanges", - "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", -) +__all__ = ("WebhookProjectsV2ItemArchived",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0667.py b/githubkit/versions/ghec_v2022_11_28/models/group_0667.py index 02c799150..f3038e23c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0667.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0667.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,18 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0441 import ProjectsV2Item -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0440 import WebhooksProjectChanges -from .group_0404 import OrganizationSimpleWebhooks +from .group_0445 import ProjectsV2Item +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemRestored(GitHubModel): - """Projects v2 Item Restored Event""" +class WebhookProjectsV2ItemConverted(GitHubModel): + """Projects v2 Item Converted Event""" - action: Literal["restored"] = Field() - changes: WebhooksProjectChanges = Field() + action: Literal["converted"] = Field() + changes: WebhookProjectsV2ItemConvertedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -47,6 +46,27 @@ class WebhookProjectsV2ItemRestored(GitHubModel): ) -model_rebuild(WebhookProjectsV2ItemRestored) +class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): + """WebhookProjectsV2ItemConvertedPropChanges""" -__all__ = ("WebhookProjectsV2ItemRestored",) + content_type: Missing[WebhookProjectsV2ItemConvertedPropChangesPropContentType] = ( + Field(default=UNSET) + ) + + +class WebhookProjectsV2ItemConvertedPropChangesPropContentType(GitHubModel): + """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemConverted) +model_rebuild(WebhookProjectsV2ItemConvertedPropChanges) +model_rebuild(WebhookProjectsV2ItemConvertedPropChangesPropContentType) + +__all__ = ( + "WebhookProjectsV2ItemConverted", + "WebhookProjectsV2ItemConvertedPropChanges", + "WebhookProjectsV2ItemConvertedPropChangesPropContentType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0668.py b/githubkit/versions/ghec_v2022_11_28/models/group_0668.py index 5a5ce9037..edd931d6c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0668.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0668.py @@ -17,16 +17,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0439 import ProjectsV2 -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0445 import ProjectsV2Item +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectReopened(GitHubModel): - """Projects v2 Project Reopened Event""" +class WebhookProjectsV2ItemCreated(GitHubModel): + """Projects v2 Item Created Event""" - action: Literal["reopened"] = Field() + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -36,8 +36,8 @@ class WebhookProjectsV2ProjectReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -45,6 +45,6 @@ class WebhookProjectsV2ProjectReopened(GitHubModel): ) -model_rebuild(WebhookProjectsV2ProjectReopened) +model_rebuild(WebhookProjectsV2ItemCreated) -__all__ = ("WebhookProjectsV2ProjectReopened",) +__all__ = ("WebhookProjectsV2ItemCreated",) 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 3ee69eabc..60366932a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0669.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0669.py @@ -9,40 +9,35 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0445 import ProjectsV2Item +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPublic(GitHubModel): - """public event""" +class WebhookProjectsV2ItemDeleted(GitHubModel): + """Projects v2 Item Deleted 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)."\n', - ) + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -50,6 +45,6 @@ class WebhookPublic(GitHubModel): ) -model_rebuild(WebhookPublic) +model_rebuild(WebhookProjectsV2ItemDeleted) -__all__ = ("WebhookPublic",) +__all__ = ("WebhookProjectsV2ItemDeleted",) 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 ebad21e06..6966f7e3e 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 List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,41 +17,36 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0416 import WebhooksUser -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0445 import ProjectsV2Item +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestAssigned(GitHubModel): - """pull_request assigned event""" +class WebhookProjectsV2ItemEdited(GitHubModel): + """Projects v2 Item Edited Event""" - action: Literal["assigned"] = Field() - assignee: Union[WebhooksUser, None] = Field(title="User") - enterprise: Missing[EnterpriseWebhooks] = Field( + action: Literal["edited"] = Field() + changes: Missing[ + Union[ + WebhookProjectsV2ItemEditedPropChangesOneof0, + WebhookProjectsV2ItemEditedPropChangesOneof1, + ] + ] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + description="The changes made to the item may involve modifications in the item's fields and draft issue body.\nIt includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAssignedPropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -60,1110 +54,78 @@ class WebhookPullRequestAssigned(GitHubModel): ) -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) - - -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) - - -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) - - -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) - - -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) - - -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) - - -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) - - -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""" +class WebhookProjectsV2ItemEditedPropChangesOneof0(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof0""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue = Field() -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ +class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: 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_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) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = 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 has been deprecated. 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) +class ProjectsV2SingleSelectOption(GitHubModel): + """Projects v2 Single Select Option - -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 + An option for a single select 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[ - 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 has been deprecated. 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() + id: 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) - - -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) + color: Missing[Union[str, None]] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) -class WebhookPullRequestAssignedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" +class ProjectsV2IterationSetting(GitHubModel): + """Projects v2 Iteration Setting - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(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 WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. + An iteration setting for an iteration field """ - 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") + id: str = Field() + title: str = Field() + duration: Missing[Union[float, None]] = Field(default=UNSET) + start_date: Missing[Union[str, None]] = Field(default=UNSET) -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ +class WebhookProjectsV2ItemEditedPropChangesOneof1(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof1""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: 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") + body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBody = Field() -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team +class WebhookProjectsV2ItemEditedPropChangesOneof1PropBody(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" - 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") + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(WebhookPullRequestAssigned) -model_rebuild(WebhookPullRequestAssignedPropPullRequest) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookProjectsV2ItemEdited) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue) +model_rebuild(ProjectsV2SingleSelectOption) +model_rebuild(ProjectsV2IterationSetting) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1PropBody) __all__ = ( - "WebhookPullRequestAssigned", - "WebhookPullRequestAssignedPropPullRequest", - "WebhookPullRequestAssignedPropPullRequestPropAssignee", - "WebhookPullRequestAssignedPropPullRequestPropAssigneesItems", - "WebhookPullRequestAssignedPropPullRequestPropAutoMerge", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAssignedPropPullRequestPropLabelsItems", - "WebhookPullRequestAssignedPropPullRequestPropMergedBy", - "WebhookPullRequestAssignedPropPullRequestPropMilestone", - "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAssignedPropPullRequestPropUser", - "WebhookPullRequestAssignedPropPullRequestPropLinks", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropComments", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAssignedPropPullRequestPropBase", - "WebhookPullRequestAssignedPropPullRequestPropBasePropUser", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepo", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAssignedPropPullRequestPropHead", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropUser", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookProjectsV2ItemEdited", + "WebhookProjectsV2ItemEditedPropChangesOneof0", + "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", + "ProjectsV2SingleSelectOption", + "ProjectsV2IterationSetting", + "WebhookProjectsV2ItemEditedPropChangesOneof1", + "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", ) 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 545398138..3e5276350 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0671.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0671.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,40 +17,28 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0445 import ProjectsV2Item +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestAutoMergeDisabled(GitHubModel): - """pull_request auto_merge_disabled event""" +class WebhookProjectsV2ItemReordered(GitHubModel): + """Projects v2 Item Reordered Event""" - action: Literal["auto_merge_disabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["reordered"] = Field() + changes: WebhookProjectsV2ItemReorderedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequest = Field( - title="Pull Request" - ) - reason: str = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -59,1165 +46,29 @@ class WebhookPullRequestAutoMergeDisabled(GitHubModel): ) -class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() +class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): + """WebhookProjectsV2ItemReorderedPropChanges""" - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions + previous_projects_v2_item_node_id: Missing[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = 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 has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId( GitHubModel ): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent - """ + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(WebhookPullRequestAutoMergeDisabled) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequest) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookProjectsV2ItemReordered) +model_rebuild(WebhookProjectsV2ItemReorderedPropChanges) +model_rebuild(WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId) __all__ = ( - "WebhookPullRequestAutoMergeDisabled", - "WebhookPullRequestAutoMergeDisabledPropPullRequest", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookProjectsV2ItemReordered", + "WebhookProjectsV2ItemReorderedPropChanges", + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", ) 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 ea6596fb8..8e03f14aa 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 List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,40 +17,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0445 import ProjectsV2Item +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0444 import WebhooksProjectChanges +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestAutoMergeEnabled(GitHubModel): - """pull_request auto_merge_enabled event""" +class WebhookProjectsV2ItemRestored(GitHubModel): + """Projects v2 Item Restored Event""" - action: Literal["auto_merge_enabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["restored"] = Field() + changes: WebhooksProjectChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( - title="Pull Request" - ) - reason: Missing[str] = Field(default=UNSET) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -59,1157 +47,6 @@ class WebhookPullRequestAutoMergeEnabled(GitHubModel): ) -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) - - -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) - - -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) - - -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) - - -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) - - -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) - - -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) - - -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 has been deprecated. 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) - - -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) - - -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 has been deprecated. 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) - - -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(WebhookProjectsV2ItemRestored) -__all__ = ( - "WebhookPullRequestAutoMergeEnabled", - "WebhookPullRequestAutoMergeEnabledPropPullRequest", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookProjectsV2ItemRestored",) 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 4342ac348..7d02b3678 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0673.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0673.py @@ -17,38 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0442 import PullRequestWebhook -from .group_0404 import OrganizationSimpleWebhooks +from .group_0443 import ProjectsV2 +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestClosed(GitHubModel): - """pull_request closed event""" +class WebhookProjectsV2ProjectReopened(GitHubModel): + """Projects v2 Project Reopened 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)."\n', - ) + action: Literal["reopened"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -56,6 +45,6 @@ class WebhookPullRequestClosed(GitHubModel): ) -model_rebuild(WebhookPullRequestClosed) +model_rebuild(WebhookProjectsV2ProjectReopened) -__all__ = ("WebhookPullRequestClosed",) +__all__ = ("WebhookProjectsV2ProjectReopened",) 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 e8e360d94..e56884a10 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0674.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0674.py @@ -17,38 +17,28 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0442 import PullRequestWebhook -from .group_0404 import OrganizationSimpleWebhooks +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0446 import ProjectsV2StatusUpdate +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestConvertedToDraft(GitHubModel): - """pull_request converted_to_draft event""" +class WebhookProjectsV2StatusUpdateCreated(GitHubModel): + """Projects v2 Status Update Created Event""" - action: Literal["converted_to_draft"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_status_update: ProjectsV2StatusUpdate = Field( + title="Projects v2 Status Update", + description="An status update belonging to a project", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -56,6 +46,6 @@ class WebhookPullRequestConvertedToDraft(GitHubModel): ) -model_rebuild(WebhookPullRequestConvertedToDraft) +model_rebuild(WebhookProjectsV2StatusUpdateCreated) -__all__ = ("WebhookPullRequestConvertedToDraft",) +__all__ = ("WebhookProjectsV2StatusUpdateCreated",) 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 ac6583f1e..c56a5a655 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0675.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0675.py @@ -17,46 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0061 import Milestone -from .group_0402 import EnterpriseWebhooks -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0444 import WebhooksPullRequest5 -from .group_0404 import OrganizationSimpleWebhooks +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0446 import ProjectsV2StatusUpdate +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestDemilestoned(GitHubModel): - """pull_request demilestoned event""" +class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): + """Projects v2 Status Update Deleted Event""" - action: Literal["demilestoned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + action: Literal["deleted"] = Field() + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: Missing[Milestone] = Field( - default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", - ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhooksPullRequest5 = Field(title="Pull Request") - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_status_update: ProjectsV2StatusUpdate = Field( + title="Projects v2 Status Update", + description="An status update belonging to a project", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestDemilestoned) +model_rebuild(WebhookProjectsV2StatusUpdateDeleted) -__all__ = ("WebhookPullRequestDemilestoned",) +__all__ = ("WebhookProjectsV2StatusUpdateDeleted",) 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 ad1126147..f94c88da8 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,8 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from datetime import date +from typing import Union, Literal from pydantic import Field @@ -18,40 +18,31 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0446 import ProjectsV2StatusUpdate +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestDequeued(GitHubModel): - """pull_request dequeued event""" +class WebhookProjectsV2StatusUpdateEdited(GitHubModel): + """Projects v2 Status Update Edited Event""" - 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)."\n', + action: Literal["edited"] = Field() + changes: Missing[WebhookProjectsV2StatusUpdateEditedPropChanges] = Field( + default=UNSET ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestDequeuedPropPullRequest = Field( - title="Pull Request" - ) - reason: str = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_status_update: ProjectsV2StatusUpdate = Field( + title="Projects v2 Status Update", + description="An status update belonging to a project", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -59,1107 +50,67 @@ class WebhookPullRequestDequeued(GitHubModel): ) -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) - - -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. - """ +class WebhookProjectsV2StatusUpdateEditedPropChanges(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChanges""" - 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) - - -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) - - -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( + body: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropBody] = Field( default=UNSET ) - url: 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) - - -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( + status: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus] = Field( default=UNSET ) - url: 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) - - -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 has been deprecated. 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) - - -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) - - -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." + start_date: Missing[WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate] = ( + Field(default=UNSET) ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = 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 + target_date: Missing[ + WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = 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 has been deprecated. 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 WebhookProjectsV2StatusUpdateEditedPropChangesPropBody(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) -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) +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" - -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, - ] + 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) - 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 - """ +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[date, None]] = Field(default=UNSET) -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team +class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" - Groups of organization members that gives permissions on specified repositories. - """ + from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[date, None]] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - 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(WebhookProjectsV2StatusUpdateEdited) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChanges) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropBody) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate) __all__ = ( - "WebhookPullRequestDequeued", - "WebhookPullRequestDequeuedPropPullRequest", - "WebhookPullRequestDequeuedPropPullRequestPropAssignee", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMerge", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestDequeuedPropPullRequestPropLabelsItems", - "WebhookPullRequestDequeuedPropPullRequestPropMergedBy", - "WebhookPullRequestDequeuedPropPullRequestPropMilestone", - "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestDequeuedPropPullRequestPropUser", - "WebhookPullRequestDequeuedPropPullRequestPropLinks", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestDequeuedPropPullRequestPropBase", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropUser", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestDequeuedPropPullRequestPropHead", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookProjectsV2StatusUpdateEdited", + "WebhookProjectsV2StatusUpdateEditedPropChanges", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", ) 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 0226d014d..9c18870d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0677.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0677.py @@ -9,29 +9,22 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0442 import PullRequestWebhook -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestEdited(GitHubModel): - """pull_request edited event""" +class WebhookPublic(GitHubModel): + """public event""" - 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", @@ -42,86 +35,21 @@ 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.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestEditedPropChanges(GitHubModel): - """WebhookPullRequestEditedPropChanges - - The changes to the comment if the action was `edited`. - """ - - base: Missing[WebhookPullRequestEditedPropChangesPropBase] = Field(default=UNSET) - body: Missing[WebhookPullRequestEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookPullRequestEditedPropChangesPropTitle] = Field(default=UNSET) - - -class WebhookPullRequestEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): - """WebhookPullRequestEditedPropChangesPropTitle""" - - from_: str = Field( - alias="from", - description="The previous version of the title if the action was `edited`.", - ) - - -class WebhookPullRequestEditedPropChangesPropBase(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBase""" - - ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() - sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() - - -class WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" - - from_: str = Field(alias="from") - - -class WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropSha""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookPullRequestEdited) -model_rebuild(WebhookPullRequestEditedPropChanges) -model_rebuild(WebhookPullRequestEditedPropChangesPropBody) -model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) -model_rebuild(WebhookPullRequestEditedPropChangesPropBase) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) +model_rebuild(WebhookPublic) -__all__ = ( - "WebhookPullRequestEdited", - "WebhookPullRequestEditedPropChanges", - "WebhookPullRequestEditedPropChangesPropBody", - "WebhookPullRequestEditedPropChangesPropTitle", - "WebhookPullRequestEditedPropChangesPropBase", - "WebhookPullRequestEditedPropChangesPropBasePropRef", - "WebhookPullRequestEditedPropChangesPropBasePropSha", -) +__all__ = ("WebhookPublic",) 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 ec5653a58..eb50717d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0678.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0678.py @@ -18,17 +18,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0420 import WebhooksUser +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestEnqueued(GitHubModel): - """pull_request enqueued event""" +class WebhookPullRequestAssigned(GitHubModel): + """pull_request assigned event""" - action: Literal["enqueued"] = Field() + action: Literal["assigned"] = Field() + assignee: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,13 +41,13 @@ class WebhookPullRequestEnqueued(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestEnqueuedPropPullRequest = Field( + pull_request: WebhookPullRequestAssignedPropPullRequest = Field( title="Pull Request" ) repository: RepositoryWebhooks = Field( @@ -58,19 +60,19 @@ class WebhookPullRequestEnqueued(GitHubModel): ) -class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): +class WebhookPullRequestAssignedPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestEnqueuedPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestAssignedPropPullRequestPropLinks = Field(alias="_links") active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssignee, None] = ( + assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssignee, None] = ( Field(title="User") ) assignees: List[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -85,13 +87,13 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, None] = ( + auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMerge, None] = ( Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) ) - base: WebhookPullRequestEnqueuedPropPullRequestPropBase = Field() + base: WebhookPullRequestAssignedPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -105,11 +107,11 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestEnqueuedPropPullRequestPropHead = Field() + head: WebhookPullRequestAssignedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: List[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems] = Field() + labels: List[WebhookPullRequestAssignedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -121,9 +123,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[WebhookPullRequestAssignedPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestone, None] = ( + milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestone, None] = ( Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -137,13 +139,13 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: List[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -155,12 +157,12 @@ class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUser, None] = Field( + user: Union[WebhookPullRequestAssignedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -182,11 +184,13 @@ 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) -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -208,11 +212,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 WebhookPullRequestAssignedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -225,14 +231,14 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -258,7 +264,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHub url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -272,7 +278,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -298,7 +304,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropMilestone(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 + WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, 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 WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -352,7 +358,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubMo url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -376,11 +382,13 @@ 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) -class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -408,98 +416,98 @@ class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" +class WebhookPullRequestAssignedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropLinks""" - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" +class WebhookPullRequestAssignedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( + user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUser, None] = ( Field(title="User") ) -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -525,7 +533,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -608,7 +616,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -629,10 +637,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -680,7 +688,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -690,7 +698,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -716,10 +724,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -728,47 +736,21 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropHead""" +class WebhookPullRequestAssignedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" + repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, None] = ( + user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, 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) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -851,7 +833,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -872,10 +854,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -923,7 +905,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -933,7 +915,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -959,10 +941,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -971,7 +953,33 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1( +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) + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -980,34 +988,31 @@ 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, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa rent """ @@ -1026,7 +1031,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 url: str = Field(description="URL for the team") -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1043,7 +1048,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubMod node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1057,10 +1062,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubMod url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1077,88 +1082,88 @@ 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(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( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 ) -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(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( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestEnqueued", - "WebhookPullRequestEnqueuedPropPullRequest", - "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems", - "WebhookPullRequestEnqueuedPropPullRequestPropMergedBy", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestone", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestEnqueuedPropPullRequestPropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropLinks", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestEnqueuedPropPullRequestPropBase", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestEnqueuedPropPullRequestPropHead", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestAssigned", + "WebhookPullRequestAssignedPropPullRequest", + "WebhookPullRequestAssignedPropPullRequestPropAssignee", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItems", + "WebhookPullRequestAssignedPropPullRequestPropAutoMerge", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItems", + "WebhookPullRequestAssignedPropPullRequestPropMergedBy", + "WebhookPullRequestAssignedPropPullRequestPropMilestone", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAssignedPropPullRequestPropUser", + "WebhookPullRequestAssignedPropPullRequestPropLinks", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAssignedPropPullRequestPropBase", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUser", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepo", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropHead", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUser", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", ) 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 dcff2f3d2..798fd3f86 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0679.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0679.py @@ -18,18 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0420 import WebhooksLabel -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestLabeled(GitHubModel): - """pull_request labeled event""" +class WebhookPullRequestAutoMergeDisabled(GitHubModel): + """pull_request auto_merge_disabled event""" - action: Literal["labeled"] = Field() + action: Literal["auto_merge_disabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,14 +39,16 @@ class WebhookPullRequestLabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - number: int = Field(description="The pull request number.") + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestLabeledPropPullRequest = Field(title="Pull Request") + pull_request: 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.", @@ -58,19 +59,23 @@ class WebhookPullRequestLabeled(GitHubModel): ) -class WebhookPullRequestLabeledPropPullRequest(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestLabeledPropPullRequestPropLinks = 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[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( - title="User" - ) + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None + ] = Field(title="User") assignees: List[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -85,13 +90,13 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) + auto_merge: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() + base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -105,11 +110,13 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: List[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() + labels: List[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( + Field() + ) locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -121,13 +128,13 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestLabeledPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, 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( @@ -137,13 +144,13 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: List[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -155,12 +162,12 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropUser, None] = Field( - title="User" + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -182,13 +189,11 @@ 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) -class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -210,13 +215,11 @@ class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -229,14 +232,17 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -262,7 +268,7 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -276,7 +282,7 @@ class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -298,13 +304,11 @@ class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -314,7 +318,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -330,7 +334,9 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -352,13 +358,11 @@ 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) -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -388,7 +392,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -416,98 +420,108 @@ class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( - title="Link" + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( + Field(title="Link") ) - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -533,7 +547,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -595,14 +609,14 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(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() @@ -616,7 +630,8 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, 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( @@ -637,10 +652,11 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -688,7 +704,9 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -698,7 +716,9 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHub url: Union[str, None] = Field() -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -724,10 +744,12 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubMo url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -736,21 +758,47 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -833,7 +881,8 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, 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( @@ -854,10 +903,11 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -905,7 +955,9 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -915,7 +967,9 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHub url: Union[str, None] = Field() -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -941,10 +995,12 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubMo url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -953,33 +1009,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -996,7 +1026,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1009,11 +1039,11 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( url: str = Field(description="URL for the team") -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1031,7 +1061,9 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1P url: str = Field(description="URL for the team") -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1048,7 +1080,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubMode node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1062,10 +1094,12 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubMode url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1082,82 +1116,108 @@ 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(WebhookPullRequestAutoMergeDisabled) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequest) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent ) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) __all__ = ( - "WebhookPullRequestLabeled", - "WebhookPullRequestLabeledPropPullRequest", - "WebhookPullRequestLabeledPropPullRequestPropAssignee", - "WebhookPullRequestLabeledPropPullRequestPropAssigneesItems", - "WebhookPullRequestLabeledPropPullRequestPropAutoMerge", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestLabeledPropPullRequestPropLabelsItems", - "WebhookPullRequestLabeledPropPullRequestPropMergedBy", - "WebhookPullRequestLabeledPropPullRequestPropMilestone", - "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestLabeledPropPullRequestPropUser", - "WebhookPullRequestLabeledPropPullRequestPropLinks", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropComments", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestLabeledPropPullRequestPropBase", - "WebhookPullRequestLabeledPropPullRequestPropBasePropUser", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepo", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestLabeledPropPullRequestPropHead", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropUser", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestAutoMergeDisabled", + "WebhookPullRequestAutoMergeDisabledPropPullRequest", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", ) 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 eb0462e10..bc236213b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0680.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0680.py @@ -18,17 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestLocked(GitHubModel): - """pull_request locked event""" +class WebhookPullRequestAutoMergeEnabled(GitHubModel): + """pull_request auto_merge_enabled event""" - action: Literal["locked"] = Field() + action: Literal["auto_merge_enabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,13 +39,16 @@ class WebhookPullRequestLocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: WebhookPullRequestLockedPropPullRequest = Field(title="Pull Request") + pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( + title="Pull Request" + ) + reason: Missing[str] = Field(default=UNSET) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -56,19 +59,21 @@ class WebhookPullRequestLocked(GitHubModel): ) -class WebhookPullRequestLockedPropPullRequest(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestLockedPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( - title="User" - ) + assignee: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, None + ] = Field(title="User") assignees: List[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -83,13 +88,13 @@ class WebhookPullRequestLockedPropPullRequest(GitHubModel): 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.", - ) + auto_merge: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestLockedPropPullRequestPropBase = Field() + base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -103,11 +108,13 @@ class WebhookPullRequestLockedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestLockedPropPullRequestPropHead = Field() + head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: List[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() + labels: List[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems] = ( + Field() + ) locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -119,13 +126,13 @@ class WebhookPullRequestLockedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field( @@ -135,13 +142,13 @@ class WebhookPullRequestLockedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: List[ Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -153,12 +160,12 @@ class WebhookPullRequestLockedPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( - title="User" + user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -184,7 +191,7 @@ class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -206,13 +213,11 @@ class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(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 WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -225,14 +230,17 @@ class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -258,7 +266,7 @@ class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubMo url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -272,7 +280,7 @@ class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -294,13 +302,11 @@ class WebhookPullRequestLockedPropPullRequestPropMergedBy(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 WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -310,7 +316,7 @@ class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -326,7 +332,9 @@ class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -348,11 +356,13 @@ class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(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) -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -382,7 +392,7 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -410,96 +420,108 @@ class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( - title="Link" + comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments = ( + Field(title="Link") + ) + commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits = ( + Field(title="Link") ) - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( + html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml = Field( title="Link" ) - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( - title="Link" + statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") ) -class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -525,7 +547,7 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -608,7 +630,8 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -629,10 +652,10 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -680,7 +703,9 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -690,7 +715,9 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubM url: Union[str, None] = Field() -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -716,10 +743,10 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -728,21 +755,47 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -825,7 +878,8 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -846,10 +900,10 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -897,7 +951,9 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -907,7 +963,9 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubM url: Union[str, None] = Field() -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -933,10 +991,10 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -945,33 +1003,7 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( 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) - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -988,7 +1020,7 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1001,11 +1033,11 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( url: str = Field(description="URL for the team") -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo + f1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1023,7 +1055,9 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Pr url: str = Field(description="URL for the team") -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1040,7 +1074,7 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1054,10 +1088,12 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare + nt + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1074,82 +1110,106 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( 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(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( - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent ) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) __all__ = ( - "WebhookPullRequestLocked", - "WebhookPullRequestLockedPropPullRequest", - "WebhookPullRequestLockedPropPullRequestPropAssignee", - "WebhookPullRequestLockedPropPullRequestPropAssigneesItems", - "WebhookPullRequestLockedPropPullRequestPropAutoMerge", - "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestLockedPropPullRequestPropLabelsItems", - "WebhookPullRequestLockedPropPullRequestPropMergedBy", - "WebhookPullRequestLockedPropPullRequestPropMilestone", - "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestLockedPropPullRequestPropUser", - "WebhookPullRequestLockedPropPullRequestPropLinks", - "WebhookPullRequestLockedPropPullRequestPropLinksPropComments", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestLockedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestLockedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestLockedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestLockedPropPullRequestPropBase", - "WebhookPullRequestLockedPropPullRequestPropBasePropUser", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepo", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestLockedPropPullRequestPropHead", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestLockedPropPullRequestPropHeadPropUser", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestAutoMergeEnabled", + "WebhookPullRequestAutoMergeEnabledPropPullRequest", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", ) 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 44170c93f..52a3296d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0681.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0681.py @@ -17,27 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0061 import Milestone -from .group_0402 import EnterpriseWebhooks -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0444 import WebhooksPullRequest5 -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0447 import PullRequestWebhook +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestMilestoned(GitHubModel): - """pull_request milestoned event""" +class WebhookPullRequestClosed(GitHubModel): + """pull_request closed event""" - action: Literal["milestoned"] = 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)."\n', ) - 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,18 +45,17 @@ 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[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestMilestoned) +model_rebuild(WebhookPullRequestClosed) -__all__ = ("WebhookPullRequestMilestoned",) +__all__ = ("WebhookPullRequestClosed",) 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 f1a093492..fab6e01ae 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0682.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0682.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0442 import PullRequestWebhook -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0447 import PullRequestWebhook +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestOpened(GitHubModel): - """pull_request opened event""" +class WebhookPullRequestConvertedToDraft(GitHubModel): + """pull_request converted_to_draft event""" - action: Literal["opened"] = Field() + action: Literal["converted_to_draft"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -56,6 +56,6 @@ class WebhookPullRequestOpened(GitHubModel): ) -model_rebuild(WebhookPullRequestOpened) +model_rebuild(WebhookPullRequestConvertedToDraft) -__all__ = ("WebhookPullRequestOpened",) +__all__ = ("WebhookPullRequestConvertedToDraft",) 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 4a7a7525f..648d3539b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0683.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0683.py @@ -17,27 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0442 import PullRequestWebhook -from .group_0404 import OrganizationSimpleWebhooks +from .group_0064 import Milestone +from .group_0406 import EnterpriseWebhooks +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0449 import WebhooksPullRequest5 +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestReadyForReview(GitHubModel): - """pull_request ready_for_review event""" +class WebhookPullRequestDemilestoned(GitHubModel): + """pull_request demilestoned event""" - action: Literal["ready_for_review"] = 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)."\n', ) - 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,17 +45,18 @@ class WebhookPullRequestReadyForReview(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `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: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestReadyForReview) +model_rebuild(WebhookPullRequestDemilestoned) -__all__ = ("WebhookPullRequestReadyForReview",) +__all__ = ("WebhookPullRequestDemilestoned",) 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 44047571b..a131dc6b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0684.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0684.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,18 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0442 import PullRequestWebhook -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestReopened(GitHubModel): - """pull_request reopened event""" +class WebhookPullRequestDequeued(GitHubModel): + """pull_request dequeued event""" - action: Literal["reopened"] = Field() + action: Literal["dequeued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,13 +39,16 @@ 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.") + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() + pull_request: WebhookPullRequestDequeuedPropPullRequest = Field( + title="Pull Request" + ) + reason: 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.", @@ -56,6 +59,1107 @@ class WebhookPullRequestReopened(GitHubModel): ) -model_rebuild(WebhookPullRequestReopened) +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) + + +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) + + +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) + + +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) + + +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) + + +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) + + +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) + + +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 has been deprecated. 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) + + +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) + + +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 has been deprecated. 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) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestDequeued) +model_rebuild(WebhookPullRequestDequeuedPropPullRequest) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookPullRequestReopened",) +__all__ = ( + "WebhookPullRequestDequeued", + "WebhookPullRequestDequeuedPropPullRequest", + "WebhookPullRequestDequeuedPropPullRequestPropAssignee", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMerge", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestDequeuedPropPullRequestPropLabelsItems", + "WebhookPullRequestDequeuedPropPullRequestPropMergedBy", + "WebhookPullRequestDequeuedPropPullRequestPropMilestone", + "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestDequeuedPropPullRequestPropUser", + "WebhookPullRequestDequeuedPropPullRequestPropLinks", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestDequeuedPropPullRequestPropBase", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropUser", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestDequeuedPropPullRequestPropHead", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", +) 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 c75eb4f1a..e67c04229 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0685.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0685.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,20 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0447 import PullRequestWebhook +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewCommentCreated(GitHubModel): - """pull_request_review_comment created event""" +class WebhookPullRequestEdited(GitHubModel): + """pull_request edited event""" - action: Literal["created"] = Field() - comment: WebhookPullRequestReviewCommentCreatedPropComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + action: Literal["edited"] = Field() + changes: WebhookPullRequestEditedPropChanges = Field( + description="The changes to the comment if the action was `edited`." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -43,1339 +42,86 @@ class WebhookPullRequestReviewCommentCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequest = Field() + pull_request: 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: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -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) - - -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) - - -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) - - -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) - - -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) - - -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) - - -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) - - -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 has been deprecated. 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 WebhookPullRequestEditedPropChanges(GitHubModel): + """WebhookPullRequestEditedPropChanges -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) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss - ions + The changes to the comment if the action was `edited`. """ - 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 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 WebhookPullRequestEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBody""" - -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." + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: 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 has been deprecated. 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) - - -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) +class WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): + """WebhookPullRequestEditedPropChangesPropTitle""" - -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" + from_: str = Field( + alias="from", + description="The previous version of the title if the action was `edited`.", ) - 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 - """ +class WebhookPullRequestEditedPropChangesPropBase(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBase""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() + sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team +class WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropRef""" - Groups of organization members that gives permissions on specified repositories. - """ + from_: str = Field(alias="from") - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - 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 WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropSha""" -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ + from_: str = Field(alias="from") - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - -model_rebuild(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 -) +model_rebuild(WebhookPullRequestEdited) +model_rebuild(WebhookPullRequestEditedPropChanges) +model_rebuild(WebhookPullRequestEditedPropChangesPropBody) +model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) +model_rebuild(WebhookPullRequestEditedPropChangesPropBase) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) __all__ = ( - "WebhookPullRequestReviewCommentCreated", - "WebhookPullRequestReviewCommentCreatedPropComment", - "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", - "WebhookPullRequestReviewCommentCreatedPropCommentPropUser", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinks", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf", - "WebhookPullRequestReviewCommentCreatedPropPullRequest", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestEdited", + "WebhookPullRequestEditedPropChanges", + "WebhookPullRequestEditedPropChangesPropBody", + "WebhookPullRequestEditedPropChangesPropTitle", + "WebhookPullRequestEditedPropChangesPropBase", + "WebhookPullRequestEditedPropChangesPropBasePropRef", + "WebhookPullRequestEditedPropChangesPropBasePropSha", ) 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 fc35e1e2c..bf14a64bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0686.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0686.py @@ -18,22 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0445 import WebhooksReviewComment -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewCommentDeleted(GitHubModel): - """pull_request_review_comment deleted event""" +class WebhookPullRequestEnqueued(GitHubModel): + """pull_request enqueued event""" - action: Literal["deleted"] = Field() - comment: WebhooksReviewComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) + action: Literal["enqueued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,12 +39,15 @@ class WebhookPullRequestReviewCommentDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + 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: WebhookPullRequestReviewCommentDeletedPropPullRequest = 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.", @@ -60,23 +58,19 @@ class WebhookPullRequestReviewCommentDeleted(GitHubModel): ) -class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" +class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): + """Pull Request""" - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( - alias="_links" - ) + links: WebhookPullRequestEnqueuedPropPullRequestPropLinks = Field(alias="_links") active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None - ] = Field(title="User") + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) assignees: List[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, - None, - ] + Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -91,63 +85,82 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", + auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) ) - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() + base: WebhookPullRequestEnqueuedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = 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[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems - ] = Field() + labels: List[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) ) node_id: str = Field() - number: int = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: List[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUser, None] = Field( + title="User" ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -173,9 +186,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubMo url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -201,7 +212,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -214,17 +225,14 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubM description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -250,7 +258,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnab url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -264,7 +272,33 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -274,8 +308,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -291,9 +324,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -315,11 +346,13 @@ 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) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -347,7 +380,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -375,116 +408,98 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" +class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" +class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -510,9 +525,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -595,8 +608,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, - None, + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -617,11 +629,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -669,9 +680,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -681,9 +690,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -709,12 +716,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropO url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -723,23 +728,47 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" +class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -822,8 +851,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, - None, + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -844,11 +872,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -896,9 +923,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -908,9 +933,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -936,12 +959,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropO url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -950,35 +971,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -997,7 +990,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1011,11 +1004,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent """ description: Union[str, None] = Field(description="Description of the team") @@ -1033,9 +1026,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1052,7 +1043,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1066,12 +1057,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1088,112 +1077,88 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewCommentDeleted) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) +model_rebuild(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( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 + 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( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewCommentDeleted", - "WebhookPullRequestReviewCommentDeletedPropPullRequest", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestEnqueued", + "WebhookPullRequestEnqueuedPropPullRequest", + "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems", + "WebhookPullRequestEnqueuedPropPullRequestPropMergedBy", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestone", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestEnqueuedPropPullRequestPropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropLinks", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestEnqueuedPropPullRequestPropBase", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestEnqueuedPropPullRequestPropHead", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", ) 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 7ccb5987b..ba12ddba0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0687.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0687.py @@ -18,24 +18,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0424 import WebhooksChanges -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0445 import WebhooksReviewComment -from .group_0404 import OrganizationSimpleWebhooks +from .group_0424 import WebhooksLabel +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewCommentEdited(GitHubModel): - """pull_request_review_comment edited event""" +class WebhookPullRequestLabeled(GitHubModel): + """pull_request labeled 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["labeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -46,12 +40,14 @@ class WebhookPullRequestReviewCommentEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + 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: WebhookPullRequestReviewCommentEditedPropPullRequest = Field() + pull_request: WebhookPullRequestLabeledPropPullRequest = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -62,22 +58,19 @@ class WebhookPullRequestReviewCommentEdited(GitHubModel): ) -class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" +class WebhookPullRequestLabeledPropPullRequest(GitHubModel): + """Pull Request""" - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( - alias="_links" - ) + links: WebhookPullRequestLabeledPropPullRequestPropLinks = Field(alias="_links") active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None - ] = Field(title="User") + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( + title="User" + ) assignees: List[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None - ] + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -92,63 +85,82 @@ class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) ) - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() + base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems - ] = Field() + labels: List[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestLabeledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) ) node_id: str = Field() - number: int = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: List[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestLabeledPropPullRequestPropUser, None] = Field( + title="User" ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -170,13 +182,13 @@ 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) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -198,11 +210,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) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -215,17 +229,14 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubMo description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -251,7 +262,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabl url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -265,7 +276,35 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHub url: str = Field(description="URL for the label") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -275,8 +314,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubMo closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -292,9 +330,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubMo url: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -322,7 +358,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreat url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -346,11 +382,13 @@ 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) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -378,114 +416,98 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" +class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" +class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -511,7 +533,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHu url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -594,8 +616,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHu language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, - 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( @@ -616,11 +637,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHu open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -668,9 +688,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHu ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -680,9 +698,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLi url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -708,12 +724,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOw url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -722,21 +736,21 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPe triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" +class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( + title="Repository", description="A git repository" + ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -819,8 +833,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHu language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, - 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( @@ -841,11 +854,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHu open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -893,9 +905,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHu ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -905,9 +915,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLi url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -933,12 +941,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOw url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -947,7 +953,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPe triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -973,7 +979,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHu url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -982,35 +988,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, + 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 WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent """ description: Union[str, None] = Field(description="Description of the team") @@ -1028,9 +1031,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1047,7 +1048,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1061,12 +1062,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent - """ + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1083,108 +1082,82 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewCommentEdited) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems -) +model_rebuild(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( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) __all__ = ( - "WebhookPullRequestReviewCommentEdited", - "WebhookPullRequestReviewCommentEditedPropPullRequest", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestLabeled", + "WebhookPullRequestLabeledPropPullRequest", + "WebhookPullRequestLabeledPropPullRequestPropAssignee", + "WebhookPullRequestLabeledPropPullRequestPropAssigneesItems", + "WebhookPullRequestLabeledPropPullRequestPropAutoMerge", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestLabeledPropPullRequestPropLabelsItems", + "WebhookPullRequestLabeledPropPullRequestPropMergedBy", + "WebhookPullRequestLabeledPropPullRequestPropMilestone", + "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestLabeledPropPullRequestPropUser", + "WebhookPullRequestLabeledPropPullRequestPropLinks", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropComments", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestLabeledPropPullRequestPropBase", + "WebhookPullRequestLabeledPropPullRequestPropBasePropUser", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepo", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestLabeledPropPullRequestPropHead", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropUser", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", ) 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 c7a35ff6f..5d1fefd46 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0688.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0688.py @@ -18,17 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewDismissed(GitHubModel): - """pull_request_review dismissed event""" +class WebhookPullRequestLocked(GitHubModel): + """pull_request locked event""" - action: Literal["dismissed"] = Field() + action: Literal["locked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,125 +39,36 @@ class WebhookPullRequestReviewDismissed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewDismissedPropPullRequest = Field( - title="Simple Pull Request" - ) + pull_request: 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.", ) - review: WebhookPullRequestReviewDismissedPropReview = Field( - description="The review that was affected." - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -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""" +class WebhookPullRequestLockedPropPullRequest(GitHubModel): + """Pull Request""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewDismissedPropReviewPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropReviewPropLinks""" - - html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest = Field( - title="Link" - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinks = Field( - alias="_links" - ) + links: WebhookPullRequestLockedPropPullRequestPropLinks = Field(alias="_links") active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None - ] = Field(title="User") + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( + title="User" + ) assignees: List[ - Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -172,62 +83,82 @@ class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) ) - base: WebhookPullRequestReviewDismissedPropPullRequestPropBase = Field() + base: WebhookPullRequestLockedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = 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[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( - Field() - ) + labels: List[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) ) node_id: str = Field() - number: int = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: List[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( + user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -249,13 +180,11 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(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 WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -283,7 +212,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -296,16 +225,14 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel) description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -331,7 +258,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -345,7 +272,35 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubMode url: str = Field(description="URL for the label") -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -355,7 +310,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel) closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -371,9 +326,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel) url: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -399,7 +352,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -429,7 +382,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -457,106 +410,96 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" +class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( - Field(title="Link") + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( + title="Link" ) - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( + title="Link" ) -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" +class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -582,7 +525,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -665,8 +608,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, - 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( @@ -687,10 +629,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -738,9 +680,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubMod ) -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -750,9 +690,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -778,10 +716,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -790,21 +728,21 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" +class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( + title="Repository", description="A git repository" + ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -887,8 +825,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, - 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( @@ -909,10 +846,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -960,9 +897,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubMod ) -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -972,9 +907,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -1000,10 +933,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -1012,7 +945,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -1038,7 +971,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1055,7 +988,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1068,11 +1001,11 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt """ description: Union[str, None] = Field(description="Description of the team") @@ -1090,9 +1023,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1109,7 +1040,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1123,12 +1054,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1145,110 +1074,82 @@ 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( - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) +model_rebuild(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( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) __all__ = ( - "WebhookPullRequestReviewDismissed", - "WebhookPullRequestReviewDismissedPropReview", - "WebhookPullRequestReviewDismissedPropReviewPropUser", - "WebhookPullRequestReviewDismissedPropReviewPropLinks", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest", - "WebhookPullRequestReviewDismissedPropPullRequest", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssignee", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestone", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewDismissedPropPullRequestPropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinks", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewDismissedPropPullRequestPropBase", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewDismissedPropPullRequestPropHead", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestLocked", + "WebhookPullRequestLockedPropPullRequest", + "WebhookPullRequestLockedPropPullRequestPropAssignee", + "WebhookPullRequestLockedPropPullRequestPropAssigneesItems", + "WebhookPullRequestLockedPropPullRequestPropAutoMerge", + "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestLockedPropPullRequestPropLabelsItems", + "WebhookPullRequestLockedPropPullRequestPropMergedBy", + "WebhookPullRequestLockedPropPullRequestPropMilestone", + "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestLockedPropPullRequestPropUser", + "WebhookPullRequestLockedPropPullRequestPropLinks", + "WebhookPullRequestLockedPropPullRequestPropLinksPropComments", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestLockedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestLockedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestLockedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestLockedPropPullRequestPropBase", + "WebhookPullRequestLockedPropPullRequestPropBasePropUser", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepo", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestLockedPropPullRequestPropHead", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestLockedPropPullRequestPropHeadPropUser", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", ) 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 348db383d..4ecfaf299 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 List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,1082 +17,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0446 import WebhooksReview -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0064 import Milestone +from .group_0406 import EnterpriseWebhooks +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0449 import WebhooksPullRequest5 +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewEdited(GitHubModel): - """pull_request_review edited event""" +class WebhookPullRequestMilestoned(GitHubModel): + """pull_request milestoned event""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestReviewEditedPropChanges = 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)."\n', ) - installation: Missing[SimpleInstallation] = Field( + milestone: Missing[Milestone] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Milestone", + description="A collection of related issues and pull requests.", ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewEditedPropPullRequest = Field( - title="Simple Pull Request" - ) + pull_request: WebhooksPullRequest5 = Field(title="Pull Request") repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - review: WebhooksReview = Field(description="The review that was affected.") - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestReviewEditedPropChanges(GitHubModel): - """WebhookPullRequestReviewEditedPropChanges""" - - body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( - default=UNSET - ) - - -class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestReviewEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) - assignees: List[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewEditedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewEditedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( - title="User" - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewEdited) -model_rebuild(WebhookPullRequestReviewEditedPropChanges) -model_rebuild(WebhookPullRequestReviewEditedPropChangesPropBody) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequest) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestMilestoned) -__all__ = ( - "WebhookPullRequestReviewEdited", - "WebhookPullRequestReviewEditedPropChanges", - "WebhookPullRequestReviewEditedPropChangesPropBody", - "WebhookPullRequestReviewEditedPropPullRequest", - "WebhookPullRequestReviewEditedPropPullRequestPropAssignee", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestone", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewEditedPropPullRequestPropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropLinks", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewEditedPropPullRequestPropBase", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewEditedPropPullRequestPropHead", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookPullRequestMilestoned",) 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 4af30d809..17568a5d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0690.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0690.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,17 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0447 import PullRequestWebhook +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookPullRequestOpened(GitHubModel): + """pull_request opened event""" - action: Literal["review_request_removed"] = Field() + action: Literal["opened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,1261 +45,17 @@ class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest = Field( - title="Pull Request" - ) + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None - ] = Field(title="User") sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, - None, - ] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( - GitHubModel -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( - GitHubModel -): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( - GitHubModel -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title.", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestOpened) -__all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof0", - "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookPullRequestOpened",) 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 a151ab90b..0302e467d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0691.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0691.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,17 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0447 import PullRequestWebhook +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookPullRequestReadyForReview(GitHubModel): + """pull_request ready_for_review event""" - action: Literal["review_request_removed"] = Field() + action: Literal["ready_for_review"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,1286 +45,17 @@ class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest = Field( - title="Pull Request" - ) + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, - None, - ] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( - GitHubModel -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( - GitHubModel -): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( - GitHubModel -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestReadyForReview) -__all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof1", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookPullRequestReadyForReview",) 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 67679d1f8..0be96d6a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0692.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0692.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,17 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0447 import PullRequestWebhook +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewRequestedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookPullRequestReopened(GitHubModel): + """pull_request reopened event""" - action: Literal["review_requested"] = Field() + action: Literal["reopened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,1243 +45,17 @@ 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( - title="Pull Request" - ) + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None - ] = Field(title="User") sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = 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: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems - ] = 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( - 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, - 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = 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 has been deprecated. 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis - sions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = 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 has been deprecated. 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis - sions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, - 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem - sOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, - 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro - pParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewRequestedOneof0) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestReopened) -__all__ = ( - "WebhookPullRequestReviewRequestedOneof0", - "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", - "WebhookPullRequestReviewRequestedOneof0PropPullRequest", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookPullRequestReopened",) 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 3e0bfb507..e690b6326 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0693.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0693.py @@ -18,17 +18,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewRequestedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookPullRequestReviewCommentCreated(GitHubModel): + """pull_request_review_comment created event""" - action: Literal["review_requested"] = Field() + action: Literal["created"] = Field() + comment: WebhookPullRequestReviewCommentCreatedPropComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,91 +43,201 @@ 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: WebhookPullRequestReviewCommentCreatedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeam(GitHubModel): - """Team +class WebhookPullRequestReviewCommentCreatedPropComment(GitHubModel): + """Pull Request Review Comment - Groups of organization members that gives permissions on specified repositories. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. """ - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" + links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinks = Field( + alias="_links" ) - 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( + author_association: 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="Permission that the team will have for its repositories", + 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") ) - 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 WebhookPullRequestReviewCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: 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" + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = 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) + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" + + html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml = Field( + title="Link" ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + pull_request: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf(GitHubModel): + """Link""" -class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): - """Pull Request""" + href: str = Field() - links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks = Field( + +class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequest""" + + links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) assignee: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: List[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -140,84 +254,63 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, None] ] = Field( + default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: List[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") + merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: List[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -245,7 +338,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -275,7 +368,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -288,7 +381,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHub description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -296,7 +389,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(GitHub ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -324,9 +417,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEna url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -340,33 +431,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) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -376,7 +441,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHub closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -393,7 +458,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(GitHub url: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -423,7 +488,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCre url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -447,11 +512,13 @@ 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) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -479,36 +546,36 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml = ( Field(title="Link") ) - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf = ( Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -516,7 +583,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComment href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -524,7 +591,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -532,7 +599,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -540,7 +607,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -548,7 +615,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -556,7 +623,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -564,7 +631,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -572,21 +639,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuse href: str = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -614,7 +681,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -699,7 +766,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -721,11 +788,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -773,7 +840,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -785,7 +852,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -813,11 +880,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions """ admin: bool = Field() @@ -827,49 +894,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") - ) + repo: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, 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) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -938,8 +977,8 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." ) homepage: Union[str, None] = Field() hooks_url: str = Field() @@ -954,7 +993,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -976,11 +1015,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1028,7 +1067,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -1040,7 +1079,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp url: Union[str, None] = Field() -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -1068,11 +1107,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions """ admin: bool = Field() @@ -1082,7 +1121,35 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( +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) + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1091,35 +1158,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, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1137,7 +1201,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe url: str = Field(description="URL for the team") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1156,7 +1220,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1170,11 +1234,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] = Field(description="Description of the team") @@ -1192,120 +1256,126 @@ 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(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( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewRequestedOneof1", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", - "WebhookPullRequestReviewRequestedOneof1PropPullRequest", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewCommentCreated", + "WebhookPullRequestReviewCommentCreatedPropComment", + "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", + "WebhookPullRequestReviewCommentCreatedPropCommentPropUser", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinks", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf", + "WebhookPullRequestReviewCommentCreatedPropPullRequest", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", ) 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 02f6c07a2..b4735ed2b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0694.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0694.py @@ -18,18 +18,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0446 import WebhooksReview -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0450 import WebhooksReviewComment +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewSubmitted(GitHubModel): - """pull_request_review submitted event""" +class WebhookPullRequestReviewCommentDeleted(GitHubModel): + """pull_request_review_comment deleted event""" - action: Literal["submitted"] = Field() + action: Literal["deleted"] = Field() + comment: WebhooksReviewComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,34 +49,34 @@ class WebhookPullRequestReviewSubmitted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewSubmittedPropPullRequest = Field( - title="Simple Pull Request" - ) + pull_request: 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.", ) - review: WebhooksReview = Field(description="The review that was affected.") sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): - """Simple Pull Request""" +class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() assignee: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: List[ - Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -87,32 +91,33 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] ] = Field( + default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() commits_url: str = Field() created_at: str = Field() diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: List[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems] = ( - Field() - ) + labels: List[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -122,13 +127,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: List[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -137,12 +142,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( - title="User" + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -164,13 +169,13 @@ 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) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -192,13 +197,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 WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -211,14 +214,15 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel) description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -246,7 +250,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -260,7 +264,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubMode url: str = Field(description="URL for the label") -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -270,7 +274,8 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel) closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -286,7 +291,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel) url: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -310,13 +315,11 @@ 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) -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -340,13 +343,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -374,36 +375,36 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( + comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( Field(title="Link") ) - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( + statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -411,25 +412,31 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -437,7 +444,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -445,13 +452,15 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -459,21 +468,23 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -499,7 +510,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -582,7 +595,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -604,10 +617,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -655,7 +669,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -667,7 +681,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -695,10 +709,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss + ions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -707,21 +723,23 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -804,7 +822,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -826,10 +844,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -877,7 +896,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -889,7 +908,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -917,10 +936,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -929,7 +950,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -955,7 +978,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -964,32 +987,35 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem """ deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) id: int = Field(description="Unique identifier of the team") - members_url: str = Field() + members_url: Missing[str] = Field(default=UNSET) name: str = Field(description="Name of the team") - node_id: str = Field() + node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + 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 WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1007,7 +1033,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1026,7 +1052,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1040,11 +1066,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen - t + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] = Field(description="Description of the team") @@ -1062,100 +1088,112 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPro url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewSubmitted) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequest) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestReviewCommentDeleted) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments +) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewSubmitted", - "WebhookPullRequestReviewSubmittedPropPullRequest", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewSubmittedPropPullRequestPropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinks", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBase", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHead", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewCommentDeleted", + "WebhookPullRequestReviewCommentDeletedPropPullRequest", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", ) 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 27598a575..f909b9fa6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0695.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0695.py @@ -18,17 +18,24 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0428 import WebhooksChanges +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0450 import WebhooksReviewComment +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewThreadResolved(GitHubModel): - """pull_request_review_thread resolved event""" +class WebhookPullRequestReviewCommentEdited(GitHubModel): + """pull_request_review_comment edited event""" - action: Literal["resolved"] = Field() + action: Literal["edited"] = Field() + changes: WebhooksChanges = Field(description="The changes to the comment.") + comment: WebhooksReviewComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,37 +51,32 @@ 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( - title="Simple Pull Request" - ) + pull_request: WebhookPullRequestReviewCommentEditedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - thread: WebhookPullRequestReviewThreadResolvedPropThread = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): - """Simple Pull Request""" +class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: List[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, - None, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None ] ] = Field() author_association: Literal[ @@ -90,32 +92,33 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] ] = Field( + default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() commits_url: str = Field() created_at: str = Field() diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: List[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -125,13 +128,13 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: List[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -140,12 +143,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( Field(title="User") ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -171,7 +174,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubMo url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -199,7 +202,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -212,7 +215,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubM description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -220,7 +223,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubM ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -248,7 +251,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnab url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -262,7 +265,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -272,7 +275,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -289,7 +292,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -313,11 +316,13 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCrea site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -341,13 +346,11 @@ 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) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -375,36 +378,36 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -412,7 +415,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -420,7 +423,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -428,7 +431,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -436,7 +439,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -444,7 +447,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -452,7 +455,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -460,7 +463,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -468,23 +471,21 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -510,9 +511,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -595,10 +594,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -609,11 +616,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -622,6 +629,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -636,6 +655,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -645,7 +668,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -657,7 +680,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -685,11 +708,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropO url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss - ions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons """ admin: bool = Field() @@ -699,23 +722,21 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -798,10 +819,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -812,11 +841,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -825,6 +854,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -839,6 +880,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -848,7 +893,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -860,7 +905,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -888,11 +933,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropO url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss - ions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons """ admin: bool = Field() @@ -902,9 +947,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -930,7 +973,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -939,32 +982,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, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -982,7 +1028,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1001,7 +1047,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1015,11 +1061,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp - Parent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent """ description: Union[str, None] = Field(description="Description of the team") @@ -1037,323 +1083,108 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropThread(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropThread""" - - comments: List[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems - ] = Field() - node_id: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions( - GitHubModel -): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -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(WebhookPullRequestReviewCommentEdited) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments ) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewThreadResolved", - "WebhookPullRequestReviewThreadResolvedPropPullRequest", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewThreadResolvedPropThread", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", + "WebhookPullRequestReviewCommentEdited", + "WebhookPullRequestReviewCommentEditedPropPullRequest", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", ) 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 45a8b8387..dd7d090c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0696.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0696.py @@ -18,17 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewThreadUnresolved(GitHubModel): - """pull_request_review_thread unresolved event""" +class WebhookPullRequestReviewDismissed(GitHubModel): + """pull_request_review dismissed event""" - action: Literal["unresolved"] = Field() + action: Literal["dismissed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,38 +44,120 @@ class WebhookPullRequestReviewThreadUnresolved(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequest = Field( + pull_request: WebhookPullRequestReviewDismissedPropPullRequest = Field( title="Simple Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + review: WebhookPullRequestReviewDismissedPropReview = Field( + description="The review that was affected." + ) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewDismissedPropReview(GitHubModel): + """WebhookPullRequestReviewDismissedPropReview + + The review that was affected. + """ + + links: WebhookPullRequestReviewDismissedPropReviewPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="The text of the review.") + commit_id: str = Field(description="A commit SHA for the review.") + html_url: str = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + pull_request_url: str = Field() + state: Literal["dismissed", "approved", "changes_requested"] = Field() + submitted_at: datetime = Field() + user: Union[WebhookPullRequestReviewDismissedPropReviewPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropReviewPropLinks(GitHubModel): + """WebhookPullRequestReviewDismissedPropReviewPropLinks""" + + html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest = Field( + title="Link" + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): """Simple Pull Request""" - links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewDismissedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None + WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: List[ - Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, - None, - ] + Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -91,12 +173,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewDismissedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() @@ -104,18 +186,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): created_at: str = Field() diff_url: str = Field() draft: bool = Field() - head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems - ] = Field() + labels: List[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( + Field() + ) locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None + WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -125,13 +207,13 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: List[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -140,12 +222,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -167,13 +249,13 @@ 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) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -195,11 +277,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 WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -208,17 +292,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, + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -246,9 +331,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEn url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -262,7 +345,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( url: str = Field(description="URL for the label") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -272,8 +355,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHu closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -289,7 +371,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHu url: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -317,7 +399,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCr url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -341,11 +423,13 @@ 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) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -367,40 +451,42 @@ 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) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( Field(title="Link") ) - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" ) - statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( + review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -408,31 +494,25 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommen href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -440,7 +520,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -448,15 +528,13 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -464,23 +542,21 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatus href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -506,9 +582,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -591,10 +665,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -605,11 +687,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -618,6 +699,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() @@ -632,6 +725,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 has been deprecated. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -641,7 +738,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -653,7 +750,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -681,12 +778,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -695,51 +790,21 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") - ) + repo: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -822,10 +887,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -836,11 +909,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -849,6 +921,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() @@ -863,6 +947,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 has been deprecated. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -872,7 +960,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -884,7 +972,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -912,12 +1000,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -926,7 +1012,33 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -935,35 +1047,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, + 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 WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -981,7 +1090,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1000,7 +1109,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1014,11 +1123,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen + t """ description: Union[str, None] = Field(description="Description of the team") @@ -1036,326 +1145,110 @@ 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) - - -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(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( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThread) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewThreadUnresolved", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewThreadUnresolvedPropThread", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", + "WebhookPullRequestReviewDismissed", + "WebhookPullRequestReviewDismissedPropReview", + "WebhookPullRequestReviewDismissedPropReviewPropUser", + "WebhookPullRequestReviewDismissedPropReviewPropLinks", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest", + "WebhookPullRequestReviewDismissedPropPullRequest", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssignee", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestone", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewDismissedPropPullRequestPropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinks", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewDismissedPropPullRequestPropBase", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewDismissedPropPullRequestPropHead", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", ) 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 dc1d6e3e8..b86355680 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0697.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0697.py @@ -18,19 +18,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0451 import WebhooksReview +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestSynchronize(GitHubModel): - """pull_request synchronize event""" +class WebhookPullRequestReviewEdited(GitHubModel): + """pull_request_review edited event""" - action: Literal["synchronize"] = Field() - after: str = Field() - before: str = Field() + action: Literal["edited"] = Field() + changes: WebhookPullRequestReviewEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,38 +41,56 @@ class WebhookPullRequestSynchronize(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestSynchronizePropPullRequest = Field( - title="Pull Request" + 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: WebhooksReview = Field(description="The review that was affected.") sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): - """Pull Request""" +class WebhookPullRequestReviewEditedPropChanges(GitHubModel): + """WebhookPullRequestReviewEditedPropChanges""" - links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") + body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( + default=UNSET + ) + + +class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestReviewEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( + assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssignee, None] = ( Field(title="User") ) assignees: List[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -88,81 +106,59 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestSynchronizePropPullRequestPropBase = Field() + base: WebhookPullRequestReviewEditedPropPullRequestPropBase = 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: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() + draft: bool = Field() + head: WebhookPullRequestReviewEditedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: List[WebhookPullRequestSynchronizePropPullRequestPropLabelsItems] = Field() + labels: List[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestSynchronizePropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") + merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestone, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestone, 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[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems ] = 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[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -190,7 +186,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -218,7 +214,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -231,14 +227,14 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -266,7 +262,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -280,33 +276,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -316,7 +286,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -332,7 +302,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -360,7 +332,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHu url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -390,7 +362,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -418,60 +390,60 @@ class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" +class WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( - title="Link" + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( + Field(title="Link") ) - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( - title="Link" + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") ) -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -479,7 +451,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -487,33 +459,33 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" +class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( Field(title="User") ) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -539,7 +511,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -606,9 +578,6 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(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() @@ -622,17 +591,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, 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() @@ -643,10 +604,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -655,18 +616,6 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(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() @@ -681,20 +630,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(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 has been deprecated. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -706,7 +647,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -734,10 +675,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -746,47 +687,21 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermission triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" +class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, 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) - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -853,9 +768,6 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(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() @@ -869,15 +781,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, 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." - ) - 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() @@ -888,10 +794,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -900,18 +806,6 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(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() @@ -926,20 +820,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(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 has been deprecated. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -951,7 +837,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -979,10 +865,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -991,7 +877,33 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermission triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( +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) + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1008,7 +920,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1021,11 +933,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str = Field(description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1043,7 +955,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str = Field(description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1060,7 +972,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHub node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1074,10 +986,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHub url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1094,92 +1006,94 @@ 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(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( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 ) -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(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( - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestSynchronize", - "WebhookPullRequestSynchronizePropPullRequest", - "WebhookPullRequestSynchronizePropPullRequestPropAssignee", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMerge", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestSynchronizePropPullRequestPropLabelsItems", - "WebhookPullRequestSynchronizePropPullRequestPropMergedBy", - "WebhookPullRequestSynchronizePropPullRequestPropMilestone", - "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestSynchronizePropPullRequestPropUser", - "WebhookPullRequestSynchronizePropPullRequestPropLinks", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses", - "WebhookPullRequestSynchronizePropPullRequestPropBase", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropUser", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestSynchronizePropPullRequestPropHead", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewEdited", + "WebhookPullRequestReviewEditedPropChanges", + "WebhookPullRequestReviewEditedPropChangesPropBody", + "WebhookPullRequestReviewEditedPropPullRequest", + "WebhookPullRequestReviewEditedPropPullRequestPropAssignee", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestone", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewEditedPropPullRequestPropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropLinks", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewEditedPropPullRequestPropBase", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewEditedPropPullRequestPropHead", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", ) 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 fd88734c8..1f05fd701 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0698.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0698.py @@ -18,21 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0428 import WebhooksUserMannequin -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestUnassigned(GitHubModel): - """pull_request unassigned event""" +class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["unassigned"] = Field() - assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( - default=UNSET, title="User" - ) + action: Literal["review_request_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,33 +45,66 @@ class WebhookPullRequestUnassigned(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestUnassignedPropPullRequest = Field( + pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest = Field( title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None + ] = Field(title="User") + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestUnassignedPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None + ] = Field(title="User") assignees: List[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -91,12 +120,12 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -110,11 +139,13 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: List[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() + labels: List[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -126,13 +157,16 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, + None, + ] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field( @@ -142,13 +176,13 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: List[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -160,12 +194,14 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -187,13 +223,13 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -215,13 +251,13 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel) site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( + GitHubModel +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -234,14 +270,15 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -269,7 +306,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -283,7 +322,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -305,13 +346,13 @@ 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) -class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( + GitHubModel +): """Milestone A collection of related issues and pull requests. @@ -321,7 +362,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -337,7 +379,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -359,13 +403,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHub site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -389,13 +431,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -417,66 +457,72 @@ class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -484,7 +530,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -492,33 +538,40 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, + None, + ] = Field(title="User") -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -544,7 +597,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -627,7 +682,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, 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( @@ -648,10 +704,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -664,12 +721,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] = Field( default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + description="The default value for a squash merge commit message.", ) squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( Field( default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + description="The default value for a squash merge commit title.", ) ) ssh_url: str = Field() @@ -699,7 +756,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -711,7 +768,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -737,10 +796,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHu url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -749,21 +810,52 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, + None, + ] = Field(title="User") -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(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) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -846,7 +938,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, 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( @@ -867,10 +960,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -918,7 +1012,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -930,7 +1024,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -956,10 +1052,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHu url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -968,33 +1066,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1011,7 +1083,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1024,11 +1096,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str = Field(description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1046,41 +1118,42 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str = Field(description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(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[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, + 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 WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1097,92 +1170,136 @@ 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(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( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner ) -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 + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestUnassigned", - "WebhookPullRequestUnassignedPropPullRequest", - "WebhookPullRequestUnassignedPropPullRequestPropAssignee", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMerge", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnassignedPropPullRequestPropLabelsItems", - "WebhookPullRequestUnassignedPropPullRequestPropMergedBy", - "WebhookPullRequestUnassignedPropPullRequestPropMilestone", - "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnassignedPropPullRequestPropUser", - "WebhookPullRequestUnassignedPropPullRequestPropLinks", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnassignedPropPullRequestPropBase", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropUser", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnassignedPropPullRequestPropHead", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestRemovedOneof0", + "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ) 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 58f70dc14..92f777bd5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0699.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0699.py @@ -18,18 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0420 import WebhooksLabel -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestUnlabeled(GitHubModel): - """pull_request unlabeled event""" +class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1""" - action: Literal["unlabeled"] = Field() + action: Literal["review_request_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,39 +39,95 @@ 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: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest = Field( title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestUnlabeledPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None + ] = Field(title="User") assignees: List[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -87,13 +142,13 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) + auto_merge: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -107,11 +162,13 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: List[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() + labels: List[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -123,13 +180,16 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, + None, + ] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field( @@ -139,13 +199,13 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: List[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -157,12 +217,14 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -184,13 +246,13 @@ 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) -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -212,13 +274,13 @@ 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 WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( + GitHubModel +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -231,14 +293,17 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -264,7 +329,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHu url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -278,7 +345,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -304,7 +373,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( + GitHubModel +): """Milestone A collection of related issues and pull requests. @@ -314,7 +385,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -330,7 +402,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -352,13 +426,11 @@ 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) -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -382,13 +454,11 @@ 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) -class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -410,72 +480,80 @@ 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) -class WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -483,33 +561,40 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, + None, + ] = Field(title="User") -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -535,7 +620,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -618,7 +705,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -639,10 +727,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -690,7 +779,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -702,7 +791,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -728,10 +819,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHub url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP + ermissions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -740,21 +833,52 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, + None, + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -837,14 +961,17 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, description="The default value for a merge commit message." + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, description="The default value for a merge commit message title." + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", ) merges_url: str = Field() milestones_url: str = Field() @@ -856,10 +983,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -907,7 +1035,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -919,7 +1047,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -945,10 +1075,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHub url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP + ermissions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -957,33 +1089,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1000,7 +1106,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1013,11 +1119,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str = Field(description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1035,41 +1141,42 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str = Field(description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte + msPropParent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1086,88 +1193,138 @@ 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(WebhookPullRequestReviewRequestRemovedOneof1) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions +) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 ) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestUnlabeled", - "WebhookPullRequestUnlabeledPropPullRequest", - "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems", - "WebhookPullRequestUnlabeledPropPullRequestPropMergedBy", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestone", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnlabeledPropPullRequestPropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropLinks", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnlabeledPropPullRequestPropBase", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnlabeledPropPullRequestPropHead", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestRemovedOneof1", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ) 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 58d4f773d..ab07dc985 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.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPullRequestUnlocked(GitHubModel): - """pull_request unlocked event""" +class WebhookPullRequestReviewRequestedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0""" - action: Literal["unlocked"] = Field() + action: Literal["review_requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,32 +45,68 @@ class WebhookPullRequestUnlocked(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestUnlockedPropPullRequest = Field( + pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequest = Field( title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None + ] = Field(title="User") sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestUnlockedPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None + ] = Field(title="User") assignees: List[ - Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -85,13 +121,13 @@ class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) + auto_merge: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestUnlockedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -105,11 +141,13 @@ class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestUnlockedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: List[WebhookPullRequestUnlockedPropPullRequestPropLabelsItems] = Field() + labels: List[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -121,13 +159,13 @@ class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestUnlockedPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field( @@ -137,13 +175,13 @@ class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: List[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -155,12 +193,12 @@ class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -182,11 +220,15 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -208,11 +250,13 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -221,16 +265,21 @@ class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): commit_message: Union[str, None] = Field( description="Commit message for the merge commit." ) - commit_title: str = Field(description="Title for the merge commit message.") + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) enabled_by: Union[ - WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -256,7 +305,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHub url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -270,7 +321,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -296,7 +347,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -306,7 +357,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -322,7 +374,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -344,11 +398,13 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubMo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -376,7 +432,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -398,102 +454,122 @@ class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( - title="Link" + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( + Field(title="Link") ) - issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( - title="Link" + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( + Field(title="Link") ) - review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -519,7 +595,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -602,7 +680,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -623,10 +702,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -674,7 +754,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -684,7 +766,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -710,10 +794,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -722,21 +808,51 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -819,7 +935,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -840,10 +957,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -891,7 +1009,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -901,7 +1021,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -927,10 +1049,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -939,33 +1063,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -974,35 +1072,32 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1020,7 +1115,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 url: str = Field(description="URL for the team") -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1037,7 +1134,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubMod node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1051,10 +1148,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubMod url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1071,88 +1170,118 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestUnlocked) -model_rebuild(WebhookPullRequestUnlockedPropPullRequest) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewRequestedOneof0) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions +) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 ) -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 + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestUnlocked", - "WebhookPullRequestUnlockedPropPullRequest", - "WebhookPullRequestUnlockedPropPullRequestPropAssignee", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMerge", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnlockedPropPullRequestPropLabelsItems", - "WebhookPullRequestUnlockedPropPullRequestPropMergedBy", - "WebhookPullRequestUnlockedPropPullRequestPropMilestone", - "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnlockedPropPullRequestPropUser", - "WebhookPullRequestUnlockedPropPullRequestPropLinks", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnlockedPropPullRequestPropBase", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropUser", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnlockedPropPullRequestPropHead", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestedOneof0", + "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", + "WebhookPullRequestReviewRequestedOneof0PropPullRequest", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ) 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 86ae5a894..0172541ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0701.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0701.py @@ -16,190 +16,862 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookPush(GitHubModel): - """push event""" +class WebhookPullRequestReviewRequestedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1""" - after: str = Field( - description="The SHA of the most recent commit on `ref` after the push." + action: Literal["review_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)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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.", ) - base_ref: Union[str, None] = Field() - before: str = Field( - description="The SHA of the most recent commit on `ref` before the push." + pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequest = Field( + title="Pull Request" ) - 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." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - 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." + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", ) - created: bool = Field(description="Whether this push created the `ref`.") - deleted: bool = Field(description="Whether this push deleted the `ref`.") - enterprise: Missing[EnterpriseWebhooks] = Field( + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +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, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = 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: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = 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.", + ) + 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") + milestone: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems + ] = 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( + 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 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) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, + 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( + 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." ) - 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( + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: 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, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `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[SimpleUserWebhooks] = Field( + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default 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." - ) - author: WebhookPushPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", ) - committer: WebhookPushPropHeadCommitPropCommitter = 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = 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.", ) - distinct: bool = Field( - description="Whether this commit is distinct from any that have been pushed before." + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) ) - 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." + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = 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 has been deprecated. Please use `squash_merge_commit_title` instead.", ) - removed: Missing[List[str]] = Field( - default=UNSET, description="An array of files removed in 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", ) - 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" -class WebhookPushPropHeadCommitPropCommitter(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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookPushPropPusher(GitHubModel): - """Committer - Metaproperties for Git author/committer information. +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis + sions """ - 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) + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -class WebhookPushPropCommitsItems(GitHubModel): - """Commit""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" - 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.", + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") ) - 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) - + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None + ] = Field(title="User") -class WebhookPushPropCommitsItemsPropCommitter(GitHubModel): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookPushPropRepository(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -236,10 +908,6 @@ class WebhookPushPropRepository(GitHubModel): contents_url: str = Field() contributors_url: str = Field() created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookPushPropRepositoryPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) default_branch: str = Field(description="The default branch of the repository.") delete_branch_on_merge: Missing[bool] = Field( default=UNSET, @@ -285,10 +953,19 @@ class WebhookPushPropRepository(GitHubModel): labels_url: str = Field() language: Union[str, None] = Field() languages_url: str = Field() - license_: Union[WebhookPushPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) + license_: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default 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() @@ -298,10 +975,13 @@ class WebhookPushPropRepository(GitHubModel): open_issues: int = Field() open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookPushPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookPushPropRepositoryPropPermissions] = Field( - default=UNSET - ) + owner: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) pulls_url: str = Field() @@ -309,6 +989,18 @@ class WebhookPushPropRepository(GitHubModel): releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -323,6 +1015,10 @@ class WebhookPushPropRepository(GitHubModel): trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -332,16 +1028,9 @@ class WebhookPushPropRepository(GitHubModel): ) -class WebhookPushPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookPushPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookPushPropRepositoryPropLicense(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -351,7 +1040,9 @@ class WebhookPushPropRepositoryPropLicense(GitHubModel): url: Union[str, None] = Field() -class WebhookPushPropRepositoryPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -377,8 +1068,12 @@ class WebhookPushPropRepositoryPropOwner(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPushPropRepositoryPropPermissions(GitHubModel): - """WebhookPushPropRepositoryPropPermissions""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -387,32 +1082,230 @@ class WebhookPushPropRepositoryPropPermissions(GitHubModel): triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookPush) -model_rebuild(WebhookPushPropHeadCommit) -model_rebuild(WebhookPushPropHeadCommitPropAuthor) -model_rebuild(WebhookPushPropHeadCommitPropCommitter) -model_rebuild(WebhookPushPropPusher) -model_rebuild(WebhookPushPropCommitsItems) -model_rebuild(WebhookPushPropCommitsItemsPropAuthor) -model_rebuild(WebhookPushPropCommitsItemsPropCommitter) -model_rebuild(WebhookPushPropRepository) -model_rebuild(WebhookPushPropRepositoryPropCustomProperties) -model_rebuild(WebhookPushPropRepositoryPropLicense) -model_rebuild(WebhookPushPropRepositoryPropOwner) -model_rebuild(WebhookPushPropRepositoryPropPermissions) +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem + sOneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, + 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro + pParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestReviewRequestedOneof1) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookPush", - "WebhookPushPropHeadCommit", - "WebhookPushPropHeadCommitPropAuthor", - "WebhookPushPropHeadCommitPropCommitter", - "WebhookPushPropPusher", - "WebhookPushPropCommitsItems", - "WebhookPushPropCommitsItemsPropAuthor", - "WebhookPushPropCommitsItemsPropCommitter", - "WebhookPushPropRepository", - "WebhookPushPropRepositoryPropCustomProperties", - "WebhookPushPropRepositoryPropLicense", - "WebhookPushPropRepositoryPropOwner", - "WebhookPushPropRepositoryPropPermissions", + "WebhookPullRequestReviewRequestedOneof1", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", + "WebhookPullRequestReviewRequestedOneof1PropPullRequest", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ) 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 cf7647955..3551d8675 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0702.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0702.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,18 +18,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0703 import WebhookRegistryPackagePublishedPropRegistryPackage +from .group_0451 import WebhooksReview +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRegistryPackagePublished(GitHubModel): - """WebhookRegistryPackagePublished""" +class WebhookPullRequestReviewSubmitted(GitHubModel): + """pull_request_review submitted event""" - action: Literal["published"] = Field() + action: Literal["submitted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +45,1117 @@ class WebhookRegistryPackagePublished(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - registry_package: WebhookRegistryPackagePublishedPropRegistryPackage = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestReviewSubmittedPropPullRequest = Field( + title="Simple Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + review: WebhooksReview = Field(description="The review that was affected.") sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRegistryPackagePublished) +class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewSubmittedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems] = ( + Field() + ) + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(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 WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(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[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( + Field(title="Link") + ) + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( + Field(title="Link") + ) + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(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[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + 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 has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +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) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestReviewSubmitted) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequest) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookRegistryPackagePublished",) +__all__ = ( + "WebhookPullRequestReviewSubmitted", + "WebhookPullRequestReviewSubmittedPropPullRequest", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewSubmittedPropPullRequestPropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinks", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBase", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHead", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", +) 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 60ed57b0c..4d8ae902d 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,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,71 +18,1342 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0704 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, -) +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRegistryPackagePublishedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackage""" +class WebhookPullRequestReviewThreadResolved(GitHubModel): + """pull_request_review_thread resolved event""" - created_at: Union[str, None] = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() + action: Literal["resolved"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequest = Field( + title="Simple Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + thread: WebhookPullRequestReviewThreadResolvedPropThread = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - name: str = Field() - namespace: str = Field() - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, None + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems ] = Field() - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, None + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems ] = Field() - updated_at: Union[str, None] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" - avatar_url: str = Field() +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" - about_url: Missing[str] = Field(default=UNSET) + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - vendor: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackage) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry) +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadResolvedPropThread(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropThread""" + + comments: List[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems + ] = Field() + node_id: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ + + links: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions( + GitHubModel +): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks( + GitHubModel +): + """WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks""" + + html: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf = Field( + alias="self", title="Link" + ) + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +model_rebuild(WebhookPullRequestReviewThreadResolved) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequest) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions +) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest +) +model_rebuild( + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf +) __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackage", - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", + "WebhookPullRequestReviewThreadResolved", + "WebhookPullRequestReviewThreadResolvedPropPullRequest", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewThreadResolvedPropThread", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", ) 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 9c3017af2..51c21c93b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0704.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0704.py @@ -9,481 +9,1166 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - -from .group_0626 import WebhookRubygemsMetadata - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - - author: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor - ] = Field(default=UNSET) - body: Missing[ +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks + + +class WebhookPullRequestReviewThreadUnresolved(GitHubModel): + """pull_request_review_thread unresolved event""" + + action: Literal["unresolved"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequest = Field( + title="Simple Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ Union[ - 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 + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, + None, ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems ] = Field() - name: str = Field() - npm_metadata: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, - None, - ] - ] = Field(default=UNSET) - nuget_metadata: Missing[ + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ Union[ - List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems - ], + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, None, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, ] - ] = Field(default=UNSET) - package_files: List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - target_oid: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - version: str = Field() + requested_teams: List[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, None + ] = Field(title="User") + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): + """User""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor( + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" + """User""" - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: str = Field(description="Title for the merge commit message.") + enabled_by: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 - """ + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. """ - tags: Missing[List[str]] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( + GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata - Items - """ + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata( + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata - """ + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - npm_user: Missing[str] = Field(default=UNSET) - author: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, - None, - ] - ] = Field(default=UNSET) - bugs: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, - None, - ] - ] = Field(default=UNSET) - dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies - ] = Field(default=UNSET) - dev_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies - ] = Field(default=UNSET) - peer_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies - ] = Field(default=UNSET) - optional_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies - ] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - dist: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, - None, - ] - ] = Field(default=UNSET) - git_head: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - main: Missing[str] = Field(default=UNSET) - repository: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, - None, - ] - ] = Field(default=UNSET) - scripts: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_version: Missing[str] = Field(default=UNSET) - npm_version: Missing[str] = Field(default=UNSET) - has_shrinkwrap: Missing[bool] = Field(default=UNSET) - maintainers: Missing[List[str]] = Field(default=UNSET) - contributors: Missing[List[str]] = Field(default=UNSET) - engines: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines - ] = Field(default=UNSET) - keywords: Missing[List[str]] = Field(default=UNSET) - files: Missing[List[str]] = Field(default=UNSET) - bin_: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin - ] = Field(default=UNSET, alias="bin") - man: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan - ] = Field(default=UNSET) - directories: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, - None, - ] - ] = Field(default=UNSET) - os: Missing[List[str]] = Field(default=UNSET) - cpu: Missing[List[str]] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - installation_command: Missing[str] = Field(default=UNSET) - release_id: Missing[int] = Field(default=UNSET) - commit_oid: Missing[str] = Field(default=UNSET) - published_via_actions: Missing[bool] = Field(default=UNSET) - deleted_by_id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 - """ + """Link""" + + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ + """Link""" + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies( + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ + """Link""" + + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ + """Link""" + + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ + """Link""" + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ + """Link""" + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1( + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 - """ + """Link""" + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1( + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ + """Link""" + + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines + """Repository + + A git repository """ + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan - """ + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions """ + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems( + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems - """ + """User""" - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - 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() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata + """Repository + + A git repository """ - labels: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, - None, - ] - ] = Field(default=UNSET) - manifest: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, - None, - ] - ] = Field(default=UNSET) - tag: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ + """License""" + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest( + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest - """ + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions """ - digest: Missing[str] = Field(default=UNSET) - name: 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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems + """Team + + Groups of organization members that gives permissions on specified repositories. """ - id: Missing[ + 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[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, - int, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, - ] - ] = 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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent """ + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 + """Team + + Groups of organization members that gives permissions on specified repositories. """ - url: Missing[str] = Field(default=UNSET) - branch: Missing[str] = Field(default=UNSET) - commit: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent + """ - 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) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: 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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( +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 ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor - """ + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = 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: 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) @@ -491,124 +1176,186 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRe site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems -) +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( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits ) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments ) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses ) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent ) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf ) __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", + "WebhookPullRequestReviewThreadUnresolved", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewThreadUnresolvedPropThread", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", ) 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 f50273e59..5e27b6145 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0705.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0705.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,18 +18,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0706 import WebhookRegistryPackageUpdatedPropRegistryPackage +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRegistryPackageUpdated(GitHubModel): - """WebhookRegistryPackageUpdated""" +class WebhookPullRequestSynchronize(GitHubModel): + """pull_request synchronize event""" - action: Literal["updated"] = Field() + action: Literal["synchronize"] = Field() + after: str = Field() + before: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,14 +41,16 @@ class WebhookRegistryPackageUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - registry_package: WebhookRegistryPackageUpdatedPropRegistryPackage = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: 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.", ) @@ -56,6 +60,1126 @@ class WebhookRegistryPackageUpdated(GitHubModel): ) -model_rebuild(WebhookRegistryPackageUpdated) +class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestSynchronizePropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestSynchronizePropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestSynchronizePropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" + + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, description="The default value for a merge commit message." + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, description="The default value for a merge commit message title." + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestSynchronize) +model_rebuild(WebhookPullRequestSynchronizePropPullRequest) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinks) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBase) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookRegistryPackageUpdated",) +__all__ = ( + "WebhookPullRequestSynchronize", + "WebhookPullRequestSynchronizePropPullRequest", + "WebhookPullRequestSynchronizePropPullRequestPropAssignee", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMerge", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestSynchronizePropPullRequestPropLabelsItems", + "WebhookPullRequestSynchronizePropPullRequestPropMergedBy", + "WebhookPullRequestSynchronizePropPullRequestPropMilestone", + "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestSynchronizePropPullRequestPropUser", + "WebhookPullRequestSynchronizePropPullRequestPropLinks", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses", + "WebhookPullRequestSynchronizePropPullRequestPropBase", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropUser", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestSynchronizePropPullRequestPropHead", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", +) 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 7826dda24..3846314df 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0706.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0706.py @@ -9,69 +9,1180 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0707 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, -) +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0432 import WebhooksUserMannequin +from .group_0408 import OrganizationSimpleWebhooks + + +class WebhookPullRequestUnassigned(GitHubModel): + """pull_request unassigned event""" + action: Literal["unassigned"] = Field() + assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( + default=UNSET, title="User" + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestUnassignedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -class WebhookRegistryPackageUpdatedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" - created_at: str = Field() - description: None = Field() - ecosystem: str = Field() +class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnassignedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - name: str = Field() - namespace: str = Field() - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion = Field() - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, None + issue_url: str = Field() + labels: List[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems ] = Field() - updated_at: str = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" -class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" + href: str = Field() - avatar_url: str = Field() + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. 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 WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackage) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry) + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnassigned) +model_rebuild(WebhookPullRequestUnassignedPropPullRequest) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackage", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", + "WebhookPullRequestUnassigned", + "WebhookPullRequestUnassignedPropPullRequest", + "WebhookPullRequestUnassignedPropPullRequestPropAssignee", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMerge", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnassignedPropPullRequestPropLabelsItems", + "WebhookPullRequestUnassignedPropPullRequestPropMergedBy", + "WebhookPullRequestUnassignedPropPullRequestPropMilestone", + "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnassignedPropPullRequestPropUser", + "WebhookPullRequestUnassignedPropPullRequestPropLinks", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnassignedPropPullRequestPropBase", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropUser", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnassignedPropPullRequestPropHead", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", ) 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 b964d0009..738f7f728 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0707.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0707.py @@ -9,193 +9,1165 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0626 import WebhookRubygemsMetadata +from .group_0424 import WebhooksLabel +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" +class WebhookPullRequestUnlabeled(GitHubModel): + """pull_request unlabeled event""" - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor = Field() - body: str = Field() - body_html: str = Field() - created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - List[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, - None, - ] - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) + action: Literal["unlabeled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestUnlabeledPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnlabeledPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: List[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems + issue_url: str = Field() + labels: List[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, + ] ] = Field() - name: str = Field() - package_files: List[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems + requested_teams: List[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: str = Field() - target_oid: str = Field() - updated_at: str = Field() - version: str = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): + """Milestone -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor( + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" + """User""" - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. 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 WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems - """ + """License""" - tags: Missing[List[str]] = Field(default=UNSET) + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt - ems + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository """ + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, description="The default value for a merge commit message." + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, description="The default value for a merge commit message title." + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. 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 WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems - """ + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + - 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) +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - 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) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor = Field() - created_at: str = Field() - draft: bool = Field() - html_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 WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - name: str = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor + """Team + + Groups of organization members that gives permissions on specified repositories. """ - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() - id: int = Field() - login: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor -) -model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems -) +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnlabeled) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequest) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator) model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser) model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", + "WebhookPullRequestUnlabeled", + "WebhookPullRequestUnlabeledPropPullRequest", + "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems", + "WebhookPullRequestUnlabeledPropPullRequestPropMergedBy", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestone", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnlabeledPropPullRequestPropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropLinks", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnlabeledPropPullRequestPropBase", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnlabeledPropPullRequestPropHead", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", ) 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 bdb9e2132..2c82fb812 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0708.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0708.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,18 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0447 import WebhooksRelease -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookReleaseCreated(GitHubModel): - """release created event""" +class WebhookPullRequestUnlocked(GitHubModel): + """pull_request unlocked event""" - action: Literal["created"] = Field() + action: Literal["unlocked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,14 +39,14 @@ class WebhookReleaseCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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.", ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + pull_request: WebhookPullRequestUnlockedPropPullRequest = Field( + title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", @@ -58,6 +58,1101 @@ class WebhookReleaseCreated(GitHubModel): ) -model_rebuild(WebhookReleaseCreated) +class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): + """Pull Request""" -__all__ = ("WebhookReleaseCreated",) + 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) + + +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) + + +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) + + +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) + + +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) + + +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) + + +class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnlocked) +model_rebuild(WebhookPullRequestUnlockedPropPullRequest) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent +) + +__all__ = ( + "WebhookPullRequestUnlocked", + "WebhookPullRequestUnlockedPropPullRequest", + "WebhookPullRequestUnlockedPropPullRequestPropAssignee", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMerge", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnlockedPropPullRequestPropLabelsItems", + "WebhookPullRequestUnlockedPropPullRequestPropMergedBy", + "WebhookPullRequestUnlockedPropPullRequestPropMilestone", + "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnlockedPropPullRequestPropUser", + "WebhookPullRequestUnlockedPropPullRequestPropLinks", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnlockedPropPullRequestPropBase", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropUser", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnlockedPropPullRequestPropHead", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", +) 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 1b97f9391..992ff4fb2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0709.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0709.py @@ -9,31 +9,46 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0447 import WebhooksRelease -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookReleaseDeleted(GitHubModel): - """release deleted event""" +class WebhookPush(GitHubModel): + """push event""" - action: Literal["deleted"] = Field() + after: str = Field( + description="The SHA of the most recent commit on `ref` after the push." + ) + base_ref: Union[str, None] = Field() + before: str = Field( + description="The SHA of the most recent commit on `ref` before the push." + ) + commits: List[WebhookPushPropCommitsItems] = Field( + description="An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the `compare` between the `before` commit and the `after` commit.) The array includes a maximum of 2048 commits. If necessary, you can use the [Commits API](https://docs.github.com/enterprise-cloud@latest//rest/commits) to fetch additional commits." + ) + compare: str = Field( + description="URL that shows the changes in this `ref` update, from the `before` commit to the `after` commit. For a newly created `ref` that is directly based on the default branch, this is the comparison between the head of the default branch and the `after` commit. Otherwise, this shows all commits until the `after` commit." + ) + created: bool = Field(description="Whether this push created the `ref`.") + deleted: bool = Field(description="Whether this push deleted the `ref`.") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) + forced: bool = Field(description="Whether this push was a force push of the `ref`.") + head_commit: Union[WebhookPushPropHeadCommit, None] = Field(title="Commit") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -44,20 +59,360 @@ class WebhookReleaseDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + 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: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: WebhookPushPropRepository = Field( + title="Repository", description="A git repository" ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookReleaseDeleted) +class WebhookPushPropHeadCommit(GitHubModel): + """Commit""" + + added: Missing[List[str]] = Field( + default=UNSET, description="An array of files added in the commit." + ) + author: WebhookPushPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookPushPropHeadCommitPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + distinct: bool = Field( + description="Whether this commit is distinct from any that have been pushed before." + ) + id: str = Field() + message: str = Field(description="The commit message.") + modified: Missing[List[str]] = Field( + default=UNSET, description="An array of files modified by the commit." + ) + removed: Missing[List[str]] = Field( + default=UNSET, description="An array of files removed in the commit." + ) + timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") + tree_id: str = Field() + url: str = Field(description="URL that points to the commit API resource.") + + +class WebhookPushPropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropPusher(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropCommitsItems(GitHubModel): + """Commit""" + + added: Missing[List[str]] = Field( + default=UNSET, + description="An array of files added in the commit. A maximum of 3000 changed files will be reported per commit.", + ) + author: WebhookPushPropCommitsItemsPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookPushPropCommitsItemsPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + distinct: bool = Field( + description="Whether this commit is distinct from any that have been pushed before." + ) + id: str = Field() + message: str = Field(description="The commit message.") + modified: Missing[List[str]] = Field( + default=UNSET, + description="An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit.", + ) + removed: Missing[List[str]] = Field( + default=UNSET, + description="An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit.", + ) + timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") + tree_id: str = Field() + url: str = Field(description="URL that points to the commit API resource.") + + +class WebhookPushPropCommitsItemsPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + 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) + + +class WebhookPushPropRepositoryPropPermissions(GitHubModel): + """WebhookPushPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookPush) +model_rebuild(WebhookPushPropHeadCommit) +model_rebuild(WebhookPushPropHeadCommitPropAuthor) +model_rebuild(WebhookPushPropHeadCommitPropCommitter) +model_rebuild(WebhookPushPropPusher) +model_rebuild(WebhookPushPropCommitsItems) +model_rebuild(WebhookPushPropCommitsItemsPropAuthor) +model_rebuild(WebhookPushPropCommitsItemsPropCommitter) +model_rebuild(WebhookPushPropRepository) +model_rebuild(WebhookPushPropRepositoryPropCustomProperties) +model_rebuild(WebhookPushPropRepositoryPropLicense) +model_rebuild(WebhookPushPropRepositoryPropOwner) +model_rebuild(WebhookPushPropRepositoryPropPermissions) -__all__ = ("WebhookReleaseDeleted",) +__all__ = ( + "WebhookPush", + "WebhookPushPropHeadCommit", + "WebhookPushPropHeadCommitPropAuthor", + "WebhookPushPropHeadCommitPropCommitter", + "WebhookPushPropPusher", + "WebhookPushPropCommitsItems", + "WebhookPushPropCommitsItemsPropAuthor", + "WebhookPushPropCommitsItemsPropCommitter", + "WebhookPushPropRepository", + "WebhookPushPropRepositoryPropCustomProperties", + "WebhookPushPropRepositoryPropLicense", + "WebhookPushPropRepositoryPropOwner", + "WebhookPushPropRepositoryPropPermissions", +) 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 9f5f26563..8c02da793 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0710.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0710.py @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0447 import WebhooksRelease -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0711 import WebhookRegistryPackagePublishedPropRegistryPackage -class WebhookReleaseEdited(GitHubModel): - """release edited event""" +class WebhookRegistryPackagePublished(GitHubModel): + """WebhookRegistryPackagePublished""" - action: Literal["edited"] = Field() - changes: WebhookReleaseEditedPropChanges = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,67 +44,18 @@ class WebhookReleaseEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( + registry_package: 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: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookReleaseEditedPropChanges(GitHubModel): - """WebhookReleaseEditedPropChanges""" - - body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) - name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) - make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( - default=UNSET - ) - - -class WebhookReleaseEditedPropChangesPropBody(GitHubModel): - """WebhookReleaseEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookReleaseEditedPropChangesPropName(GitHubModel): - """WebhookReleaseEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", - ) - - -class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): - """WebhookReleaseEditedPropChangesPropMakeLatest""" - - to: bool = Field( - description="Whether this release was explicitly `edited` to be the latest." - ) - - -model_rebuild(WebhookReleaseEdited) -model_rebuild(WebhookReleaseEditedPropChanges) -model_rebuild(WebhookReleaseEditedPropChangesPropBody) -model_rebuild(WebhookReleaseEditedPropChangesPropName) -model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) +model_rebuild(WebhookRegistryPackagePublished) -__all__ = ( - "WebhookReleaseEdited", - "WebhookReleaseEditedPropChanges", - "WebhookReleaseEditedPropChangesPropBody", - "WebhookReleaseEditedPropChangesPropName", - "WebhookReleaseEditedPropChangesPropMakeLatest", -) +__all__ = ("WebhookRegistryPackagePublished",) 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 b257cc121..bffc75c71 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0711.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0711.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field @@ -18,188 +17,71 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks - - -class WebhookReleasePrereleased(GitHubModel): - """release prereleased event""" - - action: Literal["prereleased"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhookReleasePrereleasedPropRelease = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookReleasePrereleasedPropRelease(GitHubModel): - """Release - - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ - - assets: List[Union[WebhookReleasePrereleasedPropReleasePropAssetsItems, None]] = ( - Field() - ) - assets_url: str = Field() - author: Union[WebhookReleasePrereleasedPropReleasePropAuthor, None] = Field( - title="User" - ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: Literal[True] = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleasePrereleasedPropReleasePropReactions] = Field( - default=UNSET, title="Reactions" - ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - +from .group_0712 import ( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, +) -class WebhookReleasePrereleasedPropReleasePropAssetsItems(GitHubModel): - """Release Asset - Data related to a release. - """ +class WebhookRegistryPackagePublishedPropRegistryPackage(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackage""" - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() + created_at: Union[str, None] = Field() + description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() - - -class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + 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() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + node_id: str = Field() + organizations_url: str = Field() + received_events_url: str = Field() + repos_url: str = Field() + site_admin: bool = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + type: str = Field() + url: str = Field() -class WebhookReleasePrereleasedPropReleasePropAuthor(GitHubModel): - """User""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry(GitHubModel): + """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + about_url: 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) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + vendor: Missing[str] = Field(default=UNSET) -class WebhookReleasePrereleasedPropReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -model_rebuild(WebhookReleasePrereleased) -model_rebuild(WebhookReleasePrereleasedPropRelease) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItems) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAuthor) -model_rebuild(WebhookReleasePrereleasedPropReleasePropReactions) +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackage) +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropOwner) +model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry) __all__ = ( - "WebhookReleasePrereleased", - "WebhookReleasePrereleasedPropRelease", - "WebhookReleasePrereleasedPropReleasePropAssetsItems", - "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", - "WebhookReleasePrereleasedPropReleasePropAuthor", - "WebhookReleasePrereleasedPropReleasePropReactions", + "WebhookRegistryPackagePublishedPropRegistryPackage", + "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", + "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", ) 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 d8eeffc0b..15694d1dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0712.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0712.py @@ -9,56 +9,606 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0448 import WebhooksRelease1 -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks - - -class WebhookReleasePublished(GitHubModel): - """release published event""" - - action: Literal["published"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhooksRelease1 = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookReleasePublished) - -__all__ = ("WebhookReleasePublished",) +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + +from .group_0631 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() + + +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) + + +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", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", +) 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 505c8284d..8db1b38f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0713.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0713.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0447 import WebhooksRelease -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0714 import WebhookRegistryPackageUpdatedPropRegistryPackage -class WebhookReleaseReleased(GitHubModel): - """release released event""" +class WebhookRegistryPackageUpdated(GitHubModel): + """WebhookRegistryPackageUpdated""" - action: Literal["released"] = Field() + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,21 +44,18 @@ 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( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( + registry_package: WebhookRegistryPackageUpdatedPropRegistryPackage = Field() + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookReleaseReleased) +model_rebuild(WebhookRegistryPackageUpdated) -__all__ = ("WebhookReleaseReleased",) +__all__ = ("WebhookRegistryPackageUpdated",) 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 bdf2be074..1b7c6824d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0714.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0714.py @@ -9,56 +9,69 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0448 import WebhooksRelease1 -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks - - -class WebhookReleaseUnpublished(GitHubModel): - """release unpublished event""" - - action: Literal["unpublished"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhooksRelease1 = Field( - title="Release", - description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookReleaseUnpublished) - -__all__ = ("WebhookReleaseUnpublished",) +from .group_0715 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() + + +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_0715.py b/githubkit/versions/ghec_v2022_11_28/models/group_0715.py index 623c2df16..e8c1f56a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0715.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0715.py @@ -9,55 +9,193 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0162 import RepositoryAdvisory -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks - - -class WebhookRepositoryAdvisoryPublished(GitHubModel): - """Repository advisory published event""" - - action: Literal["published"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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.", - ) - repository_advisory: RepositoryAdvisory = Field( - description="A repository security advisory." - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookRepositoryAdvisoryPublished) - -__all__ = ("WebhookRepositoryAdvisoryPublished",) +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + +from .group_0631 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() + + +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() + + +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor +) + +__all__ = ( + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0716.py b/githubkit/versions/ghec_v2022_11_28/models/group_0716.py index ee4da3dc7..ca7280570 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0716.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0716.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0162 import RepositoryAdvisory -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0452 import WebhooksRelease +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRepositoryAdvisoryReported(GitHubModel): - """Repository advisory reported event""" +class WebhookReleaseCreated(GitHubModel): + """release created event""" - action: Literal["reported"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,20 +44,20 @@ class WebhookRepositoryAdvisoryReported(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_advisory: RepositoryAdvisory = Field( - description="A repository security advisory." - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRepositoryAdvisoryReported) +model_rebuild(WebhookReleaseCreated) -__all__ = ("WebhookRepositoryAdvisoryReported",) +__all__ = ("WebhookReleaseCreated",) 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 2fd54ebf2..b09957349 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0717.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0717.py @@ -17,17 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0452 import WebhooksRelease +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRepositoryArchived(GitHubModel): - """repository archived event""" +class WebhookReleaseDeleted(GitHubModel): + """release deleted event""" - action: Literal["archived"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,6 +44,10 @@ class WebhookRepositoryArchived(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -53,6 +58,6 @@ class WebhookRepositoryArchived(GitHubModel): ) -model_rebuild(WebhookRepositoryArchived) +model_rebuild(WebhookReleaseDeleted) -__all__ = ("WebhookRepositoryArchived",) +__all__ = ("WebhookReleaseDeleted",) 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 2d18d20c5..d1c0ff9df 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0718.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0718.py @@ -17,17 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0452 import WebhooksRelease +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRepositoryCreated(GitHubModel): - """repository created event""" +class WebhookReleaseEdited(GitHubModel): + """release edited event""" - action: Literal["created"] = Field() + action: Literal["edited"] = Field() + changes: WebhookReleaseEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,16 +45,67 @@ class WebhookRepositoryCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRepositoryCreated) +class WebhookReleaseEditedPropChanges(GitHubModel): + """WebhookReleaseEditedPropChanges""" + + body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) + name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) + make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( + default=UNSET + ) + + +class WebhookReleaseEditedPropChangesPropBody(GitHubModel): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropName(GitHubModel): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool = Field( + description="Whether this release was explicitly `edited` to be the latest." + ) + + +model_rebuild(WebhookReleaseEdited) +model_rebuild(WebhookReleaseEditedPropChanges) +model_rebuild(WebhookReleaseEditedPropChangesPropBody) +model_rebuild(WebhookReleaseEditedPropChangesPropName) +model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) -__all__ = ("WebhookRepositoryCreated",) +__all__ = ( + "WebhookReleaseEdited", + "WebhookReleaseEditedPropChanges", + "WebhookReleaseEditedPropChangesPropBody", + "WebhookReleaseEditedPropChangesPropName", + "WebhookReleaseEditedPropChangesPropMakeLatest", +) 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 65fe873eb..182612b97 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0719.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0719.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,17 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRepositoryDeleted(GitHubModel): - """repository deleted event""" +class WebhookReleasePrereleased(GitHubModel): + """release prereleased event""" - action: Literal["deleted"] = Field() + action: Literal["prereleased"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,16 +44,162 @@ class WebhookRepositoryDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhookReleasePrereleasedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRepositoryDeleted) +class WebhookReleasePrereleasedPropRelease(GitHubModel): + """Release + + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ + + assets: List[Union[WebhookReleasePrereleasedPropReleasePropAssetsItems, None]] = ( + Field() + ) + assets_url: str = Field() + author: Union[WebhookReleasePrereleasedPropReleasePropAuthor, None] = Field( + title="User" + ) + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: Literal[True] = Field( + description="Whether the release is identified as a prerelease or a full release." + ) + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhookReleasePrereleasedPropReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhookReleasePrereleasedPropReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") + url: str = Field() + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePrereleasedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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__ = ("WebhookRepositoryDeleted",) +__all__ = ( + "WebhookReleasePrereleased", + "WebhookReleasePrereleasedPropRelease", + "WebhookReleasePrereleasedPropReleasePropAssetsItems", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePrereleasedPropReleasePropAuthor", + "WebhookReleasePrereleasedPropReleasePropReactions", +) 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 9c33daa8d..ff16854fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0720.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0720.py @@ -9,39 +9,33 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0453 import WebhooksRelease1 +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRepositoryDispatchSample(GitHubModel): - """repository_dispatch event""" +class WebhookReleasePublished(GitHubModel): + """release published event""" - action: str = Field( - description="The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." - ) - branch: str = Field() - client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayload, None] = ( - Field( - description="The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." - ) - ) + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - installation: SimpleInstallation = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) @@ -50,28 +44,21 @@ class WebhookRepositoryDispatchSample(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease1 = Field( + title="Release", + description="The [release](https://docs.github.com/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: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -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) +model_rebuild(WebhookReleasePublished) -__all__ = ( - "WebhookRepositoryDispatchSample", - "WebhookRepositoryDispatchSamplePropClientPayload", -) +__all__ = ("WebhookReleasePublished",) 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 b548f63ae..9bf5964fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0721.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0721.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0452 import WebhooksRelease +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRepositoryEdited(GitHubModel): - """repository edited event""" +class WebhookReleaseReleased(GitHubModel): + """release released event""" - action: Literal["edited"] = Field() - changes: WebhookRepositoryEditedPropChanges = Field() + action: Literal["released"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,67 +44,21 @@ class WebhookRepositoryEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: 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: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookRepositoryEditedPropChanges(GitHubModel): - """WebhookRepositoryEditedPropChanges""" - - default_branch: Missing[WebhookRepositoryEditedPropChangesPropDefaultBranch] = ( - Field(default=UNSET) - ) - description: Missing[WebhookRepositoryEditedPropChangesPropDescription] = Field( - default=UNSET - ) - homepage: Missing[WebhookRepositoryEditedPropChangesPropHomepage] = Field( - default=UNSET - ) - topics: Missing[WebhookRepositoryEditedPropChangesPropTopics] = Field(default=UNSET) - - -class WebhookRepositoryEditedPropChangesPropDefaultBranch(GitHubModel): - """WebhookRepositoryEditedPropChangesPropDefaultBranch""" - - from_: str = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropDescription(GitHubModel): - """WebhookRepositoryEditedPropChangesPropDescription""" - - from_: Union[str, None] = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropHomepage(GitHubModel): - """WebhookRepositoryEditedPropChangesPropHomepage""" - - from_: Union[str, None] = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropTopics(GitHubModel): - """WebhookRepositoryEditedPropChangesPropTopics""" - - from_: Missing[Union[List[str], None]] = Field(default=UNSET, alias="from") - - -model_rebuild(WebhookRepositoryEdited) -model_rebuild(WebhookRepositoryEditedPropChanges) -model_rebuild(WebhookRepositoryEditedPropChangesPropDefaultBranch) -model_rebuild(WebhookRepositoryEditedPropChangesPropDescription) -model_rebuild(WebhookRepositoryEditedPropChangesPropHomepage) -model_rebuild(WebhookRepositoryEditedPropChangesPropTopics) +model_rebuild(WebhookReleaseReleased) -__all__ = ( - "WebhookRepositoryEdited", - "WebhookRepositoryEditedPropChanges", - "WebhookRepositoryEditedPropChangesPropDefaultBranch", - "WebhookRepositoryEditedPropChangesPropDescription", - "WebhookRepositoryEditedPropChangesPropHomepage", - "WebhookRepositoryEditedPropChangesPropTopics", -) +__all__ = ("WebhookReleaseReleased",) 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 580760885..5d348e525 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0722.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0722.py @@ -17,16 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0453 import WebhooksRelease1 +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRepositoryImport(GitHubModel): - """repository_import event""" +class WebhookReleaseUnpublished(GitHubModel): + """release unpublished event""" + action: Literal["unpublished"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,17 +44,21 @@ class WebhookRepositoryImport(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease1 = Field( + title="Release", + description="The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - status: Literal["success", "cancelled", "failure"] = Field() -model_rebuild(WebhookRepositoryImport) +model_rebuild(WebhookReleaseUnpublished) -__all__ = ("WebhookRepositoryImport",) +__all__ = ("WebhookReleaseUnpublished",) 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 49f0007e6..9f0ba28e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0723.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0723.py @@ -17,17 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0166 import RepositoryAdvisory +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRepositoryPrivatized(GitHubModel): - """repository privatized event""" +class WebhookRepositoryAdvisoryPublished(GitHubModel): + """Repository advisory published event""" - action: Literal["privatized"] = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -47,12 +48,16 @@ class WebhookRepositoryPrivatized(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + repository_advisory: RepositoryAdvisory = Field( + description="A repository security advisory." + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRepositoryPrivatized) +model_rebuild(WebhookRepositoryAdvisoryPublished) -__all__ = ("WebhookRepositoryPrivatized",) +__all__ = ("WebhookRepositoryAdvisoryPublished",) 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 59b406b1e..c6a44cd96 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0724.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0724.py @@ -17,17 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0166 import RepositoryAdvisory +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRepositoryPublicized(GitHubModel): - """repository publicized event""" +class WebhookRepositoryAdvisoryReported(GitHubModel): + """Repository advisory reported event""" - action: Literal["publicized"] = Field() + action: Literal["reported"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -47,12 +48,16 @@ class WebhookRepositoryPublicized(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: SimpleUserWebhooks = Field( + repository_advisory: RepositoryAdvisory = Field( + description="A repository security advisory." + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRepositoryPublicized) +model_rebuild(WebhookRepositoryAdvisoryReported) -__all__ = ("WebhookRepositoryPublicized",) +__all__ = ("WebhookRepositoryAdvisoryReported",) 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 f9a015707..de78f9bbb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0725.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0725.py @@ -17,18 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRepositoryRenamed(GitHubModel): - """repository renamed event""" +class WebhookRepositoryArchived(GitHubModel): + """repository archived event""" - action: Literal["renamed"] = Field() - changes: WebhookRepositoryRenamedPropChanges = Field() + action: Literal["archived"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -54,32 +53,6 @@ class WebhookRepositoryRenamed(GitHubModel): ) -class WebhookRepositoryRenamedPropChanges(GitHubModel): - """WebhookRepositoryRenamedPropChanges""" +model_rebuild(WebhookRepositoryArchived) - repository: WebhookRepositoryRenamedPropChangesPropRepository = Field() - - -class WebhookRepositoryRenamedPropChangesPropRepository(GitHubModel): - """WebhookRepositoryRenamedPropChangesPropRepository""" - - name: WebhookRepositoryRenamedPropChangesPropRepositoryPropName = Field() - - -class WebhookRepositoryRenamedPropChangesPropRepositoryPropName(GitHubModel): - """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookRepositoryRenamed) -model_rebuild(WebhookRepositoryRenamedPropChanges) -model_rebuild(WebhookRepositoryRenamedPropChangesPropRepository) -model_rebuild(WebhookRepositoryRenamedPropChangesPropRepositoryPropName) - -__all__ = ( - "WebhookRepositoryRenamed", - "WebhookRepositoryRenamedPropChanges", - "WebhookRepositoryRenamedPropChangesPropRepository", - "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", -) +__all__ = ("WebhookRepositoryArchived",) 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 ce65494d1..9c5d19b9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0726.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0726.py @@ -17,16 +17,15 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0158 import RepositoryRuleset -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRepositoryRulesetCreated(GitHubModel): - """repository ruleset created event""" +class WebhookRepositoryCreated(GitHubModel): + """repository created event""" action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( @@ -44,21 +43,16 @@ class WebhookRepositoryRulesetCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRepositoryRulesetCreated) +model_rebuild(WebhookRepositoryCreated) -__all__ = ("WebhookRepositoryRulesetCreated",) +__all__ = ("WebhookRepositoryCreated",) 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 b5a595c2d..115526988 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0727.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0727.py @@ -17,16 +17,15 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0158 import RepositoryRuleset -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRepositoryRulesetDeleted(GitHubModel): - """repository ruleset deleted event""" +class WebhookRepositoryDeleted(GitHubModel): + """repository deleted event""" action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( @@ -44,21 +43,16 @@ class WebhookRepositoryRulesetDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRepositoryRulesetDeleted) +model_rebuild(WebhookRepositoryDeleted) -__all__ = ("WebhookRepositoryRulesetDeleted",) +__all__ = ("WebhookRepositoryDeleted",) 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 123d82c6e..c66c367d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0728.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0728.py @@ -9,34 +9,39 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0158 import RepositoryRuleset -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0729 import WebhookRepositoryRulesetEditedPropChanges +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRepositoryRulesetEdited(GitHubModel): - """repository ruleset edited event""" +class WebhookRepositoryDispatchSample(GitHubModel): + """repository_dispatch event""" - action: Literal["edited"] = 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)."\n', ) - 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)."', ) @@ -45,22 +50,28 @@ class WebhookRepositoryRulesetEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) - changes: Missing[WebhookRepositoryRulesetEditedPropChanges] = Field(default=UNSET) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRepositoryRulesetEdited) +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__ = ("WebhookRepositoryRulesetEdited",) +__all__ = ( + "WebhookRepositoryDispatchSample", + "WebhookRepositoryDispatchSamplePropClientPayload", +) 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 ce0ac8ecf..a069fd964 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0729.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0729.py @@ -9,51 +9,102 @@ from __future__ import annotations +from typing import List, Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0732 import WebhookRepositoryRulesetEditedPropChangesPropRules -from .group_0730 import WebhookRepositoryRulesetEditedPropChangesPropConditions +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): - """WebhookRepositoryRulesetEditedPropChanges""" +class WebhookRepositoryEdited(GitHubModel): + """repository edited event""" - name: Missing[WebhookRepositoryRulesetEditedPropChangesPropName] = Field( - default=UNSET + 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)."\n', ) - enforcement: Missing[WebhookRepositoryRulesetEditedPropChangesPropEnforcement] = ( - Field(default=UNSET) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when 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.", ) - conditions: Missing[WebhookRepositoryRulesetEditedPropChangesPropConditions] = ( + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookRepositoryEditedPropChanges(GitHubModel): + """WebhookRepositoryEditedPropChanges""" + + default_branch: Missing[WebhookRepositoryEditedPropChangesPropDefaultBranch] = ( Field(default=UNSET) ) - rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = Field( + 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 WebhookRepositoryRulesetEditedPropChangesPropName(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropName""" +class WebhookRepositoryEditedPropChangesPropHomepage(GitHubModel): + """WebhookRepositoryEditedPropChangesPropHomepage""" - from_: Missing[str] = Field(default=UNSET, alias="from") + from_: Union[str, None] = Field(alias="from") -class WebhookRepositoryRulesetEditedPropChangesPropEnforcement(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" +class WebhookRepositoryEditedPropChangesPropTopics(GitHubModel): + """WebhookRepositoryEditedPropChangesPropTopics""" - from_: Missing[str] = Field(default=UNSET, alias="from") + from_: Missing[Union[List[str], None]] = Field(default=UNSET, alias="from") -model_rebuild(WebhookRepositoryRulesetEditedPropChanges) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropName) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropEnforcement) +model_rebuild(WebhookRepositoryEdited) +model_rebuild(WebhookRepositoryEditedPropChanges) +model_rebuild(WebhookRepositoryEditedPropChangesPropDefaultBranch) +model_rebuild(WebhookRepositoryEditedPropChangesPropDescription) +model_rebuild(WebhookRepositoryEditedPropChangesPropHomepage) +model_rebuild(WebhookRepositoryEditedPropChangesPropTopics) __all__ = ( - "WebhookRepositoryRulesetEditedPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropName", - "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", + "WebhookRepositoryEdited", + "WebhookRepositoryEditedPropChanges", + "WebhookRepositoryEditedPropChangesPropDefaultBranch", + "WebhookRepositoryEditedPropChangesPropDescription", + "WebhookRepositoryEditedPropChangesPropHomepage", + "WebhookRepositoryEditedPropChangesPropTopics", ) 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 6ae082c7d..1723afac0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0730.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0730.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -17,22 +17,42 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0121 import RepositoryRulesetConditions -from .group_0731 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, -) - - -class WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - - added: Missing[List[RepositoryRulesetConditions]] = Field(default=UNSET) - deleted: Missing[List[RepositoryRulesetConditions]] = Field(default=UNSET) - updated: Missing[ - List[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] - ] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) - -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks + + +class WebhookRepositoryImport(GitHubModel): + """repository_import 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)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + status: Literal["success", "cancelled", "failure"] = Field() + + +model_rebuild(WebhookRepositoryImport) + +__all__ = ("WebhookRepositoryImport",) 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 751ff2b9a..40d615d1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0731.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0731.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -17,107 +17,42 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0121 import RepositoryRulesetConditions +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" +class WebhookRepositoryPrivatized(GitHubModel): + """repository privatized event""" - condition: Missing[RepositoryRulesetConditions] = Field( + action: Literal["privatized"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ - - condition_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType - ] = Field(default=UNSET) - target: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget - ] = Field(default=UNSET) - include: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude - ] = Field(default=UNSET) - exclude: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropConditionType - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropTarget - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropInclude - """ - - from_: Missing[List[str]] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropExclude - """ - - from_: Missing[List[str]] = Field(default=UNSET, alias="from") -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude -) +model_rebuild(WebhookRepositoryPrivatized) -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", -) +__all__ = ("WebhookRepositoryPrivatized",) 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 fe9eb40e8..dc4307c97 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 List, Union +from typing import Literal from pydantic import Field @@ -17,92 +17,42 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0133 import RepositoryRuleUpdate -from .group_0157 import RepositoryRuleOneof17 -from .group_0153 import RepositoryRuleWorkflows -from .group_0138 import RepositoryRulePullRequest -from .group_0155 import RepositoryRuleCodeScanning -from .group_0150 import RepositoryRuleTagNamePattern -from .group_0148 import RepositoryRuleBranchNamePattern -from .group_0136 import RepositoryRuleRequiredDeployments -from .group_0140 import RepositoryRuleRequiredStatusChecks -from .group_0142 import RepositoryRuleCommitMessagePattern -from .group_0146 import RepositoryRuleCommitterEmailPattern -from .group_0144 import RepositoryRuleCommitAuthorEmailPattern -from .group_0135 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory -from .group_0733 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, -) -from .group_0132 import ( - RepositoryRuleOneof14, - RepositoryRuleOneof16, - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) - - -class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" - - added: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET) - deleted: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET) - updated: Missing[ - List[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] - ] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) - -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks + + +class WebhookRepositoryPublicized(GitHubModel): + """repository publicized event""" + + action: Literal["publicized"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +model_rebuild(WebhookRepositoryPublicized) + +__all__ = ("WebhookRepositoryPublicized",) 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 8891c07a2..ed86f1a4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0733.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0733.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,125 +17,69 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0133 import RepositoryRuleUpdate -from .group_0157 import RepositoryRuleOneof17 -from .group_0153 import RepositoryRuleWorkflows -from .group_0138 import RepositoryRulePullRequest -from .group_0155 import RepositoryRuleCodeScanning -from .group_0150 import RepositoryRuleTagNamePattern -from .group_0148 import RepositoryRuleBranchNamePattern -from .group_0136 import RepositoryRuleRequiredDeployments -from .group_0140 import RepositoryRuleRequiredStatusChecks -from .group_0142 import RepositoryRuleCommitMessagePattern -from .group_0146 import RepositoryRuleCommitterEmailPattern -from .group_0144 import RepositoryRuleCommitAuthorEmailPattern -from .group_0135 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory -from .group_0132 import ( - RepositoryRuleOneof14, - RepositoryRuleOneof16, - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - - rule: Missing[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - - configuration: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration - ] = Field(default=UNSET) - rule_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType - ] = Field(default=UNSET) - pattern: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern -) +class WebhookRepositoryRenamed(GitHubModel): + """repository renamed event""" + + action: Literal["renamed"] = Field() + changes: WebhookRepositoryRenamedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +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) __all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", + "WebhookRepositoryRenamed", + "WebhookRepositoryRenamedPropChanges", + "WebhookRepositoryRenamedPropChangesPropRepository", + "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", ) 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 101f99e35..037f7e544 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0734.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0734.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0162 import RepositoryRuleset +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRepositoryTransferred(GitHubModel): - """repository transferred event""" +class WebhookRepositoryRulesetCreated(GitHubModel): + """repository ruleset created event""" - action: Literal["transferred"] = Field() - changes: WebhookRepositoryTransferredPropChanges = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,99 +44,21 @@ class WebhookRepositoryTransferred(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookRepositoryTransferredPropChanges(GitHubModel): - """WebhookRepositoryTransferredPropChanges""" - - owner: WebhookRepositoryTransferredPropChangesPropOwner = Field() - - -class WebhookRepositoryTransferredPropChangesPropOwner(GitHubModel): - """WebhookRepositoryTransferredPropChangesPropOwner""" - - from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFrom = Field( - alias="from" - ) - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFrom(GitHubModel): - """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" - - organization: Missing[ - WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization - ] = Field(default=UNSET, title="Organization") - user: Missing[ - Union[WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, None] - ] = Field(default=UNSET, title="User") - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization( - GitHubModel -): - """Organization""" - - avatar_url: str = Field() - description: Union[str, None] = Field() - events_url: str = Field() - hooks_url: str = Field() - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - issues_url: str = Field() - login: str = Field() - members_url: str = Field() - node_id: str = Field() - public_members_url: str = Field() - repos_url: str = Field() - url: str = Field() - - -class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryTransferred) -model_rebuild(WebhookRepositoryTransferredPropChanges) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwner) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFrom) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser) +model_rebuild(WebhookRepositoryRulesetCreated) -__all__ = ( - "WebhookRepositoryTransferred", - "WebhookRepositoryTransferredPropChanges", - "WebhookRepositoryTransferredPropChangesPropOwner", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", -) +__all__ = ("WebhookRepositoryRulesetCreated",) 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 0b5478db1..187c724b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0735.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0735.py @@ -17,17 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0162 import RepositoryRuleset +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookRepositoryUnarchived(GitHubModel): - """repository unarchived event""" +class WebhookRepositoryRulesetDeleted(GitHubModel): + """repository ruleset deleted event""" - action: Literal["unarchived"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,16 +44,21 @@ class WebhookRepositoryUnarchived(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRepositoryUnarchived) +model_rebuild(WebhookRepositoryRulesetDeleted) -__all__ = ("WebhookRepositoryUnarchived",) +__all__ = ("WebhookRepositoryRulesetDeleted",) 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 4fbffdac2..ff107a1d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0736.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0736.py @@ -17,22 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0449 import WebhooksAlert -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0162 import RepositoryRuleset +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0737 import WebhookRepositoryRulesetEditedPropChanges -class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): - """repository_vulnerability_alert create event""" +class WebhookRepositoryRulesetEdited(GitHubModel): + """repository ruleset edited event""" - action: Literal["create"] = Field() - alert: WebhooksAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) + action: Literal["edited"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,16 +45,22 @@ class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", + ) + changes: Missing[WebhookRepositoryRulesetEditedPropChanges] = Field(default=UNSET) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) +model_rebuild(WebhookRepositoryRulesetEdited) -__all__ = ("WebhookRepositoryVulnerabilityAlertCreate",) +__all__ = ("WebhookRepositoryRulesetEdited",) 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 ef7cce5f3..cfeeda83b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0737.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0737.py @@ -9,115 +9,51 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0740 import WebhookRepositoryRulesetEditedPropChangesPropRules +from .group_0738 import WebhookRepositoryRulesetEditedPropChangesPropConditions -class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): - """repository_vulnerability_alert dismiss event""" +class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["dismiss"] = Field() - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: RepositoryWebhooks = Field( - title="Repository", - 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) ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = Field( + default=UNSET ) -class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_comment: Missing[Union[str, None]] = Field(default=UNSET) - dismiss_reason: str = Field() - dismissed_at: str = Field() - dismisser: Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, None - ] = Field(title="User") - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["dismissed"] = Field() - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryVulnerabilityAlertDismiss) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser) +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__ = ( - "WebhookRepositoryVulnerabilityAlertDismiss", - "WebhookRepositoryVulnerabilityAlertDismissPropAlert", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", + "WebhookRepositoryRulesetEditedPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropName", + "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", ) 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 de4737a16..2793e6d3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0738.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0738.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -17,47 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0449 import WebhooksAlert -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks - - -class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): - """repository_vulnerability_alert reopen event""" - - action: Literal["reopen"] = Field() - alert: WebhooksAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) - -__all__ = ("WebhookRepositoryVulnerabilityAlertReopen",) +from .group_0125 import RepositoryRulesetConditions +from .group_0739 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, +) + + +class WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" + + added: Missing[List[RepositoryRulesetConditions]] = Field(default=UNSET) + deleted: Missing[List[RepositoryRulesetConditions]] = Field(default=UNSET) + updated: Missing[ + List[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] + ] = Field(default=UNSET) + + +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) + +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0739.py b/githubkit/versions/ghec_v2022_11_28/models/group_0739.py index eab2be9e3..1da5296f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0739.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0739.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from pydantic import Field @@ -18,105 +17,107 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0125 import RepositoryRulesetConditions -class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): - """repository_vulnerability_alert resolve event""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" - action: Literal["resolve"] = Field() - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( + condition: Missing[RepositoryRulesetConditions] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges + ] = Field(default=UNSET) -class WebhookRepositoryVulnerabilityAlertResolvePropAlert(GitHubModel): - """Repository Vulnerability Alert Alert +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + es + """ - The security alert of the vulnerable dependency. + condition_type: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType + ] = Field(default=UNSET) + target: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget + ] = Field(default=UNSET) + include: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude + ] = Field(default=UNSET) + exclude: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropConditionType """ - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[ - Union[WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, None] - ] = Field(default=UNSET, title="User") - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["fixed", "open"] = Field() - - -class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryVulnerabilityAlertResolve) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlert) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser) + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropTarget + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropInclude + """ + + from_: Missing[List[str]] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropExclude + """ + + from_: Missing[List[str]] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude +) __all__ = ( - "WebhookRepositoryVulnerabilityAlertResolve", - "WebhookRepositoryVulnerabilityAlertResolvePropAlert", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", ) 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 03094c21d..a676c45e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0740.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0740.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from pydantic import Field @@ -17,45 +17,92 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0450 import SecretScanningAlertWebhook - - -class WebhookSecretScanningAlertCreated(GitHubModel): - """secret_scanning_alert created event""" - - action: Literal["created"] = Field() - alert: SecretScanningAlertWebhook = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookSecretScanningAlertCreated) - -__all__ = ("WebhookSecretScanningAlertCreated",) +from .group_0137 import RepositoryRuleUpdate +from .group_0161 import RepositoryRuleOneof17 +from .group_0157 import RepositoryRuleWorkflows +from .group_0142 import RepositoryRulePullRequest +from .group_0159 import RepositoryRuleCodeScanning +from .group_0154 import RepositoryRuleTagNamePattern +from .group_0152 import RepositoryRuleBranchNamePattern +from .group_0140 import RepositoryRuleRequiredDeployments +from .group_0144 import RepositoryRuleRequiredStatusChecks +from .group_0146 import RepositoryRuleCommitMessagePattern +from .group_0150 import RepositoryRuleCommitterEmailPattern +from .group_0148 import RepositoryRuleCommitAuthorEmailPattern +from .group_0139 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory +from .group_0741 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, +) +from .group_0136 import ( + RepositoryRuleOneof14, + RepositoryRuleOneof16, + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) + + +class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" + + added: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET) + deleted: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET) + updated: Missing[ + List[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] + ] = Field(default=UNSET) + + +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) + +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) 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 e522bb52d..cd300f5f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0741.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0741.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union from pydantic import Field @@ -17,300 +17,125 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0450 import SecretScanningAlertWebhook - - -class WebhookSecretScanningAlertLocationCreated(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.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) +from .group_0137 import RepositoryRuleUpdate +from .group_0161 import RepositoryRuleOneof17 +from .group_0157 import RepositoryRuleWorkflows +from .group_0142 import RepositoryRulePullRequest +from .group_0159 import RepositoryRuleCodeScanning +from .group_0154 import RepositoryRuleTagNamePattern +from .group_0152 import RepositoryRuleBranchNamePattern +from .group_0140 import RepositoryRuleRequiredDeployments +from .group_0144 import RepositoryRuleRequiredStatusChecks +from .group_0146 import RepositoryRuleCommitMessagePattern +from .group_0150 import RepositoryRuleCommitterEmailPattern +from .group_0148 import RepositoryRuleCommitAuthorEmailPattern +from .group_0139 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory +from .group_0136 import ( + RepositoryRuleOneof14, + RepositoryRuleOneof16, + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class SecretScanningLocation(GitHubModel): - """SecretScanningLocation""" +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - type: Missing[ - Literal[ - "commit", - "wiki_commit", - "issue_title", - "issue_body", - "issue_comment", - "discussion_title", - "discussion_body", - "discussion_comment", - "pull_request_title", - "pull_request_body", - "pull_request_comment", - "pull_request_review", - "pull_request_review_comment", - ] - ] = Field( - default=UNSET, - description="The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.", - ) - details: Missing[ + rule: Missing[ Union[ - SecretScanningLocationCommit, - SecretScanningLocationWikiCommit, - SecretScanningLocationIssueTitle, - SecretScanningLocationIssueBody, - SecretScanningLocationIssueComment, - SecretScanningLocationDiscussionTitle, - SecretScanningLocationDiscussionBody, - SecretScanningLocationDiscussionComment, - SecretScanningLocationPullRequestTitle, - SecretScanningLocationPullRequestBody, - SecretScanningLocationPullRequestComment, - SecretScanningLocationPullRequestReview, - SecretScanningLocationPullRequestReviewComment, + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, ] + ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges ] = Field(default=UNSET) -class SecretScanningLocationCommit(GitHubModel): - """SecretScanningLocationCommit - - Represents a 'commit' secret scanning location type. This location type shows - that a secret was detected inside a commit to a repository. - """ - - path: str = Field(description="The file path in the repository") - start_line: float = Field( - description="Line number at which the secret starts in the file" - ) - end_line: float = Field( - description="Line number at which the secret ends in the file" - ) - start_column: float = Field( - description="The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII" - ) - end_column: float = Field( - description="The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII" - ) - blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") - blob_url: str = Field(description="The API URL to get the associated blob resource") - commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") - commit_url: str = Field( - description="The API URL to get the associated commit resource" - ) - - -class SecretScanningLocationWikiCommit(GitHubModel): - """SecretScanningLocationWikiCommit - - Represents a 'wiki_commit' secret scanning location type. This location type - shows that a secret was detected inside a commit to a repository wiki. - """ - - path: str = Field(description="The file path of the wiki page") - start_line: float = Field( - description="Line number at which the secret starts in the file" - ) - end_line: float = Field( - description="Line number at which the secret ends in the file" - ) - start_column: float = Field( - description="The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII." - ) - end_column: float = Field( - description="The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII." - ) - blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") - page_url: str = Field(description="The GitHub URL to get the associated wiki page") - commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") - commit_url: str = Field( - description="The GitHub URL to get the associated wiki commit" - ) - - -class SecretScanningLocationIssueTitle(GitHubModel): - """SecretScanningLocationIssueTitle - - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. - """ - - issue_title_url: str = Field( - description="The API URL to get the issue where the secret was detected." - ) - - -class SecretScanningLocationIssueBody(GitHubModel): - """SecretScanningLocationIssueBody - - Represents an 'issue_body' secret scanning location type. This location type - shows that a secret was detected in the body of an issue. - """ - - issue_body_url: str = Field( - description="The API URL to get the issue where the secret was detected." - ) - - -class SecretScanningLocationIssueComment(GitHubModel): - """SecretScanningLocationIssueComment - - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. - """ - - issue_comment_url: str = Field( - description="The API URL to get the issue comment where the secret was detected." - ) - - -class SecretScanningLocationDiscussionTitle(GitHubModel): - """SecretScanningLocationDiscussionTitle - - Represents a 'discussion_title' secret scanning location type. This location - type shows that a secret was detected in the title of a discussion. - """ - - discussion_title_url: str = Field( - description="The URL to the discussion where the secret was detected." - ) - - -class SecretScanningLocationDiscussionBody(GitHubModel): - """SecretScanningLocationDiscussionBody - - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. - """ - - discussion_body_url: str = Field( - description="The URL to the discussion where the secret was detected." - ) - - -class SecretScanningLocationDiscussionComment(GitHubModel): - """SecretScanningLocationDiscussionComment - - Represents a 'discussion_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a discussion. - """ - - discussion_comment_url: str = Field( - description="The API URL to get the discussion comment where the secret was detected." - ) - - -class SecretScanningLocationPullRequestTitle(GitHubModel): - """SecretScanningLocationPullRequestTitle - - Represents a 'pull_request_title' secret scanning location type. This location - type shows that a secret was detected in the title of a pull request. - """ - - pull_request_title_url: str = Field( - description="The API URL to get the pull request where the secret was detected." - ) - - -class SecretScanningLocationPullRequestBody(GitHubModel): - """SecretScanningLocationPullRequestBody - - Represents a 'pull_request_body' secret scanning location type. This location - type shows that a secret was detected in the body of a pull request. - """ - - pull_request_body_url: str = Field( - description="The API URL to get the pull request where the secret was detected." - ) +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" + configuration: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration + ] = Field(default=UNSET) + rule_type: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType + ] = Field(default=UNSET) + pattern: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern + ] = Field(default=UNSET) -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. +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pConfiguration """ - pull_request_comment_url: str = Field( - description="The API URL to get the pull request comment where the secret was detected." - ) - + from_: Missing[str] = Field(default=UNSET, alias="from") -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. +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pRuleType """ - pull_request_review_url: str = Field( - description="The API URL to get the pull request review where the secret was detected." - ) + from_: Missing[str] = Field(default=UNSET, alias="from") -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. +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pPattern """ - pull_request_review_comment_url: str = Field( - description="The API URL to get the pull request review comment where the secret was detected." - ) + from_: Missing[str] = Field(default=UNSET, alias="from") -model_rebuild(WebhookSecretScanningAlertLocationCreated) -model_rebuild(SecretScanningLocation) -model_rebuild(SecretScanningLocationCommit) -model_rebuild(SecretScanningLocationWikiCommit) -model_rebuild(SecretScanningLocationIssueTitle) -model_rebuild(SecretScanningLocationIssueBody) -model_rebuild(SecretScanningLocationIssueComment) -model_rebuild(SecretScanningLocationDiscussionTitle) -model_rebuild(SecretScanningLocationDiscussionBody) -model_rebuild(SecretScanningLocationDiscussionComment) -model_rebuild(SecretScanningLocationPullRequestTitle) -model_rebuild(SecretScanningLocationPullRequestBody) -model_rebuild(SecretScanningLocationPullRequestComment) -model_rebuild(SecretScanningLocationPullRequestReview) -model_rebuild(SecretScanningLocationPullRequestReviewComment) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern +) __all__ = ( - "WebhookSecretScanningAlertLocationCreated", - "SecretScanningLocation", - "SecretScanningLocationCommit", - "SecretScanningLocationWikiCommit", - "SecretScanningLocationIssueTitle", - "SecretScanningLocationIssueBody", - "SecretScanningLocationIssueComment", - "SecretScanningLocationDiscussionTitle", - "SecretScanningLocationDiscussionBody", - "SecretScanningLocationDiscussionComment", - "SecretScanningLocationPullRequestTitle", - "SecretScanningLocationPullRequestBody", - "SecretScanningLocationPullRequestComment", - "SecretScanningLocationPullRequestReview", - "SecretScanningLocationPullRequestReviewComment", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", ) 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 875448bf5..03cab5470 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0742.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0742.py @@ -9,19 +9,134 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks + + +class WebhookRepositoryTransferred(GitHubModel): + """repository transferred event""" + + 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)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookRepositoryTransferredPropChanges(GitHubModel): + """WebhookRepositoryTransferredPropChanges""" -class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): - """Secret Scanning Alert Location Created Event""" + owner: WebhookRepositoryTransferredPropChangesPropOwner = Field() - payload: str = Field( - description="A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object." + +class WebhookRepositoryTransferredPropChangesPropOwner(GitHubModel): + """WebhookRepositoryTransferredPropChangesPropOwner""" + + from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFrom = Field( + alias="from" ) -model_rebuild(WebhookSecretScanningAlertLocationCreatedFormEncoded) +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) + + +model_rebuild(WebhookRepositoryTransferred) +model_rebuild(WebhookRepositoryTransferredPropChanges) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwner) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFrom) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser) -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) +__all__ = ( + "WebhookRepositoryTransferred", + "WebhookRepositoryTransferredPropChanges", + "WebhookRepositoryTransferredPropChangesPropOwner", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", +) 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 2cefde1bc..3892c250a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0743.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0743.py @@ -17,19 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0450 import SecretScanningAlertWebhook +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookSecretScanningAlertReopened(GitHubModel): - """secret_scanning_alert reopened event""" +class WebhookRepositoryUnarchived(GitHubModel): + """repository unarchived event""" - action: Literal["reopened"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["unarchived"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,13 +47,12 @@ class WebhookSecretScanningAlertReopened(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookSecretScanningAlertReopened) +model_rebuild(WebhookRepositoryUnarchived) -__all__ = ("WebhookSecretScanningAlertReopened",) +__all__ = ("WebhookRepositoryUnarchived",) 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 132147e68..0a517dcef 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0744.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0744.py @@ -17,19 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0450 import SecretScanningAlertWebhook +from .group_0454 import WebhooksAlert +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookSecretScanningAlertResolved(GitHubModel): - """secret_scanning_alert resolved event""" +class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): + """repository_vulnerability_alert create event""" - action: Literal["resolved"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["create"] = Field() + alert: WebhooksAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,13 +52,12 @@ class WebhookSecretScanningAlertResolved(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookSecretScanningAlertResolved) +model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) -__all__ = ("WebhookSecretScanningAlertResolved",) +__all__ = ("WebhookRepositoryVulnerabilityAlertCreate",) 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 d54546481..c532816d8 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,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,19 +18,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0450 import SecretScanningAlertWebhook +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookSecretScanningAlertValidated(GitHubModel): - """secret_scanning_alert validated event""" +class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): + """repository_vulnerability_alert dismiss event""" - action: Literal["validated"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["dismiss"] = Field() + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,13 +52,72 @@ class WebhookSecretScanningAlertValidated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookSecretScanningAlertValidated) +class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_comment: Missing[Union[str, None]] = Field(default=UNSET) + dismiss_reason: str = Field() + dismissed_at: str = Field() + dismisser: Union[ + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, None + ] = Field(title="User") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + severity: str = Field() + state: Literal["dismissed"] = Field() + + +class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRepositoryVulnerabilityAlertDismiss) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser) -__all__ = ("WebhookSecretScanningAlertValidated",) +__all__ = ( + "WebhookRepositoryVulnerabilityAlertDismiss", + "WebhookRepositoryVulnerabilityAlertDismissPropAlert", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", +) 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 96d602447..e765e8fda 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0746.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0746.py @@ -17,18 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0451 import WebhooksSecurityAdvisory -from .group_0404 import OrganizationSimpleWebhooks +from .group_0454 import WebhooksAlert +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookSecurityAdvisoryPublished(GitHubModel): - """security_advisory published event""" +class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): + """repository_vulnerability_alert reopen event""" - action: Literal["published"] = Field() + action: Literal["reopen"] = Field() + alert: WebhooksAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,21 +48,16 @@ class WebhookSecurityAdvisoryPublished(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - security_advisory: WebhooksSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookSecurityAdvisoryPublished) +model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) -__all__ = ("WebhookSecurityAdvisoryPublished",) +__all__ = ("WebhookRepositoryVulnerabilityAlertReopen",) 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 23dab9f50..70dc13443 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0747.py +++ b/githubkit/versions/ghec_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 Union, Literal from pydantic import Field @@ -17,18 +18,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0451 import WebhooksSecurityAdvisory -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookSecurityAdvisoryUpdated(GitHubModel): - """security_advisory updated event""" +class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): + """repository_vulnerability_alert resolve event""" - action: Literal["updated"] = Field() + action: Literal["resolve"] = Field() + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,21 +48,75 @@ class WebhookSecurityAdvisoryUpdated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - security_advisory: WebhooksSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookSecurityAdvisoryUpdated) +class WebhookRepositoryVulnerabilityAlertResolvePropAlert(GitHubModel): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_reason: Missing[str] = Field(default=UNSET) + dismissed_at: Missing[str] = Field(default=UNSET) + dismisser: Missing[ + Union[WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, None] + ] = Field(default=UNSET, title="User") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + severity: str = Field() + state: Literal["fixed", "open"] = Field() + + +class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRepositoryVulnerabilityAlertResolve) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser) -__all__ = ("WebhookSecurityAdvisoryUpdated",) +__all__ = ( + "WebhookRepositoryVulnerabilityAlertResolve", + "WebhookRepositoryVulnerabilityAlertResolvePropAlert", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", +) 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 3a2a8c70e..37cad333d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0748.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0748.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,17 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0455 import SecretScanningAlertWebhook -class WebhookSecurityAdvisoryWithdrawn(GitHubModel): - """security_advisory withdrawn event""" +class WebhookSecretScanningAlertCreated(GitHubModel): + """secret_scanning_alert created event""" - action: Literal["withdrawn"] = Field() + action: Literal["created"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,14 +45,10 @@ class WebhookSecurityAdvisoryWithdrawn(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, title="Simple User", @@ -58,125 +56,6 @@ class WebhookSecurityAdvisoryWithdrawn(GitHubModel): ) -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. - """ - - cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss = Field() - 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 -) +model_rebuild(WebhookSecretScanningAlertCreated) -__all__ = ( - "WebhookSecurityAdvisoryWithdrawn", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", -) +__all__ = ("WebhookSecretScanningAlertCreated",) 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 03841a1fc..7d4492ed4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0749.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0749.py @@ -9,49 +9,308 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0119 import FullRepository -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks -from .group_0750 import WebhookSecurityAndAnalysisPropChanges +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0455 import SecretScanningAlertWebhook -class WebhookSecurityAndAnalysis(GitHubModel): - """security_and_analysis event""" +class WebhookSecretScanningAlertLocationCreated(GitHubModel): + """Secret Scanning Alert Location Created 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)."\n', - ) + 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: FullRepository = Field( - title="Full Repository", description="Full Repository" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookSecurityAndAnalysis) +class SecretScanningLocation(GitHubModel): + """SecretScanningLocation""" + + type: Missing[ + Literal[ + "commit", + "wiki_commit", + "issue_title", + "issue_body", + "issue_comment", + "discussion_title", + "discussion_body", + "discussion_comment", + "pull_request_title", + "pull_request_body", + "pull_request_comment", + "pull_request_review", + "pull_request_review_comment", + ] + ] = Field( + default=UNSET, + description="The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.", + ) + details: Missing[ + Union[ + SecretScanningLocationCommit, + SecretScanningLocationWikiCommit, + SecretScanningLocationIssueTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationIssueComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationDiscussionBody, + SecretScanningLocationDiscussionComment, + SecretScanningLocationPullRequestTitle, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestComment, + SecretScanningLocationPullRequestReview, + SecretScanningLocationPullRequestReviewComment, + ] + ] = Field(default=UNSET) + + +class SecretScanningLocationCommit(GitHubModel): + """SecretScanningLocationCommit + + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. + """ + + path: str = Field(description="The file path in the repository") + start_line: float = Field( + description="Line number at which the secret starts in the file" + ) + end_line: float = Field( + description="Line number at which the secret ends in the file" + ) + start_column: float = Field( + description="The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII" + ) + end_column: float = Field( + description="The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII" + ) + blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") + blob_url: str = Field(description="The API URL to get the associated blob resource") + commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") + commit_url: str = Field( + description="The API URL to get the associated commit resource" + ) + + +class SecretScanningLocationWikiCommit(GitHubModel): + """SecretScanningLocationWikiCommit + + Represents a 'wiki_commit' secret scanning location type. This location type + shows that a secret was detected inside a commit to a repository wiki. + """ + + path: str = Field(description="The file path of the wiki page") + start_line: float = Field( + description="Line number at which the secret starts in the file" + ) + end_line: float = Field( + description="Line number at which the secret ends in the file" + ) + start_column: float = Field( + description="The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII." + ) + end_column: float = Field( + description="The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII." + ) + blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") + page_url: str = Field(description="The GitHub URL to get the associated wiki page") + commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") + commit_url: str = Field( + description="The GitHub URL to get the associated wiki commit" + ) + + +class SecretScanningLocationIssueTitle(GitHubModel): + """SecretScanningLocationIssueTitle + + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. + """ + + issue_title_url: str = Field( + description="The API URL to get the issue where the secret was detected." + ) + + +class SecretScanningLocationIssueBody(GitHubModel): + """SecretScanningLocationIssueBody + + Represents an 'issue_body' secret scanning location type. This location type + shows that a secret was detected in the body of an issue. + """ + + issue_body_url: str = Field( + description="The API URL to get the issue where the secret was detected." + ) + + +class SecretScanningLocationIssueComment(GitHubModel): + """SecretScanningLocationIssueComment + + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. + """ + + issue_comment_url: str = Field( + description="The API URL to get the issue comment where the secret was detected." + ) + + +class SecretScanningLocationDiscussionTitle(GitHubModel): + """SecretScanningLocationDiscussionTitle + + Represents a 'discussion_title' secret scanning location type. This location + type shows that a secret was detected in the title of a discussion. + """ + + discussion_title_url: str = Field( + description="The URL to the discussion where the secret was detected." + ) + + +class SecretScanningLocationDiscussionBody(GitHubModel): + """SecretScanningLocationDiscussionBody + + Represents a 'discussion_body' secret scanning location type. This location type + shows that a secret was detected in the body of a discussion. + """ + + discussion_body_url: str = Field( + description="The URL to the discussion where the secret was detected." + ) + + +class SecretScanningLocationDiscussionComment(GitHubModel): + """SecretScanningLocationDiscussionComment + + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. + """ + + discussion_comment_url: str = Field( + description="The API URL to get the discussion comment where the secret was detected." + ) + + +class SecretScanningLocationPullRequestTitle(GitHubModel): + """SecretScanningLocationPullRequestTitle + + Represents a 'pull_request_title' secret scanning location type. This location + type shows that a secret was detected in the title of a pull request. + """ + + pull_request_title_url: str = Field( + description="The API URL to get the pull request where the secret was detected." + ) + + +class SecretScanningLocationPullRequestBody(GitHubModel): + """SecretScanningLocationPullRequestBody + + Represents a 'pull_request_body' secret scanning location type. This location + type shows that a secret was detected in the body of a pull request. + """ + + pull_request_body_url: str = Field( + description="The API URL to get the pull request where the secret was detected." + ) + + +class SecretScanningLocationPullRequestComment(GitHubModel): + """SecretScanningLocationPullRequestComment + + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ + + pull_request_comment_url: str = Field( + description="The API URL to get the pull request comment where the secret was detected." + ) + + +class SecretScanningLocationPullRequestReview(GitHubModel): + """SecretScanningLocationPullRequestReview + + Represents a 'pull_request_review' secret scanning location type. This location + type shows that a secret was detected in a review on a pull request. + """ + + pull_request_review_url: str = Field( + description="The API URL to get the pull request review where the secret was detected." + ) + + +class SecretScanningLocationPullRequestReviewComment(GitHubModel): + """SecretScanningLocationPullRequestReviewComment + + Represents a 'pull_request_review_comment' secret scanning location type. This + location type shows that a secret was detected in a review comment on a pull + request. + """ + + pull_request_review_comment_url: str = Field( + description="The API URL to get the pull request review comment where the secret was detected." + ) + + +model_rebuild(WebhookSecretScanningAlertLocationCreated) +model_rebuild(SecretScanningLocation) +model_rebuild(SecretScanningLocationCommit) +model_rebuild(SecretScanningLocationWikiCommit) +model_rebuild(SecretScanningLocationIssueTitle) +model_rebuild(SecretScanningLocationIssueBody) +model_rebuild(SecretScanningLocationIssueComment) +model_rebuild(SecretScanningLocationDiscussionTitle) +model_rebuild(SecretScanningLocationDiscussionBody) +model_rebuild(SecretScanningLocationDiscussionComment) +model_rebuild(SecretScanningLocationPullRequestTitle) +model_rebuild(SecretScanningLocationPullRequestBody) +model_rebuild(SecretScanningLocationPullRequestComment) +model_rebuild(SecretScanningLocationPullRequestReview) +model_rebuild(SecretScanningLocationPullRequestReviewComment) -__all__ = ("WebhookSecurityAndAnalysis",) +__all__ = ( + "WebhookSecretScanningAlertLocationCreated", + "SecretScanningLocation", + "SecretScanningLocationCommit", + "SecretScanningLocationWikiCommit", + "SecretScanningLocationIssueTitle", + "SecretScanningLocationIssueBody", + "SecretScanningLocationIssueComment", + "SecretScanningLocationDiscussionTitle", + "SecretScanningLocationDiscussionBody", + "SecretScanningLocationDiscussionComment", + "SecretScanningLocationPullRequestTitle", + "SecretScanningLocationPullRequestBody", + "SecretScanningLocationPullRequestComment", + "SecretScanningLocationPullRequestReview", + "SecretScanningLocationPullRequestReviewComment", +) 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 fc87c140a..875448bf5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0750.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0750.py @@ -11,21 +11,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0751 import WebhookSecurityAndAnalysisPropChangesPropFrom +class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): + """Secret Scanning Alert Location Created Event""" -class WebhookSecurityAndAnalysisPropChanges(GitHubModel): - """WebhookSecurityAndAnalysisPropChanges""" - - from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( - default=UNSET, alias="from" + payload: str = Field( + description="A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookSecurityAndAnalysisPropChanges) +model_rebuild(WebhookSecretScanningAlertLocationCreatedFormEncoded) -__all__ = ("WebhookSecurityAndAnalysisPropChanges",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) 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 815f5eb4f..55fb5bc07 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 Union +from typing import Literal from pydantic import Field @@ -17,17 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0078 import SecurityAndAnalysis +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0455 import SecretScanningAlertWebhook -class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" +class WebhookSecretScanningAlertReopened(GitHubModel): + """secret_scanning_alert reopened event""" - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET + action: Literal["reopened"] = Field() + alert: SecretScanningAlertWebhook = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookSecurityAndAnalysisPropChangesPropFrom) +model_rebuild(WebhookSecretScanningAlertReopened) -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) +__all__ = ("WebhookSecretScanningAlertReopened",) 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 92c89e7d8..e37fab3d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0752.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0752.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0452 import WebhooksSponsorship -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0455 import SecretScanningAlertWebhook -class WebhookSponsorshipCancelled(GitHubModel): - """sponsorship cancelled event""" +class WebhookSecretScanningAlertResolved(GitHubModel): + """secret_scanning_alert resolved event""" - action: Literal["cancelled"] = Field() + action: Literal["resolved"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +45,17 @@ class WebhookSponsorshipCancelled(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` 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: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipCancelled) +model_rebuild(WebhookSecretScanningAlertResolved) -__all__ = ("WebhookSponsorshipCancelled",) +__all__ = ("WebhookSecretScanningAlertResolved",) 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 c1fe4c0ad..31d5cb884 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0753.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0753.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0452 import WebhooksSponsorship -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0455 import SecretScanningAlertWebhook -class WebhookSponsorshipCreated(GitHubModel): - """sponsorship created event""" +class WebhookSecretScanningAlertValidated(GitHubModel): + """secret_scanning_alert validated event""" - action: Literal["created"] = Field() + action: Literal["validated"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +45,17 @@ class WebhookSponsorshipCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` 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: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipCreated) +model_rebuild(WebhookSecretScanningAlertValidated) -__all__ = ("WebhookSponsorshipCreated",) +__all__ = ("WebhookSecretScanningAlertValidated",) 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 1a2ce91ac..fe4f522ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0754.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0754.py @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0452 import WebhooksSponsorship -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0456 import WebhooksSecurityAdvisory +from .group_0408 import OrganizationSimpleWebhooks -class WebhookSponsorshipEdited(GitHubModel): - """sponsorship edited event""" +class WebhookSecurityAdvisoryPublished(GitHubModel): + """security_advisory published event""" - action: Literal["edited"] = Field() - changes: WebhookSponsorshipEditedPropChanges = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,36 +49,16 @@ class WebhookSponsorshipEdited(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + security_advisory: WebhooksSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - 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(WebhookSecurityAdvisoryPublished) -__all__ = ( - "WebhookSponsorshipEdited", - "WebhookSponsorshipEditedPropChanges", - "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", -) +__all__ = ("WebhookSecurityAdvisoryPublished",) 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 82ce768dd..bfe981697 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0755.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0755.py @@ -17,22 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0452 import WebhooksSponsorship -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0456 import WebhooksSecurityAdvisory +from .group_0408 import OrganizationSimpleWebhooks -class WebhookSponsorshipPendingCancellation(GitHubModel): - """sponsorship pending_cancellation event""" +class WebhookSecurityAdvisoryUpdated(GitHubModel): + """security_advisory updated event""" - action: Literal["pending_cancellation"] = Field() - effective_date: Missing[str] = Field( - default=UNSET, - description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", - ) + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,13 +49,16 @@ class WebhookSponsorshipPendingCancellation(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: SimpleUserWebhooks = Field( + security_advisory: WebhooksSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipPendingCancellation) +model_rebuild(WebhookSecurityAdvisoryUpdated) -__all__ = ("WebhookSponsorshipPendingCancellation",) +__all__ = ("WebhookSecurityAdvisoryUpdated",) 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 d5a8f224e..1eafd01f8 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 +from typing import List, Union, Literal from pydantic import Field @@ -17,24 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0453 import WebhooksChanges8 -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0452 import WebhooksSponsorship -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookSponsorshipPendingTierChange(GitHubModel): - """sponsorship pending_tier_change event""" +class WebhookSecurityAdvisoryWithdrawn(GitHubModel): + """security_advisory withdrawn event""" - action: Literal["pending_tier_change"] = Field() - changes: WebhooksChanges8 = Field() - effective_date: Missing[str] = Field( - default=UNSET, - description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", - ) + action: Literal["withdrawn"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -55,13 +48,135 @@ class WebhookSponsorshipPendingTierChange(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: SimpleUserWebhooks = Field( + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipPendingTierChange) +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss = Field() + 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__ = ("WebhookSponsorshipPendingTierChange",) +__all__ = ( + "WebhookSecurityAdvisoryWithdrawn", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", +) 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 2a3d91cef..643bc8717 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0757.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0757.py @@ -9,28 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0453 import WebhooksChanges8 -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0452 import WebhooksSponsorship -from .group_0404 import OrganizationSimpleWebhooks +from .group_0123 import FullRepository +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks +from .group_0758 import WebhookSecurityAndAnalysisPropChanges -class WebhookSponsorshipTierChanged(GitHubModel): - """sponsorship tier_changed event""" +class WebhookSecurityAndAnalysis(GitHubModel): + """security_and_analysis event""" - action: Literal["tier_changed"] = Field() - changes: WebhooksChanges8 = Field() + changes: WebhookSecurityAndAnalysisPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -46,18 +42,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, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: FullRepository = Field( + title="Full Repository", description="Full Repository" ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipTierChanged) +model_rebuild(WebhookSecurityAndAnalysis) -__all__ = ("WebhookSponsorshipTierChanged",) +__all__ = ("WebhookSecurityAndAnalysis",) 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 5bf927cf0..637469ee9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0758.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0758.py @@ -9,53 +9,23 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0759 import WebhookSecurityAndAnalysisPropChangesPropFrom -class WebhookStarCreated(GitHubModel): - """star created event""" +class WebhookSecurityAndAnalysisPropChanges(GitHubModel): + """WebhookSecurityAndAnalysisPropChanges""" - 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)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - 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." + from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( + default=UNSET, alias="from" ) -model_rebuild(WebhookStarCreated) +model_rebuild(WebhookSecurityAndAnalysisPropChanges) -__all__ = ("WebhookStarCreated",) +__all__ = ("WebhookSecurityAndAnalysisPropChanges",) 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 97140c86e..4c17bab79 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0759.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0759.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,45 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0081 import SecurityAndAnalysis -class WebhookStarDeleted(GitHubModel): - """star deleted event""" +class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - 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)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - 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." + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET ) -model_rebuild(WebhookStarDeleted) +model_rebuild(WebhookSecurityAndAnalysisPropChangesPropFrom) -__all__ = ("WebhookStarDeleted",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) 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 5bc435ddc..d7f048c99 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0760.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0760.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,44 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0457 import WebhooksSponsorship +from .group_0408 import OrganizationSimpleWebhooks -class WebhookStatus(GitHubModel): - """status event""" +class WebhookSponsorshipCancelled(GitHubModel): + """sponsorship cancelled event""" - avatar_url: Missing[Union[str, None]] = Field(default=UNSET) - branches: List[WebhookStatusPropBranchesItems] = Field( - description="An array of branch objects containing the status' SHA. Each branch contains the given SHA, but the SHA may or may not be the head of the branch. The array includes a maximum of 10 branches." - ) - commit: WebhookStatusPropCommit = Field() - context: str = Field() - created_at: str = Field() - description: Union[str, None] = Field( - description="The optional human-readable description added to the status." - ) + action: Literal["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)."\n', ) - id: int = Field(description="The unique identifier of the status.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - name: str = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -63,191 +53,9 @@ class WebhookStatus(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - 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() + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookStatus) -model_rebuild(WebhookStatusPropBranchesItems) -model_rebuild(WebhookStatusPropBranchesItemsPropCommit) -model_rebuild(WebhookStatusPropCommit) -model_rebuild(WebhookStatusPropCommitPropAuthor) -model_rebuild(WebhookStatusPropCommitPropCommitter) -model_rebuild(WebhookStatusPropCommitPropParentsItems) -model_rebuild(WebhookStatusPropCommitPropCommit) -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthor) -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitter) -model_rebuild(WebhookStatusPropCommitPropCommitPropTree) -model_rebuild(WebhookStatusPropCommitPropCommitPropVerification) +model_rebuild(WebhookSponsorshipCancelled) -__all__ = ( - "WebhookStatus", - "WebhookStatusPropBranchesItems", - "WebhookStatusPropBranchesItemsPropCommit", - "WebhookStatusPropCommit", - "WebhookStatusPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommitter", - "WebhookStatusPropCommitPropParentsItems", - "WebhookStatusPropCommitPropCommit", - "WebhookStatusPropCommitPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommitPropCommitter", - "WebhookStatusPropCommitPropCommitPropTree", - "WebhookStatusPropCommitPropCommitPropVerification", -) +__all__ = ("WebhookSponsorshipCancelled",) 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 0c6cb9758..fba134c3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0761.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0761.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Literal from pydantic import Field @@ -18,19 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof0) - -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0457 import WebhooksSponsorship +from .group_0408 import OrganizationSimpleWebhooks + + +class WebhookSponsorshipCreated(GitHubModel): + """sponsorship 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)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + sponsorship: WebhooksSponsorship = Field() + + +model_rebuild(WebhookSponsorshipCreated) + +__all__ = ("WebhookSponsorshipCreated",) 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 bae400dac..a1bad9b18 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0762.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0762.py @@ -9,21 +9,77 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0457 import WebhooksSponsorship +from .group_0408 import OrganizationSimpleWebhooks + + +class WebhookSponsorshipEdited(GitHubModel): + """sponsorship edited event""" + + action: Literal["edited"] = Field() + changes: WebhookSponsorshipEditedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + sponsorship: WebhooksSponsorship = Field() + + +class WebhookSponsorshipEditedPropChanges(GitHubModel): + """WebhookSponsorshipEditedPropChanges""" + + privacy_level: Missing[WebhookSponsorshipEditedPropChangesPropPrivacyLevel] = Field( + default=UNSET + ) + -class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" +class WebhookSponsorshipEditedPropChangesPropPrivacyLevel(GitHubModel): + """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) + 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(WebhookStatusPropCommitPropCommitPropAuthorAllof1) +model_rebuild(WebhookSponsorshipEdited) +model_rebuild(WebhookSponsorshipEditedPropChanges) +model_rebuild(WebhookSponsorshipEditedPropChangesPropPrivacyLevel) -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) +__all__ = ( + "WebhookSponsorshipEdited", + "WebhookSponsorshipEditedPropChanges", + "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", +) 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 16064411f..df0cf692d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0763.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0763.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Literal from pydantic import Field @@ -18,19 +17,49 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0457 import WebhooksSponsorship +from .group_0408 import OrganizationSimpleWebhooks -class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookSponsorshipPendingCancellation(GitHubModel): + """sponsorship pending_cancellation event""" - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + action: Literal["pending_cancellation"] = Field() + effective_date: Missing[str] = Field( + default=UNSET, + description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) +model_rebuild(WebhookSponsorshipPendingCancellation) -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) +__all__ = ("WebhookSponsorshipPendingCancellation",) 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 01ba88f8b..353b46e92 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0764.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0764.py @@ -9,21 +9,59 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0458 import WebhooksChanges8 +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0457 import WebhooksSponsorship +from .group_0408 import OrganizationSimpleWebhooks + -class WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" +class WebhookSponsorshipPendingTierChange(GitHubModel): + """sponsorship pending_tier_change event""" - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) + action: Literal["pending_tier_change"] = Field() + changes: WebhooksChanges8 = Field() + effective_date: Missing[str] = Field( + default=UNSET, + description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) +model_rebuild(WebhookSponsorshipPendingTierChange) -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) +__all__ = ("WebhookSponsorshipPendingTierChange",) 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 61959488b..d8a073125 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0765.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0765.py @@ -9,23 +9,28 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0454 import WebhooksTeam1 -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0458 import WebhooksChanges8 +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0457 import WebhooksSponsorship +from .group_0408 import OrganizationSimpleWebhooks -class WebhookTeamAdd(GitHubModel): - """team_add event""" +class WebhookSponsorshipTierChanged(GitHubModel): + """sponsorship tier_changed event""" + action: Literal["tier_changed"] = Field() + changes: WebhooksChanges8 = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,7 +46,8 @@ class WebhookTeamAdd(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when 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.", ) @@ -49,12 +55,9 @@ class WebhookTeamAdd(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookTeamAdd) +model_rebuild(WebhookSponsorshipTierChanged) -__all__ = ("WebhookTeamAdd",) +__all__ = ("WebhookSponsorshipTierChanged",) 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 c9c44ccf9..5e191326c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0766.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0766.py @@ -9,26 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0454 import WebhooksTeam1 -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookTeamAddedToRepository(GitHubModel): - """team added_to_repository event""" +class WebhookStarCreated(GitHubModel): + """star created event""" - action: Literal["added_to_repository"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,221 +38,24 @@ class WebhookTeamAddedToRepository(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamAddedToRepositoryPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" + repository: RepositoryWebhooks = Field( + title="Repository", + description="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[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." + 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." ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = 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) - - -class WebhookTeamAddedToRepositoryPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookTeamAddedToRepository) -model_rebuild(WebhookTeamAddedToRepositoryPropRepository) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropLicense) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropOwner) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropPermissions) +model_rebuild(WebhookStarCreated) -__all__ = ( - "WebhookTeamAddedToRepository", - "WebhookTeamAddedToRepositoryPropRepository", - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", -) +__all__ = ("WebhookStarCreated",) 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 ff24b3721..3c928210b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0767.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0767.py @@ -9,26 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0454 import WebhooksTeam1 -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookTeamCreated(GitHubModel): - """team created event""" +class WebhookStarDeleted(GitHubModel): + """star deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,218 +38,24 @@ class WebhookTeamCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamCreatedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamCreatedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamCreatedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." + 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." ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamCreatedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamCreatedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamCreatedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamCreatedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookTeamCreated) -model_rebuild(WebhookTeamCreatedPropRepository) -model_rebuild(WebhookTeamCreatedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamCreatedPropRepositoryPropLicense) -model_rebuild(WebhookTeamCreatedPropRepositoryPropOwner) -model_rebuild(WebhookTeamCreatedPropRepositoryPropPermissions) +model_rebuild(WebhookStarDeleted) -__all__ = ( - "WebhookTeamCreated", - "WebhookTeamCreatedPropRepository", - "WebhookTeamCreatedPropRepositoryPropCustomProperties", - "WebhookTeamCreatedPropRepositoryPropLicense", - "WebhookTeamCreatedPropRepositoryPropOwner", - "WebhookTeamCreatedPropRepositoryPropPermissions", -) +__all__ = ("WebhookStarDeleted",) 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 7fefa4b33..b81f2c506 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0768.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0768.py @@ -16,195 +16,119 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0454 import WebhooksTeam1 -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookTeamDeleted(GitHubModel): - """team 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)."\n', ) + 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)."', ) - organization: OrganizationSimpleWebhooks = Field( + name: str = Field() + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamDeletedPropRepository] = 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: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", + 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 WebhookTeamDeletedPropRepository(GitHubModel): - """Repository +class WebhookStatusPropBranchesItems(GitHubModel): + """WebhookStatusPropBranchesItems""" - A git repository - """ + commit: WebhookStatusPropBranchesItemsPropCommit = Field() + name: str = Field() + protected: bool = 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() + +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() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamDeletedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() + commit: WebhookStatusPropCommitPropCommit = Field() + committer: Union[WebhookStatusPropCommitPropCommitter, None] = Field(title="User") html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamDeletedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamDeletedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() + parents: List[WebhookStatusPropCommitPropParentsItems] = Field() + sha: str = Field() url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() -class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamDeletedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): - """License""" +class WebhookStatusPropCommitPropAuthor(GitHubModel): + """User""" - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: 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 WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): +class WebhookStatusPropCommitPropCommitter(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -216,8 +140,8 @@ class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + 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) @@ -230,28 +154,100 @@ class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamDeletedPropRepositoryPropPermissions""" +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() + - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) +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() -model_rebuild(WebhookTeamDeleted) -model_rebuild(WebhookTeamDeletedPropRepository) -model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) -model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) -model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) +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() + + +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__ = ( - "WebhookTeamDeleted", - "WebhookTeamDeletedPropRepository", - "WebhookTeamDeletedPropRepositoryPropCustomProperties", - "WebhookTeamDeletedPropRepositoryPropLicense", - "WebhookTeamDeletedPropRepositoryPropOwner", - "WebhookTeamDeletedPropRepositoryPropPermissions", + "WebhookStatus", + "WebhookStatusPropBranchesItems", + "WebhookStatusPropBranchesItemsPropCommit", + "WebhookStatusPropCommit", + "WebhookStatusPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommitter", + "WebhookStatusPropCommitPropParentsItems", + "WebhookStatusPropCommitPropCommit", + "WebhookStatusPropCommitPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommitPropCommitter", + "WebhookStatusPropCommitPropCommitPropTree", + "WebhookStatusPropCommitPropCommitPropVerification", ) 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 060b51557..0c6cb9758 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0769.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0769.py @@ -9,353 +9,28 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0454 import WebhooksTeam1 -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): + """Committer -class WebhookTeamEdited(GitHubModel): - """team edited event""" - - action: Literal["edited"] = Field() - changes: WebhookTeamEditedPropChanges = Field( - description="The changes to the team if the action was `edited`." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[WebhookTeamEditedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamEditedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamEditedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamEditedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamEditedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamEditedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamEditedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookTeamEditedPropChanges(GitHubModel): - """WebhookTeamEditedPropChanges - - The changes to the team if the action was `edited`. + Metaproperties for Git author/committer information. """ - 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`.", - ) + 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(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(WebhookStatusPropCommitPropCommitPropAuthorAllof0) -__all__ = ( - "WebhookTeamEdited", - "WebhookTeamEditedPropRepository", - "WebhookTeamEditedPropRepositoryPropCustomProperties", - "WebhookTeamEditedPropRepositoryPropLicense", - "WebhookTeamEditedPropRepositoryPropOwner", - "WebhookTeamEditedPropRepositoryPropPermissions", - "WebhookTeamEditedPropChanges", - "WebhookTeamEditedPropChangesPropDescription", - "WebhookTeamEditedPropChangesPropName", - "WebhookTeamEditedPropChangesPropPrivacy", - "WebhookTeamEditedPropChangesPropNotificationSetting", - "WebhookTeamEditedPropChangesPropRepository", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) 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 693347fc5..bae400dac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0770.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0770.py @@ -9,252 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - -from .group_0454 import WebhooksTeam1 -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks - - -class WebhookTeamRemovedFromRepository(GitHubModel): - """team removed_from_repository event""" - - action: Literal["removed_from_repository"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - 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() +from githubkit.compat import GitHubModel, model_rebuild -class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties +class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" - The 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() + date: str = Field() + email: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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(WebhookStatusPropCommitPropCommitPropAuthorAllof1) -__all__ = ( - "WebhookTeamRemovedFromRepository", - "WebhookTeamRemovedFromRepositoryPropRepository", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) 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 4d6211d87..16064411f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0771.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0771.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from typing import Union +from datetime import datetime from pydantic import Field @@ -17,42 +18,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks - - -class WebhookWatchStarted(GitHubModel): - """watch started event""" - - action: Literal["started"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookWatchStarted) - -__all__ = ("WebhookWatchStarted",) + +class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) + +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0772.py b/githubkit/versions/ghec_v2022_11_28/models/group_0772.py index 33135d4bc..01ba88f8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0772.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0772.py @@ -9,60 +9,21 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks - - -class WebhookWorkflowDispatch(GitHubModel): - """workflow_dispatch event""" +from githubkit.compat import GitHubModel, model_rebuild - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - workflow: str = Field() +class WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" -class WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): - """WebhookWorkflowDispatchPropInputs""" + date: str = Field() + email: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookWorkflowDispatch) -model_rebuild(WebhookWorkflowDispatchPropInputs) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) -__all__ = ( - "WebhookWorkflowDispatch", - "WebhookWorkflowDispatchPropInputs", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) 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 2afab23ee..cb50ab202 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0773.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0773.py @@ -9,26 +9,23 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0192 import Deployment -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0459 import WebhooksTeam1 +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookWorkflowJobCompleted(GitHubModel): - """workflow_job completed event""" +class WebhookTeamAdd(GitHubModel): + """team_add event""" - action: Literal["completed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -52,85 +49,12 @@ class WebhookWorkflowJobCompleted(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - 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""" - - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued"] = Field() -model_rebuild(WebhookWorkflowJobCompleted) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) +model_rebuild(WebhookTeamAdd) -__all__ = ( - "WebhookWorkflowJobCompleted", - "WebhookWorkflowJobCompletedPropWorkflowJob", - "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", -) +__all__ = ("WebhookTeamAdd",) 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 3bf8b5b8a..96912e71c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0774.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0774.py @@ -9,87 +9,251 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from .group_0459 import WebhooksTeam1 +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0(GitHubModel): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. +class WebhookTeamAddedToRepository(GitHubModel): + """team added_to_repository event""" + + action: Literal["added_to_repository"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamAddedToRepositoryPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): + """Repository + + A git repository """ - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], - ] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + 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.", ) - runner_id: Union[int, None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", ) - runner_name: Union[str, None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." ) - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: List[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems] = ( - Field() + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[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 WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel): - """Workflow Step""" +class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued"] = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) +model_rebuild(WebhookTeamAddedToRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", + "WebhookTeamAddedToRepository", + "WebhookTeamAddedToRepositoryPropRepository", + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", ) 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 b2813755e..7992f5b45 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0775.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0775.py @@ -9,69 +9,248 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" - - check_run_url: Missing[str] = Field(default=UNSET) - completed_at: Missing[str] = Field(default=UNSET) - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] = Field() - created_at: Missing[str] = Field( - default=UNSET, description="The time that the job created." - ) - head_sha: Missing[str] = Field(default=UNSET) +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + +from .group_0459 import WebhooksTeam1 +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks + + +class WebhookTeamCreated(GitHubModel): + """team created event""" + + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamCreatedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamCreatedPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamCreatedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamCreatedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamCreatedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamCreatedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[List[Union[str, None]]] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_id: Missing[int] = Field(default=UNSET) - run_url: Missing[str] = Field(default=UNSET) - runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) - runner_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_name: Missing[Union[str, None]] = Field(default=UNSET) - started_at: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the current branch." - ) - workflow_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow." - ) - steps: Missing[ - List[ - Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] - ] - ] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" +class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamCreatedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) +model_rebuild(WebhookTeamCreated) +model_rebuild(WebhookTeamCreatedPropRepository) +model_rebuild(WebhookTeamCreatedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamCreatedPropRepositoryPropLicense) +model_rebuild(WebhookTeamCreatedPropRepositoryPropOwner) +model_rebuild(WebhookTeamCreatedPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", + "WebhookTeamCreated", + "WebhookTeamCreatedPropRepository", + "WebhookTeamCreatedPropRepositoryPropCustomProperties", + "WebhookTeamCreatedPropRepositoryPropLicense", + "WebhookTeamCreatedPropRepositoryPropOwner", + "WebhookTeamCreatedPropRepositoryPropPermissions", ) 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 1938ffb66..1edba7007 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0776.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0776.py @@ -9,26 +9,26 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0192 import Deployment -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0459 import WebhooksTeam1 +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookWorkflowJobInProgress(GitHubModel): - """workflow_job in_progress event""" +class WebhookTeamDeleted(GitHubModel): + """team deleted event""" - action: Literal["in_progress"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,92 +39,219 @@ class WebhookWorkflowJobInProgress(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[WebhookTeamDeletedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - workflow_job: WebhookWorkflowJobInProgressPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", ) -class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJob""" +class WebhookTeamDeletedPropRepository(GitHubModel): + """Repository + + A git repository + """ - check_run_url: str = Field() - completed_at: Union[Union[str, None], None] = Field() - conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( - Field() + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[Union[int, None], None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) - runner_group_name: Union[Union[str, None], None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." ) - runner_id: Union[Union[int, None], None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." ) - 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`." + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamDeletedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", ) - 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`." + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - head_branch: Union[Union[str, None], None] = Field( - description="The name of the current branch." + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." ) - workflow_name: Union[Union[str, None], None] = Field( - description="The name of the workflow." + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." ) - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps] = Field() + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamDeletedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamDeletedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() -class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" +class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamDeletedPropRepositoryPropCustomProperties - completed_at: Union[Union[str, None], None] = Field() - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( - Field() - ) + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() name: str = Field() - number: int = Field() - started_at: Union[Union[str, None], None] = Field() - status: Literal["in_progress", "completed", "queued", "pending"] = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamDeletedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookWorkflowJobInProgress) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) +model_rebuild(WebhookTeamDeleted) +model_rebuild(WebhookTeamDeletedPropRepository) +model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) +model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) +model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowJobInProgress", - "WebhookWorkflowJobInProgressPropWorkflowJob", - "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", + "WebhookTeamDeleted", + "WebhookTeamDeletedPropRepository", + "WebhookTeamDeletedPropRepositoryPropCustomProperties", + "WebhookTeamDeletedPropRepositoryPropLicense", + "WebhookTeamDeletedPropRepositoryPropOwner", + "WebhookTeamDeletedPropRepositoryPropPermissions", ) 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 a2f6be754..71252e406 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0777.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0777.py @@ -9,78 +9,353 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from .group_0459 import WebhooksTeam1 +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. +class WebhookTeamEdited(GitHubModel): + """team edited event""" + + action: Literal["edited"] = Field() + changes: WebhookTeamEditedPropChanges = Field( + description="The changes to the team if the action was `edited`." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamEditedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamEditedPropRepository(GitHubModel): + """Repository + + A git repository """ - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] = ( - Field() + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamEditedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) ) - created_at: str = Field(description="The time that the job created.") - head_sha: str = 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() - labels: List[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamEditedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamEditedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamEditedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() name: str = Field() node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamEditedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookTeamEditedPropChanges(GitHubModel): + """WebhookTeamEditedPropChanges + + The changes to the team if the action was `edited`. + """ + + description: Missing[WebhookTeamEditedPropChangesPropDescription] = Field( + default=UNSET ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + name: Missing[WebhookTeamEditedPropChangesPropName] = Field(default=UNSET) + privacy: Missing[WebhookTeamEditedPropChangesPropPrivacy] = Field(default=UNSET) + notification_setting: Missing[ + WebhookTeamEditedPropChangesPropNotificationSetting + ] = Field(default=UNSET) + repository: Missing[WebhookTeamEditedPropChangesPropRepository] = Field( + default=UNSET ) - runner_id: Union[int, None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + + +class WebhookTeamEditedPropChangesPropDescription(GitHubModel): + """WebhookTeamEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", ) - runner_name: Union[str, None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + + +class WebhookTeamEditedPropChangesPropName(GitHubModel): + """WebhookTeamEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." + + +class WebhookTeamEditedPropChangesPropPrivacy(GitHubModel): + """WebhookTeamEditedPropChangesPropPrivacy""" + + from_: str = Field( + alias="from", + description="The previous version of the team's privacy if the action was `edited`.", ) - head_branch: Union[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() + + +class WebhookTeamEditedPropChangesPropNotificationSetting(GitHubModel): + """WebhookTeamEditedPropChangesPropNotificationSetting""" + + from_: str = Field( + alias="from", + description="The previous version of the team's notification setting if the action was `edited`.", ) - url: str = Field() -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): - """Workflow Step""" +class WebhookTeamEditedPropChangesPropRepository(GitHubModel): + """WebhookTeamEditedPropChangesPropRepository""" + + permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissions = Field() + - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() +class WebhookTeamEditedPropChangesPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" + + from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom = Field( + alias="from" + ) + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom(GitHubModel): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" + + admin: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `admin` permission on a repository, if the action was `edited`.", + ) + pull: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `pull` permission on a repository, if the action was `edited`.", + ) + push: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `push` permission on a repository, if the action was `edited`.", ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) +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__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", + "WebhookTeamEdited", + "WebhookTeamEditedPropRepository", + "WebhookTeamEditedPropRepositoryPropCustomProperties", + "WebhookTeamEditedPropRepositoryPropLicense", + "WebhookTeamEditedPropRepositoryPropOwner", + "WebhookTeamEditedPropRepositoryPropPermissions", + "WebhookTeamEditedPropChanges", + "WebhookTeamEditedPropChangesPropDescription", + "WebhookTeamEditedPropChangesPropName", + "WebhookTeamEditedPropChangesPropPrivacy", + "WebhookTeamEditedPropChangesPropNotificationSetting", + "WebhookTeamEditedPropChangesPropRepository", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", ) 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 c968cd99f..d064f3d59 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0778.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0778.py @@ -9,66 +9,252 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from .group_0459 import WebhooksTeam1 +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -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 WebhookTeamRemovedFromRepository(GitHubModel): + """team removed_from_repository event""" + + action: Literal["removed_from_repository"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + 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", ) - head_sha: Missing[str] = Field(default=UNSET) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, None] = ( + Field(alias="license", title="License") + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, None] = Field( + title="User" + ) + permissions: Missing[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[List[str]] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_id: Missing[int] = Field(default=UNSET) - run_url: Missing[str] = Field(default=UNSET) - runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) - runner_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_name: Missing[Union[str, None]] = Field(default=UNSET) - started_at: Missing[str] = Field(default=UNSET) - status: Literal["in_progress", "completed", "queued"] = Field() - head_branch: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the current branch." - ) - workflow_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow." - ) - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems] = ( - Field() - ) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """Workflow Step""" +class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" - completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "pending", "queued"] = Field() + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) +model_rebuild(WebhookTeamRemovedFromRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", + "WebhookTeamRemovedFromRepository", + "WebhookTeamRemovedFromRepositoryPropRepository", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", ) 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 aeaed566f..c7db3ac77 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0779.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0779.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,18 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0192 import Deployment -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookWorkflowJobQueued(GitHubModel): - """workflow_job queued event""" +class WebhookWatchStarted(GitHubModel): + """watch started event""" - action: Literal["queued"] = Field() + action: Literal["started"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,61 +51,8 @@ class WebhookWorkflowJobQueued(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - workflow_job: WebhookWorkflowJobQueuedPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobQueuedPropWorkflowJob""" - - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field() - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field() - runner_group_name: Union[str, None] = Field() - runner_id: Union[int, None] = Field() - runner_name: Union[str, None] = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "waiting"] = Field() - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: List[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems] = Field() - url: str = Field() - - -class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): - """Workflow Step""" - - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["completed", "in_progress", "queued", "pending"] = Field() -model_rebuild(WebhookWorkflowJobQueued) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) +model_rebuild(WebhookWatchStarted) -__all__ = ( - "WebhookWorkflowJobQueued", - "WebhookWorkflowJobQueuedPropWorkflowJob", - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", -) +__all__ = ("WebhookWatchStarted",) 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 bdecd1208..0e5a09ae2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0780.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0780.py @@ -9,32 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0192 import Deployment -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookWorkflowJobWaiting(GitHubModel): - """workflow_job waiting event""" +class WebhookWorkflowDispatch(GitHubModel): + """workflow_dispatch event""" - action: Literal["waiting"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) + inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -45,6 +43,7 @@ class WebhookWorkflowJobWaiting(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `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.", @@ -53,63 +52,17 @@ class WebhookWorkflowJobWaiting(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - 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: str = Field() -class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobWaitingPropWorkflowJob""" - - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field() - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field() - runner_group_name: Union[str, None] = Field() - runner_id: Union[int, None] = Field() - runner_name: Union[str, None] = Field() - started_at: datetime = Field() - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - status: Literal["queued", "in_progress", "completed", "waiting"] = Field() - steps: List[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems] = Field() - url: str = Field() - - -class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): - """Workflow Step""" - - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] = ( - Field() - ) +class WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): + """WebhookWorkflowDispatchPropInputs""" -model_rebuild(WebhookWorkflowJobWaiting) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) +model_rebuild(WebhookWorkflowDispatch) +model_rebuild(WebhookWorkflowDispatchPropInputs) __all__ = ( - "WebhookWorkflowJobWaiting", - "WebhookWorkflowJobWaitingPropWorkflowJob", - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", + "WebhookWorkflowDispatch", + "WebhookWorkflowDispatchPropInputs", ) 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 90065f3c0..8a5f7ea6f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0781.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0781.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,16 +17,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0413 import WebhooksWorkflow -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +from .group_0196 import Deployment +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class WebhookWorkflowRunCompleted(GitHubModel): - """workflow_run completed event""" +class WebhookWorkflowJobCompleted(GitHubModel): + """workflow_job completed event""" action: Literal["completed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( @@ -53,451 +52,85 @@ class WebhookWorkflowRunCompleted(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field( - title="Workflow Run" + 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 WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): - """Workflow Run""" +class WebhookWorkflowJobCompletedPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJob""" - 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", - ], + check_run_url: str = Field() + completed_at: str = Field() + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") - ) + created_at: str = Field(description="The time that the job created.") head_sha: str = Field() html_url: str = Field() id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: List[ - Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, None] - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepository = Field( - title="Repository Lite" + labels: List[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' ) - rerun_url: str = Field() + name: str = Field() + node_id: str = Field() run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] = Field() - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - display_title: Missing[str] = Field( - default=UNSET, - description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow.", + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() + runner_name: Union[Union[str, None], None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() + started_at: str = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." ) - id: float = Field() - number: float = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" + head_branch: Union[Union[str, None], None] = Field( + description="The name of the current branch." ) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() + workflow_name: Union[Union[str, None], None] = Field( + description="The name of the workflow." + ) + steps: List[WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps] = Field() url: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" - ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() ) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() name: str = Field() - url: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "queued"] = Field() -model_rebuild(WebhookWorkflowRunCompleted) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRun) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookWorkflowJobCompleted) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) __all__ = ( - "WebhookWorkflowRunCompleted", - "WebhookWorkflowRunCompletedPropWorkflowRun", - "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookWorkflowJobCompleted", + "WebhookWorkflowJobCompletedPropWorkflowJob", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ) 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 91a4eab7b..3bf8b5b8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0782.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0782.py @@ -9,489 +9,87 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0413 import WebhooksWorkflow -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0(GitHubModel): + """Workflow Job -class WebhookWorkflowRunInProgress(GitHubModel): - """workflow_run in_progress event""" - - action: Literal["in_progress"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field( - title="Workflow Run" - ) - - -class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): - """Workflow Run""" + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() + check_run_url: str = Field() + completed_at: Union[str, None] = Field() conclusion: Union[ None, Literal[ - "action_required", - "cancelled", + "success", "failure", - "neutral", "skipped", - "stale", - "success", + "cancelled", + "action_required", + "neutral", "timed_out", ], ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") - ) + created_at: str = Field(description="The time that the job created.") head_sha: str = Field() html_url: str = Field() id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: List[ - Union[WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, None] - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepository = Field( - title="Repository Lite" + labels: List[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' ) - rerun_url: str = Field() + name: str = Field() + node_id: str = Field() run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( - Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + runner_group_name: Union[str, None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - committer: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + runner_id: Union[int, None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: Union[str, None] = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() + runner_name: Union[str, None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + 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: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = ( + 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() ) - id: float = Field() - number: float = Field() url: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel): + """Workflow Step""" - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() ) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() name: str = Field() - url: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "queued"] = Field() -model_rebuild(WebhookWorkflowRunInProgress) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRun) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) __all__ = ( - "WebhookWorkflowRunInProgress", - "WebhookWorkflowRunInProgressPropWorkflowRun", - "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ) 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 238b26efd..b2813755e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0783.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0783.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,484 +17,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0413 import WebhooksWorkflow -from .group_0402 import EnterpriseWebhooks -from .group_0403 import SimpleInstallation -from .group_0405 import RepositoryWebhooks -from .group_0406 import SimpleUserWebhooks -from .group_0404 import OrganizationSimpleWebhooks +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" -class WebhookWorkflowRunRequested(GitHubModel): - """workflow_run requested event""" - - action: Literal["requested"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - 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", - ], + check_run_url: Missing[str] = Field(default=UNSET) + completed_at: Missing[str] = Field(default=UNSET) + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: 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) - - -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) - - -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.", - ) + created_at: Missing[str] = Field( + default=UNSET, description="The time that the job created." ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class 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) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + head_sha: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + id: Missing[int] = Field(default=UNSET) + labels: Missing[List[Union[str, None]]] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + run_attempt: Missing[int] = Field(default=UNSET) + run_id: Missing[int] = Field(default=UNSET) + run_url: Missing[str] = Field(default=UNSET) + runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) + runner_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_name: Missing[Union[str, None]] = Field(default=UNSET) + started_at: Missing[str] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + head_branch: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the current branch." + ) + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." + ) + steps: Missing[ + List[ + Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] + ] + ] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() - ) - id: float = Field() - number: float = 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""" +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" - id: int = Field() - name: str = Field() - url: str = Field() - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -model_rebuild(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(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) __all__ = ( - "WebhookWorkflowRunRequested", - "WebhookWorkflowRunRequestedPropWorkflowRun", - "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", ) 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 6c72ba99e..77eec53dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0784.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0784.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import List, Union, Literal from pydantic import Field @@ -18,39 +17,114 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0005 import IntegrationPropPermissions +from .group_0196 import Deployment +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class AppManifestsCodeConversionsPostResponse201(GitHubModel): - """AppManifestsCodeConversionsPostResponse201""" +class WebhookWorkflowJobInProgress(GitHubModel): + """workflow_job in_progress event""" - id: int = Field(description="Unique identifier of the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + action: Literal["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)."\n', ) - node_id: str = Field() - owner: Union[None, SimpleUser] = Field() - name: str = Field(description="The name of the GitHub app") - description: Union[str, None] = Field() - external_url: str = Field() - html_url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - permissions: IntegrationPropPermissions = Field( - description="The set of permissions for the GitHub app" + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - events: List[str] = Field(description="The list of events for the GitHub app") - installations_count: Missing[int] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="The number of installations associated with the GitHub app", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + workflow_job: WebhookWorkflowJobInProgressPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + + +class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( + Field() + ) + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: List[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/enterprise-cloud@latest//actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + ) + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_name: Union[Union[str, None], None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + started_at: str = Field() + status: Literal["queued", "in_progress", "completed"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." + ) + head_branch: Union[Union[str, None], None] = Field( + description="The name of the current branch." + ) + workflow_name: Union[Union[str, None], None] = Field( + description="The name of the workflow." + ) + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps] = Field() + url: str = Field() + + +class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" + + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( + Field() ) - client_id: str = Field() - client_secret: str = Field() - webhook_secret: Union[Union[str, None], None] = Field() - pem: str = Field() + name: str = Field() + number: int = Field() + started_at: Union[Union[str, None], None] = Field() + status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(AppManifestsCodeConversionsPostResponse201) +model_rebuild(WebhookWorkflowJobInProgress) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) -__all__ = ("AppManifestsCodeConversionsPostResponse201",) +__all__ = ( + "WebhookWorkflowJobInProgress", + "WebhookWorkflowJobInProgressPropWorkflowJob", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", +) 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 d16ddbf37..a2f6be754 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0785.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0785.py @@ -9,22 +9,78 @@ from __future__ import annotations -from typing import Union +from typing import List, Union, Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class AppManifestsCodeConversionsPostResponse201Allof1(ExtraGitHubModel): - """AppManifestsCodeConversionsPostResponse201Allof1""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): + """Workflow Job - client_id: str = Field() - client_secret: str = Field() - webhook_secret: Union[str, None] = Field() - pem: str = Field() + 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`." + ) + runner_name: Union[str, None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + started_at: str = Field() + status: Literal["queued", "in_progress", "completed"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." + ) + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems] = ( + Field() + ) + url: str = Field() -model_rebuild(AppManifestsCodeConversionsPostResponse201Allof1) -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "queued", "pending"] = Field() + + +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) + +__all__ = ( + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", +) 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 1cc1f6139..c968cd99f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0786.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0786.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import List, Union, Literal from pydantic import Field @@ -18,23 +18,57 @@ from githubkit.compat import GitHubModel, model_rebuild -class AppHookConfigPatchBody(GitHubModel): - """AppHookConfigPatchBody""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + 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." ) - 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`.", + 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." ) - 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).", + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems] = ( + Field() + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "pending", "queued"] = Field() -model_rebuild(AppHookConfigPatchBody) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) -__all__ = ("AppHookConfigPatchBody",) +__all__ = ( + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", +) 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 406984575..970edd9a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0787.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0787.py @@ -9,13 +9,105 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0196 import Deployment +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks + + +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)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + workflow_job: WebhookWorkflowJobQueuedPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + + +class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobQueuedPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: List[str] = Field() + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field() + runner_group_name: Union[str, None] = Field() + runner_id: Union[int, None] = Field() + runner_name: Union[str, None] = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + steps: List[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems] = Field() + url: str = Field() + + +class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): + """Workflow Step""" -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["completed", "in_progress", "queued", "pending"] = Field() -model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) +model_rebuild(WebhookWorkflowJobQueued) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) +__all__ = ( + "WebhookWorkflowJobQueued", + "WebhookWorkflowJobQueuedPropWorkflowJob", + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", +) 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 dc85ce165..8e82f0c56 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0788.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0788.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,27 +18,98 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0014 import AppPermissions +from .group_0196 import Deployment +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks -class AppInstallationsInstallationIdAccessTokensPostBody(GitHubModel): - """AppInstallationsInstallationIdAccessTokensPostBody""" +class WebhookWorkflowJobWaiting(GitHubModel): + """workflow_job waiting event""" - repositories: Missing[List[str]] = Field( + action: Literal["waiting"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="List of repository names that the token should have access to", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', ) - repository_ids: Missing[List[int]] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="List of repository IDs that the token should have access to", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - permissions: Missing[AppPermissions] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="App Permissions", - description="The permissions granted to the user access token.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + workflow_job: WebhookWorkflowJobWaitingPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + + +class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobWaitingPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: List[str] = Field() + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field() + runner_group_name: Union[str, None] = Field() + runner_id: Union[int, None] = Field() + runner_name: Union[str, None] = Field() + started_at: datetime = Field() + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + steps: List[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems] = Field() + url: str = Field() + + +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["completed", "in_progress", "queued", "pending", "waiting"] = ( + Field() ) -model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) +model_rebuild(WebhookWorkflowJobWaiting) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) +__all__ = ( + "WebhookWorkflowJobWaiting", + "WebhookWorkflowJobWaitingPropWorkflowJob", + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", +) 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 33e9e3dcc..b3239ac0d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0789.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0789.py @@ -9,19 +9,495 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0417 import WebhooksWorkflow +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks + + +class WebhookWorkflowRunCompleted(GitHubModel): + """workflow_run completed event""" + + action: Literal["completed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: List[ + Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, None] + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] = Field() + triggering_actor: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + display_title: Missing[str] = Field( + default=UNSET, + description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow.", + ) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +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 -class ApplicationsClientIdGrantDeleteBody(GitHubModel): - """ApplicationsClientIdGrantDeleteBody""" + Metaproperties for Git author/committer information. + """ - access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() ) + id: float = Field() + number: float = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(ApplicationsClientIdGrantDeleteBody) +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__ = ("ApplicationsClientIdGrantDeleteBody",) +__all__ = ( + "WebhookWorkflowRunCompleted", + "WebhookWorkflowRunCompletedPropWorkflowRun", + "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", +) 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 13773092a..f05a016c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0790.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0790.py @@ -9,19 +9,489 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0417 import WebhooksWorkflow +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks + + +class WebhookWorkflowRunInProgress(GitHubModel): + """workflow_run in_progress event""" + + action: Literal["in_progress"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: List[ + Union[WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, None] + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( + Field() + ) + triggering_actor: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer -class ApplicationsClientIdTokenPostBody(GitHubModel): - """ApplicationsClientIdTokenPostBody""" + Metaproperties for Git author/committer information. + """ - access_token: str = Field( - description="The access_token of the OAuth or GitHub application." + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: Union[str, None] = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() ) + id: float = Field() + number: float = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(ApplicationsClientIdTokenPostBody) +model_rebuild(WebhookWorkflowRunInProgress) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRun) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("ApplicationsClientIdTokenPostBody",) +__all__ = ( + "WebhookWorkflowRunInProgress", + "WebhookWorkflowRunInProgressPropWorkflowRun", + "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", +) 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 585475cf4..2e99597a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0791.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0791.py @@ -9,19 +9,493 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0417 import WebhooksWorkflow +from .group_0406 import EnterpriseWebhooks +from .group_0407 import SimpleInstallation +from .group_0409 import RepositoryWebhooks +from .group_0410 import SimpleUserWebhooks +from .group_0408 import OrganizationSimpleWebhooks + + +class WebhookWorkflowRunRequested(GitHubModel): + """workflow_run requested event""" + + action: Literal["requested"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/enterprise-cloud@latest//admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + 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) + + +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) -class ApplicationsClientIdTokenDeleteBody(GitHubModel): - """ApplicationsClientIdTokenDeleteBody""" - access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." +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) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: float = Field() + number: float = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(ApplicationsClientIdTokenDeleteBody) +model_rebuild(WebhookWorkflowRunRequested) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRun) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("ApplicationsClientIdTokenDeleteBody",) +__all__ = ( + "WebhookWorkflowRunRequested", + "WebhookWorkflowRunRequestedPropWorkflowRun", + "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepository", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", +) 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 a2c5766c1..6c72ba99e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0792.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0792.py @@ -9,19 +9,48 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0005 import IntegrationPropPermissions + -class ApplicationsClientIdTokenPatchBody(GitHubModel): - """ApplicationsClientIdTokenPatchBody""" +class AppManifestsCodeConversionsPostResponse201(GitHubModel): + """AppManifestsCodeConversionsPostResponse201""" - access_token: str = Field( - description="The access_token of the OAuth or GitHub application." + id: int = Field(description="Unique identifier of the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + node_id: str = Field() + owner: Union[None, SimpleUser] = Field() + name: str = Field(description="The name of the GitHub app") + description: Union[str, None] = Field() + external_url: str = Field() + html_url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + permissions: IntegrationPropPermissions = Field( + description="The set of permissions for the GitHub app" + ) + events: List[str] = Field(description="The list of events for the GitHub app") + installations_count: Missing[int] = Field( + default=UNSET, + description="The number of installations associated with the GitHub app", ) + client_id: str = Field() + client_secret: str = Field() + webhook_secret: Union[Union[str, None], None] = Field() + pem: str = Field() -model_rebuild(ApplicationsClientIdTokenPatchBody) +model_rebuild(AppManifestsCodeConversionsPostResponse201) -__all__ = ("ApplicationsClientIdTokenPatchBody",) +__all__ = ("AppManifestsCodeConversionsPostResponse201",) 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 1d891acfc..d16ddbf37 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0793.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0793.py @@ -9,46 +9,22 @@ from __future__ import annotations -from typing import List +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0014 import AppPermissions - - -class ApplicationsClientIdTokenScopedPostBody(GitHubModel): - """ApplicationsClientIdTokenScopedPostBody""" - - access_token: str = Field( - description="The access token used to authenticate to the GitHub API." - ) - target: Missing[str] = Field( - default=UNSET, - description="The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified.", - ) - target_id: Missing[int] = Field( - default=UNSET, - description="The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified.", - ) - repositories: Missing[List[str]] = Field( - default=UNSET, - description="The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified.", - ) - repository_ids: Missing[List[int]] = Field( - default=UNSET, - description="The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified.", - ) - permissions: Missing[AppPermissions] = Field( - default=UNSET, - title="App Permissions", - description="The permissions granted to the user access token.", - ) - - -model_rebuild(ApplicationsClientIdTokenScopedPostBody) - -__all__ = ("ApplicationsClientIdTokenScopedPostBody",) +from githubkit.compat import ExtraGitHubModel, model_rebuild + + +class AppManifestsCodeConversionsPostResponse201Allof1(ExtraGitHubModel): + """AppManifestsCodeConversionsPostResponse201Allof1""" + + client_id: str = Field() + client_secret: str = Field() + webhook_secret: Union[str, None] = Field() + pem: str = Field() + + +model_rebuild(AppManifestsCodeConversionsPostResponse201Allof1) + +__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) 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 152fcb757..1cc1f6139 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0794.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0794.py @@ -9,13 +9,32 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from typing import Union +from pydantic import Field -class EmojisGetResponse200(ExtraGitHubModel): - """EmojisGetResponse200""" +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild -model_rebuild(EmojisGetResponse200) +class AppHookConfigPatchBody(GitHubModel): + """AppHookConfigPatchBody""" -__all__ = ("EmojisGetResponse200",) + 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(AppHookConfigPatchBody) + +__all__ = ("AppHookConfigPatchBody",) 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 d184764f7..406984575 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0795.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0795.py @@ -9,27 +9,13 @@ from __future__ import annotations -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsPermissionsPutBody(GitHubModel): - """EnterprisesEnterpriseActionsPermissionsPutBody""" - - 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.", - ) +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" -model_rebuild(EnterprisesEnterpriseActionsPermissionsPutBody) +model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) -__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBody",) +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) 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 48667f780..dc85ce165 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0796.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0796.py @@ -13,18 +13,31 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0029 import OrganizationSimple +from .group_0014 import AppPermissions -class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" +class AppInstallationsInstallationIdAccessTokensPostBody(GitHubModel): + """AppInstallationsInstallationIdAccessTokensPostBody""" - total_count: float = Field() - organizations: List[OrganizationSimple] = Field() + 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(EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200) +model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200",) +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) 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 f30d03dfc..33e9e3dcc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0797.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0797.py @@ -9,21 +9,19 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody(GitHubModel): - """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" +class ApplicationsClientIdGrantDeleteBody(GitHubModel): + """ApplicationsClientIdGrantDeleteBody""" - selected_organization_ids: List[int] = Field( - description="List of organization IDs to enable for GitHub Actions." + access_token: str = Field( + description="The OAuth access token used to authenticate to the GitHub API." ) -model_rebuild(EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody) +model_rebuild(ApplicationsClientIdGrantDeleteBody) -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",) +__all__ = ("ApplicationsClientIdGrantDeleteBody",) 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 f40988008..13773092a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0798.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0798.py @@ -9,50 +9,19 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" - - total_count: float = Field() - runner_groups: List[RunnerGroupsEnterprise] = Field() - +class ApplicationsClientIdTokenPostBody(GitHubModel): + """ApplicationsClientIdTokenPostBody""" -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() - allows_public_repositories: bool = Field() - workflow_restrictions_read_only: Missing[bool] = Field( - default=UNSET, - description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[List[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + access_token: str = Field( + description="The access_token of the OAuth or GitHub application." ) -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsGetResponse200) -model_rebuild(RunnerGroupsEnterprise) +model_rebuild(ApplicationsClientIdTokenPostBody) -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200", - "RunnerGroupsEnterprise", -) +__all__ = ("ApplicationsClientIdTokenPostBody",) 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 1d1fa60a8..585475cf4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0799.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0799.py @@ -9,44 +9,19 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsRunnerGroupsPostBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" +class ApplicationsClientIdTokenDeleteBody(GitHubModel): + """ApplicationsClientIdTokenDeleteBody""" - name: str = Field(description="Name of the runner group.") - visibility: Missing[Literal["selected", "all"]] = Field( - default=UNSET, - description="Visibility of a runner group. You can select all organizations or select individual organization.", - ) - selected_organization_ids: Missing[List[int]] = Field( - default=UNSET, - description="List of organization IDs that can access the runner group.", - ) - runners: Missing[List[int]] = Field( - default=UNSET, description="List of runner IDs to add to the runner group." - ) - allows_public_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether the runner group can be used by `public` repositories.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[List[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", + access_token: str = Field( + description="The OAuth access token used to authenticate to the GitHub API." ) -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsPostBody) +model_rebuild(ApplicationsClientIdTokenDeleteBody) -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",) +__all__ = ("ApplicationsClientIdTokenDeleteBody",) 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 e25cd2052..a2c5766c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0800.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0800.py @@ -9,37 +9,19 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody""" +class ApplicationsClientIdTokenPatchBody(GitHubModel): + """ApplicationsClientIdTokenPatchBody""" - 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`.", + access_token: str = Field( + description="The access_token of the OAuth or GitHub application." ) -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody) +model_rebuild(ApplicationsClientIdTokenPatchBody) -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody",) +__all__ = ("ApplicationsClientIdTokenPatchBody",) 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 a173b9741..1d891acfc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0801.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0801.py @@ -13,24 +13,42 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0029 import OrganizationSimple - - -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200( - GitHubModel -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" - - total_count: float = Field() - organizations: List[OrganizationSimple] = Field() - - -model_rebuild( - EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200 -) - -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200", -) +from .group_0014 import AppPermissions + + +class ApplicationsClientIdTokenScopedPostBody(GitHubModel): + """ApplicationsClientIdTokenScopedPostBody""" + + access_token: str = Field( + description="The access token used to authenticate to the GitHub API." + ) + target: Missing[str] = Field( + default=UNSET, + description="The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified.", + ) + target_id: Missing[int] = Field( + default=UNSET, + description="The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified.", + ) + repositories: Missing[List[str]] = Field( + default=UNSET, + description="The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified.", + ) + repository_ids: Missing[List[int]] = Field( + default=UNSET, + description="The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified.", + ) + permissions: Missing[AppPermissions] = Field( + default=UNSET, + title="App Permissions", + description="The permissions granted to the user access token.", + ) + + +model_rebuild(ApplicationsClientIdTokenScopedPostBody) + +__all__ = ("ApplicationsClientIdTokenScopedPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0802.py b/githubkit/versions/ghec_v2022_11_28/models/group_0802.py index d348290c9..152fcb757 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0802.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0802.py @@ -9,23 +9,13 @@ from __future__ import annotations -from typing import List +from githubkit.compat import ExtraGitHubModel, model_rebuild -from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +class EmojisGetResponse200(ExtraGitHubModel): + """EmojisGetResponse200""" -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody( - GitHubModel -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" +model_rebuild(EmojisGetResponse200) - selected_organization_ids: List[int] = Field( - description="List of organization IDs that can access the runner group." - ) - - -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody) - -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody",) +__all__ = ("EmojisGetResponse200",) 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 07869aecc..d184764f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0803.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0803.py @@ -9,28 +9,27 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0034 import Runner +class EnterprisesEnterpriseActionsPermissionsPutBody(GitHubModel): + """EnterprisesEnterpriseActionsPermissionsPutBody""" -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200( - GitHubModel -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + 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() - runners: List[Runner] = Field() +model_rebuild(EnterprisesEnterpriseActionsPermissionsPutBody) -model_rebuild( - EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 -) - -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", -) +__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBody",) 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 a6228713e..48667f780 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0804.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0804.py @@ -15,15 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0029 import OrganizationSimple -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - runners: List[int] = Field( - description="List of runner IDs to add to the runner group." - ) +class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" + total_count: float = Field() + organizations: List[OrganizationSimple] = Field() -model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody) -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) +model_rebuild(EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200) + +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200",) 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 41a29b6c1..f30d03dfc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0805.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0805.py @@ -13,20 +13,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0034 import Runner +class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody(GitHubModel): + """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" -class EnterprisesEnterpriseActionsRunnersGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnersGetResponse200""" + selected_organization_ids: List[int] = Field( + description="List of organization IDs to enable for GitHub Actions." + ) - total_count: Missing[float] = Field(default=UNSET) - runners: Missing[List[Runner]] = Field(default=UNSET) +model_rebuild(EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody) -model_rebuild(EnterprisesEnterpriseActionsRunnersGetResponse200) - -__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200",) +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody",) 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 46fd2b18a..e393e0da7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0806.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0806.py @@ -18,24 +18,42 @@ from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody""" +class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" - 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." + total_count: float = Field() + runner_groups: List[RunnerGroupsEnterprise] = Field() + + +class RunnerGroupsEnterprise(GitHubModel): + """RunnerGroupsEnterprise""" + + id: float = Field() + name: str = Field() + visibility: str = Field() + default: bool = Field() + selected_organizations_url: Missing[str] = Field(default=UNSET) + runners_url: str = Field() + hosted_runners_url: Missing[str] = Field(default=UNSET) + allows_public_repositories: bool = Field() + workflow_restrictions_read_only: Missing[bool] = Field( + default=UNSET, + description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", ) - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", + 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.", ) - work_folder: Missing[str] = Field( + selected_workflows: Missing[List[str]] = Field( default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", + 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(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody) +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsGetResponse200) +model_rebuild(RunnerGroupsEnterprise) -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody",) +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200", + "RunnerGroupsEnterprise", +) 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 6bdb6f4b0..1d1fa60a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0807.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0807.py @@ -9,24 +9,44 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0034 import Runner - -class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): - """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" +class EnterprisesEnterpriseActionsRunnerGroupsPostBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" - runner: Runner = Field( - title="Self hosted runners", description="A self hosted runner" + name: str = Field(description="Name of the runner group.") + visibility: Missing[Literal["selected", "all"]] = Field( + default=UNSET, + description="Visibility of a runner group. You can select all organizations or select individual organization.", + ) + selected_organization_ids: Missing[List[int]] = Field( + default=UNSET, + description="List of organization IDs that can access the runner group.", + ) + runners: Missing[List[int]] = Field( + default=UNSET, description="List of runner IDs to add to the runner group." + ) + allows_public_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether the runner group can be used by `public` repositories.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", ) - encoded_jit_config: str = Field( - description="The base64 encoded runner configuration." + 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(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201) +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsPostBody) -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBody",) 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 1183e8a83..e25cd2052 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0808.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0808.py @@ -9,22 +9,37 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0033 import RunnerLabel +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody""" -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" + 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`.", + ) - total_count: int = Field() - labels: List[RunnerLabel] = Field() +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody) -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200) - -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody",) 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 3a7e14ffb..a173b9741 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0809.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0809.py @@ -15,16 +15,22 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0029 import OrganizationSimple -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" - labels: List[str] = Field( - max_length=100, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", - ) +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200( + GitHubModel +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" + total_count: float = Field() + organizations: List[OrganizationSimple] = Field() -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody) -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",) +model_rebuild( + EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200 +) + +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200", +) 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 1403762a0..d348290c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0810.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0810.py @@ -16,16 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody""" +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody( + GitHubModel +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner.", + selected_organization_ids: List[int] = Field( + description="List of organization IDs that can access the runner group." ) -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody) +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody) -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody",) 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 efb2a4e46..07869aecc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0811.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0811.py @@ -15,16 +15,22 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0033 import RunnerLabel +from .group_0034 import Runner -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200( + GitHubModel +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" - total_count: int = Field() - labels: List[RunnerLabel] = Field() + total_count: float = Field() + runners: List[Runner] = Field() -model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200) +model_rebuild( + EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200 +) -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200",) +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200", +) 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 d05317d67..a6228713e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0812.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0812.py @@ -9,21 +9,21 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseCodeScanningAlertsGetResponse503(GitHubModel): - """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + runners: List[int] = Field( + description="List of runner IDs to add to the runner group." + ) -model_rebuild(EnterprisesEnterpriseCodeScanningAlertsGetResponse503) +model_rebuild(EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody) -__all__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) 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 977f8b47b..41a29b6c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0813.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0813.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field @@ -17,40 +17,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0034 import Runner -class EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody(GitHubModel): - """EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody""" - - advanced_security_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether GitHub Advanced Security is automatically enabled for new repositories. For more information, see "[About GitHub Advanced Security](https://docs.github.com/enterprise-cloud@latest//get-started/learning-about-github/about-github-advanced-security)."', - ) - advanced_security_enabled_new_user_namespace_repos: Missing[bool] = Field( - default=UNSET, - description='Whether GitHub Advanced Security is automatically enabled for new user namespace repositories. For more information, see "[About GitHub Advanced Security](https://docs.github.com/enterprise-cloud@latest//get-started/learning-about-github/about-github-advanced-security)."', - ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether Dependabot alerts are automatically enabled for new repositories. For more information, see "[About Dependabot alerts](https://docs.github.com/enterprise-cloud@latest//code-security/dependabot/dependabot-alerts/about-dependabot-alerts)."', - ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether secret scanning is automatically enabled for new repositories. For more information, see "[About secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/about-secret-scanning)."', - ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether secret scanning push protection is automatically enabled for new repositories. For more information, see "[Protecting pushes with secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', - ) - secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( - default=UNSET, - description='The URL that will be displayed to contributors who are blocked from pushing a secret. For more information, see "[Protecting pushes with secret scanning](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/protecting-pushes-with-secret-scanning)."\nTo disable this functionality, set this field to `null`.', - ) - secret_scanning_validity_checks_enabled: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this enterprise.", - ) - - -model_rebuild(EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody) - -__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",) + +class EnterprisesEnterpriseActionsRunnersGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnersGetResponse200""" + + total_count: Missing[float] = Field(default=UNSET) + runners: Missing[List[Runner]] = Field(default=UNSET) + + +model_rebuild(EnterprisesEnterpriseActionsRunnersGetResponse200) + +__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200",) 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 b6fef678a..46fd2b18a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0814.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0814.py @@ -13,23 +13,29 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody( - GitHubModel -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody""" +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody""" - users: List[str] = Field( - description="The usernames of the users to add to the cost center." + name: str = Field(description="The name of the new runner.") + runner_group_id: int = Field( + description="The ID of the runner group to register the runner to." + ) + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", + ) + work_folder: Missing[str] = Field( + default=UNSET, + description="The working directory to be used for job execution, relative to the runner install directory.", ) -model_rebuild( - EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody -) +model_rebuild(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody) -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody",) 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 e1881d2e9..6bdb6f4b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0815.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0815.py @@ -11,25 +11,22 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0034 import Runner -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200( - GitHubModel -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse2 - 00 - """ - message: Missing[str] = Field(default=UNSET) +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" + runner: Runner = Field( + title="Self hosted runners", description="A self hosted runner" + ) + encoded_jit_config: str = Field( + description="The base64 encoded runner configuration." + ) -model_rebuild( - EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200 -) -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200", -) +model_rebuild(EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201) + +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201",) 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 161309993..1183e8a83 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0816.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0816.py @@ -15,21 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0033 import RunnerLabel -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody( - GitHubModel -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody""" - users: List[str] = Field( - description="The usernames of the users to remove from the cost center." - ) +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" + total_count: int = Field() + labels: List[RunnerLabel] = Field() -model_rebuild( - EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody -) -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody", -) +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200) + +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200",) 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 0f6b15898..3a7e14ffb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0817.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0817.py @@ -9,27 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200( - GitHubModel -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteRespons - e200 - """ +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" - message: Missing[str] = Field(default=UNSET) + labels: List[str] = Field( + max_length=100, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + ) -model_rebuild( - EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200 -) +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody) -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody",) 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 8cbcddfe6..1403762a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0818.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0818.py @@ -9,41 +9,23 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class GistsPostBody(GitHubModel): - """GistsPostBody""" +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody""" - description: Missing[str] = Field( - default=UNSET, description="Description of the gist" + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner.", ) - files: GistsPostBodyPropFiles = Field( - description="Names and content for the files that make up the gist" - ) - public: Missing[Union[bool, Literal["true", "false"]]] = Field(default=UNSET) - - -class GistsPostBodyPropFiles(ExtraGitHubModel): - """GistsPostBodyPropFiles - - Names and content for the files that make up the gist - - Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} - """ -model_rebuild(GistsPostBody) -model_rebuild(GistsPostBodyPropFiles) +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody) -__all__ = ( - "GistsPostBody", - "GistsPostBodyPropFiles", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody",) 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 aed3fa1a8..efb2a4e46 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0819.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0819.py @@ -9,35 +9,22 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0033 import RunnerLabel -class GistsGistIdGetResponse403(GitHubModel): - """GistsGistIdGetResponse403""" - block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" + total_count: int = Field() + labels: List[RunnerLabel] = Field() -class GistsGistIdGetResponse403PropBlock(GitHubModel): - """GistsGistIdGetResponse403PropBlock""" - reason: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - html_url: Missing[Union[str, None]] = Field(default=UNSET) +model_rebuild(EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200) - -model_rebuild(GistsGistIdGetResponse403) -model_rebuild(GistsGistIdGetResponse403PropBlock) - -__all__ = ( - "GistsGistIdGetResponse403", - "GistsGistIdGetResponse403PropBlock", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200",) 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 351ebec68..d05317d67 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0820.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0820.py @@ -13,42 +13,17 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class GistsGistIdPatchBody(GitHubModel): - """GistsGistIdPatchBody""" +class EnterprisesEnterpriseCodeScanningAlertsGetResponse503(GitHubModel): + """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" - 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`.", - ) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -class GistsGistIdPatchBodyPropFiles(ExtraGitHubModel): - """GistsGistIdPatchBodyPropFiles +model_rebuild(EnterprisesEnterpriseCodeScanningAlertsGetResponse503) - 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__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503",) 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 4da522baf..d322cfbe8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0821.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0821.py @@ -9,17 +9,44 @@ from __future__ import annotations +from typing import Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class GistsGistIdCommentsPostBody(GitHubModel): - """GistsGistIdCommentsPostBody""" - - body: str = Field(max_length=65535, description="The comment text.") - - -model_rebuild(GistsGistIdCommentsPostBody) - -__all__ = ("GistsGistIdCommentsPostBody",) +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`.', + ) + + +model_rebuild(EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody) + +__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody",) 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 6b63828a9..246694ae6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0822.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0822.py @@ -9,17 +9,27 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0049 import CopilotSeatDetails + -class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): - """GistsGistIdCommentsCommentIdPatchBody""" +class EnterprisesEnterpriseCopilotBillingSeatsGetResponse200(GitHubModel): + """EnterprisesEnterpriseCopilotBillingSeatsGetResponse200""" - body: str = Field(max_length=65535, description="The comment text.") + total_seats: Missing[int] = Field( + default=UNSET, + description="The total number of Copilot seats the enterprise is being billed for. Users with access through multiple organizations or enterprise teams are only counted once.", + ) + seats: Missing[List[CopilotSeatDetails]] = Field(default=UNSET) -model_rebuild(GistsGistIdCommentsCommentIdPatchBody) +model_rebuild(EnterprisesEnterpriseCopilotBillingSeatsGetResponse200) -__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) +__all__ = ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200",) 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 c642ead3b..b6fef678a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0823.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0823.py @@ -9,13 +9,27 @@ from __future__ import annotations +from typing import List + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild -class GistsGistIdStarGetResponse404(GitHubModel): - """GistsGistIdStarGetResponse404""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody( + GitHubModel +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody""" + + users: List[str] = Field( + description="The usernames of the users to add to the cost center." + ) -model_rebuild(GistsGistIdStarGetResponse404) +model_rebuild( + EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody +) -__all__ = ("GistsGistIdStarGetResponse404",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody", +) 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 34e7a41a1..e1881d2e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0824.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0824.py @@ -9,25 +9,27 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0017 import Repository - -class InstallationRepositoriesGetResponse200(GitHubModel): - """InstallationRepositoriesGetResponse200""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200( + GitHubModel +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse2 + 00 + """ - total_count: int = Field() - repositories: List[Repository] = Field() - repository_selection: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) -model_rebuild(InstallationRepositoriesGetResponse200) +model_rebuild( + EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200 +) -__all__ = ("InstallationRepositoriesGetResponse200",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200", +) 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 08c16e9ea..161309993 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0825.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0825.py @@ -9,28 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class MarkdownPostBody(GitHubModel): - """MarkdownPostBody""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody( + GitHubModel +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody""" - 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.", + users: List[str] = Field( + description="The usernames of the users to remove from the cost center." ) -model_rebuild(MarkdownPostBody) +model_rebuild( + EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody +) -__all__ = ("MarkdownPostBody",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody", +) 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 2b6c200b5..0f6b15898 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0826.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0826.py @@ -9,8 +9,6 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.utils import UNSET @@ -18,18 +16,20 @@ from githubkit.compat import GitHubModel, model_rebuild -class NotificationsPutBody(GitHubModel): - """NotificationsPutBody""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200( + GitHubModel +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteRespons + e200 + """ - 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( + EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200 +) -__all__ = ("NotificationsPutBody",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200", +) 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 d8ee0a92c..8cbcddfe6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0827.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0827.py @@ -9,19 +9,41 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + + +class GistsPostBody(GitHubModel): + """GistsPostBody""" + + description: Missing[str] = Field( + default=UNSET, description="Description of the gist" + ) + files: GistsPostBodyPropFiles = Field( + description="Names and content for the files that make up the gist" + ) + public: Missing[Union[bool, Literal["true", "false"]]] = Field(default=UNSET) + +class GistsPostBodyPropFiles(ExtraGitHubModel): + """GistsPostBodyPropFiles -class NotificationsPutResponse202(GitHubModel): - """NotificationsPutResponse202""" + Names and content for the files that make up the gist - message: Missing[str] = Field(default=UNSET) + Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} + """ -model_rebuild(NotificationsPutResponse202) +model_rebuild(GistsPostBody) +model_rebuild(GistsPostBodyPropFiles) -__all__ = ("NotificationsPutResponse202",) +__all__ = ( + "GistsPostBody", + "GistsPostBodyPropFiles", +) 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 9751ae0a5..aed3fa1a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0828.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0828.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.utils import UNSET @@ -16,14 +18,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): - """NotificationsThreadsThreadIdSubscriptionPutBody""" +class GistsGistIdGetResponse403(GitHubModel): + """GistsGistIdGetResponse403""" + + block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + + +class GistsGistIdGetResponse403PropBlock(GitHubModel): + """GistsGistIdGetResponse403PropBlock""" - ignored: Missing[bool] = Field( - default=UNSET, description="Whether to block all notifications from a thread." - ) + reason: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + html_url: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) +model_rebuild(GistsGistIdGetResponse403) +model_rebuild(GistsGistIdGetResponse403PropBlock) -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) +__all__ = ( + "GistsGistIdGetResponse403", + "GistsGistIdGetResponse403PropBlock", +) 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 40236cfc1..351ebec68 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0829.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0829.py @@ -9,26 +9,46 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0082 import OrganizationCustomRepositoryRole +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class OrganizationsOrganizationIdCustomRolesGetResponse200(GitHubModel): - """OrganizationsOrganizationIdCustomRolesGetResponse200""" +class GistsGistIdPatchBody(GitHubModel): + """GistsGistIdPatchBody""" - total_count: Missing[int] = Field( - default=UNSET, description="The number of custom roles in this organization" + description: Missing[str] = Field( + default=UNSET, description="The description of the gist." ) - custom_roles: Missing[List[OrganizationCustomRepositoryRole]] = Field(default=UNSET) + 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`.", + ) + + +class GistsGistIdPatchBodyPropFiles(ExtraGitHubModel): + """GistsGistIdPatchBodyPropFiles + + The gist files to be updated, renamed, or deleted. Each `key` must match the + current filename + (including extension) of the targeted gist file. For example: `hello.py`. + + To delete a file, set the whole file to null. For example: `hello.py : null`. + The file will also be + deleted if the specified object does not contain at least one of `content` or + `filename`. + + Examples: + {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} + """ -model_rebuild(OrganizationsOrganizationIdCustomRolesGetResponse200) +model_rebuild(GistsGistIdPatchBody) +model_rebuild(GistsGistIdPatchBodyPropFiles) -__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200",) +__all__ = ( + "GistsGistIdPatchBody", + "GistsGistIdPatchBodyPropFiles", +) 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 2470f64df..4da522baf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0830.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0830.py @@ -9,132 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPatchBody(GitHubModel): - """OrgsOrgPatchBody""" +class GistsGistIdCommentsPostBody(GitHubModel): + """GistsGistIdCommentsPostBody""" - 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 deprecated 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='Whether GitHub Advanced Security is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether Dependabot alerts is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether Dependabot security updates is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether dependency graph is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether secret scanning is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether secret scanning push protection is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - 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="Whether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization.", - ) + body: str = Field(max_length=65535, description="The comment text.") -model_rebuild(OrgsOrgPatchBody) +model_rebuild(GistsGistIdCommentsPostBody) -__all__ = ("OrgsOrgPatchBody",) +__all__ = ("GistsGistIdCommentsPostBody",) 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 007f29b18..6b63828a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0831.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0831.py @@ -9,41 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" - - total_count: int = Field() - repository_cache_usages: List[ActionsCacheUsageByRepository] = Field() - - -class ActionsCacheUsageByRepository(GitHubModel): - """Actions Cache Usage by repository - - GitHub Actions Cache Usage by repository. - """ +class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): + """GistsGistIdCommentsCommentIdPatchBody""" - 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." - ) + body: str = Field(max_length=65535, description="The comment text.") -model_rebuild(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) -model_rebuild(ActionsCacheUsageByRepository) +model_rebuild(GistsGistIdCommentsCommentIdPatchBody) -__all__ = ( - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", - "ActionsCacheUsageByRepository", -) +__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) 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 f52322c46..c642ead3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0832.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0832.py @@ -9,27 +9,13 @@ from __future__ import annotations -from typing import Literal - -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsPermissionsPutBody(GitHubModel): - """OrgsOrgActionsPermissionsPutBody""" - - 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.", - ) +class GistsGistIdStarGetResponse404(GitHubModel): + """GistsGistIdStarGetResponse404""" -model_rebuild(OrgsOrgActionsPermissionsPutBody) +model_rebuild(GistsGistIdStarGetResponse404) -__all__ = ("OrgsOrgActionsPermissionsPutBody",) +__all__ = ("GistsGistIdStarGetResponse404",) 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 882706ed7..34e7a41a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0833.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0833.py @@ -13,18 +13,21 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild from .group_0017 import Repository -class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" +class InstallationRepositoriesGetResponse200(GitHubModel): + """InstallationRepositoriesGetResponse200""" - total_count: float = Field() + total_count: int = Field() repositories: List[Repository] = Field() + repository_selection: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) +model_rebuild(InstallationRepositoriesGetResponse200) -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) +__all__ = ("InstallationRepositoriesGetResponse200",) 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 f85a05eb9..08c16e9ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0834.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0834.py @@ -9,21 +9,28 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" +class MarkdownPostBody(GitHubModel): + """MarkdownPostBody""" - selected_repository_ids: List[int] = Field( - description="List of repository IDs to enable for GitHub Actions." + text: str = Field(description="The Markdown text to render in HTML.") + mode: Missing[Literal["markdown", "gfm"]] = Field( + default=UNSET, description="The rendering mode." + ) + 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(OrgsOrgActionsPermissionsRepositoriesPutBody) +model_rebuild(MarkdownPostBody) -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) +__all__ = ("MarkdownPostBody",) 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 00dd92570..2b6c200b5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0835.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0835.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from datetime import datetime from pydantic import Field @@ -18,46 +18,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnerGroupsGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsGetResponse200""" +class NotificationsPutBody(GitHubModel): + """NotificationsPutBody""" - 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() - 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( + last_read_at: Missing[datetime] = Field( default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + 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.", ) - 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`.", + read: Missing[bool] = Field( + default=UNSET, description="Whether the notification has been read." ) -model_rebuild(OrgsOrgActionsRunnerGroupsGetResponse200) -model_rebuild(RunnerGroupsOrg) +model_rebuild(NotificationsPutBody) -__all__ = ( - "OrgsOrgActionsRunnerGroupsGetResponse200", - "RunnerGroupsOrg", -) +__all__ = ("NotificationsPutBody",) 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 1aceffcdd..d8ee0a92c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0836.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0836.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,35 +16,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnerGroupsPostBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsPostBody""" - - name: str = Field(description="Name of the runner group.") - visibility: Missing[Literal["selected", "all", "private"]] = Field( - default=UNSET, - description="Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.", - ) - selected_repository_ids: Missing[List[int]] = Field( - default=UNSET, - description="List of repository IDs that can access the runner group.", - ) - runners: Missing[List[int]] = Field( - default=UNSET, description="List of runner IDs to add to the runner group." - ) - allows_public_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether the runner group can be used by `public` repositories.", - ) - restricted_to_workflows: Missing[bool] = Field( - default=UNSET, - description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", - ) - selected_workflows: Missing[List[str]] = Field( - default=UNSET, - description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", - ) - - -model_rebuild(OrgsOrgActionsRunnerGroupsPostBody) - -__all__ = ("OrgsOrgActionsRunnerGroupsPostBody",) +class NotificationsPutResponse202(GitHubModel): + """NotificationsPutResponse202""" + + message: Missing[str] = Field(default=UNSET) + + +model_rebuild(NotificationsPutResponse202) + +__all__ = ("NotificationsPutResponse202",) 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 e1c1a2eb8..9751ae0a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0837.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0837.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,28 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" +class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): + """NotificationsThreadsThreadIdSubscriptionPutBody""" - 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`.", + ignored: Missing[bool] = Field( + default=UNSET, description="Whether to block all notifications from a thread." ) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody) +model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",) +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) 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 c4f0356d6..216ead91b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0838.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0838.py @@ -13,18 +13,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0079 import MinimalRepository +from .group_0085 import OrganizationCustomRepositoryRole -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" +class OrganizationsOrganizationIdCustomRolesGetResponse200(GitHubModel): + """OrganizationsOrganizationIdCustomRolesGetResponse200""" - total_count: float = Field() - repositories: List[MinimalRepository] = 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(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200) +model_rebuild(OrganizationsOrganizationIdCustomRolesGetResponse200) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200",) +__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200",) 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 9c0d4d548..2470f64df 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0839.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0839.py @@ -9,21 +9,132 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" +class OrgsOrgPatchBody(GitHubModel): + """OrgsOrgPatchBody""" - selected_repository_ids: List[int] = Field( - description="List of repository IDs that can access the runner group." + 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 deprecated 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='Whether GitHub Advanced Security is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether Dependabot alerts is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether Dependabot security updates is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether dependency graph is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether secret scanning is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether secret scanning push protection is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + 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="Whether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization.", ) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody) +model_rebuild(OrgsOrgPatchBody) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",) +__all__ = ("OrgsOrgPatchBody",) 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 c2330ac7f..007f29b18 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0840.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0840.py @@ -15,16 +15,35 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0034 import Runner +class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + total_count: int = Field() + repository_cache_usages: List[ActionsCacheUsageByRepository] = Field() - total_count: float = Field() - runners: List[Runner] = Field() +class ActionsCacheUsageByRepository(GitHubModel): + """Actions Cache Usage by repository -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200) + GitHub Actions Cache Usage by repository. + """ -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200",) + full_name: str = Field( + description="The repository owner and name for the cache usage being shown." + ) + active_caches_size_in_bytes: int = Field( + description="The sum of the size in bytes of all the active cache items in the repository." + ) + active_caches_count: int = Field( + description="The number of active caches in the repository." + ) + + +model_rebuild(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) +model_rebuild(ActionsCacheUsageByRepository) + +__all__ = ( + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", + "ActionsCacheUsageByRepository", +) 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 79e08acac..f52322c46 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0841.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0841.py @@ -9,21 +9,27 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" +class OrgsOrgActionsPermissionsPutBody(GitHubModel): + """OrgsOrgActionsPermissionsPutBody""" - runners: List[int] = Field( - description="List of runner IDs to add to the runner group." + enabled_repositories: Literal["all", "none", "selected"] = Field( + description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." + ) + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + default=UNSET, + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) -model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody) +model_rebuild(OrgsOrgActionsPermissionsPutBody) -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) +__all__ = ("OrgsOrgActionsPermissionsPutBody",) 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 33374f7a4..882706ed7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0842.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0842.py @@ -15,16 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0034 import Runner +from .group_0017 import Repository -class OrgsOrgActionsRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnersGetResponse200""" +class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" - total_count: int = Field() - runners: List[Runner] = Field() + total_count: float = Field() + repositories: List[Repository] = Field() -model_rebuild(OrgsOrgActionsRunnersGetResponse200) +model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) -__all__ = ("OrgsOrgActionsRunnersGetResponse200",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) 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 232c59473..f85a05eb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0843.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0843.py @@ -13,29 +13,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" +class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" - name: str = Field(description="The name of the new runner.") - runner_group_id: int = Field( - description="The ID of the runner group to register the runner to." - ) - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", - ) - work_folder: Missing[str] = Field( - default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", + selected_repository_ids: List[int] = Field( + description="List of repository IDs to enable for GitHub Actions." ) -model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostBody) +model_rebuild(OrgsOrgActionsPermissionsRepositoriesPutBody) -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) 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 2ffeafd63..1952f236f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0844.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0844.py @@ -13,18 +13,52 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" +class OrgsOrgActionsRunnerGroupsGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsGetResponse200""" - labels: List[str] = Field( - max_length=100, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + total_count: float = Field() + runner_groups: List[RunnerGroupsOrg] = Field() + + +class RunnerGroupsOrg(GitHubModel): + """RunnerGroupsOrg""" + + id: float = Field() + name: str = Field() + visibility: str = Field() + default: bool = Field() + selected_repositories_url: Missing[str] = Field( + default=UNSET, + description="Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected`", + ) + runners_url: str = Field() + hosted_runners_url: Missing[str] = Field(default=UNSET) + inherited: bool = Field() + inherited_allows_public_repositories: Missing[bool] = Field(default=UNSET) + allows_public_repositories: bool = Field() + workflow_restrictions_read_only: Missing[bool] = Field( + default=UNSET, + description="If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[List[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", ) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(OrgsOrgActionsRunnerGroupsGetResponse200) +model_rebuild(RunnerGroupsOrg) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ( + "OrgsOrgActionsRunnerGroupsGetResponse200", + "RunnerGroupsOrg", +) 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 b155361d8..1aceffcdd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0845.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0845.py @@ -9,23 +9,44 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" +class OrgsOrgActionsRunnerGroupsPostBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsPostBody""" - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner.", + name: str = Field(description="Name of the runner group.") + visibility: Missing[Literal["selected", "all", "private"]] = Field( + default=UNSET, + description="Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories.", + ) + selected_repository_ids: Missing[List[int]] = Field( + default=UNSET, + description="List of repository IDs that can access the runner group.", + ) + runners: Missing[List[int]] = Field( + default=UNSET, description="List of runner IDs to add to the runner group." + ) + allows_public_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether the runner group can be used by `public` repositories.", + ) + restricted_to_workflows: Missing[bool] = Field( + default=UNSET, + description="If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array.", + ) + selected_workflows: Missing[List[str]] = Field( + default=UNSET, + description="List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`.", ) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) +model_rebuild(OrgsOrgActionsRunnerGroupsPostBody) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) +__all__ = ("OrgsOrgActionsRunnerGroupsPostBody",) 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 0c04cf7c5..e1c1a2eb8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0846.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0846.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Literal from pydantic import Field @@ -19,32 +18,28 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsSecretsGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsGetResponse200""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" - total_count: int = Field() - secrets: List[OrganizationActionsSecret] = Field() - - -class OrganizationActionsSecret(GitHubModel): - """Actions Secret for an Organization - - Secrets for GitHub Actions for an organization. - """ - - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a secret" + name: str = Field(description="Name of the runner group.") + visibility: Missing[Literal["selected", "all", "private"]] = Field( + default=UNSET, + description="Visibility of a runner group. You can select all repositories, select individual repositories, or 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`.", ) - selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsSecretsGetResponse200) -model_rebuild(OrganizationActionsSecret) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody) -__all__ = ( - "OrgsOrgActionsSecretsGetResponse200", - "OrganizationActionsSecret", -) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody",) 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 846c816b0..408ac07bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0847.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0847.py @@ -9,35 +9,22 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0082 import MinimalRepository -class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNamePutBody""" - 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/actions/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[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.", - ) +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" + total_count: float = Field() + repositories: List[MinimalRepository] = Field() -model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200",) 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 666f09cec..9c0d4d548 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0848.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0848.py @@ -15,16 +15,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0079 import MinimalRepository +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + selected_repository_ids: List[int] = Field( + description="List of repository IDs that can access the runner group." + ) - total_count: int = Field() - repositories: List[MinimalRepository] = Field() +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody) -model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody",) 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 d95a23ed2..c2330ac7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0849.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0849.py @@ -15,15 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0034 import Runner -class OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: List[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints." - ) +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + total_count: float = Field() + runners: List[Runner] = Field() -model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200",) 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 0b346bd1e..79e08acac 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0850.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0850.py @@ -9,47 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsVariablesGetResponse200(GitHubModel): - """OrgsOrgActionsVariablesGetResponse200""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody(GitHubModel): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - total_count: int = Field() - variables: List[OrganizationActionsVariable] = Field() - - -class OrganizationActionsVariable(GitHubModel): - """Actions Variable for an Organization - - Organization variable for GitHub Actions. - """ - - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - created_at: datetime = Field( - description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - 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" + runners: List[int] = Field( + description="List of runner IDs to add to the runner group." ) - selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsVariablesGetResponse200) -model_rebuild(OrganizationActionsVariable) +model_rebuild(OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody) -__all__ = ( - "OrgsOrgActionsVariablesGetResponse200", - "OrganizationActionsVariable", -) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody",) 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 de3c22c09..33374f7a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0851.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0851.py @@ -9,29 +9,22 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0034 import Runner -class OrgsOrgActionsVariablesPostBody(GitHubModel): - """OrgsOrgActionsVariablesPostBody""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable." - ) - selected_repository_ids: Missing[List[int]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", - ) +class OrgsOrgActionsRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnersGetResponse200""" + total_count: int = Field() + runners: List[Runner] = Field() -model_rebuild(OrgsOrgActionsVariablesPostBody) -__all__ = ("OrgsOrgActionsVariablesPostBody",) +model_rebuild(OrgsOrgActionsRunnersGetResponse200) + +__all__ = ("OrgsOrgActionsRunnersGetResponse200",) 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 be657ea20..232c59473 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0852.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0852.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field @@ -18,21 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): - """OrgsOrgActionsVariablesNamePatchBody""" +class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" - 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.", + name: str = Field(description="The name of the new runner.") + runner_group_id: int = Field( + description="The ID of the runner group to register the runner to." + ) + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", ) - selected_repository_ids: Missing[List[int]] = Field( + work_folder: Missing[str] = Field( default=UNSET, - description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", + description="The working directory to be used for job execution, relative to the runner install directory.", ) -model_rebuild(OrgsOrgActionsVariablesNamePatchBody) +model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostBody) -__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) 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 7068b6f4c..2ffeafd63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0853.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0853.py @@ -15,16 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0079 import MinimalRepository +class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + labels: List[str] = Field( + max_length=100, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + ) - total_count: int = Field() - repositories: List[MinimalRepository] = Field() +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) -model_rebuild(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) 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 4658506c5..b155361d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0854.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0854.py @@ -16,14 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsVariablesNameRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsVariablesNameRepositoriesPutBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" - selected_repository_ids: List[int] = Field( - description="The IDs of the repositories that can access the organization variable." + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner.", ) -model_rebuild(OrgsOrgActionsVariablesNameRepositoriesPutBody) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) 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 df09e2723..0c04cf7c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0855.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0855.py @@ -9,22 +9,42 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0089 import Codespace - -class OrgsOrgCodespacesGetResponse200(GitHubModel): - """OrgsOrgCodespacesGetResponse200""" +class OrgsOrgActionsSecretsGetResponse200(GitHubModel): + """OrgsOrgActionsSecretsGetResponse200""" total_count: int = Field() - codespaces: List[Codespace] = 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(OrgsOrgCodespacesGetResponse200) +model_rebuild(OrgsOrgActionsSecretsGetResponse200) +model_rebuild(OrganizationActionsSecret) -__all__ = ("OrgsOrgCodespacesGetResponse200",) +__all__ = ( + "OrgsOrgActionsSecretsGetResponse200", + "OrganizationActionsSecret", +) 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 cd24940ff..846c816b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0856.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0856.py @@ -18,24 +18,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesAccessPutBody(GitHubModel): - """OrgsOrgCodespacesAccessPutBody""" - - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", - ] = Field( - description="Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization." +class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNamePutBody""" + + 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/actions/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_usernames: Missing[List[str]] = Field( - max_length=100, + selected_repository_ids: Missing[List[int]] = Field( default=UNSET, - description="The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.", + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) -model_rebuild(OrgsOrgCodespacesAccessPutBody) +model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) -__all__ = ("OrgsOrgCodespacesAccessPutBody",) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) 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 9c21960a6..d13193d2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0857.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0857.py @@ -15,16 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0082 import MinimalRepository -class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" - selected_usernames: List[str] = Field( - max_length=100, - description="The usernames of the organization members whose codespaces be billed to the organization.", - ) +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) 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 83b1c7887..d95a23ed2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0858.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0858.py @@ -16,15 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - selected_usernames: List[str] = Field( - max_length=100, - description="The usernames of the organization members whose codespaces should not be billed to the 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." ) -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) 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 05a3214de..0b346bd1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0859.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0859.py @@ -19,39 +19,37 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsGetResponse200""" +class OrgsOrgActionsVariablesGetResponse200(GitHubModel): + """OrgsOrgActionsVariablesGetResponse200""" total_count: int = Field() - secrets: List[CodespacesOrgSecret] = Field() + variables: List[OrganizationActionsVariable] = Field() -class CodespacesOrgSecret(GitHubModel): - """Codespaces Secret +class OrganizationActionsVariable(GitHubModel): + """Actions Variable for an Organization - Secrets for a GitHub Codespace. + Organization variable for GitHub Actions. """ - name: str = Field(description="The name of the secret") + 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 secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + 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 secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + 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="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", + description="Visibility of a variable" ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) -model_rebuild(CodespacesOrgSecret) +model_rebuild(OrgsOrgActionsVariablesGetResponse200) +model_rebuild(OrganizationActionsVariable) __all__ = ( - "OrgsOrgCodespacesSecretsGetResponse200", - "CodespacesOrgSecret", + "OrgsOrgActionsVariablesGetResponse200", + "OrganizationActionsVariable", ) 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 c722332b8..de3c22c09 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0860.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0860.py @@ -18,26 +18,20 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" +class OrgsOrgActionsVariablesPostBody(GitHubModel): + """OrgsOrgActionsVariablesPostBody""" - 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." - ) + 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="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + description="The type of repositories in the organization that 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 secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", ) -model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) +model_rebuild(OrgsOrgActionsVariablesPostBody) -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) +__all__ = ("OrgsOrgActionsVariablesPostBody",) 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 af320ecaa..be657ea20 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0861.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0861.py @@ -9,22 +9,30 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0079 import MinimalRepository +class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): + """OrgsOrgActionsVariablesNamePatchBody""" -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + 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(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) 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 333670cb3..e42504a88 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0862.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0862.py @@ -15,15 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0082 import MinimalRepository -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: List[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints." - ) +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) +model_rebuild(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) + +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) 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 022333c11..4658506c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0863.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0863.py @@ -16,15 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" +class OrgsOrgActionsVariablesNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" - selected_teams: List[str] = Field( - min_length=1, - description="List of team names within the organization to which to grant access to GitHub Copilot.", + selected_repository_ids: List[int] = Field( + description="The IDs of the repositories that can access the organization variable." ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) +model_rebuild(OrgsOrgActionsVariablesNameRepositoriesPutBody) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) 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 584db74a2..068280536 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0864.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0864.py @@ -9,20 +9,87 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + + +class OrgsOrgAttestationsSubjectDigestGetResponse200(GitHubModel): + """OrgsOrgAttestationsSubjectDigestGetResponse200""" + + 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) -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( + GitHubModel +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle - The total number of seat assignments created. + 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. """ - seats_created: int = Field() + 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(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) +model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200) +model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle +) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial +) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope +) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) +__all__ = ( + "OrgsOrgAttestationsSubjectDigestGetResponse200", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", +) 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 e5bd04750..2da6058bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0865.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0865.py @@ -9,22 +9,68 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" +class OrgsOrgCodeSecurityConfigurationsPostBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsPostBody""" - selected_teams: List[str] = Field( - min_length=1, - description="The names of teams from which to revoke access to GitHub Copilot.", + name: str = Field( + description="The name of the code security configuration. Must be unique within the organization." + ) + description: str = Field( + max_length=255, description="A description of the code security configuration" + ) + advanced_security: Missing[Literal["enabled", "disabled"]] = Field( + default=UNSET, description="The enablement status of GitHub Advanced Security" + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsPostBody) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0866.py b/githubkit/versions/ghec_v2022_11_28/models/group_0866.py index e6a322116..1072146d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0866.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0866.py @@ -9,20 +9,71 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - - The total number of seat assignments cancelled. - """ +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" - seats_cancelled: int = Field() + name: Missing[str] = Field( + default=UNSET, + description="The name of the code security configuration. Must be unique within the organization.", + ) + description: Missing[str] = Field( + max_length=255, + default=UNSET, + description="A description of the code security configuration", + ) + advanced_security: Missing[Literal["enabled", "disabled"]] = Field( + default=UNSET, description="The enablement status of GitHub Advanced Security" + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody",) 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 184351fa2..e88386374 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0867.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0867.py @@ -9,22 +9,27 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - selected_usernames: List[str] = Field( - min_length=1, - description="The usernames of the organization members to be granted access to GitHub Copilot.", + scope: Literal["all", "public", "private_or_internal", "selected"] = Field( + description="The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids`" + ) + selected_repository_ids: Missing[List[int]] = Field( + default=UNSET, + description="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(OrgsOrgCopilotBillingSelectedUsersPostBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody",) 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 6e2dccf88..0a1d8ab6e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0868.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0868.py @@ -9,20 +9,26 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - - The total number of seat assignments created. - """ +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - seats_created: int = Field() + 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(OrgsOrgCopilotBillingSelectedUsersPostResponse201) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody",) 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 291c94f37..bebe74706 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0869.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0869.py @@ -9,22 +9,33 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0090 import CodeSecurityConfiguration -class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - selected_usernames: List[str] = Field( - min_length=1, - description="The usernames of the organization members for which to revoke access to GitHub Copilot.", +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" + + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = Field( + default=UNSET, + description="Specifies which types of repository this security configuration is applied to by default.", + ) + configuration: Missing[CodeSecurityConfiguration] = Field( + default=UNSET, description="A code security configuration" ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200",) 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 803b279ed..1aaa6fb2c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0870.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0870.py @@ -9,20 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0094 import Codespace -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - The total number of seat assignments cancelled. - """ +class OrgsOrgCodespacesGetResponse200(GitHubModel): + """OrgsOrgCodespacesGetResponse200""" - seats_cancelled: int = Field() + total_count: int = Field() + codespaces: List[Codespace] = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) +model_rebuild(OrgsOrgCodespacesGetResponse200) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) +__all__ = ("OrgsOrgCodespacesGetResponse200",) 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 bd8c87ffd..cd24940ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0871.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0871.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field @@ -17,18 +17,25 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0082 import OrganizationCustomRepositoryRole +class OrgsOrgCodespacesAccessPutBody(GitHubModel): + """OrgsOrgCodespacesAccessPutBody""" -class OrgsOrgCustomRepositoryRolesGetResponse200(GitHubModel): - """OrgsOrgCustomRepositoryRolesGetResponse200""" - - total_count: Missing[int] = Field( - default=UNSET, description="The number of custom roles in this organization" + visibility: Literal[ + "disabled", + "selected_members", + "all_members", + "all_members_and_outside_collaborators", + ] = Field( + description="Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization." + ) + selected_usernames: Missing[List[str]] = Field( + max_length=100, + default=UNSET, + description="The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.", ) - custom_roles: Missing[List[OrganizationCustomRepositoryRole]] = Field(default=UNSET) -model_rebuild(OrgsOrgCustomRepositoryRolesGetResponse200) +model_rebuild(OrgsOrgCodespacesAccessPutBody) -__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200",) +__all__ = ("OrgsOrgCodespacesAccessPutBody",) 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 e04c76aa7..9c21960a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0872.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0872.py @@ -9,42 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsGetResponse200""" +class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" - total_count: int = Field() - secrets: List[OrganizationDependabotSecret] = Field() - - -class OrganizationDependabotSecret(GitHubModel): - """Dependabot Secret for an Organization - - Secrets for GitHub Dependabot for an organization. - """ - - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a secret" + selected_usernames: List[str] = Field( + max_length=100, + description="The usernames of the organization members whose codespaces be billed to the organization.", ) - selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgDependabotSecretsGetResponse200) -model_rebuild(OrganizationDependabotSecret) +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) -__all__ = ( - "OrgsOrgDependabotSecretsGetResponse200", - "OrganizationDependabotSecret", -) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) 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 66a73d449..83b1c7887 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0873.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0873.py @@ -9,35 +9,22 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNamePutBody""" +class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#get-an-organization-public-key) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." - ) - selected_repository_ids: Missing[List[str]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + selected_usernames: List[str] = Field( + max_length=100, + description="The usernames of the organization members whose codespaces should not be billed to the organization.", ) -model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) 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 99a2c122d..05a3214de 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0874.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0874.py @@ -9,22 +9,49 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0079 import MinimalRepository - -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" +class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsGetResponse200""" total_count: int = Field() - repositories: List[MinimalRepository] = Field() - - -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) + secrets: List[CodespacesOrgSecret] = Field() + + +class CodespacesOrgSecret(GitHubModel): + """Codespaces Secret + + Secrets for a GitHub Codespace. + """ + + name: str = Field(description="The name of the secret") + created_at: datetime = Field( + description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + updated_at: datetime = Field( + description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that the secret is visible to" + ) + selected_repositories_url: Missing[str] = Field( + default=UNSET, + description="The API URL at which the list of repositories this secret is visible to can be retrieved", + ) + + +model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) +model_rebuild(CodespacesOrgSecret) + +__all__ = ( + "OrgsOrgCodespacesSecretsGetResponse200", + "CodespacesOrgSecret", +) 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 d4797058d..c722332b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0875.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0875.py @@ -9,21 +9,35 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" - selected_repository_ids: List[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/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." + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#get-an-organization-public-key) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="The ID of the key you used to encrypt the secret." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + ) + selected_repository_ids: Missing[List[int]] = Field( + default=UNSET, + description="An array of repository IDs that can access the organization secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) +model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) 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 d5f7fdb7f..35f877dcd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0876.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0876.py @@ -9,56 +9,22 @@ from __future__ import annotations -from typing import List, Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0082 import MinimalRepository -class OrgsOrgHooksPostBody(GitHubModel): - """OrgsOrgHooksPostBody""" - name: str = Field(description='Must be passed as "web".') - config: OrgsOrgHooksPostBodyPropConfig = Field( - description="Key/value pairs to provide settings for this webhook." - ) - events: Missing[List[str]] = Field( - default=UNSET, - description='Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for. Set to `["*"]` to receive all possible events.', - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -class OrgsOrgHooksPostBodyPropConfig(GitHubModel): - """OrgsOrgHooksPostBodyPropConfig - Key/value pairs to provide settings for this webhook. - """ +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) - url: str = Field(description="The URL to which the payloads will be delivered.") - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - username: Missing[str] = Field(default=UNSET) - password: Missing[str] = Field(default=UNSET) - - -model_rebuild(OrgsOrgHooksPostBody) -model_rebuild(OrgsOrgHooksPostBodyPropConfig) - -__all__ = ( - "OrgsOrgHooksPostBody", - "OrgsOrgHooksPostBodyPropConfig", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) 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 a7298f36e..333670cb3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0877.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0877.py @@ -9,55 +9,21 @@ from __future__ import annotations -from typing import List, Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgHooksHookIdPatchBody(GitHubModel): - """OrgsOrgHooksHookIdPatchBody""" +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = Field( - default=UNSET, - description="Key/value pairs to provide settings for this webhook.", + selected_repository_ids: List[int] = Field( + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/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." ) - events: Missing[List[str]] = Field( - default=UNSET, - description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for.", - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) - name: Missing[str] = Field(default=UNSET) - - -class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): - """OrgsOrgHooksHookIdPatchBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: str = Field(description="The URL to which the payloads will be delivered.") - content_type: Missing[str] = Field( - default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - ) - secret: Missing[str] = Field( - default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", - ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgHooksHookIdPatchBody) -model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) -__all__ = ( - "OrgsOrgHooksHookIdPatchBody", - "OrgsOrgHooksHookIdPatchBodyPropConfig", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) 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 985d78ccf..bf2ee2be8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0878.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0878.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field @@ -17,24 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0049 import CopilotSeatDetails -class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): - """OrgsOrgHooksHookIdConfigPatchBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( - 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( +class OrgsOrgCopilotBillingSeatsGetResponse200(GitHubModel): + """OrgsOrgCopilotBillingSeatsGetResponse200""" + + total_seats: Missing[int] = Field( default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + description="Total number of Copilot seats for the organization currently being billed.", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + seats: Missing[List[CopilotSeatDetails]] = Field(default=UNSET) -model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) +model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) -__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) +__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200",) 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 82b58fb44..022333c11 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0879.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0879.py @@ -15,16 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation +class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" -class OrgsOrgInstallationsGetResponse200(GitHubModel): - """OrgsOrgInstallationsGetResponse200""" + selected_teams: List[str] = Field( + min_length=1, + description="List of team names within the organization to which to grant access to GitHub Copilot.", + ) - total_count: int = Field() - installations: List[Installation] = Field() +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) -model_rebuild(OrgsOrgInstallationsGetResponse200) - -__all__ = ("OrgsOrgInstallationsGetResponse200",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) 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 17fac965f..584db74a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0880.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0880.py @@ -9,13 +9,20 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 + + The total number of seat assignments created. + """ + + seats_created: int = Field() -model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) 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 22b6534f0..e5bd04750 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0881.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0881.py @@ -9,38 +9,22 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgInvitationsPostBody(GitHubModel): - """OrgsOrgInvitationsPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - invitee_id: Missing[int] = Field( - default=UNSET, - description="**Required unless you provide `email`**. GitHub user ID for the person you are inviting.", - ) - email: Missing[str] = Field( - default=UNSET, - description="**Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user.", - ) - role: Missing[Literal["admin", "direct_member", "billing_manager", "reinstate"]] = ( - Field( - default=UNSET, - description="The role for the new member. \n * `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. \n * `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. \n * `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. \n * `reinstate` - The previous role assigned to the invitee before they were removed from your organization. Can be one of the roles listed above. Only works if the invitee was previously part of your organization.", - ) - ) - team_ids: Missing[List[int]] = Field( - default=UNSET, - description="Specify IDs for the teams you want to invite new members to.", + selected_teams: List[str] = Field( + min_length=1, + description="The names of teams from which to revoke access to GitHub Copilot.", ) -model_rebuild(OrgsOrgInvitationsPostBody) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) -__all__ = ("OrgsOrgInvitationsPostBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) 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 4768ff075..e6a322116 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0882.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0882.py @@ -9,22 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0089 import Codespace +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 -class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" + The total number of seat assignments cancelled. + """ - total_count: int = Field() - codespaces: List[Codespace] = Field() + seats_cancelled: int = Field() -model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) 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 0fda1e440..184351fa2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0883.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0883.py @@ -9,24 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgMembershipsUsernamePutBody""" +class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - 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.", + selected_usernames: List[str] = Field( + min_length=1, + description="The usernames of the organization members to be granted access to GitHub Copilot.", ) -model_rebuild(OrgsOrgMembershipsUsernamePutBody) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) -__all__ = ("OrgsOrgMembershipsUsernamePutBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) 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 7a28ea6f2..6e2dccf88 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0884.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0884.py @@ -9,55 +9,20 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgMigrationsPostBody(GitHubModel): - """OrgsOrgMigrationsPostBody""" - - repositories: List[str] = Field( - description="A list of arrays indicating which repositories should be migrated." - ) - lock_repositories: Missing[bool] = Field( - default=UNSET, - description="Indicates whether repositories should be locked (to prevent manipulation) while migrating data.", - ) - exclude_metadata: Missing[bool] = Field( - default=UNSET, - description="Indicates whether metadata should be excluded and only git source should be included for the migration.", - ) - exclude_git_data: Missing[bool] = Field( - default=UNSET, - description="Indicates whether the repository git data should be excluded from the migration.", - ) - exclude_attachments: Missing[bool] = Field( - default=UNSET, - description="Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).", - ) - exclude_releases: Missing[bool] = Field( - default=UNSET, - description="Indicates whether releases should be excluded from the migration (to reduce migration archive file size).", - ) - exclude_owner_projects: Missing[bool] = Field( - default=UNSET, - description="Indicates whether projects owned by the organization or users should be excluded. from the migration.", - ) - org_metadata_only: Missing[bool] = Field( - default=UNSET, - description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", - ) - exclude: Missing[List[Literal["repositories"]]] = Field( - default=UNSET, - description="Exclude related items from being returned in the response in order to improve performance of the request.", - ) - - -model_rebuild(OrgsOrgMigrationsPostBody) - -__all__ = ("OrgsOrgMigrationsPostBody",) +class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 + + The total number of seat assignments created. + """ + + seats_created: int = Field() + + +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) 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 442fd0c33..291c94f37 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0885.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0885.py @@ -13,24 +13,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOrganizationRolesPostBody(GitHubModel): - """OrgsOrgOrganizationRolesPostBody""" +class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - 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." + selected_usernames: List[str] = Field( + min_length=1, + description="The usernames of the organization members for which to revoke access to GitHub Copilot.", ) -model_rebuild(OrgsOrgOrganizationRolesPostBody) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) -__all__ = ("OrgsOrgOrganizationRolesPostBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) 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 36fea21d7..803b279ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0886.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0886.py @@ -9,31 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOrganizationRolesRoleIdPatchBody(GitHubModel): - """OrgsOrgOrganizationRolesRoleIdPatchBody""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 + + The total number of seat assignments cancelled. + """ - name: Missing[str] = Field( - default=UNSET, description="The name of the custom role." - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description about the intended usage of this role or what permissions it grants.", - ) - permissions: Missing[List[str]] = Field( - default=UNSET, - description="A list of additional permissions included in this role.", - ) + seats_cancelled: int = Field() -model_rebuild(OrgsOrgOrganizationRolesRoleIdPatchBody) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) -__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) 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 793575830..76f03189a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0887.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0887.py @@ -9,23 +9,26 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0085 import OrganizationCustomRepositoryRole + -class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" +class OrgsOrgCustomRepositoryRolesGetResponse200(GitHubModel): + """OrgsOrgCustomRepositoryRolesGetResponse200""" - 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.", + 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(OrgsOrgOutsideCollaboratorsUsernamePutBody) +model_rebuild(OrgsOrgCustomRepositoryRolesGetResponse200) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) +__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200",) 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 dc2469b07..e04c76aa7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0888.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0888.py @@ -9,13 +9,42 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsGetResponse200""" + + total_count: int = Field() + secrets: List[OrganizationDependabotSecret] = Field() + + +class OrganizationDependabotSecret(GitHubModel): + """Dependabot Secret for an Organization + + Secrets for GitHub Dependabot for an organization. + """ + + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a secret" + ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) +model_rebuild(OrgsOrgDependabotSecretsGetResponse200) +model_rebuild(OrganizationDependabotSecret) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) +__all__ = ( + "OrgsOrgDependabotSecretsGetResponse200", + "OrganizationDependabotSecret", +) 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 343f287e2..66a73d449 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0889.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0889.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" +class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNamePutBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#get-an-organization-public-key) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." + ) + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + ) + selected_repository_ids: Missing[List[str]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + ) -model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) +model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) 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 79ab5caf5..6715d639a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0890.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0890.py @@ -9,34 +9,22 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import Annotated +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0082 import MinimalRepository -class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" - pat_request_ids: Missing[List[int]] = Field( - max_length=100, - min_length=1, - default=UNSET, - description="Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values.", - ) - action: Literal["approve", "deny"] = Field( - description="Action to apply to the 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.", - ) +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) 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 eb9596a93..d4797058d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0891.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0891.py @@ -9,28 +9,21 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import Annotated +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - action: Literal["approve", "deny"] = Field( - description="Action to apply to the request." - ) - reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( - default=UNSET, - description="Reason for approving or denying the request. Max 1024 characters.", + selected_repository_ids: List[int] = Field( + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints." ) -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) 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 297f764b9..d5f7fdb7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0892.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0892.py @@ -9,26 +9,56 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPostBody""" +class OrgsOrgHooksPostBody(GitHubModel): + """OrgsOrgHooksPostBody""" - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." + name: str = Field(description='Must be passed as "web".') + config: OrgsOrgHooksPostBodyPropConfig = Field( + description="Key/value pairs to provide settings for this webhook." ) - pat_ids: List[int] = Field( - max_length=100, - min_length=1, - description="The IDs of the fine-grained personal access tokens.", + events: Missing[List[str]] = Field( + default=UNSET, + description='Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for. Set to `["*"]` to receive all possible events.', ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) + + +class OrgsOrgHooksPostBodyPropConfig(GitHubModel): + """OrgsOrgHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str = Field(description="The URL to which the payloads will be delivered.") + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + username: Missing[str] = Field(default=UNSET) + password: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgPersonalAccessTokensPostBody) +model_rebuild(OrgsOrgHooksPostBody) +model_rebuild(OrgsOrgHooksPostBodyPropConfig) -__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) +__all__ = ( + "OrgsOrgHooksPostBody", + "OrgsOrgHooksPostBodyPropConfig", +) 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 53f6146e3..a7298f36e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0893.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0893.py @@ -9,21 +9,55 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class OrgsOrgHooksHookIdPatchBody(GitHubModel): + """OrgsOrgHooksHookIdPatchBody""" - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." + config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = Field( + default=UNSET, + description="Key/value pairs to provide settings for this webhook.", ) + events: Missing[List[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for.", + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) + name: Missing[str] = Field(default=UNSET) + + +class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): + """OrgsOrgHooksHookIdPatchBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str = Field(description="The URL to which the payloads will be delivered.") + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) +model_rebuild(OrgsOrgHooksHookIdPatchBody) +model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) +__all__ = ( + "OrgsOrgHooksHookIdPatchBody", + "OrgsOrgHooksHookIdPatchBodyPropConfig", +) 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 bc57fa609..985d78ccf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0894.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0894.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.utils import UNSET @@ -16,15 +18,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgProjectsPostBody(GitHubModel): - """OrgsOrgProjectsPostBody""" +class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): + """OrgsOrgHooksHookIdConfigPatchBody""" - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." + 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(OrgsOrgProjectsPostBody) +model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) -__all__ = ("OrgsOrgProjectsPostBody",) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) 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 95624f066..82b58fb44 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0895.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0895.py @@ -15,19 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0115 import OrgCustomProperty +from .group_0015 import Installation -class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): - """OrgsOrgPropertiesSchemaPatchBody""" +class OrgsOrgInstallationsGetResponse200(GitHubModel): + """OrgsOrgInstallationsGetResponse200""" - properties: List[OrgCustomProperty] = Field( - max_length=100, - min_length=1, - description="The array of custom properties to create or update.", - ) + total_count: int = Field() + installations: List[Installation] = Field() -model_rebuild(OrgsOrgPropertiesSchemaPatchBody) +model_rebuild(OrgsOrgInstallationsGetResponse200) -__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) +__all__ = ("OrgsOrgInstallationsGetResponse200",) 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 7ac7e92c2..17fac965f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0896.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0896.py @@ -9,44 +9,13 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import Annotated +from githubkit.compat import GitHubModel, model_rebuild -from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" + +model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) -class OrgsOrgPropertiesSchemaCustomPropertyNamePutBody(GitHubModel): - """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" - - value_type: Literal["string", "single_select"] = Field( - description="The type of the value for the property" - ) - required: Missing[bool] = Field( - default=UNSET, description="Whether the property is required." - ) - default_value: Missing[Union[str, List[str], None]] = Field( - default=UNSET, description="Default value of the property" - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the property" - ) - allowed_values: Missing[ - Union[ - Annotated[ - List[Annotated[str, Field(max_length=75)]], Field(max_length=200) - ], - None, - ] - ] = Field( - default=UNSET, - description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", - ) - - -model_rebuild(OrgsOrgPropertiesSchemaCustomPropertyNamePutBody) - -__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) 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 5344254aa..22b6534f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0897.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0897.py @@ -9,28 +9,38 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0116 import CustomPropertyValue +class OrgsOrgInvitationsPostBody(GitHubModel): + """OrgsOrgInvitationsPostBody""" -class OrgsOrgPropertiesValuesPatchBody(GitHubModel): - """OrgsOrgPropertiesValuesPatchBody""" - - repository_names: List[str] = Field( - max_length=30, - min_length=1, - description="The names of repositories that the custom property values will be applied to.", + 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.", + ) ) - properties: List[CustomPropertyValue] = Field( - description="List of custom property names and associated values to apply to the repositories." + team_ids: Missing[List[int]] = Field( + default=UNSET, + description="Specify IDs for the teams you want to invite new members to.", ) -model_rebuild(OrgsOrgPropertiesValuesPatchBody) +model_rebuild(OrgsOrgInvitationsPostBody) -__all__ = ("OrgsOrgPropertiesValuesPatchBody",) +__all__ = ("OrgsOrgInvitationsPostBody",) 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 625d7833a..2d110d104 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0898.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0898.py @@ -9,128 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from .group_0094 import Codespace -class OrgsOrgReposPostBody(GitHubModel): - """OrgsOrgReposPostBody""" - name: str = Field(description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private." - ) - visibility: Missing[Literal["public", "private", "internal"]] = Field( - default=UNSET, description="The visibility of the repository." - ) - has_issues: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable issues for this repository or `false` to disable them.", - ) - has_projects: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", - ) - has_wiki: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable the wiki for this repository or `false` to disable it.", - ) - has_downloads: Missing[bool] = Field( - default=UNSET, description="Whether downloads are enabled." - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make this repo available as a template repository or `false` to prevent it.", - ) - team_id: Missing[int] = Field( - default=UNSET, - description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", - ) - auto_init: Missing[bool] = Field( - default=UNSET, - description="Pass `true` to create an initial commit with empty README.", - ) - gitignore_template: Missing[str] = Field( - default=UNSET, - description='Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell".', - ) - license_template: Missing[str] = Field( - default=UNSET, - description='Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/enterprise-cloud@latest//articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0".', - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - 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 OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" + total_count: int = Field() + codespaces: List[Codespace] = Field() -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(OrgsOrgMembersUsernameCodespacesGetResponse200) - -model_rebuild(OrgsOrgReposPostBody) -model_rebuild(OrgsOrgReposPostBodyPropCustomProperties) - -__all__ = ( - "OrgsOrgReposPostBody", - "OrgsOrgReposPostBodyPropCustomProperties", -) +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) 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 ed6b4e822..0fda1e440 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0899.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0899.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,87 +17,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0133 import RepositoryRuleUpdate -from .group_0157 import RepositoryRuleOneof17 -from .group_0153 import RepositoryRuleWorkflows -from .group_0138 import RepositoryRulePullRequest -from .group_0129 import OrgRulesetConditionsOneof0 -from .group_0130 import OrgRulesetConditionsOneof1 -from .group_0131 import OrgRulesetConditionsOneof2 -from .group_0155 import RepositoryRuleCodeScanning -from .group_0120 import RepositoryRulesetBypassActor -from .group_0150 import RepositoryRuleTagNamePattern -from .group_0148 import RepositoryRuleBranchNamePattern -from .group_0136 import RepositoryRuleRequiredDeployments -from .group_0140 import RepositoryRuleRequiredStatusChecks -from .group_0142 import RepositoryRuleCommitMessagePattern -from .group_0146 import RepositoryRuleCommitterEmailPattern -from .group_0144 import RepositoryRuleCommitAuthorEmailPattern -from .group_0135 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory -from .group_0132 import ( - RepositoryRuleOneof14, - RepositoryRuleOneof16, - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) +class OrgsOrgMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgMembershipsUsernamePutBody""" -class OrgsOrgRulesetsPostBody(GitHubModel): - """OrgsOrgRulesetsPostBody""" - - name: str = Field(description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push"]] = Field( - default=UNSET, - description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", - ) - enforcement: Literal["disabled", "active", "evaluate"] = Field( - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page." - ) - bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[ - Union[ - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - ] - ] = Field( + role: Missing[Literal["admin", "member"]] = Field( default=UNSET, - title="Organization ruleset conditions", - description="Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", + 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.", ) - rules: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(OrgsOrgRulesetsPostBody) +model_rebuild(OrgsOrgMembershipsUsernamePutBody) -__all__ = ("OrgsOrgRulesetsPostBody",) +__all__ = ("OrgsOrgMembershipsUsernamePutBody",) 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 5eb7c50fa..7a28ea6f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0900.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0900.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Literal from pydantic import Field @@ -17,88 +17,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0133 import RepositoryRuleUpdate -from .group_0157 import RepositoryRuleOneof17 -from .group_0153 import RepositoryRuleWorkflows -from .group_0138 import RepositoryRulePullRequest -from .group_0129 import OrgRulesetConditionsOneof0 -from .group_0130 import OrgRulesetConditionsOneof1 -from .group_0131 import OrgRulesetConditionsOneof2 -from .group_0155 import RepositoryRuleCodeScanning -from .group_0120 import RepositoryRulesetBypassActor -from .group_0150 import RepositoryRuleTagNamePattern -from .group_0148 import RepositoryRuleBranchNamePattern -from .group_0136 import RepositoryRuleRequiredDeployments -from .group_0140 import RepositoryRuleRequiredStatusChecks -from .group_0142 import RepositoryRuleCommitMessagePattern -from .group_0146 import RepositoryRuleCommitterEmailPattern -from .group_0144 import RepositoryRuleCommitAuthorEmailPattern -from .group_0135 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory -from .group_0132 import ( - RepositoryRuleOneof14, - RepositoryRuleOneof16, - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) +class OrgsOrgMigrationsPostBody(GitHubModel): + """OrgsOrgMigrationsPostBody""" -class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): - """OrgsOrgRulesetsRulesetIdPutBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push"]] = 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="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", + description="Indicates whether releases should be excluded from the migration (to reduce migration archive file size).", ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( + exclude_owner_projects: Missing[bool] = 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.", + description="Indicates whether projects owned by the organization or users should be excluded. from the migration.", ) - bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( + org_metadata_only: Missing[bool] = Field( default=UNSET, - description="The actors that can bypass the rules in this ruleset", + description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", ) - conditions: Missing[ - Union[ - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - ] - ] = Field( + exclude: Missing[List[Literal["repositories"]]] = Field( default=UNSET, - title="Organization ruleset conditions", - description="Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", + description="Exclude related items from being returned in the response in order to improve performance of the request.", ) - rules: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) +model_rebuild(OrgsOrgMigrationsPostBody) -__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) +__all__ = ("OrgsOrgMigrationsPostBody",) 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 f75a38dbc..442fd0c33 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0901.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0901.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field @@ -18,40 +18,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsPostBody(GitHubModel): - """OrgsOrgTeamsPostBody""" +class OrgsOrgOrganizationRolesPostBody(GitHubModel): + """OrgsOrgOrganizationRolesPostBody""" - name: str = Field(description="The name of the team.") + name: str = Field(description="The name of the custom role.") description: Missing[str] = Field( - default=UNSET, description="The description of the team." - ) - maintainers: Missing[List[str]] = Field( - default=UNSET, - description="List GitHub IDs for organization members who will become team maintainers.", - ) - repo_names: Missing[List[str]] = Field( - default=UNSET, - description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', - ) - privacy: Missing[Literal["secret", "closed"]] = Field( - default=UNSET, - description="The level of privacy this team should have. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n * `closed` - visible to all members of this organization. \nDefault for child team: `closed`", - ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="The notification setting the team has chosen. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications. \nDefault: `notifications_enabled`", - ) - permission: Missing[Literal["pull", "push"]] = Field( default=UNSET, - description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", + description="A short description about the intended usage of this role or what permissions it grants.", ) - parent_team_id: Missing[int] = Field( - default=UNSET, description="The ID of a team to set as the parent team." + permissions: List[str] = Field( + description="A list of additional permissions included in this role." ) -model_rebuild(OrgsOrgTeamsPostBody) +model_rebuild(OrgsOrgOrganizationRolesPostBody) -__all__ = ("OrgsOrgTeamsPostBody",) +__all__ = ("OrgsOrgOrganizationRolesPostBody",) 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 f3835d246..36fea21d7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0902.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0902.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field @@ -18,32 +18,22 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugPatchBody""" +class OrgsOrgOrganizationRolesRoleIdPatchBody(GitHubModel): + """OrgsOrgOrganizationRolesRoleIdPatchBody""" - 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.", + name: Missing[str] = Field( + default=UNSET, description="The name of the custom role." ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( + description: Missing[str] = Field( default=UNSET, - description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + description="A short description about the intended usage of this role or what permissions it grants.", ) - permission: Missing[Literal["pull", "push", "admin"]] = Field( + permissions: Missing[List[str]] = Field( default=UNSET, - description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of a team to set as the parent team." + description="A list of additional permissions included in this role.", ) -model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) +model_rebuild(OrgsOrgOrganizationRolesRoleIdPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) +__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBody",) 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 02ba3ccdd..793575830 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0903.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0903.py @@ -16,17 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" - title: str = Field(description="The discussion post's title.") - body: str = Field(description="The discussion post's body text.") - private: Missing[bool] = Field( + async_: 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.", + 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(OrgsOrgTeamsTeamSlugDiscussionsPostBody) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) 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 f19071c10..dc2469b07 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0904.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0904.py @@ -9,24 +9,13 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - - title: Missing[str] = Field( - default=UNSET, description="The discussion post's title." - ) - body: Missing[str] = Field( - default=UNSET, description="The discussion post's body text." - ) +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) 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 d8f084a3e..343f287e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0905.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0905.py @@ -11,15 +11,18 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" - body: str = Field(description="The discussion comment's body text.") + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) 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 f9ed8041d..79ab5caf5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0906.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0906.py @@ -9,23 +9,34 @@ from __future__ import annotations +from typing import List, Union, Literal +from typing_extensions import Annotated + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" - body: str = Field(description="The discussion comment's body text.") + pat_request_ids: Missing[List[int]] = Field( + max_length=100, + min_length=1, + default=UNSET, + description="Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values.", + ) + action: Literal["approve", "deny"] = Field( + description="Action to apply to the requests." + ) + reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( + default=UNSET, + description="Reason for approving or denying the requests. Max 1024 characters.", + ) -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody -) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", -) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) 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 6459343b4..eb9596a93 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0907.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0907.py @@ -9,31 +9,28 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal +from typing_extensions import Annotated from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - 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." + action: Literal["approve", "deny"] = Field( + description="Action to apply to the request." + ) + reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( + default=UNSET, + description="Reason for approving or denying the request. Max 1024 characters.", ) -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) 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 1c2173ab7..297f764b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0908.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0908.py @@ -9,23 +9,26 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPostBody""" - 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." + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." + ) + pat_ids: List[int] = Field( + max_length=100, + min_length=1, + description="The IDs of the fine-grained personal access tokens.", ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild(OrgsOrgPersonalAccessTokensPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) 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 c48fb6c94..53f6146e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0909.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0909.py @@ -9,17 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugExternalGroupsPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" +class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" - group_id: int = Field(description="External Group Id") + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." + ) -model_rebuild(OrgsOrgTeamsTeamSlugExternalGroupsPatchBody) +model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) 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 6b6e99580..bc57fa609 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0910.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0910.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,14 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class OrgsOrgProjectsPostBody(GitHubModel): + """OrgsOrgProjectsPostBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." ) -model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) +model_rebuild(OrgsOrgProjectsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) +__all__ = ("OrgsOrgProjectsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0911.py b/githubkit/versions/ghec_v2022_11_28/models/group_0911.py index 3e7506639..50d2caffa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0911.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0911.py @@ -9,24 +9,25 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0119 import OrgCustomProperty -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - 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).\"", +class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): + """OrgsOrgPropertiesSchemaPatchBody""" + + properties: List[OrgCustomProperty] = Field( + max_length=100, + min_length=1, + description="The array of custom properties to create or update.", ) -model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) +model_rebuild(OrgsOrgPropertiesSchemaPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) +__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) 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 3603ad202..469f3c50f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0912.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0912.py @@ -9,6 +9,9 @@ from __future__ import annotations +from typing import List, Union, Literal +from typing_extensions import Annotated + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +19,34 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - - -model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) - -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) +class OrgsOrgPropertiesSchemaCustomPropertyNamePutBody(GitHubModel): + """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" + + value_type: Literal["string", "single_select", "multi_select", "true_false"] = ( + Field(description="The type of the value for the property") + ) + required: Missing[bool] = Field( + default=UNSET, description="Whether the property is required." + ) + default_value: Missing[Union[str, List[str], None]] = Field( + default=UNSET, description="Default value of the property" + ) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Short description of the property" + ) + allowed_values: Missing[ + Union[ + Annotated[ + List[Annotated[str, Field(max_length=75)]], Field(max_length=200) + ], + None, + ] + ] = Field( + default=UNSET, + description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", + ) + + +model_rebuild(OrgsOrgPropertiesSchemaCustomPropertyNamePutBody) + +__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",) 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 cb788d669..dcc719e4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0913.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0913.py @@ -9,22 +9,28 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0120 import CustomPropertyValue + -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class OrgsOrgPropertiesValuesPatchBody(GitHubModel): + """OrgsOrgPropertiesValuesPatchBody""" - 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.", + repository_names: List[str] = Field( + max_length=30, + min_length=1, + description="The names of repositories that the custom property values will be applied to.", + ) + properties: List[CustomPropertyValue] = Field( + description="List of custom property names and associated values to apply to the repositories." ) -model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) +model_rebuild(OrgsOrgPropertiesValuesPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) +__all__ = ("OrgsOrgPropertiesValuesPatchBody",) 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 ba1a1500d..625d7833a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0914.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0914.py @@ -9,38 +9,128 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" +class OrgsOrgReposPostBody(GitHubModel): + """OrgsOrgReposPostBody""" - groups: Missing[ - List[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems] + name: str = Field(description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private." + ) + visibility: Missing[Literal["public", "private", "internal"]] = Field( + default=UNSET, description="The visibility of the repository." + ) + has_issues: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable issues for this repository or `false` to disable them.", + ) + has_projects: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", + ) + has_wiki: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable the wiki for this repository or `false` to disable it.", + ) + has_downloads: Missing[bool] = Field( + default=UNSET, description="Whether downloads are enabled." + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make this repo available as a template repository or `false` to prevent it.", + ) + team_id: Missing[int] = Field( + default=UNSET, + description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", + ) + auto_init: Missing[bool] = Field( + default=UNSET, + description="Pass `true` to create an initial commit with empty README.", + ) + gitignore_template: Missing[str] = Field( + default=UNSET, + description='Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell".', + ) + license_template: Missing[str] = Field( + default=UNSET, + description='Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/enterprise-cloud@latest//articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0".', + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] = Field( default=UNSET, - description="The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove.", + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + custom_properties: Missing[OrgsOrgReposPostBodyPropCustomProperties] = Field( + default=UNSET, + description="The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.", ) -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems(GitHubModel): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" +class OrgsOrgReposPostBodyPropCustomProperties(ExtraGitHubModel): + """OrgsOrgReposPostBodyPropCustomProperties - 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.") + 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(OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody) -model_rebuild(OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems) +model_rebuild(OrgsOrgReposPostBody) +model_rebuild(OrgsOrgReposPostBodyPropCustomProperties) __all__ = ( - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody", - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems", + "OrgsOrgReposPostBody", + "OrgsOrgReposPostBodyPropCustomProperties", ) 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 0164cc723..d9796caa5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0915.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0915.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,16 +17,87 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0137 import RepositoryRuleUpdate +from .group_0161 import RepositoryRuleOneof17 +from .group_0157 import RepositoryRuleWorkflows +from .group_0142 import RepositoryRulePullRequest +from .group_0133 import OrgRulesetConditionsOneof0 +from .group_0134 import OrgRulesetConditionsOneof1 +from .group_0135 import OrgRulesetConditionsOneof2 +from .group_0159 import RepositoryRuleCodeScanning +from .group_0124 import RepositoryRulesetBypassActor +from .group_0154 import RepositoryRuleTagNamePattern +from .group_0152 import RepositoryRuleBranchNamePattern +from .group_0140 import RepositoryRuleRequiredDeployments +from .group_0144 import RepositoryRuleRequiredStatusChecks +from .group_0146 import RepositoryRuleCommitMessagePattern +from .group_0150 import RepositoryRuleCommitterEmailPattern +from .group_0148 import RepositoryRuleCommitAuthorEmailPattern +from .group_0139 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory +from .group_0136 import ( + RepositoryRuleOneof14, + RepositoryRuleOneof16, + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): - """OrgsOrgSecurityProductEnablementPostBody""" - query_suite: Missing[Literal["default", "extended"]] = Field( +class OrgsOrgRulesetsPostBody(GitHubModel): + """OrgsOrgRulesetsPostBody""" + + name: str = Field(description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push"]] = Field( + default=UNSET, + description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", + ) + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page." + ) + bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[ + Union[ + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + ] + ] = Field( default=UNSET, - description="CodeQL query suite to be used. If you specify the `query_suite` parameter, the default setup will be configured with this query suite only on all repositories that didn't have default setup already configured. It will not change the query suite on repositories that already have default setup configured.\nIf you don't specify any `query_suite` in your request, the preferred query suite of the organization will be applied.", + title="Organization ruleset conditions", + description="Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", ) + rules: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(OrgsOrgSecurityProductEnablementPostBody) +model_rebuild(OrgsOrgRulesetsPostBody) -__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) +__all__ = ("OrgsOrgRulesetsPostBody",) 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 8e85c1489..ea2cf2c91 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0916.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0916.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import List, Union, Literal from pydantic import Field @@ -17,15 +17,88 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0137 import RepositoryRuleUpdate +from .group_0161 import RepositoryRuleOneof17 +from .group_0157 import RepositoryRuleWorkflows +from .group_0142 import RepositoryRulePullRequest +from .group_0133 import OrgRulesetConditionsOneof0 +from .group_0134 import OrgRulesetConditionsOneof1 +from .group_0135 import OrgRulesetConditionsOneof2 +from .group_0159 import RepositoryRuleCodeScanning +from .group_0124 import RepositoryRulesetBypassActor +from .group_0154 import RepositoryRuleTagNamePattern +from .group_0152 import RepositoryRuleBranchNamePattern +from .group_0140 import RepositoryRuleRequiredDeployments +from .group_0144 import RepositoryRuleRequiredStatusChecks +from .group_0146 import RepositoryRuleCommitMessagePattern +from .group_0150 import RepositoryRuleCommitterEmailPattern +from .group_0148 import RepositoryRuleCommitAuthorEmailPattern +from .group_0139 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory +from .group_0136 import ( + RepositoryRuleOneof14, + RepositoryRuleOneof16, + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdDeleteResponse403""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[List[str]] = Field(default=UNSET) +class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): + """OrgsOrgRulesetsRulesetIdPutBody""" + name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push"]] = Field( + default=UNSET, + description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", + ) + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( + default=UNSET, + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page.", + ) + 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. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", + ) + rules: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) +model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) + +__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) 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 6ff9e974c..f75a38dbc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0917.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0917.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import List, Literal from pydantic import Field @@ -18,17 +18,40 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): - """ProjectsColumnsCardsCardIdPatchBody""" +class OrgsOrgTeamsPostBody(GitHubModel): + """OrgsOrgTeamsPostBody""" - note: Missing[Union[str, None]] = Field( - default=UNSET, description="The project card's note" + name: str = Field(description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." ) - archived: Missing[bool] = Field( - default=UNSET, description="Whether or not the card is archived" + maintainers: Missing[List[str]] = Field( + default=UNSET, + description="List GitHub IDs for organization members who will become team maintainers.", + ) + repo_names: Missing[List[str]] = Field( + default=UNSET, + description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', + ) + privacy: Missing[Literal["secret", "closed"]] = Field( + default=UNSET, + description="The level of privacy this team should have. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n * `closed` - visible to all members of this organization. \nDefault for child team: `closed`", + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications. \nDefault: `notifications_enabled`", + ) + permission: Missing[Literal["pull", "push"]] = Field( + default=UNSET, + description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[int] = Field( + default=UNSET, description="The ID of a team to set as the parent team." ) -model_rebuild(ProjectsColumnsCardsCardIdPatchBody) +model_rebuild(OrgsOrgTeamsPostBody) -__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) +__all__ = ("OrgsOrgTeamsPostBody",) 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 d9c5ebe68..f3835d246 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 Union, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,19 +18,32 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugPatchBody""" - position: str = Field( - pattern="^(?:top|bottom|after:\\d+)$", - description="The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.", + name: 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.", ) - column_id: Missing[int] = Field( + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( default=UNSET, - description="The unique identifier of the column the card should be moved to", + description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + ) + permission: Missing[Literal["pull", "push", "admin"]] = Field( + default=UNSET, + description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of a team to set as the parent team." ) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) 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 7d3245c63..02ba3ccdd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0919.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0919.py @@ -9,13 +9,24 @@ from __future__ import annotations +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" + + title: str = Field(description="The discussion post's title.") + body: str = Field(description="The discussion post's body text.") + private: Missing[bool] = Field( + default=UNSET, + description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", + ) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) 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 97fe55aa9..f19071c10 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0920.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0920.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,29 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] - ] = Field(default=UNSET) - - -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - resource: Missing[str] = Field(default=UNSET) - field: Missing[str] = Field(default=UNSET) + 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(ProjectsColumnsCardsCardIdMovesPostResponse403) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403", - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) 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 2a0dcefa7..d8f084a3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0921.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0921.py @@ -9,37 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostResponse503(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" - - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems] - ] = Field(default=UNSET) - - -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503", - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) 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 e6f9395a8..f9ed8041d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0922.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0922.py @@ -14,12 +14,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdPatchBody(GitHubModel): - """ProjectsColumnsColumnIdPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( + GitHubModel +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - name: str = Field(description="Name of the project column") + body: str = Field(description="The discussion comment's body text.") -model_rebuild(ProjectsColumnsColumnIdPatchBody) +model_rebuild( + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody +) -__all__ = ("ProjectsColumnsColumnIdPatchBody",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", +) 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 17db0e859..6459343b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0923.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0923.py @@ -9,19 +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 -class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ - note: Union[str, None] = Field(description="The project card's note") + 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(ProjectsColumnsColumnIdCardsPostBodyOneof0) +model_rebuild( + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", +) 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 78dbfee00..1c2173ab7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0924.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0924.py @@ -9,22 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" - 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" + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion." ) -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) 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 090a030ce..c48fb6c94 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0925.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0925.py @@ -9,37 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdCardsPostResponse503(GitHubModel): - """ProjectsColumnsColumnIdCardsPostResponse503""" - - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems] - ] = Field(default=UNSET) - - -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" +class OrgsOrgTeamsTeamSlugExternalGroupsPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) + group_id: int = Field(description="External Group Id") -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503) -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) +model_rebuild(OrgsOrgTeamsTeamSlugExternalGroupsPatchBody) -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503", - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", -) +__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBody",) 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 003392298..6b6e99580 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0926.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0926.py @@ -9,20 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdMovesPostBody(GitHubModel): - """ProjectsColumnsColumnIdMovesPostBody""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - 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.", + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." ) -model_rebuild(ProjectsColumnsColumnIdMovesPostBody) +model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) -__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) 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 6009bdb4e..3e7506639 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0927.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0927.py @@ -9,13 +9,24 @@ from __future__ import annotations +from typing import Literal + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsColumnIdMovesPostResponse201""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" + + 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(ProjectsColumnsColumnIdMovesPostResponse201) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) 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 8185d7ede..3603ad202 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0928.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0928.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,14 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdDeleteResponse403(GitHubModel): - """ProjectsProjectIdDeleteResponse403""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" message: Missing[str] = Field(default=UNSET) documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[List[str]] = Field(default=UNSET) -model_rebuild(ProjectsProjectIdDeleteResponse403) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) -__all__ = ("ProjectsProjectIdDeleteResponse403",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) 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 b66b14460..cb788d669 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0929.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0929.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,26 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdPatchBody(GitHubModel): - """ProjectsProjectIdPatchBody""" +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - name: Missing[str] = Field(default=UNSET, description="Name of the project") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the project" - ) - state: Missing[str] = Field( - default=UNSET, description="State of the project; either 'open' or 'closed'" - ) - organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( - default=UNSET, - description="The baseline permission that all organization members have on this project", - ) - private: Missing[bool] = Field( + permission: Missing[str] = Field( default=UNSET, - description="Whether or not this project can be seen by everyone.", + 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(ProjectsProjectIdPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) -__all__ = ("ProjectsProjectIdPatchBody",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) 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 5a474d68b..ba1a1500d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0930.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0930.py @@ -18,14 +18,29 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdPatchResponse403(GitHubModel): - """ProjectsProjectIdPatchResponse403""" +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[List[str]] = Field(default=UNSET) + groups: Missing[ + List[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems] + ] = Field( + default=UNSET, + description="The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove.", + ) -model_rebuild(ProjectsProjectIdPatchResponse403) +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems(GitHubModel): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" -__all__ = ("ProjectsProjectIdPatchResponse403",) + 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_0931.py b/githubkit/versions/ghec_v2022_11_28/models/group_0931.py index a5695c5c0..0164cc723 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0931.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0931.py @@ -18,14 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): + """OrgsOrgSecurityProductEnablementPostBody""" - permission: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, description="The permission to grant the collaborator." + query_suite: Missing[Literal["default", "extended"]] = Field( + default=UNSET, + description="CodeQL query suite to be used. If you specify the `query_suite` parameter, the default setup will be configured with this query suite only on all repositories that didn't have default setup already configured. It will not change the query suite on repositories that already have default setup configured.\nIf you don't specify any `query_suite` in your request, the preferred query suite of the organization will be applied.", ) -model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) +model_rebuild(OrgsOrgSecurityProductEnablementPostBody) -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) +__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) 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 e33e0910d..8e85c1489 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0932.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0932.py @@ -9,17 +9,23 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdColumnsPostBody(GitHubModel): - """ProjectsProjectIdColumnsPostBody""" +class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdDeleteResponse403""" - name: str = Field(description="Name of the project column") + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[List[str]] = Field(default=UNSET) -model_rebuild(ProjectsProjectIdColumnsPostBody) +model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) -__all__ = ("ProjectsProjectIdColumnsPostBody",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) 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 f4e118c4e..6ff9e974c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0933.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0933.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDeleteResponse403(GitHubModel): - """ReposOwnerRepoDeleteResponse403""" +class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): + """ProjectsColumnsCardsCardIdPatchBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[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(ReposOwnerRepoDeleteResponse403) +model_rebuild(ProjectsColumnsCardsCardIdPatchBody) -__all__ = ("ReposOwnerRepoDeleteResponse403",) +__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) 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 fa6e0df52..d9c5ebe68 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0934.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0934.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,230 +16,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPatchBody(GitHubModel): - """ReposOwnerRepoPatchBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/enterprise-cloud@latest//articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", - ) - visibility: Missing[Literal["public", "private", "internal"]] = Field( - default=UNSET, description="The visibility of the repository." - ) - security_and_analysis: Missing[ - Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, None] - ] = Field( - default=UNSET, - description='Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.', - ) - has_issues: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable issues for this repository or `false` to disable them.", - ) - has_projects: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", - ) - has_wiki: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable the wiki for this repository or `false` to disable it.", - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make this repo available as a template repository or `false` to prevent it.", - ) - default_branch: Missing[str] = Field( - default=UNSET, description="Updates the default branch for this repository." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - archived: Missing[bool] = Field( - default=UNSET, - description="Whether to archive this repository. `false` will unarchive a previously archived repository.", - ) - allow_forking: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow private forks, or `false` to prevent private forks.", - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.", - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysis(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis - - Specify which security and analysis features to enable or disable for the - repository. +class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostBody""" - 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)."', + 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.", ) - secret_scanning: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - ] = Field( + column_id: Missing[int] = 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_validity_checks: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks - ] = Field( - default=UNSET, - description="Use the `status` property to enable or disable secret scanning automatic validity checks on supported partner tokens for this repository.", - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - - Use the `status` property to enable or disable secret scanning for this - repository. For more information, see "[About secret scanning](/code- - security/secret-security/about-secret-scanning)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks - - Use the `status` property to enable or disable secret scanning automatic - validity checks on supported partner tokens for this repository. - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." + description="The unique identifier of the column the card should be moved to", ) -model_rebuild(ReposOwnerRepoPatchBody) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection -) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks -) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) -__all__ = ( - "ReposOwnerRepoPatchBody", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks", -) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) 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 c98f5c453..7d3245c63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0935.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0935.py @@ -9,22 +9,13 @@ from __future__ import annotations -from typing import List - -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from .group_0177 import Artifact - - -class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsArtifactsGetResponse200""" - total_count: int = Field() - artifacts: List[Artifact] = Field() +class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" -model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) 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 4b45f9286..97fe55aa9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0936.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0936.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET @@ -16,14 +18,29 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" +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""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." - ) + 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(ReposOwnerRepoActionsJobsJobIdRerunPostBody) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403", + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", +) 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 7f44831d4..2a0dcefa7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0937.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0937.py @@ -18,21 +18,28 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): - """Actions OIDC subject customization for a repository +class ProjectsColumnsCardsCardIdMovesPostResponse503(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse503""" - Actions OIDC subject customization for a repository - """ + 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) - use_default: bool = Field( - description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." - ) - include_claim_keys: Missing[List[str]] = Field( - default=UNSET, - description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", - ) +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" -model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) + +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse503", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", +) 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 ca77a3449..e6f9395a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0938.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0938.py @@ -9,22 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0181 import ActionsSecret - -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" +class ProjectsColumnsColumnIdPatchBody(GitHubModel): + """ProjectsColumnsColumnIdPatchBody""" - total_count: int = Field() - secrets: List[ActionsSecret] = Field() + name: str = Field(description="Name of the project column") -model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) +model_rebuild(ProjectsColumnsColumnIdPatchBody) -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) +__all__ = ("ProjectsColumnsColumnIdPatchBody",) 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 4f26014f1..17db0e859 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0939.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0939.py @@ -9,22 +9,19 @@ from __future__ import annotations -from typing import List +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0182 import ActionsVariable +class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + note: Union[str, None] = Field(description="The project card's note") - total_count: int = Field() - variables: List[ActionsVariable] = Field() +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) -model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) - -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) 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 cd92079a4..78dbfee00 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0940.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0940.py @@ -9,27 +9,22 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): - """ReposOwnerRepoActionsPermissionsPutBody""" +class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" - enabled: bool = Field( - description="Whether GitHub Actions is enabled on the repository." + content_id: int = Field( + description="The unique identifier of the content associated with the card" ) - 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.", + content_type: str = Field( + description="The piece of content associated with the card" ) -model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) -__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) 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 0eada8df4..090a030ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0941.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0941.py @@ -13,18 +13,33 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0034 import Runner +class ProjectsColumnsColumnIdCardsPostResponse503(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503""" -class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunnersGetResponse200""" + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[ + List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems] + ] = Field(default=UNSET) - total_count: int = Field() - runners: List[Runner] = Field() +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" -model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) + +model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503) +model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) + +__all__ = ( + "ProjectsColumnsColumnIdCardsPostResponse503", + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", +) 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 c091701cc..003392298 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0942.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0942.py @@ -9,33 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" +class ProjectsColumnsColumnIdMovesPostBody(GitHubModel): + """ProjectsColumnsColumnIdMovesPostBody""" - name: str = Field(description="The name of the new runner.") - runner_group_id: int = Field( - description="The ID of the runner group to register the runner to." - ) - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", - ) - work_folder: Missing[str] = Field( - default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", + position: str = Field( + pattern="^(?:first|last|after:\\d+)$", + description="The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.", ) -model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) +model_rebuild(ProjectsColumnsColumnIdMovesPostBody) -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) +__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) 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 47ec574ee..6009bdb4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0943.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0943.py @@ -9,22 +9,13 @@ from __future__ import annotations -from typing import List - -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" - - labels: List[str] = Field( - max_length=100, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", - ) +class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsColumnIdMovesPostResponse201""" -model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) 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 f0573dca7..8185d7ede 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0944.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0944.py @@ -13,19 +13,19 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" +class ProjectsProjectIdDeleteResponse403(GitHubModel): + """ProjectsProjectIdDeleteResponse403""" - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[List[str]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) +model_rebuild(ProjectsProjectIdDeleteResponse403) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) +__all__ = ("ProjectsProjectIdDeleteResponse403",) 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 31242ae1b..b66b14460 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0945.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0945.py @@ -9,22 +9,35 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0187 import WorkflowRun +class ProjectsProjectIdPatchBody(GitHubModel): + """ProjectsProjectIdPatchBody""" -class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsGetResponse200""" + 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.", + ) - total_count: int = Field() - workflow_runs: List[WorkflowRun] = Field() +model_rebuild(ProjectsProjectIdPatchBody) -model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) +__all__ = ("ProjectsProjectIdPatchBody",) 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 1ace061a7..5a474d68b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0946.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0946.py @@ -13,18 +13,19 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0177 import Artifact +class ProjectsProjectIdPatchResponse403(GitHubModel): + """ProjectsProjectIdPatchResponse403""" -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[List[str]] = Field(default=UNSET) - total_count: int = Field() - artifacts: List[Artifact] = Field() +model_rebuild(ProjectsProjectIdPatchResponse403) -model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) +__all__ = ("ProjectsProjectIdPatchResponse403",) 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 6145e371d..a5695c5c0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0947.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0947.py @@ -9,24 +9,23 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0179 import Job +class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( - GitHubModel -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, description="The permission to grant the collaborator." + ) - total_count: int = Field() - jobs: List[Job] = Field() +model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) -model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) 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 894d94584..e33e0910d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0948.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0948.py @@ -9,22 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0179 import Job - -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" +class ProjectsProjectIdColumnsPostBody(GitHubModel): + """ProjectsProjectIdColumnsPostBody""" - total_count: int = Field() - jobs: List[Job] = Field() + name: str = Field(description="Name of the project column") -model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) +model_rebuild(ProjectsProjectIdColumnsPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) +__all__ = ("ProjectsProjectIdColumnsPostBody",) 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 d62931f9a..f4e118c4e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0949.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0949.py @@ -9,25 +9,20 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" +class ReposOwnerRepoDeleteResponse403(GitHubModel): + """ReposOwnerRepoDeleteResponse403""" - 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") + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) +model_rebuild(ReposOwnerRepoDeleteResponse403) -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) +__all__ = ("ReposOwnerRepoDeleteResponse403",) 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 28385e889..c059c9845 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0950.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0950.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,14 +18,257 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ReposOwnerRepoPatchBody(GitHubModel): + """ReposOwnerRepoPatchBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/enterprise-cloud@latest//articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", + ) + visibility: Missing[Literal["public", "private", "internal"]] = Field( + default=UNSET, description="The visibility of the repository." + ) + security_and_analysis: Missing[ + Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, None] + ] = Field( + default=UNSET, + description='Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.', + ) + has_issues: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable issues for this repository or `false` to disable them.", + ) + has_projects: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", + ) + has_wiki: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable the wiki for this repository or `false` to disable it.", + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make this repo available as a template repository or `false` to prevent it.", + ) + default_branch: Missing[str] = Field( + default=UNSET, description="Updates the default branch for this repository." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + archived: Missing[bool] = Field( + default=UNSET, + description="Whether to archive this repository. `false` will unarchive a previously archived repository.", + ) + allow_forking: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow private forks, or `false` to prevent private forks.", + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.", + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysis(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis + + Specify which security and analysis features to enable or disable for the + repository. + + To use this parameter, you must have admin permissions for the repository or be + an owner or security manager for the organization that owns the repository. For + more information, see "[Managing security managers in your + organization](https://docs.github.com/enterprise- + cloud@latest//organizations/managing-peoples-access-to-your-organization-with- + roles/managing-security-managers-in-your-organization)." + + For example, to enable GitHub Advanced Security, use this data in the body of + the `PATCH` request: + `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. + + You can check which security and analysis features are currently enabled by + using a `GET /repos/{owner}/{repo}` request. + """ + + advanced_security: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)."', + ) + secret_scanning: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)."', + ) + secret_scanning_push_protection: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', + ) + secret_scanning_non_provider_patterns: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Secret scanning supported secrets](/code-security/secret-scanning/secret-scanning-patterns#supported-secrets)."', + ) + secret_scanning_validity_checks: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks + ] = Field( + default=UNSET, + description="Use the `status` property to enable or disable secret scanning automatic validity checks on supported partner tokens for this repository.", + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + + Use the `status` property to enable or disable GitHub Advanced Security for this + repository. For more information, see "[About GitHub Advanced + Security](/github/getting-started-with-github/learning-about-github/about- + github-advanced-security)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + + Use the `status` property to enable or disable secret scanning for this + repository. For more information, see "[About secret scanning](/code- + security/secret-security/about-secret-scanning)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + + Use the `status` property to enable or disable secret scanning push protection + for this repository. For more information, see "[Protecting pushes with secret + scanning](/code-security/secret-scanning/protecting-pushes-with-secret- + scanning)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns + + Use the `status` property to enable or disable secret scanning non-provider + patterns for this repository. For more information, see "[Secret scanning + supported secrets](/code-security/secret-scanning/secret-scanning- + patterns#supported-secrets)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks + + Use the `status` property to enable or disable secret scanning automatic + validity checks on supported partner tokens for this repository. + """ - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." ) -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) +model_rebuild(ReposOwnerRepoPatchBody) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection +) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns +) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks +) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) +__all__ = ( + "ReposOwnerRepoPatchBody", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks", +) 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 c79dac58f..18ca3ff49 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0951.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0951.py @@ -9,21 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0181 import Artifact + -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" +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(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) +model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) 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 f963fc2e2..4b45f9286 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0952.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0952.py @@ -9,22 +9,21 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0181 import ActionsSecret - -class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsSecretsGetResponse200""" +class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - total_count: int = Field() - secrets: List[ActionsSecret] = Field() + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." + ) -model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) +model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) 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 e1968472d..7f44831d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0953.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0953.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET @@ -16,19 +18,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): + """Actions OIDC subject customization for a repository - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-a-repository-public-key) endpoint.", + 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." ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + 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(ReposOwnerRepoActionsSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) 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 54509b4a2..6dca7036f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0954.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0954.py @@ -15,16 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0182 import ActionsVariable +from .group_0185 import ActionsSecret -class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsVariablesGetResponse200""" +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" total_count: int = Field() - variables: List[ActionsVariable] = Field() + secrets: List[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) +model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) 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 bf9209ee5..a03bae057 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0955.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0955.py @@ -9,18 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0186 import ActionsVariable + -class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): - """ReposOwnerRepoActionsVariablesPostBody""" +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" - 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(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) -__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) 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 f0b922c41..cd92079a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0956.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0956.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoActionsVariablesNamePatchBody""" +class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): + """ReposOwnerRepoActionsPermissionsPutBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + 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(ReposOwnerRepoActionsVariablesNamePatchBody) +model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) 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 d5193e37e..0eada8df4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0957.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0957.py @@ -9,48 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0034 import Runner -class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" - total_count: int = Field() - workflows: List[Workflow] = Field() - - -class Workflow(GitHubModel): - """Workflow +class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunnersGetResponse200""" - A GitHub Actions workflow - """ - - id: int = Field() - node_id: str = Field() - name: str = Field() - path: str = Field() - state: Literal[ - "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" - ] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - url: str = Field() - html_url: str = Field() - badge_url: str = Field() - deleted_at: Missing[datetime] = Field(default=UNSET) + total_count: int = Field() + runners: List[Runner] = Field() -model_rebuild(ReposOwnerRepoActionsWorkflowsGetResponse200) -model_rebuild(Workflow) +model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) -__all__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200", - "Workflow", -) +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) 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 506702767..c091701cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0958.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0958.py @@ -9,42 +9,33 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" - ref: str = Field( - description="The git reference for the workflow. The reference can be a branch or tag name." + name: str = Field(description="The name of the new runner.") + runner_group_id: int = Field( + description="The ID of the runner group to register the runner to." + ) + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", ) - inputs: Missing[ - ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - ] = Field( + work_folder: Missing[str] = 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.", + description="The working directory to be used for job execution, relative to the runner install directory.", ) -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( - ExtraGitHubModel -): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - - Input keys and values configured in the workflow file. The maximum number of - properties is 10. Any default properties configured in the workflow file will be - used when `inputs` are omitted. - """ - - -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) +model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) -__all__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", -) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) 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 db9d676ea..47ec574ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0959.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0959.py @@ -15,16 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0187 import WorkflowRun +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + labels: List[str] = Field( + max_length=100, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + ) - total_count: int = Field() - workflow_runs: List[WorkflowRun] = Field() +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) 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 171e026b6..f0573dca7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0960.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0960.py @@ -9,28 +9,23 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoAutolinksPostBody(GitHubModel): - """ReposOwnerRepoAutolinksPostBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - key_prefix: str = Field( - description="This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit." - ) - url_template: str = Field( - description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." - ) - is_alphanumeric: Missing[bool] = Field( - default=UNSET, - description="Whether this autolink reference matches alphanumeric characters. If true, the `` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters.", + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner.", ) -model_rebuild(ReposOwnerRepoAutolinksPostBody) +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("ReposOwnerRepoAutolinksPostBody",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) 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 37533ed53..d3f7dc5e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0961.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0961.py @@ -9,227 +9,22 @@ from __future__ import annotations -from typing import List, Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0191 import WorkflowRun -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 ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsGetResponse200""" + total_count: int = Field() + workflow_runs: List[WorkflowRun] = Field() -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks - Require status checks to pass before merging. Set to `null` to disable. - """ +model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) - strict: bool = Field( - description="Require branches to be up to date before merging." - ) - contexts: List[str] = Field( - description="**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n" - ) - checks: Missing[ - List[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems - ] - ] = Field( - default=UNSET, - description="The list of status checks to require in order to merge into this branch.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI - tems - """ - - context: str = Field(description="The name of the required check") - app_id: Missing[int] = Field( - default=UNSET, - description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews - - Require at least one approving review on a pull request, before merging. Set to - `null` to disable. - """ - - dismissal_restrictions: Missing[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions - ] = Field( - default=UNSET, - description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", - ) - dismiss_stale_reviews: Missing[bool] = Field( - default=UNSET, - description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", - ) - require_code_owner_reviews: Missing[bool] = Field( - default=UNSET, - description="Blocks merging pull requests until [code owners](https://docs.github.com/enterprise-cloud@latest//articles/about-code-owners/) review them.", - ) - required_approving_review_count: Missing[int] = Field( - default=UNSET, - description="Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", - ) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`.", - ) - bypass_pull_request_allowances: Missing[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD - ismissalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: Missing[List[str]] = Field( - default=UNSET, description="The list of user `login`s with dismissal access" - ) - teams: Missing[List[str]] = Field( - default=UNSET, description="The list of team `slug`s with dismissal access" - ) - apps: Missing[List[str]] = Field( - default=UNSET, description="The list of app `slug`s with dismissal access" - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB - ypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: Missing[List[str]] = Field( - default=UNSET, - description="The list of user `login`s allowed to bypass pull request requirements.", - ) - teams: Missing[List[str]] = Field( - default=UNSET, - description="The list of team `slug`s allowed to bypass pull request requirements.", - ) - apps: Missing[List[str]] = Field( - default=UNSET, - description="The list of app `slug`s allowed to bypass pull request requirements.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - - Restrict who can push to the protected branch. User, app, and team - `restrictions` are only available for organization-owned repositories. Set to - `null` to disable. - """ - - 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( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances -) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBody", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", -) +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) 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 bf12fcce1..cb84fe4d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0962.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0962.py @@ -13,102 +13,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0181 import Artifact -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - dismissal_restrictions: Missing[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions - ] = Field( - default=UNSET, - description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", - ) - dismiss_stale_reviews: Missing[bool] = Field( - default=UNSET, - description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", - ) - require_code_owner_reviews: Missing[bool] = Field( - default=UNSET, - description="Blocks merging pull requests until [code owners](https://docs.github.com/enterprise-cloud@latest//articles/about-code-owners/) have reviewed.", - ) - required_approving_review_count: Missing[int] = Field( - default=UNSET, - description="Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", - ) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`", - ) - bypass_pull_request_allowances: Missing[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", - ) +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + total_count: int = Field() + artifacts: List[Artifact] = Field() -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ +model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) - users: Missing[List[str]] = Field( - default=UNSET, description="The list of user `login`s with dismissal access" - ) - teams: Missing[List[str]] = Field( - default=UNSET, description="The list of team `slug`s with dismissal access" - ) - apps: Missing[List[str]] = Field( - default=UNSET, description="The list of app `slug`s with dismissal access" - ) - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: Missing[List[str]] = Field( - default=UNSET, - description="The list of user `login`s allowed to bypass pull request requirements.", - ) - teams: Missing[List[str]] = Field( - default=UNSET, - description="The list of team `slug`s allowed to bypass pull request requirements.", - ) - apps: Missing[List[str]] = Field( - default=UNSET, - description="The list of app `slug`s allowed to bypass pull request requirements.", - ) - - -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances -) - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) 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 2c40acb3b..9d96c9e96 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0963.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0963.py @@ -13,51 +13,20 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0183 import Job -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - strict: Missing[bool] = Field( - default=UNSET, description="Require branches to be up to date before merging." - ) - contexts: Missing[List[str]] = Field( - default=UNSET, - description="**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n", - ) - checks: Missing[ - List[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems - ] - ] = Field( - default=UNSET, - description="The list of status checks to require in order to merge into this branch.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms - """ - - context: str = Field(description="The name of the required check") - app_id: Missing[int] = Field( - default=UNSET, - description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", - ) - - -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems -) - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", -) + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" + + total_count: int = Field() + jobs: List[Job] = Field() + + +model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) 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 39635099b..552cd35bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0964.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0964.py @@ -15,23 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0183 import Job -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" - contexts: List[str] = Field(description="The name of the status checks") + total_count: int = Field() + jobs: List[Job] = Field() -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 -) +model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) 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 f699ea725..d62931f9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0965.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0965.py @@ -9,29 +9,25 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - Examples: - {'contexts': ['contexts']} - """ + 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") - contexts: List[str] = Field(description="The name of the status checks") +model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 -) - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) 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 0a6816433..28385e889 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0966.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0966.py @@ -9,30 +9,21 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 - - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - contexts: List[str] = Field(description="The name of the status checks") + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." + ) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 -) +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) 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 661488f46..c79dac58f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0967.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0967.py @@ -9,25 +9,21 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 - - Examples: - {'apps': ['my-app']} - """ +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - 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." + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0) +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) 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 04feeadfe..3644fa6ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0968.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0968.py @@ -15,19 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0185 import ActionsSecret -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 - Examples: - {'apps': ['my-app']} - """ +class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsSecretsGetResponse200""" - apps: List[str] = Field( - description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." - ) + total_count: int = Field() + secrets: List[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0) +model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) 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 f44772a3b..e1968472d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0969.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0969.py @@ -9,27 +9,26 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 - - Examples: - {'apps': ['my-app']} - """ +class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - apps: List[str] = Field( - description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-a-repository-public-key) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0",) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) 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 1f7be7c63..cf5392f75 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0970.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0970.py @@ -15,17 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0186 import ActionsVariable -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 - Examples: - {'teams': ['justice-league']} - """ +class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsVariablesGetResponse200""" - teams: List[str] = Field(description="The slug values for teams") + total_count: int = Field() + variables: List[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) +model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) 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 cad6d2023..bf9209ee5 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0971.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0971.py @@ -9,25 +9,18 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 - - Examples: - {'teams': ['my-team']} - """ +class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): + """ReposOwnerRepoActionsVariablesPostBody""" - teams: List[str] = Field(description="The slug values for teams") + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) +model_rebuild(ReposOwnerRepoActionsVariablesPostBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) 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 a92d25c56..f0b922c41 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0972.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0972.py @@ -9,25 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 - - Examples: - {'teams': ['my-team']} - """ +class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoActionsVariablesNamePatchBody""" - teams: List[str] = Field(description="The slug values for teams") + 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(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) 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 1c399dbec..d5193e37e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0973.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0973.py @@ -9,23 +9,48 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 +class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" - Examples: - {'users': ['mona']} - """ + total_count: int = Field() + workflows: List[Workflow] = Field() - users: List[str] = Field(description="The username for users") +class Workflow(GitHubModel): + """Workflow -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0) + A GitHub Actions workflow + """ -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0",) + id: int = Field() + node_id: str = Field() + name: str = Field() + path: str = Field() + state: Literal[ + "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" + ] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + url: str = Field() + html_url: str = Field() + badge_url: str = Field() + deleted_at: Missing[datetime] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoActionsWorkflowsGetResponse200) +model_rebuild(Workflow) + +__all__ = ( + "ReposOwnerRepoActionsWorkflowsGetResponse200", + "Workflow", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0974.py b/githubkit/versions/ghec_v2022_11_28/models/group_0974.py index 669ca7afa..506702767 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0974.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0974.py @@ -9,25 +9,42 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + + +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" + 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 ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0( - GitHubModel + +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( + ExtraGitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - Examples: - {'users': ['mona']} + 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. """ - users: List[str] = Field(description="The username for users") - -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0",) +__all__ = ( + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", +) 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 4fc86a736..1e64f0b6b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0975.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0975.py @@ -15,19 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0191 import WorkflowRun -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 - Examples: - {'users': ['mona']} - """ +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" - users: List[str] = Field(description="The username for users") + total_count: int = Field() + workflow_runs: List[WorkflowRun] = Field() -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0",) +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) 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 5fcd45c02..d40211dee 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0976.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0976.py @@ -11,15 +11,55 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoAttestationsPostBody(GitHubModel): + """ReposOwnerRepoAttestationsPostBody""" - new_name: str = Field(description="The new name of the branch.") + bundle: ReposOwnerRepoAttestationsPostBodyPropBundle = Field( + description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information." + ) -model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) +class ReposOwnerRepoAttestationsPostBodyPropBundle(GitHubModel): + """ReposOwnerRepoAttestationsPostBodyPropBundle -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial + ] = Field(default=UNSET, alias="verificationMaterial") + dsse_envelope: Missing[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope + ] = Field(default=UNSET, alias="dsseEnvelope") + + +class ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial( + ExtraGitHubModel +): + """ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial""" + + +class ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope(ExtraGitHubModel): + """ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope""" + + +model_rebuild(ReposOwnerRepoAttestationsPostBody) +model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundle) +model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial) +model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope) + +__all__ = ( + "ReposOwnerRepoAttestationsPostBody", + "ReposOwnerRepoAttestationsPostBodyPropBundle", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0977.py b/githubkit/versions/ghec_v2022_11_28/models/group_0977.py index 0746e9073..2a363197c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0977.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0977.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,108 +16,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsPostBodyPropOutput(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutput - - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ - - title: str = Field(description="The title of the check run.") - summary: str = Field( - max_length=65535, - description="The summary of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", - ) - text: Missing[str] = Field( - max_length=65535, - default=UNSET, - description="The details of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", - ) - annotations: Missing[ - List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems] - ] = Field( - max_length=50, - default=UNSET, - description='Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about how you can view annotations on GitHub, see "[About status checks](https://docs.github.com/enterprise-cloud@latest//articles/about-status-checks#checks)".', - ) - images: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems]] = ( - Field( - default=UNSET, - description="Adds images to the output displayed in the GitHub pull request UI.", - ) - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" - - path: str = Field( - description="The path of the file to add an annotation to. For example, `assets/css/main.css`." - ) - start_line: int = Field( - description="The start line of the annotation. Line numbers start at 1." - ) - end_line: int = Field(description="The end line of the annotation.") - start_column: Missing[int] = Field( - default=UNSET, - description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", - ) - end_column: Missing[int] = Field( - default=UNSET, - description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", - ) - annotation_level: Literal["notice", "warning", "failure"] = Field( - description="The level of the annotation." - ) - message: str = Field( - description="A short description of the feedback for these lines of code. The maximum size is 64 KB." - ) - title: Missing[str] = Field( - default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", - ) - raw_details: Missing[str] = Field( - default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" - - alt: str = Field(description="The alternative text for the image.") - image_url: str = Field(description="The full URL of the image.") - caption: Missing[str] = Field( - default=UNSET, description="A short image description." - ) - - -class ReposOwnerRepoCheckRunsPostBodyPropActionsItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" +class ReposOwnerRepoAttestationsPostResponse201(GitHubModel): + """ReposOwnerRepoAttestationsPostResponse201""" - 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.", - ) + id: Missing[int] = Field(default=UNSET, description="The ID of the attestation.") -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) +model_rebuild(ReposOwnerRepoAttestationsPostResponse201) -__all__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropOutput", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", - "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", -) +__all__ = ("ReposOwnerRepoAttestationsPostResponse201",) 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 6396ee15b..3159f56c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0978.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0978.py @@ -9,67 +9,92 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0977 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutput, - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, -) +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200(GitHubModel): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" -class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" + attestations: Missing[ + List[ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) - name: str = Field( - description='The name of the check. For example, "code-coverage".' - ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - status: Literal["completed"] = Field() - started_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems( + GitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: Missing[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle ] = Field( - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3, 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="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) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( + GitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndle -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) + 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", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", +) 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 74677bea8..171e026b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0979.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0979.py @@ -9,70 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild - -from .group_0977 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutput, - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, -) +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" +class ReposOwnerRepoAutolinksPostBody(GitHubModel): + """ReposOwnerRepoAutolinksPostBody""" - name: str = Field( - description='The name of the check. For example, "code-coverage".' - ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) - started_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - conclusion: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] = Field( - default=UNSET, - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", + 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." ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + url_template: str = Field( + description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." ) - actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3, + is_alphanumeric: Missing[bool] = 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="Whether this autolink reference matches alphanumeric characters. If true, the `` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters.", ) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) +model_rebuild(ReposOwnerRepoAutolinksPostBody) -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) +__all__ = ("ReposOwnerRepoAutolinksPostBody",) 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 b658d212e..37533ed53 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0980.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0980.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union from pydantic import Field @@ -18,105 +18,218 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput +class ReposOwnerRepoBranchesBranchProtectionPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionPutBody""" - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ - - title: Missing[str] = Field(default=UNSET, description="**Required**.") - summary: str = Field(max_length=65535, description="Can contain Markdown.") - text: Missing[str] = Field( - max_length=65535, default=UNSET, description="Can contain Markdown." + required_status_checks: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, None + ] = Field( + description="Require status checks to pass before merging. Set to `null` to disable." ) - annotations: Missing[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems] + 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( - max_length=50, - default=UNSET, - description="Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/enterprise-cloud@latest//articles/about-status-checks#checks)\".", + description="Require at least one approving review on a pull request, before merging. Set to `null` to disable." ) - images: Missing[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] + 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="Adds images to the output displayed in the GitHub pull request UI.", + 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 ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks( GitHubModel ): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks + + Require status checks to pass before merging. Set to `null` to disable. + """ - path: str = Field( - description="The path of the file to add an annotation to. For example, `assets/css/main.css`." + strict: bool = Field( + description="Require branches to be up to date before merging." ) - start_line: int = Field( - description="The start line of the annotation. Line numbers start at 1." + contexts: List[str] = Field( + description="**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n" ) - end_line: int = Field(description="The end line of the annotation.") - start_column: Missing[int] = Field( + checks: Missing[ + List[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems + ] + ] = 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 list of status checks to require in order to merge into this branch.", ) - end_column: Missing[int] = Field( + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI + tems + """ + + context: str = Field(description="The name of the required check") + app_id: 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.", + 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.", ) - annotation_level: Literal["notice", "warning", "failure"] = Field( - description="The level of the annotation." + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews + + Require at least one approving review on a pull request, before merging. Set to + `null` to disable. + """ + + dismissal_restrictions: Missing[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions + ] = Field( + default=UNSET, + description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", + ) + dismiss_stale_reviews: Missing[bool] = Field( + default=UNSET, + description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", + ) + require_code_owner_reviews: Missing[bool] = Field( + default=UNSET, + description="Blocks merging pull requests until [code owners](https://docs.github.com/enterprise-cloud@latest//articles/about-code-owners/) review them.", ) - message: str = Field( - description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + 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.", ) - title: Missing[str] = Field( + require_last_push_approval: Missing[bool] = Field( default=UNSET, - description="The title that represents the annotation. The maximum size is 255 characters.", + description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`.", ) - raw_details: Missing[str] = Field( + bypass_pull_request_allowances: Missing[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances + ] = Field( default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", + description="Allow specific users, teams, or apps to bypass pull request requirements.", ) -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" +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. + """ - 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." + 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 -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + Allow specific users, teams, or apps to bypass pull request requirements. + """ - 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.", + users: Missing[List[str]] = Field( + default=UNSET, + description="The list of user `login`s allowed to bypass pull request requirements.", ) - description: str = Field( - max_length=40, - description="A short explanation of what this action would do. The maximum size is 40 characters.", + 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.", ) - identifier: str = Field( - max_length=20, - description="A reference for the action on the integrator's system. The maximum size is 20 characters.", + + +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(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances +) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) __all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", + "ReposOwnerRepoBranchesBranchProtectionPutBody", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", ) 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 cb5378975..bf12fcce1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0981.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0981.py @@ -9,69 +9,106 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild - -from .group_0980 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, -) +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - name: Missing[str] = Field( + dismissal_restrictions: Missing[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions + ] = Field( default=UNSET, - description='The name of the check. For example, "code-coverage".', + 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.", ) - details_url: Missing[str] = Field( + dismiss_stale_reviews: Missing[bool] = Field( default=UNSET, - description="The URL of the integrator's site that has the full details of the check.", + description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." + require_code_owner_reviews: Missing[bool] = Field( + default=UNSET, + description="Blocks merging pull requests until [code owners](https://docs.github.com/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.", ) - started_at: Missing[datetime] = Field( + require_last_push_approval: Missing[bool] = Field( default=UNSET, - description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`", ) - status: Missing[Literal["completed"]] = Field(default=UNSET) - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", + bypass_pull_request_allowances: Missing[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances ] = Field( - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + default=UNSET, + description="Allow specific users, teams, or apps to bypass pull request requirements.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: Missing[List[str]] = Field( + default=UNSET, description="The list of user `login`s with dismissal access" + ) + teams: Missing[List[str]] = Field( + default=UNSET, description="The list of team `slug`s with dismissal access" + ) + apps: Missing[List[str]] = Field( + default=UNSET, description="The list of app `slug`s with dismissal access" ) - completed_at: Missing[datetime] = Field( + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: Missing[List[str]] = Field( default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The list of user `login`s allowed to bypass pull request requirements.", ) - output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( + teams: Missing[List[str]] = Field( default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + description="The list of team `slug`s allowed to bypass pull request requirements.", ) - actions: Missing[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] - ] = Field( - max_length=3, + apps: Missing[List[str]] = Field( default=UNSET, - description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + description="The list of app `slug`s allowed to bypass pull request requirements.", ) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances +) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", +) 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 f9ee7c7f7..2c40acb3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0982.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0982.py @@ -9,72 +9,55 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild - -from .group_0980 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, -) +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - 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." + strict: Missing[bool] = Field( + default=UNSET, description="Require branches to be up to date before merging." ) - started_at: Missing[datetime] = Field( + contexts: Missing[List[str]] = Field( default=UNSET, - description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n", ) - status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) - conclusion: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", + checks: Missing[ + List[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems ] ] = 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`.", + description="The list of status checks to require in order to merge into this branch.", ) - 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, + + +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms + """ + + context: str = Field(description="The name of the required check") + app_id: Missing[int] = Field( default=UNSET, - description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + description="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(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems +) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", +) 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 2a8e7cd54..39635099b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0983.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0983.py @@ -9,17 +9,29 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 + + Examples: + {'contexts': ['contexts']} + """ - head_sha: str = Field(description="The sha of the head commit.") + contexts: List[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoCheckSuitesPostBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 +) -__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", +) 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 e31b287e9..f699ea725 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0984.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0984.py @@ -13,38 +13,25 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - - auto_trigger_checks: Missing[ - List[ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems] - ] = Field( - default=UNSET, - description="Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default.", - ) - - -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( GitHubModel ): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 - 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.", - ) + Examples: + {'contexts': ['contexts']} + """ + contexts: List[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) + +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 +) __all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBody", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", ) 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 6bd9dd13b..0a6816433 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0985.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0985.py @@ -15,16 +15,24 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0213 import CheckRun +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + Examples: + {'contexts': ['contexts']} + """ - total_count: int = Field() - check_runs: List[CheckRun] = Field() + contexts: List[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 +) -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", +) 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 14e8507cc..661488f46 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0986.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0986.py @@ -9,36 +9,25 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import Annotated +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 - state: Literal["open", "dismissed"] = Field( - description="Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`." - ) - dismissed_reason: Missing[ - Union[None, Literal["false positive", "won't fix", "used in tests"]] - ] = Field( - default=UNSET, - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert.", - ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) + Examples: + {'apps': ['my-app']} + """ + + apps: List[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." ) -model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0) -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0",) 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 e03cf7d53..04feeadfe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0987.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0987.py @@ -9,39 +9,25 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack: str = Field( - description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" - ) - repositories: List[str] = Field( - description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required." - ) - repository_lists: Missing[List[str]] = Field( - max_length=1, - default=UNSET, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", - ) - repository_owners: Missing[List[str]] = Field( - max_length=1, - 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.", + Examples: + {'apps': ['my-app']} + """ + + apps: List[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." ) -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0",) 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 7716f42e6..f44772a3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0988.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0988.py @@ -9,39 +9,27 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack: str = Field( - description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" - ) - repositories: Missing[List[str]] = Field( - default=UNSET, - description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", - ) - repository_lists: List[str] = Field( - max_length=1, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", - ) - repository_owners: Missing[List[str]] = Field( - max_length=1, - 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.", + Examples: + {'apps': ['my-app']} + """ + + apps: List[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." ) -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0",) 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 42a935203..1f7be7c63 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0989.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0989.py @@ -9,39 +9,23 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" - - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack: str = Field( - description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" - ) - repositories: Missing[List[str]] = Field( - default=UNSET, - description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", - ) - repository_lists: Missing[List[str]] = Field( - max_length=1, - default=UNSET, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", - ) - repository_owners: List[str] = Field( - max_length=1, - description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", - ) - - -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) - -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 + + Examples: + {'teams': ['justice-league']} + """ + + teams: List[str] = Field(description="The slug values for teams") + + +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0990.py b/githubkit/versions/ghec_v2022_11_28/models/group_0990.py index ed78e98a4..cad6d2023 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0990.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0990.py @@ -9,50 +9,25 @@ from __future__ import annotations -from datetime import datetime +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class 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",) +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 + + Examples: + {'teams': ['my-team']} + """ + + teams: List[str] = Field(description="The slug values for teams") + + +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_0991.py b/githubkit/versions/ghec_v2022_11_28/models/group_0991.py index aeb826765..a92d25c56 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0991.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0991.py @@ -15,16 +15,19 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0089 import Codespace +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 -class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesGetResponse200""" + Examples: + {'teams': ['my-team']} + """ - total_count: int = Field() - codespaces: List[Codespace] = Field() + teams: List[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoCodespacesGetResponse200) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) -__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) 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 fcbf9ab7e..1c399dbec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0992.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0992.py @@ -9,61 +9,23 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesPostBody(GitHubModel): - """ReposOwnerRepoCodespacesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 - ref: Missing[str] = Field( - default=UNSET, - description="Git ref (typically a branch name) for this codespace", - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - retention_period_minutes: Missing[int] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) + Examples: + {'users': ['mona']} + """ + users: List[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoCodespacesPostBody) -__all__ = ("ReposOwnerRepoCodespacesPostBody",) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0",) 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 94896c110..669ca7afa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0993.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0993.py @@ -13,34 +13,21 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - - total_count: int = Field() - devcontainers: List[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems - ] = Field() - - -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0( GitHubModel ): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 + + Examples: + {'users': ['mona']} + """ - path: str = Field() - name: Missing[str] = Field(default=UNSET) - display_name: Missing[str] = Field(default=UNSET) + users: List[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0) -__all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0",) 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 b3098ed02..4fc86a736 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0994.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0994.py @@ -15,16 +15,19 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0088 import CodespaceMachine +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 -class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" + Examples: + {'users': ['mona']} + """ - total_count: int = Field() - machines: List[CodespaceMachine] = Field() + users: List[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0) -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0",) 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 cbb5b1e1b..5fcd45c02 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0995.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0995.py @@ -9,39 +9,17 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser - - -class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200""" - - billable_owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( - default=UNSET - ) - -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" +class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - location: str = Field() - devcontainer_path: Union[str, None] = Field() + new_name: str = Field(description="The new name of the branch.") -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) +model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) -__all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200", - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", -) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) 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 e99811a75..0746e9073 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0996.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0996.py @@ -9,36 +9,117 @@ from __future__ import annotations -from typing import List -from datetime import datetime +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" +class ReposOwnerRepoCheckRunsPostBodyPropOutput(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutput - total_count: int = Field() - secrets: List[RepoCodespacesSecret] = Field() - - -class RepoCodespacesSecret(GitHubModel): - """Codespaces Secret - - Set repository secrets for GitHub Codespaces. + 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 secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - - -model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) -model_rebuild(RepoCodespacesSecret) + title: str = Field(description="The title of the check run.") + summary: str = Field( + max_length=65535, + description="The summary of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", + ) + text: Missing[str] = Field( + max_length=65535, + default=UNSET, + description="The details of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", + ) + annotations: Missing[ + List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems] + ] = Field( + max_length=50, + default=UNSET, + description='Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about how you can view annotations on GitHub, see "[About status checks](https://docs.github.com/enterprise-cloud@latest//articles/about-status-checks#checks)".', + ) + images: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems]] = ( + Field( + default=UNSET, + description="Adds images to the output displayed in the GitHub pull request UI.", + ) + ) + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" + + path: str = Field( + description="The path of the file to add an annotation to. For example, `assets/css/main.css`." + ) + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." + ) + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = Field( + default=UNSET, + description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", + ) + end_column: Missing[int] = Field( + default=UNSET, + description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + ) + annotation_level: Literal["notice", "warning", "failure"] = Field( + description="The level of the annotation." + ) + message: str = Field( + description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + ) + title: Missing[str] = Field( + default=UNSET, + description="The title that represents the annotation. The maximum size is 255 characters.", + ) + raw_details: Missing[str] = Field( + default=UNSET, + description="Details about this annotation. The maximum size is 64 KB.", + ) + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" + + alt: str = Field(description="The alternative text for the image.") + image_url: str = Field(description="The full URL of the image.") + caption: Missing[str] = Field( + default=UNSET, description="A short image description." + ) + + +class ReposOwnerRepoCheckRunsPostBodyPropActionsItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" + + 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__ = ( - "ReposOwnerRepoCodespacesSecretsGetResponse200", - "RepoCodespacesSecret", + "ReposOwnerRepoCheckRunsPostBodyPropOutput", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", + "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", ) 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 f9c1b8267..47c6ba7ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0997.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0997.py @@ -9,26 +9,67 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, model_rebuild + +from .group_0996 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutput, + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, +) -class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + name: str = Field( + description='The name of the check. For example, "code-coverage".' + ) + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + status: Literal["completed"] = Field() + started_at: Missing[datetime] = Field( default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/repository-secrets#get-a-repository-public-key) endpoint.", + description="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`.", ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] = Field( + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3, + default=UNSET, + description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', ) -model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) 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 e02fc904b..837677d27 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0998.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0998.py @@ -9,22 +9,70 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, model_rebuild + +from .group_0996 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutput, + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, +) -class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" +class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" - permission: Missing[str] = Field( + name: str = Field( + description='The name of the check. For example, "code-coverage".' + ) + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) + started_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + conclusion: Missing[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] = Field( + default=UNSET, + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3, default=UNSET, - description="The permission to grant the collaborator. **Only valid on organization-owned repositories.** We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any.", + description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', ) -model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) 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 75effd211..b658d212e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_0999.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_0999.py @@ -9,17 +9,114 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput + + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ + + title: Missing[str] = Field(default=UNSET, description="**Required**.") + summary: str = Field(max_length=65535, description="Can contain Markdown.") + text: Missing[str] = Field( + max_length=65535, default=UNSET, description="Can contain Markdown." + ) + annotations: Missing[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems] + ] = Field( + max_length=50, + default=UNSET, + description="Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/enterprise-cloud@latest//articles/about-status-checks#checks)\".", + ) + images: Missing[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] + ] = Field( + default=UNSET, + description="Adds images to the output displayed in the GitHub pull request UI.", + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( + GitHubModel +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + + path: str = Field( + description="The path of the file to add an annotation to. For example, `assets/css/main.css`." + ) + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." + ) + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = Field( + default=UNSET, + description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", + ) + end_column: Missing[int] = Field( + default=UNSET, + description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + ) + annotation_level: Literal["notice", "warning", "failure"] = Field( + description="The level of the annotation." + ) + message: str = Field( + description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + ) + title: Missing[str] = Field( + default=UNSET, + description="The title that represents the annotation. The maximum size is 255 characters.", + ) + raw_details: Missing[str] = Field( + default=UNSET, + description="Details about this annotation. The maximum size is 64 KB.", + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" + + alt: str = Field(description="The alternative text for the image.") + image_url: str = Field(description="The full URL of the image.") + caption: Missing[str] = Field( + default=UNSET, description="A short image description." + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" - body: str = Field(description="The contents of the comment") + 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(ReposOwnerRepoCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", +) 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 a64b1dfaa..8cc54daf6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1000.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1000.py @@ -9,23 +9,69 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import ExtraGitHubModel, model_rebuild +from .group_0999 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, +) -class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" + + name: Missing[str] = Field( + default=UNSET, + description='The name of the check. For example, "code-coverage".', + ) + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + started_at: Missing[datetime] = Field( + default=UNSET, + description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + status: Missing[Literal["completed"]] = Field(default=UNSET) + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] = Field( + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the commit comment." + max_length=3, + default=UNSET, + description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', ) -model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) 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 7a8745468..637e24f23 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1001.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1001.py @@ -9,29 +9,72 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, model_rebuild + +from .group_0999 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, +) -class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" - body: str = Field(description="The contents of the comment.") - path: Missing[str] = Field( - default=UNSET, description="Relative path of the file to comment on." + name: Missing[str] = Field( + default=UNSET, + description='The name of the check. For example, "code-coverage".', ) - position: Missing[int] = Field( - default=UNSET, description="Line index in the diff to comment on." + 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.", ) - line: Missing[int] = Field( + actions: Missing[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] + ] = Field( + max_length=3, default=UNSET, - description="**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.", + 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(ReposOwnerRepoCommitsCommitShaCommentsPostBody) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) 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 b5fedf915..2a8e7cd54 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1002.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1002.py @@ -9,22 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0213 import CheckRun - -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" +class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPostBody""" - total_count: int = Field() - check_runs: List[CheckRun] = Field() + head_sha: str = Field(description="The sha of the head commit.") -model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) +model_rebuild(ReposOwnerRepoCheckSuitesPostBody) -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) +__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) 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 ed215f98b..e31b287e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1003.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1003.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET @@ -16,66 +18,33 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoContentsPathPutBody(GitHubModel): - """ReposOwnerRepoContentsPathPutBody""" +class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - 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( + auto_trigger_checks: Missing[ + List[ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems] + ] = Field( default=UNSET, - description="The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", + description="Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default.", ) -class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathPutBodyPropCommitter - - The person that committed the file. Default: the authenticated user. - """ +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( + GitHubModel +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - 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." + 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.", ) - date: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoContentsPathPutBody) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) __all__ = ( - "ReposOwnerRepoContentsPathPutBody", - "ReposOwnerRepoContentsPathPutBodyPropCommitter", - "ReposOwnerRepoContentsPathPutBodyPropAuthor", + "ReposOwnerRepoCheckSuitesPreferencesPatchBody", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", ) 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 887992d4b..9bf857b2f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1004.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1004.py @@ -9,66 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0217 import CheckRun -class 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. - """ - - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" - ) - email: Missing[str] = Field( - default=UNSET, - description="The email of the author (or committer) of the commit", - ) - - -class ReposOwnerRepoContentsPathDeleteBodyPropAuthor(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - object containing information about the author. - """ +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" - 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", - ) + total_count: int = Field() + check_runs: List[CheckRun] = Field() -model_rebuild(ReposOwnerRepoContentsPathDeleteBody) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) +model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) -__all__ = ( - "ReposOwnerRepoContentsPathDeleteBody", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", - "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", -) +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) 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 d872bec34..14e8507cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1005.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1005.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal +from typing_extensions import Annotated from pydantic import Field @@ -18,27 +19,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" - state: Literal["dismissed", "open"] = Field( - description="The state of the Dependabot alert.\nA `dismissed_reason` must be provided when setting the state to `dismissed`." + 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[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] + Union[None, Literal["false positive", "won't fix", "used in tests"]] ] = Field( default=UNSET, - description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert.", ) - dismissed_comment: Missing[str] = Field( - max_length=280, - default=UNSET, - description="An optional comment associated with dismissing 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.", + ) ) -model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) 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 6b696bdc7..e03cf7d53 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1006.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1006.py @@ -9,36 +9,39 @@ from __future__ import annotations -from typing import List -from datetime import datetime +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class 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__ = ( - "ReposOwnerRepoDependabotSecretsGetResponse200", - "DependabotSecret", -) +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" + + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack: str = Field( + description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" + ) + repositories: List[str] = Field( + description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required." + ) + repository_lists: Missing[List[str]] = Field( + max_length=1, + default=UNSET, + description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_owners: Missing[List[str]] = Field( + max_length=1, + default=UNSET, + description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + + +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) + +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1007.py b/githubkit/versions/ghec_v2022_11_28/models/group_1007.py index e84feaee0..7716f42e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1007.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1007.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,19 +18,30 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack: str = Field( + description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" + ) + repositories: Missing[List[str]] = Field( default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#get-a-repository-public-key) endpoint.", + description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + repository_lists: List[str] = Field( + max_length=1, + description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_owners: Missing[List[str]] = Field( + max_length=1, + 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(ReposOwnerRepoDependabotSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1) -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) 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 d8abaeb32..42a935203 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1008.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1008.py @@ -9,24 +9,39 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" - 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.' + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack: str = Field( + description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" + ) + repositories: Missing[List[str]] = Field( + default=UNSET, + description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_lists: Missing[List[str]] = Field( + max_length=1, + default=UNSET, + description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", ) - message: str = Field( - description="A message providing further details about the result, such as why the dependencies were not updated." + repository_owners: List[str] = Field( + max_length=1, + description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", ) -model_rebuild(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) 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 e794f6b41..ed78e98a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1009.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1009.py @@ -9,61 +9,50 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsPostBody""" +class ReposOwnerRepoCodeScanningSarifsPostBody(GitHubModel): + """ReposOwnerRepoCodeScanningSarifsPostBody""" - ref: str = Field( - description="The ref to deploy. This can be a branch, tag, or SHA." + 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.", ) - task: Missing[str] = Field( - default=UNSET, - description="Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).", + 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`.", ) - 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.", + 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)."' ) - required_contexts: Missing[List[str]] = Field( + checkout_uri: Missing[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.", + 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.", ) - payload: Missing[Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, str]] = ( - Field(default=UNSET) - ) - environment: Missing[str] = Field( + started_at: Missing[datetime] = 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." + 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`.", ) - transient_environment: Missing[bool] = Field( + tool_name: Missing[str] = Field( default=UNSET, - description="Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`", + description='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`.', ) - production_environment: Missing[bool] = Field( + validate_: 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.", + 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.", ) -class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0(ExtraGitHubModel): - """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" - - -model_rebuild(ReposOwnerRepoDeploymentsPostBody) -model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) +model_rebuild(ReposOwnerRepoCodeScanningSarifsPostBody) -__all__ = ( - "ReposOwnerRepoDeploymentsPostBody", - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", -) +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) 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 8fe47fba1..9c41bec00 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1010.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1010.py @@ -9,19 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0094 import Codespace + -class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): - """ReposOwnerRepoDeploymentsPostResponse202""" +class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesGetResponse200""" - message: Missing[str] = Field(default=UNSET) + total_count: int = Field() + codespaces: List[Codespace] = Field() -model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) +model_rebuild(ReposOwnerRepoCodespacesGetResponse200) -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) +__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) 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 b51ea5c18..fcbf9ab7e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1011.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1011.py @@ -18,40 +18,52 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" +class ReposOwnerRepoCodespacesPostBody(GitHubModel): + """ReposOwnerRepoCodespacesPostBody""" - 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." + 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.", ) - target_url: Missing[str] = Field( + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( default=UNSET, - description="The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.", + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", ) - log_url: Missing[str] = Field( + client_ip: 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="IP for location auto-detection when proxying a request", ) - description: Missing[str] = Field( + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( default=UNSET, - description="A short description of the status. The maximum description length is 140 characters.", + description="Path to devcontainer.json config to use for this codespace", ) - environment: Missing[str] = Field( + multi_repo_permissions_opt_out: Missing[bool] = Field( default=UNSET, - description="Name for the target deployment environment, 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.", + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" ) - environment_url: Missing[str] = Field( + idle_timeout_minutes: Missing[int] = Field( default=UNSET, - description='Sets the URL for accessing your environment. Default: `""`', + description="Time in minutes before codespace stops from inactivity", + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" ) - auto_inactive: Missing[bool] = Field( + retention_period_minutes: Missing[int] = Field( default=UNSET, - description="Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`", + description="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(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) +model_rebuild(ReposOwnerRepoCodespacesPostBody) -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) +__all__ = ("ReposOwnerRepoCodespacesPostBody",) 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 019ffdc28..94896c110 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1012.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1012.py @@ -9,39 +9,38 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDispatchesPostBody(GitHubModel): - """ReposOwnerRepoDispatchesPostBody""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - 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.", - ) + total_count: int = Field() + devcontainers: List[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems + ] = Field() -class ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): - """ReposOwnerRepoDispatchesPostBodyPropClientPayload +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( + GitHubModel +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" - 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. - """ + path: str = Field() + name: Missing[str] = Field(default=UNSET) + display_name: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoDispatchesPostBody) -model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) __all__ = ( - "ReposOwnerRepoDispatchesPostBody", - "ReposOwnerRepoDispatchesPostBodyPropClientPayload", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", ) 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 b90b0087e..f4c7cb5a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1013.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1013.py @@ -9,61 +9,22 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0264 import DeploymentBranchPolicySettings +from .group_0093 import CodespaceMachine -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" +class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" - 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() + machines: List[CodespaceMachine] = Field() -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" +model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." - ) - id: Missing[int] = Field( - default=UNSET, - description="The id of the user or team who can review the deployment", - ) - - -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) - -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", -) +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) 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 164fcd76f..cbb5b1e1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1014.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1014.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union from pydantic import Field @@ -17,43 +17,31 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - total_count: int = Field( - description="The number of deployment branch policies for the environment." +class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200""" + + billable_owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( + default=UNSET ) - branch_policies: List[DeploymentBranchPolicy] = Field() -class DeploymentBranchPolicy(GitHubModel): - """Deployment branch policy +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - Details of a deployment branch or tag policy. - """ - - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the branch or tag policy." - ) - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field( - default=UNSET, - description="The 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." - ) + location: str = Field() + devcontainer_path: Union[str, None] = Field() -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 -) -model_rebuild(DeploymentBranchPolicy) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", - "DeploymentBranchPolicy", + "ReposOwnerRepoCodespacesNewGetResponse200", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", ) 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 b159fbf0c..e99811a75 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1015.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1015.py @@ -9,28 +9,36 @@ from __future__ import annotations +from typing import List +from datetime import datetime + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" +class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" - integration_id: Missing[int] = Field( - default=UNSET, - description="The ID of the custom app that will be enabled on the environment.", - ) + total_count: int = Field() + secrets: List[RepoCodespacesSecret] = Field() -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody -) +class RepoCodespacesSecret(GitHubModel): + """Codespaces Secret + + Set repository secrets for GitHub Codespaces. + """ + + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + + +model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) +model_rebuild(RepoCodespacesSecret) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", + "ReposOwnerRepoCodespacesSecretsGetResponse200", + "RepoCodespacesSecret", ) 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 4e97482ed..f9c1b8267 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1016.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1016.py @@ -9,37 +9,26 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0270 import CustomDeploymentRuleApp - -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ +class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - total_count: Missing[int] = Field( + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", default=UNSET, - description="The total number of custom deployment protection rule integrations available for this environment.", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/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." ) - available_custom_deployment_protection_rule_integrations: Missing[ - List[CustomDeploymentRuleApp] - ] = Field(default=UNSET) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 -) +model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", -) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) 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 8d00f379f..e02fc904b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1017.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1017.py @@ -9,22 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0181 import ActionsSecret - -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" +class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - total_count: int = Field() - secrets: List[ActionsSecret] = Field() + permission: Missing[str] = Field( + default=UNSET, + description="The permission to grant the collaborator. **Only valid on organization-owned repositories.** We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any.", + ) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) +model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) 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 60d9411b7..75effd211 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1018.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1018.py @@ -14,16 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" +class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdPatchBody""" - 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.") + body: str = Field(description="The contents of the comment") -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) 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 fe93c8f89..a64b1dfaa 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1019.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1019.py @@ -9,22 +9,23 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0182 import ActionsVariable +class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + 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." + ) - total_count: int = Field() - variables: List[ActionsVariable] = Field() +model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) 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 376060834..7a8745468 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1020.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1020.py @@ -11,16 +11,27 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") + body: str = Field(description="The contents of the comment.") + path: Missing[str] = Field( + default=UNSET, description="Relative path of the file to comment on." + ) + position: Missing[int] = Field( + default=UNSET, description="Line index in the diff to comment on." + ) + line: Missing[int] = Field( + default=UNSET, + description="**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.", + ) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) +model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) 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 4bf82006d..fb2ead147 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,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0217 import CheckRun + -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + total_count: int = Field() + check_runs: List[CheckRun] = Field() -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody) +model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody",) +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) 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 0fe1a32f9..ed215f98b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1022.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1022.py @@ -16,23 +16,66 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoForksPostBody(GitHubModel): - """ReposOwnerRepoForksPostBody""" +class ReposOwnerRepoContentsPathPutBody(GitHubModel): + """ReposOwnerRepoContentsPathPutBody""" - organization: Missing[str] = Field( + 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="Optional parameter to specify the organization name if forking into an organization.", + description="**Required if you are updating a file**. The blob SHA of the file being replaced.", ) - name: Missing[str] = Field( + branch: Missing[str] = Field( default=UNSET, - description="When forking from an existing repository, a new name for the fork.", + description="The branch name. Default: the repository’s default branch.", ) - default_branch_only: Missing[bool] = Field( + committer: Missing[ReposOwnerRepoContentsPathPutBodyPropCommitter] = Field( default=UNSET, - description="When forking from an existing repository, fork with only the default branch.", + description="The person that committed the file. Default: the authenticated user.", ) + author: Missing[ReposOwnerRepoContentsPathPutBodyPropAuthor] = Field( + default=UNSET, + description="The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", + ) + + +class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropCommitter + + The person that committed the file. Default: the authenticated user. + """ + + name: str = Field( + description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + ) + email: str = Field( + description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + ) + date: Missing[str] = Field(default=UNSET) + + +class ReposOwnerRepoContentsPathPutBodyPropAuthor(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropAuthor + + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. + """ + + name: str = Field( + description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + ) + email: str = Field( + description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + ) + date: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoForksPostBody) +model_rebuild(ReposOwnerRepoContentsPathPutBody) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) -__all__ = ("ReposOwnerRepoForksPostBody",) +__all__ = ( + "ReposOwnerRepoContentsPathPutBody", + "ReposOwnerRepoContentsPathPutBodyPropCommitter", + "ReposOwnerRepoContentsPathPutBodyPropAuthor", +) 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 5ef2b62bc..887992d4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1023.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1023.py @@ -16,16 +16,59 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitBlobsPostBody(GitHubModel): - """ReposOwnerRepoGitBlobsPostBody""" +class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBody""" - content: str = Field(description="The new blob's content.") - encoding: Missing[str] = Field( + message: str = Field(description="The commit message.") + sha: str = Field(description="The blob SHA of the file being deleted.") + branch: Missing[str] = Field( default=UNSET, - description='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', + 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. + """ + + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" + ) + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", + ) + + +class ReposOwnerRepoContentsPathDeleteBodyPropAuthor(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBodyPropAuthor + + object containing information about the author. + """ + + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" + ) + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", ) -model_rebuild(ReposOwnerRepoGitBlobsPostBody) +model_rebuild(ReposOwnerRepoContentsPathDeleteBody) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) -__all__ = ("ReposOwnerRepoGitBlobsPostBody",) +__all__ = ( + "ReposOwnerRepoContentsPathDeleteBody", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", +) 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 56b388fb9..d872bec34 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1024.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1024.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import List -from datetime import datetime +from typing import Literal from pydantic import Field @@ -19,74 +18,27 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitCommitsPostBody(GitHubModel): - """ReposOwnerRepoGitCommitsPostBody""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - message: str = Field(description="The commit message") - tree: str = Field(description="The SHA of the tree object this commit points to") - parents: Missing[List[str]] = Field( - default=UNSET, - description="The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.", - ) - author: Missing[ReposOwnerRepoGitCommitsPostBodyPropAuthor] = Field( - default=UNSET, - description="Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.", - ) - committer: Missing[ReposOwnerRepoGitCommitsPostBodyPropCommitter] = Field( - default=UNSET, - description="Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.", - ) - signature: Missing[str] = Field( - default=UNSET, - description="The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.", - ) - - -class ReposOwnerRepoGitCommitsPostBodyPropAuthor(GitHubModel): - """ReposOwnerRepoGitCommitsPostBodyPropAuthor - - Information about the author of the commit. By default, the `author` will be the - authenticated user and the current date. See the `author` and `committer` object - below for details. - """ - - 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" + 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", + description="**Required when `state` is `dismissed`.** A reason for dismissing the alert.", ) - date: Missing[datetime] = Field( + dismissed_comment: Missing[str] = Field( + max_length=280, default=UNSET, - description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="An optional comment associated with dismissing the alert.", ) -model_rebuild(ReposOwnerRepoGitCommitsPostBody) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) +model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) -__all__ = ( - "ReposOwnerRepoGitCommitsPostBody", - "ReposOwnerRepoGitCommitsPostBodyPropAuthor", - "ReposOwnerRepoGitCommitsPostBodyPropCommitter", -) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) 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 e02988ad3..6b696bdc7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1025.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1025.py @@ -9,20 +9,36 @@ from __future__ import annotations +from typing import List +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitRefsPostBody(GitHubModel): - """ReposOwnerRepoGitRefsPostBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoDependabotSecretsGetResponse200""" + + total_count: int = Field() + secrets: List[DependabotSecret] = Field() + + +class DependabotSecret(GitHubModel): + """Dependabot Secret + + Set secrets for Dependabot. + """ - 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.") + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ReposOwnerRepoGitRefsPostBody) +model_rebuild(ReposOwnerRepoDependabotSecretsGetResponse200) +model_rebuild(DependabotSecret) -__all__ = ("ReposOwnerRepoGitRefsPostBody",) +__all__ = ( + "ReposOwnerRepoDependabotSecretsGetResponse200", + "DependabotSecret", +) 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 457380b7b..e84feaee0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1026.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1026.py @@ -16,16 +16,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): - """ReposOwnerRepoGitRefsRefPatchBody""" +class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - sha: str = Field(description="The SHA1 value to set this reference to") - force: Missing[bool] = Field( + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", default=UNSET, - description="Indicates whether 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="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(ReposOwnerRepoGitRefsRefPatchBody) +model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) 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 74d3527c4..d8abaeb32 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1027.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1027.py @@ -9,53 +9,24 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitTagsPostBody(GitHubModel): - """ReposOwnerRepoGitTagsPostBody""" +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - 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.", + 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.' ) - - -class ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): - """ReposOwnerRepoGitTagsPostBodyPropTagger - - An object with information about the individual creating the tag. - """ - - name: str = Field(description="The name of the author of the tag") - email: str = Field(description="The email of the author of the tag") - date: Missing[datetime] = Field( - default=UNSET, - description="When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + message: str = Field( + description="A message providing further details about the result, such as why the dependencies were not updated." ) -model_rebuild(ReposOwnerRepoGitTagsPostBody) -model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) +model_rebuild(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) -__all__ = ( - "ReposOwnerRepoGitTagsPostBody", - "ReposOwnerRepoGitTagsPostBodyPropTagger", -) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) 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 43ce478ab..e794f6b41 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1028.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1028.py @@ -9,54 +9,61 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class ReposOwnerRepoGitTreesPostBody(GitHubModel): - """ReposOwnerRepoGitTreesPostBody""" +class ReposOwnerRepoDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsPostBody""" - tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( - description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." + ref: str = Field( + description="The ref to deploy. This can be a branch, tag, or SHA." ) - base_tree: Missing[str] = Field( + task: Missing[str] = Field( default=UNSET, - description="The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.\n", + description="Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).", ) - - -class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - - path: Missing[str] = Field( - default=UNSET, description="The file referenced in the tree." + 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.", ) - mode: Missing[Literal["100644", "100755", "040000", "160000", "120000"]] = Field( + required_contexts: Missing[List[str]] = Field( default=UNSET, - description="The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.", + description="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.", ) - type: Missing[Literal["blob", "tree", "commit"]] = Field( - default=UNSET, description="Either `blob`, `tree`, or `commit`." + payload: Missing[Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, str]] = ( + Field(default=UNSET) ) - sha: Missing[Union[str, None]] = Field( + environment: 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="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." ) - content: Missing[str] = Field( + transient_environment: Missing[bool] = Field( default=UNSET, - description="The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + description="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(ReposOwnerRepoGitTreesPostBody) -model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) +model_rebuild(ReposOwnerRepoDeploymentsPostBody) +model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) __all__ = ( - "ReposOwnerRepoGitTreesPostBody", - "ReposOwnerRepoGitTreesPostBodyPropTreeItems", + "ReposOwnerRepoDeploymentsPostBody", + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", ) 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 2891623cb..8fe47fba1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1029.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1029.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field from githubkit.utils import UNSET @@ -18,51 +16,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoHooksPostBody(GitHubModel): - """ReposOwnerRepoHooksPostBody""" - - name: Missing[str] = Field( - default=UNSET, - description="Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.", - ) - config: Missing[ReposOwnerRepoHooksPostBodyPropConfig] = Field( - default=UNSET, - description="Key/value pairs to provide settings for this webhook.", - ) - events: Missing[List[str]] = Field( - default=UNSET, - description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for.", - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) - - -class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): - """ReposOwnerRepoHooksPostBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ +class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): + """ReposOwnerRepoDeploymentsPostResponse202""" - 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) + message: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksPostBody) -model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) +model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) -__all__ = ( - "ReposOwnerRepoHooksPostBody", - "ReposOwnerRepoHooksPostBodyPropConfig", -) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) 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 78efdb398..b51ea5c18 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1030.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1030.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -17,35 +17,41 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0007 import WebhookConfig +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" -class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdPatchBody""" - - config: Missing[WebhookConfig] = Field( + state: Literal[ + "error", "failure", "inactive", "in_progress", "queued", "pending", "success" + ] = Field( + description="The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub." + ) + target_url: Missing[str] = Field( + default=UNSET, + description="The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.", + ) + log_url: Missing[str] = Field( default=UNSET, - title="Webhook Configuration", - description="Configuration object of the webhook", + 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: `""`', ) - events: Missing[List[str]] = Field( + description: Missing[str] = Field( default=UNSET, - description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.", + description="A short description of the status. The maximum description length is 140 characters.", ) - add_events: Missing[List[str]] = Field( + environment: Missing[str] = Field( default=UNSET, - description="Determines a list of events to be added to the list of events that the Hook triggers for.", + 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.", ) - remove_events: Missing[List[str]] = Field( + environment_url: 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='Sets the URL for accessing your environment. Default: `""`', ) - active: Missing[bool] = Field( + auto_inactive: Missing[bool] = Field( default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + 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(ReposOwnerRepoHooksHookIdPatchBody) +model_rebuild(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) -__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) 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 20e79ec0d..019ffdc28 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1031.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1031.py @@ -9,32 +9,39 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" +class ReposOwnerRepoDispatchesPostBody(GitHubModel): + """ReposOwnerRepoDispatchesPostBody""" - 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`.", + event_type: str = Field( + min_length=1, + max_length=100, + description="A custom webhook event name. Must be 100 characters or fewer.", ) - secret: Missing[str] = Field( + client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = 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="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.", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) +class ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): + """ReposOwnerRepoDispatchesPostBodyPropClientPayload + + JSON payload with extra information about the webhook event that your action or + workflow may use. The maximum number of top-level properties is 10. + """ + + +model_rebuild(ReposOwnerRepoDispatchesPostBody) +model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) +__all__ = ( + "ReposOwnerRepoDispatchesPostBody", + "ReposOwnerRepoDispatchesPostBodyPropClientPayload", +) 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 9ec5ec399..98d0d8e31 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1032.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1032.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,29 +17,53 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0268 import DeploymentBranchPolicySettings -class ReposOwnerRepoImportPutBody(GitHubModel): - """ReposOwnerRepoImportPutBody""" - vcs_url: str = Field(description="The URL of the originating repository.") - vcs: Missing[Literal["subversion", "git", "mercurial", "tfvc"]] = Field( +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + + wait_timer: Missing[int] = Field( default=UNSET, - description="The originating VCS type. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response.", + description="The 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).", ) - vcs_username: Missing[str] = Field( + prevent_self_review: Missing[bool] = Field( default=UNSET, - description="If authentication is required, the username to provide to `vcs_url`.", + description="Whether or not a user who created the job is prevented from approving their own job.", ) - vcs_password: Missing[str] = Field( + reviewers: Missing[ + Union[ + List[ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems], + None, + ] + ] = Field( default=UNSET, - description="If authentication is required, the password to provide to `vcs_url`.", + description="The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", + ) + deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( + Field( + default=UNSET, + description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", + ) + ) + + +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." ) - tfvc_project: Missing[str] = Field( + id: Missing[int] = Field( default=UNSET, - description="For a tfvc import, the name of the project that is being imported.", + description="The id of the user or team who can review the deployment", ) -model_rebuild(ReposOwnerRepoImportPutBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) -__all__ = ("ReposOwnerRepoImportPutBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", +) 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 c2aa14687..164fcd76f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1033.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1033.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field @@ -18,27 +18,42 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoImportPatchBody(GitHubModel): - """ReposOwnerRepoImportPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - vcs_username: Missing[str] = Field( - default=UNSET, - description="The username to provide to the originating repository.", + total_count: int = Field( + description="The number of deployment branch policies for the environment." ) - vcs_password: Missing[str] = Field( - default=UNSET, - description="The password to provide to the originating repository.", + branch_policies: List[DeploymentBranchPolicy] = Field() + + +class DeploymentBranchPolicy(GitHubModel): + """Deployment branch policy + + Details of a deployment branch or tag policy. + """ + + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the branch or tag policy." ) - vcs: Missing[Literal["subversion", "tfvc", "git", "mercurial"]] = Field( + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( default=UNSET, - description="The type of version control system you are migrating from.", + description="The name pattern that branches or tags must match in order to deploy to the environment.", ) - tfvc_project: Missing[str] = Field( - default=UNSET, - description="For a tfvc import, the name of the project that is being imported.", + type: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="Whether this rule targets a branch or tag." ) -model_rebuild(ReposOwnerRepoImportPatchBody) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 +) +model_rebuild(DeploymentBranchPolicy) -__all__ = ("ReposOwnerRepoImportPatchBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", + "DeploymentBranchPolicy", +) 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 c5a5b2258..b159fbf0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1034.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1034.py @@ -16,13 +16,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - email: Missing[str] = Field(default=UNSET, description="The new Git author email.") - name: Missing[str] = Field(default=UNSET, description="The new Git author name.") + integration_id: Missing[int] = Field( + default=UNSET, + description="The ID of the custom app that will be enabled on the environment.", + ) -model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody +) -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", +) 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 7727d20f6..6c79832b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1035.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1035.py @@ -9,21 +9,37 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0274 import CustomDeploymentRuleApp -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 ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ + + total_count: Missing[int] = Field( + default=UNSET, + description="The total number of custom deployment protection rule integrations available for this environment.", ) + available_custom_deployment_protection_rule_integrations: Missing[ + List[CustomDeploymentRuleApp] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoImportLfsPatchBody) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 +) -__all__ = ("ReposOwnerRepoImportLfsPatchBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", +) 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 759975570..9f65ffdfd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1036.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1036.py @@ -9,13 +9,22 @@ from __future__ import annotations +from typing import List + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild +from .group_0185 import ActionsSecret + + +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" + total_count: int = Field() + secrets: List[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) 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 d06271828..60d9411b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1037.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1037.py @@ -9,26 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - 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`.", - ) + encrypted_value: str = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-an-environment-public-key) endpoint.", ) + key_id: str = Field(description="ID of the key you used to encrypt the secret.") -model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) 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 e40165dc9..b1d22d4c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1038.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1038.py @@ -9,50 +9,22 @@ from __future__ import annotations -from typing import List, Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0186 import ActionsVariable -class ReposOwnerRepoIssuesPostBody(GitHubModel): - """ReposOwnerRepoIssuesPostBody""" - - title: Union[str, int] = Field(description="The title of the issue.") - body: Missing[str] = Field(default=UNSET, description="The contents of the issue.") - assignee: Missing[Union[str, None]] = Field( - default=UNSET, - description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_", - ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - List[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1]] - ] = Field( - default=UNSET, - description="Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", - ) - assignees: Missing[List[str]] = Field( - default=UNSET, - description="Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", - ) - - -class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1(GitHubModel): - """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoIssuesPostBody) -model_rebuild(ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1) - -__all__ = ( - "ReposOwnerRepoIssuesPostBody", - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", -) + +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + + total_count: int = Field() + variables: List[ActionsVariable] = Field() + + +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) 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 2e91230e7..376060834 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1039.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1039.py @@ -14,12 +14,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" - body: str = Field(description="The contents of the comment.") + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") -model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) 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 e13da8a38..4bf82006d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1040.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1040.py @@ -9,23 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" - 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." - ) + 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(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody) -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody",) 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 f4cf48489..0fe1a32f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1041.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1041.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,54 +16,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" +class ReposOwnerRepoForksPostBody(GitHubModel): + """ReposOwnerRepoForksPostBody""" - 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( + organization: Missing[str] = Field( default=UNSET, - description="Username to assign to this issue. **This field is deprecated.**", + description="Optional parameter to specify the organization name if forking into an organization.", ) - 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( + name: Missing[str] = Field( default=UNSET, - description="The reason for the state change. Ignored unless `state` is changed.", + description="When forking from an existing repository, a new name for the fork.", ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - List[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] - ] = Field( + default_branch_only: Missing[bool] = Field( default=UNSET, - description="Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped.", + description="When forking from an existing repository, fork with only the default branch.", ) - assignees: Missing[List[str]] = Field( - default=UNSET, - description="Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped.", - ) - - -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBody) -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1) +model_rebuild(ReposOwnerRepoForksPostBody) -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBody", - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", -) +__all__ = ("ReposOwnerRepoForksPostBody",) 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 e809e4006..5ef2b62bc 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1042.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1042.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,15 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" +class ReposOwnerRepoGitBlobsPostBody(GitHubModel): + """ReposOwnerRepoGitBlobsPostBody""" - assignees: Missing[List[str]] = Field( + content: str = Field(description="The new blob's content.") + encoding: Missing[str] = Field( default=UNSET, - description="Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._", + description='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) +model_rebuild(ReposOwnerRepoGitBlobsPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) +__all__ = ("ReposOwnerRepoGitBlobsPostBody",) 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 5d857cf8c..56b388fb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1043.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1043.py @@ -10,6 +10,7 @@ from __future__ import annotations from typing import List +from datetime import datetime from pydantic import Field @@ -18,15 +19,74 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoGitCommitsPostBody(GitHubModel): + """ReposOwnerRepoGitCommitsPostBody""" - assignees: Missing[List[str]] = Field( + message: str = Field(description="The commit message") + tree: str = Field(description="The SHA of the tree object this commit points to") + parents: Missing[List[str]] = Field( default=UNSET, - description="Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", + description="The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.", + ) + author: Missing[ReposOwnerRepoGitCommitsPostBodyPropAuthor] = Field( + default=UNSET, + description="Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.", + ) + committer: Missing[ReposOwnerRepoGitCommitsPostBodyPropCommitter] = Field( + default=UNSET, + description="Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.", + ) + signature: Missing[str] = Field( + default=UNSET, + description="The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.", + ) + + +class ReposOwnerRepoGitCommitsPostBodyPropAuthor(GitHubModel): + """ReposOwnerRepoGitCommitsPostBodyPropAuthor + + Information about the author of the commit. By default, the `author` will be the + authenticated user and the current date. See the `author` and `committer` object + below for details. + """ + + name: str = Field(description="The name of the author (or committer) of the commit") + email: str = Field( + description="The email of the author (or committer) of the commit" + ) + date: Missing[datetime] = Field( + default=UNSET, + description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + + +class ReposOwnerRepoGitCommitsPostBodyPropCommitter(GitHubModel): + """ReposOwnerRepoGitCommitsPostBodyPropCommitter + + Information about the person who is making the commit. By default, `committer` + will use the information set in `author`. See the `author` and `committer` + object below for details. + """ + + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" + ) + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", + ) + date: Missing[datetime] = Field( + default=UNSET, + description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) +__all__ = ( + "ReposOwnerRepoGitCommitsPostBody", + "ReposOwnerRepoGitCommitsPostBodyPropAuthor", + "ReposOwnerRepoGitCommitsPostBodyPropCommitter", +) 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 49a6d6da0..e02988ad3 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1044.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1044.py @@ -14,12 +14,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" +class ReposOwnerRepoGitRefsPostBody(GitHubModel): + """ReposOwnerRepoGitRefsPostBody""" - body: str = Field(description="The contents of the comment.") + 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(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoGitRefsPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoGitRefsPostBody",) 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 8d5917f2e..457380b7b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1045.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1045.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,16 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" +class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): + """ReposOwnerRepoGitRefsRefPatchBody""" - labels: Missing[List[str]] = Field( - min_length=1, + sha: str = Field(description="The SHA1 value to set this reference to") + force: Missing[bool] = Field( default=UNSET, - description='The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see "[Add labels to an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#add-labels-to-an-issue)."', + description="Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) +model_rebuild(ReposOwnerRepoGitRefsRefPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) 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 0ed7e108e..74d3527c4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1046.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1046.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List +from typing import Literal +from datetime import datetime from pydantic import Field @@ -18,24 +19,43 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" +class ReposOwnerRepoGitTagsPostBody(GitHubModel): + """ReposOwnerRepoGitTagsPostBody""" - labels: Missing[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] - ] = Field(min_length=1, default=UNSET) + 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 ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" +class ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): + """ReposOwnerRepoGitTagsPostBodyPropTagger - name: str = Field() + An object with information about the individual creating the tag. + """ + name: str = Field(description="The name of the author of the tag") + email: str = Field(description="The email of the author of the tag") + date: Missing[datetime] = Field( + default=UNSET, + description="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(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) + +model_rebuild(ReposOwnerRepoGitTagsPostBody) +model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) __all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", + "ReposOwnerRepoGitTagsPostBody", + "ReposOwnerRepoGitTagsPostBodyPropTagger", ) 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 d59513ace..43ce478ab 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1047.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1047.py @@ -9,17 +9,54 @@ from __future__ import annotations +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) +class ReposOwnerRepoGitTreesPostBody(GitHubModel): + """ReposOwnerRepoGitTreesPostBody""" + + tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( + description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." + ) + base_tree: Missing[str] = Field( + default=UNSET, + description="The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.\n", + ) + + +class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" + + path: Missing[str] = Field( + default=UNSET, description="The file referenced in the tree." + ) + mode: Missing[Literal["100644", "100755", "040000", "160000", "120000"]] = Field( + default=UNSET, + description="The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.", + ) + type: Missing[Literal["blob", "tree", "commit"]] = Field( + default=UNSET, description="Either `blob`, `tree`, or `commit`." + ) + sha: Missing[Union[str, None]] = Field( + default=UNSET, + description="The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + ) + content: Missing[str] = Field( + default=UNSET, + description="The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + ) + + +model_rebuild(ReposOwnerRepoGitTreesPostBody) +model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) + +__all__ = ( + "ReposOwnerRepoGitTreesPostBody", + "ReposOwnerRepoGitTreesPostBodyPropTreeItems", +) 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 4e8d7c310..2891623cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1048.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1048.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import List, Union from pydantic import Field @@ -18,16 +18,51 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoHooksPostBody(GitHubModel): + """ReposOwnerRepoHooksPostBody""" - labels: Missing[List[str]] = Field( - min_length=1, + name: Missing[str] = Field( default=UNSET, - description='The names of the labels to add to the issue\'s existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see "[Set labels for an issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue)."', + description="Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.", ) + config: Missing[ReposOwnerRepoHooksPostBodyPropConfig] = Field( + default=UNSET, + description="Key/value pairs to provide settings for this webhook.", + ) + events: Missing[List[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for.", + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) + + +class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): + """ReposOwnerRepoHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + 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(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) +model_rebuild(ReposOwnerRepoHooksPostBody) +model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) +__all__ = ( + "ReposOwnerRepoHooksPostBody", + "ReposOwnerRepoHooksPostBodyPropConfig", +) 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 0d0e29232..78efdb398 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1049.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1049.py @@ -17,25 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - - labels: Missing[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] - ] = Field(min_length=1, default=UNSET) - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" - - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", -) +from .group_0007 import WebhookConfig + + +class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdPatchBody""" + + config: Missing[WebhookConfig] = Field( + default=UNSET, + title="Webhook Configuration", + description="Configuration object of the webhook", + ) + events: Missing[List[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.", + ) + add_events: Missing[List[str]] = Field( + default=UNSET, + description="Determines a list of events to be added to the list of events that the Hook triggers for.", + ) + remove_events: Missing[List[str]] = Field( + default=UNSET, + description="Determines a list of events to be removed from the list of events that the Hook triggers for.", + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) + + +model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) + +__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) 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 dfb903bb9..20e79ec0d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1050.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1050.py @@ -9,17 +9,32 @@ from __future__ import annotations +from typing import Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" +class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - name: str = Field() + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/enterprise-cloud@latest//webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) +model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) 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 5769fdef9..9ec5ec399 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1051.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1051.py @@ -18,17 +18,28 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - - 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`", - ) +class ReposOwnerRepoImportPutBody(GitHubModel): + """ReposOwnerRepoImportPutBody""" + + vcs_url: str = Field(description="The URL of the originating repository.") + vcs: Missing[Literal["subversion", "git", "mercurial", "tfvc"]] = Field( + default=UNSET, + description="The originating VCS type. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response.", + ) + vcs_username: Missing[str] = Field( + default=UNSET, + description="If authentication is required, the username to provide to `vcs_url`.", + ) + vcs_password: Missing[str] = Field( + default=UNSET, + description="If authentication is required, the password to provide to `vcs_url`.", + ) + tfvc_project: Missing[str] = Field( + default=UNSET, + description="For a tfvc import, the name of the project that is being imported.", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) +model_rebuild(ReposOwnerRepoImportPutBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) +__all__ = ("ReposOwnerRepoImportPutBody",) 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 42295dd52..c2aa14687 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1052.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1052.py @@ -13,19 +13,32 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoImportPatchBody(GitHubModel): + """ReposOwnerRepoImportPatchBody""" - 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." + vcs_username: Missing[str] = Field( + default=UNSET, + description="The username to provide to the originating repository.", + ) + vcs_password: Missing[str] = Field( + default=UNSET, + description="The password to provide to the originating repository.", + ) + vcs: Missing[Literal["subversion", "tfvc", "git", "mercurial"]] = Field( + default=UNSET, + description="The type of version control system you are migrating from.", + ) + tfvc_project: Missing[str] = Field( + default=UNSET, + description="For a tfvc import, the name of the project that is being imported.", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) +model_rebuild(ReposOwnerRepoImportPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) +__all__ = ("ReposOwnerRepoImportPatchBody",) 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 ed84db7b4..c5a5b2258 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1053.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1053.py @@ -16,17 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoKeysPostBody(GitHubModel): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - title: Missing[str] = Field(default=UNSET, description="A name for the key.") - key: str = Field(description="The contents of the key.") - read_only: Missing[bool] = Field( - default=UNSET, - description='If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/enterprise-cloud@latest//articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/enterprise-cloud@latest//articles/permission-levels-for-a-user-account-repository/)."', - ) + 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(ReposOwnerRepoKeysPostBody) +model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) -__all__ = ("ReposOwnerRepoKeysPostBody",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) 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 c9c52cd3c..7727d20f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1054.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1054.py @@ -9,29 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoLabelsPostBody(GitHubModel): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoImportLfsPatchBody(GitHubModel): + """ReposOwnerRepoImportLfsPatchBody""" - name: str = Field( - description='The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."' - ) - color: Missing[str] = Field( - default=UNSET, - description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description of the label. Must be 100 characters or fewer.", + 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(ReposOwnerRepoLabelsPostBody) +model_rebuild(ReposOwnerRepoImportLfsPatchBody) -__all__ = ("ReposOwnerRepoLabelsPostBody",) +__all__ = ("ReposOwnerRepoImportLfsPatchBody",) 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 99482c11e..759975570 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1055.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1055.py @@ -9,30 +9,13 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): - """ReposOwnerRepoLabelsNamePatchBody""" - - new_name: Missing[str] = Field( - default=UNSET, - description='The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."', - ) - color: Missing[str] = Field( - default=UNSET, - description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description of the label. Must be 100 characters or fewer.", - ) +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" -model_rebuild(ReposOwnerRepoLabelsNamePatchBody) +model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) -__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) 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 7be32859a..d06271828 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1056.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1056.py @@ -9,19 +9,26 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): - """ReposOwnerRepoMergeUpstreamPostBody""" +class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - branch: str = Field( - description="The name of the branch which should be updated to match upstream." + 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(ReposOwnerRepoMergeUpstreamPostBody) +model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) -__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) 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 052d6bba0..e40165dc9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1057.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1057.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List, Union + from pydantic import Field from githubkit.utils import UNSET @@ -16,21 +18,41 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoMergesPostBody(GitHubModel): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoIssuesPostBody(GitHubModel): + """ReposOwnerRepoIssuesPostBody""" - base: str = Field( - description="The name of the base branch that the head will be merged into." + title: Union[str, int] = Field(description="The title of the issue.") + body: Missing[str] = Field(default=UNSET, description="The contents of the issue.") + assignee: Missing[Union[str, None]] = Field( + default=UNSET, + description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_", ) - head: str = Field( - description="The head to merge. This can be a branch name or a commit SHA1." + 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._", ) - commit_message: Missing[str] = Field( + assignees: Missing[List[str]] = Field( default=UNSET, - description="Commit message to use for the merge commit. If omitted, a default message will be used.", + description="Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", ) -model_rebuild(ReposOwnerRepoMergesPostBody) +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__ = ("ReposOwnerRepoMergesPostBody",) +__all__ = ( + "ReposOwnerRepoIssuesPostBody", + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", +) 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 4db27f8af..2e91230e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1058.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1058.py @@ -9,33 +9,17 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoMilestonesPostBody(GitHubModel): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - title: str = Field(description="The title of the milestone.") - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - description="The state of the milestone. Either `open` or `closed`.", - ) - description: Missing[str] = Field( - default=UNSET, description="A description of the milestone." - ) - due_on: Missing[datetime] = Field( - default=UNSET, - description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) + body: str = Field(description="The contents of the comment.") -model_rebuild(ReposOwnerRepoMilestonesPostBody) +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoMilestonesPostBody",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) 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 66f746617..e13da8a38 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1059.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1059.py @@ -10,34 +10,22 @@ from __future__ import annotations from typing import Literal -from datetime import datetime from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - title: Missing[str] = Field( - default=UNSET, description="The title of the milestone." - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - description="The state of the milestone. Either `open` or `closed`.", - ) - description: Missing[str] = Field( - default=UNSET, description="A description of the milestone." - ) - due_on: Missing[datetime] = Field( - default=UNSET, - description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the issue comment." ) -model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) 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 ee1af04ff..f4cf48489 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1060.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1060.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,15 +18,54 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoNotificationsPutBody(GitHubModel): - """ReposOwnerRepoNotificationsPutBody""" +class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberPatchBody""" - last_read_at: Missing[datetime] = Field( + title: Missing[Union[str, int, None]] = Field( + default=UNSET, description="The title of the issue." + ) + body: Missing[Union[str, None]] = Field( + default=UNSET, description="The contents of the issue." + ) + assignee: Missing[Union[str, None]] = Field( + default=UNSET, + description="Username to assign to this issue. **This field is deprecated.**", + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="The open or closed state of the issue." + ) + state_reason: Missing[ + Union[None, Literal["completed", "not_planned", "reopened"]] + ] = Field( + default=UNSET, + description="The reason for the state change. Ignored unless `state` is changed.", + ) + milestone: Missing[Union[str, int, None]] = Field(default=UNSET) + labels: Missing[ + List[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] + ] = Field( + default=UNSET, + description="Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped.", + ) + assignees: Missing[List[str]] = Field( default=UNSET, - description="Describes the last point that notifications were checked. Anything updated since this time will not be marked as read. If you omit this parameter, all notifications are marked as read. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", + description="Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped.", ) -model_rebuild(ReposOwnerRepoNotificationsPutBody) +class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" + + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + color: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1) -__all__ = ("ReposOwnerRepoNotificationsPutBody",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBody", + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", +) 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 2b5b85a37..e809e4006 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1061.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1061.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): - """ReposOwnerRepoNotificationsPutResponse202""" +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + assignees: Missing[List[str]] = Field( + default=UNSET, + description="Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._", + ) -model_rebuild(ReposOwnerRepoNotificationsPutResponse202) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) -__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) 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 aaa502a31..5d857cf8c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1062.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1062.py @@ -9,27 +9,24 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - Update the source for the repository. Must include the branch name and path. - """ - - branch: str = Field( - description="The repository branch used to publish your site's source files." - ) - path: Literal["/", "/docs"] = Field( - description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`." + assignees: Missing[List[str]] = Field( + default=UNSET, + description="Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", ) -model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) 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 d404b2067..49a6d6da0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1063.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1063.py @@ -9,43 +9,17 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1062 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - -class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof0""" - - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Literal["legacy", "workflow"] = Field( - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch." - ) - 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(ReposOwnerRepoPagesPutBodyAnyof0) - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) + +class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" + + body: str = Field(description="The contents of the comment.") + + +model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) + +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) 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 cb1d683a5..8d5917f2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1064.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1064.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field @@ -17,34 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1062 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" -class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof1""" - - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] = Field() - public: Missing[bool] = Field( + labels: Missing[List[str]] = Field( + min_length=1, 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 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(ReposOwnerRepoPagesPutBodyAnyof1) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) 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 f93c08aa8..0ed7e108e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1065.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1065.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field @@ -17,35 +17,25 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1062 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - -class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof2""" - - cname: Union[str, None] = Field( - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."' - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - public: Missing[bool] = Field( - default=UNSET, - description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", - ) - - -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) + +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" + + labels: Missing[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] + ] = Field(min_length=1, default=UNSET) + + +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" + + name: str = Field() + + +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", +) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1066.py b/githubkit/versions/ghec_v2022_11_28/models/group_1066.py index 74054b9c8..d59513ace 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1066.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1066.py @@ -9,43 +9,17 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1062 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - - -class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof3""" - - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - public: bool = Field( - description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility." - ) - - -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) + +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" + + name: str = Field() + + +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) + +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) 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 ba530db1d..4e8d7c310 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1067.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1067.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field @@ -17,35 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1062 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" -class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof4""" - - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', - ) - https_enforced: bool = Field( - description="Specify whether HTTPS should be enforced for the repository." - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) - public: Missing[bool] = Field( + labels: Missing[List[str]] = Field( + min_length=1, 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 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(ReposOwnerRepoPagesPutBodyAnyof4) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) 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 a34439e2e..0d0e29232 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1068.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1068.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -18,21 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): - """ReposOwnerRepoPagesPostBodyPropSource +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - The source branch and directory used to publish your Pages site. - """ + labels: Missing[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] + ] = Field(min_length=1, default=UNSET) - branch: str = Field( - description="The repository branch used to publish your site's source files." - ) - path: Missing[Literal["/", "/docs"]] = Field( - default=UNSET, - description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", - ) +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" -model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) + name: str = Field() -__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) + +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", +) 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 1e2fce4f8..dfb903bb9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1069.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1069.py @@ -9,29 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1068 import ReposOwnerRepoPagesPostBodyPropSource - -class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof0""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.', - ) - source: ReposOwnerRepoPagesPostBodyPropSource = Field( - description="The source branch and directory used to publish your Pages site." - ) + name: str = Field() -model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) 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 613168e81..5769fdef9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1070.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1070.py @@ -17,21 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_1068 import ReposOwnerRepoPagesPostBodyPropSource +class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" -class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof1""" - - build_type: Literal["legacy", "workflow"] = Field( - description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.' - ) - source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = Field( - default=UNSET, - description="The source branch and directory used to publish your Pages site.", + 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(ReposOwnerRepoPagesPostBodyAnyof1) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) 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 983710249..42295dd52 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1071.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1071.py @@ -9,40 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoPagesDeploymentsPostBody - - The object used to create GitHub Pages deployment - """ +class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - 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." + 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(ReposOwnerRepoPagesDeploymentsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) 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 c70eda7b0..ed84db7b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1072.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1072.py @@ -11,17 +11,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" +class ReposOwnerRepoKeysPostBody(GitHubModel): + """ReposOwnerRepoKeysPostBody""" - enabled: bool = Field( - description="Whether or not private vulnerability reporting is enabled for the repository." + title: Missing[str] = Field(default=UNSET, description="A name for the key.") + key: str = Field(description="The contents of the key.") + read_only: Missing[bool] = Field( + default=UNSET, + description='If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/enterprise-cloud@latest//articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/enterprise-cloud@latest//articles/permission-levels-for-a-user-account-repository/)."', ) -model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) +model_rebuild(ReposOwnerRepoKeysPostBody) -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) +__all__ = ("ReposOwnerRepoKeysPostBody",) 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 64fb2be93..c9c52cd3c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1073.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1073.py @@ -16,15 +16,22 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoProjectsPostBody(GitHubModel): - """ReposOwnerRepoProjectsPostBody""" +class ReposOwnerRepoLabelsPostBody(GitHubModel): + """ReposOwnerRepoLabelsPostBody""" - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." + name: str = Field( + description='The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."' + ) + color: Missing[str] = Field( + default=UNSET, + description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", + ) + description: Missing[str] = Field( + default=UNSET, + description="A short description of the label. Must be 100 characters or fewer.", ) -model_rebuild(ReposOwnerRepoProjectsPostBody) +model_rebuild(ReposOwnerRepoLabelsPostBody) -__all__ = ("ReposOwnerRepoProjectsPostBody",) +__all__ = ("ReposOwnerRepoLabelsPostBody",) 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 62ff9a23e..99482c11e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1074.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1074.py @@ -9,23 +9,30 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0116 import CustomPropertyValue - -class ReposOwnerRepoPropertiesValuesPatchBody(GitHubModel): - """ReposOwnerRepoPropertiesValuesPatchBody""" +class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): + """ReposOwnerRepoLabelsNamePatchBody""" - properties: List[CustomPropertyValue] = Field( - description="A list of custom property names and associated values to apply to the repositories." + new_name: Missing[str] = Field( + default=UNSET, + description='The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."', + ) + color: Missing[str] = Field( + default=UNSET, + description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", + ) + description: Missing[str] = Field( + default=UNSET, + description="A short description of the label. Must be 100 characters or fewer.", ) -model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) +model_rebuild(ReposOwnerRepoLabelsNamePatchBody) -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) 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 4fbd1ab3f..7be32859a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1075.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1075.py @@ -11,45 +11,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPostBody(GitHubModel): - """ReposOwnerRepoPullsPostBody""" +class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): + """ReposOwnerRepoMergeUpstreamPostBody""" - 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.", + branch: str = Field( + description="The name of the branch which should be updated to match upstream." ) -model_rebuild(ReposOwnerRepoPullsPostBody) +model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) -__all__ = ("ReposOwnerRepoPullsPostBody",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) 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 b48ea50a0..052d6bba0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1076.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1076.py @@ -11,15 +11,26 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" +class ReposOwnerRepoMergesPostBody(GitHubModel): + """ReposOwnerRepoMergesPostBody""" - body: str = Field(description="The text of the reply to the review comment.") + 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(ReposOwnerRepoPullsCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoMergesPostBody) -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoMergesPostBody",) 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 7206cc70c..4db27f8af 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1077.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1077.py @@ -10,22 +10,32 @@ from __future__ import annotations from typing import Literal +from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoMilestonesPostBody(GitHubModel): + """ReposOwnerRepoMilestonesPostBody""" - 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: str = Field(description="The title of the milestone.") + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, + description="The state of the milestone. Either `open` or `closed`.", + ) + description: Missing[str] = Field( + default=UNSET, description="A description of the milestone." + ) + due_on: Missing[datetime] = Field( + default=UNSET, + description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", ) -model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoMilestonesPostBody) -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoMilestonesPostBody",) 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 c05715bd9..66f746617 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1078.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1078.py @@ -10,6 +10,7 @@ from __future__ import annotations from typing import Literal +from datetime import datetime from pydantic import Field @@ -18,29 +19,25 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberPatchBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" 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." + default=UNSET, description="The title of the milestone." ) state: Missing[Literal["open", "closed"]] = Field( default=UNSET, - description="State of this Pull Request. Either `open` or `closed`.", + description="The state of the milestone. 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.", + description: Missing[str] = Field( + default=UNSET, description="A description of the milestone." ) - maintainer_can_modify: Missing[bool] = Field( + due_on: Missing[datetime] = Field( default=UNSET, - description="Indicates whether [maintainers can modify](https://docs.github.com/enterprise-cloud@latest//articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", + description="The 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(ReposOwnerRepoPullsPullNumberPatchBody) +model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) 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 a1c5168af..ee1af04ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1079.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1079.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field @@ -18,48 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" +class ReposOwnerRepoNotificationsPutBody(GitHubModel): + """ReposOwnerRepoNotificationsPutBody""" - location: Missing[str] = Field( + last_read_at: Missing[datetime] = Field( default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - retention_period_minutes: Missing[int] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + 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(ReposOwnerRepoPullsPullNumberCodespacesPostBody) +model_rebuild(ReposOwnerRepoNotificationsPutBody) -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) +__all__ = ("ReposOwnerRepoNotificationsPutBody",) 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 052083c53..2b5b85a37 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1080.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1080.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,45 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" - - body: str = Field(description="The text of the review comment.") - commit_id: str = Field( - description="The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`." - ) - path: str = Field( - description="The relative path to the file that necessitates a comment." - ) - position: Missing[int] = Field( - default=UNSET, - description='**This parameter is deprecated. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', - ) - side: Missing[Literal["LEFT", "RIGHT"]] = Field( - default=UNSET, - description='In a split diff view, the side of the diff that the pull request\'s changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/enterprise-cloud@latest//articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation.', - ) - line: Missing[int] = Field( - default=UNSET, - description="**Required unless using `subject_type:file`**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.", - ) - start_line: Missing[int] = Field( - default=UNSET, - description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/enterprise-cloud@latest//articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation.', - ) - start_side: Missing[Literal["LEFT", "RIGHT", "side"]] = Field( - default=UNSET, - description='**Required when using multi-line comments unless using `in_reply_to`**. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/enterprise-cloud@latest//articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context.', - ) - in_reply_to: Missing[int] = Field( - default=UNSET, - description='The ID of the review comment to reply to. To find the ID of a review comment with ["List review comments on a pull request"](#list-review-comments-on-a-pull-request). When specified, all parameters other than `body` in the request body are ignored.', - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, description="The level at which the comment is targeted." - ) - - -model_rebuild(ReposOwnerRepoPullsPullNumberCommentsPostBody) - -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) +class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): + """ReposOwnerRepoNotificationsPutResponse202""" + + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoNotificationsPutResponse202) + +__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1081.py b/githubkit/versions/ghec_v2022_11_28/models/group_1081.py index 19ce96346..aaa502a31 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1081.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1081.py @@ -9,17 +9,27 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + + Update the source for the repository. Must include the branch name and path. + """ - body: str = Field(description="The text of the review comment.") + 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(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) +model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) 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 bc574dd95..c30eeb38e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1082.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1082.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,25 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutBody""" - commit_title: Missing[str] = Field( - default=UNSET, description="Title for the automatic commit message." - ) - commit_message: Missing[str] = Field( - default=UNSET, description="Extra detail to append to automatic commit message." +class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof0""" + + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', ) - sha: Missing[str] = Field( + https_enforced: Missing[bool] = Field( default=UNSET, - description="SHA that pull request head must match to allow merge.", + description="Specify whether HTTPS should be enforced for the repository.", ) - merge_method: Missing[Literal["merge", "squash", "rebase"]] = Field( - default=UNSET, description="The merge method to use." + build_type: 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(ReposOwnerRepoPullsPullNumberMergePutBody) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) 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 eaa87fc99..b48716d78 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1083.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1083.py @@ -9,20 +9,42 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) - -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) +from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + + +class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof1""" + + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] = Field() + public: Missing[bool] = Field( + default=UNSET, + description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", + ) + + +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) 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 ff106781d..0d74fa599 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1084.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1084.py @@ -9,20 +9,43 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) - -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) +from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + + +class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof2""" + + cname: Union[str, None] = Field( + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."' + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) + public: Missing[bool] = Field( + default=UNSET, + description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility.", + ) + + +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1085.py b/githubkit/versions/ghec_v2022_11_28/models/group_1085.py index 1fa538765..6770fe836 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1085.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1085.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field @@ -17,18 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - reviewers: List[str] = Field( - description="An array of user `login`s that will be requested." +class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof3""" + + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", ) - team_reviewers: Missing[List[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be requested." + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) + public: bool = Field( + description="Configures access controls for the GitHub Pages site. If public is set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site. This includes anyone in your Enterprise if the repository is set to `internal` visibility." ) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) 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 6f77dbb5a..c5590989d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1086.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1086.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field @@ -17,18 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - reviewers: Missing[List[str]] = Field( - default=UNSET, description="An array of user `login`s that will be requested." +class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof4""" + + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/enterprise-cloud@latest//pages/configuring-a-custom-domain-for-your-github-pages-site)."', + ) + https_enforced: bool = Field( + description="Specify whether HTTPS should be enforced for the repository." + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", ) - team_reviewers: List[str] = Field( - description="An array of team `slug`s that will be requested." + 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(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) 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 0adaf0241..a34439e2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1087.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1087.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -18,17 +18,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" +class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): + """ReposOwnerRepoPagesPostBodyPropSource - reviewers: List[str] = Field( - description="An array of user `login`s that will be removed." + The source branch and directory used to publish your Pages site. + """ + + branch: str = Field( + description="The repository branch used to publish your site's source files." ) - team_reviewers: Missing[List[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be removed." + path: Missing[Literal["/", "/docs"]] = Field( + default=UNSET, + description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", ) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) +model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) 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 d5d5a7566..97f397897 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1088.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1088.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field @@ -17,51 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_1087 import ReposOwnerRepoPagesPostBodyPropSource -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 ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof0""" -class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - - path: str = Field( - description="The relative path to the file that necessitates a review comment." - ) - position: Missing[int] = Field( + build_type: Missing[Literal["legacy", "workflow"]] = Field( default=UNSET, - description='The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', + description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.', + ) + source: ReposOwnerRepoPagesPostBodyPropSource = Field( + description="The source branch and directory used to publish your Pages site." ) - body: str = Field(description="Text of the review comment.") - line: Missing[int] = Field(default=UNSET) - side: Missing[str] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - start_side: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBody", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", -) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) 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 60600e7a7..dbd1996b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1089.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1089.py @@ -9,17 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_1087 import ReposOwnerRepoPagesPostBodyPropSource + -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" +class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof1""" - body: str = Field(description="The body text of the pull request review.") + build_type: Literal["legacy", "workflow"] = Field( + description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.' + ) + source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = Field( + default=UNSET, + description="The source branch and directory used to publish your Pages site.", + ) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) 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 857baf92a..983710249 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1090.py +++ b/githubkit/versions/ghec_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.utils import UNSET @@ -18,15 +16,33 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" +class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoPagesDeploymentsPostBody + + The object used to create GitHub Pages deployment + """ - message: str = Field( - description="The message for the pull request review dismissal" + 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." ) - event: Missing[Literal["DISMISS"]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) +model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) 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 63a7f87ba..c70eda7b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1091.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1091.py @@ -9,26 +9,19 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - 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." + enabled: bool = Field( + description="Whether or not private vulnerability reporting is enabled for the repository." ) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) +model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) 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 5ae4b707e..64fb2be93 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1092.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1092.py @@ -16,15 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" +class ReposOwnerRepoProjectsPostBody(GitHubModel): + """ReposOwnerRepoProjectsPostBody""" - 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.", + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." ) -model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) +model_rebuild(ReposOwnerRepoProjectsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) +__all__ = ("ReposOwnerRepoProjectsPostBody",) 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 862b6ba8f..e58e5928d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1093.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1093.py @@ -9,20 +9,23 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0120 import CustomPropertyValue + -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" +class ReposOwnerRepoPropertiesValuesPatchBody(GitHubModel): + """ReposOwnerRepoPropertiesValuesPatchBody""" - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + properties: List[CustomPropertyValue] = Field( + description="A list of custom property names and associated values to apply to the repositories." + ) -model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) +model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) 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 92b00e20a..4fbd1ab3f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1094.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1094.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,40 +16,40 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoReleasesPostBody(GitHubModel): - """ReposOwnerRepoReleasesPostBody""" +class ReposOwnerRepoPullsPostBody(GitHubModel): + """ReposOwnerRepoPullsPostBody""" - tag_name: str = Field(description="The name of the tag.") - target_commitish: Missing[str] = Field( + title: Missing[str] = Field( default=UNSET, - description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", + description="The title of the new pull request. Required unless `issue` is specified.", ) - 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." + 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`." ) - draft: Missing[bool] = Field( + head_repo: Missing[str] = Field( default=UNSET, - description="`true` to create a draft (unpublished) release, `false` to create a published one.", + 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.", ) - prerelease: Missing[bool] = Field( - default=UNSET, - description="`true` to identify the release as a prerelease. `false` to identify the release as a full release.", + 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." ) - discussion_category_name: Missing[str] = Field( + body: Missing[str] = Field( + default=UNSET, description="The contents of the pull request." + ) + maintainer_can_modify: Missing[bool] = Field( default=UNSET, - description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/enterprise-cloud@latest//discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', + description="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.", ) - generate_release_notes: Missing[bool] = Field( + draft: 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.", + 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.', ) - make_latest: Missing[Literal["true", "false", "legacy"]] = Field( + issue: Missing[int] = 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 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(ReposOwnerRepoReleasesPostBody) +model_rebuild(ReposOwnerRepoPullsPostBody) -__all__ = ("ReposOwnerRepoReleasesPostBody",) +__all__ = ("ReposOwnerRepoPullsPostBody",) 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 f49d56bca..b48ea50a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1095.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1095.py @@ -11,22 +11,15 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" +class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") - label: Missing[str] = Field( - default=UNSET, - description="An alternate short description of the asset. Used in place of the filename.", - ) - state: Missing[str] = Field(default=UNSET) + body: str = Field(description="The text of the reply to the review comment.") -model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) 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 3944a35e1..7206cc70c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1096.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1096.py @@ -9,33 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - tag_name: str = Field( - description="The tag name for the release. This can be an existing tag or a new one." - ) - target_commitish: Missing[str] = Field( - default=UNSET, - description="Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.", - ) - previous_tag_name: Missing[str] = Field( - default=UNSET, - description="The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.", - ) - configuration_file_path: Missing[str] = Field( - default=UNSET, - description="Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.", + 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(ReposOwnerRepoReleasesGenerateNotesPostBody) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) 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 37c6fbbe2..c05715bd9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1097.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1097.py @@ -18,36 +18,29 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" +class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberPatchBody""" - 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.", + title: Missing[str] = Field( + default=UNSET, description="The title of the pull request." ) - 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.", + default=UNSET, description="The contents of the pull request." ) - prerelease: Missing[bool] = Field( + state: Missing[Literal["open", "closed"]] = Field( default=UNSET, - description="`true` to identify the release as a prerelease, `false` to identify the release as a full release.", + description="State of this Pull Request. Either `open` or `closed`.", ) - make_latest: Missing[Literal["true", "false", "legacy"]] = Field( + base: Missing[str] = Field( default=UNSET, - description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", + description="The name of the 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.", ) - discussion_category_name: Missing[str] = Field( + maintainer_can_modify: Missing[bool] = Field( default=UNSET, - description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/enterprise-cloud@latest//discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', + description="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(ReposOwnerRepoReleasesReleaseIdPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberPatchBody) -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) 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 2e3235af7..a1c5168af 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1098.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1098.py @@ -13,17 +13,53 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" +class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - 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." + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", + ) + client_ip: Missing[str] = Field( + default=UNSET, + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + multi_repo_permissions_opt_out: Missing[bool] = Field( + default=UNSET, + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + retention_period_minutes: Missing[int] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", ) -model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCodespacesPostBody) -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) 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 b5452586b..052083c53 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1099.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1099.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,79 +17,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0133 import RepositoryRuleUpdate -from .group_0157 import RepositoryRuleOneof17 -from .group_0153 import RepositoryRuleWorkflows -from .group_0138 import RepositoryRulePullRequest -from .group_0155 import RepositoryRuleCodeScanning -from .group_0121 import RepositoryRulesetConditions -from .group_0120 import RepositoryRulesetBypassActor -from .group_0150 import RepositoryRuleTagNamePattern -from .group_0148 import RepositoryRuleBranchNamePattern -from .group_0136 import RepositoryRuleRequiredDeployments -from .group_0140 import RepositoryRuleRequiredStatusChecks -from .group_0142 import RepositoryRuleCommitMessagePattern -from .group_0146 import RepositoryRuleCommitterEmailPattern -from .group_0144 import RepositoryRuleCommitAuthorEmailPattern -from .group_0135 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory -from .group_0132 import ( - RepositoryRuleOneof14, - RepositoryRuleOneof16, - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) +class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" -class ReposOwnerRepoRulesetsPostBody(GitHubModel): - """ReposOwnerRepoRulesetsPostBody""" - - name: str = Field(description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push"]] = Field( + body: str = Field(description="The text of the review comment.") + commit_id: str = Field( + description="The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`." + ) + path: str = Field( + description="The relative path to the file that necessitates a comment." + ) + position: Missing[int] = Field( default=UNSET, - description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", + description='**This parameter is deprecated. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', ) - 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." + 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.', ) - bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( + line: Missing[int] = Field( default=UNSET, - description="The actors that can bypass the rules in this ruleset", + 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.", ) - conditions: Missing[RepositoryRulesetConditions] = Field( + start_line: Missing[int] = Field( default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", + 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." ) - rules: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoRulesetsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsPostBody) -__all__ = ("ReposOwnerRepoRulesetsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) 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 13a43e1ec..19ce96346 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1100.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1100.py @@ -9,88 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0133 import RepositoryRuleUpdate -from .group_0157 import RepositoryRuleOneof17 -from .group_0153 import RepositoryRuleWorkflows -from .group_0138 import RepositoryRulePullRequest -from .group_0155 import RepositoryRuleCodeScanning -from .group_0121 import RepositoryRulesetConditions -from .group_0120 import RepositoryRulesetBypassActor -from .group_0150 import RepositoryRuleTagNamePattern -from .group_0148 import RepositoryRuleBranchNamePattern -from .group_0136 import RepositoryRuleRequiredDeployments -from .group_0140 import RepositoryRuleRequiredStatusChecks -from .group_0142 import RepositoryRuleCommitMessagePattern -from .group_0146 import RepositoryRuleCommitterEmailPattern -from .group_0144 import RepositoryRuleCommitAuthorEmailPattern -from .group_0135 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory -from .group_0132 import ( - RepositoryRuleOneof14, - RepositoryRuleOneof16, - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) - -class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push"]] = Field( - default=UNSET, - description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", - ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( - default=UNSET, - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page.", - ) - 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, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") + body: str = Field(description="The text of the review comment.") -model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) 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 e2b827b1b..bc574dd95 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1101.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1101.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,24 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - 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`." + commit_title: Missing[str] = Field( + default=UNSET, description="Title for the automatic commit message." ) - 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.", + commit_message: Missing[str] = Field( + default=UNSET, description="Extra detail to append to automatic commit message." ) - resolution_comment: Missing[Union[str, None]] = Field( + sha: Missing[str] = Field( default=UNSET, - description="An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.", + 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(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) 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 c68c08211..eaa87fc99 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1102.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1102.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,25 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoStatusesShaPostBody(GitHubModel): - """ReposOwnerRepoStatusesShaPostBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - state: Literal["error", "failure", "pending", "success"] = Field( - description="The state of the status." - ) - target_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`", - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="A short description of the status." - ) - context: Missing[str] = Field( - default=UNSET, - description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoStatusesShaPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) -__all__ = ("ReposOwnerRepoStatusesShaPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) 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 140c5808c..ff106781d 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1103.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1103.py @@ -16,19 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoSubscriptionPutBody(GitHubModel): - """ReposOwnerRepoSubscriptionPutBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - 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.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoSubscriptionPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) -__all__ = ("ReposOwnerRepoSubscriptionPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) 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 59aae89ec..1fa538765 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1104.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1104.py @@ -9,19 +9,26 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - pattern: str = Field( - description="An optional glob pattern to match against when enforcing tag protection." + 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(ReposOwnerRepoTagsProtectionPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) -__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) 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 e248ddcbd..6f77dbb5a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1105.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1105.py @@ -13,17 +13,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoTopicsPutBody(GitHubModel): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - names: List[str] = Field( - description="An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters." + reviewers: Missing[List[str]] = Field( + default=UNSET, description="An array of user `login`s that will be requested." + ) + team_reviewers: List[str] = Field( + description="An array of team `slug`s that will be requested." ) -model_rebuild(ReposOwnerRepoTopicsPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) -__all__ = ("ReposOwnerRepoTopicsPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) 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 8e53926f6..0adaf0241 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1106.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1106.py @@ -18,21 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoTransferPostBody(GitHubModel): - """ReposOwnerRepoTransferPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - new_owner: str = Field( - description="The username or organization name the repository will be transferred to." + reviewers: List[str] = Field( + description="An array of user `login`s that will be removed." ) - 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.", + team_reviewers: Missing[List[str]] = Field( + default=UNSET, description="An array of team `slug`s that will be removed." ) -model_rebuild(ReposOwnerRepoTransferPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) -__all__ = ("ReposOwnerRepoTransferPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) 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 a7818cc81..d5d5a7566 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1107.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1107.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,27 +18,50 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" +class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - owner: Missing[str] = Field( + 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="The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.", + description="**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.", ) - name: str = Field(description="The name of the new repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the new repository." + 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.", ) - include_all_branches: Missing[bool] = Field( + comments: Missing[ + List[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems] + ] = 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="Use the following table to specify the location, destination, and contents of the draft review comment.", + ) + + +class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" + + path: str = Field( + description="The relative path to the file that necessitates a review comment." ) - private: Missing[bool] = Field( + position: Missing[int] = Field( default=UNSET, - description="Either `true` to create a new private repository or `false` to create a new public one.", + 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(ReposTemplateOwnerTemplateRepoGeneratePostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBody", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", +) 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 883fe1eea..60600e7a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1108.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1108.py @@ -9,63 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ScimV2OrganizationsOrgUsersPostBody(GitHubModel): - """ScimV2OrganizationsOrgUsersPostBody""" - - user_name: str = Field( - alias="userName", - description="Configured by the admin. Could be an email, login, or username", - ) - display_name: Missing[str] = Field( - default=UNSET, - alias="displayName", - description="The name of the user, suitable for display to end-users", - ) - name: ScimV2OrganizationsOrgUsersPostBodyPropName = Field() - emails: List[ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems] = Field( - min_length=1, description="user emails" - ) - schemas: Missing[List[str]] = Field(default=UNSET) - external_id: Missing[str] = Field(default=UNSET, alias="externalId") - groups: Missing[List[str]] = Field(default=UNSET) - active: Missing[bool] = Field(default=UNSET) - - -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""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - value: str = Field() - primary: Missing[bool] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + body: str = Field(description="The body text of the pull request review.") -model_rebuild(ScimV2OrganizationsOrgUsersPostBody) -model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropName) -model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) -__all__ = ( - "ScimV2OrganizationsOrgUsersPostBody", - "ScimV2OrganizationsOrgUsersPostBodyPropName", - "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems", -) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) 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 587281d49..857baf92a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1109.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1109.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -18,54 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ScimV2OrganizationsOrgUsersScimUserIdPutBody(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - 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", + message: str = Field( + description="The message for the pull request review dismissal" ) - external_id: Missing[str] = Field(default=UNSET, alias="externalId") - groups: Missing[List[str]] = Field(default=UNSET) - active: Missing[bool] = Field(default=UNSET) - user_name: str = Field( - alias="userName", - description="Configured by the admin. Could be an email, login, or username", - ) - name: ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName = Field() - emails: List[ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems] = Field( - min_length=1, description="user emails" - ) - - -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: str = Field(alias="givenName") - family_name: str = Field(alias="familyName") - formatted: Missing[str] = Field(default=UNSET) - - -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" - - type: Missing[str] = Field(default=UNSET) - value: str = Field() - primary: Missing[bool] = Field(default=UNSET) + event: Missing[Literal["DISMISS"]] = Field(default=UNSET) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBody) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName) -model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) -__all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPutBody", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems", -) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) 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 bf89049c1..63a7f87ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1110.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1110.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,70 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ScimV2OrganizationsOrgUsersScimUserIdPatchBody(GitHubModel): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - schemas: Missing[List[str]] = Field(default=UNSET) - operations: List[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems - ] = Field( - min_length=1, - alias="Operations", - description="Set of operations to be performed", + body: Missing[str] = Field( + default=UNSET, description="The body text of the pull request review" + ) + event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] = Field( + description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action." ) -class 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(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) -__all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPatchBody", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items", -) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) 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 ff25ca816..5ae4b707e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1111.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1111.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,32 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdPatchBody(GitHubModel): - """TeamsTeamIdPatchBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - name: str = Field(description="The name of the team.") - description: Missing[str] = Field( - default=UNSET, description="The description of the team." - ) - privacy: Missing[Literal["secret", "closed"]] = Field( - default=UNSET, - description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", - ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( + expected_head_sha: Missing[str] = Field( default=UNSET, - description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", - ) - permission: Missing[Literal["pull", "push", "admin"]] = Field( - default=UNSET, - description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", - ) - parent_team_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of a team to set as the parent team." + 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(TeamsTeamIdPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) -__all__ = ("TeamsTeamIdPatchBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) 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 9e0151a61..862b6ba8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1112.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1112.py @@ -16,17 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsPostBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - title: str = Field(description="The discussion post's title.") - body: str = Field(description="The discussion post's body text.") - private: Missing[bool] = Field( - default=UNSET, - description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", - ) + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(TeamsTeamIdDiscussionsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) -__all__ = ("TeamsTeamIdDiscussionsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1113.py b/githubkit/versions/ghec_v2022_11_28/models/group_1113.py index 8c9998ba6..92b00e20a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1113.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1113.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,17 +18,40 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" +class ReposOwnerRepoReleasesPostBody(GitHubModel): + """ReposOwnerRepoReleasesPostBody""" - title: Missing[str] = Field( - default=UNSET, description="The discussion post's title." + tag_name: str = Field(description="The name of the tag.") + target_commitish: Missing[str] = Field( + default=UNSET, + description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", ) + name: Missing[str] = Field(default=UNSET, description="The name of the release.") body: Missing[str] = Field( - default=UNSET, description="The discussion post's body text." + default=UNSET, description="Text describing the contents of the tag." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="`true` to create a draft (unpublished) release, `false` to create a published one.", + ) + prerelease: Missing[bool] = Field( + default=UNSET, + description="`true` to identify the release as a prerelease. `false` to identify the release as a full release.", + ) + discussion_category_name: Missing[str] = Field( + default=UNSET, + description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/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(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) +model_rebuild(ReposOwnerRepoReleasesPostBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) +__all__ = ("ReposOwnerRepoReleasesPostBody",) 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 2333d1363..f49d56bca 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1114.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1114.py @@ -11,15 +11,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - body: str = Field(description="The discussion comment's body text.") + name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") + label: Missing[str] = Field( + default=UNSET, + description="An alternate short description of the asset. Used in place of the filename.", + ) + state: Missing[str] = Field(default=UNSET) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1115.py b/githubkit/versions/ghec_v2022_11_28/models/group_1115.py index a44a260ff..3944a35e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1115.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1115.py @@ -11,15 +11,31 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - body: str = Field(description="The discussion comment's body text.") + tag_name: str = Field( + description="The tag name for the release. This can be an existing tag or a new one." + ) + target_commitish: Missing[str] = Field( + default=UNSET, + description="Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.", + ) + previous_tag_name: Missing[str] = Field( + default=UNSET, + description="The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.", + ) + configuration_file_path: Missing[str] = Field( + default=UNSET, + description="Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.", + ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) +model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1116.py b/githubkit/versions/ghec_v2022_11_28/models/group_1116.py index fae48df36..37c6fbbe2 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1116.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1116.py @@ -13,25 +13,41 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" +class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion comment." + tag_name: Missing[str] = Field(default=UNSET, description="The name of the tag.") + target_commitish: Missing[str] = Field( + default=UNSET, + description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", + ) + name: Missing[str] = Field(default=UNSET, description="The name of the release.") + body: Missing[str] = Field( + default=UNSET, description="Text describing the contents of the tag." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="`true` makes the release a draft, and `false` publishes the release.", + ) + prerelease: Missing[bool] = Field( + default=UNSET, + description="`true` to identify the release as a prerelease, `false` to identify the release as a full release.", + ) + make_latest: Missing[Literal["true", "false", "legacy"]] = Field( + default=UNSET, + description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", + ) + discussion_category_name: Missing[str] = Field( + default=UNSET, + description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/enterprise-cloud@latest//discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', ) -model_rebuild( - TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +model_rebuild(ReposOwnerRepoReleasesReleaseIdPatchBody) -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1117.py b/githubkit/versions/ghec_v2022_11_28/models/group_1117.py index a1d80ad44..2e3235af7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1117.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1117.py @@ -16,16 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" +class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field( - description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion." + content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the release." ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1118.py b/githubkit/versions/ghec_v2022_11_28/models/group_1118.py index 913551bc8..83204605a 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1118.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1118.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,15 +17,79 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0137 import RepositoryRuleUpdate +from .group_0161 import RepositoryRuleOneof17 +from .group_0157 import RepositoryRuleWorkflows +from .group_0142 import RepositoryRulePullRequest +from .group_0159 import RepositoryRuleCodeScanning +from .group_0125 import RepositoryRulesetConditions +from .group_0124 import RepositoryRulesetBypassActor +from .group_0154 import RepositoryRuleTagNamePattern +from .group_0152 import RepositoryRuleBranchNamePattern +from .group_0140 import RepositoryRuleRequiredDeployments +from .group_0144 import RepositoryRuleRequiredStatusChecks +from .group_0146 import RepositoryRuleCommitMessagePattern +from .group_0150 import RepositoryRuleCommitterEmailPattern +from .group_0148 import RepositoryRuleCommitAuthorEmailPattern +from .group_0139 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory +from .group_0136 import ( + RepositoryRuleOneof14, + RepositoryRuleOneof16, + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): - """TeamsTeamIdMembershipsUsernamePutBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." +class ReposOwnerRepoRulesetsPostBody(GitHubModel): + """ReposOwnerRepoRulesetsPostBody""" + + name: str = Field(description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push"]] = Field( + default=UNSET, + description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", + ) + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page." + ) + bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[RepositoryRulesetConditions] = Field( + default=UNSET, + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) + rules: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) +model_rebuild(ReposOwnerRepoRulesetsPostBody) -__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) +__all__ = ("ReposOwnerRepoRulesetsPostBody",) 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 8aef0bc43..96ff1a7b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1119.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1119.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,16 +17,80 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0137 import RepositoryRuleUpdate +from .group_0161 import RepositoryRuleOneof17 +from .group_0157 import RepositoryRuleWorkflows +from .group_0142 import RepositoryRulePullRequest +from .group_0159 import RepositoryRuleCodeScanning +from .group_0125 import RepositoryRulesetConditions +from .group_0124 import RepositoryRulesetBypassActor +from .group_0154 import RepositoryRuleTagNamePattern +from .group_0152 import RepositoryRuleBranchNamePattern +from .group_0140 import RepositoryRuleRequiredDeployments +from .group_0144 import RepositoryRuleRequiredStatusChecks +from .group_0146 import RepositoryRuleCommitMessagePattern +from .group_0150 import RepositoryRuleCommitterEmailPattern +from .group_0148 import RepositoryRuleCommitAuthorEmailPattern +from .group_0139 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory +from .group_0136 import ( + RepositoryRuleOneof14, + RepositoryRuleOneof16, + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutBody""" - permission: Missing[Literal["read", "write", "admin"]] = Field( +class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): + """ReposOwnerRepoRulesetsRulesetIdPutBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push"]] = Field( + default=UNSET, + description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", + ) + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( + default=UNSET, + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page.", + ) + bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", + ) + conditions: Missing[RepositoryRulesetConditions] = Field( default=UNSET, - description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method).\"", + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) + rules: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) +model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) -__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) 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 6162fd16b..e2b827b1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1120.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1120.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutResponse403""" +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "resolved"] = Field( + description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`." + ) + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( + default=UNSET, + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", + ) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.", + ) -model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) +model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1121.py b/githubkit/versions/ghec_v2022_11_28/models/group_1121.py index 90c3c572e..c68c08211 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1121.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1121.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -18,15 +18,25 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): - """TeamsTeamIdReposOwnerRepoPutBody""" +class ReposOwnerRepoStatusesShaPostBody(GitHubModel): + """ReposOwnerRepoStatusesShaPostBody""" - permission: Missing[Literal["pull", "push", "admin"]] = Field( + state: Literal["error", "failure", "pending", "success"] = Field( + description="The state of the status." + ) + target_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`", + ) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="A short description of the status." + ) + context: Missing[str] = Field( default=UNSET, - description="The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", + description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", ) -model_rebuild(TeamsTeamIdReposOwnerRepoPutBody) +model_rebuild(ReposOwnerRepoStatusesShaPostBody) -__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) +__all__ = ("ReposOwnerRepoStatusesShaPostBody",) 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 b1a5f78f7..140c5808c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1122.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1122.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,30 +16,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdTeamSyncGroupMappingsPatchBody(GitHubModel): - """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" +class ReposOwnerRepoSubscriptionPutBody(GitHubModel): + """ReposOwnerRepoSubscriptionPutBody""" - 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." + 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.", ) - 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(ReposOwnerRepoSubscriptionPutBody) -__all__ = ( - "TeamsTeamIdTeamSyncGroupMappingsPatchBody", - "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems", -) +__all__ = ("ReposOwnerRepoSubscriptionPutBody",) 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 db0d2249c..59aae89ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1123.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1123.py @@ -9,42 +9,19 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserPatchBody(GitHubModel): - """UserPatchBody""" +class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): + """ReposOwnerRepoTagsProtectionPostBody""" - 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." + pattern: str = Field( + description="An optional glob pattern to match against when enforcing tag protection." ) -model_rebuild(UserPatchBody) +model_rebuild(ReposOwnerRepoTagsProtectionPostBody) -__all__ = ("UserPatchBody",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) 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 e4b528764..e248ddcbd 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1124.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1124.py @@ -15,16 +15,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0089 import Codespace +class ReposOwnerRepoTopicsPutBody(GitHubModel): + """ReposOwnerRepoTopicsPutBody""" -class UserCodespacesGetResponse200(GitHubModel): - """UserCodespacesGetResponse200""" + names: List[str] = Field( + description="An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters." + ) - total_count: int = Field() - codespaces: List[Codespace] = Field() +model_rebuild(ReposOwnerRepoTopicsPutBody) -model_rebuild(UserCodespacesGetResponse200) - -__all__ = ("UserCodespacesGetResponse200",) +__all__ = ("ReposOwnerRepoTopicsPutBody",) 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 a33f8e1b9..8e53926f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1125.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1125.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -18,53 +18,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesPostBodyOneof0(GitHubModel): - """UserCodespacesPostBodyOneof0""" +class ReposOwnerRepoTransferPostBody(GitHubModel): + """ReposOwnerRepoTransferPostBody""" - repository_id: int = Field(description="Repository id for this codespace") - ref: Missing[str] = Field( - default=UNSET, - description="Git ref (typically a branch name) for this codespace", - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", + new_owner: str = Field( + description="The username or organization name the repository will be transferred to." ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" + new_name: Missing[str] = Field( + default=UNSET, description="The new name to be given to the repository." ) - retention_period_minutes: Missing[int] = Field( + team_ids: Missing[List[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="ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.", ) -model_rebuild(UserCodespacesPostBodyOneof0) +model_rebuild(ReposOwnerRepoTransferPostBody) -__all__ = ("UserCodespacesPostBodyOneof0",) +__all__ = ("ReposOwnerRepoTransferPostBody",) 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 b9b4defa0..a7818cc81 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1126.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1126.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,50 +16,27 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesPostBodyOneof1(GitHubModel): - """UserCodespacesPostBodyOneof1""" +class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( - description="Pull request number for this codespace" - ) - location: Missing[str] = Field( + owner: Missing[str] = Field( default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + description="The 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.", ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", + name: str = Field(description="The name of the new repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the new repository." ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( + include_all_branches: Missing[bool] = Field( default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" + description="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`.", ) - idle_timeout_minutes: Missing[int] = Field( + private: Missing[bool] = Field( default=UNSET, - description="Time in minutes before codespace stops from inactivity", + description="Either `true` to create a new private repository or `false` to create a new public one.", ) -class UserCodespacesPostBodyOneof1PropPullRequest(GitHubModel): - """UserCodespacesPostBodyOneof1PropPullRequest - - Pull request number for this codespace - """ - - pull_request_number: int = Field(description="Pull request number") - repository_id: int = Field(description="Repository id for this codespace") - - -model_rebuild(UserCodespacesPostBodyOneof1) -model_rebuild(UserCodespacesPostBodyOneof1PropPullRequest) +model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) -__all__ = ( - "UserCodespacesPostBodyOneof1", - "UserCodespacesPostBodyOneof1PropPullRequest", -) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) 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 5d7718128..883fe1eea 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1127.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1127.py @@ -9,46 +9,63 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesSecretsGetResponse200(GitHubModel): - """UserCodespacesSecretsGetResponse200""" +class ScimV2OrganizationsOrgUsersPostBody(GitHubModel): + """ScimV2OrganizationsOrgUsersPostBody""" - total_count: int = Field() - secrets: List[CodespacesSecret] = Field() + user_name: str = Field( + alias="userName", + description="Configured by the admin. Could be an email, login, or username", + ) + display_name: Missing[str] = Field( + default=UNSET, + alias="displayName", + description="The name of the user, suitable for display to end-users", + ) + name: ScimV2OrganizationsOrgUsersPostBodyPropName = Field() + emails: List[ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems] = Field( + min_length=1, description="user emails" + ) + schemas: Missing[List[str]] = Field(default=UNSET) + external_id: Missing[str] = Field(default=UNSET, alias="externalId") + groups: Missing[List[str]] = Field(default=UNSET) + active: Missing[bool] = Field(default=UNSET) -class CodespacesSecret(GitHubModel): - """Codespaces Secret +class ScimV2OrganizationsOrgUsersPostBodyPropName(GitHubModel): + """ScimV2OrganizationsOrgUsersPostBodyPropName - Secrets for a GitHub Codespace. + Examples: + {'givenName': 'Jane', 'familyName': 'User'} """ - 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" - ) + 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(UserCodespacesSecretsGetResponse200) -model_rebuild(CodespacesSecret) +model_rebuild(ScimV2OrganizationsOrgUsersPostBody) +model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropName) +model_rebuild(ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems) __all__ = ( - "UserCodespacesSecretsGetResponse200", - "CodespacesSecret", + "ScimV2OrganizationsOrgUsersPostBody", + "ScimV2OrganizationsOrgUsersPostBodyPropName", + "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems", ) 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 445f0ef66..587281d49 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1128.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1128.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import List from pydantic import Field @@ -18,21 +18,54 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesSecretsSecretNamePutBody(GitHubModel): - """UserCodespacesSecretsSecretNamePutBody""" +class ScimV2OrganizationsOrgUsersScimUserIdPutBody(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" - 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})$", + schemas: Missing[List[str]] = Field(default=UNSET) + display_name: 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 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.", + alias="displayName", + description="The name of the user, suitable for display to end-users", ) - 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.", + external_id: Missing[str] = Field(default=UNSET, alias="externalId") + groups: Missing[List[str]] = Field(default=UNSET) + active: Missing[bool] = Field(default=UNSET) + user_name: str = Field( + alias="userName", + description="Configured by the admin. Could be an email, login, or username", + ) + name: ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName = Field() + emails: List[ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems] = Field( + min_length=1, description="user emails" ) -model_rebuild(UserCodespacesSecretsSecretNamePutBody) +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName + + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ + + given_name: str = Field(alias="givenName") + family_name: str = Field(alias="familyName") + formatted: Missing[str] = Field(default=UNSET) + + +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" + + type: Missing[str] = Field(default=UNSET) + value: str = Field() + primary: Missing[bool] = Field(default=UNSET) + + +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBody) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems) -__all__ = ("UserCodespacesSecretsSecretNamePutBody",) +__all__ = ( + "ScimV2OrganizationsOrgUsersScimUserIdPutBody", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems", +) 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 e688a9257..bf89049c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1129.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1129.py @@ -9,22 +9,79 @@ from __future__ import annotations -from typing import List +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0079 import MinimalRepository +class ScimV2OrganizationsOrgUsersScimUserIdPatchBody(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + schemas: Missing[List[str]] = Field(default=UNSET) + operations: List[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems + ] = Field( + min_length=1, + alias="Operations", + description="Set of operations to be performed", + ) - total_count: int = Field() - repositories: List[MinimalRepository] = Field() +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems(GitHubModel): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems""" -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) + op: Literal["add", "remove", "replace"] = Field() + path: Missing[str] = Field(default=UNSET) + value: Missing[ + Union[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0, + List[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items + ], + str, + ] + ] = Field(default=UNSET) -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0( + GitHubModel +): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0""" + + active: Missing[Union[bool, None]] = Field(default=UNSET) + user_name: Missing[Union[str, None]] = Field(default=UNSET, alias="userName") + external_id: Missing[Union[str, None]] = Field(default=UNSET, alias="externalId") + given_name: Missing[Union[str, None]] = Field(default=UNSET, alias="givenName") + family_name: Missing[Union[str, None]] = Field(default=UNSET, alias="familyName") + + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items( + GitHubModel +): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1 + Items + """ + + value: Missing[str] = Field(default=UNSET) + primary: Missing[bool] = Field(default=UNSET) + + +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBody) +model_rebuild(ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems) +model_rebuild( + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0 +) +model_rebuild( + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items +) + +__all__ = ( + "ScimV2OrganizationsOrgUsersScimUserIdPatchBody", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1Items", +) 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 054a6d61b..ff25ca816 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1130.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1130.py @@ -9,21 +9,41 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" +class TeamsTeamIdPatchBody(GitHubModel): + """TeamsTeamIdPatchBody""" - 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." + name: str = Field(description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." + ) + privacy: Missing[Literal["secret", "closed"]] = Field( + default=UNSET, + description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + ) + permission: Missing[Literal["pull", "push", "admin"]] = Field( + default=UNSET, + description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of a team to set as the parent team." ) -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) +model_rebuild(TeamsTeamIdPatchBody) -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) +__all__ = ("TeamsTeamIdPatchBody",) 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 5edeb55cb..9e0151a61 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1131.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1131.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,21 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesCodespaceNamePatchBody(GitHubModel): - """UserCodespacesCodespaceNamePatchBody""" +class TeamsTeamIdDiscussionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsPostBody""" - 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( + 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="Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in.", + 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(UserCodespacesCodespaceNamePatchBody) +model_rebuild(TeamsTeamIdDiscussionsPostBody) -__all__ = ("UserCodespacesCodespaceNamePatchBody",) +__all__ = ("TeamsTeamIdDiscussionsPostBody",) 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 baa2a52c6..8c9998ba6 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1132.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1132.py @@ -9,22 +9,24 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0088 import CodespaceMachine - -class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): - """UserCodespacesCodespaceNameMachinesGetResponse200""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - total_count: int = Field() - machines: List[CodespaceMachine] = Field() + 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(UserCodespacesCodespaceNameMachinesGetResponse200) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) 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 574036b59..2333d1363 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1133.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1133.py @@ -11,22 +11,15 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): - """UserCodespacesCodespaceNamePublishPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" - name: Missing[str] = Field( - default=UNSET, description="A name for the new repository." - ) - private: Missing[bool] = Field( - default=UNSET, description="Whether the new repository should be private." - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(UserCodespacesCodespaceNamePublishPostBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) 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 04c6a0578..a44a260ff 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1134.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1134.py @@ -9,21 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class UserEmailVisibilityPatchBody(GitHubModel): - """UserEmailVisibilityPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - visibility: Literal["public", "private"] = Field( - description="Denotes whether an email is publicly visible." - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(UserEmailVisibilityPatchBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) -__all__ = ("UserEmailVisibilityPatchBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) 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 40687cc1f..fae48df36 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1135.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1135.py @@ -9,25 +9,29 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class UserEmailsPostBodyOneof0(GitHubModel): - """UserEmailsPostBodyOneof0 +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ - - emails: List[str] = Field( - description="Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key." + 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(UserEmailsPostBodyOneof0) +model_rebuild( + TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) -__all__ = ("UserEmailsPostBodyOneof0",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", +) 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 c2aace7bb..a1d80ad44 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1136.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1136.py @@ -9,30 +9,23 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class UserEmailsDeleteBodyOneof0(GitHubModel): - """UserEmailsDeleteBodyOneof0 +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - 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( - description="Email addresses associated with the GitHub user account." + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions) to add to the team discussion." ) -model_rebuild(UserEmailsDeleteBodyOneof0) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ("UserEmailsDeleteBodyOneof0",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) 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 f6a483044..913551bc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1137.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1137.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,15 +18,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserGpgKeysPostBody(GitHubModel): - """UserGpgKeysPostBody""" +class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): + """TeamsTeamIdMembershipsUsernamePutBody""" - name: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." ) - armored_public_key: str = Field(description="A GPG key in ASCII-armored format.") -model_rebuild(UserGpgKeysPostBody) +model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) -__all__ = ("UserGpgKeysPostBody",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) 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 50efae3c7..8aef0bc43 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1138.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1138.py @@ -9,22 +9,24 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation +class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutBody""" -class UserInstallationsGetResponse200(GitHubModel): - """UserInstallationsGetResponse200""" + 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).\"", + ) - total_count: int = Field() - installations: List[Installation] = Field() +model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) -model_rebuild(UserInstallationsGetResponse200) - -__all__ = ("UserInstallationsGetResponse200",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) 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 462d4423d..6162fd16b 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1139.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1139.py @@ -9,25 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0017 import Repository - -class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" +class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - total_count: int = Field() - repository_selection: Missing[str] = Field(default=UNSET) - repositories: List[Repository] = Field() + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) +model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) 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 09cbf54e3..90c3c572e 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1140.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1140.py @@ -9,13 +9,24 @@ from __future__ import annotations +from typing import Literal + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): - """UserInteractionLimitsGetResponse200Anyof1""" +class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): + """TeamsTeamIdReposOwnerRepoPutBody""" + + 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(UserInteractionLimitsGetResponse200Anyof1) +model_rebuild(TeamsTeamIdReposOwnerRepoPutBody) -__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) 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 c2167fcac..b1a5f78f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1141.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1141.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET @@ -16,18 +18,30 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserKeysPostBody(GitHubModel): - """UserKeysPostBody""" +class TeamsTeamIdTeamSyncGroupMappingsPatchBody(GitHubModel): + """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" - 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.", + 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(UserKeysPostBody) +model_rebuild(TeamsTeamIdTeamSyncGroupMappingsPatchBody) +model_rebuild(TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems) -__all__ = ("UserKeysPostBody",) +__all__ = ( + "TeamsTeamIdTeamSyncGroupMappingsPatchBody", + "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems", +) 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 9b771b5c3..db0d2249c 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1142.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1142.py @@ -9,21 +9,42 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserMembershipsOrgsOrgPatchBody(GitHubModel): - """UserMembershipsOrgsOrgPatchBody""" +class UserPatchBody(GitHubModel): + """UserPatchBody""" - state: Literal["active"] = Field( - description='The state that the membership should be in. Only `"active"` will be accepted.' + name: Missing[str] = Field(default=UNSET, description="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(UserMembershipsOrgsOrgPatchBody) +model_rebuild(UserPatchBody) -__all__ = ("UserMembershipsOrgsOrgPatchBody",) +__all__ = ("UserPatchBody",) 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 994900d2d..288bb65e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1143.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1143.py @@ -9,51 +9,22 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0094 import Codespace -class UserMigrationsPostBody(GitHubModel): - """UserMigrationsPostBody""" - - lock_repositories: Missing[bool] = Field( - default=UNSET, - description="Lock the repositories being migrated at the start of the migration", - ) - exclude_metadata: Missing[bool] = Field( - default=UNSET, - description="Indicates whether metadata should be excluded and only git source should be included for the migration.", - ) - exclude_git_data: Missing[bool] = Field( - default=UNSET, - description="Indicates whether the repository git data should be excluded from the migration.", - ) - exclude_attachments: Missing[bool] = Field( - default=UNSET, description="Do not include attachments in the migration" - ) - exclude_releases: Missing[bool] = Field( - default=UNSET, description="Do not include releases in the migration" - ) - exclude_owner_projects: Missing[bool] = Field( - default=UNSET, - description="Indicates whether projects owned by the organization or users should be excluded.", - ) - org_metadata_only: Missing[bool] = Field( - default=UNSET, - description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", - ) - exclude: Missing[List[Literal["repositories"]]] = Field( - default=UNSET, - description="Exclude attributes from the API response to improve performance", - ) - repositories: List[str] = Field() - - -model_rebuild(UserMigrationsPostBody) - -__all__ = ("UserMigrationsPostBody",) + +class 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_1144.py b/githubkit/versions/ghec_v2022_11_28/models/group_1144.py index e16a36610..a33f8e1b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1144.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1144.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -18,15 +18,53 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserProjectsPostBody(GitHubModel): - """UserProjectsPostBody""" +class UserCodespacesPostBodyOneof0(GitHubModel): + """UserCodespacesPostBodyOneof0""" - name: str = Field(description="Name of the project") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the project" + repository_id: int = Field(description="Repository id for this codespace") + ref: Missing[str] = Field( + default=UNSET, + description="Git ref (typically a branch name) for this codespace", + ) + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", + ) + client_ip: Missing[str] = Field( + default=UNSET, + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + multi_repo_permissions_opt_out: Missing[bool] = Field( + default=UNSET, + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + retention_period_minutes: Missing[int] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", ) -model_rebuild(UserProjectsPostBody) +model_rebuild(UserCodespacesPostBodyOneof0) -__all__ = ("UserProjectsPostBody",) +__all__ = ("UserCodespacesPostBodyOneof0",) 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 e0fe3d9d9..b9b4defa0 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1145.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1145.py @@ -18,93 +18,50 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserReposPostBody(GitHubModel): - """UserReposPostBody""" +class UserCodespacesPostBodyOneof1(GitHubModel): + """UserCodespacesPostBodyOneof1""" - name: str = Field(description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." + pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( + description="Pull request number for this codespace" ) - 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( + location: Missing[str] = 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.", + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", ) - auto_init: Missing[bool] = Field( + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( default=UNSET, - description="Whether the repository is initialized with a minimal README.", + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", ) - gitignore_template: Missing[str] = Field( - default=UNSET, - description="The desired language or platform to apply to the .gitignore.", + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" ) - license_template: Missing[str] = Field( + devcontainer_path: Missing[str] = Field( default=UNSET, - description="The license keyword of the open source license for this repository.", + description="Path to devcontainer.json config to use for this codespace", ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to 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( + idle_timeout_minutes: Missing[int] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - has_downloads: Missing[bool] = Field( - default=UNSET, description="Whether downloads are enabled." - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", + description="Time in minutes before codespace stops from inactivity", ) -model_rebuild(UserReposPostBody) +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__ = ("UserReposPostBody",) +__all__ = ( + "UserCodespacesPostBodyOneof1", + "UserCodespacesPostBodyOneof1PropPullRequest", +) 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 3f7092ec4..5d7718128 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1146.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1146.py @@ -9,26 +9,46 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class UserSocialAccountsPostBody(GitHubModel): - """UserSocialAccountsPostBody +class UserCodespacesSecretsGetResponse200(GitHubModel): + """UserCodespacesSecretsGetResponse200""" - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} + total_count: int = Field() + secrets: List[CodespacesSecret] = Field() + + +class CodespacesSecret(GitHubModel): + """Codespaces Secret + + Secrets for a GitHub Codespace. """ - account_urls: List[str] = Field( - description="Full URLs for the social media profiles to add." + 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(UserSocialAccountsPostBody) +model_rebuild(UserCodespacesSecretsGetResponse200) +model_rebuild(CodespacesSecret) -__all__ = ("UserSocialAccountsPostBody",) +__all__ = ( + "UserCodespacesSecretsGetResponse200", + "CodespacesSecret", +) 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 a8664c5d3..445f0ef66 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1147.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1147.py @@ -9,26 +9,30 @@ from __future__ import annotations -from typing import List +from typing import List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserSocialAccountsDeleteBody(GitHubModel): - """UserSocialAccountsDeleteBody +class UserCodespacesSecretsSecretNamePutBody(GitHubModel): + """UserCodespacesSecretsSecretNamePutBody""" - 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." + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint.", + ) + key_id: str = Field(description="ID of the key you used to encrypt the secret.") + selected_repository_ids: Missing[List[Union[int, str]]] = Field( + default=UNSET, + description="An array of repository ids that can access the user secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Set selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#set-selected-repositories-for-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints.", ) -model_rebuild(UserSocialAccountsDeleteBody) +model_rebuild(UserCodespacesSecretsSecretNamePutBody) -__all__ = ("UserSocialAccountsDeleteBody",) +__all__ = ("UserCodespacesSecretsSecretNamePutBody",) 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 d882d76f5..b265a5ebe 100644 --- a/githubkit/versions/ghec_v2022_11_28/models/group_1148.py +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1148.py @@ -9,25 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0082 import MinimalRepository + -class UserSshSigningKeysPostBody(GitHubModel): - """UserSshSigningKeysPostBody""" +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" - 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)."', - ) + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -model_rebuild(UserSshSigningKeysPostBody) +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) -__all__ = ("UserSshSigningKeysPostBody",) +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1149.py b/githubkit/versions/ghec_v2022_11_28/models/group_1149.py new file mode 100644 index 000000000..054a6d61b --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1149.py @@ -0,0 +1,29 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" + + selected_repository_ids: List[int] = Field( + description="An array of repository ids for which a codespace can access the secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Add a selected repository to a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/enterprise-cloud@latest//rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints." + ) + + +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) + +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1150.py b/githubkit/versions/ghec_v2022_11_28/models/group_1150.py new file mode 100644 index 000000000..5edeb55cb --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1150.py @@ -0,0 +1,38 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UserCodespacesCodespaceNamePatchBody(GitHubModel): + """UserCodespacesCodespaceNamePatchBody""" + + machine: Missing[str] = Field( + default=UNSET, description="A valid machine to transition this codespace to." + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + recent_folders: Missing[List[str]] = Field( + default=UNSET, + description="Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in.", + ) + + +model_rebuild(UserCodespacesCodespaceNamePatchBody) + +__all__ = ("UserCodespacesCodespaceNamePatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1151.py b/githubkit/versions/ghec_v2022_11_28/models/group_1151.py new file mode 100644 index 000000000..46c5c06b6 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1151.py @@ -0,0 +1,30 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0093 import CodespaceMachine + + +class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): + """UserCodespacesCodespaceNameMachinesGetResponse200""" + + total_count: int = Field() + machines: List[CodespaceMachine] = Field() + + +model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) + +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1152.py b/githubkit/versions/ghec_v2022_11_28/models/group_1152.py new file mode 100644 index 000000000..574036b59 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1152.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): + """UserCodespacesCodespaceNamePublishPostBody""" + + name: Missing[str] = Field( + default=UNSET, description="A name for the new repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the new repository should be private." + ) + + +model_rebuild(UserCodespacesCodespaceNamePublishPostBody) + +__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1153.py b/githubkit/versions/ghec_v2022_11_28/models/group_1153.py new file mode 100644 index 000000000..04c6a0578 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1153.py @@ -0,0 +1,29 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserEmailVisibilityPatchBody(GitHubModel): + """UserEmailVisibilityPatchBody""" + + visibility: Literal["public", "private"] = Field( + description="Denotes whether an email is publicly visible." + ) + + +model_rebuild(UserEmailVisibilityPatchBody) + +__all__ = ("UserEmailVisibilityPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1154.py b/githubkit/versions/ghec_v2022_11_28/models/group_1154.py new file mode 100644 index 000000000..40687cc1f --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1154.py @@ -0,0 +1,33 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserEmailsPostBodyOneof0(GitHubModel): + """UserEmailsPostBodyOneof0 + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + + emails: List[str] = Field( + description="Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key." + ) + + +model_rebuild(UserEmailsPostBodyOneof0) + +__all__ = ("UserEmailsPostBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1155.py b/githubkit/versions/ghec_v2022_11_28/models/group_1155.py new file mode 100644 index 000000000..c2aace7bb --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1155.py @@ -0,0 +1,38 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserEmailsDeleteBodyOneof0(GitHubModel): + """UserEmailsDeleteBodyOneof0 + + Deletes one or more email addresses from your GitHub account. Must contain at + least one email address. **Note:** Alternatively, you can pass a single email + address or an `array` of emails addresses directly, but we recommend that you + pass an object using the `emails` key. + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + + emails: List[str] = Field( + description="Email addresses associated with the GitHub user account." + ) + + +model_rebuild(UserEmailsDeleteBodyOneof0) + +__all__ = ("UserEmailsDeleteBodyOneof0",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1156.py b/githubkit/versions/ghec_v2022_11_28/models/group_1156.py new file mode 100644 index 000000000..f6a483044 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1156.py @@ -0,0 +1,30 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UserGpgKeysPostBody(GitHubModel): + """UserGpgKeysPostBody""" + + name: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." + ) + armored_public_key: str = Field(description="A GPG key in ASCII-armored format.") + + +model_rebuild(UserGpgKeysPostBody) + +__all__ = ("UserGpgKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1157.py b/githubkit/versions/ghec_v2022_11_28/models/group_1157.py new file mode 100644 index 000000000..50efae3c7 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1157.py @@ -0,0 +1,30 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0015 import Installation + + +class UserInstallationsGetResponse200(GitHubModel): + """UserInstallationsGetResponse200""" + + total_count: int = Field() + installations: List[Installation] = Field() + + +model_rebuild(UserInstallationsGetResponse200) + +__all__ = ("UserInstallationsGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1158.py b/githubkit/versions/ghec_v2022_11_28/models/group_1158.py new file mode 100644 index 000000000..462d4423d --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1158.py @@ -0,0 +1,33 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0017 import Repository + + +class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" + + total_count: int = Field() + repository_selection: Missing[str] = Field(default=UNSET) + repositories: List[Repository] = Field() + + +model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) + +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1159.py b/githubkit/versions/ghec_v2022_11_28/models/group_1159.py new file mode 100644 index 000000000..09cbf54e3 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1159.py @@ -0,0 +1,21 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): + """UserInteractionLimitsGetResponse200Anyof1""" + + +model_rebuild(UserInteractionLimitsGetResponse200Anyof1) + +__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1160.py b/githubkit/versions/ghec_v2022_11_28/models/group_1160.py new file mode 100644 index 000000000..c2167fcac --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1160.py @@ -0,0 +1,33 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UserKeysPostBody(GitHubModel): + """UserKeysPostBody""" + + title: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." + ) + key: str = Field( + pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ", + description="The public SSH key to add to your GitHub account.", + ) + + +model_rebuild(UserKeysPostBody) + +__all__ = ("UserKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1161.py b/githubkit/versions/ghec_v2022_11_28/models/group_1161.py new file mode 100644 index 000000000..9b771b5c3 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1161.py @@ -0,0 +1,29 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserMembershipsOrgsOrgPatchBody(GitHubModel): + """UserMembershipsOrgsOrgPatchBody""" + + state: Literal["active"] = Field( + description='The state that the membership should be in. Only `"active"` will be accepted.' + ) + + +model_rebuild(UserMembershipsOrgsOrgPatchBody) + +__all__ = ("UserMembershipsOrgsOrgPatchBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1162.py b/githubkit/versions/ghec_v2022_11_28/models/group_1162.py new file mode 100644 index 000000000..994900d2d --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1162.py @@ -0,0 +1,59 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List, Literal + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UserMigrationsPostBody(GitHubModel): + """UserMigrationsPostBody""" + + lock_repositories: Missing[bool] = Field( + default=UNSET, + description="Lock the repositories being migrated at the start of the migration", + ) + exclude_metadata: Missing[bool] = Field( + default=UNSET, + description="Indicates whether metadata should be excluded and only git source should be included for the migration.", + ) + exclude_git_data: Missing[bool] = Field( + default=UNSET, + description="Indicates whether the repository git data should be excluded from the migration.", + ) + exclude_attachments: Missing[bool] = Field( + default=UNSET, description="Do not include attachments in the migration" + ) + exclude_releases: Missing[bool] = Field( + default=UNSET, description="Do not include releases in the migration" + ) + exclude_owner_projects: Missing[bool] = Field( + default=UNSET, + description="Indicates whether projects owned by the organization or users should be excluded.", + ) + org_metadata_only: Missing[bool] = Field( + default=UNSET, + description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", + ) + exclude: Missing[List[Literal["repositories"]]] = Field( + default=UNSET, + description="Exclude attributes from the API response to improve performance", + ) + repositories: List[str] = Field() + + +model_rebuild(UserMigrationsPostBody) + +__all__ = ("UserMigrationsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1163.py b/githubkit/versions/ghec_v2022_11_28/models/group_1163.py new file mode 100644 index 000000000..e16a36610 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1163.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UserProjectsPostBody(GitHubModel): + """UserProjectsPostBody""" + + name: str = Field(description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" + ) + + +model_rebuild(UserProjectsPostBody) + +__all__ = ("UserProjectsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1164.py b/githubkit/versions/ghec_v2022_11_28/models/group_1164.py new file mode 100644 index 000000000..e0fe3d9d9 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1164.py @@ -0,0 +1,110 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UserReposPostBody(GitHubModel): + """UserReposPostBody""" + + name: str = Field(description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private." + ) + has_issues: Missing[bool] = Field( + default=UNSET, description="Whether issues are enabled." + ) + has_projects: Missing[bool] = Field( + default=UNSET, description="Whether projects are enabled." + ) + has_wiki: Missing[bool] = Field( + default=UNSET, description="Whether the wiki is enabled." + ) + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." + ) + team_id: Missing[int] = Field( + default=UNSET, + description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", + ) + auto_init: Missing[bool] = Field( + default=UNSET, + description="Whether the repository is initialized with a minimal README.", + ) + gitignore_template: Missing[str] = Field( + default=UNSET, + description="The desired language or platform to apply to the .gitignore.", + ) + license_template: Missing[str] = Field( + default=UNSET, + description="The license keyword of the open source license for this repository.", + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + has_downloads: Missing[bool] = Field( + default=UNSET, description="Whether downloads are enabled." + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + + +model_rebuild(UserReposPostBody) + +__all__ = ("UserReposPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1165.py b/githubkit/versions/ghec_v2022_11_28/models/group_1165.py new file mode 100644 index 000000000..3f7092ec4 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1165.py @@ -0,0 +1,34 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserSocialAccountsPostBody(GitHubModel): + """UserSocialAccountsPostBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: List[str] = Field( + description="Full URLs for the social media profiles to add." + ) + + +model_rebuild(UserSocialAccountsPostBody) + +__all__ = ("UserSocialAccountsPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1166.py b/githubkit/versions/ghec_v2022_11_28/models/group_1166.py new file mode 100644 index 000000000..a8664c5d3 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1166.py @@ -0,0 +1,34 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserSocialAccountsDeleteBody(GitHubModel): + """UserSocialAccountsDeleteBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: List[str] = Field( + description="Full URLs for the social media profiles to delete." + ) + + +model_rebuild(UserSocialAccountsDeleteBody) + +__all__ = ("UserSocialAccountsDeleteBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1167.py b/githubkit/versions/ghec_v2022_11_28/models/group_1167.py new file mode 100644 index 000000000..d882d76f5 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1167.py @@ -0,0 +1,33 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UserSshSigningKeysPostBody(GitHubModel): + """UserSshSigningKeysPostBody""" + + title: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." + ) + key: str = Field( + pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) |^(sk-ssh-ed25519|sk-ecdsa-sha2-nistp256)@openssh.com ", + description='The public SSH key to add to your GitHub account. For more information, see "[Checking for existing SSH keys](https://docs.github.com/enterprise-cloud@latest//authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)."', + ) + + +model_rebuild(UserSshSigningKeysPostBody) + +__all__ = ("UserSshSigningKeysPostBody",) diff --git a/githubkit/versions/ghec_v2022_11_28/models/group_1168.py b/githubkit/versions/ghec_v2022_11_28/models/group_1168.py new file mode 100644 index 000000000..669461bb2 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/models/group_1168.py @@ -0,0 +1,183 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List, Union + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UsersUsernameAttestationsSubjectDigestGetResponse200(GitHubModel): + """UsersUsernameAttestationsSubjectDigestGetResponse200""" + + attestations: Missing[ + List[UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems( + GitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: Missing[SigstoreBundle0] = Field( + default=UNSET, title="Sigstore Bundle v0.1", description="Sigstore Bundle v0.1" + ) + repository_id: Missing[int] = Field(default=UNSET) + + +class SigstoreBundle0(GitHubModel): + """Sigstore Bundle v0.1 + + Sigstore Bundle v0.1 + """ + + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[SigstoreBundle0PropVerificationMaterial] = Field( + default=UNSET, alias="verificationMaterial" + ) + dsse_envelope: Missing[SigstoreBundle0PropDsseEnvelope] = Field( + default=UNSET, alias="dsseEnvelope" + ) + + +class SigstoreBundle0PropDsseEnvelope(GitHubModel): + """SigstoreBundle0PropDsseEnvelope""" + + payload: Missing[str] = Field(default=UNSET) + payload_type: Missing[str] = Field(default=UNSET, alias="payloadType") + signatures: Missing[List[SigstoreBundle0PropDsseEnvelopePropSignaturesItems]] = ( + Field(default=UNSET) + ) + + +class SigstoreBundle0PropDsseEnvelopePropSignaturesItems(GitHubModel): + """SigstoreBundle0PropDsseEnvelopePropSignaturesItems""" + + sig: Missing[str] = Field(default=UNSET) + keyid: Missing[str] = Field(default=UNSET) + + +class SigstoreBundle0PropVerificationMaterial(GitHubModel): + """SigstoreBundle0PropVerificationMaterial""" + + x_509_certificate_chain: Missing[ + SigstoreBundle0PropVerificationMaterialPropX509CertificateChain + ] = Field(default=UNSET, alias="x509CertificateChain") + tlog_entries: Missing[ + List[SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems] + ] = Field(default=UNSET, alias="tlogEntries") + timestamp_verification_data: Missing[Union[str, None]] = Field( + default=UNSET, alias="timestampVerificationData" + ) + + +class SigstoreBundle0PropVerificationMaterialPropX509CertificateChain(GitHubModel): + """SigstoreBundle0PropVerificationMaterialPropX509CertificateChain""" + + certificates: Missing[ + List[ + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems + ] + ] = Field(default=UNSET) + + +class SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems( + GitHubModel +): + """SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesI + tems + """ + + raw_bytes: Missing[str] = Field(default=UNSET, alias="rawBytes") + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems(GitHubModel): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems""" + + log_index: Missing[str] = Field(default=UNSET, alias="logIndex") + log_id: Missing[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId + ] = Field(default=UNSET, alias="logId") + kind_version: Missing[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion + ] = Field(default=UNSET, alias="kindVersion") + integrated_time: Missing[str] = Field(default=UNSET, alias="integratedTime") + inclusion_promise: Missing[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise + ] = Field(default=UNSET, alias="inclusionPromise") + inclusion_proof: Missing[Union[str, None]] = Field( + default=UNSET, alias="inclusionProof" + ) + canonicalized_body: Missing[str] = Field(default=UNSET, alias="canonicalizedBody") + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId(GitHubModel): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId""" + + key_id: Missing[str] = Field(default=UNSET, alias="keyId") + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion( + GitHubModel +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion""" + + kind: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise( + GitHubModel +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise""" + + signed_entry_timestamp: Missing[str] = Field( + default=UNSET, alias="signedEntryTimestamp" + ) + + +model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200) +model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems) +model_rebuild(SigstoreBundle0) +model_rebuild(SigstoreBundle0PropDsseEnvelope) +model_rebuild(SigstoreBundle0PropDsseEnvelopePropSignaturesItems) +model_rebuild(SigstoreBundle0PropVerificationMaterial) +model_rebuild(SigstoreBundle0PropVerificationMaterialPropX509CertificateChain) +model_rebuild( + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems +) +model_rebuild(SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems) +model_rebuild(SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId) +model_rebuild( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion +) +model_rebuild( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise +) + +__all__ = ( + "UsersUsernameAttestationsSubjectDigestGetResponse200", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "SigstoreBundle0", + "SigstoreBundle0PropDsseEnvelope", + "SigstoreBundle0PropDsseEnvelopePropSignaturesItems", + "SigstoreBundle0PropVerificationMaterial", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChain", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise", +) diff --git a/githubkit/versions/ghec_v2022_11_28/rest/__init__.py b/githubkit/versions/ghec_v2022_11_28/rest/__init__.py index 084770d6d..2fb537000 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/__init__.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/__init__.py @@ -46,6 +46,7 @@ from .migrations import MigrationsClient from .interactions import InteractionsClient from .code_scanning import CodeScanningClient + from .code_security import CodeSecurityClient from .secret_scanning import SecretScanningClient from .codes_of_conduct import CodesOfConductClient from .dependency_graph import DependencyGraphClient @@ -199,6 +200,12 @@ def oidc(self) -> "OidcClient": return OidcClient(self._github) + @cached_property + def code_security(self) -> "CodeSecurityClient": + from .code_security import CodeSecurityClient + + return CodeSecurityClient(self._github) + @cached_property def codespaces(self) -> "CodespacesClient": from .codespaces import CodespacesClient diff --git a/githubkit/versions/ghec_v2022_11_28/rest/code_security.py b/githubkit/versions/ghec_v2022_11_28/rest/code_security.py new file mode 100644 index 000000000..532c3b631 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/rest/code_security.py @@ -0,0 +1,953 @@ +"""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 weakref import ref +from typing import TYPE_CHECKING, Dict, Literal, Optional, overload + +from pydantic import BaseModel + +from githubkit.typing import Missing +from githubkit.utils import UNSET, exclude_unset +from githubkit.compat import model_dump, type_validate_python + +if TYPE_CHECKING: + from typing import List, Literal + + from githubkit import GitHubCore + from githubkit.utils import UNSET + from githubkit.typing import Missing + from githubkit.response import Response + + from ..models import ( + CodeSecurityConfiguration, + CodeSecurityConfigurationRepositories, + CodeSecurityDefaultConfigurationsItems, + AppHookDeliveriesDeliveryIdAttemptsPostResponse202, + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, + ) + from ..types import ( + OrgsOrgCodeSecurityConfigurationsPostBodyType, + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType, + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, + ) + + +class CodeSecurityClient: + _REST_API_VERSION = "2022-11-28" + + def __init__(self, github: GitHubCore): + self._github_ref = ref(github) + + @property + def _github(self) -> GitHubCore: + if g := self._github_ref(): + return g + raise RuntimeError( + "GitHub client has already been collected. " + "Do not use this client after the client has been collected." + ) + + def get_configurations_for_org( + self, + org: str, + target_type: Missing[Literal["global", "all"]] = UNSET, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[List[CodeSecurityConfiguration]]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#get-code-security-configurations-for-an-organization""" + + from typing import List + + from ..models import BasicError, CodeSecurityConfiguration + + url = f"/orgs/{org}/code-security/configurations" + + params = { + "target_type": target_type, + "per_page": per_page, + "before": before, + "after": after, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=List[CodeSecurityConfiguration], + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + async def async_get_configurations_for_org( + self, + org: str, + target_type: Missing[Literal["global", "all"]] = UNSET, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[List[CodeSecurityConfiguration]]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#get-code-security-configurations-for-an-organization""" + + from typing import List + + from ..models import BasicError, CodeSecurityConfiguration + + url = f"/orgs/{org}/code-security/configurations" + + params = { + "target_type": target_type, + "per_page": per_page, + "before": before, + "after": after, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=List[CodeSecurityConfiguration], + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + @overload + def create_configuration( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsPostBodyType, + ) -> Response[CodeSecurityConfiguration]: ... + + @overload + def create_configuration( + self, + org: str, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + name: str, + description: str, + advanced_security: Missing[Literal["enabled", "disabled"]] = UNSET, + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, + dependabot_security_updates: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + code_scanning_default_setup: 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"] + ] = UNSET, + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + ) -> Response[CodeSecurityConfiguration]: ... + + def create_configuration( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[OrgsOrgCodeSecurityConfigurationsPostBodyType] = UNSET, + **kwargs, + ) -> Response[CodeSecurityConfiguration]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#create-a-code-security-configuration""" + + from ..models import ( + CodeSecurityConfiguration, + OrgsOrgCodeSecurityConfigurationsPostBody, + ) + + url = f"/orgs/{org}/code-security/configurations" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python(OrgsOrgCodeSecurityConfigurationsPostBody, json) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=CodeSecurityConfiguration, + ) + + @overload + async def async_create_configuration( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsPostBodyType, + ) -> Response[CodeSecurityConfiguration]: ... + + @overload + async def async_create_configuration( + self, + org: str, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + name: str, + description: str, + advanced_security: Missing[Literal["enabled", "disabled"]] = UNSET, + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, + dependabot_security_updates: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + code_scanning_default_setup: 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"] + ] = UNSET, + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + ) -> Response[CodeSecurityConfiguration]: ... + + async def async_create_configuration( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[OrgsOrgCodeSecurityConfigurationsPostBodyType] = UNSET, + **kwargs, + ) -> Response[CodeSecurityConfiguration]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#create-a-code-security-configuration""" + + from ..models import ( + CodeSecurityConfiguration, + OrgsOrgCodeSecurityConfigurationsPostBody, + ) + + url = f"/orgs/{org}/code-security/configurations" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python(OrgsOrgCodeSecurityConfigurationsPostBody, json) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=CodeSecurityConfiguration, + ) + + def get_default_configurations( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[List[CodeSecurityDefaultConfigurationsItems]]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#get-default-code-security-configurations""" + + from typing import List + + from ..models import BasicError, CodeSecurityDefaultConfigurationsItems + + url = f"/orgs/{org}/code-security/configurations/defaults" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=List[CodeSecurityDefaultConfigurationsItems], + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + async def async_get_default_configurations( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[List[CodeSecurityDefaultConfigurationsItems]]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#get-default-code-security-configurations""" + + from typing import List + + from ..models import BasicError, CodeSecurityDefaultConfigurationsItems + + url = f"/orgs/{org}/code-security/configurations/defaults" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=List[CodeSecurityDefaultConfigurationsItems], + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + def get_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[CodeSecurityConfiguration]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#get-a-code-security-configuration""" + + from ..models import BasicError, CodeSecurityConfiguration + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=CodeSecurityConfiguration, + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + async def async_get_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[CodeSecurityConfiguration]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#get-a-code-security-configuration""" + + from ..models import BasicError, CodeSecurityConfiguration + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=CodeSecurityConfiguration, + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + def delete_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#delete-a-code-security-configuration""" + + from ..models import BasicError + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "DELETE", + url, + headers=exclude_unset(headers), + error_models={ + "400": BasicError, + "403": BasicError, + "404": BasicError, + "409": BasicError, + }, + ) + + async def async_delete_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#delete-a-code-security-configuration""" + + from ..models import BasicError + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "DELETE", + url, + headers=exclude_unset(headers), + error_models={ + "400": BasicError, + "403": BasicError, + "404": BasicError, + "409": BasicError, + }, + ) + + @overload + def update_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType, + ) -> Response[CodeSecurityConfiguration]: ... + + @overload + def update_configuration( + self, + org: str, + configuration_id: int, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + name: Missing[str] = UNSET, + description: Missing[str] = UNSET, + advanced_security: Missing[Literal["enabled", "disabled"]] = UNSET, + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, + dependabot_security_updates: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + code_scanning_default_setup: 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"] + ] = UNSET, + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + ) -> Response[CodeSecurityConfiguration]: ... + + def update_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType + ] = UNSET, + **kwargs, + ) -> Response[CodeSecurityConfiguration]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#update-a-code-security-configuration""" + + from ..models import ( + CodeSecurityConfiguration, + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, + ) + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "PATCH", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=CodeSecurityConfiguration, + ) + + @overload + async def async_update_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType, + ) -> Response[CodeSecurityConfiguration]: ... + + @overload + async def async_update_configuration( + self, + org: str, + configuration_id: int, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + name: Missing[str] = UNSET, + description: Missing[str] = UNSET, + advanced_security: Missing[Literal["enabled", "disabled"]] = UNSET, + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, + dependabot_security_updates: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + code_scanning_default_setup: 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"] + ] = UNSET, + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + ) -> Response[CodeSecurityConfiguration]: ... + + async def async_update_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType + ] = UNSET, + **kwargs, + ) -> Response[CodeSecurityConfiguration]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#update-a-code-security-configuration""" + + from ..models import ( + CodeSecurityConfiguration, + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, + ) + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "PATCH", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=CodeSecurityConfiguration, + ) + + @overload + def attach_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, + ) -> Response[AppHookDeliveriesDeliveryIdAttemptsPostResponse202]: ... + + @overload + def attach_configuration( + self, + org: str, + configuration_id: int, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + scope: Literal["all", "public", "private_or_internal", "selected"], + selected_repository_ids: Missing[List[int]] = UNSET, + ) -> Response[AppHookDeliveriesDeliveryIdAttemptsPostResponse202]: ... + + def attach_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType + ] = UNSET, + **kwargs, + ) -> Response[AppHookDeliveriesDeliveryIdAttemptsPostResponse202]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#attach-a-configuration-to-repositories""" + + from ..models import ( + AppHookDeliveriesDeliveryIdAttemptsPostResponse202, + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, + ) + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}/attach" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python( + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=AppHookDeliveriesDeliveryIdAttemptsPostResponse202, + ) + + @overload + async def async_attach_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, + ) -> Response[AppHookDeliveriesDeliveryIdAttemptsPostResponse202]: ... + + @overload + async def async_attach_configuration( + self, + org: str, + configuration_id: int, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + scope: Literal["all", "public", "private_or_internal", "selected"], + selected_repository_ids: Missing[List[int]] = UNSET, + ) -> Response[AppHookDeliveriesDeliveryIdAttemptsPostResponse202]: ... + + async def async_attach_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType + ] = UNSET, + **kwargs, + ) -> Response[AppHookDeliveriesDeliveryIdAttemptsPostResponse202]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#attach-a-configuration-to-repositories""" + + from ..models import ( + AppHookDeliveriesDeliveryIdAttemptsPostResponse202, + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, + ) + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}/attach" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python( + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=AppHookDeliveriesDeliveryIdAttemptsPostResponse202, + ) + + @overload + def set_configuration_as_default( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, + ) -> Response[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 + ]: ... + + @overload + def set_configuration_as_default( + self, + org: str, + configuration_id: int, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = UNSET, + ) -> Response[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 + ]: ... + + def set_configuration_as_default( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType + ] = UNSET, + **kwargs, + ) -> Response[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-organization""" + + from ..models import ( + BasicError, + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, + ) + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}/defaults" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python( + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "PUT", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + @overload + async def async_set_configuration_as_default( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, + ) -> Response[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 + ]: ... + + @overload + async def async_set_configuration_as_default( + self, + org: str, + configuration_id: int, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = UNSET, + ) -> Response[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 + ]: ... + + async def async_set_configuration_as_default( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType + ] = UNSET, + **kwargs, + ) -> Response[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 + ]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-organization""" + + from ..models import ( + BasicError, + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, + ) + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}/defaults" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python( + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "PUT", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + def get_repositories_for_configuration( + self, + org: str, + configuration_id: int, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + status: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[List[CodeSecurityConfigurationRepositories]]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#get-repositories-associated-with-a-code-security-configuration""" + + from typing import List + + from ..models import BasicError, CodeSecurityConfigurationRepositories + + url = ( + f"/orgs/{org}/code-security/configurations/{configuration_id}/repositories" + ) + + params = { + "per_page": per_page, + "before": before, + "after": after, + "status": status, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=List[CodeSecurityConfigurationRepositories], + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + async def async_get_repositories_for_configuration( + self, + org: str, + configuration_id: int, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + status: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[List[CodeSecurityConfigurationRepositories]]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#get-repositories-associated-with-a-code-security-configuration""" + + from typing import List + + from ..models import BasicError, CodeSecurityConfigurationRepositories + + url = ( + f"/orgs/{org}/code-security/configurations/{configuration_id}/repositories" + ) + + params = { + "per_page": per_page, + "before": before, + "after": after, + "status": status, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=List[CodeSecurityConfigurationRepositories], + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) diff --git a/githubkit/versions/ghec_v2022_11_28/rest/copilot.py b/githubkit/versions/ghec_v2022_11_28/rest/copilot.py index c0b9ebb06..fc7308ab1 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/copilot.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/copilot.py @@ -41,6 +41,7 @@ OrgsOrgCopilotBillingSelectedUsersPostResponse201, OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200, OrgsOrgCopilotBillingSelectedUsersDeleteResponse200, + EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, ) @@ -59,6 +60,82 @@ def _github(self) -> GitHubCore: "Do not use this client after the client has been collected." ) + def list_copilot_seats_for_enterprise( + self, + enterprise: str, + page: Missing[int] = UNSET, + per_page: Missing[int] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[EnterprisesEnterpriseCopilotBillingSeatsGetResponse200]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-user-management#list-all-copilot-seat-assignments-for-an-enterprise""" + + from ..models import ( + BasicError, + EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, + ) + + url = f"/enterprises/{enterprise}/copilot/billing/seats" + + params = { + "page": page, + "per_page": per_page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, + error_models={ + "500": BasicError, + "401": BasicError, + "403": BasicError, + "404": BasicError, + }, + ) + + async def async_list_copilot_seats_for_enterprise( + self, + enterprise: str, + page: Missing[int] = UNSET, + per_page: Missing[int] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[EnterprisesEnterpriseCopilotBillingSeatsGetResponse200]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-user-management#list-all-copilot-seat-assignments-for-an-enterprise""" + + from ..models import ( + BasicError, + EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, + ) + + url = f"/enterprises/{enterprise}/copilot/billing/seats" + + params = { + "page": page, + "per_page": per_page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, + error_models={ + "500": BasicError, + "401": BasicError, + "403": BasicError, + "404": BasicError, + }, + ) + def usage_metrics_for_enterprise( self, enterprise: str, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py b/githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py index 2528aeada..b1f5bdae4 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/enterprise_admin.py @@ -2611,7 +2611,6 @@ def patch_security_analysis_settings_for_enterprise( bool ] = UNSET, secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = UNSET, - secret_scanning_validity_checks_enabled: Missing[Union[bool, None]] = UNSET, ) -> Response: ... def patch_security_analysis_settings_for_enterprise( @@ -2680,7 +2679,6 @@ async def async_patch_security_analysis_settings_for_enterprise( bool ] = UNSET, secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = UNSET, - secret_scanning_validity_checks_enabled: Missing[Union[bool, None]] = UNSET, ) -> Response: ... async def async_patch_security_analysis_settings_for_enterprise( diff --git a/githubkit/versions/ghec_v2022_11_28/rest/orgs.py b/githubkit/versions/ghec_v2022_11_28/rest/orgs.py index 9c030ce01..81cca5832 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/orgs.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/orgs.py @@ -43,6 +43,8 @@ OrgCustomProperty, AnnouncementBanner, OrganizationSimple, + TeamRoleAssignment, + UserRoleAssignment, OrganizationInvitation, CredentialAuthorization, OrgRepoCustomPropertyValues, @@ -54,6 +56,7 @@ OrgsOrgOrganizationRolesGetResponse200, OrganizationProgrammaticAccessGrantRequest, OrgsOrgCustomRepositoryRolesGetResponse200, + OrgsOrgAttestationsSubjectDigestGetResponse200, OrgsOrgOutsideCollaboratorsUsernamePutResponse202, AppHookDeliveriesDeliveryIdAttemptsPostResponse202, OrganizationsOrganizationIdCustomRolesGetResponse200, @@ -682,6 +685,70 @@ async def async_set_announcement_banner_for_org( response_model=AnnouncementBanner, ) + def list_attestations( + self, + org: str, + subject_digest: str, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[OrgsOrgAttestationsSubjectDigestGetResponse200]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/orgs#list-attestations""" + + from ..models import OrgsOrgAttestationsSubjectDigestGetResponse200 + + url = f"/orgs/{org}/attestations/{subject_digest}" + + params = { + "per_page": per_page, + "before": before, + "after": after, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=OrgsOrgAttestationsSubjectDigestGetResponse200, + ) + + async def async_list_attestations( + self, + org: str, + subject_digest: str, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[OrgsOrgAttestationsSubjectDigestGetResponse200]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/orgs#list-attestations""" + + from ..models import OrgsOrgAttestationsSubjectDigestGetResponse200 + + url = f"/orgs/{org}/attestations/{subject_digest}" + + params = { + "per_page": per_page, + "before": before, + "after": after, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=OrgsOrgAttestationsSubjectDigestGetResponse200, + ) + def get_audit_log( self, org: str, @@ -4208,12 +4275,12 @@ def list_org_role_teams( page: Missing[int] = UNSET, *, headers: Optional[Dict[str, str]] = None, - ) -> Response[List[Team]]: + ) -> Response[List[TeamRoleAssignment]]: """See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/organization-roles#list-teams-that-are-assigned-to-an-organization-role""" from typing import List - from ..models import Team + from ..models import TeamRoleAssignment url = f"/orgs/{org}/organization-roles/{role_id}/teams" @@ -4229,7 +4296,7 @@ def list_org_role_teams( url, params=exclude_unset(params), headers=exclude_unset(headers), - response_model=List[Team], + response_model=List[TeamRoleAssignment], error_models={}, ) @@ -4241,12 +4308,12 @@ async def async_list_org_role_teams( page: Missing[int] = UNSET, *, headers: Optional[Dict[str, str]] = None, - ) -> Response[List[Team]]: + ) -> Response[List[TeamRoleAssignment]]: """See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/organization-roles#list-teams-that-are-assigned-to-an-organization-role""" from typing import List - from ..models import Team + from ..models import TeamRoleAssignment url = f"/orgs/{org}/organization-roles/{role_id}/teams" @@ -4262,7 +4329,7 @@ async def async_list_org_role_teams( url, params=exclude_unset(params), headers=exclude_unset(headers), - response_model=List[Team], + response_model=List[TeamRoleAssignment], error_models={}, ) @@ -4274,12 +4341,12 @@ def list_org_role_users( page: Missing[int] = UNSET, *, headers: Optional[Dict[str, str]] = None, - ) -> Response[List[SimpleUser]]: + ) -> Response[List[UserRoleAssignment]]: """See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/organization-roles#list-users-that-are-assigned-to-an-organization-role""" from typing import List - from ..models import SimpleUser + from ..models import UserRoleAssignment url = f"/orgs/{org}/organization-roles/{role_id}/users" @@ -4295,7 +4362,7 @@ def list_org_role_users( url, params=exclude_unset(params), headers=exclude_unset(headers), - response_model=List[SimpleUser], + response_model=List[UserRoleAssignment], error_models={}, ) @@ -4307,12 +4374,12 @@ async def async_list_org_role_users( page: Missing[int] = UNSET, *, headers: Optional[Dict[str, str]] = None, - ) -> Response[List[SimpleUser]]: + ) -> Response[List[UserRoleAssignment]]: """See also: https://docs.github.com/enterprise-cloud@latest//rest/orgs/organization-roles#list-users-that-are-assigned-to-an-organization-role""" from typing import List - from ..models import SimpleUser + from ..models import UserRoleAssignment url = f"/orgs/{org}/organization-roles/{role_id}/users" @@ -4328,7 +4395,7 @@ async def async_list_org_role_users( url, params=exclude_unset(params), headers=exclude_unset(headers), - response_model=List[SimpleUser], + response_model=List[UserRoleAssignment], error_models={}, ) @@ -5690,7 +5757,7 @@ def create_or_update_custom_property( *, data: Literal[UNSET] = UNSET, headers: Optional[Dict[str, str]] = None, - value_type: Literal["string", "single_select"], + value_type: Literal["string", "single_select", "multi_select", "true_false"], required: Missing[bool] = UNSET, default_value: Missing[Union[str, List[str], None]] = UNSET, description: Missing[Union[str, None]] = UNSET, @@ -5757,7 +5824,7 @@ async def async_create_or_update_custom_property( *, data: Literal[UNSET] = UNSET, headers: Optional[Dict[str, str]] = None, - value_type: Literal["string", "single_select"], + value_type: Literal["string", "single_select", "multi_select", "true_false"], required: Missing[bool] = UNSET, default_value: Missing[Union[str, List[str], None]] = UNSET, description: Missing[Union[str, None]] = UNSET, @@ -6345,7 +6412,6 @@ def add_security_manager_team( "PUT", url, headers=exclude_unset(headers), - error_models={}, ) async def async_add_security_manager_team( @@ -6365,7 +6431,6 @@ async def async_add_security_manager_team( "PUT", url, headers=exclude_unset(headers), - error_models={}, ) def remove_security_manager_team( diff --git a/githubkit/versions/ghec_v2022_11_28/rest/repos.py b/githubkit/versions/ghec_v2022_11_28/rest/repos.py index 4b786c4db..973e7323e 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/repos.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/repos.py @@ -115,7 +115,9 @@ ProtectedBranchPullRequestReview, RepositoryCollaboratorPermission, ReposOwnerRepoEnvironmentsGetResponse200, + ReposOwnerRepoAttestationsPostResponse201, AppHookDeliveriesDeliveryIdAttemptsPostResponse202, + ReposOwnerRepoAttestationsSubjectDigestGetResponse200, ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200, ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200, ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200, @@ -173,6 +175,7 @@ ReposOwnerRepoStatusesShaPostBodyType, RepositoryRuleCommitMessagePatternType, RepositoryRuleRequiredStatusChecksType, + ReposOwnerRepoAttestationsPostBodyType, ReposOwnerRepoHooksHookIdPatchBodyType, RepositoryRuleCommitterEmailPatternType, RepositoryRuleRequiredLinearHistoryType, @@ -195,6 +198,7 @@ ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ReposOwnerRepoContentsPathPutBodyPropAuthorType, ReposOwnerRepoReleasesGenerateNotesPostBodyType, + ReposOwnerRepoAttestationsPostBodyPropBundleType, ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType, ReposOwnerRepoBranchesBranchProtectionPutBodyType, ReposOwnerRepoCommitsCommitShaCommentsPostBodyType, @@ -1592,6 +1596,196 @@ async def async_list_activities( }, ) + @overload + def create_attestation( + self, + owner: str, + repo: str, + *, + headers: Optional[Dict[str, str]] = None, + data: ReposOwnerRepoAttestationsPostBodyType, + ) -> Response[ReposOwnerRepoAttestationsPostResponse201]: ... + + @overload + def create_attestation( + self, + owner: str, + repo: str, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType, + ) -> Response[ReposOwnerRepoAttestationsPostResponse201]: ... + + def create_attestation( + self, + owner: str, + repo: str, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[ReposOwnerRepoAttestationsPostBodyType] = UNSET, + **kwargs, + ) -> Response[ReposOwnerRepoAttestationsPostResponse201]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#create-an-attestation""" + + from ..models import ( + BasicError, + ValidationError, + ReposOwnerRepoAttestationsPostBody, + ReposOwnerRepoAttestationsPostResponse201, + ) + + url = f"/repos/{owner}/{repo}/attestations" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python(ReposOwnerRepoAttestationsPostBody, json) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=ReposOwnerRepoAttestationsPostResponse201, + error_models={ + "403": BasicError, + "422": ValidationError, + }, + ) + + @overload + async def async_create_attestation( + self, + owner: str, + repo: str, + *, + headers: Optional[Dict[str, str]] = None, + data: ReposOwnerRepoAttestationsPostBodyType, + ) -> Response[ReposOwnerRepoAttestationsPostResponse201]: ... + + @overload + async def async_create_attestation( + self, + owner: str, + repo: str, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType, + ) -> Response[ReposOwnerRepoAttestationsPostResponse201]: ... + + async def async_create_attestation( + self, + owner: str, + repo: str, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[ReposOwnerRepoAttestationsPostBodyType] = UNSET, + **kwargs, + ) -> Response[ReposOwnerRepoAttestationsPostResponse201]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#create-an-attestation""" + + from ..models import ( + BasicError, + ValidationError, + ReposOwnerRepoAttestationsPostBody, + ReposOwnerRepoAttestationsPostResponse201, + ) + + url = f"/repos/{owner}/{repo}/attestations" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python(ReposOwnerRepoAttestationsPostBody, json) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=ReposOwnerRepoAttestationsPostResponse201, + error_models={ + "403": BasicError, + "422": ValidationError, + }, + ) + + def list_attestations( + self, + owner: str, + repo: str, + subject_digest: str, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[ReposOwnerRepoAttestationsSubjectDigestGetResponse200]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#list-attestations""" + + from ..models import ReposOwnerRepoAttestationsSubjectDigestGetResponse200 + + url = f"/repos/{owner}/{repo}/attestations/{subject_digest}" + + params = { + "per_page": per_page, + "before": before, + "after": after, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=ReposOwnerRepoAttestationsSubjectDigestGetResponse200, + ) + + async def async_list_attestations( + self, + owner: str, + repo: str, + subject_digest: str, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[ReposOwnerRepoAttestationsSubjectDigestGetResponse200]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#list-attestations""" + + from ..models import ReposOwnerRepoAttestationsSubjectDigestGetResponse200 + + url = f"/repos/{owner}/{repo}/attestations/{subject_digest}" + + params = { + "per_page": per_page, + "before": before, + "after": after, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=ReposOwnerRepoAttestationsSubjectDigestGetResponse200, + ) + def list_autolinks( self, owner: str, diff --git a/githubkit/versions/ghec_v2022_11_28/rest/users.py b/githubkit/versions/ghec_v2022_11_28/rest/users.py index 80cf24430..9176f7893 100644 --- a/githubkit/versions/ghec_v2022_11_28/rest/users.py +++ b/githubkit/versions/ghec_v2022_11_28/rest/users.py @@ -37,6 +37,7 @@ PrivateUser, SocialAccount, SshSigningKey, + UsersUsernameAttestationsSubjectDigestGetResponse200, ) from ..types import ( UserPatchBodyType, @@ -2376,6 +2377,58 @@ async def async_delete_ssh_signing_key_for_authenticated_user( }, ) + def get_by_id( + self, + account_id: int, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[Union[PrivateUser, PublicUser]]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/users/users#get-a-user-using-their-id""" + + from typing import Union + + from ..models import BasicError, PublicUser, PrivateUser + + url = f"/user/{account_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=Union[PrivateUser, PublicUser], + error_models={ + "404": BasicError, + }, + ) + + async def async_get_by_id( + self, + account_id: int, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[Union[PrivateUser, PublicUser]]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/users/users#get-a-user-using-their-id""" + + from typing import Union + + from ..models import BasicError, PublicUser, PrivateUser + + url = f"/user/{account_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=Union[PrivateUser, PublicUser], + error_models={ + "404": BasicError, + }, + ) + def list( self, since: Missing[int] = UNSET, @@ -2488,6 +2541,82 @@ async def async_get_by_username( }, ) + def list_attestations( + self, + username: str, + subject_digest: str, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[UsersUsernameAttestationsSubjectDigestGetResponse200]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/users/attestations#list-attestations""" + + from ..models import ( + BasicError, + UsersUsernameAttestationsSubjectDigestGetResponse200, + ) + + url = f"/users/{username}/attestations/{subject_digest}" + + params = { + "per_page": per_page, + "before": before, + "after": after, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=UsersUsernameAttestationsSubjectDigestGetResponse200, + error_models={ + "404": BasicError, + }, + ) + + async def async_list_attestations( + self, + username: str, + subject_digest: str, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[UsersUsernameAttestationsSubjectDigestGetResponse200]: + """See also: https://docs.github.com/enterprise-cloud@latest//rest/users/attestations#list-attestations""" + + from ..models import ( + BasicError, + UsersUsernameAttestationsSubjectDigestGetResponse200, + ) + + url = f"/users/{username}/attestations/{subject_digest}" + + params = { + "per_page": per_page, + "before": before, + "after": after, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=UsersUsernameAttestationsSubjectDigestGetResponse200, + error_models={ + "404": BasicError, + }, + ) + def list_followers_for_user( self, username: str, diff --git a/githubkit/versions/ghec_v2022_11_28/types/__init__.py b/githubkit/versions/ghec_v2022_11_28/types/__init__.py index 316f96d7d..cb05c12b5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/__init__.py +++ b/githubkit/versions/ghec_v2022_11_28/types/__init__.py @@ -10,555 +10,560 @@ from typing import TYPE_CHECKING if TYPE_CHECKING: - from .group_0179 import JobType as JobType - from .group_0358 import TagType as TagType - from .group_0395 import KeyType as KeyType + from .group_0183 import JobType as JobType + from .group_0362 import TagType as TagType + from .group_0399 import KeyType as KeyType from .group_0000 import RootType as RootType - from .group_0066 import FeedType as FeedType - from .group_0093 import TeamType as TeamType - from .group_0239 import LinkType as LinkType - from .group_0273 import BlobType as BlobType - from .group_0279 import HookType as HookType - from .group_0313 import PageType as PageType - from .group_0367 import MetaType as MetaType - from .group_0378 import UserType as UserType - from .group_0063 import IssueType as IssueType - from .group_0065 import ActorType as ActorType - from .group_0065 import EventType as EventType - from .group_0299 import LabelType as LabelType - from .group_0360 import TopicType as TopicType - from .group_0370 import GroupType as GroupType - from .group_0393 import EmailType as EmailType + from .group_0048 import TeamType as TeamType + from .group_0069 import FeedType as FeedType + from .group_0243 import LinkType as LinkType + from .group_0277 import BlobType as BlobType + from .group_0283 import HookType as HookType + from .group_0317 import PageType as PageType + from .group_0371 import MetaType as MetaType + from .group_0382 import UserType as UserType + from .group_0066 import IssueType as IssueType + from .group_0068 import ActorType as ActorType + from .group_0068 import EventType as EventType + from .group_0303 import LabelType as LabelType + from .group_0364 import TopicType as TopicType + from .group_0374 import GroupType as GroupType + from .group_0397 import EmailType as EmailType from .group_0034 import RunnerType as RunnerType - from .group_0080 import ThreadType as ThreadType - from .group_0206 import CommitType as CommitType - from .group_0245 import StatusType as StatusType - from .group_0275 import GitRefType as GitRefType - from .group_0276 import GitTagType as GitTagType - from .group_0280 import ImportType as ImportType - from .group_0394 import GpgKeyType as GpgKeyType - from .group_0073 import LicenseType as LicenseType - from .group_0099 import PackageType as PackageType - from .group_0104 import OrgHookType as OrgHookType - from .group_0114 import ProjectType as ProjectType - from .group_0203 import GitUserType as GitUserType - from .group_0277 import GitTreeType as GitTreeType - from .group_0330 import ReleaseType as ReleaseType - from .group_0361 import TrafficType as TrafficType - from .group_0067 import BaseGistType as BaseGistType - from .group_0164 import TeamFullType as TeamFullType - from .group_0167 import ReactionType as ReactionType - from .group_0177 import ArtifactType as ArtifactType - from .group_0195 import ActivityType as ActivityType - from .group_0196 import AutolinkType as AutolinkType - from .group_0213 import CheckRunType as CheckRunType - from .group_0259 import MetadataType as MetadataType - from .group_0261 import ManifestType as ManifestType - from .group_0262 import SnapshotType as SnapshotType - from .group_0310 import LanguageType as LanguageType - from .group_0378 import UserNameType as UserNameType - from .group_0379 import ScimUserType as ScimUserType - from .group_0957 import WorkflowType as WorkflowType + from .group_0083 import ThreadType as ThreadType + from .group_0210 import CommitType as CommitType + from .group_0249 import StatusType as StatusType + from .group_0279 import GitRefType as GitRefType + from .group_0280 import GitTagType as GitTagType + from .group_0284 import ImportType as ImportType + from .group_0398 import GpgKeyType as GpgKeyType + from .group_0076 import LicenseType as LicenseType + from .group_0101 import PackageType as PackageType + from .group_0106 import OrgHookType as OrgHookType + from .group_0118 import ProjectType as ProjectType + from .group_0207 import GitUserType as GitUserType + from .group_0281 import GitTreeType as GitTreeType + from .group_0334 import ReleaseType as ReleaseType + from .group_0365 import TrafficType as TrafficType + from .group_0070 import BaseGistType as BaseGistType + from .group_0168 import TeamFullType as TeamFullType + from .group_0171 import ReactionType as ReactionType + from .group_0181 import ArtifactType as ArtifactType + from .group_0199 import ActivityType as ActivityType + from .group_0200 import AutolinkType as AutolinkType + from .group_0217 import CheckRunType as CheckRunType + from .group_0263 import MetadataType as MetadataType + from .group_0265 import ManifestType as ManifestType + from .group_0266 import SnapshotType as SnapshotType + from .group_0314 import LanguageType as LanguageType + from .group_0382 import UserNameType as UserNameType + from .group_0383 import ScimUserType as ScimUserType + from .group_0973 import WorkflowType as WorkflowType from .group_0009 import ScimErrorType as ScimErrorType from .group_0022 import ClassroomType as ClassroomType - from .group_0061 import MilestoneType as MilestoneType - from .group_0089 import CodespaceType as CodespaceType - from .group_0108 import MigrationType as MigrationType - from .group_0160 import RuleSuiteType as RuleSuiteType - from .group_0174 import RateLimitType as RateLimitType - from .group_0205 import DiffEntryType as DiffEntryType - from .group_0240 import AutoMergeType as AutoMergeType - from .group_0272 import ShortBlobType as ShortBlobType - from .group_0274 import GitCommitType as GitCommitType - from .group_0309 import DeployKeyType as DeployKeyType - from .group_0314 import PageBuildType as PageBuildType - from .group_0353 import StargazerType as StargazerType - from .group_0400 import HovercardType as HovercardType - from .group_0401 import KeySimpleType as KeySimpleType + from .group_0064 import MilestoneType as MilestoneType + from .group_0094 import CodespaceType as CodespaceType + from .group_0110 import MigrationType as MigrationType + from .group_0164 import RuleSuiteType as RuleSuiteType + from .group_0178 import RateLimitType as RateLimitType + from .group_0209 import DiffEntryType as DiffEntryType + from .group_0244 import AutoMergeType as AutoMergeType + from .group_0276 import ShortBlobType as ShortBlobType + from .group_0278 import GitCommitType as GitCommitType + from .group_0313 import DeployKeyType as DeployKeyType + from .group_0318 import PageBuildType as PageBuildType + from .group_0357 import StargazerType as StargazerType + from .group_0404 import HovercardType as HovercardType + from .group_0405 import KeySimpleType as KeySimpleType from .group_0001 import SimpleUserType as SimpleUserType from .group_0003 import BasicErrorType as BasicErrorType from .group_0012 import EnterpriseType as EnterpriseType from .group_0017 import RepositoryType as RepositoryType - from .group_0069 import GistSimpleType as GistSimpleType - from .group_0069 import PublicUserType as PublicUserType - from .group_0071 import GistCommitType as GistCommitType - from .group_0092 import TeamSimpleType as TeamSimpleType - from .group_0192 import DeploymentType as DeploymentType - from .group_0215 import CheckSuiteType as CheckSuiteType - from .group_0253 import FileCommitType as FileCommitType - from .group_0260 import DependencyType as DependencyType - from .group_0283 import IssueEventType as IssueEventType - from .group_0418 import DiscussionType as DiscussionType - from .group_0432 import MergeGroupType as MergeGroupType - from .group_0439 import ProjectsV2Type as ProjectsV2Type + from .group_0047 import TeamSimpleType as TeamSimpleType + from .group_0072 import GistSimpleType as GistSimpleType + from .group_0072 import PublicUserType as PublicUserType + from .group_0074 import GistCommitType as GistCommitType + from .group_0196 import DeploymentType as DeploymentType + from .group_0219 import CheckSuiteType as CheckSuiteType + from .group_0257 import FileCommitType as FileCommitType + from .group_0264 import DependencyType as DependencyType + from .group_0287 import IssueEventType as IssueEventType + from .group_0422 import DiscussionType as DiscussionType + from .group_0436 import MergeGroupType as MergeGroupType + from .group_0443 import ProjectsV2Type as ProjectsV2Type from .group_0006 import IntegrationType as IntegrationType from .group_0033 import RunnerLabelType as RunnerLabelType - from .group_0068 import GistHistoryType as GistHistoryType - from .group_0070 import GistCommentType as GistCommentType - from .group_0077 import ApiOverviewType as ApiOverviewType - from .group_0085 import EmptyObjectType as EmptyObjectType - from .group_0169 import TeamProjectType as TeamProjectType - from .group_0171 import ProjectCardType as ProjectCardType - from .group_0187 import WorkflowRunType as WorkflowRunType - from .group_0202 import ShortBranchType as ShortBranchType - from .group_0238 import BranchShortType as BranchShortType - from .group_0248 import ContentTreeType as ContentTreeType - from .group_0250 import ContentFileType as ContentFileType - from .group_0254 import ContributorType as ContributorType - from .group_0265 import EnvironmentType as EnvironmentType - from .group_0319 import PullRequestType as PullRequestType - from .group_0365 import ViewTrafficType as ViewTrafficType - from .group_0371 import PatchSchemaType as PatchSchemaType - from .group_0389 import PrivateUserType as PrivateUserType - from .group_0523 import WebhookForkType as WebhookForkType - from .group_0638 import WebhookPingType as WebhookPingType - from .group_0701 import WebhookPushType as WebhookPushType + from .group_0071 import GistHistoryType as GistHistoryType + from .group_0073 import GistCommentType as GistCommentType + from .group_0080 import ApiOverviewType as ApiOverviewType + from .group_0173 import TeamProjectType as TeamProjectType + from .group_0175 import ProjectCardType as ProjectCardType + from .group_0191 import WorkflowRunType as WorkflowRunType + from .group_0206 import ShortBranchType as ShortBranchType + from .group_0210 import EmptyObjectType as EmptyObjectType + from .group_0242 import BranchShortType as BranchShortType + from .group_0252 import ContentTreeType as ContentTreeType + from .group_0254 import ContentFileType as ContentFileType + from .group_0258 import ContributorType as ContributorType + from .group_0269 import EnvironmentType as EnvironmentType + from .group_0323 import PullRequestType as PullRequestType + from .group_0369 import ViewTrafficType as ViewTrafficType + from .group_0375 import PatchSchemaType as PatchSchemaType + from .group_0393 import PrivateUserType as PrivateUserType + from .group_0528 import WebhookForkType as WebhookForkType + from .group_0643 import WebhookPingType as WebhookPingType + from .group_0709 import WebhookPushType as WebhookPushType from .group_0011 import HookDeliveryType as HookDeliveryType from .group_0015 import InstallationType as InstallationType from .group_0038 import AnnouncementType as AnnouncementType - from .group_0064 import IssueCommentType as IssueCommentType - from .group_0066 import LinkWithTypeType as LinkWithTypeType - from .group_0094 import OrganizationType as OrganizationType - from .group_0163 import GroupMappingType as GroupMappingType - from .group_0186 import SimpleCommitType as SimpleCommitType - from .group_0204 import VerificationType as VerificationType - from .group_0236 import CollaboratorType as CollaboratorType - from .group_0278 import HookResponseType as HookResponseType - from .group_0281 import PorterAuthorType as PorterAuthorType - from .group_0329 import ReleaseAssetType as ReleaseAssetType - from .group_0362 import CloneTrafficType as CloneTrafficType - from .group_0374 import UserResponseType as UserResponseType - from .group_0379 import ScimUserListType as ScimUserListType - from .group_0407 import WebhooksRuleType as WebhooksRuleType - from .group_0416 import WebhooksUserType as WebhooksUserType - from .group_0431 import WebhooksTeamType as WebhooksTeamType + from .group_0049 import OrganizationType as OrganizationType + from .group_0067 import IssueCommentType as IssueCommentType + from .group_0069 import LinkWithTypeType as LinkWithTypeType + from .group_0167 import GroupMappingType as GroupMappingType + from .group_0190 import SimpleCommitType as SimpleCommitType + from .group_0208 import VerificationType as VerificationType + from .group_0240 import CollaboratorType as CollaboratorType + from .group_0282 import HookResponseType as HookResponseType + from .group_0285 import PorterAuthorType as PorterAuthorType + from .group_0333 import ReleaseAssetType as ReleaseAssetType + from .group_0366 import CloneTrafficType as CloneTrafficType + from .group_0378 import UserResponseType as UserResponseType + from .group_0383 import ScimUserListType as ScimUserListType + from .group_0411 import WebhooksRuleType as WebhooksRuleType + from .group_0420 import WebhooksUserType as WebhooksUserType + from .group_0435 import WebhooksTeamType as WebhooksTeamType from .group_0002 import VulnerabilityType as VulnerabilityType from .group_0007 import WebhookConfigType as WebhookConfigType from .group_0016 import LicenseSimpleType as LicenseSimpleType from .group_0020 import AuthorizationType as AuthorizationType from .group_0039 import AuditLogEventType as AuditLogEventType - from .group_0065 import EventPropRepoType as EventPropRepoType - from .group_0066 import FeedPropLinksType as FeedPropLinksType - from .group_0079 import CodeOfConductType as CodeOfConductType - from .group_0084 import OidcCustomSubType as OidcCustomSubType - from .group_0100 import ExternalGroupType as ExternalGroupType - from .group_0107 import OrgMembershipType as OrgMembershipType - from .group_0172 import ProjectColumnType as ProjectColumnType - from .group_0181 import ActionsSecretType as ActionsSecretType - from .group_0194 import WorkflowUsageType as WorkflowUsageType - from .group_0237 import CommitCommentType as CommitCommentType - from .group_0327 import ReviewCommentType as ReviewCommentType - from .group_0358 import TagPropCommitType as TagPropCommitType - from .group_0359 import TagProtectionType as TagProtectionType - from .group_0366 import GroupResponseType as GroupResponseType - from .group_0373 import UserRoleItemsType as UserRoleItemsType - from .group_0397 import SocialAccountType as SocialAccountType - from .group_0398 import SshSigningKeyType as SshSigningKeyType - from .group_0420 import WebhooksLabelType as WebhooksLabelType - from .group_0425 import WebhooksIssueType as WebhooksIssueType - from .group_0449 import WebhooksAlertType as WebhooksAlertType - from .group_0454 import WebhooksTeam1Type as WebhooksTeam1Type - from .group_0483 import WebhookCreateType as WebhookCreateType - from .group_0488 import WebhookDeleteType as WebhookDeleteType - from .group_0529 import WebhookGollumType as WebhookGollumType - from .group_0669 import WebhookPublicType as WebhookPublicType - from .group_0760 import WebhookStatusType as WebhookStatusType - from .group_0818 import GistsPostBodyType as GistsPostBodyType - from .group_1123 import UserPatchBodyType as UserPatchBodyType + from .group_0068 import EventPropRepoType as EventPropRepoType + from .group_0069 import FeedPropLinksType as FeedPropLinksType + from .group_0082 import CodeOfConductType as CodeOfConductType + from .group_0087 import OidcCustomSubType as OidcCustomSubType + from .group_0102 import ExternalGroupType as ExternalGroupType + from .group_0109 import OrgMembershipType as OrgMembershipType + from .group_0176 import ProjectColumnType as ProjectColumnType + from .group_0185 import ActionsSecretType as ActionsSecretType + from .group_0198 import WorkflowUsageType as WorkflowUsageType + from .group_0241 import CommitCommentType as CommitCommentType + from .group_0331 import ReviewCommentType as ReviewCommentType + from .group_0362 import TagPropCommitType as TagPropCommitType + from .group_0363 import TagProtectionType as TagProtectionType + from .group_0370 import GroupResponseType as GroupResponseType + from .group_0377 import UserRoleItemsType as UserRoleItemsType + from .group_0401 import SocialAccountType as SocialAccountType + from .group_0402 import SshSigningKeyType as SshSigningKeyType + from .group_0424 import WebhooksLabelType as WebhooksLabelType + from .group_0429 import WebhooksIssueType as WebhooksIssueType + from .group_0454 import WebhooksAlertType as WebhooksAlertType + from .group_0459 import WebhooksTeam1Type as WebhooksTeam1Type + from .group_0488 import WebhookCreateType as WebhookCreateType + from .group_0493 import WebhookDeleteType as WebhookDeleteType + from .group_0534 import WebhookGollumType as WebhookGollumType + from .group_0677 import WebhookPublicType as WebhookPublicType + from .group_0768 import WebhookStatusType as WebhookStatusType + from .group_0827 import GistsPostBodyType as GistsPostBodyType + from .group_1142 import UserPatchBodyType as UserPatchBodyType from .group_0002 import GlobalAdvisoryType as GlobalAdvisoryType from .group_0014 import AppPermissionsType as AppPermissionsType - from .group_0062 import ReactionRollupType as ReactionRollupType - from .group_0101 import ExternalGroupsType as ExternalGroupsType - from .group_0111 import PackageVersionType as PackageVersionType - from .group_0119 import FullRepositoryType as FullRepositoryType - from .group_0165 import TeamDiscussionType as TeamDiscussionType - from .group_0168 import TeamMembershipType as TeamMembershipType - from .group_0170 import TeamRepositoryType as TeamRepositoryType - from .group_0251 import ContentSymlinkType as ContentSymlinkType - from .group_0311 import LicenseContentType as LicenseContentType - from .group_0312 import MergedUpstreamType as MergedUpstreamType - from .group_0316 import PageDeploymentType as PageDeploymentType - from .group_0354 import CommitActivityType as CommitActivityType - from .group_0363 import ContentTrafficType as ContentTrafficType - from .group_0417 import WebhooksAnswerType as WebhooksAnswerType - from .group_0427 import WebhooksIssue2Type as WebhooksIssue2Type - from .group_0441 import ProjectsV2ItemType as ProjectsV2ItemType - from .group_0446 import WebhooksReviewType as WebhooksReviewType - from .group_0765 import WebhookTeamAddType as WebhookTeamAddType + from .group_0049 import EnterpriseTeamType as EnterpriseTeamType + from .group_0065 import ReactionRollupType as ReactionRollupType + from .group_0103 import ExternalGroupsType as ExternalGroupsType + from .group_0115 import PackageVersionType as PackageVersionType + from .group_0123 import FullRepositoryType as FullRepositoryType + from .group_0169 import TeamDiscussionType as TeamDiscussionType + from .group_0172 import TeamMembershipType as TeamMembershipType + from .group_0174 import TeamRepositoryType as TeamRepositoryType + from .group_0255 import ContentSymlinkType as ContentSymlinkType + from .group_0315 import LicenseContentType as LicenseContentType + from .group_0316 import MergedUpstreamType as MergedUpstreamType + from .group_0320 import PageDeploymentType as PageDeploymentType + from .group_0358 import CommitActivityType as CommitActivityType + from .group_0367 import ContentTrafficType as ContentTrafficType + from .group_0421 import WebhooksAnswerType as WebhooksAnswerType + from .group_0431 import WebhooksIssue2Type as WebhooksIssue2Type + from .group_0445 import ProjectsV2ItemType as ProjectsV2ItemType + from .group_0451 import WebhooksReviewType as WebhooksReviewType + from .group_0773 import WebhookTeamAddType as WebhookTeamAddType from .group_0010 import ValidationErrorType as ValidationErrorType from .group_0023 import SimpleClassroomType as SimpleClassroomType from .group_0030 import SelectedActionsType as SelectedActionsType - from .group_0159 import RuleSuitesItemsType as RuleSuitesItemsType - from .group_0182 import ActionsVariableType as ActionsVariableType - from .group_0206 import CommitPropStatsType as CommitPropStatsType - from .group_0209 import ProtectedBranchType as ProtectedBranchType - from .group_0214 import CheckAnnotationType as CheckAnnotationType - from .group_0255 import DependabotAlertType as DependabotAlertType - from .group_0262 import SnapshotPropJobType as SnapshotPropJobType - from .group_0282 import PorterLargeFileType as PorterLargeFileType - from .group_0283 import IssueEventLabelType as IssueEventLabelType - from .group_0313 import PagesSourceHashType as PagesSourceHashType - from .group_0315 import PageBuildStatusType as PageBuildStatusType - from .group_0364 import ReferrerTrafficType as ReferrerTrafficType - from .group_0378 import UserEmailsItemsType as UserEmailsItemsType - from .group_0419 import WebhooksCommentType as WebhooksCommentType - from .group_0424 import WebhooksChangesType as WebhooksChangesType - from .group_0437 import WebhooksProjectType as WebhooksProjectType - from .group_0447 import WebhooksReleaseType as WebhooksReleaseType - from .group_0835 import RunnerGroupsOrgType as RunnerGroupsOrgType + from .group_0163 import RuleSuitesItemsType as RuleSuitesItemsType + from .group_0186 import ActionsVariableType as ActionsVariableType + from .group_0210 import CommitPropStatsType as CommitPropStatsType + from .group_0213 import ProtectedBranchType as ProtectedBranchType + from .group_0218 import CheckAnnotationType as CheckAnnotationType + from .group_0259 import DependabotAlertType as DependabotAlertType + from .group_0266 import SnapshotPropJobType as SnapshotPropJobType + from .group_0286 import PorterLargeFileType as PorterLargeFileType + from .group_0287 import IssueEventLabelType as IssueEventLabelType + from .group_0317 import PagesSourceHashType as PagesSourceHashType + from .group_0319 import PageBuildStatusType as PageBuildStatusType + from .group_0368 import ReferrerTrafficType as ReferrerTrafficType + from .group_0382 import UserEmailsItemsType as UserEmailsItemsType + from .group_0423 import WebhooksCommentType as WebhooksCommentType + from .group_0428 import WebhooksChangesType as WebhooksChangesType + from .group_0441 import WebhooksProjectType as WebhooksProjectType + from .group_0452 import WebhooksReleaseType as WebhooksReleaseType + from .group_0844 import RunnerGroupsOrgType as RunnerGroupsOrgType + from .group_1168 import SigstoreBundle0Type as SigstoreBundle0Type from .group_0008 import HookDeliveryItemType as HookDeliveryItemType from .group_0043 import SimpleRepositoryType as SimpleRepositoryType - from .group_0065 import EventPropPayloadType as EventPropPayloadType - from .group_0083 import OrganizationFullType as OrganizationFullType - from .group_0087 import ActionsPublicKeyType as ActionsPublicKeyType - from .group_0088 import CodespaceMachineType as CodespaceMachineType - from .group_0106 import InteractionLimitType as InteractionLimitType - from .group_0110 import OrganizationRoleType as OrganizationRoleType - from .group_0164 import TeamOrganizationType as TeamOrganizationType - from .group_0178 import ActionsCacheListType as ActionsCacheListType - from .group_0193 import WorkflowRunUsageType as WorkflowRunUsageType - from .group_0201 import BranchProtectionType as BranchProtectionType - from .group_0207 import CommitPropCommitType as CommitPropCommitType - from .group_0212 import DeploymentSimpleType as DeploymentSimpleType - from .group_0233 import CodeownersErrorsType as CodeownersErrorsType - from .group_0246 import CommunityProfileType as CommunityProfileType - from .group_0247 import CommitComparisonType as CommitComparisonType - from .group_0252 import ContentSubmoduleType as ContentSubmoduleType - from .group_0261 import ManifestPropFileType as ManifestPropFileType - from .group_0263 import DeploymentStatusType as DeploymentStatusType - from .group_0275 import GitRefPropObjectType as GitRefPropObjectType - from .group_0276 import GitTagPropObjectType as GitTagPropObjectType - from .group_0276 import GitTagPropTaggerType as GitTagPropTaggerType - from .group_0283 import IssueEventRenameType as IssueEventRenameType - from .group_0294 import LockedIssueEventType as LockedIssueEventType - from .group_0318 import PagesHealthCheckType as PagesHealthCheckType - from .group_0372 import UserNameResponseType as UserNameResponseType - from .group_0379 import ScimUserPropMetaType as ScimUserPropMetaType - from .group_0379 import ScimUserPropNameType as ScimUserPropNameType - from .group_0409 import ExemptionRequestType as ExemptionRequestType - from .group_0410 import SimpleCheckSuiteType as SimpleCheckSuiteType - from .group_0413 import WebhooksWorkflowType as WebhooksWorkflowType - from .group_0414 import WebhooksApproverType as WebhooksApproverType - from .group_0448 import WebhooksRelease1Type as WebhooksRelease1Type - from .group_0453 import WebhooksChanges8Type as WebhooksChanges8Type - from .group_0633 import WebhookPageBuildType as WebhookPageBuildType - from .group_0825 import MarkdownPostBodyType as MarkdownPostBodyType - from .group_0830 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType - from .group_1006 import DependabotSecretType as DependabotSecretType - from .group_1127 import CodespacesSecretType as CodespacesSecretType - from .group_1141 import UserKeysPostBodyType as UserKeysPostBodyType + from .group_0068 import EventPropPayloadType as EventPropPayloadType + from .group_0086 import OrganizationFullType as OrganizationFullType + from .group_0089 import ActionsPublicKeyType as ActionsPublicKeyType + from .group_0093 import CodespaceMachineType as CodespaceMachineType + from .group_0108 import InteractionLimitType as InteractionLimitType + from .group_0112 import OrganizationRoleType as OrganizationRoleType + from .group_0168 import TeamOrganizationType as TeamOrganizationType + from .group_0182 import ActionsCacheListType as ActionsCacheListType + from .group_0197 import WorkflowRunUsageType as WorkflowRunUsageType + from .group_0205 import BranchProtectionType as BranchProtectionType + from .group_0211 import CommitPropCommitType as CommitPropCommitType + from .group_0216 import DeploymentSimpleType as DeploymentSimpleType + from .group_0237 import CodeownersErrorsType as CodeownersErrorsType + from .group_0250 import CommunityProfileType as CommunityProfileType + from .group_0251 import CommitComparisonType as CommitComparisonType + from .group_0256 import ContentSubmoduleType as ContentSubmoduleType + from .group_0265 import ManifestPropFileType as ManifestPropFileType + from .group_0267 import DeploymentStatusType as DeploymentStatusType + from .group_0279 import GitRefPropObjectType as GitRefPropObjectType + from .group_0280 import GitTagPropObjectType as GitTagPropObjectType + from .group_0280 import GitTagPropTaggerType as GitTagPropTaggerType + from .group_0287 import IssueEventRenameType as IssueEventRenameType + from .group_0298 import LockedIssueEventType as LockedIssueEventType + from .group_0322 import PagesHealthCheckType as PagesHealthCheckType + from .group_0376 import UserNameResponseType as UserNameResponseType + from .group_0383 import ScimUserPropMetaType as ScimUserPropMetaType + from .group_0383 import ScimUserPropNameType as ScimUserPropNameType + from .group_0413 import ExemptionRequestType as ExemptionRequestType + from .group_0414 import SimpleCheckSuiteType as SimpleCheckSuiteType + from .group_0417 import WebhooksWorkflowType as WebhooksWorkflowType + from .group_0418 import WebhooksApproverType as WebhooksApproverType + from .group_0453 import WebhooksRelease1Type as WebhooksRelease1Type + from .group_0458 import WebhooksChanges8Type as WebhooksChanges8Type + from .group_0638 import WebhookPageBuildType as WebhookPageBuildType + from .group_0834 import MarkdownPostBodyType as MarkdownPostBodyType + from .group_0839 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType + from .group_1025 import DependabotSecretType as DependabotSecretType + from .group_1146 import CodespacesSecretType as CodespacesSecretType + from .group_1160 import UserKeysPostBodyType as UserKeysPostBodyType from .group_0018 import InstallationTokenType as InstallationTokenType from .group_0035 import RunnerApplicationType as RunnerApplicationType - from .group_0057 import GetAllCostCentersType as GetAllCostCentersType - from .group_0067 import BaseGistPropFilesType as BaseGistPropFilesType - from .group_0072 import GitignoreTemplateType as GitignoreTemplateType - from .group_0079 import MinimalRepositoryType as MinimalRepositoryType - from .group_0080 import ThreadPropSubjectType as ThreadPropSubjectType - from .group_0104 import OrgHookPropConfigType as OrgHookPropConfigType - from .group_0115 import OrgCustomPropertyType as OrgCustomPropertyType - from .group_0158 import RepositoryRulesetType as RepositoryRulesetType - from .group_0175 import RateLimitOverviewType as RateLimitOverviewType - from .group_0179 import JobPropStepsItemsType as JobPropStepsItemsType - from .group_0180 import OidcCustomSubRepoType as OidcCustomSubRepoType - from .group_0191 import PendingDeploymentType as PendingDeploymentType - from .group_0209 import StatusCheckPolicyType as StatusCheckPolicyType - from .group_0218 import CodeScanningAlertType as CodeScanningAlertType - from .group_0241 import PullRequestSimpleType as PullRequestSimpleType - from .group_0274 import GitCommitPropTreeType as GitCommitPropTreeType - from .group_0284 import LabeledIssueEventType as LabeledIssueEventType - from .group_0290 import RenamedIssueEventType as RenamedIssueEventType - from .group_0326 import PullRequestReviewType as PullRequestReviewType - from .group_0399 import StarredRepositoryType as StarredRepositoryType - from .group_0408 import ExemptionResponseType as ExemptionResponseType - from .group_0412 import WebhooksDeployKeyType as WebhooksDeployKeyType - from .group_0426 import WebhooksMilestoneType as WebhooksMilestoneType - from .group_0769 import WebhookTeamEditedType as WebhookTeamEditedType - from .group_1145 import UserReposPostBodyType as UserReposPostBodyType + from .group_0060 import GetAllCostCentersType as GetAllCostCentersType + from .group_0070 import BaseGistPropFilesType as BaseGistPropFilesType + from .group_0075 import GitignoreTemplateType as GitignoreTemplateType + from .group_0082 import MinimalRepositoryType as MinimalRepositoryType + from .group_0083 import ThreadPropSubjectType as ThreadPropSubjectType + from .group_0106 import OrgHookPropConfigType as OrgHookPropConfigType + from .group_0119 import OrgCustomPropertyType as OrgCustomPropertyType + from .group_0162 import RepositoryRulesetType as RepositoryRulesetType + from .group_0179 import RateLimitOverviewType as RateLimitOverviewType + from .group_0183 import JobPropStepsItemsType as JobPropStepsItemsType + from .group_0184 import OidcCustomSubRepoType as OidcCustomSubRepoType + from .group_0195 import PendingDeploymentType as PendingDeploymentType + from .group_0213 import StatusCheckPolicyType as StatusCheckPolicyType + from .group_0222 import CodeScanningAlertType as CodeScanningAlertType + from .group_0245 import PullRequestSimpleType as PullRequestSimpleType + from .group_0278 import GitCommitPropTreeType as GitCommitPropTreeType + from .group_0288 import LabeledIssueEventType as LabeledIssueEventType + from .group_0294 import RenamedIssueEventType as RenamedIssueEventType + from .group_0330 import PullRequestReviewType as PullRequestReviewType + from .group_0403 import StarredRepositoryType as StarredRepositoryType + from .group_0412 import ExemptionResponseType as ExemptionResponseType + from .group_0416 import WebhooksDeployKeyType as WebhooksDeployKeyType + from .group_0430 import WebhooksMilestoneType as WebhooksMilestoneType + from .group_0777 import WebhookTeamEditedType as WebhookTeamEditedType + from .group_1164 import UserReposPostBodyType as UserReposPostBodyType from .group_0019 import ScopedInstallationType as ScopedInstallationType from .group_0029 import OrganizationSimpleType as OrganizationSimpleType from .group_0037 import AnnouncementBannerType as AnnouncementBannerType - from .group_0060 import BillingUsageReportType as BillingUsageReportType - from .group_0069 import PublicUserPropPlanType as PublicUserPropPlanType - from .group_0081 import ThreadSubscriptionType as ThreadSubscriptionType - from .group_0094 import CopilotSeatDetailsType as CopilotSeatDetailsType - from .group_0162 import RepositoryAdvisoryType as RepositoryAdvisoryType - from .group_0185 import PullRequestMinimalType as PullRequestMinimalType - from .group_0187 import ReferencedWorkflowType as ReferencedWorkflowType - from .group_0213 import CheckRunPropOutputType as CheckRunPropOutputType - from .group_0244 import SimpleCommitStatusType as SimpleCommitStatusType - from .group_0286 import AssignedIssueEventType as AssignedIssueEventType - from .group_0314 import PageBuildPropErrorType as PageBuildPropErrorType - from .group_0356 import ParticipationStatsType as ParticipationStatsType - from .group_0396 import MarketplaceAccountType as MarketplaceAccountType - from .group_0402 import EnterpriseWebhooksType as EnterpriseWebhooksType - from .group_0403 import SimpleInstallationType as SimpleInstallationType - from .group_0405 import RepositoryWebhooksType as RepositoryWebhooksType - from .group_0406 import SimpleUserWebhooksType as SimpleUserWebhooksType - from .group_0418 import DiscussionPropUserType as DiscussionPropUserType - from .group_0433 import WebhooksMilestone3Type as WebhooksMilestone3Type - from .group_0434 import WebhooksMembershipType as WebhooksMembershipType - from .group_0442 import PullRequestWebhookType as PullRequestWebhookType - from .group_0600 import WebhookLabelEditedType as WebhookLabelEditedType - from .group_0606 import WebhookMemberAddedType as WebhookMemberAddedType - from .group_0613 import WebhookMetaDeletedType as WebhookMetaDeletedType - from .group_0758 import WebhookStarCreatedType as WebhookStarCreatedType - from .group_0759 import WebhookStarDeletedType as WebhookStarDeletedType - from .group_0767 import WebhookTeamCreatedType as WebhookTeamCreatedType - from .group_0768 import WebhookTeamDeletedType as WebhookTeamDeletedType + from .group_0049 import CopilotSeatDetailsType as CopilotSeatDetailsType + from .group_0063 import BillingUsageReportType as BillingUsageReportType + from .group_0072 import PublicUserPropPlanType as PublicUserPropPlanType + from .group_0084 import ThreadSubscriptionType as ThreadSubscriptionType + from .group_0113 import TeamRoleAssignmentType as TeamRoleAssignmentType + from .group_0114 import UserRoleAssignmentType as UserRoleAssignmentType + from .group_0166 import RepositoryAdvisoryType as RepositoryAdvisoryType + from .group_0189 import PullRequestMinimalType as PullRequestMinimalType + from .group_0191 import ReferencedWorkflowType as ReferencedWorkflowType + from .group_0217 import CheckRunPropOutputType as CheckRunPropOutputType + from .group_0248 import SimpleCommitStatusType as SimpleCommitStatusType + from .group_0290 import AssignedIssueEventType as AssignedIssueEventType + from .group_0318 import PageBuildPropErrorType as PageBuildPropErrorType + from .group_0360 import ParticipationStatsType as ParticipationStatsType + from .group_0400 import MarketplaceAccountType as MarketplaceAccountType + from .group_0406 import EnterpriseWebhooksType as EnterpriseWebhooksType + from .group_0407 import SimpleInstallationType as SimpleInstallationType + from .group_0409 import RepositoryWebhooksType as RepositoryWebhooksType + from .group_0410 import SimpleUserWebhooksType as SimpleUserWebhooksType + from .group_0422 import DiscussionPropUserType as DiscussionPropUserType + from .group_0437 import WebhooksMilestone3Type as WebhooksMilestone3Type + from .group_0438 import WebhooksMembershipType as WebhooksMembershipType + from .group_0447 import PullRequestWebhookType as PullRequestWebhookType + from .group_0605 import WebhookLabelEditedType as WebhookLabelEditedType + from .group_0611 import WebhookMemberAddedType as WebhookMemberAddedType + from .group_0618 import WebhookMetaDeletedType as WebhookMetaDeletedType + from .group_0766 import WebhookStarCreatedType as WebhookStarCreatedType + from .group_0767 import WebhookStarDeletedType as WebhookStarDeletedType + from .group_0775 import WebhookTeamCreatedType as WebhookTeamCreatedType + from .group_0776 import WebhookTeamDeletedType as WebhookTeamDeletedType from .group_0022 import ClassroomAssignmentType as ClassroomAssignmentType from .group_0023 import SimpleClassroomUserType as SimpleClassroomUserType from .group_0036 import AuthenticationTokenType as AuthenticationTokenType from .group_0046 import GetConsumedLicensesType as GetConsumedLicensesType - from .group_0047 import CopilotUsageMetricsType as CopilotUsageMetricsType - from .group_0055 import ActionsBillingUsageType as ActionsBillingUsageType - from .group_0069 import GistSimplePropFilesType as GistSimplePropFilesType - from .group_0075 import MarketplacePurchaseType as MarketplacePurchaseType - from .group_0078 import SecurityAndAnalysisType as SecurityAndAnalysisType - from .group_0090 import CodespacesPublicKeyType as CodespacesPublicKeyType - from .group_0093 import TeamPropPermissionsType as TeamPropPermissionsType - from .group_0098 import DependabotPublicKeyType as DependabotPublicKeyType - from .group_0116 import CustomPropertyValueType as CustomPropertyValueType - from .group_0118 import CodeOfConductSimpleType as CodeOfConductSimpleType - from .group_0246 import CommunityHealthFileType as CommunityHealthFileType - from .group_0274 import GitCommitPropAuthorType as GitCommitPropAuthorType - from .group_0283 import IssueEventMilestoneType as IssueEventMilestoneType - from .group_0285 import UnlabeledIssueEventType as UnlabeledIssueEventType - from .group_0320 import PullRequestPropHeadType as PullRequestPropHeadType - from .group_0321 import PullRequestPropBaseType as PullRequestPropBaseType - from .group_0331 import ReleaseNotesContentType as ReleaseNotesContentType - from .group_0349 import SecretScanningAlertType as SecretScanningAlertType - from .group_0355 import ContributorActivityType as ContributorActivityType - from .group_0389 import PrivateUserPropPlanType as PrivateUserPropPlanType - from .group_0436 import WebhooksProjectCardType as WebhooksProjectCardType - from .group_0452 import WebhooksSponsorshipType as WebhooksSponsorshipType - from .group_0573 import WebhookIssuesClosedType as WebhookIssuesClosedType - from .group_0586 import WebhookIssuesEditedType as WebhookIssuesEditedType - from .group_0588 import WebhookIssuesLockedType as WebhookIssuesLockedType - from .group_0590 import WebhookIssuesOpenedType as WebhookIssuesOpenedType - from .group_0591 import WebhookIssuesPinnedType as WebhookIssuesPinnedType - from .group_0598 import WebhookLabelCreatedType as WebhookLabelCreatedType - from .group_0599 import WebhookLabelDeletedType as WebhookLabelDeletedType - from .group_0607 import WebhookMemberEditedType as WebhookMemberEditedType - from .group_0639 import WebhookPingPropHookType as WebhookPingPropHookType - from .group_0771 import WebhookWatchStartedType as WebhookWatchStartedType - from .group_0859 import CodespacesOrgSecretType as CodespacesOrgSecretType - from .group_1137 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType + from .group_0048 import TeamPropPermissionsType as TeamPropPermissionsType + from .group_0050 import CopilotUsageMetricsType as CopilotUsageMetricsType + from .group_0058 import ActionsBillingUsageType as ActionsBillingUsageType + from .group_0072 import GistSimplePropFilesType as GistSimplePropFilesType + from .group_0078 import MarketplacePurchaseType as MarketplacePurchaseType + from .group_0081 import SecurityAndAnalysisType as SecurityAndAnalysisType + from .group_0095 import CodespacesPublicKeyType as CodespacesPublicKeyType + from .group_0100 import DependabotPublicKeyType as DependabotPublicKeyType + from .group_0120 import CustomPropertyValueType as CustomPropertyValueType + from .group_0122 import CodeOfConductSimpleType as CodeOfConductSimpleType + from .group_0250 import CommunityHealthFileType as CommunityHealthFileType + from .group_0278 import GitCommitPropAuthorType as GitCommitPropAuthorType + from .group_0287 import IssueEventMilestoneType as IssueEventMilestoneType + from .group_0289 import UnlabeledIssueEventType as UnlabeledIssueEventType + from .group_0324 import PullRequestPropHeadType as PullRequestPropHeadType + from .group_0325 import PullRequestPropBaseType as PullRequestPropBaseType + from .group_0335 import ReleaseNotesContentType as ReleaseNotesContentType + from .group_0353 import SecretScanningAlertType as SecretScanningAlertType + from .group_0359 import ContributorActivityType as ContributorActivityType + from .group_0393 import PrivateUserPropPlanType as PrivateUserPropPlanType + from .group_0440 import WebhooksProjectCardType as WebhooksProjectCardType + from .group_0457 import WebhooksSponsorshipType as WebhooksSponsorshipType + from .group_0578 import WebhookIssuesClosedType as WebhookIssuesClosedType + from .group_0591 import WebhookIssuesEditedType as WebhookIssuesEditedType + from .group_0593 import WebhookIssuesLockedType as WebhookIssuesLockedType + from .group_0595 import WebhookIssuesOpenedType as WebhookIssuesOpenedType + from .group_0596 import WebhookIssuesPinnedType as WebhookIssuesPinnedType + from .group_0603 import WebhookLabelCreatedType as WebhookLabelCreatedType + from .group_0604 import WebhookLabelDeletedType as WebhookLabelDeletedType + from .group_0612 import WebhookMemberEditedType as WebhookMemberEditedType + from .group_0644 import WebhookPingPropHookType as WebhookPingPropHookType + from .group_0779 import WebhookWatchStartedType as WebhookWatchStartedType + from .group_0874 import CodespacesOrgSecretType as CodespacesOrgSecretType + from .group_1156 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType from .group_0020 import AuthorizationPropAppType as AuthorizationPropAppType - from .group_0053 import GetLicenseSyncStatusType as GetLicenseSyncStatusType - from .group_0058 import PackagesBillingUsageType as PackagesBillingUsageType - from .group_0059 import CombinedBillingUsageType as CombinedBillingUsageType - from .group_0063 import IssuePropPullRequestType as IssuePropPullRequestType - from .group_0068 import GistSimplePropForkOfType as GistSimplePropForkOfType - from .group_0091 import CopilotSeatBreakdownType as CopilotSeatBreakdownType - from .group_0094 import OrganizationPropPlanType as OrganizationPropPlanType - from .group_0133 import RepositoryRuleUpdateType as RepositoryRuleUpdateType - from .group_0188 import EnvironmentApprovalsType as EnvironmentApprovalsType - from .group_0208 import BranchWithProtectionType as BranchWithProtectionType - from .group_0216 import CheckSuitePreferenceType as CheckSuitePreferenceType - from .group_0219 import CodeScanningAnalysisType as CodeScanningAnalysisType - from .group_0235 import RepositoryInvitationType as RepositoryInvitationType - from .group_0244 import CombinedCommitStatusType as CombinedCommitStatusType - from .group_0248 import ContentTreePropLinksType as ContentTreePropLinksType - from .group_0250 import ContentFilePropLinksType as ContentFilePropLinksType - from .group_0253 import FileCommitPropCommitType as FileCommitPropCommitType - from .group_0261 import ManifestPropResolvedType as ManifestPropResolvedType - from .group_0262 import SnapshotPropDetectorType as SnapshotPropDetectorType - from .group_0277 import GitTreePropTreeItemsType as GitTreePropTreeItemsType - from .group_0287 import UnassignedIssueEventType as UnassignedIssueEventType - from .group_0288 import MilestonedIssueEventType as MilestonedIssueEventType - from .group_0300 import TimelineCommentEventType as TimelineCommentEventType - from .group_0323 import PullRequestPropLinksType as PullRequestPropLinksType - from .group_0381 import CodeSearchResultItemType as CodeSearchResultItemType - from .group_0386 import RepoSearchResultItemType as RepoSearchResultItemType - from .group_0388 import UserSearchResultItemType as UserSearchResultItemType - from .group_0423 import WebhooksIssueCommentType as WebhooksIssueCommentType - from .group_0444 import WebhooksPullRequest5Type as WebhooksPullRequest5Type - from .group_0584 import WebhookIssuesDeletedType as WebhookIssuesDeletedType - from .group_0587 import WebhookIssuesLabeledType as WebhookIssuesLabeledType - from .group_0608 import WebhookMemberRemovedType as WebhookMemberRemovedType - from .group_0648 import WebhookProjectClosedType as WebhookProjectClosedType - from .group_0655 import WebhookProjectEditedType as WebhookProjectEditedType - from .group_0710 import WebhookReleaseEditedType as WebhookReleaseEditedType - from .group_0794 import EmojisGetResponse200Type as EmojisGetResponse200Type - from .group_0820 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType - from .group_0826 import NotificationsPutBodyType as NotificationsPutBodyType - from .group_0876 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType - from .group_0898 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType - from .group_0901 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType - from .group_0996 import RepoCodespacesSecretType as RepoCodespacesSecretType - from .group_1111 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType - from .group_1144 import UserProjectsPostBodyType as UserProjectsPostBodyType + from .group_0049 import OrganizationPropPlanType as OrganizationPropPlanType + from .group_0056 import GetLicenseSyncStatusType as GetLicenseSyncStatusType + from .group_0061 import PackagesBillingUsageType as PackagesBillingUsageType + from .group_0062 import CombinedBillingUsageType as CombinedBillingUsageType + from .group_0066 import IssuePropPullRequestType as IssuePropPullRequestType + from .group_0071 import GistSimplePropForkOfType as GistSimplePropForkOfType + from .group_0096 import CopilotSeatBreakdownType as CopilotSeatBreakdownType + from .group_0137 import RepositoryRuleUpdateType as RepositoryRuleUpdateType + from .group_0192 import EnvironmentApprovalsType as EnvironmentApprovalsType + from .group_0212 import BranchWithProtectionType as BranchWithProtectionType + from .group_0220 import CheckSuitePreferenceType as CheckSuitePreferenceType + from .group_0223 import CodeScanningAnalysisType as CodeScanningAnalysisType + from .group_0239 import RepositoryInvitationType as RepositoryInvitationType + from .group_0248 import CombinedCommitStatusType as CombinedCommitStatusType + from .group_0252 import ContentTreePropLinksType as ContentTreePropLinksType + from .group_0254 import ContentFilePropLinksType as ContentFilePropLinksType + from .group_0257 import FileCommitPropCommitType as FileCommitPropCommitType + from .group_0265 import ManifestPropResolvedType as ManifestPropResolvedType + from .group_0266 import SnapshotPropDetectorType as SnapshotPropDetectorType + from .group_0281 import GitTreePropTreeItemsType as GitTreePropTreeItemsType + from .group_0291 import UnassignedIssueEventType as UnassignedIssueEventType + from .group_0292 import MilestonedIssueEventType as MilestonedIssueEventType + from .group_0304 import TimelineCommentEventType as TimelineCommentEventType + from .group_0327 import PullRequestPropLinksType as PullRequestPropLinksType + from .group_0385 import CodeSearchResultItemType as CodeSearchResultItemType + from .group_0390 import RepoSearchResultItemType as RepoSearchResultItemType + from .group_0392 import UserSearchResultItemType as UserSearchResultItemType + from .group_0427 import WebhooksIssueCommentType as WebhooksIssueCommentType + from .group_0449 import WebhooksPullRequest5Type as WebhooksPullRequest5Type + from .group_0589 import WebhookIssuesDeletedType as WebhookIssuesDeletedType + from .group_0592 import WebhookIssuesLabeledType as WebhookIssuesLabeledType + from .group_0613 import WebhookMemberRemovedType as WebhookMemberRemovedType + from .group_0653 import WebhookProjectClosedType as WebhookProjectClosedType + from .group_0660 import WebhookProjectEditedType as WebhookProjectEditedType + from .group_0718 import WebhookReleaseEditedType as WebhookReleaseEditedType + from .group_0802 import EmojisGetResponse200Type as EmojisGetResponse200Type + from .group_0829 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType + from .group_0835 import NotificationsPutBodyType as NotificationsPutBodyType + from .group_0892 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType + from .group_0914 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType + from .group_0917 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType + from .group_1015 import RepoCodespacesSecretType as RepoCodespacesSecretType + from .group_1130 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType + from .group_1163 import UserProjectsPostBodyType as UserProjectsPostBodyType from .group_0004 import ValidationErrorSimpleType as ValidationErrorSimpleType from .group_0025 import ServerStatisticsItemsType as ServerStatisticsItemsType from .group_0039 import AuditLogEventPropDataType as AuditLogEventPropDataType - from .group_0132 import RepositoryRuleOneof14Type as RepositoryRuleOneof14Type - from .group_0132 import RepositoryRuleOneof16Type as RepositoryRuleOneof16Type - from .group_0135 import RepositoryRuleOneof15Type as RepositoryRuleOneof15Type - from .group_0157 import RepositoryRuleOneof17Type as RepositoryRuleOneof17Type - from .group_0166 import TeamDiscussionCommentType as TeamDiscussionCommentType - from .group_0202 import ShortBranchPropCommitType as ShortBranchPropCommitType - from .group_0218 import CodeScanningAlertRuleType as CodeScanningAlertRuleType - from .group_0238 import BranchShortPropCommitType as BranchShortPropCommitType - from .group_0249 import ContentDirectoryItemsType as ContentDirectoryItemsType - from .group_0253 import FileCommitPropContentType as FileCommitPropContentType - from .group_0262 import SnapshotPropManifestsType as SnapshotPropManifestsType - from .group_0283 import IssueEventProjectCardType as IssueEventProjectCardType - from .group_0304 import TimelineReviewedEventType as TimelineReviewedEventType - from .group_0308 import StateChangeIssueEventType as StateChangeIssueEventType - from .group_0313 import PagesHttpsCertificateType as PagesHttpsCertificateType - from .group_0317 import PagesDeploymentStatusType as PagesDeploymentStatusType - from .group_0370 import GroupPropMembersItemsType as GroupPropMembersItemsType - from .group_0384 import IssueSearchResultItemType as IssueSearchResultItemType - from .group_0385 import LabelSearchResultItemType as LabelSearchResultItemType - from .group_0387 import TopicSearchResultItemType as TopicSearchResultItemType - from .group_0394 import GpgKeyPropEmailsItemsType as GpgKeyPropEmailsItemsType - from .group_0425 import WebhooksIssuePropUserType as WebhooksIssuePropUserType - from .group_0428 import WebhooksUserMannequinType as WebhooksUserMannequinType - from .group_0438 import WebhooksProjectColumnType as WebhooksProjectColumnType - from .group_0445 import WebhooksReviewCommentType as WebhooksReviewCommentType - from .group_0524 import WebhookForkPropForkeeType as WebhookForkPropForkeeType - from .group_0572 import WebhookIssuesAssignedType as WebhookIssuesAssignedType - from .group_0592 import WebhookIssuesReopenedType as WebhookIssuesReopenedType - from .group_0596 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType - from .group_0597 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType - from .group_0630 import WebhookPackageUpdatedType as WebhookPackageUpdatedType - from .group_0653 import WebhookProjectCreatedType as WebhookProjectCreatedType - from .group_0654 import WebhookProjectDeletedType as WebhookProjectDeletedType - from .group_0701 import WebhookPushPropPusherType as WebhookPushPropPusherType - from .group_0708 import WebhookReleaseCreatedType as WebhookReleaseCreatedType - from .group_0709 import WebhookReleaseDeletedType as WebhookReleaseDeletedType + from .group_0136 import RepositoryRuleOneof14Type as RepositoryRuleOneof14Type + from .group_0136 import RepositoryRuleOneof16Type as RepositoryRuleOneof16Type + from .group_0139 import RepositoryRuleOneof15Type as RepositoryRuleOneof15Type + from .group_0161 import RepositoryRuleOneof17Type as RepositoryRuleOneof17Type + from .group_0170 import TeamDiscussionCommentType as TeamDiscussionCommentType + from .group_0206 import ShortBranchPropCommitType as ShortBranchPropCommitType + from .group_0222 import CodeScanningAlertRuleType as CodeScanningAlertRuleType + from .group_0242 import BranchShortPropCommitType as BranchShortPropCommitType + from .group_0253 import ContentDirectoryItemsType as ContentDirectoryItemsType + from .group_0257 import FileCommitPropContentType as FileCommitPropContentType + from .group_0266 import SnapshotPropManifestsType as SnapshotPropManifestsType + from .group_0287 import IssueEventProjectCardType as IssueEventProjectCardType + from .group_0308 import TimelineReviewedEventType as TimelineReviewedEventType + from .group_0312 import StateChangeIssueEventType as StateChangeIssueEventType + from .group_0317 import PagesHttpsCertificateType as PagesHttpsCertificateType + from .group_0321 import PagesDeploymentStatusType as PagesDeploymentStatusType + from .group_0374 import GroupPropMembersItemsType as GroupPropMembersItemsType + from .group_0388 import IssueSearchResultItemType as IssueSearchResultItemType + from .group_0389 import LabelSearchResultItemType as LabelSearchResultItemType + from .group_0391 import TopicSearchResultItemType as TopicSearchResultItemType + from .group_0398 import GpgKeyPropEmailsItemsType as GpgKeyPropEmailsItemsType + from .group_0429 import WebhooksIssuePropUserType as WebhooksIssuePropUserType + from .group_0432 import WebhooksUserMannequinType as WebhooksUserMannequinType + from .group_0442 import WebhooksProjectColumnType as WebhooksProjectColumnType + from .group_0450 import WebhooksReviewCommentType as WebhooksReviewCommentType + from .group_0529 import WebhookForkPropForkeeType as WebhookForkPropForkeeType + from .group_0577 import WebhookIssuesAssignedType as WebhookIssuesAssignedType + from .group_0597 import WebhookIssuesReopenedType as WebhookIssuesReopenedType + from .group_0601 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType + from .group_0602 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType + from .group_0635 import WebhookPackageUpdatedType as WebhookPackageUpdatedType + from .group_0658 import WebhookProjectCreatedType as WebhookProjectCreatedType + from .group_0659 import WebhookProjectDeletedType as WebhookProjectDeletedType + from .group_0709 import WebhookPushPropPusherType as WebhookPushPropPusherType + from .group_0716 import WebhookReleaseCreatedType as WebhookReleaseCreatedType + from .group_0717 import WebhookReleaseDeletedType as WebhookReleaseDeletedType from .group_0002 import GlobalAdvisoryPropCvssType as GlobalAdvisoryPropCvssType - from .group_0048 import DependabotAlertPackageType as DependabotAlertPackageType - from .group_0074 import MarketplaceListingPlanType as MarketplaceListingPlanType - from .group_0077 import ApiOverviewPropDomainsType as ApiOverviewPropDomainsType - from .group_0089 import CodespacePropGitStatusType as CodespacePropGitStatusType - from .group_0102 import OrganizationInvitationType as OrganizationInvitationType - from .group_0132 import RepositoryRuleCreationType as RepositoryRuleCreationType - from .group_0132 import RepositoryRuleDeletionType as RepositoryRuleDeletionType - from .group_0186 import SimpleCommitPropAuthorType as SimpleCommitPropAuthorType - from .group_0206 import CommitPropParentsItemsType as CommitPropParentsItemsType - from .group_0213 import CheckRunPropCheckSuiteType as CheckRunPropCheckSuiteType - from .group_0217 import CodeScanningAlertItemsType as CodeScanningAlertItemsType - from .group_0274 import GitCommitPropCommitterType as GitCommitPropCommitterType - from .group_0289 import DemilestonedIssueEventType as DemilestonedIssueEventType - from .group_0303 import TimelineCommittedEventType as TimelineCommittedEventType - from .group_0324 import PullRequestMergeResultType as PullRequestMergeResultType - from .group_0328 import ReviewCommentPropLinksType as ReviewCommentPropLinksType - from .group_0357 import RepositorySubscriptionType as RepositorySubscriptionType - from .group_0375 import ScimEnterpriseUserListType as ScimEnterpriseUserListType - from .group_0379 import ScimUserPropRolesItemsType as ScimUserPropRolesItemsType - from .group_0382 import CommitSearchResultItemType as CommitSearchResultItemType - from .group_0391 import CodespaceExportDetailsType as CodespaceExportDetailsType - from .group_0394 import GpgKeyPropSubkeysItemsType as GpgKeyPropSubkeysItemsType - from .group_0414 import WebhooksReviewersItemsType as WebhooksReviewersItemsType - from .group_0415 import WebhooksWorkflowJobRunType as WebhooksWorkflowJobRunType - from .group_0417 import WebhooksAnswerPropUserType as WebhooksAnswerPropUserType - from .group_0418 import DiscussionPropCategoryType as DiscussionPropCategoryType - from .group_0427 import WebhooksIssue2PropUserType as WebhooksIssue2PropUserType - from .group_0431 import WebhooksTeamPropParentType as WebhooksTeamPropParentType - from .group_0440 import WebhooksProjectChangesType as WebhooksProjectChangesType - from .group_0446 import WebhooksReviewPropUserType as WebhooksReviewPropUserType - from .group_0467 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType - from .group_0595 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType - from .group_0609 import WebhookMembershipAddedType as WebhookMembershipAddedType - from .group_0614 import WebhookMilestoneClosedType as WebhookMilestoneClosedType - from .group_0617 import WebhookMilestoneEditedType as WebhookMilestoneEditedType - from .group_0618 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType - from .group_0619 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType - from .group_0640 import WebhookPingFormEncodedType as WebhookPingFormEncodedType - from .group_0656 import WebhookProjectReopenedType as WebhookProjectReopenedType - from .group_0713 import WebhookReleaseReleasedType as WebhookReleaseReleasedType - from .group_0741 import SecretScanningLocationType as SecretScanningLocationType - from .group_0786 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType - from .group_0798 import RunnerGroupsEnterpriseType as RunnerGroupsEnterpriseType - from .group_0818 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType - from .group_1014 import DeploymentBranchPolicyType as DeploymentBranchPolicyType - from .group_1143 import UserMigrationsPostBodyType as UserMigrationsPostBodyType + from .group_0051 import DependabotAlertPackageType as DependabotAlertPackageType + from .group_0077 import MarketplaceListingPlanType as MarketplaceListingPlanType + from .group_0080 import ApiOverviewPropDomainsType as ApiOverviewPropDomainsType + from .group_0094 import CodespacePropGitStatusType as CodespacePropGitStatusType + from .group_0104 import OrganizationInvitationType as OrganizationInvitationType + from .group_0136 import RepositoryRuleCreationType as RepositoryRuleCreationType + from .group_0136 import RepositoryRuleDeletionType as RepositoryRuleDeletionType + from .group_0190 import SimpleCommitPropAuthorType as SimpleCommitPropAuthorType + from .group_0210 import CommitPropParentsItemsType as CommitPropParentsItemsType + from .group_0217 import CheckRunPropCheckSuiteType as CheckRunPropCheckSuiteType + from .group_0221 import CodeScanningAlertItemsType as CodeScanningAlertItemsType + from .group_0278 import GitCommitPropCommitterType as GitCommitPropCommitterType + from .group_0293 import DemilestonedIssueEventType as DemilestonedIssueEventType + from .group_0307 import TimelineCommittedEventType as TimelineCommittedEventType + from .group_0328 import PullRequestMergeResultType as PullRequestMergeResultType + from .group_0332 import ReviewCommentPropLinksType as ReviewCommentPropLinksType + from .group_0361 import RepositorySubscriptionType as RepositorySubscriptionType + from .group_0379 import ScimEnterpriseUserListType as ScimEnterpriseUserListType + from .group_0383 import ScimUserPropRolesItemsType as ScimUserPropRolesItemsType + from .group_0386 import CommitSearchResultItemType as CommitSearchResultItemType + from .group_0395 import CodespaceExportDetailsType as CodespaceExportDetailsType + from .group_0398 import GpgKeyPropSubkeysItemsType as GpgKeyPropSubkeysItemsType + from .group_0418 import WebhooksReviewersItemsType as WebhooksReviewersItemsType + from .group_0419 import WebhooksWorkflowJobRunType as WebhooksWorkflowJobRunType + from .group_0421 import WebhooksAnswerPropUserType as WebhooksAnswerPropUserType + from .group_0422 import DiscussionPropCategoryType as DiscussionPropCategoryType + from .group_0431 import WebhooksIssue2PropUserType as WebhooksIssue2PropUserType + from .group_0435 import WebhooksTeamPropParentType as WebhooksTeamPropParentType + from .group_0444 import WebhooksProjectChangesType as WebhooksProjectChangesType + from .group_0446 import ProjectsV2StatusUpdateType as ProjectsV2StatusUpdateType + from .group_0451 import WebhooksReviewPropUserType as WebhooksReviewPropUserType + from .group_0472 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType + from .group_0600 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType + from .group_0614 import WebhookMembershipAddedType as WebhookMembershipAddedType + from .group_0619 import WebhookMilestoneClosedType as WebhookMilestoneClosedType + from .group_0622 import WebhookMilestoneEditedType as WebhookMilestoneEditedType + from .group_0623 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType + from .group_0624 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType + from .group_0645 import WebhookPingFormEncodedType as WebhookPingFormEncodedType + from .group_0661 import WebhookProjectReopenedType as WebhookProjectReopenedType + from .group_0721 import WebhookReleaseReleasedType as WebhookReleaseReleasedType + from .group_0749 import SecretScanningLocationType as SecretScanningLocationType + from .group_0794 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType + from .group_0806 import RunnerGroupsEnterpriseType as RunnerGroupsEnterpriseType + from .group_0827 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType + from .group_1033 import DeploymentBranchPolicyType as DeploymentBranchPolicyType + from .group_1162 import UserMigrationsPostBodyType as UserMigrationsPostBodyType from .group_0011 import HookDeliveryPropRequestType as HookDeliveryPropRequestType from .group_0025 import ServerStatisticsActionsType as ServerStatisticsActionsType - from .group_0095 import CredentialAuthorizationType as CredentialAuthorizationType - from .group_0153 import RepositoryRuleWorkflowsType as RepositoryRuleWorkflowsType - from .group_0177 import ArtifactPropWorkflowRunType as ArtifactPropWorkflowRunType - from .group_0200 import BranchRestrictionPolicyType as BranchRestrictionPolicyType - from .group_0251 import ContentSymlinkPropLinksType as ContentSymlinkPropLinksType - from .group_0258 import DependencyGraphSpdxSbomType as DependencyGraphSpdxSbomType - from .group_0270 import CustomDeploymentRuleAppType as CustomDeploymentRuleAppType - from .group_0311 import LicenseContentPropLinksType as LicenseContentPropLinksType - from .group_0368 import ScimEnterpriseGroupListType as ScimEnterpriseGroupListType - from .group_0372 import UserEmailsResponseItemsType as UserEmailsResponseItemsType - from .group_0379 import ScimUserPropEmailsItemsType as ScimUserPropEmailsItemsType - from .group_0379 import ScimUserPropGroupsItemsType as ScimUserPropGroupsItemsType - from .group_0390 import CodespacesUserPublicKeyType as CodespacesUserPublicKeyType - from .group_0396 import UserMarketplacePurchaseType as UserMarketplacePurchaseType - from .group_0418 import DiscussionPropReactionsType as DiscussionPropReactionsType - from .group_0419 import WebhooksCommentPropUserType as WebhooksCommentPropUserType - from .group_0424 import WebhooksChangesPropBodyType as WebhooksChangesPropBodyType - from .group_0446 import WebhooksReviewPropLinksType as WebhooksReviewPropLinksType - from .group_0454 import WebhooksTeam1PropParentType as WebhooksTeam1PropParentType - from .group_0496 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType - from .group_0497 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType - from .group_0506 import WebhookDiscussionClosedType as WebhookDiscussionClosedType - from .group_0512 import WebhookDiscussionEditedType as WebhookDiscussionEditedType - from .group_0514 import WebhookDiscussionLockedType as WebhookDiscussionLockedType - from .group_0515 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType - from .group_0589 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType - from .group_0594 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType - from .group_0615 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType - from .group_0616 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType - from .group_0626 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType - from .group_0627 import WebhookPackagePublishedType as WebhookPackagePublishedType - from .group_0645 import WebhookProjectCardMovedType as WebhookProjectCardMovedType - from .group_0712 import WebhookReleasePublishedType as WebhookReleasePublishedType - from .group_0721 import WebhookRepositoryEditedType as WebhookRepositoryEditedType - from .group_0722 import WebhookRepositoryImportType as WebhookRepositoryImportType - from .group_0760 import WebhookStatusPropCommitType as WebhookStatusPropCommitType - from .group_0772 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType - from .group_0894 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType - from .group_0899 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType - from .group_0934 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType + from .group_0097 import CredentialAuthorizationType as CredentialAuthorizationType + from .group_0157 import RepositoryRuleWorkflowsType as RepositoryRuleWorkflowsType + from .group_0181 import ArtifactPropWorkflowRunType as ArtifactPropWorkflowRunType + from .group_0204 import BranchRestrictionPolicyType as BranchRestrictionPolicyType + from .group_0255 import ContentSymlinkPropLinksType as ContentSymlinkPropLinksType + from .group_0262 import DependencyGraphSpdxSbomType as DependencyGraphSpdxSbomType + from .group_0274 import CustomDeploymentRuleAppType as CustomDeploymentRuleAppType + from .group_0315 import LicenseContentPropLinksType as LicenseContentPropLinksType + from .group_0372 import ScimEnterpriseGroupListType as ScimEnterpriseGroupListType + from .group_0376 import UserEmailsResponseItemsType as UserEmailsResponseItemsType + from .group_0383 import ScimUserPropEmailsItemsType as ScimUserPropEmailsItemsType + from .group_0383 import ScimUserPropGroupsItemsType as ScimUserPropGroupsItemsType + from .group_0394 import CodespacesUserPublicKeyType as CodespacesUserPublicKeyType + from .group_0400 import UserMarketplacePurchaseType as UserMarketplacePurchaseType + from .group_0422 import DiscussionPropReactionsType as DiscussionPropReactionsType + from .group_0423 import WebhooksCommentPropUserType as WebhooksCommentPropUserType + from .group_0428 import WebhooksChangesPropBodyType as WebhooksChangesPropBodyType + from .group_0451 import WebhooksReviewPropLinksType as WebhooksReviewPropLinksType + from .group_0459 import WebhooksTeam1PropParentType as WebhooksTeam1PropParentType + from .group_0501 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType + from .group_0502 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType + from .group_0511 import WebhookDiscussionClosedType as WebhookDiscussionClosedType + from .group_0517 import WebhookDiscussionEditedType as WebhookDiscussionEditedType + from .group_0519 import WebhookDiscussionLockedType as WebhookDiscussionLockedType + from .group_0520 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType + from .group_0594 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType + from .group_0599 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType + from .group_0620 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType + from .group_0621 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType + from .group_0631 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType + from .group_0632 import WebhookPackagePublishedType as WebhookPackagePublishedType + from .group_0650 import WebhookProjectCardMovedType as WebhookProjectCardMovedType + from .group_0720 import WebhookReleasePublishedType as WebhookReleasePublishedType + from .group_0729 import WebhookRepositoryEditedType as WebhookRepositoryEditedType + from .group_0730 import WebhookRepositoryImportType as WebhookRepositoryImportType + from .group_0768 import WebhookStatusPropCommitType as WebhookStatusPropCommitType + from .group_0780 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType + from .group_0910 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType + from .group_0915 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType + from .group_0950 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType from .group_0002 import VulnerabilityPropPackageType as VulnerabilityPropPackageType from .group_0011 import HookDeliveryPropResponseType as HookDeliveryPropResponseType from .group_0024 import ClassroomAssignmentGradeType as ClassroomAssignmentGradeType from .group_0025 import ServerStatisticsPackagesType as ServerStatisticsPackagesType from .group_0041 import CodeScanningAnalysisToolType as CodeScanningAnalysisToolType - from .group_0069 import GistSimplePropForksItemsType as GistSimplePropForksItemsType - from .group_0083 import OrganizationFullPropPlanType as OrganizationFullPropPlanType - from .group_0105 import InteractionLimitResponseType as InteractionLimitResponseType - from .group_0161 import RepositoryAdvisoryCreditType as RepositoryAdvisoryCreditType - from .group_0164 import TeamOrganizationPropPlanType as TeamOrganizationPropPlanType - from .group_0207 import CommitPropCommitPropTreeType as CommitPropCommitPropTreeType - from .group_0228 import CodeScanningDefaultSetupType as CodeScanningDefaultSetupType - from .group_0232 import CodeScanningSarifsStatusType as CodeScanningSarifsStatusType - from .group_0257 import DependencyGraphDiffItemsType as DependencyGraphDiffItemsType - from .group_0271 import DeploymentProtectionRuleType as DeploymentProtectionRuleType - from .group_0295 import AddedToProjectIssueEventType as AddedToProjectIssueEventType - from .group_0305 import PullRequestReviewCommentType as PullRequestReviewCommentType - from .group_0325 import PullRequestReviewRequestType as PullRequestReviewRequestType - from .group_0350 import RepositoryAdvisoryCreateType as RepositoryAdvisoryCreateType - from .group_0352 import RepositoryAdvisoryUpdateType as RepositoryAdvisoryUpdateType - from .group_0381 import SearchCodeGetResponse200Type as SearchCodeGetResponse200Type - from .group_0443 import PullRequestWebhookAllof1Type as PullRequestWebhookAllof1Type - from .group_0451 import WebhooksSecurityAdvisoryType as WebhooksSecurityAdvisoryType - from .group_0453 import WebhooksChanges8PropTierType as WebhooksChanges8PropTierType - from .group_0465 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType - from .group_0498 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType - from .group_0510 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType - from .group_0511 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType - from .group_0513 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType - from .group_0593 import WebhookIssuesTransferredType as WebhookIssuesTransferredType - from .group_0610 import WebhookMembershipRemovedType as WebhookMembershipRemovedType - from .group_0620 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType - from .group_0644 import WebhookProjectCardEditedType as WebhookProjectCardEditedType - from .group_0673 import WebhookPullRequestClosedType as WebhookPullRequestClosedType - from .group_0677 import WebhookPullRequestEditedType as WebhookPullRequestEditedType - from .group_0680 import WebhookPullRequestLockedType as WebhookPullRequestLockedType - from .group_0682 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType - from .group_0718 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType - from .group_0719 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType - from .group_0725 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType - from .group_0754 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType - from .group_0779 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType - from .group_1135 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type + from .group_0072 import GistSimplePropForksItemsType as GistSimplePropForksItemsType + from .group_0086 import OrganizationFullPropPlanType as OrganizationFullPropPlanType + from .group_0107 import InteractionLimitResponseType as InteractionLimitResponseType + from .group_0165 import RepositoryAdvisoryCreditType as RepositoryAdvisoryCreditType + from .group_0168 import TeamOrganizationPropPlanType as TeamOrganizationPropPlanType + from .group_0211 import CommitPropCommitPropTreeType as CommitPropCommitPropTreeType + from .group_0232 import CodeScanningDefaultSetupType as CodeScanningDefaultSetupType + from .group_0236 import CodeScanningSarifsStatusType as CodeScanningSarifsStatusType + from .group_0261 import DependencyGraphDiffItemsType as DependencyGraphDiffItemsType + from .group_0275 import DeploymentProtectionRuleType as DeploymentProtectionRuleType + from .group_0299 import AddedToProjectIssueEventType as AddedToProjectIssueEventType + from .group_0309 import PullRequestReviewCommentType as PullRequestReviewCommentType + from .group_0329 import PullRequestReviewRequestType as PullRequestReviewRequestType + from .group_0354 import RepositoryAdvisoryCreateType as RepositoryAdvisoryCreateType + from .group_0356 import RepositoryAdvisoryUpdateType as RepositoryAdvisoryUpdateType + from .group_0385 import SearchCodeGetResponse200Type as SearchCodeGetResponse200Type + from .group_0448 import PullRequestWebhookAllof1Type as PullRequestWebhookAllof1Type + from .group_0456 import WebhooksSecurityAdvisoryType as WebhooksSecurityAdvisoryType + from .group_0458 import WebhooksChanges8PropTierType as WebhooksChanges8PropTierType + from .group_0470 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType + from .group_0503 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType + from .group_0515 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType + from .group_0516 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType + from .group_0518 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType + from .group_0598 import WebhookIssuesTransferredType as WebhookIssuesTransferredType + from .group_0615 import WebhookMembershipRemovedType as WebhookMembershipRemovedType + from .group_0625 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType + from .group_0649 import WebhookProjectCardEditedType as WebhookProjectCardEditedType + from .group_0681 import WebhookPullRequestClosedType as WebhookPullRequestClosedType + from .group_0685 import WebhookPullRequestEditedType as WebhookPullRequestEditedType + from .group_0688 import WebhookPullRequestLockedType as WebhookPullRequestLockedType + from .group_0690 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType + from .group_0726 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType + from .group_0727 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType + from .group_0733 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType + from .group_0762 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType + from .group_0787 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType + from .group_1154 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type from .group_0017 import ( RepositoryPropPermissionsType as RepositoryPropPermissionsType, ) @@ -574,310 +579,316 @@ from .group_0042 import ( CodeScanningAlertLocationType as CodeScanningAlertLocationType, ) - from .group_0138 import ( + from .group_0090 import ( + CodeSecurityConfigurationType as CodeSecurityConfigurationType, + ) + from .group_0142 import ( RepositoryRulePullRequestType as RepositoryRulePullRequestType, ) - from .group_0186 import ( + from .group_0190 import ( SimpleCommitPropCommitterType as SimpleCommitPropCommitterType, ) - from .group_0194 import ( + from .group_0198 import ( WorkflowUsagePropBillableType as WorkflowUsagePropBillableType, ) - from .group_0231 import ( + from .group_0235 import ( CodeScanningSarifsReceiptType as CodeScanningSarifsReceiptType, ) - from .group_0242 import ( + from .group_0246 import ( PullRequestSimplePropBaseType as PullRequestSimplePropBaseType, ) - from .group_0242 import ( + from .group_0246 import ( PullRequestSimplePropHeadType as PullRequestSimplePropHeadType, ) - from .group_0246 import ( + from .group_0250 import ( CommunityProfilePropFilesType as CommunityProfilePropFilesType, ) - from .group_0252 import ( + from .group_0256 import ( ContentSubmodulePropLinksType as ContentSubmodulePropLinksType, ) - from .group_0274 import ( + from .group_0278 import ( GitCommitPropParentsItemsType as GitCommitPropParentsItemsType, ) - from .group_0274 import ( + from .group_0278 import ( GitCommitPropVerificationType as GitCommitPropVerificationType, ) - from .group_0283 import ( + from .group_0287 import ( IssueEventDismissedReviewType as IssueEventDismissedReviewType, ) - from .group_0291 import ( + from .group_0295 import ( ReviewRequestedIssueEventType as ReviewRequestedIssueEventType, ) - from .group_0293 import ( + from .group_0297 import ( ReviewDismissedIssueEventType as ReviewDismissedIssueEventType, ) - from .group_0332 import ( + from .group_0336 import ( RepositoryRuleRulesetInfoType as RepositoryRuleRulesetInfoType, ) - from .group_0388 import ( + from .group_0392 import ( SearchUsersGetResponse200Type as SearchUsersGetResponse200Type, ) - from .group_0421 import ( + from .group_0425 import ( WebhooksRepositoriesItemsType as WebhooksRepositoriesItemsType, ) - from .group_0425 import ( + from .group_0429 import ( WebhooksIssuePropAssigneeType as WebhooksIssuePropAssigneeType, ) - from .group_0447 import ( + from .group_0452 import ( WebhooksReleasePropAuthorType as WebhooksReleasePropAuthorType, ) - from .group_0504 import ( + from .group_0509 import ( WebhookDiscussionAnsweredType as WebhookDiscussionAnsweredType, ) - from .group_0516 import ( + from .group_0521 import ( WebhookDiscussionReopenedType as WebhookDiscussionReopenedType, ) - from .group_0521 import ( + from .group_0526 import ( WebhookDiscussionUnlockedType as WebhookDiscussionUnlockedType, ) - from .group_0522 import ( + from .group_0527 import ( WebhookDiscussionUnpinnedType as WebhookDiscussionUnpinnedType, ) - from .group_0561 import ( + from .group_0566 import ( WebhookIssueCommentEditedType as WebhookIssueCommentEditedType, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedType as WebhookIssuesDemilestonedType, ) - from .group_0633 import ( + from .group_0638 import ( WebhookPageBuildPropBuildType as WebhookPageBuildPropBuildType, ) - from .group_0642 import ( + from .group_0647 import ( WebhookProjectCardCreatedType as WebhookProjectCardCreatedType, ) - from .group_0643 import ( + from .group_0648 import ( WebhookProjectCardDeletedType as WebhookProjectCardDeletedType, ) - from .group_0652 import ( + from .group_0657 import ( WebhookProjectColumnMovedType as WebhookProjectColumnMovedType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledType as WebhookPullRequestLabeledType, ) - from .group_0701 import ( + from .group_0709 import ( WebhookPushPropHeadCommitType as WebhookPushPropHeadCommitType, ) - from .group_0701 import ( + from .group_0709 import ( WebhookPushPropRepositoryType as WebhookPushPropRepositoryType, ) - from .group_0711 import ( + from .group_0719 import ( WebhookReleasePrereleasedType as WebhookReleasePrereleasedType, ) - from .group_0714 import ( + from .group_0722 import ( WebhookReleaseUnpublishedType as WebhookReleaseUnpublishedType, ) - from .group_0717 import ( + from .group_0725 import ( WebhookRepositoryArchivedType as WebhookRepositoryArchivedType, ) - from .group_0753 import ( + from .group_0761 import ( WebhookSponsorshipCreatedType as WebhookSponsorshipCreatedType, ) - from .group_0780 import ( + from .group_0788 import ( WebhookWorkflowJobWaitingType as WebhookWorkflowJobWaitingType, ) - from .group_0819 import ( + from .group_0828 import ( GistsGistIdGetResponse403Type as GistsGistIdGetResponse403Type, ) - from .group_0846 import ( + from .group_0855 import ( OrganizationActionsSecretType as OrganizationActionsSecretType, ) - from .group_0884 import ( + from .group_0900 import ( OrgsOrgMigrationsPostBodyType as OrgsOrgMigrationsPostBodyType, ) from .group_0005 import ( IntegrationPropPermissionsType as IntegrationPropPermissionsType, ) - from .group_0063 import ( + from .group_0066 import ( IssuePropLabelsItemsOneof1Type as IssuePropLabelsItemsOneof1Type, ) - from .group_0071 import ( + from .group_0074 import ( GistCommitPropChangeStatusType as GistCommitPropChangeStatusType, ) - from .group_0091 import ( + from .group_0096 import ( CopilotOrganizationDetailsType as CopilotOrganizationDetailsType, ) - from .group_0111 import ( + from .group_0115 import ( PackageVersionPropMetadataType as PackageVersionPropMetadataType, ) - from .group_0129 import ( + from .group_0133 import ( OrgRulesetConditionsOneof0Type as OrgRulesetConditionsOneof0Type, ) - from .group_0130 import ( + from .group_0134 import ( OrgRulesetConditionsOneof1Type as OrgRulesetConditionsOneof1Type, ) - from .group_0131 import ( + from .group_0135 import ( OrgRulesetConditionsOneof2Type as OrgRulesetConditionsOneof2Type, ) - from .group_0155 import ( + from .group_0159 import ( RepositoryRuleCodeScanningType as RepositoryRuleCodeScanningType, ) - from .group_0158 import ( + from .group_0162 import ( RepositoryRulesetPropLinksType as RepositoryRulesetPropLinksType, ) - from .group_0162 import ( + from .group_0166 import ( RepositoryAdvisoryPropCvssType as RepositoryAdvisoryPropCvssType, ) - from .group_0169 import ( + from .group_0173 import ( TeamProjectPropPermissionsType as TeamProjectPropPermissionsType, ) - from .group_0185 import ( + from .group_0189 import ( PullRequestMinimalPropBaseType as PullRequestMinimalPropBaseType, ) - from .group_0185 import ( + from .group_0189 import ( PullRequestMinimalPropHeadType as PullRequestMinimalPropHeadType, ) - from .group_0221 import ( + from .group_0225 import ( CodeScanningCodeqlDatabaseType as CodeScanningCodeqlDatabaseType, ) - from .group_0243 import ( + from .group_0247 import ( PullRequestSimplePropLinksType as PullRequestSimplePropLinksType, ) - from .group_0284 import ( + from .group_0288 import ( LabeledIssueEventPropLabelType as LabeledIssueEventPropLabelType, ) - from .group_0305 import ( + from .group_0309 import ( TimelineLineCommentedEventType as TimelineLineCommentedEventType, ) - from .group_0306 import ( + from .group_0310 import ( TimelineAssignedIssueEventType as TimelineAssignedIssueEventType, ) - from .group_0318 import ( + from .group_0322 import ( PagesHealthCheckPropDomainType as PagesHealthCheckPropDomainType, ) - from .group_0320 import ( + from .group_0324 import ( PullRequestPropLabelsItemsType as PullRequestPropLabelsItemsType, ) - from .group_0326 import ( + from .group_0330 import ( PullRequestReviewPropLinksType as PullRequestReviewPropLinksType, ) - from .group_0375 import ( + from .group_0379 import ( ScimEnterpriseUserResponseType as ScimEnterpriseUserResponseType, ) - from .group_0384 import ( + from .group_0388 import ( SearchIssuesGetResponse200Type as SearchIssuesGetResponse200Type, ) - from .group_0385 import ( + from .group_0389 import ( SearchLabelsGetResponse200Type as SearchLabelsGetResponse200Type, ) - from .group_0387 import ( + from .group_0391 import ( SearchTopicsGetResponse200Type as SearchTopicsGetResponse200Type, ) - from .group_0400 import ( + from .group_0404 import ( HovercardPropContextsItemsType as HovercardPropContextsItemsType, ) - from .group_0404 import ( + from .group_0408 import ( OrganizationSimpleWebhooksType as OrganizationSimpleWebhooksType, ) - from .group_0425 import ( + from .group_0429 import ( WebhooksIssuePropMilestoneType as WebhooksIssuePropMilestoneType, ) - from .group_0425 import ( + from .group_0429 import ( WebhooksIssuePropReactionsType as WebhooksIssuePropReactionsType, ) - from .group_0427 import ( + from .group_0431 import ( WebhooksIssue2PropAssigneeType as WebhooksIssue2PropAssigneeType, ) - from .group_0434 import ( + from .group_0438 import ( WebhooksMembershipPropUserType as WebhooksMembershipPropUserType, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestType as PersonalAccessTokenRequestType, ) - from .group_0437 import ( + from .group_0441 import ( WebhooksProjectPropCreatorType as WebhooksProjectPropCreatorType, ) - from .group_0448 import ( + from .group_0453 import ( WebhooksRelease1PropAuthorType as WebhooksRelease1PropAuthorType, ) - from .group_0449 import ( + from .group_0454 import ( WebhooksAlertPropDismisserType as WebhooksAlertPropDismisserType, ) - from .group_0450 import ( + from .group_0455 import ( SecretScanningAlertWebhookType as SecretScanningAlertWebhookType, ) - from .group_0471 import ( + from .group_0476 import ( WebhookCheckRunRerequestedType as WebhookCheckRunRerequestedType, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedType as WebhookCheckSuiteCompletedType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedType as WebhookCheckSuiteRequestedType, ) - from .group_0520 import ( + from .group_0525 import ( WebhookDiscussionUnlabeledType as WebhookDiscussionUnlabeledType, ) - from .group_0530 import ( + from .group_0535 import ( WebhookInstallationCreatedType as WebhookInstallationCreatedType, ) - from .group_0531 import ( + from .group_0536 import ( WebhookInstallationDeletedType as WebhookInstallationDeletedType, ) - from .group_0535 import ( + from .group_0540 import ( WebhookInstallationSuspendType as WebhookInstallationSuspendType, ) - from .group_0538 import ( + from .group_0543 import ( WebhookIssueCommentCreatedType as WebhookIssueCommentCreatedType, ) - from .group_0550 import ( + from .group_0555 import ( WebhookIssueCommentDeletedType as WebhookIssueCommentDeletedType, ) - from .group_0612 import ( + from .group_0617 import ( WebhookMergeGroupDestroyedType as WebhookMergeGroupDestroyedType, ) - from .group_0613 import ( + from .group_0618 import ( WebhookMetaDeletedPropHookType as WebhookMetaDeletedPropHookType, ) - from .group_0621 import ( + from .group_0626 import ( WebhookOrganizationDeletedType as WebhookOrganizationDeletedType, ) - from .group_0625 import ( + from .group_0630 import ( WebhookOrganizationRenamedType as WebhookOrganizationRenamedType, ) - from .group_0651 import ( + from .group_0656 import ( WebhookProjectColumnEditedType as WebhookProjectColumnEditedType, ) from .group_0670 import ( + ProjectsV2IterationSettingType as ProjectsV2IterationSettingType, + ) + from .group_0678 import ( WebhookPullRequestAssignedType as WebhookPullRequestAssignedType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedType as WebhookPullRequestDequeuedType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedType as WebhookPullRequestEnqueuedType, ) - from .group_0684 import ( + from .group_0692 import ( WebhookPullRequestReopenedType as WebhookPullRequestReopenedType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedType as WebhookPullRequestUnlockedType, ) - from .group_0749 import ( + from .group_0757 import ( WebhookSecurityAndAnalysisType as WebhookSecurityAndAnalysisType, ) - from .group_0881 import ( + from .group_0897 import ( OrgsOrgInvitationsPostBodyType as OrgsOrgInvitationsPostBodyType, ) - from .group_0929 import ( + from .group_0945 import ( ProjectsProjectIdPatchBodyType as ProjectsProjectIdPatchBodyType, ) - from .group_1053 import ( + from .group_1072 import ( ReposOwnerRepoKeysPostBodyType as ReposOwnerRepoKeysPostBodyType, ) - from .group_1136 import ( + from .group_1155 import ( UserEmailsDeleteBodyOneof0Type as UserEmailsDeleteBodyOneof0Type, ) - from .group_1146 import ( + from .group_1165 import ( UserSocialAccountsPostBodyType as UserSocialAccountsPostBodyType, ) - from .group_1148 import ( + from .group_1167 import ( UserSshSigningKeysPostBodyType as UserSshSigningKeysPostBodyType, ) from .group_0002 import ( @@ -889,160 +900,160 @@ from .group_0023 import ( ClassroomAcceptedAssignmentType as ClassroomAcceptedAssignmentType, ) - from .group_0068 import ( + from .group_0071 import ( GistHistoryPropChangeStatusType as GistHistoryPropChangeStatusType, ) - from .group_0100 import ( + from .group_0102 import ( ExternalGroupPropTeamsItemsType as ExternalGroupPropTeamsItemsType, ) - from .group_0117 import ( + from .group_0121 import ( OrgRepoCustomPropertyValuesType as OrgRepoCustomPropertyValuesType, ) - from .group_0121 import ( + from .group_0125 import ( RepositoryRulesetConditionsType as RepositoryRulesetConditionsType, ) - from .group_0163 import ( + from .group_0167 import ( GroupMappingPropGroupsItemsType as GroupMappingPropGroupsItemsType, ) - from .group_0192 import ( + from .group_0196 import ( DeploymentPropPayloadOneof0Type as DeploymentPropPayloadOneof0Type, ) - from .group_0197 import ( + from .group_0201 import ( CheckAutomatedSecurityFixesType as CheckAutomatedSecurityFixesType, ) - from .group_0224 import ( + from .group_0228 import ( CodeScanningVariantAnalysisType as CodeScanningVariantAnalysisType, ) - from .group_0236 import ( + from .group_0240 import ( CollaboratorPropPermissionsType as CollaboratorPropPermissionsType, ) - from .group_0248 import ( + from .group_0252 import ( ContentTreePropEntriesItemsType as ContentTreePropEntriesItemsType, ) - from .group_0290 import ( + from .group_0294 import ( RenamedIssueEventPropRenameType as RenamedIssueEventPropRenameType, ) - from .group_0320 import ( + from .group_0324 import ( PullRequestPropHeadPropRepoType as PullRequestPropHeadPropRepoType, ) - from .group_0320 import ( + from .group_0324 import ( PullRequestPropHeadPropUserType as PullRequestPropHeadPropUserType, ) - from .group_0321 import ( + from .group_0325 import ( PullRequestPropBasePropUserType as PullRequestPropBasePropUserType, ) - from .group_0322 import ( + from .group_0326 import ( PullRequestPropBasePropRepoType as PullRequestPropBasePropRepoType, ) - from .group_0368 import ( + from .group_0372 import ( ScimEnterpriseGroupResponseType as ScimEnterpriseGroupResponseType, ) - from .group_0379 import ( + from .group_0383 import ( ScimUserPropOperationsItemsType as ScimUserPropOperationsItemsType, ) - from .group_0382 import ( + from .group_0386 import ( SearchCommitsGetResponse200Type as SearchCommitsGetResponse200Type, ) - from .group_0392 import ( + from .group_0396 import ( CodespaceWithFullRepositoryType as CodespaceWithFullRepositoryType, ) - from .group_0417 import ( + from .group_0421 import ( WebhooksAnswerPropReactionsType as WebhooksAnswerPropReactionsType, ) - from .group_0427 import ( + from .group_0431 import ( WebhooksIssue2PropMilestoneType as WebhooksIssue2PropMilestoneType, ) - from .group_0427 import ( + from .group_0431 import ( WebhooksIssue2PropReactionsType as WebhooksIssue2PropReactionsType, ) - from .group_0429 import ( + from .group_0433 import ( WebhooksMarketplacePurchaseType as WebhooksMarketplacePurchaseType, ) - from .group_0452 import ( + from .group_0457 import ( WebhooksSponsorshipPropTierType as WebhooksSponsorshipPropTierType, ) - from .group_0482 import ( + from .group_0487 import ( WebhookCommitCommentCreatedType as WebhookCommitCommentCreatedType, ) - from .group_0493 import ( + from .group_0498 import ( WebhookDependabotAlertFixedType as WebhookDependabotAlertFixedType, ) - from .group_0519 import ( + from .group_0524 import ( WebhookDiscussionUnansweredType as WebhookDiscussionUnansweredType, ) - from .group_0525 import ( + from .group_0530 import ( WebhookForkPropForkeeAllof0Type as WebhookForkPropForkeeAllof0Type, ) - from .group_0527 import ( + from .group_0532 import ( WebhookForkPropForkeeAllof1Type as WebhookForkPropForkeeAllof1Type, ) - from .group_0529 import ( + from .group_0534 import ( WebhookGollumPropPagesItemsType as WebhookGollumPropPagesItemsType, ) - from .group_0641 import ( + from .group_0646 import ( WebhookProjectCardConvertedType as WebhookProjectCardConvertedType, ) - from .group_0649 import ( + from .group_0654 import ( WebhookProjectColumnCreatedType as WebhookProjectColumnCreatedType, ) - from .group_0650 import ( + from .group_0655 import ( WebhookProjectColumnDeletedType as WebhookProjectColumnDeletedType, ) - from .group_0665 import ( + from .group_0670 import ( WebhookProjectsV2ItemEditedType as WebhookProjectsV2ItemEditedType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledType as WebhookPullRequestUnlabeledType, ) - from .group_0701 import ( + from .group_0709 import ( WebhookPushPropCommitsItemsType as WebhookPushPropCommitsItemsType, ) - from .group_0723 import ( + from .group_0731 import ( WebhookRepositoryPrivatizedType as WebhookRepositoryPrivatizedType, ) - from .group_0724 import ( + from .group_0732 import ( WebhookRepositoryPublicizedType as WebhookRepositoryPublicizedType, ) - from .group_0735 import ( + from .group_0743 import ( WebhookRepositoryUnarchivedType as WebhookRepositoryUnarchivedType, ) - from .group_0752 import ( + from .group_0760 import ( WebhookSponsorshipCancelledType as WebhookSponsorshipCancelledType, ) - from .group_0773 import ( + from .group_0781 import ( WebhookWorkflowJobCompletedType as WebhookWorkflowJobCompletedType, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedType as WebhookWorkflowRunCompletedType, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedType as WebhookWorkflowRunRequestedType, ) - from .group_0821 import ( + from .group_0830 import ( GistsGistIdCommentsPostBodyType as GistsGistIdCommentsPostBodyType, ) - from .group_0827 import ( + from .group_0836 import ( NotificationsPutResponse202Type as NotificationsPutResponse202Type, ) - from .group_0850 import ( + from .group_0859 import ( OrganizationActionsVariableType as OrganizationActionsVariableType, ) - from .group_0877 import ( + from .group_0893 import ( OrgsOrgHooksHookIdPatchBodyType as OrgsOrgHooksHookIdPatchBodyType, ) - from .group_1022 import ( + from .group_1041 import ( ReposOwnerRepoForksPostBodyType as ReposOwnerRepoForksPostBodyType, ) - from .group_1029 import ( + from .group_1048 import ( ReposOwnerRepoHooksPostBodyType as ReposOwnerRepoHooksPostBodyType, ) - from .group_1032 import ( + from .group_1051 import ( ReposOwnerRepoImportPutBodyType as ReposOwnerRepoImportPutBodyType, ) - from .group_1075 import ( + from .group_1094 import ( ReposOwnerRepoPullsPostBodyType as ReposOwnerRepoPullsPostBodyType, ) - from .group_1105 import ( + from .group_1124 import ( ReposOwnerRepoTopicsPutBodyType as ReposOwnerRepoTopicsPutBodyType, ) from .group_0028 import ( @@ -1057,334 +1068,337 @@ from .group_0040 import ( CodeScanningAlertRuleSummaryType as CodeScanningAlertRuleSummaryType, ) - from .group_0079 import ( + from .group_0082 import ( MinimalRepositoryPropLicenseType as MinimalRepositoryPropLicenseType, ) - from .group_0107 import ( + from .group_0109 import ( OrgMembershipPropPermissionsType as OrgMembershipPropPermissionsType, ) - from .group_0120 import ( + from .group_0124 import ( RepositoryRulesetBypassActorType as RepositoryRulesetBypassActorType, ) - from .group_0132 import ( + from .group_0136 import ( RepositoryRuleNonFastForwardType as RepositoryRuleNonFastForwardType, ) - from .group_0150 import ( + from .group_0154 import ( RepositoryRuleTagNamePatternType as RepositoryRuleTagNamePatternType, ) - from .group_0183 import ( + from .group_0187 import ( ActionsRepositoryPermissionsType as ActionsRepositoryPermissionsType, ) - from .group_0193 import ( + from .group_0197 import ( WorkflowRunUsagePropBillableType as WorkflowRunUsagePropBillableType, ) - from .group_0201 import ( + from .group_0205 import ( ProtectedBranchAdminEnforcedType as ProtectedBranchAdminEnforcedType, ) - from .group_0220 import ( + from .group_0224 import ( CodeScanningAnalysisDeletionType as CodeScanningAnalysisDeletionType, ) - from .group_0237 import ( + from .group_0241 import ( TimelineCommitCommentedEventType as TimelineCommitCommentedEventType, ) - from .group_0253 import ( + from .group_0257 import ( FileCommitPropCommitPropTreeType as FileCommitPropCommitPropTreeType, ) - from .group_0285 import ( + from .group_0289 import ( UnlabeledIssueEventPropLabelType as UnlabeledIssueEventPropLabelType, ) - from .group_0297 import ( + from .group_0301 import ( RemovedFromProjectIssueEventType as RemovedFromProjectIssueEventType, ) - from .group_0301 import ( + from .group_0305 import ( TimelineCrossReferencedEventType as TimelineCrossReferencedEventType, ) - from .group_0307 import ( + from .group_0311 import ( TimelineUnassignedIssueEventType as TimelineUnassignedIssueEventType, ) - from .group_0333 import ( + from .group_0337 import ( RepositoryRuleDetailedOneof0Type as RepositoryRuleDetailedOneof0Type, ) - from .group_0334 import ( + from .group_0338 import ( RepositoryRuleDetailedOneof1Type as RepositoryRuleDetailedOneof1Type, ) - from .group_0335 import ( + from .group_0339 import ( RepositoryRuleDetailedOneof2Type as RepositoryRuleDetailedOneof2Type, ) - from .group_0336 import ( + from .group_0340 import ( RepositoryRuleDetailedOneof3Type as RepositoryRuleDetailedOneof3Type, ) - from .group_0337 import ( + from .group_0341 import ( RepositoryRuleDetailedOneof4Type as RepositoryRuleDetailedOneof4Type, ) - from .group_0338 import ( + from .group_0342 import ( RepositoryRuleDetailedOneof5Type as RepositoryRuleDetailedOneof5Type, ) - from .group_0339 import ( + from .group_0343 import ( RepositoryRuleDetailedOneof6Type as RepositoryRuleDetailedOneof6Type, ) - from .group_0340 import ( + from .group_0344 import ( RepositoryRuleDetailedOneof7Type as RepositoryRuleDetailedOneof7Type, ) - from .group_0341 import ( + from .group_0345 import ( RepositoryRuleDetailedOneof8Type as RepositoryRuleDetailedOneof8Type, ) - from .group_0342 import ( + from .group_0346 import ( RepositoryRuleDetailedOneof9Type as RepositoryRuleDetailedOneof9Type, ) - from .group_0380 import ( + from .group_0384 import ( SearchResultTextMatchesItemsType as SearchResultTextMatchesItemsType, ) - from .group_0411 import ( + from .group_0415 import ( CheckRunWithSimpleCheckSuiteType as CheckRunWithSimpleCheckSuiteType, ) - from .group_0418 import ( + from .group_0422 import ( DiscussionPropAnswerChosenByType as DiscussionPropAnswerChosenByType, ) - from .group_0419 import ( + from .group_0423 import ( WebhooksCommentPropReactionsType as WebhooksCommentPropReactionsType, ) - from .group_0423 import ( + from .group_0427 import ( WebhooksIssueCommentPropUserType as WebhooksIssueCommentPropUserType, ) - from .group_0425 import ( + from .group_0429 import ( WebhooksIssuePropLabelsItemsType as WebhooksIssuePropLabelsItemsType, ) - from .group_0425 import ( + from .group_0429 import ( WebhooksIssuePropPullRequestType as WebhooksIssuePropPullRequestType, ) - from .group_0426 import ( + from .group_0430 import ( WebhooksMilestonePropCreatorType as WebhooksMilestonePropCreatorType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropBaseType as WebhooksPullRequest5PropBaseType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropHeadType as WebhooksPullRequest5PropHeadType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropUserType as WebhooksPullRequest5PropUserType, ) - from .group_0447 import ( + from .group_0452 import ( WebhooksReleasePropReactionsType as WebhooksReleasePropReactionsType, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedType as WebhookCheckSuiteRerequestedType, ) - from .group_0484 import ( + from .group_0489 import ( WebhookCustomPropertyCreatedType as WebhookCustomPropertyCreatedType, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCustomPropertyDeletedType as WebhookCustomPropertyDeletedType, ) - from .group_0486 import ( + from .group_0491 import ( WebhookCustomPropertyUpdatedType as WebhookCustomPropertyUpdatedType, ) - from .group_0517 import ( + from .group_0522 import ( WebhookDiscussionTransferredType as WebhookDiscussionTransferredType, ) - from .group_0537 import ( + from .group_0542 import ( WebhookInstallationUnsuspendType as WebhookInstallationUnsuspendType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookIssuesClosedPropIssueType as WebhookIssuesClosedPropIssueType, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssueType as WebhookIssuesEditedPropIssueType, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssueType as WebhookIssuesLockedPropIssueType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssueType as WebhookIssuesOpenedPropIssueType, ) - from .group_0663 import ( + from .group_0668 import ( WebhookProjectsV2ItemCreatedType as WebhookProjectsV2ItemCreatedType, ) - from .group_0664 import ( + from .group_0669 import ( WebhookProjectsV2ItemDeletedType as WebhookProjectsV2ItemDeletedType, ) - from .group_0681 import ( + from .group_0670 import ( + ProjectsV2SingleSelectOptionType as ProjectsV2SingleSelectOptionType, + ) + from .group_0689 import ( WebhookPullRequestMilestonedType as WebhookPullRequestMilestonedType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedType as WebhookPullRequestUnassignedType, ) - from .group_0734 import ( + from .group_0742 import ( WebhookRepositoryTransferredType as WebhookRepositoryTransferredType, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationCommitType as SecretScanningLocationCommitType, ) - from .group_0766 import ( + from .group_0774 import ( WebhookTeamAddedToRepositoryType as WebhookTeamAddedToRepositoryType, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropChangesType as WebhookTeamEditedPropChangesType, ) - from .group_0776 import ( + from .group_0784 import ( WebhookWorkflowJobInProgressType as WebhookWorkflowJobInProgressType, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressType as WebhookWorkflowRunInProgressType, ) - from .group_0872 import ( + from .group_0888 import ( OrganizationDependabotSecretType as OrganizationDependabotSecretType, ) - from .group_1038 import ( + from .group_1057 import ( ReposOwnerRepoIssuesPostBodyType as ReposOwnerRepoIssuesPostBodyType, ) - from .group_1054 import ( + from .group_1073 import ( ReposOwnerRepoLabelsPostBodyType as ReposOwnerRepoLabelsPostBodyType, ) - from .group_1057 import ( + from .group_1076 import ( ReposOwnerRepoMergesPostBodyType as ReposOwnerRepoMergesPostBodyType, ) - from .group_1124 import ( + from .group_1143 import ( UserCodespacesGetResponse200Type as UserCodespacesGetResponse200Type, ) - from .group_1125 import ( + from .group_1144 import ( UserCodespacesPostBodyOneof0Type as UserCodespacesPostBodyOneof0Type, ) - from .group_1126 import ( + from .group_1145 import ( UserCodespacesPostBodyOneof1Type as UserCodespacesPostBodyOneof1Type, ) - from .group_1134 import ( + from .group_1153 import ( UserEmailVisibilityPatchBodyType as UserEmailVisibilityPatchBodyType, ) - from .group_1147 import ( + from .group_1166 import ( UserSocialAccountsDeleteBodyType as UserSocialAccountsDeleteBodyType, ) - from .group_0051 import ( + from .group_0054 import ( DependabotAlertWithRepositoryType as DependabotAlertWithRepositoryType, ) - from .group_0068 import ( + from .group_0071 import ( GistSimplePropForkOfPropFilesType as GistSimplePropForkOfPropFilesType, ) - from .group_0100 import ( + from .group_0102 import ( ExternalGroupPropMembersItemsType as ExternalGroupPropMembersItemsType, ) - from .group_0101 import ( + from .group_0103 import ( ExternalGroupsPropGroupsItemsType as ExternalGroupsPropGroupsItemsType, ) - from .group_0119 import ( + from .group_0123 import ( FullRepositoryPropPermissionsType as FullRepositoryPropPermissionsType, ) - from .group_0170 import ( + from .group_0174 import ( TeamRepositoryPropPermissionsType as TeamRepositoryPropPermissionsType, ) - from .group_0173 import ( + from .group_0177 import ( ProjectCollaboratorPermissionType as ProjectCollaboratorPermissionType, ) - from .group_0208 import ( + from .group_0212 import ( BranchWithProtectionPropLinksType as BranchWithProtectionPropLinksType, ) - from .group_0209 import ( + from .group_0213 import ( ProtectedBranchPropLockBranchType as ProtectedBranchPropLockBranchType, ) - from .group_0256 import ( + from .group_0260 import ( DependabotAlertPropDependencyType as DependabotAlertPropDependencyType, ) - from .group_0280 import ( + from .group_0284 import ( ImportPropProjectChoicesItemsType as ImportPropProjectChoicesItemsType, ) - from .group_0318 import ( + from .group_0322 import ( PagesHealthCheckPropAltDomainType as PagesHealthCheckPropAltDomainType, ) - from .group_0343 import ( + from .group_0347 import ( RepositoryRuleDetailedOneof10Type as RepositoryRuleDetailedOneof10Type, ) - from .group_0344 import ( + from .group_0348 import ( RepositoryRuleDetailedOneof11Type as RepositoryRuleDetailedOneof11Type, ) - from .group_0345 import ( + from .group_0349 import ( RepositoryRuleDetailedOneof12Type as RepositoryRuleDetailedOneof12Type, ) - from .group_0346 import ( + from .group_0350 import ( RepositoryRuleDetailedOneof13Type as RepositoryRuleDetailedOneof13Type, ) - from .group_0347 import ( + from .group_0351 import ( RepositoryRuleDetailedOneof14Type as RepositoryRuleDetailedOneof14Type, ) - from .group_0348 import ( + from .group_0352 import ( RepositoryRuleDetailedOneof15Type as RepositoryRuleDetailedOneof15Type, ) - from .group_0366 import ( + from .group_0370 import ( GroupResponsePropMembersItemsType as GroupResponsePropMembersItemsType, ) - from .group_0427 import ( + from .group_0431 import ( WebhooksIssue2PropLabelsItemsType as WebhooksIssue2PropLabelsItemsType, ) - from .group_0427 import ( + from .group_0431 import ( WebhooksIssue2PropPullRequestType as WebhooksIssue2PropPullRequestType, ) - from .group_0433 import ( + from .group_0437 import ( WebhooksMilestone3PropCreatorType as WebhooksMilestone3PropCreatorType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLinksType as WebhooksPullRequest5PropLinksType, ) - from .group_0445 import ( + from .group_0450 import ( WebhooksReviewCommentPropUserType as WebhooksReviewCommentPropUserType, ) - from .group_0448 import ( + from .group_0453 import ( WebhooksRelease1PropReactionsType as WebhooksRelease1PropReactionsType, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCodeScanningAlertFixedType as WebhookCodeScanningAlertFixedType, ) - from .group_0491 import ( + from .group_0496 import ( WebhookDependabotAlertCreatedType as WebhookDependabotAlertCreatedType, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssueType as WebhookIssuesDeletedPropIssueType, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssueType as WebhookIssuesLabeledPropIssueType, ) - from .group_0600 import ( + from .group_0605 import ( WebhookLabelEditedPropChangesType as WebhookLabelEditedPropChangesType, ) - from .group_0606 import ( + from .group_0611 import ( WebhookMemberAddedPropChangesType as WebhookMemberAddedPropChangesType, ) - from .group_0639 import ( + from .group_0644 import ( WebhookPingPropHookPropConfigType as WebhookPingPropHookPropConfigType, ) - from .group_0661 import ( + from .group_0666 import ( WebhookProjectsV2ItemArchivedType as WebhookProjectsV2ItemArchivedType, ) - from .group_0667 import ( + from .group_0672 import ( WebhookProjectsV2ItemRestoredType as WebhookProjectsV2ItemRestoredType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizeType as WebhookPullRequestSynchronizeType, ) - from .group_0705 import ( + from .group_0713 import ( WebhookRegistryPackageUpdatedType as WebhookRegistryPackageUpdatedType, ) - from .group_0757 import ( + from .group_0765 import ( WebhookSponsorshipTierChangedType as WebhookSponsorshipTierChangedType, ) - from .group_0820 import ( + from .group_0829 import ( GistsGistIdPatchBodyPropFilesType as GistsGistIdPatchBodyPropFilesType, ) - from .group_0823 import ( + from .group_0832 import ( GistsGistIdStarGetResponse404Type as GistsGistIdStarGetResponse404Type, ) - from .group_0831 import ( + from .group_0840 import ( ActionsCacheUsageByRepositoryType as ActionsCacheUsageByRepositoryType, ) - from .group_0902 import ( + from .group_0918 import ( OrgsOrgTeamsTeamSlugPatchBodyType as OrgsOrgTeamsTeamSlugPatchBodyType, ) - from .group_1025 import ( + from .group_1044 import ( ReposOwnerRepoGitRefsPostBodyType as ReposOwnerRepoGitRefsPostBodyType, ) - from .group_1027 import ( + from .group_1046 import ( ReposOwnerRepoGitTagsPostBodyType as ReposOwnerRepoGitTagsPostBodyType, ) - from .group_1033 import ( + from .group_1052 import ( ReposOwnerRepoImportPatchBodyType as ReposOwnerRepoImportPatchBodyType, ) from .group_0002 import ( @@ -1402,451 +1416,454 @@ from .group_0039 import ( AuditLogEventPropActorLocationType as AuditLogEventPropActorLocationType, ) - from .group_0065 import ( + from .group_0068 import ( EventPropPayloadPropPagesItemsType as EventPropPayloadPropPagesItemsType, ) - from .group_0086 import ( + from .group_0088 import ( ActionsOrganizationPermissionsType as ActionsOrganizationPermissionsType, ) - from .group_0176 import ( + from .group_0180 import ( RateLimitOverviewPropResourcesType as RateLimitOverviewPropResourcesType, ) - from .group_0190 import ( + from .group_0194 import ( ReviewCustomGatesStateRequiredType as ReviewCustomGatesStateRequiredType, ) - from .group_0201 import ( + from .group_0205 import ( BranchProtectionPropLockBranchType as BranchProtectionPropLockBranchType, ) - from .group_0229 import ( + from .group_0233 import ( CodeScanningDefaultSetupUpdateType as CodeScanningDefaultSetupUpdateType, ) - from .group_0249 import ( + from .group_0253 import ( ContentDirectoryItemsPropLinksType as ContentDirectoryItemsPropLinksType, ) - from .group_0253 import ( + from .group_0257 import ( FileCommitPropCommitPropAuthorType as FileCommitPropCommitPropAuthorType, ) - from .group_0253 import ( + from .group_0257 import ( FileCommitPropContentPropLinksType as FileCommitPropContentPropLinksType, ) - from .group_0264 import ( + from .group_0268 import ( DeploymentBranchPolicySettingsType as DeploymentBranchPolicySettingsType, ) - from .group_0292 import ( + from .group_0296 import ( ReviewRequestRemovedIssueEventType as ReviewRequestRemovedIssueEventType, ) - from .group_0296 import ( + from .group_0300 import ( MovedColumnInProjectIssueEventType as MovedColumnInProjectIssueEventType, ) - from .group_0298 import ( + from .group_0302 import ( ConvertedNoteToIssueIssueEventType as ConvertedNoteToIssueIssueEventType, ) - from .group_0303 import ( + from .group_0307 import ( TimelineCommittedEventPropTreeType as TimelineCommittedEventPropTreeType, ) - from .group_0304 import ( + from .group_0308 import ( TimelineReviewedEventPropLinksType as TimelineReviewedEventPropLinksType, ) - from .group_0371 import ( + from .group_0375 import ( PatchSchemaPropOperationsItemsType as PatchSchemaPropOperationsItemsType, ) - from .group_0409 import ( + from .group_0413 import ( ExemptionRequestSecretScanningType as ExemptionRequestSecretScanningType, ) - from .group_0422 import ( + from .group_0426 import ( WebhooksRepositoriesAddedItemsType as WebhooksRepositoriesAddedItemsType, ) - from .group_0436 import ( + from .group_0440 import ( WebhooksProjectCardPropCreatorType as WebhooksProjectCardPropCreatorType, ) - from .group_0445 import ( + from .group_0450 import ( WebhooksReviewCommentPropLinksType as WebhooksReviewCommentPropLinksType, ) - from .group_0447 import ( + from .group_0452 import ( WebhooksReleasePropAssetsItemsType as WebhooksReleasePropAssetsItemsType, ) - from .group_0452 import ( + from .group_0457 import ( WebhooksSponsorshipPropSponsorType as WebhooksSponsorshipPropSponsorType, ) - from .group_0462 import ( + from .group_0467 import ( WebhookExemptionRequestCreatedType as WebhookExemptionRequestCreatedType, ) - from .group_0469 import ( + from .group_0474 import ( WebhookCheckRunRequestedActionType as WebhookCheckRunRequestedActionType, ) - from .group_0495 import ( + from .group_0500 import ( WebhookDependabotAlertReopenedType as WebhookDependabotAlertReopenedType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedType as WebhookDeploymentStatusCreatedType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDiscussionCommentEditedType as WebhookDiscussionCommentEditedType, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropChangesType as WebhookIssuesEditedPropChangesType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesType as WebhookIssuesOpenedPropChangesType, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssueType as WebhookIssuesReopenedPropIssueType, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssueType as WebhookIssuesUnlockedPropIssueType, ) - from .group_0607 import ( + from .group_0612 import ( WebhookMemberEditedPropChangesType as WebhookMemberEditedPropChangesType, ) - from .group_0622 import ( + from .group_0627 import ( WebhookOrganizationMemberAddedType as WebhookOrganizationMemberAddedType, ) - from .group_0657 import ( + from .group_0662 import ( WebhookProjectsV2ProjectClosedType as WebhookProjectsV2ProjectClosedType, ) - from .group_0660 import ( + from .group_0665 import ( WebhookProjectsV2ProjectEditedType as WebhookProjectsV2ProjectEditedType, ) - from .group_0662 import ( + from .group_0667 import ( WebhookProjectsV2ItemConvertedType as WebhookProjectsV2ItemConvertedType, ) - from .group_0666 import ( + from .group_0671 import ( WebhookProjectsV2ItemReorderedType as WebhookProjectsV2ItemReorderedType, ) - from .group_0675 import ( + from .group_0683 import ( WebhookPullRequestDemilestonedType as WebhookPullRequestDemilestonedType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedType as WebhookPullRequestReviewEditedType, ) - from .group_0728 import ( + from .group_0736 import ( WebhookRepositoryRulesetEditedType as WebhookRepositoryRulesetEditedType, ) - from .group_0747 import ( + from .group_0755 import ( WebhookSecurityAdvisoryUpdatedType as WebhookSecurityAdvisoryUpdatedType, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropBranchesItemsType as WebhookStatusPropBranchesItemsType, ) - from .group_0856 import ( + from .group_0871 import ( OrgsOrgCodespacesAccessPutBodyType as OrgsOrgCodespacesAccessPutBodyType, ) - from .group_0876 import ( + from .group_0892 import ( OrgsOrgHooksPostBodyPropConfigType as OrgsOrgHooksPostBodyPropConfigType, ) - from .group_1023 import ( + from .group_1042 import ( ReposOwnerRepoGitBlobsPostBodyType as ReposOwnerRepoGitBlobsPostBodyType, ) - from .group_1028 import ( + from .group_1047 import ( ReposOwnerRepoGitTreesPostBodyType as ReposOwnerRepoGitTreesPostBodyType, ) - from .group_1073 import ( + from .group_1092 import ( ReposOwnerRepoProjectsPostBodyType as ReposOwnerRepoProjectsPostBodyType, ) - from .group_1094 import ( + from .group_1113 import ( ReposOwnerRepoReleasesPostBodyType as ReposOwnerRepoReleasesPostBodyType, ) - from .group_1099 import ( + from .group_1118 import ( ReposOwnerRepoRulesetsPostBodyType as ReposOwnerRepoRulesetsPostBodyType, ) - from .group_1106 import ( + from .group_1125 import ( ReposOwnerRepoTransferPostBodyType as ReposOwnerRepoTransferPostBodyType, ) - from .group_1112 import ( + from .group_1131 import ( TeamsTeamIdDiscussionsPostBodyType as TeamsTeamIdDiscussionsPostBodyType, ) from .group_0039 import ( AuditLogEventPropConfigWasItemsType as AuditLogEventPropConfigWasItemsType, ) - from .group_0050 import ( + from .group_0053 import ( DependabotAlertSecurityAdvisoryType as DependabotAlertSecurityAdvisoryType, ) - from .group_0054 import ( + from .group_0057 import ( OrganizationSecretScanningAlertType as OrganizationSecretScanningAlertType, ) - from .group_0089 import ( + from .group_0094 import ( CodespacePropRuntimeConstraintsType as CodespacePropRuntimeConstraintsType, ) - from .group_0103 import ( + from .group_0105 import ( RepositoryFineGrainedPermissionType as RepositoryFineGrainedPermissionType, ) - from .group_0148 import ( + from .group_0152 import ( RepositoryRuleBranchNamePatternType as RepositoryRuleBranchNamePatternType, ) - from .group_0162 import ( + from .group_0166 import ( RepositoryAdvisoryPropCwesItemsType as RepositoryAdvisoryPropCwesItemsType, ) - from .group_0162 import ( + from .group_0166 import ( RepositoryAdvisoryVulnerabilityType as RepositoryAdvisoryVulnerabilityType, ) - from .group_0233 import ( + from .group_0237 import ( CodeownersErrorsPropErrorsItemsType as CodeownersErrorsPropErrorsItemsType, ) - from .group_0258 import ( + from .group_0262 import ( DependencyGraphSpdxSbomPropSbomType as DependencyGraphSpdxSbomPropSbomType, ) - from .group_0425 import ( + from .group_0429 import ( WebhooksIssuePropAssigneesItemsType as WebhooksIssuePropAssigneesItemsType, ) - from .group_0446 import ( + from .group_0451 import ( WebhooksReviewPropLinksPropHtmlType as WebhooksReviewPropLinksPropHtmlType, ) - from .group_0448 import ( + from .group_0453 import ( WebhooksRelease1PropAssetsItemsType as WebhooksRelease1PropAssetsItemsType, ) - from .group_0478 import ( + from .group_0483 import ( WebhookCodeScanningAlertCreatedType as WebhookCodeScanningAlertCreatedType, ) - from .group_0492 import ( + from .group_0497 import ( WebhookDependabotAlertDismissedType as WebhookDependabotAlertDismissedType, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedType as WebhookDeploymentReviewApprovedType, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedType as WebhookDeploymentReviewRejectedType, ) - from .group_0507 import ( + from .group_0512 import ( WebhookDiscussionCommentCreatedType as WebhookDiscussionCommentCreatedType, ) - from .group_0508 import ( + from .group_0513 import ( WebhookDiscussionCommentDeletedType as WebhookDiscussionCommentDeletedType, ) - from .group_0655 import ( + from .group_0660 import ( WebhookProjectEditedPropChangesType as WebhookProjectEditedPropChangesType, ) - from .group_0658 import ( + from .group_0663 import ( WebhookProjectsV2ProjectCreatedType as WebhookProjectsV2ProjectCreatedType, ) - from .group_0659 import ( + from .group_0664 import ( WebhookProjectsV2ProjectDeletedType as WebhookProjectsV2ProjectDeletedType, ) - from .group_0702 import ( + from .group_0710 import ( WebhookRegistryPackagePublishedType as WebhookRegistryPackagePublishedType, ) - from .group_0710 import ( + from .group_0718 import ( WebhookReleaseEditedPropChangesType as WebhookReleaseEditedPropChangesType, ) - from .group_0720 import ( + from .group_0728 import ( WebhookRepositoryDispatchSampleType as WebhookRepositoryDispatchSampleType, ) - from .group_0726 import ( + from .group_0734 import ( WebhookRepositoryRulesetCreatedType as WebhookRepositoryRulesetCreatedType, ) - from .group_0727 import ( + from .group_0735 import ( WebhookRepositoryRulesetDeletedType as WebhookRepositoryRulesetDeletedType, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationIssueBodyType as SecretScanningLocationIssueBodyType, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropRepositoryType as WebhookTeamEditedPropRepositoryType, ) - from .group_0851 import ( + from .group_0860 import ( OrgsOrgActionsVariablesPostBodyType as OrgsOrgActionsVariablesPostBodyType, ) - from .group_0855 import ( + from .group_0870 import ( OrgsOrgCodespacesGetResponse200Type as OrgsOrgCodespacesGetResponse200Type, ) - from .group_0900 import ( + from .group_0916 import ( OrgsOrgRulesetsRulesetIdPutBodyType as OrgsOrgRulesetsRulesetIdPutBodyType, ) - from .group_0933 import ( + from .group_0949 import ( ReposOwnerRepoDeleteResponse403Type as ReposOwnerRepoDeleteResponse403Type, ) - from .group_0960 import ( + from .group_0979 import ( ReposOwnerRepoAutolinksPostBodyType as ReposOwnerRepoAutolinksPostBodyType, ) - from .group_1138 import ( + from .group_1157 import ( UserInstallationsGetResponse200Type as UserInstallationsGetResponse200Type, ) - from .group_1142 import ( + from .group_1161 import ( UserMembershipsOrgsOrgPatchBodyType as UserMembershipsOrgsOrgPatchBodyType, ) + from .group_1168 import ( + SigstoreBundle0PropDsseEnvelopeType as SigstoreBundle0PropDsseEnvelopeType, + ) from .group_0039 import ( AuditLogEventPropEventsWereItemsType as AuditLogEventPropEventsWereItemsType, ) - from .group_0056 import ( + from .group_0059 import ( AdvancedSecurityActiveCommittersType as AdvancedSecurityActiveCommittersType, ) - from .group_0079 import ( + from .group_0082 import ( MinimalRepositoryPropPermissionsType as MinimalRepositoryPropPermissionsType, ) - from .group_0082 import ( + from .group_0085 import ( OrganizationCustomRepositoryRoleType as OrganizationCustomRepositoryRoleType, ) - from .group_0132 import ( + from .group_0136 import ( RepositoryRuleRequiredSignaturesType as RepositoryRuleRequiredSignaturesType, ) - from .group_0162 import ( + from .group_0166 import ( RepositoryAdvisoryPropSubmissionType as RepositoryAdvisoryPropSubmissionType, ) - from .group_0189 import ( + from .group_0193 import ( ReviewCustomGatesCommentRequiredType as ReviewCustomGatesCommentRequiredType, ) - from .group_0191 import ( + from .group_0195 import ( PendingDeploymentPropEnvironmentType as PendingDeploymentPropEnvironmentType, ) - from .group_0198 import ( + from .group_0202 import ( ProtectedBranchPullRequestReviewType as ProtectedBranchPullRequestReviewType, ) - from .group_0209 import ( + from .group_0213 import ( ProtectedBranchPropEnforceAdminsType as ProtectedBranchPropEnforceAdminsType, ) - from .group_0209 import ( + from .group_0213 import ( StatusCheckPolicyPropChecksItemsType as StatusCheckPolicyPropChecksItemsType, ) - from .group_0236 import ( + from .group_0240 import ( RepositoryCollaboratorPermissionType as RepositoryCollaboratorPermissionType, ) - from .group_0241 import ( + from .group_0245 import ( PullRequestSimplePropLabelsItemsType as PullRequestSimplePropLabelsItemsType, ) - from .group_0303 import ( + from .group_0307 import ( TimelineCommittedEventPropAuthorType as TimelineCommittedEventPropAuthorType, ) - from .group_0351 import ( + from .group_0355 import ( PrivateVulnerabilityReportCreateType as PrivateVulnerabilityReportCreateType, ) - from .group_0376 import ( + from .group_0380 import ( ScimEnterpriseUserResponseAllof1Type as ScimEnterpriseUserResponseAllof1Type, ) - from .group_0383 import ( + from .group_0387 import ( CommitSearchResultItemPropCommitType as CommitSearchResultItemPropCommitType, ) - from .group_0386 import ( + from .group_0390 import ( SearchRepositoriesGetResponse200Type as SearchRepositoriesGetResponse200Type, ) - from .group_0427 import ( + from .group_0431 import ( WebhooksIssue2PropAssigneesItemsType as WebhooksIssue2PropAssigneesItemsType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropAssigneeType as WebhooksPullRequest5PropAssigneeType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropMergedByType as WebhooksPullRequest5PropMergedByType, ) - from .group_0451 import ( + from .group_0456 import ( WebhooksSecurityAdvisoryPropCvssType as WebhooksSecurityAdvisoryPropCvssType, ) - from .group_0453 import ( + from .group_0458 import ( WebhooksChanges8PropTierPropFromType as WebhooksChanges8PropTierPropFromType, ) - from .group_0460 import ( + from .group_0465 import ( WebhookExemptionRequestCancelledType as WebhookExemptionRequestCancelledType, ) - from .group_0461 import ( + from .group_0466 import ( WebhookExemptionRequestCompletedType as WebhookExemptionRequestCompletedType, ) - from .group_0480 import ( + from .group_0485 import ( WebhookCodeScanningAlertReopenedType as WebhookCodeScanningAlertReopenedType, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedType as WebhookDeploymentReviewRequestedType, ) - from .group_0505 import ( + from .group_0510 import ( WebhookDiscussionCategoryChangedType as WebhookDiscussionCategoryChangedType, ) - from .group_0524 import ( + from .group_0529 import ( WebhookForkPropForkeeMergedOwnerType as WebhookForkPropForkeeMergedOwnerType, ) - from .group_0536 import ( + from .group_0541 import ( WebhookInstallationTargetRenamedType as WebhookInstallationTargetRenamedType, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssueType as WebhookIssuesMilestonedPropIssueType, ) - from .group_0609 import ( + from .group_0614 import ( WebhookMembershipAddedPropSenderType as WebhookMembershipAddedPropSenderType, ) - from .group_0611 import ( + from .group_0616 import ( WebhookMergeGroupChecksRequestedType as WebhookMergeGroupChecksRequestedType, ) - from .group_0623 import ( + from .group_0628 import ( WebhookOrganizationMemberInvitedType as WebhookOrganizationMemberInvitedType, ) - from .group_0624 import ( + from .group_0629 import ( WebhookOrganizationMemberRemovedType as WebhookOrganizationMemberRemovedType, ) - from .group_0631 import ( + from .group_0636 import ( WebhookPackageUpdatedPropPackageType as WebhookPackageUpdatedPropPackageType, ) - from .group_0668 import ( + from .group_0673 import ( WebhookProjectsV2ProjectReopenedType as WebhookProjectsV2ProjectReopenedType, ) - from .group_0683 import ( + from .group_0691 import ( WebhookPullRequestReadyForReviewType as WebhookPullRequestReadyForReviewType, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationIssueTitleType as SecretScanningLocationIssueTitleType, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationWikiCommitType as SecretScanningLocationWikiCommitType, ) - from .group_0746 import ( + from .group_0754 import ( WebhookSecurityAdvisoryPublishedType as WebhookSecurityAdvisoryPublishedType, ) - from .group_0748 import ( + from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnType as WebhookSecurityAdvisoryWithdrawnType, ) - from .group_0767 import ( + from .group_0775 import ( WebhookTeamCreatedPropRepositoryType as WebhookTeamCreatedPropRepositoryType, ) - from .group_0768 import ( + from .group_0776 import ( WebhookTeamDeletedPropRepositoryType as WebhookTeamDeletedPropRepositoryType, ) - from .group_0770 import ( + from .group_0778 import ( WebhookTeamRemovedFromRepositoryType as WebhookTeamRemovedFromRepositoryType, ) - from .group_0832 import ( + from .group_0841 import ( OrgsOrgActionsPermissionsPutBodyType as OrgsOrgActionsPermissionsPutBodyType, ) - from .group_0885 import ( + from .group_0901 import ( OrgsOrgOrganizationRolesPostBodyType as OrgsOrgOrganizationRolesPostBodyType, ) - from .group_0895 import ( + from .group_0911 import ( OrgsOrgPropertiesSchemaPatchBodyType as OrgsOrgPropertiesSchemaPatchBodyType, ) - from .group_0897 import ( + from .group_0913 import ( OrgsOrgPropertiesValuesPatchBodyType as OrgsOrgPropertiesValuesPatchBodyType, ) - from .group_0922 import ( + from .group_0938 import ( ProjectsColumnsColumnIdPatchBodyType as ProjectsColumnsColumnIdPatchBodyType, ) - from .group_0932 import ( + from .group_0948 import ( ProjectsProjectIdColumnsPostBodyType as ProjectsProjectIdColumnsPostBodyType, ) - from .group_0992 import ( + from .group_1011 import ( ReposOwnerRepoCodespacesPostBodyType as ReposOwnerRepoCodespacesPostBodyType, ) - from .group_1012 import ( + from .group_1031 import ( ReposOwnerRepoDispatchesPostBodyType as ReposOwnerRepoDispatchesPostBodyType, ) - from .group_1024 import ( + from .group_1043 import ( ReposOwnerRepoGitCommitsPostBodyType as ReposOwnerRepoGitCommitsPostBodyType, ) - from .group_1035 import ( + from .group_1054 import ( ReposOwnerRepoImportLfsPatchBodyType as ReposOwnerRepoImportLfsPatchBodyType, ) - from .group_1058 import ( + from .group_1077 import ( ReposOwnerRepoMilestonesPostBodyType as ReposOwnerRepoMilestonesPostBodyType, ) - from .group_1063 import ( + from .group_1082 import ( ReposOwnerRepoPagesPutBodyAnyof0Type as ReposOwnerRepoPagesPutBodyAnyof0Type, ) - from .group_1064 import ( + from .group_1083 import ( ReposOwnerRepoPagesPutBodyAnyof1Type as ReposOwnerRepoPagesPutBodyAnyof1Type, ) - from .group_1065 import ( + from .group_1084 import ( ReposOwnerRepoPagesPutBodyAnyof2Type as ReposOwnerRepoPagesPutBodyAnyof2Type, ) - from .group_1066 import ( + from .group_1085 import ( ReposOwnerRepoPagesPutBodyAnyof3Type as ReposOwnerRepoPagesPutBodyAnyof3Type, ) - from .group_1067 import ( + from .group_1086 import ( ReposOwnerRepoPagesPutBodyAnyof4Type as ReposOwnerRepoPagesPutBodyAnyof4Type, ) - from .group_1121 import ( + from .group_1140 import ( TeamsTeamIdReposOwnerRepoPutBodyType as TeamsTeamIdReposOwnerRepoPutBodyType, ) from .group_0025 import ( @@ -1855,133 +1872,136 @@ from .group_0046 import ( GetConsumedLicensesPropUsersItemsType as GetConsumedLicensesPropUsersItemsType, ) - from .group_0077 import ( + from .group_0080 import ( ApiOverviewPropSshKeyFingerprintsType as ApiOverviewPropSshKeyFingerprintsType, ) - from .group_0109 import ( + from .group_0111 import ( OrganizationFineGrainedPermissionType as OrganizationFineGrainedPermissionType, ) - from .group_0136 import ( + from .group_0113 import ( + TeamRoleAssignmentPropPermissionsType as TeamRoleAssignmentPropPermissionsType, + ) + from .group_0140 import ( RepositoryRuleRequiredDeploymentsType as RepositoryRuleRequiredDeploymentsType, ) - from .group_0160 import ( + from .group_0164 import ( RuleSuitePropRuleEvaluationsItemsType as RuleSuitePropRuleEvaluationsItemsType, ) - from .group_0184 import ( + from .group_0188 import ( ActionsWorkflowAccessToRepositoryType as ActionsWorkflowAccessToRepositoryType, ) - from .group_0209 import ( + from .group_0213 import ( ProtectedBranchPropAllowDeletionsType as ProtectedBranchPropAllowDeletionsType, ) - from .group_0209 import ( + from .group_0213 import ( ProtectedBranchPropBlockCreationsType as ProtectedBranchPropBlockCreationsType, ) - from .group_0253 import ( + from .group_0257 import ( FileCommitPropCommitPropCommitterType as FileCommitPropCommitPropCommitterType, ) - from .group_0269 import ( + from .group_0273 import ( DeploymentBranchPolicyNamePatternType as DeploymentBranchPolicyNamePatternType, ) - from .group_0288 import ( + from .group_0292 import ( MilestonedIssueEventPropMilestoneType as MilestonedIssueEventPropMilestoneType, ) - from .group_0305 import ( + from .group_0309 import ( PullRequestReviewCommentPropLinksType as PullRequestReviewCommentPropLinksType, ) - from .group_0355 import ( + from .group_0359 import ( ContributorActivityPropWeeksItemsType as ContributorActivityPropWeeksItemsType, ) - from .group_0369 import ( + from .group_0373 import ( ScimEnterpriseGroupResponseAllof1Type as ScimEnterpriseGroupResponseAllof1Type, ) - from .group_0405 import ( + from .group_0409 import ( RepositoryWebhooksPropPermissionsType as RepositoryWebhooksPropPermissionsType, ) - from .group_0409 import ( + from .group_0413 import ( ExemptionRequestPushRulesetBypassType as ExemptionRequestPushRulesetBypassType, ) - from .group_0423 import ( + from .group_0427 import ( WebhooksIssueCommentPropReactionsType as WebhooksIssueCommentPropReactionsType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropAutoMergeType as WebhooksPullRequest5PropAutoMergeType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropMilestoneType as WebhooksPullRequest5PropMilestoneType, ) - from .group_0452 import ( + from .group_0457 import ( WebhooksSponsorshipPropMaintainerType as WebhooksSponsorshipPropMaintainerType, ) - from .group_0459 import ( + from .group_0464 import ( WebhookBranchProtectionRuleEditedType as WebhookBranchProtectionRuleEditedType, ) - from .group_0468 import ( + from .group_0473 import ( WebhookCheckRunCreatedFormEncodedType as WebhookCheckRunCreatedFormEncodedType, ) - from .group_0602 import ( + from .group_0607 import ( WebhookMarketplacePurchaseChangedType as WebhookMarketplacePurchaseChangedType, ) - from .group_0617 import ( + from .group_0622 import ( WebhookMilestoneEditedPropChangesType as WebhookMilestoneEditedPropChangesType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedType as WebhookPullRequestReviewDismissedType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedType as WebhookPullRequestReviewSubmittedType, ) - from .group_0716 import ( + from .group_0724 import ( WebhookRepositoryAdvisoryReportedType as WebhookRepositoryAdvisoryReportedType, ) - from .group_0740 import ( + from .group_0748 import ( WebhookSecretScanningAlertCreatedType as WebhookSecretScanningAlertCreatedType, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropCommitPropAuthorType as WebhookStatusPropCommitPropAuthorType, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropCommitPropCommitType as WebhookStatusPropCommitPropCommitType, ) - from .group_0772 import ( + from .group_0780 import ( WebhookWorkflowDispatchPropInputsType as WebhookWorkflowDispatchPropInputsType, ) - from .group_0790 import ( + from .group_0798 import ( ApplicationsClientIdTokenPostBodyType as ApplicationsClientIdTokenPostBodyType, ) - from .group_0878 import ( + from .group_0894 import ( OrgsOrgHooksHookIdConfigPatchBodyType as OrgsOrgHooksHookIdConfigPatchBodyType, ) - from .group_0883 import ( + from .group_0899 import ( OrgsOrgMembershipsUsernamePutBodyType as OrgsOrgMembershipsUsernamePutBodyType, ) - from .group_0930 import ( + from .group_0946 import ( ProjectsProjectIdPatchResponse403Type as ProjectsProjectIdPatchResponse403Type, ) - from .group_0983 import ( + from .group_1002 import ( ReposOwnerRepoCheckSuitesPostBodyType as ReposOwnerRepoCheckSuitesPostBodyType, ) - from .group_1003 import ( + from .group_1022 import ( ReposOwnerRepoContentsPathPutBodyType as ReposOwnerRepoContentsPathPutBodyType, ) - from .group_1009 import ( + from .group_1028 import ( ReposOwnerRepoDeploymentsPostBodyType as ReposOwnerRepoDeploymentsPostBodyType, ) - from .group_1026 import ( + from .group_1045 import ( ReposOwnerRepoGitRefsRefPatchBodyType as ReposOwnerRepoGitRefsRefPatchBodyType, ) - from .group_1055 import ( + from .group_1074 import ( ReposOwnerRepoLabelsNamePatchBodyType as ReposOwnerRepoLabelsNamePatchBodyType, ) - from .group_1069 import ( + from .group_1088 import ( ReposOwnerRepoPagesPostBodyAnyof0Type as ReposOwnerRepoPagesPostBodyAnyof0Type, ) - from .group_1070 import ( + from .group_1089 import ( ReposOwnerRepoPagesPostBodyAnyof1Type as ReposOwnerRepoPagesPostBodyAnyof1Type, ) - from .group_1102 import ( + from .group_1121 import ( ReposOwnerRepoStatusesShaPostBodyType as ReposOwnerRepoStatusesShaPostBodyType, ) - from .group_1103 import ( + from .group_1122 import ( ReposOwnerRepoSubscriptionPutBodyType as ReposOwnerRepoSubscriptionPutBodyType, ) from .group_0002 import ( @@ -2002,286 +2022,292 @@ from .group_0045 import ( EnterpriseSecurityAnalysisSettingsType as EnterpriseSecurityAnalysisSettingsType, ) - from .group_0119 import ( + from .group_0123 import ( FullRepositoryPropCustomPropertiesType as FullRepositoryPropCustomPropertiesType, ) - from .group_0134 import ( + from .group_0138 import ( RepositoryRuleUpdatePropParametersType as RepositoryRuleUpdatePropParametersType, ) - from .group_0140 import ( + from .group_0144 import ( RepositoryRuleRequiredStatusChecksType as RepositoryRuleRequiredStatusChecksType, ) - from .group_0142 import ( + from .group_0146 import ( RepositoryRuleCommitMessagePatternType as RepositoryRuleCommitMessagePatternType, ) - from .group_0158 import ( + from .group_0162 import ( RepositoryRulesetPropLinksPropHtmlType as RepositoryRulesetPropLinksPropHtmlType, ) - from .group_0158 import ( + from .group_0162 import ( RepositoryRulesetPropLinksPropSelfType as RepositoryRulesetPropLinksPropSelfType, ) - from .group_0162 import ( + from .group_0166 import ( RepositoryAdvisoryPropCreditsItemsType as RepositoryAdvisoryPropCreditsItemsType, ) - from .group_0185 import ( + from .group_0189 import ( PullRequestMinimalPropBasePropRepoType as PullRequestMinimalPropBasePropRepoType, ) - from .group_0185 import ( + from .group_0189 import ( PullRequestMinimalPropHeadPropRepoType as PullRequestMinimalPropHeadPropRepoType, ) - from .group_0194 import ( + from .group_0198 import ( WorkflowUsagePropBillablePropMacosType as WorkflowUsagePropBillablePropMacosType, ) - from .group_0201 import ( + from .group_0205 import ( BranchProtectionPropAllowDeletionsType as BranchProtectionPropAllowDeletionsType, ) - from .group_0201 import ( + from .group_0205 import ( BranchProtectionPropBlockCreationsType as BranchProtectionPropBlockCreationsType, ) - from .group_0201 import ( + from .group_0205 import ( ProtectedBranchRequiredStatusCheckType as ProtectedBranchRequiredStatusCheckType, ) - from .group_0326 import ( + from .group_0330 import ( PullRequestReviewPropLinksPropHtmlType as PullRequestReviewPropLinksPropHtmlType, ) - from .group_0414 import ( + from .group_0418 import ( WebhooksReviewersItemsPropReviewerType as WebhooksReviewersItemsPropReviewerType, ) - from .group_0445 import ( + from .group_0450 import ( WebhooksReviewCommentPropReactionsType as WebhooksReviewCommentPropReactionsType, ) - from .group_0452 import ( + from .group_0457 import ( WebhooksSponsorshipPropSponsorableType as WebhooksSponsorshipPropSponsorableType, ) - from .group_0457 import ( + from .group_0462 import ( WebhookBranchProtectionRuleCreatedType as WebhookBranchProtectionRuleCreatedType, ) - from .group_0458 import ( + from .group_0463 import ( WebhookBranchProtectionRuleDeletedType as WebhookBranchProtectionRuleDeletedType, ) - from .group_0487 import ( + from .group_0492 import ( WebhookCustomPropertyValuesUpdatedType as WebhookCustomPropertyValuesUpdatedType, ) - from .group_0490 import ( + from .group_0495 import ( WebhookDependabotAlertAutoReopenedType as WebhookDependabotAlertAutoReopenedType, ) - from .group_0494 import ( + from .group_0499 import ( WebhookDependabotAlertReintroducedType as WebhookDependabotAlertReintroducedType, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDiscussionEditedPropChangesType as WebhookDiscussionEditedPropChangesType, ) - from .group_0524 import ( + from .group_0529 import ( WebhookForkPropForkeeMergedLicenseType as WebhookForkPropForkeeMergedLicenseType, ) - from .group_0562 import ( + from .group_0567 import ( WebhookIssueCommentEditedPropIssueType as WebhookIssueCommentEditedPropIssueType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookIssuesClosedPropIssueAllof0Type as WebhookIssuesClosedPropIssueAllof0Type, ) - from .group_0581 import ( + from .group_0586 import ( WebhookIssuesClosedPropIssueAllof1Type as WebhookIssuesClosedPropIssueAllof1Type, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssueType as WebhookIssuesDemilestonedPropIssueType, ) - from .group_0610 import ( + from .group_0615 import ( WebhookMembershipRemovedPropSenderType as WebhookMembershipRemovedPropSenderType, ) - from .group_0628 import ( + from .group_0633 import ( WebhookPackagePublishedPropPackageType as WebhookPackagePublishedPropPackageType, ) - from .group_0633 import ( + from .group_0638 import ( WebhookPageBuildPropBuildPropErrorType as WebhookPageBuildPropBuildPropErrorType, ) - from .group_0645 import ( + from .group_0650 import ( WebhookProjectCardMovedPropChangesType as WebhookProjectCardMovedPropChangesType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledType as WebhookPullRequestAutoMergeEnabledType, ) - from .group_0674 import ( + from .group_0682 import ( WebhookPullRequestConvertedToDraftType as WebhookPullRequestConvertedToDraftType, ) - from .group_0701 import ( + from .group_0709 import ( WebhookPushPropRepositoryPropOwnerType as WebhookPushPropRepositoryPropOwnerType, ) - from .group_0715 import ( + from .group_0723 import ( WebhookRepositoryAdvisoryPublishedType as WebhookRepositoryAdvisoryPublishedType, ) - from .group_0721 import ( + from .group_0729 import ( WebhookRepositoryEditedPropChangesType as WebhookRepositoryEditedPropChangesType, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationIssueCommentType as SecretScanningLocationIssueCommentType, ) - from .group_0743 import ( + from .group_0751 import ( WebhookSecretScanningAlertReopenedType as WebhookSecretScanningAlertReopenedType, ) - from .group_0744 import ( + from .group_0752 import ( WebhookSecretScanningAlertResolvedType as WebhookSecretScanningAlertResolvedType, ) - from .group_0792 import ( + from .group_0800 import ( ApplicationsClientIdTokenPatchBodyType as ApplicationsClientIdTokenPatchBodyType, ) - from .group_0819 import ( + from .group_0828 import ( GistsGistIdGetResponse403PropBlockType as GistsGistIdGetResponse403PropBlockType, ) - from .group_0836 import ( + from .group_0845 import ( OrgsOrgActionsRunnerGroupsPostBodyType as OrgsOrgActionsRunnerGroupsPostBodyType, ) - from .group_0879 import ( + from .group_0895 import ( OrgsOrgInstallationsGetResponse200Type as OrgsOrgInstallationsGetResponse200Type, ) - from .group_0928 import ( + from .group_0944 import ( ProjectsProjectIdDeleteResponse403Type as ProjectsProjectIdDeleteResponse403Type, ) - from .group_1030 import ( + from .group_0976 import ( + ReposOwnerRepoAttestationsPostBodyType as ReposOwnerRepoAttestationsPostBodyType, + ) + from .group_1049 import ( ReposOwnerRepoHooksHookIdPatchBodyType as ReposOwnerRepoHooksHookIdPatchBodyType, ) - from .group_1060 import ( + from .group_1079 import ( ReposOwnerRepoNotificationsPutBodyType as ReposOwnerRepoNotificationsPutBodyType, ) from .group_0011 import ( HookDeliveryPropResponsePropHeadersType as HookDeliveryPropResponsePropHeadersType, ) - from .group_0113 import ( + from .group_0117 import ( OrganizationProgrammaticAccessGrantType as OrganizationProgrammaticAccessGrantType, ) - from .group_0132 import ( + from .group_0136 import ( RepositoryRuleOneof14PropParametersType as RepositoryRuleOneof14PropParametersType, ) - from .group_0132 import ( + from .group_0136 import ( RepositoryRuleOneof16PropParametersType as RepositoryRuleOneof16PropParametersType, ) - from .group_0135 import ( + from .group_0139 import ( RepositoryRuleOneof15PropParametersType as RepositoryRuleOneof15PropParametersType, ) - from .group_0135 import ( + from .group_0139 import ( RepositoryRuleRequiredLinearHistoryType as RepositoryRuleRequiredLinearHistoryType, ) - from .group_0146 import ( + from .group_0150 import ( RepositoryRuleCommitterEmailPatternType as RepositoryRuleCommitterEmailPatternType, ) - from .group_0157 import ( + from .group_0161 import ( RepositoryRuleOneof17PropParametersType as RepositoryRuleOneof17PropParametersType, ) - from .group_0191 import ( + from .group_0195 import ( PendingDeploymentPropReviewersItemsType as PendingDeploymentPropReviewersItemsType, ) - from .group_0194 import ( + from .group_0198 import ( WorkflowUsagePropBillablePropUbuntuType as WorkflowUsagePropBillablePropUbuntuType, ) - from .group_0209 import ( + from .group_0213 import ( ProtectedBranchPropAllowForcePushesType as ProtectedBranchPropAllowForcePushesType, ) - from .group_0209 import ( + from .group_0213 import ( ProtectedBranchPropAllowForkSyncingType as ProtectedBranchPropAllowForkSyncingType, ) - from .group_0216 import ( + from .group_0220 import ( CheckSuitePreferencePropPreferencesType as CheckSuitePreferencePropPreferencesType, ) - from .group_0227 import ( + from .group_0231 import ( CodeScanningVariantAnalysisRepoTaskType as CodeScanningVariantAnalysisRepoTaskType, ) - from .group_0289 import ( + from .group_0293 import ( DemilestonedIssueEventPropMilestoneType as DemilestonedIssueEventPropMilestoneType, ) - from .group_0303 import ( + from .group_0307 import ( TimelineCommittedEventPropCommitterType as TimelineCommittedEventPropCommitterType, ) - from .group_0386 import ( + from .group_0390 import ( RepoSearchResultItemPropPermissionsType as RepoSearchResultItemPropPermissionsType, ) - from .group_0429 import ( + from .group_0433 import ( WebhooksMarketplacePurchasePropPlanType as WebhooksMarketplacePurchasePropPlanType, ) - from .group_0430 import ( + from .group_0434 import ( WebhooksPreviousMarketplacePurchaseType as WebhooksPreviousMarketplacePurchaseType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLabelsItemsType as WebhooksPullRequest5PropLabelsItemsType, ) - from .group_0466 import ( + from .group_0471 import ( WebhookCheckRunCompletedFormEncodedType as WebhookCheckRunCompletedFormEncodedType, ) - from .group_0489 import ( + from .group_0494 import ( WebhookDependabotAlertAutoDismissedType as WebhookDependabotAlertAutoDismissedType, ) - from .group_0540 import ( + from .group_0545 import ( WebhookIssueCommentCreatedPropIssueType as WebhookIssueCommentCreatedPropIssueType, ) - from .group_0551 import ( + from .group_0556 import ( WebhookIssueCommentDeletedPropIssueType as WebhookIssueCommentDeletedPropIssueType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesType as WebhookIssuesTransferredPropChangesType, ) - from .group_0601 import ( + from .group_0606 import ( WebhookMarketplacePurchaseCancelledType as WebhookMarketplacePurchaseCancelledType, ) - from .group_0605 import ( + from .group_0610 import ( WebhookMarketplacePurchasePurchasedType as WebhookMarketplacePurchasePurchasedType, ) - from .group_0626 import ( + from .group_0631 import ( WebhookRubygemsMetadataPropMetadataType as WebhookRubygemsMetadataPropMetadataType, ) - from .group_0633 import ( + from .group_0638 import ( WebhookPageBuildPropBuildPropPusherType as WebhookPageBuildPropBuildPropPusherType, ) - from .group_0644 import ( + from .group_0649 import ( WebhookProjectCardEditedPropChangesType as WebhookProjectCardEditedPropChangesType, ) - from .group_0671 import ( + from .group_0676 import ( + WebhookProjectsV2StatusUpdateEditedType as WebhookProjectsV2StatusUpdateEditedType, + ) + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledType as WebhookPullRequestAutoMergeDisabledType, ) - from .group_0677 import ( + from .group_0685 import ( WebhookPullRequestEditedPropChangesType as WebhookPullRequestEditedPropChangesType, ) - from .group_0701 import ( + from .group_0709 import ( WebhookPushPropHeadCommitPropAuthorType as WebhookPushPropHeadCommitPropAuthorType, ) - from .group_0725 import ( + from .group_0733 import ( WebhookRepositoryRenamedPropChangesType as WebhookRepositoryRenamedPropChangesType, ) - from .group_0745 import ( + from .group_0753 import ( WebhookSecretScanningAlertValidatedType as WebhookSecretScanningAlertValidatedType, ) - from .group_0754 import ( + from .group_0762 import ( WebhookSponsorshipEditedPropChangesType as WebhookSponsorshipEditedPropChangesType, ) - from .group_0756 import ( + from .group_0764 import ( WebhookSponsorshipPendingTierChangeType as WebhookSponsorshipPendingTierChangeType, ) - from .group_0789 import ( + from .group_0797 import ( ApplicationsClientIdGrantDeleteBodyType as ApplicationsClientIdGrantDeleteBodyType, ) - from .group_0791 import ( + from .group_0799 import ( ApplicationsClientIdTokenDeleteBodyType as ApplicationsClientIdTokenDeleteBodyType, ) - from .group_0842 import ( + from .group_0851 import ( OrgsOrgActionsRunnersGetResponse200Type as OrgsOrgActionsRunnersGetResponse200Type, ) - from .group_0846 import ( + from .group_0855 import ( OrgsOrgActionsSecretsGetResponse200Type as OrgsOrgActionsSecretsGetResponse200Type, ) - from .group_0892 import ( + from .group_0908 import ( OrgsOrgPersonalAccessTokensPostBodyType as OrgsOrgPersonalAccessTokensPostBodyType, ) - from .group_0917 import ( + from .group_0933 import ( ProjectsColumnsCardsCardIdPatchBodyType as ProjectsColumnsCardsCardIdPatchBodyType, ) - from .group_1056 import ( + from .group_1075 import ( ReposOwnerRepoMergeUpstreamPostBodyType as ReposOwnerRepoMergeUpstreamPostBodyType, ) - from .group_1108 import ( + from .group_1127 import ( ScimV2OrganizationsOrgUsersPostBodyType as ScimV2OrganizationsOrgUsersPostBodyType, ) - from .group_1119 import ( + from .group_1138 import ( TeamsTeamIdProjectsProjectIdPutBodyType as TeamsTeamIdProjectsProjectIdPutBodyType, ) - from .group_1127 import ( + from .group_1146 import ( UserCodespacesSecretsGetResponse200Type as UserCodespacesSecretsGetResponse200Type, ) from .group_0031 import ( @@ -2293,814 +2319,835 @@ from .group_0042 import ( CodeScanningAlertInstancePropMessageType as CodeScanningAlertInstancePropMessageType, ) - from .group_0049 import ( + from .group_0052 import ( DependabotAlertSecurityVulnerabilityType as DependabotAlertSecurityVulnerabilityType, ) - from .group_0056 import ( + from .group_0059 import ( AdvancedSecurityActiveCommittersUserType as AdvancedSecurityActiveCommittersUserType, ) - from .group_0111 import ( + from .group_0115 import ( PackageVersionPropMetadataPropDockerType as PackageVersionPropMetadataPropDockerType, ) - from .group_0156 import ( + from .group_0160 import ( RepositoryRuleParamsCodeScanningToolType as RepositoryRuleParamsCodeScanningToolType, ) - from .group_0194 import ( + from .group_0198 import ( WorkflowUsagePropBillablePropWindowsType as WorkflowUsagePropBillablePropWindowsType, ) - from .group_0200 import ( + from .group_0204 import ( BranchRestrictionPolicyPropAppsItemsType as BranchRestrictionPolicyPropAppsItemsType, ) - from .group_0201 import ( + from .group_0205 import ( BranchProtectionPropAllowForcePushesType as BranchProtectionPropAllowForcePushesType, ) - from .group_0201 import ( + from .group_0205 import ( BranchProtectionPropAllowForkSyncingType as BranchProtectionPropAllowForkSyncingType, ) - from .group_0248 import ( + from .group_0252 import ( ContentTreePropEntriesItemsPropLinksType as ContentTreePropEntriesItemsPropLinksType, ) - from .group_0253 import ( + from .group_0257 import ( FileCommitPropCommitPropParentsItemsType as FileCommitPropCommitPropParentsItemsType, ) - from .group_0253 import ( + from .group_0257 import ( FileCommitPropCommitPropVerificationType as FileCommitPropCommitPropVerificationType, ) - from .group_0320 import ( + from .group_0324 import ( PullRequestPropHeadPropRepoPropOwnerType as PullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0322 import ( + from .group_0326 import ( PullRequestPropBasePropRepoPropOwnerType as PullRequestPropBasePropRepoPropOwnerType, ) - from .group_0384 import ( + from .group_0388 import ( IssueSearchResultItemPropLabelsItemsType as IssueSearchResultItemPropLabelsItemsType, ) - from .group_0384 import ( + from .group_0388 import ( IssueSearchResultItemPropPullRequestType as IssueSearchResultItemPropPullRequestType, ) - from .group_0440 import ( + from .group_0444 import ( WebhooksProjectChangesPropArchivedAtType as WebhooksProjectChangesPropArchivedAtType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropBasePropRepoType as WebhooksPullRequest5PropBasePropRepoType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropBasePropUserType as WebhooksPullRequest5PropBasePropUserType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropHeadPropRepoType as WebhooksPullRequest5PropHeadPropRepoType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropHeadPropUserType as WebhooksPullRequest5PropHeadPropUserType, ) - from .group_0477 import ( + from .group_0482 import ( WebhookCodeScanningAlertClosedByUserType as WebhookCodeScanningAlertClosedByUserType, ) - from .group_0525 import ( + from .group_0530 import ( WebhookForkPropForkeeAllof0PropOwnerType as WebhookForkPropForkeeAllof0PropOwnerType, ) - from .group_0527 import ( + from .group_0532 import ( WebhookForkPropForkeeAllof1PropOwnerType as WebhookForkPropForkeeAllof1PropOwnerType, ) - from .group_0528 import ( + from .group_0533 import ( WebhookGithubAppAuthorizationRevokedType as WebhookGithubAppAuthorizationRevokedType, ) - from .group_0533 import ( + from .group_0538 import ( WebhookInstallationRepositoriesAddedType as WebhookInstallationRepositoriesAddedType, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropUserType as WebhookIssuesEditedPropIssuePropUserType, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropUserType as WebhookIssuesLockedPropIssuePropUserType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropUserType as WebhookIssuesOpenedPropIssuePropUserType, ) - from .group_0613 import ( + from .group_0618 import ( WebhookMetaDeletedPropHookPropConfigType as WebhookMetaDeletedPropHookPropConfigType, ) - from .group_0701 import ( + from .group_0674 import ( + WebhookProjectsV2StatusUpdateCreatedType as WebhookProjectsV2StatusUpdateCreatedType, + ) + from .group_0675 import ( + WebhookProjectsV2StatusUpdateDeletedType as WebhookProjectsV2StatusUpdateDeletedType, + ) + from .group_0709 import ( WebhookPushPropRepositoryPropLicenseType as WebhookPushPropRepositoryPropLicenseType, ) - from .group_0711 import ( + from .group_0719 import ( WebhookReleasePrereleasedPropReleaseType as WebhookReleasePrereleasedPropReleaseType, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationDiscussionBodyType as SecretScanningLocationDiscussionBodyType, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitterType, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropChangesPropNameType as WebhookTeamEditedPropChangesPropNameType, ) - from .group_0852 import ( + from .group_0861 import ( OrgsOrgActionsVariablesNamePatchBodyType as OrgsOrgActionsVariablesNamePatchBodyType, ) - from .group_0926 import ( + from .group_0942 import ( ProjectsColumnsColumnIdMovesPostBodyType as ProjectsColumnsColumnIdMovesPostBodyType, ) - from .group_1004 import ( + from .group_1023 import ( ReposOwnerRepoContentsPathDeleteBodyType as ReposOwnerRepoContentsPathDeleteBodyType, ) - from .group_1104 import ( + from .group_1123 import ( ReposOwnerRepoTagsProtectionPostBodyType as ReposOwnerRepoTagsProtectionPostBodyType, ) - from .group_1131 import ( + from .group_1150 import ( UserCodespacesCodespaceNamePatchBodyType as UserCodespacesCodespaceNamePatchBodyType, ) from .group_0025 import ( ServerStatisticsItemsPropDormantUsersType as ServerStatisticsItemsPropDormantUsersType, ) - from .group_0047 import ( + from .group_0050 import ( CopilotUsageMetricsPropBreakdownItemsType as CopilotUsageMetricsPropBreakdownItemsType, ) - from .group_0057 import ( + from .group_0060 import ( GetAllCostCentersPropCostCentersItemsType as GetAllCostCentersPropCostCentersItemsType, ) - from .group_0060 import ( + from .group_0063 import ( BillingUsageReportPropUsageItemsItemsType as BillingUsageReportPropUsageItemsItemsType, ) - from .group_0078 import ( + from .group_0081 import ( SecurityAndAnalysisPropSecretScanningType as SecurityAndAnalysisPropSecretScanningType, ) - from .group_0152 import ( + from .group_0092 import ( + CodeSecurityConfigurationRepositoriesType as CodeSecurityConfigurationRepositoriesType, + ) + from .group_0156 import ( RepositoryRuleParamsRestrictedCommitsType as RepositoryRuleParamsRestrictedCommitsType, ) - from .group_0154 import ( + from .group_0158 import ( RepositoryRuleWorkflowsPropParametersType as RepositoryRuleWorkflowsPropParametersType, ) - from .group_0193 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropMacosType as WorkflowRunUsagePropBillablePropMacosType, ) - from .group_0200 import ( + from .group_0204 import ( BranchRestrictionPolicyPropTeamsItemsType as BranchRestrictionPolicyPropTeamsItemsType, ) - from .group_0200 import ( + from .group_0204 import ( BranchRestrictionPolicyPropUsersItemsType as BranchRestrictionPolicyPropUsersItemsType, ) - from .group_0209 import ( + from .group_0213 import ( ProtectedBranchPropRequiredSignaturesType as ProtectedBranchPropRequiredSignaturesType, ) - from .group_0222 import ( + from .group_0226 import ( CodeScanningVariantAnalysisRepositoryType as CodeScanningVariantAnalysisRepositoryType, ) - from .group_0387 import ( + from .group_0391 import ( TopicSearchResultItemPropAliasesItemsType as TopicSearchResultItemPropAliasesItemsType, ) - from .group_0387 import ( + from .group_0391 import ( TopicSearchResultItemPropRelatedItemsType as TopicSearchResultItemPropRelatedItemsType, ) - from .group_0394 import ( + from .group_0398 import ( GpgKeyPropSubkeysItemsPropEmailsItemsType as GpgKeyPropSubkeysItemsPropEmailsItemsType, ) - from .group_0425 import ( + from .group_0429 import ( WebhooksIssuePropMilestonePropCreatorType as WebhooksIssuePropMilestonePropCreatorType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLinksPropHtmlType as WebhooksPullRequest5PropLinksPropHtmlType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLinksPropSelfType as WebhooksPullRequest5PropLinksPropSelfType, ) - from .group_0451 import ( + from .group_0456 import ( WebhooksSecurityAdvisoryPropCwesItemsType as WebhooksSecurityAdvisoryPropCwesItemsType, ) - from .group_0472 import ( + from .group_0477 import ( WebhookCheckRunRerequestedFormEncodedType as WebhookCheckRunRerequestedFormEncodedType, ) - from .group_0539 import ( + from .group_0544 import ( WebhookIssueCommentCreatedPropCommentType as WebhookIssueCommentCreatedPropCommentType, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropUserType as WebhookIssuesDeletedPropIssuePropUserType, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropUserType as WebhookIssuesLabeledPropIssuePropUserType, ) - from .group_0600 import ( + from .group_0605 import ( WebhookLabelEditedPropChangesPropNameType as WebhookLabelEditedPropChangesPropNameType, ) - from .group_0625 import ( + from .group_0630 import ( WebhookOrganizationRenamedPropChangesType as WebhookOrganizationRenamedPropChangesType, ) - from .group_0651 import ( + from .group_0656 import ( WebhookProjectColumnEditedPropChangesType as WebhookProjectColumnEditedPropChangesType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedType as WebhookPullRequestReviewCommentEditedType, ) - from .group_0701 import ( + from .group_0709 import ( WebhookPushPropCommitsItemsPropAuthorType as WebhookPushPropCommitsItemsPropAuthorType, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationDiscussionTitleType as SecretScanningLocationDiscussionTitleType, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationPullRequestBodyType as SecretScanningLocationPullRequestBodyType, ) - from .group_0750 import ( + from .group_0758 import ( WebhookSecurityAndAnalysisPropChangesType as WebhookSecurityAndAnalysisPropChangesType, ) - from .group_0755 import ( + from .group_0763 import ( WebhookSponsorshipPendingCancellationType as WebhookSponsorshipPendingCancellationType, ) - from .group_0822 import ( + from .group_0831 import ( GistsGistIdCommentsCommentIdPatchBodyType as GistsGistIdCommentsCommentIdPatchBodyType, ) - from .group_0850 import ( + from .group_0859 import ( OrgsOrgActionsVariablesGetResponse200Type as OrgsOrgActionsVariablesGetResponse200Type, ) - from .group_0877 import ( + from .group_0893 import ( OrgsOrgHooksHookIdPatchBodyPropConfigType as OrgsOrgHooksHookIdPatchBodyPropConfigType, ) - from .group_0978 import ( + from .group_0997 import ( ReposOwnerRepoCheckRunsPostBodyOneof0Type as ReposOwnerRepoCheckRunsPostBodyOneof0Type, ) - from .group_0979 import ( + from .group_0998 import ( ReposOwnerRepoCheckRunsPostBodyOneof1Type as ReposOwnerRepoCheckRunsPostBodyOneof1Type, ) - from .group_1029 import ( + from .group_1048 import ( ReposOwnerRepoHooksPostBodyPropConfigType as ReposOwnerRepoHooksPostBodyPropConfigType, ) - from .group_1068 import ( + from .group_1087 import ( ReposOwnerRepoPagesPostBodyPropSourceType as ReposOwnerRepoPagesPostBodyPropSourceType, ) - from .group_1118 import ( + from .group_1137 import ( TeamsTeamIdMembershipsUsernamePutBodyType as TeamsTeamIdMembershipsUsernamePutBodyType, ) from .group_0025 import ( ServerStatisticsItemsPropGithubConnectType as ServerStatisticsItemsPropGithubConnectType, ) - from .group_0110 import ( + from .group_0091 import ( + CodeSecurityDefaultConfigurationsItemsType as CodeSecurityDefaultConfigurationsItemsType, + ) + from .group_0112 import ( OrgsOrgOrganizationRolesGetResponse200Type as OrgsOrgOrganizationRolesGetResponse200Type, ) - from .group_0122 import ( + from .group_0126 import ( RepositoryRulesetConditionsPropRefNameType as RepositoryRulesetConditionsPropRefNameType, ) - from .group_0144 import ( + from .group_0148 import ( RepositoryRuleCommitAuthorEmailPatternType as RepositoryRuleCommitAuthorEmailPatternType, ) - from .group_0162 import ( + from .group_0166 import ( RepositoryAdvisoryPropIdentifiersItemsType as RepositoryAdvisoryPropIdentifiersItemsType, ) - from .group_0178 import ( + from .group_0182 import ( ActionsCacheListPropActionsCachesItemsType as ActionsCacheListPropActionsCachesItemsType, ) - from .group_0193 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropUbuntuType as WorkflowRunUsagePropBillablePropUbuntuType, ) - from .group_0201 import ( + from .group_0205 import ( BranchProtectionPropRequiredSignaturesType as BranchProtectionPropRequiredSignaturesType, ) - from .group_0230 import ( + from .group_0234 import ( CodeScanningDefaultSetupUpdateResponseType as CodeScanningDefaultSetupUpdateResponseType, ) - from .group_0302 import ( + from .group_0306 import ( TimelineCrossReferencedEventPropSourceType as TimelineCrossReferencedEventPropSourceType, ) - from .group_0303 import ( + from .group_0307 import ( TimelineCommittedEventPropParentsItemsType as TimelineCommittedEventPropParentsItemsType, ) - from .group_0303 import ( + from .group_0307 import ( TimelineCommittedEventPropVerificationType as TimelineCommittedEventPropVerificationType, ) - from .group_0304 import ( + from .group_0308 import ( TimelineReviewedEventPropLinksPropHtmlType as TimelineReviewedEventPropLinksPropHtmlType, ) - from .group_0320 import ( + from .group_0324 import ( PullRequestPropHeadPropRepoPropLicenseType as PullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0382 import ( + from .group_0386 import ( CommitSearchResultItemPropParentsItemsType as CommitSearchResultItemPropParentsItemsType, ) - from .group_0405 import ( + from .group_0409 import ( RepositoryWebhooksPropCustomPropertiesType as RepositoryWebhooksPropCustomPropertiesType, ) - from .group_0409 import ( + from .group_0413 import ( ExemptionRequestSecretScanningMetadataType as ExemptionRequestSecretScanningMetadataType, ) - from .group_0411 import ( + from .group_0415 import ( CheckRunWithSimpleCheckSuitePropOutputType as CheckRunWithSimpleCheckSuitePropOutputType, ) - from .group_0425 import ( + from .group_0429 import ( WebhooksIssuePropPerformedViaGithubAppType as WebhooksIssuePropPerformedViaGithubAppType, ) - from .group_0427 import ( + from .group_0431 import ( WebhooksIssue2PropMilestonePropCreatorType as WebhooksIssue2PropMilestonePropCreatorType, ) - from .group_0429 import ( + from .group_0433 import ( WebhooksMarketplacePurchasePropAccountType as WebhooksMarketplacePurchasePropAccountType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropAssigneesItemsType as WebhooksPullRequest5PropAssigneesItemsType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLinksPropIssueType as WebhooksPullRequest5PropLinksPropIssueType, ) - from .group_0445 import ( + from .group_0450 import ( WebhooksReviewCommentPropLinksPropHtmlType as WebhooksReviewCommentPropLinksPropHtmlType, ) - from .group_0445 import ( + from .group_0450 import ( WebhooksReviewCommentPropLinksPropSelfType as WebhooksReviewCommentPropLinksPropSelfType, ) - from .group_0446 import ( + from .group_0451 import ( WebhooksReviewPropLinksPropPullRequestType as WebhooksReviewPropLinksPropPullRequestType, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCodeScanningAlertFixedPropAlertType as WebhookCodeScanningAlertFixedPropAlertType, ) - from .group_0481 import ( + from .group_0486 import ( WebhookCodeScanningAlertReopenedByUserType as WebhookCodeScanningAlertReopenedByUserType, ) - from .group_0482 import ( + from .group_0487 import ( WebhookCommitCommentCreatedPropCommentType as WebhookCommitCommentCreatedPropCommentType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropDeploymentType as WebhookDeploymentCreatedPropDeploymentType, ) - from .group_0525 import ( + from .group_0530 import ( WebhookForkPropForkeeAllof0PropLicenseType as WebhookForkPropForkeeAllof0PropLicenseType, ) - from .group_0527 import ( + from .group_0532 import ( WebhookForkPropForkeeAllof1PropLicenseType as WebhookForkPropForkeeAllof1PropLicenseType, ) - from .group_0534 import ( + from .group_0539 import ( WebhookInstallationRepositoriesRemovedType as WebhookInstallationRepositoriesRemovedType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookIssuesClosedPropIssueMergedUserType as WebhookIssuesClosedPropIssueMergedUserType, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropChangesPropBodyType as WebhookIssuesEditedPropChangesPropBodyType, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropUserType as WebhookIssuesReopenedPropIssuePropUserType, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropUserType as WebhookIssuesUnlockedPropIssuePropUserType, ) - from .group_0600 import ( + from .group_0605 import ( WebhookLabelEditedPropChangesPropColorType as WebhookLabelEditedPropChangesPropColorType, ) - from .group_0626 import ( + from .group_0631 import ( WebhookRubygemsMetadataPropVersionInfoType as WebhookRubygemsMetadataPropVersionInfoType, ) - from .group_0641 import ( + from .group_0646 import ( WebhookProjectCardConvertedPropChangesType as WebhookProjectCardConvertedPropChangesType, ) - from .group_0645 import ( + from .group_0650 import ( WebhookProjectCardMovedPropProjectCardType as WebhookProjectCardMovedPropProjectCardType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedType as WebhookPullRequestReviewCommentCreatedType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedType as WebhookPullRequestReviewCommentDeletedType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedType as WebhookPullRequestReviewThreadResolvedType, ) - from .group_0701 import ( + from .group_0709 import ( WebhookPushPropHeadCommitPropCommitterType as WebhookPushPropHeadCommitPropCommitterType, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationPullRequestTitleType as SecretScanningLocationPullRequestTitleType, ) - from .group_0824 import ( + from .group_0833 import ( InstallationRepositoriesGetResponse200Type as InstallationRepositoriesGetResponse200Type, ) - from .group_0847 import ( + from .group_0856 import ( OrgsOrgActionsSecretsSecretNamePutBodyType as OrgsOrgActionsSecretsSecretNamePutBodyType, ) - from .group_0859 import ( + from .group_0874 import ( OrgsOrgCodespacesSecretsGetResponse200Type as OrgsOrgCodespacesSecretsGetResponse200Type, ) - from .group_0872 import ( + from .group_0888 import ( OrgsOrgDependabotSecretsGetResponse200Type as OrgsOrgDependabotSecretsGetResponse200Type, ) - from .group_0955 import ( + from .group_0971 import ( ReposOwnerRepoActionsVariablesPostBodyType as ReposOwnerRepoActionsVariablesPostBodyType, ) - from .group_0991 import ( + from .group_1010 import ( ReposOwnerRepoCodespacesGetResponse200Type as ReposOwnerRepoCodespacesGetResponse200Type, ) - from .group_1071 import ( + from .group_1090 import ( ReposOwnerRepoPagesDeploymentsPostBodyType as ReposOwnerRepoPagesDeploymentsPostBodyType, ) - from .group_1078 import ( + from .group_1097 import ( ReposOwnerRepoPullsPullNumberPatchBodyType as ReposOwnerRepoPullsPullNumberPatchBodyType, ) - from .group_1100 import ( + from .group_1119 import ( ReposOwnerRepoRulesetsRulesetIdPutBodyType as ReposOwnerRepoRulesetsRulesetIdPutBodyType, ) - from .group_1128 import ( + from .group_1147 import ( UserCodespacesSecretsSecretNamePutBodyType as UserCodespacesSecretsSecretNamePutBodyType, ) - from .group_0050 import ( + from .group_0053 import ( DependabotAlertSecurityAdvisoryPropCvssType as DependabotAlertSecurityAdvisoryPropCvssType, ) - from .group_0078 import ( + from .group_0081 import ( SecurityAndAnalysisPropAdvancedSecurityType as SecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_0111 import ( + from .group_0115 import ( PackageVersionPropMetadataPropContainerType as PackageVersionPropMetadataPropContainerType, ) - from .group_0139 import ( + from .group_0143 import ( RepositoryRulePullRequestPropParametersType as RepositoryRulePullRequestPropParametersType, ) - from .group_0193 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropWindowsType as WorkflowRunUsagePropBillablePropWindowsType, ) - from .group_0295 import ( + from .group_0299 import ( AddedToProjectIssueEventPropProjectCardType as AddedToProjectIssueEventPropProjectCardType, ) - from .group_0427 import ( + from .group_0431 import ( WebhooksIssue2PropPerformedViaGithubAppType as WebhooksIssue2PropPerformedViaGithubAppType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunType as WebhookDeploymentCreatedPropWorkflowRunType, ) - from .group_0518 import ( + from .group_0523 import ( WebhookDiscussionTransferredPropChangesType as WebhookDiscussionTransferredPropChangesType, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropChangesPropTitleType as WebhookIssuesEditedPropChangesPropTitleType, ) - from .group_0603 import ( + from .group_0608 import ( WebhookMarketplacePurchasePendingChangeType as WebhookMarketplacePurchasePendingChangeType, ) - from .group_0637 import ( + from .group_0642 import ( WebhookPersonalAccessTokenRequestDeniedType as WebhookPersonalAccessTokenRequestDeniedType, ) - from .group_0655 import ( + from .group_0660 import ( WebhookProjectEditedPropChangesPropBodyType as WebhookProjectEditedPropChangesPropBodyType, ) - from .group_0655 import ( + from .group_0660 import ( WebhookProjectEditedPropChangesPropNameType as WebhookProjectEditedPropChangesPropNameType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestType as WebhookPullRequestLockedPropPullRequestType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0Type as WebhookPullRequestReviewRequestedOneof0Type, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1Type as WebhookPullRequestReviewRequestedOneof1Type, ) - from .group_0710 import ( + from .group_0718 import ( WebhookReleaseEditedPropChangesPropBodyType as WebhookReleaseEditedPropChangesPropBodyType, ) - from .group_0710 import ( + from .group_0718 import ( WebhookReleaseEditedPropChangesPropNameType as WebhookReleaseEditedPropChangesPropNameType, ) - from .group_0734 import ( + from .group_0742 import ( WebhookRepositoryTransferredPropChangesType as WebhookRepositoryTransferredPropChangesType, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationDiscussionCommentType as SecretScanningLocationDiscussionCommentType, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationPullRequestReviewType as SecretScanningLocationPullRequestReviewType, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropCommitPropParentsItemsType as WebhookStatusPropCommitPropParentsItemsType, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropChangesPropPrivacyType as WebhookTeamEditedPropChangesPropPrivacyType, ) - from .group_0779 import ( + from .group_0787 import ( WebhookWorkflowJobQueuedPropWorkflowJobType as WebhookWorkflowJobQueuedPropWorkflowJobType, ) - from .group_0793 import ( + from .group_0801 import ( ApplicationsClientIdTokenScopedPostBodyType as ApplicationsClientIdTokenScopedPostBodyType, ) - from .group_0886 import ( + from .group_0902 import ( OrgsOrgOrganizationRolesRoleIdPatchBodyType as OrgsOrgOrganizationRolesRoleIdPatchBodyType, ) - from .group_0903 import ( + from .group_0919 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsPostBodyType, ) - from .group_0918 import ( + from .group_0934 import ( ProjectsColumnsCardsCardIdMovesPostBodyType as ProjectsColumnsCardsCardIdMovesPostBodyType, ) - from .group_0940 import ( + from .group_0956 import ( ReposOwnerRepoActionsPermissionsPutBodyType as ReposOwnerRepoActionsPermissionsPutBodyType, ) - from .group_0945 import ( + from .group_0961 import ( ReposOwnerRepoActionsRunsGetResponse200Type as ReposOwnerRepoActionsRunsGetResponse200Type, ) - from .group_1027 import ( + from .group_1046 import ( ReposOwnerRepoGitTagsPostBodyPropTaggerType as ReposOwnerRepoGitTagsPostBodyPropTaggerType, ) - from .group_1074 import ( + from .group_1093 import ( ReposOwnerRepoPropertiesValuesPatchBodyType as ReposOwnerRepoPropertiesValuesPatchBodyType, ) - from .group_0094 import ( - OrgsOrgCopilotBillingSeatsGetResponse200Type as OrgsOrgCopilotBillingSeatsGetResponse200Type, + from .group_1168 import ( + SigstoreBundle0PropVerificationMaterialType as SigstoreBundle0PropVerificationMaterialType, ) - from .group_0156 import ( + from .group_0160 import ( RepositoryRuleCodeScanningPropParametersType as RepositoryRuleCodeScanningPropParametersType, ) - from .group_0209 import ( + from .group_0213 import ( ProtectedBranchPropRequiredLinearHistoryType as ProtectedBranchPropRequiredLinearHistoryType, ) - from .group_0265 import ( + from .group_0269 import ( ReposOwnerRepoEnvironmentsGetResponse200Type as ReposOwnerRepoEnvironmentsGetResponse200Type, ) - from .group_0350 import ( + from .group_0354 import ( RepositoryAdvisoryCreatePropCreditsItemsType as RepositoryAdvisoryCreatePropCreditsItemsType, ) - from .group_0352 import ( + from .group_0356 import ( RepositoryAdvisoryUpdatePropCreditsItemsType as RepositoryAdvisoryUpdatePropCreditsItemsType, ) - from .group_0368 import ( + from .group_0372 import ( ScimEnterpriseGroupResponseMergedMembersType as ScimEnterpriseGroupResponseMergedMembersType, ) - from .group_0383 import ( + from .group_0387 import ( CommitSearchResultItemPropCommitPropTreeType as CommitSearchResultItemPropCommitPropTreeType, ) - from .group_0392 import ( + from .group_0396 import ( CodespaceWithFullRepositoryPropGitStatusType as CodespaceWithFullRepositoryPropGitStatusType, ) - from .group_0405 import ( + from .group_0409 import ( RepositoryWebhooksPropTemplateRepositoryType as RepositoryWebhooksPropTemplateRepositoryType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLinksPropCommitsType as WebhooksPullRequest5PropLinksPropCommitsType, ) - from .group_0463 import ( + from .group_0468 import ( WebhookExemptionRequestResponseDismissedType as WebhookExemptionRequestResponseDismissedType, ) - from .group_0464 import ( + from .group_0469 import ( WebhookExemptionRequestResponseSubmittedType as WebhookExemptionRequestResponseSubmittedType, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuiteType as WebhookCheckSuiteCompletedPropCheckSuiteType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuiteType as WebhookCheckSuiteRequestedPropCheckSuiteType, ) - from .group_0476 import ( + from .group_0481 import ( WebhookCodeScanningAlertAppearedInBranchType as WebhookCodeScanningAlertAppearedInBranchType, ) - from .group_0478 import ( + from .group_0483 import ( WebhookCodeScanningAlertCreatedPropAlertType as WebhookCodeScanningAlertCreatedPropAlertType, ) - from .group_0499 import ( + from .group_0504 import ( WebhookDeploymentProtectionRuleRequestedType as WebhookDeploymentProtectionRuleRequestedType, ) - from .group_0563 import ( + from .group_0568 import ( WebhookIssueCommentEditedPropIssueAllof0Type as WebhookIssueCommentEditedPropIssueAllof0Type, ) - from .group_0569 import ( + from .group_0574 import ( WebhookIssueCommentEditedPropIssueAllof1Type as WebhookIssueCommentEditedPropIssueAllof1Type, ) - from .group_0574 import ( + from .group_0579 import ( WebhookIssuesClosedPropIssueMergedLabelsType as WebhookIssuesClosedPropIssueMergedLabelsType, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropAssigneeType as WebhookIssuesEditedPropIssuePropAssigneeType, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropAssigneeType as WebhookIssuesLockedPropIssuePropAssigneeType, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropUserType as WebhookIssuesMilestonedPropIssuePropUserType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropAssigneeType as WebhookIssuesOpenedPropIssuePropAssigneeType, ) - from .group_0636 import ( + from .group_0641 import ( WebhookPersonalAccessTokenRequestCreatedType as WebhookPersonalAccessTokenRequestCreatedType, ) - from .group_0643 import ( + from .group_0648 import ( WebhookProjectCardDeletedPropProjectCardType as WebhookProjectCardDeletedPropProjectCardType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestType as WebhookPullRequestLabeledPropPullRequestType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedType as WebhookPullRequestReviewThreadUnresolvedType, ) - from .group_0701 import ( + from .group_0709 import ( WebhookPushPropCommitsItemsPropCommitterType as WebhookPushPropCommitsItemsPropCommitterType, ) - from .group_0701 import ( + from .group_0709 import ( WebhookPushPropRepositoryPropPermissionsType as WebhookPushPropRepositoryPropPermissionsType, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationPullRequestCommentType as SecretScanningLocationPullRequestCommentType, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropBranchesItemsPropCommitType as WebhookStatusPropBranchesItemsPropCommitType, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropRepositoryPropOwnerType as WebhookTeamEditedPropRepositoryPropOwnerType, ) - from .group_0780 import ( + from .group_0788 import ( WebhookWorkflowJobWaitingPropWorkflowJobType as WebhookWorkflowJobWaitingPropWorkflowJobType, ) - from .group_0835 import ( + from .group_0844 import ( OrgsOrgActionsRunnerGroupsGetResponse200Type as OrgsOrgActionsRunnerGroupsGetResponse200Type, ) - from .group_0893 import ( + from .group_0878 import ( + OrgsOrgCopilotBillingSeatsGetResponse200Type as OrgsOrgCopilotBillingSeatsGetResponse200Type, + ) + from .group_0909 import ( OrgsOrgPersonalAccessTokensPatIdPostBodyType as OrgsOrgPersonalAccessTokensPatIdPostBodyType, ) - from .group_0898 import ( + from .group_0914 import ( OrgsOrgReposPostBodyPropCustomPropertiesType as OrgsOrgReposPostBodyPropCustomPropertiesType, ) - from .group_0915 import ( + from .group_0931 import ( OrgsOrgSecurityProductEnablementPostBodyType as OrgsOrgSecurityProductEnablementPostBodyType, ) - from .group_0990 import ( + from .group_1009 import ( ReposOwnerRepoCodeScanningSarifsPostBodyType as ReposOwnerRepoCodeScanningSarifsPostBodyType, ) - from .group_0999 import ( + from .group_1018 import ( ReposOwnerRepoCommentsCommentIdPatchBodyType as ReposOwnerRepoCommentsCommentIdPatchBodyType, ) - from .group_1010 import ( + from .group_1029 import ( ReposOwnerRepoDeploymentsPostResponse202Type as ReposOwnerRepoDeploymentsPostResponse202Type, ) - from .group_1031 import ( + from .group_1050 import ( ReposOwnerRepoHooksHookIdConfigPatchBodyType as ReposOwnerRepoHooksHookIdConfigPatchBodyType, ) - from .group_1041 import ( + from .group_1060 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyType as ReposOwnerRepoIssuesIssueNumberPatchBodyType, ) - from .group_1097 import ( + from .group_1116 import ( ReposOwnerRepoReleasesReleaseIdPatchBodyType as ReposOwnerRepoReleasesReleaseIdPatchBodyType, ) from .group_0025 import ( ServerStatisticsItemsPropGheStatsPropOrgsType as ServerStatisticsItemsPropGheStatsPropOrgsType, ) - from .group_0154 import ( + from .group_0158 import ( RepositoryRuleParamsWorkflowFileReferenceType as RepositoryRuleParamsWorkflowFileReferenceType, ) - from .group_0188 import ( + from .group_0192 import ( EnvironmentApprovalsPropEnvironmentsItemsType as EnvironmentApprovalsPropEnvironmentsItemsType, ) - from .group_0201 import ( + from .group_0205 import ( BranchProtectionPropRequiredLinearHistoryType as BranchProtectionPropRequiredLinearHistoryType, ) - from .group_0234 import ( + from .group_0238 import ( CodespacesPermissionsCheckForDevcontainerType as CodespacesPermissionsCheckForDevcontainerType, ) - from .group_0265 import ( + from .group_0269 import ( EnvironmentPropProtectionRulesItemsAnyof0Type as EnvironmentPropProtectionRulesItemsAnyof0Type, ) - from .group_0265 import ( + from .group_0269 import ( EnvironmentPropProtectionRulesItemsAnyof2Type as EnvironmentPropProtectionRulesItemsAnyof2Type, ) - from .group_0266 import ( + from .group_0270 import ( EnvironmentPropProtectionRulesItemsAnyof1Type as EnvironmentPropProtectionRulesItemsAnyof1Type, ) - from .group_0268 import ( + from .group_0272 import ( DeploymentBranchPolicyNamePatternWithTypeType as DeploymentBranchPolicyNamePatternWithTypeType, ) - from .group_0305 import ( + from .group_0309 import ( PullRequestReviewCommentPropLinksPropHtmlType as PullRequestReviewCommentPropLinksPropHtmlType, ) - from .group_0305 import ( + from .group_0309 import ( PullRequestReviewCommentPropLinksPropSelfType as PullRequestReviewCommentPropLinksPropSelfType, ) - from .group_0326 import ( + from .group_0330 import ( PullRequestReviewPropLinksPropPullRequestType as PullRequestReviewPropLinksPropPullRequestType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLinksPropCommentsType as WebhooksPullRequest5PropLinksPropCommentsType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLinksPropStatusesType as WebhooksPullRequest5PropLinksPropStatusesType, ) - from .group_0470 import ( + from .group_0475 import ( WebhookCheckRunRequestedActionFormEncodedType as WebhookCheckRunRequestedActionFormEncodedType, ) - from .group_0480 import ( + from .group_0485 import ( WebhookCodeScanningAlertReopenedPropAlertType as WebhookCodeScanningAlertReopenedPropAlertType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDiscussionCommentEditedPropChangesType as WebhookDiscussionCommentEditedPropChangesType, ) - from .group_0532 import ( + from .group_0537 import ( WebhookInstallationNewPermissionsAcceptedType as WebhookInstallationNewPermissionsAcceptedType, ) - from .group_0541 import ( + from .group_0546 import ( WebhookIssueCommentCreatedPropIssueAllof0Type as WebhookIssueCommentCreatedPropIssueAllof0Type, ) - from .group_0547 import ( + from .group_0552 import ( WebhookIssueCommentCreatedPropIssueAllof1Type as WebhookIssueCommentCreatedPropIssueAllof1Type, ) - from .group_0552 import ( + from .group_0557 import ( WebhookIssueCommentDeletedPropIssueAllof0Type as WebhookIssueCommentDeletedPropIssueAllof0Type, ) - from .group_0558 import ( + from .group_0563 import ( WebhookIssueCommentDeletedPropIssueAllof1Type as WebhookIssueCommentDeletedPropIssueAllof1Type, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropAssigneeType as WebhookIssuesDeletedPropIssuePropAssigneeType, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropMilestoneType as WebhookIssuesEditedPropIssuePropMilestoneType, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropReactionsType as WebhookIssuesEditedPropIssuePropReactionsType, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropAssigneeType as WebhookIssuesLabeledPropIssuePropAssigneeType, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropMilestoneType as WebhookIssuesLockedPropIssuePropMilestoneType, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropReactionsType as WebhookIssuesLockedPropIssuePropReactionsType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropMilestoneType as WebhookIssuesOpenedPropIssuePropMilestoneType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropReactionsType as WebhookIssuesOpenedPropIssuePropReactionsType, ) - from .group_0606 import ( + from .group_0611 import ( WebhookMemberAddedPropChangesPropRoleNameType as WebhookMemberAddedPropChangesPropRoleNameType, ) - from .group_0631 import ( + from .group_0636 import ( WebhookPackageUpdatedPropPackagePropOwnerType as WebhookPackageUpdatedPropPackagePropOwnerType, ) - from .group_0634 import ( + from .group_0639 import ( WebhookPersonalAccessTokenRequestApprovedType as WebhookPersonalAccessTokenRequestApprovedType, ) - from .group_0660 import ( + from .group_0665 import ( WebhookProjectsV2ProjectEditedPropChangesType as WebhookProjectsV2ProjectEditedPropChangesType, ) - from .group_0662 import ( + from .group_0667 import ( WebhookProjectsV2ItemConvertedPropChangesType as WebhookProjectsV2ItemConvertedPropChangesType, ) - from .group_0666 import ( + from .group_0671 import ( WebhookProjectsV2ItemReorderedPropChangesType as WebhookProjectsV2ItemReorderedPropChangesType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestType as WebhookPullRequestAssignedPropPullRequestType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestType as WebhookPullRequestDequeuedPropPullRequestType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestType as WebhookPullRequestEnqueuedPropPullRequestType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropChangesType as WebhookPullRequestReviewEditedPropChangesType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestType as WebhookPullRequestUnlockedPropPullRequestType, ) - from .group_0729 import ( + from .group_0737 import ( WebhookRepositoryRulesetEditedPropChangesType as WebhookRepositoryRulesetEditedPropChangesType, ) - from .group_0736 import ( + from .group_0744 import ( WebhookRepositoryVulnerabilityAlertCreateType as WebhookRepositoryVulnerabilityAlertCreateType, ) - from .group_0738 import ( + from .group_0746 import ( WebhookRepositoryVulnerabilityAlertReopenType as WebhookRepositoryVulnerabilityAlertReopenType, ) - from .group_0741 import ( + from .group_0749 import ( WebhookSecretScanningAlertLocationCreatedType as WebhookSecretScanningAlertLocationCreatedType, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropCommitPropCommitPropTreeType as WebhookStatusPropCommitPropCommitPropTreeType, ) - from .group_0767 import ( + from .group_0775 import ( WebhookTeamCreatedPropRepositoryPropOwnerType as WebhookTeamCreatedPropRepositoryPropOwnerType, ) - from .group_0768 import ( + from .group_0776 import ( WebhookTeamDeletedPropRepositoryPropOwnerType as WebhookTeamDeletedPropRepositoryPropOwnerType, ) - from .group_0860 import ( + from .group_0865 import ( + OrgsOrgCodeSecurityConfigurationsPostBodyType as OrgsOrgCodeSecurityConfigurationsPostBodyType, + ) + from .group_0875 import ( OrgsOrgCodespacesSecretsSecretNamePutBodyType as OrgsOrgCodespacesSecretsSecretNamePutBodyType, ) - from .group_0873 import ( + from .group_0889 import ( OrgsOrgDependabotSecretsSecretNamePutBodyType as OrgsOrgDependabotSecretsSecretNamePutBodyType, ) - from .group_0913 import ( + from .group_0929 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType, ) from .group_0977 import ( + ReposOwnerRepoAttestationsPostResponse201Type as ReposOwnerRepoAttestationsPostResponse201Type, + ) + from .group_0996 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputType as ReposOwnerRepoCheckRunsPostBodyPropOutputType, ) - from .group_0995 import ( + from .group_1014 import ( ReposOwnerRepoCodespacesNewGetResponse200Type as ReposOwnerRepoCodespacesNewGetResponse200Type, ) - from .group_1061 import ( + from .group_1080 import ( ReposOwnerRepoNotificationsPutResponse202Type as ReposOwnerRepoNotificationsPutResponse202Type, ) - from .group_1082 import ( + from .group_1101 import ( ReposOwnerRepoPullsPullNumberMergePutBodyType as ReposOwnerRepoPullsPullNumberMergePutBodyType, ) - from .group_1122 import ( + from .group_1141 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBodyType as TeamsTeamIdTeamSyncGroupMappingsPatchBodyType, ) - from .group_1140 import ( + from .group_1159 import ( UserInteractionLimitsGetResponse200Anyof1Type as UserInteractionLimitsGetResponse200Anyof1Type, ) from .group_0025 import ( @@ -3124,172 +3171,172 @@ from .group_0027 import ( ActionsOidcCustomIssuerPolicyForEnterpriseType as ActionsOidcCustomIssuerPolicyForEnterpriseType, ) - from .group_0056 import ( + from .group_0059 import ( AdvancedSecurityActiveCommittersRepositoryType as AdvancedSecurityActiveCommittersRepositoryType, ) - from .group_0076 import ( + from .group_0079 import ( MarketplacePurchasePropMarketplacePurchaseType as MarketplacePurchasePropMarketplacePurchaseType, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrantRequestType as OrganizationProgrammaticAccessGrantRequestType, ) - from .group_0151 import ( + from .group_0155 import ( RepositoryRuleTagNamePatternPropParametersType as RepositoryRuleTagNamePatternPropParametersType, ) - from .group_0162 import ( + from .group_0166 import ( RepositoryAdvisoryVulnerabilityPropPackageType as RepositoryAdvisoryVulnerabilityPropPackageType, ) - from .group_0320 import ( + from .group_0324 import ( PullRequestPropHeadPropRepoPropPermissionsType as PullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0322 import ( + from .group_0326 import ( PullRequestPropBasePropRepoPropPermissionsType as PullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0379 import ( + from .group_0383 import ( ScimUserPropOperationsItemsPropValueOneof1Type as ScimUserPropOperationsItemsPropValueOneof1Type, ) - from .group_0383 import ( + from .group_0387 import ( CommitSearchResultItemPropCommitPropAuthorType as CommitSearchResultItemPropCommitPropAuthorType, ) - from .group_0447 import ( + from .group_0452 import ( WebhooksReleasePropAssetsItemsPropUploaderType as WebhooksReleasePropAssetsItemsPropUploaderType, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuiteType as WebhookCheckSuiteRerequestedPropCheckSuiteType, ) - from .group_0485 import ( + from .group_0490 import ( WebhookCustomPropertyDeletedPropDefinitionType as WebhookCustomPropertyDeletedPropDefinitionType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropCheckRunType as WebhookDeploymentStatusCreatedPropCheckRunType, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDiscussionEditedPropChangesPropBodyType as WebhookDiscussionEditedPropChangesPropBodyType, ) - from .group_0526 import ( + from .group_0531 import ( WebhookForkPropForkeeAllof0PropPermissionsType as WebhookForkPropForkeeAllof0PropPermissionsType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookIssuesClosedPropIssueMergedAssigneeType as WebhookIssuesClosedPropIssueMergedAssigneeType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookIssuesClosedPropIssueAllof0PropUserType as WebhookIssuesClosedPropIssueAllof0PropUserType, ) - from .group_0581 import ( + from .group_0586 import ( WebhookIssuesClosedPropIssueAllof1PropUserType as WebhookIssuesClosedPropIssueAllof1PropUserType, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropMilestoneType as WebhookIssuesDeletedPropIssuePropMilestoneType, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropReactionsType as WebhookIssuesDeletedPropIssuePropReactionsType, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropUserType as WebhookIssuesDemilestonedPropIssuePropUserType, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropMilestoneType as WebhookIssuesLabeledPropIssuePropMilestoneType, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropReactionsType as WebhookIssuesLabeledPropIssuePropReactionsType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssueType as WebhookIssuesOpenedPropChangesPropOldIssueType, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropAssigneeType as WebhookIssuesReopenedPropIssuePropAssigneeType, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropAssigneeType as WebhookIssuesUnlockedPropIssuePropAssigneeType, ) - from .group_0617 import ( + from .group_0622 import ( WebhookMilestoneEditedPropChangesPropDueOnType as WebhookMilestoneEditedPropChangesPropDueOnType, ) - from .group_0617 import ( + from .group_0622 import ( WebhookMilestoneEditedPropChangesPropTitleType as WebhookMilestoneEditedPropChangesPropTitleType, ) - from .group_0635 import ( + from .group_0640 import ( WebhookPersonalAccessTokenRequestCancelledType as WebhookPersonalAccessTokenRequestCancelledType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestType as WebhookPullRequestUnlabeledPropPullRequestType, ) - from .group_0737 import ( + from .group_0745 import ( WebhookRepositoryVulnerabilityAlertDismissType as WebhookRepositoryVulnerabilityAlertDismissType, ) - from .group_0739 import ( + from .group_0747 import ( WebhookRepositoryVulnerabilityAlertResolveType as WebhookRepositoryVulnerabilityAlertResolveType, ) - from .group_0766 import ( + from .group_0774 import ( WebhookTeamAddedToRepositoryPropRepositoryType as WebhookTeamAddedToRepositoryPropRepositoryType, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropChangesPropRepositoryType as WebhookTeamEditedPropChangesPropRepositoryType, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropRepositoryPropLicenseType as WebhookTeamEditedPropRepositoryPropLicenseType, ) - from .group_0773 import ( + from .group_0781 import ( WebhookWorkflowJobCompletedPropWorkflowJobType as WebhookWorkflowJobCompletedPropWorkflowJobType, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunType as WebhookWorkflowRunCompletedPropWorkflowRunType, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunType as WebhookWorkflowRunRequestedPropWorkflowRunType, ) - from .group_0784 import ( + from .group_0792 import ( AppManifestsCodeConversionsPostResponse201Type as AppManifestsCodeConversionsPostResponse201Type, ) - from .group_0844 import ( + from .group_0853 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0863 import ( + from .group_0879 import ( OrgsOrgCopilotBillingSelectedTeamsPostBodyType as OrgsOrgCopilotBillingSelectedTeamsPostBodyType, ) - from .group_0867 import ( + from .group_0883 import ( OrgsOrgCopilotBillingSelectedUsersPostBodyType as OrgsOrgCopilotBillingSelectedUsersPostBodyType, ) - from .group_0871 import ( + from .group_0887 import ( OrgsOrgCustomRepositoryRolesGetResponse200Type as OrgsOrgCustomRepositoryRolesGetResponse200Type, ) - from .group_0887 import ( + from .group_0903 import ( OrgsOrgOutsideCollaboratorsUsernamePutBodyType as OrgsOrgOutsideCollaboratorsUsernamePutBodyType, ) - from .group_0890 import ( + from .group_0906 import ( OrgsOrgPersonalAccessTokenRequestsPostBodyType as OrgsOrgPersonalAccessTokenRequestsPostBodyType, ) - from .group_0923 import ( + from .group_0939 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0Type as ProjectsColumnsColumnIdCardsPostBodyOneof0Type, ) - from .group_0924 import ( + from .group_0940 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1Type as ProjectsColumnsColumnIdCardsPostBodyOneof1Type, ) - from .group_0941 import ( + from .group_0957 import ( ReposOwnerRepoActionsRunnersGetResponse200Type as ReposOwnerRepoActionsRunnersGetResponse200Type, ) - from .group_0952 import ( + from .group_0968 import ( ReposOwnerRepoActionsSecretsGetResponse200Type as ReposOwnerRepoActionsSecretsGetResponse200Type, ) - from .group_0976 import ( + from .group_0995 import ( ReposOwnerRepoBranchesBranchRenamePostBodyType as ReposOwnerRepoBranchesBranchRenamePostBodyType, ) - from .group_0998 import ( + from .group_1017 import ( ReposOwnerRepoCollaboratorsUsernamePutBodyType as ReposOwnerRepoCollaboratorsUsernamePutBodyType, ) - from .group_1024 import ( + from .group_1043 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthorType as ReposOwnerRepoGitCommitsPostBodyPropAuthorType, ) - from .group_1051 import ( + from .group_1070 import ( ReposOwnerRepoIssuesIssueNumberLockPutBodyType as ReposOwnerRepoIssuesIssueNumberLockPutBodyType, ) - from .group_1062 import ( + from .group_1081 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type as ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ) - from .group_1120 import ( + from .group_1139 import ( TeamsTeamIdProjectsProjectIdPutResponse403Type as TeamsTeamIdProjectsProjectIdPutResponse403Type, ) - from .group_1133 import ( + from .group_1152 import ( UserCodespacesCodespaceNamePublishPostBodyType as UserCodespacesCodespaceNamePublishPostBodyType, ) from .group_0025 import ( @@ -3298,5586 +3345,5700 @@ from .group_0025 import ( ServerStatisticsPackagesPropEcosystemsItemsType as ServerStatisticsPackagesPropEcosystemsItemsType, ) - from .group_0052 import ( + from .group_0055 import ( DependabotAlertWithRepositoryPropDependencyType as DependabotAlertWithRepositoryPropDependencyType, ) - from .group_0055 import ( + from .group_0058 import ( ActionsBillingUsagePropMinutesUsedBreakdownType as ActionsBillingUsagePropMinutesUsedBreakdownType, ) - from .group_0223 import ( + from .group_0227 import ( CodeScanningVariantAnalysisSkippedRepoGroupType as CodeScanningVariantAnalysisSkippedRepoGroupType, ) - from .group_0297 import ( + from .group_0301 import ( RemovedFromProjectIssueEventPropProjectCardType as RemovedFromProjectIssueEventPropProjectCardType, ) - from .group_0409 import ( + from .group_0413 import ( ExemptionRequestSecretScanningPropDataItemsType as ExemptionRequestSecretScanningPropDataItemsType, ) - from .group_0430 import ( + from .group_0434 import ( WebhooksPreviousMarketplacePurchasePropPlanType as WebhooksPreviousMarketplacePurchasePropPlanType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropRequestedTeamsItemsType as WebhooksPullRequest5PropRequestedTeamsItemsType, ) - from .group_0448 import ( + from .group_0453 import ( WebhooksRelease1PropAssetsItemsPropUploaderType as WebhooksRelease1PropAssetsItemsPropUploaderType, ) - from .group_0451 import ( + from .group_0456 import ( WebhooksSecurityAdvisoryPropReferencesItemsType as WebhooksSecurityAdvisoryPropReferencesItemsType, ) - from .group_0456 import ( + from .group_0461 import ( WebhookBranchProtectionConfigurationEnabledType as WebhookBranchProtectionConfigurationEnabledType, ) - from .group_0505 import ( + from .group_0510 import ( WebhookDiscussionCategoryChangedPropChangesType as WebhookDiscussionCategoryChangedPropChangesType, ) - from .group_0512 import ( + from .group_0517 import ( WebhookDiscussionEditedPropChangesPropTitleType as WebhookDiscussionEditedPropChangesPropTitleType, ) - from .group_0536 import ( + from .group_0541 import ( WebhookInstallationTargetRenamedPropAccountType as WebhookInstallationTargetRenamedPropAccountType, ) - from .group_0536 import ( + from .group_0541 import ( WebhookInstallationTargetRenamedPropChangesType as WebhookInstallationTargetRenamedPropChangesType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookIssuesClosedPropIssueMergedAssigneesType as WebhookIssuesClosedPropIssueMergedAssigneesType, ) - from .group_0574 import ( + from .group_0579 import ( WebhookIssuesClosedPropIssueMergedReactionsType as WebhookIssuesClosedPropIssueMergedReactionsType, ) - from .group_0582 import ( + from .group_0587 import ( WebhookIssuesClosedPropIssueMergedMilestoneType as WebhookIssuesClosedPropIssueMergedMilestoneType, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropLabelsItemsType as WebhookIssuesEditedPropIssuePropLabelsItemsType, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropPullRequestType as WebhookIssuesEditedPropIssuePropPullRequestType, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropLabelsItemsType as WebhookIssuesLockedPropIssuePropLabelsItemsType, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropPullRequestType as WebhookIssuesLockedPropIssuePropPullRequestType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropLabelsItemsType as WebhookIssuesOpenedPropIssuePropLabelsItemsType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropPullRequestType as WebhookIssuesOpenedPropIssuePropPullRequestType, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropMilestoneType as WebhookIssuesReopenedPropIssuePropMilestoneType, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropReactionsType as WebhookIssuesReopenedPropIssuePropReactionsType, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropMilestoneType as WebhookIssuesUnlockedPropIssuePropMilestoneType, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropReactionsType as WebhookIssuesUnlockedPropIssuePropReactionsType, ) - from .group_0606 import ( + from .group_0611 import ( WebhookMemberAddedPropChangesPropPermissionType as WebhookMemberAddedPropChangesPropPermissionType, ) - from .group_0628 import ( + from .group_0633 import ( WebhookPackagePublishedPropPackagePropOwnerType as WebhookPackagePublishedPropPackagePropOwnerType, ) - from .group_0644 import ( + from .group_0649 import ( WebhookProjectCardEditedPropChangesPropNoteType as WebhookProjectCardEditedPropChangesPropNoteType, ) - from .group_0677 import ( + from .group_0685 import ( WebhookPullRequestEditedPropChangesPropBaseType as WebhookPullRequestEditedPropChangesPropBaseType, ) - from .group_0677 import ( + from .group_0685 import ( WebhookPullRequestEditedPropChangesPropBodyType as WebhookPullRequestEditedPropChangesPropBodyType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropReviewType as WebhookPullRequestReviewDismissedPropReviewType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestType as WebhookPullRequestUnassignedPropPullRequestType, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropCommitPropCommitPropAuthorType as WebhookStatusPropCommitPropCommitPropAuthorType, ) - from .group_0767 import ( + from .group_0775 import ( WebhookTeamCreatedPropRepositoryPropLicenseType as WebhookTeamCreatedPropRepositoryPropLicenseType, ) - from .group_0768 import ( + from .group_0776 import ( WebhookTeamDeletedPropRepositoryPropLicenseType as WebhookTeamDeletedPropRepositoryPropLicenseType, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropChangesPropDescriptionType as WebhookTeamEditedPropChangesPropDescriptionType, ) - from .group_0776 import ( + from .group_0784 import ( WebhookWorkflowJobInProgressPropWorkflowJobType as WebhookWorkflowJobInProgressPropWorkflowJobType, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunType as WebhookWorkflowRunInProgressPropWorkflowRunType, ) - from .group_0845 import ( + from .group_0854 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0909 import ( + from .group_0925 import ( OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType as OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType, ) - from .group_0916 import ( + from .group_0932 import ( ProjectsColumnsCardsCardIdDeleteResponse403Type as ProjectsColumnsCardsCardIdDeleteResponse403Type, ) - from .group_0925 import ( + from .group_0941 import ( ProjectsColumnsColumnIdCardsPostResponse503Type as ProjectsColumnsColumnIdCardsPostResponse503Type, ) - from .group_0927 import ( + from .group_0943 import ( ProjectsColumnsColumnIdMovesPostResponse201Type as ProjectsColumnsColumnIdMovesPostResponse201Type, ) - from .group_0936 import ( + from .group_0952 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBodyType as ReposOwnerRepoActionsJobsJobIdRerunPostBodyType, ) - from .group_0950 import ( + from .group_0966 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunPostBodyType, ) - from .group_0956 import ( + from .group_0972 import ( ReposOwnerRepoActionsVariablesNamePatchBodyType as ReposOwnerRepoActionsVariablesNamePatchBodyType, ) - from .group_1003 import ( + from .group_1022 import ( ReposOwnerRepoContentsPathPutBodyPropAuthorType as ReposOwnerRepoContentsPathPutBodyPropAuthorType, ) - from .group_1028 import ( + from .group_1047 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItemsType as ReposOwnerRepoGitTreesPostBodyPropTreeItemsType, ) - from .group_1096 import ( + from .group_1115 import ( ReposOwnerRepoReleasesGenerateNotesPostBodyType as ReposOwnerRepoReleasesGenerateNotesPostBodyType, ) - from .group_1108 import ( + from .group_1127 import ( ScimV2OrganizationsOrgUsersPostBodyPropNameType as ScimV2OrganizationsOrgUsersPostBodyPropNameType, ) - from .group_1126 import ( + from .group_1145 import ( UserCodespacesPostBodyOneof1PropPullRequestType as UserCodespacesPostBodyOneof1PropPullRequestType, ) - from .group_0050 import ( + from .group_0053 import ( DependabotAlertSecurityAdvisoryPropCwesItemsType as DependabotAlertSecurityAdvisoryPropCwesItemsType, ) - from .group_0053 import ( + from .group_0056 import ( GetLicenseSyncStatusPropServerInstancesItemsType as GetLicenseSyncStatusPropServerInstancesItemsType, ) - from .group_0096 import ( + from .group_0098 import ( OrganizationCustomRepositoryRoleCreateSchemaType as OrganizationCustomRepositoryRoleCreateSchemaType, ) - from .group_0097 import ( + from .group_0099 import ( OrganizationCustomRepositoryRoleUpdateSchemaType as OrganizationCustomRepositoryRoleUpdateSchemaType, ) - from .group_0141 import ( + from .group_0145 import ( RepositoryRuleParamsStatusCheckConfigurationType as RepositoryRuleParamsStatusCheckConfigurationType, ) - from .group_0293 import ( + from .group_0297 import ( ReviewDismissedIssueEventPropDismissedReviewType as ReviewDismissedIssueEventPropDismissedReviewType, ) - from .group_0380 import ( + from .group_0384 import ( SearchResultTextMatchesItemsPropMatchesItemsType as SearchResultTextMatchesItemsPropMatchesItemsType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropMilestonePropCreatorType as WebhooksPullRequest5PropMilestonePropCreatorType, ) - from .group_0451 import ( + from .group_0456 import ( WebhooksSecurityAdvisoryPropIdentifiersItemsType as WebhooksSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0455 import ( + from .group_0460 import ( WebhookBranchProtectionConfigurationDisabledType as WebhookBranchProtectionConfigurationDisabledType, ) - from .group_0459 import ( + from .group_0464 import ( WebhookBranchProtectionRuleEditedPropChangesType as WebhookBranchProtectionRuleEditedPropChangesType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentType as WebhookDeploymentStatusCreatedPropDeploymentType, ) - from .group_0562 import ( + from .group_0567 import ( WebhookIssueCommentEditedPropIssueMergedUserType as WebhookIssueCommentEditedPropIssueMergedUserType, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropLabelsItemsType as WebhookIssuesDeletedPropIssuePropLabelsItemsType, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropPullRequestType as WebhookIssuesDeletedPropIssuePropPullRequestType, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropLabelsItemsType as WebhookIssuesLabeledPropIssuePropLabelsItemsType, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropPullRequestType as WebhookIssuesLabeledPropIssuePropPullRequestType, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropAssigneeType as WebhookIssuesMilestonedPropIssuePropAssigneeType, ) - from .group_0600 import ( + from .group_0605 import ( WebhookLabelEditedPropChangesPropDescriptionType as WebhookLabelEditedPropChangesPropDescriptionType, ) - from .group_0607 import ( + from .group_0612 import ( WebhookMemberEditedPropChangesPropPermissionType as WebhookMemberEditedPropChangesPropPermissionType, ) - from .group_0626 import ( + from .group_0631 import ( WebhookRubygemsMetadataPropDependenciesItemsType as WebhookRubygemsMetadataPropDependenciesItemsType, ) - from .group_0631 import ( + from .group_0636 import ( WebhookPackageUpdatedPropPackagePropRegistryType as WebhookPackageUpdatedPropPackagePropRegistryType, ) - from .group_0646 import ( + from .group_0651 import ( WebhookProjectCardMovedPropProjectCardAllof0Type as WebhookProjectCardMovedPropProjectCardAllof0Type, ) - from .group_0647 import ( + from .group_0652 import ( WebhookProjectCardMovedPropProjectCardAllof1Type as WebhookProjectCardMovedPropProjectCardAllof1Type, ) - from .group_0665 import ( + from .group_0670 import ( WebhookProjectsV2ItemEditedPropChangesOneof0Type as WebhookProjectsV2ItemEditedPropChangesOneof0Type, ) - from .group_0665 import ( + from .group_0670 import ( WebhookProjectsV2ItemEditedPropChangesOneof1Type as WebhookProjectsV2ItemEditedPropChangesOneof1Type, ) - from .group_0677 import ( + from .group_0685 import ( WebhookPullRequestEditedPropChangesPropTitleType as WebhookPullRequestEditedPropChangesPropTitleType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0Type, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1Type, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestType as WebhookPullRequestSynchronizePropPullRequestType, ) - from .group_0721 import ( + from .group_0729 import ( WebhookRepositoryEditedPropChangesPropTopicsType as WebhookRepositoryEditedPropChangesPropTopicsType, ) - from .group_0834 import ( + from .group_0843 import ( OrgsOrgActionsPermissionsRepositoriesPutBodyType as OrgsOrgActionsPermissionsRepositoriesPutBodyType, ) - from .group_0857 import ( + from .group_0872 import ( OrgsOrgCodespacesAccessSelectedUsersPostBodyType as OrgsOrgCodespacesAccessSelectedUsersPostBodyType, ) - from .group_0865 import ( + from .group_0881 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType as OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType, ) - from .group_0869 import ( + from .group_0885 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBodyType as OrgsOrgCopilotBillingSelectedUsersDeleteBodyType, ) - from .group_0880 import ( + from .group_0896 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1Type as OrgsOrgInteractionLimitsGetResponse200Anyof1Type, ) - from .group_0911 import ( + from .group_0927 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType, ) - from .group_0935 import ( + from .group_0951 import ( ReposOwnerRepoActionsArtifactsGetResponse200Type as ReposOwnerRepoActionsArtifactsGetResponse200Type, ) - from .group_0954 import ( + from .group_0970 import ( ReposOwnerRepoActionsVariablesGetResponse200Type as ReposOwnerRepoActionsVariablesGetResponse200Type, ) - from .group_0957 import ( + from .group_0973 import ( ReposOwnerRepoActionsWorkflowsGetResponse200Type as ReposOwnerRepoActionsWorkflowsGetResponse200Type, ) - from .group_1034 import ( + from .group_0976 import ( + ReposOwnerRepoAttestationsPostBodyPropBundleType as ReposOwnerRepoAttestationsPostBodyPropBundleType, + ) + from .group_1053 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType as ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType, ) - from .group_1088 import ( + from .group_1107 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsPostBodyType, ) - from .group_1095 import ( + from .group_1114 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType as ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType, ) - from .group_1109 import ( + from .group_1128 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyType as ScimV2OrganizationsOrgUsersScimUserIdPutBodyType, ) from .group_0025 import ( ServerStatisticsItemsPropGheStatsPropCommentsType as ServerStatisticsItemsPropGheStatsPropCommentsType, ) - from .group_0125 import ( + from .group_0129 import ( RepositoryRulesetConditionsRepositoryIdTargetType as RepositoryRulesetConditionsRepositoryIdTargetType, ) - from .group_0149 import ( + from .group_0153 import ( RepositoryRuleBranchNamePatternPropParametersType as RepositoryRuleBranchNamePatternPropParametersType, ) - from .group_0200 import ( + from .group_0204 import ( BranchRestrictionPolicyPropAppsItemsPropOwnerType as BranchRestrictionPolicyPropAppsItemsPropOwnerType, ) - from .group_0210 import ( + from .group_0214 import ( ProtectedBranchPropRequiredPullRequestReviewsType as ProtectedBranchPropRequiredPullRequestReviewsType, ) - from .group_0296 import ( + from .group_0300 import ( MovedColumnInProjectIssueEventPropProjectCardType as MovedColumnInProjectIssueEventPropProjectCardType, ) - from .group_0298 import ( + from .group_0302 import ( ConvertedNoteToIssueIssueEventPropProjectCardType as ConvertedNoteToIssueIssueEventPropProjectCardType, ) - from .group_0304 import ( + from .group_0308 import ( TimelineReviewedEventPropLinksPropPullRequestType as TimelineReviewedEventPropLinksPropPullRequestType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropBasePropRepoPropOwnerType as WebhooksPullRequest5PropBasePropRepoPropOwnerType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropHeadPropRepoPropOwnerType as WebhooksPullRequest5PropHeadPropRepoPropOwnerType, ) - from .group_0445 import ( + from .group_0450 import ( WebhooksReviewCommentPropLinksPropPullRequestType as WebhooksReviewCommentPropLinksPropPullRequestType, ) - from .group_0477 import ( + from .group_0482 import ( WebhookCodeScanningAlertClosedByUserPropAlertType as WebhookCodeScanningAlertClosedByUserPropAlertType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunType as WebhookDeploymentStatusCreatedPropWorkflowRunType, ) - from .group_0539 import ( + from .group_0544 import ( WebhookIssueCommentCreatedPropCommentPropUserType as WebhookIssueCommentCreatedPropCommentPropUserType, ) - from .group_0540 import ( + from .group_0545 import ( WebhookIssueCommentCreatedPropIssueMergedUserType as WebhookIssueCommentCreatedPropIssueMergedUserType, ) - from .group_0551 import ( + from .group_0556 import ( WebhookIssueCommentDeletedPropIssueMergedUserType as WebhookIssueCommentDeletedPropIssueMergedUserType, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropMilestoneType as WebhookIssuesMilestonedPropIssuePropMilestoneType, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropReactionsType as WebhookIssuesMilestonedPropIssuePropReactionsType, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropLabelsItemsType as WebhookIssuesReopenedPropIssuePropLabelsItemsType, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropPullRequestType as WebhookIssuesReopenedPropIssuePropPullRequestType, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropLabelsItemsType as WebhookIssuesUnlockedPropIssuePropLabelsItemsType, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropPullRequestType as WebhookIssuesUnlockedPropIssuePropPullRequestType, ) - from .group_0651 import ( + from .group_0656 import ( WebhookProjectColumnEditedPropChangesPropNameType as WebhookProjectColumnEditedPropChangesPropNameType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestType as WebhookPullRequestReviewEditedPropPullRequestType, ) - from .group_0701 import ( + from .group_0709 import ( WebhookPushPropRepositoryPropCustomPropertiesType as WebhookPushPropRepositoryPropCustomPropertiesType, ) - from .group_0710 import ( + from .group_0718 import ( WebhookReleaseEditedPropChangesPropMakeLatestType as WebhookReleaseEditedPropChangesPropMakeLatestType, ) - from .group_0751 import ( + from .group_0759 import ( WebhookSecurityAndAnalysisPropChangesPropFromType as WebhookSecurityAndAnalysisPropChangesPropFromType, ) - from .group_0931 import ( + from .group_0947 import ( ProjectsProjectIdCollaboratorsUsernamePutBodyType as ProjectsProjectIdCollaboratorsUsernamePutBodyType, ) - from .group_0953 import ( + from .group_0969 import ( ReposOwnerRepoActionsSecretsSecretNamePutBodyType as ReposOwnerRepoActionsSecretsSecretNamePutBodyType, ) - from .group_0961 import ( + from .group_0980 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyType as ReposOwnerRepoBranchesBranchProtectionPutBodyType, ) - from .group_0984 import ( + from .group_1003 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyType, ) - from .group_0996 import ( + from .group_1015 import ( ReposOwnerRepoCodespacesSecretsGetResponse200Type as ReposOwnerRepoCodespacesSecretsGetResponse200Type, ) - from .group_1006 import ( + from .group_1025 import ( ReposOwnerRepoDependabotSecretsGetResponse200Type as ReposOwnerRepoDependabotSecretsGetResponse200Type, ) - from .group_1024 import ( + from .group_1043 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitterType as ReposOwnerRepoGitCommitsPostBodyPropCommitterType, ) - from .group_1076 import ( + from .group_1095 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBodyType as ReposOwnerRepoPullsCommentsCommentIdPatchBodyType, ) - from .group_1080 import ( + from .group_1099 import ( ReposOwnerRepoPullsPullNumberCommentsPostBodyType as ReposOwnerRepoPullsPullNumberCommentsPostBodyType, ) - from .group_0409 import ( + from .group_0413 import ( ExemptionRequestPushRulesetBypassPropDataItemsType as ExemptionRequestPushRulesetBypassPropDataItemsType, ) - from .group_0430 import ( + from .group_0434 import ( WebhooksPreviousMarketplacePurchasePropAccountType as WebhooksPreviousMarketplacePurchasePropAccountType, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsAddedType as PersonalAccessTokenRequestPropPermissionsAddedType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropAutoMergePropEnabledByType as WebhooksPullRequest5PropAutoMergePropEnabledByType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLinksPropReviewCommentType as WebhooksPullRequest5PropLinksPropReviewCommentType, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCodeScanningAlertFixedPropAlertPropRuleType as WebhookCodeScanningAlertFixedPropAlertPropRuleType, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCodeScanningAlertFixedPropAlertPropToolType as WebhookCodeScanningAlertFixedPropAlertPropToolType, ) - from .group_0482 import ( + from .group_0487 import ( WebhookCommitCommentCreatedPropCommentPropUserType as WebhookCommitCommentCreatedPropCommentPropUserType, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunType as WebhookDeploymentReviewApprovedPropWorkflowRunType, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunType as WebhookDeploymentReviewRejectedPropWorkflowRunType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneeType as WebhookIssuesClosedPropIssueAllof0PropAssigneeType, ) - from .group_0581 import ( + from .group_0586 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneeType as WebhookIssuesClosedPropIssueAllof1PropAssigneeType, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropAssigneeType as WebhookIssuesDemilestonedPropIssuePropAssigneeType, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropAssigneesItemsType as WebhookIssuesEditedPropIssuePropAssigneesItemsType, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropAssigneesItemsType as WebhookIssuesLockedPropIssuePropAssigneesItemsType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropAssigneesItemsType as WebhookIssuesOpenedPropIssuePropAssigneesItemsType, ) - from .group_0623 import ( + from .group_0628 import ( WebhookOrganizationMemberInvitedPropInvitationType as WebhookOrganizationMemberInvitedPropInvitationType, ) - from .group_0625 import ( + from .group_0630 import ( WebhookOrganizationRenamedPropChangesPropLoginType as WebhookOrganizationRenamedPropChangesPropLoginType, ) - from .group_0628 import ( + from .group_0633 import ( WebhookPackagePublishedPropPackagePropRegistryType as WebhookPackagePublishedPropPackagePropRegistryType, ) - from .group_0641 import ( + from .group_0646 import ( WebhookProjectCardConvertedPropChangesPropNoteType as WebhookProjectCardConvertedPropChangesPropNoteType, ) - from .group_0645 import ( + from .group_0650 import ( WebhookProjectCardMovedPropChangesPropColumnIdType as WebhookProjectCardMovedPropChangesPropColumnIdType, ) - from .group_0711 import ( + from .group_0676 import ( + WebhookProjectsV2StatusUpdateEditedPropChangesType as WebhookProjectsV2StatusUpdateEditedPropChangesType, + ) + from .group_0719 import ( WebhookReleasePrereleasedPropReleasePropAuthorType as WebhookReleasePrereleasedPropReleasePropAuthorType, ) - from .group_0721 import ( + from .group_0729 import ( WebhookRepositoryEditedPropChangesPropHomepageType as WebhookRepositoryEditedPropChangesPropHomepageType, ) - from .group_0741 import ( + from .group_0749 import ( SecretScanningLocationPullRequestReviewCommentType as SecretScanningLocationPullRequestReviewCommentType, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropCommitPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitPropCommitterType, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropRepositoryPropPermissionsType as WebhookTeamEditedPropRepositoryPropPermissionsType, ) - from .group_0770 import ( + from .group_0778 import ( WebhookTeamRemovedFromRepositoryPropRepositoryType as WebhookTeamRemovedFromRepositoryPropRepositoryType, ) - from .group_0795 import ( + from .group_0803 import ( EnterprisesEnterpriseActionsPermissionsPutBodyType as EnterprisesEnterpriseActionsPermissionsPutBodyType, ) - from .group_0843 import ( + from .group_0852 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBodyType as OrgsOrgActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0854 import ( + from .group_0863 import ( OrgsOrgActionsVariablesNameRepositoriesPutBodyType as OrgsOrgActionsVariablesNameRepositoriesPutBodyType, ) - from .group_0858 import ( + from .group_0864 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200Type as OrgsOrgAttestationsSubjectDigestGetResponse200Type, + ) + from .group_0873 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType as OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType, ) - from .group_0882 import ( + from .group_0898 import ( OrgsOrgMembersUsernameCodespacesGetResponse200Type as OrgsOrgMembersUsernameCodespacesGetResponse200Type, ) - from .group_0910 import ( + from .group_0926 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType, ) - from .group_0919 import ( + from .group_0935 import ( ProjectsColumnsCardsCardIdMovesPostResponse201Type as ProjectsColumnsCardsCardIdMovesPostResponse201Type, ) - from .group_0920 import ( + from .group_0936 import ( ProjectsColumnsCardsCardIdMovesPostResponse403Type as ProjectsColumnsCardsCardIdMovesPostResponse403Type, ) - from .group_0921 import ( + from .group_0937 import ( ProjectsColumnsCardsCardIdMovesPostResponse503Type as ProjectsColumnsCardsCardIdMovesPostResponse503Type, ) - from .group_0934 import ( + from .group_0950 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, ) - from .group_0994 import ( + from .group_1013 import ( ReposOwnerRepoCodespacesMachinesGetResponse200Type as ReposOwnerRepoCodespacesMachinesGetResponse200Type, ) - from .group_1001 import ( + from .group_1020 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBodyType as ReposOwnerRepoCommitsCommitShaCommentsPostBodyType, ) - from .group_1003 import ( + from .group_1022 import ( ReposOwnerRepoContentsPathPutBodyPropCommitterType as ReposOwnerRepoContentsPathPutBodyPropCommitterType, ) - from .group_1004 import ( + from .group_1023 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthorType as ReposOwnerRepoContentsPathDeleteBodyPropAuthorType, ) - from .group_1037 import ( + from .group_1056 import ( ReposOwnerRepoInvitationsInvitationIdPatchBodyType as ReposOwnerRepoInvitationsInvitationIdPatchBodyType, ) - from .group_1039 import ( + from .group_1058 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType as ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType, ) - from .group_1107 import ( + from .group_1126 import ( ReposTemplateOwnerTemplateRepoGeneratePostBodyType as ReposTemplateOwnerTemplateRepoGeneratePostBodyType, ) - from .group_1110 import ( + from .group_1129 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType, ) from .group_0025 import ( ServerStatisticsItemsPropGheStatsPropMilestonesType as ServerStatisticsItemsPropGheStatsPropMilestonesType, ) - from .group_0076 import ( + from .group_0079 import ( MarketplacePurchasePropMarketplacePendingChangeType as MarketplacePurchasePropMarketplacePendingChangeType, ) - from .group_0123 import ( + from .group_0127 import ( RepositoryRulesetConditionsRepositoryNameTargetType as RepositoryRulesetConditionsRepositoryNameTargetType, ) - from .group_0137 import ( + from .group_0141 import ( RepositoryRuleRequiredDeploymentsPropParametersType as RepositoryRuleRequiredDeploymentsPropParametersType, ) - from .group_0160 import ( + from .group_0164 import ( RuleSuitePropRuleEvaluationsItemsPropRuleSourceType as RuleSuitePropRuleEvaluationsItemsPropRuleSourceType, ) - from .group_0258 import ( + from .group_0262 import ( DependencyGraphSpdxSbomPropSbomPropCreationInfoType as DependencyGraphSpdxSbomPropSbomPropCreationInfoType, ) - from .group_0377 import ( + from .group_0381 import ( ScimEnterpriseUserResponseAllof1PropGroupsItemsType as ScimEnterpriseUserResponseAllof1PropGroupsItemsType, ) - from .group_0425 import ( + from .group_0429 import ( WebhooksIssuePropPerformedViaGithubAppPropOwnerType as WebhooksIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsResultType as PersonalAccessTokenRequestPropPermissionsResultType, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropRepositoriesItemsType as PersonalAccessTokenRequestPropRepositoriesItemsType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropBasePropRepoPropLicenseType as WebhooksPullRequest5PropBasePropRepoPropLicenseType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropHeadPropRepoPropLicenseType as WebhooksPullRequest5PropHeadPropRepoPropLicenseType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropLinksPropReviewCommentsType as WebhooksPullRequest5PropLinksPropReviewCommentsType, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppType as WebhookCheckSuiteCompletedPropCheckSuitePropAppType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppType as WebhookCheckSuiteRequestedPropCheckSuitePropAppType, ) - from .group_0481 import ( + from .group_0486 import ( WebhookCodeScanningAlertReopenedByUserPropAlertType as WebhookCodeScanningAlertReopenedByUserPropAlertType, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunType as WebhookDeploymentReviewRequestedPropWorkflowRunType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookIssuesClosedPropIssueAllof0PropReactionsType as WebhookIssuesClosedPropIssueAllof0PropReactionsType, ) - from .group_0577 import ( + from .group_0582 import ( WebhookIssuesClosedPropIssueAllof0PropMilestoneType as WebhookIssuesClosedPropIssueAllof0PropMilestoneType, ) - from .group_0581 import ( + from .group_0586 import ( WebhookIssuesClosedPropIssueAllof1PropMilestoneType as WebhookIssuesClosedPropIssueAllof1PropMilestoneType, ) - from .group_0581 import ( + from .group_0586 import ( WebhookIssuesClosedPropIssueAllof1PropReactionsType as WebhookIssuesClosedPropIssueAllof1PropReactionsType, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropAssigneesItemsType as WebhookIssuesDeletedPropIssuePropAssigneesItemsType, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropMilestoneType as WebhookIssuesDemilestonedPropIssuePropMilestoneType, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropReactionsType as WebhookIssuesDemilestonedPropIssuePropReactionsType, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropAssigneesItemsType as WebhookIssuesLabeledPropIssuePropAssigneesItemsType, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropLabelsItemsType as WebhookIssuesMilestonedPropIssuePropLabelsItemsType, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropPullRequestType as WebhookIssuesMilestonedPropIssuePropPullRequestType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryType as WebhookIssuesOpenedPropChangesPropOldRepositoryType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssueType as WebhookIssuesTransferredPropChangesPropNewIssueType, ) - from .group_0607 import ( + from .group_0612 import ( WebhookMemberEditedPropChangesPropOldPermissionType as WebhookMemberEditedPropChangesPropOldPermissionType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropBaseType as WebhookPullRequestLockedPropPullRequestPropBaseType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropHeadType as WebhookPullRequestLockedPropPullRequestPropHeadType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropUserType as WebhookPullRequestLockedPropPullRequestPropUserType, ) - from .group_0767 import ( + from .group_0775 import ( WebhookTeamCreatedPropRepositoryPropPermissionsType as WebhookTeamCreatedPropRepositoryPropPermissionsType, ) - from .group_0768 import ( + from .group_0776 import ( WebhookTeamDeletedPropRepositoryPropPermissionsType as WebhookTeamDeletedPropRepositoryPropPermissionsType, ) - from .group_0828 import ( + from .group_0837 import ( NotificationsThreadsThreadIdSubscriptionPutBodyType as NotificationsThreadsThreadIdSubscriptionPutBodyType, ) - from .group_0977 import ( + from .group_0996 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType as ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, ) - from .group_1002 import ( + from .group_1021 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type as ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type, ) - from .group_1044 import ( + from .group_1063 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType as ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType, ) - from .group_1079 import ( + from .group_1098 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBodyType as ReposOwnerRepoPullsPullNumberCodespacesPostBodyType, ) - from .group_1113 import ( + from .group_1132 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType, ) - from .group_0078 import ( + from .group_0081 import ( SecurityAndAnalysisPropDependabotSecurityUpdatesType as SecurityAndAnalysisPropDependabotSecurityUpdatesType, ) - from .group_0141 import ( + from .group_0145 import ( RepositoryRuleRequiredStatusChecksPropParametersType as RepositoryRuleRequiredStatusChecksPropParametersType, ) - from .group_0143 import ( + from .group_0147 import ( RepositoryRuleCommitMessagePatternPropParametersType as RepositoryRuleCommitMessagePatternPropParametersType, ) - from .group_0257 import ( + from .group_0261 import ( DependencyGraphDiffItemsPropVulnerabilitiesItemsType as DependencyGraphDiffItemsPropVulnerabilitiesItemsType, ) - from .group_0258 import ( + from .group_0262 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsType as DependencyGraphSpdxSbomPropSbomPropPackagesItemsType, ) - from .group_0305 import ( + from .group_0309 import ( PullRequestReviewCommentPropLinksPropPullRequestType as PullRequestReviewCommentPropLinksPropPullRequestType, ) - from .group_0350 import ( + from .group_0354 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsType as RepositoryAdvisoryCreatePropVulnerabilitiesItemsType, ) - from .group_0352 import ( + from .group_0356 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType, ) - from .group_0427 import ( + from .group_0431 import ( WebhooksIssue2PropPerformedViaGithubAppPropOwnerType as WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, ) - from .group_0451 import ( + from .group_0456 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_0478 import ( + from .group_0483 import ( WebhookCodeScanningAlertCreatedPropAlertPropRuleType as WebhookCodeScanningAlertCreatedPropAlertPropRuleType, ) - from .group_0478 import ( + from .group_0483 import ( WebhookCodeScanningAlertCreatedPropAlertPropToolType as WebhookCodeScanningAlertCreatedPropAlertPropToolType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropActorType as WebhookDeploymentCreatedPropWorkflowRunPropActorType, ) - from .group_0563 import ( + from .group_0568 import ( WebhookIssueCommentEditedPropIssueAllof0PropUserType as WebhookIssueCommentEditedPropIssueAllof0PropUserType, ) - from .group_0569 import ( + from .group_0574 import ( WebhookIssueCommentEditedPropIssueAllof1PropUserType as WebhookIssueCommentEditedPropIssueAllof1PropUserType, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropAssigneesItemsType as WebhookIssuesReopenedPropIssuePropAssigneesItemsType, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropAssigneesItemsType as WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, ) - from .group_0604 import ( + from .group_0609 import ( WebhookMarketplacePurchasePendingChangeCancelledType as WebhookMarketplacePurchasePendingChangeCancelledType, ) - from .group_0617 import ( + from .group_0622 import ( WebhookMilestoneEditedPropChangesPropDescriptionType as WebhookMilestoneEditedPropChangesPropDescriptionType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropBaseType as WebhookPullRequestLabeledPropPullRequestPropBaseType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropHeadType as WebhookPullRequestLabeledPropPullRequestPropHeadType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropUserType as WebhookPullRequestLabeledPropPullRequestPropUserType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLinksType as WebhookPullRequestLockedPropPullRequestPropLinksType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestType as WebhookPullRequestReviewDismissedPropPullRequestType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestType as WebhookPullRequestReviewSubmittedPropPullRequestType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropThreadType as WebhookPullRequestReviewThreadResolvedPropThreadType, ) - from .group_0706 import ( + from .group_0714 import ( WebhookRegistryPackageUpdatedPropRegistryPackageType as WebhookRegistryPackageUpdatedPropRegistryPackageType, ) - from .group_0720 import ( + from .group_0728 import ( WebhookRepositoryDispatchSamplePropClientPayloadType as WebhookRepositoryDispatchSamplePropClientPayloadType, ) - from .group_0734 import ( + from .group_0742 import ( WebhookRepositoryTransferredPropChangesPropOwnerType as WebhookRepositoryTransferredPropChangesPropOwnerType, ) - from .group_0774 import ( + from .group_0782 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type, ) - from .group_0775 import ( + from .group_0783 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type, ) - from .group_0785 import ( + from .group_0793 import ( AppManifestsCodeConversionsPostResponse201Allof1Type as AppManifestsCodeConversionsPostResponse201Allof1Type, ) - from .group_0799 import ( + from .group_0807 import ( EnterprisesEnterpriseActionsRunnerGroupsPostBodyType as EnterprisesEnterpriseActionsRunnerGroupsPostBodyType, ) - from .group_0837 import ( + from .group_0846 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType, ) - from .group_0896 import ( + from .group_0912 import ( OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType as OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType, ) - from .group_0937 import ( + from .group_0953 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBodyType as ReposOwnerRepoActionsOidcCustomizationSubPutBodyType, ) - from .group_0948 import ( + from .group_0964 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type, ) - from .group_0981 import ( + from .group_1000 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type, ) - from .group_0982 import ( + from .group_1001 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type, ) - from .group_0997 import ( + from .group_1016 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType as ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType, ) - from .group_1000 import ( + from .group_1019 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoCommentsCommentIdReactionsPostBodyType, ) - from .group_1007 import ( + from .group_1026 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBodyType as ReposOwnerRepoDependabotSecretsSecretNamePutBodyType, ) - from .group_1013 import ( + from .group_1032 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType, ) - from .group_1042 import ( + from .group_1061 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType, ) - from .group_1052 import ( + from .group_1071 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType as ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType, ) - from .group_1059 import ( + from .group_1078 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType as ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType, ) - from .group_1083 import ( + from .group_1102 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405Type as ReposOwnerRepoPullsPullNumberMergePutResponse405Type, ) - from .group_1084 import ( + from .group_1103 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409Type as ReposOwnerRepoPullsPullNumberMergePutResponse409Type, ) - from .group_1092 import ( + from .group_1111 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType as ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType, ) - from .group_1098 import ( + from .group_1117 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType as ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType, ) - from .group_0128 import ( + from .group_0132 import ( RepositoryRulesetConditionsRepositoryPropertySpecType as RepositoryRulesetConditionsRepositoryPropertySpecType, ) - from .group_0147 import ( + from .group_0151 import ( RepositoryRuleCommitterEmailPatternPropParametersType as RepositoryRuleCommitterEmailPatternPropParametersType, ) - from .group_0201 import ( + from .group_0205 import ( ProtectedBranchRequiredStatusCheckPropChecksItemsType as ProtectedBranchRequiredStatusCheckPropChecksItemsType, ) - from .group_0209 import ( + from .group_0213 import ( ProtectedBranchPropRequiredConversationResolutionType as ProtectedBranchPropRequiredConversationResolutionType, ) - from .group_0215 import ( + from .group_0219 import ( ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type as ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type, ) - from .group_0369 import ( + from .group_0373 import ( ScimEnterpriseGroupResponseAllof1PropMembersItemsType as ScimEnterpriseGroupResponseAllof1PropMembersItemsType, ) - from .group_0392 import ( + from .group_0396 import ( CodespaceWithFullRepositoryPropRuntimeConstraintsType as CodespaceWithFullRepositoryPropRuntimeConstraintsType, ) - from .group_0405 import ( + from .group_0409 import ( RepositoryWebhooksPropTemplateRepositoryPropOwnerType as RepositoryWebhooksPropTemplateRepositoryPropOwnerType, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsUpgradedType as PersonalAccessTokenRequestPropPermissionsUpgradedType, ) - from .group_0469 import ( + from .group_0474 import ( WebhookCheckRunRequestedActionPropRequestedActionType as WebhookCheckRunRequestedActionPropRequestedActionType, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppType, ) - from .group_0476 import ( + from .group_0481 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertType as WebhookCodeScanningAlertAppearedInBranchPropAlertType, ) - from .group_0480 import ( + from .group_0485 import ( WebhookCodeScanningAlertReopenedPropAlertPropRuleType as WebhookCodeScanningAlertReopenedPropAlertPropRuleType, ) - from .group_0480 import ( + from .group_0485 import ( WebhookCodeScanningAlertReopenedPropAlertPropToolType as WebhookCodeScanningAlertReopenedPropAlertPropToolType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropDeploymentPropCreatorType as WebhookDeploymentCreatedPropDeploymentPropCreatorType, ) - from .group_0509 import ( + from .group_0514 import ( WebhookDiscussionCommentEditedPropChangesPropBodyType as WebhookDiscussionCommentEditedPropChangesPropBodyType, ) - from .group_0541 import ( + from .group_0546 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUserType as WebhookIssueCommentCreatedPropIssueAllof0PropUserType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUserType as WebhookIssueCommentCreatedPropIssueAllof1PropUserType, ) - from .group_0552 import ( + from .group_0557 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUserType as WebhookIssueCommentDeletedPropIssueAllof0PropUserType, ) - from .group_0558 import ( + from .group_0563 import ( WebhookIssueCommentDeletedPropIssueAllof1PropUserType as WebhookIssueCommentDeletedPropIssueAllof1PropUserType, ) - from .group_0562 import ( + from .group_0567 import ( WebhookIssueCommentEditedPropIssueMergedAssigneesType as WebhookIssueCommentEditedPropIssueMergedAssigneesType, ) - from .group_0562 import ( + from .group_0567 import ( WebhookIssueCommentEditedPropIssueMergedReactionsType as WebhookIssueCommentEditedPropIssueMergedReactionsType, ) - from .group_0570 import ( + from .group_0575 import ( WebhookIssueCommentEditedPropIssueMergedMilestoneType as WebhookIssueCommentEditedPropIssueMergedMilestoneType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType, ) - from .group_0580 import ( + from .group_0585 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequestType as WebhookIssuesClosedPropIssueAllof0PropPullRequestType, ) - from .group_0581 import ( + from .group_0586 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropLabelsItemsType as WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropPullRequestType as WebhookIssuesDemilestonedPropIssuePropPullRequestType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropBaseType as WebhookPullRequestAssignedPropPullRequestPropBaseType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropHeadType as WebhookPullRequestAssignedPropPullRequestPropHeadType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropUserType as WebhookPullRequestAssignedPropPullRequestPropUserType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestType as WebhookPullRequestAutoMergeEnabledPropPullRequestType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropBaseType as WebhookPullRequestDequeuedPropPullRequestPropBaseType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadType as WebhookPullRequestDequeuedPropPullRequestPropHeadType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropUserType as WebhookPullRequestDequeuedPropPullRequestPropUserType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropBaseType as WebhookPullRequestEnqueuedPropPullRequestPropBaseType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadType as WebhookPullRequestEnqueuedPropPullRequestPropHeadType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropUserType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLinksType as WebhookPullRequestLabeledPropPullRequestPropLinksType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropCommentType as WebhookPullRequestReviewCommentCreatedPropCommentType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropChangesPropBodyType as WebhookPullRequestReviewEditedPropChangesPropBodyType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropBaseType as WebhookPullRequestUnlockedPropPullRequestPropBaseType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadType as WebhookPullRequestUnlockedPropPullRequestPropHeadType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropUserType as WebhookPullRequestUnlockedPropPullRequestPropUserType, ) - from .group_0711 import ( + from .group_0719 import ( WebhookReleasePrereleasedPropReleasePropReactionsType as WebhookReleasePrereleasedPropReleasePropReactionsType, ) - from .group_0721 import ( + from .group_0729 import ( WebhookRepositoryEditedPropChangesPropDescriptionType as WebhookRepositoryEditedPropChangesPropDescriptionType, ) - from .group_0725 import ( + from .group_0733 import ( WebhookRepositoryRenamedPropChangesPropRepositoryType as WebhookRepositoryRenamedPropChangesPropRepositoryType, ) - from .group_0729 import ( + from .group_0737 import ( WebhookRepositoryRulesetEditedPropChangesPropNameType as WebhookRepositoryRulesetEditedPropChangesPropNameType, ) - from .group_0760 import ( + from .group_0768 import ( WebhookStatusPropCommitPropCommitPropVerificationType as WebhookStatusPropCommitPropCommitPropVerificationType, ) - from .group_0761 import ( + from .group_0769 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0Type as WebhookStatusPropCommitPropCommitPropAuthorAllof0Type, ) - from .group_0762 import ( + from .group_0770 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1Type as WebhookStatusPropCommitPropCommitPropAuthorAllof1Type, ) - from .group_0777 import ( + from .group_0785 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type, ) - from .group_0778 import ( + from .group_0786 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type, ) - from .group_0805 import ( + from .group_0813 import ( EnterprisesEnterpriseActionsRunnersGetResponse200Type as EnterprisesEnterpriseActionsRunnersGetResponse200Type, ) - from .group_0864 import ( + from .group_0880 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type as OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type, ) - from .group_0868 import ( + from .group_0884 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201Type as OrgsOrgCopilotBillingSelectedUsersPostResponse201Type, ) - from .group_0888 import ( + from .group_0904 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type as OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type, ) - from .group_0943 import ( + from .group_0959 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_1004 import ( + from .group_1023 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitterType as ReposOwnerRepoContentsPathDeleteBodyPropCommitterType, ) - from .group_1012 import ( + from .group_1031 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayloadType as ReposOwnerRepoDispatchesPostBodyPropClientPayloadType, ) - from .group_1038 import ( + from .group_1057 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type, ) - from .group_1132 import ( + from .group_1151 import ( UserCodespacesCodespaceNameMachinesGetResponse200Type as UserCodespacesCodespaceNameMachinesGetResponse200Type, ) - from .group_0050 import ( + from .group_0053 import ( DependabotAlertSecurityAdvisoryPropReferencesItemsType as DependabotAlertSecurityAdvisoryPropReferencesItemsType, ) - from .group_0113 import ( + from .group_0117 import ( OrganizationProgrammaticAccessGrantPropPermissionsType as OrganizationProgrammaticAccessGrantPropPermissionsType, ) - from .group_0201 import ( + from .group_0205 import ( BranchProtectionPropRequiredConversationResolutionType as BranchProtectionPropRequiredConversationResolutionType, ) - from .group_0226 import ( + from .group_0230 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesType as CodeScanningVariantAnalysisPropSkippedRepositoriesType, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropReviewersItemsType as WebhookDeploymentReviewRequestedPropReviewersItemsType, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRunType as WebhookDeploymentReviewRequestedPropWorkflowJobRunType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusType as WebhookDeploymentStatusCreatedPropDeploymentStatusType, ) - from .group_0539 import ( + from .group_0544 import ( WebhookIssueCommentCreatedPropCommentPropReactionsType as WebhookIssueCommentCreatedPropCommentPropReactionsType, ) - from .group_0540 import ( + from .group_0545 import ( WebhookIssueCommentCreatedPropIssueMergedAssigneesType as WebhookIssueCommentCreatedPropIssueMergedAssigneesType, ) - from .group_0540 import ( + from .group_0545 import ( WebhookIssueCommentCreatedPropIssueMergedReactionsType as WebhookIssueCommentCreatedPropIssueMergedReactionsType, ) - from .group_0548 import ( + from .group_0553 import ( WebhookIssueCommentCreatedPropIssueMergedMilestoneType as WebhookIssueCommentCreatedPropIssueMergedMilestoneType, ) - from .group_0551 import ( + from .group_0556 import ( WebhookIssueCommentDeletedPropIssueMergedAssigneesType as WebhookIssueCommentDeletedPropIssueMergedAssigneesType, ) - from .group_0551 import ( + from .group_0556 import ( WebhookIssueCommentDeletedPropIssueMergedReactionsType as WebhookIssueCommentDeletedPropIssueMergedReactionsType, ) - from .group_0559 import ( + from .group_0564 import ( WebhookIssueCommentDeletedPropIssueMergedMilestoneType as WebhookIssueCommentDeletedPropIssueMergedMilestoneType, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropAssigneesItemsType as WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUserType as WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, ) - from .group_0632 import ( + from .group_0637 import ( WebhookPackageUpdatedPropPackagePropPackageVersionType as WebhookPackageUpdatedPropPackagePropPackageVersionType, ) - from .group_0660 import ( + from .group_0665 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitleType as WebhookProjectsV2ProjectEditedPropChangesPropTitleType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLinksType as WebhookPullRequestAssignedPropPullRequestPropLinksType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestType as WebhookPullRequestAutoMergeDisabledPropPullRequestType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksType as WebhookPullRequestDequeuedPropPullRequestPropLinksType, ) - from .group_0677 import ( + from .group_0685 import ( WebhookPullRequestEditedPropChangesPropBasePropRefType as WebhookPullRequestEditedPropChangesPropBasePropRefType, ) - from .group_0677 import ( + from .group_0685 import ( WebhookPullRequestEditedPropChangesPropBasePropShaType as WebhookPullRequestEditedPropChangesPropBasePropShaType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksType as WebhookPullRequestEnqueuedPropPullRequestPropLinksType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadType as WebhookPullRequestReviewThreadUnresolvedPropThreadType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropBaseType as WebhookPullRequestUnlabeledPropPullRequestPropBaseType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadType as WebhookPullRequestUnlabeledPropPullRequestPropHeadType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropUserType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksType as WebhookPullRequestUnlockedPropPullRequestPropLinksType, ) - from .group_0703 import ( + from .group_0711 import ( WebhookRegistryPackagePublishedPropRegistryPackageType as WebhookRegistryPackagePublishedPropRegistryPackageType, ) - from .group_0732 import ( + from .group_0740 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesType as WebhookRepositoryRulesetEditedPropChangesPropRulesType, ) - from .group_0787 import ( + from .group_0795 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type as AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type, ) - from .group_0788 import ( + from .group_0796 import ( AppInstallationsInstallationIdAccessTokensPostBodyType as AppInstallationsInstallationIdAccessTokensPostBodyType, ) - from .group_0831 import ( + from .group_0840 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type as OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type, ) - from .group_0849 import ( + from .group_0858 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType as OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0914 import ( + from .group_0930 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType, ) - from .group_0944 import ( + from .group_0960 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_1005 import ( + from .group_1024 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType as ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType, ) - from .group_1009 import ( + from .group_1028 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, ) - from .group_1043 import ( + from .group_1062 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType, ) - from .group_1045 import ( + from .group_1064 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type, ) - from .group_1046 import ( + from .group_1065 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type, ) - from .group_1108 import ( + from .group_1127 import ( ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType as ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType, ) - from .group_1130 import ( + from .group_1149 import ( UserCodespacesSecretsSecretNameRepositoriesPutBodyType as UserCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0050 import ( + from .group_1168 import ( + SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType as SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType, + ) + from .group_0053 import ( DependabotAlertSecurityAdvisoryPropIdentifiersItemsType as DependabotAlertSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0078 import ( + from .group_0081 import ( SecurityAndAnalysisPropSecretScanningPushProtectionType as SecurityAndAnalysisPropSecretScanningPushProtectionType, ) - from .group_0078 import ( + from .group_0081 import ( SecurityAndAnalysisPropSecretScanningValidityChecksType as SecurityAndAnalysisPropSecretScanningValidityChecksType, ) - from .group_0127 import ( + from .group_0131 import ( RepositoryRulesetConditionsRepositoryPropertyTargetType as RepositoryRulesetConditionsRepositoryPropertyTargetType, ) - from .group_0200 import ( + from .group_0204 import ( BranchRestrictionPolicyPropAppsItemsPropPermissionsType as BranchRestrictionPolicyPropAppsItemsPropPermissionsType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropBasePropRepoPropPermissionsType as WebhooksPullRequest5PropBasePropRepoPropPermissionsType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropHeadPropRepoPropPermissionsType as WebhooksPullRequest5PropHeadPropRepoPropPermissionsType, ) - from .group_0482 import ( + from .group_0487 import ( WebhookCommitCommentCreatedPropCommentPropReactionsType as WebhookCommitCommentCreatedPropCommentPropReactionsType, ) - from .group_0536 import ( + from .group_0541 import ( WebhookInstallationTargetRenamedPropChangesPropSlugType as WebhookInstallationTargetRenamedPropChangesPropSlugType, ) - from .group_0643 import ( + from .group_0648 import ( WebhookProjectCardDeletedPropProjectCardPropCreatorType as WebhookProjectCardDeletedPropProjectCardPropCreatorType, ) - from .group_0645 import ( + from .group_0650 import ( WebhookProjectCardMovedPropProjectCardMergedCreatorType as WebhookProjectCardMovedPropProjectCardMergedCreatorType, ) - from .group_0660 import ( + from .group_0665 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublicType as WebhookProjectsV2ProjectEditedPropChangesPropPublicType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropAssigneeType as WebhookPullRequestLockedPropPullRequestPropAssigneeType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropMergedByType as WebhookPullRequestLockedPropPullRequestPropMergedByType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropReviewPropUserType as WebhookPullRequestReviewDismissedPropReviewPropUserType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropBaseType as WebhookPullRequestUnassignedPropPullRequestPropBaseType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadType as WebhookPullRequestUnassignedPropPullRequestPropHeadType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropUserType as WebhookPullRequestUnassignedPropPullRequestPropUserType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksType as WebhookPullRequestUnlabeledPropPullRequestPropLinksType, ) - from .group_0711 import ( + from .group_0719 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsType as WebhookReleasePrereleasedPropReleasePropAssetsItemsType, ) - from .group_0721 import ( + from .group_0729 import ( WebhookRepositoryEditedPropChangesPropDefaultBranchType as WebhookRepositoryEditedPropChangesPropDefaultBranchType, ) - from .group_0737 import ( + from .group_0745 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertType as WebhookRepositoryVulnerabilityAlertDismissPropAlertType, ) - from .group_0739 import ( + from .group_0747 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertType as WebhookRepositoryVulnerabilityAlertResolvePropAlertType, ) - from .group_0754 import ( + from .group_0762 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevelType as WebhookSponsorshipEditedPropChangesPropPrivacyLevelType, ) - from .group_0766 import ( + from .group_0774 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType as WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropChangesPropNotificationSettingType as WebhookTeamEditedPropChangesPropNotificationSettingType, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropRepositoryPropCustomPropertiesType as WebhookTeamEditedPropRepositoryPropCustomPropertiesType, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, ) - from .group_0833 import ( + from .group_0842 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200Type as OrgsOrgActionsPermissionsRepositoriesGetResponse200Type, ) - from .group_0866 import ( + from .group_0882 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type, ) - from .group_0870 import ( + from .group_0886 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type, ) - from .group_0912 import ( + from .group_0928 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type, ) - from .group_0993 import ( + from .group_1012 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200Type as ReposOwnerRepoCodespacesDevcontainersGetResponse200Type, ) - from .group_1036 import ( + from .group_1055 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type, ) - from .group_1048 import ( + from .group_1067 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type, ) - from .group_1049 import ( + from .group_1068 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type, ) - from .group_1089 import ( + from .group_1108 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType, ) - from .group_0145 import ( + from .group_0149 import ( RepositoryRuleCommitAuthorEmailPatternPropParametersType as RepositoryRuleCommitAuthorEmailPatternPropParametersType, ) - from .group_0536 import ( + from .group_0541 import ( WebhookInstallationTargetRenamedPropChangesPropLoginType as WebhookInstallationTargetRenamedPropChangesPropLoginType, ) - from .group_0564 import ( + from .group_0569 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType as WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, ) - from .group_0569 import ( + from .group_0574 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, ) - from .group_0575 import ( + from .group_0580 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0581 import ( + from .group_0586 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType as WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreatorType as WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropMilestonePropCreatorType as WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryType as WebhookIssuesTransferredPropChangesPropNewRepositoryType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionType as WebhookPackagePublishedPropPackagePropPackageVersionType, ) - from .group_0665 import ( + from .group_0670 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType as WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneeType as WebhookPullRequestLabeledPropPullRequestPropAssigneeType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropMergedByType as WebhookPullRequestLabeledPropPullRequestPropMergedByType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergeType as WebhookPullRequestLockedPropPullRequestPropAutoMergeType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropMilestoneType as WebhookPullRequestLockedPropPullRequestPropMilestoneType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestType as WebhookPullRequestReviewCommentEditedPropPullRequestType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksType as WebhookPullRequestReviewDismissedPropReviewPropLinksType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropBaseType as WebhookPullRequestSynchronizePropPullRequestPropBaseType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadType as WebhookPullRequestSynchronizePropPullRequestPropHeadType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropUserType as WebhookPullRequestSynchronizePropPullRequestPropUserType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksType as WebhookPullRequestUnassignedPropPullRequestPropLinksType, ) - from .group_0742 import ( + from .group_0750 import ( WebhookSecretScanningAlertLocationCreatedFormEncodedType as WebhookSecretScanningAlertLocationCreatedFormEncodedType, ) - from .group_0748 import ( + from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType, ) - from .group_0763 import ( + from .group_0771 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0Type as WebhookStatusPropCommitPropCommitPropCommitterAllof0Type, ) - from .group_0764 import ( + from .group_0772 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1Type as WebhookStatusPropCommitPropCommitPropCommitterAllof1Type, ) - from .group_0767 import ( + from .group_0775 import ( WebhookTeamCreatedPropRepositoryPropCustomPropertiesType as WebhookTeamCreatedPropRepositoryPropCustomPropertiesType, ) - from .group_0768 import ( + from .group_0776 import ( WebhookTeamDeletedPropRepositoryPropCustomPropertiesType as WebhookTeamDeletedPropRepositoryPropCustomPropertiesType, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, ) - from .group_0829 import ( + from .group_0838 import ( OrganizationsOrganizationIdCustomRolesGetResponse200Type as OrganizationsOrganizationIdCustomRolesGetResponse200Type, ) - from .group_0889 import ( + from .group_0905 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type, ) - from .group_0980 import ( + from .group_0999 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, ) - from .group_0986 import ( + from .group_1005 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType, ) - from .group_1109 import ( + from .group_1128 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType, ) - from .group_0193 import ( + from .group_1168 import ( + UsersUsernameAttestationsSubjectDigestGetResponse200Type as UsersUsernameAttestationsSubjectDigestGetResponse200Type, + ) + from .group_0197 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType as WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType, ) - from .group_0425 import ( + from .group_0429 import ( WebhooksIssuePropPerformedViaGithubAppPropPermissionsType as WebhooksIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type as WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type as WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropRequestedTeamsItemsPropParentType as WebhooksPullRequest5PropRequestedTeamsItemsPropParentType, ) - from .group_0477 import ( + from .group_0482 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType as WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType, ) - from .group_0477 import ( + from .group_0482 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropToolType as WebhookCodeScanningAlertClosedByUserPropAlertPropToolType, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedByType as WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0542 import ( + from .group_0547 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, ) - from .group_0553 import ( + from .group_0558 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, ) - from .group_0558 import ( + from .group_0563 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, ) - from .group_0563 import ( + from .group_0568 import ( WebhookIssueCommentEditedPropIssueAllof0PropReactionsType as WebhookIssueCommentEditedPropIssueAllof0PropReactionsType, ) - from .group_0566 import ( + from .group_0571 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType as WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, ) - from .group_0569 import ( + from .group_0574 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType as WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, ) - from .group_0569 import ( + from .group_0574 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactionsType as WebhookIssueCommentEditedPropIssueAllof1PropReactionsType, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType as WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType as WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneeType as WebhookPullRequestAssignedPropPullRequestPropAssigneeType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropMergedByType as WebhookPullRequestAssignedPropPullRequestPropMergedByType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneeType as WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedByType as WebhookPullRequestDequeuedPropPullRequestPropMergedByType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedByType as WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergeType as WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropMilestoneType as WebhookPullRequestLabeledPropPullRequestPropMilestoneType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropPullRequestType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestType as WebhookPullRequestReviewCommentDeletedPropPullRequestType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropBaseType as WebhookPullRequestReviewEditedPropPullRequestPropBaseType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadType as WebhookPullRequestReviewEditedPropPullRequestPropHeadType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropUserType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropPullRequestType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksType as WebhookPullRequestSynchronizePropPullRequestPropLinksType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneeType as WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedByType as WebhookPullRequestUnlockedPropPullRequestPropMergedByType, ) - from .group_0766 import ( + from .group_0774 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType as WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, ) - from .group_0773 import ( + from .group_0781 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType as WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType, ) - from .group_0779 import ( + from .group_0787 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType, ) - from .group_0812 import ( + from .group_0820 import ( EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type as EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type, ) - from .group_0813 import ( + from .group_0821 import ( EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType as EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType, ) - from .group_0841 import ( + from .group_0850 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType, ) - from .group_0853 import ( + from .group_0862 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type as OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type, ) - from .group_0862 import ( + from .group_0877 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0875 import ( + from .group_0891 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0942 import ( + from .group_0958 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0946 import ( + from .group_0962 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type, ) - from .group_0951 import ( + from .group_0967 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType, ) - from .group_0995 import ( + from .group_0978 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type as ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type, + ) + from .group_1014 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType as ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType, ) - from .group_1008 import ( + from .group_1027 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type, ) - from .group_1011 import ( + from .group_1030 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType, ) - from .group_1077 import ( + from .group_1096 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType, ) - from .group_0193 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType as WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType, ) - from .group_0387 import ( + from .group_0391 import ( TopicSearchResultItemPropAliasesItemsPropTopicRelationType as TopicSearchResultItemPropAliasesItemsPropTopicRelationType, ) - from .group_0387 import ( + from .group_0391 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelationType as TopicSearchResultItemPropRelatedItemsPropTopicRelationType, ) - from .group_0427 import ( + from .group_0431 import ( WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType as WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, ) - from .group_0541 import ( + from .group_0546 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType, ) - from .group_0544 import ( + from .group_0549 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType, ) - from .group_0552 import ( + from .group_0557 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType as WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType, ) - from .group_0555 import ( + from .group_0560 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, ) - from .group_0558 import ( + from .group_0563 import ( WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType as WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, ) - from .group_0558 import ( + from .group_0563 import ( WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType as WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType as WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType as WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, ) - from .group_0670 import ( + from .group_0676 import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType as WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType, + ) + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergeType as WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropMilestoneType as WebhookPullRequestAssignedPropPullRequestPropMilestoneType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestoneType as WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType as WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItemsType as WebhookPullRequestLockedPropPullRequestPropLabelsItemsType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksType as WebhookPullRequestReviewEditedPropPullRequestPropLinksType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestType as WebhookPullRequestReviewRequestedOneof0PropPullRequestType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestType as WebhookPullRequestReviewRequestedOneof1PropPullRequestType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedByType as WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestoneType as WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, ) - from .group_0776 import ( + from .group_0784 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType as WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType, ) - from .group_0780 import ( + from .group_0788 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType, ) - from .group_0798 import ( + from .group_0806 import ( EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type as EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type, ) - from .group_0891 import ( + from .group_0822 import ( + EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type as EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type, + ) + from .group_0907 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType, ) - from .group_0938 import ( + from .group_0954 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type as ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type, ) - from .group_1040 import ( + from .group_1059 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType, ) - from .group_1101 import ( + from .group_1120 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType, ) - from .group_1114 import ( + from .group_1133 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_0057 import ( + from .group_0060 import ( GetAllCostCentersPropCostCentersItemsPropResourcesItemsType as GetAllCostCentersPropCostCentersItemsPropResourcesItemsType, ) - from .group_0193 import ( + from .group_0197 import ( WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType as WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType, ) - from .group_0225 import ( + from .group_0229 import ( CodeScanningVariantAnalysisPropScannedRepositoriesItemsType as CodeScanningVariantAnalysisPropScannedRepositoriesItemsType, ) - from .group_0405 import ( + from .group_0409 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissionsType as RepositoryWebhooksPropTemplateRepositoryPropPermissionsType, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOtherType as PersonalAccessTokenRequestPropPermissionsAddedPropOtherType, ) - from .group_0481 import ( + from .group_0486 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType as WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType, ) - from .group_0481 import ( + from .group_0486 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType as WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, ) - from .group_0505 import ( + from .group_0510 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryType as WebhookDiscussionCategoryChangedPropChangesPropCategoryType, ) - from .group_0564 import ( + from .group_0569 import ( WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, ) - from .group_0564 import ( + from .group_0569 import ( WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType as WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, ) - from .group_0569 import ( + from .group_0574 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType, ) - from .group_0583 import ( + from .group_0588 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUserType as WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, ) - from .group_0646 import ( + from .group_0651 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, ) - from .group_0647 import ( + from .group_0652 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUserType as WebhookPullRequestLockedPropPullRequestPropBasePropUserType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUserType as WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneeType as WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedByType as WebhookPullRequestUnassignedPropPullRequestPropMergedByType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType as WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, ) - from .group_0730 import ( + from .group_0738 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsType, ) - from .group_0770 import ( + from .group_0778 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, ) - from .group_1047 import ( + from .group_1066 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType, ) - from .group_1093 import ( + from .group_1112 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type, ) - from .group_1117 import ( + from .group_1136 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_0053 import ( + from .group_0056 import ( GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType as GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType, ) - from .group_0351 import ( + from .group_0081 import ( + SecurityAndAnalysisPropSecretScanningNonProviderPatternsType as SecurityAndAnalysisPropSecretScanningNonProviderPatternsType, + ) + from .group_0355 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsResultPropOtherType as PersonalAccessTokenRequestPropPermissionsResultPropOtherType, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType, ) - from .group_0480 import ( + from .group_0485 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType as WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, ) - from .group_0542 import ( + from .group_0547 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, ) - from .group_0542 import ( + from .group_0547 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType, ) - from .group_0553 import ( + from .group_0558 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, ) - from .group_0553 import ( + from .group_0558 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, ) - from .group_0558 import ( + from .group_0563 import ( WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, ) - from .group_0660 import ( + from .group_0665 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType, ) - from .group_0662 import ( + from .group_0667 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType as WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType, ) - from .group_0670 import ( + from .group_0676 import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType as WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType, + ) + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType as WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType as WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUserType as WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBaseType as WebhookPullRequestReviewDismissedPropPullRequestPropBaseType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropUserType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneeType as WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedByType as WebhookPullRequestSynchronizePropPullRequestPropMergedByType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestoneType as WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType, ) - from .group_0729 import ( + from .group_0737 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcementType as WebhookRepositoryRulesetEditedPropChangesPropEnforcementType, ) - from .group_0734 import ( + from .group_0742 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromType, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0809 import ( + from .group_0817 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0904 import ( + from .group_0920 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType, ) - from .group_0939 import ( + from .group_0955 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type as ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type, ) - from .group_0949 import ( + from .group_0965 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType, ) - from .group_0977 import ( + from .group_0996 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType, ) - from .group_1050 import ( + from .group_1069 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType, ) - from .group_1122 import ( + from .group_1141 import ( TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType as TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsType as OrganizationProgrammaticAccessGrantRequestPropPermissionsType, ) - from .group_0199 import ( + from .group_0203 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictionsType as ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, ) - from .group_0476 import ( + from .group_0481 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType, ) - from .group_0476 import ( + from .group_0481 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType, ) - from .group_0623 import ( + from .group_0628 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviterType as WebhookOrganizationMemberInvitedPropInvitationPropInviterType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUserType as WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType as WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType as WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUserType as WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestoneType as WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType as WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, ) - from .group_0706 import ( + from .group_0714 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType, ) - from .group_0725 import ( + from .group_0733 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType as WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType, ) - from .group_0766 import ( + from .group_0774 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType as WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType, ) - from .group_0770 import ( + from .group_0778 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType, ) - from .group_0810 import ( + from .group_0818 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0848 import ( + from .group_0857 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1072 import ( + from .group_0866 import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType, + ) + from .group_1091 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type, ) - from .group_1087 import ( + from .group_1106 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType, ) - from .group_1129 import ( + from .group_1148 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type as UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1139 import ( + from .group_1158 import ( UserInstallationsInstallationIdRepositoriesGetResponse200Type as UserInstallationsInstallationIdRepositoriesGetResponse200Type, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0563 import ( + from .group_0568 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0569 import ( + from .group_0574 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0576 import ( + from .group_0581 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, ) - from .group_0665 import ( + from .group_0670 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType, ) - from .group_0839 import ( + from .group_0848 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType, ) - from .group_0925 import ( + from .group_0941 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType, ) - from .group_0958 import ( + from .group_0974 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType, ) - from .group_0959 import ( + from .group_0975 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type, ) - from .group_0980 import ( + from .group_0999 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, ) - from .group_1020 import ( + from .group_1039 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType, ) - from .group_1091 import ( + from .group_1110 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType, ) - from .group_0049 import ( + from .group_0052 import ( DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType as DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType, ) - from .group_0113 import ( + from .group_0117 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType as OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType, ) - from .group_0267 import ( + from .group_0271 import ( EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType as EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType, ) - from .group_0350 import ( + from .group_0354 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType as RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0352 import ( + from .group_0356 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0451 import ( + from .group_0456 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0541 import ( + from .group_0546 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0552 import ( + from .group_0557 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0558 import ( + from .group_0563 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0579 import ( + from .group_0584 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0581 import ( + from .group_0586 import ( WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, ) - from .group_0670 import ( + from .group_0676 import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType as WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType, + ) + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType as WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType as WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType, ) - from .group_0703 import ( + from .group_0711 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType as WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType, ) - from .group_0797 import ( + from .group_0805 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType as EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType, ) - from .group_1109 import ( + from .group_1128 import ( ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType as ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType, ) - from .group_0435 import ( + from .group_1168 import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType, + ) + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType, ) - from .group_0477 import ( + from .group_0482 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType, ) - from .group_0632 import ( + from .group_0637 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0679 import ( + from .group_0676 import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType as WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType, + ) + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType as WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0706 import ( + from .group_0714 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, ) - from .group_0748 import ( + from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0806 import ( + from .group_0814 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0840 import ( + from .group_0849 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type, ) - from .group_0861 import ( + from .group_0876 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0874 import ( + from .group_0890 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0985 import ( + from .group_0976 import ( + ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType, + ) + from .group_1004 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type, ) - from .group_0126 import ( + from .group_0130 import ( RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType as RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, ) - from .group_0216 import ( + from .group_0220 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType as PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType, ) - from .group_0459 import ( + from .group_0464 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, ) - from .group_0571 import ( + from .group_0576 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, ) - from .group_0632 import ( + from .group_0637 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0660 import ( + from .group_0665 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0770 import ( + from .group_0778 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0920 import ( + from .group_0936 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType, ) - from .group_0921 import ( + from .group_0937 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType, ) - from .group_0961 import ( + from .group_0980 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, ) - from .group_0977 import ( + from .group_0996 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType, ) - from .group_0987 import ( + from .group_1006 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type, ) - from .group_0988 import ( + from .group_1007 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type, ) - from .group_0989 import ( + from .group_1008 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type, ) - from .group_1041 import ( + from .group_1060 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type, ) - from .group_1081 import ( + from .group_1100 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType, ) - from .group_1085 import ( + from .group_1104 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type, ) - from .group_1086 import ( + from .group_1105 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type, ) - from .group_1088 import ( + from .group_1107 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType, ) - from .group_1090 import ( + from .group_1109 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0478 import ( + from .group_0483 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, ) - from .group_0549 import ( + from .group_0554 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0560 import ( + from .group_0565 import ( WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType as WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0703 import ( + from .group_0711 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, ) - from .group_0766 import ( + from .group_0774 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0774 import ( + from .group_0782 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0775 import ( + from .group_0783 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, ) - from .group_0800 import ( + from .group_0808 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType, ) - from .group_1017 import ( + from .group_0867 import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, + ) + from .group_1036 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type, ) - from .group_0199 import ( + from .group_0203 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType as PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType, ) - from .group_0444 import ( + from .group_0449 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType as WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0480 import ( + from .group_0485 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0505 import ( + from .group_0510 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0711 import ( + from .group_0719 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0777 import ( + from .group_0785 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0778 import ( + from .group_0786 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0808 import ( + from .group_0816 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type, ) - from .group_0905 import ( + from .group_0868 import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, + ) + from .group_0921 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_1021 import ( + from .group_1040 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType, ) - from .group_0113 import ( + from .group_1168 import ( + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType, + ) + from .group_0117 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0476 import ( + from .group_0481 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0533 import ( + from .group_0538 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType, ) - from .group_0565 import ( + from .group_0570 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0602 import ( + from .group_0607 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0734 import ( + from .group_0742 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, ) - from .group_0737 import ( + from .group_0745 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, ) - from .group_0739 import ( + from .group_0747 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0908 import ( + from .group_0924 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_0934 import ( + from .group_0950 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType, ) - from .group_1019 import ( + from .group_1038 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type, ) - from .group_0124 import ( + from .group_0128 import ( RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType as RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, ) - from .group_0435 import ( + from .group_0439 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0543 import ( + from .group_0548 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0554 import ( + from .group_0559 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0568 import ( + from .group_0573 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0569 import ( + from .group_0574 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0748 import ( + from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType, ) - from .group_0769 import ( + from .group_0777 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0838 import ( + from .group_0847 import ( OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type as OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type, ) - from .group_0914 import ( + from .group_0930 import ( OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType as OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType, ) - from .group_1018 import ( + from .group_1037 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType, ) - from .group_1046 import ( + from .group_1065 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType, ) - from .group_1110 import ( + from .group_1129 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType, ) - from .group_0113 import ( + from .group_0117 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType, ) - from .group_0475 import ( + from .group_0464 import ( + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType as WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType, + ) + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0534 import ( + from .group_0539 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType, ) - from .group_0546 import ( + from .group_0551 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0547 import ( + from .group_0552 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0557 import ( + from .group_0562 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0558 import ( + from .group_0563 import ( WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0707 import ( + from .group_0715 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, ) - from .group_0733 import ( + from .group_0741 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, ) - from .group_0770 import ( + from .group_0778 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0796 import ( + from .group_0804 import ( EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type as EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type, ) - from .group_0811 import ( + from .group_0819 import ( EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type as EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type, ) - from .group_0934 import ( + from .group_0950 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_1013 import ( + from .group_1032 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType, ) - from .group_1049 import ( + from .group_1068 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType, ) - from .group_0226 import ( + from .group_0230 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType as CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType, ) - from .group_0351 import ( + from .group_0355 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0477 import ( + from .group_0482 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0632 import ( + from .group_0637 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0804 import ( + from .group_0812 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType, ) - from .group_0807 import ( + from .group_0815 import ( EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type as EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type, ) - from .group_0963 import ( + from .group_0864 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, + ) + from .group_0982 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType, ) - from .group_0967 import ( + from .group_0986 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type, ) - from .group_0980 import ( + from .group_0999 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType, ) - from .group_0459 import ( + from .group_0464 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType, ) - from .group_0459 import ( + from .group_0464 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType, ) - from .group_0459 import ( + from .group_0464 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0578 import ( + from .group_0583 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0586 import ( + from .group_0591 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0588 import ( + from .group_0593 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, ) - from .group_0958 import ( + from .group_0974 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType, ) - from .group_0968 import ( + from .group_0976 import ( + ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType, + ) + from .group_0987 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type, ) - from .group_0970 import ( + from .group_0989 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type, ) - from .group_0973 import ( + from .group_0992 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type, ) - from .group_1115 import ( + from .group_1134 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_0258 import ( + from .group_1168 import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType, + ) + from .group_0262 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0481 import ( + from .group_0486 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0584 import ( + from .group_0589 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0587 import ( + from .group_0592 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0947 import ( + from .group_0963 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type, ) - from .group_0961 import ( + from .group_0980 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, ) - from .group_0971 import ( + from .group_0990 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type, ) - from .group_0974 import ( + from .group_0993 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type, ) - from .group_0211 import ( + from .group_0215 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0592 import ( + from .group_0597 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0596 import ( + from .group_0601 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0603 import ( + from .group_0608 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0969 import ( + from .group_0869 import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type, + ) + from .group_0988 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType, ) - from .group_0451 import ( + from .group_0456 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0475 import ( + from .group_0464 import ( + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType as WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType, + ) + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0476 import ( + from .group_0481 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, ) - from .group_0604 import ( + from .group_0609 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType, ) - from .group_0632 import ( + from .group_0637 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0632 import ( + from .group_0637 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0731 import ( + from .group_0739 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, ) - from .group_0748 import ( + from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0972 import ( + from .group_0991 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type, ) - from .group_0975 import ( + from .group_0994 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type, ) - from .group_0984 import ( + from .group_1003 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType, ) - from .group_0479 import ( + from .group_0484 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0589 import ( + from .group_0594 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType, ) - from .group_0602 import ( + from .group_0607 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0734 import ( + from .group_0742 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType, ) - from .group_0748 import ( + from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0980 import ( + from .group_0999 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType, ) - from .group_0112 import ( + from .group_0116 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType, ) - from .group_0128 import ( + from .group_0132 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, ) - from .group_0478 import ( + from .group_0483 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0632 import ( + from .group_0637 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0666 import ( + from .group_0671 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0802 import ( + from .group_0810 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType, ) - from .group_0962 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType, ) - from .group_0993 import ( + from .group_1012 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType, ) - from .group_0478 import ( + from .group_1168 import ( + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, + ) + from .group_0464 import ( + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType, + ) + from .group_0483 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0480 import ( + from .group_0485 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0567 import ( + from .group_0572 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0578 import ( + from .group_0583 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0585 import ( + from .group_0590 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0803 import ( + from .group_0811 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type, ) - from .group_1015 import ( + from .group_0978 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, + ) + from .group_1034 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType, ) - from .group_0480 import ( + from .group_1168 import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType, + ) + from .group_0485 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, ) - from .group_0545 import ( + from .group_0550 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0556 import ( + from .group_0561 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0602 import ( + from .group_0607 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0814 import ( + from .group_0823 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType, ) - from .group_0961 import ( + from .group_0980 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, ) - from .group_0211 import ( + from .group_0215 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0707 import ( + from .group_0715 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0748 import ( + from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_1116 import ( + from .group_1135 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_0459 import ( + from .group_0464 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0473 import ( + from .group_0478 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0474 import ( + from .group_0479 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0707 import ( + from .group_0715 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0733 import ( + from .group_0741 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType, ) - from .group_0816 import ( + from .group_0825 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType, ) - from .group_0906 import ( + from .group_0864 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, + ) + from .group_0922 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_0477 import ( + from .group_0482 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0498 import ( + from .group_0503 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0603 import ( + from .group_0608 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0934 import ( + from .group_0950 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType, ) - from .group_0934 import ( + from .group_0950 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0475 import ( + from .group_0480 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0477 import ( + from .group_0482 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0604 import ( + from .group_0609 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0781 import ( + from .group_0789 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0783 import ( + from .group_0791 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0964 import ( + from .group_0983 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type, ) - from .group_1014 import ( + from .group_1033 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type, ) - from .group_0271 import ( + from .group_1168 import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType, + ) + from .group_0275 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type, ) - from .group_0481 import ( + from .group_0486 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0567 import ( + from .group_0572 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0782 import ( + from .group_0790 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0801 import ( + from .group_0809 import ( EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type as EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type, ) - from .group_0965 import ( + from .group_0984 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type, ) - from .group_1110 import ( + from .group_1129 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type, ) - from .group_0481 import ( + from .group_0486 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0545 import ( + from .group_0550 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0556 import ( + from .group_0561 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0603 import ( + from .group_0608 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0476 import ( + from .group_0464 import ( + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType, + ) + from .group_0481 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0590 import ( + from .group_0595 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0604 import ( + from .group_0609 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0680 import ( + from .group_0688 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0731 import ( + from .group_0739 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType, ) - from .group_0815 import ( + from .group_0824 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type, ) - from .group_0963 import ( + from .group_0982 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType, ) - from .group_0966 import ( + from .group_0985 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type, ) - from .group_0476 import ( + from .group_0481 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0500 import ( + from .group_0505 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0501 import ( + from .group_0506 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0679 import ( + from .group_0687 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0707 import ( + from .group_0715 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0459 import ( + from .group_0950 import ( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType, + ) + from .group_0464 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0502 import ( + from .group_0507 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, ) - from .group_0670 import ( + from .group_0678 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0676 import ( + from .group_0684 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0678 import ( + from .group_0686 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0700 import ( + from .group_0708 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0817 import ( + from .group_0826 import ( EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type as EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type, ) - from .group_0961 import ( + from .group_0978 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, + ) + from .group_0980 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType, ) - from .group_1016 import ( + from .group_1035 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type, ) - from .group_0629 import ( + from .group_1168 import ( + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType, + ) + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0699 import ( + from .group_0707 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0907 import ( + from .group_0923 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_1110 import ( + from .group_1129 import ( ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType as ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0698 import ( + from .group_0706 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0593 import ( + from .group_0598 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0697 import ( + from .group_0705 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0707 import ( + from .group_0715 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0707 import ( + from .group_0715 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0748 import ( + from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0459 import ( + from .group_0464 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType, ) - from .group_0689 import ( + from .group_0697 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0733 import ( + from .group_0741 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0707 import ( + from .group_0715 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0733 import ( + from .group_0741 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType, ) - from .group_0503 import ( + from .group_0508 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0629 import ( + from .group_0634 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) - from .group_0688 import ( + from .group_0696 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0694 import ( + from .group_0702 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0672 import ( + from .group_0680 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0690 import ( + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0731 import ( + from .group_0739 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType, ) - from .group_0671 import ( + from .group_0679 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0731 import ( + from .group_0739 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType, ) - from .group_0731 import ( + from .group_0739 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType, ) - from .group_0704 import ( + from .group_0864 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, + ) + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0733 import ( + from .group_0741 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType, ) - from .group_0687 import ( + from .group_0695 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0685 import ( + from .group_0693 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0686 import ( + from .group_0694 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0695 import ( + from .group_0703 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0692 import ( + from .group_0700 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0693 import ( + from .group_0701 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, ) - from .group_0696 import ( + from .group_0704 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0962 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0731 import ( + from .group_0739 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType, ) - from .group_0748 import ( + from .group_0756 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0961 import ( + from .group_0978 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, + ) + from .group_0980 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0690 import ( + from .group_0864 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, + ) + from .group_0698 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0691 import ( + from .group_0699 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, ) - from .group_0962 import ( + from .group_0981 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0961 import ( + from .group_0980 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_0704 import ( + from .group_0712 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) + from .group_0978 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, + ) else: __lazy_vars__ = { ".group_0000": ("RootType",), @@ -8996,237 +9157,245 @@ "GetConsumedLicensesType", "GetConsumedLicensesPropUsersItemsType", ), - ".group_0047": ( + ".group_0047": ("TeamSimpleType",), + ".group_0048": ( + "TeamType", + "TeamPropPermissionsType", + ), + ".group_0049": ( + "CopilotSeatDetailsType", + "EnterpriseTeamType", + "OrganizationType", + "OrganizationPropPlanType", + ), + ".group_0050": ( "CopilotUsageMetricsType", "CopilotUsageMetricsPropBreakdownItemsType", ), - ".group_0048": ("DependabotAlertPackageType",), - ".group_0049": ( + ".group_0051": ("DependabotAlertPackageType",), + ".group_0052": ( "DependabotAlertSecurityVulnerabilityType", "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType", ), - ".group_0050": ( + ".group_0053": ( "DependabotAlertSecurityAdvisoryType", "DependabotAlertSecurityAdvisoryPropCvssType", "DependabotAlertSecurityAdvisoryPropCwesItemsType", "DependabotAlertSecurityAdvisoryPropIdentifiersItemsType", "DependabotAlertSecurityAdvisoryPropReferencesItemsType", ), - ".group_0051": ("DependabotAlertWithRepositoryType",), - ".group_0052": ("DependabotAlertWithRepositoryPropDependencyType",), - ".group_0053": ( + ".group_0054": ("DependabotAlertWithRepositoryType",), + ".group_0055": ("DependabotAlertWithRepositoryPropDependencyType",), + ".group_0056": ( "GetLicenseSyncStatusType", "GetLicenseSyncStatusPropServerInstancesItemsType", "GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType", ), - ".group_0054": ("OrganizationSecretScanningAlertType",), - ".group_0055": ( + ".group_0057": ("OrganizationSecretScanningAlertType",), + ".group_0058": ( "ActionsBillingUsageType", "ActionsBillingUsagePropMinutesUsedBreakdownType", ), - ".group_0056": ( + ".group_0059": ( "AdvancedSecurityActiveCommittersType", "AdvancedSecurityActiveCommittersRepositoryType", "AdvancedSecurityActiveCommittersUserType", ), - ".group_0057": ( + ".group_0060": ( "GetAllCostCentersType", "GetAllCostCentersPropCostCentersItemsType", "GetAllCostCentersPropCostCentersItemsPropResourcesItemsType", ), - ".group_0058": ("PackagesBillingUsageType",), - ".group_0059": ("CombinedBillingUsageType",), - ".group_0060": ( + ".group_0061": ("PackagesBillingUsageType",), + ".group_0062": ("CombinedBillingUsageType",), + ".group_0063": ( "BillingUsageReportType", "BillingUsageReportPropUsageItemsItemsType", ), - ".group_0061": ("MilestoneType",), - ".group_0062": ("ReactionRollupType",), - ".group_0063": ( + ".group_0064": ("MilestoneType",), + ".group_0065": ("ReactionRollupType",), + ".group_0066": ( "IssueType", "IssuePropLabelsItemsOneof1Type", "IssuePropPullRequestType", ), - ".group_0064": ("IssueCommentType",), - ".group_0065": ( + ".group_0067": ("IssueCommentType",), + ".group_0068": ( "EventPropPayloadType", "EventPropPayloadPropPagesItemsType", "EventType", "ActorType", "EventPropRepoType", ), - ".group_0066": ( + ".group_0069": ( "FeedType", "FeedPropLinksType", "LinkWithTypeType", ), - ".group_0067": ( + ".group_0070": ( "BaseGistType", "BaseGistPropFilesType", ), - ".group_0068": ( + ".group_0071": ( "GistHistoryType", "GistHistoryPropChangeStatusType", "GistSimplePropForkOfType", "GistSimplePropForkOfPropFilesType", ), - ".group_0069": ( + ".group_0072": ( "GistSimpleType", "GistSimplePropFilesType", "GistSimplePropForksItemsType", "PublicUserType", "PublicUserPropPlanType", ), - ".group_0070": ("GistCommentType",), - ".group_0071": ( + ".group_0073": ("GistCommentType",), + ".group_0074": ( "GistCommitType", "GistCommitPropChangeStatusType", ), - ".group_0072": ("GitignoreTemplateType",), - ".group_0073": ("LicenseType",), - ".group_0074": ("MarketplaceListingPlanType",), - ".group_0075": ("MarketplacePurchaseType",), - ".group_0076": ( + ".group_0075": ("GitignoreTemplateType",), + ".group_0076": ("LicenseType",), + ".group_0077": ("MarketplaceListingPlanType",), + ".group_0078": ("MarketplacePurchaseType",), + ".group_0079": ( "MarketplacePurchasePropMarketplacePendingChangeType", "MarketplacePurchasePropMarketplacePurchaseType", ), - ".group_0077": ( + ".group_0080": ( "ApiOverviewType", "ApiOverviewPropSshKeyFingerprintsType", "ApiOverviewPropDomainsType", ), - ".group_0078": ( + ".group_0081": ( "SecurityAndAnalysisType", "SecurityAndAnalysisPropAdvancedSecurityType", "SecurityAndAnalysisPropDependabotSecurityUpdatesType", "SecurityAndAnalysisPropSecretScanningType", "SecurityAndAnalysisPropSecretScanningPushProtectionType", + "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", "SecurityAndAnalysisPropSecretScanningValidityChecksType", ), - ".group_0079": ( + ".group_0082": ( "MinimalRepositoryType", "CodeOfConductType", "MinimalRepositoryPropPermissionsType", "MinimalRepositoryPropLicenseType", ), - ".group_0080": ( + ".group_0083": ( "ThreadType", "ThreadPropSubjectType", ), - ".group_0081": ("ThreadSubscriptionType",), - ".group_0082": ("OrganizationCustomRepositoryRoleType",), - ".group_0083": ( + ".group_0084": ("ThreadSubscriptionType",), + ".group_0085": ("OrganizationCustomRepositoryRoleType",), + ".group_0086": ( "OrganizationFullType", "OrganizationFullPropPlanType", ), - ".group_0084": ("OidcCustomSubType",), - ".group_0085": ("EmptyObjectType",), - ".group_0086": ("ActionsOrganizationPermissionsType",), - ".group_0087": ("ActionsPublicKeyType",), - ".group_0088": ("CodespaceMachineType",), - ".group_0089": ( + ".group_0087": ("OidcCustomSubType",), + ".group_0088": ("ActionsOrganizationPermissionsType",), + ".group_0089": ("ActionsPublicKeyType",), + ".group_0090": ("CodeSecurityConfigurationType",), + ".group_0091": ("CodeSecurityDefaultConfigurationsItemsType",), + ".group_0092": ("CodeSecurityConfigurationRepositoriesType",), + ".group_0093": ("CodespaceMachineType",), + ".group_0094": ( "CodespaceType", "CodespacePropGitStatusType", "CodespacePropRuntimeConstraintsType", ), - ".group_0090": ("CodespacesPublicKeyType",), - ".group_0091": ( + ".group_0095": ("CodespacesPublicKeyType",), + ".group_0096": ( "CopilotOrganizationDetailsType", "CopilotSeatBreakdownType", ), - ".group_0092": ("TeamSimpleType",), - ".group_0093": ( - "TeamType", - "TeamPropPermissionsType", - ), - ".group_0094": ( - "CopilotSeatDetailsType", - "OrganizationType", - "OrganizationPropPlanType", - "OrgsOrgCopilotBillingSeatsGetResponse200Type", - ), - ".group_0095": ("CredentialAuthorizationType",), - ".group_0096": ("OrganizationCustomRepositoryRoleCreateSchemaType",), - ".group_0097": ("OrganizationCustomRepositoryRoleUpdateSchemaType",), - ".group_0098": ("DependabotPublicKeyType",), - ".group_0099": ("PackageType",), - ".group_0100": ( + ".group_0097": ("CredentialAuthorizationType",), + ".group_0098": ("OrganizationCustomRepositoryRoleCreateSchemaType",), + ".group_0099": ("OrganizationCustomRepositoryRoleUpdateSchemaType",), + ".group_0100": ("DependabotPublicKeyType",), + ".group_0101": ("PackageType",), + ".group_0102": ( "ExternalGroupType", "ExternalGroupPropTeamsItemsType", "ExternalGroupPropMembersItemsType", ), - ".group_0101": ( + ".group_0103": ( "ExternalGroupsType", "ExternalGroupsPropGroupsItemsType", ), - ".group_0102": ("OrganizationInvitationType",), - ".group_0103": ("RepositoryFineGrainedPermissionType",), - ".group_0104": ( + ".group_0104": ("OrganizationInvitationType",), + ".group_0105": ("RepositoryFineGrainedPermissionType",), + ".group_0106": ( "OrgHookType", "OrgHookPropConfigType", ), - ".group_0105": ("InteractionLimitResponseType",), - ".group_0106": ("InteractionLimitType",), - ".group_0107": ( + ".group_0107": ("InteractionLimitResponseType",), + ".group_0108": ("InteractionLimitType",), + ".group_0109": ( "OrgMembershipType", "OrgMembershipPropPermissionsType", ), - ".group_0108": ("MigrationType",), - ".group_0109": ("OrganizationFineGrainedPermissionType",), - ".group_0110": ( + ".group_0110": ("MigrationType",), + ".group_0111": ("OrganizationFineGrainedPermissionType",), + ".group_0112": ( "OrganizationRoleType", "OrgsOrgOrganizationRolesGetResponse200Type", ), - ".group_0111": ( + ".group_0113": ( + "TeamRoleAssignmentType", + "TeamRoleAssignmentPropPermissionsType", + ), + ".group_0114": ("UserRoleAssignmentType",), + ".group_0115": ( "PackageVersionType", "PackageVersionPropMetadataType", "PackageVersionPropMetadataPropContainerType", "PackageVersionPropMetadataPropDockerType", ), - ".group_0112": ( + ".group_0116": ( "OrganizationProgrammaticAccessGrantRequestType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", ), - ".group_0113": ( + ".group_0117": ( "OrganizationProgrammaticAccessGrantType", "OrganizationProgrammaticAccessGrantPropPermissionsType", "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", ), - ".group_0114": ("ProjectType",), - ".group_0115": ("OrgCustomPropertyType",), - ".group_0116": ("CustomPropertyValueType",), - ".group_0117": ("OrgRepoCustomPropertyValuesType",), - ".group_0118": ("CodeOfConductSimpleType",), - ".group_0119": ( + ".group_0118": ("ProjectType",), + ".group_0119": ("OrgCustomPropertyType",), + ".group_0120": ("CustomPropertyValueType",), + ".group_0121": ("OrgRepoCustomPropertyValuesType",), + ".group_0122": ("CodeOfConductSimpleType",), + ".group_0123": ( "FullRepositoryType", "FullRepositoryPropPermissionsType", "FullRepositoryPropCustomPropertiesType", ), - ".group_0120": ("RepositoryRulesetBypassActorType",), - ".group_0121": ("RepositoryRulesetConditionsType",), - ".group_0122": ("RepositoryRulesetConditionsPropRefNameType",), - ".group_0123": ("RepositoryRulesetConditionsRepositoryNameTargetType",), - ".group_0124": ( + ".group_0124": ("RepositoryRulesetBypassActorType",), + ".group_0125": ("RepositoryRulesetConditionsType",), + ".group_0126": ("RepositoryRulesetConditionsPropRefNameType",), + ".group_0127": ("RepositoryRulesetConditionsRepositoryNameTargetType",), + ".group_0128": ( "RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType", ), - ".group_0125": ("RepositoryRulesetConditionsRepositoryIdTargetType",), - ".group_0126": ( + ".group_0129": ("RepositoryRulesetConditionsRepositoryIdTargetType",), + ".group_0130": ( "RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType", ), - ".group_0127": ("RepositoryRulesetConditionsRepositoryPropertyTargetType",), - ".group_0128": ( + ".group_0131": ("RepositoryRulesetConditionsRepositoryPropertyTargetType",), + ".group_0132": ( "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", "RepositoryRulesetConditionsRepositoryPropertySpecType", ), - ".group_0129": ("OrgRulesetConditionsOneof0Type",), - ".group_0130": ("OrgRulesetConditionsOneof1Type",), - ".group_0131": ("OrgRulesetConditionsOneof2Type",), - ".group_0132": ( + ".group_0133": ("OrgRulesetConditionsOneof0Type",), + ".group_0134": ("OrgRulesetConditionsOneof1Type",), + ".group_0135": ("OrgRulesetConditionsOneof2Type",), + ".group_0136": ( "RepositoryRuleCreationType", "RepositoryRuleDeletionType", "RepositoryRuleRequiredSignaturesType", @@ -9236,61 +9405,61 @@ "RepositoryRuleOneof16Type", "RepositoryRuleOneof16PropParametersType", ), - ".group_0133": ("RepositoryRuleUpdateType",), - ".group_0134": ("RepositoryRuleUpdatePropParametersType",), - ".group_0135": ( + ".group_0137": ("RepositoryRuleUpdateType",), + ".group_0138": ("RepositoryRuleUpdatePropParametersType",), + ".group_0139": ( "RepositoryRuleRequiredLinearHistoryType", "RepositoryRuleOneof15Type", "RepositoryRuleOneof15PropParametersType", ), - ".group_0136": ("RepositoryRuleRequiredDeploymentsType",), - ".group_0137": ("RepositoryRuleRequiredDeploymentsPropParametersType",), - ".group_0138": ("RepositoryRulePullRequestType",), - ".group_0139": ("RepositoryRulePullRequestPropParametersType",), - ".group_0140": ("RepositoryRuleRequiredStatusChecksType",), - ".group_0141": ( + ".group_0140": ("RepositoryRuleRequiredDeploymentsType",), + ".group_0141": ("RepositoryRuleRequiredDeploymentsPropParametersType",), + ".group_0142": ("RepositoryRulePullRequestType",), + ".group_0143": ("RepositoryRulePullRequestPropParametersType",), + ".group_0144": ("RepositoryRuleRequiredStatusChecksType",), + ".group_0145": ( "RepositoryRuleRequiredStatusChecksPropParametersType", "RepositoryRuleParamsStatusCheckConfigurationType", ), - ".group_0142": ("RepositoryRuleCommitMessagePatternType",), - ".group_0143": ("RepositoryRuleCommitMessagePatternPropParametersType",), - ".group_0144": ("RepositoryRuleCommitAuthorEmailPatternType",), - ".group_0145": ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",), - ".group_0146": ("RepositoryRuleCommitterEmailPatternType",), - ".group_0147": ("RepositoryRuleCommitterEmailPatternPropParametersType",), - ".group_0148": ("RepositoryRuleBranchNamePatternType",), - ".group_0149": ("RepositoryRuleBranchNamePatternPropParametersType",), - ".group_0150": ("RepositoryRuleTagNamePatternType",), - ".group_0151": ("RepositoryRuleTagNamePatternPropParametersType",), - ".group_0152": ("RepositoryRuleParamsRestrictedCommitsType",), - ".group_0153": ("RepositoryRuleWorkflowsType",), - ".group_0154": ( + ".group_0146": ("RepositoryRuleCommitMessagePatternType",), + ".group_0147": ("RepositoryRuleCommitMessagePatternPropParametersType",), + ".group_0148": ("RepositoryRuleCommitAuthorEmailPatternType",), + ".group_0149": ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",), + ".group_0150": ("RepositoryRuleCommitterEmailPatternType",), + ".group_0151": ("RepositoryRuleCommitterEmailPatternPropParametersType",), + ".group_0152": ("RepositoryRuleBranchNamePatternType",), + ".group_0153": ("RepositoryRuleBranchNamePatternPropParametersType",), + ".group_0154": ("RepositoryRuleTagNamePatternType",), + ".group_0155": ("RepositoryRuleTagNamePatternPropParametersType",), + ".group_0156": ("RepositoryRuleParamsRestrictedCommitsType",), + ".group_0157": ("RepositoryRuleWorkflowsType",), + ".group_0158": ( "RepositoryRuleWorkflowsPropParametersType", "RepositoryRuleParamsWorkflowFileReferenceType", ), - ".group_0155": ("RepositoryRuleCodeScanningType",), - ".group_0156": ( + ".group_0159": ("RepositoryRuleCodeScanningType",), + ".group_0160": ( "RepositoryRuleCodeScanningPropParametersType", "RepositoryRuleParamsCodeScanningToolType", ), - ".group_0157": ( + ".group_0161": ( "RepositoryRuleOneof17Type", "RepositoryRuleOneof17PropParametersType", ), - ".group_0158": ( + ".group_0162": ( "RepositoryRulesetType", "RepositoryRulesetPropLinksType", "RepositoryRulesetPropLinksPropSelfType", "RepositoryRulesetPropLinksPropHtmlType", ), - ".group_0159": ("RuleSuitesItemsType",), - ".group_0160": ( + ".group_0163": ("RuleSuitesItemsType",), + ".group_0164": ( "RuleSuiteType", "RuleSuitePropRuleEvaluationsItemsType", "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", ), - ".group_0161": ("RepositoryAdvisoryCreditType",), - ".group_0162": ( + ".group_0165": ("RepositoryAdvisoryCreditType",), + ".group_0166": ( "RepositoryAdvisoryType", "RepositoryAdvisoryPropIdentifiersItemsType", "RepositoryAdvisoryPropSubmissionType", @@ -9300,82 +9469,82 @@ "RepositoryAdvisoryVulnerabilityType", "RepositoryAdvisoryVulnerabilityPropPackageType", ), - ".group_0163": ( + ".group_0167": ( "GroupMappingType", "GroupMappingPropGroupsItemsType", ), - ".group_0164": ( + ".group_0168": ( "TeamFullType", "TeamOrganizationType", "TeamOrganizationPropPlanType", ), - ".group_0165": ("TeamDiscussionType",), - ".group_0166": ("TeamDiscussionCommentType",), - ".group_0167": ("ReactionType",), - ".group_0168": ("TeamMembershipType",), - ".group_0169": ( + ".group_0169": ("TeamDiscussionType",), + ".group_0170": ("TeamDiscussionCommentType",), + ".group_0171": ("ReactionType",), + ".group_0172": ("TeamMembershipType",), + ".group_0173": ( "TeamProjectType", "TeamProjectPropPermissionsType", ), - ".group_0170": ( + ".group_0174": ( "TeamRepositoryType", "TeamRepositoryPropPermissionsType", ), - ".group_0171": ("ProjectCardType",), - ".group_0172": ("ProjectColumnType",), - ".group_0173": ("ProjectCollaboratorPermissionType",), - ".group_0174": ("RateLimitType",), - ".group_0175": ("RateLimitOverviewType",), - ".group_0176": ("RateLimitOverviewPropResourcesType",), - ".group_0177": ( + ".group_0175": ("ProjectCardType",), + ".group_0176": ("ProjectColumnType",), + ".group_0177": ("ProjectCollaboratorPermissionType",), + ".group_0178": ("RateLimitType",), + ".group_0179": ("RateLimitOverviewType",), + ".group_0180": ("RateLimitOverviewPropResourcesType",), + ".group_0181": ( "ArtifactType", "ArtifactPropWorkflowRunType", ), - ".group_0178": ( + ".group_0182": ( "ActionsCacheListType", "ActionsCacheListPropActionsCachesItemsType", ), - ".group_0179": ( + ".group_0183": ( "JobType", "JobPropStepsItemsType", ), - ".group_0180": ("OidcCustomSubRepoType",), - ".group_0181": ("ActionsSecretType",), - ".group_0182": ("ActionsVariableType",), - ".group_0183": ("ActionsRepositoryPermissionsType",), - ".group_0184": ("ActionsWorkflowAccessToRepositoryType",), - ".group_0185": ( + ".group_0184": ("OidcCustomSubRepoType",), + ".group_0185": ("ActionsSecretType",), + ".group_0186": ("ActionsVariableType",), + ".group_0187": ("ActionsRepositoryPermissionsType",), + ".group_0188": ("ActionsWorkflowAccessToRepositoryType",), + ".group_0189": ( "PullRequestMinimalType", "PullRequestMinimalPropHeadType", "PullRequestMinimalPropHeadPropRepoType", "PullRequestMinimalPropBaseType", "PullRequestMinimalPropBasePropRepoType", ), - ".group_0186": ( + ".group_0190": ( "SimpleCommitType", "SimpleCommitPropAuthorType", "SimpleCommitPropCommitterType", ), - ".group_0187": ( + ".group_0191": ( "WorkflowRunType", "ReferencedWorkflowType", ), - ".group_0188": ( + ".group_0192": ( "EnvironmentApprovalsType", "EnvironmentApprovalsPropEnvironmentsItemsType", ), - ".group_0189": ("ReviewCustomGatesCommentRequiredType",), - ".group_0190": ("ReviewCustomGatesStateRequiredType",), - ".group_0191": ( + ".group_0193": ("ReviewCustomGatesCommentRequiredType",), + ".group_0194": ("ReviewCustomGatesStateRequiredType",), + ".group_0195": ( "PendingDeploymentPropReviewersItemsType", "PendingDeploymentType", "PendingDeploymentPropEnvironmentType", ), - ".group_0192": ( + ".group_0196": ( "DeploymentType", "DeploymentPropPayloadOneof0Type", ), - ".group_0193": ( + ".group_0197": ( "WorkflowRunUsageType", "WorkflowRunUsagePropBillableType", "WorkflowRunUsagePropBillablePropUbuntuType", @@ -9385,22 +9554,22 @@ "WorkflowRunUsagePropBillablePropWindowsType", "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", ), - ".group_0194": ( + ".group_0198": ( "WorkflowUsageType", "WorkflowUsagePropBillableType", "WorkflowUsagePropBillablePropUbuntuType", "WorkflowUsagePropBillablePropMacosType", "WorkflowUsagePropBillablePropWindowsType", ), - ".group_0195": ("ActivityType",), - ".group_0196": ("AutolinkType",), - ".group_0197": ("CheckAutomatedSecurityFixesType",), - ".group_0198": ("ProtectedBranchPullRequestReviewType",), - ".group_0199": ( + ".group_0199": ("ActivityType",), + ".group_0200": ("AutolinkType",), + ".group_0201": ("CheckAutomatedSecurityFixesType",), + ".group_0202": ("ProtectedBranchPullRequestReviewType",), + ".group_0203": ( "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", ), - ".group_0200": ( + ".group_0204": ( "BranchRestrictionPolicyType", "BranchRestrictionPolicyPropUsersItemsType", "BranchRestrictionPolicyPropTeamsItemsType", @@ -9408,7 +9577,7 @@ "BranchRestrictionPolicyPropAppsItemsPropOwnerType", "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", ), - ".group_0201": ( + ".group_0205": ( "BranchProtectionType", "ProtectedBranchAdminEnforcedType", "BranchProtectionPropRequiredLinearHistoryType", @@ -9422,27 +9591,28 @@ "ProtectedBranchRequiredStatusCheckType", "ProtectedBranchRequiredStatusCheckPropChecksItemsType", ), - ".group_0202": ( + ".group_0206": ( "ShortBranchType", "ShortBranchPropCommitType", ), - ".group_0203": ("GitUserType",), - ".group_0204": ("VerificationType",), - ".group_0205": ("DiffEntryType",), - ".group_0206": ( + ".group_0207": ("GitUserType",), + ".group_0208": ("VerificationType",), + ".group_0209": ("DiffEntryType",), + ".group_0210": ( "CommitType", + "EmptyObjectType", "CommitPropParentsItemsType", "CommitPropStatsType", ), - ".group_0207": ( + ".group_0211": ( "CommitPropCommitType", "CommitPropCommitPropTreeType", ), - ".group_0208": ( + ".group_0212": ( "BranchWithProtectionType", "BranchWithProtectionPropLinksType", ), - ".group_0209": ( + ".group_0213": ( "ProtectedBranchType", "ProtectedBranchPropRequiredSignaturesType", "ProtectedBranchPropEnforceAdminsType", @@ -9456,113 +9626,113 @@ "StatusCheckPolicyType", "StatusCheckPolicyPropChecksItemsType", ), - ".group_0210": ("ProtectedBranchPropRequiredPullRequestReviewsType",), - ".group_0211": ( + ".group_0214": ("ProtectedBranchPropRequiredPullRequestReviewsType",), + ".group_0215": ( "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", ), - ".group_0212": ("DeploymentSimpleType",), - ".group_0213": ( + ".group_0216": ("DeploymentSimpleType",), + ".group_0217": ( "CheckRunType", "CheckRunPropOutputType", "CheckRunPropCheckSuiteType", ), - ".group_0214": ("CheckAnnotationType",), - ".group_0215": ( + ".group_0218": ("CheckAnnotationType",), + ".group_0219": ( "CheckSuiteType", "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", ), - ".group_0216": ( + ".group_0220": ( "CheckSuitePreferenceType", "CheckSuitePreferencePropPreferencesType", "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", ), - ".group_0217": ("CodeScanningAlertItemsType",), - ".group_0218": ( + ".group_0221": ("CodeScanningAlertItemsType",), + ".group_0222": ( "CodeScanningAlertType", "CodeScanningAlertRuleType", ), - ".group_0219": ("CodeScanningAnalysisType",), - ".group_0220": ("CodeScanningAnalysisDeletionType",), - ".group_0221": ("CodeScanningCodeqlDatabaseType",), - ".group_0222": ("CodeScanningVariantAnalysisRepositoryType",), - ".group_0223": ("CodeScanningVariantAnalysisSkippedRepoGroupType",), - ".group_0224": ("CodeScanningVariantAnalysisType",), - ".group_0225": ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",), - ".group_0226": ( + ".group_0223": ("CodeScanningAnalysisType",), + ".group_0224": ("CodeScanningAnalysisDeletionType",), + ".group_0225": ("CodeScanningCodeqlDatabaseType",), + ".group_0226": ("CodeScanningVariantAnalysisRepositoryType",), + ".group_0227": ("CodeScanningVariantAnalysisSkippedRepoGroupType",), + ".group_0228": ("CodeScanningVariantAnalysisType",), + ".group_0229": ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",), + ".group_0230": ( "CodeScanningVariantAnalysisPropSkippedRepositoriesType", "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", ), - ".group_0227": ("CodeScanningVariantAnalysisRepoTaskType",), - ".group_0228": ("CodeScanningDefaultSetupType",), - ".group_0229": ("CodeScanningDefaultSetupUpdateType",), - ".group_0230": ("CodeScanningDefaultSetupUpdateResponseType",), - ".group_0231": ("CodeScanningSarifsReceiptType",), - ".group_0232": ("CodeScanningSarifsStatusType",), - ".group_0233": ( + ".group_0231": ("CodeScanningVariantAnalysisRepoTaskType",), + ".group_0232": ("CodeScanningDefaultSetupType",), + ".group_0233": ("CodeScanningDefaultSetupUpdateType",), + ".group_0234": ("CodeScanningDefaultSetupUpdateResponseType",), + ".group_0235": ("CodeScanningSarifsReceiptType",), + ".group_0236": ("CodeScanningSarifsStatusType",), + ".group_0237": ( "CodeownersErrorsType", "CodeownersErrorsPropErrorsItemsType", ), - ".group_0234": ("CodespacesPermissionsCheckForDevcontainerType",), - ".group_0235": ("RepositoryInvitationType",), - ".group_0236": ( + ".group_0238": ("CodespacesPermissionsCheckForDevcontainerType",), + ".group_0239": ("RepositoryInvitationType",), + ".group_0240": ( "RepositoryCollaboratorPermissionType", "CollaboratorType", "CollaboratorPropPermissionsType", ), - ".group_0237": ( + ".group_0241": ( "CommitCommentType", "TimelineCommitCommentedEventType", ), - ".group_0238": ( + ".group_0242": ( "BranchShortType", "BranchShortPropCommitType", ), - ".group_0239": ("LinkType",), - ".group_0240": ("AutoMergeType",), - ".group_0241": ( + ".group_0243": ("LinkType",), + ".group_0244": ("AutoMergeType",), + ".group_0245": ( "PullRequestSimpleType", "PullRequestSimplePropLabelsItemsType", ), - ".group_0242": ( + ".group_0246": ( "PullRequestSimplePropHeadType", "PullRequestSimplePropBaseType", ), - ".group_0243": ("PullRequestSimplePropLinksType",), - ".group_0244": ( + ".group_0247": ("PullRequestSimplePropLinksType",), + ".group_0248": ( "CombinedCommitStatusType", "SimpleCommitStatusType", ), - ".group_0245": ("StatusType",), - ".group_0246": ( + ".group_0249": ("StatusType",), + ".group_0250": ( "CommunityProfilePropFilesType", "CommunityHealthFileType", "CommunityProfileType", ), - ".group_0247": ("CommitComparisonType",), - ".group_0248": ( + ".group_0251": ("CommitComparisonType",), + ".group_0252": ( "ContentTreeType", "ContentTreePropLinksType", "ContentTreePropEntriesItemsType", "ContentTreePropEntriesItemsPropLinksType", ), - ".group_0249": ( + ".group_0253": ( "ContentDirectoryItemsType", "ContentDirectoryItemsPropLinksType", ), - ".group_0250": ( + ".group_0254": ( "ContentFileType", "ContentFilePropLinksType", ), - ".group_0251": ( + ".group_0255": ( "ContentSymlinkType", "ContentSymlinkPropLinksType", ), - ".group_0252": ( + ".group_0256": ( "ContentSubmoduleType", "ContentSubmodulePropLinksType", ), - ".group_0253": ( + ".group_0257": ( "FileCommitType", "FileCommitPropContentType", "FileCommitPropContentPropLinksType", @@ -9573,55 +9743,55 @@ "FileCommitPropCommitPropParentsItemsType", "FileCommitPropCommitPropVerificationType", ), - ".group_0254": ("ContributorType",), - ".group_0255": ("DependabotAlertType",), - ".group_0256": ("DependabotAlertPropDependencyType",), - ".group_0257": ( + ".group_0258": ("ContributorType",), + ".group_0259": ("DependabotAlertType",), + ".group_0260": ("DependabotAlertPropDependencyType",), + ".group_0261": ( "DependencyGraphDiffItemsType", "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", ), - ".group_0258": ( + ".group_0262": ( "DependencyGraphSpdxSbomType", "DependencyGraphSpdxSbomPropSbomType", "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", ), - ".group_0259": ("MetadataType",), - ".group_0260": ("DependencyType",), - ".group_0261": ( + ".group_0263": ("MetadataType",), + ".group_0264": ("DependencyType",), + ".group_0265": ( "ManifestType", "ManifestPropFileType", "ManifestPropResolvedType", ), - ".group_0262": ( + ".group_0266": ( "SnapshotType", "SnapshotPropJobType", "SnapshotPropDetectorType", "SnapshotPropManifestsType", ), - ".group_0263": ("DeploymentStatusType",), - ".group_0264": ("DeploymentBranchPolicySettingsType",), - ".group_0265": ( + ".group_0267": ("DeploymentStatusType",), + ".group_0268": ("DeploymentBranchPolicySettingsType",), + ".group_0269": ( "EnvironmentType", "EnvironmentPropProtectionRulesItemsAnyof0Type", "EnvironmentPropProtectionRulesItemsAnyof2Type", "ReposOwnerRepoEnvironmentsGetResponse200Type", ), - ".group_0266": ("EnvironmentPropProtectionRulesItemsAnyof1Type",), - ".group_0267": ( + ".group_0270": ("EnvironmentPropProtectionRulesItemsAnyof1Type",), + ".group_0271": ( "EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType", ), - ".group_0268": ("DeploymentBranchPolicyNamePatternWithTypeType",), - ".group_0269": ("DeploymentBranchPolicyNamePatternType",), - ".group_0270": ("CustomDeploymentRuleAppType",), - ".group_0271": ( + ".group_0272": ("DeploymentBranchPolicyNamePatternWithTypeType",), + ".group_0273": ("DeploymentBranchPolicyNamePatternType",), + ".group_0274": ("CustomDeploymentRuleAppType",), + ".group_0275": ( "DeploymentProtectionRuleType", "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", ), - ".group_0272": ("ShortBlobType",), - ".group_0273": ("BlobType",), - ".group_0274": ( + ".group_0276": ("ShortBlobType",), + ".group_0277": ("BlobType",), + ".group_0278": ( "GitCommitType", "GitCommitPropAuthorType", "GitCommitPropCommitterType", @@ -9629,28 +9799,28 @@ "GitCommitPropParentsItemsType", "GitCommitPropVerificationType", ), - ".group_0275": ( + ".group_0279": ( "GitRefType", "GitRefPropObjectType", ), - ".group_0276": ( + ".group_0280": ( "GitTagType", "GitTagPropTaggerType", "GitTagPropObjectType", ), - ".group_0277": ( + ".group_0281": ( "GitTreeType", "GitTreePropTreeItemsType", ), - ".group_0278": ("HookResponseType",), - ".group_0279": ("HookType",), - ".group_0280": ( + ".group_0282": ("HookResponseType",), + ".group_0283": ("HookType",), + ".group_0284": ( "ImportType", "ImportPropProjectChoicesItemsType", ), - ".group_0281": ("PorterAuthorType",), - ".group_0282": ("PorterLargeFileType",), - ".group_0283": ( + ".group_0285": ("PorterAuthorType",), + ".group_0286": ("PorterLargeFileType",), + ".group_0287": ( "IssueEventType", "IssueEventLabelType", "IssueEventDismissedReviewType", @@ -9658,56 +9828,56 @@ "IssueEventProjectCardType", "IssueEventRenameType", ), - ".group_0284": ( + ".group_0288": ( "LabeledIssueEventType", "LabeledIssueEventPropLabelType", ), - ".group_0285": ( + ".group_0289": ( "UnlabeledIssueEventType", "UnlabeledIssueEventPropLabelType", ), - ".group_0286": ("AssignedIssueEventType",), - ".group_0287": ("UnassignedIssueEventType",), - ".group_0288": ( + ".group_0290": ("AssignedIssueEventType",), + ".group_0291": ("UnassignedIssueEventType",), + ".group_0292": ( "MilestonedIssueEventType", "MilestonedIssueEventPropMilestoneType", ), - ".group_0289": ( + ".group_0293": ( "DemilestonedIssueEventType", "DemilestonedIssueEventPropMilestoneType", ), - ".group_0290": ( + ".group_0294": ( "RenamedIssueEventType", "RenamedIssueEventPropRenameType", ), - ".group_0291": ("ReviewRequestedIssueEventType",), - ".group_0292": ("ReviewRequestRemovedIssueEventType",), - ".group_0293": ( + ".group_0295": ("ReviewRequestedIssueEventType",), + ".group_0296": ("ReviewRequestRemovedIssueEventType",), + ".group_0297": ( "ReviewDismissedIssueEventType", "ReviewDismissedIssueEventPropDismissedReviewType", ), - ".group_0294": ("LockedIssueEventType",), - ".group_0295": ( + ".group_0298": ("LockedIssueEventType",), + ".group_0299": ( "AddedToProjectIssueEventType", "AddedToProjectIssueEventPropProjectCardType", ), - ".group_0296": ( + ".group_0300": ( "MovedColumnInProjectIssueEventType", "MovedColumnInProjectIssueEventPropProjectCardType", ), - ".group_0297": ( + ".group_0301": ( "RemovedFromProjectIssueEventType", "RemovedFromProjectIssueEventPropProjectCardType", ), - ".group_0298": ( + ".group_0302": ( "ConvertedNoteToIssueIssueEventType", "ConvertedNoteToIssueIssueEventPropProjectCardType", ), - ".group_0299": ("LabelType",), - ".group_0300": ("TimelineCommentEventType",), - ".group_0301": ("TimelineCrossReferencedEventType",), - ".group_0302": ("TimelineCrossReferencedEventPropSourceType",), - ".group_0303": ( + ".group_0303": ("LabelType",), + ".group_0304": ("TimelineCommentEventType",), + ".group_0305": ("TimelineCrossReferencedEventType",), + ".group_0306": ("TimelineCrossReferencedEventPropSourceType",), + ".group_0307": ( "TimelineCommittedEventType", "TimelineCommittedEventPropAuthorType", "TimelineCommittedEventPropCommitterType", @@ -9715,13 +9885,13 @@ "TimelineCommittedEventPropParentsItemsType", "TimelineCommittedEventPropVerificationType", ), - ".group_0304": ( + ".group_0308": ( "TimelineReviewedEventType", "TimelineReviewedEventPropLinksType", "TimelineReviewedEventPropLinksPropHtmlType", "TimelineReviewedEventPropLinksPropPullRequestType", ), - ".group_0305": ( + ".group_0309": ( "PullRequestReviewCommentType", "PullRequestReviewCommentPropLinksType", "PullRequestReviewCommentPropLinksPropSelfType", @@ -9729,35 +9899,35 @@ "PullRequestReviewCommentPropLinksPropPullRequestType", "TimelineLineCommentedEventType", ), - ".group_0306": ("TimelineAssignedIssueEventType",), - ".group_0307": ("TimelineUnassignedIssueEventType",), - ".group_0308": ("StateChangeIssueEventType",), - ".group_0309": ("DeployKeyType",), - ".group_0310": ("LanguageType",), - ".group_0311": ( + ".group_0310": ("TimelineAssignedIssueEventType",), + ".group_0311": ("TimelineUnassignedIssueEventType",), + ".group_0312": ("StateChangeIssueEventType",), + ".group_0313": ("DeployKeyType",), + ".group_0314": ("LanguageType",), + ".group_0315": ( "LicenseContentType", "LicenseContentPropLinksType", ), - ".group_0312": ("MergedUpstreamType",), - ".group_0313": ( + ".group_0316": ("MergedUpstreamType",), + ".group_0317": ( "PageType", "PagesSourceHashType", "PagesHttpsCertificateType", ), - ".group_0314": ( + ".group_0318": ( "PageBuildType", "PageBuildPropErrorType", ), - ".group_0315": ("PageBuildStatusType",), - ".group_0316": ("PageDeploymentType",), - ".group_0317": ("PagesDeploymentStatusType",), - ".group_0318": ( + ".group_0319": ("PageBuildStatusType",), + ".group_0320": ("PageDeploymentType",), + ".group_0321": ("PagesDeploymentStatusType",), + ".group_0322": ( "PagesHealthCheckType", "PagesHealthCheckPropDomainType", "PagesHealthCheckPropAltDomainType", ), - ".group_0319": ("PullRequestType",), - ".group_0320": ( + ".group_0323": ("PullRequestType",), + ".group_0324": ( "PullRequestPropLabelsItemsType", "PullRequestPropHeadType", "PullRequestPropHeadPropRepoType", @@ -9766,123 +9936,123 @@ "PullRequestPropHeadPropRepoPropLicenseType", "PullRequestPropHeadPropUserType", ), - ".group_0321": ( + ".group_0325": ( "PullRequestPropBaseType", "PullRequestPropBasePropUserType", ), - ".group_0322": ( + ".group_0326": ( "PullRequestPropBasePropRepoType", "PullRequestPropBasePropRepoPropOwnerType", "PullRequestPropBasePropRepoPropPermissionsType", ), - ".group_0323": ("PullRequestPropLinksType",), - ".group_0324": ("PullRequestMergeResultType",), - ".group_0325": ("PullRequestReviewRequestType",), - ".group_0326": ( + ".group_0327": ("PullRequestPropLinksType",), + ".group_0328": ("PullRequestMergeResultType",), + ".group_0329": ("PullRequestReviewRequestType",), + ".group_0330": ( "PullRequestReviewType", "PullRequestReviewPropLinksType", "PullRequestReviewPropLinksPropHtmlType", "PullRequestReviewPropLinksPropPullRequestType", ), - ".group_0327": ("ReviewCommentType",), - ".group_0328": ("ReviewCommentPropLinksType",), - ".group_0329": ("ReleaseAssetType",), - ".group_0330": ("ReleaseType",), - ".group_0331": ("ReleaseNotesContentType",), - ".group_0332": ("RepositoryRuleRulesetInfoType",), - ".group_0333": ("RepositoryRuleDetailedOneof0Type",), - ".group_0334": ("RepositoryRuleDetailedOneof1Type",), - ".group_0335": ("RepositoryRuleDetailedOneof2Type",), - ".group_0336": ("RepositoryRuleDetailedOneof3Type",), - ".group_0337": ("RepositoryRuleDetailedOneof4Type",), - ".group_0338": ("RepositoryRuleDetailedOneof5Type",), - ".group_0339": ("RepositoryRuleDetailedOneof6Type",), - ".group_0340": ("RepositoryRuleDetailedOneof7Type",), - ".group_0341": ("RepositoryRuleDetailedOneof8Type",), - ".group_0342": ("RepositoryRuleDetailedOneof9Type",), - ".group_0343": ("RepositoryRuleDetailedOneof10Type",), - ".group_0344": ("RepositoryRuleDetailedOneof11Type",), - ".group_0345": ("RepositoryRuleDetailedOneof12Type",), - ".group_0346": ("RepositoryRuleDetailedOneof13Type",), - ".group_0347": ("RepositoryRuleDetailedOneof14Type",), - ".group_0348": ("RepositoryRuleDetailedOneof15Type",), - ".group_0349": ("SecretScanningAlertType",), - ".group_0350": ( + ".group_0331": ("ReviewCommentType",), + ".group_0332": ("ReviewCommentPropLinksType",), + ".group_0333": ("ReleaseAssetType",), + ".group_0334": ("ReleaseType",), + ".group_0335": ("ReleaseNotesContentType",), + ".group_0336": ("RepositoryRuleRulesetInfoType",), + ".group_0337": ("RepositoryRuleDetailedOneof0Type",), + ".group_0338": ("RepositoryRuleDetailedOneof1Type",), + ".group_0339": ("RepositoryRuleDetailedOneof2Type",), + ".group_0340": ("RepositoryRuleDetailedOneof3Type",), + ".group_0341": ("RepositoryRuleDetailedOneof4Type",), + ".group_0342": ("RepositoryRuleDetailedOneof5Type",), + ".group_0343": ("RepositoryRuleDetailedOneof6Type",), + ".group_0344": ("RepositoryRuleDetailedOneof7Type",), + ".group_0345": ("RepositoryRuleDetailedOneof8Type",), + ".group_0346": ("RepositoryRuleDetailedOneof9Type",), + ".group_0347": ("RepositoryRuleDetailedOneof10Type",), + ".group_0348": ("RepositoryRuleDetailedOneof11Type",), + ".group_0349": ("RepositoryRuleDetailedOneof12Type",), + ".group_0350": ("RepositoryRuleDetailedOneof13Type",), + ".group_0351": ("RepositoryRuleDetailedOneof14Type",), + ".group_0352": ("RepositoryRuleDetailedOneof15Type",), + ".group_0353": ("SecretScanningAlertType",), + ".group_0354": ( "RepositoryAdvisoryCreateType", "RepositoryAdvisoryCreatePropCreditsItemsType", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0351": ( + ".group_0355": ( "PrivateVulnerabilityReportCreateType", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0352": ( + ".group_0356": ( "RepositoryAdvisoryUpdateType", "RepositoryAdvisoryUpdatePropCreditsItemsType", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0353": ("StargazerType",), - ".group_0354": ("CommitActivityType",), - ".group_0355": ( + ".group_0357": ("StargazerType",), + ".group_0358": ("CommitActivityType",), + ".group_0359": ( "ContributorActivityType", "ContributorActivityPropWeeksItemsType", ), - ".group_0356": ("ParticipationStatsType",), - ".group_0357": ("RepositorySubscriptionType",), - ".group_0358": ( + ".group_0360": ("ParticipationStatsType",), + ".group_0361": ("RepositorySubscriptionType",), + ".group_0362": ( "TagType", "TagPropCommitType", ), - ".group_0359": ("TagProtectionType",), - ".group_0360": ("TopicType",), - ".group_0361": ("TrafficType",), - ".group_0362": ("CloneTrafficType",), - ".group_0363": ("ContentTrafficType",), - ".group_0364": ("ReferrerTrafficType",), - ".group_0365": ("ViewTrafficType",), - ".group_0366": ( + ".group_0363": ("TagProtectionType",), + ".group_0364": ("TopicType",), + ".group_0365": ("TrafficType",), + ".group_0366": ("CloneTrafficType",), + ".group_0367": ("ContentTrafficType",), + ".group_0368": ("ReferrerTrafficType",), + ".group_0369": ("ViewTrafficType",), + ".group_0370": ( "GroupResponseType", "GroupResponsePropMembersItemsType", ), - ".group_0367": ("MetaType",), - ".group_0368": ( + ".group_0371": ("MetaType",), + ".group_0372": ( "ScimEnterpriseGroupResponseType", "ScimEnterpriseGroupResponseMergedMembersType", "ScimEnterpriseGroupListType", ), - ".group_0369": ( + ".group_0373": ( "ScimEnterpriseGroupResponseAllof1Type", "ScimEnterpriseGroupResponseAllof1PropMembersItemsType", ), - ".group_0370": ( + ".group_0374": ( "GroupType", "GroupPropMembersItemsType", ), - ".group_0371": ( + ".group_0375": ( "PatchSchemaType", "PatchSchemaPropOperationsItemsType", ), - ".group_0372": ( + ".group_0376": ( "UserNameResponseType", "UserEmailsResponseItemsType", ), - ".group_0373": ("UserRoleItemsType",), - ".group_0374": ("UserResponseType",), - ".group_0375": ( + ".group_0377": ("UserRoleItemsType",), + ".group_0378": ("UserResponseType",), + ".group_0379": ( "ScimEnterpriseUserResponseType", "ScimEnterpriseUserListType", ), - ".group_0376": ("ScimEnterpriseUserResponseAllof1Type",), - ".group_0377": ("ScimEnterpriseUserResponseAllof1PropGroupsItemsType",), - ".group_0378": ( + ".group_0380": ("ScimEnterpriseUserResponseAllof1Type",), + ".group_0381": ("ScimEnterpriseUserResponseAllof1PropGroupsItemsType",), + ".group_0382": ( "UserType", "UserNameType", "UserEmailsItemsType", ), - ".group_0379": ( + ".group_0383": ( "ScimUserListType", "ScimUserType", "ScimUserPropNameType", @@ -9893,40 +10063,40 @@ "ScimUserPropOperationsItemsType", "ScimUserPropOperationsItemsPropValueOneof1Type", ), - ".group_0380": ( + ".group_0384": ( "SearchResultTextMatchesItemsType", "SearchResultTextMatchesItemsPropMatchesItemsType", ), - ".group_0381": ( + ".group_0385": ( "CodeSearchResultItemType", "SearchCodeGetResponse200Type", ), - ".group_0382": ( + ".group_0386": ( "CommitSearchResultItemType", "CommitSearchResultItemPropParentsItemsType", "SearchCommitsGetResponse200Type", ), - ".group_0383": ( + ".group_0387": ( "CommitSearchResultItemPropCommitType", "CommitSearchResultItemPropCommitPropAuthorType", "CommitSearchResultItemPropCommitPropTreeType", ), - ".group_0384": ( + ".group_0388": ( "IssueSearchResultItemType", "IssueSearchResultItemPropLabelsItemsType", "IssueSearchResultItemPropPullRequestType", "SearchIssuesGetResponse200Type", ), - ".group_0385": ( + ".group_0389": ( "LabelSearchResultItemType", "SearchLabelsGetResponse200Type", ), - ".group_0386": ( + ".group_0390": ( "RepoSearchResultItemType", "RepoSearchResultItemPropPermissionsType", "SearchRepositoriesGetResponse200Type", ), - ".group_0387": ( + ".group_0391": ( "TopicSearchResultItemType", "TopicSearchResultItemPropRelatedItemsType", "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", @@ -9934,45 +10104,45 @@ "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", "SearchTopicsGetResponse200Type", ), - ".group_0388": ( + ".group_0392": ( "UserSearchResultItemType", "SearchUsersGetResponse200Type", ), - ".group_0389": ( + ".group_0393": ( "PrivateUserType", "PrivateUserPropPlanType", ), - ".group_0390": ("CodespacesUserPublicKeyType",), - ".group_0391": ("CodespaceExportDetailsType",), - ".group_0392": ( + ".group_0394": ("CodespacesUserPublicKeyType",), + ".group_0395": ("CodespaceExportDetailsType",), + ".group_0396": ( "CodespaceWithFullRepositoryType", "CodespaceWithFullRepositoryPropGitStatusType", "CodespaceWithFullRepositoryPropRuntimeConstraintsType", ), - ".group_0393": ("EmailType",), - ".group_0394": ( + ".group_0397": ("EmailType",), + ".group_0398": ( "GpgKeyType", "GpgKeyPropEmailsItemsType", "GpgKeyPropSubkeysItemsType", "GpgKeyPropSubkeysItemsPropEmailsItemsType", ), - ".group_0395": ("KeyType",), - ".group_0396": ( + ".group_0399": ("KeyType",), + ".group_0400": ( "UserMarketplacePurchaseType", "MarketplaceAccountType", ), - ".group_0397": ("SocialAccountType",), - ".group_0398": ("SshSigningKeyType",), - ".group_0399": ("StarredRepositoryType",), - ".group_0400": ( + ".group_0401": ("SocialAccountType",), + ".group_0402": ("SshSigningKeyType",), + ".group_0403": ("StarredRepositoryType",), + ".group_0404": ( "HovercardType", "HovercardPropContextsItemsType", ), - ".group_0401": ("KeySimpleType",), - ".group_0402": ("EnterpriseWebhooksType",), - ".group_0403": ("SimpleInstallationType",), - ".group_0404": ("OrganizationSimpleWebhooksType",), - ".group_0405": ( + ".group_0405": ("KeySimpleType",), + ".group_0406": ("EnterpriseWebhooksType",), + ".group_0407": ("SimpleInstallationType",), + ".group_0408": ("OrganizationSimpleWebhooksType",), + ".group_0409": ( "RepositoryWebhooksType", "RepositoryWebhooksPropPermissionsType", "RepositoryWebhooksPropCustomPropertiesType", @@ -9980,10 +10150,10 @@ "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", ), - ".group_0406": ("SimpleUserWebhooksType",), - ".group_0407": ("WebhooksRuleType",), - ".group_0408": ("ExemptionResponseType",), - ".group_0409": ( + ".group_0410": ("SimpleUserWebhooksType",), + ".group_0411": ("WebhooksRuleType",), + ".group_0412": ("ExemptionResponseType",), + ".group_0413": ( "ExemptionRequestType", "ExemptionRequestSecretScanningMetadataType", "ExemptionRequestPushRulesetBypassType", @@ -9991,50 +10161,50 @@ "ExemptionRequestSecretScanningType", "ExemptionRequestSecretScanningPropDataItemsType", ), - ".group_0410": ("SimpleCheckSuiteType",), - ".group_0411": ( + ".group_0414": ("SimpleCheckSuiteType",), + ".group_0415": ( "CheckRunWithSimpleCheckSuiteType", "CheckRunWithSimpleCheckSuitePropOutputType", ), - ".group_0412": ("WebhooksDeployKeyType",), - ".group_0413": ("WebhooksWorkflowType",), - ".group_0414": ( + ".group_0416": ("WebhooksDeployKeyType",), + ".group_0417": ("WebhooksWorkflowType",), + ".group_0418": ( "WebhooksApproverType", "WebhooksReviewersItemsType", "WebhooksReviewersItemsPropReviewerType", ), - ".group_0415": ("WebhooksWorkflowJobRunType",), - ".group_0416": ("WebhooksUserType",), - ".group_0417": ( + ".group_0419": ("WebhooksWorkflowJobRunType",), + ".group_0420": ("WebhooksUserType",), + ".group_0421": ( "WebhooksAnswerType", "WebhooksAnswerPropReactionsType", "WebhooksAnswerPropUserType", ), - ".group_0418": ( + ".group_0422": ( "DiscussionType", "DiscussionPropAnswerChosenByType", "DiscussionPropCategoryType", "DiscussionPropReactionsType", "DiscussionPropUserType", ), - ".group_0419": ( + ".group_0423": ( "WebhooksCommentType", "WebhooksCommentPropReactionsType", "WebhooksCommentPropUserType", ), - ".group_0420": ("WebhooksLabelType",), - ".group_0421": ("WebhooksRepositoriesItemsType",), - ".group_0422": ("WebhooksRepositoriesAddedItemsType",), - ".group_0423": ( + ".group_0424": ("WebhooksLabelType",), + ".group_0425": ("WebhooksRepositoriesItemsType",), + ".group_0426": ("WebhooksRepositoriesAddedItemsType",), + ".group_0427": ( "WebhooksIssueCommentType", "WebhooksIssueCommentPropReactionsType", "WebhooksIssueCommentPropUserType", ), - ".group_0424": ( + ".group_0428": ( "WebhooksChangesType", "WebhooksChangesPropBodyType", ), - ".group_0425": ( + ".group_0429": ( "WebhooksIssueType", "WebhooksIssuePropAssigneeType", "WebhooksIssuePropAssigneesItemsType", @@ -10048,11 +10218,11 @@ "WebhooksIssuePropReactionsType", "WebhooksIssuePropUserType", ), - ".group_0426": ( + ".group_0430": ( "WebhooksMilestoneType", "WebhooksMilestonePropCreatorType", ), - ".group_0427": ( + ".group_0431": ( "WebhooksIssue2Type", "WebhooksIssue2PropAssigneeType", "WebhooksIssue2PropAssigneesItemsType", @@ -10066,31 +10236,31 @@ "WebhooksIssue2PropReactionsType", "WebhooksIssue2PropUserType", ), - ".group_0428": ("WebhooksUserMannequinType",), - ".group_0429": ( + ".group_0432": ("WebhooksUserMannequinType",), + ".group_0433": ( "WebhooksMarketplacePurchaseType", "WebhooksMarketplacePurchasePropAccountType", "WebhooksMarketplacePurchasePropPlanType", ), - ".group_0430": ( + ".group_0434": ( "WebhooksPreviousMarketplacePurchaseType", "WebhooksPreviousMarketplacePurchasePropAccountType", "WebhooksPreviousMarketplacePurchasePropPlanType", ), - ".group_0431": ( + ".group_0435": ( "WebhooksTeamType", "WebhooksTeamPropParentType", ), - ".group_0432": ("MergeGroupType",), - ".group_0433": ( + ".group_0436": ("MergeGroupType",), + ".group_0437": ( "WebhooksMilestone3Type", "WebhooksMilestone3PropCreatorType", ), - ".group_0434": ( + ".group_0438": ( "WebhooksMembershipType", "WebhooksMembershipPropUserType", ), - ".group_0435": ( + ".group_0439": ( "PersonalAccessTokenRequestType", "PersonalAccessTokenRequestPropRepositoriesItemsType", "PersonalAccessTokenRequestPropPermissionsAddedType", @@ -10106,24 +10276,25 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", ), - ".group_0436": ( + ".group_0440": ( "WebhooksProjectCardType", "WebhooksProjectCardPropCreatorType", ), - ".group_0437": ( + ".group_0441": ( "WebhooksProjectType", "WebhooksProjectPropCreatorType", ), - ".group_0438": ("WebhooksProjectColumnType",), - ".group_0439": ("ProjectsV2Type",), - ".group_0440": ( + ".group_0442": ("WebhooksProjectColumnType",), + ".group_0443": ("ProjectsV2Type",), + ".group_0444": ( "WebhooksProjectChangesType", "WebhooksProjectChangesPropArchivedAtType", ), - ".group_0441": ("ProjectsV2ItemType",), - ".group_0442": ("PullRequestWebhookType",), - ".group_0443": ("PullRequestWebhookAllof1Type",), - ".group_0444": ( + ".group_0445": ("ProjectsV2ItemType",), + ".group_0446": ("ProjectsV2StatusUpdateType",), + ".group_0447": ("PullRequestWebhookType",), + ".group_0448": ("PullRequestWebhookAllof1Type",), + ".group_0449": ( "WebhooksPullRequest5Type", "WebhooksPullRequest5PropAssigneeType", "WebhooksPullRequest5PropAssigneesItemsType", @@ -10161,7 +10332,7 @@ "WebhooksPullRequest5PropRequestedTeamsItemsType", "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", ), - ".group_0445": ( + ".group_0450": ( "WebhooksReviewCommentType", "WebhooksReviewCommentPropReactionsType", "WebhooksReviewCommentPropUserType", @@ -10170,33 +10341,33 @@ "WebhooksReviewCommentPropLinksPropPullRequestType", "WebhooksReviewCommentPropLinksPropSelfType", ), - ".group_0446": ( + ".group_0451": ( "WebhooksReviewType", "WebhooksReviewPropUserType", "WebhooksReviewPropLinksType", "WebhooksReviewPropLinksPropHtmlType", "WebhooksReviewPropLinksPropPullRequestType", ), - ".group_0447": ( + ".group_0452": ( "WebhooksReleaseType", "WebhooksReleasePropAuthorType", "WebhooksReleasePropReactionsType", "WebhooksReleasePropAssetsItemsType", "WebhooksReleasePropAssetsItemsPropUploaderType", ), - ".group_0448": ( + ".group_0453": ( "WebhooksRelease1Type", "WebhooksRelease1PropAssetsItemsType", "WebhooksRelease1PropAssetsItemsPropUploaderType", "WebhooksRelease1PropAuthorType", "WebhooksRelease1PropReactionsType", ), - ".group_0449": ( + ".group_0454": ( "WebhooksAlertType", "WebhooksAlertPropDismisserType", ), - ".group_0450": ("SecretScanningAlertWebhookType",), - ".group_0451": ( + ".group_0455": ("SecretScanningAlertWebhookType",), + ".group_0456": ( "WebhooksSecurityAdvisoryType", "WebhooksSecurityAdvisoryPropCvssType", "WebhooksSecurityAdvisoryPropCwesItemsType", @@ -10206,27 +10377,27 @@ "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0452": ( + ".group_0457": ( "WebhooksSponsorshipType", "WebhooksSponsorshipPropMaintainerType", "WebhooksSponsorshipPropSponsorType", "WebhooksSponsorshipPropSponsorableType", "WebhooksSponsorshipPropTierType", ), - ".group_0453": ( + ".group_0458": ( "WebhooksChanges8Type", "WebhooksChanges8PropTierType", "WebhooksChanges8PropTierPropFromType", ), - ".group_0454": ( + ".group_0459": ( "WebhooksTeam1Type", "WebhooksTeam1PropParentType", ), - ".group_0455": ("WebhookBranchProtectionConfigurationDisabledType",), - ".group_0456": ("WebhookBranchProtectionConfigurationEnabledType",), - ".group_0457": ("WebhookBranchProtectionRuleCreatedType",), - ".group_0458": ("WebhookBranchProtectionRuleDeletedType",), - ".group_0459": ( + ".group_0460": ("WebhookBranchProtectionConfigurationDisabledType",), + ".group_0461": ("WebhookBranchProtectionConfigurationEnabledType",), + ".group_0462": ("WebhookBranchProtectionRuleCreatedType",), + ".group_0463": ("WebhookBranchProtectionRuleDeletedType",), + ".group_0464": ( "WebhookBranchProtectionRuleEditedType", "WebhookBranchProtectionRuleEditedPropChangesType", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", @@ -10234,26 +10405,30 @@ "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", ), - ".group_0460": ("WebhookExemptionRequestCancelledType",), - ".group_0461": ("WebhookExemptionRequestCompletedType",), - ".group_0462": ("WebhookExemptionRequestCreatedType",), - ".group_0463": ("WebhookExemptionRequestResponseDismissedType",), - ".group_0464": ("WebhookExemptionRequestResponseSubmittedType",), - ".group_0465": ("WebhookCheckRunCompletedType",), - ".group_0466": ("WebhookCheckRunCompletedFormEncodedType",), - ".group_0467": ("WebhookCheckRunCreatedType",), - ".group_0468": ("WebhookCheckRunCreatedFormEncodedType",), - ".group_0469": ( + ".group_0465": ("WebhookExemptionRequestCancelledType",), + ".group_0466": ("WebhookExemptionRequestCompletedType",), + ".group_0467": ("WebhookExemptionRequestCreatedType",), + ".group_0468": ("WebhookExemptionRequestResponseDismissedType",), + ".group_0469": ("WebhookExemptionRequestResponseSubmittedType",), + ".group_0470": ("WebhookCheckRunCompletedType",), + ".group_0471": ("WebhookCheckRunCompletedFormEncodedType",), + ".group_0472": ("WebhookCheckRunCreatedType",), + ".group_0473": ("WebhookCheckRunCreatedFormEncodedType",), + ".group_0474": ( "WebhookCheckRunRequestedActionType", "WebhookCheckRunRequestedActionPropRequestedActionType", ), - ".group_0470": ("WebhookCheckRunRequestedActionFormEncodedType",), - ".group_0471": ("WebhookCheckRunRerequestedType",), - ".group_0472": ("WebhookCheckRunRerequestedFormEncodedType",), - ".group_0473": ( + ".group_0475": ("WebhookCheckRunRequestedActionFormEncodedType",), + ".group_0476": ("WebhookCheckRunRerequestedType",), + ".group_0477": ("WebhookCheckRunRerequestedFormEncodedType",), + ".group_0478": ( "WebhookCheckSuiteCompletedType", "WebhookCheckSuiteCompletedPropCheckSuiteType", "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", @@ -10268,7 +10443,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0474": ( + ".group_0479": ( "WebhookCheckSuiteRequestedType", "WebhookCheckSuiteRequestedPropCheckSuiteType", "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", @@ -10283,7 +10458,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0475": ( + ".group_0480": ( "WebhookCheckSuiteRerequestedType", "WebhookCheckSuiteRerequestedPropCheckSuiteType", "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", @@ -10298,7 +10473,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0476": ( + ".group_0481": ( "WebhookCodeScanningAlertAppearedInBranchType", "WebhookCodeScanningAlertAppearedInBranchPropAlertType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", @@ -10308,7 +10483,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", ), - ".group_0477": ( + ".group_0482": ( "WebhookCodeScanningAlertClosedByUserType", "WebhookCodeScanningAlertClosedByUserPropAlertType", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", @@ -10318,7 +10493,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", ), - ".group_0478": ( + ".group_0483": ( "WebhookCodeScanningAlertCreatedType", "WebhookCodeScanningAlertCreatedPropAlertType", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", @@ -10327,7 +10502,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", "WebhookCodeScanningAlertCreatedPropAlertPropToolType", ), - ".group_0479": ( + ".group_0484": ( "WebhookCodeScanningAlertFixedType", "WebhookCodeScanningAlertFixedPropAlertType", "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", @@ -10337,7 +10512,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRuleType", "WebhookCodeScanningAlertFixedPropAlertPropToolType", ), - ".group_0480": ( + ".group_0485": ( "WebhookCodeScanningAlertReopenedType", "WebhookCodeScanningAlertReopenedPropAlertType", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", @@ -10347,7 +10522,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedPropAlertPropToolType", ), - ".group_0481": ( + ".group_0486": ( "WebhookCodeScanningAlertReopenedByUserType", "WebhookCodeScanningAlertReopenedByUserPropAlertType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", @@ -10356,31 +10531,31 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", ), - ".group_0482": ( + ".group_0487": ( "WebhookCommitCommentCreatedType", "WebhookCommitCommentCreatedPropCommentType", "WebhookCommitCommentCreatedPropCommentPropReactionsType", "WebhookCommitCommentCreatedPropCommentPropUserType", ), - ".group_0483": ("WebhookCreateType",), - ".group_0484": ("WebhookCustomPropertyCreatedType",), - ".group_0485": ( + ".group_0488": ("WebhookCreateType",), + ".group_0489": ("WebhookCustomPropertyCreatedType",), + ".group_0490": ( "WebhookCustomPropertyDeletedType", "WebhookCustomPropertyDeletedPropDefinitionType", ), - ".group_0486": ("WebhookCustomPropertyUpdatedType",), - ".group_0487": ("WebhookCustomPropertyValuesUpdatedType",), - ".group_0488": ("WebhookDeleteType",), - ".group_0489": ("WebhookDependabotAlertAutoDismissedType",), - ".group_0490": ("WebhookDependabotAlertAutoReopenedType",), - ".group_0491": ("WebhookDependabotAlertCreatedType",), - ".group_0492": ("WebhookDependabotAlertDismissedType",), - ".group_0493": ("WebhookDependabotAlertFixedType",), - ".group_0494": ("WebhookDependabotAlertReintroducedType",), - ".group_0495": ("WebhookDependabotAlertReopenedType",), - ".group_0496": ("WebhookDeployKeyCreatedType",), - ".group_0497": ("WebhookDeployKeyDeletedType",), - ".group_0498": ( + ".group_0491": ("WebhookCustomPropertyUpdatedType",), + ".group_0492": ("WebhookCustomPropertyValuesUpdatedType",), + ".group_0493": ("WebhookDeleteType",), + ".group_0494": ("WebhookDependabotAlertAutoDismissedType",), + ".group_0495": ("WebhookDependabotAlertAutoReopenedType",), + ".group_0496": ("WebhookDependabotAlertCreatedType",), + ".group_0497": ("WebhookDependabotAlertDismissedType",), + ".group_0498": ("WebhookDependabotAlertFixedType",), + ".group_0499": ("WebhookDependabotAlertReintroducedType",), + ".group_0500": ("WebhookDependabotAlertReopenedType",), + ".group_0501": ("WebhookDeployKeyCreatedType",), + ".group_0502": ("WebhookDeployKeyDeletedType",), + ".group_0503": ( "WebhookDeploymentCreatedType", "WebhookDeploymentCreatedPropDeploymentType", "WebhookDeploymentCreatedPropDeploymentPropCreatorType", @@ -10402,8 +10577,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0499": ("WebhookDeploymentProtectionRuleRequestedType",), - ".group_0500": ( + ".group_0504": ("WebhookDeploymentProtectionRuleRequestedType",), + ".group_0505": ( "WebhookDeploymentReviewApprovedType", "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", "WebhookDeploymentReviewApprovedPropWorkflowRunType", @@ -10421,7 +10596,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0501": ( + ".group_0506": ( "WebhookDeploymentReviewRejectedType", "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", "WebhookDeploymentReviewRejectedPropWorkflowRunType", @@ -10439,7 +10614,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0502": ( + ".group_0507": ( "WebhookDeploymentReviewRequestedType", "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", "WebhookDeploymentReviewRequestedPropReviewersItemsType", @@ -10459,7 +10634,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0503": ( + ".group_0508": ( "WebhookDeploymentStatusCreatedType", "WebhookDeploymentStatusCreatedPropCheckRunType", "WebhookDeploymentStatusCreatedPropDeploymentType", @@ -10487,116 +10662,116 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0504": ("WebhookDiscussionAnsweredType",), - ".group_0505": ( + ".group_0509": ("WebhookDiscussionAnsweredType",), + ".group_0510": ( "WebhookDiscussionCategoryChangedType", "WebhookDiscussionCategoryChangedPropChangesType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", ), - ".group_0506": ("WebhookDiscussionClosedType",), - ".group_0507": ("WebhookDiscussionCommentCreatedType",), - ".group_0508": ("WebhookDiscussionCommentDeletedType",), - ".group_0509": ( + ".group_0511": ("WebhookDiscussionClosedType",), + ".group_0512": ("WebhookDiscussionCommentCreatedType",), + ".group_0513": ("WebhookDiscussionCommentDeletedType",), + ".group_0514": ( "WebhookDiscussionCommentEditedType", "WebhookDiscussionCommentEditedPropChangesType", "WebhookDiscussionCommentEditedPropChangesPropBodyType", ), - ".group_0510": ("WebhookDiscussionCreatedType",), - ".group_0511": ("WebhookDiscussionDeletedType",), - ".group_0512": ( + ".group_0515": ("WebhookDiscussionCreatedType",), + ".group_0516": ("WebhookDiscussionDeletedType",), + ".group_0517": ( "WebhookDiscussionEditedType", "WebhookDiscussionEditedPropChangesType", "WebhookDiscussionEditedPropChangesPropBodyType", "WebhookDiscussionEditedPropChangesPropTitleType", ), - ".group_0513": ("WebhookDiscussionLabeledType",), - ".group_0514": ("WebhookDiscussionLockedType",), - ".group_0515": ("WebhookDiscussionPinnedType",), - ".group_0516": ("WebhookDiscussionReopenedType",), - ".group_0517": ("WebhookDiscussionTransferredType",), - ".group_0518": ("WebhookDiscussionTransferredPropChangesType",), - ".group_0519": ("WebhookDiscussionUnansweredType",), - ".group_0520": ("WebhookDiscussionUnlabeledType",), - ".group_0521": ("WebhookDiscussionUnlockedType",), - ".group_0522": ("WebhookDiscussionUnpinnedType",), - ".group_0523": ("WebhookForkType",), - ".group_0524": ( + ".group_0518": ("WebhookDiscussionLabeledType",), + ".group_0519": ("WebhookDiscussionLockedType",), + ".group_0520": ("WebhookDiscussionPinnedType",), + ".group_0521": ("WebhookDiscussionReopenedType",), + ".group_0522": ("WebhookDiscussionTransferredType",), + ".group_0523": ("WebhookDiscussionTransferredPropChangesType",), + ".group_0524": ("WebhookDiscussionUnansweredType",), + ".group_0525": ("WebhookDiscussionUnlabeledType",), + ".group_0526": ("WebhookDiscussionUnlockedType",), + ".group_0527": ("WebhookDiscussionUnpinnedType",), + ".group_0528": ("WebhookForkType",), + ".group_0529": ( "WebhookForkPropForkeeType", "WebhookForkPropForkeeMergedLicenseType", "WebhookForkPropForkeeMergedOwnerType", ), - ".group_0525": ( + ".group_0530": ( "WebhookForkPropForkeeAllof0Type", "WebhookForkPropForkeeAllof0PropLicenseType", "WebhookForkPropForkeeAllof0PropOwnerType", ), - ".group_0526": ("WebhookForkPropForkeeAllof0PropPermissionsType",), - ".group_0527": ( + ".group_0531": ("WebhookForkPropForkeeAllof0PropPermissionsType",), + ".group_0532": ( "WebhookForkPropForkeeAllof1Type", "WebhookForkPropForkeeAllof1PropLicenseType", "WebhookForkPropForkeeAllof1PropOwnerType", ), - ".group_0528": ("WebhookGithubAppAuthorizationRevokedType",), - ".group_0529": ( + ".group_0533": ("WebhookGithubAppAuthorizationRevokedType",), + ".group_0534": ( "WebhookGollumType", "WebhookGollumPropPagesItemsType", ), - ".group_0530": ("WebhookInstallationCreatedType",), - ".group_0531": ("WebhookInstallationDeletedType",), - ".group_0532": ("WebhookInstallationNewPermissionsAcceptedType",), - ".group_0533": ( + ".group_0535": ("WebhookInstallationCreatedType",), + ".group_0536": ("WebhookInstallationDeletedType",), + ".group_0537": ("WebhookInstallationNewPermissionsAcceptedType",), + ".group_0538": ( "WebhookInstallationRepositoriesAddedType", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", ), - ".group_0534": ( + ".group_0539": ( "WebhookInstallationRepositoriesRemovedType", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", ), - ".group_0535": ("WebhookInstallationSuspendType",), - ".group_0536": ( + ".group_0540": ("WebhookInstallationSuspendType",), + ".group_0541": ( "WebhookInstallationTargetRenamedType", "WebhookInstallationTargetRenamedPropAccountType", "WebhookInstallationTargetRenamedPropChangesType", "WebhookInstallationTargetRenamedPropChangesPropLoginType", "WebhookInstallationTargetRenamedPropChangesPropSlugType", ), - ".group_0537": ("WebhookInstallationUnsuspendType",), - ".group_0538": ("WebhookIssueCommentCreatedType",), - ".group_0539": ( + ".group_0542": ("WebhookInstallationUnsuspendType",), + ".group_0543": ("WebhookIssueCommentCreatedType",), + ".group_0544": ( "WebhookIssueCommentCreatedPropCommentType", "WebhookIssueCommentCreatedPropCommentPropReactionsType", "WebhookIssueCommentCreatedPropCommentPropUserType", ), - ".group_0540": ( + ".group_0545": ( "WebhookIssueCommentCreatedPropIssueType", "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", "WebhookIssueCommentCreatedPropIssueMergedReactionsType", "WebhookIssueCommentCreatedPropIssueMergedUserType", ), - ".group_0541": ( + ".group_0546": ( "WebhookIssueCommentCreatedPropIssueAllof0Type", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", ), - ".group_0542": ( + ".group_0547": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", ), - ".group_0543": ( + ".group_0548": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0544": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), - ".group_0545": ( + ".group_0549": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), + ".group_0550": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0546": ( + ".group_0551": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0547": ( + ".group_0552": ( "WebhookIssueCommentCreatedPropIssueAllof1Type", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", @@ -10606,40 +10781,40 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", ), - ".group_0548": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), - ".group_0549": ( + ".group_0553": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), + ".group_0554": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0550": ("WebhookIssueCommentDeletedType",), - ".group_0551": ( + ".group_0555": ("WebhookIssueCommentDeletedType",), + ".group_0556": ( "WebhookIssueCommentDeletedPropIssueType", "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", "WebhookIssueCommentDeletedPropIssueMergedReactionsType", "WebhookIssueCommentDeletedPropIssueMergedUserType", ), - ".group_0552": ( + ".group_0557": ( "WebhookIssueCommentDeletedPropIssueAllof0Type", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", ), - ".group_0553": ( + ".group_0558": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", ), - ".group_0554": ( + ".group_0559": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0555": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), - ".group_0556": ( + ".group_0560": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), + ".group_0561": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0557": ( + ".group_0562": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0558": ( + ".group_0563": ( "WebhookIssueCommentDeletedPropIssueAllof1Type", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", @@ -10649,40 +10824,40 @@ "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", ), - ".group_0559": ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",), - ".group_0560": ( + ".group_0564": ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",), + ".group_0565": ( "WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0561": ("WebhookIssueCommentEditedType",), - ".group_0562": ( + ".group_0566": ("WebhookIssueCommentEditedType",), + ".group_0567": ( "WebhookIssueCommentEditedPropIssueType", "WebhookIssueCommentEditedPropIssueMergedAssigneesType", "WebhookIssueCommentEditedPropIssueMergedReactionsType", "WebhookIssueCommentEditedPropIssueMergedUserType", ), - ".group_0563": ( + ".group_0568": ( "WebhookIssueCommentEditedPropIssueAllof0Type", "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", "WebhookIssueCommentEditedPropIssueAllof0PropUserType", ), - ".group_0564": ( + ".group_0569": ( "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", ), - ".group_0565": ( + ".group_0570": ( "WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0566": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",), - ".group_0567": ( + ".group_0571": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",), + ".group_0572": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0568": ( + ".group_0573": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0569": ( + ".group_0574": ( "WebhookIssueCommentEditedPropIssueAllof1Type", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", @@ -10692,13 +10867,13 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", "WebhookIssueCommentEditedPropIssueAllof1PropUserType", ), - ".group_0570": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), - ".group_0571": ( + ".group_0575": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), + ".group_0576": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0572": ("WebhookIssuesAssignedType",), - ".group_0573": ("WebhookIssuesClosedType",), - ".group_0574": ( + ".group_0577": ("WebhookIssuesAssignedType",), + ".group_0578": ("WebhookIssuesClosedType",), + ".group_0579": ( "WebhookIssuesClosedPropIssueType", "WebhookIssuesClosedPropIssueMergedAssigneeType", "WebhookIssuesClosedPropIssueMergedAssigneesType", @@ -10706,7 +10881,7 @@ "WebhookIssuesClosedPropIssueMergedReactionsType", "WebhookIssuesClosedPropIssueMergedUserType", ), - ".group_0575": ( + ".group_0580": ( "WebhookIssuesClosedPropIssueAllof0Type", "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", @@ -10714,19 +10889,19 @@ "WebhookIssuesClosedPropIssueAllof0PropReactionsType", "WebhookIssuesClosedPropIssueAllof0PropUserType", ), - ".group_0576": ( + ".group_0581": ( "WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0577": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), - ".group_0578": ( + ".group_0582": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), + ".group_0583": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0579": ( + ".group_0584": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0580": ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",), - ".group_0581": ( + ".group_0585": ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",), + ".group_0586": ( "WebhookIssuesClosedPropIssueAllof1Type", "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", @@ -10736,9 +10911,9 @@ "WebhookIssuesClosedPropIssueAllof1PropReactionsType", "WebhookIssuesClosedPropIssueAllof1PropUserType", ), - ".group_0582": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), - ".group_0583": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), - ".group_0584": ( + ".group_0587": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), + ".group_0588": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), + ".group_0589": ( "WebhookIssuesDeletedType", "WebhookIssuesDeletedPropIssueType", "WebhookIssuesDeletedPropIssuePropAssigneeType", @@ -10753,7 +10928,7 @@ "WebhookIssuesDeletedPropIssuePropReactionsType", "WebhookIssuesDeletedPropIssuePropUserType", ), - ".group_0585": ( + ".group_0590": ( "WebhookIssuesDemilestonedType", "WebhookIssuesDemilestonedPropIssueType", "WebhookIssuesDemilestonedPropIssuePropAssigneeType", @@ -10768,7 +10943,7 @@ "WebhookIssuesDemilestonedPropIssuePropReactionsType", "WebhookIssuesDemilestonedPropIssuePropUserType", ), - ".group_0586": ( + ".group_0591": ( "WebhookIssuesEditedType", "WebhookIssuesEditedPropChangesType", "WebhookIssuesEditedPropChangesPropBodyType", @@ -10786,7 +10961,7 @@ "WebhookIssuesEditedPropIssuePropReactionsType", "WebhookIssuesEditedPropIssuePropUserType", ), - ".group_0587": ( + ".group_0592": ( "WebhookIssuesLabeledType", "WebhookIssuesLabeledPropIssueType", "WebhookIssuesLabeledPropIssuePropAssigneeType", @@ -10801,7 +10976,7 @@ "WebhookIssuesLabeledPropIssuePropReactionsType", "WebhookIssuesLabeledPropIssuePropUserType", ), - ".group_0588": ( + ".group_0593": ( "WebhookIssuesLockedType", "WebhookIssuesLockedPropIssueType", "WebhookIssuesLockedPropIssuePropAssigneeType", @@ -10816,7 +10991,7 @@ "WebhookIssuesLockedPropIssuePropReactionsType", "WebhookIssuesLockedPropIssuePropUserType", ), - ".group_0589": ( + ".group_0594": ( "WebhookIssuesMilestonedType", "WebhookIssuesMilestonedPropIssueType", "WebhookIssuesMilestonedPropIssuePropAssigneeType", @@ -10831,7 +11006,7 @@ "WebhookIssuesMilestonedPropIssuePropReactionsType", "WebhookIssuesMilestonedPropIssuePropUserType", ), - ".group_0590": ( + ".group_0595": ( "WebhookIssuesOpenedType", "WebhookIssuesOpenedPropIssueType", "WebhookIssuesOpenedPropIssuePropAssigneeType", @@ -10864,8 +11039,8 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", ), - ".group_0591": ("WebhookIssuesPinnedType",), - ".group_0592": ( + ".group_0596": ("WebhookIssuesPinnedType",), + ".group_0597": ( "WebhookIssuesReopenedType", "WebhookIssuesReopenedPropIssueType", "WebhookIssuesReopenedPropIssuePropAssigneeType", @@ -10880,7 +11055,7 @@ "WebhookIssuesReopenedPropIssuePropReactionsType", "WebhookIssuesReopenedPropIssuePropUserType", ), - ".group_0593": ( + ".group_0598": ( "WebhookIssuesTransferredType", "WebhookIssuesTransferredPropChangesType", "WebhookIssuesTransferredPropChangesPropNewIssueType", @@ -10901,9 +11076,9 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", ), - ".group_0594": ("WebhookIssuesUnassignedType",), - ".group_0595": ("WebhookIssuesUnlabeledType",), - ".group_0596": ( + ".group_0599": ("WebhookIssuesUnassignedType",), + ".group_0600": ("WebhookIssuesUnlabeledType",), + ".group_0601": ( "WebhookIssuesUnlockedType", "WebhookIssuesUnlockedPropIssueType", "WebhookIssuesUnlockedPropIssuePropAssigneeType", @@ -10918,103 +11093,103 @@ "WebhookIssuesUnlockedPropIssuePropReactionsType", "WebhookIssuesUnlockedPropIssuePropUserType", ), - ".group_0597": ("WebhookIssuesUnpinnedType",), - ".group_0598": ("WebhookLabelCreatedType",), - ".group_0599": ("WebhookLabelDeletedType",), - ".group_0600": ( + ".group_0602": ("WebhookIssuesUnpinnedType",), + ".group_0603": ("WebhookLabelCreatedType",), + ".group_0604": ("WebhookLabelDeletedType",), + ".group_0605": ( "WebhookLabelEditedType", "WebhookLabelEditedPropChangesType", "WebhookLabelEditedPropChangesPropColorType", "WebhookLabelEditedPropChangesPropDescriptionType", "WebhookLabelEditedPropChangesPropNameType", ), - ".group_0601": ("WebhookMarketplacePurchaseCancelledType",), - ".group_0602": ( + ".group_0606": ("WebhookMarketplacePurchaseCancelledType",), + ".group_0607": ( "WebhookMarketplacePurchaseChangedType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", ), - ".group_0603": ( + ".group_0608": ( "WebhookMarketplacePurchasePendingChangeType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", ), - ".group_0604": ( + ".group_0609": ( "WebhookMarketplacePurchasePendingChangeCancelledType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", ), - ".group_0605": ("WebhookMarketplacePurchasePurchasedType",), - ".group_0606": ( + ".group_0610": ("WebhookMarketplacePurchasePurchasedType",), + ".group_0611": ( "WebhookMemberAddedType", "WebhookMemberAddedPropChangesType", "WebhookMemberAddedPropChangesPropPermissionType", "WebhookMemberAddedPropChangesPropRoleNameType", ), - ".group_0607": ( + ".group_0612": ( "WebhookMemberEditedType", "WebhookMemberEditedPropChangesType", "WebhookMemberEditedPropChangesPropOldPermissionType", "WebhookMemberEditedPropChangesPropPermissionType", ), - ".group_0608": ("WebhookMemberRemovedType",), - ".group_0609": ( + ".group_0613": ("WebhookMemberRemovedType",), + ".group_0614": ( "WebhookMembershipAddedType", "WebhookMembershipAddedPropSenderType", ), - ".group_0610": ( + ".group_0615": ( "WebhookMembershipRemovedType", "WebhookMembershipRemovedPropSenderType", ), - ".group_0611": ("WebhookMergeGroupChecksRequestedType",), - ".group_0612": ("WebhookMergeGroupDestroyedType",), - ".group_0613": ( + ".group_0616": ("WebhookMergeGroupChecksRequestedType",), + ".group_0617": ("WebhookMergeGroupDestroyedType",), + ".group_0618": ( "WebhookMetaDeletedType", "WebhookMetaDeletedPropHookType", "WebhookMetaDeletedPropHookPropConfigType", ), - ".group_0614": ("WebhookMilestoneClosedType",), - ".group_0615": ("WebhookMilestoneCreatedType",), - ".group_0616": ("WebhookMilestoneDeletedType",), - ".group_0617": ( + ".group_0619": ("WebhookMilestoneClosedType",), + ".group_0620": ("WebhookMilestoneCreatedType",), + ".group_0621": ("WebhookMilestoneDeletedType",), + ".group_0622": ( "WebhookMilestoneEditedType", "WebhookMilestoneEditedPropChangesType", "WebhookMilestoneEditedPropChangesPropDescriptionType", "WebhookMilestoneEditedPropChangesPropDueOnType", "WebhookMilestoneEditedPropChangesPropTitleType", ), - ".group_0618": ("WebhookMilestoneOpenedType",), - ".group_0619": ("WebhookOrgBlockBlockedType",), - ".group_0620": ("WebhookOrgBlockUnblockedType",), - ".group_0621": ("WebhookOrganizationDeletedType",), - ".group_0622": ("WebhookOrganizationMemberAddedType",), - ".group_0623": ( + ".group_0623": ("WebhookMilestoneOpenedType",), + ".group_0624": ("WebhookOrgBlockBlockedType",), + ".group_0625": ("WebhookOrgBlockUnblockedType",), + ".group_0626": ("WebhookOrganizationDeletedType",), + ".group_0627": ("WebhookOrganizationMemberAddedType",), + ".group_0628": ( "WebhookOrganizationMemberInvitedType", "WebhookOrganizationMemberInvitedPropInvitationType", "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", ), - ".group_0624": ("WebhookOrganizationMemberRemovedType",), - ".group_0625": ( + ".group_0629": ("WebhookOrganizationMemberRemovedType",), + ".group_0630": ( "WebhookOrganizationRenamedType", "WebhookOrganizationRenamedPropChangesType", "WebhookOrganizationRenamedPropChangesPropLoginType", ), - ".group_0626": ( + ".group_0631": ( "WebhookRubygemsMetadataType", "WebhookRubygemsMetadataPropVersionInfoType", "WebhookRubygemsMetadataPropMetadataType", "WebhookRubygemsMetadataPropDependenciesItemsType", ), - ".group_0627": ("WebhookPackagePublishedType",), - ".group_0628": ( + ".group_0632": ("WebhookPackagePublishedType",), + ".group_0633": ( "WebhookPackagePublishedPropPackageType", "WebhookPackagePublishedPropPackagePropOwnerType", "WebhookPackagePublishedPropPackagePropRegistryType", ), - ".group_0629": ( + ".group_0634": ( "WebhookPackagePublishedPropPackagePropPackageVersionType", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", @@ -11046,13 +11221,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0630": ("WebhookPackageUpdatedType",), - ".group_0631": ( + ".group_0635": ("WebhookPackageUpdatedType",), + ".group_0636": ( "WebhookPackageUpdatedPropPackageType", "WebhookPackageUpdatedPropPackagePropOwnerType", "WebhookPackageUpdatedPropPackagePropRegistryType", ), - ".group_0632": ( + ".group_0637": ( "WebhookPackageUpdatedPropPackagePropPackageVersionType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", @@ -11061,75 +11236,75 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0633": ( + ".group_0638": ( "WebhookPageBuildType", "WebhookPageBuildPropBuildType", "WebhookPageBuildPropBuildPropErrorType", "WebhookPageBuildPropBuildPropPusherType", ), - ".group_0634": ("WebhookPersonalAccessTokenRequestApprovedType",), - ".group_0635": ("WebhookPersonalAccessTokenRequestCancelledType",), - ".group_0636": ("WebhookPersonalAccessTokenRequestCreatedType",), - ".group_0637": ("WebhookPersonalAccessTokenRequestDeniedType",), - ".group_0638": ("WebhookPingType",), - ".group_0639": ( + ".group_0639": ("WebhookPersonalAccessTokenRequestApprovedType",), + ".group_0640": ("WebhookPersonalAccessTokenRequestCancelledType",), + ".group_0641": ("WebhookPersonalAccessTokenRequestCreatedType",), + ".group_0642": ("WebhookPersonalAccessTokenRequestDeniedType",), + ".group_0643": ("WebhookPingType",), + ".group_0644": ( "WebhookPingPropHookType", "WebhookPingPropHookPropConfigType", ), - ".group_0640": ("WebhookPingFormEncodedType",), - ".group_0641": ( + ".group_0645": ("WebhookPingFormEncodedType",), + ".group_0646": ( "WebhookProjectCardConvertedType", "WebhookProjectCardConvertedPropChangesType", "WebhookProjectCardConvertedPropChangesPropNoteType", ), - ".group_0642": ("WebhookProjectCardCreatedType",), - ".group_0643": ( + ".group_0647": ("WebhookProjectCardCreatedType",), + ".group_0648": ( "WebhookProjectCardDeletedType", "WebhookProjectCardDeletedPropProjectCardType", "WebhookProjectCardDeletedPropProjectCardPropCreatorType", ), - ".group_0644": ( + ".group_0649": ( "WebhookProjectCardEditedType", "WebhookProjectCardEditedPropChangesType", "WebhookProjectCardEditedPropChangesPropNoteType", ), - ".group_0645": ( + ".group_0650": ( "WebhookProjectCardMovedType", "WebhookProjectCardMovedPropChangesType", "WebhookProjectCardMovedPropChangesPropColumnIdType", "WebhookProjectCardMovedPropProjectCardType", "WebhookProjectCardMovedPropProjectCardMergedCreatorType", ), - ".group_0646": ( + ".group_0651": ( "WebhookProjectCardMovedPropProjectCardAllof0Type", "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", ), - ".group_0647": ( + ".group_0652": ( "WebhookProjectCardMovedPropProjectCardAllof1Type", "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", ), - ".group_0648": ("WebhookProjectClosedType",), - ".group_0649": ("WebhookProjectColumnCreatedType",), - ".group_0650": ("WebhookProjectColumnDeletedType",), - ".group_0651": ( + ".group_0653": ("WebhookProjectClosedType",), + ".group_0654": ("WebhookProjectColumnCreatedType",), + ".group_0655": ("WebhookProjectColumnDeletedType",), + ".group_0656": ( "WebhookProjectColumnEditedType", "WebhookProjectColumnEditedPropChangesType", "WebhookProjectColumnEditedPropChangesPropNameType", ), - ".group_0652": ("WebhookProjectColumnMovedType",), - ".group_0653": ("WebhookProjectCreatedType",), - ".group_0654": ("WebhookProjectDeletedType",), - ".group_0655": ( + ".group_0657": ("WebhookProjectColumnMovedType",), + ".group_0658": ("WebhookProjectCreatedType",), + ".group_0659": ("WebhookProjectDeletedType",), + ".group_0660": ( "WebhookProjectEditedType", "WebhookProjectEditedPropChangesType", "WebhookProjectEditedPropChangesPropBodyType", "WebhookProjectEditedPropChangesPropNameType", ), - ".group_0656": ("WebhookProjectReopenedType",), - ".group_0657": ("WebhookProjectsV2ProjectClosedType",), - ".group_0658": ("WebhookProjectsV2ProjectCreatedType",), - ".group_0659": ("WebhookProjectsV2ProjectDeletedType",), - ".group_0660": ( + ".group_0661": ("WebhookProjectReopenedType",), + ".group_0662": ("WebhookProjectsV2ProjectClosedType",), + ".group_0663": ("WebhookProjectsV2ProjectCreatedType",), + ".group_0664": ("WebhookProjectsV2ProjectDeletedType",), + ".group_0665": ( "WebhookProjectsV2ProjectEditedType", "WebhookProjectsV2ProjectEditedPropChangesType", "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", @@ -11137,30 +11312,42 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", ), - ".group_0661": ("WebhookProjectsV2ItemArchivedType",), - ".group_0662": ( + ".group_0666": ("WebhookProjectsV2ItemArchivedType",), + ".group_0667": ( "WebhookProjectsV2ItemConvertedType", "WebhookProjectsV2ItemConvertedPropChangesType", "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", ), - ".group_0663": ("WebhookProjectsV2ItemCreatedType",), - ".group_0664": ("WebhookProjectsV2ItemDeletedType",), - ".group_0665": ( + ".group_0668": ("WebhookProjectsV2ItemCreatedType",), + ".group_0669": ("WebhookProjectsV2ItemDeletedType",), + ".group_0670": ( "WebhookProjectsV2ItemEditedType", "WebhookProjectsV2ItemEditedPropChangesOneof0Type", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", + "ProjectsV2SingleSelectOptionType", + "ProjectsV2IterationSettingType", "WebhookProjectsV2ItemEditedPropChangesOneof1Type", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", ), - ".group_0666": ( + ".group_0671": ( "WebhookProjectsV2ItemReorderedType", "WebhookProjectsV2ItemReorderedPropChangesType", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", ), - ".group_0667": ("WebhookProjectsV2ItemRestoredType",), - ".group_0668": ("WebhookProjectsV2ProjectReopenedType",), - ".group_0669": ("WebhookPublicType",), - ".group_0670": ( + ".group_0672": ("WebhookProjectsV2ItemRestoredType",), + ".group_0673": ("WebhookProjectsV2ProjectReopenedType",), + ".group_0674": ("WebhookProjectsV2StatusUpdateCreatedType",), + ".group_0675": ("WebhookProjectsV2StatusUpdateDeletedType",), + ".group_0676": ( + "WebhookProjectsV2StatusUpdateEditedType", + "WebhookProjectsV2StatusUpdateEditedPropChangesType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType", + ), + ".group_0677": ("WebhookPublicType",), + ".group_0678": ( "WebhookPullRequestAssignedType", "WebhookPullRequestAssignedPropPullRequestType", "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", @@ -11199,7 +11386,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0671": ( + ".group_0679": ( "WebhookPullRequestAutoMergeDisabledType", "WebhookPullRequestAutoMergeDisabledPropPullRequestType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", @@ -11238,7 +11425,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0672": ( + ".group_0680": ( "WebhookPullRequestAutoMergeEnabledType", "WebhookPullRequestAutoMergeEnabledPropPullRequestType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", @@ -11277,10 +11464,10 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0673": ("WebhookPullRequestClosedType",), - ".group_0674": ("WebhookPullRequestConvertedToDraftType",), - ".group_0675": ("WebhookPullRequestDemilestonedType",), - ".group_0676": ( + ".group_0681": ("WebhookPullRequestClosedType",), + ".group_0682": ("WebhookPullRequestConvertedToDraftType",), + ".group_0683": ("WebhookPullRequestDemilestonedType",), + ".group_0684": ( "WebhookPullRequestDequeuedType", "WebhookPullRequestDequeuedPropPullRequestType", "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", @@ -11319,7 +11506,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0677": ( + ".group_0685": ( "WebhookPullRequestEditedType", "WebhookPullRequestEditedPropChangesType", "WebhookPullRequestEditedPropChangesPropBodyType", @@ -11328,7 +11515,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRefType", "WebhookPullRequestEditedPropChangesPropBasePropShaType", ), - ".group_0678": ( + ".group_0686": ( "WebhookPullRequestEnqueuedType", "WebhookPullRequestEnqueuedPropPullRequestType", "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", @@ -11367,7 +11554,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0679": ( + ".group_0687": ( "WebhookPullRequestLabeledType", "WebhookPullRequestLabeledPropPullRequestType", "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", @@ -11406,7 +11593,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0680": ( + ".group_0688": ( "WebhookPullRequestLockedType", "WebhookPullRequestLockedPropPullRequestType", "WebhookPullRequestLockedPropPullRequestPropAssigneeType", @@ -11445,11 +11632,11 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0681": ("WebhookPullRequestMilestonedType",), - ".group_0682": ("WebhookPullRequestOpenedType",), - ".group_0683": ("WebhookPullRequestReadyForReviewType",), - ".group_0684": ("WebhookPullRequestReopenedType",), - ".group_0685": ( + ".group_0689": ("WebhookPullRequestMilestonedType",), + ".group_0690": ("WebhookPullRequestOpenedType",), + ".group_0691": ("WebhookPullRequestReadyForReviewType",), + ".group_0692": ("WebhookPullRequestReopenedType",), + ".group_0693": ( "WebhookPullRequestReviewCommentCreatedType", "WebhookPullRequestReviewCommentCreatedPropCommentType", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", @@ -11494,7 +11681,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0686": ( + ".group_0694": ( "WebhookPullRequestReviewCommentDeletedType", "WebhookPullRequestReviewCommentDeletedPropPullRequestType", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", @@ -11532,7 +11719,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0687": ( + ".group_0695": ( "WebhookPullRequestReviewCommentEditedType", "WebhookPullRequestReviewCommentEditedPropPullRequestType", "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", @@ -11570,7 +11757,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0688": ( + ".group_0696": ( "WebhookPullRequestReviewDismissedType", "WebhookPullRequestReviewDismissedPropReviewType", "WebhookPullRequestReviewDismissedPropReviewPropUserType", @@ -11613,7 +11800,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0689": ( + ".group_0697": ( "WebhookPullRequestReviewEditedType", "WebhookPullRequestReviewEditedPropChangesType", "WebhookPullRequestReviewEditedPropChangesPropBodyType", @@ -11653,7 +11840,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0690": ( + ".group_0698": ( "WebhookPullRequestReviewRequestRemovedOneof0Type", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", @@ -11693,7 +11880,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0691": ( + ".group_0699": ( "WebhookPullRequestReviewRequestRemovedOneof1Type", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", @@ -11734,7 +11921,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0692": ( + ".group_0700": ( "WebhookPullRequestReviewRequestedOneof0Type", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", @@ -11774,7 +11961,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0693": ( + ".group_0701": ( "WebhookPullRequestReviewRequestedOneof1Type", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", @@ -11815,7 +12002,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0694": ( + ".group_0702": ( "WebhookPullRequestReviewSubmittedType", "WebhookPullRequestReviewSubmittedPropPullRequestType", "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", @@ -11853,7 +12040,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0695": ( + ".group_0703": ( "WebhookPullRequestReviewThreadResolvedType", "WebhookPullRequestReviewThreadResolvedPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", @@ -11899,7 +12086,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0696": ( + ".group_0704": ( "WebhookPullRequestReviewThreadUnresolvedType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", @@ -11945,7 +12132,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0697": ( + ".group_0705": ( "WebhookPullRequestSynchronizeType", "WebhookPullRequestSynchronizePropPullRequestType", "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", @@ -11984,7 +12171,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0698": ( + ".group_0706": ( "WebhookPullRequestUnassignedType", "WebhookPullRequestUnassignedPropPullRequestType", "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", @@ -12023,7 +12210,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0699": ( + ".group_0707": ( "WebhookPullRequestUnlabeledType", "WebhookPullRequestUnlabeledPropPullRequestType", "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", @@ -12062,7 +12249,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0700": ( + ".group_0708": ( "WebhookPullRequestUnlockedType", "WebhookPullRequestUnlockedPropPullRequestType", "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", @@ -12101,7 +12288,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0701": ( + ".group_0709": ( "WebhookPushType", "WebhookPushPropHeadCommitType", "WebhookPushPropHeadCommitPropAuthorType", @@ -12116,13 +12303,13 @@ "WebhookPushPropRepositoryPropOwnerType", "WebhookPushPropRepositoryPropPermissionsType", ), - ".group_0702": ("WebhookRegistryPackagePublishedType",), - ".group_0703": ( + ".group_0710": ("WebhookRegistryPackagePublishedType",), + ".group_0711": ( "WebhookRegistryPackagePublishedPropRegistryPackageType", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", ), - ".group_0704": ( + ".group_0712": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", @@ -12153,13 +12340,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0705": ("WebhookRegistryPackageUpdatedType",), - ".group_0706": ( + ".group_0713": ("WebhookRegistryPackageUpdatedType",), + ".group_0714": ( "WebhookRegistryPackageUpdatedPropRegistryPackageType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", ), - ".group_0707": ( + ".group_0715": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", @@ -12168,16 +12355,16 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0708": ("WebhookReleaseCreatedType",), - ".group_0709": ("WebhookReleaseDeletedType",), - ".group_0710": ( + ".group_0716": ("WebhookReleaseCreatedType",), + ".group_0717": ("WebhookReleaseDeletedType",), + ".group_0718": ( "WebhookReleaseEditedType", "WebhookReleaseEditedPropChangesType", "WebhookReleaseEditedPropChangesPropBodyType", "WebhookReleaseEditedPropChangesPropNameType", "WebhookReleaseEditedPropChangesPropMakeLatestType", ), - ".group_0711": ( + ".group_0719": ( "WebhookReleasePrereleasedType", "WebhookReleasePrereleasedPropReleaseType", "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", @@ -12185,19 +12372,19 @@ "WebhookReleasePrereleasedPropReleasePropAuthorType", "WebhookReleasePrereleasedPropReleasePropReactionsType", ), - ".group_0712": ("WebhookReleasePublishedType",), - ".group_0713": ("WebhookReleaseReleasedType",), - ".group_0714": ("WebhookReleaseUnpublishedType",), - ".group_0715": ("WebhookRepositoryAdvisoryPublishedType",), - ".group_0716": ("WebhookRepositoryAdvisoryReportedType",), - ".group_0717": ("WebhookRepositoryArchivedType",), - ".group_0718": ("WebhookRepositoryCreatedType",), - ".group_0719": ("WebhookRepositoryDeletedType",), - ".group_0720": ( + ".group_0720": ("WebhookReleasePublishedType",), + ".group_0721": ("WebhookReleaseReleasedType",), + ".group_0722": ("WebhookReleaseUnpublishedType",), + ".group_0723": ("WebhookRepositoryAdvisoryPublishedType",), + ".group_0724": ("WebhookRepositoryAdvisoryReportedType",), + ".group_0725": ("WebhookRepositoryArchivedType",), + ".group_0726": ("WebhookRepositoryCreatedType",), + ".group_0727": ("WebhookRepositoryDeletedType",), + ".group_0728": ( "WebhookRepositoryDispatchSampleType", "WebhookRepositoryDispatchSamplePropClientPayloadType", ), - ".group_0721": ( + ".group_0729": ( "WebhookRepositoryEditedType", "WebhookRepositoryEditedPropChangesType", "WebhookRepositoryEditedPropChangesPropDefaultBranchType", @@ -12205,25 +12392,25 @@ "WebhookRepositoryEditedPropChangesPropHomepageType", "WebhookRepositoryEditedPropChangesPropTopicsType", ), - ".group_0722": ("WebhookRepositoryImportType",), - ".group_0723": ("WebhookRepositoryPrivatizedType",), - ".group_0724": ("WebhookRepositoryPublicizedType",), - ".group_0725": ( + ".group_0730": ("WebhookRepositoryImportType",), + ".group_0731": ("WebhookRepositoryPrivatizedType",), + ".group_0732": ("WebhookRepositoryPublicizedType",), + ".group_0733": ( "WebhookRepositoryRenamedType", "WebhookRepositoryRenamedPropChangesType", "WebhookRepositoryRenamedPropChangesPropRepositoryType", "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", ), - ".group_0726": ("WebhookRepositoryRulesetCreatedType",), - ".group_0727": ("WebhookRepositoryRulesetDeletedType",), - ".group_0728": ("WebhookRepositoryRulesetEditedType",), - ".group_0729": ( + ".group_0734": ("WebhookRepositoryRulesetCreatedType",), + ".group_0735": ("WebhookRepositoryRulesetDeletedType",), + ".group_0736": ("WebhookRepositoryRulesetEditedType",), + ".group_0737": ( "WebhookRepositoryRulesetEditedPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropNameType", "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", ), - ".group_0730": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), - ".group_0731": ( + ".group_0738": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), + ".group_0739": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", @@ -12231,15 +12418,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", ), - ".group_0732": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), - ".group_0733": ( + ".group_0740": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), + ".group_0741": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", ), - ".group_0734": ( + ".group_0742": ( "WebhookRepositoryTransferredType", "WebhookRepositoryTransferredPropChangesType", "WebhookRepositoryTransferredPropChangesPropOwnerType", @@ -12247,21 +12434,21 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", ), - ".group_0735": ("WebhookRepositoryUnarchivedType",), - ".group_0736": ("WebhookRepositoryVulnerabilityAlertCreateType",), - ".group_0737": ( + ".group_0743": ("WebhookRepositoryUnarchivedType",), + ".group_0744": ("WebhookRepositoryVulnerabilityAlertCreateType",), + ".group_0745": ( "WebhookRepositoryVulnerabilityAlertDismissType", "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", ), - ".group_0738": ("WebhookRepositoryVulnerabilityAlertReopenType",), - ".group_0739": ( + ".group_0746": ("WebhookRepositoryVulnerabilityAlertReopenType",), + ".group_0747": ( "WebhookRepositoryVulnerabilityAlertResolveType", "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", ), - ".group_0740": ("WebhookSecretScanningAlertCreatedType",), - ".group_0741": ( + ".group_0748": ("WebhookSecretScanningAlertCreatedType",), + ".group_0749": ( "WebhookSecretScanningAlertLocationCreatedType", "SecretScanningLocationType", "SecretScanningLocationCommitType", @@ -12278,13 +12465,13 @@ "SecretScanningLocationPullRequestReviewType", "SecretScanningLocationPullRequestReviewCommentType", ), - ".group_0742": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), - ".group_0743": ("WebhookSecretScanningAlertReopenedType",), - ".group_0744": ("WebhookSecretScanningAlertResolvedType",), - ".group_0745": ("WebhookSecretScanningAlertValidatedType",), - ".group_0746": ("WebhookSecurityAdvisoryPublishedType",), - ".group_0747": ("WebhookSecurityAdvisoryUpdatedType",), - ".group_0748": ( + ".group_0750": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), + ".group_0751": ("WebhookSecretScanningAlertReopenedType",), + ".group_0752": ("WebhookSecretScanningAlertResolvedType",), + ".group_0753": ("WebhookSecretScanningAlertValidatedType",), + ".group_0754": ("WebhookSecurityAdvisoryPublishedType",), + ".group_0755": ("WebhookSecurityAdvisoryUpdatedType",), + ".group_0756": ( "WebhookSecurityAdvisoryWithdrawnType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", @@ -12295,22 +12482,22 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0749": ("WebhookSecurityAndAnalysisType",), - ".group_0750": ("WebhookSecurityAndAnalysisPropChangesType",), - ".group_0751": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), - ".group_0752": ("WebhookSponsorshipCancelledType",), - ".group_0753": ("WebhookSponsorshipCreatedType",), - ".group_0754": ( + ".group_0757": ("WebhookSecurityAndAnalysisType",), + ".group_0758": ("WebhookSecurityAndAnalysisPropChangesType",), + ".group_0759": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), + ".group_0760": ("WebhookSponsorshipCancelledType",), + ".group_0761": ("WebhookSponsorshipCreatedType",), + ".group_0762": ( "WebhookSponsorshipEditedType", "WebhookSponsorshipEditedPropChangesType", "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", ), - ".group_0755": ("WebhookSponsorshipPendingCancellationType",), - ".group_0756": ("WebhookSponsorshipPendingTierChangeType",), - ".group_0757": ("WebhookSponsorshipTierChangedType",), - ".group_0758": ("WebhookStarCreatedType",), - ".group_0759": ("WebhookStarDeletedType",), - ".group_0760": ( + ".group_0763": ("WebhookSponsorshipPendingCancellationType",), + ".group_0764": ("WebhookSponsorshipPendingTierChangeType",), + ".group_0765": ("WebhookSponsorshipTierChangedType",), + ".group_0766": ("WebhookStarCreatedType",), + ".group_0767": ("WebhookStarDeletedType",), + ".group_0768": ( "WebhookStatusType", "WebhookStatusPropBranchesItemsType", "WebhookStatusPropBranchesItemsPropCommitType", @@ -12324,12 +12511,12 @@ "WebhookStatusPropCommitPropCommitPropTreeType", "WebhookStatusPropCommitPropCommitPropVerificationType", ), - ".group_0761": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), - ".group_0762": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), - ".group_0763": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), - ".group_0764": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), - ".group_0765": ("WebhookTeamAddType",), - ".group_0766": ( + ".group_0769": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), + ".group_0770": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), + ".group_0771": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), + ".group_0772": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), + ".group_0773": ("WebhookTeamAddType",), + ".group_0774": ( "WebhookTeamAddedToRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", @@ -12337,7 +12524,7 @@ "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", ), - ".group_0767": ( + ".group_0775": ( "WebhookTeamCreatedType", "WebhookTeamCreatedPropRepositoryType", "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", @@ -12345,7 +12532,7 @@ "WebhookTeamCreatedPropRepositoryPropOwnerType", "WebhookTeamCreatedPropRepositoryPropPermissionsType", ), - ".group_0768": ( + ".group_0776": ( "WebhookTeamDeletedType", "WebhookTeamDeletedPropRepositoryType", "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", @@ -12353,7 +12540,7 @@ "WebhookTeamDeletedPropRepositoryPropOwnerType", "WebhookTeamDeletedPropRepositoryPropPermissionsType", ), - ".group_0769": ( + ".group_0777": ( "WebhookTeamEditedType", "WebhookTeamEditedPropRepositoryType", "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", @@ -12369,7 +12556,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", ), - ".group_0770": ( + ".group_0778": ( "WebhookTeamRemovedFromRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", @@ -12377,48 +12564,48 @@ "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", ), - ".group_0771": ("WebhookWatchStartedType",), - ".group_0772": ( + ".group_0779": ("WebhookWatchStartedType",), + ".group_0780": ( "WebhookWorkflowDispatchType", "WebhookWorkflowDispatchPropInputsType", ), - ".group_0773": ( + ".group_0781": ( "WebhookWorkflowJobCompletedType", "WebhookWorkflowJobCompletedPropWorkflowJobType", "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", ), - ".group_0774": ( + ".group_0782": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0775": ( + ".group_0783": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0776": ( + ".group_0784": ( "WebhookWorkflowJobInProgressType", "WebhookWorkflowJobInProgressPropWorkflowJobType", "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", ), - ".group_0777": ( + ".group_0785": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0778": ( + ".group_0786": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0779": ( + ".group_0787": ( "WebhookWorkflowJobQueuedType", "WebhookWorkflowJobQueuedPropWorkflowJobType", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", ), - ".group_0780": ( + ".group_0788": ( "WebhookWorkflowJobWaitingType", "WebhookWorkflowJobWaitingPropWorkflowJobType", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", ), - ".group_0781": ( + ".group_0789": ( "WebhookWorkflowRunCompletedType", "WebhookWorkflowRunCompletedPropWorkflowRunType", "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", @@ -12437,7 +12624,7 @@ "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0782": ( + ".group_0790": ( "WebhookWorkflowRunInProgressType", "WebhookWorkflowRunInProgressPropWorkflowRunType", "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", @@ -12456,7 +12643,7 @@ "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0783": ( + ".group_0791": ( "WebhookWorkflowRunRequestedType", "WebhookWorkflowRunRequestedPropWorkflowRunType", "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", @@ -12475,312 +12662,349 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0784": ("AppManifestsCodeConversionsPostResponse201Type",), - ".group_0785": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), - ".group_0786": ("AppHookConfigPatchBodyType",), - ".group_0787": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), - ".group_0788": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), - ".group_0789": ("ApplicationsClientIdGrantDeleteBodyType",), - ".group_0790": ("ApplicationsClientIdTokenPostBodyType",), - ".group_0791": ("ApplicationsClientIdTokenDeleteBodyType",), - ".group_0792": ("ApplicationsClientIdTokenPatchBodyType",), - ".group_0793": ("ApplicationsClientIdTokenScopedPostBodyType",), - ".group_0794": ("EmojisGetResponse200Type",), - ".group_0795": ("EnterprisesEnterpriseActionsPermissionsPutBodyType",), - ".group_0796": ( + ".group_0792": ("AppManifestsCodeConversionsPostResponse201Type",), + ".group_0793": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), + ".group_0794": ("AppHookConfigPatchBodyType",), + ".group_0795": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), + ".group_0796": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), + ".group_0797": ("ApplicationsClientIdGrantDeleteBodyType",), + ".group_0798": ("ApplicationsClientIdTokenPostBodyType",), + ".group_0799": ("ApplicationsClientIdTokenDeleteBodyType",), + ".group_0800": ("ApplicationsClientIdTokenPatchBodyType",), + ".group_0801": ("ApplicationsClientIdTokenScopedPostBodyType",), + ".group_0802": ("EmojisGetResponse200Type",), + ".group_0803": ("EnterprisesEnterpriseActionsPermissionsPutBodyType",), + ".group_0804": ( "EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type", ), - ".group_0797": ( + ".group_0805": ( "EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType", ), - ".group_0798": ( + ".group_0806": ( "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type", "RunnerGroupsEnterpriseType", ), - ".group_0799": ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",), - ".group_0800": ( + ".group_0807": ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",), + ".group_0808": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType", ), - ".group_0801": ( + ".group_0809": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type", ), - ".group_0802": ( + ".group_0810": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType", ), - ".group_0803": ( + ".group_0811": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", ), - ".group_0804": ( + ".group_0812": ( "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType", ), - ".group_0805": ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",), - ".group_0806": ( + ".group_0813": ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",), + ".group_0814": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType", ), - ".group_0807": ( + ".group_0815": ( "EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type", ), - ".group_0808": ( + ".group_0816": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type", ), - ".group_0809": ( + ".group_0817": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType", ), - ".group_0810": ( + ".group_0818": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType", ), - ".group_0811": ( + ".group_0819": ( "EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type", ), - ".group_0812": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",), - ".group_0813": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",), - ".group_0814": ( + ".group_0820": ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",), + ".group_0821": ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",), + ".group_0822": ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type",), + ".group_0823": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType", ), - ".group_0815": ( + ".group_0824": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type", ), - ".group_0816": ( + ".group_0825": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType", ), - ".group_0817": ( + ".group_0826": ( "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type", ), - ".group_0818": ( + ".group_0827": ( "GistsPostBodyType", "GistsPostBodyPropFilesType", ), - ".group_0819": ( + ".group_0828": ( "GistsGistIdGetResponse403Type", "GistsGistIdGetResponse403PropBlockType", ), - ".group_0820": ( + ".group_0829": ( "GistsGistIdPatchBodyType", "GistsGistIdPatchBodyPropFilesType", ), - ".group_0821": ("GistsGistIdCommentsPostBodyType",), - ".group_0822": ("GistsGistIdCommentsCommentIdPatchBodyType",), - ".group_0823": ("GistsGistIdStarGetResponse404Type",), - ".group_0824": ("InstallationRepositoriesGetResponse200Type",), - ".group_0825": ("MarkdownPostBodyType",), - ".group_0826": ("NotificationsPutBodyType",), - ".group_0827": ("NotificationsPutResponse202Type",), - ".group_0828": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), - ".group_0829": ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",), - ".group_0830": ("OrgsOrgPatchBodyType",), - ".group_0831": ( + ".group_0830": ("GistsGistIdCommentsPostBodyType",), + ".group_0831": ("GistsGistIdCommentsCommentIdPatchBodyType",), + ".group_0832": ("GistsGistIdStarGetResponse404Type",), + ".group_0833": ("InstallationRepositoriesGetResponse200Type",), + ".group_0834": ("MarkdownPostBodyType",), + ".group_0835": ("NotificationsPutBodyType",), + ".group_0836": ("NotificationsPutResponse202Type",), + ".group_0837": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), + ".group_0838": ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",), + ".group_0839": ("OrgsOrgPatchBodyType",), + ".group_0840": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", "ActionsCacheUsageByRepositoryType", ), - ".group_0832": ("OrgsOrgActionsPermissionsPutBodyType",), - ".group_0833": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), - ".group_0834": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), - ".group_0835": ( + ".group_0841": ("OrgsOrgActionsPermissionsPutBodyType",), + ".group_0842": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), + ".group_0843": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), + ".group_0844": ( "OrgsOrgActionsRunnerGroupsGetResponse200Type", "RunnerGroupsOrgType", ), - ".group_0836": ("OrgsOrgActionsRunnerGroupsPostBodyType",), - ".group_0837": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",), - ".group_0838": ( + ".group_0845": ("OrgsOrgActionsRunnerGroupsPostBodyType",), + ".group_0846": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",), + ".group_0847": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type", ), - ".group_0839": ( + ".group_0848": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType", ), - ".group_0840": ( + ".group_0849": ( "OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", ), - ".group_0841": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",), - ".group_0842": ("OrgsOrgActionsRunnersGetResponse200Type",), - ".group_0843": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), - ".group_0844": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_0845": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_0846": ( + ".group_0850": ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",), + ".group_0851": ("OrgsOrgActionsRunnersGetResponse200Type",), + ".group_0852": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), + ".group_0853": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_0854": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_0855": ( "OrgsOrgActionsSecretsGetResponse200Type", "OrganizationActionsSecretType", ), - ".group_0847": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), - ".group_0848": ( + ".group_0856": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), + ".group_0857": ( "OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0849": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), - ".group_0850": ( + ".group_0858": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), + ".group_0859": ( "OrgsOrgActionsVariablesGetResponse200Type", "OrganizationActionsVariableType", ), - ".group_0851": ("OrgsOrgActionsVariablesPostBodyType",), - ".group_0852": ("OrgsOrgActionsVariablesNamePatchBodyType",), - ".group_0853": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), - ".group_0854": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), - ".group_0855": ("OrgsOrgCodespacesGetResponse200Type",), - ".group_0856": ("OrgsOrgCodespacesAccessPutBodyType",), - ".group_0857": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), - ".group_0858": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), - ".group_0859": ( + ".group_0860": ("OrgsOrgActionsVariablesPostBodyType",), + ".group_0861": ("OrgsOrgActionsVariablesNamePatchBodyType",), + ".group_0862": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), + ".group_0863": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), + ".group_0864": ( + "OrgsOrgAttestationsSubjectDigestGetResponse200Type", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", + ), + ".group_0865": ("OrgsOrgCodeSecurityConfigurationsPostBodyType",), + ".group_0866": ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", + ), + ".group_0867": ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", + ), + ".group_0868": ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", + ), + ".group_0869": ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", + ), + ".group_0870": ("OrgsOrgCodespacesGetResponse200Type",), + ".group_0871": ("OrgsOrgCodespacesAccessPutBodyType",), + ".group_0872": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), + ".group_0873": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), + ".group_0874": ( "OrgsOrgCodespacesSecretsGetResponse200Type", "CodespacesOrgSecretType", ), - ".group_0860": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), - ".group_0861": ( + ".group_0875": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), + ".group_0876": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0862": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_0863": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), - ".group_0864": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), - ".group_0865": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), - ".group_0866": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), - ".group_0867": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), - ".group_0868": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), - ".group_0869": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), - ".group_0870": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), - ".group_0871": ("OrgsOrgCustomRepositoryRolesGetResponse200Type",), - ".group_0872": ( + ".group_0877": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_0878": ("OrgsOrgCopilotBillingSeatsGetResponse200Type",), + ".group_0879": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), + ".group_0880": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), + ".group_0881": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), + ".group_0882": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), + ".group_0883": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), + ".group_0884": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), + ".group_0885": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), + ".group_0886": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), + ".group_0887": ("OrgsOrgCustomRepositoryRolesGetResponse200Type",), + ".group_0888": ( "OrgsOrgDependabotSecretsGetResponse200Type", "OrganizationDependabotSecretType", ), - ".group_0873": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), - ".group_0874": ( + ".group_0889": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), + ".group_0890": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0875": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), - ".group_0876": ( + ".group_0891": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), + ".group_0892": ( "OrgsOrgHooksPostBodyType", "OrgsOrgHooksPostBodyPropConfigType", ), - ".group_0877": ( + ".group_0893": ( "OrgsOrgHooksHookIdPatchBodyType", "OrgsOrgHooksHookIdPatchBodyPropConfigType", ), - ".group_0878": ("OrgsOrgHooksHookIdConfigPatchBodyType",), - ".group_0879": ("OrgsOrgInstallationsGetResponse200Type",), - ".group_0880": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), - ".group_0881": ("OrgsOrgInvitationsPostBodyType",), - ".group_0882": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), - ".group_0883": ("OrgsOrgMembershipsUsernamePutBodyType",), - ".group_0884": ("OrgsOrgMigrationsPostBodyType",), - ".group_0885": ("OrgsOrgOrganizationRolesPostBodyType",), - ".group_0886": ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",), - ".group_0887": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), - ".group_0888": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), - ".group_0889": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), - ".group_0890": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), - ".group_0891": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), - ".group_0892": ("OrgsOrgPersonalAccessTokensPostBodyType",), - ".group_0893": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), - ".group_0894": ("OrgsOrgProjectsPostBodyType",), - ".group_0895": ("OrgsOrgPropertiesSchemaPatchBodyType",), - ".group_0896": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",), - ".group_0897": ("OrgsOrgPropertiesValuesPatchBodyType",), - ".group_0898": ( + ".group_0894": ("OrgsOrgHooksHookIdConfigPatchBodyType",), + ".group_0895": ("OrgsOrgInstallationsGetResponse200Type",), + ".group_0896": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), + ".group_0897": ("OrgsOrgInvitationsPostBodyType",), + ".group_0898": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), + ".group_0899": ("OrgsOrgMembershipsUsernamePutBodyType",), + ".group_0900": ("OrgsOrgMigrationsPostBodyType",), + ".group_0901": ("OrgsOrgOrganizationRolesPostBodyType",), + ".group_0902": ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",), + ".group_0903": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), + ".group_0904": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), + ".group_0905": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), + ".group_0906": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), + ".group_0907": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), + ".group_0908": ("OrgsOrgPersonalAccessTokensPostBodyType",), + ".group_0909": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), + ".group_0910": ("OrgsOrgProjectsPostBodyType",), + ".group_0911": ("OrgsOrgPropertiesSchemaPatchBodyType",), + ".group_0912": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",), + ".group_0913": ("OrgsOrgPropertiesValuesPatchBodyType",), + ".group_0914": ( "OrgsOrgReposPostBodyType", "OrgsOrgReposPostBodyPropCustomPropertiesType", ), - ".group_0899": ("OrgsOrgRulesetsPostBodyType",), - ".group_0900": ("OrgsOrgRulesetsRulesetIdPutBodyType",), - ".group_0901": ("OrgsOrgTeamsPostBodyType",), - ".group_0902": ("OrgsOrgTeamsTeamSlugPatchBodyType",), - ".group_0903": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), - ".group_0904": ( + ".group_0915": ("OrgsOrgRulesetsPostBodyType",), + ".group_0916": ("OrgsOrgRulesetsRulesetIdPutBodyType",), + ".group_0917": ("OrgsOrgTeamsPostBodyType",), + ".group_0918": ("OrgsOrgTeamsTeamSlugPatchBodyType",), + ".group_0919": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), + ".group_0920": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType", ), - ".group_0905": ( + ".group_0921": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType", ), - ".group_0906": ( + ".group_0922": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_0907": ( + ".group_0923": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_0908": ( + ".group_0924": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType", ), - ".group_0909": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",), - ".group_0910": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), - ".group_0911": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), - ".group_0912": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), - ".group_0913": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), - ".group_0914": ( + ".group_0925": ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",), + ".group_0926": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), + ".group_0927": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), + ".group_0928": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), + ".group_0929": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), + ".group_0930": ( "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType", "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", ), - ".group_0915": ("OrgsOrgSecurityProductEnablementPostBodyType",), - ".group_0916": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), - ".group_0917": ("ProjectsColumnsCardsCardIdPatchBodyType",), - ".group_0918": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), - ".group_0919": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), - ".group_0920": ( + ".group_0931": ("OrgsOrgSecurityProductEnablementPostBodyType",), + ".group_0932": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), + ".group_0933": ("ProjectsColumnsCardsCardIdPatchBodyType",), + ".group_0934": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), + ".group_0935": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), + ".group_0936": ( "ProjectsColumnsCardsCardIdMovesPostResponse403Type", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", ), - ".group_0921": ( + ".group_0937": ( "ProjectsColumnsCardsCardIdMovesPostResponse503Type", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", ), - ".group_0922": ("ProjectsColumnsColumnIdPatchBodyType",), - ".group_0923": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), - ".group_0924": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), - ".group_0925": ( + ".group_0938": ("ProjectsColumnsColumnIdPatchBodyType",), + ".group_0939": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), + ".group_0940": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), + ".group_0941": ( "ProjectsColumnsColumnIdCardsPostResponse503Type", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", ), - ".group_0926": ("ProjectsColumnsColumnIdMovesPostBodyType",), - ".group_0927": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), - ".group_0928": ("ProjectsProjectIdDeleteResponse403Type",), - ".group_0929": ("ProjectsProjectIdPatchBodyType",), - ".group_0930": ("ProjectsProjectIdPatchResponse403Type",), - ".group_0931": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), - ".group_0932": ("ProjectsProjectIdColumnsPostBodyType",), - ".group_0933": ("ReposOwnerRepoDeleteResponse403Type",), - ".group_0934": ( + ".group_0942": ("ProjectsColumnsColumnIdMovesPostBodyType",), + ".group_0943": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), + ".group_0944": ("ProjectsProjectIdDeleteResponse403Type",), + ".group_0945": ("ProjectsProjectIdPatchBodyType",), + ".group_0946": ("ProjectsProjectIdPatchResponse403Type",), + ".group_0947": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), + ".group_0948": ("ProjectsProjectIdColumnsPostBodyType",), + ".group_0949": ("ReposOwnerRepoDeleteResponse403Type",), + ".group_0950": ( "ReposOwnerRepoPatchBodyType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType", ), - ".group_0935": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), - ".group_0936": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), - ".group_0937": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), - ".group_0938": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), - ".group_0939": ( + ".group_0951": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), + ".group_0952": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), + ".group_0953": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), + ".group_0954": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), + ".group_0955": ( "ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type", ), - ".group_0940": ("ReposOwnerRepoActionsPermissionsPutBodyType",), - ".group_0941": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), - ".group_0942": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), - ".group_0943": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_0944": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_0945": ("ReposOwnerRepoActionsRunsGetResponse200Type",), - ".group_0946": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), - ".group_0947": ( + ".group_0956": ("ReposOwnerRepoActionsPermissionsPutBodyType",), + ".group_0957": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), + ".group_0958": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), + ".group_0959": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_0960": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_0961": ("ReposOwnerRepoActionsRunsGetResponse200Type",), + ".group_0962": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), + ".group_0963": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type", ), - ".group_0948": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), - ".group_0949": ( + ".group_0964": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), + ".group_0965": ( "ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType", ), - ".group_0950": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), - ".group_0951": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), - ".group_0952": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), - ".group_0953": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), - ".group_0954": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), - ".group_0955": ("ReposOwnerRepoActionsVariablesPostBodyType",), - ".group_0956": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), - ".group_0957": ( + ".group_0966": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), + ".group_0967": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), + ".group_0968": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), + ".group_0969": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), + ".group_0970": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), + ".group_0971": ("ReposOwnerRepoActionsVariablesPostBodyType",), + ".group_0972": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), + ".group_0973": ( "ReposOwnerRepoActionsWorkflowsGetResponse200Type", "WorkflowType", ), - ".group_0958": ( + ".group_0974": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", ), - ".group_0959": ( + ".group_0975": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type", ), - ".group_0960": ("ReposOwnerRepoAutolinksPostBodyType",), - ".group_0961": ( + ".group_0976": ( + "ReposOwnerRepoAttestationsPostBodyType", + "ReposOwnerRepoAttestationsPostBodyPropBundleType", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", + ), + ".group_0977": ("ReposOwnerRepoAttestationsPostResponse201Type",), + ".group_0978": ( + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", + ), + ".group_0979": ("ReposOwnerRepoAutolinksPostBodyType",), + ".group_0980": ( "ReposOwnerRepoBranchesBranchProtectionPutBodyType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", @@ -12789,363 +13013,377 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", ), - ".group_0962": ( + ".group_0981": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", ), - ".group_0963": ( + ".group_0982": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", ), - ".group_0964": ( + ".group_0983": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", ), - ".group_0965": ( + ".group_0984": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", ), - ".group_0966": ( + ".group_0985": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", ), - ".group_0967": ( + ".group_0986": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type", ), - ".group_0968": ( + ".group_0987": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type", ), - ".group_0969": ( + ".group_0988": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type", ), - ".group_0970": ( + ".group_0989": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type", ), - ".group_0971": ( + ".group_0990": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type", ), - ".group_0972": ( + ".group_0991": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", ), - ".group_0973": ( + ".group_0992": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type", ), - ".group_0974": ( + ".group_0993": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type", ), - ".group_0975": ( + ".group_0994": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type", ), - ".group_0976": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), - ".group_0977": ( + ".group_0995": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), + ".group_0996": ( "ReposOwnerRepoCheckRunsPostBodyPropOutputType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", ), - ".group_0978": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), - ".group_0979": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), - ".group_0980": ( + ".group_0997": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), + ".group_0998": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), + ".group_0999": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", ), - ".group_0981": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), - ".group_0982": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), - ".group_0983": ("ReposOwnerRepoCheckSuitesPostBodyType",), - ".group_0984": ( + ".group_1000": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), + ".group_1001": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), + ".group_1002": ("ReposOwnerRepoCheckSuitesPostBodyType",), + ".group_1003": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", ), - ".group_0985": ( + ".group_1004": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type", ), - ".group_0986": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), - ".group_0987": ( + ".group_1005": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), + ".group_1006": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type", ), - ".group_0988": ( + ".group_1007": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type", ), - ".group_0989": ( + ".group_1008": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type", ), - ".group_0990": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), - ".group_0991": ("ReposOwnerRepoCodespacesGetResponse200Type",), - ".group_0992": ("ReposOwnerRepoCodespacesPostBodyType",), - ".group_0993": ( + ".group_1009": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), + ".group_1010": ("ReposOwnerRepoCodespacesGetResponse200Type",), + ".group_1011": ("ReposOwnerRepoCodespacesPostBodyType",), + ".group_1012": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", ), - ".group_0994": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), - ".group_0995": ( + ".group_1013": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), + ".group_1014": ( "ReposOwnerRepoCodespacesNewGetResponse200Type", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", ), - ".group_0996": ( + ".group_1015": ( "ReposOwnerRepoCodespacesSecretsGetResponse200Type", "RepoCodespacesSecretType", ), - ".group_0997": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), - ".group_0998": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), - ".group_0999": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), - ".group_1000": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), - ".group_1001": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), - ".group_1002": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), - ".group_1003": ( + ".group_1016": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), + ".group_1017": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), + ".group_1018": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), + ".group_1019": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), + ".group_1020": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), + ".group_1021": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), + ".group_1022": ( "ReposOwnerRepoContentsPathPutBodyType", "ReposOwnerRepoContentsPathPutBodyPropCommitterType", "ReposOwnerRepoContentsPathPutBodyPropAuthorType", ), - ".group_1004": ( + ".group_1023": ( "ReposOwnerRepoContentsPathDeleteBodyType", "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", ), - ".group_1005": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), - ".group_1006": ( + ".group_1024": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), + ".group_1025": ( "ReposOwnerRepoDependabotSecretsGetResponse200Type", "DependabotSecretType", ), - ".group_1007": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), - ".group_1008": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), - ".group_1009": ( + ".group_1026": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), + ".group_1027": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), + ".group_1028": ( "ReposOwnerRepoDeploymentsPostBodyType", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", ), - ".group_1010": ("ReposOwnerRepoDeploymentsPostResponse202Type",), - ".group_1011": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), - ".group_1012": ( + ".group_1029": ("ReposOwnerRepoDeploymentsPostResponse202Type",), + ".group_1030": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), + ".group_1031": ( "ReposOwnerRepoDispatchesPostBodyType", "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", ), - ".group_1013": ( + ".group_1032": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", ), - ".group_1014": ( + ".group_1033": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", "DeploymentBranchPolicyType", ), - ".group_1015": ( + ".group_1034": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", ), - ".group_1016": ( + ".group_1035": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", ), - ".group_1017": ( + ".group_1036": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type", ), - ".group_1018": ( + ".group_1037": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType", ), - ".group_1019": ( + ".group_1038": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type", ), - ".group_1020": ( + ".group_1039": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType", ), - ".group_1021": ( + ".group_1040": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType", ), - ".group_1022": ("ReposOwnerRepoForksPostBodyType",), - ".group_1023": ("ReposOwnerRepoGitBlobsPostBodyType",), - ".group_1024": ( + ".group_1041": ("ReposOwnerRepoForksPostBodyType",), + ".group_1042": ("ReposOwnerRepoGitBlobsPostBodyType",), + ".group_1043": ( "ReposOwnerRepoGitCommitsPostBodyType", "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", ), - ".group_1025": ("ReposOwnerRepoGitRefsPostBodyType",), - ".group_1026": ("ReposOwnerRepoGitRefsRefPatchBodyType",), - ".group_1027": ( + ".group_1044": ("ReposOwnerRepoGitRefsPostBodyType",), + ".group_1045": ("ReposOwnerRepoGitRefsRefPatchBodyType",), + ".group_1046": ( "ReposOwnerRepoGitTagsPostBodyType", "ReposOwnerRepoGitTagsPostBodyPropTaggerType", ), - ".group_1028": ( + ".group_1047": ( "ReposOwnerRepoGitTreesPostBodyType", "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", ), - ".group_1029": ( + ".group_1048": ( "ReposOwnerRepoHooksPostBodyType", "ReposOwnerRepoHooksPostBodyPropConfigType", ), - ".group_1030": ("ReposOwnerRepoHooksHookIdPatchBodyType",), - ".group_1031": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), - ".group_1032": ("ReposOwnerRepoImportPutBodyType",), - ".group_1033": ("ReposOwnerRepoImportPatchBodyType",), - ".group_1034": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), - ".group_1035": ("ReposOwnerRepoImportLfsPatchBodyType",), - ".group_1036": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), - ".group_1037": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), - ".group_1038": ( + ".group_1049": ("ReposOwnerRepoHooksHookIdPatchBodyType",), + ".group_1050": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), + ".group_1051": ("ReposOwnerRepoImportPutBodyType",), + ".group_1052": ("ReposOwnerRepoImportPatchBodyType",), + ".group_1053": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), + ".group_1054": ("ReposOwnerRepoImportLfsPatchBodyType",), + ".group_1055": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), + ".group_1056": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), + ".group_1057": ( "ReposOwnerRepoIssuesPostBodyType", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", ), - ".group_1039": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), - ".group_1040": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), - ".group_1041": ( + ".group_1058": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), + ".group_1059": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), + ".group_1060": ( "ReposOwnerRepoIssuesIssueNumberPatchBodyType", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", ), - ".group_1042": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), - ".group_1043": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), - ".group_1044": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), - ".group_1045": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), - ".group_1046": ( + ".group_1061": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), + ".group_1062": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), + ".group_1063": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), + ".group_1064": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), + ".group_1065": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", ), - ".group_1047": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), - ".group_1048": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), - ".group_1049": ( + ".group_1066": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), + ".group_1067": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), + ".group_1068": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", ), - ".group_1050": ( + ".group_1069": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType", ), - ".group_1051": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), - ".group_1052": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), - ".group_1053": ("ReposOwnerRepoKeysPostBodyType",), - ".group_1054": ("ReposOwnerRepoLabelsPostBodyType",), - ".group_1055": ("ReposOwnerRepoLabelsNamePatchBodyType",), - ".group_1056": ("ReposOwnerRepoMergeUpstreamPostBodyType",), - ".group_1057": ("ReposOwnerRepoMergesPostBodyType",), - ".group_1058": ("ReposOwnerRepoMilestonesPostBodyType",), - ".group_1059": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), - ".group_1060": ("ReposOwnerRepoNotificationsPutBodyType",), - ".group_1061": ("ReposOwnerRepoNotificationsPutResponse202Type",), - ".group_1062": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), - ".group_1063": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), - ".group_1064": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), - ".group_1065": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), - ".group_1066": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), - ".group_1067": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), - ".group_1068": ("ReposOwnerRepoPagesPostBodyPropSourceType",), - ".group_1069": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), - ".group_1070": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), - ".group_1071": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), - ".group_1072": ( + ".group_1070": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), + ".group_1071": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), + ".group_1072": ("ReposOwnerRepoKeysPostBodyType",), + ".group_1073": ("ReposOwnerRepoLabelsPostBodyType",), + ".group_1074": ("ReposOwnerRepoLabelsNamePatchBodyType",), + ".group_1075": ("ReposOwnerRepoMergeUpstreamPostBodyType",), + ".group_1076": ("ReposOwnerRepoMergesPostBodyType",), + ".group_1077": ("ReposOwnerRepoMilestonesPostBodyType",), + ".group_1078": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), + ".group_1079": ("ReposOwnerRepoNotificationsPutBodyType",), + ".group_1080": ("ReposOwnerRepoNotificationsPutResponse202Type",), + ".group_1081": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), + ".group_1082": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), + ".group_1083": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), + ".group_1084": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), + ".group_1085": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), + ".group_1086": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), + ".group_1087": ("ReposOwnerRepoPagesPostBodyPropSourceType",), + ".group_1088": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), + ".group_1089": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), + ".group_1090": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), + ".group_1091": ( "ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type", ), - ".group_1073": ("ReposOwnerRepoProjectsPostBodyType",), - ".group_1074": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), - ".group_1075": ("ReposOwnerRepoPullsPostBodyType",), - ".group_1076": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), - ".group_1077": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), - ".group_1078": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), - ".group_1079": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), - ".group_1080": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), - ".group_1081": ( + ".group_1092": ("ReposOwnerRepoProjectsPostBodyType",), + ".group_1093": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), + ".group_1094": ("ReposOwnerRepoPullsPostBodyType",), + ".group_1095": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), + ".group_1096": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), + ".group_1097": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), + ".group_1098": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), + ".group_1099": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), + ".group_1100": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType", ), - ".group_1082": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), - ".group_1083": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), - ".group_1084": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), - ".group_1085": ( + ".group_1101": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), + ".group_1102": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), + ".group_1103": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), + ".group_1104": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type", ), - ".group_1086": ( + ".group_1105": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type", ), - ".group_1087": ( + ".group_1106": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType", ), - ".group_1088": ( + ".group_1107": ( "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", ), - ".group_1089": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), - ".group_1090": ( + ".group_1108": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), + ".group_1109": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType", ), - ".group_1091": ( + ".group_1110": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType", ), - ".group_1092": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), - ".group_1093": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), - ".group_1094": ("ReposOwnerRepoReleasesPostBodyType",), - ".group_1095": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), - ".group_1096": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), - ".group_1097": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), - ".group_1098": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), - ".group_1099": ("ReposOwnerRepoRulesetsPostBodyType",), - ".group_1100": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), - ".group_1101": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), - ".group_1102": ("ReposOwnerRepoStatusesShaPostBodyType",), - ".group_1103": ("ReposOwnerRepoSubscriptionPutBodyType",), - ".group_1104": ("ReposOwnerRepoTagsProtectionPostBodyType",), - ".group_1105": ("ReposOwnerRepoTopicsPutBodyType",), - ".group_1106": ("ReposOwnerRepoTransferPostBodyType",), - ".group_1107": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), - ".group_1108": ( + ".group_1111": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), + ".group_1112": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), + ".group_1113": ("ReposOwnerRepoReleasesPostBodyType",), + ".group_1114": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), + ".group_1115": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), + ".group_1116": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), + ".group_1117": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), + ".group_1118": ("ReposOwnerRepoRulesetsPostBodyType",), + ".group_1119": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), + ".group_1120": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), + ".group_1121": ("ReposOwnerRepoStatusesShaPostBodyType",), + ".group_1122": ("ReposOwnerRepoSubscriptionPutBodyType",), + ".group_1123": ("ReposOwnerRepoTagsProtectionPostBodyType",), + ".group_1124": ("ReposOwnerRepoTopicsPutBodyType",), + ".group_1125": ("ReposOwnerRepoTransferPostBodyType",), + ".group_1126": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), + ".group_1127": ( "ScimV2OrganizationsOrgUsersPostBodyType", "ScimV2OrganizationsOrgUsersPostBodyPropNameType", "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType", ), - ".group_1109": ( + ".group_1128": ( "ScimV2OrganizationsOrgUsersScimUserIdPutBodyType", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType", "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType", ), - ".group_1110": ( + ".group_1129": ( "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type", "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType", ), - ".group_1111": ("TeamsTeamIdPatchBodyType",), - ".group_1112": ("TeamsTeamIdDiscussionsPostBodyType",), - ".group_1113": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), - ".group_1114": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), - ".group_1115": ( + ".group_1130": ("TeamsTeamIdPatchBodyType",), + ".group_1131": ("TeamsTeamIdDiscussionsPostBodyType",), + ".group_1132": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), + ".group_1133": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), + ".group_1134": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_1116": ( + ".group_1135": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_1117": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), - ".group_1118": ("TeamsTeamIdMembershipsUsernamePutBodyType",), - ".group_1119": ("TeamsTeamIdProjectsProjectIdPutBodyType",), - ".group_1120": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), - ".group_1121": ("TeamsTeamIdReposOwnerRepoPutBodyType",), - ".group_1122": ( + ".group_1136": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), + ".group_1137": ("TeamsTeamIdMembershipsUsernamePutBodyType",), + ".group_1138": ("TeamsTeamIdProjectsProjectIdPutBodyType",), + ".group_1139": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), + ".group_1140": ("TeamsTeamIdReposOwnerRepoPutBodyType",), + ".group_1141": ( "TeamsTeamIdTeamSyncGroupMappingsPatchBodyType", "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", ), - ".group_1123": ("UserPatchBodyType",), - ".group_1124": ("UserCodespacesGetResponse200Type",), - ".group_1125": ("UserCodespacesPostBodyOneof0Type",), - ".group_1126": ( + ".group_1142": ("UserPatchBodyType",), + ".group_1143": ("UserCodespacesGetResponse200Type",), + ".group_1144": ("UserCodespacesPostBodyOneof0Type",), + ".group_1145": ( "UserCodespacesPostBodyOneof1Type", "UserCodespacesPostBodyOneof1PropPullRequestType", ), - ".group_1127": ( + ".group_1146": ( "UserCodespacesSecretsGetResponse200Type", "CodespacesSecretType", ), - ".group_1128": ("UserCodespacesSecretsSecretNamePutBodyType",), - ".group_1129": ( + ".group_1147": ("UserCodespacesSecretsSecretNamePutBodyType",), + ".group_1148": ( "UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_1130": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_1131": ("UserCodespacesCodespaceNamePatchBodyType",), - ".group_1132": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), - ".group_1133": ("UserCodespacesCodespaceNamePublishPostBodyType",), - ".group_1134": ("UserEmailVisibilityPatchBodyType",), - ".group_1135": ("UserEmailsPostBodyOneof0Type",), - ".group_1136": ("UserEmailsDeleteBodyOneof0Type",), - ".group_1137": ("UserGpgKeysPostBodyType",), - ".group_1138": ("UserInstallationsGetResponse200Type",), - ".group_1139": ( + ".group_1149": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_1150": ("UserCodespacesCodespaceNamePatchBodyType",), + ".group_1151": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), + ".group_1152": ("UserCodespacesCodespaceNamePublishPostBodyType",), + ".group_1153": ("UserEmailVisibilityPatchBodyType",), + ".group_1154": ("UserEmailsPostBodyOneof0Type",), + ".group_1155": ("UserEmailsDeleteBodyOneof0Type",), + ".group_1156": ("UserGpgKeysPostBodyType",), + ".group_1157": ("UserInstallationsGetResponse200Type",), + ".group_1158": ( "UserInstallationsInstallationIdRepositoriesGetResponse200Type", ), - ".group_1140": ("UserInteractionLimitsGetResponse200Anyof1Type",), - ".group_1141": ("UserKeysPostBodyType",), - ".group_1142": ("UserMembershipsOrgsOrgPatchBodyType",), - ".group_1143": ("UserMigrationsPostBodyType",), - ".group_1144": ("UserProjectsPostBodyType",), - ".group_1145": ("UserReposPostBodyType",), - ".group_1146": ("UserSocialAccountsPostBodyType",), - ".group_1147": ("UserSocialAccountsDeleteBodyType",), - ".group_1148": ("UserSshSigningKeysPostBodyType",), + ".group_1159": ("UserInteractionLimitsGetResponse200Anyof1Type",), + ".group_1160": ("UserKeysPostBodyType",), + ".group_1161": ("UserMembershipsOrgsOrgPatchBodyType",), + ".group_1162": ("UserMigrationsPostBodyType",), + ".group_1163": ("UserProjectsPostBodyType",), + ".group_1164": ("UserReposPostBodyType",), + ".group_1165": ("UserSocialAccountsPostBodyType",), + ".group_1166": ("UserSocialAccountsDeleteBodyType",), + ".group_1167": ("UserSshSigningKeysPostBodyType",), + ".group_1168": ( + "UsersUsernameAttestationsSubjectDigestGetResponse200Type", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "SigstoreBundle0Type", + "SigstoreBundle0PropDsseEnvelopeType", + "SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType", + "SigstoreBundle0PropVerificationMaterialType", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType", + ), } diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0047.py b/githubkit/versions/ghec_v2022_11_28/types/group_0047.py index 2a03f60f5..ff50a4403 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0047.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0047.py @@ -9,45 +9,29 @@ from __future__ import annotations -from datetime import date -from typing import List, Union +from typing import Union from typing_extensions import TypedDict, NotRequired -class CopilotUsageMetricsType(TypedDict): - """Copilot Usage Metrics +class TeamSimpleType(TypedDict): + """Team Simple - Summary of Copilot usage. + Groups of organization members that gives permissions on specified repositories. """ - day: date - total_suggestions_count: NotRequired[int] - total_acceptances_count: NotRequired[int] - total_lines_suggested: NotRequired[int] - total_lines_accepted: NotRequired[int] - total_active_users: NotRequired[int] - total_chat_acceptances: NotRequired[int] - total_chat_turns: NotRequired[int] - total_active_chat_users: NotRequired[int] - breakdown: Union[List[CopilotUsageMetricsPropBreakdownItemsType], None] - - -class CopilotUsageMetricsPropBreakdownItemsType(TypedDict): - """CopilotUsageMetricsPropBreakdownItems - - Breakdown of Copilot usage by editor for this language - """ - - language: NotRequired[str] - editor: NotRequired[str] - suggestions_count: NotRequired[int] - acceptances_count: NotRequired[int] - lines_suggested: NotRequired[int] - lines_accepted: NotRequired[int] - active_users: NotRequired[int] - - -__all__ = ( - "CopilotUsageMetricsType", - "CopilotUsageMetricsPropBreakdownItemsType", -) + 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/ghec_v2022_11_28/types/group_0048.py b/githubkit/versions/ghec_v2022_11_28/types/group_0048.py index 9ef70e81a..7c94e91f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0048.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0048.py @@ -9,17 +9,45 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired +from .group_0047 import TeamSimpleType -class DependabotAlertPackageType(TypedDict): - """DependabotAlertPackage - Details for the vulnerable package. +class TeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. """ - ecosystem: str + id: int + node_id: str name: str - - -__all__ = ("DependabotAlertPackageType",) + 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__ = ( + "TeamType", + "TeamPropPermissionsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0049.py b/githubkit/versions/ghec_v2022_11_28/types/group_0049.py index cebc9460b..bb3eaf9b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0049.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0049.py @@ -9,36 +9,100 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import Union +from datetime import date, datetime +from typing_extensions import TypedDict, NotRequired -from .group_0048 import DependabotAlertPackageType +from .group_0048 import TeamType +from .group_0001 import SimpleUserType +from .group_0029 import OrganizationSimpleType -class DependabotAlertSecurityVulnerabilityType(TypedDict): - """DependabotAlertSecurityVulnerability +class CopilotSeatDetailsType(TypedDict): + """Copilot Business Seat Detail - Details pertaining to one vulnerable version range for the advisory. + Information about a Copilot Business seat assignment for a user, team, or + organization. """ - package: DependabotAlertPackageType - severity: Literal["low", "medium", "high", "critical"] - vulnerable_version_range: str - first_patched_version: Union[ - DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType, None - ] + assignee: Union[SimpleUserType, TeamType, OrganizationType] + organization: NotRequired[Union[OrganizationSimpleType, None]] + 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] -class DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType(TypedDict): - """DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion +class EnterpriseTeamType(TypedDict): + """Enterprise Team - Details pertaining to the package version that patches this vulnerability. + Group of enterprise owners and/or members """ - identifier: str + id: int + name: str + slug: str + url: str + sync_to_organizations: str + group_id: NotRequired[Union[int, None]] + html_url: str + members_url: str + created_at: datetime + updated_at: datetime + + +class OrganizationType(TypedDict): + """Organization + + GitHub account for managing multiple users, teams, and repositories + """ + + login: str + url: str + id: int + node_id: 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] + blog: NotRequired[str] + html_url: str + name: NotRequired[str] + company: NotRequired[str] + location: NotRequired[str] + email: NotRequired[str] + has_organization_projects: bool + has_repository_projects: bool + is_verified: NotRequired[bool] + public_repos: int + public_gists: int + followers: int + following: int + type: str + created_at: datetime + updated_at: datetime + plan: NotRequired[OrganizationPropPlanType] + + +class OrganizationPropPlanType(TypedDict): + """OrganizationPropPlan""" + + name: NotRequired[str] + space: NotRequired[int] + private_repos: NotRequired[int] + filled_seats: NotRequired[int] + seats: NotRequired[int] __all__ = ( - "DependabotAlertSecurityVulnerabilityType", - "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType", + "CopilotSeatDetailsType", + "EnterpriseTeamType", + "OrganizationType", + "OrganizationPropPlanType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0050.py b/githubkit/versions/ghec_v2022_11_28/types/group_0050.py index 0ce6d1897..2a03f60f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0050.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0050.py @@ -9,77 +9,45 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict +from datetime import date +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -from .group_0049 import DependabotAlertSecurityVulnerabilityType +class CopilotUsageMetricsType(TypedDict): + """Copilot Usage Metrics -class DependabotAlertSecurityAdvisoryType(TypedDict): - """DependabotAlertSecurityAdvisory - - Details for the GitHub Security Advisory. - """ - - ghsa_id: str - cve_id: Union[str, None] - summary: str - description: str - vulnerabilities: List[DependabotAlertSecurityVulnerabilityType] - severity: Literal["low", "medium", "high", "critical"] - cvss: DependabotAlertSecurityAdvisoryPropCvssType - cwes: List[DependabotAlertSecurityAdvisoryPropCwesItemsType] - identifiers: List[DependabotAlertSecurityAdvisoryPropIdentifiersItemsType] - references: List[DependabotAlertSecurityAdvisoryPropReferencesItemsType] - published_at: datetime - updated_at: datetime - withdrawn_at: Union[datetime, None] - - -class DependabotAlertSecurityAdvisoryPropCvssType(TypedDict): - """DependabotAlertSecurityAdvisoryPropCvss - - Details for the advisory pertaining to the Common Vulnerability Scoring System. - """ - - score: float - vector_string: Union[str, None] - - -class DependabotAlertSecurityAdvisoryPropCwesItemsType(TypedDict): - """DependabotAlertSecurityAdvisoryPropCwesItems - - A CWE weakness assigned to the advisory. - """ - - cwe_id: str - name: str - - -class DependabotAlertSecurityAdvisoryPropIdentifiersItemsType(TypedDict): - """DependabotAlertSecurityAdvisoryPropIdentifiersItems - - An advisory identifier. + Summary of Copilot usage. """ - type: Literal["CVE", "GHSA"] - value: str + day: date + total_suggestions_count: NotRequired[int] + total_acceptances_count: NotRequired[int] + total_lines_suggested: NotRequired[int] + total_lines_accepted: NotRequired[int] + total_active_users: NotRequired[int] + total_chat_acceptances: NotRequired[int] + total_chat_turns: NotRequired[int] + total_active_chat_users: NotRequired[int] + breakdown: Union[List[CopilotUsageMetricsPropBreakdownItemsType], None] -class DependabotAlertSecurityAdvisoryPropReferencesItemsType(TypedDict): - """DependabotAlertSecurityAdvisoryPropReferencesItems +class CopilotUsageMetricsPropBreakdownItemsType(TypedDict): + """CopilotUsageMetricsPropBreakdownItems - A link to additional advisory information. + Breakdown of Copilot usage by editor for this language """ - url: str + language: NotRequired[str] + editor: NotRequired[str] + suggestions_count: NotRequired[int] + acceptances_count: NotRequired[int] + lines_suggested: NotRequired[int] + lines_accepted: NotRequired[int] + active_users: NotRequired[int] __all__ = ( - "DependabotAlertSecurityAdvisoryType", - "DependabotAlertSecurityAdvisoryPropCvssType", - "DependabotAlertSecurityAdvisoryPropCwesItemsType", - "DependabotAlertSecurityAdvisoryPropIdentifiersItemsType", - "DependabotAlertSecurityAdvisoryPropReferencesItemsType", + "CopilotUsageMetricsType", + "CopilotUsageMetricsPropBreakdownItemsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0051.py b/githubkit/versions/ghec_v2022_11_28/types/group_0051.py index 856431de6..9ef70e81a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0051.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0051.py @@ -9,44 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType -from .group_0043 import SimpleRepositoryType -from .group_0050 import DependabotAlertSecurityAdvisoryType -from .group_0049 import DependabotAlertSecurityVulnerabilityType -from .group_0052 import DependabotAlertWithRepositoryPropDependencyType +class DependabotAlertPackageType(TypedDict): + """DependabotAlertPackage -class DependabotAlertWithRepositoryType(TypedDict): - """DependabotAlertWithRepository - - A Dependabot alert. + Details for the vulnerable package. """ - number: int - state: Literal["auto_dismissed", "dismissed", "fixed", "open"] - dependency: DependabotAlertWithRepositoryPropDependencyType - security_advisory: DependabotAlertSecurityAdvisoryType - security_vulnerability: DependabotAlertSecurityVulnerabilityType - url: str - html_url: str - created_at: datetime - updated_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[None, SimpleUserType] - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], - ] - dismissed_comment: Union[str, None] - fixed_at: Union[datetime, None] - auto_dismissed_at: NotRequired[Union[datetime, None]] - repository: SimpleRepositoryType - - -__all__ = ("DependabotAlertWithRepositoryType",) + ecosystem: str + name: str + + +__all__ = ("DependabotAlertPackageType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0052.py b/githubkit/versions/ghec_v2022_11_28/types/group_0052.py index 91e2aca55..841c344a8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0052.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0052.py @@ -10,20 +10,35 @@ from __future__ import annotations from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0048 import DependabotAlertPackageType +from .group_0051 import DependabotAlertPackageType -class DependabotAlertWithRepositoryPropDependencyType(TypedDict): - """DependabotAlertWithRepositoryPropDependency +class DependabotAlertSecurityVulnerabilityType(TypedDict): + """DependabotAlertSecurityVulnerability - Details for the vulnerable dependency. + Details pertaining to one vulnerable version range for the advisory. """ - package: NotRequired[DependabotAlertPackageType] - manifest_path: NotRequired[str] - scope: NotRequired[Union[None, Literal["development", "runtime"]]] + package: DependabotAlertPackageType + severity: Literal["low", "medium", "high", "critical"] + vulnerable_version_range: str + first_patched_version: Union[ + DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType, None + ] -__all__ = ("DependabotAlertWithRepositoryPropDependencyType",) +class DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType(TypedDict): + """DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion + + Details pertaining to the package version that patches this vulnerability. + """ + + identifier: str + + +__all__ = ( + "DependabotAlertSecurityVulnerabilityType", + "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0053.py b/githubkit/versions/ghec_v2022_11_28/types/group_0053.py index b31cc2d0f..74e742f1c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0053.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0053.py @@ -9,39 +9,77 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict +from .group_0052 import DependabotAlertSecurityVulnerabilityType -class GetLicenseSyncStatusType(TypedDict): - """License Sync Status - Information about the status of a license sync job for an enterprise. +class DependabotAlertSecurityAdvisoryType(TypedDict): + """DependabotAlertSecurityAdvisory + + Details for the GitHub Security Advisory. + """ + + ghsa_id: str + cve_id: Union[str, None] + summary: str + description: str + vulnerabilities: List[DependabotAlertSecurityVulnerabilityType] + severity: Literal["low", "medium", "high", "critical"] + cvss: DependabotAlertSecurityAdvisoryPropCvssType + cwes: List[DependabotAlertSecurityAdvisoryPropCwesItemsType] + identifiers: List[DependabotAlertSecurityAdvisoryPropIdentifiersItemsType] + references: List[DependabotAlertSecurityAdvisoryPropReferencesItemsType] + published_at: datetime + updated_at: datetime + withdrawn_at: Union[datetime, None] + + +class DependabotAlertSecurityAdvisoryPropCvssType(TypedDict): + """DependabotAlertSecurityAdvisoryPropCvss + + Details for the advisory pertaining to the Common Vulnerability Scoring System. + """ + + score: float + vector_string: Union[str, None] + + +class DependabotAlertSecurityAdvisoryPropCwesItemsType(TypedDict): + """DependabotAlertSecurityAdvisoryPropCwesItems + + A CWE weakness assigned to the advisory. """ - server_instances: NotRequired[ - List[GetLicenseSyncStatusPropServerInstancesItemsType] - ] + cwe_id: str + name: str + +class DependabotAlertSecurityAdvisoryPropIdentifiersItemsType(TypedDict): + """DependabotAlertSecurityAdvisoryPropIdentifiersItems -class GetLicenseSyncStatusPropServerInstancesItemsType(TypedDict): - """GetLicenseSyncStatusPropServerInstancesItems""" + An advisory identifier. + """ + + type: Literal["CVE", "GHSA"] + value: str - server_id: NotRequired[str] - hostname: NotRequired[str] - last_sync: NotRequired[GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType] +class DependabotAlertSecurityAdvisoryPropReferencesItemsType(TypedDict): + """DependabotAlertSecurityAdvisoryPropReferencesItems -class GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType(TypedDict): - """GetLicenseSyncStatusPropServerInstancesItemsPropLastSync""" + A link to additional advisory information. + """ - date: NotRequired[str] - status: NotRequired[str] - error: NotRequired[str] + url: str __all__ = ( - "GetLicenseSyncStatusType", - "GetLicenseSyncStatusPropServerInstancesItemsType", - "GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType", + "DependabotAlertSecurityAdvisoryType", + "DependabotAlertSecurityAdvisoryPropCvssType", + "DependabotAlertSecurityAdvisoryPropCwesItemsType", + "DependabotAlertSecurityAdvisoryPropIdentifiersItemsType", + "DependabotAlertSecurityAdvisoryPropReferencesItemsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0054.py b/githubkit/versions/ghec_v2022_11_28/types/group_0054.py index 114dcb3ca..b1596b1c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0054.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0054.py @@ -15,32 +15,38 @@ from .group_0001 import SimpleUserType from .group_0043 import SimpleRepositoryType +from .group_0053 import DependabotAlertSecurityAdvisoryType +from .group_0052 import DependabotAlertSecurityVulnerabilityType +from .group_0055 import DependabotAlertWithRepositoryPropDependencyType + + +class DependabotAlertWithRepositoryType(TypedDict): + """DependabotAlertWithRepository + + A Dependabot alert. + """ + + number: int + state: Literal["auto_dismissed", "dismissed", "fixed", "open"] + dependency: DependabotAlertWithRepositoryPropDependencyType + security_advisory: DependabotAlertSecurityAdvisoryType + security_vulnerability: DependabotAlertSecurityVulnerabilityType + url: str + html_url: str + created_at: datetime + updated_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[None, SimpleUserType] + dismissed_reason: Union[ + None, + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ], + ] + dismissed_comment: Union[str, None] + fixed_at: Union[datetime, None] + auto_dismissed_at: NotRequired[Union[datetime, None]] + repository: SimpleRepositoryType -class OrganizationSecretScanningAlertType(TypedDict): - """OrganizationSecretScanningAlert""" - - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - state: NotRequired[Literal["open", "resolved"]] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - secret: NotRequired[str] - repository: NotRequired[SimpleRepositoryType] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - resolution_comment: NotRequired[Union[str, None]] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - - -__all__ = ("OrganizationSecretScanningAlertType",) +__all__ = ("DependabotAlertWithRepositoryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0055.py b/githubkit/versions/ghec_v2022_11_28/types/group_0055.py index 94e387ee3..0ba2ed953 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0055.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0055.py @@ -9,39 +9,21 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0051 import DependabotAlertPackageType -class ActionsBillingUsageType(TypedDict): - """ActionsBillingUsage""" - total_minutes_used: int - total_paid_minutes_used: int - included_minutes: int - minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdownType +class DependabotAlertWithRepositoryPropDependencyType(TypedDict): + """DependabotAlertWithRepositoryPropDependency + Details for the vulnerable dependency. + """ -class ActionsBillingUsagePropMinutesUsedBreakdownType(TypedDict): - """ActionsBillingUsagePropMinutesUsedBreakdown""" + package: NotRequired[DependabotAlertPackageType] + manifest_path: NotRequired[str] + scope: NotRequired[Union[None, Literal["development", "runtime"]]] - 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__ = ( - "ActionsBillingUsageType", - "ActionsBillingUsagePropMinutesUsedBreakdownType", -) +__all__ = ("DependabotAlertWithRepositoryPropDependencyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0056.py b/githubkit/versions/ghec_v2022_11_28/types/group_0056.py index 225b3016f..b31cc2d0f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0056.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0056.py @@ -13,36 +13,35 @@ from typing_extensions import TypedDict, NotRequired -class AdvancedSecurityActiveCommittersType(TypedDict): - """AdvancedSecurityActiveCommitters""" +class GetLicenseSyncStatusType(TypedDict): + """License Sync Status - 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] + Information about the status of a license sync job for an enterprise. + """ + server_instances: NotRequired[ + List[GetLicenseSyncStatusPropServerInstancesItemsType] + ] -class AdvancedSecurityActiveCommittersRepositoryType(TypedDict): - """AdvancedSecurityActiveCommittersRepository""" - name: str - advanced_security_committers: int - advanced_security_committers_breakdown: List[ - AdvancedSecurityActiveCommittersUserType - ] +class GetLicenseSyncStatusPropServerInstancesItemsType(TypedDict): + """GetLicenseSyncStatusPropServerInstancesItems""" + + server_id: NotRequired[str] + hostname: NotRequired[str] + last_sync: NotRequired[GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType] -class AdvancedSecurityActiveCommittersUserType(TypedDict): - """AdvancedSecurityActiveCommittersUser""" +class GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType(TypedDict): + """GetLicenseSyncStatusPropServerInstancesItemsPropLastSync""" - user_login: str - last_pushed_date: str - last_pushed_email: str + date: NotRequired[str] + status: NotRequired[str] + error: NotRequired[str] __all__ = ( - "AdvancedSecurityActiveCommittersType", - "AdvancedSecurityActiveCommittersRepositoryType", - "AdvancedSecurityActiveCommittersUserType", + "GetLicenseSyncStatusType", + "GetLicenseSyncStatusPropServerInstancesItemsType", + "GetLicenseSyncStatusPropServerInstancesItemsPropLastSyncType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0057.py b/githubkit/versions/ghec_v2022_11_28/types/group_0057.py index 056bf739c..114dcb3ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0057.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0057.py @@ -9,33 +9,38 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired - -class GetAllCostCentersType(TypedDict): - """GetAllCostCenters""" - - cost_centers: NotRequired[List[GetAllCostCentersPropCostCentersItemsType]] - - -class GetAllCostCentersPropCostCentersItemsType(TypedDict): - """GetAllCostCentersPropCostCentersItems""" - - id: str - name: str - resources: List[GetAllCostCentersPropCostCentersItemsPropResourcesItemsType] - - -class GetAllCostCentersPropCostCentersItemsPropResourcesItemsType(TypedDict): - """GetAllCostCentersPropCostCentersItemsPropResourcesItems""" - - type: str - name: str - - -__all__ = ( - "GetAllCostCentersType", - "GetAllCostCentersPropCostCentersItemsType", - "GetAllCostCentersPropCostCentersItemsPropResourcesItemsType", -) +from .group_0001 import SimpleUserType +from .group_0043 import SimpleRepositoryType + + +class OrganizationSecretScanningAlertType(TypedDict): + """OrganizationSecretScanningAlert""" + + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + state: NotRequired[Literal["open", "resolved"]] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + secret: NotRequired[str] + repository: NotRequired[SimpleRepositoryType] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + resolution_comment: NotRequired[Union[str, None]] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + + +__all__ = ("OrganizationSecretScanningAlertType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0058.py b/githubkit/versions/ghec_v2022_11_28/types/group_0058.py index cac22c41a..94e387ee3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0058.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0058.py @@ -9,15 +9,39 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class PackagesBillingUsageType(TypedDict): - """PackagesBillingUsage""" - - total_gigabytes_bandwidth_used: int - total_paid_gigabytes_bandwidth_used: int - included_gigabytes_bandwidth: int - - -__all__ = ("PackagesBillingUsageType",) +from typing_extensions import TypedDict, NotRequired + + +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__ = ( + "ActionsBillingUsageType", + "ActionsBillingUsagePropMinutesUsedBreakdownType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0059.py b/githubkit/versions/ghec_v2022_11_28/types/group_0059.py index 15a19a09d..225b3016f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0059.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0059.py @@ -9,15 +9,40 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class CombinedBillingUsageType(TypedDict): - """CombinedBillingUsage""" +class AdvancedSecurityActiveCommittersType(TypedDict): + """AdvancedSecurityActiveCommitters""" - days_left_in_billing_cycle: int - estimated_paid_storage_for_month: int - estimated_storage_for_month: int + total_advanced_security_committers: NotRequired[int] + total_count: NotRequired[int] + maximum_advanced_security_committers: NotRequired[int] + purchased_advanced_security_committers: NotRequired[int] + repositories: List[AdvancedSecurityActiveCommittersRepositoryType] -__all__ = ("CombinedBillingUsageType",) +class AdvancedSecurityActiveCommittersRepositoryType(TypedDict): + """AdvancedSecurityActiveCommittersRepository""" + + name: str + advanced_security_committers: int + advanced_security_committers_breakdown: List[ + AdvancedSecurityActiveCommittersUserType + ] + + +class AdvancedSecurityActiveCommittersUserType(TypedDict): + """AdvancedSecurityActiveCommittersUser""" + + user_login: str + last_pushed_date: str + last_pushed_email: str + + +__all__ = ( + "AdvancedSecurityActiveCommittersType", + "AdvancedSecurityActiveCommittersRepositoryType", + "AdvancedSecurityActiveCommittersUserType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0060.py b/githubkit/versions/ghec_v2022_11_28/types/group_0060.py index ba35b7b78..056bf739c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0060.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0060.py @@ -13,29 +13,29 @@ from typing_extensions import TypedDict, NotRequired -class BillingUsageReportType(TypedDict): - """BillingUsageReport""" +class GetAllCostCentersType(TypedDict): + """GetAllCostCenters""" - usage_items: NotRequired[List[BillingUsageReportPropUsageItemsItemsType]] + cost_centers: NotRequired[List[GetAllCostCentersPropCostCentersItemsType]] -class BillingUsageReportPropUsageItemsItemsType(TypedDict): - """BillingUsageReportPropUsageItemsItems""" +class GetAllCostCentersPropCostCentersItemsType(TypedDict): + """GetAllCostCentersPropCostCentersItems""" - date: str - product: str - sku: str - quantity: int - unit_type: str - price_per_unit: float - gross_amount: float - discount_amount: float - net_amount: float - organization_name: str - repository_name: NotRequired[str] + id: str + name: str + resources: List[GetAllCostCentersPropCostCentersItemsPropResourcesItemsType] + + +class GetAllCostCentersPropCostCentersItemsPropResourcesItemsType(TypedDict): + """GetAllCostCentersPropCostCentersItemsPropResourcesItems""" + + type: str + name: str __all__ = ( - "BillingUsageReportType", - "BillingUsageReportPropUsageItemsItemsType", + "GetAllCostCentersType", + "GetAllCostCentersPropCostCentersItemsType", + "GetAllCostCentersPropCostCentersItemsPropResourcesItemsType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0061.py b/githubkit/versions/ghec_v2022_11_28/types/group_0061.py index b1b68d0be..cac22c41a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0061.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0061.py @@ -9,35 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal from typing_extensions import TypedDict -from .group_0001 import SimpleUserType +class PackagesBillingUsageType(TypedDict): + """PackagesBillingUsage""" -class MilestoneType(TypedDict): - """Milestone + total_gigabytes_bandwidth_used: int + total_paid_gigabytes_bandwidth_used: int + included_gigabytes_bandwidth: int - A collection of related issues and pull requests. - """ - url: str - html_url: str - labels_url: str - id: int - node_id: str - number: int - state: Literal["open", "closed"] - title: str - description: Union[str, None] - creator: Union[None, SimpleUserType] - open_issues: int - closed_issues: int - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - due_on: Union[datetime, None] - - -__all__ = ("MilestoneType",) +__all__ = ("PackagesBillingUsageType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0062.py b/githubkit/versions/ghec_v2022_11_28/types/group_0062.py index 8a6080a74..15a19a09d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0062.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0062.py @@ -12,19 +12,12 @@ 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",) +class CombinedBillingUsageType(TypedDict): + """CombinedBillingUsage""" + + days_left_in_billing_cycle: int + estimated_paid_storage_for_month: int + estimated_storage_for_month: int + + +__all__ = ("CombinedBillingUsageType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0063.py b/githubkit/versions/ghec_v2022_11_28/types/group_0063.py index 75f6969db..ba35b7b78 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0063.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0063.py @@ -9,95 +9,33 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0061 import MilestoneType -from .group_0001 import SimpleUserType -from .group_0017 import RepositoryType -from .group_0006 import IntegrationType -from .group_0062 import ReactionRollupType +class BillingUsageReportType(TypedDict): + """BillingUsageReport""" -class IssueType(TypedDict): - """Issue + usage_items: NotRequired[List[BillingUsageReportPropUsageItemsItemsType]] - Issues are a great way to keep track of tasks, enhancements, and bugs for your - projects. - """ - id: int - node_id: str - url: str - repository_url: str - labels_url: str - comments_url: str - events_url: str - html_url: str - number: int - state: str - state_reason: NotRequired[ - Union[None, Literal["completed", "reopened", "not_planned"]] - ] - title: str - body: NotRequired[Union[str, None]] - user: Union[None, SimpleUserType] - labels: List[Union[str, IssuePropLabelsItemsOneof1Type]] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[List[SimpleUserType], None]] - milestone: Union[None, MilestoneType] - locked: bool - active_lock_reason: NotRequired[Union[str, None]] - comments: int - pull_request: NotRequired[IssuePropPullRequestType] - closed_at: Union[datetime, None] - created_at: datetime - updated_at: datetime - draft: NotRequired[bool] - closed_by: NotRequired[Union[None, SimpleUserType]] - body_html: NotRequired[Union[str, None]] - body_text: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - repository: NotRequired[RepositoryType] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - reactions: NotRequired[ReactionRollupType] +class BillingUsageReportPropUsageItemsItemsType(TypedDict): + """BillingUsageReportPropUsageItemsItems""" - -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] + 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__ = ( - "IssueType", - "IssuePropLabelsItemsOneof1Type", - "IssuePropPullRequestType", + "BillingUsageReportType", + "BillingUsageReportPropUsageItemsItemsType", ) 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 c159a69b8..b1b68d0be 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0064.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0064.py @@ -11,42 +11,33 @@ from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType -from .group_0062 import ReactionRollupType -class IssueCommentType(TypedDict): - """Issue Comment +class MilestoneType(TypedDict): + """Milestone - Comments provide a way for people to collaborate on an issue. + A collection of related issues and pull requests. """ - 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] + 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 - 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",) + closed_at: Union[datetime, None] + due_on: Union[datetime, None] + + +__all__ = ("MilestoneType",) 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 8faa14f24..8a6080a74 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0065.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0065.py @@ -9,76 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0063 import IssueType -from .group_0064 import IssueCommentType +class ReactionRollupType(TypedDict): + """Reaction Rollup""" -class EventPropPayloadType(TypedDict): - """EventPropPayload""" - - action: NotRequired[str] - issue: NotRequired[IssueType] - comment: NotRequired[IssueCommentType] - pages: NotRequired[List[EventPropPayloadPropPagesItemsType]] - - -class EventPropPayloadPropPagesItemsType(TypedDict): - """EventPropPayloadPropPagesItems""" - - page_name: NotRequired[str] - title: NotRequired[str] - summary: NotRequired[Union[str, None]] - action: NotRequired[str] - sha: NotRequired[str] - html_url: NotRequired[str] - - -class EventType(TypedDict): - """Event - - Event - """ - - id: str - type: Union[str, None] - actor: ActorType - repo: EventPropRepoType - org: NotRequired[ActorType] - payload: EventPropPayloadType - public: bool - created_at: Union[datetime, None] - - -class ActorType(TypedDict): - """Actor - - Actor - """ - - id: int - login: str - display_login: NotRequired[str] - gravatar_id: Union[str, None] url: str - avatar_url: str - - -class EventPropRepoType(TypedDict): - """EventPropRepo""" - - id: int - name: str - url: str - - -__all__ = ( - "EventPropPayloadType", - "EventPropPayloadPropPagesItemsType", - "EventType", - "ActorType", - "EventPropRepoType", -) + 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_0066.py b/githubkit/versions/ghec_v2022_11_28/types/group_0066.py index 8a6dba029..20a4fc90e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0066.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0066.py @@ -9,56 +9,95 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0064 import MilestoneType +from .group_0001 import SimpleUserType +from .group_0017 import RepositoryType +from .group_0006 import IntegrationType +from .group_0065 import ReactionRollupType -class FeedType(TypedDict): - """Feed - Feed - """ +class IssueType(TypedDict): + """Issue - timeline_url: str - user_url: str - current_user_public_url: NotRequired[str] - current_user_url: NotRequired[str] - current_user_actor_url: NotRequired[str] - current_user_organization_url: NotRequired[str] - current_user_organization_urls: NotRequired[List[str]] - security_advisories_url: NotRequired[str] - repository_discussions_url: NotRequired[str] - repository_discussions_category_url: NotRequired[str] - links: FeedPropLinksType - - -class FeedPropLinksType(TypedDict): - """FeedPropLinks""" - - timeline: LinkWithTypeType - user: LinkWithTypeType - security_advisories: NotRequired[LinkWithTypeType] - current_user: NotRequired[LinkWithTypeType] - current_user_public: NotRequired[LinkWithTypeType] - current_user_actor: NotRequired[LinkWithTypeType] - current_user_organization: NotRequired[LinkWithTypeType] - current_user_organizations: NotRequired[List[LinkWithTypeType]] - repository_discussions: NotRequired[LinkWithTypeType] - repository_discussions_category: NotRequired[LinkWithTypeType] - - -class LinkWithTypeType(TypedDict): - """Link With Type - - Hypermedia Link with Type + Issues are a great way to keep track of tasks, enhancements, and bugs for your + projects. """ - href: str - type: str + id: int + node_id: str + url: str + repository_url: str + labels_url: str + comments_url: str + events_url: str + html_url: str + number: int + state: str + state_reason: NotRequired[ + Union[None, Literal["completed", "reopened", "not_planned"]] + ] + title: str + body: NotRequired[Union[str, None]] + user: Union[None, SimpleUserType] + labels: List[Union[str, IssuePropLabelsItemsOneof1Type]] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[List[SimpleUserType], None]] + milestone: Union[None, MilestoneType] + locked: bool + active_lock_reason: NotRequired[Union[str, None]] + comments: int + pull_request: NotRequired[IssuePropPullRequestType] + closed_at: Union[datetime, None] + created_at: datetime + updated_at: datetime + draft: NotRequired[bool] + closed_by: NotRequired[Union[None, SimpleUserType]] + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + repository: NotRequired[RepositoryType] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + reactions: NotRequired[ReactionRollupType] + + +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__ = ( - "FeedType", - "FeedPropLinksType", - "LinkWithTypeType", + "IssueType", + "IssuePropLabelsItemsOneof1Type", + "IssuePropPullRequestType", ) 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 82b875098..4d7abc514 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0067.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0067.py @@ -10,45 +10,43 @@ from __future__ import annotations from datetime import datetime -from typing import Any, List, Union +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType +from .group_0065 import ReactionRollupType -class BaseGistType(TypedDict): - """Base Gist +class IssueCommentType(TypedDict): + """Issue Comment - Base Gist + Comments provide a way for people to collaborate on an issue. """ - url: str - forks_url: str - commits_url: str - id: str + id: int node_id: str - git_pull_url: str - git_push_url: str + url: str + body: NotRequired[str] + body_text: NotRequired[str] + body_html: NotRequired[str] html_url: str - files: BaseGistPropFilesType - public: bool + user: Union[None, SimpleUserType] created_at: datetime updated_at: datetime - description: Union[str, None] - comments: int - user: Union[None, SimpleUserType] - comments_url: str - owner: NotRequired[SimpleUserType] - truncated: NotRequired[bool] - forks: NotRequired[List[Any]] - history: NotRequired[List[Any]] - - -class BaseGistPropFilesType(TypedDict): - """BaseGistPropFiles""" - - -__all__ = ( - "BaseGistType", - "BaseGistPropFilesType", -) + 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_0068.py b/githubkit/versions/ghec_v2022_11_28/types/group_0068.py index 41c7f4f76..436ef979d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0068.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0068.py @@ -10,68 +10,75 @@ from __future__ import annotations from datetime import datetime -from typing import Any, List, Union +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +from .group_0066 import IssueType +from .group_0067 import IssueCommentType -class GistHistoryType(TypedDict): - """Gist History +class EventPropPayloadType(TypedDict): + """EventPropPayload""" - Gist History - """ - - user: NotRequired[Union[None, SimpleUserType]] - version: NotRequired[str] - committed_at: NotRequired[datetime] - change_status: NotRequired[GistHistoryPropChangeStatusType] - url: NotRequired[str] + action: NotRequired[str] + issue: NotRequired[IssueType] + comment: NotRequired[IssueCommentType] + pages: NotRequired[List[EventPropPayloadPropPagesItemsType]] -class GistHistoryPropChangeStatusType(TypedDict): - """GistHistoryPropChangeStatus""" +class EventPropPayloadPropPagesItemsType(TypedDict): + """EventPropPayloadPropPagesItems""" - total: NotRequired[int] - additions: NotRequired[int] - deletions: NotRequired[int] + page_name: NotRequired[str] + title: NotRequired[str] + summary: NotRequired[Union[str, None]] + action: NotRequired[str] + sha: NotRequired[str] + html_url: NotRequired[str] -class GistSimplePropForkOfType(TypedDict): - """Gist +class EventType(TypedDict): + """Event - Gist + Event """ - url: str - forks_url: str - commits_url: str id: str - node_id: str - git_pull_url: str - git_push_url: str - html_url: str - files: GistSimplePropForkOfPropFilesType + type: Union[str, None] + actor: ActorType + repo: EventPropRepoType + org: NotRequired[ActorType] + payload: EventPropPayloadType public: bool - created_at: datetime - updated_at: datetime - description: Union[str, None] - comments: int - user: Union[None, SimpleUserType] - comments_url: str - owner: NotRequired[Union[None, SimpleUserType]] - truncated: NotRequired[bool] - forks: NotRequired[List[Any]] - history: NotRequired[List[Any]] + created_at: Union[datetime, None] -class GistSimplePropForkOfPropFilesType(TypedDict): - """GistSimplePropForkOfPropFiles""" +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__ = ( - "GistHistoryType", - "GistHistoryPropChangeStatusType", - "GistSimplePropForkOfType", - "GistSimplePropForkOfPropFilesType", + "EventPropPayloadType", + "EventPropPayloadPropPagesItemsType", + "EventType", + "ActorType", + "EventPropRepoType", ) 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 d99984a11..8a6dba029 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0069.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0069.py @@ -9,118 +9,56 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0068 import GistHistoryType, GistSimplePropForkOfType +class FeedType(TypedDict): + """Feed -class GistSimpleType(TypedDict): - """Gist Simple - - Gist Simple + Feed """ - forks: NotRequired[Union[List[GistSimplePropForksItemsType], None]] - history: NotRequired[Union[List[GistHistoryType], None]] - fork_of: NotRequired[Union[GistSimplePropForkOfType, None]] - url: NotRequired[str] - forks_url: NotRequired[str] - commits_url: NotRequired[str] - id: NotRequired[str] - node_id: NotRequired[str] - git_pull_url: NotRequired[str] - git_push_url: NotRequired[str] - html_url: NotRequired[str] - files: NotRequired[GistSimplePropFilesType] - public: NotRequired[bool] - created_at: NotRequired[str] - updated_at: NotRequired[str] - description: NotRequired[Union[str, None]] - comments: NotRequired[int] - user: NotRequired[Union[str, None]] - comments_url: NotRequired[str] - owner: NotRequired[SimpleUserType] - truncated: NotRequired[bool] - - -class GistSimplePropFilesType(TypedDict): - """GistSimplePropFiles""" - - -class GistSimplePropForksItemsType(TypedDict): - """GistSimplePropForksItems""" - - id: NotRequired[str] - url: NotRequired[str] - user: NotRequired[PublicUserType] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - - -class PublicUserType(TypedDict): - """Public User - - Public User + timeline_url: str + user_url: str + current_user_public_url: NotRequired[str] + current_user_url: NotRequired[str] + current_user_actor_url: NotRequired[str] + current_user_organization_url: NotRequired[str] + current_user_organization_urls: NotRequired[List[str]] + security_advisories_url: NotRequired[str] + repository_discussions_url: NotRequired[str] + repository_discussions_category_url: NotRequired[str] + links: FeedPropLinksType + + +class FeedPropLinksType(TypedDict): + """FeedPropLinks""" + + timeline: LinkWithTypeType + user: LinkWithTypeType + security_advisories: NotRequired[LinkWithTypeType] + current_user: NotRequired[LinkWithTypeType] + current_user_public: NotRequired[LinkWithTypeType] + current_user_actor: NotRequired[LinkWithTypeType] + current_user_organization: NotRequired[LinkWithTypeType] + current_user_organizations: NotRequired[List[LinkWithTypeType]] + repository_discussions: NotRequired[LinkWithTypeType] + repository_discussions_category: NotRequired[LinkWithTypeType] + + +class LinkWithTypeType(TypedDict): + """Link With Type + + Hypermedia Link with Type """ - login: str - id: int - node_id: str - avatar_url: str - gravatar_id: Union[str, None] - url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str + href: str type: str - site_admin: bool - name: Union[str, None] - company: Union[str, None] - blog: Union[str, None] - location: Union[str, None] - email: Union[str, None] - notification_email: NotRequired[Union[str, None]] - hireable: Union[bool, None] - bio: Union[str, None] - twitter_username: NotRequired[Union[str, None]] - public_repos: int - public_gists: int - followers: int - following: int - created_at: datetime - updated_at: datetime - plan: NotRequired[PublicUserPropPlanType] - suspended_at: NotRequired[Union[datetime, None]] - private_gists: NotRequired[int] - total_private_repos: NotRequired[int] - owned_private_repos: NotRequired[int] - disk_usage: NotRequired[int] - collaborators: NotRequired[int] - - -class PublicUserPropPlanType(TypedDict): - """PublicUserPropPlan""" - - collaborators: int - name: str - space: int - private_repos: int __all__ = ( - "GistSimpleType", - "GistSimplePropFilesType", - "GistSimplePropForksItemsType", - "PublicUserType", - "PublicUserPropPlanType", + "FeedType", + "FeedPropLinksType", + "LinkWithTypeType", ) 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 4da3a72b5..82b875098 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0070.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0070.py @@ -10,35 +10,45 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import Any, List, Union +from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -class GistCommentType(TypedDict): - """Gist Comment +class BaseGistType(TypedDict): + """Base Gist - A comment made to a gist. + Base Gist """ - id: int - node_id: str url: str - body: str - user: Union[None, SimpleUserType] + forks_url: str + commits_url: str + id: str + node_id: str + git_pull_url: str + git_push_url: str + html_url: str + files: BaseGistPropFilesType + public: bool created_at: datetime updated_at: datetime - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - - -__all__ = ("GistCommentType",) + description: Union[str, None] + comments: int + user: Union[None, SimpleUserType] + comments_url: str + owner: NotRequired[SimpleUserType] + truncated: NotRequired[bool] + forks: NotRequired[List[Any]] + history: NotRequired[List[Any]] + + +class BaseGistPropFilesType(TypedDict): + """BaseGistPropFiles""" + + +__all__ = ( + "BaseGistType", + "BaseGistPropFilesType", +) 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 9310e581c..41c7f4f76 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0071.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0071.py @@ -9,35 +9,69 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import Any, List, Union from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -class GistCommitType(TypedDict): - """Gist Commit +class GistHistoryType(TypedDict): + """Gist History - Gist Commit + Gist History """ - url: str - version: str - user: Union[None, SimpleUserType] - change_status: GistCommitPropChangeStatusType - committed_at: datetime + user: NotRequired[Union[None, SimpleUserType]] + version: NotRequired[str] + committed_at: NotRequired[datetime] + change_status: NotRequired[GistHistoryPropChangeStatusType] + url: NotRequired[str] -class GistCommitPropChangeStatusType(TypedDict): - """GistCommitPropChangeStatus""" +class GistHistoryPropChangeStatusType(TypedDict): + """GistHistoryPropChangeStatus""" total: NotRequired[int] additions: NotRequired[int] deletions: NotRequired[int] +class GistSimplePropForkOfType(TypedDict): + """Gist + + Gist + """ + + url: str + forks_url: str + commits_url: str + id: str + node_id: str + git_pull_url: str + git_push_url: str + html_url: str + files: GistSimplePropForkOfPropFilesType + public: bool + created_at: datetime + updated_at: datetime + description: Union[str, None] + comments: int + user: Union[None, SimpleUserType] + comments_url: str + owner: NotRequired[Union[None, SimpleUserType]] + truncated: NotRequired[bool] + forks: NotRequired[List[Any]] + history: NotRequired[List[Any]] + + +class GistSimplePropForkOfPropFilesType(TypedDict): + """GistSimplePropForkOfPropFiles""" + + __all__ = ( - "GistCommitType", - "GistCommitPropChangeStatusType", + "GistHistoryType", + "GistHistoryPropChangeStatusType", + "GistSimplePropForkOfType", + "GistSimplePropForkOfPropFilesType", ) 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 69bf98302..da6aa35a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0072.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0072.py @@ -9,17 +9,118 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0071 import GistHistoryType, GistSimplePropForkOfType -class GitignoreTemplateType(TypedDict): - """Gitignore Template - Gitignore Template +class GistSimpleType(TypedDict): + """Gist Simple + + Gist Simple + """ + + forks: NotRequired[Union[List[GistSimplePropForksItemsType], None]] + history: NotRequired[Union[List[GistHistoryType], None]] + fork_of: NotRequired[Union[GistSimplePropForkOfType, None]] + url: NotRequired[str] + forks_url: NotRequired[str] + commits_url: NotRequired[str] + id: NotRequired[str] + node_id: NotRequired[str] + git_pull_url: NotRequired[str] + git_push_url: NotRequired[str] + html_url: NotRequired[str] + files: NotRequired[GistSimplePropFilesType] + public: NotRequired[bool] + created_at: NotRequired[str] + updated_at: NotRequired[str] + description: NotRequired[Union[str, None]] + comments: NotRequired[int] + user: NotRequired[Union[str, None]] + comments_url: NotRequired[str] + owner: NotRequired[SimpleUserType] + truncated: NotRequired[bool] + + +class GistSimplePropFilesType(TypedDict): + """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 + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + name: Union[str, None] + company: Union[str, None] + blog: Union[str, None] + location: Union[str, None] + email: Union[str, None] + notification_email: NotRequired[Union[str, None]] + hireable: Union[bool, None] + bio: Union[str, None] + twitter_username: NotRequired[Union[str, None]] + public_repos: int + public_gists: int + followers: int + following: int + created_at: datetime + updated_at: datetime + plan: NotRequired[PublicUserPropPlanType] + suspended_at: NotRequired[Union[datetime, None]] + private_gists: NotRequired[int] + total_private_repos: NotRequired[int] + owned_private_repos: NotRequired[int] + disk_usage: NotRequired[int] + collaborators: NotRequired[int] + + +class PublicUserPropPlanType(TypedDict): + """PublicUserPropPlan""" + + collaborators: int name: str - source: str + space: int + private_repos: int -__all__ = ("GitignoreTemplateType",) +__all__ = ( + "GistSimpleType", + "GistSimplePropFilesType", + "GistSimplePropForksItemsType", + "PublicUserType", + "PublicUserPropPlanType", +) 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 8cbd71cbc..4da3a72b5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0073.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0073.py @@ -9,29 +9,36 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict +from .group_0001 import SimpleUserType -class LicenseType(TypedDict): - """License - License +class GistCommentType(TypedDict): + """Gist Comment + + A comment made to a gist. """ - key: str - name: str - spdx_id: Union[str, None] - url: Union[str, None] + id: int node_id: str - html_url: str - description: str - implementation: str - permissions: List[str] - conditions: List[str] - limitations: List[str] + url: str body: str - featured: bool - - -__all__ = ("LicenseType",) + user: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + + +__all__ = ("GistCommentType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0074.py b/githubkit/versions/ghec_v2022_11_28/types/group_0074.py index ffdc9e4da..9310e581c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0074.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0074.py @@ -9,29 +9,35 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict +from typing import Union +from datetime import datetime +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class MarketplaceListingPlanType(TypedDict): - """Marketplace Listing Plan - Marketplace Listing Plan +class GistCommitType(TypedDict): + """Gist Commit + + Gist Commit """ url: str - accounts_url: str - id: int - number: int - name: str - description: str - monthly_price_in_cents: int - yearly_price_in_cents: int - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - has_free_trial: bool - unit_name: Union[str, None] - state: str - bullets: List[str] - - -__all__ = ("MarketplaceListingPlanType",) + version: str + user: Union[None, SimpleUserType] + change_status: GistCommitPropChangeStatusType + committed_at: datetime + + +class GistCommitPropChangeStatusType(TypedDict): + """GistCommitPropChangeStatus""" + + total: NotRequired[int] + additions: NotRequired[int] + deletions: NotRequired[int] + + +__all__ = ( + "GistCommitType", + "GistCommitPropChangeStatusType", +) 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 c765c625f..69bf98302 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0075.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0075.py @@ -9,31 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0076 import ( - MarketplacePurchasePropMarketplacePurchaseType, - MarketplacePurchasePropMarketplacePendingChangeType, -) +class GitignoreTemplateType(TypedDict): + """Gitignore Template -class MarketplacePurchaseType(TypedDict): - """Marketplace Purchase - - Marketplace Purchase + Gitignore Template """ - url: str - type: str - id: int - login: str - organization_billing_email: NotRequired[str] - email: NotRequired[Union[str, None]] - marketplace_pending_change: NotRequired[ - Union[MarketplacePurchasePropMarketplacePendingChangeType, None] - ] - marketplace_purchase: MarketplacePurchasePropMarketplacePurchaseType + name: str + source: str -__all__ = ("MarketplacePurchaseType",) +__all__ = ("GitignoreTemplateType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0076.py b/githubkit/versions/ghec_v2022_11_28/types/group_0076.py index 0f411dcaa..8cbd71cbc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0076.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0076.py @@ -9,36 +9,29 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing import List, Union +from typing_extensions import TypedDict -from .group_0074 import MarketplaceListingPlanType +class LicenseType(TypedDict): + """License -class MarketplacePurchasePropMarketplacePendingChangeType(TypedDict): - """MarketplacePurchasePropMarketplacePendingChange""" + License + """ - is_installed: NotRequired[bool] - effective_date: NotRequired[str] - unit_count: NotRequired[Union[int, None]] - id: NotRequired[int] - plan: NotRequired[MarketplaceListingPlanType] + key: str + name: str + spdx_id: Union[str, None] + url: Union[str, None] + node_id: str + html_url: str + description: str + implementation: str + permissions: List[str] + conditions: List[str] + limitations: List[str] + body: str + featured: bool -class MarketplacePurchasePropMarketplacePurchaseType(TypedDict): - """MarketplacePurchasePropMarketplacePurchase""" - - billing_cycle: NotRequired[str] - next_billing_date: NotRequired[Union[str, None]] - is_installed: NotRequired[bool] - unit_count: NotRequired[Union[int, None]] - on_free_trial: NotRequired[bool] - free_trial_ends_on: NotRequired[Union[str, None]] - updated_at: NotRequired[str] - plan: NotRequired[MarketplaceListingPlanType] - - -__all__ = ( - "MarketplacePurchasePropMarketplacePendingChangeType", - "MarketplacePurchasePropMarketplacePurchaseType", -) +__all__ = ("LicenseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0077.py b/githubkit/versions/ghec_v2022_11_28/types/group_0077.py index 1dde328c2..ffdc9e4da 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0077.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0077.py @@ -9,54 +9,29 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing import List, Union, Literal +from typing_extensions import TypedDict -class ApiOverviewType(TypedDict): - """Api Overview +class MarketplaceListingPlanType(TypedDict): + """Marketplace Listing Plan - Api Overview + Marketplace Listing Plan """ - verifiable_password_authentication: bool - ssh_key_fingerprints: NotRequired[ApiOverviewPropSshKeyFingerprintsType] - ssh_keys: NotRequired[List[str]] - hooks: NotRequired[List[str]] - github_enterprise_importer: NotRequired[List[str]] - web: NotRequired[List[str]] - api: NotRequired[List[str]] - git: NotRequired[List[str]] - packages: NotRequired[List[str]] - pages: NotRequired[List[str]] - importer: NotRequired[List[str]] - actions: NotRequired[List[str]] - actions_macos: NotRequired[List[str]] - dependabot: NotRequired[List[str]] - domains: NotRequired[ApiOverviewPropDomainsType] - - -class ApiOverviewPropSshKeyFingerprintsType(TypedDict): - """ApiOverviewPropSshKeyFingerprints""" - - sha256_rsa: NotRequired[str] - sha256_dsa: NotRequired[str] - sha256_ecdsa: NotRequired[str] - sha256_ed25519: NotRequired[str] - - -class ApiOverviewPropDomainsType(TypedDict): - """ApiOverviewPropDomains""" - - website: NotRequired[List[str]] - codespaces: NotRequired[List[str]] - copilot: NotRequired[List[str]] - packages: NotRequired[List[str]] - actions: NotRequired[List[str]] - - -__all__ = ( - "ApiOverviewType", - "ApiOverviewPropSshKeyFingerprintsType", - "ApiOverviewPropDomainsType", -) + url: str + accounts_url: str + id: int + number: int + name: str + description: str + monthly_price_in_cents: int + yearly_price_in_cents: int + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + has_free_trial: bool + unit_name: Union[str, None] + state: str + bullets: List[str] + + +__all__ = ("MarketplaceListingPlanType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0078.py b/githubkit/versions/ghec_v2022_11_28/types/group_0078.py index 569e02d77..cbbdb3886 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0078.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0078.py @@ -9,64 +9,31 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import TypedDict, NotRequired - -class SecurityAndAnalysisType(TypedDict): - """SecurityAndAnalysis""" - - advanced_security: NotRequired[SecurityAndAnalysisPropAdvancedSecurityType] - dependabot_security_updates: NotRequired[ - SecurityAndAnalysisPropDependabotSecurityUpdatesType - ] - secret_scanning: NotRequired[SecurityAndAnalysisPropSecretScanningType] - secret_scanning_push_protection: NotRequired[ - SecurityAndAnalysisPropSecretScanningPushProtectionType - ] - secret_scanning_validity_checks: NotRequired[ - SecurityAndAnalysisPropSecretScanningValidityChecksType - ] - - -class SecurityAndAnalysisPropAdvancedSecurityType(TypedDict): - """SecurityAndAnalysisPropAdvancedSecurity""" - - status: NotRequired[Literal["enabled", "disabled"]] +from .group_0079 import ( + MarketplacePurchasePropMarketplacePurchaseType, + MarketplacePurchasePropMarketplacePendingChangeType, +) -class SecurityAndAnalysisPropDependabotSecurityUpdatesType(TypedDict): - """SecurityAndAnalysisPropDependabotSecurityUpdates +class MarketplacePurchaseType(TypedDict): + """Marketplace Purchase - Enable or disable Dependabot security updates for the repository. + Marketplace Purchase """ - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningType(TypedDict): - """SecurityAndAnalysisPropSecretScanning""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningPushProtectionType(TypedDict): - """SecurityAndAnalysisPropSecretScanningPushProtection""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningValidityChecksType(TypedDict): - """SecurityAndAnalysisPropSecretScanningValidityChecks""" - - status: NotRequired[Literal["enabled", "disabled"]] + url: str + type: str + id: int + login: str + organization_billing_email: NotRequired[str] + email: NotRequired[Union[str, None]] + marketplace_pending_change: NotRequired[ + Union[MarketplacePurchasePropMarketplacePendingChangeType, None] + ] + marketplace_purchase: MarketplacePurchasePropMarketplacePurchaseType -__all__ = ( - "SecurityAndAnalysisType", - "SecurityAndAnalysisPropAdvancedSecurityType", - "SecurityAndAnalysisPropDependabotSecurityUpdatesType", - "SecurityAndAnalysisPropSecretScanningType", - "SecurityAndAnalysisPropSecretScanningPushProtectionType", - "SecurityAndAnalysisPropSecretScanningValidityChecksType", -) +__all__ = ("MarketplacePurchaseType",) 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 2dbb78ec4..be1640ad6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0079.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0079.py @@ -9,145 +9,36 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0078 import SecurityAndAnalysisType +from .group_0077 import MarketplaceListingPlanType -class MinimalRepositoryType(TypedDict): - """Minimal Repository +class MarketplacePurchasePropMarketplacePendingChangeType(TypedDict): + """MarketplacePurchasePropMarketplacePendingChange""" - Minimal Repository - """ + is_installed: NotRequired[bool] + effective_date: NotRequired[str] + unit_count: NotRequired[Union[int, None]] + id: NotRequired[int] + plan: NotRequired[MarketplaceListingPlanType] - id: int - node_id: str - name: str - full_name: str - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: NotRequired[str] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: NotRequired[str] - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: NotRequired[str] - mirror_url: NotRequired[Union[str, None]] - hooks_url: str - svn_url: NotRequired[str] - homepage: NotRequired[Union[str, None]] - language: NotRequired[Union[str, None]] - forks_count: NotRequired[int] - stargazers_count: NotRequired[int] - watchers_count: NotRequired[int] - size: NotRequired[int] - default_branch: NotRequired[str] - open_issues_count: NotRequired[int] - is_template: NotRequired[bool] - topics: NotRequired[List[str]] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_pages: NotRequired[bool] - has_downloads: NotRequired[bool] - has_discussions: NotRequired[bool] - archived: NotRequired[bool] - disabled: NotRequired[bool] - visibility: NotRequired[str] - pushed_at: NotRequired[Union[datetime, None]] - created_at: NotRequired[Union[datetime, None]] - updated_at: NotRequired[Union[datetime, None]] - permissions: NotRequired[MinimalRepositoryPropPermissionsType] - role_name: NotRequired[str] - temp_clone_token: NotRequired[Union[str, None]] - delete_branch_on_merge: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - code_of_conduct: NotRequired[CodeOfConductType] - license_: NotRequired[Union[MinimalRepositoryPropLicenseType, None]] - forks: NotRequired[int] - open_issues: NotRequired[int] - watchers: NotRequired[int] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] +class MarketplacePurchasePropMarketplacePurchaseType(TypedDict): + """MarketplacePurchasePropMarketplacePurchase""" -class CodeOfConductType(TypedDict): - """Code Of Conduct - - Code Of Conduct - """ - - key: str - name: str - url: str - body: NotRequired[str] - html_url: Union[str, None] - - -class MinimalRepositoryPropPermissionsType(TypedDict): - """MinimalRepositoryPropPermissions""" - - admin: NotRequired[bool] - maintain: NotRequired[bool] - push: NotRequired[bool] - triage: NotRequired[bool] - pull: NotRequired[bool] - - -class MinimalRepositoryPropLicenseType(TypedDict): - """MinimalRepositoryPropLicense""" - - key: NotRequired[str] - name: NotRequired[str] - spdx_id: NotRequired[str] - url: NotRequired[str] - node_id: NotRequired[str] + billing_cycle: NotRequired[str] + next_billing_date: NotRequired[Union[str, None]] + is_installed: NotRequired[bool] + unit_count: NotRequired[Union[int, None]] + on_free_trial: NotRequired[bool] + free_trial_ends_on: NotRequired[Union[str, None]] + updated_at: NotRequired[str] + plan: NotRequired[MarketplaceListingPlanType] __all__ = ( - "MinimalRepositoryType", - "CodeOfConductType", - "MinimalRepositoryPropPermissionsType", - "MinimalRepositoryPropLicenseType", + "MarketplacePurchasePropMarketplacePendingChangeType", + "MarketplacePurchasePropMarketplacePurchaseType", ) 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 692003d0a..1dde328c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0080.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0080.py @@ -9,39 +9,54 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -from .group_0079 import MinimalRepositoryType +class ApiOverviewType(TypedDict): + """Api Overview -class ThreadType(TypedDict): - """Thread - - Thread + Api Overview """ - id: str - repository: MinimalRepositoryType - subject: ThreadPropSubjectType - reason: str - unread: bool - updated_at: str - last_read_at: Union[str, None] - url: str - subscription_url: str + verifiable_password_authentication: bool + ssh_key_fingerprints: NotRequired[ApiOverviewPropSshKeyFingerprintsType] + ssh_keys: NotRequired[List[str]] + hooks: NotRequired[List[str]] + github_enterprise_importer: NotRequired[List[str]] + web: NotRequired[List[str]] + api: NotRequired[List[str]] + git: NotRequired[List[str]] + packages: NotRequired[List[str]] + pages: NotRequired[List[str]] + importer: NotRequired[List[str]] + actions: NotRequired[List[str]] + actions_macos: NotRequired[List[str]] + dependabot: 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 ThreadPropSubjectType(TypedDict): - """ThreadPropSubject""" +class ApiOverviewPropDomainsType(TypedDict): + """ApiOverviewPropDomains""" - title: str - url: str - latest_comment_url: str - type: str + website: NotRequired[List[str]] + codespaces: NotRequired[List[str]] + copilot: NotRequired[List[str]] + packages: NotRequired[List[str]] + actions: NotRequired[List[str]] __all__ = ( - "ThreadType", - "ThreadPropSubjectType", + "ApiOverviewType", + "ApiOverviewPropSshKeyFingerprintsType", + "ApiOverviewPropDomainsType", ) 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 25325d850..fd84e883b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0081.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0081.py @@ -9,24 +9,74 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ThreadSubscriptionType(TypedDict): - """Thread Subscription +class SecurityAndAnalysisType(TypedDict): + """SecurityAndAnalysis""" - Thread Subscription + advanced_security: NotRequired[SecurityAndAnalysisPropAdvancedSecurityType] + dependabot_security_updates: NotRequired[ + SecurityAndAnalysisPropDependabotSecurityUpdatesType + ] + secret_scanning: NotRequired[SecurityAndAnalysisPropSecretScanningType] + secret_scanning_push_protection: NotRequired[ + SecurityAndAnalysisPropSecretScanningPushProtectionType + ] + secret_scanning_non_provider_patterns: NotRequired[ + SecurityAndAnalysisPropSecretScanningNonProviderPatternsType + ] + secret_scanning_validity_checks: NotRequired[ + SecurityAndAnalysisPropSecretScanningValidityChecksType + ] + + +class SecurityAndAnalysisPropAdvancedSecurityType(TypedDict): + """SecurityAndAnalysisPropAdvancedSecurity""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropDependabotSecurityUpdatesType(TypedDict): + """SecurityAndAnalysisPropDependabotSecurityUpdates + + Enable or disable Dependabot security updates for the repository. """ - subscribed: bool - ignored: bool - reason: Union[str, None] - created_at: Union[datetime, None] - url: str - thread_url: NotRequired[str] - repository_url: NotRequired[str] + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningType(TypedDict): + """SecurityAndAnalysisPropSecretScanning""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningPushProtectionType(TypedDict): + """SecurityAndAnalysisPropSecretScanningPushProtection""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningNonProviderPatternsType(TypedDict): + """SecurityAndAnalysisPropSecretScanningNonProviderPatterns""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropSecretScanningValidityChecksType(TypedDict): + """SecurityAndAnalysisPropSecretScanningValidityChecks""" + + status: NotRequired[Literal["enabled", "disabled"]] -__all__ = ("ThreadSubscriptionType",) +__all__ = ( + "SecurityAndAnalysisType", + "SecurityAndAnalysisPropAdvancedSecurityType", + "SecurityAndAnalysisPropDependabotSecurityUpdatesType", + "SecurityAndAnalysisPropSecretScanningType", + "SecurityAndAnalysisPropSecretScanningPushProtectionType", + "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", + "SecurityAndAnalysisPropSecretScanningValidityChecksType", +) 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 8800ffc67..5440fa216 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0082.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0082.py @@ -10,26 +10,144 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType +from .group_0081 import SecurityAndAnalysisType -class OrganizationCustomRepositoryRoleType(TypedDict): - """Organization Custom Repository Role +class MinimalRepositoryType(TypedDict): + """Minimal Repository - Custom repository roles created by organization owners + Minimal Repository """ id: int + node_id: str name: str - description: NotRequired[Union[str, None]] - base_role: Literal["read", "triage", "write", "maintain"] - permissions: List[str] - organization: SimpleUserType - created_at: datetime - updated_at: datetime + full_name: str + owner: SimpleUserType + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: NotRequired[str] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: NotRequired[str] + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: NotRequired[str] + mirror_url: NotRequired[Union[str, None]] + hooks_url: str + svn_url: NotRequired[str] + homepage: NotRequired[Union[str, None]] + language: NotRequired[Union[str, None]] + forks_count: NotRequired[int] + stargazers_count: NotRequired[int] + watchers_count: NotRequired[int] + size: NotRequired[int] + default_branch: NotRequired[str] + open_issues_count: NotRequired[int] + is_template: NotRequired[bool] + topics: NotRequired[List[str]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_pages: NotRequired[bool] + has_downloads: NotRequired[bool] + has_discussions: NotRequired[bool] + archived: NotRequired[bool] + disabled: NotRequired[bool] + visibility: NotRequired[str] + pushed_at: NotRequired[Union[datetime, None]] + created_at: NotRequired[Union[datetime, None]] + updated_at: NotRequired[Union[datetime, None]] + permissions: NotRequired[MinimalRepositoryPropPermissionsType] + role_name: NotRequired[str] + temp_clone_token: NotRequired[Union[str, None]] + delete_branch_on_merge: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + code_of_conduct: NotRequired[CodeOfConductType] + license_: NotRequired[Union[MinimalRepositoryPropLicenseType, None]] + forks: NotRequired[int] + open_issues: NotRequired[int] + watchers: NotRequired[int] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] -__all__ = ("OrganizationCustomRepositoryRoleType",) +class CodeOfConductType(TypedDict): + """Code Of Conduct + + Code Of Conduct + """ + + key: str + name: str + url: str + body: NotRequired[str] + html_url: Union[str, None] + + +class MinimalRepositoryPropPermissionsType(TypedDict): + """MinimalRepositoryPropPermissions""" + + admin: NotRequired[bool] + maintain: NotRequired[bool] + push: NotRequired[bool] + triage: NotRequired[bool] + pull: NotRequired[bool] + + +class MinimalRepositoryPropLicenseType(TypedDict): + """MinimalRepositoryPropLicense""" + + key: NotRequired[str] + name: NotRequired[str] + spdx_id: NotRequired[str] + url: NotRequired[str] + node_id: NotRequired[str] + + +__all__ = ( + "MinimalRepositoryType", + "CodeOfConductType", + "MinimalRepositoryPropPermissionsType", + "MinimalRepositoryPropLicenseType", +) 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 62d0c799d..f7d4ec2a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0083.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0083.py @@ -10,87 +10,38 @@ from __future__ import annotations from typing import Union -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0082 import MinimalRepositoryType -class OrganizationFullType(TypedDict): - """Organization Full - Organization Full +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 - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] - name: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - blog: NotRequired[Union[str, None]] - location: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - twitter_username: NotRequired[Union[str, None]] - is_verified: NotRequired[bool] - has_organization_projects: bool - has_repository_projects: bool - public_repos: int - public_gists: int - followers: int - following: int - html_url: str - type: str - total_private_repos: NotRequired[int] - owned_private_repos: NotRequired[int] - private_gists: NotRequired[Union[int, None]] - disk_usage: NotRequired[Union[int, None]] - collaborators: NotRequired[Union[int, None]] - billing_email: NotRequired[Union[str, None]] - plan: NotRequired[OrganizationFullPropPlanType] - default_repository_permission: NotRequired[Union[str, None]] - members_can_create_repositories: NotRequired[Union[bool, None]] - two_factor_requirement_enabled: NotRequired[Union[bool, None]] - members_allowed_repository_creation_type: NotRequired[str] - members_can_create_public_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[Union[bool, None]] - web_commit_signoff_required: NotRequired[bool] - advanced_security_enabled_for_new_repositories: NotRequired[bool] - dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] - dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] - dependency_graph_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] - secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] - secret_scanning_validity_checks_enabled: NotRequired[bool] - created_at: datetime - updated_at: datetime - archived_at: Union[datetime, None] + subscription_url: str -class OrganizationFullPropPlanType(TypedDict): - """OrganizationFullPropPlan""" +class ThreadPropSubjectType(TypedDict): + """ThreadPropSubject""" - name: str - space: int - private_repos: int - filled_seats: NotRequired[int] - seats: NotRequired[int] + title: str + url: str + latest_comment_url: str + type: str __all__ = ( - "OrganizationFullType", - "OrganizationFullPropPlanType", + "ThreadType", + "ThreadPropSubjectType", ) 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 7eecb9b27..25325d850 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0084.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0084.py @@ -9,17 +9,24 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -class OidcCustomSubType(TypedDict): - """Actions OIDC Subject customization +class ThreadSubscriptionType(TypedDict): + """Thread Subscription - Actions OIDC Subject customization + Thread Subscription """ - include_claim_keys: List[str] + subscribed: bool + ignored: bool + reason: Union[str, None] + created_at: Union[datetime, None] + url: str + thread_url: NotRequired[str] + repository_url: NotRequired[str] -__all__ = ("OidcCustomSubType",) +__all__ = ("ThreadSubscriptionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0085.py b/githubkit/versions/ghec_v2022_11_28/types/group_0085.py index 15df396e9..8800ffc67 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0085.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0085.py @@ -9,14 +9,27 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class EmptyObjectType(TypedDict): - """Empty Object - An object without any properties. +class OrganizationCustomRepositoryRoleType(TypedDict): + """Organization Custom Repository Role + + Custom repository roles created by organization owners """ + id: int + name: str + description: NotRequired[Union[str, None]] + base_role: Literal["read", "triage", "write", "maintain"] + permissions: List[str] + organization: SimpleUserType + created_at: datetime + updated_at: datetime + -__all__ = ("EmptyObjectType",) +__all__ = ("OrganizationCustomRepositoryRoleType",) 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 dfaea724d..62d0c799d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0086.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0086.py @@ -9,17 +9,88 @@ from __future__ import annotations -from typing import Literal +from typing import Union +from datetime import datetime from typing_extensions import TypedDict, NotRequired -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] + Organization Full + """ + login: str + id: int + node_id: str + url: str + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] + name: NotRequired[Union[str, None]] + company: NotRequired[Union[str, None]] + blog: NotRequired[Union[str, None]] + location: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + twitter_username: NotRequired[Union[str, None]] + is_verified: NotRequired[bool] + has_organization_projects: bool + has_repository_projects: bool + public_repos: int + public_gists: int + followers: int + following: int + html_url: str + type: str + total_private_repos: NotRequired[int] + owned_private_repos: NotRequired[int] + private_gists: NotRequired[Union[int, None]] + disk_usage: NotRequired[Union[int, None]] + collaborators: NotRequired[Union[int, None]] + billing_email: NotRequired[Union[str, None]] + plan: NotRequired[OrganizationFullPropPlanType] + default_repository_permission: NotRequired[Union[str, None]] + members_can_create_repositories: NotRequired[Union[bool, None]] + two_factor_requirement_enabled: NotRequired[Union[bool, None]] + members_allowed_repository_creation_type: NotRequired[str] + members_can_create_public_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[Union[bool, None]] + web_commit_signoff_required: NotRequired[bool] + advanced_security_enabled_for_new_repositories: NotRequired[bool] + dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] + dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] + dependency_graph_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] + secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] + secret_scanning_validity_checks_enabled: NotRequired[bool] + created_at: datetime + updated_at: datetime + archived_at: Union[datetime, None] -__all__ = ("ActionsOrganizationPermissionsType",) + +class OrganizationFullPropPlanType(TypedDict): + """OrganizationFullPropPlan""" + + name: str + space: int + private_repos: int + filled_seats: NotRequired[int] + seats: NotRequired[int] + + +__all__ = ( + "OrganizationFullType", + "OrganizationFullPropPlanType", +) 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 9c5cf6d77..7eecb9b27 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0087.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0087.py @@ -9,21 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +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_0088.py b/githubkit/versions/ghec_v2022_11_28/types/group_0088.py index 167bf465c..dfaea724d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0088.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0088.py @@ -9,23 +9,17 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class CodespaceMachineType(TypedDict): - """Codespace machine +class ActionsOrganizationPermissionsType(TypedDict): + """ActionsOrganizationPermissions""" - A description of the machine powering a codespace. - """ + enabled_repositories: Literal["all", "none", "selected"] + selected_repositories_url: NotRequired[str] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + selected_actions_url: NotRequired[str] - name: str - display_name: str - operating_system: str - storage_in_bytes: int - memory_in_bytes: int - cpus: int - prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] - -__all__ = ("CodespaceMachineType",) +__all__ = ("ActionsOrganizationPermissionsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0089.py b/githubkit/versions/ghec_v2022_11_28/types/group_0089.py index 0652f4d17..9c5cf6d77 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0089.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0089.py @@ -9,94 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0088 import CodespaceMachineType -from .group_0079 import MinimalRepositoryType +class ActionsPublicKeyType(TypedDict): + """ActionsPublicKey -class CodespaceType(TypedDict): - """Codespace - - A codespace. + The public key used for setting Actions Secrets. """ - id: int - name: str - display_name: NotRequired[Union[str, None]] - environment_id: Union[str, None] - owner: SimpleUserType - billable_owner: SimpleUserType - repository: MinimalRepositoryType - machine: Union[None, CodespaceMachineType] - devcontainer_path: NotRequired[Union[str, None]] - prebuild: Union[bool, None] - created_at: datetime - updated_at: datetime - last_used_at: datetime - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] - url: str - git_status: CodespacePropGitStatusType - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] - idle_timeout_minutes: Union[int, None] - web_url: str - machines_url: str - start_url: str - stop_url: str - publish_url: NotRequired[Union[str, None]] - pulls_url: Union[str, None] - recent_folders: List[str] - runtime_constraints: NotRequired[CodespacePropRuntimeConstraintsType] - pending_operation: NotRequired[Union[bool, None]] - pending_operation_disabled_reason: NotRequired[Union[str, None]] - idle_timeout_notice: NotRequired[Union[str, None]] - retention_period_minutes: NotRequired[Union[int, None]] - retention_expires_at: NotRequired[Union[datetime, None]] - last_known_stop_notice: NotRequired[Union[str, None]] - - -class CodespacePropGitStatusType(TypedDict): - """CodespacePropGitStatus - - Details about the codespace's git repository. - """ - - ahead: NotRequired[int] - behind: NotRequired[int] - has_unpushed_changes: NotRequired[bool] - has_uncommitted_changes: NotRequired[bool] - ref: NotRequired[str] - - -class CodespacePropRuntimeConstraintsType(TypedDict): - """CodespacePropRuntimeConstraints""" - - allowed_port_privacy_settings: NotRequired[Union[List[str], None]] + key_id: str + key: str + id: NotRequired[int] + url: NotRequired[str] + title: NotRequired[str] + created_at: NotRequired[str] -__all__ = ( - "CodespaceType", - "CodespacePropGitStatusType", - "CodespacePropRuntimeConstraintsType", -) +__all__ = ("ActionsPublicKeyType",) 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 47e387234..f82f0e955 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0090.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0090.py @@ -9,21 +9,40 @@ from __future__ import annotations +from typing import Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class CodespacesPublicKeyType(TypedDict): - """CodespacesPublicKey +class CodeSecurityConfigurationType(TypedDict): + """CodeSecurityConfiguration - The public key used for setting Codespaces secrets. + A code security configuration """ - key_id: str - key: str id: NotRequired[int] + name: NotRequired[str] + target_type: NotRequired[Literal["global", "organization"]] + description: NotRequired[str] + advanced_security: NotRequired[Literal["enabled", "disabled"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] url: NotRequired[str] - title: NotRequired[str] - created_at: NotRequired[str] + html_url: NotRequired[str] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] -__all__ = ("CodespacesPublicKeyType",) +__all__ = ("CodeSecurityConfigurationType",) 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 29ee61aee..e85d90a17 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0091.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0091.py @@ -12,39 +12,14 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0090 import CodeSecurityConfigurationType -class CopilotOrganizationDetailsType(TypedDict): - """Copilot Business Organization Details - Information about the seat breakdown and policies set for an organization with a - Copilot Business subscription. - """ +class CodeSecurityDefaultConfigurationsItemsType(TypedDict): + """CodeSecurityDefaultConfigurationsItems""" - seat_breakdown: CopilotSeatBreakdownType - public_code_suggestions: Literal["allow", "block", "unconfigured", "unknown"] - ide_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - platform_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - cli: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - seat_management_setting: Literal[ - "assign_all", "assign_selected", "disabled", "unconfigured" - ] + default_for_new_repos: NotRequired[Literal["public", "private_and_internal", "all"]] + configuration: NotRequired[CodeSecurityConfigurationType] -class CopilotSeatBreakdownType(TypedDict): - """Copilot Business Seat Breakdown - - The breakdown of Copilot Business seats for the organization. - """ - - total: NotRequired[int] - added_this_cycle: NotRequired[int] - pending_cancellation: NotRequired[int] - pending_invitation: NotRequired[int] - active_this_cycle: NotRequired[int] - inactive_this_cycle: NotRequired[int] - - -__all__ = ( - "CopilotOrganizationDetailsType", - "CopilotSeatBreakdownType", -) +__all__ = ("CodeSecurityDefaultConfigurationsItemsType",) 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 ff50a4403..e1401e264 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0092.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0092.py @@ -9,29 +9,22 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0043 import SimpleRepositoryType -class TeamSimpleType(TypedDict): - """Team Simple - Groups of organization members that gives permissions on specified repositories. +class CodeSecurityConfigurationRepositoriesType(TypedDict): + """CodeSecurityConfigurationRepositories + + Repositories associated with a code security configuration and attachment status """ - 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",) + status: NotRequired[ + Literal["attached", "attaching", "detached", "enforced", "failed", "updating"] + ] + repository: NotRequired[SimpleRepositoryType] + + +__all__ = ("CodeSecurityConfigurationRepositoriesType",) 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 c092ee42e..167bf465c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0093.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0093.py @@ -9,45 +9,23 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0092 import TeamSimpleType +class CodespaceMachineType(TypedDict): + """Codespace machine -class TeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. + A description of the machine powering a codespace. """ - id: int - node_id: str name: str - slug: str - description: Union[str, None] - privacy: NotRequired[str] - notification_setting: NotRequired[str] - permission: str - permissions: NotRequired[TeamPropPermissionsType] - url: str - html_url: str - members_url: str - repositories_url: str - parent: Union[None, TeamSimpleType] - - -class TeamPropPermissionsType(TypedDict): - """TeamPropPermissions""" - - pull: bool - triage: bool - push: bool - maintain: bool - admin: bool - - -__all__ = ( - "TeamType", - "TeamPropPermissionsType", -) + display_name: str + operating_system: str + storage_in_bytes: int + memory_in_bytes: int + cpus: int + prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] + + +__all__ = ("CodespaceMachineType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0094.py b/githubkit/versions/ghec_v2022_11_28/types/group_0094.py index 267f4faab..6d0fe91bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0094.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0094.py @@ -9,87 +9,94 @@ from __future__ import annotations -from typing import List, Union -from datetime import date, datetime +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0093 import TeamType from .group_0001 import SimpleUserType +from .group_0093 import CodespaceMachineType +from .group_0082 import MinimalRepositoryType -class CopilotSeatDetailsType(TypedDict): - """Copilot Business Seat Detail +class CodespaceType(TypedDict): + """Codespace - Information about a Copilot Business seat assignment for a user, team, or - organization. + A codespace. """ - assignee: Union[SimpleUserType, TeamType, OrganizationType] - assigning_team: NotRequired[Union[TeamType, 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] - - -class OrganizationType(TypedDict): - """Organization - - GitHub account for managing multiple users, teams, and repositories - """ - - login: str - url: str id: int - node_id: 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] - blog: NotRequired[str] - html_url: str - name: NotRequired[str] - company: NotRequired[str] - location: NotRequired[str] - email: NotRequired[str] - has_organization_projects: bool - has_repository_projects: bool - is_verified: NotRequired[bool] - public_repos: int - public_gists: int - followers: int - following: int - type: str + 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 - plan: NotRequired[OrganizationPropPlanType] - - -class OrganizationPropPlanType(TypedDict): - """OrganizationPropPlan""" + last_used_at: datetime + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] + url: str + git_status: CodespacePropGitStatusType + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] + idle_timeout_minutes: Union[int, None] + web_url: str + machines_url: str + start_url: str + stop_url: str + publish_url: NotRequired[Union[str, None]] + pulls_url: Union[str, None] + recent_folders: List[str] + runtime_constraints: NotRequired[CodespacePropRuntimeConstraintsType] + pending_operation: NotRequired[Union[bool, None]] + pending_operation_disabled_reason: NotRequired[Union[str, None]] + idle_timeout_notice: NotRequired[Union[str, None]] + retention_period_minutes: NotRequired[Union[int, None]] + retention_expires_at: NotRequired[Union[datetime, None]] + last_known_stop_notice: NotRequired[Union[str, None]] + + +class CodespacePropGitStatusType(TypedDict): + """CodespacePropGitStatus + + Details about the codespace's git repository. + """ - name: NotRequired[str] - space: NotRequired[int] - private_repos: NotRequired[int] - filled_seats: NotRequired[int] - seats: NotRequired[int] + ahead: NotRequired[int] + behind: NotRequired[int] + has_unpushed_changes: NotRequired[bool] + has_uncommitted_changes: NotRequired[bool] + ref: NotRequired[str] -class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSeatsGetResponse200""" +class CodespacePropRuntimeConstraintsType(TypedDict): + """CodespacePropRuntimeConstraints""" - total_seats: NotRequired[int] - seats: NotRequired[List[CopilotSeatDetailsType]] + allowed_port_privacy_settings: NotRequired[Union[List[str], None]] __all__ = ( - "CopilotSeatDetailsType", - "OrganizationType", - "OrganizationPropPlanType", - "OrgsOrgCopilotBillingSeatsGetResponse200Type", + "CodespaceType", + "CodespacePropGitStatusType", + "CodespacePropRuntimeConstraintsType", ) 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 bb2c41927..47e387234 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0095.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0095.py @@ -9,29 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union from typing_extensions import TypedDict, NotRequired -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_0096.py b/githubkit/versions/ghec_v2022_11_28/types/group_0096.py index 00773ec29..29ee61aee 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0096.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0096.py @@ -9,17 +9,42 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrganizationCustomRepositoryRoleCreateSchemaType(TypedDict): - """OrganizationCustomRepositoryRoleCreateSchema""" +class CopilotOrganizationDetailsType(TypedDict): + """Copilot Business 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 subscription. + """ + seat_breakdown: CopilotSeatBreakdownType + public_code_suggestions: Literal["allow", "block", "unconfigured", "unknown"] + ide_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + platform_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + cli: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + seat_management_setting: Literal[ + "assign_all", "assign_selected", "disabled", "unconfigured" + ] -__all__ = ("OrganizationCustomRepositoryRoleCreateSchemaType",) + +class CopilotSeatBreakdownType(TypedDict): + """Copilot Business Seat Breakdown + + The breakdown of Copilot Business seats for the organization. + """ + + total: NotRequired[int] + added_this_cycle: NotRequired[int] + pending_cancellation: NotRequired[int] + pending_invitation: NotRequired[int] + active_this_cycle: NotRequired[int] + inactive_this_cycle: NotRequired[int] + + +__all__ = ( + "CopilotOrganizationDetailsType", + "CopilotSeatBreakdownType", +) 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 b9cb739e1..bb2c41927 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0097.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0097.py @@ -9,17 +9,29 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import List, Union from typing_extensions import TypedDict, NotRequired -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_0098.py b/githubkit/versions/ghec_v2022_11_28/types/group_0098.py index fb3981a7a..00773ec29 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0098.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0098.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -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_0099.py b/githubkit/versions/ghec_v2022_11_28/types/group_0099.py index 7c3f4ccaa..b9cb739e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0099.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0099.py @@ -9,31 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0079 import MinimalRepositoryType +class OrganizationCustomRepositoryRoleUpdateSchemaType(TypedDict): + """OrganizationCustomRepositoryRoleUpdateSchema""" -class PackageType(TypedDict): - """Package + name: NotRequired[str] + description: NotRequired[Union[str, None]] + base_role: NotRequired[Literal["read", "triage", "write", "maintain"]] + permissions: NotRequired[List[str]] - A software package - """ - id: int - name: str - package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] - url: str - html_url: str - version_count: int - visibility: Literal["private", "public"] - owner: NotRequired[Union[None, SimpleUserType]] - repository: NotRequired[Union[None, MinimalRepositoryType]] - created_at: datetime - updated_at: datetime - - -__all__ = ("PackageType",) +__all__ = ("OrganizationCustomRepositoryRoleUpdateSchemaType",) 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 16337b721..fb3981a7a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0100.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0100.py @@ -9,41 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ExternalGroupType(TypedDict): - """ExternalGroup +class DependabotPublicKeyType(TypedDict): + """DependabotPublicKey - Information about an external group's usage and its members + The public key used for setting Dependabot Secrets. """ - group_id: int - group_name: str - updated_at: NotRequired[str] - teams: List[ExternalGroupPropTeamsItemsType] - members: List[ExternalGroupPropMembersItemsType] + key_id: str + key: str -class ExternalGroupPropTeamsItemsType(TypedDict): - """ExternalGroupPropTeamsItems""" - - team_id: int - team_name: str - - -class ExternalGroupPropMembersItemsType(TypedDict): - """ExternalGroupPropMembersItems""" - - member_id: int - member_login: str - member_name: str - member_email: str - - -__all__ = ( - "ExternalGroupType", - "ExternalGroupPropTeamsItemsType", - "ExternalGroupPropMembersItemsType", -) +__all__ = ("DependabotPublicKeyType",) 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 281602086..3dda38953 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0101.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0101.py @@ -9,28 +9,31 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0082 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__ = ( - "ExternalGroupsType", - "ExternalGroupsPropGroupsItemsType", -) +__all__ = ("PackageType",) 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 e3c872b4f..16337b721 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0102.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0102.py @@ -9,30 +9,41 @@ from __future__ import annotations -from typing import Union +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0001 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__ = ( + "ExternalGroupType", + "ExternalGroupPropTeamsItemsType", + "ExternalGroupPropMembersItemsType", +) 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 1613d4046..281602086 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0103.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0103.py @@ -9,17 +9,28 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -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__ = ( + "ExternalGroupsType", + "ExternalGroupsPropGroupsItemsType", +) 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 396656d86..e3c872b4f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0104.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0104.py @@ -9,40 +9,30 @@ from __future__ import annotations -from typing import List -from datetime import datetime +from typing import Union from typing_extensions import TypedDict, NotRequired +from .group_0001 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__ = ( - "OrgHookType", - "OrgHookPropConfigType", -) + 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_0105.py b/githubkit/versions/ghec_v2022_11_28/types/group_0105.py index a4c0e06b8..1613d4046 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0105.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0105.py @@ -9,20 +9,17 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime from typing_extensions import TypedDict -class InteractionLimitResponseType(TypedDict): - """Interaction Limits +class RepositoryFineGrainedPermissionType(TypedDict): + """Repository Fine-Grained Permission - Interaction limit settings. + A fine-grained permission that protects repository resources. """ - limit: Literal["existing_users", "contributors_only", "collaborators_only"] - origin: str - expires_at: datetime + name: str + description: str -__all__ = ("InteractionLimitResponseType",) +__all__ = ("RepositoryFineGrainedPermissionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0106.py b/githubkit/versions/ghec_v2022_11_28/types/group_0106.py index 10d54efb7..396656d86 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0106.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0106.py @@ -9,20 +9,40 @@ from __future__ import annotations -from typing import Literal +from typing import List +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class InteractionLimitType(TypedDict): - """Interaction Restrictions +class OrgHookType(TypedDict): + """Org Hook - Limit interactions to a specific type of user for a specified duration + Org Hook """ - limit: Literal["existing_users", "contributors_only", "collaborators_only"] - expiry: NotRequired[ - Literal["one_day", "three_days", "one_week", "one_month", "six_months"] - ] + id: int + url: str + ping_url: str + deliveries_url: NotRequired[str] + name: str + events: List[str] + active: bool + config: OrgHookPropConfigType + updated_at: datetime + created_at: datetime + type: str -__all__ = ("InteractionLimitType",) +class OrgHookPropConfigType(TypedDict): + """OrgHookPropConfig""" + + url: NotRequired[str] + insecure_ssl: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + + +__all__ = ( + "OrgHookType", + "OrgHookPropConfigType", +) 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 663dca6ea..a4c0e06b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0107.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0107.py @@ -9,35 +9,20 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from datetime import datetime +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType -from .group_0029 import OrganizationSimpleType +class InteractionLimitResponseType(TypedDict): + """Interaction Limits -class OrgMembershipType(TypedDict): - """Org Membership - - Org Membership + Interaction limit settings. """ - url: str - state: Literal["active", "pending"] - role: Literal["admin", "member", "billing_manager"] - organization_url: str - organization: OrganizationSimpleType - user: Union[None, SimpleUserType] - permissions: NotRequired[OrgMembershipPropPermissionsType] - - -class OrgMembershipPropPermissionsType(TypedDict): - """OrgMembershipPropPermissions""" - - can_create_repository: bool + limit: Literal["existing_users", "contributors_only", "collaborators_only"] + origin: str + expires_at: datetime -__all__ = ( - "OrgMembershipType", - "OrgMembershipPropPermissionsType", -) +__all__ = ("InteractionLimitResponseType",) 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 0659340f0..10d54efb7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0108.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0108.py @@ -9,38 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0017 import RepositoryType +class InteractionLimitType(TypedDict): + """Interaction Restrictions -class MigrationType(TypedDict): - """Migration - - A migration. + Limit interactions to a specific type of user for a specified duration """ - id: int - owner: Union[None, SimpleUserType] - guid: str - state: str - lock_repositories: bool - exclude_metadata: bool - exclude_git_data: bool - exclude_attachments: bool - exclude_releases: bool - exclude_owner_projects: bool - org_metadata_only: bool - repositories: List[RepositoryType] - url: str - created_at: datetime - updated_at: datetime - node_id: str - archive_url: NotRequired[str] - exclude: NotRequired[List[str]] - - -__all__ = ("MigrationType",) + limit: Literal["existing_users", "contributors_only", "collaborators_only"] + expiry: NotRequired[ + Literal["one_day", "three_days", "one_week", "one_month", "six_months"] + ] + + +__all__ = ("InteractionLimitType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0109.py b/githubkit/versions/ghec_v2022_11_28/types/group_0109.py index 0c71e9bd1..663dca6ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0109.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0109.py @@ -9,17 +9,35 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0029 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"] + organization_url: str + organization: OrganizationSimpleType + user: Union[None, SimpleUserType] + permissions: NotRequired[OrgMembershipPropPermissionsType] + + +class OrgMembershipPropPermissionsType(TypedDict): + """OrgMembershipPropPermissions""" + + can_create_repository: bool -__all__ = ("OrganizationFineGrainedPermissionType",) +__all__ = ( + "OrgMembershipType", + "OrgMembershipPropPermissionsType", +) 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 3d044294e..0659340f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0110.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0110.py @@ -14,31 +14,33 @@ from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType +from .group_0017 import RepositoryType -class OrganizationRoleType(TypedDict): - """Organization Role +class MigrationType(TypedDict): + """Migration - Organization roles + A migration. """ id: int - name: str - description: NotRequired[Union[str, None]] - 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_0111.py b/githubkit/versions/ghec_v2022_11_28/types/group_0111.py index 44f48f0e8..0c71e9bd1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0111.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0111.py @@ -9,53 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class PackageVersionType(TypedDict): - """Package Version +class OrganizationFineGrainedPermissionType(TypedDict): + """Organization Fine-Grained Permission - A version of a software package + A fine-grained permission that protects organization resources. """ - id: int name: str - url: str - package_html_url: str - html_url: NotRequired[str] - license_: NotRequired[str] - description: NotRequired[str] - created_at: datetime - updated_at: datetime - deleted_at: NotRequired[datetime] - metadata: NotRequired[PackageVersionPropMetadataType] + description: str -class PackageVersionPropMetadataType(TypedDict): - """Package Version Metadata""" - - package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] - container: NotRequired[PackageVersionPropMetadataPropContainerType] - docker: NotRequired[PackageVersionPropMetadataPropDockerType] - - -class PackageVersionPropMetadataPropContainerType(TypedDict): - """Container Metadata""" - - tags: List[str] - - -class PackageVersionPropMetadataPropDockerType(TypedDict): - """Docker Metadata""" - - tag: NotRequired[List[str]] - - -__all__ = ( - "PackageVersionType", - "PackageVersionPropMetadataType", - "PackageVersionPropMetadataPropContainerType", - "PackageVersionPropMetadataPropDockerType", -) +__all__ = ("OrganizationFineGrainedPermissionType",) 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 01e8a5904..3d044294e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0112.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0112.py @@ -9,68 +9,36 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -class OrganizationProgrammaticAccessGrantRequestType(TypedDict): - """Simple Organization Programmatic Access Grant Request +class OrganizationRoleType(TypedDict): + """Organization Role - Minimal representation of an organization programmatic access grant request for - enumerations + Organization roles """ id: int - reason: Union[str, None] - owner: SimpleUserType - repository_selection: Literal["none", "all", "subset"] - repositories_url: str - permissions: OrganizationProgrammaticAccessGrantRequestPropPermissionsType - created_at: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] + name: str + description: NotRequired[Union[str, None]] + permissions: List[str] + organization: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime -class OrganizationProgrammaticAccessGrantRequestPropPermissionsType(TypedDict): - """OrganizationProgrammaticAccessGrantRequestPropPermissions +class OrgsOrgOrganizationRolesGetResponse200Type(TypedDict): + """OrgsOrgOrganizationRolesGetResponse200""" - Permissions requested, categorized by type of permission. - """ - - organization: NotRequired[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType - ] - repository: NotRequired[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType - ] - other: NotRequired[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType - ] - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType( - TypedDict -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization""" - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType( - TypedDict -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository""" - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType(TypedDict): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther""" + total_count: NotRequired[int] + roles: NotRequired[List[OrganizationRoleType]] __all__ = ( - "OrganizationProgrammaticAccessGrantRequestType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", + "OrganizationRoleType", + "OrgsOrgOrganizationRolesGetResponse200Type", ) 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 98fa79e69..2fcefb1f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0113.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0113.py @@ -9,61 +9,45 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +from .group_0047 import TeamSimpleType -class OrganizationProgrammaticAccessGrantType(TypedDict): - """Organization Programmatic Access Grant +class TeamRoleAssignmentType(TypedDict): + """A Role Assignment for a Team - Minimal representation of an organization programmatic access grant for - enumerations + The Relationship a Team has with a role. """ id: int - owner: SimpleUserType - repository_selection: Literal["none", "all", "subset"] + node_id: str + name: str + slug: str + description: Union[str, None] + privacy: NotRequired[str] + notification_setting: NotRequired[str] + permission: str + permissions: NotRequired[TeamRoleAssignmentPropPermissionsType] + url: str + html_url: str + members_url: str repositories_url: str - permissions: OrganizationProgrammaticAccessGrantPropPermissionsType - access_granted_at: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] + parent: Union[None, TeamSimpleType] -class OrganizationProgrammaticAccessGrantPropPermissionsType(TypedDict): - """OrganizationProgrammaticAccessGrantPropPermissions +class TeamRoleAssignmentPropPermissionsType(TypedDict): + """TeamRoleAssignmentPropPermissions""" - Permissions requested, categorized by type of permission. - """ - - organization: NotRequired[ - OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType - ] - repository: NotRequired[ - OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType - ] - other: NotRequired[OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType] - - -class OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType(TypedDict): - """OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization""" - - -class OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType(TypedDict): - """OrganizationProgrammaticAccessGrantPropPermissionsPropRepository""" - - -class OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType(TypedDict): - """OrganizationProgrammaticAccessGrantPropPermissionsPropOther""" + pull: bool + triage: bool + push: bool + maintain: bool + admin: bool __all__ = ( - "OrganizationProgrammaticAccessGrantType", - "OrganizationProgrammaticAccessGrantPropPermissionsType", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", - "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", + "TeamRoleAssignmentType", + "TeamRoleAssignmentPropPermissionsType", ) 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 b680f76fe..77b3d1ee0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0114.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0114.py @@ -9,34 +9,37 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class UserRoleAssignmentType(TypedDict): + """A Role Assignment for a User -class ProjectType(TypedDict): - """Project - - Projects are a way to organize columns and cards of work. + The Relationship a User has with a role. """ - owner_url: str - url: str - html_url: str - columns_url: str + name: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + login: str id: int node_id: str - name: str - body: Union[str, None] - number: int - state: str - creator: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] - private: NotRequired[bool] - - -__all__ = ("ProjectType",) + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + starred_at: NotRequired[str] + + +__all__ = ("UserRoleAssignmentType",) 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 59a58ae1b..44f48f0e8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0115.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0115.py @@ -9,25 +9,53 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgCustomPropertyType(TypedDict): - """Organization Custom Property +class PackageVersionType(TypedDict): + """Package Version - Custom property defined on an organization + A version of a software package """ - property_name: str - value_type: Literal["string", "single_select"] - required: NotRequired[bool] - default_value: NotRequired[Union[str, List[str], None]] - description: NotRequired[Union[str, None]] - allowed_values: NotRequired[Union[List[str], None]] - values_editable_by: NotRequired[ - Union[None, Literal["org_actors", "org_and_repo_actors"]] - ] + id: int + name: str + url: str + package_html_url: str + html_url: NotRequired[str] + license_: NotRequired[str] + description: NotRequired[str] + created_at: datetime + updated_at: datetime + deleted_at: NotRequired[datetime] + metadata: NotRequired[PackageVersionPropMetadataType] -__all__ = ("OrgCustomPropertyType",) +class PackageVersionPropMetadataType(TypedDict): + """Package Version Metadata""" + + package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] + container: NotRequired[PackageVersionPropMetadataPropContainerType] + docker: NotRequired[PackageVersionPropMetadataPropDockerType] + + +class PackageVersionPropMetadataPropContainerType(TypedDict): + """Container Metadata""" + + tags: List[str] + + +class PackageVersionPropMetadataPropDockerType(TypedDict): + """Docker Metadata""" + + tag: NotRequired[List[str]] + + +__all__ = ( + "PackageVersionType", + "PackageVersionPropMetadataType", + "PackageVersionPropMetadataPropContainerType", + "PackageVersionPropMetadataPropDockerType", +) 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 3bcba3460..01e8a5904 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0116.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0116.py @@ -9,18 +9,68 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class CustomPropertyValueType(TypedDict): - """Custom Property Value - Custom property name and associated value +class OrganizationProgrammaticAccessGrantRequestType(TypedDict): + """Simple Organization Programmatic Access Grant Request + + Minimal representation of an organization programmatic access grant request for + enumerations + """ + + id: int + reason: Union[str, None] + owner: SimpleUserType + repository_selection: Literal["none", "all", "subset"] + repositories_url: str + permissions: OrganizationProgrammaticAccessGrantRequestPropPermissionsType + created_at: str + token_expired: bool + token_expires_at: Union[str, None] + token_last_used_at: Union[str, None] + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsType(TypedDict): + """OrganizationProgrammaticAccessGrantRequestPropPermissions + + Permissions requested, categorized by type of permission. """ - property_name: str - value: Union[str, List[str], None] + organization: NotRequired[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType + ] + repository: NotRequired[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType + ] + other: NotRequired[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType + ] + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType( + TypedDict +): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization""" + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType( + TypedDict +): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository""" + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType(TypedDict): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther""" -__all__ = ("CustomPropertyValueType",) +__all__ = ( + "OrganizationProgrammaticAccessGrantRequestType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", +) 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 26e0658a1..98fa79e69 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0117.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0117.py @@ -9,22 +9,61 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0116 import CustomPropertyValueType +from .group_0001 import SimpleUserType -class OrgRepoCustomPropertyValuesType(TypedDict): - """Organization Repository Custom Property Values +class OrganizationProgrammaticAccessGrantType(TypedDict): + """Organization Programmatic Access Grant - List of custom property values for a repository + Minimal representation of an organization programmatic access grant for + enumerations """ - repository_id: int - repository_name: str - repository_full_name: str - properties: List[CustomPropertyValueType] + id: int + owner: SimpleUserType + repository_selection: Literal["none", "all", "subset"] + repositories_url: str + permissions: OrganizationProgrammaticAccessGrantPropPermissionsType + access_granted_at: str + token_expired: bool + token_expires_at: Union[str, None] + token_last_used_at: Union[str, None] -__all__ = ("OrgRepoCustomPropertyValuesType",) +class OrganizationProgrammaticAccessGrantPropPermissionsType(TypedDict): + """OrganizationProgrammaticAccessGrantPropPermissions + + Permissions requested, categorized by type of permission. + """ + + organization: NotRequired[ + OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType + ] + repository: NotRequired[ + OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType + ] + other: NotRequired[OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType] + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType(TypedDict): + """OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization""" + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType(TypedDict): + """OrganizationProgrammaticAccessGrantPropPermissionsPropRepository""" + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType(TypedDict): + """OrganizationProgrammaticAccessGrantPropPermissionsPropOther""" + + +__all__ = ( + "OrganizationProgrammaticAccessGrantType", + "OrganizationProgrammaticAccessGrantPropPermissionsType", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", + "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", +) 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 cac6eb986..b680f76fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0118.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0118.py @@ -9,20 +9,34 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class CodeOfConductSimpleType(TypedDict): - """Code Of Conduct Simple - Code of Conduct Simple +class ProjectType(TypedDict): + """Project + + Projects are a way to organize columns and cards of work. """ + owner_url: str url: str - key: str + html_url: str + columns_url: str + id: int + node_id: str name: str - html_url: Union[str, None] + body: Union[str, None] + number: int + state: str + creator: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] -__all__ = ("CodeOfConductSimpleType",) +__all__ = ("ProjectType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0119.py b/githubkit/versions/ghec_v2022_11_28/types/group_0119.py index e09bbd99f..6eda51fbb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0119.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0119.py @@ -9,151 +9,25 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0017 import RepositoryType -from .group_0016 import LicenseSimpleType -from .group_0078 import SecurityAndAnalysisType -from .group_0118 import CodeOfConductSimpleType +class OrgCustomPropertyType(TypedDict): + """Organization Custom Property -class FullRepositoryType(TypedDict): - """Full Repository - - Full Repository + Custom property defined on an organization """ - id: int - node_id: str - name: str - full_name: str - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: str - mirror_url: Union[str, None] - hooks_url: str - svn_url: str - homepage: Union[str, None] - language: Union[str, None] - forks_count: int - stargazers_count: int - watchers_count: int - size: int - default_branch: str - open_issues_count: int - is_template: NotRequired[bool] - topics: NotRequired[List[str]] - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_downloads: NotRequired[bool] - has_discussions: bool - archived: bool - disabled: bool - visibility: NotRequired[str] - pushed_at: datetime - created_at: datetime - updated_at: datetime - permissions: NotRequired[FullRepositoryPropPermissionsType] - allow_rebase_merge: NotRequired[bool] - template_repository: NotRequired[Union[None, RepositoryType]] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + property_name: str + value_type: Literal["string", "single_select", "multi_select", "true_false"] + required: NotRequired[bool] + default_value: NotRequired[Union[str, List[str], None]] + description: NotRequired[Union[str, None]] + allowed_values: NotRequired[Union[List[str], None]] + values_editable_by: NotRequired[ + Union[None, Literal["org_actors", "org_and_repo_actors"]] ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - subscribers_count: int - network_count: int - license_: Union[None, LicenseSimpleType] - organization: NotRequired[Union[None, SimpleUserType]] - parent: NotRequired[RepositoryType] - source: NotRequired[RepositoryType] - forks: int - master_branch: NotRequired[str] - open_issues: int - watchers: int - anonymous_access_enabled: NotRequired[bool] - code_of_conduct: NotRequired[CodeOfConductSimpleType] - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] - custom_properties: NotRequired[FullRepositoryPropCustomPropertiesType] - - -class FullRepositoryPropPermissionsType(TypedDict): - """FullRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - push: bool - triage: NotRequired[bool] - pull: bool - - -class FullRepositoryPropCustomPropertiesType(TypedDict): - """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__ = ( - "FullRepositoryType", - "FullRepositoryPropPermissionsType", - "FullRepositoryPropCustomPropertiesType", -) +__all__ = ("OrgCustomPropertyType",) 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 22ff57cc3..3bcba3460 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0120.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0120.py @@ -9,21 +9,18 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List, Union +from typing_extensions import TypedDict -class RepositoryRulesetBypassActorType(TypedDict): - """Repository Ruleset Bypass Actor +class CustomPropertyValueType(TypedDict): + """Custom Property Value - An actor that can bypass rules in a ruleset + Custom property name and associated value """ - actor_id: NotRequired[Union[int, None]] - actor_type: Literal[ - "Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey" - ] - bypass_mode: Literal["always", "pull_request"] + property_name: str + value: Union[str, List[str], None] -__all__ = ("RepositoryRulesetBypassActorType",) +__all__ = ("CustomPropertyValueType",) 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 37107dd0a..02995b17d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0121.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0121.py @@ -9,18 +9,22 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0122 import RepositoryRulesetConditionsPropRefNameType +from .group_0120 import CustomPropertyValueType -class RepositoryRulesetConditionsType(TypedDict): - """Repository ruleset conditions for ref names +class OrgRepoCustomPropertyValuesType(TypedDict): + """Organization Repository Custom Property Values - Parameters for a repository ruleset ref name condition + List of custom property values for a repository """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_id: int + repository_name: str + repository_full_name: str + properties: List[CustomPropertyValueType] -__all__ = ("RepositoryRulesetConditionsType",) +__all__ = ("OrgRepoCustomPropertyValuesType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0122.py b/githubkit/versions/ghec_v2022_11_28/types/group_0122.py index d774c8142..cac6eb986 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0122.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0122.py @@ -9,15 +9,20 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -class RepositoryRulesetConditionsPropRefNameType(TypedDict): - """RepositoryRulesetConditionsPropRefName""" +class CodeOfConductSimpleType(TypedDict): + """Code Of Conduct Simple - include: NotRequired[List[str]] - exclude: NotRequired[List[str]] + Code of Conduct Simple + """ + url: str + key: str + name: str + html_url: Union[str, None] -__all__ = ("RepositoryRulesetConditionsPropRefNameType",) + +__all__ = ("CodeOfConductSimpleType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0123.py b/githubkit/versions/ghec_v2022_11_28/types/group_0123.py index 1e25af084..812cca71e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0123.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0123.py @@ -9,22 +9,151 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0124 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, -) +from .group_0001 import SimpleUserType +from .group_0017 import RepositoryType +from .group_0016 import LicenseSimpleType +from .group_0081 import SecurityAndAnalysisType +from .group_0122 import CodeOfConductSimpleType -class RepositoryRulesetConditionsRepositoryNameTargetType(TypedDict): - """Repository ruleset conditions for repository names +class FullRepositoryType(TypedDict): + """Full Repository - Parameters for a repository name condition + Full Repository """ - repository_name: ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType - ) + id: int + node_id: str + name: str + full_name: str + owner: SimpleUserType + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[List[str]] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: NotRequired[bool] + has_discussions: bool + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: datetime + created_at: datetime + updated_at: datetime + permissions: NotRequired[FullRepositoryPropPermissionsType] + allow_rebase_merge: NotRequired[bool] + template_repository: NotRequired[Union[None, RepositoryType]] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + subscribers_count: int + network_count: int + license_: Union[None, LicenseSimpleType] + organization: NotRequired[Union[None, SimpleUserType]] + parent: NotRequired[RepositoryType] + source: NotRequired[RepositoryType] + forks: int + master_branch: NotRequired[str] + open_issues: int + watchers: int + anonymous_access_enabled: NotRequired[bool] + code_of_conduct: NotRequired[CodeOfConductSimpleType] + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] + custom_properties: NotRequired[FullRepositoryPropCustomPropertiesType] + + +class FullRepositoryPropPermissionsType(TypedDict): + """FullRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + push: bool + triage: NotRequired[bool] + pull: bool + +class FullRepositoryPropCustomPropertiesType(TypedDict): + """FullRepositoryPropCustomProperties -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetType",) + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +__all__ = ( + "FullRepositoryType", + "FullRepositoryPropPermissionsType", + "FullRepositoryPropCustomPropertiesType", +) 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 97c94cd05..22ff57cc3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0124.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0124.py @@ -9,16 +9,21 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType(TypedDict): - """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" +class RepositoryRulesetBypassActorType(TypedDict): + """Repository Ruleset Bypass Actor - include: NotRequired[List[str]] - exclude: NotRequired[List[str]] - protected: NotRequired[bool] + An actor that can bypass rules in a ruleset + """ + actor_id: NotRequired[Union[int, None]] + actor_type: Literal[ + "Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey" + ] + bypass_mode: Literal["always", "pull_request"] -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType",) + +__all__ = ("RepositoryRulesetBypassActorType",) 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 0884aa2c5..102d41a25 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0125.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0125.py @@ -9,20 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0126 import ( - RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, -) +from .group_0126 import RepositoryRulesetConditionsPropRefNameType -class RepositoryRulesetConditionsRepositoryIdTargetType(TypedDict): - """Repository ruleset conditions for repository IDs +class RepositoryRulesetConditionsType(TypedDict): + """Repository ruleset conditions for ref names - Parameters for a repository ID condition + Parameters for a repository ruleset ref name condition """ - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetType",) +__all__ = ("RepositoryRulesetConditionsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0126.py b/githubkit/versions/ghec_v2022_11_28/types/group_0126.py index ed3567648..d774c8142 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0126.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0126.py @@ -13,10 +13,11 @@ from typing_extensions import TypedDict, NotRequired -class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType(TypedDict): - """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" +class RepositoryRulesetConditionsPropRefNameType(TypedDict): + """RepositoryRulesetConditionsPropRefName""" - repository_ids: NotRequired[List[int]] + include: NotRequired[List[str]] + exclude: NotRequired[List[str]] -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType",) +__all__ = ("RepositoryRulesetConditionsPropRefNameType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0127.py b/githubkit/versions/ghec_v2022_11_28/types/group_0127.py index 515b27ecd..b99aa34f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0127.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0127.py @@ -12,19 +12,19 @@ from typing_extensions import TypedDict from .group_0128 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, ) -class RepositoryRulesetConditionsRepositoryPropertyTargetType(TypedDict): - """Repository ruleset conditions for repository properties +class RepositoryRulesetConditionsRepositoryNameTargetType(TypedDict): + """Repository ruleset conditions for repository names - Parameters for a repository property condition + Parameters for a repository name condition """ - repository_property: ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType + repository_name: ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType ) -__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTargetType",) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0128.py b/githubkit/versions/ghec_v2022_11_28/types/group_0128.py index dd7d3ac84..97c94cd05 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0128.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0128.py @@ -13,26 +13,12 @@ from typing_extensions import TypedDict, NotRequired -class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType( - TypedDict -): - """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" +class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType(TypedDict): + """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" - include: NotRequired[List[RepositoryRulesetConditionsRepositoryPropertySpecType]] - exclude: NotRequired[List[RepositoryRulesetConditionsRepositoryPropertySpecType]] + include: NotRequired[List[str]] + exclude: NotRequired[List[str]] + protected: NotRequired[bool] -class RepositoryRulesetConditionsRepositoryPropertySpecType(TypedDict): - """Repository ruleset property targeting definition - - Parameters for a targeting a repository property - """ - - name: str - property_values: List[str] - - -__all__ = ( - "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", - "RepositoryRulesetConditionsRepositoryPropertySpecType", -) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType",) 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 659dd16b9..680d1a0df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0129.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0129.py @@ -9,24 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0122 import RepositoryRulesetConditionsPropRefNameType -from .group_0124 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, +from .group_0130 import ( + RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, ) -class OrgRulesetConditionsOneof0Type(TypedDict): - """repository_name_and_ref_name +class RepositoryRulesetConditionsRepositoryIdTargetType(TypedDict): + """Repository ruleset conditions for repository IDs - Conditions to target repositories by name and refs by name + Parameters for a repository ID condition """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - repository_name: ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType - ) + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType -__all__ = ("OrgRulesetConditionsOneof0Type",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0130.py b/githubkit/versions/ghec_v2022_11_28/types/group_0130.py index 5ee503115..ed3567648 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0130.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0130.py @@ -9,22 +9,14 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0122 import RepositoryRulesetConditionsPropRefNameType -from .group_0126 import ( - RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, -) +class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType(TypedDict): + """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" -class OrgRulesetConditionsOneof1Type(TypedDict): - """repository_id_and_ref_name + repository_ids: NotRequired[List[int]] - Conditions to target repositories by id and refs by name - """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType - - -__all__ = ("OrgRulesetConditionsOneof1Type",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0131.py b/githubkit/versions/ghec_v2022_11_28/types/group_0131.py index 119c7b193..12dc7952f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0131.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0131.py @@ -9,24 +9,22 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0122 import RepositoryRulesetConditionsPropRefNameType -from .group_0128 import ( +from .group_0132 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, ) -class OrgRulesetConditionsOneof2Type(TypedDict): - """repository_property_and_ref_name +class RepositoryRulesetConditionsRepositoryPropertyTargetType(TypedDict): + """Repository ruleset conditions for repository properties - Conditions to target repositories by property and refs by name + Parameters for a repository property condition """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] repository_property: ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType ) -__all__ = ("OrgRulesetConditionsOneof2Type",) +__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTargetType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0132.py b/githubkit/versions/ghec_v2022_11_28/types/group_0132.py index 1e2c138ca..0f26d88f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0132.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0132.py @@ -13,87 +13,27 @@ from typing_extensions import TypedDict, NotRequired -class RepositoryRuleCreationType(TypedDict): - """creation +class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType( + TypedDict +): + """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" - Only allow users with bypass permission to create matching refs. - """ - - type: Literal["creation"] - - -class RepositoryRuleDeletionType(TypedDict): - """deletion - - Only allow users with bypass permissions to delete matching refs. - """ - - type: Literal["deletion"] - - -class RepositoryRuleRequiredSignaturesType(TypedDict): - """required_signatures - - Commits pushed to matching refs must have verified signatures. - """ - - type: Literal["required_signatures"] - - -class RepositoryRuleNonFastForwardType(TypedDict): - """non_fast_forward - - Prevent users with push access from force pushing to refs. - """ - - type: Literal["non_fast_forward"] + include: NotRequired[List[RepositoryRulesetConditionsRepositoryPropertySpecType]] + exclude: NotRequired[List[RepositoryRulesetConditionsRepositoryPropertySpecType]] -class RepositoryRuleOneof14Type(TypedDict): - """file_path_restriction +class RepositoryRulesetConditionsRepositoryPropertySpecType(TypedDict): + """Repository ruleset property targeting definition - Note: file_path_restriction is in beta and subject to change. - - Prevent commits that include changes in specified file paths from being pushed - to the commit graph. + Parameters for a targeting a repository property """ - type: Literal["file_path_restriction"] - parameters: NotRequired[RepositoryRuleOneof14PropParametersType] - - -class RepositoryRuleOneof14PropParametersType(TypedDict): - """RepositoryRuleOneof14PropParameters""" - - restricted_file_paths: List[str] - - -class RepositoryRuleOneof16Type(TypedDict): - """file_extension_restriction - - Note: file_extension_restriction is in beta and subject to change. - - Prevent commits that include files with specified file extensions from being - pushed to the commit graph. - """ - - type: Literal["file_extension_restriction"] - parameters: NotRequired[RepositoryRuleOneof16PropParametersType] - - -class RepositoryRuleOneof16PropParametersType(TypedDict): - """RepositoryRuleOneof16PropParameters""" - - restricted_file_extensions: List[str] + name: str + property_values: List[str] + source: NotRequired[Literal["custom", "system"]] __all__ = ( - "RepositoryRuleCreationType", - "RepositoryRuleDeletionType", - "RepositoryRuleRequiredSignaturesType", - "RepositoryRuleNonFastForwardType", - "RepositoryRuleOneof14Type", - "RepositoryRuleOneof14PropParametersType", - "RepositoryRuleOneof16Type", - "RepositoryRuleOneof16PropParametersType", + "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", + "RepositoryRulesetConditionsRepositoryPropertySpecType", ) 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 f32c228fa..f430d6e85 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0133.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0133.py @@ -9,20 +9,24 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0134 import RepositoryRuleUpdatePropParametersType +from .group_0126 import RepositoryRulesetConditionsPropRefNameType +from .group_0128 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, +) -class RepositoryRuleUpdateType(TypedDict): - """update +class OrgRulesetConditionsOneof0Type(TypedDict): + """repository_name_and_ref_name - Only allow users with bypass permission to update matching refs. + Conditions to target repositories by name and refs by name """ - type: Literal["update"] - parameters: NotRequired[RepositoryRuleUpdatePropParametersType] + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_name: ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType + ) -__all__ = ("RepositoryRuleUpdateType",) +__all__ = ("OrgRulesetConditionsOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0134.py b/githubkit/versions/ghec_v2022_11_28/types/group_0134.py index 4de519b89..23ca711dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0134.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0134.py @@ -9,13 +9,22 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired +from .group_0126 import RepositoryRulesetConditionsPropRefNameType +from .group_0130 import ( + RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, +) -class RepositoryRuleUpdatePropParametersType(TypedDict): - """RepositoryRuleUpdatePropParameters""" - update_allows_fetch_and_merge: bool +class OrgRulesetConditionsOneof1Type(TypedDict): + """repository_id_and_ref_name + Conditions to target repositories by id and refs by name + """ -__all__ = ("RepositoryRuleUpdatePropParametersType",) + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType + + +__all__ = ("OrgRulesetConditionsOneof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0135.py b/githubkit/versions/ghec_v2022_11_28/types/group_0135.py index 43bd0e4a4..bf7dd9965 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0135.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0135.py @@ -9,40 +9,24 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0126 import RepositoryRulesetConditionsPropRefNameType +from .group_0132 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, +) -class RepositoryRuleRequiredLinearHistoryType(TypedDict): - """required_linear_history - - Prevent merge commits from being pushed to matching refs. - """ - - type: Literal["required_linear_history"] - - -class RepositoryRuleOneof15Type(TypedDict): - """max_file_path_length - Note: max_file_path_length is in beta and subject to change. +class OrgRulesetConditionsOneof2Type(TypedDict): + """repository_property_and_ref_name - Prevent commits that include file paths that exceed a specified character limit - from being pushed to the commit graph. + Conditions to target repositories by property and refs by name """ - type: Literal["max_file_path_length"] - parameters: NotRequired[RepositoryRuleOneof15PropParametersType] - - -class RepositoryRuleOneof15PropParametersType(TypedDict): - """RepositoryRuleOneof15PropParameters""" + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_property: ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType + ) - max_file_path_length: int - -__all__ = ( - "RepositoryRuleRequiredLinearHistoryType", - "RepositoryRuleOneof15Type", - "RepositoryRuleOneof15PropParametersType", -) +__all__ = ("OrgRulesetConditionsOneof2Type",) 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 cface87dc..1e2c138ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0136.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0136.py @@ -9,21 +9,91 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0137 import RepositoryRuleRequiredDeploymentsPropParametersType +class RepositoryRuleCreationType(TypedDict): + """creation -class RepositoryRuleRequiredDeploymentsType(TypedDict): - """required_deployments + Only allow users with bypass permission to create matching refs. + """ + + type: Literal["creation"] + + +class RepositoryRuleDeletionType(TypedDict): + """deletion + + Only allow users with bypass permissions to delete matching refs. + """ + + type: Literal["deletion"] + + +class RepositoryRuleRequiredSignaturesType(TypedDict): + """required_signatures + + Commits pushed to matching refs must have verified signatures. + """ + + type: Literal["required_signatures"] + + +class RepositoryRuleNonFastForwardType(TypedDict): + """non_fast_forward + + Prevent users with push access from force pushing to refs. + """ - Choose which environments must be successfully deployed to before refs can be - pushed into a ref that matches this rule. + type: Literal["non_fast_forward"] + + +class RepositoryRuleOneof14Type(TypedDict): + """file_path_restriction + + Note: file_path_restriction is in beta and subject to change. + + Prevent commits that include changes in specified file paths from being pushed + to the commit graph. + """ + + type: Literal["file_path_restriction"] + parameters: NotRequired[RepositoryRuleOneof14PropParametersType] + + +class RepositoryRuleOneof14PropParametersType(TypedDict): + """RepositoryRuleOneof14PropParameters""" + + restricted_file_paths: List[str] + + +class RepositoryRuleOneof16Type(TypedDict): + """file_extension_restriction + + Note: file_extension_restriction is in beta and subject to change. + + Prevent commits that include files with specified file extensions from being + pushed to the commit graph. """ - type: Literal["required_deployments"] - parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] + type: Literal["file_extension_restriction"] + parameters: NotRequired[RepositoryRuleOneof16PropParametersType] + + +class RepositoryRuleOneof16PropParametersType(TypedDict): + """RepositoryRuleOneof16PropParameters""" + + restricted_file_extensions: List[str] -__all__ = ("RepositoryRuleRequiredDeploymentsType",) +__all__ = ( + "RepositoryRuleCreationType", + "RepositoryRuleDeletionType", + "RepositoryRuleRequiredSignaturesType", + "RepositoryRuleNonFastForwardType", + "RepositoryRuleOneof14Type", + "RepositoryRuleOneof14PropParametersType", + "RepositoryRuleOneof16Type", + "RepositoryRuleOneof16PropParametersType", +) 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 dea611c2b..2ae5834d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0137.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0137.py @@ -9,14 +9,20 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_0138 import RepositoryRuleUpdatePropParametersType -class RepositoryRuleRequiredDeploymentsPropParametersType(TypedDict): - """RepositoryRuleRequiredDeploymentsPropParameters""" - required_deployment_environments: List[str] +class RepositoryRuleUpdateType(TypedDict): + """update + Only allow users with bypass permission to update matching refs. + """ -__all__ = ("RepositoryRuleRequiredDeploymentsPropParametersType",) + type: Literal["update"] + parameters: NotRequired[RepositoryRuleUpdatePropParametersType] + + +__all__ = ("RepositoryRuleUpdateType",) 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 ae5ff447c..4de519b89 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0138.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0138.py @@ -9,21 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0139 import RepositoryRulePullRequestPropParametersType +class RepositoryRuleUpdatePropParametersType(TypedDict): + """RepositoryRuleUpdatePropParameters""" -class RepositoryRulePullRequestType(TypedDict): - """pull_request + update_allows_fetch_and_merge: bool - Require all commits be made to a non-target branch and submitted via a pull - request before they can be merged. - """ - type: Literal["pull_request"] - parameters: NotRequired[RepositoryRulePullRequestPropParametersType] - - -__all__ = ("RepositoryRulePullRequestType",) +__all__ = ("RepositoryRuleUpdatePropParametersType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0139.py b/githubkit/versions/ghec_v2022_11_28/types/group_0139.py index b2acbf90f..43bd0e4a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0139.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0139.py @@ -9,17 +9,40 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class RepositoryRulePullRequestPropParametersType(TypedDict): - """RepositoryRulePullRequestPropParameters""" +class RepositoryRuleRequiredLinearHistoryType(TypedDict): + """required_linear_history - dismiss_stale_reviews_on_push: bool - require_code_owner_review: bool - require_last_push_approval: bool - required_approving_review_count: int - required_review_thread_resolution: bool + Prevent merge commits from being pushed to matching refs. + """ + type: Literal["required_linear_history"] -__all__ = ("RepositoryRulePullRequestPropParametersType",) + +class RepositoryRuleOneof15Type(TypedDict): + """max_file_path_length + + Note: max_file_path_length is in beta and subject to change. + + Prevent commits that include file paths that exceed a specified character limit + from being pushed to the commit graph. + """ + + type: Literal["max_file_path_length"] + parameters: NotRequired[RepositoryRuleOneof15PropParametersType] + + +class RepositoryRuleOneof15PropParametersType(TypedDict): + """RepositoryRuleOneof15PropParameters""" + + max_file_path_length: int + + +__all__ = ( + "RepositoryRuleRequiredLinearHistoryType", + "RepositoryRuleOneof15Type", + "RepositoryRuleOneof15PropParametersType", +) 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 420c4a5f9..ab91105a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0140.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0140.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0141 import RepositoryRuleRequiredStatusChecksPropParametersType +from .group_0141 import RepositoryRuleRequiredDeploymentsPropParametersType -class RepositoryRuleRequiredStatusChecksType(TypedDict): - """required_status_checks +class RepositoryRuleRequiredDeploymentsType(TypedDict): + """required_deployments - Choose which status checks must pass before the ref is updated. When enabled, - commits must first be pushed to another ref where the checks pass. + Choose which environments must be successfully deployed to before refs can be + pushed into a ref that matches this rule. """ - type: Literal["required_status_checks"] - parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] + type: Literal["required_deployments"] + parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] -__all__ = ("RepositoryRuleRequiredStatusChecksType",) +__all__ = ("RepositoryRuleRequiredDeploymentsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0141.py b/githubkit/versions/ghec_v2022_11_28/types/group_0141.py index 0c90b2831..dea611c2b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0141.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0141.py @@ -10,27 +10,13 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class RepositoryRuleRequiredStatusChecksPropParametersType(TypedDict): - """RepositoryRuleRequiredStatusChecksPropParameters""" +class RepositoryRuleRequiredDeploymentsPropParametersType(TypedDict): + """RepositoryRuleRequiredDeploymentsPropParameters""" - required_status_checks: List[RepositoryRuleParamsStatusCheckConfigurationType] - strict_required_status_checks_policy: bool + required_deployment_environments: List[str] -class RepositoryRuleParamsStatusCheckConfigurationType(TypedDict): - """StatusCheckConfiguration - - Required status check - """ - - context: str - integration_id: NotRequired[int] - - -__all__ = ( - "RepositoryRuleRequiredStatusChecksPropParametersType", - "RepositoryRuleParamsStatusCheckConfigurationType", -) +__all__ = ("RepositoryRuleRequiredDeploymentsPropParametersType",) 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 106d686c9..7c151bd2a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0142.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0142.py @@ -12,17 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0143 import RepositoryRuleCommitMessagePatternPropParametersType +from .group_0143 import RepositoryRulePullRequestPropParametersType -class RepositoryRuleCommitMessagePatternType(TypedDict): - """commit_message_pattern +class RepositoryRulePullRequestType(TypedDict): + """pull_request - Parameters to be used for the commit_message_pattern rule + Require all commits be made to a non-target branch and submitted via a pull + request before they can be merged. """ - type: Literal["commit_message_pattern"] - parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] + type: Literal["pull_request"] + parameters: NotRequired[RepositoryRulePullRequestPropParametersType] -__all__ = ("RepositoryRuleCommitMessagePatternType",) +__all__ = ("RepositoryRulePullRequestType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0143.py b/githubkit/versions/ghec_v2022_11_28/types/group_0143.py index 097d2b1ad..b2acbf90f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0143.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0143.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class RepositoryRuleCommitMessagePatternPropParametersType(TypedDict): - """RepositoryRuleCommitMessagePatternPropParameters""" +class RepositoryRulePullRequestPropParametersType(TypedDict): + """RepositoryRulePullRequestPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str + dismiss_stale_reviews_on_push: bool + require_code_owner_review: bool + require_last_push_approval: bool + required_approving_review_count: int + required_review_thread_resolution: bool -__all__ = ("RepositoryRuleCommitMessagePatternPropParametersType",) +__all__ = ("RepositoryRulePullRequestPropParametersType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0144.py b/githubkit/versions/ghec_v2022_11_28/types/group_0144.py index 69b3d4954..5c13cde32 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0144.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0144.py @@ -12,17 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0145 import RepositoryRuleCommitAuthorEmailPatternPropParametersType +from .group_0145 import RepositoryRuleRequiredStatusChecksPropParametersType -class RepositoryRuleCommitAuthorEmailPatternType(TypedDict): - """commit_author_email_pattern +class RepositoryRuleRequiredStatusChecksType(TypedDict): + """required_status_checks - Parameters to be used for the commit_author_email_pattern rule + Choose which status checks must pass before the ref is updated. When enabled, + commits must first be pushed to another ref where the checks pass. """ - type: Literal["commit_author_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] + type: Literal["required_status_checks"] + parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] -__all__ = ("RepositoryRuleCommitAuthorEmailPatternType",) +__all__ = ("RepositoryRuleRequiredStatusChecksType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0145.py b/githubkit/versions/ghec_v2022_11_28/types/group_0145.py index 65503cc26..0c90b2831 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0145.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0145.py @@ -9,17 +9,28 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class RepositoryRuleCommitAuthorEmailPatternPropParametersType(TypedDict): - """RepositoryRuleCommitAuthorEmailPatternPropParameters""" +class RepositoryRuleRequiredStatusChecksPropParametersType(TypedDict): + """RepositoryRuleRequiredStatusChecksPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str + required_status_checks: List[RepositoryRuleParamsStatusCheckConfigurationType] + strict_required_status_checks_policy: bool -__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",) +class RepositoryRuleParamsStatusCheckConfigurationType(TypedDict): + """StatusCheckConfiguration + + Required status check + """ + + context: str + integration_id: NotRequired[int] + + +__all__ = ( + "RepositoryRuleRequiredStatusChecksPropParametersType", + "RepositoryRuleParamsStatusCheckConfigurationType", +) 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 9297bb2a0..24152735e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0146.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0146.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0147 import RepositoryRuleCommitterEmailPatternPropParametersType +from .group_0147 import RepositoryRuleCommitMessagePatternPropParametersType -class RepositoryRuleCommitterEmailPatternType(TypedDict): - """committer_email_pattern +class RepositoryRuleCommitMessagePatternType(TypedDict): + """commit_message_pattern - Parameters to be used for the committer_email_pattern rule + Parameters to be used for the commit_message_pattern rule """ - type: Literal["committer_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] + type: Literal["commit_message_pattern"] + parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] -__all__ = ("RepositoryRuleCommitterEmailPatternType",) +__all__ = ("RepositoryRuleCommitMessagePatternType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0147.py b/githubkit/versions/ghec_v2022_11_28/types/group_0147.py index 6ca4bc8f3..097d2b1ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0147.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0147.py @@ -13,8 +13,8 @@ from typing_extensions import TypedDict, NotRequired -class RepositoryRuleCommitterEmailPatternPropParametersType(TypedDict): - """RepositoryRuleCommitterEmailPatternPropParameters""" +class RepositoryRuleCommitMessagePatternPropParametersType(TypedDict): + """RepositoryRuleCommitMessagePatternPropParameters""" name: NotRequired[str] negate: NotRequired[bool] @@ -22,4 +22,4 @@ class RepositoryRuleCommitterEmailPatternPropParametersType(TypedDict): pattern: str -__all__ = ("RepositoryRuleCommitterEmailPatternPropParametersType",) +__all__ = ("RepositoryRuleCommitMessagePatternPropParametersType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0148.py b/githubkit/versions/ghec_v2022_11_28/types/group_0148.py index b69b7c072..e723f7d77 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0148.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0148.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0149 import RepositoryRuleBranchNamePatternPropParametersType +from .group_0149 import RepositoryRuleCommitAuthorEmailPatternPropParametersType -class RepositoryRuleBranchNamePatternType(TypedDict): - """branch_name_pattern +class RepositoryRuleCommitAuthorEmailPatternType(TypedDict): + """commit_author_email_pattern - Parameters to be used for the branch_name_pattern rule + Parameters to be used for the commit_author_email_pattern rule """ - type: Literal["branch_name_pattern"] - parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] + type: Literal["commit_author_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] -__all__ = ("RepositoryRuleBranchNamePatternType",) +__all__ = ("RepositoryRuleCommitAuthorEmailPatternType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0149.py b/githubkit/versions/ghec_v2022_11_28/types/group_0149.py index 6785aebe5..65503cc26 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0149.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0149.py @@ -13,8 +13,8 @@ from typing_extensions import TypedDict, NotRequired -class RepositoryRuleBranchNamePatternPropParametersType(TypedDict): - """RepositoryRuleBranchNamePatternPropParameters""" +class RepositoryRuleCommitAuthorEmailPatternPropParametersType(TypedDict): + """RepositoryRuleCommitAuthorEmailPatternPropParameters""" name: NotRequired[str] negate: NotRequired[bool] @@ -22,4 +22,4 @@ class RepositoryRuleBranchNamePatternPropParametersType(TypedDict): pattern: str -__all__ = ("RepositoryRuleBranchNamePatternPropParametersType",) +__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0150.py b/githubkit/versions/ghec_v2022_11_28/types/group_0150.py index f99b3c4d2..b43be45e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0150.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0150.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0151 import RepositoryRuleTagNamePatternPropParametersType +from .group_0151 import RepositoryRuleCommitterEmailPatternPropParametersType -class RepositoryRuleTagNamePatternType(TypedDict): - """tag_name_pattern +class RepositoryRuleCommitterEmailPatternType(TypedDict): + """committer_email_pattern - Parameters to be used for the tag_name_pattern rule + Parameters to be used for the committer_email_pattern rule """ - type: Literal["tag_name_pattern"] - parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] + type: Literal["committer_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] -__all__ = ("RepositoryRuleTagNamePatternType",) +__all__ = ("RepositoryRuleCommitterEmailPatternType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0151.py b/githubkit/versions/ghec_v2022_11_28/types/group_0151.py index 9b6b95d4b..6ca4bc8f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0151.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0151.py @@ -13,8 +13,8 @@ from typing_extensions import TypedDict, NotRequired -class RepositoryRuleTagNamePatternPropParametersType(TypedDict): - """RepositoryRuleTagNamePatternPropParameters""" +class RepositoryRuleCommitterEmailPatternPropParametersType(TypedDict): + """RepositoryRuleCommitterEmailPatternPropParameters""" name: NotRequired[str] negate: NotRequired[bool] @@ -22,4 +22,4 @@ class RepositoryRuleTagNamePatternPropParametersType(TypedDict): pattern: str -__all__ = ("RepositoryRuleTagNamePatternPropParametersType",) +__all__ = ("RepositoryRuleCommitterEmailPatternPropParametersType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0152.py b/githubkit/versions/ghec_v2022_11_28/types/group_0152.py index 30301fe0d..fa6583970 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0152.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0152.py @@ -9,17 +9,20 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0153 import RepositoryRuleBranchNamePatternPropParametersType -class RepositoryRuleParamsRestrictedCommitsType(TypedDict): - """RestrictedCommits - Restricted commit +class RepositoryRuleBranchNamePatternType(TypedDict): + """branch_name_pattern + + Parameters to be used for the branch_name_pattern rule """ - oid: str - reason: NotRequired[str] + type: Literal["branch_name_pattern"] + parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] -__all__ = ("RepositoryRuleParamsRestrictedCommitsType",) +__all__ = ("RepositoryRuleBranchNamePatternType",) 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 4fc8361cf..6785aebe5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0153.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0153.py @@ -12,18 +12,14 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0154 import RepositoryRuleWorkflowsPropParametersType +class RepositoryRuleBranchNamePatternPropParametersType(TypedDict): + """RepositoryRuleBranchNamePatternPropParameters""" -class RepositoryRuleWorkflowsType(TypedDict): - """workflows + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str - Require all changes made to a targeted branch to pass the specified workflows - before they can be merged. - """ - type: Literal["workflows"] - parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] - - -__all__ = ("RepositoryRuleWorkflowsType",) +__all__ = ("RepositoryRuleBranchNamePatternPropParametersType",) 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 a3dc145bb..0d8093d11 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0154.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0154.py @@ -9,29 +9,20 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0155 import RepositoryRuleTagNamePatternPropParametersType -class RepositoryRuleWorkflowsPropParametersType(TypedDict): - """RepositoryRuleWorkflowsPropParameters""" - workflows: List[RepositoryRuleParamsWorkflowFileReferenceType] +class RepositoryRuleTagNamePatternType(TypedDict): + """tag_name_pattern - -class RepositoryRuleParamsWorkflowFileReferenceType(TypedDict): - """WorkflowFileReference - - A workflow that must run for this rule to pass + Parameters to be used for the tag_name_pattern rule """ - path: str - ref: NotRequired[str] - repository_id: int - sha: NotRequired[str] + type: Literal["tag_name_pattern"] + parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] -__all__ = ( - "RepositoryRuleWorkflowsPropParametersType", - "RepositoryRuleParamsWorkflowFileReferenceType", -) +__all__ = ("RepositoryRuleTagNamePatternType",) 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 10b8436f3..9b6b95d4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0155.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0155.py @@ -12,19 +12,14 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0156 import RepositoryRuleCodeScanningPropParametersType +class RepositoryRuleTagNamePatternPropParametersType(TypedDict): + """RepositoryRuleTagNamePatternPropParameters""" -class RepositoryRuleCodeScanningType(TypedDict): - """code_scanning + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str - Choose which tools must provide code scanning results before the reference is - updated. When configured, code scanning must be enabled and have results for - both the commit and the reference being updated. - """ - type: Literal["code_scanning"] - parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] - - -__all__ = ("RepositoryRuleCodeScanningType",) +__all__ = ("RepositoryRuleTagNamePatternPropParametersType",) 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 29d7bd67f..30301fe0d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0156.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0156.py @@ -9,30 +9,17 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class RepositoryRuleCodeScanningPropParametersType(TypedDict): - """RepositoryRuleCodeScanningPropParameters""" +class RepositoryRuleParamsRestrictedCommitsType(TypedDict): + """RestrictedCommits - code_scanning_tools: List[RepositoryRuleParamsCodeScanningToolType] - - -class RepositoryRuleParamsCodeScanningToolType(TypedDict): - """CodeScanningTool - - A tool that must provide code scanning results for this rule to pass. + Restricted commit """ - alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] - security_alerts_threshold: Literal[ - "none", "critical", "high_or_higher", "medium_or_higher", "all" - ] - tool: str + oid: str + reason: NotRequired[str] -__all__ = ( - "RepositoryRuleCodeScanningPropParametersType", - "RepositoryRuleParamsCodeScanningToolType", -) +__all__ = ("RepositoryRuleParamsRestrictedCommitsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0157.py b/githubkit/versions/ghec_v2022_11_28/types/group_0157.py index 7042e80b4..4939ae11a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0157.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0157.py @@ -12,27 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0158 import RepositoryRuleWorkflowsPropParametersType -class RepositoryRuleOneof17Type(TypedDict): - """max_file_size - Note: max_file_size is in beta and subject to change. +class RepositoryRuleWorkflowsType(TypedDict): + """workflows - Prevent commits that exceed a specified file size limit from being pushed to the - commit. + Require all changes made to a targeted branch to pass the specified workflows + before they can be merged. """ - type: Literal["max_file_size"] - parameters: NotRequired[RepositoryRuleOneof17PropParametersType] + type: Literal["workflows"] + parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] -class RepositoryRuleOneof17PropParametersType(TypedDict): - """RepositoryRuleOneof17PropParameters""" - - max_file_size: int - - -__all__ = ( - "RepositoryRuleOneof17Type", - "RepositoryRuleOneof17PropParametersType", -) +__all__ = ("RepositoryRuleWorkflowsType",) 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 4cb42685f..a3dc145bb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0158.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0158.py @@ -9,120 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0133 import RepositoryRuleUpdateType -from .group_0157 import RepositoryRuleOneof17Type -from .group_0153 import RepositoryRuleWorkflowsType -from .group_0138 import RepositoryRulePullRequestType -from .group_0129 import OrgRulesetConditionsOneof0Type -from .group_0130 import OrgRulesetConditionsOneof1Type -from .group_0131 import OrgRulesetConditionsOneof2Type -from .group_0155 import RepositoryRuleCodeScanningType -from .group_0121 import RepositoryRulesetConditionsType -from .group_0120 import RepositoryRulesetBypassActorType -from .group_0150 import RepositoryRuleTagNamePatternType -from .group_0148 import RepositoryRuleBranchNamePatternType -from .group_0136 import RepositoryRuleRequiredDeploymentsType -from .group_0140 import RepositoryRuleRequiredStatusChecksType -from .group_0142 import RepositoryRuleCommitMessagePatternType -from .group_0146 import RepositoryRuleCommitterEmailPatternType -from .group_0144 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0135 import ( - RepositoryRuleOneof15Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0132 import ( - RepositoryRuleOneof14Type, - RepositoryRuleOneof16Type, - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) - - -class RepositoryRulesetType(TypedDict): - """Repository ruleset - - A set of rules to apply when specified conditions are met. - """ - id: int - name: str - target: NotRequired[Literal["branch", "tag", "push"]] - source_type: NotRequired[Literal["Repository", "Organization"]] - 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, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] +class RepositoryRuleWorkflowsPropParametersType(TypedDict): + """RepositoryRuleWorkflowsPropParameters""" + workflows: List[RepositoryRuleParamsWorkflowFileReferenceType] -class RepositoryRulesetPropLinksType(TypedDict): - """RepositoryRulesetPropLinks""" - self_: NotRequired[RepositoryRulesetPropLinksPropSelfType] - html: NotRequired[RepositoryRulesetPropLinksPropHtmlType] +class RepositoryRuleParamsWorkflowFileReferenceType(TypedDict): + """WorkflowFileReference + A workflow that must run for this rule to pass + """ -class RepositoryRulesetPropLinksPropSelfType(TypedDict): - """RepositoryRulesetPropLinksPropSelf""" - - href: NotRequired[str] - - -class RepositoryRulesetPropLinksPropHtmlType(TypedDict): - """RepositoryRulesetPropLinksPropHtml""" - - href: NotRequired[str] + path: str + ref: NotRequired[str] + repository_id: int + sha: NotRequired[str] __all__ = ( - "RepositoryRulesetType", - "RepositoryRulesetPropLinksType", - "RepositoryRulesetPropLinksPropSelfType", - "RepositoryRulesetPropLinksPropHtmlType", + "RepositoryRuleWorkflowsPropParametersType", + "RepositoryRuleParamsWorkflowFileReferenceType", ) 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 01706cb92..397de914d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0159.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0159.py @@ -10,24 +10,21 @@ from __future__ import annotations from typing import Literal -from datetime import datetime from typing_extensions import TypedDict, NotRequired +from .group_0160 import RepositoryRuleCodeScanningPropParametersType -class RuleSuitesItemsType(TypedDict): - """RuleSuitesItems""" - id: NotRequired[int] - actor_id: NotRequired[int] - actor_name: NotRequired[str] - before_sha: NotRequired[str] - after_sha: NotRequired[str] - ref: NotRequired[str] - repository_id: NotRequired[int] - repository_name: NotRequired[str] - pushed_at: NotRequired[datetime] - result: NotRequired[Literal["pass", "fail", "bypass"]] - evaluation_result: NotRequired[Literal["pass", "fail"]] +class RepositoryRuleCodeScanningType(TypedDict): + """code_scanning + Choose which tools must provide code scanning results before the reference is + updated. When configured, code scanning must be enabled and have results for + both the commit and the reference being updated. + """ -__all__ = ("RuleSuitesItemsType",) + type: Literal["code_scanning"] + parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + + +__all__ = ("RepositoryRuleCodeScanningType",) 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 376a8cbd4..29d7bd67f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0160.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0160.py @@ -9,51 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List, Literal +from typing_extensions import TypedDict -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[Literal["pass", "fail"]] - rule_evaluations: NotRequired[List[RuleSuitePropRuleEvaluationsItemsType]] +class RepositoryRuleCodeScanningPropParametersType(TypedDict): + """RepositoryRuleCodeScanningPropParameters""" + code_scanning_tools: List[RepositoryRuleParamsCodeScanningToolType] -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[str] +class RepositoryRuleParamsCodeScanningToolType(TypedDict): + """CodeScanningTool + A tool that must provide code scanning results for this rule to pass. + """ -class RuleSuitePropRuleEvaluationsItemsPropRuleSourceType(TypedDict): - """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" - - type: NotRequired[str] - id: NotRequired[Union[int, None]] - name: NotRequired[Union[str, None]] + 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__ = ( - "RuleSuiteType", - "RuleSuitePropRuleEvaluationsItemsType", - "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", + "RepositoryRuleCodeScanningPropParametersType", + "RepositoryRuleParamsCodeScanningToolType", ) 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 dc605167a..7042e80b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0161.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0161.py @@ -10,31 +10,29 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class RepositoryRuleOneof17Type(TypedDict): + """max_file_size -class RepositoryAdvisoryCreditType(TypedDict): - """RepositoryAdvisoryCredit + Note: max_file_size is in beta and subject to change. - A credit given to a user for a repository security advisory. + Prevent commits that exceed a specified file size limit from being pushed to the + commit. """ - user: SimpleUserType - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - state: Literal["accepted", "declined", "pending"] - - -__all__ = ("RepositoryAdvisoryCreditType",) + type: Literal["max_file_size"] + parameters: NotRequired[RepositoryRuleOneof17PropParametersType] + + +class RepositoryRuleOneof17PropParametersType(TypedDict): + """RepositoryRuleOneof17PropParameters""" + + max_file_size: int + + +__all__ = ( + "RepositoryRuleOneof17Type", + "RepositoryRuleOneof17PropParametersType", +) 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 e37822c05..3f8f546ac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0162.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0162.py @@ -13,136 +13,116 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0093 import TeamType -from .group_0001 import SimpleUserType -from .group_0161 import RepositoryAdvisoryCreditType +from .group_0137 import RepositoryRuleUpdateType +from .group_0161 import RepositoryRuleOneof17Type +from .group_0157 import RepositoryRuleWorkflowsType +from .group_0142 import RepositoryRulePullRequestType +from .group_0133 import OrgRulesetConditionsOneof0Type +from .group_0134 import OrgRulesetConditionsOneof1Type +from .group_0135 import OrgRulesetConditionsOneof2Type +from .group_0159 import RepositoryRuleCodeScanningType +from .group_0125 import RepositoryRulesetConditionsType +from .group_0124 import RepositoryRulesetBypassActorType +from .group_0154 import RepositoryRuleTagNamePatternType +from .group_0152 import RepositoryRuleBranchNamePatternType +from .group_0140 import RepositoryRuleRequiredDeploymentsType +from .group_0144 import RepositoryRuleRequiredStatusChecksType +from .group_0146 import RepositoryRuleCommitMessagePatternType +from .group_0150 import RepositoryRuleCommitterEmailPatternType +from .group_0148 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0139 import ( + RepositoryRuleOneof15Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0136 import ( + RepositoryRuleOneof14Type, + RepositoryRuleOneof16Type, + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class RepositoryAdvisoryType(TypedDict): - """RepositoryAdvisory +class RepositoryRulesetType(TypedDict): + """Repository ruleset - A repository security advisory. + A set of rules to apply when specified conditions are met. """ - 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] - 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 + id: int 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", + target: NotRequired[Literal["branch", "tag", "push"]] + source_type: NotRequired[Literal["Repository", "Organization"]] + 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, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] -class RepositoryAdvisoryVulnerabilityType(TypedDict): - """RepositoryAdvisoryVulnerability +class RepositoryRulesetPropLinksType(TypedDict): + """RepositoryRulesetPropLinks""" - A product affected by the vulnerability detailed in a repository security - advisory. - """ + self_: NotRequired[RepositoryRulesetPropLinksPropSelfType] + html: NotRequired[RepositoryRulesetPropLinksPropHtmlType] - package: Union[RepositoryAdvisoryVulnerabilityPropPackageType, None] - vulnerable_version_range: Union[str, None] - patched_versions: Union[str, None] - vulnerable_functions: Union[List[str], None] +class RepositoryRulesetPropLinksPropSelfType(TypedDict): + """RepositoryRulesetPropLinksPropSelf""" -class RepositoryAdvisoryVulnerabilityPropPackageType(TypedDict): - """RepositoryAdvisoryVulnerabilityPropPackage + href: NotRequired[str] - 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 RepositoryRulesetPropLinksPropHtmlType(TypedDict): + """RepositoryRulesetPropLinksPropHtml""" + + href: NotRequired[str] __all__ = ( - "RepositoryAdvisoryType", - "RepositoryAdvisoryPropIdentifiersItemsType", - "RepositoryAdvisoryPropSubmissionType", - "RepositoryAdvisoryPropCvssType", - "RepositoryAdvisoryPropCwesItemsType", - "RepositoryAdvisoryPropCreditsItemsType", - "RepositoryAdvisoryVulnerabilityType", - "RepositoryAdvisoryVulnerabilityPropPackageType", + "RepositoryRulesetType", + "RepositoryRulesetPropLinksType", + "RepositoryRulesetPropLinksPropSelfType", + "RepositoryRulesetPropLinksPropHtmlType", ) 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 4fa536b93..01706cb92 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0163.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0163.py @@ -9,30 +9,25 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class GroupMappingType(TypedDict): - """GroupMapping +class RuleSuitesItemsType(TypedDict): + """RuleSuitesItems""" - External Groups to be mapped to a team for membership - """ + id: NotRequired[int] + actor_id: NotRequired[int] + actor_name: NotRequired[str] + before_sha: NotRequired[str] + after_sha: NotRequired[str] + ref: NotRequired[str] + repository_id: NotRequired[int] + repository_name: NotRequired[str] + pushed_at: NotRequired[datetime] + result: NotRequired[Literal["pass", "fail", "bypass"]] + evaluation_result: NotRequired[Literal["pass", "fail"]] - 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__ = ( - "GroupMappingType", - "GroupMappingPropGroupsItemsType", -) +__all__ = ("RuleSuitesItemsType",) 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 74f220c6f..376a8cbd4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0164.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0164.py @@ -10,110 +10,50 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0092 import TeamSimpleType +class RuleSuiteType(TypedDict): + """Rule Suite -class TeamFullType(TypedDict): - """Full Team - - Groups of organization members that gives permissions on specified repositories. + Response """ - id: int - node_id: str - url: str - html_url: str - name: str - slug: str - description: Union[str, None] - privacy: NotRequired[Literal["closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - permission: str - members_url: str - repositories_url: str - parent: NotRequired[Union[None, TeamSimpleType]] - members_count: int - repos_count: int - created_at: datetime - updated_at: datetime - organization: TeamOrganizationType - ldap_dn: NotRequired[str] - - -class TeamOrganizationType(TypedDict): - """Team Organization - - Team Organization - """ + id: NotRequired[int] + actor_id: NotRequired[Union[int, None]] + actor_name: NotRequired[Union[str, None]] + before_sha: NotRequired[str] + after_sha: NotRequired[str] + ref: NotRequired[str] + repository_id: NotRequired[int] + repository_name: NotRequired[str] + pushed_at: NotRequired[datetime] + result: NotRequired[Literal["pass", "fail", "bypass"]] + evaluation_result: NotRequired[Literal["pass", "fail"]] + 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[str] + + +class RuleSuitePropRuleEvaluationsItemsPropRuleSourceType(TypedDict): + """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" - login: str - id: int - node_id: str - url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] + type: NotRequired[str] + id: NotRequired[Union[int, None]] name: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - blog: NotRequired[Union[str, None]] - location: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - twitter_username: NotRequired[Union[str, None]] - is_verified: NotRequired[bool] - has_organization_projects: bool - has_repository_projects: bool - public_repos: int - public_gists: int - followers: int - following: int - html_url: str - created_at: datetime - type: str - total_private_repos: NotRequired[int] - owned_private_repos: NotRequired[int] - private_gists: NotRequired[Union[int, None]] - disk_usage: NotRequired[Union[int, None]] - collaborators: NotRequired[Union[int, None]] - billing_email: NotRequired[Union[str, None]] - plan: NotRequired[TeamOrganizationPropPlanType] - default_repository_permission: NotRequired[Union[str, None]] - members_can_create_repositories: NotRequired[Union[bool, None]] - two_factor_requirement_enabled: NotRequired[Union[bool, None]] - members_allowed_repository_creation_type: NotRequired[str] - members_can_create_public_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[Union[bool, None]] - web_commit_signoff_required: NotRequired[bool] - updated_at: datetime - archived_at: Union[datetime, None] - - -class TeamOrganizationPropPlanType(TypedDict): - """TeamOrganizationPropPlan""" - - name: str - space: int - private_repos: int - filled_seats: NotRequired[int] - seats: NotRequired[int] __all__ = ( - "TeamFullType", - "TeamOrganizationType", - "TeamOrganizationPropPlanType", + "RuleSuiteType", + "RuleSuitePropRuleEvaluationsItemsType", + "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", ) 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 84e5fb825..dc605167a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0165.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0165.py @@ -9,39 +9,32 @@ from __future__ import annotations -from typing import Union -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict from .group_0001 import SimpleUserType -from .group_0062 import ReactionRollupType -class TeamDiscussionType(TypedDict): - """Team Discussion +class RepositoryAdvisoryCreditType(TypedDict): + """RepositoryAdvisoryCredit - A team discussion is a persistent record of a free-form conversation within a - team. + A credit given to a user for a repository security advisory. """ - author: Union[None, SimpleUserType] - body: str - body_html: str - body_version: str - comments_count: int - comments_url: str - created_at: datetime - last_edited_at: Union[datetime, None] - html_url: str - node_id: str - number: int - pinned: bool - private: bool - team_url: str - title: str - updated_at: datetime - url: str - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("TeamDiscussionType",) + user: SimpleUserType + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + state: Literal["accepted", "declined", "pending"] + + +__all__ = ("RepositoryAdvisoryCreditType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0166.py b/githubkit/versions/ghec_v2022_11_28/types/group_0166.py index e8fa2ca1b..9db2c2dae 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0166.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0166.py @@ -9,33 +9,140 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0048 import TeamType from .group_0001 import SimpleUserType -from .group_0062 import ReactionRollupType +from .group_0165 import RepositoryAdvisoryCreditType -class TeamDiscussionCommentType(TypedDict): - """Team Discussion Comment +class RepositoryAdvisoryType(TypedDict): + """RepositoryAdvisory - A reply to a discussion within a team. + A repository security advisory. """ - author: Union[None, SimpleUserType] - body: str - body_html: str - body_version: str - created_at: datetime - last_edited_at: Union[datetime, None] - discussion_url: str - html_url: str - node_id: str - number: int - updated_at: datetime + ghsa_id: str + cve_id: Union[str, None] url: str - reactions: NotRequired[ReactionRollupType] + html_url: str + summary: str + description: Union[str, None] + severity: Union[None, Literal["critical", "high", "medium", "low"]] + author: None + publisher: None + identifiers: List[RepositoryAdvisoryPropIdentifiersItemsType] + state: Literal["published", "closed", "withdrawn", "draft", "triage"] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + published_at: Union[datetime, None] + closed_at: Union[datetime, None] + withdrawn_at: Union[datetime, None] + submission: Union[RepositoryAdvisoryPropSubmissionType, None] + vulnerabilities: Union[List[RepositoryAdvisoryVulnerabilityType], None] + cvss: Union[RepositoryAdvisoryPropCvssType, None] + cwes: Union[List[RepositoryAdvisoryPropCwesItemsType], None] + cwe_ids: Union[List[str], None] + credits_: Union[List[RepositoryAdvisoryPropCreditsItemsType], None] + credits_detailed: Union[List[RepositoryAdvisoryCreditType], None] + collaborating_users: Union[List[SimpleUserType], None] + collaborating_teams: Union[List[TeamType], None] + private_fork: None + + +class RepositoryAdvisoryPropIdentifiersItemsType(TypedDict): + """RepositoryAdvisoryPropIdentifiersItems""" + + type: Literal["CVE", "GHSA"] + value: str + + +class RepositoryAdvisoryPropSubmissionType(TypedDict): + """RepositoryAdvisoryPropSubmission""" + + accepted: bool + + +class RepositoryAdvisoryPropCvssType(TypedDict): + """RepositoryAdvisoryPropCvss""" + + vector_string: Union[str, None] + score: Union[float, None] + + +class RepositoryAdvisoryPropCwesItemsType(TypedDict): + """RepositoryAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class RepositoryAdvisoryPropCreditsItemsType(TypedDict): + """RepositoryAdvisoryPropCreditsItems""" + + login: NotRequired[str] + type: NotRequired[ + Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + ] + + +class RepositoryAdvisoryVulnerabilityType(TypedDict): + """RepositoryAdvisoryVulnerability + + A product affected by the vulnerability detailed in a repository security + advisory. + """ + + package: Union[RepositoryAdvisoryVulnerabilityPropPackageType, None] + vulnerable_version_range: Union[str, None] + patched_versions: Union[str, None] + vulnerable_functions: Union[List[str], None] + + +class RepositoryAdvisoryVulnerabilityPropPackageType(TypedDict): + """RepositoryAdvisoryVulnerabilityPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: Union[str, None] -__all__ = ("TeamDiscussionCommentType",) +__all__ = ( + "RepositoryAdvisoryType", + "RepositoryAdvisoryPropIdentifiersItemsType", + "RepositoryAdvisoryPropSubmissionType", + "RepositoryAdvisoryPropCvssType", + "RepositoryAdvisoryPropCwesItemsType", + "RepositoryAdvisoryPropCreditsItemsType", + "RepositoryAdvisoryVulnerabilityType", + "RepositoryAdvisoryVulnerabilityPropPackageType", +) 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 4e77006cd..4fa536b93 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0167.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0167.py @@ -9,27 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class GroupMappingType(TypedDict): + """GroupMapping -class ReactionType(TypedDict): - """Reaction - - Reactions to conversations provide a way to help people express their feelings - more simply and effectively. + External Groups to be mapped to a team for membership """ - id: int - node_id: str - user: Union[None, SimpleUserType] - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] - created_at: datetime + groups: NotRequired[List[GroupMappingPropGroupsItemsType]] + + +class GroupMappingPropGroupsItemsType(TypedDict): + """GroupMappingPropGroupsItems""" + + group_id: str + group_name: str + group_description: str + status: NotRequired[str] + synced_at: NotRequired[Union[str, None]] -__all__ = ("ReactionType",) +__all__ = ( + "GroupMappingType", + "GroupMappingPropGroupsItemsType", +) 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 201ca0a17..610418f07 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0168.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0168.py @@ -9,19 +9,111 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0047 import TeamSimpleType -class TeamMembershipType(TypedDict): - """Team Membership - Team Membership +class TeamFullType(TypedDict): + """Full Team + + Groups of organization members that gives permissions on specified repositories. + """ + + id: int + node_id: str + url: str + html_url: str + name: str + slug: str + description: Union[str, None] + privacy: NotRequired[Literal["closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: str + members_url: str + repositories_url: str + parent: NotRequired[Union[None, TeamSimpleType]] + members_count: int + repos_count: int + created_at: datetime + updated_at: datetime + organization: TeamOrganizationType + ldap_dn: NotRequired[str] + + +class TeamOrganizationType(TypedDict): + """Team Organization + + Team Organization """ + login: str + id: int + node_id: str url: str - role: Literal["member", "maintainer"] - state: Literal["active", "pending"] + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] + name: NotRequired[Union[str, None]] + company: NotRequired[Union[str, None]] + blog: NotRequired[Union[str, None]] + location: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + twitter_username: NotRequired[Union[str, None]] + is_verified: NotRequired[bool] + has_organization_projects: bool + has_repository_projects: bool + public_repos: int + public_gists: int + followers: int + following: int + html_url: str + created_at: datetime + type: str + total_private_repos: NotRequired[int] + owned_private_repos: NotRequired[int] + private_gists: NotRequired[Union[int, None]] + disk_usage: NotRequired[Union[int, None]] + collaborators: NotRequired[Union[int, None]] + billing_email: NotRequired[Union[str, None]] + plan: NotRequired[TeamOrganizationPropPlanType] + default_repository_permission: NotRequired[Union[str, None]] + members_can_create_repositories: NotRequired[Union[bool, None]] + two_factor_requirement_enabled: NotRequired[Union[bool, None]] + members_allowed_repository_creation_type: NotRequired[str] + members_can_create_public_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[Union[bool, None]] + web_commit_signoff_required: NotRequired[bool] + updated_at: datetime + archived_at: Union[datetime, None] + + +class TeamOrganizationPropPlanType(TypedDict): + """TeamOrganizationPropPlan""" + + name: str + space: int + private_repos: int + filled_seats: NotRequired[int] + seats: NotRequired[int] -__all__ = ("TeamMembershipType",) +__all__ = ( + "TeamFullType", + "TeamOrganizationType", + "TeamOrganizationPropPlanType", +) 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 a4bd772e4..cb2eb8910 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0169.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0169.py @@ -10,44 +10,38 @@ from __future__ import annotations from typing import Union +from datetime import datetime from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType +from .group_0065 import ReactionRollupType -class TeamProjectType(TypedDict): - """Team Project +class TeamDiscussionType(TypedDict): + """Team Discussion - A team's access to a project. + A team discussion is a persistent record of a free-form conversation within a + team. """ - owner_url: str - url: str + author: Union[None, SimpleUserType] + body: str + body_html: str + body_version: str + comments_count: int + comments_url: str + created_at: datetime + last_edited_at: Union[datetime, None] html_url: str - columns_url: str - id: int node_id: str - name: str - body: Union[str, None] number: int - state: str - creator: SimpleUserType - created_at: str - updated_at: str - organization_permission: NotRequired[str] - private: NotRequired[bool] - permissions: TeamProjectPropPermissionsType - - -class TeamProjectPropPermissionsType(TypedDict): - """TeamProjectPropPermissions""" - - read: bool - write: bool - admin: bool + pinned: bool + private: bool + team_url: str + title: str + updated_at: datetime + url: str + reactions: NotRequired[ReactionRollupType] -__all__ = ( - "TeamProjectType", - "TeamProjectPropPermissionsType", -) +__all__ = ("TeamDiscussionType",) 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 e092b799e..41ff5ab95 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0170.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0170.py @@ -9,122 +9,33 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -from .group_0016 import LicenseSimpleType +from .group_0065 import ReactionRollupType -class TeamRepositoryType(TypedDict): - """Team Repository +class TeamDiscussionCommentType(TypedDict): + """Team Discussion Comment - A team's access to a repository. + A reply to a discussion within a team. """ - id: int - node_id: str - name: str - full_name: str - license_: Union[None, LicenseSimpleType] - forks: int - permissions: NotRequired[TeamRepositoryPropPermissionsType] - role_name: NotRequired[str] - owner: Union[None, SimpleUserType] - private: bool + author: Union[None, SimpleUserType] + body: str + body_html: str + body_version: str + created_at: datetime + last_edited_at: Union[datetime, None] + discussion_url: str html_url: str - description: Union[str, None] - fork: bool + node_id: str + number: int + updated_at: datetime url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: str - mirror_url: Union[str, None] - hooks_url: str - svn_url: str - homepage: Union[str, None] - language: Union[str, None] - forks_count: int - stargazers_count: int - watchers_count: int - size: int - default_branch: str - open_issues_count: int - is_template: NotRequired[bool] - topics: NotRequired[List[str]] - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_downloads: bool - archived: bool - disabled: bool - visibility: NotRequired[str] - pushed_at: Union[datetime, None] - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - allow_rebase_merge: NotRequired[bool] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - open_issues: int - watchers: int - master_branch: NotRequired[str] - - -class TeamRepositoryPropPermissionsType(TypedDict): - """TeamRepositoryPropPermissions""" - - admin: bool - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] + reactions: NotRequired[ReactionRollupType] -__all__ = ( - "TeamRepositoryType", - "TeamRepositoryPropPermissionsType", -) +__all__ = ("TeamDiscussionCommentType",) 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 220768fca..4e77006cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0171.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0171.py @@ -9,32 +9,27 @@ from __future__ import annotations -from typing import Union from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict from .group_0001 import SimpleUserType -class ProjectCardType(TypedDict): - """Project Card +class ReactionType(TypedDict): + """Reaction - Project cards represent a scope of work. + Reactions to conversations provide a way to help people express their feelings + more simply and effectively. """ - url: str id: int node_id: str - note: Union[str, None] - creator: Union[None, SimpleUserType] + user: Union[None, SimpleUserType] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] created_at: datetime - updated_at: datetime - archived: NotRequired[bool] - column_name: NotRequired[str] - project_id: NotRequired[str] - column_url: str - content_url: NotRequired[str] - project_url: str -__all__ = ("ProjectCardType",) +__all__ = ("ReactionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0172.py b/githubkit/versions/ghec_v2022_11_28/types/group_0172.py index d23a9ab67..201ca0a17 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0172.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0172.py @@ -9,24 +9,19 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal from typing_extensions import TypedDict -class ProjectColumnType(TypedDict): - """Project Column +class TeamMembershipType(TypedDict): + """Team Membership - Project columns contain cards of work. + Team Membership """ url: str - project_url: str - cards_url: str - id: int - node_id: str - name: str - created_at: datetime - updated_at: datetime + role: Literal["member", "maintainer"] + state: Literal["active", "pending"] -__all__ = ("ProjectColumnType",) +__all__ = ("TeamMembershipType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0173.py b/githubkit/versions/ghec_v2022_11_28/types/group_0173.py index 7ed43f19c..a4bd772e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0173.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0173.py @@ -10,19 +10,44 @@ from __future__ import annotations from typing import Union -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -class ProjectCollaboratorPermissionType(TypedDict): - """Project Collaborator Permission +class TeamProjectType(TypedDict): + """Team Project - Project Collaborator Permission + A team's access to a project. """ - permission: str - user: Union[None, SimpleUserType] - - -__all__ = ("ProjectCollaboratorPermissionType",) + owner_url: str + url: str + html_url: str + columns_url: str + id: int + node_id: str + name: str + body: Union[str, None] + number: int + state: str + creator: SimpleUserType + created_at: str + updated_at: str + organization_permission: NotRequired[str] + private: NotRequired[bool] + permissions: TeamProjectPropPermissionsType + + +class TeamProjectPropPermissionsType(TypedDict): + """TeamProjectPropPermissions""" + + read: bool + write: bool + admin: bool + + +__all__ = ( + "TeamProjectType", + "TeamProjectPropPermissionsType", +) 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 7564a62f1..e092b799e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0174.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0174.py @@ -9,16 +9,122 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0016 import LicenseSimpleType -class RateLimitType(TypedDict): - """Rate Limit""" - limit: int - remaining: int - reset: int - used: int +class TeamRepositoryType(TypedDict): + """Team Repository + A team's access to a repository. + """ -__all__ = ("RateLimitType",) + id: int + node_id: str + name: str + full_name: str + license_: Union[None, LicenseSimpleType] + forks: int + permissions: NotRequired[TeamRepositoryPropPermissionsType] + role_name: NotRequired[str] + owner: Union[None, SimpleUserType] + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[List[str]] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: bool + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: Union[datetime, None] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + allow_rebase_merge: NotRequired[bool] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + open_issues: int + watchers: int + master_branch: NotRequired[str] + + +class TeamRepositoryPropPermissionsType(TypedDict): + """TeamRepositoryPropPermissions""" + + admin: bool + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] + + +__all__ = ( + "TeamRepositoryType", + "TeamRepositoryPropPermissionsType", +) 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 71609d11d..220768fca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0175.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0175.py @@ -9,20 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -from .group_0174 import RateLimitType -from .group_0176 import RateLimitOverviewPropResourcesType +from .group_0001 import SimpleUserType -class RateLimitOverviewType(TypedDict): - """Rate Limit Overview +class ProjectCardType(TypedDict): + """Project Card - Rate Limit Overview + Project cards represent a scope of work. """ - resources: RateLimitOverviewPropResourcesType - rate: RateLimitType - - -__all__ = ("RateLimitOverviewType",) + url: str + id: int + node_id: str + note: Union[str, None] + creator: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + archived: NotRequired[bool] + column_name: NotRequired[str] + project_id: NotRequired[str] + column_url: str + content_url: NotRequired[str] + project_url: str + + +__all__ = ("ProjectCardType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0176.py b/githubkit/versions/ghec_v2022_11_28/types/group_0176.py index 8744cafeb..d23a9ab67 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0176.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0176.py @@ -9,24 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from datetime import datetime +from typing_extensions import TypedDict -from .group_0174 import RateLimitType +class ProjectColumnType(TypedDict): + """Project Column -class RateLimitOverviewPropResourcesType(TypedDict): - """RateLimitOverviewPropResources""" + Project columns contain cards of work. + """ - core: RateLimitType - graphql: NotRequired[RateLimitType] - search: RateLimitType - code_search: NotRequired[RateLimitType] - source_import: NotRequired[RateLimitType] - integration_manifest: NotRequired[RateLimitType] - code_scanning_upload: NotRequired[RateLimitType] - actions_runner_registration: NotRequired[RateLimitType] - scim: NotRequired[RateLimitType] - dependency_snapshots: NotRequired[RateLimitType] + url: str + project_url: str + cards_url: str + id: int + node_id: str + name: str + created_at: datetime + updated_at: datetime -__all__ = ("RateLimitOverviewPropResourcesType",) +__all__ = ("ProjectColumnType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0177.py b/githubkit/versions/ghec_v2022_11_28/types/group_0177.py index 1ba8803f8..7ed43f19c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0177.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0177.py @@ -10,40 +10,19 @@ from __future__ import annotations from typing import Union -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0001 import SimpleUserType -class ArtifactType(TypedDict): - """Artifact - An artifact +class ProjectCollaboratorPermissionType(TypedDict): + """Project Collaborator Permission + + Project Collaborator Permission """ - id: int - node_id: str - name: str - size_in_bytes: int - url: str - archive_download_url: str - expired: bool - created_at: Union[datetime, None] - expires_at: Union[datetime, None] - updated_at: Union[datetime, None] - 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__ = ( - "ArtifactType", - "ArtifactPropWorkflowRunType", -) + permission: str + user: Union[None, SimpleUserType] + + +__all__ = ("ProjectCollaboratorPermissionType",) 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 6d51498cc..7564a62f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0178.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0178.py @@ -9,34 +9,16 @@ from __future__ import annotations -from typing import List -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ActionsCacheListType(TypedDict): - """Repository actions caches +class RateLimitType(TypedDict): + """Rate Limit""" - Repository actions caches - """ + limit: int + remaining: int + reset: int + used: int - total_count: int - actions_caches: List[ActionsCacheListPropActionsCachesItemsType] - -class ActionsCacheListPropActionsCachesItemsType(TypedDict): - """ActionsCacheListPropActionsCachesItems""" - - id: NotRequired[int] - ref: NotRequired[str] - key: NotRequired[str] - version: NotRequired[str] - last_accessed_at: NotRequired[datetime] - created_at: NotRequired[datetime] - size_in_bytes: NotRequired[int] - - -__all__ = ( - "ActionsCacheListType", - "ActionsCacheListPropActionsCachesItemsType", -) +__all__ = ("RateLimitType",) 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 61cc52d83..2879b51c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0179.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0179.py @@ -9,67 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0178 import RateLimitType +from .group_0180 import RateLimitOverviewPropResourcesType -class JobType(TypedDict): - """Job - Information of a job execution in a workflow run - """ - - id: int - run_id: int - run_url: str - run_attempt: NotRequired[int] - node_id: str - head_sha: str - url: str - html_url: Union[str, None] - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] - created_at: datetime - started_at: datetime - completed_at: Union[datetime, None] - name: str - steps: NotRequired[List[JobPropStepsItemsType]] - check_run_url: str - labels: List[str] - runner_id: Union[int, None] - runner_name: Union[str, None] - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - workflow_name: Union[str, None] - head_branch: Union[str, None] +class RateLimitOverviewType(TypedDict): + """Rate Limit Overview + Rate Limit Overview + """ -class JobPropStepsItemsType(TypedDict): - """JobPropStepsItems""" - - status: Literal["queued", "in_progress", "completed"] - conclusion: Union[str, None] - name: str - number: int - started_at: NotRequired[Union[datetime, None]] - completed_at: NotRequired[Union[datetime, None]] + resources: RateLimitOverviewPropResourcesType + rate: RateLimitType -__all__ = ( - "JobType", - "JobPropStepsItemsType", -) +__all__ = ("RateLimitOverviewType",) 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 e8df7b2a9..9960d123d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0180.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0180.py @@ -9,18 +9,24 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0178 import RateLimitType -class OidcCustomSubRepoType(TypedDict): - """Actions OIDC subject customization for a repository - Actions OIDC subject customization for a repository - """ +class RateLimitOverviewPropResourcesType(TypedDict): + """RateLimitOverviewPropResources""" - use_default: bool - include_claim_keys: NotRequired[List[str]] + core: RateLimitType + graphql: NotRequired[RateLimitType] + search: RateLimitType + code_search: NotRequired[RateLimitType] + source_import: NotRequired[RateLimitType] + integration_manifest: NotRequired[RateLimitType] + code_scanning_upload: NotRequired[RateLimitType] + actions_runner_registration: NotRequired[RateLimitType] + scim: NotRequired[RateLimitType] + dependency_snapshots: NotRequired[RateLimitType] -__all__ = ("OidcCustomSubRepoType",) +__all__ = ("RateLimitOverviewPropResourcesType",) 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 7d6ae5032..1ba8803f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0181.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0181.py @@ -9,19 +9,41 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ActionsSecretType(TypedDict): - """Actions Secret +class ArtifactType(TypedDict): + """Artifact - Set secrets for GitHub Actions. + An artifact """ + id: int + node_id: str name: str - created_at: datetime - updated_at: datetime - - -__all__ = ("ActionsSecretType",) + size_in_bytes: int + url: str + archive_download_url: str + expired: bool + created_at: Union[datetime, None] + expires_at: Union[datetime, None] + updated_at: Union[datetime, None] + 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__ = ( + "ArtifactType", + "ArtifactPropWorkflowRunType", +) 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 eb13c7e2f..6d51498cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0182.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0182.py @@ -9,17 +9,34 @@ from __future__ import annotations +from typing import List from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ActionsVariableType(TypedDict): - """Actions Variable""" +class ActionsCacheListType(TypedDict): + """Repository actions caches - name: str - value: str - created_at: datetime - updated_at: datetime + Repository actions caches + """ + total_count: int + actions_caches: List[ActionsCacheListPropActionsCachesItemsType] -__all__ = ("ActionsVariableType",) + +class ActionsCacheListPropActionsCachesItemsType(TypedDict): + """ActionsCacheListPropActionsCachesItems""" + + id: NotRequired[int] + ref: NotRequired[str] + key: NotRequired[str] + version: NotRequired[str] + last_accessed_at: NotRequired[datetime] + created_at: NotRequired[datetime] + size_in_bytes: NotRequired[int] + + +__all__ = ( + "ActionsCacheListType", + "ActionsCacheListPropActionsCachesItemsType", +) 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 e80d7d2e7..61cc52d83 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0183.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0183.py @@ -9,16 +9,67 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class ActionsRepositoryPermissionsType(TypedDict): - """ActionsRepositoryPermissions""" +class JobType(TypedDict): + """Job - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - selected_actions_url: NotRequired[str] + Information of a job execution in a workflow run + """ + id: int + run_id: int + run_url: str + run_attempt: NotRequired[int] + node_id: str + head_sha: str + url: str + html_url: Union[str, None] + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] + created_at: datetime + started_at: datetime + completed_at: Union[datetime, None] + name: str + steps: NotRequired[List[JobPropStepsItemsType]] + check_run_url: str + labels: List[str] + runner_id: Union[int, None] + runner_name: Union[str, None] + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + workflow_name: Union[str, None] + head_branch: Union[str, None] -__all__ = ("ActionsRepositoryPermissionsType",) + +class JobPropStepsItemsType(TypedDict): + """JobPropStepsItems""" + + status: Literal["queued", "in_progress", "completed"] + conclusion: Union[str, None] + name: str + number: int + started_at: NotRequired[Union[datetime, None]] + completed_at: NotRequired[Union[datetime, None]] + + +__all__ = ( + "JobType", + "JobPropStepsItemsType", +) 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 d7d171918..e8df7b2a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0184.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0184.py @@ -9,14 +9,18 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ActionsWorkflowAccessToRepositoryType(TypedDict): - """ActionsWorkflowAccessToRepository""" +class OidcCustomSubRepoType(TypedDict): + """Actions OIDC subject customization for a repository - access_level: Literal["none", "user", "organization", "enterprise"] + Actions OIDC subject customization for a repository + """ + use_default: bool + include_claim_keys: NotRequired[List[str]] -__all__ = ("ActionsWorkflowAccessToRepositoryType",) + +__all__ = ("OidcCustomSubRepoType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0185.py b/githubkit/versions/ghec_v2022_11_28/types/group_0185.py index 30c5bf1cd..7d6ae5032 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0185.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0185.py @@ -9,55 +9,19 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict -class PullRequestMinimalType(TypedDict): - """Pull Request Minimal""" +class ActionsSecretType(TypedDict): + """Actions Secret - id: int - number: int - url: str - head: PullRequestMinimalPropHeadType - base: PullRequestMinimalPropBaseType + Set secrets for GitHub Actions. + """ - -class PullRequestMinimalPropHeadType(TypedDict): - """PullRequestMinimalPropHead""" - - ref: str - sha: str - repo: PullRequestMinimalPropHeadPropRepoType - - -class PullRequestMinimalPropHeadPropRepoType(TypedDict): - """PullRequestMinimalPropHeadPropRepo""" - - id: int - url: str - name: str - - -class PullRequestMinimalPropBaseType(TypedDict): - """PullRequestMinimalPropBase""" - - ref: str - sha: str - repo: PullRequestMinimalPropBasePropRepoType - - -class PullRequestMinimalPropBasePropRepoType(TypedDict): - """PullRequestMinimalPropBasePropRepo""" - - id: int - url: str name: str + created_at: datetime + updated_at: datetime -__all__ = ( - "PullRequestMinimalType", - "PullRequestMinimalPropHeadType", - "PullRequestMinimalPropHeadPropRepoType", - "PullRequestMinimalPropBaseType", - "PullRequestMinimalPropBasePropRepoType", -) +__all__ = ("ActionsSecretType",) 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 78fc3d071..eb13c7e2f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0186.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0186.py @@ -9,47 +9,17 @@ from __future__ import annotations -from typing import Union from datetime import datetime from typing_extensions import TypedDict -class SimpleCommitType(TypedDict): - """Simple Commit - - A commit. - """ - - id: str - tree_id: str - message: str - timestamp: datetime - author: Union[SimpleCommitPropAuthorType, None] - committer: Union[SimpleCommitPropCommitterType, None] - - -class SimpleCommitPropAuthorType(TypedDict): - """SimpleCommitPropAuthor - - Information about the Git author - """ - - name: str - email: str - - -class SimpleCommitPropCommitterType(TypedDict): - """SimpleCommitPropCommitter - - Information about the Git committer - """ +class ActionsVariableType(TypedDict): + """Actions Variable""" name: str - email: str + value: str + created_at: datetime + updated_at: datetime -__all__ = ( - "SimpleCommitType", - "SimpleCommitPropAuthorType", - "SimpleCommitPropCommitterType", -) +__all__ = ("ActionsVariableType",) 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 f8f194feb..e80d7d2e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0187.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0187.py @@ -9,72 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0186 import SimpleCommitType -from .group_0079 import MinimalRepositoryType -from .group_0185 import PullRequestMinimalType +class ActionsRepositoryPermissionsType(TypedDict): + """ActionsRepositoryPermissions""" -class WorkflowRunType(TypedDict): - """Workflow Run + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + selected_actions_url: NotRequired[str] - An invocation of a workflow - """ - id: int - name: NotRequired[Union[str, None]] - node_id: str - check_suite_id: NotRequired[int] - check_suite_node_id: NotRequired[str] - head_branch: Union[str, None] - head_sha: str - path: str - run_number: int - run_attempt: NotRequired[int] - referenced_workflows: NotRequired[Union[List[ReferencedWorkflowType], None]] - event: str - status: Union[str, None] - conclusion: Union[str, None] - workflow_id: int - url: str - html_url: str - pull_requests: Union[List[PullRequestMinimalType], None] - created_at: datetime - updated_at: datetime - actor: NotRequired[SimpleUserType] - triggering_actor: NotRequired[SimpleUserType] - run_started_at: NotRequired[datetime] - jobs_url: str - logs_url: str - check_suite_url: str - artifacts_url: str - cancel_url: str - rerun_url: str - previous_attempt_url: NotRequired[Union[str, None]] - workflow_url: str - head_commit: Union[None, SimpleCommitType] - repository: MinimalRepositoryType - head_repository: MinimalRepositoryType - head_repository_id: NotRequired[int] - display_title: str - - -class ReferencedWorkflowType(TypedDict): - """Referenced workflow - - A workflow referenced/reused by the initial caller workflow - """ - - path: str - sha: str - ref: NotRequired[str] - - -__all__ = ( - "WorkflowRunType", - "ReferencedWorkflowType", -) +__all__ = ("ActionsRepositoryPermissionsType",) 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 a96ab7d1f..d7d171918 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0188.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0188.py @@ -9,38 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType +class ActionsWorkflowAccessToRepositoryType(TypedDict): + """ActionsWorkflowAccessToRepository""" -class EnvironmentApprovalsType(TypedDict): - """Environment Approval + access_level: Literal["none", "user", "organization", "enterprise"] - An entry in the reviews log for environment deployments - """ - environments: List[EnvironmentApprovalsPropEnvironmentsItemsType] - state: Literal["approved", "rejected", "pending"] - user: SimpleUserType - comment: str - - -class EnvironmentApprovalsPropEnvironmentsItemsType(TypedDict): - """EnvironmentApprovalsPropEnvironmentsItems""" - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - - -__all__ = ( - "EnvironmentApprovalsType", - "EnvironmentApprovalsPropEnvironmentsItemsType", -) +__all__ = ("ActionsWorkflowAccessToRepositoryType",) 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 909bb75c8..30c5bf1cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0189.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0189.py @@ -12,11 +12,52 @@ from typing_extensions import TypedDict -class ReviewCustomGatesCommentRequiredType(TypedDict): - """ReviewCustomGatesCommentRequired""" +class PullRequestMinimalType(TypedDict): + """Pull Request Minimal""" - environment_name: str - comment: str + id: int + number: int + url: str + head: PullRequestMinimalPropHeadType + base: PullRequestMinimalPropBaseType -__all__ = ("ReviewCustomGatesCommentRequiredType",) +class PullRequestMinimalPropHeadType(TypedDict): + """PullRequestMinimalPropHead""" + + ref: str + sha: str + repo: PullRequestMinimalPropHeadPropRepoType + + +class PullRequestMinimalPropHeadPropRepoType(TypedDict): + """PullRequestMinimalPropHeadPropRepo""" + + id: int + url: str + name: str + + +class PullRequestMinimalPropBaseType(TypedDict): + """PullRequestMinimalPropBase""" + + ref: str + sha: str + repo: PullRequestMinimalPropBasePropRepoType + + +class PullRequestMinimalPropBasePropRepoType(TypedDict): + """PullRequestMinimalPropBasePropRepo""" + + id: int + url: str + name: str + + +__all__ = ( + "PullRequestMinimalType", + "PullRequestMinimalPropHeadType", + "PullRequestMinimalPropHeadPropRepoType", + "PullRequestMinimalPropBaseType", + "PullRequestMinimalPropBasePropRepoType", +) 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 9ed90361d..78fc3d071 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0190.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0190.py @@ -9,16 +9,47 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from datetime import datetime +from typing_extensions import TypedDict -class ReviewCustomGatesStateRequiredType(TypedDict): - """ReviewCustomGatesStateRequired""" +class SimpleCommitType(TypedDict): + """Simple Commit - environment_name: str - state: Literal["approved", "rejected"] - comment: NotRequired[str] + A commit. + """ + id: str + tree_id: str + message: str + timestamp: datetime + author: Union[SimpleCommitPropAuthorType, None] + committer: Union[SimpleCommitPropCommitterType, None] -__all__ = ("ReviewCustomGatesStateRequiredType",) + +class SimpleCommitPropAuthorType(TypedDict): + """SimpleCommitPropAuthor + + Information about the Git author + """ + + name: str + email: str + + +class SimpleCommitPropCommitterType(TypedDict): + """SimpleCommitPropCommitter + + Information about the Git committer + """ + + name: str + email: str + + +__all__ = ( + "SimpleCommitType", + "SimpleCommitPropAuthorType", + "SimpleCommitPropCommitterType", +) 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 524213ab9..66783ded5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0191.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0191.py @@ -10,45 +10,71 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0093 import TeamType from .group_0001 import SimpleUserType +from .group_0190 import SimpleCommitType +from .group_0082 import MinimalRepositoryType +from .group_0189 import PullRequestMinimalType -class PendingDeploymentPropReviewersItemsType(TypedDict): - """PendingDeploymentPropReviewersItems""" +class WorkflowRunType(TypedDict): + """Workflow Run - type: NotRequired[Literal["User", "Team"]] - reviewer: NotRequired[Union[SimpleUserType, TeamType]] - - -class PendingDeploymentType(TypedDict): - """Pending Deployment - - Details of a deployment that is waiting for protection rules to pass + An invocation of a workflow """ - environment: PendingDeploymentPropEnvironmentType - wait_timer: int - wait_timer_started_at: Union[datetime, None] - current_user_can_approve: bool - reviewers: List[PendingDeploymentPropReviewersItemsType] - - -class PendingDeploymentPropEnvironmentType(TypedDict): - """PendingDeploymentPropEnvironment""" + id: int + name: NotRequired[Union[str, None]] + node_id: str + check_suite_id: NotRequired[int] + check_suite_node_id: NotRequired[str] + head_branch: Union[str, None] + head_sha: str + path: str + run_number: int + run_attempt: NotRequired[int] + referenced_workflows: NotRequired[Union[List[ReferencedWorkflowType], None]] + event: str + status: Union[str, None] + conclusion: Union[str, None] + workflow_id: int + url: str + html_url: str + pull_requests: Union[List[PullRequestMinimalType], None] + created_at: datetime + updated_at: datetime + actor: NotRequired[SimpleUserType] + triggering_actor: NotRequired[SimpleUserType] + run_started_at: NotRequired[datetime] + jobs_url: str + logs_url: str + check_suite_url: str + artifacts_url: str + cancel_url: str + rerun_url: str + previous_attempt_url: NotRequired[Union[str, None]] + workflow_url: str + head_commit: Union[None, SimpleCommitType] + repository: MinimalRepositoryType + head_repository: MinimalRepositoryType + head_repository_id: NotRequired[int] + display_title: str + + +class ReferencedWorkflowType(TypedDict): + """Referenced workflow + + A workflow referenced/reused by the initial caller workflow + """ - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] + path: str + sha: str + ref: NotRequired[str] __all__ = ( - "PendingDeploymentPropReviewersItemsType", - "PendingDeploymentType", - "PendingDeploymentPropEnvironmentType", + "WorkflowRunType", + "ReferencedWorkflowType", ) 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 bf367cf5c..a96ab7d1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0192.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0192.py @@ -9,45 +9,38 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType -class DeploymentType(TypedDict): - """Deployment +class EnvironmentApprovalsType(TypedDict): + """Environment Approval - A request for a specific ref(branch,sha,tag) to be deployed + An entry in the reviews log for environment deployments """ - url: str - id: int - node_id: str - sha: str - ref: str - task: str - payload: Union[DeploymentPropPayloadOneof0Type, str] - original_environment: NotRequired[str] - environment: str - description: Union[str, None] - creator: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - statuses_url: str - repository_url: str - transient_environment: NotRequired[bool] - production_environment: NotRequired[bool] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -class DeploymentPropPayloadOneof0Type(TypedDict): - """DeploymentPropPayloadOneof0""" + environments: List[EnvironmentApprovalsPropEnvironmentsItemsType] + state: Literal["approved", "rejected", "pending"] + user: SimpleUserType + comment: str + + +class EnvironmentApprovalsPropEnvironmentsItemsType(TypedDict): + """EnvironmentApprovalsPropEnvironmentsItems""" + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] __all__ = ( - "DeploymentType", - "DeploymentPropPayloadOneof0Type", + "EnvironmentApprovalsType", + "EnvironmentApprovalsPropEnvironmentsItemsType", ) 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 6e05dc2ea..909bb75c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0193.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0193.py @@ -9,86 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class WorkflowRunUsageType(TypedDict): - """Workflow Run Usage +class ReviewCustomGatesCommentRequiredType(TypedDict): + """ReviewCustomGatesCommentRequired""" - Workflow Run Usage - """ + environment_name: str + comment: str - billable: WorkflowRunUsagePropBillableType - run_duration_ms: NotRequired[int] - -class WorkflowRunUsagePropBillableType(TypedDict): - """WorkflowRunUsagePropBillable""" - - ubuntu: NotRequired[WorkflowRunUsagePropBillablePropUbuntuType] - macos: NotRequired[WorkflowRunUsagePropBillablePropMacosType] - windows: NotRequired[WorkflowRunUsagePropBillablePropWindowsType] - - -class WorkflowRunUsagePropBillablePropUbuntuType(TypedDict): - """WorkflowRunUsagePropBillablePropUbuntu""" - - total_ms: int - jobs: int - job_runs: NotRequired[ - List[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType] - ] - - -class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" - - job_id: int - duration_ms: int - - -class WorkflowRunUsagePropBillablePropMacosType(TypedDict): - """WorkflowRunUsagePropBillablePropMacos""" - - total_ms: int - jobs: int - job_runs: NotRequired[ - List[WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType] - ] - - -class WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" - - job_id: int - duration_ms: int - - -class WorkflowRunUsagePropBillablePropWindowsType(TypedDict): - """WorkflowRunUsagePropBillablePropWindows""" - - total_ms: int - jobs: int - job_runs: NotRequired[ - List[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType] - ] - - -class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" - - job_id: int - duration_ms: int - - -__all__ = ( - "WorkflowRunUsageType", - "WorkflowRunUsagePropBillableType", - "WorkflowRunUsagePropBillablePropUbuntuType", - "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropMacosType", - "WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropWindowsType", - "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", -) +__all__ = ("ReviewCustomGatesCommentRequiredType",) 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 7a79353a1..9ed90361d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0194.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0194.py @@ -9,48 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class WorkflowUsageType(TypedDict): - """Workflow Usage +class ReviewCustomGatesStateRequiredType(TypedDict): + """ReviewCustomGatesStateRequired""" - Workflow Usage - """ + environment_name: str + state: Literal["approved", "rejected"] + comment: NotRequired[str] - billable: WorkflowUsagePropBillableType - -class WorkflowUsagePropBillableType(TypedDict): - """WorkflowUsagePropBillable""" - - ubuntu: NotRequired[WorkflowUsagePropBillablePropUbuntuType] - macos: NotRequired[WorkflowUsagePropBillablePropMacosType] - windows: NotRequired[WorkflowUsagePropBillablePropWindowsType] - - -class WorkflowUsagePropBillablePropUbuntuType(TypedDict): - """WorkflowUsagePropBillablePropUbuntu""" - - total_ms: NotRequired[int] - - -class WorkflowUsagePropBillablePropMacosType(TypedDict): - """WorkflowUsagePropBillablePropMacos""" - - total_ms: NotRequired[int] - - -class WorkflowUsagePropBillablePropWindowsType(TypedDict): - """WorkflowUsagePropBillablePropWindows""" - - total_ms: NotRequired[int] - - -__all__ = ( - "WorkflowUsageType", - "WorkflowUsagePropBillableType", - "WorkflowUsagePropBillablePropUbuntuType", - "WorkflowUsagePropBillablePropMacosType", - "WorkflowUsagePropBillablePropWindowsType", -) +__all__ = ("ReviewCustomGatesStateRequiredType",) 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 10dea8dbf..6def75d72 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0195.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0195.py @@ -10,33 +10,45 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0048 import TeamType from .group_0001 import SimpleUserType -class ActivityType(TypedDict): - """Activity +class PendingDeploymentPropReviewersItemsType(TypedDict): + """PendingDeploymentPropReviewersItems""" - Activity + type: NotRequired[Literal["User", "Team"]] + reviewer: NotRequired[Union[SimpleUserType, TeamType]] + + +class PendingDeploymentType(TypedDict): + """Pending Deployment + + Details of a deployment that is waiting for protection rules to pass """ - id: int - node_id: str - before: str - after: str - ref: str - timestamp: datetime - activity_type: Literal[ - "push", - "force_push", - "branch_deletion", - "branch_creation", - "pr_merge", - "merge_queue_merge", - ] - actor: Union[None, SimpleUserType] - - -__all__ = ("ActivityType",) + environment: PendingDeploymentPropEnvironmentType + wait_timer: int + wait_timer_started_at: Union[datetime, None] + current_user_can_approve: bool + reviewers: List[PendingDeploymentPropReviewersItemsType] + + +class PendingDeploymentPropEnvironmentType(TypedDict): + """PendingDeploymentPropEnvironment""" + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + + +__all__ = ( + "PendingDeploymentPropReviewersItemsType", + "PendingDeploymentType", + "PendingDeploymentPropEnvironmentType", +) 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 8b6890539..bf367cf5c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0196.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0196.py @@ -9,19 +9,45 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from datetime import datetime +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType -class AutolinkType(TypedDict): - """Autolink reference - An autolink reference. +class DeploymentType(TypedDict): + """Deployment + + A request for a specific ref(branch,sha,tag) to be deployed """ + url: str id: int - key_prefix: str - url_template: str - is_alphanumeric: bool - - -__all__ = ("AutolinkType",) + 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]] + + +class DeploymentPropPayloadOneof0Type(TypedDict): + """DeploymentPropPayloadOneof0""" + + +__all__ = ( + "DeploymentType", + "DeploymentPropPayloadOneof0Type", +) 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 4ef048314..6e05dc2ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0197.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0197.py @@ -9,17 +9,86 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class CheckAutomatedSecurityFixesType(TypedDict): - """Check Automated Security Fixes +class WorkflowRunUsageType(TypedDict): + """Workflow Run Usage - Check Automated Security Fixes + Workflow Run Usage """ - enabled: bool - paused: bool + billable: WorkflowRunUsagePropBillableType + run_duration_ms: NotRequired[int] -__all__ = ("CheckAutomatedSecurityFixesType",) +class WorkflowRunUsagePropBillableType(TypedDict): + """WorkflowRunUsagePropBillable""" + + ubuntu: NotRequired[WorkflowRunUsagePropBillablePropUbuntuType] + macos: NotRequired[WorkflowRunUsagePropBillablePropMacosType] + windows: NotRequired[WorkflowRunUsagePropBillablePropWindowsType] + + +class WorkflowRunUsagePropBillablePropUbuntuType(TypedDict): + """WorkflowRunUsagePropBillablePropUbuntu""" + + total_ms: int + jobs: int + job_runs: NotRequired[ + List[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType] + ] + + +class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType(TypedDict): + """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" + + job_id: int + duration_ms: int + + +class WorkflowRunUsagePropBillablePropMacosType(TypedDict): + """WorkflowRunUsagePropBillablePropMacos""" + + total_ms: int + jobs: int + job_runs: NotRequired[ + List[WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType] + ] + + +class WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType(TypedDict): + """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" + + job_id: int + duration_ms: int + + +class WorkflowRunUsagePropBillablePropWindowsType(TypedDict): + """WorkflowRunUsagePropBillablePropWindows""" + + total_ms: int + jobs: int + job_runs: NotRequired[ + List[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType] + ] + + +class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType(TypedDict): + """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" + + job_id: int + duration_ms: int + + +__all__ = ( + "WorkflowRunUsageType", + "WorkflowRunUsagePropBillableType", + "WorkflowRunUsagePropBillablePropUbuntuType", + "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropMacosType", + "WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropWindowsType", + "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", +) 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 118a65bb6..7a79353a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0198.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0198.py @@ -11,29 +11,46 @@ from typing_extensions import TypedDict, NotRequired -from .group_0199 import ( - ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, -) - -class ProtectedBranchPullRequestReviewType(TypedDict): - """Protected Branch Pull Request Review +class WorkflowUsageType(TypedDict): + """Workflow Usage - Protected Branch Pull Request Review + Workflow Usage """ - url: NotRequired[str] - dismissal_restrictions: NotRequired[ - ProtectedBranchPullRequestReviewPropDismissalRestrictionsType - ] - bypass_pull_request_allowances: NotRequired[ - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType - ] - dismiss_stale_reviews: bool - require_code_owner_reviews: bool - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] + billable: WorkflowUsagePropBillableType + + +class WorkflowUsagePropBillableType(TypedDict): + """WorkflowUsagePropBillable""" + + ubuntu: NotRequired[WorkflowUsagePropBillablePropUbuntuType] + macos: NotRequired[WorkflowUsagePropBillablePropMacosType] + windows: NotRequired[WorkflowUsagePropBillablePropWindowsType] + + +class WorkflowUsagePropBillablePropUbuntuType(TypedDict): + """WorkflowUsagePropBillablePropUbuntu""" + + total_ms: NotRequired[int] -__all__ = ("ProtectedBranchPullRequestReviewType",) +class WorkflowUsagePropBillablePropMacosType(TypedDict): + """WorkflowUsagePropBillablePropMacos""" + + total_ms: NotRequired[int] + + +class WorkflowUsagePropBillablePropWindowsType(TypedDict): + """WorkflowUsagePropBillablePropWindows""" + + total_ms: NotRequired[int] + + +__all__ = ( + "WorkflowUsageType", + "WorkflowUsagePropBillableType", + "WorkflowUsagePropBillablePropUbuntuType", + "WorkflowUsagePropBillablePropMacosType", + "WorkflowUsagePropBillablePropWindowsType", +) 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 da6c1352c..10dea8dbf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0199.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0199.py @@ -9,37 +9,34 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0093 import TeamType from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType -class ProtectedBranchPullRequestReviewPropDismissalRestrictionsType(TypedDict): - """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" +class ActivityType(TypedDict): + """Activity - users: NotRequired[List[SimpleUserType]] - teams: NotRequired[List[TeamType]] - apps: NotRequired[List[Union[IntegrationType, None]]] - url: NotRequired[str] - users_url: NotRequired[str] - teams_url: NotRequired[str] - - -class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType(TypedDict): - """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. + Activity """ - users: NotRequired[List[SimpleUserType]] - teams: NotRequired[List[TeamType]] - apps: NotRequired[List[Union[IntegrationType, None]]] - - -__all__ = ( - "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", - "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", -) + 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_0200.py b/githubkit/versions/ghec_v2022_11_28/types/group_0200.py index 0c14fcfe8..8b6890539 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0200.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0200.py @@ -9,125 +9,19 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class BranchRestrictionPolicyType(TypedDict): - """Branch Restriction Policy +class AutolinkType(TypedDict): + """Autolink reference - Branch Restriction Policy + An autolink reference. """ - url: str - users_url: str - teams_url: str - apps_url: str - users: List[BranchRestrictionPolicyPropUsersItemsType] - teams: List[BranchRestrictionPolicyPropTeamsItemsType] - apps: List[BranchRestrictionPolicyPropAppsItemsType] + id: int + key_prefix: str + url_template: str + is_alphanumeric: bool -class BranchRestrictionPolicyPropUsersItemsType(TypedDict): - """BranchRestrictionPolicyPropUsersItems""" - - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - avatar_url: NotRequired[str] - gravatar_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - received_events_url: NotRequired[str] - type: NotRequired[str] - site_admin: NotRequired[bool] - - -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] - 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] - - -class BranchRestrictionPolicyPropAppsItemsPropPermissionsType(TypedDict): - """BranchRestrictionPolicyPropAppsItemsPropPermissions""" - - metadata: NotRequired[str] - contents: NotRequired[str] - issues: NotRequired[str] - single_file: NotRequired[str] - - -__all__ = ( - "BranchRestrictionPolicyType", - "BranchRestrictionPolicyPropUsersItemsType", - "BranchRestrictionPolicyPropTeamsItemsType", - "BranchRestrictionPolicyPropAppsItemsType", - "BranchRestrictionPolicyPropAppsItemsPropOwnerType", - "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", -) +__all__ = ("AutolinkType",) 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 c00d735e0..4ef048314 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0201.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0201.py @@ -9,138 +9,17 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0200 import BranchRestrictionPolicyType -from .group_0198 import ProtectedBranchPullRequestReviewType +class CheckAutomatedSecurityFixesType(TypedDict): + """Check Automated Security Fixes -class BranchProtectionType(TypedDict): - """Branch Protection - - Branch Protection - """ - - url: NotRequired[str] - enabled: NotRequired[bool] - required_status_checks: NotRequired[ProtectedBranchRequiredStatusCheckType] - enforce_admins: NotRequired[ProtectedBranchAdminEnforcedType] - required_pull_request_reviews: NotRequired[ProtectedBranchPullRequestReviewType] - restrictions: NotRequired[BranchRestrictionPolicyType] - required_linear_history: NotRequired[BranchProtectionPropRequiredLinearHistoryType] - allow_force_pushes: NotRequired[BranchProtectionPropAllowForcePushesType] - allow_deletions: NotRequired[BranchProtectionPropAllowDeletionsType] - block_creations: NotRequired[BranchProtectionPropBlockCreationsType] - required_conversation_resolution: NotRequired[ - BranchProtectionPropRequiredConversationResolutionType - ] - name: NotRequired[str] - protection_url: NotRequired[str] - required_signatures: NotRequired[BranchProtectionPropRequiredSignaturesType] - lock_branch: NotRequired[BranchProtectionPropLockBranchType] - allow_fork_syncing: NotRequired[BranchProtectionPropAllowForkSyncingType] - - -class ProtectedBranchAdminEnforcedType(TypedDict): - """Protected Branch Admin Enforced - - Protected Branch Admin Enforced + Check Automated Security Fixes """ - url: str enabled: bool + paused: bool -class BranchProtectionPropRequiredLinearHistoryType(TypedDict): - """BranchProtectionPropRequiredLinearHistory""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropAllowForcePushesType(TypedDict): - """BranchProtectionPropAllowForcePushes""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropAllowDeletionsType(TypedDict): - """BranchProtectionPropAllowDeletions""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropBlockCreationsType(TypedDict): - """BranchProtectionPropBlockCreations""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropRequiredConversationResolutionType(TypedDict): - """BranchProtectionPropRequiredConversationResolution""" - - enabled: NotRequired[bool] - - -class BranchProtectionPropRequiredSignaturesType(TypedDict): - """BranchProtectionPropRequiredSignatures""" - - url: str - enabled: bool - - -class BranchProtectionPropLockBranchType(TypedDict): - """BranchProtectionPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: NotRequired[bool] - - -class BranchProtectionPropAllowForkSyncingType(TypedDict): - """BranchProtectionPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: NotRequired[bool] - - -class ProtectedBranchRequiredStatusCheckType(TypedDict): - """Protected Branch Required Status Check - - Protected Branch Required Status Check - """ - - url: NotRequired[str] - enforcement_level: NotRequired[str] - contexts: List[str] - checks: List[ProtectedBranchRequiredStatusCheckPropChecksItemsType] - contexts_url: NotRequired[str] - strict: NotRequired[bool] - - -class ProtectedBranchRequiredStatusCheckPropChecksItemsType(TypedDict): - """ProtectedBranchRequiredStatusCheckPropChecksItems""" - - context: str - app_id: Union[int, None] - - -__all__ = ( - "BranchProtectionType", - "ProtectedBranchAdminEnforcedType", - "BranchProtectionPropRequiredLinearHistoryType", - "BranchProtectionPropAllowForcePushesType", - "BranchProtectionPropAllowDeletionsType", - "BranchProtectionPropBlockCreationsType", - "BranchProtectionPropRequiredConversationResolutionType", - "BranchProtectionPropRequiredSignaturesType", - "BranchProtectionPropLockBranchType", - "BranchProtectionPropAllowForkSyncingType", - "ProtectedBranchRequiredStatusCheckType", - "ProtectedBranchRequiredStatusCheckPropChecksItemsType", -) +__all__ = ("CheckAutomatedSecurityFixesType",) 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 76165e513..2939629b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0202.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0202.py @@ -11,30 +11,29 @@ from typing_extensions import TypedDict, NotRequired -from .group_0201 import BranchProtectionType +from .group_0203 import ( + ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, +) -class ShortBranchType(TypedDict): - """Short Branch +class ProtectedBranchPullRequestReviewType(TypedDict): + """Protected Branch Pull Request Review - Short Branch + Protected Branch Pull Request Review """ - name: str - commit: ShortBranchPropCommitType - protected: bool - protection: NotRequired[BranchProtectionType] - protection_url: NotRequired[str] - - -class ShortBranchPropCommitType(TypedDict): - """ShortBranchPropCommit""" + url: NotRequired[str] + dismissal_restrictions: NotRequired[ + ProtectedBranchPullRequestReviewPropDismissalRestrictionsType + ] + bypass_pull_request_allowances: NotRequired[ + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType + ] + dismiss_stale_reviews: bool + require_code_owner_reviews: bool + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] - sha: str - url: str - -__all__ = ( - "ShortBranchType", - "ShortBranchPropCommitType", -) +__all__ = ("ProtectedBranchPullRequestReviewType",) 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 6b7e4ad5c..1ffd2c7b5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0203.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0203.py @@ -9,18 +9,37 @@ from __future__ import annotations +from typing import List, Union from typing_extensions import TypedDict, NotRequired +from .group_0048 import TeamType +from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType -class GitUserType(TypedDict): - """Git User - Metaproperties for Git author/committer information. +class ProtectedBranchPullRequestReviewPropDismissalRestrictionsType(TypedDict): + """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" + + users: NotRequired[List[SimpleUserType]] + teams: NotRequired[List[TeamType]] + apps: NotRequired[List[Union[IntegrationType, None]]] + url: NotRequired[str] + users_url: NotRequired[str] + teams_url: NotRequired[str] + + +class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType(TypedDict): + """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. """ - name: NotRequired[str] - email: NotRequired[str] - date: NotRequired[str] + users: NotRequired[List[SimpleUserType]] + teams: NotRequired[List[TeamType]] + apps: NotRequired[List[Union[IntegrationType, None]]] -__all__ = ("GitUserType",) +__all__ = ( + "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", + "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", +) 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 7f8f1aebd..0c14fcfe8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0204.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0204.py @@ -9,17 +9,125 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -class VerificationType(TypedDict): - """Verification""" +class BranchRestrictionPolicyType(TypedDict): + """Branch Restriction Policy - verified: bool - reason: str - payload: Union[str, None] - signature: Union[str, None] + Branch Restriction Policy + """ + url: str + users_url: str + teams_url: str + apps_url: str + users: List[BranchRestrictionPolicyPropUsersItemsType] + teams: List[BranchRestrictionPolicyPropTeamsItemsType] + apps: List[BranchRestrictionPolicyPropAppsItemsType] -__all__ = ("VerificationType",) + +class BranchRestrictionPolicyPropUsersItemsType(TypedDict): + """BranchRestrictionPolicyPropUsersItems""" + + login: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + avatar_url: NotRequired[str] + gravatar_id: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + organizations_url: NotRequired[str] + repos_url: NotRequired[str] + events_url: NotRequired[str] + received_events_url: NotRequired[str] + type: NotRequired[str] + site_admin: NotRequired[bool] + + +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] + 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] + + +class BranchRestrictionPolicyPropAppsItemsPropPermissionsType(TypedDict): + """BranchRestrictionPolicyPropAppsItemsPropPermissions""" + + metadata: NotRequired[str] + contents: NotRequired[str] + issues: NotRequired[str] + single_file: NotRequired[str] + + +__all__ = ( + "BranchRestrictionPolicyType", + "BranchRestrictionPolicyPropUsersItemsType", + "BranchRestrictionPolicyPropTeamsItemsType", + "BranchRestrictionPolicyPropAppsItemsType", + "BranchRestrictionPolicyPropAppsItemsPropOwnerType", + "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", +) 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 ce7374427..61e437b43 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0205.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0205.py @@ -9,29 +9,138 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired +from .group_0204 import BranchRestrictionPolicyType +from .group_0202 import ProtectedBranchPullRequestReviewType -class DiffEntryType(TypedDict): - """Diff Entry - Diff Entry +class BranchProtectionType(TypedDict): + """Branch Protection + + Branch Protection """ - sha: str - filename: str - status: Literal[ - "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" + url: NotRequired[str] + enabled: NotRequired[bool] + required_status_checks: NotRequired[ProtectedBranchRequiredStatusCheckType] + enforce_admins: NotRequired[ProtectedBranchAdminEnforcedType] + required_pull_request_reviews: NotRequired[ProtectedBranchPullRequestReviewType] + restrictions: NotRequired[BranchRestrictionPolicyType] + required_linear_history: NotRequired[BranchProtectionPropRequiredLinearHistoryType] + allow_force_pushes: NotRequired[BranchProtectionPropAllowForcePushesType] + allow_deletions: NotRequired[BranchProtectionPropAllowDeletionsType] + block_creations: NotRequired[BranchProtectionPropBlockCreationsType] + required_conversation_resolution: NotRequired[ + BranchProtectionPropRequiredConversationResolutionType ] - additions: int - deletions: int - changes: int - blob_url: str - raw_url: str - contents_url: str - patch: NotRequired[str] - previous_filename: NotRequired[str] + name: NotRequired[str] + protection_url: NotRequired[str] + required_signatures: NotRequired[BranchProtectionPropRequiredSignaturesType] + lock_branch: NotRequired[BranchProtectionPropLockBranchType] + allow_fork_syncing: NotRequired[BranchProtectionPropAllowForkSyncingType] + + +class ProtectedBranchAdminEnforcedType(TypedDict): + """Protected Branch Admin Enforced + + Protected Branch Admin Enforced + """ + + url: str + enabled: bool + + +class BranchProtectionPropRequiredLinearHistoryType(TypedDict): + """BranchProtectionPropRequiredLinearHistory""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowForcePushesType(TypedDict): + """BranchProtectionPropAllowForcePushes""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowDeletionsType(TypedDict): + """BranchProtectionPropAllowDeletions""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropBlockCreationsType(TypedDict): + """BranchProtectionPropBlockCreations""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropRequiredConversationResolutionType(TypedDict): + """BranchProtectionPropRequiredConversationResolution""" + + enabled: NotRequired[bool] + + +class BranchProtectionPropRequiredSignaturesType(TypedDict): + """BranchProtectionPropRequiredSignatures""" + + url: str + enabled: bool + + +class BranchProtectionPropLockBranchType(TypedDict): + """BranchProtectionPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: NotRequired[bool] + + +class BranchProtectionPropAllowForkSyncingType(TypedDict): + """BranchProtectionPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: NotRequired[bool] + + +class ProtectedBranchRequiredStatusCheckType(TypedDict): + """Protected Branch Required Status Check + + Protected Branch Required Status Check + """ + + url: NotRequired[str] + enforcement_level: NotRequired[str] + contexts: List[str] + checks: List[ProtectedBranchRequiredStatusCheckPropChecksItemsType] + contexts_url: NotRequired[str] + strict: NotRequired[bool] + + +class ProtectedBranchRequiredStatusCheckPropChecksItemsType(TypedDict): + """ProtectedBranchRequiredStatusCheckPropChecksItems""" + + context: str + app_id: Union[int, None] -__all__ = ("DiffEntryType",) +__all__ = ( + "BranchProtectionType", + "ProtectedBranchAdminEnforcedType", + "BranchProtectionPropRequiredLinearHistoryType", + "BranchProtectionPropAllowForcePushesType", + "BranchProtectionPropAllowDeletionsType", + "BranchProtectionPropBlockCreationsType", + "BranchProtectionPropRequiredConversationResolutionType", + "BranchProtectionPropRequiredSignaturesType", + "BranchProtectionPropLockBranchType", + "BranchProtectionPropAllowForkSyncingType", + "ProtectedBranchRequiredStatusCheckType", + "ProtectedBranchRequiredStatusCheckPropChecksItemsType", +) 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 e8ad4626a..3e9ff17a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0206.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0206.py @@ -9,51 +9,32 @@ from __future__ import annotations -from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0205 import DiffEntryType -from .group_0001 import SimpleUserType -from .group_0207 import CommitPropCommitType +from .group_0205 import BranchProtectionType -class CommitType(TypedDict): - """Commit +class ShortBranchType(TypedDict): + """Short Branch - Commit + Short Branch """ - url: str - sha: str - node_id: str - html_url: str - comments_url: str - commit: CommitPropCommitType - author: Union[None, SimpleUserType] - committer: Union[None, SimpleUserType] - parents: List[CommitPropParentsItemsType] - stats: NotRequired[CommitPropStatsType] - files: NotRequired[List[DiffEntryType]] + name: str + commit: ShortBranchPropCommitType + protected: bool + protection: NotRequired[BranchProtectionType] + protection_url: NotRequired[str] -class CommitPropParentsItemsType(TypedDict): - """CommitPropParentsItems""" +class ShortBranchPropCommitType(TypedDict): + """ShortBranchPropCommit""" sha: str url: str - html_url: NotRequired[str] - - -class CommitPropStatsType(TypedDict): - """CommitPropStats""" - - additions: NotRequired[int] - deletions: NotRequired[int] - total: NotRequired[int] __all__ = ( - "CommitType", - "CommitPropParentsItemsType", - "CommitPropStatsType", + "ShortBranchType", + "ShortBranchPropCommitType", ) 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 f1ca5d32e..6b7e4ad5c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0207.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0207.py @@ -9,33 +9,18 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0203 import GitUserType -from .group_0204 import VerificationType +class GitUserType(TypedDict): + """Git User -class CommitPropCommitType(TypedDict): - """CommitPropCommit""" + Metaproperties for Git author/committer information. + """ - url: str - author: Union[None, GitUserType] - committer: Union[None, GitUserType] - message: str - comment_count: int - tree: CommitPropCommitPropTreeType - verification: NotRequired[VerificationType] + name: NotRequired[str] + email: NotRequired[str] + date: NotRequired[str] -class CommitPropCommitPropTreeType(TypedDict): - """CommitPropCommitPropTree""" - - sha: str - url: str - - -__all__ = ( - "CommitPropCommitType", - "CommitPropCommitPropTreeType", -) +__all__ = ("GitUserType",) 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 401ab68bb..7f8f1aebd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0208.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0208.py @@ -9,36 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0206 import CommitType -from .group_0201 import BranchProtectionType +class VerificationType(TypedDict): + """Verification""" -class BranchWithProtectionType(TypedDict): - """Branch With Protection + verified: bool + reason: str + payload: Union[str, None] + signature: Union[str, None] - Branch With Protection - """ - name: str - commit: CommitType - links: BranchWithProtectionPropLinksType - protected: bool - protection: BranchProtectionType - protection_url: str - pattern: NotRequired[str] - required_approving_review_count: NotRequired[int] - - -class BranchWithProtectionPropLinksType(TypedDict): - """BranchWithProtectionPropLinks""" - - html: str - self_: str - - -__all__ = ( - "BranchWithProtectionType", - "BranchWithProtectionPropLinksType", -) +__all__ = ("VerificationType",) 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 b85686e3b..ce7374427 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0209.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0209.py @@ -9,133 +9,29 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0200 import BranchRestrictionPolicyType -from .group_0210 import ProtectedBranchPropRequiredPullRequestReviewsType +class DiffEntryType(TypedDict): + """Diff Entry -class ProtectedBranchType(TypedDict): - """Protected Branch - - Branch protections protect branches + Diff Entry """ - url: str - required_status_checks: NotRequired[StatusCheckPolicyType] - required_pull_request_reviews: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsType - ] - required_signatures: NotRequired[ProtectedBranchPropRequiredSignaturesType] - enforce_admins: NotRequired[ProtectedBranchPropEnforceAdminsType] - required_linear_history: NotRequired[ProtectedBranchPropRequiredLinearHistoryType] - allow_force_pushes: NotRequired[ProtectedBranchPropAllowForcePushesType] - allow_deletions: NotRequired[ProtectedBranchPropAllowDeletionsType] - restrictions: NotRequired[BranchRestrictionPolicyType] - required_conversation_resolution: NotRequired[ - ProtectedBranchPropRequiredConversationResolutionType + sha: str + filename: str + status: Literal[ + "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" ] - block_creations: NotRequired[ProtectedBranchPropBlockCreationsType] - lock_branch: NotRequired[ProtectedBranchPropLockBranchType] - allow_fork_syncing: NotRequired[ProtectedBranchPropAllowForkSyncingType] - - -class ProtectedBranchPropRequiredSignaturesType(TypedDict): - """ProtectedBranchPropRequiredSignatures""" - - url: str - enabled: bool - - -class ProtectedBranchPropEnforceAdminsType(TypedDict): - """ProtectedBranchPropEnforceAdmins""" - - url: str - enabled: bool - - -class ProtectedBranchPropRequiredLinearHistoryType(TypedDict): - """ProtectedBranchPropRequiredLinearHistory""" - - enabled: bool - - -class ProtectedBranchPropAllowForcePushesType(TypedDict): - """ProtectedBranchPropAllowForcePushes""" - - enabled: bool - - -class ProtectedBranchPropAllowDeletionsType(TypedDict): - """ProtectedBranchPropAllowDeletions""" - - enabled: bool - - -class ProtectedBranchPropRequiredConversationResolutionType(TypedDict): - """ProtectedBranchPropRequiredConversationResolution""" - - enabled: NotRequired[bool] - - -class ProtectedBranchPropBlockCreationsType(TypedDict): - """ProtectedBranchPropBlockCreations""" - - enabled: bool - - -class ProtectedBranchPropLockBranchType(TypedDict): - """ProtectedBranchPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: NotRequired[bool] - - -class ProtectedBranchPropAllowForkSyncingType(TypedDict): - """ProtectedBranchPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: NotRequired[bool] - - -class StatusCheckPolicyType(TypedDict): - """Status Check Policy - - Status Check Policy - """ - - url: str - strict: bool - contexts: List[str] - checks: List[StatusCheckPolicyPropChecksItemsType] - contexts_url: str - - -class StatusCheckPolicyPropChecksItemsType(TypedDict): - """StatusCheckPolicyPropChecksItems""" - - context: str - app_id: Union[int, None] + additions: int + deletions: int + changes: int + blob_url: str + raw_url: str + contents_url: str + patch: NotRequired[str] + previous_filename: NotRequired[str] -__all__ = ( - "ProtectedBranchType", - "ProtectedBranchPropRequiredSignaturesType", - "ProtectedBranchPropEnforceAdminsType", - "ProtectedBranchPropRequiredLinearHistoryType", - "ProtectedBranchPropAllowForcePushesType", - "ProtectedBranchPropAllowDeletionsType", - "ProtectedBranchPropRequiredConversationResolutionType", - "ProtectedBranchPropBlockCreationsType", - "ProtectedBranchPropLockBranchType", - "ProtectedBranchPropAllowForkSyncingType", - "StatusCheckPolicyType", - "StatusCheckPolicyPropChecksItemsType", -) +__all__ = ("DiffEntryType",) 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 d31cda9fa..de3e69a45 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0210.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0210.py @@ -9,28 +9,59 @@ from __future__ import annotations +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0211 import ( - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, -) +from .group_0209 import DiffEntryType +from .group_0001 import SimpleUserType +from .group_0211 import CommitPropCommitType + +class CommitType(TypedDict): + """Commit -class ProtectedBranchPropRequiredPullRequestReviewsType(TypedDict): - """ProtectedBranchPropRequiredPullRequestReviews""" + Commit + """ url: str - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - dismissal_restrictions: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType - ] - bypass_pull_request_allowances: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType - ] - - -__all__ = ("ProtectedBranchPropRequiredPullRequestReviewsType",) + sha: str + node_id: str + html_url: str + comments_url: str + commit: CommitPropCommitType + author: Union[SimpleUserType, EmptyObjectType, None] + committer: Union[SimpleUserType, EmptyObjectType, None] + parents: List[CommitPropParentsItemsType] + stats: NotRequired[CommitPropStatsType] + files: NotRequired[List[DiffEntryType]] + + +class EmptyObjectType(TypedDict): + """Empty Object + + An object without any properties. + """ + + +class CommitPropParentsItemsType(TypedDict): + """CommitPropParentsItems""" + + sha: str + url: str + html_url: NotRequired[str] + + +class CommitPropStatsType(TypedDict): + """CommitPropStats""" + + additions: NotRequired[int] + deletions: NotRequired[int] + total: NotRequired[int] + + +__all__ = ( + "CommitType", + "EmptyObjectType", + "CommitPropParentsItemsType", + "CommitPropStatsType", +) 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 ff3fb67fd..cebbb24a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0211.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0211.py @@ -9,38 +9,33 @@ from __future__ import annotations -from typing import List, Union +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0093 import TeamType -from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +from .group_0207 import GitUserType +from .group_0208 import VerificationType -class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType( - TypedDict -): - """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" +class CommitPropCommitType(TypedDict): + """CommitPropCommit""" url: str - users_url: str - teams_url: str - users: List[SimpleUserType] - teams: List[TeamType] - apps: NotRequired[List[Union[IntegrationType, None]]] + author: Union[None, GitUserType] + committer: Union[None, GitUserType] + message: str + comment_count: int + tree: CommitPropCommitPropTreeType + verification: NotRequired[VerificationType] -class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( - TypedDict -): - """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" +class CommitPropCommitPropTreeType(TypedDict): + """CommitPropCommitPropTree""" - users: List[SimpleUserType] - teams: List[TeamType] - apps: NotRequired[List[Union[IntegrationType, None]]] + sha: str + url: str __all__ = ( - "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", - "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", + "CommitPropCommitType", + "CommitPropCommitPropTreeType", ) 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 18c914e32..0c1514e3a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0212.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0212.py @@ -9,34 +9,36 @@ from __future__ import annotations -from typing import Union -from datetime import datetime from typing_extensions import TypedDict, NotRequired -from .group_0006 import IntegrationType +from .group_0210 import CommitType +from .group_0205 import BranchProtectionType -class DeploymentSimpleType(TypedDict): - """Deployment +class BranchWithProtectionType(TypedDict): + """Branch With Protection - A deployment created as the result of an Actions check run from a workflow that - references an environment + Branch With Protection """ - url: str - id: int - node_id: str - task: str - original_environment: NotRequired[str] - environment: str - description: Union[str, None] - created_at: datetime - updated_at: datetime - statuses_url: str - repository_url: str - transient_environment: NotRequired[bool] - production_environment: NotRequired[bool] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -__all__ = ("DeploymentSimpleType",) + name: str + commit: CommitType + links: BranchWithProtectionPropLinksType + protected: bool + protection: BranchProtectionType + protection_url: str + pattern: NotRequired[str] + required_approving_review_count: NotRequired[int] + + +class BranchWithProtectionPropLinksType(TypedDict): + """BranchWithProtectionPropLinks""" + + html: str + self_: str + + +__all__ = ( + "BranchWithProtectionType", + "BranchWithProtectionPropLinksType", +) 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 a5fd14d2f..00da7ae86 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0213.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0213.py @@ -9,71 +9,133 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0006 import IntegrationType -from .group_0212 import DeploymentSimpleType -from .group_0185 import PullRequestMinimalType +from .group_0204 import BranchRestrictionPolicyType +from .group_0214 import ProtectedBranchPropRequiredPullRequestReviewsType -class CheckRunType(TypedDict): - """CheckRun +class ProtectedBranchType(TypedDict): + """Protected Branch - A check performed on the code of a given code change + Branch protections protect branches """ - id: int - head_sha: str - node_id: str - external_id: Union[str, None] url: str - html_url: Union[str, None] - details_url: Union[str, None] - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" + required_status_checks: NotRequired[StatusCheckPolicyType] + required_pull_request_reviews: NotRequired[ + ProtectedBranchPropRequiredPullRequestReviewsType ] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], + required_signatures: NotRequired[ProtectedBranchPropRequiredSignaturesType] + enforce_admins: NotRequired[ProtectedBranchPropEnforceAdminsType] + required_linear_history: NotRequired[ProtectedBranchPropRequiredLinearHistoryType] + allow_force_pushes: NotRequired[ProtectedBranchPropAllowForcePushesType] + allow_deletions: NotRequired[ProtectedBranchPropAllowDeletionsType] + restrictions: NotRequired[BranchRestrictionPolicyType] + required_conversation_resolution: NotRequired[ + ProtectedBranchPropRequiredConversationResolutionType ] - started_at: Union[datetime, None] - completed_at: Union[datetime, None] - output: CheckRunPropOutputType - name: str - check_suite: Union[CheckRunPropCheckSuiteType, None] - app: Union[None, IntegrationType, None] - pull_requests: List[PullRequestMinimalType] - deployment: NotRequired[DeploymentSimpleType] + block_creations: NotRequired[ProtectedBranchPropBlockCreationsType] + lock_branch: NotRequired[ProtectedBranchPropLockBranchType] + allow_fork_syncing: NotRequired[ProtectedBranchPropAllowForkSyncingType] -class CheckRunPropOutputType(TypedDict): - """CheckRunPropOutput""" +class ProtectedBranchPropRequiredSignaturesType(TypedDict): + """ProtectedBranchPropRequiredSignatures""" - title: Union[str, None] - summary: Union[str, None] - text: Union[str, None] - annotations_count: int - annotations_url: str + url: str + enabled: bool + + +class ProtectedBranchPropEnforceAdminsType(TypedDict): + """ProtectedBranchPropEnforceAdmins""" + + url: str + enabled: bool + + +class ProtectedBranchPropRequiredLinearHistoryType(TypedDict): + """ProtectedBranchPropRequiredLinearHistory""" + + enabled: bool + + +class ProtectedBranchPropAllowForcePushesType(TypedDict): + """ProtectedBranchPropAllowForcePushes""" + + enabled: bool + + +class ProtectedBranchPropAllowDeletionsType(TypedDict): + """ProtectedBranchPropAllowDeletions""" + + enabled: bool + + +class ProtectedBranchPropRequiredConversationResolutionType(TypedDict): + """ProtectedBranchPropRequiredConversationResolution""" + + enabled: NotRequired[bool] + + +class ProtectedBranchPropBlockCreationsType(TypedDict): + """ProtectedBranchPropBlockCreations""" + + enabled: bool + + +class ProtectedBranchPropLockBranchType(TypedDict): + """ProtectedBranchPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: NotRequired[bool] + + +class ProtectedBranchPropAllowForkSyncingType(TypedDict): + """ProtectedBranchPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: NotRequired[bool] + + +class StatusCheckPolicyType(TypedDict): + """Status Check Policy + + Status Check Policy + """ + + url: str + strict: bool + contexts: List[str] + checks: List[StatusCheckPolicyPropChecksItemsType] + contexts_url: str -class CheckRunPropCheckSuiteType(TypedDict): - """CheckRunPropCheckSuite""" +class StatusCheckPolicyPropChecksItemsType(TypedDict): + """StatusCheckPolicyPropChecksItems""" - id: int + context: str + app_id: Union[int, None] __all__ = ( - "CheckRunType", - "CheckRunPropOutputType", - "CheckRunPropCheckSuiteType", + "ProtectedBranchType", + "ProtectedBranchPropRequiredSignaturesType", + "ProtectedBranchPropEnforceAdminsType", + "ProtectedBranchPropRequiredLinearHistoryType", + "ProtectedBranchPropAllowForcePushesType", + "ProtectedBranchPropAllowDeletionsType", + "ProtectedBranchPropRequiredConversationResolutionType", + "ProtectedBranchPropBlockCreationsType", + "ProtectedBranchPropLockBranchType", + "ProtectedBranchPropAllowForkSyncingType", + "StatusCheckPolicyType", + "StatusCheckPolicyPropChecksItemsType", ) 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 82fbb570d..086e84538 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0214.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0214.py @@ -9,26 +9,28 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired +from .group_0215 import ( + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, +) -class CheckAnnotationType(TypedDict): - """Check Annotation - Check Annotation - """ +class ProtectedBranchPropRequiredPullRequestReviewsType(TypedDict): + """ProtectedBranchPropRequiredPullRequestReviews""" - path: str - start_line: int - end_line: int - start_column: Union[int, None] - end_column: Union[int, None] - annotation_level: Union[str, None] - title: Union[str, None] - message: Union[str, None] - raw_details: Union[str, None] - blob_href: str + url: str + dismiss_stale_reviews: NotRequired[bool] + require_code_owner_reviews: NotRequired[bool] + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] + dismissal_restrictions: NotRequired[ + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType + ] + bypass_pull_request_allowances: NotRequired[ + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType + ] -__all__ = ("CheckAnnotationType",) +__all__ = ("ProtectedBranchPropRequiredPullRequestReviewsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0215.py b/githubkit/versions/ghec_v2022_11_28/types/group_0215.py index 58c569b4d..be3c63c3a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0215.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0215.py @@ -9,69 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired +from .group_0048 import TeamType +from .group_0001 import SimpleUserType from .group_0006 import IntegrationType -from .group_0186 import SimpleCommitType -from .group_0079 import MinimalRepositoryType -from .group_0185 import PullRequestMinimalType -class CheckSuiteType(TypedDict): - """CheckSuite +class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType( + TypedDict +): + """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" - A suite of checks performed on the code of a given code change - """ + url: str + users_url: str + teams_url: str + users: List[SimpleUserType] + teams: List[TeamType] + apps: NotRequired[List[Union[IntegrationType, None]]] - id: int - node_id: str - head_branch: Union[str, None] - head_sha: str - status: Union[ - None, - Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ], - ] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "startup_failure", - "stale", - ], - ] - url: Union[str, None] - before: Union[str, None] - after: Union[str, None] - pull_requests: Union[List[PullRequestMinimalType], None] - app: Union[None, IntegrationType, None] - repository: MinimalRepositoryType - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - head_commit: SimpleCommitType - latest_check_runs_count: int - check_runs_url: str - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] +class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( + TypedDict +): + """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" -class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" - - total_count: int - check_suites: List[CheckSuiteType] + users: List[SimpleUserType] + teams: List[TeamType] + apps: NotRequired[List[Union[IntegrationType, None]]] __all__ = ( - "CheckSuiteType", - "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", + "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", + "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", ) 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 6b2bae344..18c914e32 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0216.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0216.py @@ -9,39 +9,34 @@ from __future__ import annotations -from typing import List +from typing import Union +from datetime import datetime from typing_extensions import TypedDict, NotRequired -from .group_0079 import MinimalRepositoryType +from .group_0006 import IntegrationType -class CheckSuitePreferenceType(TypedDict): - """Check Suite Preference +class DeploymentSimpleType(TypedDict): + """Deployment - Check suite configuration preferences for a repository. + A deployment created as the result of an Actions check run from a workflow that + references an environment """ - preferences: CheckSuitePreferencePropPreferencesType - repository: MinimalRepositoryType - - -class CheckSuitePreferencePropPreferencesType(TypedDict): - """CheckSuitePreferencePropPreferences""" - - auto_trigger_checks: NotRequired[ - List[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType] - ] - - -class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType(TypedDict): - """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" - - app_id: int - setting: bool - - -__all__ = ( - "CheckSuitePreferenceType", - "CheckSuitePreferencePropPreferencesType", - "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", -) + 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_0217.py b/githubkit/versions/ghec_v2022_11_28/types/group_0217.py index 652b25d2f..75ede226a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0217.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0217.py @@ -10,35 +10,70 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0041 import CodeScanningAnalysisToolType -from .group_0042 import CodeScanningAlertInstanceType -from .group_0040 import CodeScanningAlertRuleSummaryType +from .group_0006 import IntegrationType +from .group_0216 import DeploymentSimpleType +from .group_0189 import PullRequestMinimalType -class CodeScanningAlertItemsType(TypedDict): - """CodeScanningAlertItems""" +class CheckRunType(TypedDict): + """CheckRun - number: int - created_at: datetime - updated_at: NotRequired[datetime] + A check performed on the code of a given code change + """ + + id: int + head_sha: str + node_id: str + external_id: Union[str, None] url: str - html_url: str - instances_url: str - state: Literal["open", "dismissed", "fixed"] - fixed_at: NotRequired[Union[datetime, None]] - dismissed_by: Union[None, SimpleUserType] - dismissed_at: Union[datetime, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] + html_url: Union[str, None] + details_url: Union[str, None] + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleSummaryType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType + started_at: Union[datetime, None] + completed_at: Union[datetime, None] + output: CheckRunPropOutputType + name: str + check_suite: Union[CheckRunPropCheckSuiteType, None] + app: Union[None, IntegrationType, None] + pull_requests: List[PullRequestMinimalType] + deployment: NotRequired[DeploymentSimpleType] + + +class CheckRunPropOutputType(TypedDict): + """CheckRunPropOutput""" + + title: Union[str, None] + summary: Union[str, None] + text: Union[str, None] + annotations_count: int + annotations_url: str + + +class CheckRunPropCheckSuiteType(TypedDict): + """CheckRunPropCheckSuite""" + + id: int -__all__ = ("CodeScanningAlertItemsType",) +__all__ = ( + "CheckRunType", + "CheckRunPropOutputType", + "CheckRunPropCheckSuiteType", +) 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 8c7b25b6e..82fbb570d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0218.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0218.py @@ -9,54 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0001 import SimpleUserType -from .group_0041 import CodeScanningAnalysisToolType -from .group_0042 import CodeScanningAlertInstanceType - - -class CodeScanningAlertType(TypedDict): - """CodeScanningAlert""" - - number: int - created_at: datetime - updated_at: NotRequired[datetime] - url: str - html_url: str - instances_url: str - state: Literal["open", "dismissed", "fixed"] - fixed_at: NotRequired[Union[datetime, None]] - dismissed_by: Union[None, SimpleUserType] - dismissed_at: Union[datetime, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType - - -class CodeScanningAlertRuleType(TypedDict): - """CodeScanningAlertRule""" - - id: NotRequired[Union[str, None]] - name: NotRequired[str] - severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] - security_severity_level: NotRequired[ - Union[None, Literal["low", "medium", "high", "critical"]] - ] - description: NotRequired[str] - full_description: NotRequired[str] - tags: NotRequired[Union[List[str], None]] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - - -__all__ = ( - "CodeScanningAlertType", - "CodeScanningAlertRuleType", -) +from typing import Union +from typing_extensions import TypedDict + + +class CheckAnnotationType(TypedDict): + """Check Annotation + + Check Annotation + """ + + path: str + start_line: int + end_line: int + start_column: Union[int, None] + end_column: Union[int, None] + annotation_level: Union[str, None] + title: Union[str, None] + message: Union[str, None] + raw_details: Union[str, None] + blob_href: str + + +__all__ = ("CheckAnnotationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0219.py b/githubkit/versions/ghec_v2022_11_28/types/group_0219.py index c8d6d757b..69d8f6d97 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0219.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0219.py @@ -10,29 +10,68 @@ from __future__ import annotations from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0041 import CodeScanningAnalysisToolType +from .group_0006 import IntegrationType +from .group_0190 import SimpleCommitType +from .group_0082 import MinimalRepositoryType +from .group_0189 import PullRequestMinimalType -class CodeScanningAnalysisType(TypedDict): - """CodeScanningAnalysis""" +class CheckSuiteType(TypedDict): + """CheckSuite + + A suite of checks performed on the code of a given code change + """ - ref: str - commit_sha: str - analysis_key: str - environment: str - category: NotRequired[str] - error: str - created_at: datetime - results_count: int - rules_count: int id: int - url: str - sarif_id: str - tool: CodeScanningAnalysisToolType - deletable: bool - warning: str + node_id: str + head_branch: Union[str, None] + head_sha: str + status: Union[ + None, + Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ], + ] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "startup_failure", + "stale", + ], + ] + url: Union[str, None] + before: Union[str, None] + after: Union[str, None] + pull_requests: Union[List[PullRequestMinimalType], None] + app: Union[None, IntegrationType, None] + repository: MinimalRepositoryType + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + head_commit: SimpleCommitType + latest_check_runs_count: int + check_runs_url: str + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + + +class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type(TypedDict): + """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" + + total_count: int + check_suites: List[CheckSuiteType] -__all__ = ("CodeScanningAnalysisType",) +__all__ = ( + "CheckSuiteType", + "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0220.py b/githubkit/versions/ghec_v2022_11_28/types/group_0220.py index a217f8af1..ac26608fd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0220.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0220.py @@ -9,18 +9,39 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired +from .group_0082 import MinimalRepositoryType -class CodeScanningAnalysisDeletionType(TypedDict): - """Analysis deletion - Successful deletion of a code scanning analysis +class CheckSuitePreferenceType(TypedDict): + """Check Suite Preference + + Check suite configuration preferences for a repository. """ - next_analysis_url: Union[str, None] - confirm_delete_url: Union[str, None] + preferences: CheckSuitePreferencePropPreferencesType + repository: MinimalRepositoryType + + +class CheckSuitePreferencePropPreferencesType(TypedDict): + """CheckSuitePreferencePropPreferences""" + + auto_trigger_checks: NotRequired[ + List[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType] + ] + + +class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType(TypedDict): + """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" + + app_id: int + setting: bool -__all__ = ("CodeScanningAnalysisDeletionType",) +__all__ = ( + "CheckSuitePreferenceType", + "CheckSuitePreferencePropPreferencesType", + "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", +) 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 0cadd6e42..652b25d2f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0221.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0221.py @@ -9,29 +9,36 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType +from .group_0041 import CodeScanningAnalysisToolType +from .group_0042 import CodeScanningAlertInstanceType +from .group_0040 import CodeScanningAlertRuleSummaryType -class CodeScanningCodeqlDatabaseType(TypedDict): - """CodeQL Database +class CodeScanningAlertItemsType(TypedDict): + """CodeScanningAlertItems""" - A CodeQL database. - """ - - id: int - name: str - language: str - uploader: SimpleUserType - content_type: str - size: int + number: int created_at: datetime - updated_at: datetime + updated_at: NotRequired[datetime] url: str - commit_oid: NotRequired[Union[str, None]] - - -__all__ = ("CodeScanningCodeqlDatabaseType",) + html_url: str + instances_url: str + state: Literal["open", "dismissed", "fixed"] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleSummaryType + tool: CodeScanningAnalysisToolType + most_recent_instance: CodeScanningAlertInstanceType + + +__all__ = ("CodeScanningAlertItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0222.py b/githubkit/versions/ghec_v2022_11_28/types/group_0222.py index 054ee405e..8c7b25b6e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0222.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0222.py @@ -9,23 +9,54 @@ from __future__ import annotations -from typing import Union from datetime import datetime -from typing_extensions import TypedDict - - -class CodeScanningVariantAnalysisRepositoryType(TypedDict): - """Repository Identifier - - Repository Identifier - """ - - id: int - name: str - full_name: str - private: bool - stargazers_count: int - updated_at: Union[datetime, None] - - -__all__ = ("CodeScanningVariantAnalysisRepositoryType",) +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0001 import SimpleUserType +from .group_0041 import CodeScanningAnalysisToolType +from .group_0042 import CodeScanningAlertInstanceType + + +class CodeScanningAlertType(TypedDict): + """CodeScanningAlert""" + + number: int + created_at: datetime + updated_at: NotRequired[datetime] + url: str + html_url: str + instances_url: str + state: Literal["open", "dismissed", "fixed"] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleType + tool: CodeScanningAnalysisToolType + most_recent_instance: CodeScanningAlertInstanceType + + +class CodeScanningAlertRuleType(TypedDict): + """CodeScanningAlertRule""" + + id: NotRequired[Union[str, None]] + name: NotRequired[str] + severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] + security_severity_level: NotRequired[ + Union[None, Literal["low", "medium", "high", "critical"]] + ] + description: NotRequired[str] + full_description: NotRequired[str] + tags: NotRequired[Union[List[str], None]] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + + +__all__ = ( + "CodeScanningAlertType", + "CodeScanningAlertRuleType", +) 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 26e17ac67..c8d6d757b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0223.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0223.py @@ -9,17 +9,30 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -from .group_0222 import CodeScanningVariantAnalysisRepositoryType +from .group_0041 import CodeScanningAnalysisToolType -class CodeScanningVariantAnalysisSkippedRepoGroupType(TypedDict): - """CodeScanningVariantAnalysisSkippedRepoGroup""" +class CodeScanningAnalysisType(TypedDict): + """CodeScanningAnalysis""" - repository_count: int - repositories: List[CodeScanningVariantAnalysisRepositoryType] + ref: str + commit_sha: str + analysis_key: str + environment: str + category: NotRequired[str] + error: str + created_at: datetime + results_count: int + rules_count: int + id: int + url: str + sarif_id: str + tool: CodeScanningAnalysisToolType + deletable: bool + warning: str -__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroupType",) +__all__ = ("CodeScanningAnalysisType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0224.py b/githubkit/versions/ghec_v2022_11_28/types/group_0224.py index 9a7816722..a217f8af1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0224.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0224.py @@ -9,43 +9,18 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType -from .group_0043 import SimpleRepositoryType -from .group_0226 import CodeScanningVariantAnalysisPropSkippedRepositoriesType -from .group_0225 import CodeScanningVariantAnalysisPropScannedRepositoriesItemsType +class CodeScanningAnalysisDeletionType(TypedDict): + """Analysis deletion -class CodeScanningVariantAnalysisType(TypedDict): - """Variant Analysis - - A run of a CodeQL query against one or more repositories. + Successful deletion of a code scanning analysis """ - id: int - controller_repo: SimpleRepositoryType - actor: SimpleUserType - query_language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] - query_pack_url: str - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - completed_at: NotRequired[Union[datetime, None]] - status: Literal["in_progress", "succeeded", "failed", "cancelled"] - actions_workflow_run_id: NotRequired[int] - failure_reason: NotRequired[ - Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] - ] - scanned_repositories: NotRequired[ - List[CodeScanningVariantAnalysisPropScannedRepositoriesItemsType] - ] - skipped_repositories: NotRequired[ - CodeScanningVariantAnalysisPropSkippedRepositoriesType - ] - - -__all__ = ("CodeScanningVariantAnalysisType",) + next_analysis_url: Union[str, None] + confirm_delete_url: Union[str, None] + + +__all__ = ("CodeScanningAnalysisDeletionType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0225.py b/githubkit/versions/ghec_v2022_11_28/types/group_0225.py index d9d984190..0cadd6e42 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0225.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0225.py @@ -9,22 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Union +from datetime import datetime from typing_extensions import TypedDict, NotRequired -from .group_0222 import CodeScanningVariantAnalysisRepositoryType +from .group_0001 import SimpleUserType -class CodeScanningVariantAnalysisPropScannedRepositoriesItemsType(TypedDict): - """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" +class CodeScanningCodeqlDatabaseType(TypedDict): + """CodeQL Database - repository: CodeScanningVariantAnalysisRepositoryType - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] - result_count: NotRequired[int] - artifact_size_in_bytes: NotRequired[int] - failure_message: NotRequired[str] + A CodeQL database. + """ + id: int + name: str + language: str + uploader: SimpleUserType + content_type: str + size: int + created_at: datetime + updated_at: datetime + url: str + commit_oid: NotRequired[Union[str, None]] -__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",) + +__all__ = ("CodeScanningCodeqlDatabaseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0226.py b/githubkit/versions/ghec_v2022_11_28/types/group_0226.py index 49c24c0c3..054ee405e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0226.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0226.py @@ -9,37 +9,23 @@ from __future__ import annotations -from typing import List +from typing import Union +from datetime import datetime from typing_extensions import TypedDict -from .group_0223 import CodeScanningVariantAnalysisSkippedRepoGroupType +class CodeScanningVariantAnalysisRepositoryType(TypedDict): + """Repository Identifier -class CodeScanningVariantAnalysisPropSkippedRepositoriesType(TypedDict): - """CodeScanningVariantAnalysisPropSkippedRepositories - - Information about repositories that were skipped from processing. This - information is only available to the user that initiated the variant analysis. + Repository Identifier """ - access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroupType - not_found_repos: ( - CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType - ) - no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroupType - over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroupType - - -class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType( - TypedDict -): - """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" - - repository_count: int - repository_full_names: List[str] + id: int + name: str + full_name: str + private: bool + stargazers_count: int + updated_at: Union[datetime, None] -__all__ = ( - "CodeScanningVariantAnalysisPropSkippedRepositoriesType", - "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", -) +__all__ = ("CodeScanningVariantAnalysisRepositoryType",) 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 9a1d81e34..b449e5661 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0227.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0227.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0043 import SimpleRepositoryType +from .group_0226 import CodeScanningVariantAnalysisRepositoryType -class CodeScanningVariantAnalysisRepoTaskType(TypedDict): - """CodeScanningVariantAnalysisRepoTask""" +class CodeScanningVariantAnalysisSkippedRepoGroupType(TypedDict): + """CodeScanningVariantAnalysisSkippedRepoGroup""" - repository: SimpleRepositoryType - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] - artifact_size_in_bytes: NotRequired[int] - result_count: NotRequired[int] - failure_message: NotRequired[str] - database_commit_sha: NotRequired[str] - source_location_prefix: NotRequired[str] - artifact_url: NotRequired[str] + repository_count: int + repositories: List[CodeScanningVariantAnalysisRepositoryType] -__all__ = ("CodeScanningVariantAnalysisRepoTaskType",) +__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroupType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0228.py b/githubkit/versions/ghec_v2022_11_28/types/group_0228.py index cdbbfb7fa..1885a8b12 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0228.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0228.py @@ -13,33 +13,39 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0043 import SimpleRepositoryType +from .group_0230 import CodeScanningVariantAnalysisPropSkippedRepositoriesType +from .group_0229 import CodeScanningVariantAnalysisPropScannedRepositoriesItemsType -class CodeScanningDefaultSetupType(TypedDict): - """CodeScanningDefaultSetup - Configuration for code scanning default setup. +class CodeScanningVariantAnalysisType(TypedDict): + """Variant Analysis + + A run of a CodeQL query against one or more repositories. """ - state: NotRequired[Literal["configured", "not-configured"]] - languages: NotRequired[ - List[ - Literal[ - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "javascript", - "python", - "ruby", - "typescript", - "swift", - ] - ] + id: int + controller_repo: SimpleRepositoryType + actor: SimpleUserType + query_language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "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 ] - query_suite: NotRequired[Literal["default", "extended"]] - updated_at: NotRequired[Union[datetime, None]] - schedule: NotRequired[Union[None, Literal["weekly"]]] -__all__ = ("CodeScanningDefaultSetupType",) +__all__ = ("CodeScanningVariantAnalysisType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0229.py b/githubkit/versions/ghec_v2022_11_28/types/group_0229.py index 83fe48476..d7b373f47 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0229.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0229.py @@ -9,32 +9,22 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0226 import CodeScanningVariantAnalysisRepositoryType -class CodeScanningDefaultSetupUpdateType(TypedDict): - """CodeScanningDefaultSetupUpdate - - Configuration for code scanning default setup. - """ - - state: NotRequired[Literal["configured", "not-configured"]] - query_suite: NotRequired[Literal["default", "extended"]] - languages: NotRequired[ - List[ - Literal[ - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "python", - "ruby", - "swift", - ] - ] + +class CodeScanningVariantAnalysisPropScannedRepositoriesItemsType(TypedDict): + """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" + + repository: CodeScanningVariantAnalysisRepositoryType + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" ] + result_count: NotRequired[int] + artifact_size_in_bytes: NotRequired[int] + failure_message: NotRequired[str] -__all__ = ("CodeScanningDefaultSetupUpdateType",) +__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0230.py b/githubkit/versions/ghec_v2022_11_28/types/group_0230.py index 1df4620a0..f859dd89a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0230.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0230.py @@ -9,19 +9,37 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0227 import CodeScanningVariantAnalysisSkippedRepoGroupType -class CodeScanningDefaultSetupUpdateResponseType(TypedDict): - """CodeScanningDefaultSetupUpdateResponse - You can use `run_url` to track the status of the run. This includes a property - status and conclusion. - You should not rely on this always being an actions workflow run object. +class CodeScanningVariantAnalysisPropSkippedRepositoriesType(TypedDict): + """CodeScanningVariantAnalysisPropSkippedRepositories + + Information about repositories that were skipped from processing. This + information is only available to the user that initiated the variant analysis. """ - run_id: NotRequired[int] - run_url: NotRequired[str] + access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroupType + not_found_repos: ( + CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType + ) + no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroupType + over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroupType + + +class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType( + TypedDict +): + """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" + + repository_count: int + repository_full_names: List[str] -__all__ = ("CodeScanningDefaultSetupUpdateResponseType",) +__all__ = ( + "CodeScanningVariantAnalysisPropSkippedRepositoriesType", + "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", +) 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 995d8ab46..9a1d81e34 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0231.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0231.py @@ -9,14 +9,25 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0043 import SimpleRepositoryType -class CodeScanningSarifsReceiptType(TypedDict): - """CodeScanningSarifsReceipt""" - id: NotRequired[str] - url: NotRequired[str] +class CodeScanningVariantAnalysisRepoTaskType(TypedDict): + """CodeScanningVariantAnalysisRepoTask""" + repository: SimpleRepositoryType + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" + ] + artifact_size_in_bytes: NotRequired[int] + result_count: NotRequired[int] + failure_message: NotRequired[str] + database_commit_sha: NotRequired[str] + source_location_prefix: NotRequired[str] + artifact_url: NotRequired[str] -__all__ = ("CodeScanningSarifsReceiptType",) + +__all__ = ("CodeScanningVariantAnalysisRepoTaskType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0232.py b/githubkit/versions/ghec_v2022_11_28/types/group_0232.py index 218ccba47..cdbbfb7fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0232.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0232.py @@ -9,16 +9,37 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class CodeScanningSarifsStatusType(TypedDict): - """CodeScanningSarifsStatus""" - - processing_status: NotRequired[Literal["pending", "complete", "failed"]] - analyses_url: NotRequired[Union[str, None]] - errors: NotRequired[Union[List[str], None]] - - -__all__ = ("CodeScanningSarifsStatusType",) +class CodeScanningDefaultSetupType(TypedDict): + """CodeScanningDefaultSetup + + Configuration for code scanning default setup. + """ + + state: NotRequired[Literal["configured", "not-configured"]] + languages: NotRequired[ + List[ + Literal[ + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "javascript", + "python", + "ruby", + "typescript", + "swift", + ] + ] + ] + query_suite: NotRequired[Literal["default", "extended"]] + updated_at: NotRequired[Union[datetime, None]] + schedule: NotRequired[Union[None, Literal["weekly"]]] + + +__all__ = ("CodeScanningDefaultSetupType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0233.py b/githubkit/versions/ghec_v2022_11_28/types/group_0233.py index 6e2d05d46..83fe48476 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0233.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0233.py @@ -9,32 +9,32 @@ from __future__ import annotations -from typing import List, Union +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class CodeownersErrorsType(TypedDict): - """CODEOWNERS errors +class CodeScanningDefaultSetupUpdateType(TypedDict): + """CodeScanningDefaultSetupUpdate - A list of errors found in a repo's CODEOWNERS file + Configuration for code scanning default setup. """ - errors: List[CodeownersErrorsPropErrorsItemsType] - - -class CodeownersErrorsPropErrorsItemsType(TypedDict): - """CodeownersErrorsPropErrorsItems""" - - line: int - column: int - source: NotRequired[str] - kind: str - suggestion: NotRequired[Union[str, None]] - message: str - path: str - - -__all__ = ( - "CodeownersErrorsType", - "CodeownersErrorsPropErrorsItemsType", -) + state: NotRequired[Literal["configured", "not-configured"]] + query_suite: NotRequired[Literal["default", "extended"]] + languages: NotRequired[ + List[ + Literal[ + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "python", + "ruby", + "swift", + ] + ] + ] + + +__all__ = ("CodeScanningDefaultSetupUpdateType",) 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 e1c93e03b..1df4620a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0234.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0234.py @@ -9,16 +9,19 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class CodespacesPermissionsCheckForDevcontainerType(TypedDict): - """Codespaces Permissions Check +class CodeScanningDefaultSetupUpdateResponseType(TypedDict): + """CodeScanningDefaultSetupUpdateResponse - Permission check result for a given devcontainer config. + 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. """ - accepted: bool + run_id: NotRequired[int] + run_url: NotRequired[str] -__all__ = ("CodespacesPermissionsCheckForDevcontainerType",) +__all__ = ("CodeScanningDefaultSetupUpdateResponseType",) 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 c4791769a..995d8ab46 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0235.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0235.py @@ -9,30 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0079 import MinimalRepositoryType +class CodeScanningSarifsReceiptType(TypedDict): + """CodeScanningSarifsReceipt""" -class RepositoryInvitationType(TypedDict): - """Repository Invitation + id: NotRequired[str] + url: NotRequired[str] - Repository invitations let you manage who you collaborate with. - """ - id: int - repository: MinimalRepositoryType - invitee: Union[None, SimpleUserType] - inviter: Union[None, SimpleUserType] - permissions: Literal["read", "write", "admin", "triage", "maintain"] - created_at: datetime - expired: NotRequired[bool] - url: str - html_url: str - node_id: str - - -__all__ = ("RepositoryInvitationType",) +__all__ = ("CodeScanningSarifsReceiptType",) 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 896a0e9a1..218ccba47 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0236.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0236.py @@ -9,63 +9,16 @@ from __future__ import annotations -from typing import Union +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class RepositoryCollaboratorPermissionType(TypedDict): - """Repository Collaborator Permission +class CodeScanningSarifsStatusType(TypedDict): + """CodeScanningSarifsStatus""" - Repository Collaborator Permission - """ + processing_status: NotRequired[Literal["pending", "complete", "failed"]] + analyses_url: NotRequired[Union[str, None]] + errors: NotRequired[Union[List[str], None]] - permission: str - role_name: str - user: Union[None, CollaboratorType] - -class CollaboratorType(TypedDict): - """Collaborator - - Collaborator - """ - - login: str - id: int - email: NotRequired[Union[str, None]] - name: NotRequired[Union[str, None]] - node_id: str - avatar_url: str - gravatar_id: Union[str, None] - url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str - type: str - site_admin: bool - permissions: NotRequired[CollaboratorPropPermissionsType] - role_name: str - - -class CollaboratorPropPermissionsType(TypedDict): - """CollaboratorPropPermissions""" - - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] - admin: bool - - -__all__ = ( - "RepositoryCollaboratorPermissionType", - "CollaboratorType", - "CollaboratorPropPermissionsType", -) +__all__ = ("CodeScanningSarifsStatusType",) 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 1f038a61c..6e2d05d46 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0237.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0237.py @@ -9,58 +9,32 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0062 import ReactionRollupType +class CodeownersErrorsType(TypedDict): + """CODEOWNERS errors -class CommitCommentType(TypedDict): - """Commit Comment - - Commit Comment + A list of errors found in a repo's CODEOWNERS file """ - html_url: str - url: str - id: int - node_id: str - body: str - path: Union[str, None] - position: Union[int, None] - line: Union[int, None] - commit_id: str - user: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - reactions: NotRequired[ReactionRollupType] - + errors: List[CodeownersErrorsPropErrorsItemsType] -class TimelineCommitCommentedEventType(TypedDict): - """Timeline Commit Commented Event - Timeline Commit Commented Event - """ +class CodeownersErrorsPropErrorsItemsType(TypedDict): + """CodeownersErrorsPropErrorsItems""" - event: NotRequired[Literal["commit_commented"]] - node_id: NotRequired[str] - commit_id: NotRequired[str] - comments: NotRequired[List[CommitCommentType]] + line: int + column: int + source: NotRequired[str] + kind: str + suggestion: NotRequired[Union[str, None]] + message: str + path: str __all__ = ( - "CommitCommentType", - "TimelineCommitCommentedEventType", + "CodeownersErrorsType", + "CodeownersErrorsPropErrorsItemsType", ) 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 5ab5687fb..e1c93e03b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0238.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0238.py @@ -12,25 +12,13 @@ from typing_extensions import TypedDict -class BranchShortType(TypedDict): - """Branch Short +class CodespacesPermissionsCheckForDevcontainerType(TypedDict): + """Codespaces Permissions Check - Branch Short + Permission check result for a given devcontainer config. """ - name: str - commit: BranchShortPropCommitType - protected: bool + accepted: bool -class BranchShortPropCommitType(TypedDict): - """BranchShortPropCommit""" - - sha: str - url: str - - -__all__ = ( - "BranchShortType", - "BranchShortPropCommitType", -) +__all__ = ("CodespacesPermissionsCheckForDevcontainerType",) 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 064aa0ae7..aa1d8496f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0239.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0239.py @@ -9,16 +9,30 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0082 import MinimalRepositoryType -class LinkType(TypedDict): - """Link - Hypermedia Link +class RepositoryInvitationType(TypedDict): + """Repository Invitation + + Repository invitations let you manage who you collaborate with. """ - href: str + id: int + repository: MinimalRepositoryType + invitee: Union[None, SimpleUserType] + inviter: Union[None, SimpleUserType] + permissions: Literal["read", "write", "admin", "triage", "maintain"] + created_at: datetime + expired: NotRequired[bool] + url: str + html_url: str + node_id: str -__all__ = ("LinkType",) +__all__ = ("RepositoryInvitationType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0240.py b/githubkit/versions/ghec_v2022_11_28/types/group_0240.py index eb2d68457..896a0e9a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0240.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0240.py @@ -9,22 +9,63 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class RepositoryCollaboratorPermissionType(TypedDict): + """Repository Collaborator Permission -class AutoMergeType(TypedDict): - """Auto merge + Repository Collaborator Permission + """ + + permission: str + role_name: str + user: Union[None, CollaboratorType] + + +class CollaboratorType(TypedDict): + """Collaborator - The status of auto merging a pull request. + Collaborator """ - enabled_by: SimpleUserType - merge_method: Literal["merge", "squash", "rebase"] - commit_title: Union[str, None] - commit_message: Union[str, None] + login: str + id: int + email: NotRequired[Union[str, None]] + name: NotRequired[Union[str, None]] + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + permissions: NotRequired[CollaboratorPropPermissionsType] + role_name: str + + +class CollaboratorPropPermissionsType(TypedDict): + """CollaboratorPropPermissions""" + + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] + admin: bool -__all__ = ("AutoMergeType",) +__all__ = ( + "RepositoryCollaboratorPermissionType", + "CollaboratorType", + "CollaboratorPropPermissionsType", +) 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 a096b00fe..a3685610c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0241.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0241.py @@ -13,53 +13,28 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0093 import TeamType -from .group_0061 import MilestoneType -from .group_0240 import AutoMergeType from .group_0001 import SimpleUserType -from .group_0243 import PullRequestSimplePropLinksType -from .group_0242 import PullRequestSimplePropBaseType, PullRequestSimplePropHeadType +from .group_0065 import ReactionRollupType -class PullRequestSimpleType(TypedDict): - """Pull Request Simple +class CommitCommentType(TypedDict): + """Commit Comment - Pull Request Simple + Commit Comment """ + html_url: str url: str id: int node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: str - locked: bool - title: str + body: str + path: Union[str, None] + position: Union[int, None] + line: Union[int, None] + commit_id: str user: Union[None, SimpleUserType] - body: Union[str, None] - labels: List[PullRequestSimplePropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] created_at: datetime updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[List[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] - requested_teams: NotRequired[Union[List[TeamType], None]] - head: PullRequestSimplePropHeadType - base: PullRequestSimplePropBaseType - links: PullRequestSimplePropLinksType author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -70,23 +45,22 @@ class PullRequestSimpleType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] + reactions: NotRequired[ReactionRollupType] -class PullRequestSimplePropLabelsItemsType(TypedDict): - """PullRequestSimplePropLabelsItems""" +class TimelineCommitCommentedEventType(TypedDict): + """Timeline Commit Commented Event - id: int - node_id: str - url: str - name: str - description: Union[str, None] - color: str - default: bool + Timeline Commit Commented Event + """ + + event: NotRequired[Literal["commit_commented"]] + node_id: NotRequired[str] + commit_id: NotRequired[str] + comments: NotRequired[List[CommitCommentType]] __all__ = ( - "PullRequestSimpleType", - "PullRequestSimplePropLabelsItemsType", + "CommitCommentType", + "TimelineCommitCommentedEventType", ) 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 e11b7c39f..5ab5687fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0242.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0242.py @@ -9,34 +9,28 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -from .group_0001 import SimpleUserType -from .group_0017 import RepositoryType +class BranchShortType(TypedDict): + """Branch Short -class PullRequestSimplePropHeadType(TypedDict): - """PullRequestSimplePropHead""" + Branch Short + """ - label: Union[str, None] - ref: str - repo: Union[None, RepositoryType] - sha: str - user: Union[None, SimpleUserType] + name: str + commit: BranchShortPropCommitType + protected: bool -class PullRequestSimplePropBaseType(TypedDict): - """PullRequestSimplePropBase""" +class BranchShortPropCommitType(TypedDict): + """BranchShortPropCommit""" - label: str - ref: str - repo: RepositoryType sha: str - user: Union[None, SimpleUserType] + url: str __all__ = ( - "PullRequestSimplePropHeadType", - "PullRequestSimplePropBaseType", + "BranchShortType", + "BranchShortPropCommitType", ) 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 43aca4db0..064aa0ae7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0243.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0243.py @@ -11,20 +11,14 @@ from typing_extensions import TypedDict -from .group_0239 import LinkType +class LinkType(TypedDict): + """Link -class PullRequestSimplePropLinksType(TypedDict): - """PullRequestSimplePropLinks""" + Hypermedia Link + """ - comments: LinkType - commits: LinkType - statuses: LinkType - html: LinkType - issue: LinkType - review_comments: LinkType - review_comment: LinkType - self_: LinkType + href: str -__all__ = ("PullRequestSimplePropLinksType",) +__all__ = ("LinkType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0244.py b/githubkit/versions/ghec_v2022_11_28/types/group_0244.py index 653a8e5ab..eb2d68457 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0244.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0244.py @@ -9,45 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0079 import MinimalRepositoryType +from .group_0001 import SimpleUserType -class CombinedCommitStatusType(TypedDict): - """Combined Commit Status +class AutoMergeType(TypedDict): + """Auto merge - Combined Commit Status + The status of auto merging a pull request. """ - state: str - statuses: List[SimpleCommitStatusType] - sha: str - total_count: int - repository: MinimalRepositoryType - commit_url: str - url: str - - -class SimpleCommitStatusType(TypedDict): - """Simple Commit Status""" - - description: Union[str, None] - id: int - node_id: str - state: str - context: str - target_url: Union[str, None] - required: NotRequired[Union[bool, None]] - avatar_url: Union[str, None] - url: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "CombinedCommitStatusType", - "SimpleCommitStatusType", -) + enabled_by: SimpleUserType + merge_method: Literal["merge", "squash", "rebase"] + commit_title: Union[str, None] + commit_message: Union[str, None] + + +__all__ = ("AutoMergeType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0245.py b/githubkit/versions/ghec_v2022_11_28/types/group_0245.py index dc094331f..0dcb3d06b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0245.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0245.py @@ -9,29 +9,84 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0048 import TeamType +from .group_0064 import MilestoneType +from .group_0244 import AutoMergeType from .group_0001 import SimpleUserType +from .group_0247 import PullRequestSimplePropLinksType +from .group_0246 import PullRequestSimplePropBaseType, PullRequestSimplePropHeadType -class StatusType(TypedDict): - """Status +class PullRequestSimpleType(TypedDict): + """Pull Request Simple - The status of a commit. + Pull Request Simple """ url: str - avatar_url: Union[str, None] id: int node_id: str + html_url: str + diff_url: str + patch_url: str + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str + number: int state: str + locked: bool + title: str + user: Union[None, SimpleUserType] + body: Union[str, None] + labels: List[PullRequestSimplePropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] + created_at: datetime + updated_at: datetime + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[List[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] + requested_teams: NotRequired[Union[List[TeamType], None]] + head: PullRequestSimplePropHeadType + base: PullRequestSimplePropBaseType + links: PullRequestSimplePropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] + + +class PullRequestSimplePropLabelsItemsType(TypedDict): + """PullRequestSimplePropLabelsItems""" + + id: int + node_id: str + url: str + name: str description: Union[str, None] - target_url: Union[str, None] - context: str - created_at: str - updated_at: str - creator: Union[None, SimpleUserType] + color: str + default: bool -__all__ = ("StatusType",) +__all__ = ( + "PullRequestSimpleType", + "PullRequestSimplePropLabelsItemsType", +) 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 c6c43c73e..e11b7c39f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0246.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0246.py @@ -10,48 +10,33 @@ from __future__ import annotations from typing import Union -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0016 import LicenseSimpleType -from .group_0118 import CodeOfConductSimpleType +from .group_0001 import SimpleUserType +from .group_0017 import RepositoryType -class CommunityProfilePropFilesType(TypedDict): - """CommunityProfilePropFiles""" +class PullRequestSimplePropHeadType(TypedDict): + """PullRequestSimplePropHead""" - code_of_conduct: Union[None, CodeOfConductSimpleType] - code_of_conduct_file: Union[None, CommunityHealthFileType] - license_: Union[None, LicenseSimpleType] - contributing: Union[None, CommunityHealthFileType] - readme: Union[None, CommunityHealthFileType] - issue_template: Union[None, CommunityHealthFileType] - pull_request_template: Union[None, CommunityHealthFileType] + label: Union[str, None] + ref: str + repo: Union[None, RepositoryType] + sha: str + user: Union[None, SimpleUserType] -class CommunityHealthFileType(TypedDict): - """Community Health File""" +class PullRequestSimplePropBaseType(TypedDict): + """PullRequestSimplePropBase""" - url: str - html_url: str - - -class CommunityProfileType(TypedDict): - """Community Profile - - Community Profile - """ - - health_percentage: int - description: Union[str, None] - documentation: Union[str, None] - files: CommunityProfilePropFilesType - updated_at: Union[datetime, None] - content_reports_enabled: NotRequired[bool] + label: str + ref: str + repo: RepositoryType + sha: str + user: Union[None, SimpleUserType] __all__ = ( - "CommunityProfilePropFilesType", - "CommunityHealthFileType", - "CommunityProfileType", + "PullRequestSimplePropHeadType", + "PullRequestSimplePropBaseType", ) 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 b76112bcf..2fec4e998 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0247.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0247.py @@ -9,32 +9,22 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0206 import CommitType -from .group_0205 import DiffEntryType +from .group_0243 import LinkType -class CommitComparisonType(TypedDict): - """Commit Comparison +class PullRequestSimplePropLinksType(TypedDict): + """PullRequestSimplePropLinks""" - Commit Comparison - """ + comments: LinkType + commits: LinkType + statuses: LinkType + html: LinkType + issue: LinkType + review_comments: LinkType + review_comment: LinkType + self_: LinkType - url: str - html_url: str - permalink_url: str - diff_url: str - patch_url: str - base_commit: CommitType - merge_base_commit: CommitType - status: Literal["diverged", "ahead", "behind", "identical"] - ahead_by: int - behind_by: int - total_commits: int - commits: List[CommitType] - files: NotRequired[List[DiffEntryType]] - -__all__ = ("CommitComparisonType",) +__all__ = ("PullRequestSimplePropLinksType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0248.py b/githubkit/versions/ghec_v2022_11_28/types/group_0248.py index 18ab3b111..455efba2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0248.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0248.py @@ -9,64 +9,45 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union from typing_extensions import TypedDict, NotRequired +from .group_0082 import MinimalRepositoryType -class ContentTreeType(TypedDict): - """Content Tree - Content Tree +class CombinedCommitStatusType(TypedDict): + """Combined Commit Status + + Combined Commit Status """ - type: str - size: int - name: str - path: str + state: str + statuses: List[SimpleCommitStatusType] sha: str + total_count: int + repository: MinimalRepositoryType + commit_url: str url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - entries: NotRequired[List[ContentTreePropEntriesItemsType]] - links: ContentTreePropLinksType - - -class ContentTreePropLinksType(TypedDict): - """ContentTreePropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str -class ContentTreePropEntriesItemsType(TypedDict): - """ContentTreePropEntriesItems""" +class SimpleCommitStatusType(TypedDict): + """Simple Commit Status""" - type: str - size: int - name: str - path: str - content: NotRequired[str] - sha: str + description: Union[str, None] + id: int + node_id: str + state: str + context: str + target_url: Union[str, None] + required: NotRequired[Union[bool, None]] + avatar_url: Union[str, None] url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentTreePropEntriesItemsPropLinksType - - -class ContentTreePropEntriesItemsPropLinksType(TypedDict): - """ContentTreePropEntriesItemsPropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str + created_at: datetime + updated_at: datetime __all__ = ( - "ContentTreeType", - "ContentTreePropLinksType", - "ContentTreePropEntriesItemsType", - "ContentTreePropEntriesItemsPropLinksType", + "CombinedCommitStatusType", + "SimpleCommitStatusType", ) 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 ee3b791db..dc094331f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0249.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0249.py @@ -9,35 +9,29 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict +from .group_0001 import SimpleUserType -class ContentDirectoryItemsType(TypedDict): - """ContentDirectoryItems""" - type: Literal["dir", "file", "submodule", "symlink"] - size: int - name: str - path: str - content: NotRequired[str] - sha: str - url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentDirectoryItemsPropLinksType - - -class ContentDirectoryItemsPropLinksType(TypedDict): - """ContentDirectoryItemsPropLinks""" +class StatusType(TypedDict): + """Status - git: Union[str, None] - html: Union[str, None] - self_: str + The status of a commit. + """ - -__all__ = ( - "ContentDirectoryItemsType", - "ContentDirectoryItemsPropLinksType", -) + url: str + avatar_url: Union[str, None] + id: int + node_id: str + state: str + description: Union[str, None] + target_url: Union[str, None] + context: str + created_at: str + updated_at: str + creator: Union[None, SimpleUserType] + + +__all__ = ("StatusType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0250.py b/githubkit/versions/ghec_v2022_11_28/types/group_0250.py index 2df578d2e..e77db3344 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0250.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0250.py @@ -9,41 +9,49 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union +from datetime import datetime from typing_extensions import TypedDict, NotRequired +from .group_0016 import LicenseSimpleType +from .group_0122 import CodeOfConductSimpleType -class ContentFileType(TypedDict): - """Content File - Content File - """ +class CommunityProfilePropFilesType(TypedDict): + """CommunityProfilePropFiles""" + + code_of_conduct: Union[None, CodeOfConductSimpleType] + code_of_conduct_file: Union[None, CommunityHealthFileType] + license_: Union[None, LicenseSimpleType] + contributing: Union[None, CommunityHealthFileType] + readme: Union[None, CommunityHealthFileType] + issue_template: Union[None, CommunityHealthFileType] + pull_request_template: Union[None, CommunityHealthFileType] + + +class CommunityHealthFileType(TypedDict): + """Community Health File""" - type: Literal["file"] - encoding: str - size: int - name: str - path: str - content: str - sha: str url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentFilePropLinksType - target: NotRequired[str] - submodule_git_url: NotRequired[str] + html_url: str + +class CommunityProfileType(TypedDict): + """Community Profile -class ContentFilePropLinksType(TypedDict): - """ContentFilePropLinks""" + Community Profile + """ - git: Union[str, None] - html: Union[str, None] - self_: str + health_percentage: int + description: Union[str, None] + documentation: Union[str, None] + files: CommunityProfilePropFilesType + updated_at: Union[datetime, None] + content_reports_enabled: NotRequired[bool] __all__ = ( - "ContentFileType", - "ContentFilePropLinksType", + "CommunityProfilePropFilesType", + "CommunityHealthFileType", + "CommunityProfileType", ) 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 8a5125ca7..5113915da 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0251.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0251.py @@ -9,38 +9,32 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0210 import CommitType +from .group_0209 import DiffEntryType -class ContentSymlinkType(TypedDict): - """Symlink Content - An object describing a symlink +class CommitComparisonType(TypedDict): + """Commit Comparison + + Commit Comparison """ - type: Literal["symlink"] - target: str - size: int - name: str - path: str - sha: str url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentSymlinkPropLinksType - - -class ContentSymlinkPropLinksType(TypedDict): - """ContentSymlinkPropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str - - -__all__ = ( - "ContentSymlinkType", - "ContentSymlinkPropLinksType", -) + 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_0252.py b/githubkit/versions/ghec_v2022_11_28/types/group_0252.py index d8f2d90e7..18ab3b111 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0252.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0252.py @@ -9,18 +9,17 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -class ContentSubmoduleType(TypedDict): - """Submodule Content +class ContentTreeType(TypedDict): + """Content Tree - An object describing a submodule + Content Tree """ - type: Literal["submodule"] - submodule_git_url: str + type: str size: int name: str path: str @@ -29,11 +28,36 @@ class ContentSubmoduleType(TypedDict): git_url: Union[str, None] html_url: Union[str, None] download_url: Union[str, None] - links: ContentSubmodulePropLinksType + entries: NotRequired[List[ContentTreePropEntriesItemsType]] + links: ContentTreePropLinksType -class ContentSubmodulePropLinksType(TypedDict): - """ContentSubmodulePropLinks""" +class ContentTreePropLinksType(TypedDict): + """ContentTreePropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str + + +class ContentTreePropEntriesItemsType(TypedDict): + """ContentTreePropEntriesItems""" + + type: str + size: int + name: str + path: str + content: NotRequired[str] + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentTreePropEntriesItemsPropLinksType + + +class ContentTreePropEntriesItemsPropLinksType(TypedDict): + """ContentTreePropEntriesItemsPropLinks""" git: Union[str, None] html: Union[str, None] @@ -41,6 +65,8 @@ class ContentSubmodulePropLinksType(TypedDict): __all__ = ( - "ContentSubmoduleType", - "ContentSubmodulePropLinksType", + "ContentTreeType", + "ContentTreePropLinksType", + "ContentTreePropEntriesItemsType", + "ContentTreePropEntriesItemsPropLinksType", ) 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 67d3310f1..ee3b791db 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0253.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0253.py @@ -9,106 +9,35 @@ from __future__ import annotations -from typing import List, Union +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class FileCommitType(TypedDict): - """File Commit +class ContentDirectoryItemsType(TypedDict): + """ContentDirectoryItems""" - File Commit - """ + type: Literal["dir", "file", "submodule", "symlink"] + size: int + name: str + path: str + content: NotRequired[str] + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentDirectoryItemsPropLinksType - content: Union[FileCommitPropContentType, None] - commit: FileCommitPropCommitType +class ContentDirectoryItemsPropLinksType(TypedDict): + """ContentDirectoryItemsPropLinks""" -class FileCommitPropContentType(TypedDict): - """FileCommitPropContent""" - - name: NotRequired[str] - path: NotRequired[str] - sha: NotRequired[str] - size: NotRequired[int] - url: NotRequired[str] - html_url: NotRequired[str] - git_url: NotRequired[str] - download_url: NotRequired[str] - type: NotRequired[str] - links: NotRequired[FileCommitPropContentPropLinksType] - - -class FileCommitPropContentPropLinksType(TypedDict): - """FileCommitPropContentPropLinks""" - - self_: NotRequired[str] - git: NotRequired[str] - html: NotRequired[str] - - -class FileCommitPropCommitType(TypedDict): - """FileCommitPropCommit""" - - sha: NotRequired[str] - node_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - author: NotRequired[FileCommitPropCommitPropAuthorType] - committer: NotRequired[FileCommitPropCommitPropCommitterType] - message: NotRequired[str] - tree: NotRequired[FileCommitPropCommitPropTreeType] - parents: NotRequired[List[FileCommitPropCommitPropParentsItemsType]] - verification: NotRequired[FileCommitPropCommitPropVerificationType] - - -class FileCommitPropCommitPropAuthorType(TypedDict): - """FileCommitPropCommitPropAuthor""" - - date: NotRequired[str] - name: NotRequired[str] - email: NotRequired[str] - - -class FileCommitPropCommitPropCommitterType(TypedDict): - """FileCommitPropCommitPropCommitter""" - - date: NotRequired[str] - name: NotRequired[str] - email: NotRequired[str] - - -class FileCommitPropCommitPropTreeType(TypedDict): - """FileCommitPropCommitPropTree""" - - url: NotRequired[str] - sha: NotRequired[str] - - -class FileCommitPropCommitPropParentsItemsType(TypedDict): - """FileCommitPropCommitPropParentsItems""" - - url: NotRequired[str] - html_url: NotRequired[str] - sha: NotRequired[str] - - -class FileCommitPropCommitPropVerificationType(TypedDict): - """FileCommitPropCommitPropVerification""" - - verified: NotRequired[bool] - reason: NotRequired[str] - signature: NotRequired[Union[str, None]] - payload: NotRequired[Union[str, None]] + git: Union[str, None] + html: Union[str, None] + self_: str __all__ = ( - "FileCommitType", - "FileCommitPropContentType", - "FileCommitPropContentPropLinksType", - "FileCommitPropCommitType", - "FileCommitPropCommitPropAuthorType", - "FileCommitPropCommitPropCommitterType", - "FileCommitPropCommitPropTreeType", - "FileCommitPropCommitPropParentsItemsType", - "FileCommitPropCommitPropVerificationType", + "ContentDirectoryItemsType", + "ContentDirectoryItemsPropLinksType", ) 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 e7561bbbb..2df578d2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0254.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0254.py @@ -9,37 +9,41 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ContributorType(TypedDict): - """Contributor +class ContentFileType(TypedDict): + """Content File - Contributor + Content File """ - 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] - - -__all__ = ("ContributorType",) + type: Literal["file"] + encoding: str + size: int + name: str + path: str + content: str + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentFilePropLinksType + target: NotRequired[str] + submodule_git_url: NotRequired[str] + + +class ContentFilePropLinksType(TypedDict): + """ContentFilePropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str + + +__all__ = ( + "ContentFileType", + "ContentFilePropLinksType", +) 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 bedb3bf3c..8a5125ca7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0255.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0255.py @@ -9,42 +9,38 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType -from .group_0256 import DependabotAlertPropDependencyType -from .group_0050 import DependabotAlertSecurityAdvisoryType -from .group_0049 import DependabotAlertSecurityVulnerabilityType +class ContentSymlinkType(TypedDict): + """Symlink Content -class DependabotAlertType(TypedDict): - """DependabotAlert - - A Dependabot alert. + An object describing a symlink """ - number: int - state: Literal["auto_dismissed", "dismissed", "fixed", "open"] - dependency: DependabotAlertPropDependencyType - security_advisory: DependabotAlertSecurityAdvisoryType - security_vulnerability: DependabotAlertSecurityVulnerabilityType + type: Literal["symlink"] + target: str + size: int + name: str + path: str + sha: str url: str - html_url: str - created_at: datetime - updated_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[None, SimpleUserType] - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], - ] - dismissed_comment: Union[str, None] - fixed_at: Union[datetime, None] - auto_dismissed_at: NotRequired[Union[datetime, None]] - - -__all__ = ("DependabotAlertType",) + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentSymlinkPropLinksType + + +class ContentSymlinkPropLinksType(TypedDict): + """ContentSymlinkPropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str + + +__all__ = ( + "ContentSymlinkType", + "ContentSymlinkPropLinksType", +) 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 75b7db3e4..d8f2d90e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0256.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0256.py @@ -10,20 +10,37 @@ from __future__ import annotations from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0048 import DependabotAlertPackageType +class ContentSubmoduleType(TypedDict): + """Submodule Content -class DependabotAlertPropDependencyType(TypedDict): - """DependabotAlertPropDependency - - Details for the vulnerable dependency. + An object describing a submodule """ - package: NotRequired[DependabotAlertPackageType] - manifest_path: NotRequired[str] - scope: NotRequired[Union[None, Literal["development", "runtime"]]] + type: Literal["submodule"] + submodule_git_url: str + size: int + name: str + path: str + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentSubmodulePropLinksType + + +class ContentSubmodulePropLinksType(TypedDict): + """ContentSubmodulePropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str -__all__ = ("DependabotAlertPropDependencyType",) +__all__ = ( + "ContentSubmoduleType", + "ContentSubmodulePropLinksType", +) 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 1a34a23a4..67d3310f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0257.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0257.py @@ -9,35 +9,106 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -class DependencyGraphDiffItemsType(TypedDict): - """DependencyGraphDiffItems""" +class FileCommitType(TypedDict): + """File Commit - 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"] + File Commit + """ + content: Union[FileCommitPropContentType, None] + commit: FileCommitPropCommitType -class DependencyGraphDiffItemsPropVulnerabilitiesItemsType(TypedDict): - """DependencyGraphDiffItemsPropVulnerabilitiesItems""" - severity: str - advisory_ghsa_id: str - advisory_summary: str - advisory_url: str +class FileCommitPropContentType(TypedDict): + """FileCommitPropContent""" + + name: NotRequired[str] + path: NotRequired[str] + sha: NotRequired[str] + size: NotRequired[int] + url: NotRequired[str] + html_url: NotRequired[str] + git_url: NotRequired[str] + download_url: NotRequired[str] + type: NotRequired[str] + links: NotRequired[FileCommitPropContentPropLinksType] + + +class FileCommitPropContentPropLinksType(TypedDict): + """FileCommitPropContentPropLinks""" + + self_: NotRequired[str] + git: NotRequired[str] + html: NotRequired[str] + + +class FileCommitPropCommitType(TypedDict): + """FileCommitPropCommit""" + + sha: NotRequired[str] + node_id: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + author: NotRequired[FileCommitPropCommitPropAuthorType] + committer: NotRequired[FileCommitPropCommitPropCommitterType] + message: NotRequired[str] + tree: NotRequired[FileCommitPropCommitPropTreeType] + parents: NotRequired[List[FileCommitPropCommitPropParentsItemsType]] + verification: NotRequired[FileCommitPropCommitPropVerificationType] + + +class FileCommitPropCommitPropAuthorType(TypedDict): + """FileCommitPropCommitPropAuthor""" + + date: NotRequired[str] + name: NotRequired[str] + email: NotRequired[str] + + +class FileCommitPropCommitPropCommitterType(TypedDict): + """FileCommitPropCommitPropCommitter""" + + date: NotRequired[str] + name: NotRequired[str] + email: NotRequired[str] + + +class FileCommitPropCommitPropTreeType(TypedDict): + """FileCommitPropCommitPropTree""" + + url: NotRequired[str] + sha: NotRequired[str] + + +class FileCommitPropCommitPropParentsItemsType(TypedDict): + """FileCommitPropCommitPropParentsItems""" + + url: NotRequired[str] + html_url: NotRequired[str] + sha: NotRequired[str] + + +class FileCommitPropCommitPropVerificationType(TypedDict): + """FileCommitPropCommitPropVerification""" + + verified: NotRequired[bool] + reason: NotRequired[str] + signature: NotRequired[Union[str, None]] + payload: NotRequired[Union[str, None]] __all__ = ( - "DependencyGraphDiffItemsType", - "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", + "FileCommitType", + "FileCommitPropContentType", + "FileCommitPropContentPropLinksType", + "FileCommitPropCommitType", + "FileCommitPropCommitPropAuthorType", + "FileCommitPropCommitPropCommitterType", + "FileCommitPropCommitPropTreeType", + "FileCommitPropCommitPropParentsItemsType", + "FileCommitPropCommitPropVerificationType", ) 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 2beeefa41..e7561bbbb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0258.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0258.py @@ -9,69 +9,37 @@ from __future__ import annotations -from typing import List +from typing import Union from typing_extensions import TypedDict, NotRequired -class DependencyGraphSpdxSbomType(TypedDict): - """Dependency Graph SPDX SBOM +class ContributorType(TypedDict): + """Contributor - A schema for the SPDX JSON format returned by the Dependency Graph. + Contributor """ - sbom: DependencyGraphSpdxSbomPropSbomType - - -class DependencyGraphSpdxSbomPropSbomType(TypedDict): - """DependencyGraphSpdxSbomPropSbom""" - - spdxid: str - spdx_version: str - creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfoType - name: str - data_license: str - document_describes: List[str] - document_namespace: str - packages: List[DependencyGraphSpdxSbomPropSbomPropPackagesItemsType] - - -class DependencyGraphSpdxSbomPropSbomPropCreationInfoType(TypedDict): - """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" - - created: str - creators: List[str] - - -class DependencyGraphSpdxSbomPropSbomPropPackagesItemsType(TypedDict): - """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" - - spdxid: NotRequired[str] + login: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + avatar_url: NotRequired[str] + gravatar_id: NotRequired[Union[str, None]] + url: NotRequired[str] + html_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + organizations_url: NotRequired[str] + repos_url: NotRequired[str] + events_url: NotRequired[str] + received_events_url: NotRequired[str] + type: str + site_admin: NotRequired[bool] + contributions: int + email: NotRequired[str] name: NotRequired[str] - version_info: NotRequired[str] - download_location: NotRequired[str] - files_analyzed: NotRequired[bool] - license_concluded: NotRequired[str] - license_declared: NotRequired[str] - supplier: NotRequired[str] - external_refs: NotRequired[ - List[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType] - ] - - -class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType( - TypedDict -): - """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" - - reference_category: str - reference_locator: str - reference_type: str -__all__ = ( - "DependencyGraphSpdxSbomType", - "DependencyGraphSpdxSbomPropSbomType", - "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", -) +__all__ = ("ContributorType",) 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 e831de330..2a4cbdecd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0259.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0259.py @@ -9,15 +9,42 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0260 import DependabotAlertPropDependencyType +from .group_0053 import DependabotAlertSecurityAdvisoryType +from .group_0052 import DependabotAlertSecurityVulnerabilityType -class MetadataType(TypedDict): - """metadata - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. - """ +class DependabotAlertType(TypedDict): + """DependabotAlert + A Dependabot alert. + """ -__all__ = ("MetadataType",) + 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_0260.py b/githubkit/versions/ghec_v2022_11_28/types/group_0260.py index 6525f95bf..6e7541985 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0260.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0260.py @@ -9,20 +9,21 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0259 import MetadataType +from .group_0051 import DependabotAlertPackageType -class DependencyType(TypedDict): - """Dependency""" +class DependabotAlertPropDependencyType(TypedDict): + """DependabotAlertPropDependency - package_url: NotRequired[str] - metadata: NotRequired[MetadataType] - relationship: NotRequired[Literal["direct", "indirect"]] - scope: NotRequired[Literal["runtime", "development"]] - dependencies: NotRequired[List[str]] + Details for the vulnerable dependency. + """ + package: NotRequired[DependabotAlertPackageType] + manifest_path: NotRequired[str] + scope: NotRequired[Union[None, Literal["development", "runtime"]]] -__all__ = ("DependencyType",) + +__all__ = ("DependabotAlertPropDependencyType",) 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 e989f8b76..1a34a23a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0261.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0261.py @@ -9,35 +9,35 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List, Union, Literal +from typing_extensions import TypedDict -from .group_0259 import MetadataType +class DependencyGraphDiffItemsType(TypedDict): + """DependencyGraphDiffItems""" -class ManifestType(TypedDict): - """Manifest""" - + change_type: Literal["added", "removed"] + manifest: str + ecosystem: str name: str - file: NotRequired[ManifestPropFileType] - metadata: NotRequired[MetadataType] - resolved: NotRequired[ManifestPropResolvedType] - - -class ManifestPropFileType(TypedDict): - """ManifestPropFile""" - - source_location: NotRequired[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 ManifestPropResolvedType(TypedDict): - """ManifestPropResolved +class DependencyGraphDiffItemsPropVulnerabilitiesItemsType(TypedDict): + """DependencyGraphDiffItemsPropVulnerabilitiesItems""" - A collection of resolved package dependencies. - """ + severity: str + advisory_ghsa_id: str + advisory_summary: str + advisory_url: str __all__ = ( - "ManifestType", - "ManifestPropFileType", - "ManifestPropResolvedType", + "DependencyGraphDiffItemsType", + "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", ) 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 211fc922b..d42233903 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0262.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0262.py @@ -9,58 +9,70 @@ from __future__ import annotations -from datetime import datetime +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0259 import MetadataType +class DependencyGraphSpdxSbomType(TypedDict): + """Dependency Graph SPDX SBOM -class SnapshotType(TypedDict): - """snapshot - - Create a new snapshot of a repository's dependencies. + A schema for the SPDX JSON format returned by the Dependency Graph. """ - version: int - job: SnapshotPropJobType - sha: str - ref: str - detector: SnapshotPropDetectorType - metadata: NotRequired[MetadataType] - manifests: NotRequired[SnapshotPropManifestsType] - scanned: datetime + sbom: DependencyGraphSpdxSbomPropSbomType -class SnapshotPropJobType(TypedDict): - """SnapshotPropJob""" +class DependencyGraphSpdxSbomPropSbomType(TypedDict): + """DependencyGraphSpdxSbomPropSbom""" - id: str - correlator: str - html_url: NotRequired[str] + spdxid: str + spdx_version: str + creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfoType + name: str + data_license: str + document_describes: List[str] + document_namespace: str + packages: List[DependencyGraphSpdxSbomPropSbomPropPackagesItemsType] -class SnapshotPropDetectorType(TypedDict): - """SnapshotPropDetector +class DependencyGraphSpdxSbomPropSbomPropCreationInfoType(TypedDict): + """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" - A description of the detector used. - """ + created: str + creators: List[str] - name: str - version: str - url: str +class DependencyGraphSpdxSbomPropSbomPropPackagesItemsType(TypedDict): + """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" -class SnapshotPropManifestsType(TypedDict): - """SnapshotPropManifests + 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] + ] - A collection of package manifests, which are a collection of related - dependencies declared in a file or representing a logical group of dependencies. - """ + +class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType( + TypedDict +): + """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" + + reference_category: str + reference_locator: str + reference_type: str __all__ = ( - "SnapshotType", - "SnapshotPropJobType", - "SnapshotPropDetectorType", - "SnapshotPropManifestsType", + "DependencyGraphSpdxSbomType", + "DependencyGraphSpdxSbomPropSbomType", + "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", ) 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 2d0690f5e..e831de330 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0263.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0263.py @@ -9,37 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +class MetadataType(TypedDict): + """metadata -class DeploymentStatusType(TypedDict): - """Deployment Status - - The status of a deployment. + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. """ - 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",) + +__all__ = ("MetadataType",) 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 2b9241c94..087887b87 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0264.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0264.py @@ -9,18 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0263 import MetadataType -class DeploymentBranchPolicySettingsType(TypedDict): - """DeploymentBranchPolicySettings - The type of deployment branch policy for this environment. To allow all branches - to deploy, set to `null`. - """ +class DependencyType(TypedDict): + """Dependency""" - protected_branches: bool - custom_branch_policies: bool + package_url: NotRequired[str] + metadata: NotRequired[MetadataType] + relationship: NotRequired[Literal["direct", "indirect"]] + scope: NotRequired[Literal["runtime", "development"]] + dependencies: NotRequired[List[str]] -__all__ = ("DeploymentBranchPolicySettingsType",) +__all__ = ("DependencyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0265.py b/githubkit/versions/ghec_v2022_11_28/types/group_0265.py index ebf66e2f0..71f343ba2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0265.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0265.py @@ -9,68 +9,35 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0264 import DeploymentBranchPolicySettingsType -from .group_0266 import EnvironmentPropProtectionRulesItemsAnyof1Type +from .group_0263 import MetadataType -class EnvironmentType(TypedDict): - """Environment +class ManifestType(TypedDict): + """Manifest""" - Details of a deployment environment - """ - - id: int - node_id: str name: str - url: str - html_url: str - created_at: datetime - updated_at: datetime - protection_rules: NotRequired[ - List[ - Union[ - EnvironmentPropProtectionRulesItemsAnyof0Type, - EnvironmentPropProtectionRulesItemsAnyof1Type, - EnvironmentPropProtectionRulesItemsAnyof2Type, - ] - ] - ] - deployment_branch_policy: NotRequired[ - Union[DeploymentBranchPolicySettingsType, None] - ] - + file: NotRequired[ManifestPropFileType] + metadata: NotRequired[MetadataType] + resolved: NotRequired[ManifestPropResolvedType] -class EnvironmentPropProtectionRulesItemsAnyof0Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof0""" - id: int - node_id: str - type: str - wait_timer: NotRequired[int] +class ManifestPropFileType(TypedDict): + """ManifestPropFile""" + source_location: NotRequired[str] -class EnvironmentPropProtectionRulesItemsAnyof2Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof2""" - id: int - node_id: str - type: str +class ManifestPropResolvedType(TypedDict): + """ManifestPropResolved - -class ReposOwnerRepoEnvironmentsGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsGetResponse200""" - - total_count: NotRequired[int] - environments: NotRequired[List[EnvironmentType]] + A collection of resolved package dependencies. + """ __all__ = ( - "EnvironmentType", - "EnvironmentPropProtectionRulesItemsAnyof0Type", - "EnvironmentPropProtectionRulesItemsAnyof2Type", - "ReposOwnerRepoEnvironmentsGetResponse200Type", + "ManifestType", + "ManifestPropFileType", + "ManifestPropResolvedType", ) 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 9d1dbbbc4..0504f81da 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0266.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0266.py @@ -9,22 +9,58 @@ from __future__ import annotations -from typing import List +from datetime import datetime from typing_extensions import TypedDict, NotRequired -from .group_0267 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType +from .group_0263 import MetadataType -class EnvironmentPropProtectionRulesItemsAnyof1Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof1""" +class SnapshotType(TypedDict): + """snapshot - id: int - node_id: str - prevent_self_review: NotRequired[bool] - type: str - reviewers: NotRequired[ - List[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType] - ] + Create a new snapshot of a repository's dependencies. + """ + version: int + job: SnapshotPropJobType + sha: str + ref: str + detector: SnapshotPropDetectorType + metadata: NotRequired[MetadataType] + manifests: NotRequired[SnapshotPropManifestsType] + scanned: datetime -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1Type",) + +class SnapshotPropJobType(TypedDict): + """SnapshotPropJob""" + + id: str + correlator: str + html_url: NotRequired[str] + + +class SnapshotPropDetectorType(TypedDict): + """SnapshotPropDetector + + A description of the detector used. + """ + + name: str + version: str + url: str + + +class SnapshotPropManifestsType(TypedDict): + """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__ = ( + "SnapshotType", + "SnapshotPropJobType", + "SnapshotPropDetectorType", + "SnapshotPropManifestsType", +) 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 1c8c522d8..2d0690f5e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0267.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0267.py @@ -9,18 +9,37 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0093 import TeamType from .group_0001 import SimpleUserType - - -class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" - - type: NotRequired[Literal["User", "Team"]] - reviewer: NotRequired[Union[SimpleUserType, TeamType]] - - -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType",) +from .group_0006 import IntegrationType + + +class DeploymentStatusType(TypedDict): + """Deployment Status + + The status of a deployment. + """ + + url: str + id: int + node_id: str + state: Literal[ + "error", "failure", "inactive", "pending", "success", "queued", "in_progress" + ] + creator: Union[None, SimpleUserType] + description: str + environment: NotRequired[str] + target_url: str + created_at: datetime + updated_at: datetime + deployment_url: str + repository_url: str + environment_url: NotRequired[str] + log_url: NotRequired[str] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + + +__all__ = ("DeploymentStatusType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0268.py b/githubkit/versions/ghec_v2022_11_28/types/group_0268.py index 685ed9914..2b9241c94 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0268.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0268.py @@ -9,15 +9,18 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class DeploymentBranchPolicyNamePatternWithTypeType(TypedDict): - """Deployment branch and tag policy name pattern""" +class DeploymentBranchPolicySettingsType(TypedDict): + """DeploymentBranchPolicySettings - name: str - type: NotRequired[Literal["branch", "tag"]] + The type of deployment branch policy for this environment. To allow all branches + to deploy, set to `null`. + """ + protected_branches: bool + custom_branch_policies: bool -__all__ = ("DeploymentBranchPolicyNamePatternWithTypeType",) + +__all__ = ("DeploymentBranchPolicySettingsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0269.py b/githubkit/versions/ghec_v2022_11_28/types/group_0269.py index 784015c57..e5c2784ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0269.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0269.py @@ -9,13 +9,68 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union +from typing_extensions import TypedDict, NotRequired +from .group_0268 import DeploymentBranchPolicySettingsType +from .group_0270 import EnvironmentPropProtectionRulesItemsAnyof1Type -class DeploymentBranchPolicyNamePatternType(TypedDict): - """Deployment branch policy name pattern""" +class EnvironmentType(TypedDict): + """Environment + + Details of a deployment environment + """ + + id: int + node_id: str name: str + url: str + html_url: str + created_at: datetime + updated_at: datetime + protection_rules: NotRequired[ + List[ + Union[ + EnvironmentPropProtectionRulesItemsAnyof0Type, + EnvironmentPropProtectionRulesItemsAnyof1Type, + EnvironmentPropProtectionRulesItemsAnyof2Type, + ] + ] + ] + deployment_branch_policy: NotRequired[ + Union[DeploymentBranchPolicySettingsType, None] + ] + + +class EnvironmentPropProtectionRulesItemsAnyof0Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof0""" + + id: int + node_id: str + type: str + wait_timer: NotRequired[int] + + +class EnvironmentPropProtectionRulesItemsAnyof2Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof2""" + + id: int + node_id: str + type: str + + +class ReposOwnerRepoEnvironmentsGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsGetResponse200""" + + total_count: NotRequired[int] + environments: NotRequired[List[EnvironmentType]] -__all__ = ("DeploymentBranchPolicyNamePatternType",) +__all__ = ( + "EnvironmentType", + "EnvironmentPropProtectionRulesItemsAnyof0Type", + "EnvironmentPropProtectionRulesItemsAnyof2Type", + "ReposOwnerRepoEnvironmentsGetResponse200Type", +) 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 55685e749..d0b74c151 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0270.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0270.py @@ -9,19 +9,22 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired +from .group_0271 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType -class CustomDeploymentRuleAppType(TypedDict): - """Custom deployment protection rule app - A GitHub App that is providing a custom deployment protection rule. - """ +class EnvironmentPropProtectionRulesItemsAnyof1Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof1""" id: int - slug: str - integration_url: str node_id: str + prevent_self_review: NotRequired[bool] + type: str + reviewers: NotRequired[ + List[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType] + ] -__all__ = ("CustomDeploymentRuleAppType",) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0271.py b/githubkit/versions/ghec_v2022_11_28/types/group_0271.py index ddac0367a..a121d6470 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0271.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0271.py @@ -9,38 +9,18 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0270 import CustomDeploymentRuleAppType +from .group_0048 import TeamType +from .group_0001 import SimpleUserType -class DeploymentProtectionRuleType(TypedDict): - """Deployment protection rule +class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" - Deployment protection rule - """ + type: NotRequired[Literal["User", "Team"]] + reviewer: NotRequired[Union[SimpleUserType, TeamType]] - id: int - node_id: str - enabled: bool - app: CustomDeploymentRuleAppType - -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 - - Examples: - {'$ref': '#/components/examples/deployment-protection-rules'} - """ - - total_count: NotRequired[int] - custom_deployment_protection_rules: NotRequired[List[DeploymentProtectionRuleType]] - - -__all__ = ( - "DeploymentProtectionRuleType", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", -) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0272.py b/githubkit/versions/ghec_v2022_11_28/types/group_0272.py index deb8a4c9a..685ed9914 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0272.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0272.py @@ -9,17 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ShortBlobType(TypedDict): - """Short Blob +class DeploymentBranchPolicyNamePatternWithTypeType(TypedDict): + """Deployment branch and tag policy name pattern""" - Short Blob - """ + name: str + type: NotRequired[Literal["branch", "tag"]] - url: str - sha: str - -__all__ = ("ShortBlobType",) +__all__ = ("DeploymentBranchPolicyNamePatternWithTypeType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0273.py b/githubkit/versions/ghec_v2022_11_28/types/group_0273.py index 1a6e42c81..784015c57 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0273.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0273.py @@ -9,23 +9,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class BlobType(TypedDict): - """Blob +class DeploymentBranchPolicyNamePatternType(TypedDict): + """Deployment branch policy name pattern""" - Blob - """ + name: str - content: str - encoding: str - url: str - sha: str - size: Union[int, None] - node_id: str - highlighted_content: NotRequired[str] - -__all__ = ("BlobType",) +__all__ = ("DeploymentBranchPolicyNamePatternType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0274.py b/githubkit/versions/ghec_v2022_11_28/types/group_0274.py index bf554bd0c..55685e749 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0274.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0274.py @@ -9,80 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union from typing_extensions import TypedDict -class GitCommitType(TypedDict): - """Git Commit +class CustomDeploymentRuleAppType(TypedDict): + """Custom deployment protection rule app - Low-level Git commit operations within a repository + A GitHub App that is providing a custom deployment protection rule. """ - sha: str + id: int + slug: str + integration_url: str node_id: str - url: str - author: GitCommitPropAuthorType - committer: GitCommitPropCommitterType - message: str - tree: GitCommitPropTreeType - parents: List[GitCommitPropParentsItemsType] - verification: GitCommitPropVerificationType - html_url: str -class GitCommitPropAuthorType(TypedDict): - """GitCommitPropAuthor - - Identifying information for the git-user - """ - - date: datetime - email: str - name: str - - -class GitCommitPropCommitterType(TypedDict): - """GitCommitPropCommitter - - Identifying information for the git-user - """ - - date: datetime - email: str - name: str - - -class GitCommitPropTreeType(TypedDict): - """GitCommitPropTree""" - - sha: str - url: str - - -class GitCommitPropParentsItemsType(TypedDict): - """GitCommitPropParentsItems""" - - sha: str - url: str - html_url: str - - -class GitCommitPropVerificationType(TypedDict): - """GitCommitPropVerification""" - - verified: bool - reason: str - signature: Union[str, None] - payload: Union[str, None] - - -__all__ = ( - "GitCommitType", - "GitCommitPropAuthorType", - "GitCommitPropCommitterType", - "GitCommitPropTreeType", - "GitCommitPropParentsItemsType", - "GitCommitPropVerificationType", -) +__all__ = ("CustomDeploymentRuleAppType",) 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 e71059c34..9e40ce78a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0275.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0275.py @@ -9,30 +9,38 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired +from .group_0274 import CustomDeploymentRuleAppType -class GitRefType(TypedDict): - """Git Reference - Git references within a repository +class DeploymentProtectionRuleType(TypedDict): + """Deployment protection rule + + Deployment protection rule """ - ref: str + id: int node_id: str - url: str - object_: GitRefPropObjectType + enabled: bool + app: CustomDeploymentRuleAppType + +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 -class GitRefPropObjectType(TypedDict): - """GitRefPropObject""" + Examples: + {'$ref': '#/components/examples/deployment-protection-rules'} + """ - type: str - sha: str - url: str + total_count: NotRequired[int] + custom_deployment_protection_rules: NotRequired[List[DeploymentProtectionRuleType]] __all__ = ( - "GitRefType", - "GitRefPropObjectType", + "DeploymentProtectionRuleType", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", ) 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 f6c485abf..deb8a4c9a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0276.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0276.py @@ -9,45 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0204 import VerificationType +class ShortBlobType(TypedDict): + """Short Blob -class GitTagType(TypedDict): - """Git Tag - - Metadata for a Git tag + Short Blob """ - node_id: str - tag: str - sha: str url: str - message: str - tagger: GitTagPropTaggerType - object_: GitTagPropObjectType - verification: NotRequired[VerificationType] - - -class GitTagPropTaggerType(TypedDict): - """GitTagPropTagger""" - - date: str - email: str - name: str - - -class GitTagPropObjectType(TypedDict): - """GitTagPropObject""" - sha: str - type: str - url: str -__all__ = ( - "GitTagType", - "GitTagPropTaggerType", - "GitTagPropObjectType", -) +__all__ = ("ShortBlobType",) 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 808d10108..1a6e42c81 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0277.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0277.py @@ -9,34 +9,23 @@ from __future__ import annotations -from typing import List +from typing import Union from typing_extensions import TypedDict, NotRequired -class GitTreeType(TypedDict): - """Git Tree +class BlobType(TypedDict): + """Blob - The hierarchy between files in a Git repository. + Blob """ - sha: str + content: str + encoding: str url: str - truncated: bool - tree: List[GitTreePropTreeItemsType] - - -class GitTreePropTreeItemsType(TypedDict): - """GitTreePropTreeItems""" - - path: NotRequired[str] - mode: NotRequired[str] - type: NotRequired[str] - sha: NotRequired[str] - size: NotRequired[int] - url: NotRequired[str] + sha: str + size: Union[int, None] + node_id: str + highlighted_content: NotRequired[str] -__all__ = ( - "GitTreeType", - "GitTreePropTreeItemsType", -) +__all__ = ("BlobType",) 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 2763aab9e..bf554bd0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0278.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0278.py @@ -9,16 +9,80 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union from typing_extensions import TypedDict -class HookResponseType(TypedDict): - """Hook Response""" +class GitCommitType(TypedDict): + """Git Commit - code: Union[int, None] - status: Union[str, None] - message: Union[str, None] + Low-level Git commit operations within a repository + """ + sha: str + node_id: str + url: str + author: GitCommitPropAuthorType + committer: GitCommitPropCommitterType + message: str + tree: GitCommitPropTreeType + parents: List[GitCommitPropParentsItemsType] + verification: GitCommitPropVerificationType + html_url: str -__all__ = ("HookResponseType",) + +class GitCommitPropAuthorType(TypedDict): + """GitCommitPropAuthor + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class GitCommitPropCommitterType(TypedDict): + """GitCommitPropCommitter + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class GitCommitPropTreeType(TypedDict): + """GitCommitPropTree""" + + sha: str + url: str + + +class GitCommitPropParentsItemsType(TypedDict): + """GitCommitPropParentsItems""" + + sha: str + url: str + html_url: str + + +class GitCommitPropVerificationType(TypedDict): + """GitCommitPropVerification""" + + verified: bool + reason: str + signature: Union[str, None] + payload: Union[str, None] + + +__all__ = ( + "GitCommitType", + "GitCommitPropAuthorType", + "GitCommitPropCommitterType", + "GitCommitPropTreeType", + "GitCommitPropParentsItemsType", + "GitCommitPropVerificationType", +) 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 0b15d40bc..e71059c34 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0279.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0279.py @@ -9,33 +9,30 @@ from __future__ import annotations -from typing import List -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0278 import HookResponseType -from .group_0007 import WebhookConfigType +class GitRefType(TypedDict): + """Git Reference -class HookType(TypedDict): - """Webhook - - Webhooks for repositories. + Git references within a repository """ + ref: str + node_id: str + url: str + object_: GitRefPropObjectType + + +class GitRefPropObjectType(TypedDict): + """GitRefPropObject""" + type: str - id: int - name: str - active: bool - events: List[str] - config: WebhookConfigType - updated_at: datetime - created_at: datetime + sha: str url: str - test_url: str - ping_url: str - deliveries_url: NotRequired[str] - last_response: HookResponseType -__all__ = ("HookType",) +__all__ = ( + "GitRefType", + "GitRefPropObjectType", +) 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 c88910d89..1d37aadce 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0280.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0280.py @@ -9,67 +9,45 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0208 import VerificationType -class ImportType(TypedDict): - """Import - A repository import from an external source. +class GitTagType(TypedDict): + """Git Tag + + Metadata for a Git tag """ - vcs: Union[str, None] - use_lfs: NotRequired[bool] - vcs_url: str - svc_root: NotRequired[str] - tfvc_project: NotRequired[str] - status: Literal[ - "auth", - "error", - "none", - "detecting", - "choose", - "auth_failed", - "importing", - "mapping", - "waiting_to_push", - "pushing", - "complete", - "setup", - "unknown", - "detection_found_multiple", - "detection_found_nothing", - "detection_needs_auth", - ] - status_text: NotRequired[Union[str, None]] - failed_step: NotRequired[Union[str, None]] - error_message: NotRequired[Union[str, None]] - import_percent: NotRequired[Union[int, None]] - commit_count: NotRequired[Union[int, None]] - push_percent: NotRequired[Union[int, None]] - has_large_files: NotRequired[bool] - large_files_size: NotRequired[int] - large_files_count: NotRequired[int] - project_choices: NotRequired[List[ImportPropProjectChoicesItemsType]] - message: NotRequired[str] - authors_count: NotRequired[Union[int, None]] + node_id: str + tag: str + sha: str url: str - html_url: str - authors_url: str - repository_url: str - svn_root: NotRequired[str] + message: str + tagger: GitTagPropTaggerType + object_: GitTagPropObjectType + verification: NotRequired[VerificationType] + + +class GitTagPropTaggerType(TypedDict): + """GitTagPropTagger""" + date: str + email: str + name: str -class ImportPropProjectChoicesItemsType(TypedDict): - """ImportPropProjectChoicesItems""" - vcs: NotRequired[str] - tfvc_project: NotRequired[str] - human_name: NotRequired[str] +class GitTagPropObjectType(TypedDict): + """GitTagPropObject""" + + sha: str + type: str + url: str __all__ = ( - "ImportType", - "ImportPropProjectChoicesItemsType", + "GitTagType", + "GitTagPropTaggerType", + "GitTagPropObjectType", ) 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 a760ba55a..808d10108 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0281.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0281.py @@ -9,22 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class PorterAuthorType(TypedDict): - """Porter Author +class GitTreeType(TypedDict): + """Git Tree - Porter Author + The hierarchy between files in a Git repository. """ - id: int - remote_id: str - remote_name: str - email: str - name: str + sha: str url: str - import_url: str + truncated: bool + tree: List[GitTreePropTreeItemsType] -__all__ = ("PorterAuthorType",) +class GitTreePropTreeItemsType(TypedDict): + """GitTreePropTreeItems""" + + path: NotRequired[str] + mode: NotRequired[str] + type: NotRequired[str] + sha: NotRequired[str] + size: NotRequired[int] + url: NotRequired[str] + + +__all__ = ( + "GitTreeType", + "GitTreePropTreeItemsType", +) 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 ae1425148..2763aab9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0282.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0282.py @@ -9,19 +9,16 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -class PorterLargeFileType(TypedDict): - """Porter Large File +class HookResponseType(TypedDict): + """Hook Response""" - Porter Large File - """ + code: Union[int, None] + status: Union[str, None] + message: Union[str, None] - ref_name: str - path: str - oid: str - size: int - -__all__ = ("PorterLargeFileType",) +__all__ = ("HookResponseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0283.py b/githubkit/versions/ghec_v2022_11_28/types/group_0283.py index c8ac1f3b9..e8218963c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0283.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0283.py @@ -9,114 +9,33 @@ from __future__ import annotations +from typing import List from datetime import datetime -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0093 import TeamType -from .group_0063 import IssueType -from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +from .group_0282 import HookResponseType +from .group_0007 import WebhookConfigType -class IssueEventType(TypedDict): - """Issue Event +class HookType(TypedDict): + """Webhook - Issue Event + Webhooks for repositories. """ + type: str id: int - node_id: str - url: str - actor: Union[None, SimpleUserType] - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] + name: str + active: bool + events: List[str] + config: WebhookConfigType + updated_at: datetime created_at: datetime - issue: NotRequired[Union[None, IssueType]] - label: NotRequired[IssueEventLabelType] - assignee: NotRequired[Union[None, SimpleUserType]] - assigner: NotRequired[Union[None, SimpleUserType]] - review_requester: NotRequired[Union[None, SimpleUserType]] - requested_reviewer: NotRequired[Union[None, SimpleUserType]] - requested_team: NotRequired[TeamType] - dismissed_review: NotRequired[IssueEventDismissedReviewType] - milestone: NotRequired[IssueEventMilestoneType] - project_card: NotRequired[IssueEventProjectCardType] - rename: NotRequired[IssueEventRenameType] - author_association: NotRequired[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - ] - lock_reason: NotRequired[Union[str, None]] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -class IssueEventLabelType(TypedDict): - """Issue Event Label - - Issue Event Label - """ - - name: Union[str, None] - color: Union[str, None] - - -class IssueEventDismissedReviewType(TypedDict): - """Issue Event Dismissed Review""" - - state: str - review_id: int - dismissal_message: Union[str, None] - dismissal_commit_id: NotRequired[Union[str, None]] - - -class IssueEventMilestoneType(TypedDict): - """Issue Event Milestone - - Issue Event Milestone - """ - - title: str - - -class IssueEventProjectCardType(TypedDict): - """Issue Event Project Card - - Issue Event Project Card - """ - url: str - id: int - project_url: str - project_id: int - column_name: str - previous_column_name: NotRequired[str] - - -class IssueEventRenameType(TypedDict): - """Issue Event Rename - - Issue Event Rename - """ - - from_: str - to: str + test_url: str + ping_url: str + deliveries_url: NotRequired[str] + last_response: HookResponseType -__all__ = ( - "IssueEventType", - "IssueEventLabelType", - "IssueEventDismissedReviewType", - "IssueEventMilestoneType", - "IssueEventProjectCardType", - "IssueEventRenameType", -) +__all__ = ("HookType",) 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 857260701..c88910d89 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0284.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0284.py @@ -9,39 +9,67 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +class ImportType(TypedDict): + """Import -class LabeledIssueEventType(TypedDict): - """Labeled Issue Event - - Labeled Issue Event + A repository import from an external source. """ - id: int - node_id: str + vcs: Union[str, None] + use_lfs: NotRequired[bool] + vcs_url: str + svc_root: NotRequired[str] + tfvc_project: NotRequired[str] + status: Literal[ + "auth", + "error", + "none", + "detecting", + "choose", + "auth_failed", + "importing", + "mapping", + "waiting_to_push", + "pushing", + "complete", + "setup", + "unknown", + "detection_found_multiple", + "detection_found_nothing", + "detection_needs_auth", + ] + status_text: NotRequired[Union[str, None]] + failed_step: NotRequired[Union[str, None]] + error_message: NotRequired[Union[str, None]] + import_percent: NotRequired[Union[int, None]] + commit_count: NotRequired[Union[int, None]] + push_percent: NotRequired[Union[int, None]] + has_large_files: NotRequired[bool] + large_files_size: NotRequired[int] + large_files_count: NotRequired[int] + project_choices: NotRequired[List[ImportPropProjectChoicesItemsType]] + message: NotRequired[str] + authors_count: NotRequired[Union[int, None]] url: str - actor: SimpleUserType - event: Literal["labeled"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - label: LabeledIssueEventPropLabelType + html_url: str + authors_url: str + repository_url: str + svn_root: NotRequired[str] -class LabeledIssueEventPropLabelType(TypedDict): - """LabeledIssueEventPropLabel""" +class ImportPropProjectChoicesItemsType(TypedDict): + """ImportPropProjectChoicesItems""" - name: str - color: str + vcs: NotRequired[str] + tfvc_project: NotRequired[str] + human_name: NotRequired[str] __all__ = ( - "LabeledIssueEventType", - "LabeledIssueEventPropLabelType", + "ImportType", + "ImportPropProjectChoicesItemsType", ) 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 f0a4b1061..a760ba55a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0285.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0285.py @@ -9,39 +9,22 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict -from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +class PorterAuthorType(TypedDict): + """Porter Author -class UnlabeledIssueEventType(TypedDict): - """Unlabeled Issue Event - - Unlabeled Issue Event + Porter Author """ id: int - node_id: str - url: str - actor: SimpleUserType - event: Literal["unlabeled"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - label: UnlabeledIssueEventPropLabelType - - -class UnlabeledIssueEventPropLabelType(TypedDict): - """UnlabeledIssueEventPropLabel""" - + remote_id: str + remote_name: str + email: str name: str - color: str + url: str + import_url: str -__all__ = ( - "UnlabeledIssueEventType", - "UnlabeledIssueEventPropLabelType", -) +__all__ = ("PorterAuthorType",) 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 c5261ecb2..ae1425148 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0286.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0286.py @@ -9,30 +9,19 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +class PorterLargeFileType(TypedDict): + """Porter Large File -class AssignedIssueEventType(TypedDict): - """Assigned Issue Event - - Assigned Issue Event + Porter Large File """ - id: int - node_id: str - url: str - actor: SimpleUserType - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[IntegrationType, None] - assignee: SimpleUserType - assigner: SimpleUserType + ref_name: str + path: str + oid: str + size: int -__all__ = ("AssignedIssueEventType",) +__all__ = ("PorterLargeFileType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0287.py b/githubkit/versions/ghec_v2022_11_28/types/group_0287.py index c834cdffe..e4194d794 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0287.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0287.py @@ -9,30 +9,114 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0048 import TeamType +from .group_0066 import IssueType from .group_0001 import SimpleUserType from .group_0006 import IntegrationType -class UnassignedIssueEventType(TypedDict): - """Unassigned Issue Event +class IssueEventType(TypedDict): + """Issue Event - Unassigned Issue Event + Issue Event """ id: int node_id: str url: str - actor: SimpleUserType + actor: Union[None, SimpleUserType] event: str commit_id: Union[str, None] commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - assignee: SimpleUserType - assigner: SimpleUserType + created_at: datetime + issue: NotRequired[Union[None, IssueType]] + label: NotRequired[IssueEventLabelType] + assignee: NotRequired[Union[None, SimpleUserType]] + assigner: NotRequired[Union[None, SimpleUserType]] + review_requester: NotRequired[Union[None, SimpleUserType]] + requested_reviewer: NotRequired[Union[None, SimpleUserType]] + requested_team: NotRequired[TeamType] + dismissed_review: NotRequired[IssueEventDismissedReviewType] + milestone: NotRequired[IssueEventMilestoneType] + project_card: NotRequired[IssueEventProjectCardType] + rename: NotRequired[IssueEventRenameType] + author_association: NotRequired[ + Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + ] + lock_reason: NotRequired[Union[str, None]] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] -__all__ = ("UnassignedIssueEventType",) +class IssueEventLabelType(TypedDict): + """Issue Event Label + + Issue Event Label + """ + + name: Union[str, None] + color: Union[str, None] + + +class IssueEventDismissedReviewType(TypedDict): + """Issue Event Dismissed Review""" + + state: str + review_id: int + dismissal_message: Union[str, None] + dismissal_commit_id: NotRequired[Union[str, None]] + + +class IssueEventMilestoneType(TypedDict): + """Issue Event Milestone + + Issue Event Milestone + """ + + title: str + + +class IssueEventProjectCardType(TypedDict): + """Issue Event Project Card + + Issue Event Project Card + """ + + url: str + id: int + project_url: str + project_id: int + column_name: str + previous_column_name: NotRequired[str] + + +class IssueEventRenameType(TypedDict): + """Issue Event Rename + + Issue Event Rename + """ + + from_: str + to: str + + +__all__ = ( + "IssueEventType", + "IssueEventLabelType", + "IssueEventDismissedReviewType", + "IssueEventMilestoneType", + "IssueEventProjectCardType", + "IssueEventRenameType", +) 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 abcf12396..857260701 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0288.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0288.py @@ -16,31 +16,32 @@ from .group_0006 import IntegrationType -class MilestonedIssueEventType(TypedDict): - """Milestoned Issue Event +class LabeledIssueEventType(TypedDict): + """Labeled Issue Event - Milestoned Issue Event + Labeled Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["milestoned"] + event: Literal["labeled"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - milestone: MilestonedIssueEventPropMilestoneType + label: LabeledIssueEventPropLabelType -class MilestonedIssueEventPropMilestoneType(TypedDict): - """MilestonedIssueEventPropMilestone""" +class LabeledIssueEventPropLabelType(TypedDict): + """LabeledIssueEventPropLabel""" - title: str + name: str + color: str __all__ = ( - "MilestonedIssueEventType", - "MilestonedIssueEventPropMilestoneType", + "LabeledIssueEventType", + "LabeledIssueEventPropLabelType", ) 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 cc660d0ab..f0a4b1061 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0289.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0289.py @@ -16,31 +16,32 @@ from .group_0006 import IntegrationType -class DemilestonedIssueEventType(TypedDict): - """Demilestoned Issue Event +class UnlabeledIssueEventType(TypedDict): + """Unlabeled Issue Event - Demilestoned Issue Event + Unlabeled Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["demilestoned"] + event: Literal["unlabeled"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - milestone: DemilestonedIssueEventPropMilestoneType + label: UnlabeledIssueEventPropLabelType -class DemilestonedIssueEventPropMilestoneType(TypedDict): - """DemilestonedIssueEventPropMilestone""" +class UnlabeledIssueEventPropLabelType(TypedDict): + """UnlabeledIssueEventPropLabel""" - title: str + name: str + color: str __all__ = ( - "DemilestonedIssueEventType", - "DemilestonedIssueEventPropMilestoneType", + "UnlabeledIssueEventType", + "UnlabeledIssueEventPropLabelType", ) 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 8f62f2478..c5261ecb2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0290.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0290.py @@ -9,39 +9,30 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union from typing_extensions import TypedDict from .group_0001 import SimpleUserType from .group_0006 import IntegrationType -class RenamedIssueEventType(TypedDict): - """Renamed Issue Event +class AssignedIssueEventType(TypedDict): + """Assigned Issue Event - Renamed Issue Event + Assigned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["renamed"] + event: str commit_id: Union[str, None] commit_url: Union[str, None] created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - rename: RenamedIssueEventPropRenameType + performed_via_github_app: Union[IntegrationType, None] + assignee: SimpleUserType + assigner: SimpleUserType -class RenamedIssueEventPropRenameType(TypedDict): - """RenamedIssueEventPropRename""" - - from_: str - to: str - - -__all__ = ( - "RenamedIssueEventType", - "RenamedIssueEventPropRenameType", -) +__all__ = ("AssignedIssueEventType",) 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 4f63ec760..c834cdffe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0291.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0291.py @@ -9,32 +9,30 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0093 import TeamType from .group_0001 import SimpleUserType from .group_0006 import IntegrationType -class ReviewRequestedIssueEventType(TypedDict): - """Review Requested Issue Event +class UnassignedIssueEventType(TypedDict): + """Unassigned Issue Event - Review Requested Issue Event + Unassigned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_requested"] + event: str commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - review_requester: SimpleUserType - requested_team: NotRequired[TeamType] - requested_reviewer: NotRequired[SimpleUserType] + assignee: SimpleUserType + assigner: SimpleUserType -__all__ = ("ReviewRequestedIssueEventType",) +__all__ = ("UnassignedIssueEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0292.py b/githubkit/versions/ghec_v2022_11_28/types/group_0292.py index 01dfe13fe..abcf12396 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0292.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0292.py @@ -10,31 +10,37 @@ from __future__ import annotations from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0093 import TeamType from .group_0001 import SimpleUserType from .group_0006 import IntegrationType -class ReviewRequestRemovedIssueEventType(TypedDict): - """Review Request Removed Issue Event +class MilestonedIssueEventType(TypedDict): + """Milestoned Issue Event - Review Request Removed Issue Event + Milestoned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_request_removed"] + event: Literal["milestoned"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - review_requester: SimpleUserType - requested_team: NotRequired[TeamType] - requested_reviewer: NotRequired[SimpleUserType] + milestone: MilestonedIssueEventPropMilestoneType -__all__ = ("ReviewRequestRemovedIssueEventType",) +class MilestonedIssueEventPropMilestoneType(TypedDict): + """MilestonedIssueEventPropMilestone""" + + title: str + + +__all__ = ( + "MilestonedIssueEventType", + "MilestonedIssueEventPropMilestoneType", +) 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 832e0d041..cc660d0ab 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0293.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0293.py @@ -10,40 +10,37 @@ from __future__ import annotations from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict from .group_0001 import SimpleUserType from .group_0006 import IntegrationType -class ReviewDismissedIssueEventType(TypedDict): - """Review Dismissed Issue Event +class DemilestonedIssueEventType(TypedDict): + """Demilestoned Issue Event - Review Dismissed Issue Event + Demilestoned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_dismissed"] + event: Literal["demilestoned"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - dismissed_review: ReviewDismissedIssueEventPropDismissedReviewType + milestone: DemilestonedIssueEventPropMilestoneType -class ReviewDismissedIssueEventPropDismissedReviewType(TypedDict): - """ReviewDismissedIssueEventPropDismissedReview""" +class DemilestonedIssueEventPropMilestoneType(TypedDict): + """DemilestonedIssueEventPropMilestone""" - state: str - review_id: int - dismissal_message: Union[str, None] - dismissal_commit_id: NotRequired[str] + title: str __all__ = ( - "ReviewDismissedIssueEventType", - "ReviewDismissedIssueEventPropDismissedReviewType", + "DemilestonedIssueEventType", + "DemilestonedIssueEventPropMilestoneType", ) 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 9d98b5731..8f62f2478 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0294.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0294.py @@ -16,22 +16,32 @@ from .group_0006 import IntegrationType -class LockedIssueEventType(TypedDict): - """Locked Issue Event +class RenamedIssueEventType(TypedDict): + """Renamed Issue Event - Locked Issue Event + Renamed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["locked"] + event: Literal["renamed"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - lock_reason: Union[str, None] + rename: RenamedIssueEventPropRenameType -__all__ = ("LockedIssueEventType",) +class RenamedIssueEventPropRenameType(TypedDict): + """RenamedIssueEventPropRename""" + + from_: str + to: str + + +__all__ = ( + "RenamedIssueEventType", + "RenamedIssueEventPropRenameType", +) 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 0966e1d37..8043996e6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0295.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0295.py @@ -12,40 +12,29 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0048 import TeamType from .group_0001 import SimpleUserType from .group_0006 import IntegrationType -class AddedToProjectIssueEventType(TypedDict): - """Added to Project Issue Event +class ReviewRequestedIssueEventType(TypedDict): + """Review Requested Issue Event - Added to Project Issue Event + Review Requested Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["added_to_project"] + event: Literal["review_requested"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[AddedToProjectIssueEventPropProjectCardType] + review_requester: SimpleUserType + requested_team: NotRequired[TeamType] + requested_reviewer: NotRequired[SimpleUserType] -class AddedToProjectIssueEventPropProjectCardType(TypedDict): - """AddedToProjectIssueEventPropProjectCard""" - - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] - - -__all__ = ( - "AddedToProjectIssueEventType", - "AddedToProjectIssueEventPropProjectCardType", -) +__all__ = ("ReviewRequestedIssueEventType",) 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 05c993e52..8041a2e47 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0296.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0296.py @@ -12,40 +12,29 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0048 import TeamType from .group_0001 import SimpleUserType from .group_0006 import IntegrationType -class MovedColumnInProjectIssueEventType(TypedDict): - """Moved Column in Project Issue Event +class ReviewRequestRemovedIssueEventType(TypedDict): + """Review Request Removed Issue Event - Moved Column in Project Issue Event + Review Request Removed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["moved_columns_in_project"] + event: Literal["review_request_removed"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[MovedColumnInProjectIssueEventPropProjectCardType] + review_requester: SimpleUserType + requested_team: NotRequired[TeamType] + requested_reviewer: NotRequired[SimpleUserType] -class MovedColumnInProjectIssueEventPropProjectCardType(TypedDict): - """MovedColumnInProjectIssueEventPropProjectCard""" - - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] - - -__all__ = ( - "MovedColumnInProjectIssueEventType", - "MovedColumnInProjectIssueEventPropProjectCardType", -) +__all__ = ("ReviewRequestRemovedIssueEventType",) 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 de3942a58..832e0d041 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0297.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0297.py @@ -16,36 +16,34 @@ from .group_0006 import IntegrationType -class RemovedFromProjectIssueEventType(TypedDict): - """Removed from Project Issue Event +class ReviewDismissedIssueEventType(TypedDict): + """Review Dismissed Issue Event - Removed from Project Issue Event + Review Dismissed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["removed_from_project"] + event: Literal["review_dismissed"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[RemovedFromProjectIssueEventPropProjectCardType] + dismissed_review: ReviewDismissedIssueEventPropDismissedReviewType -class RemovedFromProjectIssueEventPropProjectCardType(TypedDict): - """RemovedFromProjectIssueEventPropProjectCard""" +class ReviewDismissedIssueEventPropDismissedReviewType(TypedDict): + """ReviewDismissedIssueEventPropDismissedReview""" - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] + state: str + review_id: int + dismissal_message: Union[str, None] + dismissal_commit_id: NotRequired[str] __all__ = ( - "RemovedFromProjectIssueEventType", - "RemovedFromProjectIssueEventPropProjectCardType", + "ReviewDismissedIssueEventType", + "ReviewDismissedIssueEventPropDismissedReviewType", ) 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 213bc0091..9d98b5731 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0298.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0298.py @@ -10,42 +10,28 @@ from __future__ import annotations from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict from .group_0001 import SimpleUserType from .group_0006 import IntegrationType -class ConvertedNoteToIssueIssueEventType(TypedDict): - """Converted Note to Issue Issue Event +class LockedIssueEventType(TypedDict): + """Locked Issue Event - Converted Note to Issue Issue Event + Locked Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["converted_note_to_issue"] + event: Literal["locked"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str - performed_via_github_app: Union[IntegrationType, None] - project_card: NotRequired[ConvertedNoteToIssueIssueEventPropProjectCardType] + performed_via_github_app: Union[None, IntegrationType, None] + lock_reason: Union[str, None] -class ConvertedNoteToIssueIssueEventPropProjectCardType(TypedDict): - """ConvertedNoteToIssueIssueEventPropProjectCard""" - - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] - - -__all__ = ( - "ConvertedNoteToIssueIssueEventType", - "ConvertedNoteToIssueIssueEventPropProjectCardType", -) +__all__ = ("LockedIssueEventType",) 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 b11ea9ee0..0966e1d37 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0299.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0299.py @@ -9,24 +9,43 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType -class LabelType(TypedDict): - """Label - Color-coded labels help you categorize and filter your issues (just like labels - in Gmail). +class AddedToProjectIssueEventType(TypedDict): + """Added to Project Issue Event + + Added to Project Issue Event """ id: int node_id: str url: str - name: str - description: Union[str, None] - color: str - default: bool + actor: SimpleUserType + event: Literal["added_to_project"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + project_card: NotRequired[AddedToProjectIssueEventPropProjectCardType] + + +class AddedToProjectIssueEventPropProjectCardType(TypedDict): + """AddedToProjectIssueEventPropProjectCard""" + + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] -__all__ = ("LabelType",) +__all__ = ( + "AddedToProjectIssueEventType", + "AddedToProjectIssueEventPropProjectCardType", +) 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 fb57b2a90..05c993e52 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0300.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0300.py @@ -9,46 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType from .group_0006 import IntegrationType -from .group_0062 import ReactionRollupType -class TimelineCommentEventType(TypedDict): - """Timeline Comment Event +class MovedColumnInProjectIssueEventType(TypedDict): + """Moved Column in Project Issue Event - Timeline Comment Event + Moved Column in 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["moved_columns_in_project"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + project_card: NotRequired[MovedColumnInProjectIssueEventPropProjectCardType] + + +class MovedColumnInProjectIssueEventPropProjectCardType(TypedDict): + """MovedColumnInProjectIssueEventPropProjectCard""" + + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] + + +__all__ = ( + "MovedColumnInProjectIssueEventType", + "MovedColumnInProjectIssueEventPropProjectCardType", +) 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 4d34648b1..de3942a58 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0301.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0301.py @@ -9,25 +9,43 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -from .group_0302 import TimelineCrossReferencedEventPropSourceType +from .group_0006 import IntegrationType -class TimelineCrossReferencedEventType(TypedDict): - """Timeline Cross Referenced Event +class RemovedFromProjectIssueEventType(TypedDict): + """Removed from Project Issue Event - Timeline Cross Referenced Event + Removed from Project Issue Event """ - event: Literal["cross-referenced"] - actor: NotRequired[SimpleUserType] - created_at: datetime - updated_at: datetime - source: TimelineCrossReferencedEventPropSourceType - - -__all__ = ("TimelineCrossReferencedEventType",) + id: int + node_id: str + url: str + actor: SimpleUserType + event: Literal["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__ = ( + "RemovedFromProjectIssueEventType", + "RemovedFromProjectIssueEventPropProjectCardType", +) 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 00952cd2e..213bc0091 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0302.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0302.py @@ -9,16 +9,43 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0063 import IssueType +from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType -class TimelineCrossReferencedEventPropSourceType(TypedDict): - """TimelineCrossReferencedEventPropSource""" +class ConvertedNoteToIssueIssueEventType(TypedDict): + """Converted Note to Issue Issue Event - type: NotRequired[str] - issue: NotRequired[IssueType] + Converted Note to Issue Issue Event + """ + 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] -__all__ = ("TimelineCrossReferencedEventPropSourceType",) + +class ConvertedNoteToIssueIssueEventPropProjectCardType(TypedDict): + """ConvertedNoteToIssueIssueEventPropProjectCard""" + + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] + + +__all__ = ( + "ConvertedNoteToIssueIssueEventType", + "ConvertedNoteToIssueIssueEventPropProjectCardType", +) 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 503b39935..b11ea9ee0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0303.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0303.py @@ -9,81 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -class TimelineCommittedEventType(TypedDict): - """Timeline Committed Event +class LabelType(TypedDict): + """Label - Timeline Committed Event + Color-coded labels help you categorize and filter your issues (just like labels + in Gmail). """ - event: NotRequired[Literal["committed"]] - sha: str + id: int node_id: str url: str - author: TimelineCommittedEventPropAuthorType - committer: TimelineCommittedEventPropCommitterType - message: str - tree: TimelineCommittedEventPropTreeType - parents: List[TimelineCommittedEventPropParentsItemsType] - verification: TimelineCommittedEventPropVerificationType - html_url: str - - -class TimelineCommittedEventPropAuthorType(TypedDict): - """TimelineCommittedEventPropAuthor - - Identifying information for the git-user - """ - - date: datetime - email: str - name: str - - -class TimelineCommittedEventPropCommitterType(TypedDict): - """TimelineCommittedEventPropCommitter - - Identifying information for the git-user - """ - - date: datetime - email: str name: str + description: Union[str, None] + color: str + default: bool -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] - - -__all__ = ( - "TimelineCommittedEventType", - "TimelineCommittedEventPropAuthorType", - "TimelineCommittedEventPropCommitterType", - "TimelineCommittedEventPropTreeType", - "TimelineCommittedEventPropParentsItemsType", - "TimelineCommittedEventPropVerificationType", -) +__all__ = ("LabelType",) 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 87719cafc..1b2a6cb30 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0304.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0304.py @@ -14,27 +14,29 @@ from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType +from .group_0065 import ReactionRollupType -class TimelineReviewedEventType(TypedDict): - """Timeline Reviewed Event +class TimelineCommentEventType(TypedDict): + """Timeline Comment Event - Timeline Reviewed Event + Timeline Comment Event """ - event: Literal["reviewed"] + event: Literal["commented"] + actor: SimpleUserType id: int node_id: str - user: SimpleUserType - body: Union[str, None] - state: str + url: str + body: NotRequired[str] + body_text: NotRequired[str] + body_html: NotRequired[str] html_url: str - pull_request_url: str - links: TimelineReviewedEventPropLinksType - submitted_at: NotRequired[datetime] - commit_id: str - body_html: NotRequired[Union[str, None]] - body_text: NotRequired[Union[str, None]] + user: SimpleUserType + created_at: datetime + updated_at: datetime + issue_url: str author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -45,30 +47,8 @@ class TimelineReviewedEventType(TypedDict): "NONE", "OWNER", ] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + reactions: NotRequired[ReactionRollupType] -class TimelineReviewedEventPropLinksType(TypedDict): - """TimelineReviewedEventPropLinks""" - - html: TimelineReviewedEventPropLinksPropHtmlType - pull_request: TimelineReviewedEventPropLinksPropPullRequestType - - -class TimelineReviewedEventPropLinksPropHtmlType(TypedDict): - """TimelineReviewedEventPropLinksPropHtml""" - - href: str - - -class TimelineReviewedEventPropLinksPropPullRequestType(TypedDict): - """TimelineReviewedEventPropLinksPropPullRequest""" - - href: str - - -__all__ = ( - "TimelineReviewedEventType", - "TimelineReviewedEventPropLinksType", - "TimelineReviewedEventPropLinksPropHtmlType", - "TimelineReviewedEventPropLinksPropPullRequestType", -) +__all__ = ("TimelineCommentEventType",) 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 26095674f..31d0044bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0305.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0305.py @@ -9,103 +9,25 @@ from __future__ import annotations +from typing import Literal from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -from .group_0062 import ReactionRollupType +from .group_0306 import TimelineCrossReferencedEventPropSourceType -class PullRequestReviewCommentType(TypedDict): - """Pull Request Review Comment +class TimelineCrossReferencedEventType(TypedDict): + """Timeline Cross Referenced Event - Pull Request Review Comments are comments on a portion of the Pull Request's - diff. + Timeline Cross Referenced Event """ - url: str - pull_request_review_id: Union[int, None] - id: int - node_id: str - diff_hunk: str - path: str - position: NotRequired[int] - original_position: NotRequired[int] - commit_id: str - original_commit_id: str - in_reply_to_id: NotRequired[int] - user: SimpleUserType - body: str + event: Literal["cross-referenced"] + actor: NotRequired[SimpleUserType] created_at: datetime updated_at: datetime - html_url: str - pull_request_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - links: PullRequestReviewCommentPropLinksType - start_line: NotRequired[Union[int, None]] - original_start_line: NotRequired[Union[int, None]] - start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] - line: NotRequired[int] - original_line: NotRequired[int] - side: NotRequired[Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - reactions: NotRequired[ReactionRollupType] - body_html: NotRequired[str] - body_text: NotRequired[str] + source: TimelineCrossReferencedEventPropSourceType -class PullRequestReviewCommentPropLinksType(TypedDict): - """PullRequestReviewCommentPropLinks""" - - self_: PullRequestReviewCommentPropLinksPropSelfType - html: PullRequestReviewCommentPropLinksPropHtmlType - pull_request: PullRequestReviewCommentPropLinksPropPullRequestType - - -class PullRequestReviewCommentPropLinksPropSelfType(TypedDict): - """PullRequestReviewCommentPropLinksPropSelf""" - - href: str - - -class PullRequestReviewCommentPropLinksPropHtmlType(TypedDict): - """PullRequestReviewCommentPropLinksPropHtml""" - - href: str - - -class PullRequestReviewCommentPropLinksPropPullRequestType(TypedDict): - """PullRequestReviewCommentPropLinksPropPullRequest""" - - href: str - - -class TimelineLineCommentedEventType(TypedDict): - """Timeline Line Commented Event - - Timeline Line Commented Event - """ - - event: NotRequired[Literal["line_commented"]] - node_id: NotRequired[str] - comments: NotRequired[List[PullRequestReviewCommentType]] - - -__all__ = ( - "PullRequestReviewCommentType", - "PullRequestReviewCommentPropLinksType", - "PullRequestReviewCommentPropLinksPropSelfType", - "PullRequestReviewCommentPropLinksPropHtmlType", - "PullRequestReviewCommentPropLinksPropPullRequestType", - "TimelineLineCommentedEventType", -) +__all__ = ("TimelineCrossReferencedEventType",) 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 5d0ffc202..cf1740923 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0306.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0306.py @@ -9,29 +9,16 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +from .group_0066 import IssueType -class TimelineAssignedIssueEventType(TypedDict): - """Timeline Assigned Issue Event +class TimelineCrossReferencedEventPropSourceType(TypedDict): + """TimelineCrossReferencedEventPropSource""" - Timeline Assigned Issue Event - """ + type: NotRequired[str] + issue: NotRequired[IssueType] - id: int - node_id: str - url: str - actor: SimpleUserType - event: Literal["assigned"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - assignee: SimpleUserType - -__all__ = ("TimelineAssignedIssueEventType",) +__all__ = ("TimelineCrossReferencedEventPropSourceType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0307.py b/githubkit/versions/ghec_v2022_11_28/types/group_0307.py index a7f2375d0..503b39935 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0307.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0307.py @@ -9,29 +9,81 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +class TimelineCommittedEventType(TypedDict): + """Timeline Committed Event -class TimelineUnassignedIssueEventType(TypedDict): - """Timeline Unassigned Issue Event - - Timeline Unassigned Issue Event + Timeline Committed Event """ - id: int + event: NotRequired[Literal["committed"]] + sha: str node_id: str url: str - actor: SimpleUserType - event: Literal["unassigned"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - assignee: SimpleUserType + author: TimelineCommittedEventPropAuthorType + committer: TimelineCommittedEventPropCommitterType + message: str + tree: TimelineCommittedEventPropTreeType + parents: List[TimelineCommittedEventPropParentsItemsType] + verification: TimelineCommittedEventPropVerificationType + html_url: str + + +class TimelineCommittedEventPropAuthorType(TypedDict): + """TimelineCommittedEventPropAuthor + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class TimelineCommittedEventPropCommitterType(TypedDict): + """TimelineCommittedEventPropCommitter + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class TimelineCommittedEventPropTreeType(TypedDict): + """TimelineCommittedEventPropTree""" + + sha: str + url: str + + +class TimelineCommittedEventPropParentsItemsType(TypedDict): + """TimelineCommittedEventPropParentsItems""" + + sha: str + url: str + html_url: str + + +class TimelineCommittedEventPropVerificationType(TypedDict): + """TimelineCommittedEventPropVerification""" + + verified: bool + reason: str + signature: Union[str, None] + payload: Union[str, None] -__all__ = ("TimelineUnassignedIssueEventType",) +__all__ = ( + "TimelineCommittedEventType", + "TimelineCommittedEventPropAuthorType", + "TimelineCommittedEventPropCommitterType", + "TimelineCommittedEventPropTreeType", + "TimelineCommittedEventPropParentsItemsType", + "TimelineCommittedEventPropVerificationType", +) 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 85665bfa3..87719cafc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0308.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0308.py @@ -9,29 +9,66 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType -class StateChangeIssueEventType(TypedDict): - """State Change Issue Event +class TimelineReviewedEventType(TypedDict): + """Timeline Reviewed Event - State Change Issue Event + Timeline Reviewed Event """ + event: Literal["reviewed"] id: int node_id: str - url: str - actor: SimpleUserType - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - state_reason: NotRequired[Union[str, None]] + user: SimpleUserType + body: Union[str, None] + state: str + html_url: str + pull_request_url: str + links: TimelineReviewedEventPropLinksType + submitted_at: NotRequired[datetime] + commit_id: str + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] -__all__ = ("StateChangeIssueEventType",) +class TimelineReviewedEventPropLinksType(TypedDict): + """TimelineReviewedEventPropLinks""" + + html: TimelineReviewedEventPropLinksPropHtmlType + pull_request: TimelineReviewedEventPropLinksPropPullRequestType + + +class TimelineReviewedEventPropLinksPropHtmlType(TypedDict): + """TimelineReviewedEventPropLinksPropHtml""" + + href: str + + +class TimelineReviewedEventPropLinksPropPullRequestType(TypedDict): + """TimelineReviewedEventPropLinksPropPullRequest""" + + href: str + + +__all__ = ( + "TimelineReviewedEventType", + "TimelineReviewedEventPropLinksType", + "TimelineReviewedEventPropLinksPropHtmlType", + "TimelineReviewedEventPropLinksPropPullRequestType", +) 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 270956693..5a815cb5f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0309.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0309.py @@ -9,25 +9,103 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0065 import ReactionRollupType -class DeployKeyType(TypedDict): - """Deploy Key - An SSH key granting access to a single repository. +class PullRequestReviewCommentType(TypedDict): + """Pull Request Review Comment + + Pull Request Review Comments are comments on a portion of the Pull Request's + diff. """ - id: int - key: str url: str - title: str - verified: bool - created_at: str - read_only: bool - added_by: NotRequired[Union[str, None]] - last_used: NotRequired[Union[str, None]] + pull_request_review_id: Union[int, None] + id: int + node_id: str + diff_hunk: str + path: str + position: NotRequired[int] + original_position: NotRequired[int] + commit_id: str + original_commit_id: str + in_reply_to_id: NotRequired[int] + user: SimpleUserType + body: str + created_at: datetime + updated_at: datetime + html_url: str + pull_request_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + links: PullRequestReviewCommentPropLinksType + start_line: NotRequired[Union[int, None]] + original_start_line: NotRequired[Union[int, None]] + start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] + line: NotRequired[int] + original_line: NotRequired[int] + side: NotRequired[Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + reactions: NotRequired[ReactionRollupType] + body_html: NotRequired[str] + body_text: NotRequired[str] + + +class PullRequestReviewCommentPropLinksType(TypedDict): + """PullRequestReviewCommentPropLinks""" + + self_: PullRequestReviewCommentPropLinksPropSelfType + html: PullRequestReviewCommentPropLinksPropHtmlType + pull_request: PullRequestReviewCommentPropLinksPropPullRequestType + + +class PullRequestReviewCommentPropLinksPropSelfType(TypedDict): + """PullRequestReviewCommentPropLinksPropSelf""" + + href: str + + +class PullRequestReviewCommentPropLinksPropHtmlType(TypedDict): + """PullRequestReviewCommentPropLinksPropHtml""" + + href: str + + +class PullRequestReviewCommentPropLinksPropPullRequestType(TypedDict): + """PullRequestReviewCommentPropLinksPropPullRequest""" + + href: str + + +class TimelineLineCommentedEventType(TypedDict): + """Timeline Line Commented Event + + Timeline Line Commented Event + """ + + event: NotRequired[Literal["line_commented"]] + node_id: NotRequired[str] + comments: NotRequired[List[PullRequestReviewCommentType]] -__all__ = ("DeployKeyType",) +__all__ = ( + "PullRequestReviewCommentType", + "PullRequestReviewCommentPropLinksType", + "PullRequestReviewCommentPropLinksPropSelfType", + "PullRequestReviewCommentPropLinksPropHtmlType", + "PullRequestReviewCommentPropLinksPropPullRequestType", + "TimelineLineCommentedEventType", +) 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 3e17052fa..5d0ffc202 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0310.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0310.py @@ -9,14 +9,29 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict +from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType -class LanguageType(TypedDict): - """Language - Language +class TimelineAssignedIssueEventType(TypedDict): + """Timeline Assigned Issue Event + + Timeline Assigned Issue Event """ + id: int + node_id: str + url: str + actor: SimpleUserType + event: Literal["assigned"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + assignee: SimpleUserType + -__all__ = ("LanguageType",) +__all__ = ("TimelineAssignedIssueEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0311.py b/githubkit/versions/ghec_v2022_11_28/types/group_0311.py index b29269706..a7f2375d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0311.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0311.py @@ -9,42 +9,29 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from typing_extensions import TypedDict -from .group_0016 import LicenseSimpleType +from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType -class LicenseContentType(TypedDict): - """License Content +class TimelineUnassignedIssueEventType(TypedDict): + """Timeline Unassigned Issue Event - License Content + Timeline Unassigned Issue Event """ - name: str - path: str - sha: str - size: int + id: int + node_id: str url: str - html_url: Union[str, None] - git_url: Union[str, None] - download_url: Union[str, None] - type: str - content: str - encoding: str - links: LicenseContentPropLinksType - license_: Union[None, LicenseSimpleType] + actor: SimpleUserType + event: Literal["unassigned"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + assignee: SimpleUserType -class LicenseContentPropLinksType(TypedDict): - """LicenseContentPropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str - - -__all__ = ( - "LicenseContentType", - "LicenseContentPropLinksType", -) +__all__ = ("TimelineUnassignedIssueEventType",) 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 9b2e5b242..85665bfa3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0312.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0312.py @@ -9,19 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType -class MergedUpstreamType(TypedDict): - """Merged upstream - Results of a successful merge upstream request +class StateChangeIssueEventType(TypedDict): + """State Change Issue Event + + State Change Issue Event """ - message: NotRequired[str] - merge_type: NotRequired[Literal["merge", "fast-forward", "none"]] - base_branch: NotRequired[str] + id: int + node_id: str + url: str + actor: SimpleUserType + event: str + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + state_reason: NotRequired[Union[str, None]] -__all__ = ("MergedUpstreamType",) +__all__ = ("StateChangeIssueEventType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0313.py b/githubkit/versions/ghec_v2022_11_28/types/group_0313.py index a626094ab..270956693 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0313.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0313.py @@ -9,64 +9,25 @@ from __future__ import annotations -from datetime import date, datetime -from typing import List, Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -class PageType(TypedDict): - """GitHub Pages +class DeployKeyType(TypedDict): + """Deploy Key - The configuration for GitHub Pages for a repository. + An SSH key granting access to a single repository. """ + id: int + key: str url: str - status: Union[None, Literal["built", "building", "errored"]] - cname: Union[str, None] - protected_domain_state: NotRequired[ - Union[None, Literal["pending", "verified", "unverified"]] - ] - pending_domain_unverified_at: NotRequired[Union[datetime, None]] - custom_404: bool - html_url: NotRequired[str] - build_type: NotRequired[Union[None, Literal["legacy", "workflow"]]] - source: NotRequired[PagesSourceHashType] - public: bool - https_certificate: NotRequired[PagesHttpsCertificateType] - https_enforced: NotRequired[bool] + title: str + verified: bool + created_at: str + read_only: bool + added_by: NotRequired[Union[str, None]] + last_used: NotRequired[Union[str, None]] -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", - "PagesSourceHashType", - "PagesHttpsCertificateType", -) +__all__ = ("DeployKeyType",) 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 9fb53f3a2..3e17052fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0314.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0314.py @@ -9,36 +9,14 @@ from __future__ import annotations -from typing import Union -from datetime import datetime from typing_extensions import TypedDict -from .group_0001 import SimpleUserType +class LanguageType(TypedDict): + """Language -class PageBuildType(TypedDict): - """Page Build - - Page Build + Language """ - 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__ = ( - "PageBuildType", - "PageBuildPropErrorType", -) +__all__ = ("LanguageType",) 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 d7001e4a1..b29269706 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0315.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0315.py @@ -9,17 +9,42 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict +from .group_0016 import LicenseSimpleType -class PageBuildStatusType(TypedDict): - """Page Build Status - Page Build Status +class LicenseContentType(TypedDict): + """License Content + + License Content """ + name: str + path: str + sha: str + size: int url: str - status: str + html_url: Union[str, None] + git_url: Union[str, None] + download_url: Union[str, None] + type: str + content: str + encoding: str + links: LicenseContentPropLinksType + license_: Union[None, LicenseSimpleType] + + +class LicenseContentPropLinksType(TypedDict): + """LicenseContentPropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str -__all__ = ("PageBuildStatusType",) +__all__ = ( + "LicenseContentType", + "LicenseContentPropLinksType", +) 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 cfd439e5b..9b2e5b242 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0316.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0316.py @@ -9,20 +9,19 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -class PageDeploymentType(TypedDict): - """GitHub Pages +class MergedUpstreamType(TypedDict): + """Merged upstream - The GitHub Pages deployment status. + Results of a successful merge upstream request """ - id: Union[int, str] - status_url: str - page_url: str - preview_url: NotRequired[str] + message: NotRequired[str] + merge_type: NotRequired[Literal["merge", "fast-forward", "none"]] + base_branch: NotRequired[str] -__all__ = ("PageDeploymentType",) +__all__ = ("MergedUpstreamType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0317.py b/githubkit/versions/ghec_v2022_11_28/types/group_0317.py index 6420e8ce7..a626094ab 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0317.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0317.py @@ -9,28 +9,64 @@ from __future__ import annotations -from typing import Literal +from datetime import date, datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class PagesDeploymentStatusType(TypedDict): - """GitHub Pages deployment status""" - - status: NotRequired[ - Literal[ - "deployment_in_progress", - "syncing_files", - "finished_file_sync", - "updating_pages", - "purging_cdn", - "deployment_cancelled", - "deployment_failed", - "deployment_content_failed", - "deployment_attempt_error", - "deployment_lost", - "succeed", - ] +class PageType(TypedDict): + """GitHub Pages + + The configuration for GitHub Pages for a repository. + """ + + url: str + status: Union[None, Literal["built", "building", "errored"]] + cname: Union[str, None] + protected_domain_state: NotRequired[ + Union[None, Literal["pending", "verified", "unverified"]] + ] + pending_domain_unverified_at: NotRequired[Union[datetime, None]] + custom_404: bool + html_url: NotRequired[str] + build_type: NotRequired[Union[None, Literal["legacy", "workflow"]]] + source: NotRequired[PagesSourceHashType] + public: bool + https_certificate: NotRequired[PagesHttpsCertificateType] + https_enforced: NotRequired[bool] + + +class PagesSourceHashType(TypedDict): + """Pages Source Hash""" + + branch: str + path: str + + +class PagesHttpsCertificateType(TypedDict): + """Pages Https Certificate""" + + state: Literal[ + "new", + "authorization_created", + "authorization_pending", + "authorized", + "authorization_revoked", + "issued", + "uploaded", + "approved", + "errored", + "bad_authz", + "destroy_pending", + "dns_changed", ] + description: str + domains: List[str] + expires_at: NotRequired[date] -__all__ = ("PagesDeploymentStatusType",) +__all__ = ( + "PageType", + "PagesSourceHashType", + "PagesHttpsCertificateType", +) 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 ebcf6ff9c..9fb53f3a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0318.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0318.py @@ -10,87 +10,35 @@ from __future__ import annotations from typing import Union -from typing_extensions import TypedDict, NotRequired +from datetime import datetime +from typing_extensions import TypedDict +from .group_0001 import SimpleUserType -class PagesHealthCheckType(TypedDict): - """Pages Health Check Status - Pages Health Check Status - """ - - domain: NotRequired[PagesHealthCheckPropDomainType] - alt_domain: NotRequired[Union[PagesHealthCheckPropAltDomainType, None]] +class PageBuildType(TypedDict): + """Page Build + Page Build + """ -class PagesHealthCheckPropDomainType(TypedDict): - """PagesHealthCheckPropDomain""" - - host: NotRequired[str] - uri: NotRequired[str] - nameservers: NotRequired[str] - dns_resolves: NotRequired[bool] - is_proxied: NotRequired[Union[bool, None]] - is_cloudflare_ip: NotRequired[Union[bool, None]] - is_fastly_ip: NotRequired[Union[bool, None]] - is_old_ip_address: NotRequired[Union[bool, None]] - is_a_record: NotRequired[Union[bool, None]] - has_cname_record: NotRequired[Union[bool, None]] - has_mx_records_present: NotRequired[Union[bool, None]] - is_valid_domain: NotRequired[bool] - is_apex_domain: NotRequired[bool] - should_be_a_record: NotRequired[Union[bool, None]] - is_cname_to_github_user_domain: NotRequired[Union[bool, None]] - is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] - is_cname_to_fastly: NotRequired[Union[bool, None]] - is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] - is_non_github_pages_ip_present: NotRequired[Union[bool, None]] - is_pages_domain: NotRequired[bool] - is_served_by_pages: NotRequired[Union[bool, None]] - is_valid: NotRequired[bool] - reason: NotRequired[Union[str, None]] - responds_to_https: NotRequired[bool] - enforces_https: NotRequired[bool] - https_error: NotRequired[Union[str, None]] - is_https_eligible: NotRequired[Union[bool, None]] - caa_error: NotRequired[Union[str, None]] + url: str + status: str + error: PageBuildPropErrorType + pusher: Union[None, SimpleUserType] + commit: str + duration: int + created_at: datetime + updated_at: datetime -class PagesHealthCheckPropAltDomainType(TypedDict): - """PagesHealthCheckPropAltDomain""" +class PageBuildPropErrorType(TypedDict): + """PageBuildPropError""" - host: NotRequired[str] - uri: NotRequired[str] - nameservers: NotRequired[str] - dns_resolves: NotRequired[bool] - is_proxied: NotRequired[Union[bool, None]] - is_cloudflare_ip: NotRequired[Union[bool, None]] - is_fastly_ip: NotRequired[Union[bool, None]] - is_old_ip_address: NotRequired[Union[bool, None]] - is_a_record: NotRequired[Union[bool, None]] - has_cname_record: NotRequired[Union[bool, None]] - has_mx_records_present: NotRequired[Union[bool, None]] - is_valid_domain: NotRequired[bool] - is_apex_domain: NotRequired[bool] - should_be_a_record: NotRequired[Union[bool, None]] - is_cname_to_github_user_domain: NotRequired[Union[bool, None]] - is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] - is_cname_to_fastly: NotRequired[Union[bool, None]] - is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] - is_non_github_pages_ip_present: NotRequired[Union[bool, None]] - is_pages_domain: NotRequired[bool] - is_served_by_pages: NotRequired[Union[bool, None]] - is_valid: NotRequired[bool] - reason: NotRequired[Union[str, None]] - responds_to_https: NotRequired[bool] - enforces_https: NotRequired[bool] - https_error: NotRequired[Union[str, None]] - is_https_eligible: NotRequired[Union[bool, None]] - caa_error: NotRequired[Union[str, None]] + message: Union[str, None] __all__ = ( - "PagesHealthCheckType", - "PagesHealthCheckPropDomainType", - "PagesHealthCheckPropAltDomainType", + "PageBuildType", + "PageBuildPropErrorType", ) 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 e935d8a2b..d7001e4a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0319.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0319.py @@ -9,85 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0061 import MilestoneType -from .group_0240 import AutoMergeType -from .group_0001 import SimpleUserType -from .group_0092 import TeamSimpleType -from .group_0321 import PullRequestPropBaseType -from .group_0323 import PullRequestPropLinksType -from .group_0320 import PullRequestPropHeadType, PullRequestPropLabelsItemsType +class PageBuildStatusType(TypedDict): + """Page Build Status -class PullRequestType(TypedDict): - """Pull Request - - Pull requests let you tell others about changes you've pushed to a repository on - GitHub. Once a pull request is sent, interested parties can review the set of - changes, discuss potential modifications, and even push follow-up commits if - necessary. + Page Build Status """ url: str - id: int - node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: List[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[List[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] - requested_teams: NotRequired[Union[List[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int + status: str -__all__ = ("PullRequestType",) +__all__ = ("PageBuildStatusType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0320.py b/githubkit/versions/ghec_v2022_11_28/types/group_0320.py index 77cd3f3eb..cfd439e5b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0320.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0320.py @@ -9,195 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import Union from typing_extensions import TypedDict, NotRequired -class PullRequestPropLabelsItemsType(TypedDict): - """PullRequestPropLabelsItems""" +class PageDeploymentType(TypedDict): + """GitHub Pages - id: int - node_id: str - url: str - name: str - description: Union[str, None] - color: str - default: bool + The GitHub Pages deployment status. + """ + id: Union[int, str] + status_url: str + page_url: str + preview_url: NotRequired[str] -class PullRequestPropHeadType(TypedDict): - """PullRequestPropHead""" - label: Union[str, None] - ref: str - repo: Union[PullRequestPropHeadPropRepoType, None] - sha: str - user: Union[PullRequestPropHeadPropUserType, None] - - -class PullRequestPropHeadPropRepoType(TypedDict): - """PullRequestPropHeadPropRepo""" - - 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 - node_id: 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 - name: str - notifications_url: str - owner: PullRequestPropHeadPropRepoPropOwnerType - 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 - clone_url: str - default_branch: str - forks: int - forks_count: int - git_url: str - has_downloads: bool - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_discussions: bool - homepage: Union[str, None] - language: Union[str, None] - master_branch: NotRequired[str] - archived: bool - disabled: bool - visibility: NotRequired[str] - mirror_url: Union[str, None] - open_issues: int - open_issues_count: int - permissions: NotRequired[PullRequestPropHeadPropRepoPropPermissionsType] - temp_clone_token: NotRequired[Union[str, None]] - allow_merge_commit: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - license_: Union[PullRequestPropHeadPropRepoPropLicenseType, None] - pushed_at: datetime - size: int - ssh_url: str - stargazers_count: int - svn_url: str - topics: NotRequired[List[str]] - watchers: int - watchers_count: int - created_at: datetime - updated_at: datetime - allow_forking: NotRequired[bool] - is_template: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - - -class PullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """PullRequestPropHeadPropRepoPropOwner""" - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: Union[str, None] - html_url: str - id: int - node_id: str - login: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - - -class PullRequestPropHeadPropRepoPropPermissionsType(TypedDict): - """PullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - push: bool - triage: NotRequired[bool] - pull: bool - - -class PullRequestPropHeadPropRepoPropLicenseType(TypedDict): - """PullRequestPropHeadPropRepoPropLicense""" - - key: str - name: str - url: Union[str, None] - spdx_id: Union[str, None] - node_id: str - - -class PullRequestPropHeadPropUserType(TypedDict): - """PullRequestPropHeadPropUser""" - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: Union[str, None] - html_url: str - id: int - node_id: str - login: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - - -__all__ = ( - "PullRequestPropLabelsItemsType", - "PullRequestPropHeadType", - "PullRequestPropHeadPropRepoType", - "PullRequestPropHeadPropRepoPropOwnerType", - "PullRequestPropHeadPropRepoPropPermissionsType", - "PullRequestPropHeadPropRepoPropLicenseType", - "PullRequestPropHeadPropUserType", -) +__all__ = ("PageDeploymentType",) 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 037848bef..6420e8ce7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0321.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0321.py @@ -9,46 +9,28 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict - -from .group_0322 import PullRequestPropBasePropRepoType - - -class PullRequestPropBaseType(TypedDict): - """PullRequestPropBase""" - - label: str - ref: str - repo: PullRequestPropBasePropRepoType - sha: str - user: PullRequestPropBasePropUserType - - -class PullRequestPropBasePropUserType(TypedDict): - """PullRequestPropBasePropUser""" - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: Union[str, None] - html_url: str - id: int - node_id: str - login: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - - -__all__ = ( - "PullRequestPropBaseType", - "PullRequestPropBasePropUserType", -) +from typing import Literal +from typing_extensions import TypedDict, NotRequired + + +class PagesDeploymentStatusType(TypedDict): + """GitHub Pages deployment status""" + + status: NotRequired[ + Literal[ + "deployment_in_progress", + "syncing_files", + "finished_file_sync", + "updating_pages", + "purging_cdn", + "deployment_cancelled", + "deployment_failed", + "deployment_content_failed", + "deployment_attempt_error", + "deployment_lost", + "succeed", + ] + ] + + +__all__ = ("PagesDeploymentStatusType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0322.py b/githubkit/versions/ghec_v2022_11_28/types/group_0322.py index 3203d8727..ebcf6ff9c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0322.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0322.py @@ -9,138 +9,88 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0016 import LicenseSimpleType - - -class PullRequestPropBasePropRepoType(TypedDict): - """PullRequestPropBasePropRepo""" - - 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 - is_template: NotRequired[bool] - node_id: 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 - name: str - notifications_url: str - owner: PullRequestPropBasePropRepoPropOwnerType - 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 - clone_url: str - default_branch: str - forks: int - forks_count: int - git_url: str - has_downloads: bool - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_discussions: bool - homepage: Union[str, None] - language: Union[str, None] - master_branch: NotRequired[str] - archived: bool - disabled: bool - visibility: NotRequired[str] - mirror_url: Union[str, None] - open_issues: int - open_issues_count: int - permissions: NotRequired[PullRequestPropBasePropRepoPropPermissionsType] - temp_clone_token: NotRequired[Union[str, None]] - allow_merge_commit: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - license_: Union[None, LicenseSimpleType] - pushed_at: datetime - size: int - ssh_url: str - stargazers_count: int - svn_url: str - topics: NotRequired[List[str]] - watchers: int - watchers_count: int - created_at: datetime - updated_at: datetime - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - - -class PullRequestPropBasePropRepoPropOwnerType(TypedDict): - """PullRequestPropBasePropRepoPropOwner""" - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: Union[str, None] - html_url: str - id: int - node_id: str - login: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - - -class PullRequestPropBasePropRepoPropPermissionsType(TypedDict): - """PullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - push: bool - triage: NotRequired[bool] - pull: bool + +class PagesHealthCheckType(TypedDict): + """Pages Health Check Status + + Pages Health Check Status + """ + + domain: NotRequired[PagesHealthCheckPropDomainType] + alt_domain: NotRequired[Union[PagesHealthCheckPropAltDomainType, None]] + + +class PagesHealthCheckPropDomainType(TypedDict): + """PagesHealthCheckPropDomain""" + + host: NotRequired[str] + uri: NotRequired[str] + nameservers: NotRequired[str] + dns_resolves: NotRequired[bool] + is_proxied: NotRequired[Union[bool, None]] + is_cloudflare_ip: NotRequired[Union[bool, None]] + is_fastly_ip: NotRequired[Union[bool, None]] + is_old_ip_address: NotRequired[Union[bool, None]] + is_a_record: NotRequired[Union[bool, None]] + has_cname_record: NotRequired[Union[bool, None]] + has_mx_records_present: NotRequired[Union[bool, None]] + is_valid_domain: NotRequired[bool] + is_apex_domain: NotRequired[bool] + should_be_a_record: NotRequired[Union[bool, None]] + is_cname_to_github_user_domain: NotRequired[Union[bool, None]] + is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] + is_cname_to_fastly: NotRequired[Union[bool, None]] + is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] + is_non_github_pages_ip_present: NotRequired[Union[bool, None]] + is_pages_domain: NotRequired[bool] + is_served_by_pages: NotRequired[Union[bool, None]] + is_valid: NotRequired[bool] + reason: NotRequired[Union[str, None]] + responds_to_https: NotRequired[bool] + enforces_https: NotRequired[bool] + https_error: NotRequired[Union[str, None]] + is_https_eligible: NotRequired[Union[bool, None]] + caa_error: NotRequired[Union[str, None]] + + +class PagesHealthCheckPropAltDomainType(TypedDict): + """PagesHealthCheckPropAltDomain""" + + host: NotRequired[str] + uri: NotRequired[str] + nameservers: NotRequired[str] + dns_resolves: NotRequired[bool] + is_proxied: NotRequired[Union[bool, None]] + is_cloudflare_ip: NotRequired[Union[bool, None]] + is_fastly_ip: NotRequired[Union[bool, None]] + is_old_ip_address: NotRequired[Union[bool, None]] + is_a_record: NotRequired[Union[bool, None]] + has_cname_record: NotRequired[Union[bool, None]] + has_mx_records_present: NotRequired[Union[bool, None]] + is_valid_domain: NotRequired[bool] + is_apex_domain: NotRequired[bool] + should_be_a_record: NotRequired[Union[bool, None]] + is_cname_to_github_user_domain: NotRequired[Union[bool, None]] + is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] + is_cname_to_fastly: NotRequired[Union[bool, None]] + is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] + is_non_github_pages_ip_present: NotRequired[Union[bool, None]] + is_pages_domain: NotRequired[bool] + is_served_by_pages: NotRequired[Union[bool, None]] + is_valid: NotRequired[bool] + reason: NotRequired[Union[str, None]] + responds_to_https: NotRequired[bool] + enforces_https: NotRequired[bool] + https_error: NotRequired[Union[str, None]] + is_https_eligible: NotRequired[Union[bool, None]] + caa_error: NotRequired[Union[str, None]] __all__ = ( - "PullRequestPropBasePropRepoType", - "PullRequestPropBasePropRepoPropOwnerType", - "PullRequestPropBasePropRepoPropPermissionsType", + "PagesHealthCheckType", + "PagesHealthCheckPropDomainType", + "PagesHealthCheckPropAltDomainType", ) 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 137b65014..db1d720d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0323.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0323.py @@ -9,22 +9,85 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0239 import LinkType +from .group_0064 import MilestoneType +from .group_0244 import AutoMergeType +from .group_0001 import SimpleUserType +from .group_0047 import TeamSimpleType +from .group_0325 import PullRequestPropBaseType +from .group_0327 import PullRequestPropLinksType +from .group_0324 import PullRequestPropHeadType, PullRequestPropLabelsItemsType -class PullRequestPropLinksType(TypedDict): - """PullRequestPropLinks""" +class PullRequestType(TypedDict): + """Pull Request - comments: LinkType - commits: LinkType - statuses: LinkType - html: LinkType - issue: LinkType - review_comments: LinkType - review_comment: LinkType - self_: LinkType + 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", + ] + 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__ = ("PullRequestPropLinksType",) + +__all__ = ("PullRequestType",) 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 211278b38..77cd3f3eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0324.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0324.py @@ -9,18 +9,195 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -class PullRequestMergeResultType(TypedDict): - """Pull Request Merge Result +class PullRequestPropLabelsItemsType(TypedDict): + """PullRequestPropLabelsItems""" - Pull Request Merge Result - """ + id: int + node_id: str + url: str + name: str + description: Union[str, None] + color: str + default: bool + +class PullRequestPropHeadType(TypedDict): + """PullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[PullRequestPropHeadPropRepoType, None] sha: str - merged: bool - message: str + user: Union[PullRequestPropHeadPropUserType, None] + + +class PullRequestPropHeadPropRepoType(TypedDict): + """PullRequestPropHeadPropRepo""" + + 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 + node_id: 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 + name: str + notifications_url: str + owner: PullRequestPropHeadPropRepoPropOwnerType + 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 + clone_url: str + default_branch: str + forks: int + forks_count: int + git_url: str + has_downloads: bool + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_discussions: bool + homepage: Union[str, None] + language: Union[str, None] + master_branch: NotRequired[str] + archived: bool + disabled: bool + visibility: NotRequired[str] + mirror_url: Union[str, None] + open_issues: int + open_issues_count: int + permissions: NotRequired[PullRequestPropHeadPropRepoPropPermissionsType] + temp_clone_token: NotRequired[Union[str, None]] + allow_merge_commit: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + license_: Union[PullRequestPropHeadPropRepoPropLicenseType, None] + pushed_at: datetime + size: int + ssh_url: str + stargazers_count: int + svn_url: str + topics: NotRequired[List[str]] + watchers: int + watchers_count: int + created_at: datetime + updated_at: datetime + allow_forking: NotRequired[bool] + is_template: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + + +class PullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """PullRequestPropHeadPropRepoPropOwner""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: Union[str, None] + html_url: str + id: int + node_id: str + login: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + + +class PullRequestPropHeadPropRepoPropPermissionsType(TypedDict): + """PullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + push: bool + triage: NotRequired[bool] + pull: bool + + +class PullRequestPropHeadPropRepoPropLicenseType(TypedDict): + """PullRequestPropHeadPropRepoPropLicense""" + + key: str + name: str + url: Union[str, None] + spdx_id: Union[str, None] + node_id: str + + +class PullRequestPropHeadPropUserType(TypedDict): + """PullRequestPropHeadPropUser""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: Union[str, None] + html_url: str + id: int + node_id: str + login: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str -__all__ = ("PullRequestMergeResultType",) +__all__ = ( + "PullRequestPropLabelsItemsType", + "PullRequestPropHeadType", + "PullRequestPropHeadPropRepoType", + "PullRequestPropHeadPropRepoPropOwnerType", + "PullRequestPropHeadPropRepoPropPermissionsType", + "PullRequestPropHeadPropRepoPropLicenseType", + "PullRequestPropHeadPropUserType", +) 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 705b4b6f1..a79db8cc0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0325.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0325.py @@ -9,21 +9,46 @@ from __future__ import annotations -from typing import List +from typing import Union from typing_extensions import TypedDict -from .group_0093 import TeamType -from .group_0001 import SimpleUserType - - -class PullRequestReviewRequestType(TypedDict): - """Pull Request Review Request - - Pull Request Review Request - """ - - users: List[SimpleUserType] - teams: List[TeamType] - - -__all__ = ("PullRequestReviewRequestType",) +from .group_0326 import PullRequestPropBasePropRepoType + + +class PullRequestPropBaseType(TypedDict): + """PullRequestPropBase""" + + label: str + ref: str + repo: PullRequestPropBasePropRepoType + sha: str + user: PullRequestPropBasePropUserType + + +class PullRequestPropBasePropUserType(TypedDict): + """PullRequestPropBasePropUser""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: Union[str, None] + html_url: str + id: int + node_id: str + login: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + + +__all__ = ( + "PullRequestPropBaseType", + "PullRequestPropBasePropUserType", +) 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 1c6f49309..3203d8727 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0326.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0326.py @@ -10,64 +10,137 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType - - -class PullRequestReviewType(TypedDict): - """Pull Request Review - - Pull Request Reviews are reviews on pull requests. - """ - +from .group_0016 import LicenseSimpleType + + +class PullRequestPropBasePropRepoType(TypedDict): + """PullRequestPropBasePropRepo""" + + 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 + is_template: NotRequired[bool] node_id: str - user: Union[None, SimpleUserType] - body: str - state: 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 + name: str + notifications_url: str + owner: PullRequestPropBasePropRepoPropOwnerType + 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 + clone_url: str + default_branch: str + forks: int + forks_count: int + git_url: str + has_downloads: bool + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_discussions: bool + homepage: Union[str, None] + language: Union[str, None] + master_branch: NotRequired[str] + archived: bool + disabled: bool + visibility: NotRequired[str] + mirror_url: Union[str, None] + open_issues: int + open_issues_count: int + permissions: NotRequired[PullRequestPropBasePropRepoPropPermissionsType] + temp_clone_token: NotRequired[Union[str, None]] + allow_merge_commit: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + license_: Union[None, LicenseSimpleType] + pushed_at: datetime + size: int + ssh_url: str + stargazers_count: int + svn_url: str + topics: NotRequired[List[str]] + watchers: int + watchers_count: int + created_at: datetime + updated_at: datetime + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + + +class PullRequestPropBasePropRepoPropOwnerType(TypedDict): + """PullRequestPropBasePropRepoPropOwner""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: Union[str, None] 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 + id: int + node_id: str + login: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str -class PullRequestReviewPropLinksPropPullRequestType(TypedDict): - """PullRequestReviewPropLinksPropPullRequest""" +class PullRequestPropBasePropRepoPropPermissionsType(TypedDict): + """PullRequestPropBasePropRepoPropPermissions""" - href: str + admin: bool + maintain: NotRequired[bool] + push: bool + triage: NotRequired[bool] + pull: bool __all__ = ( - "PullRequestReviewType", - "PullRequestReviewPropLinksType", - "PullRequestReviewPropLinksPropHtmlType", - "PullRequestReviewPropLinksPropPullRequestType", + "PullRequestPropBasePropRepoType", + "PullRequestPropBasePropRepoPropOwnerType", + "PullRequestPropBasePropRepoPropPermissionsType", ) 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 05a25bbc5..df75c082a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0327.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0327.py @@ -9,58 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType -from .group_0062 import ReactionRollupType -from .group_0328 import ReviewCommentPropLinksType +from .group_0243 import LinkType -class ReviewCommentType(TypedDict): - """Legacy Review Comment +class PullRequestPropLinksType(TypedDict): + """PullRequestPropLinks""" - Legacy Review Comment - """ + comments: LinkType + commits: LinkType + statuses: LinkType + html: LinkType + issue: LinkType + review_comments: LinkType + review_comment: LinkType + self_: LinkType - url: str - pull_request_review_id: Union[int, None] - id: int - node_id: str - diff_hunk: str - path: str - position: Union[int, None] - original_position: int - commit_id: str - original_commit_id: str - in_reply_to_id: NotRequired[int] - user: Union[None, SimpleUserType] - body: str - created_at: datetime - updated_at: datetime - html_url: str - pull_request_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - links: ReviewCommentPropLinksType - body_text: NotRequired[str] - body_html: NotRequired[str] - reactions: NotRequired[ReactionRollupType] - side: NotRequired[Literal["LEFT", "RIGHT"]] - start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] - line: NotRequired[int] - original_line: NotRequired[int] - start_line: NotRequired[Union[int, None]] - original_start_line: NotRequired[Union[int, None]] - -__all__ = ("ReviewCommentType",) +__all__ = ("PullRequestPropLinksType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0328.py b/githubkit/versions/ghec_v2022_11_28/types/group_0328.py index 637dd9bf0..211278b38 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0328.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0328.py @@ -11,15 +11,16 @@ from typing_extensions import TypedDict -from .group_0239 import LinkType +class PullRequestMergeResultType(TypedDict): + """Pull Request Merge Result -class ReviewCommentPropLinksType(TypedDict): - """ReviewCommentPropLinks""" + Pull Request Merge Result + """ - self_: LinkType - html: LinkType - pull_request: LinkType + sha: str + merged: bool + message: str -__all__ = ("ReviewCommentPropLinksType",) +__all__ = ("PullRequestMergeResultType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0329.py b/githubkit/versions/ghec_v2022_11_28/types/group_0329.py index 763c294c8..6414b6f64 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0329.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0329.py @@ -9,32 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict +from .group_0048 import TeamType from .group_0001 import SimpleUserType -class ReleaseAssetType(TypedDict): - """Release Asset +class PullRequestReviewRequestType(TypedDict): + """Pull Request Review Request - Data related to a release. + Pull Request Review Request """ - url: str - browser_download_url: str - id: int - node_id: str - name: str - label: Union[str, None] - state: Literal["uploaded", "open"] - content_type: str - size: int - download_count: int - created_at: datetime - updated_at: datetime - uploader: Union[None, SimpleUserType] - - -__all__ = ("ReleaseAssetType",) + users: List[SimpleUserType] + teams: List[TeamType] + + +__all__ = ("PullRequestReviewRequestType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0330.py b/githubkit/versions/ghec_v2022_11_28/types/group_0330.py index da321118a..1c6f49309 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0330.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0330.py @@ -10,43 +10,64 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -from .group_0329 import ReleaseAssetType -from .group_0062 import ReactionRollupType -class ReleaseType(TypedDict): - """Release +class PullRequestReviewType(TypedDict): + """Pull Request Review - A release. + Pull Request Reviews are reviews on pull requests. """ - url: str - html_url: str - assets_url: str - upload_url: str - tarball_url: Union[str, None] - zipball_url: Union[str, None] id: int node_id: str - tag_name: str - target_commitish: str - name: Union[str, None] - body: NotRequired[Union[str, None]] - draft: bool - prerelease: bool - created_at: datetime - published_at: Union[datetime, None] - author: SimpleUserType - assets: List[ReleaseAssetType] - body_html: NotRequired[Union[str, None]] - body_text: NotRequired[Union[str, None]] - mentions_count: NotRequired[int] - discussion_url: NotRequired[str] - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("ReleaseType",) + user: Union[None, SimpleUserType] + body: str + state: str + html_url: str + pull_request_url: str + links: PullRequestReviewPropLinksType + submitted_at: NotRequired[datetime] + commit_id: Union[str, None] + body_html: NotRequired[str] + body_text: NotRequired[str] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + + +class PullRequestReviewPropLinksType(TypedDict): + """PullRequestReviewPropLinks""" + + html: PullRequestReviewPropLinksPropHtmlType + pull_request: PullRequestReviewPropLinksPropPullRequestType + + +class PullRequestReviewPropLinksPropHtmlType(TypedDict): + """PullRequestReviewPropLinksPropHtml""" + + href: str + + +class PullRequestReviewPropLinksPropPullRequestType(TypedDict): + """PullRequestReviewPropLinksPropPullRequest""" + + href: str + + +__all__ = ( + "PullRequestReviewType", + "PullRequestReviewPropLinksType", + "PullRequestReviewPropLinksPropHtmlType", + "PullRequestReviewPropLinksPropPullRequestType", +) 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 8cbfbc707..513e436a5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0331.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0331.py @@ -9,17 +9,58 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0065 import ReactionRollupType +from .group_0332 import ReviewCommentPropLinksType -class ReleaseNotesContentType(TypedDict): - """Generated Release Notes Content - Generated name and body describing a release +class ReviewCommentType(TypedDict): + """Legacy Review Comment + + Legacy Review Comment """ - name: str + url: str + pull_request_review_id: Union[int, None] + id: int + node_id: str + diff_hunk: str + path: str + position: Union[int, None] + original_position: int + commit_id: str + original_commit_id: str + in_reply_to_id: NotRequired[int] + user: Union[None, SimpleUserType] body: str + created_at: datetime + updated_at: datetime + html_url: str + pull_request_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + links: ReviewCommentPropLinksType + body_text: NotRequired[str] + body_html: NotRequired[str] + reactions: NotRequired[ReactionRollupType] + side: NotRequired[Literal["LEFT", "RIGHT"]] + start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] + line: NotRequired[int] + original_line: NotRequired[int] + start_line: NotRequired[Union[int, None]] + original_start_line: NotRequired[Union[int, None]] -__all__ = ("ReleaseNotesContentType",) +__all__ = ("ReviewCommentType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0332.py b/githubkit/versions/ghec_v2022_11_28/types/group_0332.py index 7624c5eac..5778b6273 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0332.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0332.py @@ -9,20 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0243 import LinkType -class RepositoryRuleRulesetInfoType(TypedDict): - """repository ruleset data for rule - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. - """ +class ReviewCommentPropLinksType(TypedDict): + """ReviewCommentPropLinks""" - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] + self_: LinkType + html: LinkType + pull_request: LinkType -__all__ = ("RepositoryRuleRulesetInfoType",) +__all__ = ("ReviewCommentPropLinksType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0333.py b/githubkit/versions/ghec_v2022_11_28/types/group_0333.py index ab76a76e1..763c294c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0333.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0333.py @@ -9,17 +9,32 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict +from .group_0001 import SimpleUserType -class RepositoryRuleDetailedOneof0Type(TypedDict): - """RepositoryRuleDetailedOneof0""" - type: Literal["creation"] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] +class ReleaseAssetType(TypedDict): + """Release Asset + Data related to a release. + """ -__all__ = ("RepositoryRuleDetailedOneof0Type",) + url: str + browser_download_url: str + id: int + node_id: str + name: str + label: Union[str, None] + state: Literal["uploaded", "open"] + content_type: str + size: int + 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_0334.py b/githubkit/versions/ghec_v2022_11_28/types/group_0334.py index 4b2f1b692..63372dd3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0334.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0334.py @@ -9,20 +9,44 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0134 import RepositoryRuleUpdatePropParametersType - - -class RepositoryRuleDetailedOneof1Type(TypedDict): - """RepositoryRuleDetailedOneof1""" - - type: Literal["update"] - parameters: NotRequired[RepositoryRuleUpdatePropParametersType] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] - - -__all__ = ("RepositoryRuleDetailedOneof1Type",) +from .group_0001 import SimpleUserType +from .group_0333 import ReleaseAssetType +from .group_0065 import ReactionRollupType + + +class ReleaseType(TypedDict): + """Release + + A release. + """ + + url: str + html_url: str + assets_url: str + upload_url: str + tarball_url: Union[str, None] + zipball_url: Union[str, None] + id: int + node_id: str + tag_name: str + target_commitish: str + name: Union[str, None] + body: NotRequired[Union[str, None]] + draft: bool + prerelease: bool + created_at: datetime + published_at: Union[datetime, None] + author: SimpleUserType + assets: List[ReleaseAssetType] + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + mentions_count: NotRequired[int] + discussion_url: NotRequired[str] + reactions: NotRequired[ReactionRollupType] + + +__all__ = ("ReleaseType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0335.py b/githubkit/versions/ghec_v2022_11_28/types/group_0335.py index 6d0ae974e..8cbfbc707 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0335.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0335.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class RepositoryRuleDetailedOneof2Type(TypedDict): - """RepositoryRuleDetailedOneof2""" +class ReleaseNotesContentType(TypedDict): + """Generated Release Notes Content - type: Literal["deletion"] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] + Generated name and body describing a release + """ + name: str + body: str -__all__ = ("RepositoryRuleDetailedOneof2Type",) + +__all__ = ("ReleaseNotesContentType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0336.py b/githubkit/versions/ghec_v2022_11_28/types/group_0336.py index 6c9a7937b..7624c5eac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0336.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0336.py @@ -13,13 +13,16 @@ from typing_extensions import TypedDict, NotRequired -class RepositoryRuleDetailedOneof3Type(TypedDict): - """RepositoryRuleDetailedOneof3""" +class RepositoryRuleRulesetInfoType(TypedDict): + """repository ruleset data for rule + + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. + """ - type: Literal["required_linear_history"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof3Type",) +__all__ = ("RepositoryRuleRulesetInfoType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0337.py b/githubkit/versions/ghec_v2022_11_28/types/group_0337.py index 065ec6fc9..ab76a76e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0337.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0337.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0137 import RepositoryRuleRequiredDeploymentsPropParametersType +class RepositoryRuleDetailedOneof0Type(TypedDict): + """RepositoryRuleDetailedOneof0""" -class RepositoryRuleDetailedOneof4Type(TypedDict): - """RepositoryRuleDetailedOneof4""" - - type: Literal["required_deployments"] - parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] + type: Literal["creation"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof4Type",) +__all__ = ("RepositoryRuleDetailedOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0338.py b/githubkit/versions/ghec_v2022_11_28/types/group_0338.py index f17319898..4b06bbc42 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0338.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0338.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0138 import RepositoryRuleUpdatePropParametersType -class RepositoryRuleDetailedOneof5Type(TypedDict): - """RepositoryRuleDetailedOneof5""" - type: Literal["required_signatures"] +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__ = ("RepositoryRuleDetailedOneof5Type",) +__all__ = ("RepositoryRuleDetailedOneof1Type",) 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 71039a0ba..6d0ae974e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0339.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0339.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0139 import RepositoryRulePullRequestPropParametersType +class RepositoryRuleDetailedOneof2Type(TypedDict): + """RepositoryRuleDetailedOneof2""" -class RepositoryRuleDetailedOneof6Type(TypedDict): - """RepositoryRuleDetailedOneof6""" - - type: Literal["pull_request"] - parameters: NotRequired[RepositoryRulePullRequestPropParametersType] + type: Literal["deletion"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof6Type",) +__all__ = ("RepositoryRuleDetailedOneof2Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0340.py b/githubkit/versions/ghec_v2022_11_28/types/group_0340.py index e00c137fd..6c9a7937b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0340.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0340.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0141 import RepositoryRuleRequiredStatusChecksPropParametersType +class RepositoryRuleDetailedOneof3Type(TypedDict): + """RepositoryRuleDetailedOneof3""" -class RepositoryRuleDetailedOneof7Type(TypedDict): - """RepositoryRuleDetailedOneof7""" - - type: Literal["required_status_checks"] - parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] + type: Literal["required_linear_history"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof7Type",) +__all__ = ("RepositoryRuleDetailedOneof3Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0341.py b/githubkit/versions/ghec_v2022_11_28/types/group_0341.py index b4700d8d9..abd86be8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0341.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0341.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0141 import RepositoryRuleRequiredDeploymentsPropParametersType -class RepositoryRuleDetailedOneof8Type(TypedDict): - """RepositoryRuleDetailedOneof8""" - type: Literal["non_fast_forward"] +class RepositoryRuleDetailedOneof4Type(TypedDict): + """RepositoryRuleDetailedOneof4""" + + type: Literal["required_deployments"] + parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof8Type",) +__all__ = ("RepositoryRuleDetailedOneof4Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0342.py b/githubkit/versions/ghec_v2022_11_28/types/group_0342.py index d06938621..f17319898 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0342.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0342.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0143 import RepositoryRuleCommitMessagePatternPropParametersType +class RepositoryRuleDetailedOneof5Type(TypedDict): + """RepositoryRuleDetailedOneof5""" -class RepositoryRuleDetailedOneof9Type(TypedDict): - """RepositoryRuleDetailedOneof9""" - - type: Literal["commit_message_pattern"] - parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] + type: Literal["required_signatures"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof9Type",) +__all__ = ("RepositoryRuleDetailedOneof5Type",) 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 d593b6803..db526272e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0343.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0343.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0145 import RepositoryRuleCommitAuthorEmailPatternPropParametersType +from .group_0143 import RepositoryRulePullRequestPropParametersType -class RepositoryRuleDetailedOneof10Type(TypedDict): - """RepositoryRuleDetailedOneof10""" +class RepositoryRuleDetailedOneof6Type(TypedDict): + """RepositoryRuleDetailedOneof6""" - type: Literal["commit_author_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] + type: Literal["pull_request"] + parameters: NotRequired[RepositoryRulePullRequestPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof10Type",) +__all__ = ("RepositoryRuleDetailedOneof6Type",) 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 54fdc6fff..8eeaeeab7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0344.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0344.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0147 import RepositoryRuleCommitterEmailPatternPropParametersType +from .group_0145 import RepositoryRuleRequiredStatusChecksPropParametersType -class RepositoryRuleDetailedOneof11Type(TypedDict): - """RepositoryRuleDetailedOneof11""" +class RepositoryRuleDetailedOneof7Type(TypedDict): + """RepositoryRuleDetailedOneof7""" - type: Literal["committer_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] + type: Literal["required_status_checks"] + parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof11Type",) +__all__ = ("RepositoryRuleDetailedOneof7Type",) 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 4b37c3971..b4700d8d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0345.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0345.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0149 import RepositoryRuleBranchNamePatternPropParametersType +class RepositoryRuleDetailedOneof8Type(TypedDict): + """RepositoryRuleDetailedOneof8""" -class RepositoryRuleDetailedOneof12Type(TypedDict): - """RepositoryRuleDetailedOneof12""" - - type: Literal["branch_name_pattern"] - parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] + type: Literal["non_fast_forward"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof12Type",) +__all__ = ("RepositoryRuleDetailedOneof8Type",) 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 c1f22823c..e51faa5f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0346.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0346.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0151 import RepositoryRuleTagNamePatternPropParametersType +from .group_0147 import RepositoryRuleCommitMessagePatternPropParametersType -class RepositoryRuleDetailedOneof13Type(TypedDict): - """RepositoryRuleDetailedOneof13""" +class RepositoryRuleDetailedOneof9Type(TypedDict): + """RepositoryRuleDetailedOneof9""" - type: Literal["tag_name_pattern"] - parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] + type: Literal["commit_message_pattern"] + parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof13Type",) +__all__ = ("RepositoryRuleDetailedOneof9Type",) 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 e3aa743b8..f2bdfe722 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0347.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0347.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0154 import RepositoryRuleWorkflowsPropParametersType +from .group_0149 import RepositoryRuleCommitAuthorEmailPatternPropParametersType -class RepositoryRuleDetailedOneof14Type(TypedDict): - """RepositoryRuleDetailedOneof14""" +class RepositoryRuleDetailedOneof10Type(TypedDict): + """RepositoryRuleDetailedOneof10""" - type: Literal["workflows"] - parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + 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__ = ("RepositoryRuleDetailedOneof14Type",) +__all__ = ("RepositoryRuleDetailedOneof10Type",) 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 b43cf4fbe..7de9c0d8e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0348.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0348.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0156 import RepositoryRuleCodeScanningPropParametersType +from .group_0151 import RepositoryRuleCommitterEmailPatternPropParametersType -class RepositoryRuleDetailedOneof15Type(TypedDict): - """RepositoryRuleDetailedOneof15""" +class RepositoryRuleDetailedOneof11Type(TypedDict): + """RepositoryRuleDetailedOneof11""" - type: Literal["code_scanning"] - parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + type: Literal["committer_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof15Type",) +__all__ = ("RepositoryRuleDetailedOneof11Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0349.py b/githubkit/versions/ghec_v2022_11_28/types/group_0349.py index b6471d952..40bf05dd5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0349.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0349.py @@ -9,36 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType - - -class SecretScanningAlertType(TypedDict): - """SecretScanningAlert""" - - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - state: NotRequired[Literal["open", "resolved"]] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - resolution_comment: NotRequired[Union[str, None]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - secret: NotRequired[str] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - - -__all__ = ("SecretScanningAlertType",) +from .group_0153 import RepositoryRuleBranchNamePatternPropParametersType + + +class RepositoryRuleDetailedOneof12Type(TypedDict): + """RepositoryRuleDetailedOneof12""" + + type: Literal["branch_name_pattern"] + parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] + + +__all__ = ("RepositoryRuleDetailedOneof12Type",) 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 65483031c..26e3dd4c4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0350.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0350.py @@ -9,80 +9,20 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0155 import RepositoryRuleTagNamePatternPropParametersType -class RepositoryAdvisoryCreateType(TypedDict): - """RepositoryAdvisoryCreate""" - summary: str - description: str - cve_id: NotRequired[Union[str, None]] - vulnerabilities: List[RepositoryAdvisoryCreatePropVulnerabilitiesItemsType] - cwe_ids: NotRequired[Union[List[str], None]] - credits_: NotRequired[ - Union[List[RepositoryAdvisoryCreatePropCreditsItemsType], None] - ] - severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] - cvss_vector_string: NotRequired[Union[str, None]] - start_private_fork: NotRequired[bool] +class RepositoryRuleDetailedOneof13Type(TypedDict): + """RepositoryRuleDetailedOneof13""" + type: Literal["tag_name_pattern"] + parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -class RepositoryAdvisoryCreatePropCreditsItemsType(TypedDict): - """RepositoryAdvisoryCreatePropCreditsItems""" - login: str - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsType(TypedDict): - """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[List[str], None]] - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType(TypedDict): - """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: NotRequired[Union[str, None]] - - -__all__ = ( - "RepositoryAdvisoryCreateType", - "RepositoryAdvisoryCreatePropCreditsItemsType", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", -) +__all__ = ("RepositoryRuleDetailedOneof13Type",) 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 114417d81..de566dea0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0351.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0351.py @@ -9,61 +9,20 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0158 import RepositoryRuleWorkflowsPropParametersType -class PrivateVulnerabilityReportCreateType(TypedDict): - """PrivateVulnerabilityReportCreate""" - summary: str - description: str - vulnerabilities: NotRequired[ - Union[List[PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType], None] - ] - cwe_ids: NotRequired[Union[List[str], None]] - severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] - cvss_vector_string: NotRequired[Union[str, None]] - start_private_fork: NotRequired[bool] +class RepositoryRuleDetailedOneof14Type(TypedDict): + """RepositoryRuleDetailedOneof14""" + type: Literal["workflows"] + parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType(TypedDict): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" - package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[List[str], None]] - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType( - TypedDict -): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: NotRequired[Union[str, None]] - - -__all__ = ( - "PrivateVulnerabilityReportCreateType", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", -) +__all__ = ("RepositoryRuleDetailedOneof14Type",) 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 3e277fb86..f00d7a77e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0352.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0352.py @@ -9,84 +9,20 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0160 import RepositoryRuleCodeScanningPropParametersType -class RepositoryAdvisoryUpdateType(TypedDict): - """RepositoryAdvisoryUpdate""" - summary: NotRequired[str] - description: NotRequired[str] - cve_id: NotRequired[Union[str, None]] - vulnerabilities: NotRequired[ - List[RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType] - ] - cwe_ids: NotRequired[Union[List[str], None]] - credits_: NotRequired[ - Union[List[RepositoryAdvisoryUpdatePropCreditsItemsType], None] - ] - severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] - cvss_vector_string: NotRequired[Union[str, None]] - state: NotRequired[Literal["published", "closed", "draft"]] - collaborating_users: NotRequired[Union[List[str], None]] - collaborating_teams: NotRequired[Union[List[str], None]] +class RepositoryRuleDetailedOneof15Type(TypedDict): + """RepositoryRuleDetailedOneof15""" + type: Literal["code_scanning"] + parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -class RepositoryAdvisoryUpdatePropCreditsItemsType(TypedDict): - """RepositoryAdvisoryUpdatePropCreditsItems""" - login: str - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType(TypedDict): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[List[str], None]] - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType(TypedDict): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: NotRequired[Union[str, None]] - - -__all__ = ( - "RepositoryAdvisoryUpdateType", - "RepositoryAdvisoryUpdatePropCreditsItemsType", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", -) +__all__ = ("RepositoryRuleDetailedOneof15Type",) 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 7d81a1637..b6471d952 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0353.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0353.py @@ -9,21 +9,36 @@ from __future__ import annotations -from typing import Union from datetime import datetime -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -class StargazerType(TypedDict): - """Stargazer - - Stargazer - """ - - starred_at: datetime - user: Union[None, SimpleUserType] - - -__all__ = ("StargazerType",) +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]] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + + +__all__ = ("SecretScanningAlertType",) 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 3b359fe67..65483031c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0354.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0354.py @@ -9,19 +9,80 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -class CommitActivityType(TypedDict): - """Commit Activity +class RepositoryAdvisoryCreateType(TypedDict): + """RepositoryAdvisoryCreate""" - Commit Activity + summary: str + description: str + cve_id: NotRequired[Union[str, None]] + vulnerabilities: List[RepositoryAdvisoryCreatePropVulnerabilitiesItemsType] + cwe_ids: NotRequired[Union[List[str], None]] + credits_: NotRequired[ + Union[List[RepositoryAdvisoryCreatePropCreditsItemsType], None] + ] + severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] + cvss_vector_string: NotRequired[Union[str, None]] + start_private_fork: NotRequired[bool] + + +class RepositoryAdvisoryCreatePropCreditsItemsType(TypedDict): + """RepositoryAdvisoryCreatePropCreditsItems""" + + login: str + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + + +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsType(TypedDict): + """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType + vulnerable_version_range: NotRequired[Union[str, None]] + patched_versions: NotRequired[Union[str, None]] + vulnerable_functions: NotRequired[Union[List[str], None]] + + +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType(TypedDict): + """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. """ - 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__ = ( + "RepositoryAdvisoryCreateType", + "RepositoryAdvisoryCreatePropCreditsItemsType", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", +) 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 14086fd36..114417d81 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0355.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0355.py @@ -9,33 +9,61 @@ from __future__ import annotations -from typing import List, Union +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class PrivateVulnerabilityReportCreateType(TypedDict): + """PrivateVulnerabilityReportCreate""" -class ContributorActivityType(TypedDict): - """Contributor Activity + 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] - Contributor Activity - """ - author: Union[None, SimpleUserType] - total: int - weeks: List[ContributorActivityPropWeeksItemsType] +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 ContributorActivityPropWeeksItemsType(TypedDict): - """ContributorActivityPropWeeksItems""" +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType( + TypedDict +): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. + """ - w: NotRequired[int] - a: NotRequired[int] - d: NotRequired[int] - c: NotRequired[int] + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] __all__ = ( - "ContributorActivityType", - "ContributorActivityPropWeeksItemsType", + "PrivateVulnerabilityReportCreateType", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", ) 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 905ae039a..3e277fb86 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0356.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0356.py @@ -9,15 +9,84 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -class ParticipationStatsType(TypedDict): - """Participation Stats""" +class RepositoryAdvisoryUpdateType(TypedDict): + """RepositoryAdvisoryUpdate""" - all_: List[int] - owner: List[int] + 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]] -__all__ = ("ParticipationStatsType",) +class RepositoryAdvisoryUpdatePropCreditsItemsType(TypedDict): + """RepositoryAdvisoryUpdatePropCreditsItems""" + + login: str + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType(TypedDict): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType + vulnerable_version_range: NotRequired[Union[str, None]] + patched_versions: NotRequired[Union[str, None]] + vulnerable_functions: NotRequired[Union[List[str], None]] + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType(TypedDict): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] + + +__all__ = ( + "RepositoryAdvisoryUpdateType", + "RepositoryAdvisoryUpdatePropCreditsItemsType", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", +) 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 0099f28ce..7d81a1637 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0357.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0357.py @@ -13,19 +13,17 @@ from datetime import datetime from typing_extensions import TypedDict +from .group_0001 import SimpleUserType -class RepositorySubscriptionType(TypedDict): - """Repository Invitation - Repository invitations let you manage who you collaborate with. +class StargazerType(TypedDict): + """Stargazer + + Stargazer """ - subscribed: bool - ignored: bool - reason: Union[str, None] - created_at: datetime - url: str - repository_url: str + starred_at: datetime + user: Union[None, SimpleUserType] -__all__ = ("RepositorySubscriptionType",) +__all__ = ("StargazerType",) 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 7a59979c3..3b359fe67 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0358.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0358.py @@ -9,30 +9,19 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict -class TagType(TypedDict): - """Tag +class CommitActivityType(TypedDict): + """Commit Activity - Tag + Commit Activity """ - name: str - commit: TagPropCommitType - zipball_url: str - tarball_url: str - node_id: str + days: List[int] + total: int + week: int -class TagPropCommitType(TypedDict): - """TagPropCommit""" - - sha: str - url: str - - -__all__ = ( - "TagType", - "TagPropCommitType", -) +__all__ = ("CommitActivityType",) 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 d07e7c979..14086fd36 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0359.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0359.py @@ -9,20 +9,33 @@ from __future__ import annotations +from typing import List, Union from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class TagProtectionType(TypedDict): - """Tag protection - Tag protection +class ContributorActivityType(TypedDict): + """Contributor Activity + + Contributor Activity """ - id: NotRequired[int] - created_at: NotRequired[str] - updated_at: NotRequired[str] - enabled: NotRequired[bool] - pattern: 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__ = ("TagProtectionType",) +__all__ = ( + "ContributorActivityType", + "ContributorActivityPropWeeksItemsType", +) 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 c62332d11..905ae039a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0360.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0360.py @@ -13,13 +13,11 @@ from typing_extensions import TypedDict -class TopicType(TypedDict): - """Topic +class ParticipationStatsType(TypedDict): + """Participation Stats""" - A topic aggregates entities that are related to a subject. - """ + all_: List[int] + owner: List[int] - names: List[str] - -__all__ = ("TopicType",) +__all__ = ("ParticipationStatsType",) 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 2412270d8..0099f28ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0361.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0361.py @@ -9,16 +9,23 @@ from __future__ import annotations +from typing import Union from datetime import datetime from typing_extensions import TypedDict -class TrafficType(TypedDict): - """Traffic""" +class RepositorySubscriptionType(TypedDict): + """Repository Invitation - timestamp: datetime - uniques: int - count: int + Repository invitations let you manage who you collaborate with. + """ + subscribed: bool + ignored: bool + reason: Union[str, None] + created_at: datetime + url: str + repository_url: str -__all__ = ("TrafficType",) + +__all__ = ("RepositorySubscriptionType",) 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 7163ac5c9..7a59979c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0362.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0362.py @@ -9,21 +9,30 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -from .group_0361 import TrafficType +class TagType(TypedDict): + """Tag -class CloneTrafficType(TypedDict): - """Clone Traffic - - Clone Traffic + Tag """ - count: int - uniques: int - clones: List[TrafficType] + name: str + commit: TagPropCommitType + zipball_url: str + tarball_url: str + node_id: str + + +class TagPropCommitType(TypedDict): + """TagPropCommit""" + + sha: str + url: str -__all__ = ("CloneTrafficType",) +__all__ = ( + "TagType", + "TagPropCommitType", +) 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 8ae9ebc92..d07e7c979 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0363.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0363.py @@ -9,19 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ContentTrafficType(TypedDict): - """Content Traffic +class TagProtectionType(TypedDict): + """Tag protection - Content Traffic + Tag protection """ - path: str - title: str - count: int - uniques: int + id: NotRequired[int] + created_at: NotRequired[str] + updated_at: NotRequired[str] + enabled: NotRequired[bool] + pattern: str -__all__ = ("ContentTrafficType",) +__all__ = ("TagProtectionType",) 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 d7d63281a..c62332d11 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0364.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0364.py @@ -9,18 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict -class ReferrerTrafficType(TypedDict): - """Referrer Traffic +class TopicType(TypedDict): + """Topic - Referrer Traffic + A topic aggregates entities that are related to a subject. """ - referrer: str - count: int - uniques: int + names: List[str] -__all__ = ("ReferrerTrafficType",) +__all__ = ("TopicType",) 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 8e5abe8ea..2412270d8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0365.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0365.py @@ -9,21 +9,16 @@ from __future__ import annotations -from typing import List +from datetime import datetime from typing_extensions import TypedDict -from .group_0361 import TrafficType +class TrafficType(TypedDict): + """Traffic""" -class ViewTrafficType(TypedDict): - """View Traffic - - View Traffic - """ - - count: int + timestamp: datetime uniques: int - views: List[TrafficType] + count: int -__all__ = ("ViewTrafficType",) +__all__ = ("TrafficType",) 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 7c5fb6279..16763513c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0366.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0366.py @@ -9,33 +9,21 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0365 import TrafficType -class GroupResponseType(TypedDict): - """GroupResponse""" - schemas: List[ - Literal[ - "urn:ietf:params:scim:schemas:core:2.0:Group", - "urn:ietf:params:scim:api:messages:2.0:ListResponse", - ] - ] - external_id: NotRequired[Union[str, None]] - display_name: NotRequired[Union[str, None]] - members: NotRequired[List[GroupResponsePropMembersItemsType]] +class CloneTrafficType(TypedDict): + """Clone Traffic + Clone Traffic + """ -class GroupResponsePropMembersItemsType(TypedDict): - """GroupResponsePropMembersItems""" + count: int + uniques: int + clones: List[TrafficType] - value: str - ref: str - display: NotRequired[str] - -__all__ = ( - "GroupResponseType", - "GroupResponsePropMembersItemsType", -) +__all__ = ("CloneTrafficType",) 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 c0d659e2b..8ae9ebc92 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0367.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0367.py @@ -9,20 +9,19 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class MetaType(TypedDict): - """Meta +class ContentTrafficType(TypedDict): + """Content Traffic - The metadata associated with the creation/updates to the user. + Content Traffic """ - resource_type: Literal["User", "Group"] - created: NotRequired[str] - last_modified: NotRequired[str] - location: NotRequired[str] + path: str + title: str + count: int + uniques: int -__all__ = ("MetaType",) +__all__ = ("ContentTrafficType",) 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 910cd3455..d7d63281a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0368.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0368.py @@ -9,48 +9,18 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0367 import MetaType +class ReferrerTrafficType(TypedDict): + """Referrer Traffic -class ScimEnterpriseGroupResponseType(TypedDict): - """ScimEnterpriseGroupResponse""" + 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[ScimEnterpriseGroupResponseMergedMembersType]] - id: NotRequired[str] - meta: NotRequired[MetaType] + referrer: str + count: int + uniques: int -class ScimEnterpriseGroupResponseMergedMembersType(TypedDict): - """ScimEnterpriseGroupResponseMergedMembers""" - - value: str - ref: str - display: NotRequired[str] - - -class ScimEnterpriseGroupListType(TypedDict): - """ScimEnterpriseGroupList""" - - schemas: List[Literal["urn:ietf:params:scim:api:messages:2.0:ListResponse"]] - total_results: int - resources: List[ScimEnterpriseGroupResponseType] - start_index: int - items_per_page: int - - -__all__ = ( - "ScimEnterpriseGroupResponseType", - "ScimEnterpriseGroupResponseMergedMembersType", - "ScimEnterpriseGroupListType", -) +__all__ = ("ReferrerTrafficType",) 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 7aa49cb29..80af01a1b 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,20 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0367 import MetaType +from .group_0365 import TrafficType -class ScimEnterpriseGroupResponseAllof1Type(TypedDict): - """ScimEnterpriseGroupResponseAllof1""" +class ViewTrafficType(TypedDict): + """View Traffic - id: NotRequired[str] - members: NotRequired[List[ScimEnterpriseGroupResponseAllof1PropMembersItemsType]] - meta: NotRequired[MetaType] + View Traffic + """ + count: int + uniques: int + views: List[TrafficType] -class ScimEnterpriseGroupResponseAllof1PropMembersItemsType(TypedDict): - """ScimEnterpriseGroupResponseAllof1PropMembersItems""" - value: NotRequired[str] - ref: NotRequired[str] - display: NotRequired[str] - - -__all__ = ( - "ScimEnterpriseGroupResponseAllof1Type", - "ScimEnterpriseGroupResponseAllof1PropMembersItemsType", -) +__all__ = ("ViewTrafficType",) 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 3ca1950ab..7c5fb6279 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0370.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0370.py @@ -9,27 +9,33 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -class GroupType(TypedDict): - """Group""" +class GroupResponseType(TypedDict): + """GroupResponse""" - schemas: List[Literal["urn:ietf:params:scim:schemas:core:2.0:Group"]] - external_id: str - display_name: str - members: List[GroupPropMembersItemsType] + schemas: List[ + Literal[ + "urn:ietf:params:scim:schemas:core:2.0:Group", + "urn:ietf:params:scim:api:messages:2.0:ListResponse", + ] + ] + external_id: NotRequired[Union[str, None]] + display_name: NotRequired[Union[str, None]] + members: NotRequired[List[GroupResponsePropMembersItemsType]] -class GroupPropMembersItemsType(TypedDict): - """GroupPropMembersItems""" +class GroupResponsePropMembersItemsType(TypedDict): + """GroupResponsePropMembersItems""" value: str - display_name: str + ref: str + display: NotRequired[str] __all__ = ( - "GroupType", - "GroupPropMembersItemsType", + "GroupResponseType", + "GroupResponsePropMembersItemsType", ) 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 11087255d..c0d659e2b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0371.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0371.py @@ -9,26 +9,20 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -class PatchSchemaType(TypedDict): - """PatchSchema""" +class MetaType(TypedDict): + """Meta - operations: List[PatchSchemaPropOperationsItemsType] - schemas: List[Literal["urn:ietf:params:scim:api:messages:2.0:PatchOp"]] + The metadata associated with the creation/updates to the user. + """ + resource_type: Literal["User", "Group"] + created: NotRequired[str] + last_modified: NotRequired[str] + location: NotRequired[str] -class PatchSchemaPropOperationsItemsType(TypedDict): - """PatchSchemaPropOperationsItems""" - op: Literal["add", "replace", "remove"] - path: NotRequired[str] - value: NotRequired[str] - - -__all__ = ( - "PatchSchemaType", - "PatchSchemaPropOperationsItemsType", -) +__all__ = ("MetaType",) 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 71e1e834b..a473e5f3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0372.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0372.py @@ -9,27 +9,48 @@ from __future__ import annotations +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0371 import MetaType -class UserNameResponseType(TypedDict): - """UserNameResponse""" - formatted: NotRequired[str] - family_name: NotRequired[str] - given_name: NotRequired[str] - middle_name: NotRequired[str] +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 UserEmailsResponseItemsType(TypedDict): - """UserEmailsResponseItems""" + +class ScimEnterpriseGroupResponseMergedMembersType(TypedDict): + """ScimEnterpriseGroupResponseMergedMembers""" value: str - type: NotRequired[str] - primary: NotRequired[bool] + 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__ = ( - "UserNameResponseType", - "UserEmailsResponseItemsType", + "ScimEnterpriseGroupResponseType", + "ScimEnterpriseGroupResponseMergedMembersType", + "ScimEnterpriseGroupListType", ) 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 cf6951dd8..12143a7dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0373.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0373.py @@ -9,28 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0371 import MetaType -class UserRoleItemsType(TypedDict): - """UserRoleItems""" +class ScimEnterpriseGroupResponseAllof1Type(TypedDict): + """ScimEnterpriseGroupResponseAllof1""" + + id: NotRequired[str] + members: NotRequired[List[ScimEnterpriseGroupResponseAllof1PropMembersItemsType]] + meta: NotRequired[MetaType] + + +class ScimEnterpriseGroupResponseAllof1PropMembersItemsType(TypedDict): + """ScimEnterpriseGroupResponseAllof1PropMembersItems""" + + value: NotRequired[str] + ref: NotRequired[str] 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",) + + +__all__ = ( + "ScimEnterpriseGroupResponseAllof1Type", + "ScimEnterpriseGroupResponseAllof1PropMembersItemsType", +) 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 0c70db420..3ca1950ab 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0374.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0374.py @@ -9,24 +9,27 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List, Literal +from typing_extensions import TypedDict -from .group_0373 import UserRoleItemsType -from .group_0372 import UserNameResponseType, UserEmailsResponseItemsType +class GroupType(TypedDict): + """Group""" -class UserResponseType(TypedDict): - """UserResponse""" + schemas: List[Literal["urn:ietf:params:scim:schemas:core:2.0:Group"]] + external_id: str + display_name: str + members: List[GroupPropMembersItemsType] - schemas: List[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] - external_id: NotRequired[Union[str, None]] - active: bool - user_name: NotRequired[str] - name: NotRequired[UserNameResponseType] - display_name: NotRequired[Union[str, None]] - emails: List[UserEmailsResponseItemsType] - roles: NotRequired[List[UserRoleItemsType]] +class GroupPropMembersItemsType(TypedDict): + """GroupPropMembersItems""" -__all__ = ("UserResponseType",) + value: str + display_name: str + + +__all__ = ( + "GroupType", + "GroupPropMembersItemsType", +) 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 74e8aed07..11087255d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0375.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0375.py @@ -9,42 +9,26 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import MetaType -from .group_0373 import UserRoleItemsType -from .group_0372 import UserNameResponseType, UserEmailsResponseItemsType -from .group_0377 import ScimEnterpriseUserResponseAllof1PropGroupsItemsType +class PatchSchemaType(TypedDict): + """PatchSchema""" -class ScimEnterpriseUserResponseType(TypedDict): - """ScimEnterpriseUserResponse""" + operations: List[PatchSchemaPropOperationsItemsType] + schemas: List[Literal["urn:ietf:params:scim:api:messages:2.0:PatchOp"]] - schemas: List[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] - external_id: 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 PatchSchemaPropOperationsItemsType(TypedDict): + """PatchSchemaPropOperationsItems""" -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 + op: Literal["add", "replace", "remove"] + path: NotRequired[str] + value: NotRequired[str] __all__ = ( - "ScimEnterpriseUserResponseType", - "ScimEnterpriseUserListType", + "PatchSchemaType", + "PatchSchemaPropOperationsItemsType", ) 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 0182e2591..71e1e834b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0376.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0376.py @@ -9,19 +9,27 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0367 import MetaType -from .group_0377 import ScimEnterpriseUserResponseAllof1PropGroupsItemsType +class UserNameResponseType(TypedDict): + """UserNameResponse""" -class ScimEnterpriseUserResponseAllof1Type(TypedDict): - """ScimEnterpriseUserResponseAllof1""" + formatted: NotRequired[str] + family_name: NotRequired[str] + given_name: NotRequired[str] + middle_name: NotRequired[str] - id: str - groups: NotRequired[List[ScimEnterpriseUserResponseAllof1PropGroupsItemsType]] - meta: MetaType +class UserEmailsResponseItemsType(TypedDict): + """UserEmailsResponseItems""" -__all__ = ("ScimEnterpriseUserResponseAllof1Type",) + value: str + type: NotRequired[str] + primary: NotRequired[bool] + + +__all__ = ( + "UserNameResponseType", + "UserEmailsResponseItemsType", +) 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 2e8663f62..cf6951dd8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0377.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0377.py @@ -9,15 +9,28 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ScimEnterpriseUserResponseAllof1PropGroupsItemsType(TypedDict): - """ScimEnterpriseUserResponseAllof1PropGroupsItems""" +class UserRoleItemsType(TypedDict): + """UserRoleItems""" - value: NotRequired[str] - ref: NotRequired[str] display: NotRequired[str] - - -__all__ = ("ScimEnterpriseUserResponseAllof1PropGroupsItemsType",) + type: NotRequired[str] + value: Literal[ + "user", + "27d9891d-2c17-4f45-a262-781a0e55c80a", + "guest_collaborator", + "1ebc4a02-e56c-43a6-92a5-02ee09b90824", + "enterprise_owner", + "981df190-8801-4618-a08a-d91f6206c954", + "ba4987ab-a1c3-412a-b58c-360fc407cb10", + "billing_manager", + "0e338b8c-cc7f-498a-928d-ea3470d7e7e3", + "e6be2762-e4ad-4108-b72d-1bbe884a0f91", + ] + primary: NotRequired[bool] + + +__all__ = ("UserRoleItemsType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0378.py b/githubkit/versions/ghec_v2022_11_28/types/group_0378.py index 277727bc1..705ec6691 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0378.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0378.py @@ -9,44 +9,24 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0373 import UserRoleItemsType +from .group_0377 import UserRoleItemsType +from .group_0376 import UserNameResponseType, UserEmailsResponseItemsType -class UserType(TypedDict): - """User""" +class UserResponseType(TypedDict): + """UserResponse""" schemas: List[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] - external_id: str + external_id: NotRequired[Union[str, None]] active: bool - user_name: str - name: NotRequired[UserNameType] - display_name: str - emails: List[UserEmailsItemsType] + user_name: NotRequired[str] + name: NotRequired[UserNameResponseType] + display_name: NotRequired[Union[str, None]] + emails: List[UserEmailsResponseItemsType] roles: NotRequired[List[UserRoleItemsType]] -class UserNameType(TypedDict): - """UserName""" - - formatted: NotRequired[str] - family_name: str - given_name: str - middle_name: NotRequired[str] - - -class UserEmailsItemsType(TypedDict): - """UserEmailsItems""" - - value: str - type: str - primary: bool - - -__all__ = ( - "UserType", - "UserNameType", - "UserEmailsItemsType", -) +__all__ = ("UserResponseType",) 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 ca6514606..8a678c872 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0379.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0379.py @@ -9,112 +9,42 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, List, Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0371 import MetaType +from .group_0377 import UserRoleItemsType +from .group_0376 import UserNameResponseType, UserEmailsResponseItemsType +from .group_0381 import ScimEnterpriseUserResponseAllof1PropGroupsItemsType -class ScimUserListType(TypedDict): - """SCIM User List - SCIM User List - """ +class ScimEnterpriseUserResponseType(TypedDict): + """ScimEnterpriseUserResponse""" - schemas: List[str] - total_results: int - items_per_page: int - start_index: int - resources: List[ScimUserType] - - -class ScimUserType(TypedDict): - """SCIM /Users - - SCIM /Users provisioning endpoints - """ - - schemas: List[str] - id: str + schemas: List[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] external_id: NotRequired[Union[str, None]] - user_name: NotRequired[Union[str, None]] - display_name: NotRequired[Union[str, None]] - name: NotRequired[ScimUserPropNameType] - emails: List[ScimUserPropEmailsItemsType] active: bool - meta: ScimUserPropMetaType - organization_id: NotRequired[int] - operations: NotRequired[List[ScimUserPropOperationsItemsType]] - groups: NotRequired[List[ScimUserPropGroupsItemsType]] - roles: NotRequired[List[ScimUserPropRolesItemsType]] - - -class ScimUserPropNameType(TypedDict): - """ScimUserPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: NotRequired[Union[str, None]] - family_name: NotRequired[Union[str, None]] - formatted: NotRequired[Union[str, None]] - - -class ScimUserPropEmailsItemsType(TypedDict): - """ScimUserPropEmailsItems""" - - value: str - primary: NotRequired[bool] - type: NotRequired[str] - - -class ScimUserPropMetaType(TypedDict): - """ScimUserPropMeta""" - - resource_type: NotRequired[str] - created: NotRequired[datetime] - last_modified: NotRequired[datetime] - location: NotRequired[str] - - -class ScimUserPropGroupsItemsType(TypedDict): - """ScimUserPropGroupsItems""" - - value: NotRequired[str] - display: NotRequired[str] - - -class ScimUserPropRolesItemsType(TypedDict): - """ScimUserPropRolesItems""" - - value: NotRequired[str] - primary: NotRequired[bool] - type: NotRequired[str] - display: NotRequired[str] - - -class ScimUserPropOperationsItemsType(TypedDict): - """ScimUserPropOperationsItems""" + 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 - op: Literal["add", "remove", "replace"] - path: NotRequired[str] - value: NotRequired[ - Union[str, ScimUserPropOperationsItemsPropValueOneof1Type, List[Any]] - ] +class ScimEnterpriseUserListType(TypedDict): + """ScimEnterpriseUserList""" -class ScimUserPropOperationsItemsPropValueOneof1Type(TypedDict): - """ScimUserPropOperationsItemsPropValueOneof1""" + 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__ = ( - "ScimUserListType", - "ScimUserType", - "ScimUserPropNameType", - "ScimUserPropEmailsItemsType", - "ScimUserPropMetaType", - "ScimUserPropGroupsItemsType", - "ScimUserPropRolesItemsType", - "ScimUserPropOperationsItemsType", - "ScimUserPropOperationsItemsPropValueOneof1Type", + "ScimEnterpriseUserResponseType", + "ScimEnterpriseUserListType", ) 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 1ea99ae28..44a07fbda 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0380.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0380.py @@ -9,28 +9,19 @@ from __future__ import annotations -from typing import List, Union +from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0371 import MetaType +from .group_0381 import ScimEnterpriseUserResponseAllof1PropGroupsItemsType -class SearchResultTextMatchesItemsType(TypedDict): - """SearchResultTextMatchesItems""" - object_url: NotRequired[str] - object_type: NotRequired[Union[str, None]] - property_: NotRequired[str] - fragment: NotRequired[str] - matches: NotRequired[List[SearchResultTextMatchesItemsPropMatchesItemsType]] +class ScimEnterpriseUserResponseAllof1Type(TypedDict): + """ScimEnterpriseUserResponseAllof1""" + id: str + groups: NotRequired[List[ScimEnterpriseUserResponseAllof1PropGroupsItemsType]] + meta: MetaType -class SearchResultTextMatchesItemsPropMatchesItemsType(TypedDict): - """SearchResultTextMatchesItemsPropMatchesItems""" - text: NotRequired[str] - indices: NotRequired[List[int]] - - -__all__ = ( - "SearchResultTextMatchesItemsType", - "SearchResultTextMatchesItemsPropMatchesItemsType", -) +__all__ = ("ScimEnterpriseUserResponseAllof1Type",) 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 e89d54628..2e8663f62 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0381.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0381.py @@ -9,44 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0079 import MinimalRepositoryType -from .group_0380 import SearchResultTextMatchesItemsType +class ScimEnterpriseUserResponseAllof1PropGroupsItemsType(TypedDict): + """ScimEnterpriseUserResponseAllof1PropGroupsItems""" -class CodeSearchResultItemType(TypedDict): - """Code Search Result Item + value: NotRequired[str] + ref: NotRequired[str] + display: NotRequired[str] - Code Search Result Item - """ - name: str - path: str - sha: str - url: str - git_url: str - html_url: str - repository: MinimalRepositoryType - score: float - file_size: NotRequired[int] - language: NotRequired[Union[str, None]] - last_modified_at: NotRequired[datetime] - line_numbers: NotRequired[List[str]] - text_matches: NotRequired[List[SearchResultTextMatchesItemsType]] - - -class SearchCodeGetResponse200Type(TypedDict): - """SearchCodeGetResponse200""" - - total_count: int - incomplete_results: bool - items: List[CodeSearchResultItemType] - - -__all__ = ( - "CodeSearchResultItemType", - "SearchCodeGetResponse200Type", -) +__all__ = ("ScimEnterpriseUserResponseAllof1PropGroupsItemsType",) 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 514361769..0ce2f7ec2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0382.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0382.py @@ -9,54 +9,44 @@ from __future__ import annotations -from typing import List, Union +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0203 import GitUserType -from .group_0001 import SimpleUserType -from .group_0079 import MinimalRepositoryType -from .group_0380 import SearchResultTextMatchesItemsType -from .group_0383 import CommitSearchResultItemPropCommitType +from .group_0377 import UserRoleItemsType -class CommitSearchResultItemType(TypedDict): - """Commit Search Result Item +class UserType(TypedDict): + """User""" - Commit Search Result Item - """ + schemas: List[Literal["urn:ietf:params:scim:schemas:core:2.0:User"]] + external_id: str + active: bool + user_name: str + name: NotRequired[UserNameType] + display_name: str + emails: List[UserEmailsItemsType] + roles: NotRequired[List[UserRoleItemsType]] - 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 UserNameType(TypedDict): + """UserName""" -class CommitSearchResultItemPropParentsItemsType(TypedDict): - """CommitSearchResultItemPropParentsItems""" + formatted: NotRequired[str] + family_name: str + given_name: str + middle_name: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - sha: NotRequired[str] +class UserEmailsItemsType(TypedDict): + """UserEmailsItems""" -class SearchCommitsGetResponse200Type(TypedDict): - """SearchCommitsGetResponse200""" - - total_count: int - incomplete_results: bool - items: List[CommitSearchResultItemType] + value: str + type: str + primary: bool __all__ = ( - "CommitSearchResultItemType", - "CommitSearchResultItemPropParentsItemsType", - "SearchCommitsGetResponse200Type", + "UserType", + "UserNameType", + "UserEmailsItemsType", ) 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 340c73573..ca6514606 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0383.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0383.py @@ -9,43 +9,112 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import Any, List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0203 import GitUserType -from .group_0204 import VerificationType +class ScimUserListType(TypedDict): + """SCIM User List -class CommitSearchResultItemPropCommitType(TypedDict): - """CommitSearchResultItemPropCommit""" + SCIM User List + """ - author: CommitSearchResultItemPropCommitPropAuthorType - committer: Union[None, GitUserType] - comment_count: int - message: str - tree: CommitSearchResultItemPropCommitPropTreeType - url: str - verification: NotRequired[VerificationType] + schemas: List[str] + total_results: int + items_per_page: int + start_index: int + resources: List[ScimUserType] -class CommitSearchResultItemPropCommitPropAuthorType(TypedDict): - """CommitSearchResultItemPropCommitPropAuthor""" +class ScimUserType(TypedDict): + """SCIM /Users - name: str - email: str - date: datetime + 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 CommitSearchResultItemPropCommitPropTreeType(TypedDict): - """CommitSearchResultItemPropCommitPropTree""" - sha: str - url: str +class ScimUserPropNameType(TypedDict): + """ScimUserPropName + + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ + + given_name: NotRequired[Union[str, None]] + family_name: NotRequired[Union[str, None]] + formatted: NotRequired[Union[str, None]] + + +class ScimUserPropEmailsItemsType(TypedDict): + """ScimUserPropEmailsItems""" + + value: str + primary: NotRequired[bool] + type: NotRequired[str] + + +class ScimUserPropMetaType(TypedDict): + """ScimUserPropMeta""" + + resource_type: NotRequired[str] + created: NotRequired[datetime] + last_modified: NotRequired[datetime] + location: NotRequired[str] + + +class ScimUserPropGroupsItemsType(TypedDict): + """ScimUserPropGroupsItems""" + + value: NotRequired[str] + display: NotRequired[str] + + +class ScimUserPropRolesItemsType(TypedDict): + """ScimUserPropRolesItems""" + + value: NotRequired[str] + primary: NotRequired[bool] + type: NotRequired[str] + display: NotRequired[str] + + +class ScimUserPropOperationsItemsType(TypedDict): + """ScimUserPropOperationsItems""" + + op: Literal["add", "remove", "replace"] + path: NotRequired[str] + value: NotRequired[ + Union[str, ScimUserPropOperationsItemsPropValueOneof1Type, List[Any]] + ] + + +class ScimUserPropOperationsItemsPropValueOneof1Type(TypedDict): + """ScimUserPropOperationsItemsPropValueOneof1""" __all__ = ( - "CommitSearchResultItemPropCommitType", - "CommitSearchResultItemPropCommitPropAuthorType", - "CommitSearchResultItemPropCommitPropTreeType", + "ScimUserListType", + "ScimUserType", + "ScimUserPropNameType", + "ScimUserPropEmailsItemsType", + "ScimUserPropMetaType", + "ScimUserPropGroupsItemsType", + "ScimUserPropRolesItemsType", + "ScimUserPropOperationsItemsType", + "ScimUserPropOperationsItemsPropValueOneof1Type", ) 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 9cb9437b4..1ea99ae28 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0384.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0384.py @@ -9,103 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0061 import MilestoneType -from .group_0001 import SimpleUserType -from .group_0017 import RepositoryType -from .group_0006 import IntegrationType -from .group_0062 import ReactionRollupType -from .group_0380 import SearchResultTextMatchesItemsType +class SearchResultTextMatchesItemsType(TypedDict): + """SearchResultTextMatchesItems""" -class IssueSearchResultItemType(TypedDict): - """Issue Search Result Item + object_url: NotRequired[str] + object_type: NotRequired[Union[str, None]] + property_: NotRequired[str] + fragment: NotRequired[str] + matches: NotRequired[List[SearchResultTextMatchesItemsPropMatchesItemsType]] - Issue Search Result Item - """ - url: str - repository_url: str - labels_url: str - comments_url: str - events_url: str - html_url: str - id: int - node_id: str - number: int - title: str - locked: bool - active_lock_reason: NotRequired[Union[str, None]] - assignees: NotRequired[Union[List[SimpleUserType], None]] - user: Union[None, SimpleUserType] - labels: List[IssueSearchResultItemPropLabelsItemsType] - state: str - state_reason: NotRequired[Union[str, None]] - assignee: Union[None, SimpleUserType] - milestone: Union[None, MilestoneType] - comments: int - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - text_matches: NotRequired[List[SearchResultTextMatchesItemsType]] - pull_request: NotRequired[IssueSearchResultItemPropPullRequestType] - body: NotRequired[str] - score: float - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - draft: NotRequired[bool] - repository: NotRequired[RepositoryType] - body_html: NotRequired[str] - body_text: NotRequired[str] - timeline_url: NotRequired[str] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - reactions: NotRequired[ReactionRollupType] +class SearchResultTextMatchesItemsPropMatchesItemsType(TypedDict): + """SearchResultTextMatchesItemsPropMatchesItems""" - -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[IssueSearchResultItemType] + text: NotRequired[str] + indices: NotRequired[List[int]] __all__ = ( - "IssueSearchResultItemType", - "IssueSearchResultItemPropLabelsItemsType", - "IssueSearchResultItemPropPullRequestType", - "SearchIssuesGetResponse200Type", + "SearchResultTextMatchesItemsType", + "SearchResultTextMatchesItemsPropMatchesItemsType", ) 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 fe8736892..06b3b52fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0385.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0385.py @@ -9,38 +9,44 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0380 import SearchResultTextMatchesItemsType +from .group_0082 import MinimalRepositoryType +from .group_0384 import SearchResultTextMatchesItemsType -class LabelSearchResultItemType(TypedDict): - """Label Search Result Item +class CodeSearchResultItemType(TypedDict): + """Code Search Result Item - Label Search Result Item + Code Search Result Item """ - id: int - node_id: str - url: str name: str - color: str - default: bool - description: Union[str, None] + 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 SearchLabelsGetResponse200Type(TypedDict): - """SearchLabelsGetResponse200""" +class SearchCodeGetResponse200Type(TypedDict): + """SearchCodeGetResponse200""" total_count: int incomplete_results: bool - items: List[LabelSearchResultItemType] + items: List[CodeSearchResultItemType] __all__ = ( - "LabelSearchResultItemType", - "SearchLabelsGetResponse200Type", + "CodeSearchResultItemType", + "SearchCodeGetResponse200Type", ) 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 0ecb08fd1..d88252bbd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0386.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0386.py @@ -9,132 +9,54 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union from typing_extensions import TypedDict, NotRequired +from .group_0207 import GitUserType from .group_0001 import SimpleUserType -from .group_0016 import LicenseSimpleType -from .group_0380 import SearchResultTextMatchesItemsType +from .group_0082 import MinimalRepositoryType +from .group_0384 import SearchResultTextMatchesItemsType +from .group_0387 import CommitSearchResultItemPropCommitType -class RepoSearchResultItemType(TypedDict): - """Repo Search Result Item +class CommitSearchResultItemType(TypedDict): + """Commit Search Result Item - Repo Search Result Item + Commit Search Result Item """ - id: int - node_id: str - name: str - full_name: str - owner: Union[None, SimpleUserType] - private: bool - html_url: str - description: Union[str, None] - fork: bool url: str - created_at: datetime - updated_at: datetime - pushed_at: datetime - homepage: Union[str, None] - size: int - stargazers_count: int - watchers_count: int - language: Union[str, None] - forks_count: int - open_issues_count: int - master_branch: NotRequired[str] - default_branch: str - score: float - forks_url: str - keys_url: str - collaborators_url: str - teams_url: str - hooks_url: str - issue_events_url: str - events_url: str - assignees_url: str - branches_url: str - tags_url: str - blobs_url: str - git_tags_url: str - git_refs_url: str - trees_url: str - statuses_url: str - languages_url: str - stargazers_url: str - contributors_url: str - subscribers_url: str - subscription_url: str - commits_url: str - git_commits_url: str + sha: str + html_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] + 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]] - 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""" +class CommitSearchResultItemPropParentsItemsType(TypedDict): + """CommitSearchResultItemPropParentsItems""" - admin: bool - maintain: NotRequired[bool] - push: bool - triage: NotRequired[bool] - pull: bool + url: NotRequired[str] + html_url: NotRequired[str] + sha: NotRequired[str] -class SearchRepositoriesGetResponse200Type(TypedDict): - """SearchRepositoriesGetResponse200""" +class SearchCommitsGetResponse200Type(TypedDict): + """SearchCommitsGetResponse200""" total_count: int incomplete_results: bool - items: List[RepoSearchResultItemType] + items: List[CommitSearchResultItemType] __all__ = ( - "RepoSearchResultItemType", - "RepoSearchResultItemPropPermissionsType", - "SearchRepositoriesGetResponse200Type", + "CommitSearchResultItemType", + "CommitSearchResultItemPropParentsItemsType", + "SearchCommitsGetResponse200Type", ) 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 049dd7509..a62440c34 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0387.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0387.py @@ -9,84 +9,43 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0380 import SearchResultTextMatchesItemsType +from .group_0207 import GitUserType +from .group_0208 import VerificationType -class TopicSearchResultItemType(TypedDict): - """Topic Search Result Item +class CommitSearchResultItemPropCommitType(TypedDict): + """CommitSearchResultItemPropCommit""" - Topic Search Result Item - """ + author: CommitSearchResultItemPropCommitPropAuthorType + committer: Union[None, GitUserType] + comment_count: int + message: str + tree: CommitSearchResultItemPropCommitPropTreeType + url: str + verification: NotRequired[VerificationType] - name: str - display_name: Union[str, None] - short_description: Union[str, None] - description: Union[str, None] - created_by: Union[str, None] - released: Union[str, None] - created_at: datetime - updated_at: datetime - featured: bool - curated: bool - score: float - repository_count: NotRequired[Union[int, None]] - logo_url: NotRequired[Union[str, None]] - text_matches: NotRequired[List[SearchResultTextMatchesItemsType]] - related: NotRequired[Union[List[TopicSearchResultItemPropRelatedItemsType], None]] - aliases: NotRequired[Union[List[TopicSearchResultItemPropAliasesItemsType], None]] - - -class TopicSearchResultItemPropRelatedItemsType(TypedDict): - """TopicSearchResultItemPropRelatedItems""" - - topic_relation: NotRequired[ - TopicSearchResultItemPropRelatedItemsPropTopicRelationType - ] - - -class TopicSearchResultItemPropRelatedItemsPropTopicRelationType(TypedDict): - """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" - id: NotRequired[int] - name: NotRequired[str] - topic_id: NotRequired[int] - relation_type: NotRequired[str] +class CommitSearchResultItemPropCommitPropAuthorType(TypedDict): + """CommitSearchResultItemPropCommitPropAuthor""" - -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] + name: str + email: str + date: datetime -class SearchTopicsGetResponse200Type(TypedDict): - """SearchTopicsGetResponse200""" +class CommitSearchResultItemPropCommitPropTreeType(TypedDict): + """CommitSearchResultItemPropCommitPropTree""" - total_count: int - incomplete_results: bool - items: List[TopicSearchResultItemType] + sha: str + url: str __all__ = ( - "TopicSearchResultItemType", - "TopicSearchResultItemPropRelatedItemsType", - "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", - "TopicSearchResultItemPropAliasesItemsType", - "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", - "SearchTopicsGetResponse200Type", + "CommitSearchResultItemPropCommitType", + "CommitSearchResultItemPropCommitPropAuthorType", + "CommitSearchResultItemPropCommitPropTreeType", ) 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 550352180..10ceb5cfd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0388.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0388.py @@ -10,63 +10,102 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0380 import SearchResultTextMatchesItemsType +from .group_0064 import MilestoneType +from .group_0001 import SimpleUserType +from .group_0017 import RepositoryType +from .group_0006 import IntegrationType +from .group_0065 import ReactionRollupType +from .group_0384 import SearchResultTextMatchesItemsType -class UserSearchResultItemType(TypedDict): - """User Search Result Item +class IssueSearchResultItemType(TypedDict): + """Issue Search Result Item - User Search Result Item + Issue Search Result Item """ - login: str - id: int - node_id: str - avatar_url: str - gravatar_id: Union[str, None] url: str - html_url: str - followers_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - received_events_url: str - type: str - score: float - following_url: str - gists_url: str - starred_url: str + repository_url: str + labels_url: str + comments_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]] + html_url: str + id: int + node_id: str + number: int + title: str + locked: bool + active_lock_reason: NotRequired[Union[str, None]] + assignees: NotRequired[Union[List[SimpleUserType], None]] + user: Union[None, SimpleUserType] + labels: List[IssueSearchResultItemPropLabelsItemsType] + 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]] - blog: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - suspended_at: NotRequired[Union[datetime, None]] + pull_request: NotRequired[IssueSearchResultItemPropPullRequestType] + body: NotRequired[str] + score: float + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + draft: NotRequired[bool] + repository: NotRequired[RepositoryType] + body_html: NotRequired[str] + body_text: NotRequired[str] + timeline_url: NotRequired[str] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + reactions: NotRequired[ReactionRollupType] + + +class IssueSearchResultItemPropLabelsItemsType(TypedDict): + """IssueSearchResultItemPropLabelsItems""" + + id: NotRequired[int] + node_id: NotRequired[str] + url: NotRequired[str] + name: NotRequired[str] + color: NotRequired[str] + default: NotRequired[bool] + description: NotRequired[Union[str, None]] + + +class 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 SearchUsersGetResponse200Type(TypedDict): - """SearchUsersGetResponse200""" +class SearchIssuesGetResponse200Type(TypedDict): + """SearchIssuesGetResponse200""" total_count: int incomplete_results: bool - items: List[UserSearchResultItemType] + items: List[IssueSearchResultItemType] __all__ = ( - "UserSearchResultItemType", - "SearchUsersGetResponse200Type", + "IssueSearchResultItemType", + "IssueSearchResultItemPropLabelsItemsType", + "IssueSearchResultItemPropPullRequestType", + "SearchIssuesGetResponse200Type", ) 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 83f601415..090a0ee7f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0389.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0389.py @@ -9,72 +9,38 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import List, Union from typing_extensions import TypedDict, NotRequired +from .group_0384 import SearchResultTextMatchesItemsType -class PrivateUserType(TypedDict): - """Private User - Private User +class LabelSearchResultItemType(TypedDict): + """Label Search Result Item + + Label Search Result Item """ - login: str id: int node_id: str - avatar_url: str - gravatar_id: Union[str, None] url: str - html_url: str - followers_url: str - 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] - suspended_at: NotRequired[Union[datetime, None]] - business_plus: NotRequired[bool] - ldap_dn: NotRequired[str] + name: str + color: str + default: bool + description: Union[str, None] + score: float + text_matches: NotRequired[List[SearchResultTextMatchesItemsType]] -class PrivateUserPropPlanType(TypedDict): - """PrivateUserPropPlan""" +class SearchLabelsGetResponse200Type(TypedDict): + """SearchLabelsGetResponse200""" - collaborators: int - name: str - space: int - private_repos: int + total_count: int + incomplete_results: bool + items: List[LabelSearchResultItemType] __all__ = ( - "PrivateUserType", - "PrivateUserPropPlanType", + "LabelSearchResultItemType", + "SearchLabelsGetResponse200Type", ) 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 6be52538b..422570fd1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0390.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0390.py @@ -9,17 +9,132 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0016 import LicenseSimpleType +from .group_0384 import SearchResultTextMatchesItemsType -class CodespacesUserPublicKeyType(TypedDict): - """CodespacesUserPublicKey - The public key used for setting user Codespaces' Secrets. +class RepoSearchResultItemType(TypedDict): + """Repo Search Result Item + + Repo Search Result Item """ - key_id: str - key: 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 + created_at: datetime + updated_at: datetime + pushed_at: datetime + homepage: Union[str, None] + size: int + stargazers_count: int + watchers_count: int + language: Union[str, None] + forks_count: int + open_issues_count: int + master_branch: NotRequired[str] + default_branch: str + score: float + forks_url: str + keys_url: str + collaborators_url: str + teams_url: str + hooks_url: str + issue_events_url: str + events_url: str + assignees_url: str + branches_url: str + tags_url: str + blobs_url: str + git_tags_url: str + git_refs_url: str + trees_url: str + statuses_url: str + languages_url: str + stargazers_url: str + contributors_url: str + subscribers_url: str + subscription_url: str + commits_url: str + git_commits_url: str + comments_url: str + issue_comment_url: str + contents_url: str + compare_url: str + merges_url: str + archive_url: str + downloads_url: str + issues_url: str + pulls_url: str + milestones_url: str + notifications_url: str + labels_url: str + releases_url: str + deployments_url: str + git_url: str + ssh_url: str + clone_url: str + svn_url: str + forks: int + open_issues: int + watchers: int + topics: NotRequired[List[str]] + mirror_url: Union[str, None] + has_issues: bool + has_projects: bool + has_pages: bool + has_wiki: bool + has_downloads: bool + has_discussions: NotRequired[bool] + archived: bool + disabled: bool + visibility: NotRequired[str] + license_: Union[None, LicenseSimpleType] + permissions: NotRequired[RepoSearchResultItemPropPermissionsType] + text_matches: NotRequired[List[SearchResultTextMatchesItemsType]] + temp_clone_token: NotRequired[Union[str, None]] + allow_merge_commit: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + is_template: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + + +class RepoSearchResultItemPropPermissionsType(TypedDict): + """RepoSearchResultItemPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + push: bool + triage: NotRequired[bool] + pull: bool + + +class SearchRepositoriesGetResponse200Type(TypedDict): + """SearchRepositoriesGetResponse200""" + + total_count: int + incomplete_results: bool + items: List[RepoSearchResultItemType] -__all__ = ("CodespacesUserPublicKeyType",) +__all__ = ( + "RepoSearchResultItemType", + "RepoSearchResultItemPropPermissionsType", + "SearchRepositoriesGetResponse200Type", +) 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 a57fc4101..c93a821a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0391.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0391.py @@ -9,25 +9,84 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union from typing_extensions import TypedDict, NotRequired +from .group_0384 import SearchResultTextMatchesItemsType -class CodespaceExportDetailsType(TypedDict): - """Fetches information about an export of a codespace. - An export of a codespace. Also, latest export details for a codespace can be - fetched with id = latest +class TopicSearchResultItemType(TypedDict): + """Topic Search Result Item + + Topic Search Result Item """ - state: NotRequired[Union[str, None]] - completed_at: NotRequired[Union[datetime, None]] - branch: NotRequired[Union[str, None]] - sha: NotRequired[Union[str, None]] - id: NotRequired[str] - export_url: NotRequired[str] - html_url: NotRequired[Union[str, None]] + name: str + display_name: Union[str, None] + short_description: Union[str, None] + description: Union[str, None] + created_by: Union[str, None] + released: Union[str, None] + created_at: datetime + updated_at: datetime + featured: bool + curated: bool + score: float + repository_count: NotRequired[Union[int, None]] + logo_url: NotRequired[Union[str, None]] + text_matches: NotRequired[List[SearchResultTextMatchesItemsType]] + related: NotRequired[Union[List[TopicSearchResultItemPropRelatedItemsType], None]] + aliases: NotRequired[Union[List[TopicSearchResultItemPropAliasesItemsType], None]] + + +class TopicSearchResultItemPropRelatedItemsType(TypedDict): + """TopicSearchResultItemPropRelatedItems""" + + topic_relation: NotRequired[ + TopicSearchResultItemPropRelatedItemsPropTopicRelationType + ] + + +class TopicSearchResultItemPropRelatedItemsPropTopicRelationType(TypedDict): + """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" + + id: NotRequired[int] + name: NotRequired[str] + topic_id: NotRequired[int] + relation_type: NotRequired[str] + + +class TopicSearchResultItemPropAliasesItemsType(TypedDict): + """TopicSearchResultItemPropAliasesItems""" + + topic_relation: NotRequired[ + TopicSearchResultItemPropAliasesItemsPropTopicRelationType + ] + + +class TopicSearchResultItemPropAliasesItemsPropTopicRelationType(TypedDict): + """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" + + id: NotRequired[int] + name: NotRequired[str] + topic_id: NotRequired[int] + relation_type: NotRequired[str] + + +class SearchTopicsGetResponse200Type(TypedDict): + """SearchTopicsGetResponse200""" + + total_count: int + incomplete_results: bool + items: List[TopicSearchResultItemType] -__all__ = ("CodespaceExportDetailsType",) +__all__ = ( + "TopicSearchResultItemType", + "TopicSearchResultItemPropRelatedItemsType", + "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", + "TopicSearchResultItemPropAliasesItemsType", + "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", + "SearchTopicsGetResponse200Type", +) 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 d4d1e04b5..96f351f52 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0392.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0392.py @@ -10,94 +10,63 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0119 import FullRepositoryType -from .group_0088 import CodespaceMachineType +from .group_0384 import SearchResultTextMatchesItemsType -class CodespaceWithFullRepositoryType(TypedDict): - """Codespace +class UserSearchResultItemType(TypedDict): + """User Search Result Item - A codespace. + User Search Result Item """ + login: str id: int - name: str - display_name: NotRequired[Union[str, None]] - environment_id: Union[str, None] - owner: SimpleUserType - billable_owner: SimpleUserType - repository: FullRepositoryType - machine: Union[None, CodespaceMachineType] - devcontainer_path: NotRequired[Union[str, None]] - prebuild: Union[bool, None] - created_at: datetime - updated_at: datetime - last_used_at: datetime - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] + node_id: str + avatar_url: str + gravatar_id: Union[str, None] 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]] + 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]] + + +class SearchUsersGetResponse200Type(TypedDict): + """SearchUsersGetResponse200""" + + total_count: int + incomplete_results: bool + items: List[UserSearchResultItemType] __all__ = ( - "CodespaceWithFullRepositoryType", - "CodespaceWithFullRepositoryPropGitStatusType", - "CodespaceWithFullRepositoryPropRuntimeConstraintsType", + "UserSearchResultItemType", + "SearchUsersGetResponse200Type", ) 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 767832678..83f601415 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0393.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0393.py @@ -10,19 +10,71 @@ from __future__ import annotations from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -class EmailType(TypedDict): - """Email +class PrivateUserType(TypedDict): + """Private User - Email + Private User """ - email: str - primary: bool - verified: bool - visibility: Union[str, None] + login: str + id: int + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + 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] + suspended_at: NotRequired[Union[datetime, None]] + business_plus: NotRequired[bool] + ldap_dn: NotRequired[str] -__all__ = ("EmailType",) +class PrivateUserPropPlanType(TypedDict): + """PrivateUserPropPlan""" + + collaborators: int + name: str + space: int + private_repos: int + + +__all__ = ( + "PrivateUserType", + "PrivateUserPropPlanType", +) 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 df0802f2e..6be52538b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0394.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0394.py @@ -9,70 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Any, List, Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class GpgKeyType(TypedDict): - """GPG Key +class CodespacesUserPublicKeyType(TypedDict): + """CodespacesUserPublicKey - A unique encryption key + The public key used for setting user Codespaces' Secrets. """ - 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] + key: str -class GpgKeyPropEmailsItemsType(TypedDict): - """GpgKeyPropEmailsItems""" - - email: NotRequired[str] - verified: NotRequired[bool] - - -class GpgKeyPropSubkeysItemsType(TypedDict): - """GpgKeyPropSubkeysItems""" - - id: NotRequired[int] - primary_key_id: NotRequired[int] - key_id: NotRequired[str] - public_key: NotRequired[str] - emails: NotRequired[List[GpgKeyPropSubkeysItemsPropEmailsItemsType]] - subkeys: NotRequired[List[Any]] - can_sign: NotRequired[bool] - can_encrypt_comms: NotRequired[bool] - can_encrypt_storage: NotRequired[bool] - can_certify: NotRequired[bool] - created_at: NotRequired[str] - expires_at: NotRequired[Union[str, None]] - raw_key: NotRequired[Union[str, None]] - revoked: NotRequired[bool] - - -class GpgKeyPropSubkeysItemsPropEmailsItemsType(TypedDict): - """GpgKeyPropSubkeysItemsPropEmailsItems""" - - email: NotRequired[str] - verified: NotRequired[bool] - - -__all__ = ( - "GpgKeyType", - "GpgKeyPropEmailsItemsType", - "GpgKeyPropSubkeysItemsType", - "GpgKeyPropSubkeysItemsPropEmailsItemsType", -) +__all__ = ("CodespacesUserPublicKeyType",) 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 6c95fc7a9..a57fc4101 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0395.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0395.py @@ -9,23 +9,25 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class KeyType(TypedDict): - """Key +class CodespaceExportDetailsType(TypedDict): + """Fetches information about an export of a codespace. - Key + An export of a codespace. Also, latest export details for a codespace can be + fetched with id = latest """ - key: str - id: int - url: str - title: str - created_at: datetime - verified: bool - read_only: bool + 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__ = ("KeyType",) +__all__ = ("CodespaceExportDetailsType",) 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 a69b4ca7b..c4e1803f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0396.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0396.py @@ -9,42 +9,95 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0074 import MarketplaceListingPlanType +from .group_0001 import SimpleUserType +from .group_0123 import FullRepositoryType +from .group_0093 import CodespaceMachineType -class UserMarketplacePurchaseType(TypedDict): - """User Marketplace Purchase +class CodespaceWithFullRepositoryType(TypedDict): + """Codespace - User Marketplace Purchase + A codespace. """ - 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: 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 MarketplaceAccountType(TypedDict): - """Marketplace Account""" +class CodespaceWithFullRepositoryPropGitStatusType(TypedDict): + """CodespaceWithFullRepositoryPropGitStatus - url: str - id: int - type: str - node_id: NotRequired[str] - login: str - email: NotRequired[Union[str, None]] - organization_billing_email: NotRequired[Union[str, None]] + Details about the codespace's git repository. + """ + + ahead: NotRequired[int] + behind: NotRequired[int] + has_unpushed_changes: NotRequired[bool] + has_uncommitted_changes: NotRequired[bool] + ref: NotRequired[str] + + +class CodespaceWithFullRepositoryPropRuntimeConstraintsType(TypedDict): + """CodespaceWithFullRepositoryPropRuntimeConstraints""" + + allowed_port_privacy_settings: NotRequired[Union[List[str], None]] __all__ = ( - "UserMarketplacePurchaseType", - "MarketplaceAccountType", + "CodespaceWithFullRepositoryType", + "CodespaceWithFullRepositoryPropGitStatusType", + "CodespaceWithFullRepositoryPropRuntimeConstraintsType", ) 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 f892fc0d3..767832678 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0397.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0397.py @@ -9,17 +9,20 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -class SocialAccountType(TypedDict): - """Social account +class EmailType(TypedDict): + """Email - Social media account + Email """ - provider: str - url: str + email: str + primary: bool + verified: bool + visibility: Union[str, None] -__all__ = ("SocialAccountType",) +__all__ = ("EmailType",) 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 a3c3f348b..df0802f2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0398.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0398.py @@ -10,19 +10,69 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Any, List, Union +from typing_extensions import TypedDict, NotRequired -class SshSigningKeyType(TypedDict): - """SSH Signing Key +class GpgKeyType(TypedDict): + """GPG Key - A public SSH key used to sign Git commits + A unique encryption key """ - key: str id: int - title: str + name: NotRequired[Union[str, None]] + primary_key_id: Union[int, None] + key_id: str + public_key: str + emails: List[GpgKeyPropEmailsItemsType] + subkeys: List[GpgKeyPropSubkeysItemsType] + can_sign: bool + can_encrypt_comms: bool + can_encrypt_storage: bool + can_certify: bool created_at: datetime + expires_at: Union[datetime, None] + revoked: bool + raw_key: Union[str, None] -__all__ = ("SshSigningKeyType",) +class GpgKeyPropEmailsItemsType(TypedDict): + """GpgKeyPropEmailsItems""" + + email: NotRequired[str] + verified: NotRequired[bool] + + +class GpgKeyPropSubkeysItemsType(TypedDict): + """GpgKeyPropSubkeysItems""" + + id: NotRequired[int] + primary_key_id: NotRequired[int] + key_id: NotRequired[str] + public_key: NotRequired[str] + emails: NotRequired[List[GpgKeyPropSubkeysItemsPropEmailsItemsType]] + subkeys: NotRequired[List[Any]] + can_sign: NotRequired[bool] + can_encrypt_comms: NotRequired[bool] + can_encrypt_storage: NotRequired[bool] + can_certify: NotRequired[bool] + created_at: NotRequired[str] + expires_at: NotRequired[Union[str, None]] + raw_key: NotRequired[Union[str, None]] + revoked: NotRequired[bool] + + +class GpgKeyPropSubkeysItemsPropEmailsItemsType(TypedDict): + """GpgKeyPropSubkeysItemsPropEmailsItems""" + + email: NotRequired[str] + verified: NotRequired[bool] + + +__all__ = ( + "GpgKeyType", + "GpgKeyPropEmailsItemsType", + "GpgKeyPropSubkeysItemsType", + "GpgKeyPropSubkeysItemsPropEmailsItemsType", +) 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 a90acd5c0..6c95fc7a9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0399.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0399.py @@ -12,17 +12,20 @@ from datetime import datetime from typing_extensions import TypedDict -from .group_0017 import RepositoryType +class KeyType(TypedDict): + """Key -class StarredRepositoryType(TypedDict): - """Starred Repository - - Starred Repository + Key """ - starred_at: datetime - repo: RepositoryType + key: str + id: int + url: str + title: str + created_at: datetime + verified: bool + read_only: bool -__all__ = ("StarredRepositoryType",) +__all__ = ("KeyType",) 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 408258a5a..7c1568b2d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0400.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0400.py @@ -9,27 +9,42 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union +from datetime import datetime +from typing_extensions import TypedDict, NotRequired +from .group_0077 import MarketplaceListingPlanType -class HovercardType(TypedDict): - """Hovercard - Hovercard +class UserMarketplacePurchaseType(TypedDict): + """User Marketplace Purchase + + User Marketplace Purchase """ - contexts: List[HovercardPropContextsItemsType] + 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 HovercardPropContextsItemsType(TypedDict): - """HovercardPropContextsItems""" +class MarketplaceAccountType(TypedDict): + """Marketplace Account""" - message: str - octicon: str + url: str + id: int + type: str + node_id: NotRequired[str] + login: str + email: NotRequired[Union[str, None]] + organization_billing_email: NotRequired[Union[str, None]] __all__ = ( - "HovercardType", - "HovercardPropContextsItemsType", + "UserMarketplacePurchaseType", + "MarketplaceAccountType", ) 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 04b787e6a..f892fc0d3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0401.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0401.py @@ -12,14 +12,14 @@ from typing_extensions import TypedDict -class KeySimpleType(TypedDict): - """Key Simple +class SocialAccountType(TypedDict): + """Social account - Key Simple + Social media account """ - id: int - key: str + provider: str + url: str -__all__ = ("KeySimpleType",) +__all__ = ("SocialAccountType",) 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 27605ec83..a3c3f348b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0402.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0402.py @@ -9,32 +9,20 @@ from __future__ import annotations -from typing import Union from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class EnterpriseWebhooksType(TypedDict): - """Enterprise +class SshSigningKeyType(TypedDict): + """SSH Signing Key - An enterprise on GitHub. Webhook payloads contain the `enterprise` property when - the webhook is configured - on an enterprise account or an organization that's part of an enterprise - account. For more information, - see "[About enterprise accounts](https://docs.github.com/enterprise- - cloud@latest//admin/overview/about-enterprise-accounts)." + A public SSH key used to sign Git commits """ - description: NotRequired[Union[str, None]] - html_url: str - website_url: NotRequired[Union[str, None]] + key: str id: int - node_id: str - name: str - slug: str - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - avatar_url: str + title: str + created_at: datetime -__all__ = ("EnterpriseWebhooksType",) +__all__ = ("SshSigningKeyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0403.py b/githubkit/versions/ghec_v2022_11_28/types/group_0403.py index 6a6fdd608..a90acd5c0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0403.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0403.py @@ -9,22 +9,20 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict +from .group_0017 import RepositoryType -class SimpleInstallationType(TypedDict): - """Simple Installation - The GitHub App installation. Webhook payloads contain the `installation` - property when the event is configured - for and sent to a GitHub App. For more information, - see "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise- - cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks- - with-github-apps)." +class StarredRepositoryType(TypedDict): + """Starred Repository + + Starred Repository """ - id: int - node_id: str + starred_at: datetime + repo: RepositoryType -__all__ = ("SimpleInstallationType",) +__all__ = ("StarredRepositoryType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0404.py b/githubkit/versions/ghec_v2022_11_28/types/group_0404.py index b52264ecb..408258a5a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0404.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0404.py @@ -9,31 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import List from typing_extensions import TypedDict -class OrganizationSimpleWebhooksType(TypedDict): - """Organization Simple +class HovercardType(TypedDict): + """Hovercard - A GitHub organization. Webhook payloads contain the `organization` property when - the webhook is configured for an - organization, or when the event occurs from activity in a repository owned by an - organization. + Hovercard """ - login: str - id: int - node_id: str - url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] - - -__all__ = ("OrganizationSimpleWebhooksType",) + contexts: List[HovercardPropContextsItemsType] + + +class HovercardPropContextsItemsType(TypedDict): + """HovercardPropContextsItems""" + + message: str + octicon: str + + +__all__ = ( + "HovercardType", + "HovercardPropContextsItemsType", +) 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 776d76655..04b787e6a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0405.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0405.py @@ -9,281 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType -from .group_0016 import LicenseSimpleType +class KeySimpleType(TypedDict): + """Key Simple -class RepositoryWebhooksType(TypedDict): - """Repository - - The repository on GitHub where the event occurred. Webhook payloads contain the - `repository` property - when the event occurs from activity in a repository. + Key Simple """ id: int - node_id: str - name: str - full_name: str - license_: Union[None, LicenseSimpleType] - organization: NotRequired[Union[None, SimpleUserType]] - forks: int - permissions: NotRequired[RepositoryWebhooksPropPermissionsType] - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: str - mirror_url: Union[str, None] - hooks_url: str - svn_url: str - homepage: Union[str, None] - language: Union[str, None] - forks_count: int - stargazers_count: int - watchers_count: int - size: int - default_branch: str - open_issues_count: int - is_template: NotRequired[bool] - topics: NotRequired[List[str]] - custom_properties: NotRequired[RepositoryWebhooksPropCustomPropertiesType] - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_downloads: bool - has_discussions: NotRequired[bool] - archived: bool - disabled: bool - visibility: NotRequired[str] - pushed_at: Union[datetime, None] - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - allow_rebase_merge: NotRequired[bool] - template_repository: NotRequired[ - Union[RepositoryWebhooksPropTemplateRepositoryType, None] - ] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - allow_merge_commit: NotRequired[bool] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - open_issues: int - watchers: int - master_branch: NotRequired[str] - starred_at: NotRequired[str] - anonymous_access_enabled: NotRequired[bool] - - -class RepositoryWebhooksPropPermissionsType(TypedDict): - """RepositoryWebhooksPropPermissions""" - - admin: bool - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] - - -class RepositoryWebhooksPropCustomPropertiesType(TypedDict): - """RepositoryWebhooksPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class RepositoryWebhooksPropTemplateRepositoryType(TypedDict): - """RepositoryWebhooksPropTemplateRepository""" - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - full_name: NotRequired[str] - owner: NotRequired[RepositoryWebhooksPropTemplateRepositoryPropOwnerType] - private: NotRequired[bool] - html_url: NotRequired[str] - description: NotRequired[str] - fork: NotRequired[bool] - url: NotRequired[str] - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - forks_url: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - git_url: NotRequired[str] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - notifications_url: NotRequired[str] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - ssh_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - clone_url: NotRequired[str] - mirror_url: NotRequired[str] - hooks_url: NotRequired[str] - svn_url: NotRequired[str] - homepage: NotRequired[str] - language: NotRequired[str] - forks_count: NotRequired[int] - stargazers_count: NotRequired[int] - watchers_count: NotRequired[int] - size: NotRequired[int] - default_branch: NotRequired[str] - open_issues_count: NotRequired[int] - is_template: NotRequired[bool] - topics: NotRequired[List[str]] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_pages: NotRequired[bool] - has_downloads: NotRequired[bool] - archived: NotRequired[bool] - disabled: NotRequired[bool] - visibility: NotRequired[str] - pushed_at: NotRequired[str] - created_at: NotRequired[str] - updated_at: NotRequired[str] - permissions: NotRequired[ - RepositoryWebhooksPropTemplateRepositoryPropPermissionsType - ] - allow_rebase_merge: NotRequired[bool] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - allow_merge_commit: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - - -class RepositoryWebhooksPropTemplateRepositoryPropOwnerType(TypedDict): - """RepositoryWebhooksPropTemplateRepositoryPropOwner""" - - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - avatar_url: NotRequired[str] - gravatar_id: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - received_events_url: NotRequired[str] - type: NotRequired[str] - site_admin: NotRequired[bool] - - -class RepositoryWebhooksPropTemplateRepositoryPropPermissionsType(TypedDict): - """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" - - admin: NotRequired[bool] - maintain: NotRequired[bool] - push: NotRequired[bool] - triage: NotRequired[bool] - pull: NotRequired[bool] + key: str -__all__ = ( - "RepositoryWebhooksType", - "RepositoryWebhooksPropPermissionsType", - "RepositoryWebhooksPropCustomPropertiesType", - "RepositoryWebhooksPropTemplateRepositoryType", - "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", - "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", -) +__all__ = ("KeySimpleType",) 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 5484de1f2..27605ec83 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0406.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0406.py @@ -10,37 +10,31 @@ from __future__ import annotations from typing import Union +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class SimpleUserWebhooksType(TypedDict): - """Simple User +class EnterpriseWebhooksType(TypedDict): + """Enterprise - The GitHub user that triggered the event. This property is included in every - webhook payload. + 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)." """ - name: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - login: str + 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 - 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] - - -__all__ = ("SimpleUserWebhooksType",) + + +__all__ = ("EnterpriseWebhooksType",) 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 f863c7b5e..6a6fdd608 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0407.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0407.py @@ -9,50 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class WebhooksRuleType(TypedDict): - """branch protection rule +class SimpleInstallationType(TypedDict): + """Simple Installation - 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. + 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)." """ - 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" - ] - 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 + + +__all__ = ("SimpleInstallationType",) 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 2155ae78d..b52264ecb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0408.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0408.py @@ -9,22 +9,31 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -class ExemptionResponseType(TypedDict): - """Exemption response +class OrganizationSimpleWebhooksType(TypedDict): + """Organization Simple - A response to an exemption request by a delegated bypasser. + 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. """ - id: NotRequired[int] - reviewer_id: NotRequired[int] - reviewer_login: NotRequired[str] - status: NotRequired[Literal["approved", "rejected", "dismissed"]] - created_at: NotRequired[datetime] - - -__all__ = ("ExemptionResponseType",) + login: str + id: int + node_id: str + url: str + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] + + +__all__ = ("OrganizationSimpleWebhooksType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0409.py b/githubkit/versions/ghec_v2022_11_28/types/group_0409.py index 661d59442..776d76655 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0409.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0409.py @@ -13,85 +13,277 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0408 import ExemptionResponseType +from .group_0001 import SimpleUserType +from .group_0016 import LicenseSimpleType -class ExemptionRequestType(TypedDict): - """Exemption Request +class RepositoryWebhooksType(TypedDict): + """Repository - A request from a user to be exempted from a set of rules. + The repository on GitHub where the event occurred. Webhook payloads contain the + `repository` property + when the event occurs from activity in a repository. """ - id: NotRequired[int] - number: NotRequired[int] - repository_id: NotRequired[int] - requester_id: NotRequired[int] - requester_login: NotRequired[str] - request_type: NotRequired[Literal["push_ruleset_bypass", "secret_scanning"]] - exemption_request_data: NotRequired[ - Union[ExemptionRequestPushRulesetBypassType, ExemptionRequestSecretScanningType] + 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] ] - resource_identifier: NotRequired[str] - status: NotRequired[Literal["pending", "rejected", "cancelled", "completed"]] - requester_comment: NotRequired[Union[str, None]] - metadata: NotRequired[Union[ExemptionRequestSecretScanningMetadataType, None]] - expires_at: NotRequired[datetime] - created_at: NotRequired[datetime] - responses: NotRequired[Union[List[ExemptionResponseType], None]] - html_url: NotRequired[str] + 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 ExemptionRequestSecretScanningMetadataType(TypedDict): - """Secret Scanning Push Protection Exemption Request Metadata +class RepositoryWebhooksPropPermissionsType(TypedDict): + """RepositoryWebhooksPropPermissions""" - Metadata for a secret scanning push protection exemption request. - """ + admin: bool + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] - label: NotRequired[str] - reason: NotRequired[Literal["fixed_later", "false_positive", "tests"]] +class RepositoryWebhooksPropCustomPropertiesType(TypedDict): + """RepositoryWebhooksPropCustomProperties -class ExemptionRequestPushRulesetBypassType(TypedDict): - """Push ruleset bypass exemption request data - - Push rules that are being requested to be bypassed. + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. """ - 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 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 ExemptionRequestSecretScanningType(TypedDict): - """Secret scanning push protection exemption request data - Secret scanning push protections that are being requested to be bypassed. - """ +class RepositoryWebhooksPropTemplateRepositoryPropOwnerType(TypedDict): + """RepositoryWebhooksPropTemplateRepositoryPropOwner""" - type: NotRequired[Literal["secret_scanning"]] - data: NotRequired[List[ExemptionRequestSecretScanningPropDataItemsType]] + 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 ExemptionRequestSecretScanningPropDataItemsType(TypedDict): - """ExemptionRequestSecretScanningPropDataItems""" +class RepositoryWebhooksPropTemplateRepositoryPropPermissionsType(TypedDict): + """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" - secret_type: NotRequired[str] - commits: NotRequired[List[str]] + admin: NotRequired[bool] + maintain: NotRequired[bool] + push: NotRequired[bool] + triage: NotRequired[bool] + pull: NotRequired[bool] __all__ = ( - "ExemptionRequestType", - "ExemptionRequestSecretScanningMetadataType", - "ExemptionRequestPushRulesetBypassType", - "ExemptionRequestPushRulesetBypassPropDataItemsType", - "ExemptionRequestSecretScanningType", - "ExemptionRequestSecretScanningPropDataItemsType", + "RepositoryWebhooksType", + "RepositoryWebhooksPropPermissionsType", + "RepositoryWebhooksPropCustomPropertiesType", + "RepositoryWebhooksPropTemplateRepositoryType", + "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", + "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", ) 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 e8fcc9d20..5484de1f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0410.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0410.py @@ -9,52 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0006 import IntegrationType -from .group_0079 import MinimalRepositoryType -from .group_0185 import PullRequestMinimalType +class SimpleUserWebhooksType(TypedDict): + """Simple User -class SimpleCheckSuiteType(TypedDict): - """SimpleCheckSuite - - A suite of checks performed on the code of a given code change + The GitHub user that triggered the event. This property is included in every + webhook payload. """ - 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",) + 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] + + +__all__ = ("SimpleUserWebhooksType",) 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 d9d37186d..d0178f404 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0411.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0411.py @@ -10,66 +10,51 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0006 import IntegrationType -from .group_0212 import DeploymentSimpleType -from .group_0410 import SimpleCheckSuiteType -from .group_0185 import PullRequestMinimalType +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/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. """ - app: Union[None, IntegrationType, None] - check_suite: SimpleCheckSuiteType - completed_at: Union[datetime, None] - conclusion: Union[ - None, - Literal[ - "waiting", - "pending", - "startup_failure", - "stale", - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] - deployment: NotRequired[DeploymentSimpleType] - details_url: str - external_id: str - head_sha: str - html_url: str + 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__ = ( - "CheckRunWithSimpleCheckSuiteType", - "CheckRunWithSimpleCheckSuitePropOutputType", -) + 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_0412.py b/githubkit/versions/ghec_v2022_11_28/types/group_0412.py index b82c7fbfb..2155ae78d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0412.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0412.py @@ -9,26 +9,22 @@ from __future__ import annotations -from typing import Union +from typing import Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class WebhooksDeployKeyType(TypedDict): - """WebhooksDeployKey +class ExemptionResponseType(TypedDict): + """Exemption response - The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy- - keys/deploy-keys#get-a-deploy-key) resource. + A response to an exemption request by a delegated bypasser. """ - 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 + id: NotRequired[int] + reviewer_id: NotRequired[int] + reviewer_login: NotRequired[str] + status: NotRequired[Literal["approved", "rejected", "dismissed"]] + created_at: NotRequired[datetime] -__all__ = ("WebhooksDeployKeyType",) +__all__ = ("ExemptionResponseType",) 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 34eb3310b..c076d4266 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0413.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0413.py @@ -10,22 +10,88 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0412 import ExemptionResponseType -class WebhooksWorkflowType(TypedDict): - """Workflow""" - badge_url: str - created_at: datetime - html_url: str - id: int - name: str - node_id: str - path: str - state: str - updated_at: datetime - url: str +class ExemptionRequestType(TypedDict): + """Exemption Request + A request from a user to be exempted from a set of rules. + """ -__all__ = ("WebhooksWorkflowType",) + id: NotRequired[int] + number: NotRequired[int] + repository_id: NotRequired[int] + requester_id: NotRequired[int] + requester_login: NotRequired[str] + request_type: NotRequired[Literal["push_ruleset_bypass", "secret_scanning"]] + exemption_request_data: NotRequired[ + Union[ExemptionRequestPushRulesetBypassType, ExemptionRequestSecretScanningType] + ] + resource_identifier: NotRequired[str] + status: NotRequired[Literal["pending", "rejected", "cancelled", "completed"]] + requester_comment: NotRequired[Union[str, None]] + metadata: NotRequired[Union[ExemptionRequestSecretScanningMetadataType, None]] + expires_at: NotRequired[datetime] + created_at: NotRequired[datetime] + responses: NotRequired[Union[List[ExemptionResponseType], None]] + html_url: NotRequired[str] + + +class ExemptionRequestSecretScanningMetadataType(TypedDict): + """Secret Scanning Push Protection Exemption Request Metadata + + Metadata for a secret scanning push protection exemption request. + """ + + label: NotRequired[str] + reason: NotRequired[Literal["fixed_later", "false_positive", "tests"]] + + +class ExemptionRequestPushRulesetBypassType(TypedDict): + """Push ruleset bypass exemption request data + + Push rules that are being requested to be bypassed. + """ + + type: NotRequired[Literal["push_ruleset_bypass"]] + data: NotRequired[List[ExemptionRequestPushRulesetBypassPropDataItemsType]] + + +class ExemptionRequestPushRulesetBypassPropDataItemsType(TypedDict): + """ExemptionRequestPushRulesetBypassPropDataItems""" + + ruleset_id: NotRequired[int] + ruleset_name: NotRequired[str] + total_violations: NotRequired[int] + rule_type: NotRequired[str] + + +class ExemptionRequestSecretScanningType(TypedDict): + """Secret scanning push protection exemption request data + + Secret scanning push protections that are being requested to be bypassed. + """ + + type: NotRequired[Literal["secret_scanning"]] + data: NotRequired[List[ExemptionRequestSecretScanningPropDataItemsType]] + + +class ExemptionRequestSecretScanningPropDataItemsType(TypedDict): + """ExemptionRequestSecretScanningPropDataItems""" + + secret_type: NotRequired[str] + commits: NotRequired[List[str]] + + +__all__ = ( + "ExemptionRequestType", + "ExemptionRequestSecretScanningMetadataType", + "ExemptionRequestPushRulesetBypassType", + "ExemptionRequestPushRulesetBypassPropDataItemsType", + "ExemptionRequestSecretScanningType", + "ExemptionRequestSecretScanningPropDataItemsType", +) 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 1184251ad..0a04cef78 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0414.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0414.py @@ -9,68 +9,52 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired - -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] +from .group_0006 import IntegrationType +from .group_0082 import MinimalRepositoryType +from .group_0189 import PullRequestMinimalType + + +class SimpleCheckSuiteType(TypedDict): + """SimpleCheckSuite + + A suite of checks performed on the code of a given code change + """ + + after: NotRequired[Union[str, None]] + app: NotRequired[Union[IntegrationType, None]] + before: NotRequired[Union[str, None]] + conclusion: NotRequired[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + ] + created_at: NotRequired[datetime] + head_branch: NotRequired[Union[str, None]] + head_sha: NotRequired[str] id: NotRequired[int] - 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 WebhooksReviewersItemsType(TypedDict): - """WebhooksReviewersItems""" - - reviewer: NotRequired[Union[WebhooksReviewersItemsPropReviewerType, None]] - type: NotRequired[Literal["User"]] - - -class WebhooksReviewersItemsPropReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + pull_requests: NotRequired[List[PullRequestMinimalType]] + repository: NotRequired[MinimalRepositoryType] + status: NotRequired[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] + updated_at: NotRequired[datetime] url: NotRequired[str] -__all__ = ( - "WebhooksApproverType", - "WebhooksReviewersItemsType", - "WebhooksReviewersItemsPropReviewerType", -) +__all__ = ("SimpleCheckSuiteType",) 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 167cc5522..103669bc6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0415.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0415.py @@ -9,20 +9,67 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0006 import IntegrationType +from .group_0216 import DeploymentSimpleType +from .group_0414 import SimpleCheckSuiteType +from .group_0189 import PullRequestMinimalType -class WebhooksWorkflowJobRunType(TypedDict): - """WebhooksWorkflowJobRun""" - conclusion: None - created_at: str - environment: str +class CheckRunWithSimpleCheckSuiteType(TypedDict): + """CheckRun + + A check performed on the code of a given code change + """ + + app: Union[None, IntegrationType, None] + check_suite: SimpleCheckSuiteType + completed_at: Union[datetime, None] + conclusion: Union[ + None, + Literal[ + "waiting", + "pending", + "startup_failure", + "stale", + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] + deployment: NotRequired[DeploymentSimpleType] + details_url: str + external_id: str + head_sha: str html_url: str id: int - name: None - status: str - updated_at: str + 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__ = ("WebhooksWorkflowJobRunType",) +__all__ = ( + "CheckRunWithSimpleCheckSuiteType", + "CheckRunWithSimpleCheckSuitePropOutputType", +) 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 f7c002ed3..b82c7fbfb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0416.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0416.py @@ -9,34 +9,26 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -class WebhooksUserType(TypedDict): - """User""" +class WebhooksDeployKeyType(TypedDict): + """WebhooksDeployKey - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + 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 - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_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__ = ("WebhooksUserType",) + key: str + last_used: NotRequired[Union[str, None]] + read_only: bool + title: str + url: str + verified: bool + + +__all__ = ("WebhooksDeployKeyType",) 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 e69705f5c..34eb3310b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0417.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0417.py @@ -10,80 +10,22 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class WebhooksAnswerType(TypedDict): - """WebhooksAnswer""" +class WebhooksWorkflowType(TypedDict): + """Workflow""" - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - child_comment_count: int + badge_url: str created_at: datetime - discussion_id: int html_url: str id: int + name: str node_id: str - parent_id: None - reactions: NotRequired[WebhooksAnswerPropReactionsType] - repository_url: str + path: str + state: str updated_at: datetime - user: Union[WebhooksAnswerPropUserType, None] - - -class WebhooksAnswerPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int url: str -class WebhooksAnswerPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_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__ = ( - "WebhooksAnswerType", - "WebhooksAnswerPropReactionsType", - "WebhooksAnswerPropUserType", -) +__all__ = ("WebhooksWorkflowType",) 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 c6ec63734..1184251ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0418.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0418.py @@ -9,65 +9,22 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -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] - - -class DiscussionPropAnswerChosenByType(TypedDict): - """User""" +class WebhooksApproverType(TypedDict): + """WebhooksApprover""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[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] @@ -75,41 +32,18 @@ class DiscussionPropAnswerChosenByType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[str] url: NotRequired[str] -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""" +class WebhooksReviewersItemsType(TypedDict): + """WebhooksReviewersItems""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + reviewer: NotRequired[Union[WebhooksReviewersItemsPropReviewerType, None]] + type: NotRequired[Literal["User"]] -class DiscussionPropUserType(TypedDict): +class WebhooksReviewersItemsPropReviewerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -136,9 +70,7 @@ class DiscussionPropUserType(TypedDict): __all__ = ( - "DiscussionType", - "DiscussionPropAnswerChosenByType", - "DiscussionPropCategoryType", - "DiscussionPropReactionsType", - "DiscussionPropUserType", + "WebhooksApproverType", + "WebhooksReviewersItemsType", + "WebhooksReviewersItemsPropReviewerType", ) 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 41a3b647f..167cc5522 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0419.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0419.py @@ -9,80 +9,20 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class WebhooksCommentType(TypedDict): - """WebhooksComment""" +class WebhooksWorkflowJobRunType(TypedDict): + """WebhooksWorkflowJobRun""" - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - child_comment_count: int + conclusion: None created_at: str - discussion_id: int + environment: str html_url: str id: int - node_id: str - parent_id: Union[int, None] - reactions: WebhooksCommentPropReactionsType - repository_url: str + name: None + status: str updated_at: str - user: Union[WebhooksCommentPropUserType, None] -class WebhooksCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_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__ = ( - "WebhooksCommentType", - "WebhooksCommentPropReactionsType", - "WebhooksCommentPropUserType", -) +__all__ = ("WebhooksWorkflowJobRunType",) 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 469b744f3..f7c002ed3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0420.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0420.py @@ -9,20 +9,34 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict - - -class WebhooksLabelType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired + + +class WebhooksUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - name: str - node_id: str - url: str - - -__all__ = ("WebhooksLabelType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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__ = ("WebhooksUserType",) 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 60f7cc9c6..e69705f5c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0421.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0421.py @@ -9,17 +9,81 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -class WebhooksRepositoriesItemsType(TypedDict): - """WebhooksRepositoriesItems""" +class WebhooksAnswerType(TypedDict): + """WebhooksAnswer""" - full_name: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + child_comment_count: int + created_at: datetime + discussion_id: int + html_url: str id: int - name: str node_id: str - private: bool + parent_id: None + reactions: NotRequired[WebhooksAnswerPropReactionsType] + repository_url: str + updated_at: datetime + user: Union[WebhooksAnswerPropUserType, None] -__all__ = ("WebhooksRepositoriesItemsType",) +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] + + +__all__ = ( + "WebhooksAnswerType", + "WebhooksAnswerPropReactionsType", + "WebhooksAnswerPropUserType", +) 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 afa5d37c4..c6ec63734 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0422.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0422.py @@ -9,17 +9,136 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -class WebhooksRepositoriesAddedItemsType(TypedDict): - """WebhooksRepositoriesAddedItems""" +class DiscussionType(TypedDict): + """Discussion - full_name: str + 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 - name: str + locked: bool node_id: str - private: bool + 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] + + +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] + + +class DiscussionPropCategoryType(TypedDict): + """DiscussionPropCategory""" + + created_at: datetime + description: str + emoji: str + id: int + is_answerable: bool + name: str + node_id: NotRequired[str] + repository_id: int + slug: str + updated_at: str + + +class DiscussionPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class DiscussionPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -__all__ = ("WebhooksRepositoriesAddedItemsType",) +__all__ = ( + "DiscussionType", + "DiscussionPropAnswerChosenByType", + "DiscussionPropCategoryType", + "DiscussionPropReactionsType", + "DiscussionPropUserType", +) 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 cbf668c54..41a3b647f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0423.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0423.py @@ -9,19 +9,12 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0006 import IntegrationType - -class WebhooksIssueCommentType(TypedDict): - """issue comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/issues/comments#get-an-issue-comment) itself. - """ +class WebhooksCommentType(TypedDict): + """WebhooksComment""" author_association: Literal[ "COLLABORATOR", @@ -34,19 +27,20 @@ class WebhooksIssueCommentType(TypedDict): "OWNER", ] body: str - created_at: datetime + child_comment_count: int + created_at: str + discussion_id: int html_url: str id: int - issue_url: str node_id: str - performed_via_github_app: Union[IntegrationType, None] - reactions: WebhooksIssueCommentPropReactionsType - updated_at: datetime - url: str - user: Union[WebhooksIssueCommentPropUserType, None] + parent_id: Union[int, None] + reactions: WebhooksCommentPropReactionsType + repository_url: str + updated_at: str + user: Union[WebhooksCommentPropUserType, None] -class WebhooksIssueCommentPropReactionsType(TypedDict): +class WebhooksCommentPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -61,7 +55,7 @@ class WebhooksIssueCommentPropReactionsType(TypedDict): url: str -class WebhooksIssueCommentPropUserType(TypedDict): +class WebhooksCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -83,12 +77,12 @@ class WebhooksIssueCommentPropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] __all__ = ( - "WebhooksIssueCommentType", - "WebhooksIssueCommentPropReactionsType", - "WebhooksIssueCommentPropUserType", + "WebhooksCommentType", + "WebhooksCommentPropReactionsType", + "WebhooksCommentPropUserType", ) 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 1ffc85f09..469b744f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0424.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0424.py @@ -9,25 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -class WebhooksChangesType(TypedDict): - """WebhooksChanges +class WebhooksLabelType(TypedDict): + """Label""" - The changes to the comment. - """ + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str - body: NotRequired[WebhooksChangesPropBodyType] - -class WebhooksChangesPropBodyType(TypedDict): - """WebhooksChangesPropBody""" - - from_: str - - -__all__ = ( - "WebhooksChangesType", - "WebhooksChangesPropBodyType", -) +__all__ = ("WebhooksLabelType",) 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 176686e8f..60f7cc9c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0425.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0425.py @@ -9,383 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class WebhooksIssueType(TypedDict): - """Issue +class WebhooksRepositoriesItemsType(TypedDict): + """WebhooksRepositoriesItems""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhooksIssuePropAssigneeType, None]] - assignees: List[Union[WebhooksIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhooksIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhooksIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhooksIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhooksIssuePropPullRequestType] - reactions: WebhooksIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhooksIssuePropUserType, None] - - -class WebhooksIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -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] - - -class WebhooksIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhooksIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + full_name: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] - 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] - - -class WebhooksIssuePropPerformedViaGithubAppPropPermissionsType(TypedDict): - """WebhooksIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhooksIssuePropPullRequestType(TypedDict): - """WebhooksIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhooksIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + private: bool -__all__ = ( - "WebhooksIssueType", - "WebhooksIssuePropAssigneeType", - "WebhooksIssuePropAssigneesItemsType", - "WebhooksIssuePropLabelsItemsType", - "WebhooksIssuePropMilestoneType", - "WebhooksIssuePropMilestonePropCreatorType", - "WebhooksIssuePropPerformedViaGithubAppType", - "WebhooksIssuePropPerformedViaGithubAppPropOwnerType", - "WebhooksIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhooksIssuePropPullRequestType", - "WebhooksIssuePropReactionsType", - "WebhooksIssuePropUserType", -) +__all__ = ("WebhooksRepositoriesItemsType",) 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 85c32b47c..afa5d37c4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0426.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0426.py @@ -9,62 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class WebhooksMilestoneType(TypedDict): - """Milestone +class WebhooksRepositoriesAddedItemsType(TypedDict): + """WebhooksRepositoriesAddedItems""" - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + full_name: str id: int - labels_url: str + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + private: bool -__all__ = ( - "WebhooksMilestoneType", - "WebhooksMilestonePropCreatorType", -) +__all__ = ("WebhooksRepositoriesAddedItemsType",) 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 3e98c7a26..cbf668c54 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0427.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0427.py @@ -10,22 +10,19 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0006 import IntegrationType -class WebhooksIssue2Type(TypedDict): - """Issue - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. +class WebhooksIssueCommentType(TypedDict): + """issue comment + + 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[WebhooksIssue2PropAssigneeType, None]] - assignees: List[Union[WebhooksIssue2PropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -36,303 +33,20 @@ class WebhooksIssue2Type(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[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 - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhooksIssue2PropUserType, None] - - -class WebhooksIssue2PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -class WebhooksIssue2PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhooksIssue2PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int + body: str created_at: datetime - creator: Union[WebhooksIssue2PropMilestonePropCreatorType, 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 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] - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, None] - permissions: NotRequired[WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhooksIssue2PropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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): +class WebhooksIssueCommentPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -347,7 +61,7 @@ class WebhooksIssue2PropReactionsType(TypedDict): url: str -class WebhooksIssue2PropUserType(TypedDict): +class WebhooksIssueCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -369,21 +83,12 @@ 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] __all__ = ( - "WebhooksIssue2Type", - "WebhooksIssue2PropAssigneeType", - "WebhooksIssue2PropAssigneesItemsType", - "WebhooksIssue2PropLabelsItemsType", - "WebhooksIssue2PropMilestoneType", - "WebhooksIssue2PropMilestonePropCreatorType", - "WebhooksIssue2PropPerformedViaGithubAppType", - "WebhooksIssue2PropPerformedViaGithubAppPropOwnerType", - "WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType", - "WebhooksIssue2PropPullRequestType", - "WebhooksIssue2PropReactionsType", - "WebhooksIssue2PropUserType", + "WebhooksIssueCommentType", + "WebhooksIssueCommentPropReactionsType", + "WebhooksIssueCommentPropUserType", ) 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 8c0ea1655..1ffc85f09 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0428.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0428.py @@ -9,34 +9,25 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -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 - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ("WebhooksUserMannequinType",) +class WebhooksChangesType(TypedDict): + """WebhooksChanges + + The changes to the comment. + """ + + body: NotRequired[WebhooksChangesPropBodyType] + + +class WebhooksChangesPropBodyType(TypedDict): + """WebhooksChangesPropBody""" + + from_: str + + +__all__ = ( + "WebhooksChangesType", + "WebhooksChangesPropBodyType", +) 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 150999de5..176686e8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0429.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0429.py @@ -9,48 +9,383 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class WebhooksMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" +class WebhooksIssueType(TypedDict): + """Issue - account: WebhooksMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: Union[str, None] - on_free_trial: bool - plan: WebhooksMarketplacePurchasePropPlanType - unit_count: int + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhooksIssuePropAssigneeType, None]] + assignees: List[Union[WebhooksIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhooksIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhooksIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhooksIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhooksIssuePropPullRequestType] + reactions: WebhooksIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhooksIssuePropUserType, None] + + +class WebhooksIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] -class WebhooksMarketplacePurchasePropAccountType(TypedDict): - """WebhooksMarketplacePurchasePropAccount""" +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] + + +class WebhooksIssuePropLabelsItemsType(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 WebhooksIssuePropMilestoneType(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[WebhooksIssuePropMilestonePropCreatorType, 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 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] + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + node_id: str + owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwnerType, None] + permissions: NotRequired[WebhooksIssuePropPerformedViaGithubAppPropPermissionsType] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhooksIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhooksIssuePropPerformedViaGithubAppPropPermissionsType(TypedDict): + """WebhooksIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhooksIssuePropPullRequestType(TypedDict): + """WebhooksIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhooksIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] __all__ = ( - "WebhooksMarketplacePurchaseType", - "WebhooksMarketplacePurchasePropAccountType", - "WebhooksMarketplacePurchasePropPlanType", + "WebhooksIssueType", + "WebhooksIssuePropAssigneeType", + "WebhooksIssuePropAssigneesItemsType", + "WebhooksIssuePropLabelsItemsType", + "WebhooksIssuePropMilestoneType", + "WebhooksIssuePropMilestonePropCreatorType", + "WebhooksIssuePropPerformedViaGithubAppType", + "WebhooksIssuePropPerformedViaGithubAppPropOwnerType", + "WebhooksIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhooksIssuePropPullRequestType", + "WebhooksIssuePropReactionsType", + "WebhooksIssuePropUserType", ) 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 a94b9548c..85c32b47c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0430.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0430.py @@ -9,48 +9,62 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksPreviousMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" +class WebhooksMilestoneType(TypedDict): + """Milestone - 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""" + 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 - login: str + labels_url: str node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhooksPreviousMarketplacePurchasePropPlanType(TypedDict): - """WebhooksPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] - description: str - has_free_trial: bool + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhooksMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] __all__ = ( - "WebhooksPreviousMarketplacePurchaseType", - "WebhooksPreviousMarketplacePurchasePropAccountType", - "WebhooksPreviousMarketplacePurchasePropPlanType", + "WebhooksMilestoneType", + "WebhooksMilestonePropCreatorType", ) 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 750ed6b83..3e98c7a26 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0431.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0431.py @@ -9,52 +9,381 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksTeamType(TypedDict): - """Team +class WebhooksIssue2Type(TypedDict): + """Issue - Groups of organization members that gives permissions on specified repositories. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhooksIssue2PropAssigneeType, None]] + assignees: List[Union[WebhooksIssue2PropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhooksIssue2PropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhooksIssue2PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhooksIssue2PropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhooksIssue2PropPullRequestType] + reactions: WebhooksIssue2PropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhooksIssue2PropUserType, None] + + +class WebhooksIssue2PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] id: int - members_url: NotRequired[str] - name: str + login: str + name: NotRequired[str] node_id: NotRequired[str] - parent: NotRequired[Union[WebhooksTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: 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] -class WebhooksTeamPropParentType(TypedDict): - """WebhooksTeamPropParent""" +class WebhooksIssue2PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhooksIssue2PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksIssue2PropMilestonePropCreatorType, None] description: Union[str, None] + due_on: Union[datetime, None] html_url: str id: int - members_url: str + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class 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] + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] name: str node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str + owner: Union[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] + + +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] + + __all__ = ( - "WebhooksTeamType", - "WebhooksTeamPropParentType", + "WebhooksIssue2Type", + "WebhooksIssue2PropAssigneeType", + "WebhooksIssue2PropAssigneesItemsType", + "WebhooksIssue2PropLabelsItemsType", + "WebhooksIssue2PropMilestoneType", + "WebhooksIssue2PropMilestonePropCreatorType", + "WebhooksIssue2PropPerformedViaGithubAppType", + "WebhooksIssue2PropPerformedViaGithubAppPropOwnerType", + "WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType", + "WebhooksIssue2PropPullRequestType", + "WebhooksIssue2PropReactionsType", + "WebhooksIssue2PropUserType", ) 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 87c231eb7..8c0ea1655 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0432.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0432.py @@ -9,22 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict - -from .group_0186 import SimpleCommitType - - -class MergeGroupType(TypedDict): - """Merge Group - - 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 - - -__all__ = ("MergeGroupType",) +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired + + +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 + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ("WebhooksUserMannequinType",) 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 a3ab8bcff..150999de5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0433.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0433.py @@ -9,62 +9,48 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List, Union, Literal +from typing_extensions import TypedDict -class WebhooksMilestone3Type(TypedDict): - """Milestone +class WebhooksMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" - A collection of related issues and pull requests. - """ + 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""" - 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 + login: 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] - html_url: NotRequired[str] + organization_billing_email: Union[str, None] + type: str + + +class WebhooksMarketplacePurchasePropPlanType(TypedDict): + """WebhooksMarketplacePurchasePropPlan""" + + bullets: List[Union[str, None]] + description: str + has_free_trial: bool id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + 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__ = ( - "WebhooksMilestone3Type", - "WebhooksMilestone3PropCreatorType", + "WebhooksMarketplacePurchaseType", + "WebhooksMarketplacePurchasePropAccountType", + "WebhooksMarketplacePurchasePropPlanType", ) 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 7e66b4dbc..a94b9548c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0434.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0434.py @@ -9,51 +9,48 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksMembershipType(TypedDict): - """Membership +class WebhooksPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" - The membership between the user and the organization. Not present when the - action is `member_invited`. - """ + 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 - organization_url: str - role: str - state: str - url: str - user: Union[WebhooksMembershipPropUserType, None] +class WebhooksPreviousMarketplacePurchasePropAccountType(TypedDict): + """WebhooksPreviousMarketplacePurchasePropAccount""" -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] + 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__ = ( - "WebhooksMembershipType", - "WebhooksMembershipPropUserType", + "WebhooksPreviousMarketplacePurchaseType", + "WebhooksPreviousMarketplacePurchasePropAccountType", + "WebhooksPreviousMarketplacePurchasePropPlanType", ) 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 9dc401c4d..750ed6b83 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0435.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0435.py @@ -9,138 +9,52 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class WebhooksTeamType(TypedDict): + """Team -class PersonalAccessTokenRequestType(TypedDict): - """Personal Access Token Request - - Details of a Personal Access Token Request. + Groups of organization members that gives permissions on specified repositories. """ + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] id: int - owner: SimpleUserType - permissions_added: PersonalAccessTokenRequestPropPermissionsAddedType - permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgradedType - permissions_result: PersonalAccessTokenRequestPropPermissionsResultType - repository_selection: Literal["none", "all", "subset"] - repository_count: Union[int, None] - repositories: Union[List[PersonalAccessTokenRequestPropRepositoriesItemsType], None] - created_at: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] + 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 PersonalAccessTokenRequestPropRepositoriesItemsType(TypedDict): - """PersonalAccessTokenRequestPropRepositoriesItems""" +class WebhooksTeamPropParentType(TypedDict): + """WebhooksTeamPropParent""" - full_name: str + description: Union[str, None] + html_url: str id: int + members_url: str name: str node_id: str - private: bool - - -class PersonalAccessTokenRequestPropPermissionsAddedType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsAdded - - New requested permissions, categorized by type of permission. - """ - - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsAddedPropOtherType] - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOtherType(TypedDict): - """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] - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType(TypedDict): - """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] - - -class PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsResultPropOtherType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsResultPropOther""" + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str __all__ = ( - "PersonalAccessTokenRequestType", - "PersonalAccessTokenRequestPropRepositoriesItemsType", - "PersonalAccessTokenRequestPropPermissionsAddedType", - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsAddedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsUpgradedType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsResultType", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", + "WebhooksTeamType", + "WebhooksTeamPropParentType", ) 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 b6f042895..aa4bc3f9b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0436.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0436.py @@ -9,56 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0190 import SimpleCommitType -class WebhooksProjectCardType(TypedDict): - """Project Card""" - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhooksProjectCardPropCreatorType, None] - id: int - node_id: str - note: Union[str, None] - project_url: str - updated_at: datetime - url: str +class MergeGroupType(TypedDict): + """Merge Group + A group of pull requests that the merge queue has grouped together to be merged. + """ -class WebhooksProjectCardPropCreatorType(TypedDict): - """User""" + head_sha: str + head_ref: str + base_sha: str + base_ref: str + head_commit: SimpleCommitType - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - -__all__ = ( - "WebhooksProjectCardType", - "WebhooksProjectCardPropCreatorType", -) +__all__ = ("MergeGroupType",) 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 5f5c34e24..a3ab8bcff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0437.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0437.py @@ -14,25 +14,31 @@ from typing_extensions import TypedDict, NotRequired -class WebhooksProjectType(TypedDict): - """Project""" +class WebhooksMilestone3Type(TypedDict): + """Milestone - body: Union[str, None] - columns_url: str + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int created_at: datetime - creator: Union[WebhooksProjectPropCreatorType, None] + creator: Union[WebhooksMilestone3PropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str id: int - name: str + labels_url: str node_id: str number: int - owner_url: str + open_issues: int state: Literal["open", "closed"] + title: str updated_at: datetime url: str -class WebhooksProjectPropCreatorType(TypedDict): +class WebhooksMilestone3PropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -59,6 +65,6 @@ class WebhooksProjectPropCreatorType(TypedDict): __all__ = ( - "WebhooksProjectType", - "WebhooksProjectPropCreatorType", + "WebhooksMilestone3Type", + "WebhooksMilestone3PropCreatorType", ) 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 080ccf386..7e66b4dbc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0438.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0438.py @@ -9,23 +9,51 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksProjectColumnType(TypedDict): - """Project Column""" +class WebhooksMembershipType(TypedDict): + """Membership - 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 + The membership between the user and the organization. Not present when the + action is `member_invited`. + """ + + organization_url: str + role: str + state: str url: str + user: Union[WebhooksMembershipPropUserType, None] -__all__ = ("WebhooksProjectColumnType",) +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] + + +__all__ = ( + "WebhooksMembershipType", + "WebhooksMembershipPropUserType", +) 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 d5d8acb4c..9dc401c4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0439.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0439.py @@ -9,33 +9,138 @@ from __future__ import annotations -from typing import Union -from datetime import datetime -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -class ProjectsV2Type(TypedDict): - """Projects v2 Project +class PersonalAccessTokenRequestType(TypedDict): + """Personal Access Token Request - A projects v2 project + Details of a Personal Access Token Request. """ - id: float - node_id: str + id: int owner: SimpleUserType - creator: SimpleUserType - title: str - description: Union[str, None] - public: bool - closed_at: Union[datetime, None] - created_at: datetime - updated_at: datetime - number: int - short_description: Union[str, None] - deleted_at: Union[datetime, None] - deleted_by: Union[None, SimpleUserType] - - -__all__ = ("ProjectsV2Type",) + 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_expired: bool + token_expires_at: Union[str, None] + token_last_used_at: Union[str, None] + + +class PersonalAccessTokenRequestPropRepositoriesItemsType(TypedDict): + """PersonalAccessTokenRequestPropRepositoriesItems""" + + full_name: str + id: int + name: str + node_id: str + private: bool + + +class PersonalAccessTokenRequestPropPermissionsAddedType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsAdded + + New requested permissions, categorized by type of permission. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType + ] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsAddedPropOtherType] + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOtherType(TypedDict): + """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] + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType(TypedDict): + """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] + + +class PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropOtherType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsResultPropOther""" + + +__all__ = ( + "PersonalAccessTokenRequestType", + "PersonalAccessTokenRequestPropRepositoriesItemsType", + "PersonalAccessTokenRequestPropPermissionsAddedType", + "PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsAddedPropOtherType", + "PersonalAccessTokenRequestPropPermissionsUpgradedType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType", + "PersonalAccessTokenRequestPropPermissionsResultType", + "PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", +) 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 e833ad942..b6f042895 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0440.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0440.py @@ -9,25 +9,56 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksProjectChangesType(TypedDict): - """WebhooksProjectChanges""" +class WebhooksProjectCardType(TypedDict): + """Project Card""" - archived_at: NotRequired[WebhooksProjectChangesPropArchivedAtType] + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhooksProjectCardPropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str -class WebhooksProjectChangesPropArchivedAtType(TypedDict): - """WebhooksProjectChangesPropArchivedAt""" +class WebhooksProjectCardPropCreatorType(TypedDict): + """User""" - from_: NotRequired[Union[datetime, None]] - to: NotRequired[Union[datetime, None]] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhooksProjectChangesType", - "WebhooksProjectChangesPropArchivedAtType", + "WebhooksProjectCardType", + "WebhooksProjectCardPropCreatorType", ) 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 1c4516db1..5f5c34e24 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0441.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0441.py @@ -13,24 +13,52 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class WebhooksProjectType(TypedDict): + """Project""" + + body: Union[str, None] + columns_url: str + created_at: datetime + creator: Union[WebhooksProjectPropCreatorType, None] + html_url: str + id: int + name: str + node_id: str + number: int + owner_url: str + state: Literal["open", "closed"] + updated_at: datetime + url: str -class ProjectsV2ItemType(TypedDict): - """Projects v2 Item - An item belonging to a project - """ +class WebhooksProjectPropCreatorType(TypedDict): + """User""" - id: float + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] - project_node_id: NotRequired[str] - content_node_id: str - content_type: Literal["Issue", "PullRequest", "DraftIssue"] - creator: NotRequired[SimpleUserType] - created_at: datetime - updated_at: datetime - archived_at: Union[datetime, None] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -__all__ = ("ProjectsV2ItemType",) +__all__ = ( + "WebhooksProjectType", + "WebhooksProjectPropCreatorType", +) 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 773276364..080ccf386 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0442.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0442.py @@ -9,89 +9,23 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0061 import MilestoneType -from .group_0240 import AutoMergeType -from .group_0001 import SimpleUserType -from .group_0092 import TeamSimpleType -from .group_0321 import PullRequestPropBaseType -from .group_0323 import PullRequestPropLinksType -from .group_0320 import PullRequestPropHeadType, PullRequestPropLabelsItemsType +class WebhooksProjectColumnType(TypedDict): + """Project Column""" -class PullRequestWebhookType(TypedDict): - """PullRequestWebhook""" - - url: str + after_id: NotRequired[Union[int, None]] + cards_url: str + created_at: datetime id: int + name: str node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str - number: int - state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: List[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime + project_url: str updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[List[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] - requested_teams: NotRequired[Union[List[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + url: str -__all__ = ("PullRequestWebhookType",) +__all__ = ("WebhooksProjectColumnType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0443.py b/githubkit/versions/ghec_v2022_11_28/types/group_0443.py index 4f0b889b8..d5d8acb4c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0443.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0443.py @@ -9,23 +9,33 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from datetime import datetime +from typing_extensions import TypedDict +from .group_0001 import SimpleUserType -class PullRequestWebhookAllof1Type(TypedDict): - """PullRequestWebhookAllof1""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] +class ProjectsV2Type(TypedDict): + """Projects v2 Project + A projects v2 project + """ -__all__ = ("PullRequestWebhookAllof1Type",) + id: float + node_id: str + owner: SimpleUserType + creator: SimpleUserType + title: str + description: Union[str, None] + public: bool + closed_at: Union[datetime, None] + created_at: datetime + updated_at: datetime + number: int + short_description: Union[str, None] + deleted_at: Union[datetime, None] + deleted_by: Union[None, SimpleUserType] + + +__all__ = ("ProjectsV2Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0444.py b/githubkit/versions/ghec_v2022_11_28/types/group_0444.py index b15b7c81b..e833ad942 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0444.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0444.py @@ -9,861 +9,25 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksPullRequest5Type(TypedDict): - """Pull Request""" +class WebhooksProjectChangesType(TypedDict): + """WebhooksProjectChanges""" - links: WebhooksPullRequest5PropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhooksPullRequest5PropAssigneeType, None] - assignees: List[Union[WebhooksPullRequest5PropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhooksPullRequest5PropAutoMergeType, None] - base: WebhooksPullRequest5PropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhooksPullRequest5PropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhooksPullRequest5PropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[Union[WebhooksPullRequest5PropMergedByType, None]] - milestone: Union[WebhooksPullRequest5PropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, - None, - WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[WebhooksPullRequest5PropRequestedTeamsItemsType] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhooksPullRequest5PropUserType, None] + archived_at: NotRequired[WebhooksProjectChangesPropArchivedAtType] -class WebhooksPullRequest5PropAssigneeType(TypedDict): - """User""" +class WebhooksProjectChangesPropArchivedAtType(TypedDict): + """WebhooksProjectChangesPropArchivedAt""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -class WebhooksPullRequest5PropHeadPropRepoPropPermissionsType(TypedDict): - """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType, None] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType(TypedDict): - """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhooksPullRequest5PropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParentType, None] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhooksPullRequest5PropRequestedTeamsItemsPropParentType(TypedDict): - """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + from_: NotRequired[Union[datetime, None]] + to: NotRequired[Union[datetime, None]] __all__ = ( - "WebhooksPullRequest5Type", - "WebhooksPullRequest5PropAssigneeType", - "WebhooksPullRequest5PropAssigneesItemsType", - "WebhooksPullRequest5PropAutoMergeType", - "WebhooksPullRequest5PropAutoMergePropEnabledByType", - "WebhooksPullRequest5PropLabelsItemsType", - "WebhooksPullRequest5PropMergedByType", - "WebhooksPullRequest5PropMilestoneType", - "WebhooksPullRequest5PropMilestonePropCreatorType", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type", - "WebhooksPullRequest5PropUserType", - "WebhooksPullRequest5PropLinksType", - "WebhooksPullRequest5PropLinksPropCommentsType", - "WebhooksPullRequest5PropLinksPropCommitsType", - "WebhooksPullRequest5PropLinksPropHtmlType", - "WebhooksPullRequest5PropLinksPropIssueType", - "WebhooksPullRequest5PropLinksPropReviewCommentType", - "WebhooksPullRequest5PropLinksPropReviewCommentsType", - "WebhooksPullRequest5PropLinksPropSelfType", - "WebhooksPullRequest5PropLinksPropStatusesType", - "WebhooksPullRequest5PropBaseType", - "WebhooksPullRequest5PropBasePropUserType", - "WebhooksPullRequest5PropBasePropRepoType", - "WebhooksPullRequest5PropBasePropRepoPropLicenseType", - "WebhooksPullRequest5PropBasePropRepoPropOwnerType", - "WebhooksPullRequest5PropBasePropRepoPropPermissionsType", - "WebhooksPullRequest5PropHeadType", - "WebhooksPullRequest5PropHeadPropUserType", - "WebhooksPullRequest5PropHeadPropRepoType", - "WebhooksPullRequest5PropHeadPropRepoPropLicenseType", - "WebhooksPullRequest5PropHeadPropRepoPropOwnerType", - "WebhooksPullRequest5PropHeadPropRepoPropPermissionsType", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType", - "WebhooksPullRequest5PropRequestedTeamsItemsType", - "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", + "WebhooksProjectChangesType", + "WebhooksProjectChangesPropArchivedAtType", ) 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 db9fee827..1c4516db1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0445.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0445.py @@ -13,126 +13,24 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class WebhooksReviewCommentType(TypedDict): - """Pull Request Review Comment - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. +class ProjectsV2ItemType(TypedDict): + """Projects v2 Item + + An item belonging to a project """ - links: WebhooksReviewCommentPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str + id: float + node_id: NotRequired[str] + project_node_id: NotRequired[str] + content_node_id: str + content_type: Literal["Issue", "PullRequest", "DraftIssue"] + creator: NotRequired[SimpleUserType] created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: int - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhooksReviewCommentPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] updated_at: datetime - url: str - user: Union[WebhooksReviewCommentPropUserType, None] - - -class WebhooksReviewCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksReviewCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhooksReviewCommentPropLinksType(TypedDict): - """WebhooksReviewCommentPropLinks""" - - html: WebhooksReviewCommentPropLinksPropHtmlType - pull_request: WebhooksReviewCommentPropLinksPropPullRequestType - self_: WebhooksReviewCommentPropLinksPropSelfType - - -class WebhooksReviewCommentPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewCommentPropLinksPropPullRequestType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str + archived_at: Union[datetime, None] -__all__ = ( - "WebhooksReviewCommentType", - "WebhooksReviewCommentPropReactionsType", - "WebhooksReviewCommentPropUserType", - "WebhooksReviewCommentPropLinksType", - "WebhooksReviewCommentPropLinksPropHtmlType", - "WebhooksReviewCommentPropLinksPropPullRequestType", - "WebhooksReviewCommentPropLinksPropSelfType", -) +__all__ = ("ProjectsV2ItemType",) 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 874ac4aaf..9b667bb6e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0446.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0446.py @@ -9,88 +9,31 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal +from datetime import date, datetime from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class WebhooksReviewType(TypedDict): - """WebhooksReview - The review that was affected. +class ProjectsV2StatusUpdateType(TypedDict): + """Projects v2 Status Update + + An status update belonging to a project """ - links: WebhooksReviewPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - commit_id: str - html_url: str - id: int + id: float node_id: str - pull_request_url: str - state: str - submitted_at: Union[datetime, None] - user: Union[WebhooksReviewPropUserType, None] - - -class WebhooksReviewPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhooksReviewPropLinksType(TypedDict): - """WebhooksReviewPropLinks""" - - html: WebhooksReviewPropLinksPropHtmlType - pull_request: WebhooksReviewPropLinksPropPullRequestType - - -class WebhooksReviewPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewPropLinksPropPullRequestType(TypedDict): - """Link""" - - href: str + project_node_id: NotRequired[str] + creator: NotRequired[SimpleUserType] + created_at: datetime + updated_at: datetime + status: NotRequired[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] + start_date: NotRequired[date] + target_date: NotRequired[date] + body: NotRequired[Union[str, None]] -__all__ = ( - "WebhooksReviewType", - "WebhooksReviewPropUserType", - "WebhooksReviewPropLinksType", - "WebhooksReviewPropLinksPropHtmlType", - "WebhooksReviewPropLinksPropPullRequestType", -) +__all__ = ("ProjectsV2StatusUpdateType",) 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 95023eade..3d71c0ece 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0447.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0447.py @@ -13,128 +13,85 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0064 import MilestoneType +from .group_0244 import AutoMergeType +from .group_0001 import SimpleUserType +from .group_0047 import TeamSimpleType +from .group_0325 import PullRequestPropBaseType +from .group_0327 import PullRequestPropLinksType +from .group_0324 import PullRequestPropHeadType, PullRequestPropLabelsItemsType -class WebhooksReleaseType(TypedDict): - """Release - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ +class PullRequestWebhookType(TypedDict): + """PullRequestWebhook""" - assets: List[WebhooksReleasePropAssetsItemsType] - assets_url: str - author: Union[WebhooksReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhooksReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str url: str - zipball_url: Union[str, None] - - -class WebhooksReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhooksReleasePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str node_id: str - size: int - state: Literal["uploaded"] + html_url: str + diff_url: str + patch_url: str + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str + number: int + state: Literal["open", "closed"] + locked: bool + title: str + user: SimpleUserType + body: Union[str, None] + labels: List[PullRequestPropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] + created_at: datetime updated_at: datetime - uploader: NotRequired[Union[WebhooksReleasePropAssetsItemsPropUploaderType, None]] - url: str - - -class WebhooksReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhooksReleaseType", - "WebhooksReleasePropAuthorType", - "WebhooksReleasePropReactionsType", - "WebhooksReleasePropAssetsItemsType", - "WebhooksReleasePropAssetsItemsPropUploaderType", -) + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[List[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] + requested_teams: NotRequired[Union[List[TeamSimpleType], None]] + head: PullRequestPropHeadType + base: PullRequestPropBaseType + links: PullRequestPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] + merged: bool + mergeable: Union[bool, None] + rebaseable: NotRequired[Union[bool, None]] + mergeable_state: str + merged_by: Union[None, SimpleUserType] + comments: int + review_comments: int + maintainer_can_modify: bool + commits: int + additions: int + deletions: int + changed_files: int + allow_auto_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + use_squash_pr_title_as_default: NotRequired[bool] + + +__all__ = ("PullRequestWebhookType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0448.py b/githubkit/versions/ghec_v2022_11_28/types/group_0448.py index 21084c986..4f0b889b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0448.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0448.py @@ -9,132 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -class WebhooksRelease1Type(TypedDict): - """Release +class PullRequestWebhookAllof1Type(TypedDict): + """PullRequestWebhookAllof1""" - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ + allow_auto_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + use_squash_pr_title_as_default: NotRequired[bool] - assets: List[Union[WebhooksRelease1PropAssetsItemsType, None]] - assets_url: str - author: Union[WebhooksRelease1PropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhooksRelease1PropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - -class WebhooksRelease1PropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[Union[WebhooksRelease1PropAssetsItemsPropUploaderType, None]] - url: str - - -class WebhooksRelease1PropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhooksRelease1PropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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__ = ( - "WebhooksRelease1Type", - "WebhooksRelease1PropAssetsItemsType", - "WebhooksRelease1PropAssetsItemsPropUploaderType", - "WebhooksRelease1PropAuthorType", - "WebhooksRelease1PropReactionsType", -) +__all__ = ("PullRequestWebhookAllof1Type",) 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 49b755e49..b15b7c81b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0449.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0449.py @@ -10,36 +10,712 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksAlertType(TypedDict): - """Repository Vulnerability Alert Alert +class WebhooksPullRequest5Type(TypedDict): + """Pull Request""" - The security alert of the vulnerable dependency. + links: WebhooksPullRequest5PropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhooksPullRequest5PropAssigneeType, None] + assignees: List[Union[WebhooksPullRequest5PropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhooksPullRequest5PropAutoMergeType, None] + base: WebhooksPullRequest5PropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhooksPullRequest5PropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhooksPullRequest5PropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[Union[WebhooksPullRequest5PropMergedByType, None]] + milestone: Union[WebhooksPullRequest5PropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, + None, + WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[WebhooksPullRequest5PropRequestedTeamsItemsType] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhooksPullRequest5PropUserType, None] + + +class WebhooksPullRequest5PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +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] + + +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] + + +class WebhooksPullRequest5PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. """ - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[Union[WebhooksAlertPropDismisserType, None]] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksPullRequest5PropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int + labels_url: str node_id: str number: int - severity: str - state: Literal["open"] + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhooksPullRequest5PropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +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] + + +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] + + +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] + + +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] -class WebhooksAlertPropDismisserType(TypedDict): +class WebhooksPullRequest5PropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhooksPullRequest5PropHeadPropRepoPropLicenseType, None] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhooksPullRequest5PropHeadPropRepoPropOwnerType, None] + permissions: NotRequired[WebhooksPullRequest5PropHeadPropRepoPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhooksPullRequest5PropHeadPropRepoPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhooksPullRequest5PropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -65,7 +741,129 @@ class WebhooksAlertPropDismisserType(TypedDict): url: 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__ = ( - "WebhooksAlertType", - "WebhooksAlertPropDismisserType", + "WebhooksPullRequest5Type", + "WebhooksPullRequest5PropAssigneeType", + "WebhooksPullRequest5PropAssigneesItemsType", + "WebhooksPullRequest5PropAutoMergeType", + "WebhooksPullRequest5PropAutoMergePropEnabledByType", + "WebhooksPullRequest5PropLabelsItemsType", + "WebhooksPullRequest5PropMergedByType", + "WebhooksPullRequest5PropMilestoneType", + "WebhooksPullRequest5PropMilestonePropCreatorType", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type", + "WebhooksPullRequest5PropUserType", + "WebhooksPullRequest5PropLinksType", + "WebhooksPullRequest5PropLinksPropCommentsType", + "WebhooksPullRequest5PropLinksPropCommitsType", + "WebhooksPullRequest5PropLinksPropHtmlType", + "WebhooksPullRequest5PropLinksPropIssueType", + "WebhooksPullRequest5PropLinksPropReviewCommentType", + "WebhooksPullRequest5PropLinksPropReviewCommentsType", + "WebhooksPullRequest5PropLinksPropSelfType", + "WebhooksPullRequest5PropLinksPropStatusesType", + "WebhooksPullRequest5PropBaseType", + "WebhooksPullRequest5PropBasePropUserType", + "WebhooksPullRequest5PropBasePropRepoType", + "WebhooksPullRequest5PropBasePropRepoPropLicenseType", + "WebhooksPullRequest5PropBasePropRepoPropOwnerType", + "WebhooksPullRequest5PropBasePropRepoPropPermissionsType", + "WebhooksPullRequest5PropHeadType", + "WebhooksPullRequest5PropHeadPropUserType", + "WebhooksPullRequest5PropHeadPropRepoType", + "WebhooksPullRequest5PropHeadPropRepoPropLicenseType", + "WebhooksPullRequest5PropHeadPropRepoPropOwnerType", + "WebhooksPullRequest5PropHeadPropRepoPropPermissionsType", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType", + "WebhooksPullRequest5PropRequestedTeamsItemsType", + "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", ) 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 0fa07a87c..db9fee827 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0450.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0450.py @@ -13,39 +13,126 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class WebhooksReviewCommentType(TypedDict): + """Pull Request Review Comment -class SecretScanningAlertWebhookType(TypedDict): - """SecretScanningAlertWebhook""" + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) + itself. + """ - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - resolution: NotRequired[ - Union[ - None, - Literal[ - "false_positive", - "wont_fix", - "revoked", - "used_in_tests", - "pattern_deleted", - "pattern_edited", - ], - ] + links: WebhooksReviewCommentPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - resolution_comment: NotRequired[Union[str, None]] - secret_type: NotRequired[str] - 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]] + 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] + + +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__ = ("SecretScanningAlertWebhookType",) +__all__ = ( + "WebhooksReviewCommentType", + "WebhooksReviewCommentPropReactionsType", + "WebhooksReviewCommentPropUserType", + "WebhooksReviewCommentPropLinksType", + "WebhooksReviewCommentPropLinksPropHtmlType", + "WebhooksReviewCommentPropLinksPropPullRequestType", + "WebhooksReviewCommentPropLinksPropSelfType", +) 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 39a4f9397..874ac4aaf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0451.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0451.py @@ -9,92 +9,88 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -class WebhooksSecurityAdvisoryType(TypedDict): - """WebhooksSecurityAdvisory +class WebhooksReviewType(TypedDict): + """WebhooksReview - The details of the security advisory, including summary, description, and - severity. + The review that was affected. """ - cvss: WebhooksSecurityAdvisoryPropCvssType - cwes: List[WebhooksSecurityAdvisoryPropCwesItemsType] - description: str - ghsa_id: str - identifiers: List[WebhooksSecurityAdvisoryPropIdentifiersItemsType] - published_at: str - references: List[WebhooksSecurityAdvisoryPropReferencesItemsType] - severity: str - summary: str - updated_at: str - vulnerabilities: List[WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType] - withdrawn_at: Union[str, None] - - -class WebhooksSecurityAdvisoryPropCvssType(TypedDict): - """WebhooksSecurityAdvisoryPropCvss""" - - score: float - vector_string: Union[str, None] - - -class WebhooksSecurityAdvisoryPropCwesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropCwesItems""" - - cwe_id: str - name: str - - -class WebhooksSecurityAdvisoryPropIdentifiersItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropIdentifiersItems""" - - type: str - value: str + links: WebhooksReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + commit_id: str + html_url: str + id: int + node_id: str + pull_request_url: str + state: str + submitted_at: Union[datetime, None] + user: Union[WebhooksReviewPropUserType, None] -class WebhooksSecurityAdvisoryPropReferencesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropReferencesItems""" +class WebhooksReviewPropUserType(TypedDict): + """User""" - url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" +class WebhooksReviewPropLinksType(TypedDict): + """WebhooksReviewPropLinks""" - first_patched_version: Union[ - WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, - None, - ] - package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType - severity: str - vulnerable_version_range: str + html: WebhooksReviewPropLinksPropHtmlType + pull_request: WebhooksReviewPropLinksPropPullRequestType -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( - TypedDict -): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" +class WebhooksReviewPropLinksPropHtmlType(TypedDict): + """Link""" - identifier: str + href: str -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType(TypedDict): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" +class WebhooksReviewPropLinksPropPullRequestType(TypedDict): + """Link""" - ecosystem: str - name: str + href: str __all__ = ( - "WebhooksSecurityAdvisoryType", - "WebhooksSecurityAdvisoryPropCvssType", - "WebhooksSecurityAdvisoryPropCwesItemsType", - "WebhooksSecurityAdvisoryPropIdentifiersItemsType", - "WebhooksSecurityAdvisoryPropReferencesItemsType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", + "WebhooksReviewType", + "WebhooksReviewPropUserType", + "WebhooksReviewPropLinksType", + "WebhooksReviewPropLinksPropHtmlType", + "WebhooksReviewPropLinksPropPullRequestType", ) 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 93b1fc962..95023eade 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0452.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0452.py @@ -9,46 +9,41 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksSponsorshipType(TypedDict): - """WebhooksSponsorship""" - - created_at: str - maintainer: NotRequired[WebhooksSponsorshipPropMaintainerType] - node_id: str - privacy_level: str - sponsor: Union[WebhooksSponsorshipPropSponsorType, None] - sponsorable: Union[WebhooksSponsorshipPropSponsorableType, None] - tier: WebhooksSponsorshipPropTierType - - -class WebhooksSponsorshipPropMaintainerType(TypedDict): - """WebhooksSponsorshipPropMaintainer""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] +class WebhooksReleaseType(TypedDict): + """Release + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ -class WebhooksSponsorshipPropSponsorType(TypedDict): + assets: List[WebhooksReleasePropAssetsItemsType] + assets_url: str + author: Union[WebhooksReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhooksReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhooksReleasePropAuthorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -74,7 +69,43 @@ class WebhooksSponsorshipPropSponsorType(TypedDict): url: NotRequired[str] -class WebhooksSponsorshipPropSponsorableType(TypedDict): +class WebhooksReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[Union[WebhooksReleasePropAssetsItemsPropUploaderType, None]] + url: str + + +class WebhooksReleasePropAssetsItemsPropUploaderType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -100,29 +131,10 @@ class WebhooksSponsorshipPropSponsorableType(TypedDict): url: 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__ = ( - "WebhooksSponsorshipType", - "WebhooksSponsorshipPropMaintainerType", - "WebhooksSponsorshipPropSponsorType", - "WebhooksSponsorshipPropSponsorableType", - "WebhooksSponsorshipPropTierType", + "WebhooksReleaseType", + "WebhooksReleasePropAuthorType", + "WebhooksReleasePropReactionsType", + "WebhooksReleasePropAssetsItemsType", + "WebhooksReleasePropAssetsItemsPropUploaderType", ) 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 ec72f0b7d..21084c986 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0453.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0453.py @@ -9,42 +9,132 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksChanges8Type(TypedDict): - """WebhooksChanges8""" +class WebhooksRelease1Type(TypedDict): + """Release - tier: WebhooksChanges8PropTierType - - -class WebhooksChanges8PropTierType(TypedDict): - """WebhooksChanges8PropTier""" + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ - from_: WebhooksChanges8PropTierPropFromType + assets: List[Union[WebhooksRelease1PropAssetsItemsType, None]] + assets_url: str + author: Union[WebhooksRelease1PropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhooksRelease1PropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] -class WebhooksChanges8PropTierPropFromType(TypedDict): - """Sponsorship Tier +class WebhooksRelease1PropAssetsItemsType(TypedDict): + """Release Asset - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. + Data related to a release. """ - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] name: str node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[Union[WebhooksRelease1PropAssetsItemsPropUploaderType, None]] + url: str + + +class WebhooksRelease1PropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhooksRelease1PropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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__ = ( - "WebhooksChanges8Type", - "WebhooksChanges8PropTierType", - "WebhooksChanges8PropTierPropFromType", + "WebhooksRelease1Type", + "WebhooksRelease1PropAssetsItemsType", + "WebhooksRelease1PropAssetsItemsPropUploaderType", + "WebhooksRelease1PropAuthorType", + "WebhooksRelease1PropReactionsType", ) 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 f600fe9c3..49b755e49 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0454.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0454.py @@ -9,52 +9,63 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksTeam1Type(TypedDict): - """Team +class WebhooksAlertType(TypedDict): + """Repository Vulnerability Alert Alert - Groups of organization members that gives permissions on specified repositories. + The security alert of the vulnerable dependency. """ - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + affected_package_name: str + affected_range: str + created_at: str + dismiss_reason: NotRequired[str] + dismissed_at: NotRequired[str] + dismisser: NotRequired[Union[WebhooksAlertPropDismisserType, None]] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhooksTeam1PropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + node_id: str + number: int + severity: str + state: Literal["open"] -class WebhooksTeam1PropParentType(TypedDict): - """WebhooksTeam1PropParent""" +class WebhooksAlertPropDismisserType(TypedDict): + """User""" - description: Union[str, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str - url: str + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhooksTeam1Type", - "WebhooksTeam1PropParentType", + "WebhooksAlertType", + "WebhooksAlertPropDismisserType", ) 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 1f9024898..d89bf2f6c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0455.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0455.py @@ -9,25 +9,44 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType - - -class WebhookBranchProtectionConfigurationDisabledType(TypedDict): - """branch protection configuration disabled event""" - - action: Literal["disabled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) +from .group_0001 import SimpleUserType + + +class SecretScanningAlertWebhookType(TypedDict): + """SecretScanningAlertWebhook""" + + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + resolution: NotRequired[ + Union[ + None, + Literal[ + "false_positive", + "wont_fix", + "revoked", + "used_in_tests", + "pattern_deleted", + "pattern_edited", + ], + ] + ] + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + resolution_comment: NotRequired[Union[str, None]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + + +__all__ = ("SecretScanningAlertWebhookType",) 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 7f84b7711..39a4f9397 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0456.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0456.py @@ -9,25 +9,92 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List, Union +from typing_extensions import TypedDict -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +class WebhooksSecurityAdvisoryType(TypedDict): + """WebhooksSecurityAdvisory -class WebhookBranchProtectionConfigurationEnabledType(TypedDict): - """branch protection configuration enabled event""" + The details of the security advisory, including summary, description, and + severity. + """ - action: Literal["enabled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + cvss: WebhooksSecurityAdvisoryPropCvssType + cwes: List[WebhooksSecurityAdvisoryPropCwesItemsType] + description: str + ghsa_id: str + identifiers: List[WebhooksSecurityAdvisoryPropIdentifiersItemsType] + published_at: str + references: List[WebhooksSecurityAdvisoryPropReferencesItemsType] + severity: str + summary: str + updated_at: str + vulnerabilities: List[WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType] + withdrawn_at: Union[str, None] -__all__ = ("WebhookBranchProtectionConfigurationEnabledType",) +class WebhooksSecurityAdvisoryPropCvssType(TypedDict): + """WebhooksSecurityAdvisoryPropCvss""" + + score: float + vector_string: Union[str, None] + + +class WebhooksSecurityAdvisoryPropCwesItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class WebhooksSecurityAdvisoryPropIdentifiersItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropIdentifiersItems""" + + type: str + value: str + + +class WebhooksSecurityAdvisoryPropReferencesItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropReferencesItems""" + + url: str + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, + None, + ] + package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType + severity: str + vulnerable_version_range: str + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( + TypedDict +): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" + + identifier: str + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType(TypedDict): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" + + ecosystem: str + name: str + + +__all__ = ( + "WebhooksSecurityAdvisoryType", + "WebhooksSecurityAdvisoryPropCvssType", + "WebhooksSecurityAdvisoryPropCwesItemsType", + "WebhooksSecurityAdvisoryPropIdentifiersItemsType", + "WebhooksSecurityAdvisoryPropReferencesItemsType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", +) 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 daad11a26..93b1fc962 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0457.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0457.py @@ -9,27 +9,120 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0407 import WebhooksRuleType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +class WebhooksSponsorshipType(TypedDict): + """WebhooksSponsorship""" -class WebhookBranchProtectionRuleCreatedType(TypedDict): - """branch protection rule created event""" + created_at: str + maintainer: NotRequired[WebhooksSponsorshipPropMaintainerType] + node_id: str + privacy_level: str + sponsor: Union[WebhooksSponsorshipPropSponsorType, None] + sponsorable: Union[WebhooksSponsorshipPropSponsorableType, None] + tier: WebhooksSponsorshipPropTierType - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhooksRuleType - sender: SimpleUserWebhooksType +class WebhooksSponsorshipPropMaintainerType(TypedDict): + """WebhooksSponsorshipPropMaintainer""" -__all__ = ("WebhookBranchProtectionRuleCreatedType",) + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +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] + + +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] + + +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__ = ( + "WebhooksSponsorshipType", + "WebhooksSponsorshipPropMaintainerType", + "WebhooksSponsorshipPropSponsorType", + "WebhooksSponsorshipPropSponsorableType", + "WebhooksSponsorshipPropTierType", +) 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 9606d0f6c..ec72f0b7d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0458.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0458.py @@ -9,27 +9,42 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0407 import WebhooksRuleType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +class WebhooksChanges8Type(TypedDict): + """WebhooksChanges8""" -class WebhookBranchProtectionRuleDeletedType(TypedDict): - """branch protection rule deleted event""" + tier: WebhooksChanges8PropTierType - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhooksRuleType - sender: SimpleUserWebhooksType +class WebhooksChanges8PropTierType(TypedDict): + """WebhooksChanges8PropTier""" -__all__ = ("WebhookBranchProtectionRuleDeletedType",) + from_: WebhooksChanges8PropTierPropFromType + + +class WebhooksChanges8PropTierPropFromType(TypedDict): + """Sponsorship Tier + + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. + """ + + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int + name: str + node_id: str + + +__all__ = ( + "WebhooksChanges8Type", + "WebhooksChanges8PropTierType", + "WebhooksChanges8PropTierPropFromType", +) 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 a02a8d086..f600fe9c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0459.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0459.py @@ -9,125 +9,52 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0407 import WebhooksRuleType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +class WebhooksTeam1Type(TypedDict): + """Team -class WebhookBranchProtectionRuleEditedType(TypedDict): - """branch protection rule edited event""" - - action: Literal["edited"] - changes: NotRequired[WebhookBranchProtectionRuleEditedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhooksRuleType - sender: SimpleUserWebhooksType - - -class WebhookBranchProtectionRuleEditedPropChangesType(TypedDict): - """WebhookBranchProtectionRuleEditedPropChanges - - If the action was `edited`, the changes to the rule. + Groups of organization members that gives permissions on specified repositories. """ - 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 + 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"] ] - required_status_checks: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType - ] - required_status_checks_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType - ] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType(TypedDict): - """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" - - from_: Union[bool, None] - - -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] - from_: List[str] +class WebhooksTeam1PropParentType(TypedDict): + """WebhooksTeam1PropParent""" -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 WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" - - from_: List[str] - - -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL - evel - """ - - from_: Literal["off", "non_admins", "everyone"] + 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__ = ( - "WebhookBranchProtectionRuleEditedType", - "WebhookBranchProtectionRuleEditedPropChangesType", - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", + "WebhooksTeam1Type", + "WebhooksTeam1PropParentType", ) 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 78ea9974a..071b2038d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0460.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0460.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0409 import ExemptionRequestType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookExemptionRequestCancelledType(TypedDict): - """Exemption request cancellation event""" +class WebhookBranchProtectionConfigurationDisabledType(TypedDict): + """branch protection configuration disabled event""" - action: Literal["cancelled"] + action: Literal["disabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - exemption_request: ExemptionRequestType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookExemptionRequestCancelledType",) +__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) 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 d1961323d..d2de8428e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0461.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0461.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0409 import ExemptionRequestType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookExemptionRequestCompletedType(TypedDict): - """Exemption request completed event""" +class WebhookBranchProtectionConfigurationEnabledType(TypedDict): + """branch protection configuration enabled event""" - action: Literal["completed"] + action: Literal["enabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - exemption_request: ExemptionRequestType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookExemptionRequestCompletedType",) +__all__ = ("WebhookBranchProtectionConfigurationEnabledType",) 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 943a1802b..e09aee685 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0462.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0462.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0409 import ExemptionRequestType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0411 import WebhooksRuleType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookExemptionRequestCreatedType(TypedDict): - """Exemption request created event""" +class WebhookBranchProtectionRuleCreatedType(TypedDict): + """branch protection rule created event""" action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - exemption_request: ExemptionRequestType + repository: RepositoryWebhooksType + rule: WebhooksRuleType sender: SimpleUserWebhooksType -__all__ = ("WebhookExemptionRequestCreatedType",) +__all__ = ("WebhookBranchProtectionRuleCreatedType",) 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 5d6207c69..192d6404a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0463.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0463.py @@ -12,26 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0409 import ExemptionRequestType -from .group_0408 import ExemptionResponseType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0411 import WebhooksRuleType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookExemptionRequestResponseDismissedType(TypedDict): - """Exemption response dismissed event""" +class WebhookBranchProtectionRuleDeletedType(TypedDict): + """branch protection rule deleted event""" - action: Literal["response_dismissed"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - exemption_request: ExemptionRequestType - exemption_response: ExemptionResponseType + repository: RepositoryWebhooksType + rule: WebhooksRuleType sender: SimpleUserWebhooksType -__all__ = ("WebhookExemptionRequestResponseDismissedType",) +__all__ = ("WebhookBranchProtectionRuleDeletedType",) 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 856bd6a9b..4829dad2c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0464.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0464.py @@ -9,29 +9,173 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0409 import ExemptionRequestType -from .group_0408 import ExemptionResponseType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0411 import WebhooksRuleType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookExemptionRequestResponseSubmittedType(TypedDict): - """Exemption response submitted event""" +class WebhookBranchProtectionRuleEditedType(TypedDict): + """branch protection rule edited event""" - action: Literal["response_submitted"] + action: Literal["edited"] + changes: NotRequired[WebhookBranchProtectionRuleEditedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - exemption_request: ExemptionRequestType - exemption_response: ExemptionResponseType + repository: RepositoryWebhooksType + rule: WebhooksRuleType sender: SimpleUserWebhooksType -__all__ = ("WebhookExemptionRequestResponseSubmittedType",) +class WebhookBranchProtectionRuleEditedPropChangesType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChanges + + If the action was `edited`, the changes to the rule. + """ + + admin_enforced: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType + ] + authorized_actor_names: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType + ] + authorized_actors_only: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType + ] + authorized_dismissal_actors_only: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType + ] + linear_history_requirement_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType + ] + lock_branch_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType + ] + lock_allows_fork_sync: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType + ] + pull_request_reviews_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType + ] + require_last_push_approval: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType + ] + required_status_checks: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType + ] + required_status_checks_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType + ] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" + + from_: List[str] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem + entLevel + """ + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev + el + """ + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + + from_: List[str] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL + evel + """ + + from_: Literal["off", "non_admins", "everyone"] + + +__all__ = ( + "WebhookBranchProtectionRuleEditedType", + "WebhookBranchProtectionRuleEditedPropChangesType", + "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", + "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", +) 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 7209e0c06..016e230ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0465.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0465.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0411 import CheckRunWithSimpleCheckSuiteType +from .group_0413 import ExemptionRequestType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookCheckRunCompletedType(TypedDict): - """Check Run Completed Event""" +class WebhookExemptionRequestCancelledType(TypedDict): + """Exemption request cancellation event""" - action: Literal["completed"] - check_run: CheckRunWithSimpleCheckSuiteType + action: Literal["cancelled"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + exemption_request: ExemptionRequestType sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunCompletedType",) +__all__ = ("WebhookExemptionRequestCancelledType",) 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 831afd105..2e94ec1ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0466.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0466.py @@ -9,16 +9,27 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_0413 import ExemptionRequestType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookCheckRunCompletedFormEncodedType(TypedDict): - """Check Run Completed Event - The check_run.completed webhook encoded with URL encoding - """ +class WebhookExemptionRequestCompletedType(TypedDict): + """Exemption request completed event""" - payload: str + action: Literal["completed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + exemption_request: ExemptionRequestType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunCompletedFormEncodedType",) +__all__ = ("WebhookExemptionRequestCompletedType",) 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 1541789bc..4ca1fc56e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0467.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0467.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0411 import CheckRunWithSimpleCheckSuiteType +from .group_0413 import ExemptionRequestType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookCheckRunCreatedType(TypedDict): - """Check Run Created Event""" +class WebhookExemptionRequestCreatedType(TypedDict): + """Exemption request created event""" action: Literal["created"] - check_run: CheckRunWithSimpleCheckSuiteType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + exemption_request: ExemptionRequestType sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunCreatedType",) +__all__ = ("WebhookExemptionRequestCreatedType",) 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 090ccf388..a6a49f0e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0468.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0468.py @@ -9,16 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_0413 import ExemptionRequestType +from .group_0412 import ExemptionResponseType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookCheckRunCreatedFormEncodedType(TypedDict): - """Check Run Created Event - The check_run.created webhook encoded with URL encoding - """ +class WebhookExemptionRequestResponseDismissedType(TypedDict): + """Exemption response dismissed event""" - payload: str + action: Literal["response_dismissed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + exemption_request: ExemptionRequestType + exemption_response: ExemptionResponseType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunCreatedFormEncodedType",) +__all__ = ("WebhookExemptionRequestResponseDismissedType",) 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 5a9f68288..ad72b76c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0469.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0469.py @@ -12,35 +12,26 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0411 import CheckRunWithSimpleCheckSuiteType +from .group_0413 import ExemptionRequestType +from .group_0412 import ExemptionResponseType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookCheckRunRequestedActionType(TypedDict): - """Check Run Requested Action Event""" +class WebhookExemptionRequestResponseSubmittedType(TypedDict): + """Exemption response submitted event""" - action: Literal["requested_action"] - check_run: CheckRunWithSimpleCheckSuiteType + action: Literal["response_submitted"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] + repository: NotRequired[RepositoryWebhooksType] + exemption_request: ExemptionRequestType + exemption_response: ExemptionResponseType sender: SimpleUserWebhooksType -class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): - """WebhookCheckRunRequestedActionPropRequestedAction - - The action requested by the user. - """ - - identifier: NotRequired[str] - - -__all__ = ( - "WebhookCheckRunRequestedActionType", - "WebhookCheckRunRequestedActionPropRequestedActionType", -) +__all__ = ("WebhookExemptionRequestResponseSubmittedType",) 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 0d80e2c39..5883fcf5c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0470.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0470.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0415 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): - """Check Run Requested Action Event - The check_run.requested_action webhook encoded with URL encoding - """ +class WebhookCheckRunCompletedType(TypedDict): + """Check Run Completed Event""" - payload: str + action: Literal["completed"] + check_run: CheckRunWithSimpleCheckSuiteType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) +__all__ = ("WebhookCheckRunCompletedType",) 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 55a6747af..831afd105 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0471.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0471.py @@ -9,25 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0411 import CheckRunWithSimpleCheckSuiteType +class WebhookCheckRunCompletedFormEncodedType(TypedDict): + """Check Run Completed Event -class WebhookCheckRunRerequestedType(TypedDict): - """Check Run Re-Requested Event""" + The check_run.completed webhook encoded with URL encoding + """ - action: Literal["rerequested"] - check_run: CheckRunWithSimpleCheckSuiteType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + payload: str -__all__ = ("WebhookCheckRunRerequestedType",) +__all__ = ("WebhookCheckRunCompletedFormEncodedType",) 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 ef6a77599..341db143d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0472.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0472.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0415 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunRerequestedFormEncodedType(TypedDict): - """Check Run Re-Requested Event - The check_run.rerequested webhook encoded with URL encoding - """ +class WebhookCheckRunCreatedType(TypedDict): + """Check Run Created Event""" - payload: str + action: Literal["created"] + check_run: CheckRunWithSimpleCheckSuiteType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunRerequestedFormEncodedType",) +__all__ = ("WebhookCheckRunCreatedType",) 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 c3d803018..090ccf388 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0473.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0473.py @@ -9,323 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +class WebhookCheckRunCreatedFormEncodedType(TypedDict): + """Check Run Created Event -class WebhookCheckSuiteCompletedType(TypedDict): - """check_suite completed event""" - - action: Literal["completed"] - check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookCheckSuiteCompletedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteCompletedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] - app: WebhookCheckSuiteCompletedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: List[ - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[ - None, Literal["requested", "in_progress", "completed", "queued", "pending"] - ] - updated_at: datetime - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The check_run.created webhook encoded with URL encoding """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "merge_group", - "pull_request_review_thread", - "workflow_job", - "merge_queue_entry", - "security_and_analysis", - "projects_v2_item", - "secret_scanning_alert_location", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, 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] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + payload: str -__all__ = ( - "WebhookCheckSuiteCompletedType", - "WebhookCheckSuiteCompletedPropCheckSuiteType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookCheckRunCreatedFormEncodedType",) 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 e5cbf266b..01f1ebda3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0474.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0474.py @@ -9,321 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0415 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckSuiteRequestedType(TypedDict): - """check_suite requested event""" +class WebhookCheckRunRequestedActionType(TypedDict): + """Check Run Requested Action Event""" - action: Literal["requested"] - check_suite: WebhookCheckSuiteRequestedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["requested_action"] + check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType + requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] sender: SimpleUserWebhooksType -class WebhookCheckSuiteRequestedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteRequestedPropCheckSuite +class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): + """WebhookCheckRunRequestedActionPropRequestedAction - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). + The action requested by the user. """ - after: Union[str, None] - app: WebhookCheckSuiteRequestedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: List[ - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] - updated_at: datetime - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "workflow_job", - "merge_queue_entry", - "security_and_analysis", - "secret_scanning_alert_location", - "projects_v2_item", - "merge_group", - "repository_import", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, 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] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + identifier: NotRequired[str] __all__ = ( - "WebhookCheckSuiteRequestedType", - "WebhookCheckSuiteRequestedPropCheckSuiteType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckRunRequestedActionType", + "WebhookCheckRunRequestedActionPropRequestedActionType", ) 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 89a3300ba..0d80e2c39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0475.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0475.py @@ -9,315 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): + """Check Run Requested Action Event -class WebhookCheckSuiteRerequestedType(TypedDict): - """check_suite rerequested event""" - - action: Literal["rerequested"] - check_suite: WebhookCheckSuiteRerequestedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuite - - The [check_suite](https://docs.github.com/enterprise- - cloud@latest//rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] - app: WebhookCheckSuiteRerequestedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: List[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] - updated_at: datetime - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The check_run.requested_action webhook encoded with URL encoding """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "merge_queue_entry", - "workflow_job", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + payload: str -__all__ = ( - "WebhookCheckSuiteRerequestedType", - "WebhookCheckSuiteRerequestedPropCheckSuiteType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) 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 b16f26222..454b9db1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0476.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0476.py @@ -9,151 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0415 import CheckRunWithSimpleCheckSuiteType -class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): - """code_scanning_alert appeared_in_branch event""" +class WebhookCheckRunRerequestedType(TypedDict): + """Check Run Re-Requested Event""" - action: Literal["appeared_in_branch"] - alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType - commit_oid: str - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["rerequested"] + check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlert - - The code scanning alert involved in the event. - """ - - created_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None - ] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, - None, - ] - ] - number: int - rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType - state: Literal["open", "dismissed", "fixed"] - tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType - url: str - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType( - TypedDict -): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[List[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( - TypedDict -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion - """ - - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( - TypedDict -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge - """ - - text: NotRequired[str] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" - - description: str - id: str - severity: Union[None, Literal["none", "note", "warning", "error"]] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - - name: str - version: Union[str, None] - - -__all__ = ( - "WebhookCodeScanningAlertAppearedInBranchType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", -) +__all__ = ("WebhookCheckRunRerequestedType",) 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 46825cef2..ef6a77599 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0477.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0477.py @@ -9,153 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +class WebhookCheckRunRerequestedFormEncodedType(TypedDict): + """Check Run Re-Requested Event -class WebhookCodeScanningAlertClosedByUserType(TypedDict): - """code_scanning_alert closed_by_user event""" - - action: Literal["closed_by_user"] - alert: WebhookCodeScanningAlertClosedByUserPropAlertType - commit_oid: str - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlert - - The code scanning alert involved in the event. + The check_run.rerequested webhook encoded with URL encoding """ - created_at: datetime - dismissed_at: datetime - dismissed_by: Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, None - ] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, - None, - ] - ] - number: int - rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType - state: Literal["dismissed", "fixed"] - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType - url: str - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType( - TypedDict -): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[List[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( - TypedDict -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" - - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( - TypedDict -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" - - text: NotRequired[str] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" - - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[List[str], None]] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" - - guid: NotRequired[Union[str, None]] - name: str - version: Union[str, None] + payload: str -__all__ = ( - "WebhookCodeScanningAlertClosedByUserType", - "WebhookCodeScanningAlertClosedByUserPropAlertType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", -) +__all__ = ("WebhookCheckRunRerequestedFormEncodedType",) 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 277be6a52..4cb571298 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0478.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0478.py @@ -13,117 +13,319 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookCodeScanningAlertCreatedType(TypedDict): - """code_scanning_alert created event""" +class WebhookCheckSuiteCompletedType(TypedDict): + """check_suite completed event""" - action: Literal["created"] - alert: WebhookCodeScanningAlertCreatedPropAlertType - commit_oid: str + action: Literal["completed"] + check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlert +class WebhookCheckSuiteCompletedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteCompletedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ - created_at: Union[datetime, None] - dismissed_at: None - dismissed_by: None - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: None - fixed_at: NotRequired[None] - html_url: str - instances_url: NotRequired[str] - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] + after: Union[str, None] + app: WebhookCheckSuiteCompletedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], ] - number: int - rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType - state: Literal["open", "dismissed"] - tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] - updated_at: NotRequired[Union[str, None]] + created_at: datetime + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: List[ + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType + ] + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[ + None, Literal["requested", "in_progress", "completed", "queued", "pending"] + ] + updated_at: datetime url: str -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" +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. + """ - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[List[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "merge_group", + "pull_request_review_thread", + "workflow_job", + "merge_queue_entry", + "security_and_analysis", + "projects_v2_item", + "secret_scanning_alert_location", + ] + ] ] - message: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType ] - ref: str - state: Literal["open", "dismissed", "fixed"] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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. + """ -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType( TypedDict ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + """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 WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( + base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - text: NotRequired[str] + ref: str + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[List[str], None]] + id: int + name: str + url: str -class WebhookCodeScanningAlertCreatedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlertPropTool""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - guid: NotRequired[Union[str, None]] + ref: str + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertCreatedType", - "WebhookCodeScanningAlertCreatedPropAlertType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", - "WebhookCodeScanningAlertCreatedPropAlertPropToolType", + "WebhookCheckSuiteCompletedType", + "WebhookCheckSuiteCompletedPropCheckSuiteType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ) 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 55edbe8bb..5838d9889 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0479.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0479.py @@ -13,52 +13,150 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookCodeScanningAlertFixedType(TypedDict): - """code_scanning_alert fixed event""" +class WebhookCheckSuiteRequestedType(TypedDict): + """check_suite requested event""" - action: Literal["fixed"] - alert: WebhookCodeScanningAlertFixedPropAlertType - commit_oid: str + action: Literal["requested"] + check_suite: WebhookCheckSuiteRequestedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlert +class WebhookCheckSuiteRequestedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteRequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ + after: Union[str, None] + app: WebhookCheckSuiteRequestedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] created_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: List[ + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType ] + 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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "workflow_job", + "merge_queue_entry", + "security_and_analysis", + "secret_scanning_alert_location", + "projects_v2_item", + "merge_group", + "repository_import", + ] + ] + ] + external_url: Union[str, None] html_url: str - instances_url: NotRequired[str] - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] + id: Union[int, None] + name: str + node_id: str + owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType ] - number: int - rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType - state: Literal["fixed"] - tool: WebhookCodeScanningAlertFixedPropAlertPropToolType - url: str + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -84,72 +182,148 @@ class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): url: NotRequired[str] -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" +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] - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[List[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] + +class 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 WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + """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 WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( TypedDict ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: NotRequired[str] + id: int + name: str + url: str -class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[List[str], None]] + ref: str + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" - guid: NotRequired[Union[str, None]] + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertFixedType", - "WebhookCodeScanningAlertFixedPropAlertType", - "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertFixedPropAlertPropRuleType", - "WebhookCodeScanningAlertFixedPropAlertPropToolType", + "WebhookCheckSuiteRequestedType", + "WebhookCheckSuiteRequestedPropCheckSuiteType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ) 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 58045b9ee..b440a407d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0480.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0480.py @@ -13,120 +13,311 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookCodeScanningAlertReopenedType(TypedDict): - """code_scanning_alert reopened event""" +class WebhookCheckSuiteRerequestedType(TypedDict): + """check_suite rerequested event""" - action: Literal["reopened"] - alert: Union[WebhookCodeScanningAlertReopenedPropAlertType, None] - commit_oid: Union[str, None] + action: Literal["rerequested"] + check_suite: WebhookCheckSuiteRerequestedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: Union[str, None] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteRerequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/enterprise- + cloud@latest//rest/checks/suites#get-a-check-suite). """ - created_at: datetime - dismissed_at: Union[str, None] - dismissed_by: Union[ - WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, None + 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", + ], ] - dismissed_reason: Union[str, None] - html_url: str - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, 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: WebhookCodeScanningAlertReopenedPropAlertPropRuleType - state: Literal["open", "dismissed", "fixed"] - tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] + updated_at: datetime url: str -class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" - +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppType(TypedDict): + """App -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[List[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "merge_queue_entry", + "workflow_job", + ] + ] ] - message: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType ] - ref: str - state: Literal["open", "dismissed", "fixed"] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType( +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: NotRequired[str] + id: int + name: str + url: str -class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropRule""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[List[str], None]] + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" - guid: NotRequired[Union[str, None]] + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertReopenedType", - "WebhookCodeScanningAlertReopenedPropAlertType", - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedPropAlertPropToolType", + "WebhookCheckSuiteRerequestedType", + "WebhookCheckSuiteRerequestedPropCheckSuiteType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ) 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 eb39f6017..bd1b95114 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0481.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0481.py @@ -13,18 +13,18 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookCodeScanningAlertReopenedByUserType(TypedDict): - """code_scanning_alert reopened_by_user event""" +class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): + """code_scanning_alert appeared_in_branch event""" - action: Literal["reopened_by_user"] - alert: WebhookCodeScanningAlertReopenedByUserPropAlertType + action: Literal["appeared_in_branch"] + alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,31 +34,61 @@ class WebhookCodeScanningAlertReopenedByUserType(TypedDict): sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlert The code scanning alert involved in the event. """ created_at: datetime - dismissed_at: None - dismissed_by: None - dismissed_reason: None + dismissed_at: Union[datetime, None] + dismissed_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None + ] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] html_url: str most_recent_instance: NotRequired[ Union[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, None, ] ] number: int - rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType - state: Literal["open", "fixed"] - tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType + rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType + state: Literal["open", "dismissed", "fixed"] + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType url: str -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType( TypedDict ): """Alert Instance""" @@ -69,20 +99,20 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( commit_sha: NotRequired[str] environment: str location: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType ] message: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType ] ref: str state: Literal["open", "dismissed", "fixed"] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion """ end_column: NotRequired[int] @@ -92,35 +122,38 @@ class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropL start_line: NotRequired[int] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType( +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ text: NotRequired[str] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" description: str id: str severity: Union[None, Literal["none", "note", "warning", "error"]] -class WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" name: str version: Union[str, None] __all__ = ( - "WebhookCodeScanningAlertReopenedByUserType", - "WebhookCodeScanningAlertReopenedByUserPropAlertType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", + "WebhookCodeScanningAlertAppearedInBranchType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", ) 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 cfb758eb1..a5771b7b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0482.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0482.py @@ -9,76 +9,60 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookCommitCommentCreatedType(TypedDict): - """commit_comment created event""" +class WebhookCodeScanningAlertClosedByUserType(TypedDict): + """code_scanning_alert closed_by_user event""" - action: Literal["created"] - comment: WebhookCommitCommentCreatedPropCommentType + action: Literal["closed_by_user"] + alert: WebhookCodeScanningAlertClosedByUserPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCommitCommentCreatedPropCommentType(TypedDict): - """WebhookCommitCommentCreatedPropComment +class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlert - The [commit comment](https://docs.github.com/enterprise- - cloud@latest//rest/commits/comments#get-a-commit-comment) resource. + The code scanning alert involved in the event. """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + created_at: datetime + dismissed_at: datetime + dismissed_by: Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, None + ] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] ] - 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 + most_recent_instance: NotRequired[ + Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, + None, + ] + ] + number: int + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType + state: Literal["dismissed", "fixed"] + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType url: str -class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -104,9 +88,74 @@ class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): url: NotRequired[str] +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType( + TypedDict +): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[List[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[List[str], None]] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + __all__ = ( - "WebhookCommitCommentCreatedType", - "WebhookCommitCommentCreatedPropCommentType", - "WebhookCommitCommentCreatedPropCommentPropReactionsType", - "WebhookCommitCommentCreatedPropCommentPropUserType", + "WebhookCodeScanningAlertClosedByUserType", + "WebhookCodeScanningAlertClosedByUserPropAlertType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", ) 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 f9463fc25..3786f407d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0483.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0483.py @@ -9,29 +9,121 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookCreateType(TypedDict): - """create event""" +class WebhookCodeScanningAlertCreatedType(TypedDict): + """code_scanning_alert created event""" - description: Union[str, None] + action: Literal["created"] + alert: WebhookCodeScanningAlertCreatedPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - master_branch: str organization: NotRequired[OrganizationSimpleWebhooksType] - pusher_type: str ref: str - ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookCreateType",) +class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: Union[datetime, None] + dismissed_at: None + dismissed_by: None + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: None + fixed_at: NotRequired[None] + html_url: str + instances_url: NotRequired[str] + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType + state: Literal["open", "dismissed"] + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] + updated_at: NotRequired[Union[str, None]] + url: str + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[List[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[List[str], None]] + + +class WebhookCodeScanningAlertCreatedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertCreatedType", + "WebhookCodeScanningAlertCreatedPropAlertType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", + "WebhookCodeScanningAlertCreatedPropAlertPropToolType", +) 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 e432423c4..cf696996a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0484.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0484.py @@ -9,25 +9,147 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0115 import OrgCustomPropertyType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyCreatedType(TypedDict): - """custom property created event""" +class WebhookCodeScanningAlertFixedType(TypedDict): + """code_scanning_alert fixed event""" - action: Literal["created"] - definition: OrgCustomPropertyType + action: Literal["fixed"] + alert: WebhookCodeScanningAlertFixedPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCustomPropertyCreatedType",) +class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + html_url: str + instances_url: NotRequired[str] + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType + state: Literal["fixed"] + tool: WebhookCodeScanningAlertFixedPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[List[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[List[str], None]] + + +class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertFixedType", + "WebhookCodeScanningAlertFixedPropAlertType", + "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertFixedPropAlertPropRuleType", + "WebhookCodeScanningAlertFixedPropAlertPropToolType", +) 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 f4f9dc43b..f165b2cad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0485.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0485.py @@ -9,33 +9,124 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyDeletedType(TypedDict): - """custom property deleted event""" +class WebhookCodeScanningAlertReopenedType(TypedDict): + """code_scanning_alert reopened event""" - action: Literal["deleted"] - definition: WebhookCustomPropertyDeletedPropDefinitionType + action: Literal["reopened"] + alert: Union[WebhookCodeScanningAlertReopenedPropAlertType, None] + commit_oid: Union[str, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + organization: NotRequired[OrganizationSimpleWebhooksType] + ref: Union[str, None] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): - """WebhookCustomPropertyDeletedPropDefinition""" +class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlert - property_name: str + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: Union[str, None] + dismissed_by: Union[ + WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, None + ] + dismissed_reason: Union[str, None] + html_url: str + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertReopenedPropAlertPropRuleType + state: Literal["open", "dismissed", "fixed"] + tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[List[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[List[str], None]] + + +class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] __all__ = ( - "WebhookCustomPropertyDeletedType", - "WebhookCustomPropertyDeletedPropDefinitionType", + "WebhookCodeScanningAlertReopenedType", + "WebhookCodeScanningAlertReopenedPropAlertType", + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", + "WebhookCodeScanningAlertReopenedPropAlertPropToolType", ) 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 d1a2265f3..e8bbd0509 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0486.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0486.py @@ -9,25 +9,118 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0115 import OrgCustomPropertyType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyUpdatedType(TypedDict): - """custom property updated event""" +class WebhookCodeScanningAlertReopenedByUserType(TypedDict): + """code_scanning_alert reopened_by_user event""" - action: Literal["updated"] - definition: OrgCustomPropertyType + action: Literal["reopened_by_user"] + alert: WebhookCodeScanningAlertReopenedByUserPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCustomPropertyUpdatedType",) +class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: None + dismissed_by: None + dismissed_reason: None + html_url: str + most_recent_instance: NotRequired[ + Union[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, + None, + ] + ] + number: int + rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType + state: 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__ = ( + "WebhookCodeScanningAlertReopenedByUserType", + "WebhookCodeScanningAlertReopenedByUserPropAlertType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", +) 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 e379882e8..bcab4ddcc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0487.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0487.py @@ -9,28 +9,104 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0116 import CustomPropertyValueType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyValuesUpdatedType(TypedDict): - """Custom property values updated event""" +class WebhookCommitCommentCreatedType(TypedDict): + """commit_comment created event""" - action: Literal["updated"] + action: Literal["created"] + comment: WebhookCommitCommentCreatedPropCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - organization: OrganizationSimpleWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - new_property_values: List[CustomPropertyValueType] - old_property_values: List[CustomPropertyValueType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookCustomPropertyValuesUpdatedType",) +class WebhookCommitCommentCreatedPropCommentType(TypedDict): + """WebhookCommitCommentCreatedPropComment + + The [commit comment](https://docs.github.com/enterprise- + cloud@latest//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] + + +__all__ = ( + "WebhookCommitCommentCreatedType", + "WebhookCommitCommentCreatedPropCommentType", + "WebhookCommitCommentCreatedPropCommentPropReactionsType", + "WebhookCommitCommentCreatedPropCommentPropUserType", +) 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 73342d5dd..cad8d2b5c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0488.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0488.py @@ -9,21 +9,23 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDeleteType(TypedDict): - """delete event""" +class WebhookCreateType(TypedDict): + """create event""" + description: Union[str, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + master_branch: str organization: NotRequired[OrganizationSimpleWebhooksType] pusher_type: str ref: str @@ -32,4 +34,4 @@ class WebhookDeleteType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDeleteType",) +__all__ = ("WebhookCreateType",) 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 6d7a95e78..26f50db54 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0489.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0489.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0255 import DependabotAlertType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0119 import OrgCustomPropertyType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertAutoDismissedType(TypedDict): - """Dependabot alert auto-dismissed event""" +class WebhookCustomPropertyCreatedType(TypedDict): + """custom property created event""" - action: Literal["auto_dismissed"] - alert: DependabotAlertType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["created"] + definition: OrgCustomPropertyType enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookDependabotAlertAutoDismissedType",) +__all__ = ("WebhookCustomPropertyCreatedType",) 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 7c51a22d2..c89451de4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0490.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0490.py @@ -12,24 +12,30 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0255 import DependabotAlertType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertAutoReopenedType(TypedDict): - """Dependabot alert auto-reopened event""" +class WebhookCustomPropertyDeletedType(TypedDict): + """custom property deleted event""" - action: Literal["auto_reopened"] - alert: DependabotAlertType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["deleted"] + definition: WebhookCustomPropertyDeletedPropDefinitionType enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str -__all__ = ("WebhookDependabotAlertAutoReopenedType",) +__all__ = ( + "WebhookCustomPropertyDeletedType", + "WebhookCustomPropertyDeletedPropDefinitionType", +) 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 033ccefab..8c25e8ae1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0491.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0491.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0255 import DependabotAlertType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0119 import OrgCustomPropertyType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertCreatedType(TypedDict): - """Dependabot alert created event""" +class WebhookCustomPropertyUpdatedType(TypedDict): + """custom property updated event""" - action: Literal["created"] - alert: DependabotAlertType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["updated"] + definition: OrgCustomPropertyType enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookDependabotAlertCreatedType",) +__all__ = ("WebhookCustomPropertyUpdatedType",) 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 258f2e7ac..7f0ed69d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0492.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0492.py @@ -9,27 +9,28 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0255 import DependabotAlertType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0120 import CustomPropertyValueType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertDismissedType(TypedDict): - """Dependabot alert dismissed event""" +class WebhookCustomPropertyValuesUpdatedType(TypedDict): + """Custom property values updated event""" - action: Literal["dismissed"] - alert: DependabotAlertType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + new_property_values: List[CustomPropertyValueType] + old_property_values: List[CustomPropertyValueType] -__all__ = ("WebhookDependabotAlertDismissedType",) +__all__ = ("WebhookCustomPropertyValuesUpdatedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0493.py b/githubkit/versions/ghec_v2022_11_28/types/group_0493.py index dc1be4c4f..5d59cf480 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0493.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0493.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0255 import DependabotAlertType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertFixedType(TypedDict): - """Dependabot alert fixed event""" +class WebhookDeleteType(TypedDict): + """delete event""" - action: Literal["fixed"] - alert: DependabotAlertType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] + pusher_type: str + ref: str + ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookDependabotAlertFixedType",) +__all__ = ("WebhookDeleteType",) 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 c63e342f4..f3b7e6ee5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0494.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0494.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0255 import DependabotAlertType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0259 import DependabotAlertType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertReintroducedType(TypedDict): - """Dependabot alert reintroduced event""" +class WebhookDependabotAlertAutoDismissedType(TypedDict): + """Dependabot alert auto-dismissed event""" - action: Literal["reintroduced"] + action: Literal["auto_dismissed"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertReintroducedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDependabotAlertReintroducedType",) +__all__ = ("WebhookDependabotAlertAutoDismissedType",) 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 c7a5f6947..dfdede19f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0495.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0495.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0255 import DependabotAlertType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0259 import DependabotAlertType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertReopenedType(TypedDict): - """Dependabot alert reopened event""" +class WebhookDependabotAlertAutoReopenedType(TypedDict): + """Dependabot alert auto-reopened event""" - action: Literal["reopened"] + action: Literal["auto_reopened"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertReopenedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDependabotAlertReopenedType",) +__all__ = ("WebhookDependabotAlertAutoReopenedType",) 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 f3ff75c76..09a2bbd33 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0496.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0496.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0412 import WebhooksDeployKeyType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0259 import DependabotAlertType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDeployKeyCreatedType(TypedDict): - """deploy_key created event""" +class WebhookDependabotAlertCreatedType(TypedDict): + """Dependabot alert created event""" action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookDeployKeyCreatedType",) +__all__ = ("WebhookDependabotAlertCreatedType",) 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 9bdf9c577..3611aca33 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0497.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0497.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0412 import WebhooksDeployKeyType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0259 import DependabotAlertType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDeployKeyDeletedType(TypedDict): - """deploy_key deleted event""" +class WebhookDependabotAlertDismissedType(TypedDict): + """Dependabot alert dismissed event""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["dismissed"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookDeployKeyDeletedType",) +__all__ = ("WebhookDependabotAlertDismissedType",) 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 999fffe5c..08f146828 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0498.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0498.py @@ -9,600 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0413 import WebhooksWorkflowType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0259 import DependabotAlertType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDeploymentCreatedType(TypedDict): - """deployment created event""" +class WebhookDependabotAlertFixedType(TypedDict): + """Dependabot alert fixed event""" - action: Literal["created"] - deployment: WebhookDeploymentCreatedPropDeploymentType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["fixed"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - 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[WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type, str] - 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] - - -class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type(TypedDict): - """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0""" - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "workflow_job", - "pull_request_review_thread", - "merge_queue_entry", - "secret_scanning_alert_location", - "merge_group", - ] - ] - ] - 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] - - -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] - - -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] - - -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__ = ( - "WebhookDeploymentCreatedType", - "WebhookDeploymentCreatedPropDeploymentType", - "WebhookDeploymentCreatedPropDeploymentPropCreatorType", - "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentCreatedPropWorkflowRunType", - "WebhookDeploymentCreatedPropWorkflowRunPropActorType", - "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookDependabotAlertFixedType",) 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 2dbb24093..5ddd20989 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0499.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0499.py @@ -9,30 +9,27 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0192 import DeploymentType -from .group_0319 import PullRequestType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0259 import DependabotAlertType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDeploymentProtectionRuleRequestedType(TypedDict): - """deployment protection rule requested event""" +class WebhookDependabotAlertReintroducedType(TypedDict): + """Dependabot alert reintroduced 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] + action: Literal["reintroduced"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - sender: NotRequired[SimpleUserWebhooksType] + organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) +__all__ = ("WebhookDependabotAlertReintroducedType",) 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 e72600701..3ac51d6dc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0500.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0500.py @@ -9,415 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0415 import WebhooksWorkflowJobRunType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0414 import WebhooksApproverType, WebhooksReviewersItemsType +from .group_0259 import DependabotAlertType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDeploymentReviewApprovedType(TypedDict): - """WebhookDeploymentReviewApproved""" +class WebhookDependabotAlertReopenedType(TypedDict): + """Dependabot alert reopened event""" - action: Literal["approved"] - approver: NotRequired[WebhooksApproverType] - comment: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reopened"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType - reviewers: NotRequired[List[WebhooksReviewersItemsType]] sender: SimpleUserWebhooksType - since: str - workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] - workflow_job_runs: NotRequired[ - List[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] - ] - workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, None] - - -class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - - conclusion: NotRequired[None] - created_at: NotRequired[str] - environment: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - status: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - display_title: str - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: List[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str -__all__ = ( - "WebhookDeploymentReviewApprovedType", - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookDependabotAlertReopenedType",) 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 d2b0a52d3..3e14dc445 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0501.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0501.py @@ -9,413 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0415 import WebhooksWorkflowJobRunType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0414 import WebhooksApproverType, WebhooksReviewersItemsType +from .group_0416 import WebhooksDeployKeyType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDeploymentReviewRejectedType(TypedDict): - """WebhookDeploymentReviewRejected""" +class WebhookDeployKeyCreatedType(TypedDict): + """deploy_key created event""" - action: Literal["rejected"] - approver: NotRequired[WebhooksApproverType] - comment: NotRequired[str] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + key: WebhooksDeployKeyType + organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - reviewers: NotRequired[List[WebhooksReviewersItemsType]] sender: SimpleUserWebhooksType - since: str - workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] - workflow_job_runs: NotRequired[ - List[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType] - ] - workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRunType, None] -class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - - conclusion: NotRequired[Union[str, None]] - created_at: NotRequired[str] - environment: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - status: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: List[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "waiting"] - triggering_actor: Union[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - display_title: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -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] - - -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] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -__all__ = ( - "WebhookDeploymentReviewRejectedType", - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookDeployKeyCreatedType",) 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 661aacd88..e0a5b2191 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0502.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0502.py @@ -9,448 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0416 import WebhooksUserType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0416 import WebhooksDeployKeyType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDeploymentReviewRequestedType(TypedDict): - """WebhookDeploymentReviewRequested""" +class WebhookDeployKeyDeletedType(TypedDict): + """deploy_key deleted event""" - action: Literal["requested"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] - environment: str installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + key: WebhooksDeployKeyType + organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - requestor: Union[WebhooksUserType, None] - reviewers: List[WebhookDeploymentReviewRequestedPropReviewersItemsType] sender: SimpleUserWebhooksType - since: str - workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRunType - workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRunType, None] -class WebhookDeploymentReviewRequestedPropWorkflowJobRunType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" - - conclusion: None - created_at: str - environment: str - html_url: str - id: int - name: Union[str, None] - status: str - updated_at: str - - -class WebhookDeploymentReviewRequestedPropReviewersItemsType(TypedDict): - """WebhookDeploymentReviewRequestedPropReviewersItems""" - - reviewer: NotRequired[ - Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, None] - ] - type: NotRequired[Literal["User", "Team"]] - - -class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -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] - - -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] - - -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] - - -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__ = ( - "WebhookDeploymentReviewRequestedType", - "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", - "WebhookDeploymentReviewRequestedPropReviewersItemsType", - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookDeployKeyDeletedType",) 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 952918796..db3cd2c9b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0503.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0503.py @@ -13,62 +13,29 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0413 import WebhooksWorkflowType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0417 import WebhooksWorkflowType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDeploymentStatusCreatedType(TypedDict): - """deployment_status created event""" +class WebhookDeploymentCreatedType(TypedDict): + """deployment created event""" action: Literal["created"] - check_run: NotRequired[Union[WebhookDeploymentStatusCreatedPropCheckRunType, None]] - deployment: WebhookDeploymentStatusCreatedPropDeploymentType - deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatusType + deployment: WebhookDeploymentCreatedPropDeploymentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - workflow: NotRequired[Union[WebhooksWorkflowType, None]] - workflow_run: NotRequired[ - Union[WebhookDeploymentStatusCreatedPropWorkflowRunType, None] - ] - + workflow: Union[WebhooksWorkflowType, None] + workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRunType, None] -class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): - """WebhookDeploymentStatusCreatedPropCheckRun""" - completed_at: Union[datetime, None] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - details_url: str - external_id: str - head_sha: str - html_url: str - id: int - name: str - node_id: str - started_at: datetime - status: Literal["queued", "in_progress", "completed", "waiting", "pending"] - url: str - - -class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): +class WebhookDeploymentCreatedPropDeploymentType(TypedDict): """Deployment The [deployment](https://docs.github.com/enterprise- @@ -76,20 +43,15 @@ class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): """ created_at: str - creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, None] + creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreatorType, None] description: Union[str, None] environment: str id: int node_id: str original_environment: str - payload: Union[ - str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, None - ] + payload: Union[WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type, str] performed_via_github_app: NotRequired[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, - None, - ] + Union[WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, None] ] production_environment: NotRequired[bool] ref: str @@ -102,7 +64,7 @@ class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): url: str -class WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType(TypedDict): +class WebhookDeploymentCreatedPropDeploymentPropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -128,13 +90,11 @@ class WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType(TypedDict): url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type(TypedDict): - """WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1""" +class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type(TypedDict): + """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0""" -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType( - TypedDict -): +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -193,227 +153,11 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", - "merge_queue_entry", "workflow_job", "pull_request_review_thread", - "secret_scanning_alert_location", - "merge_group", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", "merge_queue_entry", - "workflow_job", - "merge_group", "secret_scanning_alert_location", + "merge_group", ] ] ] @@ -423,17 +167,17 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, None, ] permissions: NotRequired[ - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType( +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( TypedDict ): """User""" @@ -461,11 +205,10 @@ class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAp url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType( +class WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP - ermissions + """WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -507,10 +250,10 @@ class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAp workflows: NotRequired[Literal["read", "write"]] -class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunType(TypedDict): """Deployment Workflow Run""" - actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, None] + actor: Union[WebhookDeploymentCreatedPropWorkflowRunPropActorType, None] artifacts_url: NotRequired[str] cancel_url: NotRequired[str] check_suite_id: int @@ -526,7 +269,6 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): "timed_out", "action_required", "stale", - "startup_failure", ], ] created_at: datetime @@ -535,7 +277,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): head_branch: str head_commit: NotRequired[None] head_repository: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType ] head_sha: str html_url: str @@ -547,19 +289,17 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): path: str previous_attempt_url: NotRequired[None] pull_requests: List[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType ] referenced_workflows: NotRequired[ Union[ List[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType + WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType ], None, ] ] - repository: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType - ] + repository: NotRequired[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType] rerun_url: NotRequired[str] run_attempt: int run_number: int @@ -567,8 +307,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): status: Literal[ "requested", "in_progress", "completed", "queued", "waiting", "pending" ] - triggering_actor: Union[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, None + triggering_actor: NotRequired[ + Union[WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, None] ] updated_at: datetime url: str @@ -576,7 +316,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunType(TypedDict): workflow_url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunPropActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -602,17 +342,17 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType(TypedDict): url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( +class WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems""" + """WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems""" path: str ref: NotRequired[str] sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -638,8 +378,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType(Typed url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -676,7 +416,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedD node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -691,10 +431,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType(TypedD url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -716,8 +454,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerTy url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" archive_url: NotRequired[str] assignees_url: NotRequired[str] @@ -754,7 +492,7 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict) node_id: NotRequired[str] notifications_url: NotRequired[str] owner: NotRequired[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType + WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType ] private: NotRequired[bool] pulls_url: NotRequired[str] @@ -769,10 +507,8 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType(TypedDict) url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" avatar_url: NotRequired[str] events_url: NotRequired[str] @@ -794,27 +530,29 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType( url: NotRequired[str] -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType(TypedDict): """Check Run Pull Request""" - base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType + base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType id: int number: int url: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" ref: str - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + repo: ( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + ) sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( TypedDict ): """Repo Ref""" @@ -824,17 +562,19 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase url: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType( TypedDict ): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" ref: str - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + repo: ( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + ) sha: str -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( TypedDict ): """Repo Ref""" @@ -845,30 +585,24 @@ class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead __all__ = ( - "WebhookDeploymentStatusCreatedType", - "WebhookDeploymentStatusCreatedPropCheckRunType", - "WebhookDeploymentStatusCreatedPropDeploymentType", - "WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookDeploymentCreatedType", + "WebhookDeploymentCreatedPropDeploymentType", + "WebhookDeploymentCreatedPropDeploymentPropCreatorType", + "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentCreatedPropWorkflowRunType", + "WebhookDeploymentCreatedPropWorkflowRunPropActorType", + "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ) 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 f35578b48..cad4c254f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0504.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0504.py @@ -9,29 +9,30 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0418 import DiscussionType -from .group_0417 import WebhooksAnswerType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0196 import DeploymentType +from .group_0323 import PullRequestType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDiscussionAnsweredType(TypedDict): - """discussion answered event""" +class WebhookDeploymentProtectionRuleRequestedType(TypedDict): + """deployment protection rule requested event""" - action: Literal["answered"] - answer: WebhooksAnswerType - discussion: DiscussionType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + action: Literal["requested"] + environment: NotRequired[str] + event: NotRequired[str] + deployment_callback_url: NotRequired[str] + deployment: NotRequired[DeploymentType] + pull_requests: NotRequired[List[PullRequestType]] + repository: NotRequired[RepositoryWebhooksType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + installation: NotRequired[SimpleInstallationType] + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookDiscussionAnsweredType",) +__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) 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 5777a6761..4ecb27c4d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0505.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0505.py @@ -9,61 +9,415 @@ from __future__ import annotations -from typing import Literal from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0418 import DiscussionType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0419 import WebhooksWorkflowJobRunType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0418 import WebhooksApproverType, WebhooksReviewersItemsType -class WebhookDiscussionCategoryChangedType(TypedDict): - """discussion category changed event""" +class WebhookDeploymentReviewApprovedType(TypedDict): + """WebhookDeploymentReviewApproved""" - action: Literal["category_changed"] - changes: WebhookDiscussionCategoryChangedPropChangesType - discussion: DiscussionType + action: Literal["approved"] + approver: NotRequired[WebhooksApproverType] + comment: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + reviewers: NotRequired[List[WebhooksReviewersItemsType]] sender: SimpleUserWebhooksType + since: str + workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] + workflow_job_runs: NotRequired[ + List[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] + ] + workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, None] -class WebhookDiscussionCategoryChangedPropChangesType(TypedDict): - """WebhookDiscussionCategoryChangedPropChanges""" +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - category: WebhookDiscussionCategoryChangedPropChangesPropCategoryType + conclusion: NotRequired[None] + created_at: NotRequired[str] + environment: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] -class WebhookDiscussionCategoryChangedPropChangesPropCategoryType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategory""" +class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" - from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] + created_at: datetime + display_title: str + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: List[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: Union[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] -class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): + """User""" - created_at: datetime - description: str - emoji: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - is_answerable: bool - name: str + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] - repository_id: int - slug: str - updated_at: str + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str __all__ = ( - "WebhookDiscussionCategoryChangedType", - "WebhookDiscussionCategoryChangedPropChangesType", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", + "WebhookDeploymentReviewApprovedType", + "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ) 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 88bdd9de7..838d4ebeb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0506.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0506.py @@ -9,27 +9,413 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0418 import DiscussionType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0419 import WebhooksWorkflowJobRunType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0418 import WebhooksApproverType, WebhooksReviewersItemsType -class WebhookDiscussionClosedType(TypedDict): - """discussion closed event""" +class WebhookDeploymentReviewRejectedType(TypedDict): + """WebhookDeploymentReviewRejected""" - action: Literal["closed"] - discussion: DiscussionType + action: Literal["rejected"] + approver: NotRequired[WebhooksApproverType] + comment: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + reviewers: NotRequired[List[WebhooksReviewersItemsType]] sender: SimpleUserWebhooksType + since: str + workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] + workflow_job_runs: NotRequired[ + List[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType] + ] + workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRunType, None] -__all__ = ("WebhookDiscussionClosedType",) +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" + + conclusion: NotRequired[Union[str, None]] + created_at: NotRequired[str] + environment: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] + created_at: datetime + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: List[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] + triggering_actor: Union[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + display_title: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +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] + + +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] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookDeploymentReviewRejectedType", + "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", +) 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 92a79c627..9eb0e0715 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0507.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0507.py @@ -9,29 +9,448 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0418 import DiscussionType -from .group_0419 import WebhooksCommentType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0420 import WebhooksUserType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDiscussionCommentCreatedType(TypedDict): - """discussion_comment created event""" +class WebhookDeploymentReviewRequestedType(TypedDict): + """WebhookDeploymentReviewRequested""" - action: Literal["created"] - comment: WebhooksCommentType - discussion: DiscussionType + action: Literal["requested"] enterprise: NotRequired[EnterpriseWebhooksType] + environment: str installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + requestor: Union[WebhooksUserType, None] + reviewers: List[WebhookDeploymentReviewRequestedPropReviewersItemsType] sender: SimpleUserWebhooksType + since: str + workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRunType + workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRunType, None] -__all__ = ("WebhookDiscussionCommentCreatedType",) +class WebhookDeploymentReviewRequestedPropWorkflowJobRunType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" + + conclusion: None + created_at: str + environment: str + html_url: str + id: int + name: Union[str, None] + status: str + updated_at: str + + +class WebhookDeploymentReviewRequestedPropReviewersItemsType(TypedDict): + """WebhookDeploymentReviewRequestedPropReviewersItems""" + + reviewer: NotRequired[ + Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, None] + ] + type: NotRequired[Literal["User", "Team"]] + + +class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +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] + + +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] + + +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] + + +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__ = ( + "WebhookDeploymentReviewRequestedType", + "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", + "WebhookDeploymentReviewRequestedPropReviewersItemsType", + "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", +) 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 46a3cb568..d91b673c9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0508.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0508.py @@ -9,29 +9,866 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0418 import DiscussionType -from .group_0419 import WebhooksCommentType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0417 import WebhooksWorkflowType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDiscussionCommentDeletedType(TypedDict): - """discussion_comment deleted event""" +class WebhookDeploymentStatusCreatedType(TypedDict): + """deployment_status created event""" - action: Literal["deleted"] - comment: WebhooksCommentType - discussion: DiscussionType + action: Literal["created"] + check_run: NotRequired[Union[WebhookDeploymentStatusCreatedPropCheckRunType, None]] + deployment: WebhookDeploymentStatusCreatedPropDeploymentType + deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatusType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType + workflow: NotRequired[Union[WebhooksWorkflowType, None]] + workflow_run: NotRequired[ + Union[WebhookDeploymentStatusCreatedPropWorkflowRunType, None] + ] -__all__ = ("WebhookDiscussionCommentDeletedType",) +class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): + """WebhookDeploymentStatusCreatedPropCheckRun""" + + completed_at: Union[datetime, None] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] + details_url: str + external_id: str + head_sha: str + html_url: str + id: int + name: str + node_id: str + started_at: datetime + status: Literal["queued", "in_progress", "completed", "waiting", "pending"] + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): + """Deployment + + The [deployment](https://docs.github.com/enterprise- + cloud@latest//rest/deployments/deployments#list-deployments). + """ + + created_at: str + creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, None] + description: Union[str, None] + environment: str + id: int + node_id: str + original_environment: str + payload: Union[ + str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, None + ] + performed_via_github_app: NotRequired[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, + None, + ] + ] + production_environment: NotRequired[bool] + ref: str + repository_url: str + sha: str + statuses_url: str + task: str + transient_environment: NotRequired[bool] + updated_at: str + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type(TypedDict): + """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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "merge_queue_entry", + "workflow_job", + "pull_request_review_thread", + "secret_scanning_alert_location", + "merge_group", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "merge_queue_entry", + "workflow_job", + "merge_group", + "secret_scanning_alert_location", + ] + ] + ] + 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] + + +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] + + +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] + + +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__ = ( + "WebhookDeploymentStatusCreatedType", + "WebhookDeploymentStatusCreatedPropCheckRunType", + "WebhookDeploymentStatusCreatedPropDeploymentType", + "WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", +) 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 020d64326..47d3b9d5d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0509.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0509.py @@ -12,21 +12,20 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0418 import DiscussionType -from .group_0419 import WebhooksCommentType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0422 import DiscussionType +from .group_0421 import WebhooksAnswerType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDiscussionCommentEditedType(TypedDict): - """discussion_comment edited event""" +class WebhookDiscussionAnsweredType(TypedDict): + """discussion answered event""" - action: Literal["edited"] - changes: WebhookDiscussionCommentEditedPropChangesType - comment: WebhooksCommentType + action: Literal["answered"] + answer: WebhooksAnswerType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -35,20 +34,4 @@ class WebhookDiscussionCommentEditedType(TypedDict): sender: SimpleUserWebhooksType -class WebhookDiscussionCommentEditedPropChangesType(TypedDict): - """WebhookDiscussionCommentEditedPropChanges""" - - body: WebhookDiscussionCommentEditedPropChangesPropBodyType - - -class WebhookDiscussionCommentEditedPropChangesPropBodyType(TypedDict): - """WebhookDiscussionCommentEditedPropChangesPropBody""" - - from_: str - - -__all__ = ( - "WebhookDiscussionCommentEditedType", - "WebhookDiscussionCommentEditedPropChangesType", - "WebhookDiscussionCommentEditedPropChangesPropBodyType", -) +__all__ = ("WebhookDiscussionAnsweredType",) 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 afeeebfbb..9bb2990c4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0510.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0510.py @@ -10,20 +10,22 @@ from __future__ import annotations from typing import Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -from .group_0418 import DiscussionType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0422 import DiscussionType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDiscussionCreatedType(TypedDict): - """discussion created event""" +class WebhookDiscussionCategoryChangedType(TypedDict): + """discussion category changed event""" - action: Literal["created"] + action: Literal["category_changed"] + changes: WebhookDiscussionCategoryChangedPropChangesType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +34,36 @@ class WebhookDiscussionCreatedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionCreatedType",) +class WebhookDiscussionCategoryChangedPropChangesType(TypedDict): + """WebhookDiscussionCategoryChangedPropChanges""" + + category: WebhookDiscussionCategoryChangedPropChangesPropCategoryType + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryType(TypedDict): + """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + + from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType(TypedDict): + """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + + created_at: datetime + description: str + emoji: str + id: int + is_answerable: bool + name: str + node_id: NotRequired[str] + repository_id: int + slug: str + updated_at: str + + +__all__ = ( + "WebhookDiscussionCategoryChangedType", + "WebhookDiscussionCategoryChangedPropChangesType", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", +) 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 5d801b74f..30285ff00 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0511.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0511.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0418 import DiscussionType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0422 import DiscussionType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDiscussionDeletedType(TypedDict): - """discussion deleted event""" +class WebhookDiscussionClosedType(TypedDict): + """discussion closed event""" - action: Literal["deleted"] + action: Literal["closed"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionDeletedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionDeletedType",) +__all__ = ("WebhookDiscussionClosedType",) 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 58f03fe8f..0cf54fb4f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0512.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0512.py @@ -12,19 +12,20 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0418 import DiscussionType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0422 import DiscussionType +from .group_0423 import WebhooksCommentType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDiscussionEditedType(TypedDict): - """discussion edited event""" +class WebhookDiscussionCommentCreatedType(TypedDict): + """discussion_comment created event""" - action: Literal["edited"] - changes: NotRequired[WebhookDiscussionEditedPropChangesType] + action: Literal["created"] + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -33,28 +34,4 @@ class WebhookDiscussionEditedType(TypedDict): sender: SimpleUserWebhooksType -class WebhookDiscussionEditedPropChangesType(TypedDict): - """WebhookDiscussionEditedPropChanges""" - - body: NotRequired[WebhookDiscussionEditedPropChangesPropBodyType] - title: NotRequired[WebhookDiscussionEditedPropChangesPropTitleType] - - -class WebhookDiscussionEditedPropChangesPropBodyType(TypedDict): - """WebhookDiscussionEditedPropChangesPropBody""" - - from_: str - - -class WebhookDiscussionEditedPropChangesPropTitleType(TypedDict): - """WebhookDiscussionEditedPropChangesPropTitle""" - - from_: str - - -__all__ = ( - "WebhookDiscussionEditedType", - "WebhookDiscussionEditedPropChangesType", - "WebhookDiscussionEditedPropChangesPropBodyType", - "WebhookDiscussionEditedPropChangesPropTitleType", -) +__all__ = ("WebhookDiscussionCommentCreatedType",) 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 bc8d0c1e5..899717c3b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0513.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0513.py @@ -12,26 +12,26 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0418 import DiscussionType -from .group_0420 import WebhooksLabelType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0422 import DiscussionType +from .group_0423 import WebhooksCommentType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDiscussionLabeledType(TypedDict): - """discussion labeled event""" +class WebhookDiscussionCommentDeletedType(TypedDict): + """discussion_comment deleted event""" - action: Literal["labeled"] + action: Literal["deleted"] + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionLabeledType",) +__all__ = ("WebhookDiscussionCommentDeletedType",) 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 d28908663..c9f4f63cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0514.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0514.py @@ -12,18 +12,21 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0418 import DiscussionType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0422 import DiscussionType +from .group_0423 import WebhooksCommentType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDiscussionLockedType(TypedDict): - """discussion locked event""" +class WebhookDiscussionCommentEditedType(TypedDict): + """discussion_comment edited event""" - action: Literal["locked"] + action: Literal["edited"] + changes: WebhookDiscussionCommentEditedPropChangesType + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +35,20 @@ class WebhookDiscussionLockedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionLockedType",) +class WebhookDiscussionCommentEditedPropChangesType(TypedDict): + """WebhookDiscussionCommentEditedPropChanges""" + + body: WebhookDiscussionCommentEditedPropChangesPropBodyType + + +class WebhookDiscussionCommentEditedPropChangesPropBodyType(TypedDict): + """WebhookDiscussionCommentEditedPropChangesPropBody""" + + from_: str + + +__all__ = ( + "WebhookDiscussionCommentEditedType", + "WebhookDiscussionCommentEditedPropChangesType", + "WebhookDiscussionCommentEditedPropChangesPropBodyType", +) 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 9f2c61a82..ba938e327 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0515.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0515.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0418 import DiscussionType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0422 import DiscussionType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDiscussionPinnedType(TypedDict): - """discussion pinned event""" +class WebhookDiscussionCreatedType(TypedDict): + """discussion created event""" - action: Literal["pinned"] + action: Literal["created"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionPinnedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionPinnedType",) +__all__ = ("WebhookDiscussionCreatedType",) 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 302813072..a923f1adb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0516.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0516.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0418 import DiscussionType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0422 import DiscussionType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDiscussionReopenedType(TypedDict): - """discussion reopened event""" +class WebhookDiscussionDeletedType(TypedDict): + """discussion deleted event""" - action: Literal["reopened"] + action: Literal["deleted"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionReopenedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionReopenedType",) +__all__ = ("WebhookDiscussionDeletedType",) 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 cc82d2e13..d61e53bb4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0517.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0517.py @@ -12,20 +12,19 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0418 import DiscussionType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0518 import WebhookDiscussionTransferredPropChangesType +from .group_0422 import DiscussionType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDiscussionTransferredType(TypedDict): - """discussion transferred event""" +class WebhookDiscussionEditedType(TypedDict): + """discussion edited event""" - action: Literal["transferred"] - changes: WebhookDiscussionTransferredPropChangesType + action: Literal["edited"] + changes: NotRequired[WebhookDiscussionEditedPropChangesType] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,4 +33,28 @@ class WebhookDiscussionTransferredType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionTransferredType",) +class WebhookDiscussionEditedPropChangesType(TypedDict): + """WebhookDiscussionEditedPropChanges""" + + body: NotRequired[WebhookDiscussionEditedPropChangesPropBodyType] + title: NotRequired[WebhookDiscussionEditedPropChangesPropTitleType] + + +class WebhookDiscussionEditedPropChangesPropBodyType(TypedDict): + """WebhookDiscussionEditedPropChangesPropBody""" + + from_: str + + +class WebhookDiscussionEditedPropChangesPropTitleType(TypedDict): + """WebhookDiscussionEditedPropChangesPropTitle""" + + from_: str + + +__all__ = ( + "WebhookDiscussionEditedType", + "WebhookDiscussionEditedPropChangesType", + "WebhookDiscussionEditedPropChangesPropBodyType", + "WebhookDiscussionEditedPropChangesPropTitleType", +) 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 99fb12b51..eb3ecc44d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0518.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0518.py @@ -9,17 +9,29 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -from .group_0418 import DiscussionType -from .group_0405 import RepositoryWebhooksType +from .group_0422 import DiscussionType +from .group_0424 import WebhooksLabelType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDiscussionTransferredPropChangesType(TypedDict): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionLabeledType(TypedDict): + """discussion labeled event""" - new_discussion: DiscussionType - new_repository: RepositoryWebhooksType + action: Literal["labeled"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: WebhooksLabelType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionTransferredPropChangesType",) +__all__ = ("WebhookDiscussionLabeledType",) 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 5e48efed7..469a27bf6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0519.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0519.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0418 import DiscussionType -from .group_0417 import WebhooksAnswerType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0422 import DiscussionType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDiscussionUnansweredType(TypedDict): - """discussion unanswered event""" +class WebhookDiscussionLockedType(TypedDict): + """discussion locked event""" - action: Literal["unanswered"] + action: Literal["locked"] discussion: DiscussionType - old_answer: WebhooksAnswerType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionUnansweredType",) +__all__ = ("WebhookDiscussionLockedType",) 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 8cdc018b3..b02406df6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0520.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0520.py @@ -12,26 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0418 import DiscussionType -from .group_0420 import WebhooksLabelType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0422 import DiscussionType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDiscussionUnlabeledType(TypedDict): - """discussion unlabeled event""" +class WebhookDiscussionPinnedType(TypedDict): + """discussion pinned event""" - action: Literal["unlabeled"] + action: Literal["pinned"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionUnlabeledType",) +__all__ = ("WebhookDiscussionPinnedType",) 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 8a8907f45..ec30c4104 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0521.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0521.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0418 import DiscussionType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0422 import DiscussionType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookDiscussionUnlockedType(TypedDict): - """discussion unlocked event""" +class WebhookDiscussionReopenedType(TypedDict): + """discussion reopened event""" - action: Literal["unlocked"] + action: Literal["reopened"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionUnlockedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionUnlockedType",) +__all__ = ("WebhookDiscussionReopenedType",) 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 73f9cba90..e1d24438e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0522.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0522.py @@ -12,18 +12,20 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0418 import DiscussionType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0422 import DiscussionType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0523 import WebhookDiscussionTransferredPropChangesType -class WebhookDiscussionUnpinnedType(TypedDict): - """discussion unpinned event""" +class WebhookDiscussionTransferredType(TypedDict): + """discussion transferred event""" - action: Literal["unpinned"] + action: Literal["transferred"] + changes: WebhookDiscussionTransferredPropChangesType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +34,4 @@ class WebhookDiscussionUnpinnedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionUnpinnedType",) +__all__ = ("WebhookDiscussionTransferredType",) 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 12d623191..dbedbbc8b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0523.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0523.py @@ -9,28 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0524 import WebhookForkPropForkeeType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0422 import DiscussionType +from .group_0409 import RepositoryWebhooksType -class WebhookForkType(TypedDict): - """fork event +class WebhookDiscussionTransferredPropChangesType(TypedDict): + """WebhookDiscussionTransferredPropChanges""" - A user forks a repository. - """ + new_discussion: DiscussionType + new_repository: RepositoryWebhooksType - enterprise: NotRequired[EnterpriseWebhooksType] - forkee: WebhookForkPropForkeeType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -__all__ = ("WebhookForkType",) +__all__ = ("WebhookDiscussionTransferredPropChangesType",) 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 d7f995f2f..5e03468b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0524.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0524.py @@ -9,150 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0526 import WebhookForkPropForkeeAllof0PropPermissionsType +from .group_0422 import DiscussionType +from .group_0421 import WebhooksAnswerType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookForkPropForkeeType(TypedDict): - """WebhookForkPropForkee +class WebhookDiscussionUnansweredType(TypedDict): + """discussion unanswered event""" - The created [`repository`](https://docs.github.com/enterprise- - cloud@latest//rest/repos/repos#get-a-repository) resource. - """ + action: Literal["unanswered"] + discussion: DiscussionType + old_answer: WebhooksAnswerType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: 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] - - -__all__ = ( - "WebhookForkPropForkeeType", - "WebhookForkPropForkeeMergedLicenseType", - "WebhookForkPropForkeeMergedOwnerType", -) +__all__ = ("WebhookDiscussionUnansweredType",) 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 5c7fac87b..d748769a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0525.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0525.py @@ -9,149 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0526 import WebhookForkPropForkeeAllof0PropPermissionsType +from .group_0422 import DiscussionType +from .group_0424 import WebhooksLabelType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookForkPropForkeeAllof0Type(TypedDict): - """Repository +class WebhookDiscussionUnlabeledType(TypedDict): + """discussion unlabeled event""" - A git repository - """ + action: Literal["unlabeled"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: WebhooksLabelType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookForkPropForkeeAllof0PropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookForkPropForkeeAllof0PropOwnerType, None] - permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - -class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookForkPropForkeeAllof0PropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookForkPropForkeeAllof0Type", - "WebhookForkPropForkeeAllof0PropLicenseType", - "WebhookForkPropForkeeAllof0PropOwnerType", -) +__all__ = ("WebhookDiscussionUnlabeledType",) 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 5c9207b34..17e55944c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0526.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0526.py @@ -9,17 +9,27 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0422 import DiscussionType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): - """WebhookForkPropForkeeAllof0PropPermissions""" - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] +class WebhookDiscussionUnlockedType(TypedDict): + """discussion unlocked event""" + action: Literal["unlocked"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookForkPropForkeeAllof0PropPermissionsType",) + +__all__ = ("WebhookDiscussionUnlockedType",) 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 087ca178e..865a7ae0d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0527.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0527.py @@ -9,122 +9,27 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0422 import DiscussionType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookForkPropForkeeAllof1Type(TypedDict): - """WebhookForkPropForkeeAllof1""" - allow_forking: NotRequired[bool] - archive_url: NotRequired[str] - archived: NotRequired[bool] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - clone_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - created_at: NotRequired[str] - default_branch: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - disabled: NotRequired[bool] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[Literal[True]] - forks: NotRequired[int] - forks_count: NotRequired[int] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - git_url: NotRequired[str] - has_downloads: NotRequired[bool] - has_issues: NotRequired[bool] - has_pages: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - homepage: NotRequired[Union[str, None]] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - is_template: NotRequired[bool] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - language: NotRequired[None] - languages_url: NotRequired[str] - license_: NotRequired[Union[WebhookForkPropForkeeAllof1PropLicenseType, None]] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - mirror_url: NotRequired[None] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - open_issues: NotRequired[int] - open_issues_count: NotRequired[int] - owner: NotRequired[WebhookForkPropForkeeAllof1PropOwnerType] - private: NotRequired[bool] - public: NotRequired[bool] - pulls_url: NotRequired[str] - pushed_at: NotRequired[str] - releases_url: NotRequired[str] - size: NotRequired[int] - ssh_url: NotRequired[str] - stargazers_count: NotRequired[int] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - svn_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - topics: NotRequired[List[Union[str, None]]] - trees_url: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - visibility: NotRequired[str] - watchers: NotRequired[int] - watchers_count: NotRequired[int] +class WebhookDiscussionUnpinnedType(TypedDict): + """discussion unpinned event""" + action: Literal["unpinned"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): - """WebhookForkPropForkeeAllof1PropLicense""" - -class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): - """WebhookForkPropForkeeAllof1PropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookForkPropForkeeAllof1Type", - "WebhookForkPropForkeeAllof1PropLicenseType", - "WebhookForkPropForkeeAllof1PropOwnerType", -) +__all__ = ("WebhookDiscussionUnpinnedType",) 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 58ed45632..f464b2e71 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0528.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0528.py @@ -9,17 +9,28 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0406 import SimpleUserWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0529 import WebhookForkPropForkeeType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookGithubAppAuthorizationRevokedType(TypedDict): - """github_app_authorization revoked event""" +class WebhookForkType(TypedDict): + """fork event - action: Literal["revoked"] + A user forks a repository. + """ + + enterprise: NotRequired[EnterpriseWebhooksType] + forkee: WebhookForkPropForkeeType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookGithubAppAuthorizationRevokedType",) +__all__ = ("WebhookForkType",) 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 01c047a5f..e916087d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0529.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0529.py @@ -9,39 +9,150 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0531 import WebhookForkPropForkeeAllof0PropPermissionsType -class WebhookGollumType(TypedDict): - """gollum event""" +class WebhookForkPropForkeeType(TypedDict): + """WebhookForkPropForkee - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - pages: List[WebhookGollumPropPagesItemsType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + The created [`repository`](https://docs.github.com/enterprise- + cloud@latest//rest/repos/repos#get-a-repository) resource. + """ + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: datetime + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[Union[str, None], None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: Literal[True] + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[Union[str, None], None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[None, None] + languages_url: str + license_: Union[WebhookForkPropForkeeMergedLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[None, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: WebhookForkPropForkeeMergedOwnerType + permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: datetime + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookGollumPropPagesItemsType(TypedDict): - """WebhookGollumPropPagesItems""" - action: Literal["created", "edited"] - html_url: str - page_name: str - sha: str - summary: Union[str, None] - title: str +class WebhookForkPropForkeeMergedLicenseType(TypedDict): + """WebhookForkPropForkeeMergedLicense""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookForkPropForkeeMergedOwnerType(TypedDict): + """WebhookForkPropForkeeMergedOwner""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookGollumType", - "WebhookGollumPropPagesItemsType", + "WebhookForkPropForkeeType", + "WebhookForkPropForkeeMergedLicenseType", + "WebhookForkPropForkeeMergedOwnerType", ) 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 ad7424b74..82811a794 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0530.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0530.py @@ -9,29 +9,149 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0015 import InstallationType -from .group_0416 import WebhooksUserType -from .group_0402 import EnterpriseWebhooksType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0421 import WebhooksRepositoriesItemsType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0531 import WebhookForkPropForkeeAllof0PropPermissionsType -class WebhookInstallationCreatedType(TypedDict): - """installation created event""" +class WebhookForkPropForkeeAllof0Type(TypedDict): + """Repository - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[List[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[Union[WebhooksUserType, None]] - sender: SimpleUserWebhooksType + A git repository + """ + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookForkPropForkeeAllof0PropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookForkPropForkeeAllof0PropOwnerType, None] + permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -__all__ = ("WebhookInstallationCreatedType",) + +class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookForkPropForkeeAllof0PropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookForkPropForkeeAllof0Type", + "WebhookForkPropForkeeAllof0PropLicenseType", + "WebhookForkPropForkeeAllof0PropOwnerType", +) 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 b7b9f5a18..5c9207b34 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0531.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0531.py @@ -9,28 +9,17 @@ from __future__ import annotations -from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0015 import InstallationType -from .group_0402 import EnterpriseWebhooksType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0421 import WebhooksRepositoriesItemsType -from .group_0404 import OrganizationSimpleWebhooksType +class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): + """WebhookForkPropForkeeAllof0PropPermissions""" -class WebhookInstallationDeletedType(TypedDict): - """installation deleted event""" + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[List[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] - sender: SimpleUserWebhooksType - -__all__ = ("WebhookInstallationDeletedType",) +__all__ = ("WebhookForkPropForkeeAllof0PropPermissionsType",) 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 f760db3fc..087ca178e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0532.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0532.py @@ -9,28 +9,122 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0015 import InstallationType -from .group_0402 import EnterpriseWebhooksType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0421 import WebhooksRepositoriesItemsType -from .group_0404 import OrganizationSimpleWebhooksType +class WebhookForkPropForkeeAllof1Type(TypedDict): + """WebhookForkPropForkeeAllof1""" -class WebhookInstallationNewPermissionsAcceptedType(TypedDict): - """installation new_permissions_accepted event""" + allow_forking: NotRequired[bool] + archive_url: NotRequired[str] + archived: NotRequired[bool] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + clone_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + created_at: NotRequired[str] + default_branch: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + disabled: NotRequired[bool] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[Literal[True]] + forks: NotRequired[int] + forks_count: NotRequired[int] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + git_url: NotRequired[str] + has_downloads: NotRequired[bool] + has_issues: NotRequired[bool] + has_pages: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + homepage: NotRequired[Union[str, None]] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + is_template: NotRequired[bool] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + language: NotRequired[None] + languages_url: NotRequired[str] + license_: NotRequired[Union[WebhookForkPropForkeeAllof1PropLicenseType, None]] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + mirror_url: NotRequired[None] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + open_issues: NotRequired[int] + open_issues_count: NotRequired[int] + owner: NotRequired[WebhookForkPropForkeeAllof1PropOwnerType] + private: NotRequired[bool] + public: NotRequired[bool] + pulls_url: NotRequired[str] + pushed_at: NotRequired[str] + releases_url: NotRequired[str] + size: NotRequired[int] + ssh_url: NotRequired[str] + stargazers_count: NotRequired[int] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + svn_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + topics: NotRequired[List[Union[str, None]]] + trees_url: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + visibility: NotRequired[str] + watchers: NotRequired[int] + watchers_count: NotRequired[int] - action: Literal["new_permissions_accepted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[List[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] - sender: SimpleUserWebhooksType +class WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): + """WebhookForkPropForkeeAllof1PropLicense""" -__all__ = ("WebhookInstallationNewPermissionsAcceptedType",) + +class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): + """WebhookForkPropForkeeAllof1PropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookForkPropForkeeAllof1Type", + "WebhookForkPropForkeeAllof1PropLicenseType", + "WebhookForkPropForkeeAllof1PropOwnerType", +) 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 e6343752b..ee1cf6292 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0533.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0533.py @@ -9,46 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0015 import InstallationType -from .group_0416 import WebhooksUserType -from .group_0402 import EnterpriseWebhooksType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0422 import WebhooksRepositoriesAddedItemsType - - -class WebhookInstallationRepositoriesAddedType(TypedDict): - """installation_repositories added event""" - - action: Literal["added"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories_added: List[WebhooksRepositoriesAddedItemsType] - repositories_removed: List[ - WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType - ] - repository: NotRequired[RepositoryWebhooksType] - repository_selection: Literal["all", "selected"] - requester: Union[WebhooksUserType, None] - sender: SimpleUserWebhooksType +from typing import Literal +from typing_extensions import TypedDict + +from .group_0410 import SimpleUserWebhooksType -class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType(TypedDict): - """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" +class WebhookGithubAppAuthorizationRevokedType(TypedDict): + """github_app_authorization revoked event""" - full_name: NotRequired[str] - id: NotRequired[int] - name: NotRequired[str] - node_id: NotRequired[str] - private: NotRequired[bool] + action: Literal["revoked"] + sender: SimpleUserWebhooksType -__all__ = ( - "WebhookInstallationRepositoriesAddedType", - "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", -) +__all__ = ("WebhookGithubAppAuthorizationRevokedType",) 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 3e6148ad7..e5d014d05 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0534.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0534.py @@ -12,43 +12,36 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0015 import InstallationType -from .group_0416 import WebhooksUserType -from .group_0402 import EnterpriseWebhooksType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0422 import WebhooksRepositoriesAddedItemsType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookInstallationRepositoriesRemovedType(TypedDict): - """installation_repositories removed event""" +class WebhookGollumType(TypedDict): + """gollum event""" - action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repositories_added: List[WebhooksRepositoriesAddedItemsType] - repositories_removed: List[ - WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType - ] - repository: NotRequired[RepositoryWebhooksType] - repository_selection: Literal["all", "selected"] - requester: Union[WebhooksUserType, None] + pages: List[WebhookGollumPropPagesItemsType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): - """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" +class WebhookGollumPropPagesItemsType(TypedDict): + """WebhookGollumPropPagesItems""" - full_name: str - id: int - name: str - node_id: str - private: bool + action: Literal["created", "edited"] + html_url: str + page_name: str + sha: str + summary: Union[str, None] + title: str __all__ = ( - "WebhookInstallationRepositoriesRemovedType", - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", + "WebhookGollumType", + "WebhookGollumPropPagesItemsType", ) 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 75333a6ae..204853a32 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0535.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0535.py @@ -9,28 +9,29 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0015 import InstallationType -from .group_0402 import EnterpriseWebhooksType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0421 import WebhooksRepositoriesItemsType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0420 import WebhooksUserType +from .group_0406 import EnterpriseWebhooksType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0425 import WebhooksRepositoriesItemsType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookInstallationSuspendType(TypedDict): - """installation suspend event""" +class WebhookInstallationCreatedType(TypedDict): + """installation created event""" - action: Literal["suspend"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] repositories: NotRequired[List[WebhooksRepositoriesItemsType]] repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] + requester: NotRequired[Union[WebhooksUserType, None]] sender: SimpleUserWebhooksType -__all__ = ("WebhookInstallationSuspendType",) +__all__ = ("WebhookInstallationCreatedType",) 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 ee259a3db..c2287a7a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0536.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0536.py @@ -9,94 +9,28 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0015 import InstallationType +from .group_0406 import EnterpriseWebhooksType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0425 import WebhooksRepositoriesItemsType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookInstallationTargetRenamedType(TypedDict): - """WebhookInstallationTargetRenamed""" +class WebhookInstallationDeletedType(TypedDict): + """installation deleted event""" - account: WebhookInstallationTargetRenamedPropAccountType - action: Literal["renamed"] - changes: WebhookInstallationTargetRenamedPropChangesType + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType + installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[List[WebhooksRepositoriesItemsType]] repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] - target_type: str + requester: NotRequired[None] + sender: SimpleUserWebhooksType -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] - - -class WebhookInstallationTargetRenamedPropChangesType(TypedDict): - """WebhookInstallationTargetRenamedPropChanges""" - - login: NotRequired[WebhookInstallationTargetRenamedPropChangesPropLoginType] - slug: NotRequired[WebhookInstallationTargetRenamedPropChangesPropSlugType] - - -class WebhookInstallationTargetRenamedPropChangesPropLoginType(TypedDict): - """WebhookInstallationTargetRenamedPropChangesPropLogin""" - - from_: str - - -class WebhookInstallationTargetRenamedPropChangesPropSlugType(TypedDict): - """WebhookInstallationTargetRenamedPropChangesPropSlug""" - - from_: str - - -__all__ = ( - "WebhookInstallationTargetRenamedType", - "WebhookInstallationTargetRenamedPropAccountType", - "WebhookInstallationTargetRenamedPropChangesType", - "WebhookInstallationTargetRenamedPropChangesPropLoginType", - "WebhookInstallationTargetRenamedPropChangesPropSlugType", -) +__all__ = ("WebhookInstallationDeletedType",) 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 39bd38832..7ef67ce02 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0537.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0537.py @@ -13,17 +13,17 @@ from typing_extensions import TypedDict, NotRequired from .group_0015 import InstallationType -from .group_0402 import EnterpriseWebhooksType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0421 import WebhooksRepositoriesItemsType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0425 import WebhooksRepositoriesItemsType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookInstallationUnsuspendType(TypedDict): - """installation unsuspend event""" +class WebhookInstallationNewPermissionsAcceptedType(TypedDict): + """installation new_permissions_accepted event""" - action: Literal["unsuspend"] + action: Literal["new_permissions_accepted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] @@ -33,4 +33,4 @@ class WebhookInstallationUnsuspendType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookInstallationUnsuspendType",) +__all__ = ("WebhookInstallationNewPermissionsAcceptedType",) 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 11ffeb2f9..335b64c26 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0538.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0538.py @@ -9,29 +9,46 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0540 import WebhookIssueCommentCreatedPropIssueType -from .group_0539 import WebhookIssueCommentCreatedPropCommentType +from .group_0015 import InstallationType +from .group_0420 import WebhooksUserType +from .group_0406 import EnterpriseWebhooksType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0426 import WebhooksRepositoriesAddedItemsType -class WebhookIssueCommentCreatedType(TypedDict): - """issue_comment created event""" +class WebhookInstallationRepositoriesAddedType(TypedDict): + """installation_repositories added event""" - action: Literal["created"] - comment: WebhookIssueCommentCreatedPropCommentType + action: Literal["added"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentCreatedPropIssueType + installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repositories_added: List[WebhooksRepositoriesAddedItemsType] + repositories_removed: List[ + WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType + ] + repository: NotRequired[RepositoryWebhooksType] + repository_selection: Literal["all", "selected"] + requester: Union[WebhooksUserType, None] sender: SimpleUserWebhooksType -__all__ = ("WebhookIssueCommentCreatedType",) +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" + + full_name: NotRequired[str] + id: NotRequired[int] + name: NotRequired[str] + node_id: NotRequired[str] + private: NotRequired[bool] + + +__all__ = ( + "WebhookInstallationRepositoriesAddedType", + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", +) 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 b0387b6b6..a20a0c767 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0539.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0539.py @@ -9,86 +9,46 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0006 import IntegrationType - - -class WebhookIssueCommentCreatedPropCommentType(TypedDict): - """issue comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/issues/comments#get-an-issue-comment) itself. - """ - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", +from .group_0015 import InstallationType +from .group_0420 import WebhooksUserType +from .group_0406 import EnterpriseWebhooksType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0426 import WebhooksRepositoriesAddedItemsType + + +class WebhookInstallationRepositoriesRemovedType(TypedDict): + """installation_repositories removed event""" + + action: Literal["removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories_added: List[WebhooksRepositoriesAddedItemsType] + repositories_removed: List[ + WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType ] - body: str - created_at: datetime - html_url: str - id: int - issue_url: str - node_id: str - performed_via_github_app: Union[None, IntegrationType, None] - reactions: WebhookIssueCommentCreatedPropCommentPropReactionsType - updated_at: datetime - url: str - user: Union[WebhookIssueCommentCreatedPropCommentPropUserType, None] - - -class WebhookIssueCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" + repository: NotRequired[RepositoryWebhooksType] + repository_selection: Literal["all", "selected"] + requester: Union[WebhooksUserType, None] + sender: SimpleUserWebhooksType - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" -class WebhookIssueCommentCreatedPropCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + full_name: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + name: str + node_id: str + private: bool __all__ = ( - "WebhookIssueCommentCreatedPropCommentType", - "WebhookIssueCommentCreatedPropCommentPropReactionsType", - "WebhookIssueCommentCreatedPropCommentPropUserType", + "WebhookInstallationRepositoriesRemovedType", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", ) 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 a074e1ea0..0b02c92f1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0540.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0540.py @@ -9,147 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0548 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType -from .group_0549 import ( - WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, -) -from .group_0542 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, -) +from .group_0015 import InstallationType +from .group_0406 import EnterpriseWebhooksType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0425 import WebhooksRepositoriesItemsType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookIssueCommentCreatedPropIssueType(TypedDict): - """WebhookIssueCommentCreatedPropIssue +class WebhookInstallationSuspendType(TypedDict): + """installation suspend event""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. - """ + action: Literal["suspend"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[List[WebhooksRepositoriesItemsType]] + repository: NotRequired[RepositoryWebhooksType] + requester: NotRequired[None] + sender: SimpleUserWebhooksType - 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 - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssueCommentCreatedPropIssueMergedUserType - -class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -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] - - -__all__ = ( - "WebhookIssueCommentCreatedPropIssueType", - "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", - "WebhookIssueCommentCreatedPropIssueMergedReactionsType", - "WebhookIssueCommentCreatedPropIssueMergedUserType", -) +__all__ = ("WebhookInstallationSuspendType",) 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 ae29dbf9c..e018f7d98 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0541.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0541.py @@ -9,153 +9,94 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0544 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType -from .group_0546 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0542 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, -) +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -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 - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUserType, None] - - -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] +class WebhookInstallationTargetRenamedType(TypedDict): + """WebhookInstallationTargetRenamed""" + + account: WebhookInstallationTargetRenamedPropAccountType + action: Literal["renamed"] + changes: WebhookInstallationTargetRenamedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: SimpleInstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] + target_type: str + + +class WebhookInstallationTargetRenamedPropAccountType(TypedDict): + """WebhookInstallationTargetRenamedPropAccount""" + + archived_at: NotRequired[Union[str, None]] + avatar_url: str + created_at: NotRequired[str] + description: NotRequired[None] events_url: NotRequired[str] + followers: NotRequired[int] followers_url: NotRequired[str] + following: NotRequired[int] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] - html_url: NotRequired[str] + has_organization_projects: NotRequired[bool] + has_repository_projects: NotRequired[bool] + hooks_url: NotRequired[str] + html_url: str id: int - login: str + is_verified: NotRequired[bool] + issues_url: NotRequired[str] + login: NotRequired[str] + members_url: NotRequired[str] name: NotRequired[str] - node_id: NotRequired[str] + node_id: str organizations_url: NotRequired[str] + public_gists: NotRequired[int] + public_members_url: NotRequired[str] + public_repos: NotRequired[int] received_events_url: NotRequired[str] repos_url: NotRequired[str] site_admin: NotRequired[bool] + slug: NotRequired[str] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[str] + updated_at: NotRequired[str] url: NotRequired[str] + website_url: NotRequired[None] -class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookInstallationTargetRenamedPropChangesType(TypedDict): + """WebhookInstallationTargetRenamedPropChanges""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + login: NotRequired[WebhookInstallationTargetRenamedPropChangesPropLoginType] + slug: NotRequired[WebhookInstallationTargetRenamedPropChangesPropSlugType] -class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookInstallationTargetRenamedPropChangesPropLoginType(TypedDict): + """WebhookInstallationTargetRenamedPropChangesPropLogin""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + from_: str + + +class WebhookInstallationTargetRenamedPropChangesPropSlugType(TypedDict): + """WebhookInstallationTargetRenamedPropChangesPropSlug""" + + from_: str __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0Type", - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", + "WebhookInstallationTargetRenamedType", + "WebhookInstallationTargetRenamedPropAccountType", + "WebhookInstallationTargetRenamedPropChangesType", + "WebhookInstallationTargetRenamedPropChangesPropLoginType", + "WebhookInstallationTargetRenamedPropChangesPropSlugType", ) 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 44922d8a2..1ce341e03 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0542.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0542.py @@ -9,61 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired +from .group_0015 import InstallationType +from .group_0406 import EnterpriseWebhooksType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0425 import WebhooksRepositoriesItemsType +from .group_0408 import OrganizationSimpleWebhooksType -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] +class WebhookInstallationUnsuspendType(TypedDict): + """installation unsuspend event""" + action: Literal["unsuspend"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[List[WebhooksRepositoriesItemsType]] + repository: NotRequired[RepositoryWebhooksType] + requester: NotRequired[None] + sender: SimpleUserWebhooksType -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", -) +__all__ = ("WebhookInstallationUnsuspendType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0543.py b/githubkit/versions/ghec_v2022_11_28/types/group_0543.py index 54abd4727..33f143d40 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0543.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0543.py @@ -9,34 +9,29 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0545 import WebhookIssueCommentCreatedPropIssueType +from .group_0544 import WebhookIssueCommentCreatedPropCommentType -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) + +class WebhookIssueCommentCreatedType(TypedDict): + """issue_comment created event""" + + action: Literal["created"] + comment: WebhookIssueCommentCreatedPropCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentCreatedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +__all__ = ("WebhookIssueCommentCreatedType",) 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 f30f6538a..b0387b6b6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0544.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0544.py @@ -11,37 +11,84 @@ from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0543 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, -) +from .group_0006 import IntegrationType -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone +class WebhookIssueCommentCreatedPropCommentType(TypedDict): + """issue comment - A collection of related issues and pull requests. + The [comment](https://docs.github.com/enterprise- + cloud@latest//rest/issues/comments#get-an-issue-comment) itself. """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - description: Union[str, None] - due_on: Union[datetime, None] + body: str + created_at: datetime html_url: str id: int - labels_url: str + issue_url: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str + performed_via_github_app: Union[None, IntegrationType, None] + reactions: WebhookIssueCommentCreatedPropCommentPropReactionsType updated_at: datetime url: str + user: Union[WebhookIssueCommentCreatedPropCommentPropUserType, None] + + +class WebhookIssueCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentCreatedPropCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) +__all__ = ( + "WebhookIssueCommentCreatedPropCommentType", + "WebhookIssueCommentCreatedPropCommentPropReactionsType", + "WebhookIssueCommentCreatedPropCommentPropUserType", +) 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 fba9682e0..110fd9d89 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0545.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0545.py @@ -9,14 +9,79 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0553 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType +from .group_0554 import ( + WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, +) +from .group_0547 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, +) + + +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 + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: WebhookIssueCommentCreatedPropIssueMergedUserType -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" + +class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -37,57 +102,54 @@ 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] -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" - The set of permissions for the GitHub app - """ + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentCreatedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedUser""" - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", + "WebhookIssueCommentCreatedPropIssueType", + "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", + "WebhookIssueCommentCreatedPropIssueMergedReactionsType", + "WebhookIssueCommentCreatedPropIssueMergedUserType", ) 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 6f8a7982a..8d92723f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0546.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0546.py @@ -13,90 +13,149 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0545 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0549 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType +from .group_0551 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0547 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, ) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): + """Issue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] + 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", ] - external_url: Union[str, None] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str html_url: str - id: Union[int, None] - name: str + id: int + labels: NotRequired[ + List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, None] node_id: str - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, None + ] ] - permissions: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + pull_request: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUserType, None] + + +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) + +class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0Type", + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", +) 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 4069c4d99..44922d8a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0547.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0547.py @@ -9,53 +9,12 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhookIssueCommentCreatedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - List[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, None] - ] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: List[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, None - ] - ] - reactions: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropUserType] - - -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -81,11 +40,7 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType(TypedDict): """Label""" color: str @@ -97,59 +52,18 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): url: str -class WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - +class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" -class WebhookIssueCommentCreatedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] + diff_url: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1Type", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", ) 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 17b5e22e9..54abd4727 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0548.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0548.py @@ -9,36 +9,34 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0543 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, -) +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" -class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) 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 9addb8448..cb811b814 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0549.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0549.py @@ -10,87 +10,38 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0545 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0548 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None ] - external_url: Union[str, None] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str - id: Union[int, None] - name: str + id: int + labels_url: str node_id: str - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType",) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0550.py b/githubkit/versions/ghec_v2022_11_28/types/group_0550.py index 11f251200..fba9682e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0550.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0550.py @@ -9,29 +9,85 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0423 import WebhooksIssueCommentType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0551 import WebhookIssueCommentDeletedPropIssueType +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" -class WebhookIssueCommentDeletedType(TypedDict): - """issue_comment deleted event""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] - action: Literal["deleted"] - comment: WebhooksIssueCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentDeletedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s -__all__ = ("WebhookIssueCommentDeletedType",) + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0551.py b/githubkit/versions/ghec_v2022_11_28/types/group_0551.py index 2af4cdeb2..88cbecd8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0551.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0551.py @@ -13,143 +13,90 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0559 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType -from .group_0560 import ( - WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, -) -from .group_0553 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, +from .group_0550 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) -class WebhookIssueCommentDeletedPropIssueType(TypedDict): - """WebhookIssueCommentDeletedPropIssue +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] ] - 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 + external_url: Union[str, None] html_url: str - id: int - labels: List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] + id: Union[int, None] + name: str node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, ] - pull_request: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType + permissions: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] - reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType - repository_url: str - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssueCommentDeletedPropIssueMergedUserType - - -class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - + slug: NotRequired[str] + updated_at: Union[datetime, None] -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] - - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueType", - "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", - "WebhookIssueCommentDeletedPropIssueMergedReactionsType", - "WebhookIssueCommentDeletedPropIssueMergedUserType", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) 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 8682e89e4..4069c4d99 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0552.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0552.py @@ -9,84 +9,53 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0555 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType -from .group_0557 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0553 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, -) - -class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentCreatedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1""" - 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", + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + List[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, None] + ] ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: List[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, None] ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int + node_id: NotRequired[str] + number: NotRequired[int] performed_via_github_app: NotRequired[ Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, None + WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, None ] ] - pull_request: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] + reactions: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropUserType] -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -112,36 +81,57 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict) url: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str url: str -class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentCreatedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -149,13 +139,17 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[str] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0Type", - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", + "WebhookIssueCommentCreatedPropIssueAllof1Type", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", ) 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 50e1b8aa9..2efd95c8e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0553.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0553.py @@ -11,59 +11,34 @@ from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict - -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] +from .group_0548 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" - color: str - default: bool + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None + ] description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int - name: str + labels_url: str node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime url: str -class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0554.py b/githubkit/versions/ghec_v2022_11_28/types/group_0554.py index 87bde6747..7c75c7ff5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0554.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0554.py @@ -9,34 +9,88 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0550 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType",) + +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] + 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_0555.py b/githubkit/versions/ghec_v2022_11_28/types/group_0555.py index fd91246db..e69af7bec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0555.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0555.py @@ -9,39 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict - -from .group_0554 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, -) - - -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) +from typing import Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0427 import WebhooksIssueCommentType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0556 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: SimpleUserWebhooksType + + +__all__ = ("WebhookIssueCommentDeletedType",) 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 23b6327a7..0c0d40bf3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0556.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0556.py @@ -9,14 +9,79 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0564 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType +from .group_0565 import ( + WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, +) +from .group_0558 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, +) + + +class WebhookIssueCommentDeletedPropIssueType(TypedDict): + """WebhookIssueCommentDeletedPropIssue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: Union[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None + ] + assignees: List[WebhookIssueCommentDeletedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] + labels_url: str + locked: bool + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType + repository_url: str + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: WebhookIssueCommentDeletedPropIssueMergedUserType -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" + +class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -37,57 +102,54 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwne site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s +class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" - The set of permissions for the GitHub app - """ + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedUser""" - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", + "WebhookIssueCommentDeletedPropIssueType", + "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", + "WebhookIssueCommentDeletedPropIssueMergedReactionsType", + "WebhookIssueCommentDeletedPropIssueMergedUserType", ) 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 ad261cc7f..e746f04c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0557.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0557.py @@ -13,88 +13,149 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0556 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0560 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType +from .group_0562 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0558 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, ) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): + """Issue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] + 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", ] - external_url: Union[str, None] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str html_url: str - id: Union[int, None] - name: str + id: int + labels: NotRequired[ + List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, None] node_id: str - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, None + ] ] - permissions: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + pull_request: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] + + +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType",) + +class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0Type", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", +) 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 d0b36c97e..50e1b8aa9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0558.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0558.py @@ -9,53 +9,12 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhookIssueCommentDeletedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - List[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, None] - ] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: List[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, None - ] - ] - reactions: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropUserType] - - -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -81,11 +40,7 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): """Label""" color: str @@ -97,59 +52,18 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType(TypedDict): url: str -class WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - +class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" -class WebhookIssueCommentDeletedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] + diff_url: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof1Type", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", ) 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 3ad14bd00..87bde6747 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0559.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0559.py @@ -9,36 +9,34 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0554 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, -) +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" -class WebhookIssueCommentDeletedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType",) 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 9d9130f5e..28fc8aaab 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0560.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0560.py @@ -10,85 +10,38 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0556 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0559 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None ] - external_url: Union[str, None] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str - id: Union[int, None] - name: str + id: int + labels_url: str node_id: str - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType",) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0561.py b/githubkit/versions/ghec_v2022_11_28/types/group_0561.py index 39dea53cc..23b6327a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0561.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0561.py @@ -9,31 +9,85 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0424 import WebhooksChangesType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0423 import WebhooksIssueCommentType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0562 import WebhookIssueCommentEditedPropIssueType +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" -class WebhookIssueCommentEditedType(TypedDict): - """issue_comment edited event""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] - action: Literal["edited"] - changes: WebhooksChangesType - comment: WebhooksIssueCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentEditedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s -__all__ = ("WebhookIssueCommentEditedType",) + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0562.py b/githubkit/versions/ghec_v2022_11_28/types/group_0562.py index bd87f62fd..f95118e84 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0562.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0562.py @@ -13,143 +13,88 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0570 import WebhookIssueCommentEditedPropIssueMergedMilestoneType -from .group_0571 import ( - WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, -) -from .group_0564 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, +from .group_0561 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) -class WebhookIssueCommentEditedPropIssueType(TypedDict): - """WebhookIssueCommentEditedPropIssue +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None], None + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] ] - assignees: List[WebhookIssueCommentEditedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str + external_url: Union[str, None] html_url: str - id: int - labels: List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestoneType, None] + id: Union[int, None] + name: str node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, None] + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, ] - pull_request: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType + permissions: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] - reactions: WebhookIssueCommentEditedPropIssueMergedReactionsType - repository_url: str - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssueCommentEditedPropIssueMergedUserType - - -class WebhookIssueCommentEditedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - + slug: NotRequired[str] + updated_at: Union[datetime, None] -class WebhookIssueCommentEditedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedReactions""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentEditedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentEditedPropIssueType", - "WebhookIssueCommentEditedPropIssueMergedAssigneesType", - "WebhookIssueCommentEditedPropIssueMergedReactionsType", - "WebhookIssueCommentEditedPropIssueMergedUserType", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType",) 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 9906c0b62..d0b36c97e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0563.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0563.py @@ -9,84 +9,53 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0566 import WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType -from .group_0568 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0564 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, -) - -class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentDeletedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1""" - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + List[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, None] + ] ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: List[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, None] ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int + node_id: NotRequired[str] + number: NotRequired[int] performed_via_github_app: NotRequired[ Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, None + WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, None ] ] - pull_request: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] + reactions: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUserType, None] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropUserType] -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -112,36 +81,57 @@ class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str url: str -class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): - """User""" +class WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentDeletedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -149,13 +139,17 @@ class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[str] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0Type", - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentEditedPropIssueAllof0PropUserType", + "WebhookIssueCommentDeletedPropIssueAllof1Type", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", ) 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 7b4b74ff3..82394bb87 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0564.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0564.py @@ -11,59 +11,34 @@ from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict - -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] +from .group_0559 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentDeletedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedMilestone""" - color: str - default: bool + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None + ] description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int - name: str + labels_url: str node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime url: str -class WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0565.py b/githubkit/versions/ghec_v2022_11_28/types/group_0565.py index a238b6095..6df9d23a3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0565.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0565.py @@ -9,34 +9,86 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0561 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType",) + +class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0566.py b/githubkit/versions/ghec_v2022_11_28/types/group_0566.py index f0713c6ca..4167ee01d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0566.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0566.py @@ -9,39 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict - -from .group_0565 import ( - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, -) - - -class WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",) +from typing import Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0428 import WebhooksChangesType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0427 import WebhooksIssueCommentType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0567 import WebhookIssueCommentEditedPropIssueType + + +class WebhookIssueCommentEditedType(TypedDict): + """issue_comment edited event""" + + action: Literal["edited"] + changes: WebhooksChangesType + comment: WebhooksIssueCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentEditedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +__all__ = ("WebhookIssueCommentEditedType",) 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 0ad9e63b9..921bd779b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0567.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0567.py @@ -9,14 +9,79 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0575 import WebhookIssueCommentEditedPropIssueMergedMilestoneType +from .group_0576 import ( + WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, +) +from .group_0569 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, +) + + +class WebhookIssueCommentEditedPropIssueType(TypedDict): + """WebhookIssueCommentEditedPropIssue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: Union[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None], None + ] + assignees: List[WebhookIssueCommentEditedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] + labels_url: str + locked: bool + milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentEditedPropIssueMergedReactionsType + repository_url: str + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: WebhookIssueCommentEditedPropIssueMergedUserType -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" + +class WebhookIssueCommentEditedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedAssignees""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -37,56 +102,54 @@ class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +class WebhookIssueCommentEditedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedReactions""" - The set of permissions for the GitHub app - """ + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentEditedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedUser""" - 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"]] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", + "WebhookIssueCommentEditedPropIssueType", + "WebhookIssueCommentEditedPropIssueMergedAssigneesType", + "WebhookIssueCommentEditedPropIssueMergedReactionsType", + "WebhookIssueCommentEditedPropIssueMergedUserType", ) 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 c6ece7506..9db335a35 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0568.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0568.py @@ -13,90 +13,149 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0567 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0571 import WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType +from .group_0573 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0569 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, ) -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): + """Issue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None] + ] + assignees: List[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - external_url: Union[str, None] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str html_url: str - id: Union[int, None] - name: str + id: int + labels: NotRequired[ + List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, None] node_id: str - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, None + ] ] - permissions: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + pull_request: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUserType, None] + + +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType",) + +class WebhookIssueCommentEditedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0Type", + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentEditedPropIssueAllof0PropUserType", +) 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 3cca84c7e..7b4b74ff3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0569.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0569.py @@ -9,53 +9,12 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhookIssueCommentEditedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - List[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, None] - ] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: List[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, None - ] - ] - reactions: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropUserType] - - -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -81,11 +40,7 @@ class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): +class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType(TypedDict): """Label""" color: str @@ -97,59 +52,18 @@ class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): url: str -class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - +class WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" -class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropUser""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] + diff_url: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1Type", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentEditedPropIssueAllof1PropUserType", + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", ) 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 d7311b594..a238b6095 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0570.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0570.py @@ -9,36 +9,34 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0565 import ( - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, -) +class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" -class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType",) 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 42abf7a5a..be63a0bfe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0571.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0571.py @@ -10,87 +10,38 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0567 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0570 import ( + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, ) -class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None ] - external_url: Union[str, None] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str - id: Union[int, None] - name: str + id: int + labels_url: str node_id: str - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType",) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0572.py b/githubkit/versions/ghec_v2022_11_28/types/group_0572.py index 63c43ef09..0ad9e63b9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0572.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0572.py @@ -12,26 +12,81 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0416 import WebhooksUserType -from .group_0425 import WebhooksIssueType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" -class WebhookIssuesAssignedType(TypedDict): - """issues assigned event""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] - action: Literal["assigned"] - assignee: NotRequired[Union[WebhooksUserType, None]] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -__all__ = ("WebhookIssuesAssignedType",) + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0573.py b/githubkit/versions/ghec_v2022_11_28/types/group_0573.py index f8c23f718..6f21987be 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0573.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0573.py @@ -9,27 +9,94 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0574 import WebhookIssuesClosedPropIssueType +from .group_0572 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesClosedType(TypedDict): - """issues closed event""" +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App - action: Literal["closed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesClosedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to 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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] + 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__ = ("WebhookIssuesClosedType",) + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType",) 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 a622e5599..3cca84c7e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0574.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0574.py @@ -9,69 +9,54 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0582 import WebhookIssuesClosedPropIssueMergedMilestoneType -from .group_0580 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType -from .group_0583 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType +class WebhookIssueCommentEditedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1""" -class WebhookIssuesClosedPropIssueType(TypedDict): - """WebhookIssuesClosedPropIssue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + List[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, None] + ] ] - assignee: NotRequired[Union[WebhookIssuesClosedPropIssueMergedAssigneeType, None]] - assignees: List[WebhookIssuesClosedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: List[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, None] ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesClosedPropIssueMergedLabelsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesClosedPropIssueMergedMilestoneType, None] - node_id: str - number: int + node_id: NotRequired[str] + number: NotRequired[int] performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, None] + Union[ + WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, None + ] ] - pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesClosedPropIssueMergedReactionsType - repository_url: str + reactions: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssuesClosedPropIssueMergedUserType + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropUserType] -class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueMergedAssignee""" +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -96,34 +81,12 @@ class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): url: 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] +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" -class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesClosedPropIssueMergedLabels""" +class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): + """Label""" color: str default: bool @@ -134,36 +97,41 @@ class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): url: str -class WebhookIssuesClosedPropIssueMergedReactionsType(TypedDict): - """WebhookIssuesClosedPropIssueMergedReactions""" +class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + +class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" -class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): - """WebhookIssuesClosedPropIssueMergedUser""" +class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -171,15 +139,17 @@ class WebhookIssuesClosedPropIssueMergedUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[str] url: NotRequired[str] __all__ = ( - "WebhookIssuesClosedPropIssueType", - "WebhookIssuesClosedPropIssueMergedAssigneeType", - "WebhookIssuesClosedPropIssueMergedAssigneesType", - "WebhookIssuesClosedPropIssueMergedLabelsType", - "WebhookIssuesClosedPropIssueMergedReactionsType", - "WebhookIssuesClosedPropIssueMergedUserType", + "WebhookIssueCommentEditedPropIssueAllof1Type", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentEditedPropIssueAllof1PropUserType", ) 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 a8a329834..53f64bd8f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0575.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0575.py @@ -10,180 +10,35 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0577 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType -from .group_0580 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType -from .group_0579 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType +from typing import Union, Literal +from typing_extensions import TypedDict +from .group_0570 import ( + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssuesClosedPropIssueAllof0Type(TypedDict): - """Issue - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ +class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] closed_at: Union[datetime, None] - comments: int - comments_url: str + closed_issues: int created_at: datetime - draft: NotRequired[bool] - events_url: str + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str id: int - labels: NotRequired[List[WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType]] labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestoneType, None] node_id: str number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesClosedPropIssueAllof0PropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] + open_issues: int + state: Literal["open", "closed"] title: str updated_at: datetime url: str - user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] - - -class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -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] -class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0Type", - "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof0PropReactionsType", - "WebhookIssuesClosedPropIssueAllof0PropUserType", -) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) 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 7b05f1bde..91aa7801c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0576.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0576.py @@ -9,34 +9,88 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0572 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType",) + +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0577.py b/githubkit/versions/ghec_v2022_11_28/types/group_0577.py index 010fe3f27..9030838e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0577.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0577.py @@ -9,35 +9,29 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0576 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType +from .group_0420 import WebhooksUserType +from .group_0429 import WebhooksIssueType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone +class WebhookIssuesAssignedType(TypedDict): + """issues assigned event""" - A collection of related issues and pull requests. - """ + action: Literal["assigned"] + assignee: NotRequired[Union[WebhooksUserType, None]] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhooksIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) +__all__ = ("WebhookIssuesAssignedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0578.py b/githubkit/versions/ghec_v2022_11_28/types/group_0578.py index 32512a608..57993c0e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0578.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0578.py @@ -9,84 +9,27 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0579 import WebhookIssuesClosedPropIssueType -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +class WebhookIssuesClosedType(TypedDict): + """issues closed event""" + action: Literal["closed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesClosedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssuesClosedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0579.py b/githubkit/versions/ghec_v2022_11_28/types/group_0579.py index c23b8b0cb..c9a04ddaa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0579.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0579.py @@ -13,90 +13,173 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0578 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0587 import WebhookIssuesClosedPropIssueMergedMilestoneType +from .group_0585 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType +from .group_0588 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssuesClosedPropIssueType(TypedDict): + """WebhookIssuesClosedPropIssue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "reminder", - "pull_request_review_thread", - ] - ] + 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", ] - external_url: Union[str, None] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str html_url: str - id: Union[int, None] - name: str + id: int + labels: NotRequired[List[WebhookIssuesClosedPropIssueMergedLabelsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesClosedPropIssueMergedMilestoneType, None] node_id: str - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, None] ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] + reactions: WebhookIssuesClosedPropIssueMergedReactionsType + repository_url: str + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: WebhookIssuesClosedPropIssueMergedUserType + + +class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): + """WebhookIssuesClosedPropIssueMergedAssignee""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +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] + +class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): + """WebhookIssuesClosedPropIssueMergedLabels""" -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType",) + 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] + + +__all__ = ( + "WebhookIssuesClosedPropIssueType", + "WebhookIssuesClosedPropIssueMergedAssigneeType", + "WebhookIssuesClosedPropIssueMergedAssigneesType", + "WebhookIssuesClosedPropIssueMergedLabelsType", + "WebhookIssuesClosedPropIssueMergedReactionsType", + "WebhookIssuesClosedPropIssueMergedUserType", +) 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 a73f7cc15..f0fdd9199 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0580.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0580.py @@ -9,19 +9,181 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0582 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType +from .group_0585 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType +from .group_0584 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType -class WebhookIssuesClosedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - diff_url: NotRequired[str] +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 + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] + + +class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +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] + + +class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - 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] -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",) +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0Type", + "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof0PropReactionsType", + "WebhookIssuesClosedPropIssueAllof0PropUserType", +) 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 75a1610df..7b05f1bde 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0581.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0581.py @@ -9,99 +9,25 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): - """WebhookIssuesClosedPropIssueAllof1""" - - active_lock_reason: NotRequired[Union[str, None]] - assignee: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] - ] - assignees: NotRequired[ - List[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] - ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: Union[str, None] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[ - List[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, None]] - ] - labels_url: NotRequired[str] - locked: NotRequired[bool] - milestone: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] - performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] - ] - reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["closed", "open"] - timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] - - -class WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - - -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" - - -class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" - - -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropUser""" +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -109,17 +35,8 @@ class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -__all__ = ( - "WebhookIssuesClosedPropIssueAllof1Type", - "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesClosedPropIssueAllof1PropReactionsType", - "WebhookIssuesClosedPropIssueAllof1PropUserType", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType",) 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 b150e949a..4714cdc00 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0582.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0582.py @@ -13,11 +13,14 @@ from typing import Union, Literal from typing_extensions import TypedDict -from .group_0576 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType +from .group_0581 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueMergedMilestone""" +class WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ closed_at: Union[datetime, None] closed_issues: int @@ -37,4 +40,4 @@ class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): url: str -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0583.py b/githubkit/versions/ghec_v2022_11_28/types/group_0583.py index 15a2c3f10..32512a608 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0583.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0583.py @@ -9,88 +9,84 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0578 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) + +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "reminder", - "pull_request_review_thread", - ] - ] - ] - 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] + The set of permissions for the GitHub app + """ + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] -__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",) + +__all__ = ( + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) 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 eb6dff667..d2251cc20 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0584.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0584.py @@ -13,192 +13,13 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType - - -class WebhookIssuesDeletedType(TypedDict): - """issues deleted event""" - - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDeletedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookIssuesDeletedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] - reactions: WebhookIssuesDeletedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] - - -class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +from .group_0583 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType(TypedDict): +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -257,7 +78,9 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "security_and_analysis", "reminder", + "pull_request_review_thread", ] ] ] @@ -267,149 +90,13 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] 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] - - -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] - - -__all__ = ( - "WebhookIssuesDeletedType", - "WebhookIssuesDeletedPropIssueType", - "WebhookIssuesDeletedPropIssuePropAssigneeType", - "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", - "WebhookIssuesDeletedPropIssuePropLabelsItemsType", - "WebhookIssuesDeletedPropIssuePropMilestoneType", - "WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesDeletedPropIssuePropPullRequestType", - "WebhookIssuesDeletedPropIssuePropReactionsType", - "WebhookIssuesDeletedPropIssuePropUserType", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType",) 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 c7c271b88..a73f7cc15 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0585.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0585.py @@ -9,355 +9,13 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0426 import WebhooksMilestoneType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType - -class WebhookIssuesDemilestonedType(TypedDict): - """issues demilestoned event""" - - action: Literal["demilestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDemilestonedPropIssueType - milestone: NotRequired[WebhooksMilestoneType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -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 - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesDemilestonedPropIssuePropUserType, None] - - -class WebhookIssuesDemilestonedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesDemilestonedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] - 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] - - -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""" +class WebhookIssuesClosedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -366,59 +24,4 @@ class WebhookIssuesDemilestonedPropIssuePropPullRequestType(TypedDict): 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] - - -__all__ = ( - "WebhookIssuesDemilestonedType", - "WebhookIssuesDemilestonedPropIssueType", - "WebhookIssuesDemilestonedPropIssuePropAssigneeType", - "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", - "WebhookIssuesDemilestonedPropIssuePropLabelsItemsType", - "WebhookIssuesDemilestonedPropIssuePropMilestoneType", - "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesDemilestonedPropIssuePropPullRequestType", - "WebhookIssuesDemilestonedPropIssuePropReactionsType", - "WebhookIssuesDemilestonedPropIssuePropUserType", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",) 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 18b80be89..75a1610df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0586.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0586.py @@ -9,411 +9,99 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0420 import WebhooksLabelType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): + """WebhookIssuesClosedPropIssueAllof1""" -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: SimpleUserWebhooksType - - -class WebhookIssuesEditedPropChangesType(TypedDict): - """WebhookIssuesEditedPropChanges - - The changes to the issue. - """ - - body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] - title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] - - -class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): - """WebhookIssuesEditedPropChangesPropBody""" - - from_: str - - -class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): - """WebhookIssuesEditedPropChangesPropTitle""" - - from_: str - - -class WebhookIssuesEditedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] + active_lock_reason: NotRequired[Union[str, None]] + assignee: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] ] - assignee: NotRequired[Union[WebhookIssuesEditedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesEditedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + assignees: NotRequired[ + List[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesEditedPropIssuePropLabelsItemsType]] - labels_url: str + 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: Union[WebhookIssuesEditedPropIssuePropMilestoneType, None] - node_id: str - number: int + milestone: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] performed_via_github_app: NotRequired[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, None] + Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[WebhookIssuesEditedPropIssuePropPullRequestType] - reactions: WebhookIssuesEditedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] + reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["closed", "open"] timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[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"]] + title: NotRequired[str] + updated_at: NotRequired[str] url: NotRequired[str] + user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] -class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): - """User""" +class WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] +class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" -class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str +class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" -class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): - """Milestone +class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" - A collection of related issues and pull requests. - """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[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 WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" -class WebhookIssuesEditedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" +class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + 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 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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "pull_request_review_thread", - "reminder", - ] - ] - ] - 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] - - -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 WebhookIssuesEditedPropIssuePropUserType(TypedDict): - """User""" +class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropUser""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -421,25 +109,17 @@ class WebhookIssuesEditedPropIssuePropUserType(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] __all__ = ( - "WebhookIssuesEditedType", - "WebhookIssuesEditedPropChangesType", - "WebhookIssuesEditedPropChangesPropBodyType", - "WebhookIssuesEditedPropChangesPropTitleType", - "WebhookIssuesEditedPropIssueType", - "WebhookIssuesEditedPropIssuePropAssigneeType", - "WebhookIssuesEditedPropIssuePropAssigneesItemsType", - "WebhookIssuesEditedPropIssuePropLabelsItemsType", - "WebhookIssuesEditedPropIssuePropMilestoneType", - "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesEditedPropIssuePropPullRequestType", - "WebhookIssuesEditedPropIssuePropReactionsType", - "WebhookIssuesEditedPropIssuePropUserType", + "WebhookIssuesClosedPropIssueAllof1Type", + "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssuesClosedPropIssueAllof1PropReactionsType", + "WebhookIssuesClosedPropIssueAllof1PropUserType", ) 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 e4cc269c2..59a97cfeb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0587.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0587.py @@ -10,156 +10,19 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0420 import WebhooksLabelType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0581 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -class WebhookIssuesLabeledType(TypedDict): - """issues labeled event""" - - action: Literal["labeled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLabeledPropIssueType - label: NotRequired[WebhooksLabelType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookIssuesLabeledPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesLabeledPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesLabeledPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesLabeledPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesLabeledPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesLabeledPropIssuePropPullRequestType] - reactions: WebhookIssuesLabeledPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesLabeledPropIssuePropUserType, None] - - -class WebhookIssuesLabeledPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -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. - """ +class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssuesClosedPropIssueMergedMilestone""" closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -174,245 +37,4 @@ class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): 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] - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "reminder", - ] - ] - ] - 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] - - -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] - - -__all__ = ( - "WebhookIssuesLabeledType", - "WebhookIssuesLabeledPropIssueType", - "WebhookIssuesLabeledPropIssuePropAssigneeType", - "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", - "WebhookIssuesLabeledPropIssuePropLabelsItemsType", - "WebhookIssuesLabeledPropIssuePropMilestoneType", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesLabeledPropIssuePropPullRequestType", - "WebhookIssuesLabeledPropIssuePropReactionsType", - "WebhookIssuesLabeledPropIssuePropUserType", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) 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 8086f0cb6..3409f784b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0588.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0588.py @@ -13,201 +13,14 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType - - -class WebhookIssuesLockedType(TypedDict): - """issues locked event""" - - action: Literal["locked"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLockedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookIssuesLockedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesLockedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesLockedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - List[Union[WebhookIssuesLockedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: Literal[True] - milestone: Union[WebhookIssuesLockedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesLockedPropIssuePropPullRequestType] - reactions: WebhookIssuesLockedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesLockedPropIssuePropUserType, None] - - -class WebhookIssuesLockedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -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] - +from .group_0583 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -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. - """ +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" created_at: Union[datetime, None] description: Union[str, None] @@ -259,8 +72,9 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", - "reminder", "security_and_analysis", + "reminder", + "pull_request_review_thread", ] ] ] @@ -270,149 +84,13 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] 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] - - -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] - - -__all__ = ( - "WebhookIssuesLockedType", - "WebhookIssuesLockedPropIssueType", - "WebhookIssuesLockedPropIssuePropAssigneeType", - "WebhookIssuesLockedPropIssuePropAssigneesItemsType", - "WebhookIssuesLockedPropIssuePropLabelsItemsType", - "WebhookIssuesLockedPropIssuePropMilestoneType", - "WebhookIssuesLockedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesLockedPropIssuePropPullRequestType", - "WebhookIssuesLockedPropIssuePropReactionsType", - "WebhookIssuesLockedPropIssuePropUserType", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",) 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 fb90556d2..f78cf7b9f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0589.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0589.py @@ -13,28 +13,26 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0426 import WebhooksMilestoneType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookIssuesMilestonedType(TypedDict): - """issues milestoned event""" +class WebhookIssuesDeletedType(TypedDict): + """issues deleted event""" - action: Literal["milestoned"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesMilestonedPropIssueType - milestone: WebhooksMilestoneType + issue: WebhookIssuesDeletedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookIssuesMilestonedPropIssueType(TypedDict): +class WebhookIssuesDeletedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/enterprise- @@ -44,8 +42,8 @@ class WebhookIssuesMilestonedPropIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhookIssuesMilestonedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, None]] + assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -65,19 +63,17 @@ class WebhookIssuesMilestonedPropIssueType(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[ - List[Union[WebhookIssuesMilestonedPropIssuePropLabelsItemsType, None]] - ] + labels: NotRequired[List[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestoneType, None] + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, None] + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[WebhookIssuesMilestonedPropIssuePropPullRequestType] - reactions: WebhookIssuesMilestonedPropIssuePropReactionsType + pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] + reactions: WebhookIssuesDeletedPropIssuePropReactionsType repository_url: str state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -85,10 +81,10 @@ class WebhookIssuesMilestonedPropIssueType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookIssuesMilestonedPropIssuePropUserType, None] + user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] -class WebhookIssuesMilestonedPropIssuePropAssigneeType(TypedDict): +class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -114,7 +110,7 @@ class WebhookIssuesMilestonedPropIssuePropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssuesMilestonedPropIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -140,7 +136,7 @@ class WebhookIssuesMilestonedPropIssuePropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssuesMilestonedPropIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -152,7 +148,7 @@ class WebhookIssuesMilestonedPropIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesMilestonedPropIssuePropMilestoneType(TypedDict): +class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -161,7 +157,7 @@ class WebhookIssuesMilestonedPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -176,7 +172,7 @@ class WebhookIssuesMilestonedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType(TypedDict): +class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -198,11 +194,11 @@ class WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType(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 WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -271,16 +267,16 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -306,10 +302,10 @@ class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType(Typ url: NotRequired[str] -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -331,7 +327,7 @@ class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsTy 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_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"]] @@ -351,8 +347,8 @@ class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsTy workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesMilestonedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesMilestonedPropIssuePropPullRequest""" +class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesDeletedPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -361,7 +357,7 @@ class WebhookIssuesMilestonedPropIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesMilestonedPropIssuePropReactionsType(TypedDict): +class WebhookIssuesDeletedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -376,7 +372,7 @@ class WebhookIssuesMilestonedPropIssuePropReactionsType(TypedDict): url: str -class WebhookIssuesMilestonedPropIssuePropUserType(TypedDict): +class WebhookIssuesDeletedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -403,17 +399,17 @@ class WebhookIssuesMilestonedPropIssuePropUserType(TypedDict): __all__ = ( - "WebhookIssuesMilestonedType", - "WebhookIssuesMilestonedPropIssueType", - "WebhookIssuesMilestonedPropIssuePropAssigneeType", - "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", - "WebhookIssuesMilestonedPropIssuePropLabelsItemsType", - "WebhookIssuesMilestonedPropIssuePropMilestoneType", - "WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesMilestonedPropIssuePropPullRequestType", - "WebhookIssuesMilestonedPropIssuePropReactionsType", - "WebhookIssuesMilestonedPropIssuePropUserType", + "WebhookIssuesDeletedType", + "WebhookIssuesDeletedPropIssueType", + "WebhookIssuesDeletedPropIssuePropAssigneeType", + "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", + "WebhookIssuesDeletedPropIssuePropLabelsItemsType", + "WebhookIssuesDeletedPropIssuePropMilestoneType", + "WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesDeletedPropIssuePropPullRequestType", + "WebhookIssuesDeletedPropIssuePropReactionsType", + "WebhookIssuesDeletedPropIssuePropUserType", ) 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 f7e2dc6f1..51416772c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0590.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0590.py @@ -13,402 +13,28 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0430 import WebhooksMilestoneType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookIssuesOpenedType(TypedDict): - """issues opened event""" +class WebhookIssuesDemilestonedType(TypedDict): + """issues demilestoned event""" - action: Literal["opened"] - changes: NotRequired[WebhookIssuesOpenedPropChangesType] + action: Literal["demilestoned"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesOpenedPropIssueType + issue: WebhookIssuesDemilestonedPropIssueType + milestone: NotRequired[WebhooksMilestoneType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookIssuesOpenedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/enterprise- - cloud@latest//rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] - reactions: WebhookIssuesOpenedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] - - -class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -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] - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "pull_request_review_thread", - "reminder", - ] - ] - ] - 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] - - -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 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] - - -class WebhookIssuesOpenedPropChangesType(TypedDict): - """WebhookIssuesOpenedPropChanges""" - - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] - old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType - - -class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): +class WebhookIssuesDemilestonedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/enterprise- @@ -419,10 +45,10 @@ class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): None, Literal["resolved", "off-topic", "too heated", "spam"] ] assignee: NotRequired[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] + Union[WebhookIssuesDemilestonedPropIssuePropAssigneeType, None] ] assignees: List[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None] + Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -444,23 +70,18 @@ class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): html_url: str id: int labels: NotRequired[ - List[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] + List[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, None]] ] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] + milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, - None, - ] - ] - pull_request: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType + Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, None] ] - reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType + pull_request: NotRequired[WebhookIssuesDemilestonedPropIssuePropPullRequestType] + reactions: WebhookIssuesDemilestonedPropIssuePropReactionsType repository_url: str state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -468,10 +89,10 @@ class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] + user: Union[WebhookIssuesDemilestonedPropIssuePropUserType, None] -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): +class WebhookIssuesDemilestonedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -493,11 +114,11 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(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 WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -519,11 +140,11 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(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 WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesDemilestonedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -535,7 +156,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): +class WebhookIssuesDemilestonedPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -544,9 +165,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None - ] + creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -561,7 +180,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): +class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -583,13 +202,11 @@ 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] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( - TypedDict -): +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -657,17 +274,16 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, - None, + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType( TypedDict ): """User""" @@ -695,11 +311,10 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwn url: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio - ns + """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -721,7 +336,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"]] @@ -741,8 +356,8 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPer workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" +class WebhookIssuesDemilestonedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesDemilestonedPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -751,7 +366,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): +class WebhookIssuesDemilestonedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -766,160 +381,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): 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] - - -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] - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType( - TypedDict -): - """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): +class WebhookIssuesDemilestonedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -941,50 +403,22 @@ class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(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 WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - __all__ = ( - "WebhookIssuesOpenedType", - "WebhookIssuesOpenedPropIssueType", - "WebhookIssuesOpenedPropIssuePropAssigneeType", - "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropIssuePropMilestoneType", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropIssuePropPullRequestType", - "WebhookIssuesOpenedPropIssuePropReactionsType", - "WebhookIssuesOpenedPropIssuePropUserType", - "WebhookIssuesOpenedPropChangesType", - "WebhookIssuesOpenedPropChangesPropOldIssueType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", + "WebhookIssuesDemilestonedType", + "WebhookIssuesDemilestonedPropIssueType", + "WebhookIssuesDemilestonedPropIssuePropAssigneeType", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesDemilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesDemilestonedPropIssuePropMilestoneType", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesDemilestonedPropIssuePropPullRequestType", + "WebhookIssuesDemilestonedPropIssuePropReactionsType", + "WebhookIssuesDemilestonedPropIssuePropUserType", ) 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 25bbb2751..b0fce8ccc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0591.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0591.py @@ -9,27 +9,437 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0427 import WebhooksIssue2Type -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0424 import WebhooksLabelType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookIssuesPinnedType(TypedDict): - """issues pinned event""" +class WebhookIssuesEditedType(TypedDict): + """issues edited event""" - action: Literal["pinned"] + action: Literal["edited"] + changes: WebhookIssuesEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type + issue: WebhookIssuesEditedPropIssueType + label: NotRequired[WebhooksLabelType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookIssuesPinnedType",) +class WebhookIssuesEditedPropChangesType(TypedDict): + """WebhookIssuesEditedPropChanges + + The changes to the issue. + """ + + body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] + title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] + + +class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): + """WebhookIssuesEditedPropChangesPropBody""" + + from_: str + + +class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): + """WebhookIssuesEditedPropChangesPropTitle""" + + from_: str + + +class WebhookIssuesEditedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesEditedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesEditedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesEditedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesEditedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesEditedPropIssuePropPullRequestType] + reactions: WebhookIssuesEditedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesEditedPropIssuePropUserType, None] + + +class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +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] + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "security_and_analysis", + "pull_request_review_thread", + "reminder", + ] + ] + ] + 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] + + +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 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] + + +__all__ = ( + "WebhookIssuesEditedType", + "WebhookIssuesEditedPropChangesType", + "WebhookIssuesEditedPropChangesPropBodyType", + "WebhookIssuesEditedPropChangesPropTitleType", + "WebhookIssuesEditedPropIssueType", + "WebhookIssuesEditedPropIssuePropAssigneeType", + "WebhookIssuesEditedPropIssuePropAssigneesItemsType", + "WebhookIssuesEditedPropIssuePropLabelsItemsType", + "WebhookIssuesEditedPropIssuePropMilestoneType", + "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesEditedPropIssuePropPullRequestType", + "WebhookIssuesEditedPropIssuePropReactionsType", + "WebhookIssuesEditedPropIssuePropUserType", +) 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 36d8a46c9..1797e53d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0592.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0592.py @@ -13,26 +13,28 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0424 import WebhooksLabelType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookIssuesReopenedType(TypedDict): - """issues reopened event""" +class WebhookIssuesLabeledType(TypedDict): + """issues labeled event""" - action: Literal["reopened"] + action: Literal["labeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesReopenedPropIssueType + issue: WebhookIssuesLabeledPropIssueType + label: NotRequired[WebhooksLabelType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookIssuesReopenedPropIssueType(TypedDict): +class WebhookIssuesLabeledPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/enterprise- @@ -42,8 +44,8 @@ class WebhookIssuesReopenedPropIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhookIssuesReopenedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesReopenedPropIssuePropAssigneesItemsType, None]] + assignee: NotRequired[Union[WebhookIssuesLabeledPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesLabeledPropIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -63,30 +65,28 @@ class WebhookIssuesReopenedPropIssueType(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[ - List[Union[WebhookIssuesReopenedPropIssuePropLabelsItemsType, None]] - ] + labels: NotRequired[List[WebhookIssuesLabeledPropIssuePropLabelsItemsType]] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesReopenedPropIssuePropMilestoneType, None] + milestone: Union[WebhookIssuesLabeledPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, None] + Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[WebhookIssuesReopenedPropIssuePropPullRequestType] - reactions: WebhookIssuesReopenedPropIssuePropReactionsType + pull_request: NotRequired[WebhookIssuesLabeledPropIssuePropPullRequestType] + reactions: WebhookIssuesLabeledPropIssuePropReactionsType repository_url: str - state: Literal["open", "closed"] + state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] title: str updated_at: datetime url: str - user: Union[WebhookIssuesReopenedPropIssuePropUserType, None] + user: Union[WebhookIssuesLabeledPropIssuePropUserType, None] -class WebhookIssuesReopenedPropIssuePropAssigneeType(TypedDict): +class WebhookIssuesLabeledPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -108,11 +108,11 @@ class WebhookIssuesReopenedPropIssuePropAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesLabeledPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -138,7 +138,7 @@ class WebhookIssuesReopenedPropIssuePropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesLabeledPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -150,7 +150,7 @@ class WebhookIssuesReopenedPropIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): +class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -159,7 +159,7 @@ class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -174,7 +174,7 @@ class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType(TypedDict): +class WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -200,7 +200,7 @@ class WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType(TypedDict): url: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType(TypedDict): +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -270,16 +270,16 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -305,10 +305,10 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType(Typed url: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -338,7 +338,7 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType pages: NotRequired[Literal["read", "write"]] pull_requests: NotRequired[Literal["read", "write"]] repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] + repository_projects: NotRequired[Literal["read", "write"]] secret_scanning_alerts: NotRequired[Literal["read", "write"]] secrets: NotRequired[Literal["read", "write"]] security_events: NotRequired[Literal["read", "write"]] @@ -350,8 +350,8 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesReopenedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesReopenedPropIssuePropPullRequest""" +class WebhookIssuesLabeledPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesLabeledPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -360,7 +360,7 @@ class WebhookIssuesReopenedPropIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropReactionsType(TypedDict): +class WebhookIssuesLabeledPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -375,7 +375,7 @@ class WebhookIssuesReopenedPropIssuePropReactionsType(TypedDict): url: str -class WebhookIssuesReopenedPropIssuePropUserType(TypedDict): +class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -402,17 +402,17 @@ class WebhookIssuesReopenedPropIssuePropUserType(TypedDict): __all__ = ( - "WebhookIssuesReopenedType", - "WebhookIssuesReopenedPropIssueType", - "WebhookIssuesReopenedPropIssuePropAssigneeType", - "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", - "WebhookIssuesReopenedPropIssuePropLabelsItemsType", - "WebhookIssuesReopenedPropIssuePropMilestoneType", - "WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesReopenedPropIssuePropPullRequestType", - "WebhookIssuesReopenedPropIssuePropReactionsType", - "WebhookIssuesReopenedPropIssuePropUserType", + "WebhookIssuesLabeledType", + "WebhookIssuesLabeledPropIssueType", + "WebhookIssuesLabeledPropIssuePropAssigneeType", + "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", + "WebhookIssuesLabeledPropIssuePropLabelsItemsType", + "WebhookIssuesLabeledPropIssuePropMilestoneType", + "WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLabeledPropIssuePropPullRequestType", + "WebhookIssuesLabeledPropIssuePropReactionsType", + "WebhookIssuesLabeledPropIssuePropUserType", ) 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 0b3d97720..fd7dfc2e8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0593.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0593.py @@ -13,35 +13,26 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0427 import WebhooksIssue2Type -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookIssuesTransferredType(TypedDict): - """issues transferred event""" +class WebhookIssuesLockedType(TypedDict): + """issues locked event""" - action: Literal["transferred"] - changes: WebhookIssuesTransferredPropChangesType + action: Literal["locked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type + issue: WebhookIssuesLockedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookIssuesTransferredPropChangesType(TypedDict): - """WebhookIssuesTransferredPropChanges""" - - new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType - new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType - - -class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): +class WebhookIssuesLockedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/enterprise- @@ -51,14 +42,8 @@ class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, None] - ] - assignees: List[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, None - ] - ] + assignee: NotRequired[Union[WebhookIssuesLockedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesLockedPropIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -79,25 +64,18 @@ class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): html_url: str id: int labels: NotRequired[ - List[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType] + List[Union[WebhookIssuesLockedPropIssuePropLabelsItemsType, None]] ] labels_url: str - locked: NotRequired[bool] - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, None - ] + locked: Literal[True] + milestone: Union[WebhookIssuesLockedPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, - None, - ] + Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType - ] - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType + pull_request: NotRequired[WebhookIssuesLockedPropIssuePropPullRequestType] + reactions: WebhookIssuesLockedPropIssuePropReactionsType repository_url: str state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -105,10 +83,10 @@ class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] + user: Union[WebhookIssuesLockedPropIssuePropUserType, None] -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): +class WebhookIssuesLockedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -134,7 +112,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict) url: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesLockedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -160,7 +138,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(Type url: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesLockedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -172,7 +150,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDi url: str -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict): +class WebhookIssuesLockedPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -181,10 +159,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, - None, - ] + creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -199,9 +174,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict url: str -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType( - TypedDict -): +class WebhookIssuesLockedPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -227,9 +200,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorTyp url: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType( - TypedDict -): +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -288,6 +259,8 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "reminder", + "security_and_analysis", ] ] ] @@ -297,19 +270,16 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, - None, + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -335,11 +305,10 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr url: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions + """WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -381,8 +350,8 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDict): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" +class WebhookIssuesLockedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesLockedPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -391,7 +360,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDi url: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict): +class WebhookIssuesLockedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -406,7 +375,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict url: str -class WebhookIssuesTransferredPropChangesPropNewIssuePropUserType(TypedDict): +class WebhookIssuesLockedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -432,191 +401,18 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropUserType(TypedDict): url: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, None - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType( - TypedDict -): - """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] - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( - TypedDict -): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - __all__ = ( - "WebhookIssuesTransferredType", - "WebhookIssuesTransferredPropChangesType", - "WebhookIssuesTransferredPropChangesPropNewIssueType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", + "WebhookIssuesLockedType", + "WebhookIssuesLockedPropIssueType", + "WebhookIssuesLockedPropIssuePropAssigneeType", + "WebhookIssuesLockedPropIssuePropAssigneesItemsType", + "WebhookIssuesLockedPropIssuePropLabelsItemsType", + "WebhookIssuesLockedPropIssuePropMilestoneType", + "WebhookIssuesLockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLockedPropIssuePropPullRequestType", + "WebhookIssuesLockedPropIssuePropReactionsType", + "WebhookIssuesLockedPropIssuePropUserType", ) 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 ef641180e..73587ff07 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0594.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0594.py @@ -9,29 +9,411 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0425 import WebhooksIssueType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0428 import WebhooksUserMannequinType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0430 import WebhooksMilestoneType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookIssuesUnassignedType(TypedDict): - """issues unassigned event""" +class WebhookIssuesMilestonedType(TypedDict): + """issues milestoned event""" - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhooksUserMannequinType, None]] + action: Literal["milestoned"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType + issue: WebhookIssuesMilestonedPropIssueType + milestone: WebhooksMilestoneType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookIssuesUnassignedType",) +class WebhookIssuesMilestonedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesMilestonedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[Union[WebhookIssuesMilestonedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesMilestonedPropIssuePropPullRequestType] + reactions: WebhookIssuesMilestonedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesMilestonedPropIssuePropUserType, None] + + +class WebhookIssuesMilestonedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesMilestonedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + ] + ] + ] + 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] + + +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] + + +__all__ = ( + "WebhookIssuesMilestonedType", + "WebhookIssuesMilestonedPropIssueType", + "WebhookIssuesMilestonedPropIssuePropAssigneeType", + "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesMilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesMilestonedPropIssuePropMilestoneType", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesMilestonedPropIssuePropPullRequestType", + "WebhookIssuesMilestonedPropIssuePropReactionsType", + "WebhookIssuesMilestonedPropIssuePropUserType", +) 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 b95d86bd2..34443c514 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0595.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0595.py @@ -9,29 +9,982 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0420 import WebhooksLabelType -from .group_0425 import WebhooksIssueType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookIssuesUnlabeledType(TypedDict): - """issues unlabeled event""" +class WebhookIssuesOpenedType(TypedDict): + """issues opened event""" - action: Literal["unlabeled"] + action: Literal["opened"] + changes: NotRequired[WebhookIssuesOpenedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType - label: NotRequired[WebhooksLabelType] + issue: WebhookIssuesOpenedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookIssuesUnlabeledType",) +class WebhookIssuesOpenedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] + reactions: WebhookIssuesOpenedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] + + +class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +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] + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "security_and_analysis", + "pull_request_review_thread", + "reminder", + ] + ] + ] + 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] + + +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 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] + + +class WebhookIssuesOpenedPropChangesType(TypedDict): + """WebhookIssuesOpenedPropChanges""" + + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] + old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType + + +class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] + ] + assignees: List[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, + None, + ] + ] + pull_request: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType + ] + reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( + TypedDict +): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio + ns + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class 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] + + +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] + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType( + TypedDict +): + """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] + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +__all__ = ( + "WebhookIssuesOpenedType", + "WebhookIssuesOpenedPropIssueType", + "WebhookIssuesOpenedPropIssuePropAssigneeType", + "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropIssuePropMilestoneType", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropIssuePropPullRequestType", + "WebhookIssuesOpenedPropIssuePropReactionsType", + "WebhookIssuesOpenedPropIssuePropUserType", + "WebhookIssuesOpenedPropChangesType", + "WebhookIssuesOpenedPropChangesPropOldIssueType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", +) 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 01b47121f..d08ec66e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0596.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0596.py @@ -9,408 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0431 import WebhooksIssue2Type +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookIssuesUnlockedType(TypedDict): - """issues unlocked event""" +class WebhookIssuesPinnedType(TypedDict): + """issues pinned event""" - action: Literal["unlocked"] + action: Literal["pinned"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesUnlockedPropIssueType + issue: WebhooksIssue2Type organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookIssuesUnlockedPropIssueType(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[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 - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesUnlockedPropIssuePropUserType, None] - - -class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -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] - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] - 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] - - -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] - - -__all__ = ( - "WebhookIssuesUnlockedType", - "WebhookIssuesUnlockedPropIssueType", - "WebhookIssuesUnlockedPropIssuePropAssigneeType", - "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", - "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", - "WebhookIssuesUnlockedPropIssuePropMilestoneType", - "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesUnlockedPropIssuePropPullRequestType", - "WebhookIssuesUnlockedPropIssuePropReactionsType", - "WebhookIssuesUnlockedPropIssuePropUserType", -) +__all__ = ("WebhookIssuesPinnedType",) 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 77bacaab6..3f07ddb6c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0597.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0597.py @@ -9,27 +9,410 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0427 import WebhooksIssue2Type -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookIssuesUnpinnedType(TypedDict): - """issues unpinned event""" +class WebhookIssuesReopenedType(TypedDict): + """issues reopened event""" - action: Literal["unpinned"] + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type + issue: WebhookIssuesReopenedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookIssuesUnpinnedType",) +class WebhookIssuesReopenedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesReopenedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesReopenedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[Union[WebhookIssuesReopenedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesReopenedPropIssuePropPullRequestType] + reactions: WebhookIssuesReopenedPropIssuePropReactionsType + repository_url: str + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesReopenedPropIssuePropUserType, None] + + +class WebhookIssuesReopenedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "reminder", + ] + ] + ] + 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] + + +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] + + +__all__ = ( + "WebhookIssuesReopenedType", + "WebhookIssuesReopenedPropIssueType", + "WebhookIssuesReopenedPropIssuePropAssigneeType", + "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", + "WebhookIssuesReopenedPropIssuePropLabelsItemsType", + "WebhookIssuesReopenedPropIssuePropMilestoneType", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesReopenedPropIssuePropPullRequestType", + "WebhookIssuesReopenedPropIssuePropReactionsType", + "WebhookIssuesReopenedPropIssuePropUserType", +) 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 871bc7ffc..aa6a09993 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0598.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0598.py @@ -9,27 +9,614 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0420 import WebhooksLabelType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0431 import WebhooksIssue2Type +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookLabelCreatedType(TypedDict): - """label created event""" +class WebhookIssuesTransferredType(TypedDict): + """issues transferred event""" - action: Literal["created"] + action: Literal["transferred"] + changes: WebhookIssuesTransferredPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType + issue: WebhooksIssue2Type organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookLabelCreatedType",) +class WebhookIssuesTransferredPropChangesType(TypedDict): + """WebhookIssuesTransferredPropChanges""" + + new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType + new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType + + +class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/enterprise- + cloud@latest//rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, None] + ] + assignees: List[ + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, None + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, None + ] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, + None, + ] + ] + pull_request: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType + ] + reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +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] + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + 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] + + +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 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] + + +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] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType( + TypedDict +): + """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] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( + TypedDict +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +__all__ = ( + "WebhookIssuesTransferredType", + "WebhookIssuesTransferredPropChangesType", + "WebhookIssuesTransferredPropChangesPropNewIssueType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", +) 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 290e45690..3e392c038 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0599.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0599.py @@ -9,27 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0420 import WebhooksLabelType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0429 import WebhooksIssueType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0432 import WebhooksUserMannequinType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookLabelDeletedType(TypedDict): - """label deleted event""" +class WebhookIssuesUnassignedType(TypedDict): + """issues unassigned event""" - action: Literal["deleted"] + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhooksUserMannequinType, None]] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType + issue: WebhooksIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookLabelDeletedType",) +__all__ = ("WebhookIssuesUnassignedType",) 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 5ec8f7ec3..c39a19436 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0600.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0600.py @@ -12,60 +12,26 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0420 import WebhooksLabelType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0424 import WebhooksLabelType +from .group_0429 import WebhooksIssueType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookLabelEditedType(TypedDict): - """label edited event""" +class WebhookIssuesUnlabeledType(TypedDict): + """issues unlabeled event""" - action: Literal["edited"] - changes: NotRequired[WebhookLabelEditedPropChangesType] + action: Literal["unlabeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType + issue: WebhooksIssueType + label: NotRequired[WebhooksLabelType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -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__ = ( - "WebhookLabelEditedType", - "WebhookLabelEditedPropChangesType", - "WebhookLabelEditedPropChangesPropColorType", - "WebhookLabelEditedPropChangesPropDescriptionType", - "WebhookLabelEditedPropChangesPropNameType", -) +__all__ = ("WebhookIssuesUnlabeledType",) 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 5f52f63c6..8607562ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0601.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0601.py @@ -9,30 +9,408 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0429 import WebhooksMarketplacePurchaseType -from .group_0430 import WebhooksPreviousMarketplacePurchaseType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchaseCancelledType(TypedDict): - """marketplace_purchase cancelled event""" +class WebhookIssuesUnlockedType(TypedDict): + """issues unlocked event""" - action: Literal["cancelled"] - effective_date: str + action: Literal["unlocked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + issue: WebhookIssuesUnlockedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookMarketplacePurchaseCancelledType",) +class WebhookIssuesUnlockedPropIssueType(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[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 + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesUnlockedPropIssuePropUserType, None] + + +class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +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] + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + 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] + + +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] + + +__all__ = ( + "WebhookIssuesUnlockedType", + "WebhookIssuesUnlockedPropIssueType", + "WebhookIssuesUnlockedPropIssuePropAssigneeType", + "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", + "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", + "WebhookIssuesUnlockedPropIssuePropMilestoneType", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesUnlockedPropIssuePropPullRequestType", + "WebhookIssuesUnlockedPropIssuePropReactionsType", + "WebhookIssuesUnlockedPropIssuePropUserType", +) 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 40e9f3e14..d0bc1d206 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0602.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0602.py @@ -9,78 +9,27 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0429 import WebhooksMarketplacePurchaseType +from .group_0431 import WebhooksIssue2Type +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchaseChangedType(TypedDict): - """marketplace_purchase changed event""" +class WebhookIssuesUnpinnedType(TypedDict): + """issues unpinned event""" - action: Literal["changed"] - effective_date: str + action: Literal["unpinned"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + issue: WebhooksIssue2Type organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType - ] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -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__ = ( - "WebhookMarketplacePurchaseChangedType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", -) +__all__ = ("WebhookIssuesUnpinnedType",) 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 0a63547a2..c8fa87205 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0603.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0603.py @@ -9,80 +9,27 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0429 import WebhooksMarketplacePurchaseType +from .group_0424 import WebhooksLabelType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePendingChangeType(TypedDict): - """marketplace_purchase pending_change event""" +class WebhookLabelCreatedType(TypedDict): + """label created event""" - action: Literal["pending_change"] - effective_date: str + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType - ] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( - TypedDict -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t - """ - - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int - - -__all__ = ( - "WebhookMarketplacePurchasePendingChangeType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", -) +__all__ = ("WebhookLabelCreatedType",) 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 9608fe255..8bcd5a91e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0604.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0604.py @@ -9,80 +9,27 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0430 import WebhooksPreviousMarketplacePurchaseType +from .group_0424 import WebhooksLabelType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): - """marketplace_purchase pending_change_cancelled event""" +class WebhookLabelDeletedType(TypedDict): + """label deleted event""" - action: Literal["pending_change_cancelled"] - effective_date: str + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType - ) + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -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__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", -) +__all__ = ("WebhookLabelDeletedType",) 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 69aa3f5a3..42bbfd22f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0605.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0605.py @@ -12,27 +12,60 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0429 import WebhooksMarketplacePurchaseType -from .group_0430 import WebhooksPreviousMarketplacePurchaseType +from .group_0424 import WebhooksLabelType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePurchasedType(TypedDict): - """marketplace_purchase purchased event""" +class WebhookLabelEditedType(TypedDict): + """label edited event""" - action: Literal["purchased"] - effective_date: str + action: Literal["edited"] + changes: NotRequired[WebhookLabelEditedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookMarketplacePurchasePurchasedType",) +class WebhookLabelEditedPropChangesType(TypedDict): + """WebhookLabelEditedPropChanges + + The changes to the label if the action was `edited`. + """ + + color: NotRequired[WebhookLabelEditedPropChangesPropColorType] + description: NotRequired[WebhookLabelEditedPropChangesPropDescriptionType] + name: NotRequired[WebhookLabelEditedPropChangesPropNameType] + + +class WebhookLabelEditedPropChangesPropColorType(TypedDict): + """WebhookLabelEditedPropChangesPropColor""" + + from_: str + + +class WebhookLabelEditedPropChangesPropDescriptionType(TypedDict): + """WebhookLabelEditedPropChangesPropDescription""" + + from_: str + + +class WebhookLabelEditedPropChangesPropNameType(TypedDict): + """WebhookLabelEditedPropChangesPropName""" + + from_: str + + +__all__ = ( + "WebhookLabelEditedType", + "WebhookLabelEditedPropChangesType", + "WebhookLabelEditedPropChangesPropColorType", + "WebhookLabelEditedPropChangesPropDescriptionType", + "WebhookLabelEditedPropChangesPropNameType", +) 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 cc4255f30..732730d47 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0606.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0606.py @@ -9,64 +9,30 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0416 import WebhooksUserType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0433 import WebhooksMarketplacePurchaseType +from .group_0434 import WebhooksPreviousMarketplacePurchaseType -class WebhookMemberAddedType(TypedDict): - """member added event""" +class WebhookMarketplacePurchaseCancelledType(TypedDict): + """marketplace_purchase cancelled event""" - action: Literal["added"] - changes: NotRequired[WebhookMemberAddedPropChangesType] + action: Literal["cancelled"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -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__ = ( - "WebhookMemberAddedType", - "WebhookMemberAddedPropChangesType", - "WebhookMemberAddedPropChangesPropPermissionType", - "WebhookMemberAddedPropChangesPropRoleNameType", -) +__all__ = ("WebhookMarketplacePurchaseCancelledType",) 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 fc91e4f18..14247c867 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0607.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0607.py @@ -9,56 +9,78 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0416 import WebhooksUserType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0433 import WebhooksMarketplacePurchaseType -class WebhookMemberEditedType(TypedDict): - """member edited event""" +class WebhookMarketplacePurchaseChangedType(TypedDict): + """marketplace_purchase changed event""" - action: Literal["edited"] - changes: WebhookMemberEditedPropChangesType + action: Literal["changed"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType + ] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookMemberEditedPropChangesType(TypedDict): - """WebhookMemberEditedPropChanges +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" - The changes to the collaborator permissions - """ + account: ( + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType + ) + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: Union[bool, None] + plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType + unit_count: int - old_permission: NotRequired[WebhookMemberEditedPropChangesPropOldPermissionType] - permission: NotRequired[WebhookMemberEditedPropChangesPropPermissionType] +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" -class WebhookMemberEditedPropChangesPropOldPermissionType(TypedDict): - """WebhookMemberEditedPropChangesPropOldPermission""" + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str - from_: str +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" -class WebhookMemberEditedPropChangesPropPermissionType(TypedDict): - """WebhookMemberEditedPropChangesPropPermission""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] + bullets: List[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhookMemberEditedType", - "WebhookMemberEditedPropChangesType", - "WebhookMemberEditedPropChangesPropOldPermissionType", - "WebhookMemberEditedPropChangesPropPermissionType", + "WebhookMarketplacePurchaseChangedType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", ) 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 798844db2..d04c03560 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0608.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0608.py @@ -9,27 +9,80 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0416 import WebhooksUserType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0433 import WebhooksMarketplacePurchaseType -class WebhookMemberRemovedType(TypedDict): - """member removed event""" +class WebhookMarketplacePurchasePendingChangeType(TypedDict): + """marketplace_purchase pending_change event""" - action: Literal["removed"] + action: Literal["pending_change"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType + ] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -__all__ = ("WebhookMemberRemovedType",) +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( + TypedDict +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ + + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int + + +__all__ = ( + "WebhookMarketplacePurchasePendingChangeType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", +) 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 b63fbe183..2d12a648e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0609.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0609.py @@ -9,58 +9,80 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0416 import WebhooksUserType -from .group_0431 import WebhooksTeamType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0434 import WebhooksPreviousMarketplacePurchaseType -class WebhookMembershipAddedType(TypedDict): - """membership added event""" +class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): + """marketplace_purchase pending_change_cancelled event""" - action: Literal["added"] + action: Literal["pending_change_cancelled"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] - organization: OrganizationSimpleWebhooksType + marketplace_purchase: ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType + ) + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team"] - sender: Union[WebhookMembershipAddedPropSenderType, None] - team: WebhooksTeamType - - -class WebhookMembershipAddedPropSenderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + sender: SimpleUserWebhooksType + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType( + TypedDict +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: None + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt + """ + id: int login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + 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__ = ( - "WebhookMembershipAddedType", - "WebhookMembershipAddedPropSenderType", + "WebhookMarketplacePurchasePendingChangeCancelledType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", ) 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 ba542bfd4..f06bf6f80 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0610.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0610.py @@ -9,58 +9,30 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0416 import WebhooksUserType -from .group_0431 import WebhooksTeamType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0433 import WebhooksMarketplacePurchaseType +from .group_0434 import WebhooksPreviousMarketplacePurchaseType -class WebhookMembershipRemovedType(TypedDict): - """membership removed event""" +class WebhookMarketplacePurchasePurchasedType(TypedDict): + """marketplace_purchase purchased event""" - action: Literal["removed"] + action: Literal["purchased"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] - organization: OrganizationSimpleWebhooksType + marketplace_purchase: WebhooksMarketplacePurchaseType + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team", "organization"] - sender: Union[WebhookMembershipRemovedPropSenderType, None] - team: WebhooksTeamType + sender: SimpleUserWebhooksType -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] - - -__all__ = ( - "WebhookMembershipRemovedType", - "WebhookMembershipRemovedPropSenderType", -) +__all__ = ("WebhookMarketplacePurchasePurchasedType",) 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 8ea5048f6..0cca9e1f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0611.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0611.py @@ -9,25 +9,64 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0432 import MergeGroupType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0420 import WebhooksUserType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookMergeGroupChecksRequestedType(TypedDict): - """WebhookMergeGroupChecksRequested""" +class WebhookMemberAddedType(TypedDict): + """member added event""" - action: Literal["checks_requested"] + action: Literal["added"] + changes: NotRequired[WebhookMemberAddedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - merge_group: MergeGroupType + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookMergeGroupChecksRequestedType",) +class WebhookMemberAddedPropChangesType(TypedDict): + """WebhookMemberAddedPropChanges""" + + permission: NotRequired[WebhookMemberAddedPropChangesPropPermissionType] + role_name: NotRequired[WebhookMemberAddedPropChangesPropRoleNameType] + + +class WebhookMemberAddedPropChangesPropPermissionType(TypedDict): + """WebhookMemberAddedPropChangesPropPermission + + This field is included for legacy purposes; use the `role_name` field instead. + The `maintain` + role is mapped to `write` and the `triage` role is mapped to `read`. To + determine the role + assigned to the collaborator, use the `role_name` field instead, which will + provide the full + role name, including custom roles. + """ + + to: Literal["write", "admin", "read"] + + +class WebhookMemberAddedPropChangesPropRoleNameType(TypedDict): + """WebhookMemberAddedPropChangesPropRoleName + + The role assigned to the collaborator. + """ + + to: str + + +__all__ = ( + "WebhookMemberAddedType", + "WebhookMemberAddedPropChangesType", + "WebhookMemberAddedPropChangesPropPermissionType", + "WebhookMemberAddedPropChangesPropRoleNameType", +) 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 89a9945f8..b584e4c1b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0612.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0612.py @@ -9,26 +9,56 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0432 import MergeGroupType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0420 import WebhooksUserType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookMergeGroupDestroyedType(TypedDict): - """WebhookMergeGroupDestroyed""" +class WebhookMemberEditedType(TypedDict): + """member edited event""" - action: Literal["destroyed"] - reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] + action: Literal["edited"] + changes: WebhookMemberEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - merge_group: MergeGroupType + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookMergeGroupDestroyedType",) +class WebhookMemberEditedPropChangesType(TypedDict): + """WebhookMemberEditedPropChanges + + The changes to the collaborator permissions + """ + + old_permission: NotRequired[WebhookMemberEditedPropChangesPropOldPermissionType] + permission: NotRequired[WebhookMemberEditedPropChangesPropPermissionType] + + +class WebhookMemberEditedPropChangesPropOldPermissionType(TypedDict): + """WebhookMemberEditedPropChangesPropOldPermission""" + + from_: str + + +class WebhookMemberEditedPropChangesPropPermissionType(TypedDict): + """WebhookMemberEditedPropChangesPropPermission""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] + + +__all__ = ( + "WebhookMemberEditedType", + "WebhookMemberEditedPropChangesType", + "WebhookMemberEditedPropChangesPropOldPermissionType", + "WebhookMemberEditedPropChangesPropPermissionType", +) 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 5bdf223b6..fae9d9610 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0613.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0613.py @@ -9,112 +9,27 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0420 import WebhooksUserType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookMetaDeletedType(TypedDict): - """meta deleted event""" +class WebhookMemberRemovedType(TypedDict): + """member removed event""" - action: Literal["deleted"] + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] - hook: WebhookMetaDeletedPropHookType - hook_id: int installation: NotRequired[SimpleInstallationType] + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookMetaDeletedPropHookType(TypedDict): - """WebhookMetaDeletedPropHook - - The modified webhook. This will contain different keys based on the type of - webhook it is: repository, organization, business, app, or GitHub Marketplace. - """ - - active: bool - config: WebhookMetaDeletedPropHookPropConfigType - created_at: str - events: List[ - Literal[ - "*", - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "create", - "delete", - "deployment", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "meta", - "milestone", - "organization", - "org_block", - "package", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "pull_request_review_thread", - "push", - "registry_package", - "release", - "repository", - "repository_import", - "repository_vulnerability_alert", - "secret_scanning_alert", - "secret_scanning_alert_location", - "security_and_analysis", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_job", - "workflow_run", - "repository_dispatch", - "projects_v2_item", - ] - ] - 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__ = ( - "WebhookMetaDeletedType", - "WebhookMetaDeletedPropHookType", - "WebhookMetaDeletedPropHookPropConfigType", -) +__all__ = ("WebhookMemberRemovedType",) 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 3fcc141d6..de60a6704 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0614.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0614.py @@ -9,27 +9,58 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0426 import WebhooksMilestoneType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0420 import WebhooksUserType +from .group_0435 import WebhooksTeamType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookMilestoneClosedType(TypedDict): - """milestone closed event""" +class WebhookMembershipAddedType(TypedDict): + """membership added event""" - action: Literal["closed"] + action: Literal["added"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + member: Union[WebhooksUserType, None] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + scope: Literal["team"] + sender: Union[WebhookMembershipAddedPropSenderType, None] + team: WebhooksTeamType -__all__ = ("WebhookMilestoneClosedType",) +class WebhookMembershipAddedPropSenderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookMembershipAddedType", + "WebhookMembershipAddedPropSenderType", +) 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 38e1e58de..8e12992c4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0615.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0615.py @@ -9,27 +9,58 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0433 import WebhooksMilestone3Type -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0420 import WebhooksUserType +from .group_0435 import WebhooksTeamType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookMilestoneCreatedType(TypedDict): - """milestone created event""" +class WebhookMembershipRemovedType(TypedDict): + """membership removed event""" - action: Literal["created"] + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestone3Type - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + member: Union[WebhooksUserType, None] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + scope: Literal["team", "organization"] + sender: Union[WebhookMembershipRemovedPropSenderType, None] + team: WebhooksTeamType -__all__ = ("WebhookMilestoneCreatedType",) +class WebhookMembershipRemovedPropSenderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookMembershipRemovedType", + "WebhookMembershipRemovedPropSenderType", +) 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 aa1bb29a9..ab43b03ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0616.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0616.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0426 import WebhooksMilestoneType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0436 import MergeGroupType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookMilestoneDeletedType(TypedDict): - """milestone deleted event""" +class WebhookMergeGroupChecksRequestedType(TypedDict): + """WebhookMergeGroupChecksRequested""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["checks_requested"] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType + merge_group: MergeGroupType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookMilestoneDeletedType",) +__all__ = ("WebhookMergeGroupChecksRequestedType",) 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 690504654..dc5f87950 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0617.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0617.py @@ -12,60 +12,23 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0426 import WebhooksMilestoneType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0436 import MergeGroupType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookMilestoneEditedType(TypedDict): - """milestone edited event""" +class WebhookMergeGroupDestroyedType(TypedDict): + """WebhookMergeGroupDestroyed""" - action: Literal["edited"] - changes: WebhookMilestoneEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["destroyed"] + reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType + merge_group: MergeGroupType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] -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__ = ( - "WebhookMilestoneEditedType", - "WebhookMilestoneEditedPropChangesType", - "WebhookMilestoneEditedPropChangesPropDescriptionType", - "WebhookMilestoneEditedPropChangesPropDueOnType", - "WebhookMilestoneEditedPropChangesPropTitleType", -) +__all__ = ("WebhookMergeGroupDestroyedType",) 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 f3cdb8cf4..4c6c3433d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0618.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0618.py @@ -9,27 +9,112 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0433 import WebhooksMilestone3Type -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookMilestoneOpenedType(TypedDict): - """milestone opened event""" +class WebhookMetaDeletedType(TypedDict): + """meta deleted event""" - action: Literal["opened"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] + hook: WebhookMetaDeletedPropHookType + hook_id: int installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestone3Type organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookMilestoneOpenedType",) +class WebhookMetaDeletedPropHookType(TypedDict): + """WebhookMetaDeletedPropHook + + The modified webhook. This will contain different keys based on the type of + webhook it is: repository, organization, business, app, or GitHub Marketplace. + """ + + active: bool + config: WebhookMetaDeletedPropHookPropConfigType + created_at: str + events: List[ + Literal[ + "*", + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "create", + "delete", + "deployment", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "meta", + "milestone", + "organization", + "org_block", + "package", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "pull_request_review_thread", + "push", + "registry_package", + "release", + "repository", + "repository_import", + "repository_vulnerability_alert", + "secret_scanning_alert", + "secret_scanning_alert_location", + "security_and_analysis", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_job", + "workflow_run", + "repository_dispatch", + "projects_v2_item", + ] + ] + 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__ = ( + "WebhookMetaDeletedType", + "WebhookMetaDeletedPropHookType", + "WebhookMetaDeletedPropHookPropConfigType", +) 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 9beb7a81f..45eb53b1f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0619.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0619.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0416 import WebhooksUserType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0430 import WebhooksMilestoneType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookOrgBlockBlockedType(TypedDict): - """org_block blocked event""" +class WebhookMilestoneClosedType(TypedDict): + """milestone closed event""" - action: Literal["blocked"] - blocked_user: Union[WebhooksUserType, None] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookOrgBlockBlockedType",) +__all__ = ("WebhookMilestoneClosedType",) 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 8f769fbd1..db493119e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0620.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0620.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0416 import WebhooksUserType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0437 import WebhooksMilestone3Type +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookOrgBlockUnblockedType(TypedDict): - """org_block unblocked event""" +class WebhookMilestoneCreatedType(TypedDict): + """milestone created event""" - action: Literal["unblocked"] - blocked_user: Union[WebhooksUserType, None] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestone3Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookOrgBlockUnblockedType",) +__all__ = ("WebhookMilestoneCreatedType",) 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 c4b6d5dc8..4dccb9003 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0621.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0621.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0434 import WebhooksMembershipType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0430 import WebhooksMilestoneType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookOrganizationDeletedType(TypedDict): - """organization deleted event""" +class WebhookMilestoneDeletedType(TypedDict): + """milestone deleted event""" action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhooksMembershipType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookOrganizationDeletedType",) +__all__ = ("WebhookMilestoneDeletedType",) 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 6c5ceb04a..505a80851 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0622.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0622.py @@ -12,24 +12,60 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0434 import WebhooksMembershipType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0430 import WebhooksMilestoneType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookOrganizationMemberAddedType(TypedDict): - """organization member_added event""" +class WebhookMilestoneEditedType(TypedDict): + """milestone edited event""" - action: Literal["member_added"] + action: Literal["edited"] + changes: WebhookMilestoneEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: WebhooksMembershipType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookOrganizationMemberAddedType",) +class WebhookMilestoneEditedPropChangesType(TypedDict): + """WebhookMilestoneEditedPropChanges + + The changes to the milestone if the action was `edited`. + """ + + description: NotRequired[WebhookMilestoneEditedPropChangesPropDescriptionType] + due_on: NotRequired[WebhookMilestoneEditedPropChangesPropDueOnType] + title: NotRequired[WebhookMilestoneEditedPropChangesPropTitleType] + + +class WebhookMilestoneEditedPropChangesPropDescriptionType(TypedDict): + """WebhookMilestoneEditedPropChangesPropDescription""" + + from_: str + + +class WebhookMilestoneEditedPropChangesPropDueOnType(TypedDict): + """WebhookMilestoneEditedPropChangesPropDueOn""" + + from_: str + + +class WebhookMilestoneEditedPropChangesPropTitleType(TypedDict): + """WebhookMilestoneEditedPropChangesPropTitle""" + + from_: str + + +__all__ = ( + "WebhookMilestoneEditedType", + "WebhookMilestoneEditedPropChangesType", + "WebhookMilestoneEditedPropChangesPropDescriptionType", + "WebhookMilestoneEditedPropChangesPropDueOnType", + "WebhookMilestoneEditedPropChangesPropTitleType", +) 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 9d444fcc7..866b6f0cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0623.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0623.py @@ -9,79 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0416 import WebhooksUserType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0437 import WebhooksMilestone3Type +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookOrganizationMemberInvitedType(TypedDict): - """organization member_invited event""" +class WebhookMilestoneOpenedType(TypedDict): + """milestone opened event""" - action: Literal["member_invited"] + action: Literal["opened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - invitation: WebhookOrganizationMemberInvitedPropInvitationType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestone3Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - 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] - - -__all__ = ( - "WebhookOrganizationMemberInvitedType", - "WebhookOrganizationMemberInvitedPropInvitationType", - "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", -) +__all__ = ("WebhookMilestoneOpenedType",) 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 f8f678c44..43352017a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0624.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0624.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0434 import WebhooksMembershipType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0420 import WebhooksUserType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookOrganizationMemberRemovedType(TypedDict): - """organization member_removed event""" +class WebhookOrgBlockBlockedType(TypedDict): + """org_block blocked event""" - action: Literal["member_removed"] + action: Literal["blocked"] + blocked_user: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: WebhooksMembershipType organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -__all__ = ("WebhookOrganizationMemberRemovedType",) +__all__ = ("WebhookOrgBlockBlockedType",) 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 2895929d7..4f6afee37 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0625.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0625.py @@ -9,44 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0434 import WebhooksMembershipType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0420 import WebhooksUserType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookOrganizationRenamedType(TypedDict): - """organization renamed event""" +class WebhookOrgBlockUnblockedType(TypedDict): + """org_block unblocked event""" - action: Literal["renamed"] - changes: NotRequired[WebhookOrganizationRenamedPropChangesType] + action: Literal["unblocked"] + blocked_user: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhooksMembershipType] organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookOrganizationRenamedPropChangesType(TypedDict): - """WebhookOrganizationRenamedPropChanges""" - - login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] - - -class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): - """WebhookOrganizationRenamedPropChangesPropLogin""" - - from_: NotRequired[str] - - -__all__ = ( - "WebhookOrganizationRenamedType", - "WebhookOrganizationRenamedPropChangesType", - "WebhookOrganizationRenamedPropChangesPropLoginType", -) +__all__ = ("WebhookOrgBlockUnblockedType",) 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 20f1913b5..e6238dddb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0626.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0626.py @@ -9,42 +9,27 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0438 import WebhooksMembershipType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRubygemsMetadataType(TypedDict): - """Ruby Gems metadata""" - name: NotRequired[str] - description: NotRequired[str] - readme: NotRequired[str] - homepage: NotRequired[str] - version_info: NotRequired[WebhookRubygemsMetadataPropVersionInfoType] - platform: NotRequired[str] - metadata: NotRequired[WebhookRubygemsMetadataPropMetadataType] - repo: NotRequired[str] - dependencies: NotRequired[List[WebhookRubygemsMetadataPropDependenciesItemsType]] - commit_oid: NotRequired[str] +class WebhookOrganizationDeletedType(TypedDict): + """organization deleted event""" + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: NotRequired[WebhooksMembershipType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -class WebhookRubygemsMetadataPropVersionInfoType(TypedDict): - """WebhookRubygemsMetadataPropVersionInfo""" - version: NotRequired[str] - - -class WebhookRubygemsMetadataPropMetadataType(TypedDict): - """WebhookRubygemsMetadataPropMetadata""" - - -class WebhookRubygemsMetadataPropDependenciesItemsType(TypedDict): - """WebhookRubygemsMetadataPropDependenciesItems""" - - -__all__ = ( - "WebhookRubygemsMetadataType", - "WebhookRubygemsMetadataPropVersionInfoType", - "WebhookRubygemsMetadataPropMetadataType", - "WebhookRubygemsMetadataPropDependenciesItemsType", -) +__all__ = ("WebhookOrganizationDeletedType",) 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 61553701e..0c4d89439 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0627.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0627.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0628 import WebhookPackagePublishedPropPackageType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0438 import WebhooksMembershipType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPackagePublishedType(TypedDict): - """package published event""" +class WebhookOrganizationMemberAddedType(TypedDict): + """organization member_added event""" - action: Literal["published"] + action: Literal["member_added"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackagePublishedPropPackageType + membership: WebhooksMembershipType + organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -__all__ = ("WebhookPackagePublishedType",) +__all__ = ("WebhookOrganizationMemberAddedType",) 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 d423aa4cd..5351110c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0628.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0628.py @@ -9,35 +9,52 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0629 import WebhookPackagePublishedPropPackagePropPackageVersionType +from .group_0420 import WebhooksUserType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPackagePublishedPropPackageType(TypedDict): - """WebhookPackagePublishedPropPackage +class WebhookOrganizationMemberInvitedType(TypedDict): + """organization member_invited event""" - Information about the package. + action: Literal["member_invited"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + invitation: WebhookOrganizationMemberInvitedPropInvitationType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + user: NotRequired[Union[WebhooksUserType, None]] + + +class WebhookOrganizationMemberInvitedPropInvitationType(TypedDict): + """WebhookOrganizationMemberInvitedPropInvitation + + The invitation for the user or email if the action is `member_invited`. """ - created_at: Union[str, None] - description: Union[str, None] - ecosystem: str - html_url: str - id: int - name: str - namespace: str - owner: Union[WebhookPackagePublishedPropPackagePropOwnerType, None] - package_type: str - package_version: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionType, None - ] - registry: Union[WebhookPackagePublishedPropPackagePropRegistryType, None] - updated_at: Union[str, None] - - -class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): + created_at: datetime + email: Union[str, None] + failed_at: Union[datetime, None] + failed_reason: Union[str, None] + id: float + invitation_teams_url: str + inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviterType, None] + login: Union[str, None] + node_id: str + role: str + team_count: float + invitation_source: NotRequired[str] + + +class WebhookOrganizationMemberInvitedPropInvitationPropInviterType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -63,18 +80,8 @@ class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): url: NotRequired[str] -class WebhookPackagePublishedPropPackagePropRegistryType(TypedDict): - """WebhookPackagePublishedPropPackagePropRegistry""" - - about_url: str - name: str - type: str - url: str - vendor: str - - __all__ = ( - "WebhookPackagePublishedPropPackageType", - "WebhookPackagePublishedPropPackagePropOwnerType", - "WebhookPackagePublishedPropPackagePropRegistryType", + "WebhookOrganizationMemberInvitedType", + "WebhookOrganizationMemberInvitedPropInvitationType", + "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", ) 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 4bbd5c5a3..c407ee5c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0629.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0629.py @@ -9,492 +9,27 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0626 import WebhookRubygemsMetadataType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0438 import WebhooksMembershipType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersion""" +class WebhookOrganizationMemberRemovedType(TypedDict): + """organization member_removed event""" - author: NotRequired[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, None] - ] - body: NotRequired[ - Union[ - str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type - ] - ] - body_html: NotRequired[str] - container_metadata: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, - None, - ] - ] - created_at: NotRequired[str] - description: str - docker_metadata: NotRequired[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType - ] - name: str - npm_metadata: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, - None, - ] - ] - nuget_metadata: NotRequired[ - Union[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType - ], - None, - ] - ] - package_files: List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: NotRequired[str] - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] - source_url: NotRequired[str] - summary: str - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - target_oid: NotRequired[str] - updated_at: NotRequired[str] - version: str + action: Literal["member_removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: WebhooksMembershipType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -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] - - -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]] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType( - TypedDict -): - """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] - - -__all__ = ( - "WebhookPackagePublishedPropPackagePropPackageVersionType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", -) +__all__ = ("WebhookOrganizationMemberRemovedType",) 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 06d411bb1..c5ad64406 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0630.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0630.py @@ -12,24 +12,41 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0631 import WebhookPackageUpdatedPropPackageType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0438 import WebhooksMembershipType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPackageUpdatedType(TypedDict): - """package updated event""" +class WebhookOrganizationRenamedType(TypedDict): + """organization renamed event""" - action: Literal["updated"] + action: Literal["renamed"] + changes: NotRequired[WebhookOrganizationRenamedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackageUpdatedPropPackageType - repository: RepositoryWebhooksType + membership: NotRequired[WebhooksMembershipType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -__all__ = ("WebhookPackageUpdatedType",) +class WebhookOrganizationRenamedPropChangesType(TypedDict): + """WebhookOrganizationRenamedPropChanges""" + + login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] + + +class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): + """WebhookOrganizationRenamedPropChangesPropLogin""" + + from_: NotRequired[str] + + +__all__ = ( + "WebhookOrganizationRenamedType", + "WebhookOrganizationRenamedPropChangesType", + "WebhookOrganizationRenamedPropChangesPropLoginType", +) 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 44f371aa5..20f1913b5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0631.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0631.py @@ -9,70 +9,42 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0632 import WebhookPackageUpdatedPropPackagePropPackageVersionType - - -class WebhookPackageUpdatedPropPackageType(TypedDict): - """WebhookPackageUpdatedPropPackage - - Information about the package. - """ - - created_at: str - description: Union[str, None] - ecosystem: str - html_url: str - id: int - name: str - namespace: str - owner: Union[WebhookPackageUpdatedPropPackagePropOwnerType, None] - package_type: str - package_version: WebhookPackageUpdatedPropPackagePropPackageVersionType - registry: Union[WebhookPackageUpdatedPropPackagePropRegistryType, None] - updated_at: str - - -class WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str + +class WebhookRubygemsMetadataType(TypedDict): + """Ruby Gems metadata""" + name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + description: NotRequired[str] + readme: NotRequired[str] + homepage: NotRequired[str] + version_info: NotRequired[WebhookRubygemsMetadataPropVersionInfoType] + platform: NotRequired[str] + metadata: NotRequired[WebhookRubygemsMetadataPropMetadataType] + repo: NotRequired[str] + dependencies: NotRequired[List[WebhookRubygemsMetadataPropDependenciesItemsType]] + commit_oid: NotRequired[str] + + +class WebhookRubygemsMetadataPropVersionInfoType(TypedDict): + """WebhookRubygemsMetadataPropVersionInfo""" + + version: NotRequired[str] + +class WebhookRubygemsMetadataPropMetadataType(TypedDict): + """WebhookRubygemsMetadataPropMetadata""" -class WebhookPackageUpdatedPropPackagePropRegistryType(TypedDict): - """WebhookPackageUpdatedPropPackagePropRegistry""" - about_url: str - name: str - type: str - url: str - vendor: str +class WebhookRubygemsMetadataPropDependenciesItemsType(TypedDict): + """WebhookRubygemsMetadataPropDependenciesItems""" __all__ = ( - "WebhookPackageUpdatedPropPackageType", - "WebhookPackageUpdatedPropPackagePropOwnerType", - "WebhookPackageUpdatedPropPackagePropRegistryType", + "WebhookRubygemsMetadataType", + "WebhookRubygemsMetadataPropVersionInfoType", + "WebhookRubygemsMetadataPropMetadataType", + "WebhookRubygemsMetadataPropDependenciesItemsType", ) 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 6395d2b0a..1e6cb3c02 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0632.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0632.py @@ -9,165 +9,27 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0626 import WebhookRubygemsMetadataType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0633 import WebhookPackagePublishedPropPackageType -class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" +class WebhookPackagePublishedType(TypedDict): + """package published event""" - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None - ] - body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType - ] - name: str - package_files: List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: NotRequired[str] - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] - source_url: NotRequired[str] - summary: str - tag_name: NotRequired[str] - target_commitish: str - target_oid: str - updated_at: str - version: str + action: Literal["published"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + package: WebhookPackagePublishedPropPackageType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: NotRequired[List[str]] - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType( - TypedDict -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str - created_at: str - download_url: str - id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: str - size: int - state: str - updated_at: str - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, - None, - ] - created_at: str - draft: bool - html_url: str - id: int - name: str - prerelease: bool - published_at: str - tag_name: str - target_commitish: str - url: str - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersionType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", -) +__all__ = ("WebhookPackagePublishedType",) 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 5fc9a663e..14653cbe3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0633.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0633.py @@ -12,49 +12,32 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0634 import WebhookPackagePublishedPropPackagePropPackageVersionType -class WebhookPageBuildType(TypedDict): - """page_build event""" +class WebhookPackagePublishedPropPackageType(TypedDict): + """WebhookPackagePublishedPropPackage - build: WebhookPageBuildPropBuildType - enterprise: NotRequired[EnterpriseWebhooksType] - id: int - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookPageBuildPropBuildType(TypedDict): - """WebhookPageBuildPropBuild - - The [List GitHub Pages builds](https://docs.github.com/enterprise- - cloud@latest//rest/pages/pages#list-github-pages-builds) itself. + Information about the package. """ - commit: Union[str, None] - created_at: str - duration: int - error: WebhookPageBuildPropBuildPropErrorType - pusher: Union[WebhookPageBuildPropBuildPropPusherType, None] - status: str - updated_at: str - url: str - - -class WebhookPageBuildPropBuildPropErrorType(TypedDict): - """WebhookPageBuildPropBuildPropError""" - - message: Union[str, None] - - -class WebhookPageBuildPropBuildPropPusherType(TypedDict): + created_at: Union[str, None] + description: Union[str, None] + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: Union[WebhookPackagePublishedPropPackagePropOwnerType, None] + package_type: str + package_version: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionType, None + ] + registry: Union[WebhookPackagePublishedPropPackagePropRegistryType, None] + updated_at: Union[str, None] + + +class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -80,9 +63,18 @@ class WebhookPageBuildPropBuildPropPusherType(TypedDict): url: NotRequired[str] +class WebhookPackagePublishedPropPackagePropRegistryType(TypedDict): + """WebhookPackagePublishedPropPackagePropRegistry""" + + about_url: str + name: str + type: str + url: str + vendor: str + + __all__ = ( - "WebhookPageBuildType", - "WebhookPageBuildPropBuildType", - "WebhookPageBuildPropBuildPropErrorType", - "WebhookPageBuildPropBuildPropPusherType", + "WebhookPackagePublishedPropPackageType", + "WebhookPackagePublishedPropPackagePropOwnerType", + "WebhookPackagePublishedPropPackagePropRegistryType", ) 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 23099879f..defa1809a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0634.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0634.py @@ -9,25 +9,492 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0435 import PersonalAccessTokenRequestType +from .group_0631 import WebhookRubygemsMetadataType -class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): - """personal_access_token_request approved event""" +class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersion""" - action: Literal["approved"] - personal_access_token_request: PersonalAccessTokenRequestType - enterprise: NotRequired[EnterpriseWebhooksType] - organization: OrganizationSimpleWebhooksType - sender: SimpleUserWebhooksType - installation: SimpleInstallationType + author: NotRequired[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, None] + ] + body: NotRequired[ + Union[ + str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type + ] + ] + body_html: NotRequired[str] + container_metadata: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, + None, + ] + ] + created_at: NotRequired[str] + description: str + docker_metadata: NotRequired[ + List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType + ] + name: str + npm_metadata: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, + None, + ] + ] + nuget_metadata: NotRequired[ + Union[ + List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] + ] + package_files: List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: NotRequired[str] + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] + source_url: NotRequired[str] + summary: str + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + target_oid: NotRequired[str] + updated_at: NotRequired[str] + version: str -__all__ = ("WebhookPersonalAccessTokenRequestApprovedType",) +class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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]] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType( + TypedDict +): + """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] + + +__all__ = ( + "WebhookPackagePublishedPropPackagePropPackageVersionType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", +) 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 c09c28acb..f8c084f1a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0635.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0635.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0435 import PersonalAccessTokenRequestType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0636 import WebhookPackageUpdatedPropPackageType -class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): - """personal_access_token_request cancelled event""" +class WebhookPackageUpdatedType(TypedDict): + """package updated event""" - action: Literal["cancelled"] - personal_access_token_request: PersonalAccessTokenRequestType + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] - organization: OrganizationSimpleWebhooksType + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + package: WebhookPackageUpdatedPropPackageType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - installation: SimpleInstallationType -__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) +__all__ = ("WebhookPackageUpdatedType",) 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 e436da570..9cce4b6d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0636.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0636.py @@ -9,25 +9,70 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0435 import PersonalAccessTokenRequestType +from .group_0637 import WebhookPackageUpdatedPropPackagePropPackageVersionType -class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): - """personal_access_token_request created event""" +class WebhookPackageUpdatedPropPackageType(TypedDict): + """WebhookPackageUpdatedPropPackage - action: Literal["created"] - personal_access_token_request: PersonalAccessTokenRequestType - enterprise: NotRequired[EnterpriseWebhooksType] - organization: OrganizationSimpleWebhooksType - sender: SimpleUserWebhooksType - installation: NotRequired[SimpleInstallationType] + Information about the package. + """ + created_at: str + description: Union[str, None] + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: Union[WebhookPackageUpdatedPropPackagePropOwnerType, None] + package_type: str + package_version: WebhookPackageUpdatedPropPackagePropPackageVersionType + registry: Union[WebhookPackageUpdatedPropPackagePropRegistryType, None] + updated_at: str -__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) + +class WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPackageUpdatedPropPackagePropRegistryType(TypedDict): + """WebhookPackageUpdatedPropPackagePropRegistry""" + + about_url: str + name: str + type: str + url: str + vendor: str + + +__all__ = ( + "WebhookPackageUpdatedPropPackageType", + "WebhookPackageUpdatedPropPackagePropOwnerType", + "WebhookPackageUpdatedPropPackagePropRegistryType", +) 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 8d253eb28..02754291d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0637.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0637.py @@ -9,25 +9,165 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0435 import PersonalAccessTokenRequestType +from .group_0631 import WebhookRubygemsMetadataType -class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): - """personal_access_token_request denied event""" +class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" - action: Literal["denied"] - personal_access_token_request: PersonalAccessTokenRequestType - organization: OrganizationSimpleWebhooksType - enterprise: NotRequired[EnterpriseWebhooksType] - sender: SimpleUserWebhooksType - installation: SimpleInstallationType + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None + ] + body: str + body_html: str + created_at: str + description: str + docker_metadata: NotRequired[ + List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType + ] + name: str + package_files: List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: NotRequired[str] + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] + source_url: NotRequired[str] + summary: str + tag_name: NotRequired[str] + target_commitish: str + target_oid: str + updated_at: str + version: str -__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: NotRequired[List[str]] + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType( + TypedDict +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str + created_at: str + download_url: str + id: int + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: str + size: int + state: str + updated_at: str + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType(TypedDict): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, + None, + ] + created_at: str + draft: bool + html_url: str + id: int + name: str + prerelease: bool + published_at: str + tag_name: str + target_commitish: str + url: str + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookPackageUpdatedPropPackagePropPackageVersionType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", +) 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 5df95e05f..8d1a6d89d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0638.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0638.py @@ -9,23 +9,80 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0639 import WebhookPingPropHookType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPingType(TypedDict): - """WebhookPing""" +class WebhookPageBuildType(TypedDict): + """page_build event""" - hook: NotRequired[WebhookPingPropHookType] - hook_id: NotRequired[int] + build: WebhookPageBuildPropBuildType + enterprise: NotRequired[EnterpriseWebhooksType] + id: int + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] - zen: NotRequired[str] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookPingType",) +class WebhookPageBuildPropBuildType(TypedDict): + """WebhookPageBuildPropBuild + + The [List GitHub Pages builds](https://docs.github.com/enterprise- + cloud@latest//rest/pages/pages#list-github-pages-builds) itself. + """ + + commit: Union[str, None] + created_at: str + duration: int + error: WebhookPageBuildPropBuildPropErrorType + pusher: Union[WebhookPageBuildPropBuildPropPusherType, None] + status: str + updated_at: str + url: str + + +class WebhookPageBuildPropBuildPropErrorType(TypedDict): + """WebhookPageBuildPropBuildPropError""" + + message: Union[str, None] + + +class WebhookPageBuildPropBuildPropPusherType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookPageBuildType", + "WebhookPageBuildPropBuildType", + "WebhookPageBuildPropBuildPropErrorType", + "WebhookPageBuildPropBuildPropPusherType", +) 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 f3da01504..212203cfd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0639.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0639.py @@ -9,45 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0278 import HookResponseType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0439 import PersonalAccessTokenRequestType -class WebhookPingPropHookType(TypedDict): - """Webhook +class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): + """personal_access_token_request approved event""" - The webhook that is being pinged - """ + action: Literal["approved"] + personal_access_token_request: PersonalAccessTokenRequestType + enterprise: NotRequired[EnterpriseWebhooksType] + organization: OrganizationSimpleWebhooksType + sender: SimpleUserWebhooksType + installation: SimpleInstallationType - active: bool - app_id: NotRequired[int] - config: WebhookPingPropHookPropConfigType - created_at: datetime - deliveries_url: NotRequired[str] - events: List[str] - id: int - last_response: NotRequired[HookResponseType] - name: Literal["web"] - ping_url: NotRequired[str] - test_url: NotRequired[str] - type: str - updated_at: datetime - url: NotRequired[str] - -class WebhookPingPropHookPropConfigType(TypedDict): - """WebhookPingPropHookPropConfig""" - - content_type: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - secret: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookPingPropHookType", - "WebhookPingPropHookPropConfigType", -) +__all__ = ("WebhookPersonalAccessTokenRequestApprovedType",) 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 76f44f172..ad16edec1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0640.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0640.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0439 import PersonalAccessTokenRequestType -class WebhookPingFormEncodedType(TypedDict): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. - """ +class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): + """personal_access_token_request cancelled event""" - payload: str + action: Literal["cancelled"] + personal_access_token_request: PersonalAccessTokenRequestType + enterprise: NotRequired[EnterpriseWebhooksType] + organization: OrganizationSimpleWebhooksType + sender: SimpleUserWebhooksType + installation: SimpleInstallationType -__all__ = ("WebhookPingFormEncodedType",) +__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) 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 a387f5005..0f1ac2478 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0641.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0641.py @@ -12,41 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0436 import WebhooksProjectCardType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0439 import PersonalAccessTokenRequestType -class WebhookProjectCardConvertedType(TypedDict): - """project_card converted event""" +class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): + """personal_access_token_request created event""" - action: Literal["converted"] - changes: WebhookProjectCardConvertedPropChangesType + action: Literal["created"] + personal_access_token_request: PersonalAccessTokenRequestType enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType - repository: NotRequired[RepositoryWebhooksType] + organization: OrganizationSimpleWebhooksType sender: SimpleUserWebhooksType + installation: NotRequired[SimpleInstallationType] -class WebhookProjectCardConvertedPropChangesType(TypedDict): - """WebhookProjectCardConvertedPropChanges""" - - note: WebhookProjectCardConvertedPropChangesPropNoteType - - -class WebhookProjectCardConvertedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardConvertedPropChangesPropNote""" - - from_: str - - -__all__ = ( - "WebhookProjectCardConvertedType", - "WebhookProjectCardConvertedPropChangesType", - "WebhookProjectCardConvertedPropChangesPropNoteType", -) +__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) 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 151e88b6a..3eb98e6a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0642.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0642.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0436 import WebhooksProjectCardType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0439 import PersonalAccessTokenRequestType -class WebhookProjectCardCreatedType(TypedDict): - """project_card created event""" +class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): + """personal_access_token_request denied event""" - action: Literal["created"] + action: Literal["denied"] + personal_access_token_request: PersonalAccessTokenRequestType + organization: OrganizationSimpleWebhooksType enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType - repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType + installation: SimpleInstallationType -__all__ = ("WebhookProjectCardCreatedType",) +__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) 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 87e9f4999..c8fb1158c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0643.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0643.py @@ -9,75 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0644 import WebhookPingPropHookType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectCardDeletedType(TypedDict): - """project_card deleted event""" +class WebhookPingType(TypedDict): + """WebhookPing""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + hook: NotRequired[WebhookPingPropHookType] + hook_id: NotRequired[int] organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardDeletedPropProjectCardType - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: SimpleUserWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] + zen: NotRequired[str] -class WebhookProjectCardDeletedPropProjectCardType(TypedDict): - """Project Card""" - - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: Union[int, None] - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreatorType, None] - id: int - node_id: str - note: Union[str, None] - project_url: str - updated_at: datetime - url: str - - -class WebhookProjectCardDeletedPropProjectCardPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookProjectCardDeletedType", - "WebhookProjectCardDeletedPropProjectCardType", - "WebhookProjectCardDeletedPropProjectCardPropCreatorType", -) +__all__ = ("WebhookPingType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0644.py b/githubkit/versions/ghec_v2022_11_28/types/group_0644.py index e98756368..7c5166f0e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0644.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0644.py @@ -9,44 +9,45 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0436 import WebhooksProjectCardType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0282 import HookResponseType -class WebhookProjectCardEditedType(TypedDict): - """project_card edited event""" +class WebhookPingPropHookType(TypedDict): + """Webhook - action: Literal["edited"] - changes: WebhookProjectCardEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + The webhook that is being pinged + """ + active: bool + app_id: NotRequired[int] + config: WebhookPingPropHookPropConfigType + created_at: datetime + deliveries_url: NotRequired[str] + events: List[str] + id: int + last_response: NotRequired[HookResponseType] + name: Literal["web"] + ping_url: NotRequired[str] + test_url: NotRequired[str] + type: str + updated_at: datetime + url: NotRequired[str] -class WebhookProjectCardEditedPropChangesType(TypedDict): - """WebhookProjectCardEditedPropChanges""" - note: WebhookProjectCardEditedPropChangesPropNoteType +class WebhookPingPropHookPropConfigType(TypedDict): + """WebhookPingPropHookPropConfig""" - -class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardEditedPropChangesPropNote""" - - from_: Union[str, None] + content_type: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + secret: NotRequired[str] + url: NotRequired[str] __all__ = ( - "WebhookProjectCardEditedType", - "WebhookProjectCardEditedPropChangesType", - "WebhookProjectCardEditedPropChangesPropNoteType", + "WebhookPingPropHookType", + "WebhookPingPropHookPropConfigType", ) 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 9a26bb8c8..76f44f172 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0645.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0645.py @@ -9,90 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +class WebhookPingFormEncodedType(TypedDict): + """WebhookPingFormEncoded -class WebhookProjectCardMovedType(TypedDict): - """project_card moved event""" + The webhooks ping payload encoded with URL encoding. + """ - action: Literal["moved"] - changes: NotRequired[WebhookProjectCardMovedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardMovedPropProjectCardType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + payload: str -class WebhookProjectCardMovedPropChangesType(TypedDict): - """WebhookProjectCardMovedPropChanges""" - - column_id: WebhookProjectCardMovedPropChangesPropColumnIdType - - -class WebhookProjectCardMovedPropChangesPropColumnIdType(TypedDict): - """WebhookProjectCardMovedPropChangesPropColumnId""" - - from_: int - - -class WebhookProjectCardMovedPropProjectCardType(TypedDict): - """WebhookProjectCardMovedPropProjectCard""" - - after_id: Union[Union[int, None], None] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreatorType, None] - id: int - node_id: str - note: Union[Union[str, None], None] - project_url: str - updated_at: datetime - url: str - - -class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookProjectCardMovedType", - "WebhookProjectCardMovedPropChangesType", - "WebhookProjectCardMovedPropChangesPropColumnIdType", - "WebhookProjectCardMovedPropProjectCardType", - "WebhookProjectCardMovedPropProjectCardMergedCreatorType", -) +__all__ = ("WebhookPingFormEncodedType",) 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 0b3e375d0..4a4417962 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0646.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0646.py @@ -9,56 +9,44 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0440 import WebhooksProjectCardType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): - """Project Card""" - - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, None] - id: int - node_id: str - note: Union[str, None] - project_url: str - updated_at: datetime - url: str - - -class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + +class WebhookProjectCardConvertedType(TypedDict): + """project_card converted event""" + + action: Literal["converted"] + changes: WebhookProjectCardConvertedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_card: WebhooksProjectCardType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +class WebhookProjectCardConvertedPropChangesType(TypedDict): + """WebhookProjectCardConvertedPropChanges""" + + note: WebhookProjectCardConvertedPropChangesPropNoteType + + +class WebhookProjectCardConvertedPropChangesPropNoteType(TypedDict): + """WebhookProjectCardConvertedPropChangesPropNote""" + + from_: str __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0Type", - "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", + "WebhookProjectCardConvertedType", + "WebhookProjectCardConvertedPropChangesType", + "WebhookProjectCardConvertedPropChangesPropNoteType", ) 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 2386d865b..b0cb1dac4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0647.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0647.py @@ -9,53 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0440 import WebhooksProjectCardType +from .group_0408 import OrganizationSimpleWebhooksType -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__ = ( - "WebhookProjectCardMovedPropProjectCardAllof1Type", - "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", -) + +class WebhookProjectCardCreatedType(TypedDict): + """project_card created event""" + + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_card: WebhooksProjectCardType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +__all__ = ("WebhookProjectCardCreatedType",) 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 92b54a2f9..2a45e1db8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0648.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0648.py @@ -9,27 +9,75 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0437 import WebhooksProjectType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectClosedType(TypedDict): - """project closed event""" +class WebhookProjectCardDeletedType(TypedDict): + """project_card deleted event""" - action: Literal["closed"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType - repository: NotRequired[RepositoryWebhooksType] + project_card: WebhookProjectCardDeletedPropProjectCardType + repository: NotRequired[Union[None, RepositoryWebhooksType]] sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectClosedType",) +class WebhookProjectCardDeletedPropProjectCardType(TypedDict): + """Project Card""" + + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: Union[int, None] + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardDeletedPropProjectCardPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookProjectCardDeletedType", + "WebhookProjectCardDeletedPropProjectCardType", + "WebhookProjectCardDeletedPropProjectCardPropCreatorType", +) 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 b9c138bcd..94b8ac6a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0649.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0649.py @@ -9,27 +9,44 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0438 import WebhooksProjectColumnType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0440 import WebhooksProjectCardType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectColumnCreatedType(TypedDict): - """project_column created event""" +class WebhookProjectCardEditedType(TypedDict): + """project_card edited event""" - action: Literal["created"] + action: Literal["edited"] + changes: WebhookProjectCardEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType + project_card: WebhooksProjectCardType repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectColumnCreatedType",) +class WebhookProjectCardEditedPropChangesType(TypedDict): + """WebhookProjectCardEditedPropChanges""" + + note: WebhookProjectCardEditedPropChangesPropNoteType + + +class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): + """WebhookProjectCardEditedPropChangesPropNote""" + + from_: Union[str, None] + + +__all__ = ( + "WebhookProjectCardEditedType", + "WebhookProjectCardEditedPropChangesType", + "WebhookProjectCardEditedPropChangesPropNoteType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0650.py b/githubkit/versions/ghec_v2022_11_28/types/group_0650.py index 465b8d2e2..b123271ba 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0650.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0650.py @@ -9,27 +9,90 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0438 import WebhooksProjectColumnType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectColumnDeletedType(TypedDict): - """project_column deleted event""" +class WebhookProjectCardMovedType(TypedDict): + """project_card moved event""" - action: Literal["deleted"] + action: Literal["moved"] + changes: NotRequired[WebhookProjectCardMovedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserWebhooksType] + project_card: WebhookProjectCardMovedPropProjectCardType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectColumnDeletedType",) +class WebhookProjectCardMovedPropChangesType(TypedDict): + """WebhookProjectCardMovedPropChanges""" + + column_id: WebhookProjectCardMovedPropChangesPropColumnIdType + + +class WebhookProjectCardMovedPropChangesPropColumnIdType(TypedDict): + """WebhookProjectCardMovedPropChangesPropColumnId""" + + from_: int + + +class WebhookProjectCardMovedPropProjectCardType(TypedDict): + """WebhookProjectCardMovedPropProjectCard""" + + after_id: Union[Union[int, None], None] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreatorType, None] + id: int + node_id: str + note: Union[Union[str, None], None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): + """WebhookProjectCardMovedPropProjectCardMergedCreator""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookProjectCardMovedType", + "WebhookProjectCardMovedPropChangesType", + "WebhookProjectCardMovedPropChangesPropColumnIdType", + "WebhookProjectCardMovedPropProjectCardType", + "WebhookProjectCardMovedPropProjectCardMergedCreatorType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0651.py b/githubkit/versions/ghec_v2022_11_28/types/group_0651.py index 08dfc6dd0..0b3e375d0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0651.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0651.py @@ -9,44 +9,56 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0438 import WebhooksProjectColumnType -from .group_0404 import OrganizationSimpleWebhooksType - -class WebhookProjectColumnEditedType(TypedDict): - """project_column edited event""" - - action: Literal["edited"] - changes: WebhookProjectColumnEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] - - -class WebhookProjectColumnEditedPropChangesType(TypedDict): - """WebhookProjectColumnEditedPropChanges""" - - name: NotRequired[WebhookProjectColumnEditedPropChangesPropNameType] - - -class WebhookProjectColumnEditedPropChangesPropNameType(TypedDict): - """WebhookProjectColumnEditedPropChangesPropName""" - - from_: str +class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): + """Project Card""" + + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] __all__ = ( - "WebhookProjectColumnEditedType", - "WebhookProjectColumnEditedPropChangesType", - "WebhookProjectColumnEditedPropChangesPropNameType", + "WebhookProjectCardMovedPropProjectCardAllof0Type", + "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", ) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0652.py b/githubkit/versions/ghec_v2022_11_28/types/group_0652.py index 6ed9af711..2386d865b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0652.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0652.py @@ -9,27 +9,53 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0438 import WebhooksProjectColumnType -from .group_0404 import OrganizationSimpleWebhooksType - -class WebhookProjectColumnMovedType(TypedDict): - """project_column moved event""" - - action: Literal["moved"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - - -__all__ = ("WebhookProjectColumnMovedType",) +class WebhookProjectCardMovedPropProjectCardAllof1Type(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1""" + + after_id: Union[int, None] + archived: NotRequired[bool] + column_id: NotRequired[int] + column_url: NotRequired[str] + created_at: NotRequired[str] + creator: NotRequired[ + Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, None] + ] + id: NotRequired[int] + node_id: NotRequired[str] + note: NotRequired[Union[str, None]] + project_url: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + + +class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookProjectCardMovedPropProjectCardAllof1Type", + "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0653.py b/githubkit/versions/ghec_v2022_11_28/types/group_0653.py index d952553ea..542d43076 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0653.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0653.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0437 import WebhooksProjectType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0441 import WebhooksProjectType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectCreatedType(TypedDict): - """project created event""" +class WebhookProjectClosedType(TypedDict): + """project closed event""" - action: Literal["created"] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookProjectCreatedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectCreatedType",) +__all__ = ("WebhookProjectClosedType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0654.py b/githubkit/versions/ghec_v2022_11_28/types/group_0654.py index 066bae091..dcf48d58c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0654.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0654.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0437 import WebhooksProjectType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0442 import WebhooksProjectColumnType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectDeletedType(TypedDict): - """project deleted event""" +class WebhookProjectColumnCreatedType(TypedDict): + """project_column created event""" - action: Literal["deleted"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType - repository: NotRequired[Union[None, RepositoryWebhooksType]] + project_column: WebhooksProjectColumnType + repository: NotRequired[RepositoryWebhooksType] sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookProjectDeletedType",) +__all__ = ("WebhookProjectColumnCreatedType",) 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 cbad7c1cb..ad24f8c53 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0655.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0655.py @@ -9,55 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0437 import WebhooksProjectType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0442 import WebhooksProjectColumnType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectEditedType(TypedDict): - """project edited event""" +class WebhookProjectColumnDeletedType(TypedDict): + """project_column deleted event""" - action: Literal["edited"] - changes: NotRequired[WebhookProjectEditedPropChangesType] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType - repository: NotRequired[RepositoryWebhooksType] + project_column: WebhooksProjectColumnType + repository: NotRequired[Union[None, RepositoryWebhooksType]] sender: NotRequired[SimpleUserWebhooksType] -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__ = ( - "WebhookProjectEditedType", - "WebhookProjectEditedPropChangesType", - "WebhookProjectEditedPropChangesPropBodyType", - "WebhookProjectEditedPropChangesPropNameType", -) +__all__ = ("WebhookProjectColumnDeletedType",) 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 d93e60ed1..0e598e24f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0656.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0656.py @@ -12,24 +12,41 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0437 import WebhooksProjectType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0442 import WebhooksProjectColumnType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectReopenedType(TypedDict): - """project reopened event""" +class WebhookProjectColumnEditedType(TypedDict): + """project_column edited event""" - action: Literal["reopened"] + action: Literal["edited"] + changes: WebhookProjectColumnEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType + project_column: WebhooksProjectColumnType repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookProjectReopenedType",) +class WebhookProjectColumnEditedPropChangesType(TypedDict): + """WebhookProjectColumnEditedPropChanges""" + + name: NotRequired[WebhookProjectColumnEditedPropChangesPropNameType] + + +class WebhookProjectColumnEditedPropChangesPropNameType(TypedDict): + """WebhookProjectColumnEditedPropChangesPropName""" + + from_: str + + +__all__ = ( + "WebhookProjectColumnEditedType", + "WebhookProjectColumnEditedPropChangesType", + "WebhookProjectColumnEditedPropChangesPropNameType", +) 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 b8827e563..f75e3a838 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0657.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0657.py @@ -12,20 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0439 import ProjectsV2Type -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0442 import WebhooksProjectColumnType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectClosedType(TypedDict): - """Projects v2 Project Closed Event""" +class WebhookProjectColumnMovedType(TypedDict): + """project_column moved event""" - action: Literal["closed"] + action: Literal["moved"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + project_column: WebhooksProjectColumnType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectsV2ProjectClosedType",) +__all__ = ("WebhookProjectColumnMovedType",) 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 c5cde1895..5da078d39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0658.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0658.py @@ -12,23 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0439 import ProjectsV2Type -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0441 import WebhooksProjectType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectCreatedType(TypedDict): - """WebhookProjectsV2ProjectCreated - - A project was created - """ +class WebhookProjectCreatedType(TypedDict): + """project created event""" action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectsV2ProjectCreatedType",) +__all__ = ("WebhookProjectCreatedType",) 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 9fb0d0c96..84ebe038d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0659.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0659.py @@ -9,23 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0439 import ProjectsV2Type -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0441 import WebhooksProjectType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectDeletedType(TypedDict): - """Projects v2 Project Deleted Event""" +class WebhookProjectDeletedType(TypedDict): + """project deleted event""" action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookProjectsV2ProjectDeletedType",) +__all__ = ("WebhookProjectDeletedType",) 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 aeb13b12a..4090d3951 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0660.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0660.py @@ -9,72 +9,55 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0439 import ProjectsV2Type -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0441 import WebhooksProjectType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectEditedType(TypedDict): - """Projects v2 Project Edited Event""" +class WebhookProjectEditedType(TypedDict): + """project edited event""" action: Literal["edited"] - changes: WebhookProjectsV2ProjectEditedPropChangesType + changes: NotRequired[WebhookProjectEditedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] -class WebhookProjectsV2ProjectEditedPropChangesType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChanges""" +class WebhookProjectEditedPropChangesType(TypedDict): + """WebhookProjectEditedPropChanges - description: NotRequired[ - WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType - ] - public: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropPublicType] - short_description: NotRequired[ - WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType - ] - title: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropTitleType] + The changes to the project if the action was `edited`. + """ + body: NotRequired[WebhookProjectEditedPropChangesPropBodyType] + name: NotRequired[WebhookProjectEditedPropChangesPropNameType] -class WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] +class WebhookProjectEditedPropChangesPropBodyType(TypedDict): + """WebhookProjectEditedPropChangesPropBody""" + from_: str -class WebhookProjectsV2ProjectEditedPropChangesPropPublicType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - from_: NotRequired[bool] - to: NotRequired[bool] +class WebhookProjectEditedPropChangesPropNameType(TypedDict): + """WebhookProjectEditedPropChangesPropName""" - -class WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -class WebhookProjectsV2ProjectEditedPropChangesPropTitleType(TypedDict): - """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" - - from_: NotRequired[str] - to: NotRequired[str] + from_: str __all__ = ( - "WebhookProjectsV2ProjectEditedType", - "WebhookProjectsV2ProjectEditedPropChangesType", - "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", - "WebhookProjectsV2ProjectEditedPropChangesPropPublicType", - "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", - "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", + "WebhookProjectEditedType", + "WebhookProjectEditedPropChangesType", + "WebhookProjectEditedPropChangesPropBodyType", + "WebhookProjectEditedPropChangesPropNameType", ) 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 d01b16083..d62877f20 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0661.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0661.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0441 import ProjectsV2ItemType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0440 import WebhooksProjectChangesType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0441 import WebhooksProjectType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemArchivedType(TypedDict): - """Projects v2 Item Archived Event""" +class WebhookProjectReopenedType(TypedDict): + """project reopened event""" - action: Literal["archived"] - changes: WebhooksProjectChangesType + action: Literal["reopened"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectsV2ItemArchivedType",) +__all__ = ("WebhookProjectReopenedType",) 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 22b20b03c..3b4bf2c13 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0662.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0662.py @@ -9,43 +9,23 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0441 import ProjectsV2ItemType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0443 import ProjectsV2Type +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemConvertedType(TypedDict): - """Projects v2 Item Converted Event""" +class WebhookProjectsV2ProjectClosedType(TypedDict): + """Projects v2 Project Closed Event""" - action: Literal["converted"] - changes: WebhookProjectsV2ItemConvertedPropChangesType + action: Literal["closed"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserWebhooksType -class WebhookProjectsV2ItemConvertedPropChangesType(TypedDict): - """WebhookProjectsV2ItemConvertedPropChanges""" - - content_type: NotRequired[ - WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType - ] - - -class WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType(TypedDict): - """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[str] - - -__all__ = ( - "WebhookProjectsV2ItemConvertedType", - "WebhookProjectsV2ItemConvertedPropChangesType", - "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", -) +__all__ = ("WebhookProjectsV2ProjectClosedType",) 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 dcd9de49c..32874a509 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0663.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0663.py @@ -12,20 +12,23 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0441 import ProjectsV2ItemType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0443 import ProjectsV2Type +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemCreatedType(TypedDict): - """Projects v2 Item Created Event""" +class WebhookProjectsV2ProjectCreatedType(TypedDict): + """WebhookProjectsV2ProjectCreated + + A project was created + """ action: Literal["created"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectsV2ItemCreatedType",) +__all__ = ("WebhookProjectsV2ProjectCreatedType",) 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 4f0f7f383..c46f79ec8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0664.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0664.py @@ -12,20 +12,20 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0441 import ProjectsV2ItemType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0443 import ProjectsV2Type +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemDeletedType(TypedDict): - """Projects v2 Item Deleted Event""" +class WebhookProjectsV2ProjectDeletedType(TypedDict): + """Projects v2 Project Deleted Event""" action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectsV2ItemDeletedType",) +__all__ = ("WebhookProjectsV2ProjectDeletedType",) 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 ba58af47b..fa195549a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0665.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0665.py @@ -12,58 +12,69 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0441 import ProjectsV2ItemType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0443 import ProjectsV2Type +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemEditedType(TypedDict): - """Projects v2 Item Edited Event""" +class WebhookProjectsV2ProjectEditedType(TypedDict): + """Projects v2 Project Edited Event""" action: Literal["edited"] - changes: NotRequired[ - Union[ - WebhookProjectsV2ItemEditedPropChangesOneof0Type, - WebhookProjectsV2ItemEditedPropChangesOneof1Type, - ] - ] + changes: WebhookProjectsV2ProjectEditedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserWebhooksType -class WebhookProjectsV2ItemEditedPropChangesOneof0Type(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" +class WebhookProjectsV2ProjectEditedPropChangesType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChanges""" - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType + description: NotRequired[ + WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType + ] + public: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropPublicType] + short_description: NotRequired[ + WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType + ] + title: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropTitleType] -class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" +class WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - field_node_id: NotRequired[str] - field_type: NotRequired[str] + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] -class WebhookProjectsV2ItemEditedPropChangesOneof1Type(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof1""" +class WebhookProjectsV2ProjectEditedPropChangesPropPublicType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType + from_: NotRequired[bool] + to: NotRequired[bool] -class WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" +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__ = ( - "WebhookProjectsV2ItemEditedType", - "WebhookProjectsV2ItemEditedPropChangesOneof0Type", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", - "WebhookProjectsV2ItemEditedPropChangesOneof1Type", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", + "WebhookProjectsV2ProjectEditedType", + "WebhookProjectsV2ProjectEditedPropChangesType", + "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", + "WebhookProjectsV2ProjectEditedPropChangesPropPublicType", + "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", + "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", ) 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 ff288aa76..3adeac4fe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0666.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0666.py @@ -9,45 +9,25 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0441 import ProjectsV2ItemType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0445 import ProjectsV2ItemType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0444 import WebhooksProjectChangesType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemReorderedType(TypedDict): - """Projects v2 Item Reordered Event""" +class WebhookProjectsV2ItemArchivedType(TypedDict): + """Projects v2 Item Archived Event""" - action: Literal["reordered"] - changes: WebhookProjectsV2ItemReorderedPropChangesType + action: Literal["archived"] + changes: WebhooksProjectChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_item: ProjectsV2ItemType sender: SimpleUserWebhooksType -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__ = ( - "WebhookProjectsV2ItemReorderedType", - "WebhookProjectsV2ItemReorderedPropChangesType", - "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", -) +__all__ = ("WebhookProjectsV2ItemArchivedType",) 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 2ce616666..cda5b35e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0667.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0667.py @@ -9,25 +9,43 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0441 import ProjectsV2ItemType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0440 import WebhooksProjectChangesType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0445 import ProjectsV2ItemType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemRestoredType(TypedDict): - """Projects v2 Item Restored Event""" +class WebhookProjectsV2ItemConvertedType(TypedDict): + """Projects v2 Item Converted Event""" - action: Literal["restored"] - changes: WebhooksProjectChangesType + action: Literal["converted"] + changes: WebhookProjectsV2ItemConvertedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType projects_v2_item: ProjectsV2ItemType sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectsV2ItemRestoredType",) +class WebhookProjectsV2ItemConvertedPropChangesType(TypedDict): + """WebhookProjectsV2ItemConvertedPropChanges""" + + content_type: NotRequired[ + WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType + ] + + +class WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType(TypedDict): + """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[str] + + +__all__ = ( + "WebhookProjectsV2ItemConvertedType", + "WebhookProjectsV2ItemConvertedPropChangesType", + "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", +) 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 727d8fa5f..2e739ecfa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0668.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0668.py @@ -12,20 +12,20 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0439 import ProjectsV2Type -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0445 import ProjectsV2ItemType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectReopenedType(TypedDict): - """Projects v2 Project Reopened Event""" +class WebhookProjectsV2ItemCreatedType(TypedDict): + """Projects v2 Item Created Event""" - action: Literal["reopened"] + action: Literal["created"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + projects_v2_item: ProjectsV2ItemType sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectsV2ProjectReopenedType",) +__all__ = ("WebhookProjectsV2ItemCreatedType",) 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 a77d5dc80..4649de1a0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0669.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0669.py @@ -9,23 +9,23 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0445 import ProjectsV2ItemType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPublicType(TypedDict): - """public event""" +class WebhookProjectsV2ItemDeletedType(TypedDict): + """Projects v2 Item Deleted Event""" - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserWebhooksType -__all__ = ("WebhookPublicType",) +__all__ = ("WebhookProjectsV2ItemDeletedType",) 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 9f1218840..350a641ed 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0670.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0670.py @@ -9,939 +9,107 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0416 import WebhooksUserType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0445 import ProjectsV2ItemType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestAssignedType(TypedDict): - """pull_request assigned event""" +class WebhookProjectsV2ItemEditedType(TypedDict): + """Projects v2 Item Edited 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: SimpleUserWebhooksType - - -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[ + action: Literal["edited"] + changes: NotRequired[ Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookProjectsV2ItemEditedPropChangesOneof0Type, + WebhookProjectsV2ItemEditedPropChangesOneof1Type, ] ] - 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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType + sender: SimpleUserWebhooksType -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] +class WebhookProjectsV2ItemEditedPropChangesOneof0Type(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof0""" + field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType -class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - A git repository - """ +class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: 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 + 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, + ] ] - private: 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"] + to: NotRequired[ + Union[ + str, + int, + ProjectsV2SingleSelectOptionType, + ProjectsV2IterationSettingType, + None, + ] ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class 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] +class ProjectsV2SingleSelectOptionType(TypedDict): + """Projects v2 Single Select Option -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 + An option for a single select field """ - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: 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 + id: 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] - - -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] - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ + color: NotRequired[Union[str, None]] + description: NotRequired[Union[str, None]] - 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 ProjectsV2IterationSettingType(TypedDict): + """Projects v2 Iteration Setting -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + An iteration setting for an iteration field """ - 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 - + id: str + title: str + duration: NotRequired[Union[float, None]] + start_date: NotRequired[Union[str, None]] -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - Groups of organization members that gives permissions on specified repositories. - """ +class WebhookProjectsV2ItemEditedPropChangesOneof1Type(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof1""" - 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] + body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" +class WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] __all__ = ( - "WebhookPullRequestAssignedType", - "WebhookPullRequestAssignedPropPullRequestType", - "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", - "WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergeType", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAssignedPropPullRequestPropMergedByType", - "WebhookPullRequestAssignedPropPullRequestPropMilestoneType", - "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAssignedPropPullRequestPropUserType", - "WebhookPullRequestAssignedPropPullRequestPropLinksType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAssignedPropPullRequestPropBaseType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropUserType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAssignedPropPullRequestPropHeadType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookProjectsV2ItemEditedType", + "WebhookProjectsV2ItemEditedPropChangesOneof0Type", + "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", + "ProjectsV2SingleSelectOptionType", + "ProjectsV2IterationSettingType", + "WebhookProjectsV2ItemEditedPropChangesOneof1Type", + "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", ) 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 870e174d2..5647638de 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0671.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0671.py @@ -9,987 +9,45 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0445 import ProjectsV2ItemType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestAutoMergeDisabledType(TypedDict): - """pull_request auto_merge_disabled event""" +class WebhookProjectsV2ItemReorderedType(TypedDict): + """Projects v2 Item Reordered Event""" - action: Literal["auto_merge_disabled"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reordered"] + changes: WebhookProjectsV2ItemReorderedPropChangesType installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType - reason: str - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserWebhooksType -class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): - """Pull Request""" +class WebhookProjectsV2ItemReorderedPropChangesType(TypedDict): + """WebhookProjectsV2ItemReorderedPropChanges""" - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] + previous_projects_v2_item_node_id: NotRequired[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType - ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_discussions: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType( TypedDict ): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent - """ + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] __all__ = ( - "WebhookPullRequestAutoMergeDisabledType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookProjectsV2ItemReorderedType", + "WebhookProjectsV2ItemReorderedPropChangesType", + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", ) 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 40ce8e716..491838973 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0672.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0672.py @@ -9,977 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0445 import ProjectsV2ItemType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0444 import WebhooksProjectChangesType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestAutoMergeEnabledType(TypedDict): - """pull_request auto_merge_enabled event""" +class WebhookProjectsV2ItemRestoredType(TypedDict): + """Projects v2 Item Restored Event""" - action: Literal["auto_merge_enabled"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["restored"] + changes: WebhooksProjectChangesType installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType - reason: NotRequired[str] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserWebhooksType -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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__ = ( - "WebhookPullRequestAutoMergeEnabledType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookProjectsV2ItemRestoredType",) 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 0d0bd7b65..637d6949d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0673.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0673.py @@ -12,25 +12,20 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0442 import PullRequestWebhookType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0443 import ProjectsV2Type +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestClosedType(TypedDict): - """pull_request closed event""" +class WebhookProjectsV2ProjectReopenedType(TypedDict): + """Projects v2 Project Reopened Event""" - action: Literal["closed"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reopened"] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2: ProjectsV2Type sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestClosedType",) +__all__ = ("WebhookProjectsV2ProjectReopenedType",) 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 f280caa1e..d61626146 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0674.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0674.py @@ -12,25 +12,20 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0442 import PullRequestWebhookType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0446 import ProjectsV2StatusUpdateType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestConvertedToDraftType(TypedDict): - """pull_request converted_to_draft event""" +class WebhookProjectsV2StatusUpdateCreatedType(TypedDict): + """Projects v2 Status Update Created Event""" - action: Literal["converted_to_draft"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["created"] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestConvertedToDraftType",) +__all__ = ("WebhookProjectsV2StatusUpdateCreatedType",) 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 58e550fe9..04e91ee30 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0675.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0675.py @@ -12,25 +12,20 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0061 import MilestoneType -from .group_0402 import EnterpriseWebhooksType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0444 import WebhooksPullRequest5Type -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0446 import ProjectsV2StatusUpdateType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestDemilestonedType(TypedDict): - """pull_request demilestoned event""" +class WebhookProjectsV2StatusUpdateDeletedType(TypedDict): + """Projects v2 Status Update Deleted Event""" - action: Literal["demilestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - milestone: NotRequired[MilestoneType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhooksPullRequest5Type - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + action: Literal["deleted"] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + projects_v2_status_update: ProjectsV2StatusUpdateType + sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestDemilestonedType",) +__all__ = ("WebhookProjectsV2StatusUpdateDeletedType",) 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 24e6c6d0b..a050aeb1c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0676.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0676.py @@ -9,938 +9,77 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from datetime import date +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0446 import ProjectsV2StatusUpdateType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestDequeuedType(TypedDict): - """pull_request dequeued event""" +class WebhookProjectsV2StatusUpdateEditedType(TypedDict): + """Projects v2 Status Update Edited Event""" - action: Literal["dequeued"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["edited"] + changes: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesType] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestDequeuedPropPullRequestType - reason: str - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserWebhooksType -class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): - """Pull Request""" +class WebhookProjectsV2StatusUpdateEditedPropChangesType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChanges""" - links: WebhookPullRequestDequeuedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] + body: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType] + status: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType] + start_date: NotRequired[ + WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, None] + target_date: NotRequired[ + WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType ] - 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] - -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 WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] -class WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - The status of auto merging a pull request. - """ +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, None + from_: NotRequired[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] ] - 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] - - -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] - - -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 + to: NotRequired[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] ] - 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] - - -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] - - -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] - - -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""" +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" - 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] - - -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] - - -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] - - -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] - - -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] + from_: NotRequired[Union[date, None]] + to: NotRequired[Union[date, None]] -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" +class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + from_: NotRequired[Union[date, None]] + to: NotRequired[Union[date, None]] __all__ = ( - "WebhookPullRequestDequeuedType", - "WebhookPullRequestDequeuedPropPullRequestType", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropMergedByType", - "WebhookPullRequestDequeuedPropPullRequestPropMilestoneType", - "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestDequeuedPropPullRequestPropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestDequeuedPropPullRequestPropBaseType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookProjectsV2StatusUpdateEditedType", + "WebhookProjectsV2StatusUpdateEditedPropChangesType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType", ) 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 8e97608ef..4208705ee 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0677.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0677.py @@ -9,79 +9,23 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0442 import PullRequestWebhookType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestEditedType(TypedDict): - """pull_request edited event""" +class WebhookPublicType(TypedDict): + """public event""" - action: Literal["edited"] - changes: WebhookPullRequestEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType -class WebhookPullRequestEditedPropChangesType(TypedDict): - """WebhookPullRequestEditedPropChanges - - The changes to the comment if the action was `edited`. - """ - - base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] - body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] - title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] - - -class WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBody""" - - from_: str - - -class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): - """WebhookPullRequestEditedPropChangesPropTitle""" - - from_: str - - -class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBase""" - - ref: WebhookPullRequestEditedPropChangesPropBasePropRefType - sha: WebhookPullRequestEditedPropChangesPropBasePropShaType - - -class WebhookPullRequestEditedPropChangesPropBasePropRefType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" - - from_: str - - -class WebhookPullRequestEditedPropChangesPropBasePropShaType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBasePropSha""" - - from_: str - - -__all__ = ( - "WebhookPullRequestEditedType", - "WebhookPullRequestEditedPropChangesType", - "WebhookPullRequestEditedPropChangesPropBodyType", - "WebhookPullRequestEditedPropChangesPropTitleType", - "WebhookPullRequestEditedPropChangesPropBaseType", - "WebhookPullRequestEditedPropChangesPropBasePropRefType", - "WebhookPullRequestEditedPropChangesPropBasePropShaType", -) +__all__ = ("WebhookPublicType",) 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 1683250d4..8054bab38 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0678.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0678.py @@ -13,37 +13,39 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0420 import WebhooksUserType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestEnqueuedType(TypedDict): - """pull_request enqueued event""" +class WebhookPullRequestAssignedType(TypedDict): + """pull_request assigned event""" - action: Literal["enqueued"] + action: Literal["assigned"] + assignee: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestEnqueuedPropPullRequestType + pull_request: WebhookPullRequestAssignedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestEnqueuedPropPullRequestPropLinksType + links: WebhookPullRequestAssignedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, None] + assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssigneeType, None] assignees: List[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, None] + Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -55,8 +57,8 @@ class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestEnqueuedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestAssignedPropPullRequestPropBaseType 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: WebhookPullRequestAssignedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType] + labels: List[WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType] 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[WebhookPullRequestAssignedPropPullRequestPropMergedByType, None] ] - milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, None] + milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: List[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType ] 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[WebhookPullRequestAssignedPropPullRequestPropUserType, None] -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -131,11 +133,11 @@ 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] -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -157,11 +159,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 WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -170,12 +172,12 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -203,7 +205,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( url: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -215,7 +217,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -241,7 +243,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): url: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -251,7 +253,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -267,7 +269,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -293,7 +295,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(Type url: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -317,11 +319,11 @@ 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] -class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -347,48 +349,48 @@ class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" +class WebhookPullRequestAssignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropLinks""" - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -396,7 +398,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -404,29 +406,29 @@ class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestEnqueuedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" +class WebhookPullRequestAssignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, None] + user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -452,7 +454,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -512,7 +514,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -527,10 +529,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -564,7 +566,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -576,7 +578,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -602,10 +604,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(Typ url: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -614,43 +616,17 @@ class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropHead""" +class WebhookPullRequestAssignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType + repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, 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: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -710,7 +686,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -725,10 +701,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -762,7 +738,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -774,7 +750,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -800,10 +776,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(Typ url: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -812,7 +788,33 @@ class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type( +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] + + +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -821,29 +823,29 @@ 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, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa rent """ @@ -860,7 +862,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 url: str -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -875,7 +877,7 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(Typed node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -886,10 +888,10 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(Typed url: NotRequired[str] -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -905,41 +907,41 @@ class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent __all__ = ( - "WebhookPullRequestEnqueuedType", - "WebhookPullRequestEnqueuedPropPullRequestType", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropMergedByType", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestEnqueuedPropPullRequestPropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestEnqueuedPropPullRequestPropBaseType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestAssignedType", + "WebhookPullRequestAssignedPropPullRequestType", + "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergeType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropMergedByType", + "WebhookPullRequestAssignedPropPullRequestPropMilestoneType", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAssignedPropPullRequestPropUserType", + "WebhookPullRequestAssignedPropPullRequestPropLinksType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAssignedPropPullRequestPropBaseType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUserType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropHeadType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", ) 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 6cbc5182c..2c7965fab 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0679.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0679.py @@ -13,39 +13,43 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0420 import WebhooksLabelType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestLabeledType(TypedDict): - """pull_request labeled event""" +class WebhookPullRequestAutoMergeDisabledType(TypedDict): + """pull_request auto_merge_disabled event""" - action: Literal["labeled"] + action: Literal["auto_merge_disabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLabeledPropPullRequestType + pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType + reason: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestLabeledPropPullRequestType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestLabeledPropPullRequestPropLinksType + links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None + ] assignees: List[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -57,8 +61,10 @@ class WebhookPullRequestLabeledPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLabeledPropPullRequestPropBaseType + 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 WebhookPullRequestLabeledPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestLabeledPropPullRequestPropHeadType + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] + labels: List[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -83,22 +89,24 @@ class WebhookPullRequestLabeledPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: List[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -108,10 +116,10 @@ class WebhookPullRequestLabeledPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] -class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -133,11 +141,13 @@ 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] -class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -159,11 +169,11 @@ class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -172,12 +182,15 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -203,7 +216,7 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(Typ url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -215,7 +228,7 @@ class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -237,11 +250,11 @@ class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -251,7 +264,8 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -267,7 +281,9 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -289,11 +305,11 @@ 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] -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -321,7 +337,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0T url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -347,54 +363,66 @@ class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType + comments: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType + ) + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType ) - review_comments: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -402,29 +430,35 @@ class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -450,7 +484,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -493,10 +527,10 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(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 @@ -510,7 +544,8 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -525,10 +560,11 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -562,7 +598,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -574,7 +610,9 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -600,10 +638,12 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(Type url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s + """ admin: bool maintain: NotRequired[bool] @@ -612,17 +652,45 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsTyp triage: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, None + ] + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -682,7 +750,8 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -697,10 +766,11 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -734,7 +804,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -746,7 +816,9 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -772,10 +844,12 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(Type url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ admin: bool maintain: NotRequired[bool] @@ -784,33 +858,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsTyp triage: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -827,7 +875,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1T node_id: str parent: NotRequired[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -838,11 +886,11 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1T url: str -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent """ description: Union[str, None] @@ -858,7 +906,9 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1P url: str -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -873,7 +923,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedD node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -884,10 +934,12 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedD url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ description: Union[str, None] html_url: str @@ -903,41 +955,41 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentT __all__ = ( - "WebhookPullRequestLabeledType", - "WebhookPullRequestLabeledPropPullRequestType", - "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", - "WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergeType", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestLabeledPropPullRequestPropMergedByType", - "WebhookPullRequestLabeledPropPullRequestPropMilestoneType", - "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestLabeledPropPullRequestPropUserType", - "WebhookPullRequestLabeledPropPullRequestPropLinksType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestLabeledPropPullRequestPropBaseType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropUserType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestLabeledPropPullRequestPropHeadType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestAutoMergeDisabledType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", ) 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 86269b198..4f8bcb760 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0680.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0680.py @@ -13,37 +13,43 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestLockedType(TypedDict): - """pull_request locked event""" +class WebhookPullRequestAutoMergeEnabledType(TypedDict): + """pull_request auto_merge_enabled event""" - action: Literal["locked"] + action: Literal["auto_merge_enabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLockedPropPullRequestType + pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType + reason: NotRequired[str] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestLockedPropPullRequestType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestLockedPropPullRequestPropLinksType + links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, None + ] assignees: List[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -55,8 +61,10 @@ class WebhookPullRequestLockedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLockedPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -68,11 +76,11 @@ class WebhookPullRequestLockedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestLockedPropPullRequestPropHeadType + head: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] + labels: List[WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -81,22 +89,24 @@ class WebhookPullRequestLockedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: List[ Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -106,10 +116,10 @@ class WebhookPullRequestLockedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, None] -class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -135,7 +145,9 @@ class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -157,11 +169,11 @@ class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(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 WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -170,12 +182,15 @@ class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -201,7 +216,7 @@ class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(Type url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -213,7 +228,7 @@ class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -235,11 +250,11 @@ class WebhookPullRequestLockedPropPullRequestPropMergedByType(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 WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -249,7 +264,8 @@ class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -265,7 +281,9 @@ class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -287,11 +305,11 @@ class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(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] -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -319,7 +337,7 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Ty url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -345,82 +363,96 @@ class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks""" - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -446,7 +478,7 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -506,7 +538,8 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -521,10 +554,11 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -558,7 +592,9 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): """License""" key: str @@ -568,7 +604,9 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(Typ url: Union[str, None] -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -594,10 +632,10 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(Typed url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -606,17 +644,45 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType triage: NotRequired[bool] -class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] + repo: WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -676,7 +742,8 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -691,10 +758,11 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -728,7 +796,9 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): """License""" key: str @@ -738,7 +808,9 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(Typ url: Union[str, None] -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -764,10 +836,10 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(Typed url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -776,33 +848,7 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType 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] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -819,7 +865,7 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Ty node_id: str parent: NotRequired[ Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -830,11 +876,11 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Ty url: str -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo + f1PropParent """ description: Union[str, None] @@ -850,7 +896,9 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Pr url: str -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -865,7 +913,7 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDi node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -876,10 +924,12 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDi url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare + nt + """ description: Union[str, None] html_url: str @@ -895,41 +945,41 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentTy __all__ = ( - "WebhookPullRequestLockedType", - "WebhookPullRequestLockedPropPullRequestType", - "WebhookPullRequestLockedPropPullRequestPropAssigneeType", - "WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestLockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestLockedPropPullRequestPropMergedByType", - "WebhookPullRequestLockedPropPullRequestPropMilestoneType", - "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestLockedPropPullRequestPropUserType", - "WebhookPullRequestLockedPropPullRequestPropLinksType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestLockedPropPullRequestPropBaseType", - "WebhookPullRequestLockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropHeadType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestAutoMergeEnabledType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", ) 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 fdec31d04..d98d20f3c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0681.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0681.py @@ -12,25 +12,25 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0061 import MilestoneType -from .group_0402 import EnterpriseWebhooksType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0444 import WebhooksPullRequest5Type -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0447 import PullRequestWebhookType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestMilestonedType(TypedDict): - """pull_request milestoned event""" +class WebhookPullRequestClosedType(TypedDict): + """pull_request closed event""" - action: Literal["milestoned"] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] - milestone: NotRequired[MilestoneType] + installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhooksPullRequest5Type + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestMilestonedType",) +__all__ = ("WebhookPullRequestClosedType",) 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 9a13ae7bc..7e4265b25 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0682.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0682.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0442 import PullRequestWebhookType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0447 import PullRequestWebhookType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestOpenedType(TypedDict): - """pull_request opened event""" +class WebhookPullRequestConvertedToDraftType(TypedDict): + """pull_request converted_to_draft event""" - action: Literal["opened"] + action: Literal["converted_to_draft"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int @@ -33,4 +33,4 @@ class WebhookPullRequestOpenedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestOpenedType",) +__all__ = ("WebhookPullRequestConvertedToDraftType",) 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 0146bb49d..724c00b0a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0683.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0683.py @@ -12,25 +12,25 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0442 import PullRequestWebhookType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0064 import MilestoneType +from .group_0406 import EnterpriseWebhooksType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0449 import WebhooksPullRequest5Type +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestReadyForReviewType(TypedDict): - """pull_request ready_for_review event""" +class WebhookPullRequestDemilestonedType(TypedDict): + """pull_request demilestoned event""" - action: Literal["ready_for_review"] + 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: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookPullRequestReadyForReviewType",) +__all__ = ("WebhookPullRequestDemilestonedType",) 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 c2bc2aac5..6afdc3d09 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0684.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0684.py @@ -9,28 +9,938 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0442 import PullRequestWebhookType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestReopenedType(TypedDict): - """pull_request reopened event""" +class WebhookPullRequestDequeuedType(TypedDict): + """pull_request dequeued event""" - action: Literal["reopened"] + action: Literal["dequeued"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType + pull_request: WebhookPullRequestDequeuedPropPullRequestType + reason: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestReopenedType",) +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] + + +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] + + +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] + + +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] + + +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] + + +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] + + +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] + + +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] + + +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] + + +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] + + +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__ = ( + "WebhookPullRequestDequeuedType", + "WebhookPullRequestDequeuedPropPullRequestType", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropMergedByType", + "WebhookPullRequestDequeuedPropPullRequestPropMilestoneType", + "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestDequeuedPropPullRequestPropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestDequeuedPropPullRequestPropBaseType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", +) 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 588c71830..5d6b76f26 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0685.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0685.py @@ -9,1085 +9,79 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0447 import PullRequestWebhookType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewCommentCreatedType(TypedDict): - """pull_request_review_comment created event""" +class WebhookPullRequestEditedType(TypedDict): + """pull_request edited event""" - action: Literal["created"] - comment: WebhookPullRequestReviewCommentCreatedPropCommentType + action: Literal["edited"] + changes: WebhookPullRequestEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -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] - - -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] - + sender: NotRequired[SimpleUserWebhooksType] -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 WebhookPullRequestEditedPropChangesType(TypedDict): + """WebhookPullRequestEditedPropChanges - -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] - - -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. + The changes to the comment if the action was `edited`. """ - 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] - - -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] - - -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] - - -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 + base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] + body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] + title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" +class WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBody""" - href: str + from_: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" +class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): + """WebhookPullRequestEditedPropChangesPropTitle""" - href: str + from_: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" +class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBase""" - href: str + ref: WebhookPullRequestEditedPropChangesPropBasePropRefType + sha: WebhookPullRequestEditedPropChangesPropBasePropShaType -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" +class WebhookPullRequestEditedPropChangesPropBasePropRefType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBasePropRef""" - href: str + from_: 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] - - -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] - - -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] - - -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] - - -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 - """ +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__ = ( - "WebhookPullRequestReviewCommentCreatedType", - "WebhookPullRequestReviewCommentCreatedPropCommentType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropUserType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestEditedType", + "WebhookPullRequestEditedPropChangesType", + "WebhookPullRequestEditedPropChangesPropBodyType", + "WebhookPullRequestEditedPropChangesPropTitleType", + "WebhookPullRequestEditedPropChangesPropBaseType", + "WebhookPullRequestEditedPropChangesPropBasePropRefType", + "WebhookPullRequestEditedPropChangesPropBasePropShaType", ) 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 74f0942a3..53441c5ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0686.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0686.py @@ -13,42 +13,37 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0445 import WebhooksReviewCommentType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewCommentDeletedType(TypedDict): - """pull_request_review_comment deleted event""" +class WebhookPullRequestEnqueuedType(TypedDict): + """pull_request enqueued event""" - action: Literal["deleted"] - comment: WebhooksReviewCommentType + action: Literal["enqueued"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType + pull_request: WebhookPullRequestEnqueuedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" +class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): + """Pull Request""" - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType + links: WebhookPullRequestEnqueuedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None - ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, None] assignees: List[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, - None, - ] + Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -60,56 +55,61 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestEnqueuedPropPullRequestPropBaseType body: Union[str, None] - closed_at: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] comments_url: str + commits: NotRequired[int] commits_url: str - created_at: str + created_at: datetime + deletions: NotRequired[int] diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType + draft: bool + head: WebhookPullRequestEnqueuedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType - ] + labels: List[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType] locked: bool + maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, None] ] + milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: List[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str + review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: str + updated_at: datetime url: str - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -135,9 +135,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(Type url: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -163,7 +161,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -172,13 +170,12 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(Typ commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, - None, + WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -206,9 +203,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnab url: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -220,7 +215,33 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -230,8 +251,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -247,9 +267,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -271,11 +289,11 @@ 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] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -303,7 +321,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer url: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -329,58 +347,48 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDic url: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" +class WebhookPullRequestEnqueuedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType + comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -388,7 +396,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -396,37 +404,29 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" +class WebhookPullRequestEnqueuedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None - ] + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -452,9 +452,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( url: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -514,8 +512,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, - None, + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -530,11 +527,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -568,7 +564,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -580,9 +576,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -608,12 +602,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropO url: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -622,23 +614,43 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" +class WebhookPullRequestEnqueuedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropHead""" label: str ref: str - repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None - ] + repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType sha: str - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None - ] + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -698,8 +710,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, - None, + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -714,11 +725,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -752,7 +762,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -764,9 +774,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -792,12 +800,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropO url: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -806,35 +812,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -851,7 +829,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -862,11 +840,11 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer url: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent """ description: Union[str, None] @@ -882,9 +860,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -899,7 +875,7 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -910,12 +886,10 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte url: NotRequired[str] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -931,40 +905,41 @@ class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsIte __all__ = ( - "WebhookPullRequestReviewCommentDeletedType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestEnqueuedType", + "WebhookPullRequestEnqueuedPropPullRequestType", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropMergedByType", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestEnqueuedPropPullRequestPropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestEnqueuedPropPullRequestPropBaseType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", ) 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 cd3f1aae4..22c7218b8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0687.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0687.py @@ -13,44 +13,39 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0424 import WebhooksChangesType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0445 import WebhooksReviewCommentType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0424 import WebhooksLabelType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewCommentEditedType(TypedDict): - """pull_request_review_comment edited event""" +class WebhookPullRequestLabeledType(TypedDict): + """pull_request labeled event""" - action: Literal["edited"] - changes: WebhooksChangesType - comment: WebhooksReviewCommentType + action: Literal["labeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhooksLabelType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType + pull_request: WebhookPullRequestLabeledPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" +class WebhookPullRequestLabeledPropPullRequestType(TypedDict): + """Pull Request""" - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType + links: WebhookPullRequestLabeledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None - ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] assignees: List[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, - None, - ] + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -62,56 +57,61 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLabeledPropPullRequestPropBaseType body: Union[str, None] - closed_at: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] comments_url: str + commits: NotRequired[int] commits_url: str - created_at: str + created_at: datetime + deletions: NotRequired[int] diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType + draft: bool + head: WebhookPullRequestLabeledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType - ] + labels: List[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] locked: bool + maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] ] + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: List[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str + review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: str + updated_at: datetime url: str - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -133,13 +133,11 @@ 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] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -161,11 +159,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] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -174,15 +172,12 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(Type commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, - None, + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -208,9 +203,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabl url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -222,7 +215,33 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -232,8 +251,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(Type closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -249,9 +267,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(Type url: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -277,7 +293,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreat url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -301,11 +317,11 @@ 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] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -331,66 +347,54 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" +class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -398,37 +402,29 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCom href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" +class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None - ] + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -454,9 +450,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -516,8 +510,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, - None, + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -532,11 +525,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -570,7 +562,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -582,9 +574,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLi url: Union[str, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -610,12 +600,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOw url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -624,23 +612,17 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPe triage: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" +class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None - ] + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None - ] + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -700,8 +682,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, - None, + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -716,11 +697,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -754,7 +734,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -766,9 +746,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLi url: Union[str, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -794,12 +772,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOw url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -808,9 +784,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPe triage: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -836,7 +810,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -845,30 +819,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, + 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 WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent """ description: Union[str, None] @@ -884,9 +858,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers url: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -901,7 +873,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -912,12 +884,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent - """ + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -933,40 +903,41 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem __all__ = ( - "WebhookPullRequestReviewCommentEditedType", - "WebhookPullRequestReviewCommentEditedPropPullRequestType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestLabeledType", + "WebhookPullRequestLabeledPropPullRequestType", + "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", + "WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergeType", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestLabeledPropPullRequestPropMergedByType", + "WebhookPullRequestLabeledPropPullRequestPropMilestoneType", + "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestLabeledPropPullRequestPropUserType", + "WebhookPullRequestLabeledPropPullRequestPropLinksType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestLabeledPropPullRequestPropBaseType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropUserType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestLabeledPropPullRequestPropHeadType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ) 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 a10f91324..b828239c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0688.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0688.py @@ -13,117 +13,37 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewDismissedType(TypedDict): - """pull_request_review dismissed event""" +class WebhookPullRequestLockedType(TypedDict): + """pull_request locked event""" - action: Literal["dismissed"] + action: Literal["locked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewDismissedPropPullRequestType + pull_request: WebhookPullRequestLockedPropPullRequestType repository: RepositoryWebhooksType - review: WebhookPullRequestReviewDismissedPropReviewType sender: SimpleUserWebhooksType -class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): - """WebhookPullRequestReviewDismissedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewDismissedPropReviewPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - commit_id: str - html_url: str - id: int - node_id: str - pull_request_url: str - state: Literal["dismissed", "approved", "changes_requested"] - submitted_at: datetime - user: Union[WebhookPullRequestReviewDismissedPropReviewPropUserType, None] - - -class WebhookPullRequestReviewDismissedPropReviewPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksType(TypedDict): - """WebhookPullRequestReviewDismissedPropReviewPropLinks""" - - html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType - ) +class WebhookPullRequestLockedPropPullRequestType(TypedDict): + """Pull Request""" - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinksType + links: WebhookPullRequestLockedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None - ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] assignees: List[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None - ] + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -135,52 +55,61 @@ class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLockedPropPullRequestPropBaseType body: Union[str, None] - closed_at: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] comments_url: str + commits: NotRequired[int] commits_url: str - created_at: str + created_at: datetime + deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType + head: WebhookPullRequestLockedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] + labels: List[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] locked: bool + maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, 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[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str + review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: str + updated_at: datetime url: str - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -202,11 +131,11 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(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 WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -232,7 +161,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(Typ url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -241,15 +170,12 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDic commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, - None, + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -275,7 +201,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -287,7 +213,33 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedD url: str -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -297,8 +249,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDic closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -314,9 +265,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDic url: str -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -342,7 +291,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorTy url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -370,7 +319,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -396,94 +345,82 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" +class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" +class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None - ] + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -509,7 +446,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(Typed url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -569,8 +506,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, - None, + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -585,11 +521,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -623,9 +558,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(Typed web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): """License""" key: str @@ -635,9 +568,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -663,10 +594,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerT url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -675,21 +606,17 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" +class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, None - ] + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None - ] + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -749,8 +676,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, - None, + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -765,11 +691,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -803,9 +728,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(Typed web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): """License""" key: str @@ -815,9 +738,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -843,10 +764,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerT url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -855,7 +776,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -881,7 +802,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(Typed url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -898,7 +819,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -909,11 +830,11 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt """ description: Union[str, None] @@ -929,9 +850,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -946,7 +865,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsTyp node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -957,12 +876,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -978,45 +895,41 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPro __all__ = ( - "WebhookPullRequestReviewDismissedType", - "WebhookPullRequestReviewDismissedPropReviewType", - "WebhookPullRequestReviewDismissedPropReviewPropUserType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType", - "WebhookPullRequestReviewDismissedPropPullRequestType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewDismissedPropPullRequestPropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBaseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestLockedType", + "WebhookPullRequestLockedPropPullRequestType", + "WebhookPullRequestLockedPropPullRequestPropAssigneeType", + "WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestLockedPropPullRequestPropAutoMergeType", + "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestLockedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestLockedPropPullRequestPropMergedByType", + "WebhookPullRequestLockedPropPullRequestPropMilestoneType", + "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestLockedPropPullRequestPropUserType", + "WebhookPullRequestLockedPropPullRequestPropLinksType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestLockedPropPullRequestPropBaseType", + "WebhookPullRequestLockedPropPullRequestPropBasePropUserType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestLockedPropPullRequestPropHeadType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", ) 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 ce3171b85..3e1779dcd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0689.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0689.py @@ -9,909 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0446 import WebhooksReviewType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0064 import MilestoneType +from .group_0406 import EnterpriseWebhooksType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0449 import WebhooksPullRequest5Type +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewEditedType(TypedDict): - """pull_request_review edited event""" +class WebhookPullRequestMilestonedType(TypedDict): + """pull_request milestoned event""" - action: Literal["edited"] - changes: WebhookPullRequestReviewEditedPropChangesType + action: Literal["milestoned"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + milestone: NotRequired[MilestoneType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewEditedPropPullRequestType + pull_request: WebhooksPullRequest5Type repository: RepositoryWebhooksType - review: WebhooksReviewType - sender: SimpleUserWebhooksType - - -class WebhookPullRequestReviewEditedPropChangesType(TypedDict): - """WebhookPullRequestReviewEditedPropChanges""" - - body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] - - -class WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestReviewEditedPropChangesPropBody""" - - from_: str - - -class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: bool - head: WebhookPullRequestReviewEditedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] - sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None - ] - permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ( - "WebhookPullRequestReviewEditedType", - "WebhookPullRequestReviewEditedPropChangesType", - "WebhookPullRequestReviewEditedPropChangesPropBodyType", - "WebhookPullRequestReviewEditedPropPullRequestType", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewEditedPropPullRequestPropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewEditedPropPullRequestPropBaseType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookPullRequestMilestonedType",) 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 8a888c4c1..e9f9ae423 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0690.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0690.py @@ -9,1056 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0447 import PullRequestWebhookType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookPullRequestOpenedType(TypedDict): + """pull_request opened event""" - action: Literal["review_request_removed"] + action: Literal["opened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None - ] sender: SimpleUserWebhooksType -class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, - None, - ] - assignees: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, - None, - ] - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType - ] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, - None, - ] - ] - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, - None, - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None - ] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType - html: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType - ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType - self_: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookPullRequestOpenedType",) 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 140837d51..c59183590 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0691.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0691.py @@ -9,1073 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0447 import PullRequestWebhookType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookPullRequestReadyForReviewType(TypedDict): + """pull_request ready_for_review event""" - action: Literal["review_request_removed"] + action: Literal["ready_for_review"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType sender: SimpleUserWebhooksType -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, - None, - ] - assignees: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, - None, - ] - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType - ] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, - None, - ] - ] - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, - None, - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None - ] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType - html: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType - ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookPullRequestReadyForReviewType",) 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 f3e2f3535..e51b35d33 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0692.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0692.py @@ -9,1036 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0447 import PullRequestWebhookType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookPullRequestReopenedType(TypedDict): + """pull_request reopened event""" - action: Literal["review_requested"] + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None - ] sender: SimpleUserWebhooksType -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType - 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: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType - ] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None - ] - ] - milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType - ] - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None - ] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, - 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType - ] - private: 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis - sions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis - sions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem - sOneof1PropParent - """ - - 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro - pParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewRequestedOneof0Type", - "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookPullRequestReopenedType",) 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 6e3e02f8e..d6b05e487 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0693.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0693.py @@ -13,82 +13,156 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookPullRequestReviewCommentCreatedType(TypedDict): + """pull_request_review_comment created event""" - action: Literal["review_requested"] + action: Literal["created"] + comment: WebhookPullRequestReviewCommentCreatedPropCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType + pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType sender: SimpleUserWebhooksType -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType(TypedDict): - """Team +class WebhookPullRequestReviewCommentCreatedPropCommentType(TypedDict): + """Pull Request Review Comment - Groups of organization members that gives permissions on specified repositories. + The [comment](https://docs.github.com/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] - description: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] id: int - members_url: NotRequired[str] - name: str + login: str + name: NotRequired[str] node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, None - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType + pull_request: ( + WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType + ) + self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType + + +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType( + TypedDict +): + """Link""" - links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType + 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"] ] - additions: NotRequired[int] assignee: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, None ] assignees: List[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -102,71 +176,56 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, None + ] ] - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: List[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType ] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, None - ] - ] + merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: List[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None - ] + user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -192,7 +251,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(Typ url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -220,9 +279,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsTy url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( - TypedDict -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -231,13 +288,13 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -265,7 +322,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEna url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -279,35 +336,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] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( - TypedDict -): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -317,7 +346,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -334,7 +363,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -362,7 +391,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCre url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -386,11 +415,11 @@ 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] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -416,26 +445,26 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDi url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" comments: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType ) commits: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType statuses: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType ) -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -443,7 +472,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComment href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -451,7 +480,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -459,7 +488,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlTyp href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -467,7 +496,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueTy href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -475,7 +504,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -483,7 +512,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewC href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -491,7 +520,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfTyp href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -499,19 +528,19 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuse href: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -539,7 +568,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -601,7 +630,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -617,11 +646,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -655,7 +684,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -667,7 +696,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -695,11 +724,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions """ admin: bool @@ -709,47 +738,21 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType + repo: Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, None + ] sha: str user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, 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] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -797,7 +800,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool + has_discussions: NotRequired[bool] homepage: Union[str, None] hooks_url: str html_url: str @@ -811,7 +814,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -827,11 +830,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -865,7 +868,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -877,7 +880,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp url: Union[str, None] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -905,11 +908,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions """ admin: bool @@ -919,7 +922,35 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoProp triage: NotRequired[bool] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( +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] + + +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -928,30 +959,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, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, 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 WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] @@ -967,7 +998,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewe url: str -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -984,7 +1015,7 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -995,11 +1026,11 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt url: NotRequired[str] -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] @@ -1016,43 +1047,47 @@ class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsIt __all__ = ( - "WebhookPullRequestReviewRequestedOneof1Type", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewCommentCreatedType", + "WebhookPullRequestReviewCommentCreatedPropCommentType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropUserType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", ) 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 8602faa13..8612a858d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0694.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0694.py @@ -13,40 +13,41 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0446 import WebhooksReviewType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0450 import WebhooksReviewCommentType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewSubmittedType(TypedDict): - """pull_request_review submitted event""" +class WebhookPullRequestReviewCommentDeletedType(TypedDict): + """pull_request_review_comment deleted event""" - action: Literal["submitted"] + action: Literal["deleted"] + comment: WebhooksReviewCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType + pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType repository: RepositoryWebhooksType - review: WebhooksReviewType sender: SimpleUserWebhooksType -class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): - """Simple Pull Request""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] assignee: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None ] assignees: List[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, + None, ] ] author_association: Literal[ @@ -59,40 +60,44 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None + ] ] - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str commits_url: str created_at: str diff_url: str - draft: bool - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType] + labels: List[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType + ] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: List[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -101,10 +106,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -126,11 +131,13 @@ 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] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -152,11 +159,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 WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -165,13 +172,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDic commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -199,7 +206,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -211,7 +220,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedD url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -221,7 +230,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDic closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -238,7 +247,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDic url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -262,11 +271,11 @@ 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] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -290,11 +299,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -320,24 +329,26 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType + comments: ( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType ) - review_comments: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -345,7 +356,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -353,19 +364,23 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -373,7 +388,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -381,13 +396,15 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -395,19 +412,21 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -433,7 +452,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(Typed url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -493,7 +514,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -509,11 +530,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -547,7 +568,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -559,7 +580,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -587,10 +608,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerT url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss + ions + """ admin: bool maintain: NotRequired[bool] @@ -599,21 +622,23 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None ] sha: str user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -673,7 +698,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -689,11 +714,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -727,7 +752,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -739,7 +764,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -767,10 +792,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerT url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ admin: bool maintain: NotRequired[bool] @@ -779,7 +806,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -805,7 +834,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(Typed url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -814,30 +843,30 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem """ deleted: NotRequired[bool] - description: Union[str, None] - html_url: str + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] id: int - members_url: str + members_url: NotRequired[str] name: str - node_id: str + node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + 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 WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] @@ -853,7 +882,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -870,7 +899,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsTyp node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -881,11 +910,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen - t + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] @@ -902,40 +931,40 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPro __all__ = ( - "WebhookPullRequestReviewSubmittedType", - "WebhookPullRequestReviewSubmittedPropPullRequestType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewSubmittedPropPullRequestPropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewCommentDeletedType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", ) 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 d3f402a77..710aed08b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0695.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0695.py @@ -13,39 +13,42 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0428 import WebhooksChangesType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0450 import WebhooksReviewCommentType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewThreadResolvedType(TypedDict): - """pull_request_review_thread resolved event""" +class WebhookPullRequestReviewCommentEditedType(TypedDict): + """pull_request_review_comment edited event""" - action: Literal["resolved"] + action: Literal["edited"] + changes: WebhooksChangesType + comment: WebhooksReviewCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType + pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - thread: WebhookPullRequestReviewThreadResolvedPropThreadType + sender: SimpleUserWebhooksType -class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): - """Simple Pull Request""" +class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None ] assignees: List[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -59,42 +62,44 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None + ] ] - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str commits_url: str created_at: str diff_url: str - draft: bool - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: List[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType ] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: List[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -103,10 +108,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -132,7 +137,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(Type url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -160,7 +165,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -169,13 +174,13 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(Typ commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -203,7 +208,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnab url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -217,7 +222,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -227,7 +232,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -244,7 +249,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -268,11 +273,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCrea site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -296,11 +301,11 @@ 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] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -326,26 +331,26 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDic url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" comments: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType ) commits: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType statuses: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -353,7 +358,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -361,7 +366,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsT href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -369,7 +374,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -377,7 +382,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueTyp href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -385,7 +390,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -393,7 +398,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -401,7 +406,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -409,19 +414,19 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -449,7 +454,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -511,10 +516,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -525,11 +532,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -538,6 +545,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( releases_url: str role_name: NotRequired[Union[str, None]] size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -552,13 +563,14 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -570,7 +582,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -598,11 +610,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropO url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss - ions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons """ admin: bool @@ -612,21 +624,21 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None ] sha: str user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -688,10 +700,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -702,11 +716,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -715,6 +729,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( releases_url: str role_name: NotRequired[Union[str, None]] size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -729,13 +747,14 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -747,7 +766,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -775,11 +794,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropO url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss - ions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons """ admin: bool @@ -789,7 +808,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( TypedDict ): """User""" @@ -817,7 +836,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -826,30 +845,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, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent """ description: Union[str, None] @@ -865,7 +884,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -882,7 +901,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -893,11 +912,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp - Parent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent """ description: Union[str, None] @@ -913,188 +932,41 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: str -class WebhookPullRequestReviewThreadResolvedPropThreadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropThread""" - - comments: List[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType - ] - node_id: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(TypedDict): - """Pull Request Review Comment - - The [comment](https://docs.github.com/enterprise- - cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) - itself. - """ - - links: ( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: Union[int, None] - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, - None, - ] - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType( - TypedDict -): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -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__ = ( - "WebhookPullRequestReviewThreadResolvedType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewThreadResolvedPropThreadType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", + "WebhookPullRequestReviewCommentEditedType", + "WebhookPullRequestReviewCommentEditedPropPullRequestType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ) 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 d3c105393..57b45e9ef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0696.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0696.py @@ -13,40 +13,116 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): - """pull_request_review_thread unresolved event""" +class WebhookPullRequestReviewDismissedType(TypedDict): + """pull_request_review dismissed event""" - action: Literal["unresolved"] + action: Literal["dismissed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType + pull_request: WebhookPullRequestReviewDismissedPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType + review: WebhookPullRequestReviewDismissedPropReviewType + sender: SimpleUserWebhooksType -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): +class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): + """WebhookPullRequestReviewDismissedPropReview + + The review that was affected. + """ + + links: WebhookPullRequestReviewDismissedPropReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + commit_id: str + html_url: str + id: int + node_id: str + pull_request_url: str + state: Literal["dismissed", "approved", "changes_requested"] + submitted_at: datetime + user: Union[WebhookPullRequestReviewDismissedPropReviewPropUserType, None] + + +class WebhookPullRequestReviewDismissedPropReviewPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +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: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType + links: WebhookPullRequestReviewDismissedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None ] assignees: List[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None ] ] author_association: Literal[ @@ -60,9 +136,9 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType + base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str @@ -70,31 +146,29 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): created_at: str diff_url: str draft: bool - head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType + head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType - ] + labels: List[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: List[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -103,14 +177,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, None - ] + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -132,13 +202,11 @@ 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] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -160,28 +228,26 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsT site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(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, + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -209,9 +275,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEn url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -223,9 +287,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -235,7 +297,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -252,7 +314,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -280,7 +342,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCr url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -304,11 +366,11 @@ 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] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -330,30 +392,28 @@ 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] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType ) - commits: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -361,7 +421,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommen href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -369,23 +429,19 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommit href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -393,7 +449,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -401,15 +457,13 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -417,22 +471,19 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatus href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -458,9 +509,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserTyp url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -520,10 +569,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -534,11 +585,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -547,6 +598,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 @@ -561,13 +616,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 WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -579,7 +635,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -607,12 +663,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -621,50 +675,21 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro triage: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType + repo: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, None + ] sha: str user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, - None, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -724,10 +749,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -738,11 +765,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -751,6 +778,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 @@ -765,13 +796,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 WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -783,7 +815,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -811,12 +843,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions - """ + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -825,7 +855,33 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro triage: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -834,30 +890,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, + 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 WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] @@ -873,7 +929,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -890,7 +946,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -901,11 +957,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen + t """ description: Union[str, None] @@ -921,190 +977,46 @@ 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] - - -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__ = ( - "WebhookPullRequestReviewThreadUnresolvedType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", + "WebhookPullRequestReviewDismissedType", + "WebhookPullRequestReviewDismissedPropReviewType", + "WebhookPullRequestReviewDismissedPropReviewPropUserType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType", + "WebhookPullRequestReviewDismissedPropPullRequestType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewDismissedPropPullRequestPropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBaseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", ) 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 afa23c904..f4494f0cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0697.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0697.py @@ -13,39 +13,50 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0451 import WebhooksReviewType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestSynchronizeType(TypedDict): - """pull_request synchronize event""" +class WebhookPullRequestReviewEditedType(TypedDict): + """pull_request_review edited event""" - action: Literal["synchronize"] - after: str - before: str + action: Literal["edited"] + changes: WebhookPullRequestReviewEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestSynchronizePropPullRequestType + pull_request: WebhookPullRequestReviewEditedPropPullRequestType repository: RepositoryWebhooksType + review: WebhooksReviewType sender: SimpleUserWebhooksType -class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestReviewEditedPropChangesType(TypedDict): + """WebhookPullRequestReviewEditedPropChanges""" + + body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] + + +class WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestReviewEditedPropChangesPropBody""" + + from_: str + - links: WebhookPullRequestSynchronizePropPullRequestPropLinksType +class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): + """Simple Pull Request""" + + links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] + assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] assignees: List[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -58,64 +69,51 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestSynchronizePropPullRequestPropBaseType + base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType 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: WebhookPullRequestSynchronizePropPullRequestPropHeadType + head: WebhookPullRequestReviewEditedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] + labels: List[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] - ] + merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: List[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType ] 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[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] -class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -141,7 +139,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -167,7 +165,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDi url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -176,12 +174,13 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -209,7 +208,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -221,33 +220,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict) url: str -class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -257,7 +230,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -273,7 +246,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -301,7 +274,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -329,7 +302,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -355,48 +328,48 @@ class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" +class WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -404,7 +377,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -412,29 +385,29 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsTyp href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" +class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -460,7 +433,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -506,7 +479,6 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -520,12 +492,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, + 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] @@ -536,10 +506,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -548,10 +518,6 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(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 @@ -566,14 +532,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(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 WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -585,7 +549,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseTyp url: Union[str, None] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -613,10 +577,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -625,43 +589,17 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermission triage: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" +class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, None] - + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, 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] - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -707,7 +645,6 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -721,12 +658,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, + 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] @@ -737,10 +672,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -749,10 +684,6 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(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 @@ -767,14 +698,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(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 WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -786,7 +715,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseTyp url: Union[str, None] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -814,10 +743,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -826,7 +755,33 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermission triage: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( +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] + + +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -843,7 +798,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne node_id: str parent: NotRequired[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -854,11 +809,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent """ description: Union[str, None] @@ -874,7 +829,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -891,7 +846,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -902,10 +857,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -921,41 +876,42 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropPar __all__ = ( - "WebhookPullRequestSynchronizeType", - "WebhookPullRequestSynchronizePropPullRequestType", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropMergedByType", - "WebhookPullRequestSynchronizePropPullRequestPropMilestoneType", - "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestSynchronizePropPullRequestPropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestSynchronizePropPullRequestPropBaseType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewEditedType", + "WebhookPullRequestReviewEditedPropChangesType", + "WebhookPullRequestReviewEditedPropChangesPropBodyType", + "WebhookPullRequestReviewEditedPropPullRequestType", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewEditedPropPullRequestPropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewEditedPropPullRequestPropBaseType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ) 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 215e98126..969769828 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0698.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0698.py @@ -13,39 +13,72 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0428 import WebhooksUserMannequinType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestUnassignedType(TypedDict): - """pull_request unassigned event""" +class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhooksUserMannequinType, None]] + action: Literal["review_request_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnassignedPropPullRequestType + pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None + ] + sender: SimpleUserWebhooksType + +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(TypedDict): + """User""" -class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestUnassignedPropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, + None, + ] assignees: List[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -58,9 +91,10 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, + None, ] - base: WebhookPullRequestUnassignedPropPullRequestPropBaseType + base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -72,11 +106,13 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestUnassignedPropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] + labels: List[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType + ] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -85,22 +121,28 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, + None, + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, + None, ] - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: List[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -110,10 +152,14 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None + ] -class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -135,11 +181,13 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -161,11 +209,13 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDic site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -174,12 +224,13 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -207,7 +258,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -219,7 +272,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -241,11 +296,13 @@ 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] -class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -255,7 +312,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -271,7 +329,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -295,11 +353,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -323,11 +381,13 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -349,52 +409,62 @@ class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType + html: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType ) - review_comments: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -402,7 +472,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -410,29 +480,42 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" - label: Union[str, None] + label: str ref: str - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType + ) sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, + None, + ] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -458,7 +541,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict) url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -518,7 +603,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -533,10 +619,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -570,7 +657,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -582,7 +669,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType url: Union[str, None] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -610,10 +697,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions + """ admin: bool maintain: NotRequired[bool] @@ -622,17 +711,54 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions triage: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType + ) sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, + None, + ] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -692,7 +818,8 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -707,10 +834,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -744,7 +872,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -756,7 +884,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType url: Union[str, None] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -784,10 +912,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions + """ admin: bool maintain: NotRequired[bool] @@ -796,33 +926,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions triage: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -839,7 +943,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -850,11 +954,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] @@ -870,36 +974,40 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, + 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 WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent + """ description: Union[str, None] html_url: str @@ -915,41 +1023,42 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropPare __all__ = ( - "WebhookPullRequestUnassignedType", - "WebhookPullRequestUnassignedPropPullRequestType", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropMergedByType", - "WebhookPullRequestUnassignedPropPullRequestPropMilestoneType", - "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnassignedPropPullRequestPropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnassignedPropPullRequestPropBaseType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ) 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 d964eb666..340704297 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0699.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0699.py @@ -13,39 +13,88 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0420 import WebhooksLabelType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestUnlabeledType(TypedDict): - """pull_request unlabeled event""" +class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof1""" - action: Literal["unlabeled"] + action: Literal["review_request_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnlabeledPropPullRequestType + pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType repository: RepositoryWebhooksType + requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType sender: SimpleUserWebhooksType -class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, + None, + ] assignees: List[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -57,8 +106,11 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, + None, + ] + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -70,11 +122,13 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] + labels: List[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType + ] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -83,22 +137,28 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, + None, + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, + None, ] - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: List[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -108,10 +168,14 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None + ] -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -133,11 +197,13 @@ 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] -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -159,11 +225,13 @@ 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 WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -172,12 +240,13 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -205,7 +274,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( url: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -217,7 +288,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -243,7 +316,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): url: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -253,7 +328,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -269,7 +345,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -291,11 +369,11 @@ 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] -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -319,11 +397,13 @@ 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] -class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -345,52 +425,62 @@ 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] -class WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType + html: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType ) - review_comments: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType + self_: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -398,7 +488,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -406,29 +496,42 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType + repo: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType + ) sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, + None, + ] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -454,7 +557,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -514,7 +619,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -529,10 +635,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -566,7 +673,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -578,7 +685,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -606,10 +713,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( url: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP + ermissions + """ admin: bool maintain: NotRequired[bool] @@ -618,17 +727,54 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsT triage: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] + repo: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType + ) sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, + None, + ] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -688,7 +834,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -703,10 +850,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -740,7 +888,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -752,7 +900,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -780,10 +928,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( url: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP + ermissions + """ admin: bool maintain: NotRequired[bool] @@ -792,33 +942,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsT triage: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -835,7 +959,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -846,11 +970,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] @@ -866,36 +990,40 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte + msPropParent + """ description: Union[str, None] html_url: str @@ -911,41 +1039,43 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParen __all__ = ( - "WebhookPullRequestUnlabeledType", - "WebhookPullRequestUnlabeledPropPullRequestType", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropMergedByType", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnlabeledPropPullRequestPropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnlabeledPropPullRequestPropBaseType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ) 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 72acae904..8684e6fdc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0700.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0700.py @@ -13,37 +13,71 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookPullRequestUnlockedType(TypedDict): - """pull_request unlocked event""" +class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof0""" - action: Literal["unlocked"] + action: Literal["review_requested"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnlockedPropPullRequestType + pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType repository: RepositoryWebhooksType + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None + ] sender: SimpleUserWebhooksType -class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestUnlockedPropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None + ] assignees: List[ - Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -55,8 +89,10 @@ class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestUnlockedPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -68,11 +104,13 @@ class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestUnlockedPropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType] + labels: List[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType + ] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -81,22 +119,26 @@ class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestUnlockedPropPullRequestPropMergedByType, None] + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: List[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -106,10 +148,12 @@ class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None + ] -class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -131,11 +175,13 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -157,25 +203,28 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict) site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. """ commit_message: Union[str, None] - commit_title: str + commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -203,7 +252,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -215,7 +266,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -241,7 +292,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -251,7 +304,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -267,7 +321,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -289,11 +345,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(Type site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -321,7 +377,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -343,52 +399,62 @@ class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType + comments: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType ) - review_comments: ( - WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -396,7 +462,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -404,29 +470,37 @@ class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -452,7 +526,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -512,7 +588,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -527,10 +604,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -564,7 +642,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -576,7 +654,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -602,10 +682,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(Typ url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -614,17 +696,49 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" label: str ref: str - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None + ] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -684,7 +798,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -699,10 +814,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -736,7 +852,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -748,7 +864,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -774,10 +892,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(Typ url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -786,33 +906,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -821,30 +915,30 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent """ description: Union[str, None] @@ -860,7 +954,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 url: str -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -875,7 +971,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(Typed node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -886,10 +982,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(Typed url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent + """ description: Union[str, None] html_url: str @@ -905,41 +1003,42 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent __all__ = ( - "WebhookPullRequestUnlockedType", - "WebhookPullRequestUnlockedPropPullRequestType", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropMergedByType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestoneType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnlockedPropPullRequestPropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnlockedPropPullRequestPropBaseType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestedOneof0Type", + "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ) 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 6caa9ab9c..54acfadbc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0701.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0701.py @@ -13,126 +13,535 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType - - -class WebhookPushType(TypedDict): - """push event""" - - after: str - base_ref: Union[str, None] - before: str - commits: List[WebhookPushPropCommitsItemsType] - compare: str - created: bool - deleted: bool +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType + + +class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof1""" + + action: Literal["review_requested"] enterprise: NotRequired[EnterpriseWebhooksType] - forced: bool - head_commit: Union[WebhookPushPropHeadCommitType, None] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pusher: WebhookPushPropPusherType - ref: str - repository: WebhookPushPropRepositoryType - sender: NotRequired[SimpleUserWebhooksType] - - -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 + pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType + repository: RepositoryWebhooksType + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType + sender: SimpleUserWebhooksType -class WebhookPushPropHeadCommitPropAuthorType(TypedDict): - """Committer +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType(TypedDict): + """Team - Metaproperties for Git author/committer information. + Groups of organization members that gives permissions on specified repositories. """ - date: NotRequired[datetime] - email: Union[str, None] + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] name: str - username: NotRequired[str] - + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, None + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookPushPropHeadCommitPropCommitterType(TypedDict): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" - date: NotRequired[datetime] - email: Union[str, None] + description: Union[str, None] + html_url: str + id: int + members_url: str name: str - username: NotRequired[str] + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType + 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: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType + ] + 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 + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType + ] + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: 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 WebhookPushPropPusherType(TypedDict): - """Committer +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" - Metaproperties for Git author/committer information. + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( + TypedDict +): + """PullRequestAutoMerge + + The status of auto merging a pull request. """ - date: NotRequired[datetime] + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int name: str - username: NotRequired[str] - - -class WebhookPushPropCommitsItemsType(TypedDict): - """Commit""" - - added: NotRequired[List[str]] - author: WebhookPushPropCommitsItemsPropAuthorType - committer: WebhookPushPropCommitsItemsPropCommitterType - distinct: bool - id: str - message: str - modified: NotRequired[List[str]] - removed: NotRequired[List[str]] - timestamp: datetime - tree_id: str + node_id: str url: str -class WebhookPushPropCommitsItemsPropAuthorType(TypedDict): - """Committer +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType(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] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( + TypedDict +): + """Milestone + + A collection of related issues and pull requests. """ - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhookPushPropCommitsItemsPropCommitterType(TypedDict): - """Committer +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" - Metaproperties for Git author/committer information. - """ + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str -class WebhookPushPropRepositoryType(TypedDict): + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -157,7 +566,6 @@ class WebhookPushPropRepositoryType(TypedDict): contents_url: str contributors_url: str created_at: Union[int, datetime] - custom_properties: NotRequired[WebhookPushPropRepositoryPropCustomPropertiesType] default_branch: str delete_branch_on_merge: NotRequired[bool] deployments_url: str @@ -192,8 +600,13 @@ class WebhookPushPropRepositoryType(TypedDict): labels_url: str language: Union[str, None] languages_url: str - license_: Union[WebhookPushPropRepositoryPropLicenseType, None] + license_: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + None, + ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -203,8 +616,13 @@ class WebhookPushPropRepositoryType(TypedDict): open_issues: int open_issues_count: int organization: NotRequired[str] - owner: Union[WebhookPushPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookPushPropRepositoryPropPermissionsType] + owner: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + ] private: bool public: NotRequired[bool] pulls_url: str @@ -212,6 +630,10 @@ class WebhookPushPropRepositoryType(TypedDict): releases_url: str role_name: NotRequired[Union[str, None]] size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -226,22 +648,226 @@ class WebhookPushPropRepositoryType(TypedDict): trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPushPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookPushPropRepositoryPropCustomProperties +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis + sions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType( + 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] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + -class WebhookPushPropRepositoryPropLicenseType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): """License""" key: str @@ -251,7 +877,9 @@ class WebhookPushPropRepositoryPropLicenseType(TypedDict): url: Union[str, None] -class WebhookPushPropRepositoryPropOwnerType(TypedDict): +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -277,8 +905,12 @@ class WebhookPushPropRepositoryPropOwnerType(TypedDict): url: NotRequired[str] -class WebhookPushPropRepositoryPropPermissionsType(TypedDict): - """WebhookPushPropRepositoryPropPermissions""" +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -287,18 +919,140 @@ class WebhookPushPropRepositoryPropPermissionsType(TypedDict): triage: NotRequired[bool] +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem + sOneof1PropParent + """ + + 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro + pParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookPushType", - "WebhookPushPropHeadCommitType", - "WebhookPushPropHeadCommitPropAuthorType", - "WebhookPushPropHeadCommitPropCommitterType", - "WebhookPushPropPusherType", - "WebhookPushPropCommitsItemsType", - "WebhookPushPropCommitsItemsPropAuthorType", - "WebhookPushPropCommitsItemsPropCommitterType", - "WebhookPushPropRepositoryType", - "WebhookPushPropRepositoryPropCustomPropertiesType", - "WebhookPushPropRepositoryPropLicenseType", - "WebhookPushPropRepositoryPropOwnerType", - "WebhookPushPropRepositoryPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof1Type", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ) 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 57bcce906..bab5d2cd4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0702.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0702.py @@ -9,27 +9,933 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0703 import WebhookRegistryPackagePublishedPropRegistryPackageType +from .group_0451 import WebhooksReviewType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRegistryPackagePublishedType(TypedDict): - """WebhookRegistryPackagePublished""" +class WebhookPullRequestReviewSubmittedType(TypedDict): + """pull_request_review submitted event""" - action: Literal["published"] + action: Literal["submitted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType - repository: NotRequired[RepositoryWebhooksType] + pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType + repository: RepositoryWebhooksType + review: WebhooksReviewType sender: SimpleUserWebhooksType -__all__ = ("WebhookRegistryPackagePublishedType",) +class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): + """Simple Pull Request""" + + links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: 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 WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: 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 WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: 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 WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(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[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: 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 WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None + ] + sha: str + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestReviewSubmittedType", + "WebhookPullRequestReviewSubmittedPropPullRequestType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewSubmittedPropPullRequestPropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", +) 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 add38c56f..c4314d8bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0703.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0703.py @@ -9,70 +9,1092 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0704 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, -) +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType + + +class WebhookPullRequestReviewThreadResolvedType(TypedDict): + """pull_request_review_thread resolved event""" + + action: Literal["resolved"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + thread: WebhookPullRequestReviewThreadResolvedPropThreadType + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): + """Simple Pull Request""" + + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType + ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] -class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackage""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" - created_at: Union[str, None] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool description: Union[str, None] - ecosystem: str + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str - namespace: str - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType - package_type: str - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, None + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, + None, ] - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, None + permissions: NotRequired[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType ] - updated_at: Union[str, None] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" - avatar_url: str +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None + ] + sha: str + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str url: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropThread""" + + comments: List[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType + ] + node_id: str - about_url: NotRequired[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] - type: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] - vendor: 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__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackageType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", + "WebhookPullRequestReviewThreadResolvedType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewThreadResolvedPropThreadType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ) 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 a2f49ad26..02e45b785 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0704.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0704.py @@ -9,478 +9,1014 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0626 import WebhookRubygemsMetadataType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" +class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): + """pull_request_review_thread unresolved event""" + + action: Literal["unresolved"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType + - author: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): + """Simple Pull Request""" + + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None ] - body: NotRequired[ + assignees: List[ Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, + None, ] ] - body_html: NotRequired[str] - container_metadata: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - created_at: NotRequired[str] - description: str - docker_metadata: NotRequired[ - List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType - ] + auto_merge: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None ] - draft: NotRequired[bool] + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType html_url: str id: int - installation_command: str - manifest: NotRequired[str] - metadata: List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType + issue_url: str + labels: List[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType ] - name: str - npm_metadata: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, - None, - ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None ] - nuget_metadata: NotRequired[ + node_id: str + number: int + patch_url: str + requested_reviewers: List[ Union[ - List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType - ], + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] - package_files: List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + requested_teams: List[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType ] - package_url: str - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, None ] - 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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" + """User""" - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 - """ + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems + """PullRequestAutoMerge + + The status of auto merging a pull request. """ - tags: NotRequired[List[str]] + commit_message: Union[str, None] + commit_title: str + enabled_by: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata - Items - """ + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( + TypedDict +): + """Milestone + + A collection of related issues and pull requests. """ - 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 + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, + None, ] - 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] + 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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 - """ + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type( + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType( + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ + """Link""" + + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ + """Link""" + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ + """Link""" + + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ + """Link""" + + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 - """ + """Link""" + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type( + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ + """Link""" + + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ + """Link""" + + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines - """ + """Link""" + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType( + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan + """Repository + + A git repository """ + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type( + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 - """ + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions """ - content_type: str - created_at: str - download_url: str + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: Union[str, None] - size: int - state: Union[str, None] - updated_at: str + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata + """Repository + + A git repository """ - labels: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, - None, - ] + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, + None, ] - manifest: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, - None, - ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, + None, ] - tag: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType + permissions: NotRequired[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest - """ + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions """ - digest: NotRequired[str] - name: NotRequired[str] + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems + """Team + + Groups of organization members that gives permissions on specified repositories. """ - id: NotRequired[ + 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[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, - int, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - name: NotRequired[str] - value: NotRequired[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, - ] - ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent """ + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 + """Team + + Groups of organization members that gives permissions on specified repositories. """ + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] url: NotRequired[str] - branch: NotRequired[str] - commit: NotRequired[str] - type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType( +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent + """ - author: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropThread""" + + comments: List[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType ] - 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] + node_id: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor + """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: 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] @@ -488,38 +1024,87 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRe site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] +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__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookPullRequestReviewThreadUnresolvedType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ) 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 994577ad7..b720ed71b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0705.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0705.py @@ -9,27 +9,953 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0706 import WebhookRegistryPackageUpdatedPropRegistryPackageType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRegistryPackageUpdatedType(TypedDict): - """WebhookRegistryPackageUpdated""" +class WebhookPullRequestSynchronizeType(TypedDict): + """pull_request synchronize event""" - action: Literal["updated"] + action: Literal["synchronize"] + after: str + before: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType - repository: NotRequired[RepositoryWebhooksType] + pull_request: WebhookPullRequestSynchronizePropPullRequestType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookRegistryPackageUpdatedType",) +class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestSynchronizePropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestSynchronizePropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestSynchronizePropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" + + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestSynchronizeType", + "WebhookPullRequestSynchronizePropPullRequestType", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropMergedByType", + "WebhookPullRequestSynchronizePropPullRequestPropMilestoneType", + "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestSynchronizePropPullRequestPropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestSynchronizePropPullRequestPropBaseType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", +) 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 dfec4b9aa..9b8fc9cd9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0706.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0706.py @@ -9,64 +9,947 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0707 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, -) +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0432 import WebhooksUserMannequinType +from .group_0408 import OrganizationSimpleWebhooksType + + +class WebhookPullRequestUnassignedType(TypedDict): + """pull_request unassigned event""" + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhooksUserMannequinType, None]] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestUnassignedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" - created_at: str - description: None - ecosystem: str +class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnassignedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestUnassignedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnassignedPropPullRequestPropHeadType html_url: str id: int + issue_url: str + labels: List[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int name: str - namespace: str - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType - package_type: str - package_version: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType + node_id: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType ) - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, None + review_comments: ( + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" + + label: Union[str, None] + ref: str + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType ] - updated_at: str + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + 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 WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" - avatar_url: str + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str url: str -class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackageType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", + "WebhookPullRequestUnassignedType", + "WebhookPullRequestUnassignedPropPullRequestType", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropMergedByType", + "WebhookPullRequestUnassignedPropPullRequestPropMilestoneType", + "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnassignedPropPullRequestPropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnassignedPropPullRequestPropBaseType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", ) 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 1f358e2a5..fd796929b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0707.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0707.py @@ -9,170 +9,943 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0626 import WebhookRubygemsMetadataType +from .group_0424 import WebhooksLabelType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" +class WebhookPullRequestUnlabeledType(TypedDict): + """pull_request unlabeled event""" - author: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType - ) - body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - List[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, - None, - ] + action: Literal["unlabeled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhooksLabelType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestUnlabeledPropPullRequestType + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] - draft: NotRequired[bool] + requested_teams: List[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] html_url: str id: int - installation_command: str - manifest: NotRequired[str] - metadata: List[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str - package_files: List[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType ] - package_url: str - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] - rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] - summary: str - tag_name: NotRequired[str] - target_commitish: str - target_oid: str - updated_at: str - version: str + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType( +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] + - avatar_url: str +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - login: str + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems - """ + """License""" - tags: NotRequired[List[str]] + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt - ems - """ + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems - """ + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + - content_type: NotRequired[str] - created_at: NotRequired[str] - download_url: NotRequired[str] - id: NotRequired[int] - md5: NotRequired[Union[str, None]] +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] - sha1: NotRequired[Union[str, None]] - sha256: NotRequired[str] - size: NotRequired[int] - state: NotRequired[str] - updated_at: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" + """Team - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType - created_at: str - draft: bool + 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 - prerelease: bool - published_at: str - tag_name: str - target_commitish: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str url: str -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent """ - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + description: Union[str, None] html_url: str id: int - login: str + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str url: str __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookPullRequestUnlabeledType", + "WebhookPullRequestUnlabeledPropPullRequestType", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropMergedByType", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnlabeledPropPullRequestPropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnlabeledPropPullRequestPropBaseType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ) 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 e6bcb05df..ea9567a39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0708.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0708.py @@ -9,27 +9,937 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0447 import WebhooksReleaseType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookReleaseCreatedType(TypedDict): - """release created event""" +class WebhookPullRequestUnlockedType(TypedDict): + """pull_request unlocked event""" - action: Literal["created"] + action: Literal["unlocked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType + pull_request: WebhookPullRequestUnlockedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookReleaseCreatedType",) +class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnlockedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlockedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnlockedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnlockedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: str + enabled_by: Union[ + WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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__ = ( + "WebhookPullRequestUnlockedType", + "WebhookPullRequestUnlockedPropPullRequestType", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropMergedByType", + "WebhookPullRequestUnlockedPropPullRequestPropMilestoneType", + "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnlockedPropPullRequestPropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnlockedPropPullRequestPropBaseType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", +) 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 2f2d3368d..fcd22517e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0709.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0709.py @@ -9,27 +9,296 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0447 import WebhooksReleaseType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookReleaseDeletedType(TypedDict): - """release deleted event""" +class WebhookPushType(TypedDict): + """push event""" - action: Literal["deleted"] + after: str + base_ref: Union[str, None] + before: str + commits: List[WebhookPushPropCommitsItemsType] + compare: str + created: bool + deleted: bool enterprise: NotRequired[EnterpriseWebhooksType] + forced: bool + head_commit: Union[WebhookPushPropHeadCommitType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + pusher: WebhookPushPropPusherType + ref: str + repository: WebhookPushPropRepositoryType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookReleaseDeletedType",) +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] + + +class WebhookPushPropRepositoryPropCustomPropertiesType(TypedDict): + """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] + + +class WebhookPushPropRepositoryPropPermissionsType(TypedDict): + """WebhookPushPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +__all__ = ( + "WebhookPushType", + "WebhookPushPropHeadCommitType", + "WebhookPushPropHeadCommitPropAuthorType", + "WebhookPushPropHeadCommitPropCommitterType", + "WebhookPushPropPusherType", + "WebhookPushPropCommitsItemsType", + "WebhookPushPropCommitsItemsPropAuthorType", + "WebhookPushPropCommitsItemsPropCommitterType", + "WebhookPushPropRepositoryType", + "WebhookPushPropRepositoryPropCustomPropertiesType", + "WebhookPushPropRepositoryPropLicenseType", + "WebhookPushPropRepositoryPropOwnerType", + "WebhookPushPropRepositoryPropPermissionsType", +) 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 2e24c9e3e..fcbe5ac6a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0710.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0710.py @@ -12,57 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0447 import WebhooksReleaseType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0711 import WebhookRegistryPackagePublishedPropRegistryPackageType -class WebhookReleaseEditedType(TypedDict): - """release edited event""" +class WebhookRegistryPackagePublishedType(TypedDict): + """WebhookRegistryPackagePublished""" - action: Literal["edited"] - changes: WebhookReleaseEditedPropChangesType + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -class WebhookReleaseEditedPropChangesType(TypedDict): - """WebhookReleaseEditedPropChanges""" - - body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] - name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] - make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] - - -class WebhookReleaseEditedPropChangesPropBodyType(TypedDict): - """WebhookReleaseEditedPropChangesPropBody""" - - from_: str - - -class WebhookReleaseEditedPropChangesPropNameType(TypedDict): - """WebhookReleaseEditedPropChangesPropName""" - - from_: str - - -class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): - """WebhookReleaseEditedPropChangesPropMakeLatest""" - - to: bool - - -__all__ = ( - "WebhookReleaseEditedType", - "WebhookReleaseEditedPropChangesType", - "WebhookReleaseEditedPropChangesPropBodyType", - "WebhookReleaseEditedPropChangesPropNameType", - "WebhookReleaseEditedPropChangesPropMakeLatestType", -) +__all__ = ("WebhookRegistryPackagePublishedType",) 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 e452ea857..9a421838f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0711.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0711.py @@ -9,153 +9,70 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType - - -class WebhookReleasePrereleasedType(TypedDict): - """release prereleased event""" - - action: Literal["prereleased"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleasePrereleasedPropReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - +from .group_0712 import ( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, +) -class WebhookReleasePrereleasedPropReleaseType(TypedDict): - """Release - The [release](https://docs.github.com/enterprise- - cloud@latest//rest/releases/releases/#get-a-release) object. - """ +class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackage""" - assets: List[Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsType, None]] - assets_url: str - author: Union[WebhookReleasePrereleasedPropReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool + created_at: Union[str, None] + description: Union[str, None] + ecosystem: str html_url: str id: int - name: Union[str, None] - node_id: str - prerelease: Literal[True] - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleasePrereleasedPropReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhookReleasePrereleasedPropReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, None] + namespace: str + owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType + package_type: str + package_version: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, None ] - url: str + registry: Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, None + ] + updated_at: Union[str, None] -class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: str + html_url: str id: int login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + node_id: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str -class WebhookReleasePrereleasedPropReleasePropAuthorType(TypedDict): - """User""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str + about_url: 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"]] + type: NotRequired[str] url: 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 + vendor: NotRequired[str] __all__ = ( - "WebhookReleasePrereleasedType", - "WebhookReleasePrereleasedPropReleaseType", - "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", - "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", - "WebhookReleasePrereleasedPropReleasePropAuthorType", - "WebhookReleasePrereleasedPropReleasePropReactionsType", + "WebhookRegistryPackagePublishedPropRegistryPackageType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", ) 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 d059a4f27..d22185f73 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0712.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0712.py @@ -9,27 +9,517 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0448 import WebhooksRelease1Type -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0631 import WebhookRubygemsMetadataType -class WebhookReleasePublishedType(TypedDict): - """release published event""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - action: Literal["published"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksRelease1Type - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + author: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType + ] + body: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, + ] + ] + body_html: NotRequired[str] + container_metadata: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType + ] + created_at: NotRequired[str] + description: str + docker_metadata: NotRequired[ + List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType + ] + name: str + npm_metadata: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, + None, + ] + ] + nuget_metadata: NotRequired[ + Union[ + List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] + ] + package_files: List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: str + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] + summary: str + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + target_oid: NotRequired[str] + updated_at: NotRequired[str] + version: str -__all__ = ("WebhookReleasePublishedType",) +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 + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo + f1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe + tadataItems + """ + + tags: NotRequired[List[str]] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType( + TypedDict +): + """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] + + +__all__ = ( + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", +) 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 f5c48599a..c3c6b9686 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0713.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0713.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0447 import WebhooksReleaseType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0714 import WebhookRegistryPackageUpdatedPropRegistryPackageType -class WebhookReleaseReleasedType(TypedDict): - """release released event""" +class WebhookRegistryPackageUpdatedType(TypedDict): + """WebhookRegistryPackageUpdated""" - action: Literal["released"] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookReleaseReleasedType",) +__all__ = ("WebhookRegistryPackageUpdatedType",) 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 bd2a715b0..82e25b674 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0714.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0714.py @@ -9,27 +9,64 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0448 import WebhooksRelease1Type -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0715 import ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, +) -class WebhookReleaseUnpublishedType(TypedDict): - """release unpublished event""" +class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackage""" - action: Literal["unpublished"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksRelease1Type - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + 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__ = ("WebhookReleaseUnpublishedType",) +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 + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" + + +__all__ = ( + "WebhookRegistryPackageUpdatedPropRegistryPackageType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", +) 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 4b2b3092b..f0c5758b3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0715.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0715.py @@ -9,27 +9,170 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0162 import RepositoryAdvisoryType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0631 import WebhookRubygemsMetadataType -class WebhookRepositoryAdvisoryPublishedType(TypedDict): - """Repository advisory published event""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" - action: Literal["published"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - repository_advisory: RepositoryAdvisoryType - sender: NotRequired[SimpleUserWebhooksType] + author: ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType + ) + body: str + body_html: str + created_at: str + description: str + docker_metadata: NotRequired[ + List[ + Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, + None, + ] + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: List[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType + ] + name: str + package_files: List[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: str + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] + summary: str + tag_name: NotRequired[str] + target_commitish: str + target_oid: str + updated_at: str + version: str -__all__ = ("WebhookRepositoryAdvisoryPublishedType",) +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 + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta + dataItems + """ + + tags: NotRequired[List[str]] + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType( + TypedDict +): + """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 + + +__all__ = ( + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", +) 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 179b2210a..6ffdf8b7d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0716.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0716.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0162 import RepositoryAdvisoryType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0452 import WebhooksReleaseType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRepositoryAdvisoryReportedType(TypedDict): - """Repository advisory reported event""" +class WebhookReleaseCreatedType(TypedDict): + """release created event""" - action: Literal["reported"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType repository: RepositoryWebhooksType - repository_advisory: RepositoryAdvisoryType - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookRepositoryAdvisoryReportedType",) +__all__ = ("WebhookReleaseCreatedType",) 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 899af7eb7..50a2295a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0717.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0717.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0452 import WebhooksReleaseType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRepositoryArchivedType(TypedDict): - """repository archived event""" +class WebhookReleaseDeletedType(TypedDict): + """release deleted event""" - action: Literal["archived"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookRepositoryArchivedType",) +__all__ = ("WebhookReleaseDeletedType",) 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 655d566fe..c8a3cca5a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0718.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0718.py @@ -12,22 +12,57 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0452 import WebhooksReleaseType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRepositoryCreatedType(TypedDict): - """repository created event""" +class WebhookReleaseEditedType(TypedDict): + """release edited event""" - action: Literal["created"] + action: Literal["edited"] + changes: WebhookReleaseEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookRepositoryCreatedType",) +class WebhookReleaseEditedPropChangesType(TypedDict): + """WebhookReleaseEditedPropChanges""" + + body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] + name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] + make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] + + +class WebhookReleaseEditedPropChangesPropBodyType(TypedDict): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropNameType(TypedDict): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool + + +__all__ = ( + "WebhookReleaseEditedType", + "WebhookReleaseEditedPropChangesType", + "WebhookReleaseEditedPropChangesPropBodyType", + "WebhookReleaseEditedPropChangesPropNameType", + "WebhookReleaseEditedPropChangesPropMakeLatestType", +) 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 e5116de7b..95e37a5f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0719.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0719.py @@ -9,25 +9,153 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRepositoryDeletedType(TypedDict): - """repository deleted event""" +class WebhookReleasePrereleasedType(TypedDict): + """release prereleased event""" - action: Literal["deleted"] + action: Literal["prereleased"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhookReleasePrereleasedPropReleaseType repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookRepositoryDeletedType",) +class WebhookReleasePrereleasedPropReleaseType(TypedDict): + """Release + + The [release](https://docs.github.com/enterprise- + cloud@latest//rest/releases/releases/#get-a-release) object. + """ + + assets: List[Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsType, None]] + assets_url: str + author: Union[WebhookReleasePrereleasedPropReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: Literal[True] + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleasePrereleasedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, None] + ] + url: str + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleasePrereleasedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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__ = ( + "WebhookReleasePrereleasedType", + "WebhookReleasePrereleasedPropReleaseType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleasePrereleasedPropReleasePropAuthorType", + "WebhookReleasePrereleasedPropReleasePropReactionsType", +) 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 6695e84a0..80813f1f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0720.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0720.py @@ -9,38 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0453 import WebhooksRelease1Type +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRepositoryDispatchSampleType(TypedDict): - """repository_dispatch event""" +class WebhookReleasePublishedType(TypedDict): + """release published event""" - action: str - branch: str - client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayloadType, None] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksRelease1Type repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookRepositoryDispatchSamplePropClientPayloadType(TypedDict): - """WebhookRepositoryDispatchSamplePropClientPayload - - The `client_payload` that was specified in the `POST - /repos/{owner}/{repo}/dispatches` request body. - """ - - -__all__ = ( - "WebhookRepositoryDispatchSampleType", - "WebhookRepositoryDispatchSamplePropClientPayloadType", -) +__all__ = ("WebhookReleasePublishedType",) 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 08780a218..0ff1837fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0721.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0721.py @@ -9,66 +9,27 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0452 import WebhooksReleaseType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRepositoryEditedType(TypedDict): - """repository edited event""" +class WebhookReleaseReleasedType(TypedDict): + """release released event""" - action: Literal["edited"] - changes: WebhookRepositoryEditedPropChangesType + action: Literal["released"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -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__ = ( - "WebhookRepositoryEditedType", - "WebhookRepositoryEditedPropChangesType", - "WebhookRepositoryEditedPropChangesPropDefaultBranchType", - "WebhookRepositoryEditedPropChangesPropDescriptionType", - "WebhookRepositoryEditedPropChangesPropHomepageType", - "WebhookRepositoryEditedPropChangesPropTopicsType", -) +__all__ = ("WebhookReleaseReleasedType",) 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 7cbfa8218..9c3ef124b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0722.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0722.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0453 import WebhooksRelease1Type +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRepositoryImportType(TypedDict): - """repository_import event""" +class WebhookReleaseUnpublishedType(TypedDict): + """release unpublished event""" + action: Literal["unpublished"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksRelease1Type repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - status: Literal["success", "cancelled", "failure"] + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookRepositoryImportType",) +__all__ = ("WebhookReleaseUnpublishedType",) 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 e98154ec1..92033cc83 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0723.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0723.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0166 import RepositoryAdvisoryType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRepositoryPrivatizedType(TypedDict): - """repository privatized event""" +class WebhookRepositoryAdvisoryPublishedType(TypedDict): + """Repository advisory published event""" - action: Literal["privatized"] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + repository_advisory: RepositoryAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookRepositoryPrivatizedType",) +__all__ = ("WebhookRepositoryAdvisoryPublishedType",) 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 05a171ea3..4bc2d0ace 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0724.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0724.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0166 import RepositoryAdvisoryType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRepositoryPublicizedType(TypedDict): - """repository publicized event""" +class WebhookRepositoryAdvisoryReportedType(TypedDict): + """Repository advisory reported event""" - action: Literal["publicized"] + action: Literal["reported"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + repository_advisory: RepositoryAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookRepositoryPublicizedType",) +__all__ = ("WebhookRepositoryAdvisoryReportedType",) 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 cbf6ac9d8..88a5e7bb2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0725.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0725.py @@ -12,18 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRepositoryRenamedType(TypedDict): - """repository renamed event""" +class WebhookRepositoryArchivedType(TypedDict): + """repository archived event""" - action: Literal["renamed"] - changes: WebhookRepositoryRenamedPropChangesType + action: Literal["archived"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -31,27 +30,4 @@ class WebhookRepositoryRenamedType(TypedDict): sender: SimpleUserWebhooksType -class WebhookRepositoryRenamedPropChangesType(TypedDict): - """WebhookRepositoryRenamedPropChanges""" - - repository: WebhookRepositoryRenamedPropChangesPropRepositoryType - - -class WebhookRepositoryRenamedPropChangesPropRepositoryType(TypedDict): - """WebhookRepositoryRenamedPropChangesPropRepository""" - - name: WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType - - -class WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType(TypedDict): - """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" - - from_: str - - -__all__ = ( - "WebhookRepositoryRenamedType", - "WebhookRepositoryRenamedPropChangesType", - "WebhookRepositoryRenamedPropChangesPropRepositoryType", - "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", -) +__all__ = ("WebhookRepositoryArchivedType",) 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 e7ddc0fe0..cf52eb056 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0726.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0726.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0158 import RepositoryRulesetType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRepositoryRulesetCreatedType(TypedDict): - """repository ruleset created event""" +class WebhookRepositoryCreatedType(TypedDict): + """repository created event""" action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookRepositoryRulesetCreatedType",) +__all__ = ("WebhookRepositoryCreatedType",) 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 e7476d944..7b10fc442 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0727.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0727.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0158 import RepositoryRulesetType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRepositoryRulesetDeletedType(TypedDict): - """repository ruleset deleted event""" +class WebhookRepositoryDeletedType(TypedDict): + """repository deleted event""" action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookRepositoryRulesetDeletedType",) +__all__ = ("WebhookRepositoryDeletedType",) 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 4610b82fd..9ea1b292a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0728.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0728.py @@ -9,29 +9,38 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0158 import RepositoryRulesetType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0729 import WebhookRepositoryRulesetEditedPropChangesType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRepositoryRulesetEditedType(TypedDict): - """repository ruleset edited event""" +class WebhookRepositoryDispatchSampleType(TypedDict): + """repository_dispatch event""" - action: Literal["edited"] + action: str + branch: str + client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayloadType, None] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + installation: SimpleInstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType - changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookRepositoryRulesetEditedType",) +class WebhookRepositoryDispatchSamplePropClientPayloadType(TypedDict): + """WebhookRepositoryDispatchSamplePropClientPayload + + The `client_payload` that was specified in the `POST + /repos/{owner}/{repo}/dispatches` request body. + """ + + +__all__ = ( + "WebhookRepositoryDispatchSampleType", + "WebhookRepositoryDispatchSamplePropClientPayloadType", +) 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 e1e29e013..2d55020e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0729.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0729.py @@ -9,37 +9,66 @@ from __future__ import annotations +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0732 import WebhookRepositoryRulesetEditedPropChangesPropRulesType -from .group_0730 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChanges""" +class WebhookRepositoryEditedType(TypedDict): + """repository edited event""" - name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] - enforcement: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropEnforcementType - ] - conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] - rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] + action: Literal["edited"] + changes: WebhookRepositoryEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropNameType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropName""" +class WebhookRepositoryEditedPropChangesType(TypedDict): + """WebhookRepositoryEditedPropChanges""" - from_: NotRequired[str] + default_branch: NotRequired[WebhookRepositoryEditedPropChangesPropDefaultBranchType] + description: NotRequired[WebhookRepositoryEditedPropChangesPropDescriptionType] + homepage: NotRequired[WebhookRepositoryEditedPropChangesPropHomepageType] + topics: NotRequired[WebhookRepositoryEditedPropChangesPropTopicsType] -class WebhookRepositoryRulesetEditedPropChangesPropEnforcementType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" +class WebhookRepositoryEditedPropChangesPropDefaultBranchType(TypedDict): + """WebhookRepositoryEditedPropChangesPropDefaultBranch""" - from_: NotRequired[str] + 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__ = ( - "WebhookRepositoryRulesetEditedPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropNameType", - "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", + "WebhookRepositoryEditedType", + "WebhookRepositoryEditedPropChangesType", + "WebhookRepositoryEditedPropChangesPropDefaultBranchType", + "WebhookRepositoryEditedPropChangesPropDescriptionType", + "WebhookRepositoryEditedPropChangesPropHomepageType", + "WebhookRepositoryEditedPropChangesPropTopicsType", ) 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 29e504c41..17d38aacf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0730.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0730.py @@ -9,25 +9,25 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0121 import RepositoryRulesetConditionsType -from .group_0731 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, -) +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" +class WebhookRepositoryImportType(TypedDict): + """repository_import event""" - added: NotRequired[List[RepositoryRulesetConditionsType]] - deleted: NotRequired[List[RepositoryRulesetConditionsType]] - updated: NotRequired[ - List[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType - ] - ] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + status: Literal["success", "cancelled", "failure"] -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) +__all__ = ("WebhookRepositoryImportType",) 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 249991739..ec5e4e356 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0731.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0731.py @@ -9,89 +9,25 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0121 import RepositoryRulesetConditionsType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" +class WebhookRepositoryPrivatizedType(TypedDict): + """repository privatized event""" - condition: NotRequired[RepositoryRulesetConditionsType] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType - ] + action: Literal["privatized"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ - - condition_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType - ] - target: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType - ] - include: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType - ] - exclude: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType - ] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropConditionType - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropTarget - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropInclude - """ - - from_: NotRequired[List[str]] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropExclude - """ - - from_: NotRequired[List[str]] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", -) +__all__ = ("WebhookRepositoryPrivatizedType",) 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 749423ae5..edbabda91 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0732.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0732.py @@ -9,96 +9,25 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0133 import RepositoryRuleUpdateType -from .group_0157 import RepositoryRuleOneof17Type -from .group_0153 import RepositoryRuleWorkflowsType -from .group_0138 import RepositoryRulePullRequestType -from .group_0155 import RepositoryRuleCodeScanningType -from .group_0150 import RepositoryRuleTagNamePatternType -from .group_0148 import RepositoryRuleBranchNamePatternType -from .group_0136 import RepositoryRuleRequiredDeploymentsType -from .group_0140 import RepositoryRuleRequiredStatusChecksType -from .group_0142 import RepositoryRuleCommitMessagePatternType -from .group_0146 import RepositoryRuleCommitterEmailPatternType -from .group_0144 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0135 import ( - RepositoryRuleOneof15Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0733 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, -) -from .group_0132 import ( - RepositoryRuleOneof14Type, - RepositoryRuleOneof16Type, - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" +class WebhookRepositoryPublicizedType(TypedDict): + """repository publicized event""" - added: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - deleted: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - updated: NotRequired[ - List[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] - ] + action: Literal["publicized"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) +__all__ = ("WebhookRepositoryPublicizedType",) 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 d4b61227a..5703f6d24 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0733.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0733.py @@ -9,117 +9,49 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0133 import RepositoryRuleUpdateType -from .group_0157 import RepositoryRuleOneof17Type -from .group_0153 import RepositoryRuleWorkflowsType -from .group_0138 import RepositoryRulePullRequestType -from .group_0155 import RepositoryRuleCodeScanningType -from .group_0150 import RepositoryRuleTagNamePatternType -from .group_0148 import RepositoryRuleBranchNamePatternType -from .group_0136 import RepositoryRuleRequiredDeploymentsType -from .group_0140 import RepositoryRuleRequiredStatusChecksType -from .group_0142 import RepositoryRuleCommitMessagePatternType -from .group_0146 import RepositoryRuleCommitterEmailPatternType -from .group_0144 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0135 import ( - RepositoryRuleOneof15Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0132 import ( - RepositoryRuleOneof14Type, - RepositoryRuleOneof16Type, - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType + + +class WebhookRepositoryRenamedType(TypedDict): + """repository renamed event""" + + action: Literal["renamed"] + changes: WebhookRepositoryRenamedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookRepositoryRenamedPropChangesType(TypedDict): + """WebhookRepositoryRenamedPropChanges""" + + repository: WebhookRepositoryRenamedPropChangesPropRepositoryType + + +class WebhookRepositoryRenamedPropChangesPropRepositoryType(TypedDict): + """WebhookRepositoryRenamedPropChangesPropRepository""" + + name: WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType + +class WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType(TypedDict): + """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - - rule: NotRequired[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType - ] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - - configuration: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType - ] - rule_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType - ] - pattern: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType - ] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ - - from_: NotRequired[str] + from_: str __all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", + "WebhookRepositoryRenamedType", + "WebhookRepositoryRenamedPropChangesType", + "WebhookRepositoryRenamedPropChangesPropRepositoryType", + "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", ) 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 f8d9f1c13..1cdfa32cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0734.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0734.py @@ -9,104 +9,27 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0162 import RepositoryRulesetType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRepositoryTransferredType(TypedDict): - """repository transferred event""" +class WebhookRepositoryRulesetCreatedType(TypedDict): + """repository ruleset created event""" - action: Literal["transferred"] - changes: WebhookRepositoryTransferredPropChangesType + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType sender: SimpleUserWebhooksType -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] - - -__all__ = ( - "WebhookRepositoryTransferredType", - "WebhookRepositoryTransferredPropChangesType", - "WebhookRepositoryTransferredPropChangesPropOwnerType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", -) +__all__ = ("WebhookRepositoryRulesetCreatedType",) 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 7ad2d5036..4b82e8fb4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0735.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0735.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0162 import RepositoryRulesetType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookRepositoryUnarchivedType(TypedDict): - """repository unarchived event""" +class WebhookRepositoryRulesetDeletedType(TypedDict): + """repository ruleset deleted event""" - action: Literal["unarchived"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType sender: SimpleUserWebhooksType -__all__ = ("WebhookRepositoryUnarchivedType",) +__all__ = ("WebhookRepositoryRulesetDeletedType",) 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 60a1ce068..3eef439f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0736.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0736.py @@ -12,24 +12,26 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0449 import WebhooksAlertType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0162 import RepositoryRulesetType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0737 import WebhookRepositoryRulesetEditedPropChangesType -class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): - """repository_vulnerability_alert create event""" +class WebhookRepositoryRulesetEditedType(TypedDict): + """repository ruleset edited event""" - action: Literal["create"] - alert: WebhooksAlertType + action: Literal["edited"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType + changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] sender: SimpleUserWebhooksType -__all__ = ("WebhookRepositoryVulnerabilityAlertCreateType",) +__all__ = ("WebhookRepositoryRulesetEditedType",) 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 65c9eb701..cfe593fa2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0737.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0737.py @@ -9,85 +9,37 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0740 import WebhookRepositoryRulesetEditedPropChangesPropRulesType +from .group_0738 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType -class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): - """repository_vulnerability_alert dismiss event""" +class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["dismiss"] - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] + enforcement: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropEnforcementType + ] + conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] + rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] -class WebhookRepositoryVulnerabilityAlertDismissPropAlertType(TypedDict): - """Repository Vulnerability Alert Alert +class WebhookRepositoryRulesetEditedPropChangesPropNameType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropName""" - The security alert of the vulnerable dependency. - """ + from_: NotRequired[str] - 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] + +class WebhookRepositoryRulesetEditedPropChangesPropEnforcementType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" + + from_: NotRequired[str] __all__ = ( - "WebhookRepositoryVulnerabilityAlertDismissType", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", + "WebhookRepositoryRulesetEditedPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropNameType", + "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", ) 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 0ddf3234a..5a716d241 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0738.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0738.py @@ -9,27 +9,25 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0449 import WebhooksAlertType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0125 import RepositoryRulesetConditionsType +from .group_0739 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, +) -class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): - """repository_vulnerability_alert reopen event""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - action: Literal["reopen"] - alert: WebhooksAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + added: NotRequired[List[RepositoryRulesetConditionsType]] + deleted: NotRequired[List[RepositoryRulesetConditionsType]] + updated: NotRequired[ + List[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType + ] + ] -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenType",) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) 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 3f3a5b624..e95474c34 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0739.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0739.py @@ -9,86 +9,89 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0125 import RepositoryRulesetConditionsType -class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): - """repository_vulnerability_alert resolve event""" - - action: Literal["resolve"] - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" + condition: NotRequired[RepositoryRulesetConditionsType] + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType + ] -class WebhookRepositoryVulnerabilityAlertResolvePropAlertType(TypedDict): - """Repository Vulnerability Alert Alert - The security alert of the vulnerable dependency. +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + es """ - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ - Union[ - WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, None - ] + condition_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType + ] + target: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType ] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["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] + include: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType + ] + exclude: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType + ] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropConditionType + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropTarget + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropInclude + """ + + from_: NotRequired[List[str]] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropExclude + """ + + from_: NotRequired[List[str]] __all__ = ( - "WebhookRepositoryVulnerabilityAlertResolveType", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", ) 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 15d573b99..870dec87a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0740.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0740.py @@ -9,27 +9,96 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0450 import SecretScanningAlertWebhookType +from .group_0137 import RepositoryRuleUpdateType +from .group_0161 import RepositoryRuleOneof17Type +from .group_0157 import RepositoryRuleWorkflowsType +from .group_0142 import RepositoryRulePullRequestType +from .group_0159 import RepositoryRuleCodeScanningType +from .group_0154 import RepositoryRuleTagNamePatternType +from .group_0152 import RepositoryRuleBranchNamePatternType +from .group_0140 import RepositoryRuleRequiredDeploymentsType +from .group_0144 import RepositoryRuleRequiredStatusChecksType +from .group_0146 import RepositoryRuleCommitMessagePatternType +from .group_0150 import RepositoryRuleCommitterEmailPatternType +from .group_0148 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0139 import ( + RepositoryRuleOneof15Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0741 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, +) +from .group_0136 import ( + RepositoryRuleOneof14Type, + RepositoryRuleOneof16Type, + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class WebhookSecretScanningAlertCreatedType(TypedDict): - """secret_scanning_alert created event""" +class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" - action: Literal["created"] - alert: SecretScanningAlertWebhookType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + added: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] + deleted: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] + updated: NotRequired[ + List[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] + ] -__all__ = ("WebhookSecretScanningAlertCreatedType",) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) 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 590fef685..f925ede95 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0741.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0741.py @@ -9,228 +9,117 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0450 import SecretScanningAlertWebhookType - - -class WebhookSecretScanningAlertLocationCreatedType(TypedDict): - """Secret Scanning Alert Location Created Event""" - - action: Literal["created"] - alert: SecretScanningAlertWebhookType - installation: NotRequired[SimpleInstallationType] - location: SecretScanningLocationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class SecretScanningLocationType(TypedDict): - """SecretScanningLocation""" - - type: NotRequired[ - Literal[ - "commit", - "wiki_commit", - "issue_title", - "issue_body", - "issue_comment", - "discussion_title", - "discussion_body", - "discussion_comment", - "pull_request_title", - "pull_request_body", - "pull_request_comment", - "pull_request_review", - "pull_request_review_comment", - ] - ] - details: NotRequired[ - Union[ - SecretScanningLocationCommitType, - SecretScanningLocationWikiCommitType, - SecretScanningLocationIssueTitleType, - SecretScanningLocationIssueBodyType, - SecretScanningLocationIssueCommentType, - SecretScanningLocationDiscussionTitleType, - SecretScanningLocationDiscussionBodyType, - SecretScanningLocationDiscussionCommentType, - SecretScanningLocationPullRequestTitleType, - SecretScanningLocationPullRequestBodyType, - SecretScanningLocationPullRequestCommentType, - SecretScanningLocationPullRequestReviewType, - SecretScanningLocationPullRequestReviewCommentType, - ] - ] - - -class SecretScanningLocationCommitType(TypedDict): - """SecretScanningLocationCommit - - Represents a 'commit' secret scanning location type. This location type shows - that a secret was detected inside a commit to a repository. - """ - - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - blob_url: str - commit_sha: str - commit_url: str - - -class SecretScanningLocationWikiCommitType(TypedDict): - """SecretScanningLocationWikiCommit - - Represents a 'wiki_commit' secret scanning location type. This location type - shows that a secret was detected inside a commit to a repository wiki. - """ - - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - page_url: str - commit_sha: str - commit_url: str - - -class SecretScanningLocationIssueTitleType(TypedDict): - """SecretScanningLocationIssueTitle - - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. - """ - - issue_title_url: str - - -class SecretScanningLocationIssueBodyType(TypedDict): - """SecretScanningLocationIssueBody - - Represents an 'issue_body' secret scanning location type. This location type - shows that a secret was detected in the body of an issue. - """ - - issue_body_url: str - - -class SecretScanningLocationIssueCommentType(TypedDict): - """SecretScanningLocationIssueComment - - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. - """ - - issue_comment_url: str - - -class SecretScanningLocationDiscussionTitleType(TypedDict): - """SecretScanningLocationDiscussionTitle - - Represents a 'discussion_title' secret scanning location type. This location - type shows that a secret was detected in the title of a discussion. - """ - - discussion_title_url: str - - -class SecretScanningLocationDiscussionBodyType(TypedDict): - """SecretScanningLocationDiscussionBody - - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. - """ - - discussion_body_url: str - - -class SecretScanningLocationDiscussionCommentType(TypedDict): - """SecretScanningLocationDiscussionComment - - Represents a 'discussion_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a discussion. - """ - - discussion_comment_url: str - - -class SecretScanningLocationPullRequestTitleType(TypedDict): - """SecretScanningLocationPullRequestTitle - - Represents a 'pull_request_title' secret scanning location type. This location - type shows that a secret was detected in the title of a pull request. - """ +from .group_0137 import RepositoryRuleUpdateType +from .group_0161 import RepositoryRuleOneof17Type +from .group_0157 import RepositoryRuleWorkflowsType +from .group_0142 import RepositoryRulePullRequestType +from .group_0159 import RepositoryRuleCodeScanningType +from .group_0154 import RepositoryRuleTagNamePatternType +from .group_0152 import RepositoryRuleBranchNamePatternType +from .group_0140 import RepositoryRuleRequiredDeploymentsType +from .group_0144 import RepositoryRuleRequiredStatusChecksType +from .group_0146 import RepositoryRuleCommitMessagePatternType +from .group_0150 import RepositoryRuleCommitterEmailPatternType +from .group_0148 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0139 import ( + RepositoryRuleOneof15Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0136 import ( + RepositoryRuleOneof14Type, + RepositoryRuleOneof16Type, + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) - pull_request_title_url: str +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" -class SecretScanningLocationPullRequestBodyType(TypedDict): - """SecretScanningLocationPullRequestBody + rule: NotRequired[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType + ] - 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 WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" + configuration: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType + ] + rule_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType + ] + pattern: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType + ] -class SecretScanningLocationPullRequestCommentType(TypedDict): - """SecretScanningLocationPullRequestComment - Represents a 'pull_request_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a pull request. +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pConfiguration """ - pull_request_comment_url: str - + from_: NotRequired[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. +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pRuleType """ - pull_request_review_url: str - + from_: NotRequired[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. +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pPattern """ - pull_request_review_comment_url: str + from_: NotRequired[str] __all__ = ( - "WebhookSecretScanningAlertLocationCreatedType", - "SecretScanningLocationType", - "SecretScanningLocationCommitType", - "SecretScanningLocationWikiCommitType", - "SecretScanningLocationIssueTitleType", - "SecretScanningLocationIssueBodyType", - "SecretScanningLocationIssueCommentType", - "SecretScanningLocationDiscussionTitleType", - "SecretScanningLocationDiscussionBodyType", - "SecretScanningLocationDiscussionCommentType", - "SecretScanningLocationPullRequestTitleType", - "SecretScanningLocationPullRequestBodyType", - "SecretScanningLocationPullRequestCommentType", - "SecretScanningLocationPullRequestReviewType", - "SecretScanningLocationPullRequestReviewCommentType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", ) 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 4c3c84e39..2866f9495 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0742.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0742.py @@ -9,13 +9,104 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): - """Secret Scanning Alert Location Created Event""" - payload: str +class WebhookRepositoryTransferredType(TypedDict): + """repository transferred event""" + action: Literal["transferred"] + changes: WebhookRepositoryTransferredPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) + +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] + + +__all__ = ( + "WebhookRepositoryTransferredType", + "WebhookRepositoryTransferredPropChangesType", + "WebhookRepositoryTransferredPropChangesPropOwnerType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", +) 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 657138305..96178605b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0743.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0743.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0450 import SecretScanningAlertWebhookType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookSecretScanningAlertReopenedType(TypedDict): - """secret_scanning_alert reopened event""" +class WebhookRepositoryUnarchivedType(TypedDict): + """repository unarchived event""" - action: Literal["reopened"] - alert: SecretScanningAlertWebhookType + action: Literal["unarchived"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookSecretScanningAlertReopenedType",) +__all__ = ("WebhookRepositoryUnarchivedType",) 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 dbfcdf579..56566356c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0744.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0744.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0450 import SecretScanningAlertWebhookType +from .group_0454 import WebhooksAlertType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookSecretScanningAlertResolvedType(TypedDict): - """secret_scanning_alert resolved event""" +class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): + """repository_vulnerability_alert create event""" - action: Literal["resolved"] - alert: SecretScanningAlertWebhookType + action: Literal["create"] + alert: WebhooksAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookSecretScanningAlertResolvedType",) +__all__ = ("WebhookRepositoryVulnerabilityAlertCreateType",) 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 98459ed7a..b1785aa69 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0745.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0745.py @@ -9,27 +9,85 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0450 import SecretScanningAlertWebhookType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookSecretScanningAlertValidatedType(TypedDict): - """secret_scanning_alert validated event""" +class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): + """repository_vulnerability_alert dismiss event""" - action: Literal["validated"] - alert: SecretScanningAlertWebhookType + action: Literal["dismiss"] + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookSecretScanningAlertValidatedType",) +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] + + +__all__ = ( + "WebhookRepositoryVulnerabilityAlertDismissType", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", +) 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 18d52478f..5c8a2f7ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0746.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0746.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0451 import WebhooksSecurityAdvisoryType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0454 import WebhooksAlertType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookSecurityAdvisoryPublishedType(TypedDict): - """security_advisory published event""" +class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): + """repository_vulnerability_alert reopen event""" - action: Literal["published"] + action: Literal["reopen"] + alert: WebhooksAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhooksSecurityAdvisoryType - sender: NotRequired[SimpleUserWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookSecurityAdvisoryPublishedType",) +__all__ = ("WebhookRepositoryVulnerabilityAlertReopenType",) 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 ac1253f50..5d5f9d44f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0747.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0747.py @@ -9,27 +9,86 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0451 import WebhooksSecurityAdvisoryType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookSecurityAdvisoryUpdatedType(TypedDict): - """security_advisory updated event""" +class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): + """repository_vulnerability_alert resolve event""" - action: Literal["updated"] + action: Literal["resolve"] + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhooksSecurityAdvisoryType - sender: NotRequired[SimpleUserWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookSecurityAdvisoryUpdatedType",) +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__ = ( + "WebhookRepositoryVulnerabilityAlertResolveType", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", +) 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 ef03876a7..7301865d5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0748.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0748.py @@ -9,129 +9,27 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0455 import SecretScanningAlertWebhookType -class WebhookSecurityAdvisoryWithdrawnType(TypedDict): - """security_advisory withdrawn event""" +class WebhookSecretScanningAlertCreatedType(TypedDict): + """secret_scanning_alert created event""" - action: Literal["withdrawn"] + action: Literal["created"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType + repository: RepositoryWebhooksType sender: NotRequired[SimpleUserWebhooksType] -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory - - The details of the security advisory, including summary, description, and - severity. - """ - - cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType - 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__ = ( - "WebhookSecurityAdvisoryWithdrawnType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", -) +__all__ = ("WebhookSecretScanningAlertCreatedType",) 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 4ddddabdb..8f6c136d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0749.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0749.py @@ -9,25 +9,228 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0119 import FullRepositoryType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType -from .group_0750 import WebhookSecurityAndAnalysisPropChangesType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0455 import SecretScanningAlertWebhookType -class WebhookSecurityAndAnalysisType(TypedDict): - """security_and_analysis event""" +class WebhookSecretScanningAlertLocationCreatedType(TypedDict): + """Secret Scanning Alert Location Created Event""" - changes: WebhookSecurityAndAnalysisPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["created"] + alert: SecretScanningAlertWebhookType installation: NotRequired[SimpleInstallationType] + location: SecretScanningLocationType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: FullRepositoryType - sender: NotRequired[SimpleUserWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookSecurityAndAnalysisType",) +class SecretScanningLocationType(TypedDict): + """SecretScanningLocation""" + + type: NotRequired[ + Literal[ + "commit", + "wiki_commit", + "issue_title", + "issue_body", + "issue_comment", + "discussion_title", + "discussion_body", + "discussion_comment", + "pull_request_title", + "pull_request_body", + "pull_request_comment", + "pull_request_review", + "pull_request_review_comment", + ] + ] + details: NotRequired[ + Union[ + SecretScanningLocationCommitType, + SecretScanningLocationWikiCommitType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationIssueCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationPullRequestTitleType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestCommentType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationPullRequestReviewCommentType, + ] + ] + + +class SecretScanningLocationCommitType(TypedDict): + """SecretScanningLocationCommit + + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. + """ + + path: str + start_line: float + end_line: float + start_column: float + end_column: float + blob_sha: str + blob_url: str + commit_sha: str + commit_url: str + + +class SecretScanningLocationWikiCommitType(TypedDict): + """SecretScanningLocationWikiCommit + + Represents a 'wiki_commit' secret scanning location type. This location type + shows that a secret was detected inside a commit to a repository wiki. + """ + + path: str + start_line: float + end_line: float + start_column: float + end_column: float + blob_sha: str + page_url: str + commit_sha: str + commit_url: str + + +class SecretScanningLocationIssueTitleType(TypedDict): + """SecretScanningLocationIssueTitle + + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. + """ + + issue_title_url: str + + +class SecretScanningLocationIssueBodyType(TypedDict): + """SecretScanningLocationIssueBody + + Represents an 'issue_body' secret scanning location type. This location type + shows that a secret was detected in the body of an issue. + """ + + issue_body_url: str + + +class SecretScanningLocationIssueCommentType(TypedDict): + """SecretScanningLocationIssueComment + + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. + """ + + issue_comment_url: str + + +class SecretScanningLocationDiscussionTitleType(TypedDict): + """SecretScanningLocationDiscussionTitle + + Represents a 'discussion_title' secret scanning location type. This location + type shows that a secret was detected in the title of a discussion. + """ + + discussion_title_url: str + + +class SecretScanningLocationDiscussionBodyType(TypedDict): + """SecretScanningLocationDiscussionBody + + Represents a 'discussion_body' secret scanning location type. This location type + shows that a secret was detected in the body of a discussion. + """ + + discussion_body_url: str + + +class SecretScanningLocationDiscussionCommentType(TypedDict): + """SecretScanningLocationDiscussionComment + + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. + """ + + discussion_comment_url: str + + +class SecretScanningLocationPullRequestTitleType(TypedDict): + """SecretScanningLocationPullRequestTitle + + Represents a 'pull_request_title' secret scanning location type. This location + type shows that a secret was detected in the title of a pull request. + """ + + pull_request_title_url: str + + +class SecretScanningLocationPullRequestBodyType(TypedDict): + """SecretScanningLocationPullRequestBody + + Represents a 'pull_request_body' secret scanning location type. This location + type shows that a secret was detected in the body of a pull request. + """ + + pull_request_body_url: str + + +class SecretScanningLocationPullRequestCommentType(TypedDict): + """SecretScanningLocationPullRequestComment + + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ + + pull_request_comment_url: str + + +class SecretScanningLocationPullRequestReviewType(TypedDict): + """SecretScanningLocationPullRequestReview + + Represents a 'pull_request_review' secret scanning location type. This location + type shows that a secret was detected in a review on a pull request. + """ + + pull_request_review_url: str + + +class SecretScanningLocationPullRequestReviewCommentType(TypedDict): + """SecretScanningLocationPullRequestReviewComment + + Represents a 'pull_request_review_comment' secret scanning location type. This + location type shows that a secret was detected in a review comment on a pull + request. + """ + + pull_request_review_comment_url: str + + +__all__ = ( + "WebhookSecretScanningAlertLocationCreatedType", + "SecretScanningLocationType", + "SecretScanningLocationCommitType", + "SecretScanningLocationWikiCommitType", + "SecretScanningLocationIssueTitleType", + "SecretScanningLocationIssueBodyType", + "SecretScanningLocationIssueCommentType", + "SecretScanningLocationDiscussionTitleType", + "SecretScanningLocationDiscussionBodyType", + "SecretScanningLocationDiscussionCommentType", + "SecretScanningLocationPullRequestTitleType", + "SecretScanningLocationPullRequestBodyType", + "SecretScanningLocationPullRequestCommentType", + "SecretScanningLocationPullRequestReviewType", + "SecretScanningLocationPullRequestReviewCommentType", +) 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 10f7548ca..4c3c84e39 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0750.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0750.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0751 import WebhookSecurityAndAnalysisPropChangesPropFromType +class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): + """Secret Scanning Alert Location Created Event""" -class WebhookSecurityAndAnalysisPropChangesType(TypedDict): - """WebhookSecurityAndAnalysisPropChanges""" + payload: str - from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] - -__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) 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 0ee009e30..e768928e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0751.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0751.py @@ -9,16 +9,27 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0078 import SecurityAndAnalysisType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0455 import SecretScanningAlertWebhookType -class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" +class WebhookSecretScanningAlertReopenedType(TypedDict): + """secret_scanning_alert reopened event""" - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] + action: Literal["reopened"] + alert: SecretScanningAlertWebhookType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) +__all__ = ("WebhookSecretScanningAlertReopenedType",) 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 3c48922dd..a95808b4a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0752.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0752.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0452 import WebhooksSponsorshipType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0455 import SecretScanningAlertWebhookType -class WebhookSponsorshipCancelledType(TypedDict): - """sponsorship cancelled event""" +class WebhookSecretScanningAlertResolvedType(TypedDict): + """secret_scanning_alert resolved event""" - action: Literal["cancelled"] + action: Literal["resolved"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhooksSponsorshipType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookSponsorshipCancelledType",) +__all__ = ("WebhookSecretScanningAlertResolvedType",) 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 f0bc9e91d..875f5c667 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0753.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0753.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0452 import WebhooksSponsorshipType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0455 import SecretScanningAlertWebhookType -class WebhookSponsorshipCreatedType(TypedDict): - """sponsorship created event""" +class WebhookSecretScanningAlertValidatedType(TypedDict): + """secret_scanning_alert validated event""" - action: Literal["created"] + action: Literal["validated"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhooksSponsorshipType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookSponsorshipCreatedType",) +__all__ = ("WebhookSecretScanningAlertValidatedType",) 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 e3a8630be..6eed96b63 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0754.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0754.py @@ -12,41 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0452 import WebhooksSponsorshipType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0456 import WebhooksSecurityAdvisoryType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookSponsorshipEditedType(TypedDict): - """sponsorship edited event""" +class WebhookSecurityAdvisoryPublishedType(TypedDict): + """security_advisory published event""" - action: Literal["edited"] - changes: WebhookSponsorshipEditedPropChangesType + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhooksSponsorshipType + security_advisory: WebhooksSecurityAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookSponsorshipEditedPropChangesType(TypedDict): - """WebhookSponsorshipEditedPropChanges""" - - privacy_level: NotRequired[WebhookSponsorshipEditedPropChangesPropPrivacyLevelType] - - -class WebhookSponsorshipEditedPropChangesPropPrivacyLevelType(TypedDict): - """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - - from_: str - - -__all__ = ( - "WebhookSponsorshipEditedType", - "WebhookSponsorshipEditedPropChangesType", - "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", -) +__all__ = ("WebhookSecurityAdvisoryPublishedType",) 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 ffc53c9f1..a64a4a323 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0755.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0755.py @@ -12,25 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0452 import WebhooksSponsorshipType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0456 import WebhooksSecurityAdvisoryType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookSponsorshipPendingCancellationType(TypedDict): - """sponsorship pending_cancellation event""" +class WebhookSecurityAdvisoryUpdatedType(TypedDict): + """security_advisory updated event""" - action: Literal["pending_cancellation"] - effective_date: NotRequired[str] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhooksSponsorshipType + security_advisory: WebhooksSecurityAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookSponsorshipPendingCancellationType",) +__all__ = ("WebhookSecurityAdvisoryUpdatedType",) 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 bfe2af2e8..4a2ddab10 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0756.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0756.py @@ -9,30 +9,129 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0453 import WebhooksChanges8Type -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0452 import WebhooksSponsorshipType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookSponsorshipPendingTierChangeType(TypedDict): - """sponsorship pending_tier_change event""" +class WebhookSecurityAdvisoryWithdrawnType(TypedDict): + """security_advisory withdrawn event""" - action: Literal["pending_tier_change"] - changes: WebhooksChanges8Type - effective_date: NotRequired[str] + action: Literal["withdrawn"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhooksSponsorshipType + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookSponsorshipPendingTierChangeType",) +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType + 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__ = ( + "WebhookSecurityAdvisoryWithdrawnType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", +) 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 367079882..022ff1faa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0757.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0757.py @@ -9,29 +9,25 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0453 import WebhooksChanges8Type -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0452 import WebhooksSponsorshipType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0123 import FullRepositoryType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType +from .group_0758 import WebhookSecurityAndAnalysisPropChangesType -class WebhookSponsorshipTierChangedType(TypedDict): - """sponsorship tier_changed event""" +class WebhookSecurityAndAnalysisType(TypedDict): + """security_and_analysis event""" - action: Literal["tier_changed"] - changes: WebhooksChanges8Type + changes: WebhookSecurityAndAnalysisPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhooksSponsorshipType + repository: FullRepositoryType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookSponsorshipTierChangedType",) +__all__ = ("WebhookSecurityAndAnalysisType",) 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 16cbb3901..e4b8694f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0758.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0758.py @@ -9,26 +9,15 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0759 import WebhookSecurityAndAnalysisPropChangesPropFromType -class WebhookStarCreatedType(TypedDict): - """star created event""" +class WebhookSecurityAndAnalysisPropChangesType(TypedDict): + """WebhookSecurityAndAnalysisPropChanges""" - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - starred_at: Union[str, None] + from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] -__all__ = ("WebhookStarCreatedType",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) 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 787d9eaca..e933d1a65 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0759.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0759.py @@ -9,26 +9,16 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0081 import SecurityAndAnalysisType -class WebhookStarDeletedType(TypedDict): - """star deleted event""" +class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - starred_at: None + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] -__all__ = ("WebhookStarDeletedType",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) 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 9750078b9..f7c14923f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0760.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0760.py @@ -9,201 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0457 import WebhooksSponsorshipType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookStatusType(TypedDict): - """status event""" +class WebhookSponsorshipCancelledType(TypedDict): + """sponsorship cancelled event""" - avatar_url: NotRequired[Union[str, None]] - branches: List[WebhookStatusPropBranchesItemsType] - commit: WebhookStatusPropCommitType - context: str - created_at: str - description: Union[str, None] + action: Literal["cancelled"] enterprise: NotRequired[EnterpriseWebhooksType] - id: int installation: NotRequired[SimpleInstallationType] - name: str organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType - sha: str - state: Literal["pending", "success", "failure", "error"] - target_url: Union[str, None] - updated_at: str + sponsorship: WebhooksSponsorshipType -class WebhookStatusPropBranchesItemsType(TypedDict): - """WebhookStatusPropBranchesItems""" - - commit: WebhookStatusPropBranchesItemsPropCommitType - name: str - protected: bool - - -class WebhookStatusPropBranchesItemsPropCommitType(TypedDict): - """WebhookStatusPropBranchesItemsPropCommit""" - - sha: Union[str, None] - url: Union[str, None] - - -class WebhookStatusPropCommitType(TypedDict): - """WebhookStatusPropCommit""" - - author: Union[WebhookStatusPropCommitPropAuthorType, None] - comments_url: str - commit: WebhookStatusPropCommitPropCommitType - committer: Union[WebhookStatusPropCommitPropCommitterType, None] - html_url: str - node_id: str - parents: List[WebhookStatusPropCommitPropParentsItemsType] - sha: str - url: str - - -class WebhookStatusPropCommitPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitterType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookStatusPropCommitPropParentsItemsType(TypedDict): - """WebhookStatusPropCommitPropParentsItems""" - - html_url: str - sha: str - url: str - - -class WebhookStatusPropCommitPropCommitType(TypedDict): - """WebhookStatusPropCommitPropCommit""" - - author: WebhookStatusPropCommitPropCommitPropAuthorType - comment_count: int - committer: WebhookStatusPropCommitPropCommitPropCommitterType - message: str - tree: WebhookStatusPropCommitPropCommitPropTreeType - url: str - verification: WebhookStatusPropCommitPropCommitPropVerificationType - - -class WebhookStatusPropCommitPropCommitPropAuthorType(TypedDict): - """WebhookStatusPropCommitPropCommitPropAuthor""" - - date: datetime - email: str - name: str - username: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitPropCommitterType(TypedDict): - """WebhookStatusPropCommitPropCommitPropCommitter""" - - date: datetime - email: str - name: str - username: NotRequired[str] - - -class WebhookStatusPropCommitPropCommitPropTreeType(TypedDict): - """WebhookStatusPropCommitPropCommitPropTree""" - - sha: str - url: str - - -class WebhookStatusPropCommitPropCommitPropVerificationType(TypedDict): - """WebhookStatusPropCommitPropCommitPropVerification""" - - payload: Union[str, None] - reason: Literal[ - "expired_key", - "not_signing_key", - "gpgverify_error", - "gpgverify_unavailable", - "unsigned", - "unknown_signature_type", - "no_user", - "unverified_email", - "bad_email", - "unknown_key", - "malformed_signature", - "invalid", - "valid", - "bad_cert", - "ocsp_pending", - ] - signature: Union[str, None] - verified: bool - - -__all__ = ( - "WebhookStatusType", - "WebhookStatusPropBranchesItemsType", - "WebhookStatusPropBranchesItemsPropCommitType", - "WebhookStatusPropCommitType", - "WebhookStatusPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitterType", - "WebhookStatusPropCommitPropParentsItemsType", - "WebhookStatusPropCommitPropCommitType", - "WebhookStatusPropCommitPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitPropCommitterType", - "WebhookStatusPropCommitPropCommitPropTreeType", - "WebhookStatusPropCommitPropCommitPropVerificationType", -) +__all__ = ("WebhookSponsorshipCancelledType",) 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 aab36d9f8..8f513e742 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0761.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0761.py @@ -9,21 +9,27 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0457 import WebhooksSponsorshipType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookSponsorshipCreatedType(TypedDict): + """sponsorship created event""" - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) +__all__ = ("WebhookSponsorshipCreatedType",) 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 19cbee4e2..7491221f6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0762.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0762.py @@ -9,15 +9,44 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0457 import WebhooksSponsorshipType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" - date: str - email: NotRequired[str] - name: NotRequired[str] +class WebhookSponsorshipEditedType(TypedDict): + """sponsorship edited event""" + action: Literal["edited"] + changes: WebhookSponsorshipEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) + +class WebhookSponsorshipEditedPropChangesType(TypedDict): + """WebhookSponsorshipEditedPropChanges""" + + privacy_level: NotRequired[WebhookSponsorshipEditedPropChangesPropPrivacyLevelType] + + +class WebhookSponsorshipEditedPropChangesPropPrivacyLevelType(TypedDict): + """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" + + from_: str + + +__all__ = ( + "WebhookSponsorshipEditedType", + "WebhookSponsorshipEditedPropChangesType", + "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", +) 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 983acb648..fb9b15d33 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0763.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0763.py @@ -9,21 +9,28 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0457 import WebhooksSponsorshipType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookSponsorshipPendingCancellationType(TypedDict): + """sponsorship pending_cancellation event""" - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] + action: Literal["pending_cancellation"] + effective_date: NotRequired[str] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) +__all__ = ("WebhookSponsorshipPendingCancellationType",) 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 6d8f6e0a2..d697636c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0764.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0764.py @@ -9,15 +9,30 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0458 import WebhooksChanges8Type +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0457 import WebhooksSponsorshipType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - date: str - email: NotRequired[str] - name: NotRequired[str] +class WebhookSponsorshipPendingTierChangeType(TypedDict): + """sponsorship pending_tier_change event""" + action: Literal["pending_tier_change"] + changes: WebhooksChanges8Type + effective_date: NotRequired[str] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) + +__all__ = ("WebhookSponsorshipPendingTierChangeType",) 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 9f0fab519..22b53168c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0765.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0765.py @@ -9,25 +9,29 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0454 import WebhooksTeam1Type -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0458 import WebhooksChanges8Type +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0457 import WebhooksSponsorshipType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookTeamAddType(TypedDict): - """team_add event""" +class WebhookSponsorshipTierChangedType(TypedDict): + """sponsorship tier_changed event""" + action: Literal["tier_changed"] + changes: WebhooksChanges8Type enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType - team: WebhooksTeam1Type + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookTeamAddType",) +__all__ = ("WebhookSponsorshipTierChangedType",) 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 455bbeeaf..3e577a986 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0766.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0766.py @@ -9,191 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0454 import WebhooksTeam1Type -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookTeamAddedToRepositoryType(TypedDict): - """team added_to_repository event""" +class WebhookStarCreatedType(TypedDict): + """star created event""" - action: Literal["added_to_repository"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] - sender: NotRequired[SimpleUserWebhooksType] - team: WebhooksTeam1Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + starred_at: Union[str, None] -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 - - -class WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType(TypedDict): - """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] - - -class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -__all__ = ( - "WebhookTeamAddedToRepositoryType", - "WebhookTeamAddedToRepositoryPropRepositoryType", - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", -) +__all__ = ("WebhookStarCreatedType",) 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 59f1f84ca..ee5ebb27f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0767.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0767.py @@ -9,189 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0454 import WebhooksTeam1Type -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookTeamCreatedType(TypedDict): - """team created event""" +class WebhookStarDeletedType(TypedDict): + """star deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamCreatedPropRepositoryType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - team: WebhooksTeam1Type + starred_at: None -class WebhookTeamCreatedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamCreatedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookTeamCreatedPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookTeamCreatedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamCreatedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -__all__ = ( - "WebhookTeamCreatedType", - "WebhookTeamCreatedPropRepositoryType", - "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", - "WebhookTeamCreatedPropRepositoryPropLicenseType", - "WebhookTeamCreatedPropRepositoryPropOwnerType", - "WebhookTeamCreatedPropRepositoryPropPermissionsType", -) +__all__ = ("WebhookStarDeletedType",) 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 5773ec39d..f43f02b07 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0768.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0768.py @@ -13,145 +13,65 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0454 import WebhooksTeam1Type -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookTeamDeletedType(TypedDict): - """team deleted event""" +class WebhookStatusType(TypedDict): + """status event""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamDeletedPropRepositoryType] - sender: NotRequired[SimpleUserWebhooksType] - team: WebhooksTeam1Type - - -class WebhookTeamDeletedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamDeletedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str + avatar_url: NotRequired[Union[str, None]] + branches: List[WebhookStatusPropBranchesItemsType] + commit: WebhookStatusPropCommitType + context: str + created_at: str description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_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 + enterprise: NotRequired[EnterpriseWebhooksType] id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] + installation: NotRequired[SimpleInstallationType] name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + sha: str + state: Literal["pending", "success", "failure", "error"] + target_url: Union[str, None] + updated_at: str -class WebhookTeamDeletedPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookTeamDeletedPropRepositoryPropCustomProperties +class WebhookStatusPropBranchesItemsType(TypedDict): + """WebhookStatusPropBranchesItems""" - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ + commit: WebhookStatusPropBranchesItemsPropCommitType + name: str + protected: bool -class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): - """License""" +class WebhookStatusPropBranchesItemsPropCommitType(TypedDict): + """WebhookStatusPropBranchesItemsPropCommit""" - key: str - name: str - node_id: str - spdx_id: str + sha: Union[str, None] url: Union[str, None] -class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): +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] @@ -163,8 +83,34 @@ class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: 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] @@ -177,21 +123,87 @@ class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): url: NotRequired[str] -class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamDeletedPropRepositoryPropPermissions""" +class WebhookStatusPropCommitPropParentsItemsType(TypedDict): + """WebhookStatusPropCommitPropParentsItems""" + + html_url: str + sha: str + url: str + + +class WebhookStatusPropCommitPropCommitType(TypedDict): + """WebhookStatusPropCommitPropCommit""" - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] + 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 __all__ = ( - "WebhookTeamDeletedType", - "WebhookTeamDeletedPropRepositoryType", - "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", - "WebhookTeamDeletedPropRepositoryPropLicenseType", - "WebhookTeamDeletedPropRepositoryPropOwnerType", - "WebhookTeamDeletedPropRepositoryPropPermissionsType", + "WebhookStatusType", + "WebhookStatusPropBranchesItemsType", + "WebhookStatusPropBranchesItemsPropCommitType", + "WebhookStatusPropCommitType", + "WebhookStatusPropCommitPropAuthorType", + "WebhookStatusPropCommitPropCommitterType", + "WebhookStatusPropCommitPropParentsItemsType", + "WebhookStatusPropCommitPropCommitType", + "WebhookStatusPropCommitPropCommitPropAuthorType", + "WebhookStatusPropCommitPropCommitPropCommitterType", + "WebhookStatusPropCommitPropCommitPropTreeType", + "WebhookStatusPropCommitPropCommitPropVerificationType", ) 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 475b09e5f..aab36d9f8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0769.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0769.py @@ -9,257 +9,21 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0454 import WebhooksTeam1Type -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): + """Committer -class WebhookTeamEditedType(TypedDict): - """team edited event""" - - action: Literal["edited"] - changes: WebhookTeamEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamEditedPropRepositoryType] - sender: SimpleUserWebhooksType - team: WebhooksTeam1Type - - -class WebhookTeamEditedPropRepositoryType(TypedDict): - """Repository - - A git repository + Metaproperties for Git author/committer information. """ - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamEditedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookTeamEditedPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookTeamEditedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str + date: NotRequired[datetime] + email: Union[str, None] name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamEditedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookTeamEditedPropChangesType(TypedDict): - """WebhookTeamEditedPropChanges - - The changes to the team if the action was `edited`. - """ - - description: NotRequired[WebhookTeamEditedPropChangesPropDescriptionType] - name: NotRequired[WebhookTeamEditedPropChangesPropNameType] - privacy: NotRequired[WebhookTeamEditedPropChangesPropPrivacyType] - notification_setting: NotRequired[ - WebhookTeamEditedPropChangesPropNotificationSettingType - ] - repository: NotRequired[WebhookTeamEditedPropChangesPropRepositoryType] - - -class WebhookTeamEditedPropChangesPropDescriptionType(TypedDict): - """WebhookTeamEditedPropChangesPropDescription""" - - from_: str - - -class WebhookTeamEditedPropChangesPropNameType(TypedDict): - """WebhookTeamEditedPropChangesPropName""" - - from_: str - - -class WebhookTeamEditedPropChangesPropPrivacyType(TypedDict): - """WebhookTeamEditedPropChangesPropPrivacy""" - - from_: str - - -class WebhookTeamEditedPropChangesPropNotificationSettingType(TypedDict): - """WebhookTeamEditedPropChangesPropNotificationSetting""" - - from_: str - - -class WebhookTeamEditedPropChangesPropRepositoryType(TypedDict): - """WebhookTeamEditedPropChangesPropRepository""" - - permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" - - from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType - - -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType(TypedDict): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" - - admin: NotRequired[bool] - pull: NotRequired[bool] - push: NotRequired[bool] + username: NotRequired[str] -__all__ = ( - "WebhookTeamEditedType", - "WebhookTeamEditedPropRepositoryType", - "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", - "WebhookTeamEditedPropRepositoryPropLicenseType", - "WebhookTeamEditedPropRepositoryPropOwnerType", - "WebhookTeamEditedPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropChangesType", - "WebhookTeamEditedPropChangesPropDescriptionType", - "WebhookTeamEditedPropChangesPropNameType", - "WebhookTeamEditedPropChangesPropPrivacyType", - "WebhookTeamEditedPropChangesPropNotificationSettingType", - "WebhookTeamEditedPropChangesPropRepositoryType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) 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 6dabf572d..19cbee4e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0770.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0770.py @@ -9,191 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0454 import WebhooksTeam1Type -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" -class WebhookTeamRemovedFromRepositoryType(TypedDict): - """team removed_from_repository event""" - - action: Literal["removed_from_repository"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] - sender: SimpleUserWebhooksType - 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 - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType(TypedDict): - """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 + date: str + email: NotRequired[str] name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] -__all__ = ( - "WebhookTeamRemovedFromRepositoryType", - "WebhookTeamRemovedFromRepositoryPropRepositoryType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) 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 1305fbbdf..983acb648 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0771.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0771.py @@ -9,25 +9,21 @@ from __future__ import annotations -from typing import Literal +from typing import Union +from datetime import datetime from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): + """Committer -class WebhookWatchStartedType(TypedDict): - """watch started event""" + Metaproperties for Git author/committer information. + """ - action: Literal["started"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -__all__ = ("WebhookWatchStartedType",) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) 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 a066688b4..6d8f6e0a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0772.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0772.py @@ -9,34 +9,15 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" -class WebhookWorkflowDispatchType(TypedDict): - """workflow_dispatch event""" + date: str + email: NotRequired[str] + name: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] - inputs: Union[WebhookWorkflowDispatchPropInputsType, None] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow: str - -class WebhookWorkflowDispatchPropInputsType(TypedDict): - """WebhookWorkflowDispatchPropInputs""" - - -__all__ = ( - "WebhookWorkflowDispatchType", - "WebhookWorkflowDispatchPropInputsType", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) 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 c210064a8..9746d5dcd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0773.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0773.py @@ -9,79 +9,25 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0192 import DeploymentType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0459 import WebhooksTeam1Type +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookWorkflowJobCompletedType(TypedDict): - """workflow_job completed event""" +class WebhookTeamAddType(TypedDict): + """team_add event""" - action: Literal["completed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType - deployment: NotRequired[DeploymentType] + team: WebhooksTeam1Type -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__ = ( - "WebhookWorkflowJobCompletedType", - "WebhookWorkflowJobCompletedPropWorkflowJobType", - "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", -) +__all__ = ("WebhookTeamAddType",) 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 8ea8b11cc..1e33cae0f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0774.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0774.py @@ -9,65 +9,191 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired +from .group_0459 import WebhooksTeam1Type +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. +class WebhookTeamAddedToRepositoryType(TypedDict): + """team added_to_repository event""" + + action: Literal["added_to_repository"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] + sender: NotRequired[SimpleUserWebhooksType] + team: WebhooksTeam1Type + + +class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): + """Repository + + A git repository """ - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType ] - created_at: str - head_sha: str + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - labels: List[str] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: str - status: Literal["queued", "in_progress", "completed", "waiting"] - head_branch: Union[str, None] - workflow_name: Union[str, None] - steps: List[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[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 + + +class WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType(TypedDict): + """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 WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDict): - """Workflow Step""" +class WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType(TypedDict): + """License""" - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + key: str name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued"] + node_id: str + spdx_id: str + url: Union[str, None] + + +class 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] + + +class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", + "WebhookTeamAddedToRepositoryType", + "WebhookTeamAddedToRepositoryPropRepositoryType", + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", ) 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 b2190c31c..7660334eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0775.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0775.py @@ -9,57 +9,189 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0459 import WebhooksTeam1Type +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" - check_run_url: NotRequired[str] - completed_at: NotRequired[str] - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", +class WebhookTeamCreatedType(TypedDict): + """team created event""" + + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamCreatedPropRepositoryType] + sender: SimpleUserWebhooksType + team: WebhooksTeam1Type + + +class WebhookTeamCreatedPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamCreatedPropRepositoryPropCustomPropertiesType ] - created_at: NotRequired[str] - head_sha: NotRequired[str] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +class WebhookTeamCreatedPropRepositoryPropCustomPropertiesType(TypedDict): + """WebhookTeamCreatedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[List[Union[str, None]]] + id: int + login: str name: NotRequired[str] node_id: NotRequired[str] - run_attempt: NotRequired[int] - run_id: NotRequired[int] - run_url: NotRequired[str] - runner_group_id: NotRequired[Union[int, None]] - runner_group_name: NotRequired[Union[str, None]] - runner_id: NotRequired[Union[int, None]] - runner_name: NotRequired[Union[str, None]] - started_at: NotRequired[str] - status: NotRequired[str] - head_branch: NotRequired[Union[str, None]] - workflow_name: NotRequired[Union[str, None]] - steps: NotRequired[ - List[ - Union[ - WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None - ] - ] - ] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" +class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamCreatedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", + "WebhookTeamCreatedType", + "WebhookTeamCreatedPropRepositoryType", + "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", + "WebhookTeamCreatedPropRepositoryPropLicenseType", + "WebhookTeamCreatedPropRepositoryPropOwnerType", + "WebhookTeamCreatedPropRepositoryPropPermissionsType", ) 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 bfc8e3826..4f6461342 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0776.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0776.py @@ -9,71 +9,189 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0192 import DeploymentType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0459 import WebhooksTeam1Type +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookWorkflowJobInProgressType(TypedDict): - """workflow_job in_progress event""" +class WebhookTeamDeletedType(TypedDict): + """team deleted event""" - action: Literal["in_progress"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - 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 + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamDeletedPropRepositoryType] + sender: NotRequired[SimpleUserWebhooksType] + team: WebhooksTeam1Type + + +class WebhookTeamDeletedPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamDeletedPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - labels: List[str] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[Union[int, None], None] - runner_group_name: Union[Union[str, None], None] - runner_id: Union[Union[int, None], None] - runner_name: Union[Union[str, None], None] - started_at: str - status: Literal["queued", "in_progress", "completed"] - head_branch: Union[Union[str, None], None] - workflow_name: Union[Union[str, None], None] - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +class WebhookTeamDeletedPropRepositoryPropCustomPropertiesType(TypedDict): + """WebhookTeamDeletedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ -class WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" +class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): + """License""" - completed_at: Union[Union[str, None], None] - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] + key: str name: str - number: int - started_at: Union[Union[str, None], None] - status: Literal["in_progress", "completed", "queued", "pending"] + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamDeletedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobInProgressType", - "WebhookWorkflowJobInProgressPropWorkflowJobType", - "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", + "WebhookTeamDeletedType", + "WebhookTeamDeletedPropRepositoryType", + "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", + "WebhookTeamDeletedPropRepositoryPropLicenseType", + "WebhookTeamDeletedPropRepositoryPropOwnerType", + "WebhookTeamDeletedPropRepositoryPropPermissionsType", ) 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 342fee780..078b0ff22 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0777.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0777.py @@ -9,54 +9,257 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired +from .group_0459 import WebhooksTeam1Type +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type(TypedDict): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. +class WebhookTeamEditedType(TypedDict): + """team edited event""" + + action: Literal["edited"] + changes: WebhookTeamEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamEditedPropRepositoryType] + sender: SimpleUserWebhooksType + team: WebhooksTeam1Type + + +class WebhookTeamEditedPropRepositoryType(TypedDict): + """Repository + + A git repository """ - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] - created_at: str - head_sha: str + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamEditedPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - labels: List[str] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: str - status: Literal["queued", "in_progress", "completed"] - head_branch: Union[str, None] - workflow_name: Union[str, None] - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + +class WebhookTeamEditedPropRepositoryPropCustomPropertiesType(TypedDict): + """WebhookTeamEditedPropRepositoryPropCustomProperties -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType(TypedDict): - """Workflow Step""" + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + +class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued", "pending"] + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamEditedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookTeamEditedPropChangesType(TypedDict): + """WebhookTeamEditedPropChanges + + The changes to the team if the action was `edited`. + """ + + description: NotRequired[WebhookTeamEditedPropChangesPropDescriptionType] + name: NotRequired[WebhookTeamEditedPropChangesPropNameType] + privacy: NotRequired[WebhookTeamEditedPropChangesPropPrivacyType] + notification_setting: NotRequired[ + WebhookTeamEditedPropChangesPropNotificationSettingType + ] + repository: NotRequired[WebhookTeamEditedPropChangesPropRepositoryType] + + +class WebhookTeamEditedPropChangesPropDescriptionType(TypedDict): + """WebhookTeamEditedPropChangesPropDescription""" + + from_: str + + +class WebhookTeamEditedPropChangesPropNameType(TypedDict): + """WebhookTeamEditedPropChangesPropName""" + + from_: str + + +class WebhookTeamEditedPropChangesPropPrivacyType(TypedDict): + """WebhookTeamEditedPropChangesPropPrivacy""" + + from_: str + + +class WebhookTeamEditedPropChangesPropNotificationSettingType(TypedDict): + """WebhookTeamEditedPropChangesPropNotificationSetting""" + + from_: str + + +class WebhookTeamEditedPropChangesPropRepositoryType(TypedDict): + """WebhookTeamEditedPropChangesPropRepository""" + + permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" + + from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType(TypedDict): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" + + admin: NotRequired[bool] + pull: NotRequired[bool] + push: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", + "WebhookTeamEditedType", + "WebhookTeamEditedPropRepositoryType", + "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", + "WebhookTeamEditedPropRepositoryPropLicenseType", + "WebhookTeamEditedPropRepositoryPropOwnerType", + "WebhookTeamEditedPropRepositoryPropPermissionsType", + "WebhookTeamEditedPropChangesType", + "WebhookTeamEditedPropChangesPropDescriptionType", + "WebhookTeamEditedPropChangesPropNameType", + "WebhookTeamEditedPropChangesPropPrivacyType", + "WebhookTeamEditedPropChangesPropNotificationSettingType", + "WebhookTeamEditedPropChangesPropRepositoryType", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", ) 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 058da261a..442b473d2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0778.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0778.py @@ -9,50 +9,191 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0459 import WebhooksTeam1Type +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -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] +class WebhookTeamRemovedFromRepositoryType(TypedDict): + """team removed_from_repository event""" + + action: Literal["removed_from_repository"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] + sender: SimpleUserWebhooksType + 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 + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType(TypedDict): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[List[str]] + id: int + login: str name: NotRequired[str] node_id: NotRequired[str] - run_attempt: NotRequired[int] - run_id: NotRequired[int] - run_url: NotRequired[str] - runner_group_id: NotRequired[Union[int, None]] - runner_group_name: NotRequired[Union[str, None]] - runner_id: NotRequired[Union[int, None]] - runner_name: NotRequired[Union[str, None]] - started_at: NotRequired[str] - status: Literal["in_progress", "completed", "queued"] - head_branch: NotRequired[Union[str, None]] - workflow_name: NotRequired[Union[str, None]] - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType(TypedDict): - """Workflow Step""" +class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" - completed_at: Union[str, None] - conclusion: Union[str, None] - name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "pending", "queued"] + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", + "WebhookTeamRemovedFromRepositoryType", + "WebhookTeamRemovedFromRepositoryPropRepositoryType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", ) 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 4572da29c..d75a8a92f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0779.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0779.py @@ -9,72 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0192 import DeploymentType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookWorkflowJobQueuedType(TypedDict): - """workflow_job queued event""" +class WebhookWatchStartedType(TypedDict): + """watch started event""" - action: Literal["queued"] + action: Literal["started"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - 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["completed", "in_progress", "queued", "pending"] - - -__all__ = ( - "WebhookWorkflowJobQueuedType", - "WebhookWorkflowJobQueuedPropWorkflowJobType", - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", -) +__all__ = ("WebhookWatchStartedType",) 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 ca2c32e41..916c3667e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0780.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0780.py @@ -9,72 +9,34 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0192 import DeploymentType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookWorkflowJobWaitingType(TypedDict): - """workflow_job waiting event""" +class WebhookWorkflowDispatchType(TypedDict): + """workflow_dispatch event""" - action: Literal["waiting"] enterprise: NotRequired[EnterpriseWebhooksType] + inputs: Union[WebhookWorkflowDispatchPropInputsType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType - deployment: NotRequired[DeploymentType] + workflow: str -class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobWaitingPropWorkflowJob""" - - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[str, None] - created_at: str - head_sha: str - html_url: str - id: int - labels: List[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: datetime - head_branch: Union[str, None] - workflow_name: Union[str, None] - status: Literal["queued", "in_progress", "completed", "waiting"] - steps: List[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType] - url: str - - -class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] - name: str - number: int - started_at: Union[str, None] - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] +class WebhookWorkflowDispatchPropInputsType(TypedDict): + """WebhookWorkflowDispatchPropInputs""" __all__ = ( - "WebhookWorkflowJobWaitingType", - "WebhookWorkflowJobWaitingPropWorkflowJobType", - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", + "WebhookWorkflowDispatchType", + "WebhookWorkflowDispatchPropInputsType", ) 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 9d749281d..840a583dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0781.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0781.py @@ -9,20 +9,19 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0413 import WebhooksWorkflowType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +from .group_0196 import DeploymentType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class WebhookWorkflowRunCompletedType(TypedDict): - """workflow_run completed event""" +class WebhookWorkflowJobCompletedType(TypedDict): + """workflow_job completed event""" action: Literal["completed"] enterprise: NotRequired[EnterpriseWebhooksType] @@ -30,400 +29,59 @@ class WebhookWorkflowRunCompletedType(TypedDict): organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType - - -class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "skipped", - "stale", - "success", - "timed_out", - ], + workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType + deployment: NotRequired[DeploymentType] + + +class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJob""" + + check_run_url: str + completed_at: str + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType + created_at: str head_sha: str html_url: str id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: List[ - Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, None] - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - display_title: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType - committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str + labels: List[str] name: str node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: float - number: float - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: 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 WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str +class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] name: str - url: str + number: int + started_at: Union[str, None] + status: Literal["in_progress", "completed", "queued"] __all__ = ( - "WebhookWorkflowRunCompletedType", - "WebhookWorkflowRunCompletedPropWorkflowRunType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookWorkflowJobCompletedType", + "WebhookWorkflowJobCompletedPropWorkflowJobType", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", ) 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 3454d1f45..8ea8b11cc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0782.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0782.py @@ -9,424 +9,65 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0413 import WebhooksWorkflowType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job -class WebhookWorkflowRunInProgressType(TypedDict): - """workflow_run in_progress event""" - - action: Literal["in_progress"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType - - -class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): - """Workflow Run""" + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str + check_run_url: str + completed_at: Union[str, None] conclusion: Union[ None, Literal[ - "action_required", - "cancelled", + "success", "failure", - "neutral", "skipped", - "stale", - "success", + "cancelled", + "action_required", + "neutral", "timed_out", ], ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType + created_at: str head_sha: str html_url: str id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: List[ - Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, None - ] - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "pending"] - triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType - committer: ( - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType - ) - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: Union[str, None] - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str + labels: List[str] name: str node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType - id: float - number: float - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: str + status: Literal["queued", "in_progress", "completed", "waiting"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: List[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType] url: str -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDict): + """Workflow Step""" - ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] name: str - url: str + number: int + started_at: Union[str, None] + status: Literal["in_progress", "completed", "queued"] __all__ = ( - "WebhookWorkflowRunInProgressType", - "WebhookWorkflowRunInProgressPropWorkflowRunType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", ) 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 db02c21c1..b2190c31c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0783.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0783.py @@ -9,422 +9,57 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0413 import WebhooksWorkflowType -from .group_0402 import EnterpriseWebhooksType -from .group_0403 import SimpleInstallationType -from .group_0405 import RepositoryWebhooksType -from .group_0406 import SimpleUserWebhooksType -from .group_0404 import OrganizationSimpleWebhooksType +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" -class WebhookWorkflowRunRequestedType(TypedDict): - """workflow_run requested event""" - - action: Literal["requested"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunRequestedPropWorkflowRunType - - -class WebhookWorkflowRunRequestedPropWorkflowRunType(TypedDict): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - "startup_failure", - ], - ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType - head_sha: str - html_url: str - id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: List[ - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] - triggering_actor: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - display_title: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType - committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + check_run_url: NotRequired[str] + completed_at: NotRequired[str] + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class 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] + created_at: NotRequired[str] + head_sha: NotRequired[str] html_url: NotRequired[str] - id: int - login: str + id: NotRequired[int] + labels: NotRequired[List[Union[str, None]]] name: NotRequired[str] node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class 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 + run_attempt: NotRequired[int] + run_id: NotRequired[int] + run_url: NotRequired[str] + runner_group_id: NotRequired[Union[int, None]] + runner_group_name: NotRequired[Union[str, None]] + runner_id: NotRequired[Union[int, None]] + runner_name: NotRequired[Union[str, None]] + started_at: NotRequired[str] + status: NotRequired[str] + head_branch: NotRequired[Union[str, None]] + workflow_name: NotRequired[Union[str, None]] + steps: NotRequired[ + List[ + Union[ + WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None + ] + ] ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class 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] -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: float - number: float - 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 +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" __all__ = ( - "WebhookWorkflowRunRequestedType", - "WebhookWorkflowRunRequestedPropWorkflowRunType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", ) 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 17c334d30..f4b1b2fac 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0784.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0784.py @@ -9,34 +9,71 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0005 import IntegrationPropPermissionsType +from .group_0196 import DeploymentType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class AppManifestsCodeConversionsPostResponse201Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201""" +class WebhookWorkflowJobInProgressType(TypedDict): + """workflow_job in_progress event""" + action: Literal["in_progress"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + 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 - slug: NotRequired[str] + labels: List[str] + name: str node_id: str - owner: Union[None, SimpleUserType] + 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 - 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_id: str - client_secret: str - webhook_secret: Union[Union[str, None], None] - pem: str - - -__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) + number: int + started_at: Union[Union[str, None], None] + status: Literal["in_progress", "completed", "queued", "pending"] + + +__all__ = ( + "WebhookWorkflowJobInProgressType", + "WebhookWorkflowJobInProgressPropWorkflowJobType", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", +) 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 528a915b7..342fee780 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0785.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0785.py @@ -9,17 +9,54 @@ from __future__ import annotations -from typing import Union +from typing import List, Union, Literal from typing_extensions import TypedDict -class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201Allof1""" - - client_id: str - client_secret: str - webhook_secret: Union[str, None] - pem: str - - -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job + + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ + + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] + created_at: str + head_sha: str + html_url: str + id: int + labels: List[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: str + status: Literal["queued", "in_progress", "completed"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType] + url: str + + +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["in_progress", "completed", "queued", "pending"] + + +__all__ = ( + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", +) 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 8c1c8c418..058da261a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0786.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0786.py @@ -9,17 +9,50 @@ from __future__ import annotations -from typing import Union +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class AppHookConfigPatchBodyType(TypedDict): - """AppHookConfigPatchBody""" - +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] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("AppHookConfigPatchBodyType",) +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[str, None] + name: str + number: int + started_at: Union[str, None] + status: Literal["in_progress", "completed", "pending", "queued"] + + +__all__ = ( + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", +) 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 24eb9bac1..162ac44b4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0787.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0787.py @@ -9,11 +9,72 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0196 import DeploymentType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" +class WebhookWorkflowJobQueuedType(TypedDict): + """workflow_job queued event""" -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) + action: Literal["queued"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + 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["completed", "in_progress", "queued", "pending"] + + +__all__ = ( + "WebhookWorkflowJobQueuedType", + "WebhookWorkflowJobQueuedPropWorkflowJobType", + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", +) 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 02bda8c69..8a2649c31 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0788.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0788.py @@ -9,18 +9,72 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0014 import AppPermissionsType +from .group_0196 import DeploymentType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): - """AppInstallationsInstallationIdAccessTokensPostBody""" +class WebhookWorkflowJobWaitingType(TypedDict): + """workflow_job waiting event""" - repositories: NotRequired[List[str]] - repository_ids: NotRequired[List[int]] - permissions: NotRequired[AppPermissionsType] + action: Literal["waiting"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType + deployment: NotRequired[DeploymentType] -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) +class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobWaitingPropWorkflowJob""" + + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[str, None] + created_at: str + head_sha: str + html_url: str + id: int + labels: List[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: datetime + head_branch: Union[str, None] + workflow_name: Union[str, None] + status: Literal["queued", "in_progress", "completed", "waiting"] + steps: List[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType] + url: str + + +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["completed", "in_progress", "queued", "pending", "waiting"] + + +__all__ = ( + "WebhookWorkflowJobWaitingType", + "WebhookWorkflowJobWaitingPropWorkflowJobType", + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", +) 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 fad60868e..0d91e7b86 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0789.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0789.py @@ -9,13 +9,421 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0417 import WebhooksWorkflowType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class ApplicationsClientIdGrantDeleteBodyType(TypedDict): - """ApplicationsClientIdGrantDeleteBody""" - access_token: str +class WebhookWorkflowRunCompletedType(TypedDict): + """workflow_run completed event""" + action: Literal["completed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType -__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) + +class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: List[ + Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, None] + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] + triggering_actor: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + display_title: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType + committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: float + number: float + 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__ = ( + "WebhookWorkflowRunCompletedType", + "WebhookWorkflowRunCompletedPropWorkflowRunType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", +) 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 c0bad1ae1..77e2c46e1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0790.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0790.py @@ -9,13 +9,424 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0417 import WebhooksWorkflowType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class ApplicationsClientIdTokenPostBodyType(TypedDict): - """ApplicationsClientIdTokenPostBody""" - access_token: str +class WebhookWorkflowRunInProgressType(TypedDict): + """workflow_run in_progress event""" + action: Literal["in_progress"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType -__all__ = ("ApplicationsClientIdTokenPostBodyType",) + +class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: List[ + Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, None + ] + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal["requested", "in_progress", "completed", "queued", "pending"] + triggering_actor: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType + committer: ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType + ) + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: Union[str, None] + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType + id: float + number: float + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookWorkflowRunInProgressType", + "WebhookWorkflowRunInProgressPropWorkflowRunType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", +) 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 8a68cb8df..adf1e8219 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0791.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0791.py @@ -9,13 +9,422 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0417 import WebhooksWorkflowType +from .group_0406 import EnterpriseWebhooksType +from .group_0407 import SimpleInstallationType +from .group_0409 import RepositoryWebhooksType +from .group_0410 import SimpleUserWebhooksType +from .group_0408 import OrganizationSimpleWebhooksType -class ApplicationsClientIdTokenDeleteBodyType(TypedDict): - """ApplicationsClientIdTokenDeleteBody""" - access_token: str +class WebhookWorkflowRunRequestedType(TypedDict): + """workflow_run requested event""" + action: Literal["requested"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunRequestedPropWorkflowRunType -__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) + +class WebhookWorkflowRunRequestedPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: List[ + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] + triggering_actor: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + display_title: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType + committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: float + number: float + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookWorkflowRunRequestedType", + "WebhookWorkflowRunRequestedPropWorkflowRunType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", +) 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 8e0b6ce68..17c334d30 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0792.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0792.py @@ -9,13 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class ApplicationsClientIdTokenPatchBodyType(TypedDict): - """ApplicationsClientIdTokenPatchBody""" - - access_token: str - - -__all__ = ("ApplicationsClientIdTokenPatchBodyType",) +from datetime import datetime +from typing import List, Union +from typing_extensions import TypedDict, NotRequired + +from .group_0001 import SimpleUserType +from .group_0005 import IntegrationPropPermissionsType + + +class AppManifestsCodeConversionsPostResponse201Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201""" + + id: int + slug: NotRequired[str] + node_id: str + owner: Union[None, SimpleUserType] + name: str + description: Union[str, None] + external_url: str + html_url: str + created_at: datetime + updated_at: datetime + permissions: IntegrationPropPermissionsType + events: List[str] + installations_count: NotRequired[int] + client_id: str + client_secret: str + webhook_secret: Union[Union[str, None], None] + pem: str + + +__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0793.py b/githubkit/versions/ghec_v2022_11_28/types/group_0793.py index 9af931f5d..528a915b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0793.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0793.py @@ -9,21 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0014 import AppPermissionsType +class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201Allof1""" -class ApplicationsClientIdTokenScopedPostBodyType(TypedDict): - """ApplicationsClientIdTokenScopedPostBody""" + client_id: str + client_secret: str + webhook_secret: Union[str, None] + pem: 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__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) 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 54e9d814e..8c1c8c418 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0794.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0794.py @@ -9,11 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired -class EmojisGetResponse200Type(TypedDict): - """EmojisGetResponse200""" +class AppHookConfigPatchBodyType(TypedDict): + """AppHookConfigPatchBody""" + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("EmojisGetResponse200Type",) + +__all__ = ("AppHookConfigPatchBodyType",) 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 ed4e3fa56..24eb9bac1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0795.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0795.py @@ -9,15 +9,11 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class EnterprisesEnterpriseActionsPermissionsPutBodyType(TypedDict): - """EnterprisesEnterpriseActionsPermissionsPutBody""" +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" - enabled_organizations: Literal["all", "none", "selected"] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - -__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBodyType",) +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) 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 ee2c6552e..02bda8c69 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0796.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0796.py @@ -10,16 +10,17 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0029 import OrganizationSimpleType +from .group_0014 import AppPermissionsType -class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" +class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): + """AppInstallationsInstallationIdAccessTokensPostBody""" - total_count: float - organizations: List[OrganizationSimpleType] + repositories: NotRequired[List[str]] + repository_ids: NotRequired[List[int]] + permissions: NotRequired[AppPermissionsType] -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type",) +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) 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 988167f7a..fad60868e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0797.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0797.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType(TypedDict): - """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" +class ApplicationsClientIdGrantDeleteBodyType(TypedDict): + """ApplicationsClientIdGrantDeleteBody""" - selected_organization_ids: List[int] + access_token: str -__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType",) +__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) 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 dee414f38..c0bad1ae1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0798.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0798.py @@ -9,33 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" +class ApplicationsClientIdTokenPostBodyType(TypedDict): + """ApplicationsClientIdTokenPostBody""" - total_count: float - runner_groups: List[RunnerGroupsEnterpriseType] + access_token: str -class RunnerGroupsEnterpriseType(TypedDict): - """RunnerGroupsEnterprise""" - - id: float - name: str - visibility: str - default: bool - selected_organizations_url: NotRequired[str] - runners_url: str - allows_public_repositories: bool - workflow_restrictions_read_only: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[List[str]] - - -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type", - "RunnerGroupsEnterpriseType", -) +__all__ = ("ApplicationsClientIdTokenPostBodyType",) 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 7a505c29e..8a68cb8df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0799.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0799.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class EnterprisesEnterpriseActionsRunnerGroupsPostBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" +class ApplicationsClientIdTokenDeleteBodyType(TypedDict): + """ApplicationsClientIdTokenDeleteBody""" - name: str - visibility: NotRequired[Literal["selected", "all"]] - selected_organization_ids: NotRequired[List[int]] - runners: NotRequired[List[int]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[List[str]] + access_token: str -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",) +__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) 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 09b306237..8e0b6ce68 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0800.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0800.py @@ -9,18 +9,13 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody""" +class ApplicationsClientIdTokenPatchBodyType(TypedDict): + """ApplicationsClientIdTokenPatchBody""" - name: NotRequired[str] - visibility: NotRequired[Literal["selected", "all"]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[List[str]] + access_token: str -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType",) +__all__ = ("ApplicationsClientIdTokenPatchBodyType",) 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 573b9ac36..9af931f5d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0801.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0801.py @@ -10,20 +10,20 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0029 import OrganizationSimpleType +from .group_0014 import AppPermissionsType -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type( - TypedDict -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" +class ApplicationsClientIdTokenScopedPostBodyType(TypedDict): + """ApplicationsClientIdTokenScopedPostBody""" - total_count: float - organizations: List[OrganizationSimpleType] + access_token: str + target: NotRequired[str] + target_id: NotRequired[int] + repositories: NotRequired[List[str]] + repository_ids: NotRequired[List[int]] + permissions: NotRequired[AppPermissionsType] -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type", -) +__all__ = ("ApplicationsClientIdTokenScopedPostBodyType",) 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 12e8f5a3f..54e9d814e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0802.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0802.py @@ -9,18 +9,11 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType( - TypedDict -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" +class EmojisGetResponse200Type(TypedDict): + """EmojisGetResponse200""" - selected_organization_ids: List[int] - -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType", -) +__all__ = ("EmojisGetResponse200Type",) 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 67b63c8cd..ed4e3fa56 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0803.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0803.py @@ -9,21 +9,15 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -from .group_0034 import RunnerType +class EnterprisesEnterpriseActionsPermissionsPutBodyType(TypedDict): + """EnterprisesEnterpriseActionsPermissionsPutBody""" -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type( - TypedDict -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + enabled_organizations: Literal["all", "none", "selected"] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - total_count: float - runners: List[RunnerType] - -__all__ = ( - "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", -) +__all__ = ("EnterprisesEnterpriseActionsPermissionsPutBodyType",) 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 9a8a59ba8..ee2c6552e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0804.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0804.py @@ -12,13 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0029 import OrganizationSimpleType -class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType( - TypedDict -): - """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - runners: List[int] +class EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200""" + total_count: float + organizations: List[OrganizationSimpleType] -__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) + +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsGetResponse200Type",) 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 d71afc412..988167f7a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0805.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0805.py @@ -10,16 +10,13 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0034 import RunnerType +class EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType(TypedDict): + """EnterprisesEnterpriseActionsPermissionsOrganizationsPutBody""" -class EnterprisesEnterpriseActionsRunnersGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnersGetResponse200""" + selected_organization_ids: List[int] - total_count: NotRequired[float] - runners: NotRequired[List[RunnerType]] - -__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseActionsPermissionsOrganizationsPutBodyType",) 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 94482eaad..8a0017c0d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0806.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0806.py @@ -13,13 +13,30 @@ from typing_extensions import TypedDict, NotRequired -class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody""" +class EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnerGroupsGetResponse200""" + + total_count: float + runner_groups: List[RunnerGroupsEnterpriseType] - name: str - runner_group_id: int - labels: List[str] - work_folder: NotRequired[str] +class RunnerGroupsEnterpriseType(TypedDict): + """RunnerGroupsEnterprise""" -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType",) + id: float + name: str + visibility: str + default: bool + selected_organizations_url: NotRequired[str] + runners_url: str + hosted_runners_url: NotRequired[str] + allows_public_repositories: bool + workflow_restrictions_read_only: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[List[str]] + + +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsGetResponse200Type", + "RunnerGroupsEnterpriseType", +) 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 fc0cc2bd6..7a505c29e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0807.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0807.py @@ -9,18 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0034 import RunnerType +class EnterprisesEnterpriseActionsRunnerGroupsPostBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnerGroupsPostBody""" -class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type( - TypedDict -): - """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" + name: str + visibility: NotRequired[Literal["selected", "all"]] + selected_organization_ids: NotRequired[List[int]] + runners: NotRequired[List[int]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[List[str]] - runner: RunnerType - encoded_jit_config: str - -__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsPostBodyType",) 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 502c3d741..09b306237 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0808.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0808.py @@ -9,17 +9,18 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0033 import RunnerLabelType +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBody""" -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" + name: NotRequired[str] + visibility: NotRequired[Literal["selected", "all"]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[List[str]] - total_count: int - labels: List[RunnerLabelType] - -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdPatchBodyType",) 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 002b112a6..573b9ac36 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0809.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0809.py @@ -12,11 +12,18 @@ from typing import List from typing_extensions import TypedDict +from .group_0029 import OrganizationSimpleType -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" - labels: List[str] +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type( + TypedDict +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200""" + total_count: float + organizations: List[OrganizationSimpleType] -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType",) + +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsGetResponse200Type", +) 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 7e04c23b0..12e8f5a3f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0810.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0810.py @@ -13,10 +13,14 @@ from typing_extensions import TypedDict -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody""" +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType( + TypedDict +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBody""" - labels: List[str] + selected_organization_ids: List[int] -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType",) +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdOrganizationsPutBodyType", +) 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 d93d5a677..67b63c8cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0811.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0811.py @@ -12,14 +12,18 @@ from typing import List from typing_extensions import TypedDict -from .group_0033 import RunnerLabelType +from .group_0034 import RunnerType -class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): - """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type( + TypedDict +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" - total_count: int - labels: List[RunnerLabelType] + total_count: float + runners: List[RunnerType] -__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type",) +__all__ = ( + "EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type", +) 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 f260004a7..9a8a59ba8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0812.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0812.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type(TypedDict): - """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" +class EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType( + TypedDict +): + """EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] + runners: List[int] -__all__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",) +__all__ = ("EnterprisesEnterpriseActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) 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 a1449d86c..d71afc412 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0813.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0813.py @@ -9,20 +9,17 @@ from __future__ import annotations -from typing import Union +from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0034 import RunnerType -class EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType(TypedDict): - """EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody""" - advanced_security_enabled_for_new_repositories: NotRequired[bool] - advanced_security_enabled_new_user_namespace_repos: NotRequired[bool] - dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] - secret_scanning_validity_checks_enabled: NotRequired[Union[bool, None]] +class EnterprisesEnterpriseActionsRunnersGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnersGetResponse200""" + total_count: NotRequired[float] + runners: NotRequired[List[RunnerType]] -__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",) + +__all__ = ("EnterprisesEnterpriseActionsRunnersGetResponse200Type",) 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 077b4de68..94482eaad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0814.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0814.py @@ -10,17 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType( - TypedDict -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody""" +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBody""" - users: List[str] + name: str + runner_group_id: int + labels: List[str] + work_folder: NotRequired[str] -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostBodyType",) 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 17fbb8e54..fc0cc2bd6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0815.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0815.py @@ -9,19 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0034 import RunnerType -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type( + +class EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type( TypedDict ): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse2 - 00 - """ + """EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201""" - message: NotRequired[str] + runner: RunnerType + encoded_jit_config: str -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersGenerateJitconfigPostResponse201Type",) 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 3b20ef900..502c3d741 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0816.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0816.py @@ -12,15 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0033 import RunnerLabelType -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType( - TypedDict -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody""" - users: List[str] +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200""" + total_count: int + labels: List[RunnerLabelType] -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType", -) + +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsGetResponse200Type",) 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 a39f61255..002b112a6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0817.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0817.py @@ -9,19 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type( - TypedDict -): - """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteRespons - e200 - """ +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBody""" - message: NotRequired[str] + labels: List[str] -__all__ = ( - "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPutBodyType",) 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 8f9809a85..7e04c23b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0818.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0818.py @@ -9,29 +9,14 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class GistsPostBodyType(TypedDict): - """GistsPostBody""" +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBody""" - description: NotRequired[str] - files: GistsPostBodyPropFilesType - public: NotRequired[Union[bool, Literal["true", "false"]]] + labels: List[str] -class GistsPostBodyPropFilesType(TypedDict): - """GistsPostBodyPropFiles - - Names and content for the files that make up the gist - - Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} - """ - - -__all__ = ( - "GistsPostBodyType", - "GistsPostBodyPropFilesType", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsPostBodyType",) 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 c1d56fb20..d93d5a677 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0819.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0819.py @@ -9,27 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0033 import RunnerLabelType -class GistsGistIdGetResponse403Type(TypedDict): - """GistsGistIdGetResponse403""" - block: NotRequired[GistsGistIdGetResponse403PropBlockType] - message: NotRequired[str] - documentation_url: NotRequired[str] +class EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): + """EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200""" + total_count: int + labels: List[RunnerLabelType] -class GistsGistIdGetResponse403PropBlockType(TypedDict): - """GistsGistIdGetResponse403PropBlock""" - reason: NotRequired[str] - created_at: NotRequired[str] - html_url: NotRequired[Union[str, None]] - - -__all__ = ( - "GistsGistIdGetResponse403Type", - "GistsGistIdGetResponse403PropBlockType", -) +__all__ = ("EnterprisesEnterpriseActionsRunnersRunnerIdLabelsDeleteResponse200Type",) 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 320e5859f..f260004a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0820.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0820.py @@ -12,31 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class GistsGistIdPatchBodyType(TypedDict): - """GistsGistIdPatchBody""" +class EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type(TypedDict): + """EnterprisesEnterpriseCodeScanningAlertsGetResponse503""" - description: NotRequired[str] - files: NotRequired[GistsGistIdPatchBodyPropFilesType] + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] -class GistsGistIdPatchBodyPropFilesType(TypedDict): - """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__ = ( - "GistsGistIdPatchBodyType", - "GistsGistIdPatchBodyPropFilesType", -) +__all__ = ("EnterprisesEnterpriseCodeScanningAlertsGetResponse503Type",) 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 054661ac7..7edccbc3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0821.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0821.py @@ -9,13 +9,19 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired -class GistsGistIdCommentsPostBodyType(TypedDict): - """GistsGistIdCommentsPostBody""" +class EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType(TypedDict): + """EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBody""" - body: str + 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]] -__all__ = ("GistsGistIdCommentsPostBodyType",) +__all__ = ("EnterprisesEnterpriseCodeSecurityAndAnalysisPatchBodyType",) 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 39ac46ae2..696bb77e8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0822.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0822.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired +from .group_0049 import CopilotSeatDetailsType -class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): - """GistsGistIdCommentsCommentIdPatchBody""" - body: str +class EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseCopilotBillingSeatsGetResponse200""" + total_seats: NotRequired[int] + seats: NotRequired[List[CopilotSeatDetailsType]] -__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) + +__all__ = ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type",) 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 10e6b69c7..077b4de68 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0823.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0823.py @@ -9,11 +9,18 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict -class GistsGistIdStarGetResponse404Type(TypedDict): - """GistsGistIdStarGetResponse404""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType( + TypedDict +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBody""" + users: List[str] -__all__ = ("GistsGistIdStarGetResponse404Type",) + +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostBodyType", +) 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 0e16da280..17fbb8e54 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0824.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0824.py @@ -9,18 +9,19 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0017 import RepositoryType +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type( + TypedDict +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse2 + 00 + """ -class InstallationRepositoriesGetResponse200Type(TypedDict): - """InstallationRepositoriesGetResponse200""" + message: NotRequired[str] - total_count: int - repositories: List[RepositoryType] - repository_selection: NotRequired[str] - -__all__ = ("InstallationRepositoriesGetResponse200Type",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourcePostResponse200Type", +) 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 247364e10..3b20ef900 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0825.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0825.py @@ -9,16 +9,18 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class MarkdownPostBodyType(TypedDict): - """MarkdownPostBody""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType( + TypedDict +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBody""" - text: str - mode: NotRequired[Literal["markdown", "gfm"]] - context: NotRequired[str] + users: List[str] -__all__ = ("MarkdownPostBodyType",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteBodyType", +) 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 b40e83f9e..a39f61255 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0826.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0826.py @@ -9,15 +9,19 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import TypedDict, NotRequired -class NotificationsPutBodyType(TypedDict): - """NotificationsPutBody""" +class EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type( + TypedDict +): + """EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteRespons + e200 + """ - last_read_at: NotRequired[datetime] - read: NotRequired[bool] + message: NotRequired[str] -__all__ = ("NotificationsPutBodyType",) +__all__ = ( + "EnterprisesEnterpriseSettingsBillingCostCentersCostCenterIdResourceDeleteResponse200Type", +) 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 36e560089..8f9809a85 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0827.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0827.py @@ -9,13 +9,29 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class NotificationsPutResponse202Type(TypedDict): - """NotificationsPutResponse202""" +class GistsPostBodyType(TypedDict): + """GistsPostBody""" - message: NotRequired[str] + description: NotRequired[str] + files: GistsPostBodyPropFilesType + public: NotRequired[Union[bool, Literal["true", "false"]]] -__all__ = ("NotificationsPutResponse202Type",) +class GistsPostBodyPropFilesType(TypedDict): + """GistsPostBodyPropFiles + + Names and content for the files that make up the gist + + Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} + """ + + +__all__ = ( + "GistsPostBodyType", + "GistsPostBodyPropFilesType", +) 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 d14e27254..c1d56fb20 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0828.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0828.py @@ -9,13 +9,27 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict, NotRequired -class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): - """NotificationsThreadsThreadIdSubscriptionPutBody""" +class GistsGistIdGetResponse403Type(TypedDict): + """GistsGistIdGetResponse403""" - ignored: NotRequired[bool] + block: NotRequired[GistsGistIdGetResponse403PropBlockType] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) +class GistsGistIdGetResponse403PropBlockType(TypedDict): + """GistsGistIdGetResponse403PropBlock""" + + reason: NotRequired[str] + created_at: NotRequired[str] + html_url: NotRequired[Union[str, None]] + + +__all__ = ( + "GistsGistIdGetResponse403Type", + "GistsGistIdGetResponse403PropBlockType", +) 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 63f4d2b19..320e5859f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0829.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0829.py @@ -9,17 +9,34 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0082 import OrganizationCustomRepositoryRoleType +class GistsGistIdPatchBodyType(TypedDict): + """GistsGistIdPatchBody""" -class OrganizationsOrganizationIdCustomRolesGetResponse200Type(TypedDict): - """OrganizationsOrganizationIdCustomRolesGetResponse200""" + description: NotRequired[str] + files: NotRequired[GistsGistIdPatchBodyPropFilesType] - total_count: NotRequired[int] - custom_roles: NotRequired[List[OrganizationCustomRepositoryRoleType]] +class GistsGistIdPatchBodyPropFilesType(TypedDict): + """GistsGistIdPatchBodyPropFiles -__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",) + 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__ = ( + "GistsGistIdPatchBodyType", + "GistsGistIdPatchBodyPropFilesType", +) 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 118efc90d..054661ac7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0830.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0830.py @@ -9,47 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -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] - - -__all__ = ("OrgsOrgPatchBodyType",) +from typing_extensions import TypedDict + + +class GistsGistIdCommentsPostBodyType(TypedDict): + """GistsGistIdCommentsPostBody""" + + body: str + + +__all__ = ("GistsGistIdCommentsPostBodyType",) 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 00d36424e..39ac46ae2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0831.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0831.py @@ -9,29 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" +class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): + """GistsGistIdCommentsCommentIdPatchBody""" - total_count: int - repository_cache_usages: List[ActionsCacheUsageByRepositoryType] + body: str -class ActionsCacheUsageByRepositoryType(TypedDict): - """Actions Cache Usage by repository - - GitHub Actions Cache Usage by repository. - """ - - full_name: str - active_caches_size_in_bytes: int - active_caches_count: int - - -__all__ = ( - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", - "ActionsCacheUsageByRepositoryType", -) +__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) 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 057fcec7d..10e6b69c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0832.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0832.py @@ -9,15 +9,11 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgActionsPermissionsPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsPutBody""" +class GistsGistIdStarGetResponse404Type(TypedDict): + """GistsGistIdStarGetResponse404""" - enabled_repositories: Literal["all", "none", "selected"] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - -__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) +__all__ = ("GistsGistIdStarGetResponse404Type",) 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 dbf4b3831..0e16da280 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0833.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0833.py @@ -10,16 +10,17 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired from .group_0017 import RepositoryType -class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" +class InstallationRepositoriesGetResponse200Type(TypedDict): + """InstallationRepositoriesGetResponse200""" - total_count: float + total_count: int repositories: List[RepositoryType] + repository_selection: NotRequired[str] -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) +__all__ = ("InstallationRepositoriesGetResponse200Type",) 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 0a9b8d49f..247364e10 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0834.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0834.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" +class MarkdownPostBodyType(TypedDict): + """MarkdownPostBody""" - selected_repository_ids: List[int] + text: str + mode: NotRequired[Literal["markdown", "gfm"]] + context: NotRequired[str] -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) +__all__ = ("MarkdownPostBodyType",) 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 44b5ee2bd..b40e83f9e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0835.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0835.py @@ -9,35 +9,15 @@ from __future__ import annotations -from typing import List +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsRunnerGroupsGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsGetResponse200""" +class NotificationsPutBodyType(TypedDict): + """NotificationsPutBody""" - total_count: float - runner_groups: List[RunnerGroupsOrgType] + last_read_at: NotRequired[datetime] + read: NotRequired[bool] -class RunnerGroupsOrgType(TypedDict): - """RunnerGroupsOrg""" - - id: float - name: str - visibility: str - default: bool - selected_repositories_url: NotRequired[str] - runners_url: str - inherited: bool - inherited_allows_public_repositories: NotRequired[bool] - allows_public_repositories: bool - workflow_restrictions_read_only: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[List[str]] - - -__all__ = ( - "OrgsOrgActionsRunnerGroupsGetResponse200Type", - "RunnerGroupsOrgType", -) +__all__ = ("NotificationsPutBodyType",) 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 98ce02d41..36e560089 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0836.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0836.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsRunnerGroupsPostBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsPostBody""" +class NotificationsPutResponse202Type(TypedDict): + """NotificationsPutResponse202""" - 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]] + message: NotRequired[str] -__all__ = ("OrgsOrgActionsRunnerGroupsPostBodyType",) +__all__ = ("NotificationsPutResponse202Type",) 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 21a8bd2c8..d14e27254 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0837.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0837.py @@ -9,18 +9,13 @@ from __future__ import annotations -from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" +class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): + """NotificationsThreadsThreadIdSubscriptionPutBody""" - name: str - visibility: NotRequired[Literal["selected", "all", "private"]] - allows_public_repositories: NotRequired[bool] - restricted_to_workflows: NotRequired[bool] - selected_workflows: NotRequired[List[str]] + ignored: NotRequired[bool] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",) +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) 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 5039c5013..e36b1eb7a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0838.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0838.py @@ -10,16 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0079 import MinimalRepositoryType +from .group_0085 import OrganizationCustomRepositoryRoleType -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" +class OrganizationsOrganizationIdCustomRolesGetResponse200Type(TypedDict): + """OrganizationsOrganizationIdCustomRolesGetResponse200""" - total_count: float - repositories: List[MinimalRepositoryType] + total_count: NotRequired[int] + custom_roles: NotRequired[List[OrganizationCustomRepositoryRoleType]] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type",) +__all__ = ("OrganizationsOrganizationIdCustomRolesGetResponse200Type",) 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 f661ee239..118efc90d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0839.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0839.py @@ -9,14 +9,47 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict - - -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" - - selected_repository_ids: List[int] - - -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType",) +from typing import Literal +from typing_extensions import TypedDict, NotRequired + + +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] + + +__all__ = ("OrgsOrgPatchBodyType",) 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 924099c88..00d36424e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0840.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0840.py @@ -12,14 +12,26 @@ from typing import List from typing_extensions import TypedDict -from .group_0034 import RunnerType +class OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + total_count: int + repository_cache_usages: List[ActionsCacheUsageByRepositoryType] - total_count: float - runners: List[RunnerType] +class ActionsCacheUsageByRepositoryType(TypedDict): + """Actions Cache Usage by repository -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type",) + GitHub Actions Cache Usage by repository. + """ + + full_name: str + active_caches_size_in_bytes: int + active_caches_count: int + + +__all__ = ( + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", + "ActionsCacheUsageByRepositoryType", +) 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 d0bd67035..057fcec7d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0841.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0841.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType(TypedDict): - """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" +class OrgsOrgActionsPermissionsPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsPutBody""" - runners: List[int] + enabled_repositories: Literal["all", "none", "selected"] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] -__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) +__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) 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 a113cf382..dbf4b3831 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0842.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0842.py @@ -12,14 +12,14 @@ from typing import List from typing_extensions import TypedDict -from .group_0034 import RunnerType +from .group_0017 import RepositoryType -class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnersGetResponse200""" +class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" - total_count: int - runners: List[RunnerType] + total_count: float + repositories: List[RepositoryType] -__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) 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 eca351801..0a9b8d49f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0843.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0843.py @@ -10,16 +10,13 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" +class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" - name: str - runner_group_id: int - labels: List[str] - work_folder: NotRequired[str] + selected_repository_ids: List[int] -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) 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 501b19b50..ae46ea283 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0844.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0844.py @@ -10,13 +10,35 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" +class OrgsOrgActionsRunnerGroupsGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsGetResponse200""" - labels: List[str] + total_count: float + runner_groups: List[RunnerGroupsOrgType] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) +class RunnerGroupsOrgType(TypedDict): + """RunnerGroupsOrg""" + + id: float + name: str + visibility: str + default: bool + selected_repositories_url: NotRequired[str] + runners_url: str + hosted_runners_url: NotRequired[str] + inherited: bool + inherited_allows_public_repositories: NotRequired[bool] + allows_public_repositories: bool + workflow_restrictions_read_only: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[List[str]] + + +__all__ = ( + "OrgsOrgActionsRunnerGroupsGetResponse200Type", + "RunnerGroupsOrgType", +) 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 a31968bb1..98ce02d41 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0845.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0845.py @@ -9,14 +9,20 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" +class OrgsOrgActionsRunnerGroupsPostBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsPostBody""" - labels: List[str] + name: str + visibility: NotRequired[Literal["selected", "all", "private"]] + selected_repository_ids: NotRequired[List[int]] + runners: NotRequired[List[int]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[List[str]] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) +__all__ = ("OrgsOrgActionsRunnerGroupsPostBodyType",) 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 2e71259c6..21a8bd2c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0846.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0846.py @@ -9,32 +9,18 @@ from __future__ import annotations -from datetime import datetime from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsGetResponse200""" - - total_count: int - secrets: List[OrganizationActionsSecretType] - - -class OrganizationActionsSecretType(TypedDict): - """Actions Secret for an Organization - - Secrets for GitHub Actions for an organization. - """ +class OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBody""" name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + visibility: NotRequired[Literal["selected", "all", "private"]] + allows_public_repositories: NotRequired[bool] + restricted_to_workflows: NotRequired[bool] + selected_workflows: NotRequired[List[str]] -__all__ = ( - "OrgsOrgActionsSecretsGetResponse200Type", - "OrganizationActionsSecretType", -) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdPatchBodyType",) 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 011a4a449..ce3a62c45 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0847.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0847.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0082 import MinimalRepositoryType -class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNamePutBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[List[int]] +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200""" + total_count: float + repositories: List[MinimalRepositoryType] -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesGetResponse200Type",) 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 bce6ed21f..f661ee239 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0848.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0848.py @@ -12,14 +12,11 @@ from typing import List from typing_extensions import TypedDict -from .group_0079 import MinimalRepositoryType +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBody""" -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + selected_repository_ids: List[int] - total_count: int - repositories: List[MinimalRepositoryType] - -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRepositoriesPutBodyType",) 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 6323f1787..924099c88 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0849.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0849.py @@ -12,11 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0034 import RunnerType -class OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: List[int] +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200""" + total_count: float + runners: List[RunnerType] -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) + +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersGetResponse200Type",) 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 669cd0638..d0bd67035 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0850.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0850.py @@ -9,33 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesGetResponse200""" +class OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType(TypedDict): + """OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBody""" - total_count: int - variables: List[OrganizationActionsVariableType] + runners: List[int] -class OrganizationActionsVariableType(TypedDict): - """Actions Variable for an Organization - - Organization variable for GitHub Actions. - """ - - name: str - value: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] - - -__all__ = ( - "OrgsOrgActionsVariablesGetResponse200Type", - "OrganizationActionsVariableType", -) +__all__ = ("OrgsOrgActionsRunnerGroupsRunnerGroupIdRunnersPutBodyType",) 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 bf80fe0df..a113cf382 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0851.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0851.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0034 import RunnerType -class OrgsOrgActionsVariablesPostBodyType(TypedDict): - """OrgsOrgActionsVariablesPostBody""" - name: str - value: str - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[List[int]] +class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnersGetResponse200""" + total_count: int + runners: List[RunnerType] -__all__ = ("OrgsOrgActionsVariablesPostBodyType",) + +__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) 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 dd70527c5..eca351801 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0852.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0852.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): - """OrgsOrgActionsVariablesNamePatchBody""" +class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" - name: NotRequired[str] - value: NotRequired[str] - visibility: NotRequired[Literal["all", "private", "selected"]] - selected_repository_ids: NotRequired[List[int]] + name: str + runner_group_id: int + labels: List[str] + work_folder: NotRequired[str] -__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) 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 2151c1f1b..501b19b50 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0853.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0853.py @@ -12,14 +12,11 @@ from typing import List from typing_extensions import TypedDict -from .group_0079 import MinimalRepositoryType +class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + labels: List[str] - total_count: int - repositories: List[MinimalRepositoryType] - -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) 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 7038b96c8..a31968bb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0854.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0854.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesPutBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" - selected_repository_ids: List[int] + labels: List[str] -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) 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 62b5124b8..2e71259c6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0855.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0855.py @@ -9,17 +9,32 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0089 import CodespaceType - -class OrgsOrgCodespacesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesGetResponse200""" +class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsGetResponse200""" total_count: int - codespaces: List[CodespaceType] + 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__ = ("OrgsOrgCodespacesGetResponse200Type",) +__all__ = ( + "OrgsOrgActionsSecretsGetResponse200Type", + "OrganizationActionsSecretType", +) 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 11890a4e9..011a4a449 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0856.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0856.py @@ -13,16 +13,13 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgCodespacesAccessPutBodyType(TypedDict): - """OrgsOrgCodespacesAccessPutBody""" +class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNamePutBody""" - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", - ] - selected_usernames: NotRequired[List[str]] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[List[int]] -__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) 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 ecb5a7ff7..202959454 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0857.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0857.py @@ -12,11 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0082 import MinimalRepositoryType -class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" - selected_usernames: List[str] +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: List[MinimalRepositoryType] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) + +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) 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 343148794..6323f1787 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0858.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0858.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - selected_usernames: List[str] + selected_repository_ids: List[int] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) 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 9f9f2b273..669cd0638 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0859.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0859.py @@ -14,20 +14,21 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsGetResponse200""" +class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesGetResponse200""" total_count: int - secrets: List[CodespacesOrgSecretType] + variables: List[OrganizationActionsVariableType] -class CodespacesOrgSecretType(TypedDict): - """Codespaces Secret +class OrganizationActionsVariableType(TypedDict): + """Actions Variable for an Organization - Secrets for a GitHub Codespace. + Organization variable for GitHub Actions. """ name: str + value: str created_at: datetime updated_at: datetime visibility: Literal["all", "private", "selected"] @@ -35,6 +36,6 @@ class CodespacesOrgSecretType(TypedDict): __all__ = ( - "OrgsOrgCodespacesSecretsGetResponse200Type", - "CodespacesOrgSecretType", + "OrgsOrgActionsVariablesGetResponse200Type", + "OrganizationActionsVariableType", ) 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 df9701450..bf80fe0df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0860.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0860.py @@ -13,13 +13,13 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" +class OrgsOrgActionsVariablesPostBodyType(TypedDict): + """OrgsOrgActionsVariablesPostBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + name: str + value: str visibility: Literal["all", "private", "selected"] selected_repository_ids: NotRequired[List[int]] -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) +__all__ = ("OrgsOrgActionsVariablesPostBodyType",) 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 66b0f580e..dd70527c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0861.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0861.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0079 import MinimalRepositoryType +class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): + """OrgsOrgActionsVariablesNamePatchBody""" -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + name: NotRequired[str] + value: NotRequired[str] + visibility: NotRequired[Literal["all", "private", "selected"]] + selected_repository_ids: NotRequired[List[int]] - total_count: int - repositories: List[MinimalRepositoryType] - -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) 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 bc6a55ac2..4b01bcd72 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0862.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0862.py @@ -12,11 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0082 import MinimalRepositoryType -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: List[int] +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + total_count: int + repositories: List[MinimalRepositoryType] -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) + +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) 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 f5fc4cf2b..7038b96c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0863.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0863.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" +class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" - selected_teams: List[str] + selected_repository_ids: List[int] -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) 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 7d801be5e..a578c755d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0864.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0864.py @@ -9,16 +9,69 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 +class OrgsOrgAttestationsSubjectDigestGetResponse200Type(TypedDict): + """OrgsOrgAttestationsSubjectDigestGetResponse200""" - The total number of seat assignments created. + attestations: NotRequired[ + List[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType] + ] + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType + ] + repository_id: NotRequired[int] + + +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. """ - seats_created: int + media_type: NotRequired[str] + verification_material: NotRequired[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType + ] + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType( + TypedDict +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro + pVerificationMaterial + """ + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType( + TypedDict +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro + pDsseEnvelope + """ -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) +__all__ = ( + "OrgsOrgAttestationsSubjectDigestGetResponse200Type", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", +) 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 ad2745b9f..311ee4044 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0865.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0865.py @@ -9,14 +9,30 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict - - -class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - - selected_teams: List[str] - - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) +from typing import Literal +from typing_extensions import TypedDict, NotRequired + + +class OrgsOrgCodeSecurityConfigurationsPostBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsPostBody""" + + name: str + description: str + advanced_security: NotRequired[Literal["enabled", "disabled"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + + +__all__ = ("OrgsOrgCodeSecurityConfigurationsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0866.py b/githubkit/versions/ghec_v2022_11_28/types/group_0866.py index 2c06d525c..7f905fdbc 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0866.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0866.py @@ -9,16 +9,30 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - - The total number of seat assignments cancelled. - """ - - seats_cancelled: int - - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) +from typing import Literal +from typing_extensions import TypedDict, NotRequired + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" + + name: NotRequired[str] + description: NotRequired[str] + advanced_security: NotRequired[Literal["enabled", "disabled"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + + +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType",) 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 d2bc78059..171204dc4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0867.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0867.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - selected_usernames: List[str] + scope: Literal["all", "public", "private_or_internal", "selected"] + selected_repository_ids: NotRequired[List[int]] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType",) 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 c59c644d1..657825ddf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0868.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0868.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - The total number of seat assignments created. - """ + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] - seats_created: int - -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType",) 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 b06b1b236..a6c7c76dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0869.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0869.py @@ -9,14 +9,23 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_0090 import CodeSecurityConfigurationType -class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - selected_usernames: List[str] +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] + configuration: NotRequired[CodeSecurityConfigurationType] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) + +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", +) 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 146387615..09b1cea4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0870.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0870.py @@ -9,16 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0094 import CodespaceType -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - The total number of seat assignments cancelled. - """ +class OrgsOrgCodespacesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesGetResponse200""" - seats_cancelled: int + total_count: int + codespaces: List[CodespaceType] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) +__all__ = ("OrgsOrgCodespacesGetResponse200Type",) 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 805f54688..11890a4e9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0871.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0871.py @@ -9,17 +9,20 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0082 import OrganizationCustomRepositoryRoleType +class OrgsOrgCodespacesAccessPutBodyType(TypedDict): + """OrgsOrgCodespacesAccessPutBody""" -class OrgsOrgCustomRepositoryRolesGetResponse200Type(TypedDict): - """OrgsOrgCustomRepositoryRolesGetResponse200""" + visibility: Literal[ + "disabled", + "selected_members", + "all_members", + "all_members_and_outside_collaborators", + ] + selected_usernames: NotRequired[List[str]] - total_count: NotRequired[int] - custom_roles: NotRequired[List[OrganizationCustomRepositoryRoleType]] - -__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200Type",) +__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) 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 a4754484f..ecb5a7ff7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0872.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0872.py @@ -9,32 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsGetResponse200""" +class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" - total_count: int - secrets: List[OrganizationDependabotSecretType] + selected_usernames: List[str] -class OrganizationDependabotSecretType(TypedDict): - """Dependabot Secret for an Organization - - Secrets for GitHub Dependabot for an organization. - """ - - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] - - -__all__ = ( - "OrgsOrgDependabotSecretsGetResponse200Type", - "OrganizationDependabotSecretType", -) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) 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 eb6772b44..343148794 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0873.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0873.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNamePutBody""" +class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[List[str]] + selected_usernames: List[str] -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0874.py b/githubkit/versions/ghec_v2022_11_28/types/group_0874.py index 0cd813817..9f9f2b273 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0874.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0874.py @@ -9,17 +9,32 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0079 import MinimalRepositoryType - -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" +class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsGetResponse200""" total_count: int - repositories: List[MinimalRepositoryType] + secrets: List[CodespacesOrgSecretType] + + +class CodespacesOrgSecretType(TypedDict): + """Codespaces Secret + + Secrets for a GitHub Codespace. + """ + + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ( + "OrgsOrgCodespacesSecretsGetResponse200Type", + "CodespacesOrgSecretType", +) 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 20b1891ca..df9701450 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0875.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0875.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" - selected_repository_ids: List[int] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[List[int]] -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0876.py b/githubkit/versions/ghec_v2022_11_28/types/group_0876.py index 122ba557e..4488b5d81 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0876.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0876.py @@ -9,34 +9,17 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0082 import MinimalRepositoryType -class OrgsOrgHooksPostBodyType(TypedDict): - """OrgsOrgHooksPostBody""" - name: str - config: OrgsOrgHooksPostBodyPropConfigType - events: NotRequired[List[str]] - active: NotRequired[bool] +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: List[MinimalRepositoryType] -class OrgsOrgHooksPostBodyPropConfigType(TypedDict): - """OrgsOrgHooksPostBodyPropConfig - Key/value pairs to provide settings for this webhook. - """ - - url: str - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - username: NotRequired[str] - password: NotRequired[str] - - -__all__ = ( - "OrgsOrgHooksPostBodyType", - "OrgsOrgHooksPostBodyPropConfigType", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) 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 11e886a2e..bc6a55ac2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0877.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0877.py @@ -9,32 +9,14 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgHooksHookIdPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdPatchBody""" +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" - config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] - events: NotRequired[List[str]] - active: NotRequired[bool] - name: NotRequired[str] + selected_repository_ids: List[int] -class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): - """OrgsOrgHooksHookIdPatchBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: str - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - - -__all__ = ( - "OrgsOrgHooksHookIdPatchBodyType", - "OrgsOrgHooksHookIdPatchBodyPropConfigType", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) 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 7e5067447..eb3dab848 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0878.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0878.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import Union +from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0049 import CopilotSeatDetailsType -class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdConfigPatchBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] +class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSeatsGetResponse200""" + total_seats: NotRequired[int] + seats: NotRequired[List[CopilotSeatDetailsType]] -__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200Type",) 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 6cb3bd343..f5fc4cf2b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0879.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0879.py @@ -12,14 +12,11 @@ from typing import List from typing_extensions import TypedDict -from .group_0015 import InstallationType +class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" -class OrgsOrgInstallationsGetResponse200Type(TypedDict): - """OrgsOrgInstallationsGetResponse200""" + selected_teams: List[str] - total_count: int - installations: List[InstallationType] - -__all__ = ("OrgsOrgInstallationsGetResponse200Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) 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 5916d7d10..7d801be5e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0880.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0880.py @@ -12,8 +12,13 @@ from typing_extensions import TypedDict -class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 + The total number of seat assignments created. + """ -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) + seats_created: int + + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) 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 53e71b67a..ad2745b9f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0881.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0881.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgInvitationsPostBodyType(TypedDict): - """OrgsOrgInvitationsPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - invitee_id: NotRequired[int] - email: NotRequired[str] - role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] - team_ids: NotRequired[List[int]] + selected_teams: List[str] -__all__ = ("OrgsOrgInvitationsPostBodyType",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) 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 e507dd671..2c06d525c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0882.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0882.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -from .group_0089 import CodespaceType +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 -class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" + The total number of seat assignments cancelled. + """ - total_count: int - codespaces: List[CodespaceType] + seats_cancelled: int -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) 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 8a9c0bc90..d2bc78059 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0883.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0883.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgMembershipsUsernamePutBody""" +class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - role: NotRequired[Literal["admin", "member"]] + selected_usernames: List[str] -__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) 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 f222d73fb..c59c644d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0884.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0884.py @@ -9,22 +9,16 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgMigrationsPostBodyType(TypedDict): - """OrgsOrgMigrationsPostBody""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - 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"]]] + The total number of seat assignments created. + """ + seats_created: int -__all__ = ("OrgsOrgMigrationsPostBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) 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 174eddcfe..b06b1b236 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0885.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0885.py @@ -10,15 +10,13 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgOrganizationRolesPostBodyType(TypedDict): - """OrgsOrgOrganizationRolesPostBody""" +class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - name: str - description: NotRequired[str] - permissions: List[str] + selected_usernames: List[str] -__all__ = ("OrgsOrgOrganizationRolesPostBodyType",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) 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 7b35bcb3e..146387615 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0886.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0886.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgOrganizationRolesRoleIdPatchBodyType(TypedDict): - """OrgsOrgOrganizationRolesRoleIdPatchBody""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - name: NotRequired[str] - description: NotRequired[str] - permissions: NotRequired[List[str]] + The total number of seat assignments cancelled. + """ + seats_cancelled: int -__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) 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 76bef7987..bedad6627 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0887.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0887.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0085 import OrganizationCustomRepositoryRoleType -class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" - async_: NotRequired[bool] +class OrgsOrgCustomRepositoryRolesGetResponse200Type(TypedDict): + """OrgsOrgCustomRepositoryRolesGetResponse200""" + total_count: NotRequired[int] + custom_roles: NotRequired[List[OrganizationCustomRepositoryRoleType]] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) + +__all__ = ("OrgsOrgCustomRepositoryRolesGetResponse200Type",) 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 5de4170f2..a4754484f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0888.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0888.py @@ -9,11 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsGetResponse200""" + total_count: int + secrets: List[OrganizationDependabotSecretType] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) + +class OrganizationDependabotSecretType(TypedDict): + """Dependabot Secret for an Organization + + Secrets for GitHub Dependabot for an organization. + """ + + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] + + +__all__ = ( + "OrgsOrgDependabotSecretsGetResponse200Type", + "OrganizationDependabotSecretType", +) 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 c6b448fef..eb6772b44 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0889.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0889.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" +class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNamePutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[List[str]] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0890.py b/githubkit/versions/ghec_v2022_11_28/types/group_0890.py index 606354a4b..b0ae807bd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0890.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0890.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0082 import MinimalRepositoryType -class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" - pat_request_ids: NotRequired[List[int]] - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: List[MinimalRepositoryType] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) + +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0891.py b/githubkit/versions/ghec_v2022_11_28/types/group_0891.py index 4fc23e50a..20b1891ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0891.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0891.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] + selected_repository_ids: List[int] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0892.py b/githubkit/versions/ghec_v2022_11_28/types/group_0892.py index 23297838b..122ba557e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0892.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0892.py @@ -9,15 +9,34 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPostBody""" +class OrgsOrgHooksPostBodyType(TypedDict): + """OrgsOrgHooksPostBody""" - action: Literal["revoke"] - pat_ids: List[int] + name: str + config: OrgsOrgHooksPostBodyPropConfigType + events: NotRequired[List[str]] + active: NotRequired[bool] -__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) +class OrgsOrgHooksPostBodyPropConfigType(TypedDict): + """OrgsOrgHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + username: NotRequired[str] + password: NotRequired[str] + + +__all__ = ( + "OrgsOrgHooksPostBodyType", + "OrgsOrgHooksPostBodyPropConfigType", +) 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 32c37cd97..11e886a2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0893.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0893.py @@ -9,14 +9,32 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class OrgsOrgHooksHookIdPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdPatchBody""" - action: Literal["revoke"] + config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] + events: NotRequired[List[str]] + active: NotRequired[bool] + name: NotRequired[str] -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) +class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): + """OrgsOrgHooksHookIdPatchBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + + +__all__ = ( + "OrgsOrgHooksHookIdPatchBodyType", + "OrgsOrgHooksHookIdPatchBodyPropConfigType", +) 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 afad09a25..7e5067447 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0894.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0894.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict, NotRequired -class OrgsOrgProjectsPostBodyType(TypedDict): - """OrgsOrgProjectsPostBody""" +class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdConfigPatchBody""" - name: str - body: NotRequired[str] + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("OrgsOrgProjectsPostBodyType",) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) 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 433cf0a43..6cb3bd343 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0895.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0895.py @@ -12,13 +12,14 @@ from typing import List from typing_extensions import TypedDict -from .group_0115 import OrgCustomPropertyType +from .group_0015 import InstallationType -class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): - """OrgsOrgPropertiesSchemaPatchBody""" +class OrgsOrgInstallationsGetResponse200Type(TypedDict): + """OrgsOrgInstallationsGetResponse200""" - properties: List[OrgCustomPropertyType] + total_count: int + installations: List[InstallationType] -__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) +__all__ = ("OrgsOrgInstallationsGetResponse200Type",) 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 7545b38e4..5916d7d10 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0896.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0896.py @@ -9,18 +9,11 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType(TypedDict): - """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" +class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" - value_type: Literal["string", "single_select"] - required: NotRequired[bool] - default_value: NotRequired[Union[str, List[str], None]] - description: NotRequired[Union[str, None]] - allowed_values: NotRequired[Union[List[str], None]] - -__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) 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 8a6963769..53e71b67a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0897.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0897.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0116 import CustomPropertyValueType +class OrgsOrgInvitationsPostBodyType(TypedDict): + """OrgsOrgInvitationsPostBody""" -class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): - """OrgsOrgPropertiesValuesPatchBody""" + invitee_id: NotRequired[int] + email: NotRequired[str] + role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] + team_ids: NotRequired[List[int]] - repository_names: List[str] - properties: List[CustomPropertyValueType] - -__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) +__all__ = ("OrgsOrgInvitationsPostBodyType",) 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 4f19ca86e..b1151ada6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0898.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0898.py @@ -9,51 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired - - -class OrgsOrgReposPostBodyType(TypedDict): - """OrgsOrgReposPostBody""" - - name: str - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - visibility: NotRequired[Literal["public", "private", "internal"]] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_downloads: NotRequired[bool] - is_template: NotRequired[bool] - team_id: NotRequired[int] - auto_init: NotRequired[bool] - gitignore_template: NotRequired[str] - license_template: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - custom_properties: NotRequired[OrgsOrgReposPostBodyPropCustomPropertiesType] - - -class OrgsOrgReposPostBodyPropCustomPropertiesType(TypedDict): - """OrgsOrgReposPostBodyPropCustomProperties - - The custom properties for the new repository. The keys are the custom property - names, and the values are the corresponding custom property values. - """ - - -__all__ = ( - "OrgsOrgReposPostBodyType", - "OrgsOrgReposPostBodyPropCustomPropertiesType", -) +from typing import List +from typing_extensions import TypedDict + +from .group_0094 import CodespaceType + + +class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" + + total_count: int + codespaces: List[CodespaceType] + + +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) 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 e6fea1177..8a9c0bc90 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0899.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0899.py @@ -9,79 +9,14 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0133 import RepositoryRuleUpdateType -from .group_0157 import RepositoryRuleOneof17Type -from .group_0153 import RepositoryRuleWorkflowsType -from .group_0138 import RepositoryRulePullRequestType -from .group_0129 import OrgRulesetConditionsOneof0Type -from .group_0130 import OrgRulesetConditionsOneof1Type -from .group_0131 import OrgRulesetConditionsOneof2Type -from .group_0155 import RepositoryRuleCodeScanningType -from .group_0120 import RepositoryRulesetBypassActorType -from .group_0150 import RepositoryRuleTagNamePatternType -from .group_0148 import RepositoryRuleBranchNamePatternType -from .group_0136 import RepositoryRuleRequiredDeploymentsType -from .group_0140 import RepositoryRuleRequiredStatusChecksType -from .group_0142 import RepositoryRuleCommitMessagePatternType -from .group_0146 import RepositoryRuleCommitterEmailPatternType -from .group_0144 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0135 import ( - RepositoryRuleOneof15Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0132 import ( - RepositoryRuleOneof14Type, - RepositoryRuleOneof16Type, - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgMembershipsUsernamePutBody""" -class OrgsOrgRulesetsPostBodyType(TypedDict): - """OrgsOrgRulesetsPostBody""" + role: NotRequired[Literal["admin", "member"]] - name: str - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("OrgsOrgRulesetsPostBodyType",) +__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) 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 3697930d4..f222d73fb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0900.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0900.py @@ -9,79 +9,22 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0133 import RepositoryRuleUpdateType -from .group_0157 import RepositoryRuleOneof17Type -from .group_0153 import RepositoryRuleWorkflowsType -from .group_0138 import RepositoryRulePullRequestType -from .group_0129 import OrgRulesetConditionsOneof0Type -from .group_0130 import OrgRulesetConditionsOneof1Type -from .group_0131 import OrgRulesetConditionsOneof2Type -from .group_0155 import RepositoryRuleCodeScanningType -from .group_0120 import RepositoryRulesetBypassActorType -from .group_0150 import RepositoryRuleTagNamePatternType -from .group_0148 import RepositoryRuleBranchNamePatternType -from .group_0136 import RepositoryRuleRequiredDeploymentsType -from .group_0140 import RepositoryRuleRequiredStatusChecksType -from .group_0142 import RepositoryRuleCommitMessagePatternType -from .group_0146 import RepositoryRuleCommitterEmailPatternType -from .group_0144 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0135 import ( - RepositoryRuleOneof15Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0132 import ( - RepositoryRuleOneof14Type, - RepositoryRuleOneof16Type, - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +class OrgsOrgMigrationsPostBodyType(TypedDict): + """OrgsOrgMigrationsPostBody""" -class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): - """OrgsOrgRulesetsRulesetIdPutBody""" + 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"]]] - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) +__all__ = ("OrgsOrgMigrationsPostBodyType",) 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 2bfa5cbd0..174eddcfe 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0901.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0901.py @@ -9,23 +9,16 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsPostBodyType(TypedDict): - """OrgsOrgTeamsPostBody""" +class OrgsOrgOrganizationRolesPostBodyType(TypedDict): + """OrgsOrgOrganizationRolesPostBody""" 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] + permissions: List[str] -__all__ = ("OrgsOrgTeamsPostBodyType",) +__all__ = ("OrgsOrgOrganizationRolesPostBodyType",) 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 19f0b0ccd..7b35bcb3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0902.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0902.py @@ -9,21 +9,16 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugPatchBody""" +class OrgsOrgOrganizationRolesRoleIdPatchBodyType(TypedDict): + """OrgsOrgOrganizationRolesRoleIdPatchBody""" 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]] + permissions: NotRequired[List[str]] -__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) +__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",) 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 81e2f4f67..76bef7987 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0903.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0903.py @@ -12,12 +12,10 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" - title: str - body: str - private: NotRequired[bool] + async_: NotRequired[bool] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) 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 555845d86..5de4170f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0904.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0904.py @@ -9,14 +9,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" - title: NotRequired[str] - body: NotRequired[str] - -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) 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 a05290583..c6b448fef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0905.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0905.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" - body: str + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) 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 a6b974137..606354a4b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0906.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0906.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" - body: str + pat_request_ids: NotRequired[List[int]] + action: Literal["approve", "deny"] + reason: NotRequired[Union[str, None]] -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", -) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) 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 937b98f91..4fc23e50a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0907.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0907.py @@ -9,22 +9,15 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + action: Literal["approve", "deny"] + reason: NotRequired[Union[str, None]] -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) 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 c71526f64..23297838b 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,15 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + action: Literal["revoke"] + pat_ids: List[int] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) 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 2c9744c1c..32c37cd97 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0909.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0909.py @@ -9,13 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" +class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" - group_id: int + action: Literal["revoke"] -__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) 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 3551630af..afad09a25 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0910.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0910.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class OrgsOrgProjectsPostBodyType(TypedDict): + """OrgsOrgProjectsPostBody""" - role: NotRequired[Literal["member", "maintainer"]] + name: str + body: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) +__all__ = ("OrgsOrgProjectsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0911.py b/githubkit/versions/ghec_v2022_11_28/types/group_0911.py index 4e75e8844..8731230e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0911.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0911.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0119 import OrgCustomPropertyType -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - permission: NotRequired[Literal["read", "write", "admin"]] +class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): + """OrgsOrgPropertiesSchemaPatchBody""" + properties: List[OrgCustomPropertyType] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) + +__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) 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 42d481609..fef4a5519 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0912.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0912.py @@ -9,14 +9,18 @@ from __future__ import annotations +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" +class OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType(TypedDict): + """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + value_type: Literal["string", "single_select", "multi_select", "true_false"] + required: NotRequired[bool] + default_value: NotRequired[Union[str, List[str], None]] + description: NotRequired[Union[str, None]] + allowed_values: NotRequired[Union[List[str], None]] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) +__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",) 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 0851e1500..2fb8e673c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0913.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0913.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0120 import CustomPropertyValueType -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - permission: NotRequired[str] +class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): + """OrgsOrgPropertiesValuesPatchBody""" + repository_names: List[str] + properties: List[CustomPropertyValueType] -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) + +__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) 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 be0b0a638..4f19ca86e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0914.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0914.py @@ -9,27 +9,51 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" - - groups: NotRequired[ - List[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] +class OrgsOrgReposPostBodyType(TypedDict): + """OrgsOrgReposPostBody""" + + name: str + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + visibility: NotRequired[Literal["public", "private", "internal"]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_downloads: NotRequired[bool] + is_template: NotRequired[bool] + team_id: NotRequired[int] + auto_init: NotRequired[bool] + gitignore_template: NotRequired[str] + license_template: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + custom_properties: NotRequired[OrgsOrgReposPostBodyPropCustomPropertiesType] -class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType(TypedDict): - """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" +class OrgsOrgReposPostBodyPropCustomPropertiesType(TypedDict): + """OrgsOrgReposPostBodyPropCustomProperties - group_id: str - group_name: str - group_description: str + The custom properties for the new repository. The keys are the custom property + names, and the values are the corresponding custom property values. + """ __all__ = ( - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType", - "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", + "OrgsOrgReposPostBodyType", + "OrgsOrgReposPostBodyPropCustomPropertiesType", ) 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 5ef349fe1..6b0e709f2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0915.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0915.py @@ -9,14 +9,79 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0137 import RepositoryRuleUpdateType +from .group_0161 import RepositoryRuleOneof17Type +from .group_0157 import RepositoryRuleWorkflowsType +from .group_0142 import RepositoryRulePullRequestType +from .group_0133 import OrgRulesetConditionsOneof0Type +from .group_0134 import OrgRulesetConditionsOneof1Type +from .group_0135 import OrgRulesetConditionsOneof2Type +from .group_0159 import RepositoryRuleCodeScanningType +from .group_0124 import RepositoryRulesetBypassActorType +from .group_0154 import RepositoryRuleTagNamePatternType +from .group_0152 import RepositoryRuleBranchNamePatternType +from .group_0140 import RepositoryRuleRequiredDeploymentsType +from .group_0144 import RepositoryRuleRequiredStatusChecksType +from .group_0146 import RepositoryRuleCommitMessagePatternType +from .group_0150 import RepositoryRuleCommitterEmailPatternType +from .group_0148 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0139 import ( + RepositoryRuleOneof15Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0136 import ( + RepositoryRuleOneof14Type, + RepositoryRuleOneof16Type, + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): - """OrgsOrgSecurityProductEnablementPostBody""" - query_suite: NotRequired[Literal["default", "extended"]] +class OrgsOrgRulesetsPostBodyType(TypedDict): + """OrgsOrgRulesetsPostBody""" + name: str + target: NotRequired[Literal["branch", "tag", "push"]] + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + ] + ] + rules: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) + +__all__ = ("OrgsOrgRulesetsPostBodyType",) 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 90b8767cf..d64b0e60c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0916.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0916.py @@ -9,16 +9,79 @@ from __future__ import annotations -from typing import List +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0137 import RepositoryRuleUpdateType +from .group_0161 import RepositoryRuleOneof17Type +from .group_0157 import RepositoryRuleWorkflowsType +from .group_0142 import RepositoryRulePullRequestType +from .group_0133 import OrgRulesetConditionsOneof0Type +from .group_0134 import OrgRulesetConditionsOneof1Type +from .group_0135 import OrgRulesetConditionsOneof2Type +from .group_0159 import RepositoryRuleCodeScanningType +from .group_0124 import RepositoryRulesetBypassActorType +from .group_0154 import RepositoryRuleTagNamePatternType +from .group_0152 import RepositoryRuleBranchNamePatternType +from .group_0140 import RepositoryRuleRequiredDeploymentsType +from .group_0144 import RepositoryRuleRequiredStatusChecksType +from .group_0146 import RepositoryRuleCommitMessagePatternType +from .group_0150 import RepositoryRuleCommitterEmailPatternType +from .group_0148 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0139 import ( + RepositoryRuleOneof15Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0136 import ( + RepositoryRuleOneof14Type, + RepositoryRuleOneof16Type, + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdDeleteResponse403""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[List[str]] +class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): + """OrgsOrgRulesetsRulesetIdPutBody""" + name: NotRequired[str] + target: NotRequired[Literal["branch", "tag", "push"]] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + ] + ] + rules: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) + +__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) 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 201f880aa..2bfa5cbd0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0917.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0917.py @@ -9,15 +9,23 @@ from __future__ import annotations -from typing import Union +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): - """ProjectsColumnsCardsCardIdPatchBody""" +class OrgsOrgTeamsPostBodyType(TypedDict): + """OrgsOrgTeamsPostBody""" - note: NotRequired[Union[str, None]] - archived: NotRequired[bool] + name: str + description: NotRequired[str] + maintainers: NotRequired[List[str]] + repo_names: NotRequired[List[str]] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: NotRequired[Literal["pull", "push"]] + parent_team_id: NotRequired[int] -__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) +__all__ = ("OrgsOrgTeamsPostBodyType",) 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 6ae64aa6a..19f0b0ccd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0918.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0918.py @@ -9,14 +9,21 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugPatchBody""" - position: str - column_id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[str] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: NotRequired[Literal["pull", "push", "admin"]] + parent_team_id: NotRequired[Union[int, None]] -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) 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 7c136f63a..81e2f4f67 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0919.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0919.py @@ -9,11 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" + title: str + body: str + private: NotRequired[bool] -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) + +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) 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 dd0f1fcf5..555845d86 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0920.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0920.py @@ -9,30 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] - ] + title: NotRequired[str] + body: NotRequired[str] -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - resource: NotRequired[str] - field: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403Type", - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) 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 b4b6ae8c8..a05290583 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0921.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0921.py @@ -9,29 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] - ] + body: str -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503Type", - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", -) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) 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 62ebaaaef..a6b974137 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0922.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0922.py @@ -12,10 +12,14 @@ from typing_extensions import TypedDict -class ProjectsColumnsColumnIdPatchBodyType(TypedDict): - """ProjectsColumnsColumnIdPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( + TypedDict +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - name: str + body: str -__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", +) 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 1fdc1bf2e..937b98f91 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0923.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0923.py @@ -9,14 +9,22 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import TypedDict -class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ - note: Union[str, None] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", +) 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 93c271e2e..c71526f64 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0924.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0924.py @@ -9,14 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" - content_id: int - content_type: str + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) 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 ff00e5f62..2c9744c1c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0925.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0925.py @@ -9,29 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503""" +class OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugExternalGroupsPatchBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] - ] + group_id: int -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503Type", - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", -) +__all__ = ("OrgsOrgTeamsTeamSlugExternalGroupsPatchBodyType",) 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 1eee63273..3551630af 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0926.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0926.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): - """ProjectsColumnsColumnIdMovesPostBody""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - position: str + role: NotRequired[Literal["member", "maintainer"]] -__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) 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 7df563c61..4e75e8844 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0927.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0927.py @@ -9,11 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsColumnIdMovesPostResponse201""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) + +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) 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 9109dd1f5..42d481609 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0928.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0928.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdDeleteResponse403Type(TypedDict): - """ProjectsProjectIdDeleteResponse403""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" message: NotRequired[str] documentation_url: NotRequired[str] - errors: NotRequired[List[str]] -__all__ = ("ProjectsProjectIdDeleteResponse403Type",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) 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 c0a6113f3..0851e1500 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0929.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0929.py @@ -9,18 +9,13 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdPatchBodyType(TypedDict): - """ProjectsProjectIdPatchBody""" +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - name: NotRequired[str] - body: NotRequired[Union[str, None]] - state: NotRequired[str] - organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] - private: NotRequired[bool] + permission: NotRequired[str] -__all__ = ("ProjectsProjectIdPatchBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) 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 86724eccf..be0b0a638 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0930.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0930.py @@ -13,12 +13,23 @@ from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdPatchResponse403Type(TypedDict): - """ProjectsProjectIdPatchResponse403""" +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[List[str]] + groups: NotRequired[ + List[OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] + ] -__all__ = ("ProjectsProjectIdPatchResponse403Type",) +class OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType(TypedDict): + """OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItems""" + + group_id: str + group_name: str + group_description: str + + +__all__ = ( + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyType", + "OrgsOrgTeamsTeamSlugTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0931.py b/githubkit/versions/ghec_v2022_11_28/types/group_0931.py index 42de766b0..5ef349fe1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0931.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0931.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): + """OrgsOrgSecurityProductEnablementPostBody""" - permission: NotRequired[Literal["read", "write", "admin"]] + query_suite: NotRequired[Literal["default", "extended"]] -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) +__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) 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 8c02d8953..90b8767cf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0932.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0932.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdColumnsPostBodyType(TypedDict): - """ProjectsProjectIdColumnsPostBody""" +class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdDeleteResponse403""" - name: str + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[List[str]] -__all__ = ("ProjectsProjectIdColumnsPostBodyType",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) 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 f63d55222..201f880aa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0933.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0933.py @@ -9,14 +9,15 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDeleteResponse403Type(TypedDict): - """ReposOwnerRepoDeleteResponse403""" +class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): + """ProjectsColumnsCardsCardIdPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + note: NotRequired[Union[str, None]] + archived: NotRequired[bool] -__all__ = ("ReposOwnerRepoDeleteResponse403Type",) +__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) 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 0d09bf2be..6ae64aa6a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0934.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0934.py @@ -9,133 +9,14 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPatchBodyType(TypedDict): - """ReposOwnerRepoPatchBody""" +class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostBody""" - 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] + position: str + column_id: NotRequired[int] -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis - - Specify which security and analysis features to enable or disable for the - repository. - - To use this parameter, you must have admin permissions for the repository or be - an owner or security manager for the organization that owns the repository. For - more information, see "[Managing security managers in your - organization](https://docs.github.com/enterprise- - cloud@latest//organizations/managing-peoples-access-to-your-organization-with- - roles/managing-security-managers-in-your-organization)." - - For example, to enable GitHub Advanced Security, use this data in the body of - the `PATCH` request: - `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. - - You can check which security and analysis features are currently enabled by - using a `GET /repos/{owner}/{repo}` request. - """ - - advanced_security: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType - ] - secret_scanning: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType - ] - secret_scanning_push_protection: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType - ] - secret_scanning_validity_checks: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType - ] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - - Use the `status` property to enable or disable secret scanning for this - repository. For more information, see "[About secret scanning](/code- - security/secret-security/about-secret-scanning)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks - - Use the `status` property to enable or disable secret scanning automatic - validity checks on supported partner tokens for this repository. - """ - - status: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoPatchBodyType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType", -) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) 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 ad01422db..7c136f63a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0935.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0935.py @@ -9,17 +9,11 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -from .group_0177 import ArtifactType +class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" -class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsArtifactsGetResponse200""" - total_count: int - artifacts: List[ArtifactType] - - -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) 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 2956c520b..dd0f1fcf5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0936.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0936.py @@ -9,13 +9,30 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" +class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" - enable_debug_logging: NotRequired[bool] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] + ] -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" + + code: NotRequired[str] + message: NotRequired[str] + resource: NotRequired[str] + field: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403Type", + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", +) 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 47a8c99be..b4b6ae8c8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0937.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0937.py @@ -13,14 +13,25 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): - """Actions OIDC subject customization for a repository +class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503""" - Actions OIDC subject customization for a repository - """ + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] + ] - use_default: bool - include_claim_keys: NotRequired[List[str]] +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) + code: NotRequired[str] + message: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse503Type", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", +) 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 526f0e18b..62ebaaaef 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0938.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0938.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -from .group_0181 import ActionsSecretType +class ProjectsColumnsColumnIdPatchBodyType(TypedDict): + """ProjectsColumnsColumnIdPatchBody""" -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + name: str - total_count: int - secrets: List[ActionsSecretType] - -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) +__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) 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 a24151d8d..1fdc1bf2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0939.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0939.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List +from typing import Union from typing_extensions import TypedDict -from .group_0182 import ActionsVariableType +class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + note: Union[str, None] - total_count: int - variables: List[ActionsVariableType] - -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) 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 a82dcbc99..93c271e2e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0940.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0940.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): - """ReposOwnerRepoActionsPermissionsPutBody""" +class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + content_id: int + content_type: str -__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) 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 402ca4b69..ff00e5f62 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0941.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0941.py @@ -10,16 +10,28 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0034 import RunnerType +class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503""" -class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunnersGetResponse200""" + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] + ] - total_count: int - runners: List[RunnerType] +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) + code: NotRequired[str] + message: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsColumnIdCardsPostResponse503Type", + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", +) 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 97ef4a4a4..1eee63273 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0942.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0942.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" +class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): + """ProjectsColumnsColumnIdMovesPostBody""" - name: str - runner_group_id: int - labels: List[str] - work_folder: NotRequired[str] + position: str -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) +__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) 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 cfeabe90a..7df563c61 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0943.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0943.py @@ -9,14 +9,11 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsColumnIdMovesPostResponse201""" - labels: List[str] - -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) 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 1162ab0c2..9109dd1f5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0944.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0944.py @@ -10,13 +10,15 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" +class ProjectsProjectIdDeleteResponse403Type(TypedDict): + """ProjectsProjectIdDeleteResponse403""" - labels: List[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) +__all__ = ("ProjectsProjectIdDeleteResponse403Type",) 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 93bd0d452..c0a6113f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0945.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0945.py @@ -9,17 +9,18 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0187 import WorkflowRunType +class ProjectsProjectIdPatchBodyType(TypedDict): + """ProjectsProjectIdPatchBody""" -class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsGetResponse200""" + name: NotRequired[str] + body: NotRequired[Union[str, None]] + state: NotRequired[str] + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] - total_count: int - workflow_runs: List[WorkflowRunType] - -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) +__all__ = ("ProjectsProjectIdPatchBodyType",) 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 eedf9ddff..86724eccf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0946.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0946.py @@ -10,16 +10,15 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0177 import ArtifactType +class ProjectsProjectIdPatchResponse403Type(TypedDict): + """ProjectsProjectIdPatchResponse403""" -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[List[str]] - total_count: int - artifacts: List[ArtifactType] - -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) +__all__ = ("ProjectsProjectIdPatchResponse403Type",) 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 413f9ee8c..42de766b0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0947.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0947.py @@ -9,19 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -from .group_0179 import JobType +class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" + permission: NotRequired[Literal["read", "write", "admin"]] - total_count: int - jobs: List[JobType] - -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) 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 d33f1a21a..8c02d8953 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0948.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0948.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -from .group_0179 import JobType +class ProjectsProjectIdColumnsPostBodyType(TypedDict): + """ProjectsProjectIdColumnsPostBody""" -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" + name: str - total_count: int - jobs: List[JobType] - -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) +__all__ = ("ProjectsProjectIdColumnsPostBodyType",) 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 88fd8a6dd..f63d55222 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0949.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0949.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" +class ReposOwnerRepoDeleteResponse403Type(TypedDict): + """ReposOwnerRepoDeleteResponse403""" - environment_ids: List[int] - state: Literal["approved", "rejected"] - comment: str + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) +__all__ = ("ReposOwnerRepoDeleteResponse403Type",) 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 c33d4529b..63ade159b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0950.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0950.py @@ -9,13 +9,152 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ReposOwnerRepoPatchBodyType(TypedDict): + """ReposOwnerRepoPatchBody""" - enable_debug_logging: NotRequired[bool] + name: NotRequired[str] + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + visibility: NotRequired[Literal["public", "private", "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__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis + + Specify which security and analysis features to enable or disable for the + repository. + + To use this parameter, you must have admin permissions for the repository or be + an owner or security manager for the organization that owns the repository. For + more information, see "[Managing security managers in your + organization](https://docs.github.com/enterprise- + cloud@latest//organizations/managing-peoples-access-to-your-organization-with- + roles/managing-security-managers-in-your-organization)." + + For example, to enable GitHub Advanced Security, use this data in the body of + the `PATCH` request: + `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. + + You can check which security and analysis features are currently enabled by + using a `GET /repos/{owner}/{repo}` request. + """ + + advanced_security: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType + ] + secret_scanning: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType + ] + secret_scanning_push_protection: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType + ] + secret_scanning_non_provider_patterns: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType + ] + secret_scanning_validity_checks: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType + ] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + + Use the `status` property to enable or disable GitHub Advanced Security for this + repository. For more information, see "[About GitHub Advanced + Security](/github/getting-started-with-github/learning-about-github/about- + github-advanced-security)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + + Use the `status` property to enable or disable secret scanning for this + repository. For more information, see "[About secret scanning](/code- + security/secret-security/about-secret-scanning)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + + Use the `status` property to enable or disable secret scanning push protection + for this repository. For more information, see "[Protecting pushes with secret + scanning](/code-security/secret-scanning/protecting-pushes-with-secret- + scanning)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns + + Use the `status` property to enable or disable secret scanning non-provider + patterns for this repository. For more information, see "[Secret scanning + supported secrets](/code-security/secret-scanning/secret-scanning- + patterns#supported-secrets)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecks + + Use the `status` property to enable or disable secret scanning automatic + validity checks on supported partner tokens for this repository. + """ + + status: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoPatchBodyType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningValidityChecksType", +) 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 1160daba0..969b2d557 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0951.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0951.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0181 import ArtifactType -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - enable_debug_logging: NotRequired[bool] +class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsArtifactsGetResponse200""" + total_count: int + artifacts: List[ArtifactType] -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) 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 a0eef11d6..2956c520b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0952.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0952.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0181 import ActionsSecretType +class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" -class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsSecretsGetResponse200""" + enable_debug_logging: NotRequired[bool] - total_count: int - secrets: List[ActionsSecretType] - -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) 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 c1ad71389..47a8c99be 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0953.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0953.py @@ -9,14 +9,18 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): + """Actions OIDC subject customization for a repository - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + Actions OIDC subject customization for a repository + """ + use_default: bool + include_claim_keys: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) + +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) 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 cc2636bc2..8069668e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0954.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0954.py @@ -12,14 +12,14 @@ from typing import List from typing_extensions import TypedDict -from .group_0182 import ActionsVariableType +from .group_0185 import ActionsSecretType -class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsVariablesGetResponse200""" +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" total_count: int - variables: List[ActionsVariableType] + secrets: List[ActionsSecretType] -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) 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 a5b1bcda1..995c55459 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0955.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0955.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0186 import ActionsVariableType -class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesPostBody""" - name: str - value: str +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + total_count: int + variables: List[ActionsVariableType] -__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) 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 ad7d7d522..a82dcbc99 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0956.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0956.py @@ -9,14 +9,15 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesNamePatchBody""" +class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): + """ReposOwnerRepoActionsPermissionsPutBody""" - name: NotRequired[str] - value: NotRequired[str] + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) 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 20e7c3509..402ca4b69 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0957.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0957.py @@ -9,40 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0034 import RunnerType -class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" + +class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunnersGetResponse200""" total_count: int - workflows: List[WorkflowType] - - -class WorkflowType(TypedDict): - """Workflow - - A GitHub Actions workflow - """ - - id: int - node_id: str - name: str - path: str - state: Literal[ - "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" - ] - created_at: datetime - updated_at: datetime - url: str - html_url: str - badge_url: str - deleted_at: NotRequired[datetime] - - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200Type", - "WorkflowType", -) + runners: List[RunnerType] + + +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) 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 08a15748d..97ef4a4a4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0958.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0958.py @@ -9,30 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" - ref: str - inputs: NotRequired[ - ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType - ] + name: str + runner_group_id: int + labels: List[str] + work_folder: NotRequired[str] -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType( - TypedDict -): - """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__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", -) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) 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 fddb9b660..cfeabe90a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0959.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0959.py @@ -12,14 +12,11 @@ from typing import List from typing_extensions import TypedDict -from .group_0187 import WorkflowRunType +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + labels: List[str] - total_count: int - workflow_runs: List[WorkflowRunType] - -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) 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 a77eacf3e..1162ab0c2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0960.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0960.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoAutolinksPostBodyType(TypedDict): - """ReposOwnerRepoAutolinksPostBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - key_prefix: str - url_template: str - is_alphanumeric: NotRequired[bool] + labels: List[str] -__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) 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 5daf56489..cff2eb987 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0961.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0961.py @@ -9,132 +9,17 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0191 import WorkflowRunType -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 ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsGetResponse200""" + total_count: int + workflow_runs: List[WorkflowRunType] -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks - Require status checks to pass before merging. Set to `null` to disable. - """ - - strict: bool - contexts: List[str] - checks: NotRequired[ - List[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType - ] - ] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI - tems - """ - - context: str - app_id: NotRequired[int] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews - - Require at least one approving review on a pull request, before merging. Set to - `null` to disable. - """ - - dismissal_restrictions: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType - ] - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - bypass_pull_request_allowances: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType - ] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD - ismissalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: NotRequired[List[str]] - teams: NotRequired[List[str]] - apps: NotRequired[List[str]] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB - ypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: NotRequired[List[str]] - teams: NotRequired[List[str]] - apps: NotRequired[List[str]] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - - Restrict who can push to the protected branch. User, app, and team - `restrictions` are only available for organization-owned repositories. Set to - `null` to disable. - """ - - users: List[str] - teams: List[str] - apps: NotRequired[List[str]] - - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBodyType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", -) +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) 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 d51a66b7c..6f41fb3df 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0962.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0962.py @@ -10,59 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0181 import ArtifactType -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - dismissal_restrictions: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType - ] - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - bypass_pull_request_allowances: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType - ] +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + total_count: int + artifacts: List[ArtifactType] -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: NotRequired[List[str]] - teams: NotRequired[List[str]] - apps: NotRequired[List[str]] - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: NotRequired[List[str]] - teams: NotRequired[List[str]] - apps: NotRequired[List[str]] - - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) 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 39cfa7c56..0e284f356 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0963.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0963.py @@ -10,35 +10,18 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict - -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - - strict: NotRequired[bool] - contexts: NotRequired[List[str]] - checks: NotRequired[ - List[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType - ] - ] +from .group_0183 import JobType -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms - """ + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" - context: str - app_id: NotRequired[int] + total_count: int + jobs: List[JobType] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) 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 f36c7fdb0..54f6807d1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0964.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0964.py @@ -12,19 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0183 import JobType -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" - contexts: List[str] + total_count: int + jobs: List[JobType] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) 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 b350535de..88fd8a6dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0965.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0965.py @@ -9,22 +9,16 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - Examples: - {'contexts': ['contexts']} - """ + environment_ids: List[int] + state: Literal["approved", "rejected"] + comment: str - contexts: List[str] - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) 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 2d802b1fa..c33d4529b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0966.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0966.py @@ -9,23 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 +class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - Examples: - {'contexts': ['contexts']} - """ + enable_debug_logging: NotRequired[bool] - contexts: List[str] - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) 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 ad870a329..1160daba0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0967.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0967.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - Examples: - {'apps': ['my-app']} - """ + enable_debug_logging: NotRequired[bool] - apps: List[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) 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 633ffe55f..45a987ba8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0968.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0968.py @@ -12,17 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0185 import ActionsSecretType -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 - Examples: - {'apps': ['my-app']} - """ +class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsSecretsGetResponse200""" - apps: List[str] + total_count: int + secrets: List[ActionsSecretType] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) 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 0e54dbe56..c1ad71389 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0969.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0969.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 +class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - Examples: - {'apps': ['my-app']} - """ + encrypted_value: NotRequired[str] + key_id: NotRequired[str] - apps: List[str] - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) 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 c8d87b3e2..2dcd4a8e0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0970.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0970.py @@ -12,17 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0186 import ActionsVariableType -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 - Examples: - {'teams': ['justice-league']} - """ +class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsVariablesGetResponse200""" - teams: List[str] + total_count: int + variables: List[ActionsVariableType] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) 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 8ec4d5ff7..a5b1bcda1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0971.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0971.py @@ -9,20 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 +class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesPostBody""" - Examples: - {'teams': ['my-team']} - """ + name: str + value: str - teams: List[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) 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 4c0d1741f..ad7d7d522 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0972.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0972.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 +class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesNamePatchBody""" - Examples: - {'teams': ['my-team']} - """ + name: NotRequired[str] + value: NotRequired[str] - teams: List[str] - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) 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 d1f4b8ce2..20e7c3509 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0973.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0973.py @@ -9,20 +9,40 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 +class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" + + total_count: int + workflows: List[WorkflowType] - Examples: - {'users': ['mona']} - """ - users: List[str] +class WorkflowType(TypedDict): + """Workflow + A GitHub Actions workflow + """ -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type",) + 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_0974.py b/githubkit/versions/ghec_v2022_11_28/types/group_0974.py index 26651df87..08a15748d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0974.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0974.py @@ -9,20 +9,30 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type( +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" + + ref: str + inputs: NotRequired[ + ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType + ] + + +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - Examples: - {'users': ['mona']} + 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. """ - users: List[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type",) +__all__ = ( + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", +) 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 20edcde18..d05bc64e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0975.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0975.py @@ -12,19 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0191 import WorkflowRunType -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 - Examples: - {'users': ['mona']} - """ +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" - users: List[str] + total_count: int + workflow_runs: List[WorkflowRunType] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) 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 b46802659..12bc802f9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0976.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0976.py @@ -9,13 +9,46 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoAttestationsPostBodyType(TypedDict): + """ReposOwnerRepoAttestationsPostBody""" - new_name: str + bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) +class ReposOwnerRepoAttestationsPostBodyPropBundleType(TypedDict): + """ReposOwnerRepoAttestationsPostBodyPropBundle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: NotRequired[str] + verification_material: NotRequired[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType + ] + + +class ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType( + TypedDict +): + """ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial""" + + +class ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType(TypedDict): + """ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope""" + + +__all__ = ( + "ReposOwnerRepoAttestationsPostBodyType", + "ReposOwnerRepoAttestationsPostBodyPropBundleType", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0977.py b/githubkit/versions/ghec_v2022_11_28/types/group_0977.py index 78164b5f0..65a2e6e51 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0977.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0977.py @@ -9,62 +9,13 @@ from __future__ import annotations -from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutput +class ReposOwnerRepoAttestationsPostResponse201Type(TypedDict): + """ReposOwnerRepoAttestationsPostResponse201""" - 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. - """ + id: NotRequired[int] - title: str - summary: str - text: NotRequired[str] - annotations: NotRequired[ - List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType] - ] - images: NotRequired[ - List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType] - ] - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" - - path: str - start_line: int - end_line: int - start_column: NotRequired[int] - end_column: NotRequired[int] - annotation_level: Literal["notice", "warning", "failure"] - message: str - title: NotRequired[str] - raw_details: NotRequired[str] - - -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" - - alt: str - image_url: str - caption: NotRequired[str] - - -class ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" - - label: str - description: str - identifier: str - - -__all__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropOutputType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", -) +__all__ = ("ReposOwnerRepoAttestationsPostResponse201Type",) 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 9553f4ff7..dcefb1572 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0978.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0978.py @@ -9,38 +9,72 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0977 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutputType, - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, -) + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type(TypedDict): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" + + attestations: NotRequired[ + List[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType + ] + ] + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType + ] + repository_id: NotRequired[int] -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", +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 ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] + dsse_envelope: NotRequired[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType + ] + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndlePropVerificationMaterial + """ -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndlePropDsseEnvelope + """ + + +__all__ = ( + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", +) 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 90d3301cd..a77eacf3e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0979.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0979.py @@ -9,40 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0977 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutputType, - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, -) - - -class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" - - name: str - head_sha: str - details_url: NotRequired[str] - external_id: NotRequired[str] - status: NotRequired[Literal["queued", "in_progress"]] - started_at: NotRequired[datetime] - conclusion: NotRequired[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] - - -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) + +class ReposOwnerRepoAutolinksPostBodyType(TypedDict): + """ReposOwnerRepoAutolinksPostBody""" + + key_prefix: str + url_template: str + is_alphanumeric: NotRequired[bool] + + +__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) 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 f4f9ec07a..5daf56489 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0980.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0980.py @@ -9,68 +9,132 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput +class ReposOwnerRepoBranchesBranchProtectionPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionPutBody""" - 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. + 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. """ - title: NotRequired[str] - summary: str - text: NotRequired[str] - annotations: NotRequired[ + strict: bool + contexts: List[str] + checks: NotRequired[ List[ - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType ] ] - images: NotRequired[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] + + +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 ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType( +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType( TypedDict ): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + """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. + """ - 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] + users: NotRequired[List[str]] + teams: NotRequired[List[str]] + apps: NotRequired[List[str]] -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType( +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( TypedDict ): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB + ypassPullRequestAllowances - alt: str - image_url: str - caption: NotRequired[str] + Allow specific users, teams, or apps to bypass pull request requirements. + """ + users: NotRequired[List[str]] + teams: NotRequired[List[str]] + apps: NotRequired[List[str]] -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" - label: str - description: str - identifier: 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__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", ) 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 f06f8af23..d51a66b7c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0981.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0981.py @@ -9,39 +9,60 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0980 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, -) +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" -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", + dismissal_restrictions: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] - actions: NotRequired[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + dismiss_stale_reviews: NotRequired[bool] + require_code_owner_reviews: NotRequired[bool] + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] + bypass_pull_request_allowances: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType ] -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: NotRequired[List[str]] + teams: NotRequired[List[str]] + apps: NotRequired[List[str]] + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: NotRequired[List[str]] + teams: NotRequired[List[str]] + apps: NotRequired[List[str]] + + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", +) 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 95dc369ce..39cfa7c56 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0982.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0982.py @@ -9,41 +9,36 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0980 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, -) +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" -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", + strict: NotRequired[bool] + contexts: NotRequired[List[str]] + checks: NotRequired[ + List[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType ] ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] - actions: NotRequired[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] - ] -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms + """ + + context: str + app_id: NotRequired[int] + + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", +) 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 5d8ac49c1..f36c7fdb0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0983.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0983.py @@ -9,13 +9,22 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict -class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 - head_sha: str + Examples: + {'contexts': ['contexts']} + """ + contexts: List[str] -__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", +) 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 ef98987e3..b350535de 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0984.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0984.py @@ -10,29 +10,21 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - - auto_trigger_checks: NotRequired[ - List[ - ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType - ] - ] - - -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( TypedDict ): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 + + Examples: + {'contexts': ['contexts']} + """ - app_id: int - setting: bool + contexts: List[str] __all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", ) 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 c2178c0b1..2d802b1fa 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0985.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0985.py @@ -12,14 +12,20 @@ from typing import List from typing_extensions import TypedDict -from .group_0213 import CheckRunType +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + Examples: + {'contexts': ['contexts']} + """ - total_count: int - check_runs: List[CheckRunType] + contexts: List[str] -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", +) 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 aa6436005..ad870a329 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0986.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0986.py @@ -9,18 +9,20 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 - state: Literal["open", "dismissed"] - dismissed_reason: NotRequired[ - Union[None, Literal["false positive", "won't fix", "used in tests"]] - ] - dismissed_comment: NotRequired[Union[str, None]] + Examples: + {'apps': ['my-app']} + """ + apps: List[str] -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type",) 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 aae1919ec..633ffe55f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0987.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0987.py @@ -9,20 +9,20 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] - query_pack: str - repositories: List[str] - repository_lists: NotRequired[List[str]] - repository_owners: NotRequired[List[str]] + Examples: + {'apps': ['my-app']} + """ + apps: List[str] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type",) 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 9793471ab..0e54dbe56 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0988.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0988.py @@ -9,20 +9,22 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] - query_pack: str - repositories: NotRequired[List[str]] - repository_lists: List[str] - repository_owners: NotRequired[List[str]] + Examples: + {'apps': ['my-app']} + """ + apps: List[str] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type", +) 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 bea5490c7..c8d87b3e2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0989.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0989.py @@ -9,20 +9,20 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] - query_pack: str - repositories: NotRequired[List[str]] - repository_lists: NotRequired[List[str]] - repository_owners: List[str] + Examples: + {'teams': ['justice-league']} + """ + teams: List[str] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) 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 5cd0c722e..8ec4d5ff7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0990.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0990.py @@ -9,20 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): - """ReposOwnerRepoCodeScanningSarifsPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 - commit_sha: str - ref: str - sarif: str - checkout_uri: NotRequired[str] - started_at: NotRequired[datetime] - tool_name: NotRequired[str] - validate_: NotRequired[bool] + Examples: + {'teams': ['my-team']} + """ + teams: List[str] -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) 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 12d6ea4b0..4c0d1741f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0991.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0991.py @@ -12,14 +12,19 @@ from typing import List from typing_extensions import TypedDict -from .group_0089 import CodespaceType +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 -class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesGetResponse200""" + Examples: + {'teams': ['my-team']} + """ - total_count: int - codespaces: List[CodespaceType] + teams: List[str] -__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", +) 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 ded7468cd..d1f4b8ce2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0992.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0992.py @@ -9,24 +9,20 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoCodespacesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 - ref: NotRequired[str] - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - client_ip: NotRequired[str] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - multi_repo_permissions_opt_out: NotRequired[bool] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - display_name: NotRequired[str] - retention_period_minutes: NotRequired[int] + Examples: + {'users': ['mona']} + """ + users: List[str] -__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type",) 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 aae507935..26651df87 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0993.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0993.py @@ -10,29 +10,19 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - - total_count: int - devcontainers: List[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType - ] - - -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type( TypedDict ): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 + + Examples: + {'users': ['mona']} + """ - path: str - name: NotRequired[str] - display_name: NotRequired[str] + users: List[str] -__all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type",) 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 16cf51060..20edcde18 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0994.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0994.py @@ -12,14 +12,19 @@ from typing import List from typing_extensions import TypedDict -from .group_0088 import CodespaceMachineType +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 -class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" + Examples: + {'users': ['mona']} + """ - total_count: int - machines: List[CodespaceMachineType] + users: List[str] -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type", +) 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 a33cbd9bf..b46802659 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0995.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0995.py @@ -9,27 +9,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType +class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchRenamePostBody""" -class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200""" + new_name: str - billable_owner: NotRequired[SimpleUserType] - defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] - -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - - location: str - devcontainer_path: Union[str, None] - - -__all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200Type", - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", -) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) 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 4c82ea53d..78164b5f0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0996.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0996.py @@ -9,30 +9,62 @@ from __future__ import annotations -from typing import List -from datetime import datetime -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" +class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutput - total_count: int - secrets: List[RepoCodespacesSecretType] + 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 RepoCodespacesSecretType(TypedDict): - """Codespaces Secret - Set repository secrets for GitHub Codespaces. - """ +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""" - name: str - created_at: datetime - updated_at: datetime + label: str + description: str + identifier: str __all__ = ( - "ReposOwnerRepoCodespacesSecretsGetResponse200Type", - "RepoCodespacesSecretType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", ) 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 127388d30..999f9bc99 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0997.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0997.py @@ -9,14 +9,38 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired - -class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - - -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) +from .group_0996 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutputType, + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, +) + + +class ReposOwnerRepoCheckRunsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" + + name: str + head_sha: str + details_url: NotRequired[str] + external_id: NotRequired[str] + status: Literal["completed"] + started_at: NotRequired[datetime] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] + + +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_0998.py b/githubkit/versions/ghec_v2022_11_28/types/group_0998.py index 3048a3c3a..1e7fa356e 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,40 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired - -class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" - - permission: NotRequired[str] - - -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) +from .group_0996 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutputType, + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, +) + + +class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" + + name: str + head_sha: str + details_url: NotRequired[str] + external_id: NotRequired[str] + status: NotRequired[Literal["queued", "in_progress"]] + started_at: NotRequired[datetime] + conclusion: NotRequired[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] + + +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) 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 25f26d78b..f4f9ec07a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_0999.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_0999.py @@ -9,13 +9,68 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - body: str + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ + title: NotRequired[str] + summary: str + text: NotRequired[str] + annotations: NotRequired[ + List[ + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType + ] + ] + images: NotRequired[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] + ] -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType( + TypedDict +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + + path: str + start_line: int + end_line: int + start_column: NotRequired[int] + end_column: NotRequired[int] + annotation_level: Literal["notice", "warning", "failure"] + message: str + title: NotRequired[str] + raw_details: NotRequired[str] + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType( + TypedDict +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" + + alt: str + image_url: str + caption: NotRequired[str] + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + + label: str + description: str + identifier: str + + +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1000.py b/githubkit/versions/ghec_v2022_11_28/types/group_1000.py index ce91eec32..640b3987f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1000.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1000.py @@ -9,16 +9,39 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict - - -class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0999 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, +) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" + + name: NotRequired[str] + details_url: NotRequired[str] + external_id: NotRequired[str] + started_at: NotRequired[datetime] + status: NotRequired[Literal["completed"]] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] + actions: NotRequired[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] ] -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) 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 64def9673..980b2fec0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1001.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1001.py @@ -9,16 +9,41 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired - -class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - - body: str - path: NotRequired[str] - position: NotRequired[int] - line: NotRequired[int] - - -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) +from .group_0999 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, +) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" + + name: NotRequired[str] + details_url: NotRequired[str] + external_id: NotRequired[str] + started_at: NotRequired[datetime] + status: NotRequired[Literal["queued", "in_progress"]] + conclusion: NotRequired[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] + actions: NotRequired[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + ] + + +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1002.py b/githubkit/versions/ghec_v2022_11_28/types/group_1002.py index c149143ca..5d8ac49c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1002.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1002.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -from .group_0213 import CheckRunType +class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPostBody""" -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + head_sha: str - total_count: int - check_runs: List[CheckRunType] - -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) 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 2242ad973..ef98987e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1003.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1003.py @@ -9,45 +9,30 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoContentsPathPutBodyType(TypedDict): - """ReposOwnerRepoContentsPathPutBody""" +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - message: str - content: str - sha: NotRequired[str] - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] + auto_trigger_checks: NotRequired[ + List[ + ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType + ] + ] -class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathPutBodyPropCommitter +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( + TypedDict +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - 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] + app_id: int + setting: bool __all__ = ( - "ReposOwnerRepoContentsPathPutBodyType", - "ReposOwnerRepoContentsPathPutBodyPropCommitterType", - "ReposOwnerRepoContentsPathPutBodyPropAuthorType", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", ) 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 952a58aa5..735828db4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1004.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1004.py @@ -9,41 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0217 import CheckRunType -class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBody""" - message: str - sha: str - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + total_count: int + check_runs: List[CheckRunType] -class ReposOwnerRepoContentsPathDeleteBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - object containing information about the committer. - """ - - name: NotRequired[str] - email: NotRequired[str] - - -class ReposOwnerRepoContentsPathDeleteBodyPropAuthorType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - - object containing information about the author. - """ - - name: NotRequired[str] - email: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoContentsPathDeleteBodyType", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", - "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", -) +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) 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 e6000744d..aa6436005 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1005.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1005.py @@ -9,20 +9,18 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" - state: Literal["dismissed", "open"] + state: Literal["open", "dismissed"] dismissed_reason: NotRequired[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] + Union[None, Literal["false positive", "won't fix", "used in tests"]] ] - dismissed_comment: NotRequired[str] + dismissed_comment: NotRequired[Union[str, None]] -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) 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 b01790e23..aae1919ec 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1006.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1006.py @@ -9,30 +9,20 @@ from __future__ import annotations -from typing import List -from datetime import datetime -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoDependabotSecretsGetResponse200""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" - total_count: int - secrets: List[DependabotSecretType] + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] + query_pack: str + repositories: List[str] + repository_lists: NotRequired[List[str]] + repository_owners: NotRequired[List[str]] -class DependabotSecretType(TypedDict): - """Dependabot Secret - - Set secrets for Dependabot. - """ - - name: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "ReposOwnerRepoDependabotSecretsGetResponse200Type", - "DependabotSecretType", -) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) 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 b77f06192..9793471ab 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1007.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1007.py @@ -9,14 +9,20 @@ from __future__ import annotations +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] + query_pack: str + repositories: NotRequired[List[str]] + repository_lists: List[str] + repository_owners: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) 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 6e9243ec2..bea5490c7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1008.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1008.py @@ -9,16 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" - id: int - created_at: str - result: str - message: str + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] + query_pack: str + repositories: NotRequired[List[str]] + repository_lists: NotRequired[List[str]] + repository_owners: List[str] -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) 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 614766fa1..5cd0c722e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1009.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1009.py @@ -9,31 +9,20 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsPostBody""" +class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): + """ReposOwnerRepoCodeScanningSarifsPostBody""" + commit_sha: 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] - - -class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type(TypedDict): - """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" - - -__all__ = ( - "ReposOwnerRepoDeploymentsPostBodyType", - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", -) + sarif: str + checkout_uri: NotRequired[str] + started_at: NotRequired[datetime] + tool_name: NotRequired[str] + validate_: NotRequired[bool] + + +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) 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 31c81fc99..50a255805 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1010.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1010.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0094 import CodespaceType -class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): - """ReposOwnerRepoDeploymentsPostResponse202""" - message: NotRequired[str] +class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesGetResponse200""" + total_count: int + codespaces: List[CodespaceType] -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) + +__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) 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 bf2c3b692..ded7468cd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1011.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1011.py @@ -13,18 +13,20 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - - state: Literal[ - "error", "failure", "inactive", "in_progress", "queued", "pending", "success" - ] - target_url: NotRequired[str] - log_url: NotRequired[str] - description: NotRequired[str] - environment: NotRequired[str] - environment_url: NotRequired[str] - auto_inactive: NotRequired[bool] - - -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) +class ReposOwnerRepoCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoCodespacesPostBody""" + + ref: NotRequired[str] + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] + + +__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) 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 28590d115..aae507935 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1012.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1012.py @@ -9,25 +9,30 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoDispatchesPostBody""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - event_type: str - client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] + total_count: int + devcontainers: List[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType + ] -class ReposOwnerRepoDispatchesPostBodyPropClientPayloadType(TypedDict): - """ReposOwnerRepoDispatchesPostBodyPropClientPayload +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( + TypedDict +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" - 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. - """ + path: str + name: NotRequired[str] + display_name: NotRequired[str] __all__ = ( - "ReposOwnerRepoDispatchesPostBodyType", - "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", ) 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 1fbd236e5..27508a27a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1013.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1013.py @@ -9,38 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0264 import DeploymentBranchPolicySettingsType +from .group_0093 import CodespaceMachineType -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" +class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" - wait_timer: NotRequired[int] - prevent_self_review: NotRequired[bool] - reviewers: NotRequired[ - Union[ - List[ - ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType - ], - None, - ] - ] - deployment_branch_policy: NotRequired[ - Union[DeploymentBranchPolicySettingsType, None] - ] + total_count: int + machines: List[CodespaceMachineType] -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" - - type: NotRequired[Literal["User", "Team"]] - id: NotRequired[int] - - -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", -) +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) 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 b65e8765b..a33cbd9bf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1014.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1014.py @@ -9,32 +9,27 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - total_count: int - branch_policies: List[DeploymentBranchPolicyType] +class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200""" + billable_owner: NotRequired[SimpleUserType] + defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] -class DeploymentBranchPolicyType(TypedDict): - """Deployment branch policy - Details of a deployment branch or tag policy. - """ +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - type: NotRequired[Literal["branch", "tag"]] + location: str + devcontainer_path: Union[str, None] __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", - "DeploymentBranchPolicyType", + "ReposOwnerRepoCodespacesNewGetResponse200Type", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", ) 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 aa86463eb..4c82ea53d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1015.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1015.py @@ -9,17 +9,30 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from datetime import datetime +from typing_extensions import TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" +class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" - integration_id: NotRequired[int] + total_count: int + secrets: List[RepoCodespacesSecretType] + + +class RepoCodespacesSecretType(TypedDict): + """Codespaces Secret + + Set repository secrets for GitHub Codespaces. + """ + + name: str + created_at: datetime + updated_at: datetime __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", + "ReposOwnerRepoCodespacesSecretsGetResponse200Type", + "RepoCodespacesSecretType", ) 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 98aa226bc..127388d30 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1016.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1016.py @@ -9,25 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0270 import CustomDeploymentRuleAppType +class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 - """ + encrypted_value: NotRequired[str] + key_id: NotRequired[str] - total_count: NotRequired[int] - available_custom_deployment_protection_rule_integrations: NotRequired[ - List[CustomDeploymentRuleAppType] - ] - -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", -) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) 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 0b9f2f7f8..3048a3c3a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1017.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1017.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0181 import ActionsSecretType +class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + permission: NotRequired[str] - total_count: int - secrets: List[ActionsSecretType] - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) 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 3ec440fb1..25f26d78b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1018.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1018.py @@ -12,11 +12,10 @@ from typing_extensions import TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" +class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdPatchBody""" - encrypted_value: str - key_id: str + body: str -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) 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 ffb1c48eb..ce91eec32 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1019.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1019.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict -from .group_0182 import ActionsVariableType +class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] - total_count: int - variables: List[ActionsVariableType] - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) 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 f3a29926f..64def9673 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1020.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1020.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - name: str - value: str + body: str + path: NotRequired[str] + position: NotRequired[int] + line: NotRequired[int] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) 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 c1fff1a36..b722c7057 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1021.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1021.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0217 import CheckRunType -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" - name: NotRequired[str] - value: NotRequired[str] +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + total_count: int + check_runs: List[CheckRunType] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) + +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) 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 8bba2acbd..2242ad973 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1022.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1022.py @@ -12,12 +12,42 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoForksPostBodyType(TypedDict): - """ReposOwnerRepoForksPostBody""" +class ReposOwnerRepoContentsPathPutBodyType(TypedDict): + """ReposOwnerRepoContentsPathPutBody""" - organization: NotRequired[str] - name: NotRequired[str] - default_branch_only: NotRequired[bool] + message: str + content: str + sha: NotRequired[str] + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] -__all__ = ("ReposOwnerRepoForksPostBodyType",) +class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropCommitter + + The person that committed the file. Default: the authenticated user. + """ + + name: str + email: str + date: NotRequired[str] + + +class ReposOwnerRepoContentsPathPutBodyPropAuthorType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropAuthor + + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. + """ + + name: str + email: str + date: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoContentsPathPutBodyType", + "ReposOwnerRepoContentsPathPutBodyPropCommitterType", + "ReposOwnerRepoContentsPathPutBodyPropAuthorType", +) 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 dcd2ec0cb..952a58aa5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1023.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1023.py @@ -12,11 +12,38 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): - """ReposOwnerRepoGitBlobsPostBody""" +class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBody""" - content: str - encoding: NotRequired[str] + message: str + sha: str + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] -__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) +class ReposOwnerRepoContentsPathDeleteBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBodyPropCommitter + + object containing information about the committer. + """ + + name: NotRequired[str] + email: NotRequired[str] + + +class ReposOwnerRepoContentsPathDeleteBodyPropAuthorType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBodyPropAuthor + + object containing information about the author. + """ + + name: NotRequired[str] + email: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoContentsPathDeleteBodyType", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1024.py b/githubkit/versions/ghec_v2022_11_28/types/group_1024.py index 166b3b1b7..e6000744d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1024.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1024.py @@ -9,50 +9,20 @@ from __future__ import annotations -from typing import List -from datetime import datetime +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): - """ReposOwnerRepoGitCommitsPostBody""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - message: str - tree: str - parents: NotRequired[List[str]] - author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] - committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] - signature: NotRequired[str] + state: Literal["dismissed", "open"] + dismissed_reason: NotRequired[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ] + ] + dismissed_comment: NotRequired[str] -class ReposOwnerRepoGitCommitsPostBodyPropAuthorType(TypedDict): - """ReposOwnerRepoGitCommitsPostBodyPropAuthor - - Information about the author of the commit. By default, the `author` will be the - authenticated user and the current date. See the `author` and `committer` object - below for details. - """ - - name: str - email: str - date: NotRequired[datetime] - - -class ReposOwnerRepoGitCommitsPostBodyPropCommitterType(TypedDict): - """ReposOwnerRepoGitCommitsPostBodyPropCommitter - - Information about the person who is making the commit. By default, `committer` - will use the information set in `author`. See the `author` and `committer` - object below for details. - """ - - name: NotRequired[str] - email: NotRequired[str] - date: NotRequired[datetime] - - -__all__ = ( - "ReposOwnerRepoGitCommitsPostBodyType", - "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", - "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", -) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) 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 aa4d83aff..b01790e23 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1025.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1025.py @@ -9,14 +9,30 @@ from __future__ import annotations +from typing import List +from datetime import datetime from typing_extensions import TypedDict -class ReposOwnerRepoGitRefsPostBodyType(TypedDict): - """ReposOwnerRepoGitRefsPostBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoDependabotSecretsGetResponse200""" - ref: str - sha: str + total_count: int + secrets: List[DependabotSecretType] -__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) +class DependabotSecretType(TypedDict): + """Dependabot Secret + + Set secrets for Dependabot. + """ + + name: str + created_at: datetime + updated_at: datetime + + +__all__ = ( + "ReposOwnerRepoDependabotSecretsGetResponse200Type", + "DependabotSecretType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1026.py b/githubkit/versions/ghec_v2022_11_28/types/group_1026.py index c7aa1330c..b77f06192 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1026.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1026.py @@ -12,11 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): - """ReposOwnerRepoGitRefsRefPatchBody""" +class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - sha: str - force: NotRequired[bool] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) 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 fe54aa32e..6e9243ec2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1027.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1027.py @@ -9,33 +9,16 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoGitTagsPostBodyType(TypedDict): - """ReposOwnerRepoGitTagsPostBody""" +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - tag: str + id: int + created_at: str + result: str message: str - object_: str - type: Literal["commit", "tree", "blob"] - tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] -class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): - """ReposOwnerRepoGitTagsPostBodyPropTagger - - An object with information about the individual creating the tag. - """ - - name: str - email: str - date: NotRequired[datetime] - - -__all__ = ( - "ReposOwnerRepoGitTagsPostBodyType", - "ReposOwnerRepoGitTagsPostBodyPropTaggerType", -) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) 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 a8fe4c648..614766fa1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1028.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1028.py @@ -9,28 +9,31 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitTreesPostBodyType(TypedDict): - """ReposOwnerRepoGitTreesPostBody""" +class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsPostBody""" - tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] - base_tree: NotRequired[str] + ref: str + task: NotRequired[str] + auto_merge: NotRequired[bool] + required_contexts: NotRequired[List[str]] + payload: NotRequired[ + Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, str] + ] + environment: NotRequired[str] + description: NotRequired[Union[str, None]] + transient_environment: NotRequired[bool] + production_environment: NotRequired[bool] -class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - - path: NotRequired[str] - mode: NotRequired[Literal["100644", "100755", "040000", "160000", "120000"]] - type: NotRequired[Literal["blob", "tree", "commit"]] - sha: NotRequired[Union[str, None]] - content: NotRequired[str] +class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type(TypedDict): + """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" __all__ = ( - "ReposOwnerRepoGitTreesPostBodyType", - "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", + "ReposOwnerRepoDeploymentsPostBodyType", + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", ) 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 3f4bc96d4..31c81fc99 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1029.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1029.py @@ -9,32 +9,13 @@ from __future__ import annotations -from typing import List, Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoHooksPostBodyType(TypedDict): - """ReposOwnerRepoHooksPostBody""" +class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): + """ReposOwnerRepoDeploymentsPostResponse202""" - name: NotRequired[str] - config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] - events: NotRequired[List[str]] - active: NotRequired[bool] + message: NotRequired[str] -class ReposOwnerRepoHooksPostBodyPropConfigType(TypedDict): - """ReposOwnerRepoHooksPostBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - - -__all__ = ( - "ReposOwnerRepoHooksPostBodyType", - "ReposOwnerRepoHooksPostBodyPropConfigType", -) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) 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 a7b95ac0e..bf2c3b692 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1030.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1030.py @@ -9,20 +9,22 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0007 import WebhookConfigType +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" -class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdPatchBody""" + 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] - config: NotRequired[WebhookConfigType] - events: NotRequired[List[str]] - add_events: NotRequired[List[str]] - remove_events: NotRequired[List[str]] - active: NotRequired[bool] - -__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) 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 8c044b8a1..28590d115 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1031.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1031.py @@ -9,17 +9,25 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" +class ReposOwnerRepoDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoDispatchesPostBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + event_type: str + client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) +class ReposOwnerRepoDispatchesPostBodyPropClientPayloadType(TypedDict): + """ReposOwnerRepoDispatchesPostBodyPropClientPayload + + JSON payload with extra information about the webhook event that your action or + workflow may use. The maximum number of top-level properties is 10. + """ + + +__all__ = ( + "ReposOwnerRepoDispatchesPostBodyType", + "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", +) 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 40367efa2..0a7623cfd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1032.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1032.py @@ -9,18 +9,38 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0268 import DeploymentBranchPolicySettingsType -class ReposOwnerRepoImportPutBodyType(TypedDict): - """ReposOwnerRepoImportPutBody""" - vcs_url: str - vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - tfvc_project: NotRequired[str] +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + wait_timer: NotRequired[int] + prevent_self_review: NotRequired[bool] + reviewers: NotRequired[ + Union[ + List[ + ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType + ], + None, + ] + ] + deployment_branch_policy: NotRequired[ + Union[DeploymentBranchPolicySettingsType, None] + ] -__all__ = ("ReposOwnerRepoImportPutBodyType",) + +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + + type: NotRequired[Literal["User", "Team"]] + id: NotRequired[int] + + +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", +) 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 ea3f1020c..b65e8765b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1033.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1033.py @@ -9,17 +9,32 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoImportPatchBodyType(TypedDict): - """ReposOwnerRepoImportPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] - tfvc_project: NotRequired[str] + total_count: int + branch_policies: List[DeploymentBranchPolicyType] -__all__ = ("ReposOwnerRepoImportPatchBodyType",) +class DeploymentBranchPolicyType(TypedDict): + """Deployment branch policy + + Details of a deployment branch or tag policy. + """ + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + type: NotRequired[Literal["branch", "tag"]] + + +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", + "DeploymentBranchPolicyType", +) 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 f3821d41d..aa86463eb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1034.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1034.py @@ -12,11 +12,14 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - email: NotRequired[str] - name: NotRequired[str] + integration_id: NotRequired[int] -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", +) 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 f8207f6ea..7195feb8e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1035.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1035.py @@ -9,14 +9,25 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired +from .group_0274 import CustomDeploymentRuleAppType -class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): - """ReposOwnerRepoImportLfsPatchBody""" - use_lfs: Literal["opt_in", "opt_out"] +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ + total_count: NotRequired[int] + available_custom_deployment_protection_rule_integrations: NotRequired[ + List[CustomDeploymentRuleAppType] + ] -__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) + +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", +) 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 ca60a7364..e362bd877 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1036.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1036.py @@ -9,11 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0185 import ActionsSecretType -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) + total_count: int + secrets: List[ActionsSecretType] + + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) 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 de920e175..3ec440fb1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1037.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1037.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] + encrypted_value: str + key_id: str -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) 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 5fcbc4ed3..70693b5c5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1038.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1038.py @@ -9,33 +9,17 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0186 import ActionsVariableType -class ReposOwnerRepoIssuesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesPostBody""" - title: Union[str, int] - body: NotRequired[str] - assignee: NotRequired[Union[str, None]] - milestone: NotRequired[Union[str, int, None]] - labels: NotRequired[ - List[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type]] - ] - assignees: NotRequired[List[str]] +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + total_count: int + variables: List[ActionsVariableType] -class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" - id: NotRequired[int] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] - - -__all__ = ( - "ReposOwnerRepoIssuesPostBodyType", - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) 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 4b0c546c3..f3a29926f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1039.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1039.py @@ -12,10 +12,11 @@ from typing_extensions import TypedDict -class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" - body: str + name: str + value: str -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) 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 77f77960c..c1fff1a36 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1040.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1040.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + name: NotRequired[str] + value: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) 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 38ef471b7..8bba2acbd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1041.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1041.py @@ -9,41 +9,15 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" +class ReposOwnerRepoForksPostBodyType(TypedDict): + """ReposOwnerRepoForksPostBody""" - title: NotRequired[Union[str, int, None]] - body: NotRequired[Union[str, None]] - assignee: NotRequired[Union[str, None]] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[ - Union[None, Literal["completed", "not_planned", "reopened"]] - ] - milestone: NotRequired[Union[str, int, None]] - labels: NotRequired[ - List[ - Union[ - str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type - ] - ] - ] - assignees: NotRequired[List[str]] - - -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - - id: NotRequired[int] + organization: NotRequired[str] name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] + default_branch_only: NotRequired[bool] -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBodyType", - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", -) +__all__ = ("ReposOwnerRepoForksPostBodyType",) 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 e318c7fed..dcd2ec0cb 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1042.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1042.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" +class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): + """ReposOwnerRepoGitBlobsPostBody""" - assignees: NotRequired[List[str]] + content: str + encoding: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) +__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) 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 ef1108543..166b3b1b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1043.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1043.py @@ -10,13 +10,49 @@ from __future__ import annotations from typing import List +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): + """ReposOwnerRepoGitCommitsPostBody""" - assignees: NotRequired[List[str]] + message: str + tree: str + parents: NotRequired[List[str]] + author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] + committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] + signature: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) +class ReposOwnerRepoGitCommitsPostBodyPropAuthorType(TypedDict): + """ReposOwnerRepoGitCommitsPostBodyPropAuthor + + Information about the author of the commit. By default, the `author` will be the + authenticated user and the current date. See the `author` and `committer` object + below for details. + """ + + name: str + email: str + date: NotRequired[datetime] + + +class ReposOwnerRepoGitCommitsPostBodyPropCommitterType(TypedDict): + """ReposOwnerRepoGitCommitsPostBodyPropCommitter + + Information about the person who is making the commit. By default, `committer` + will use the information set in `author`. See the `author` and `committer` + object below for details. + """ + + name: NotRequired[str] + email: NotRequired[str] + date: NotRequired[datetime] + + +__all__ = ( + "ReposOwnerRepoGitCommitsPostBodyType", + "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", + "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1044.py b/githubkit/versions/ghec_v2022_11_28/types/group_1044.py index 2585a1e0c..aa4d83aff 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1044.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1044.py @@ -12,10 +12,11 @@ from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" +class ReposOwnerRepoGitRefsPostBodyType(TypedDict): + """ReposOwnerRepoGitRefsPostBody""" - body: str + ref: str + sha: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) 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 79fa1e54c..c7aa1330c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1045.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1045.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" +class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): + """ReposOwnerRepoGitRefsRefPatchBody""" - labels: NotRequired[List[str]] + sha: str + force: NotRequired[bool] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) 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 793244215..fe54aa32e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1046.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1046.py @@ -9,25 +9,33 @@ from __future__ import annotations -from typing import List +from typing import Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" +class ReposOwnerRepoGitTagsPostBodyType(TypedDict): + """ReposOwnerRepoGitTagsPostBody""" - labels: NotRequired[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] - ] + tag: str + message: str + object_: str + type: Literal["commit", "tree", "blob"] + tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" +class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): + """ReposOwnerRepoGitTagsPostBodyPropTagger + + An object with information about the individual creating the tag. + """ name: str + email: str + date: NotRequired[datetime] __all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", + "ReposOwnerRepoGitTagsPostBodyType", + "ReposOwnerRepoGitTagsPostBodyPropTaggerType", ) 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 4b61c7722..a8fe4c648 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1047.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1047.py @@ -9,13 +9,28 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" +class ReposOwnerRepoGitTreesPostBodyType(TypedDict): + """ReposOwnerRepoGitTreesPostBody""" - name: str + tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] + base_tree: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) +class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" + + path: NotRequired[str] + mode: NotRequired[Literal["100644", "100755", "040000", "160000", "120000"]] + type: NotRequired[Literal["blob", "tree", "commit"]] + sha: NotRequired[Union[str, None]] + content: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoGitTreesPostBodyType", + "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", +) 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 36bd0305e..3f4bc96d4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1048.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1048.py @@ -9,14 +9,32 @@ from __future__ import annotations -from typing import List +from typing import List, Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoHooksPostBodyType(TypedDict): + """ReposOwnerRepoHooksPostBody""" - labels: NotRequired[List[str]] + name: NotRequired[str] + config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] + events: NotRequired[List[str]] + active: NotRequired[bool] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) +class ReposOwnerRepoHooksPostBodyPropConfigType(TypedDict): + """ReposOwnerRepoHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + + +__all__ = ( + "ReposOwnerRepoHooksPostBodyType", + "ReposOwnerRepoHooksPostBodyPropConfigType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1049.py b/githubkit/versions/ghec_v2022_11_28/types/group_1049.py index 6e7f8a784..a7b95ac0e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1049.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1049.py @@ -12,22 +12,17 @@ from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0007 import WebhookConfigType -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - labels: NotRequired[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] - ] +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 ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" - name: str - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", -) +__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) 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 6872247a2..8c044b8a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1050.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1050.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" +class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - name: str + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) 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 a190e2d44..40367efa2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1051.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1051.py @@ -13,10 +13,14 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" +class ReposOwnerRepoImportPutBodyType(TypedDict): + """ReposOwnerRepoImportPutBody""" - lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] + vcs_url: str + vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + tfvc_project: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) +__all__ = ("ReposOwnerRepoImportPutBodyType",) 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 5d8ff2645..ea3f1020c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1052.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1052.py @@ -10,15 +10,16 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoImportPatchBodyType(TypedDict): + """ReposOwnerRepoImportPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] + tfvc_project: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoImportPatchBodyType",) 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 fa5cbfe49..f3821d41d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1053.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1053.py @@ -12,12 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoKeysPostBodyType(TypedDict): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - title: NotRequired[str] - key: str - read_only: NotRequired[bool] + email: NotRequired[str] + name: NotRequired[str] -__all__ = ("ReposOwnerRepoKeysPostBodyType",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) 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 2ae5bd4d6..f8207f6ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1054.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1054.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoLabelsPostBodyType(TypedDict): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): + """ReposOwnerRepoImportLfsPatchBody""" - name: str - color: NotRequired[str] - description: NotRequired[str] + use_lfs: Literal["opt_in", "opt_out"] -__all__ = ("ReposOwnerRepoLabelsPostBodyType",) +__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) 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 fe512af8d..ca60a7364 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1055.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1055.py @@ -9,15 +9,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): - """ReposOwnerRepoLabelsNamePatchBody""" +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" - new_name: NotRequired[str] - color: NotRequired[str] - description: NotRequired[str] - -__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) 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 ac724c353..de920e175 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1056.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1056.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): - """ReposOwnerRepoMergeUpstreamPostBody""" +class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - branch: str + permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] -__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) 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 68b37cb55..5fcbc4ed3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1057.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1057.py @@ -9,15 +9,33 @@ from __future__ import annotations +from typing import List, Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoMergesPostBodyType(TypedDict): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoIssuesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesPostBody""" - base: str - head: str - commit_message: NotRequired[str] + title: Union[str, int] + body: NotRequired[str] + assignee: NotRequired[Union[str, None]] + milestone: NotRequired[Union[str, int, None]] + labels: NotRequired[ + List[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type]] + ] + assignees: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoMergesPostBodyType",) +class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + + +__all__ = ( + "ReposOwnerRepoIssuesPostBodyType", + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1058.py b/githubkit/versions/ghec_v2022_11_28/types/group_1058.py index 7dd5af8e7..4b0c546c3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1058.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1058.py @@ -9,18 +9,13 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoMilestonesPostBodyType(TypedDict): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - title: str - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] + body: str -__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) 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 d926c03f7..77f77960c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1059.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1059.py @@ -10,17 +10,15 @@ from __future__ import annotations from typing import Literal -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - title: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) 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 7c0be85f3..38ef471b7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1060.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1060.py @@ -9,14 +9,41 @@ from __future__ import annotations -from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoNotificationsPutBodyType(TypedDict): - """ReposOwnerRepoNotificationsPutBody""" - - last_read_at: NotRequired[datetime] - - -__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) +class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBody""" + + title: NotRequired[Union[str, int, None]] + body: NotRequired[Union[str, None]] + assignee: NotRequired[Union[str, None]] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[ + Union[None, Literal["completed", "not_planned", "reopened"]] + ] + milestone: NotRequired[Union[str, int, None]] + labels: NotRequired[ + List[ + Union[ + str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type + ] + ] + ] + assignees: NotRequired[List[str]] + + +class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBodyType", + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", +) 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 153effb7c..e318c7fed 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,14 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): - """ReposOwnerRepoNotificationsPutResponse202""" +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - message: NotRequired[str] - url: NotRequired[str] + assignees: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) 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 cd3deab02..ef1108543 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1062.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1062.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" - Update the source for the repository. Must include the branch name and path. - """ + assignees: NotRequired[List[str]] - branch: str - path: Literal["/", "/docs"] - -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) 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 cc2e05e3c..2585a1e0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1063.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1063.py @@ -9,25 +9,13 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_1062 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" -class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof0""" + body: str - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: Literal["legacy", "workflow"] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - public: NotRequired[bool] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) 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 28d5aaf50..79fa1e54c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1064.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1064.py @@ -9,23 +9,14 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_1062 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" -class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof1""" + labels: NotRequired[List[str]] - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - public: NotRequired[bool] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) 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 84196e3f2..793244215 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1065.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1065.py @@ -9,25 +9,25 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_1062 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" -class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof2""" - - cname: Union[str, None] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] + labels: NotRequired[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] ] - public: NotRequired[bool] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" + + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", +) 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 16ab893ea..4b61c7722 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1066.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1066.py @@ -9,25 +9,13 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_1062 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" -class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof3""" + name: str - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - public: bool - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) 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 f8104ac82..36bd0305e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1067.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1067.py @@ -9,25 +9,14 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_1062 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" -class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof4""" + labels: NotRequired[List[str]] - cname: NotRequired[Union[str, None]] - https_enforced: bool - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - public: NotRequired[bool] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) 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 76dfbb4a7..6e7f8a784 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1068.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1068.py @@ -9,18 +9,25 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): - """ReposOwnerRepoPagesPostBodyPropSource +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - The source branch and directory used to publish your Pages site. - """ + labels: NotRequired[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] + ] - branch: str - path: NotRequired[Literal["/", "/docs"]] +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" -__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", +) 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 bc4315911..6872247a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1069.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1069.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_1068 import ReposOwnerRepoPagesPostBodyPropSourceType +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" -class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof0""" + name: str - build_type: NotRequired[Literal["legacy", "workflow"]] - source: ReposOwnerRepoPagesPostBodyPropSourceType - -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) 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 372dc2d44..a190e2d44 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1070.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1070.py @@ -12,14 +12,11 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_1068 import ReposOwnerRepoPagesPostBodyPropSourceType +class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" -class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof1""" + lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] - build_type: Literal["legacy", "workflow"] - source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] - -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) 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 93491698d..5d8ff2645 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1071.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1071.py @@ -9,20 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoPagesDeploymentsPostBody +class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - The object used to create GitHub Pages deployment - """ + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] - artifact_id: NotRequired[float] - artifact_url: NotRequired[str] - environment: NotRequired[str] - pages_build_version: str - oidc_token: str - -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) 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 c22c267f3..fa5cbfe49 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1072.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1072.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" +class ReposOwnerRepoKeysPostBodyType(TypedDict): + """ReposOwnerRepoKeysPostBody""" - enabled: bool + title: NotRequired[str] + key: str + read_only: NotRequired[bool] -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) +__all__ = ("ReposOwnerRepoKeysPostBodyType",) 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 36b3e70e4..2ae5bd4d6 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1073.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1073.py @@ -12,11 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoProjectsPostBodyType(TypedDict): - """ReposOwnerRepoProjectsPostBody""" +class ReposOwnerRepoLabelsPostBodyType(TypedDict): + """ReposOwnerRepoLabelsPostBody""" name: str - body: NotRequired[str] + color: NotRequired[str] + description: NotRequired[str] -__all__ = ("ReposOwnerRepoProjectsPostBodyType",) +__all__ = ("ReposOwnerRepoLabelsPostBodyType",) 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 6753b32e7..fe512af8d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1074.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1074.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0116 import CustomPropertyValueType +class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): + """ReposOwnerRepoLabelsNamePatchBody""" -class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): - """ReposOwnerRepoPropertiesValuesPatchBody""" + new_name: NotRequired[str] + color: NotRequired[str] + description: NotRequired[str] - properties: List[CustomPropertyValueType] - -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) 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 e4301f5c1..ac724c353 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1075.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1075.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPostBody""" +class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): + """ReposOwnerRepoMergeUpstreamPostBody""" - 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] + branch: str -__all__ = ("ReposOwnerRepoPullsPostBodyType",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) 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 160987b13..68b37cb55 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1076.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1076.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" +class ReposOwnerRepoMergesPostBodyType(TypedDict): + """ReposOwnerRepoMergesPostBody""" - body: str + base: str + head: str + commit_message: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) +__all__ = ("ReposOwnerRepoMergesPostBodyType",) 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 4dc9e5008..7dd5af8e7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1077.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1077.py @@ -10,15 +10,17 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoMilestonesPostBodyType(TypedDict): + """ReposOwnerRepoMilestonesPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + title: str + state: NotRequired[Literal["open", "closed"]] + description: NotRequired[str] + due_on: NotRequired[datetime] -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) 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 a7f3437b1..d926c03f7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1078.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1078.py @@ -10,17 +10,17 @@ from __future__ import annotations from typing import Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberPatchBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" title: NotRequired[str] - body: NotRequired[str] state: NotRequired[Literal["open", "closed"]] - base: NotRequired[str] - maintainer_can_modify: NotRequired[bool] + description: NotRequired[str] + due_on: NotRequired[datetime] -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) 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 2bc8bc97e..7c0be85f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1079.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1079.py @@ -9,23 +9,14 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" +class ReposOwnerRepoNotificationsPutBodyType(TypedDict): + """ReposOwnerRepoNotificationsPutBody""" - 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] + last_read_at: NotRequired[datetime] -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) +__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) 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 3a373298b..153effb7c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1080.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1080.py @@ -9,23 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" +class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): + """ReposOwnerRepoNotificationsPutResponse202""" - 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"]] + message: NotRequired[str] + url: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) 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 fdc9c5a0e..cd3deab02 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1081.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1081.py @@ -9,13 +9,18 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - body: str + Update the source for the repository. Must include the branch name and path. + """ + branch: str + path: Literal["/", "/docs"] -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) 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 f027d8849..1236f472d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1082.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1082.py @@ -9,17 +9,25 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutBody""" - commit_title: NotRequired[str] - commit_message: NotRequired[str] - sha: NotRequired[str] - merge_method: NotRequired[Literal["merge", "squash", "rebase"]] +class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof0""" + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: Literal["legacy", "workflow"] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] + public: NotRequired[bool] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) 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 430b6639e..e5603e55f 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1083.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1083.py @@ -9,14 +9,23 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - message: NotRequired[str] - documentation_url: NotRequired[str] +class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof1""" + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + public: NotRequired[bool] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) 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 12d07d173..1c5516357 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1084.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1084.py @@ -9,14 +9,25 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - message: NotRequired[str] - documentation_url: NotRequired[str] +class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof2""" + cname: Union[str, None] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] + public: NotRequired[bool] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) 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 a84cf2d89..d3e6415a2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1085.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1085.py @@ -9,15 +9,25 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - reviewers: List[str] - team_reviewers: NotRequired[List[str]] +class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof3""" + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] + public: bool -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) 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 1d45bd83c..d18f89e0c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1086.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1086.py @@ -9,15 +9,25 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_1081 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - reviewers: NotRequired[List[str]] - team_reviewers: List[str] +class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof4""" + cname: NotRequired[Union[str, None]] + https_enforced: bool + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] + public: NotRequired[bool] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) 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 020f5596d..76dfbb4a7 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,18 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" +class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): + """ReposOwnerRepoPagesPostBodyPropSource - reviewers: List[str] - team_reviewers: NotRequired[List[str]] + The source branch and directory used to publish your Pages site. + """ + branch: str + path: NotRequired[Literal["/", "/docs"]] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) 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 1046c3f1e..385de451b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1088.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1088.py @@ -9,34 +9,17 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_1087 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - commit_id: NotRequired[str] - body: NotRequired[str] - event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] - comments: NotRequired[ - List[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] - ] +class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof0""" + build_type: NotRequired[Literal["legacy", "workflow"]] + source: ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - path: str - position: NotRequired[int] - body: str - line: NotRequired[int] - side: NotRequired[str] - start_line: NotRequired[int] - start_side: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", -) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) 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 05cccf0c0..21e5990ea 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1089.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1089.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_1087 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - body: str +class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof1""" + build_type: Literal["legacy", "workflow"] + source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) 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 6b49304a1..93491698d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1090.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1090.py @@ -9,15 +9,20 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" +class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoPagesDeploymentsPostBody - message: str - event: NotRequired[Literal["DISMISS"]] + The object used to create GitHub Pages deployment + """ + artifact_id: NotRequired[float] + artifact_url: NotRequired[str] + environment: NotRequired[str] + pages_build_version: str + oidc_token: str -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) + +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) 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 db429f41c..c22c267f3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1091.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1091.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - body: NotRequired[str] - event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] + enabled: bool -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) 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 20f8615d9..36b3e70e4 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1092.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1092.py @@ -12,10 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" +class ReposOwnerRepoProjectsPostBodyType(TypedDict): + """ReposOwnerRepoProjectsPostBody""" - expected_head_sha: NotRequired[str] + name: str + body: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) +__all__ = ("ReposOwnerRepoProjectsPostBodyType",) 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 6be5b5e11..e23475f68 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1093.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1093.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0120 import CustomPropertyValueType -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - message: NotRequired[str] - url: NotRequired[str] +class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): + """ReposOwnerRepoPropertiesValuesPatchBody""" + properties: List[CustomPropertyValueType] -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) + +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) 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 ad449b3dd..e4301f5c1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1094.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1094.py @@ -9,22 +9,20 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoReleasesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesPostBody""" +class ReposOwnerRepoPullsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPostBody""" - tag_name: str - target_commitish: NotRequired[str] - name: NotRequired[str] + title: NotRequired[str] + head: str + head_repo: NotRequired[str] + base: str body: NotRequired[str] + maintainer_can_modify: NotRequired[bool] draft: NotRequired[bool] - prerelease: NotRequired[bool] - discussion_category_name: NotRequired[str] - generate_release_notes: NotRequired[bool] - make_latest: NotRequired[Literal["true", "false", "legacy"]] + issue: NotRequired[int] -__all__ = ("ReposOwnerRepoReleasesPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPostBodyType",) 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 14ed366af..160987b13 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1095.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1095.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" +class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - name: NotRequired[str] - label: NotRequired[str] - state: NotRequired[str] + body: str -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) 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 951aca8ca..4dc9e5008 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1096.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1096.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - tag_name: str - target_commitish: NotRequired[str] - previous_tag_name: NotRequired[str] - configuration_file_path: NotRequired[str] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) 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 fc4fe244b..a7f3437b1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1097.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1097.py @@ -13,17 +13,14 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" +class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberPatchBody""" - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - name: NotRequired[str] + title: NotRequired[str] body: NotRequired[str] - draft: NotRequired[bool] - prerelease: NotRequired[bool] - make_latest: NotRequired[Literal["true", "false", "legacy"]] - discussion_category_name: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + base: NotRequired[str] + maintainer_can_modify: NotRequired[bool] -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) 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 d85bf8d37..2bc8bc97e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1098.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1098.py @@ -10,13 +10,22 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" +class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" - content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] + 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__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) 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 55ff51001..3a373298b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1099.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1099.py @@ -9,71 +9,23 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0133 import RepositoryRuleUpdateType -from .group_0157 import RepositoryRuleOneof17Type -from .group_0153 import RepositoryRuleWorkflowsType -from .group_0138 import RepositoryRulePullRequestType -from .group_0155 import RepositoryRuleCodeScanningType -from .group_0121 import RepositoryRulesetConditionsType -from .group_0120 import RepositoryRulesetBypassActorType -from .group_0150 import RepositoryRuleTagNamePatternType -from .group_0148 import RepositoryRuleBranchNamePatternType -from .group_0136 import RepositoryRuleRequiredDeploymentsType -from .group_0140 import RepositoryRuleRequiredStatusChecksType -from .group_0142 import RepositoryRuleCommitMessagePatternType -from .group_0146 import RepositoryRuleCommitterEmailPatternType -from .group_0144 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0135 import ( - RepositoryRuleOneof15Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0132 import ( - RepositoryRuleOneof14Type, - RepositoryRuleOneof16Type, - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" -class ReposOwnerRepoRulesetsPostBodyType(TypedDict): - """ReposOwnerRepoRulesetsPostBody""" + 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"]] - name: str - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] - conditions: NotRequired[RepositoryRulesetConditionsType] - rules: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",) 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 48133211e..fdc9c5a0e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1100.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1100.py @@ -9,71 +9,13 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0133 import RepositoryRuleUpdateType -from .group_0157 import RepositoryRuleOneof17Type -from .group_0153 import RepositoryRuleWorkflowsType -from .group_0138 import RepositoryRulePullRequestType -from .group_0155 import RepositoryRuleCodeScanningType -from .group_0121 import RepositoryRulesetConditionsType -from .group_0120 import RepositoryRulesetBypassActorType -from .group_0150 import RepositoryRuleTagNamePatternType -from .group_0148 import RepositoryRuleBranchNamePatternType -from .group_0136 import RepositoryRuleRequiredDeploymentsType -from .group_0140 import RepositoryRuleRequiredStatusChecksType -from .group_0142 import RepositoryRuleCommitMessagePatternType -from .group_0146 import RepositoryRuleCommitterEmailPatternType -from .group_0144 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0135 import ( - RepositoryRuleOneof15Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0132 import ( - RepositoryRuleOneof14Type, - RepositoryRuleOneof16Type, - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" -class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" + body: str - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] - conditions: NotRequired[RepositoryRulesetConditionsType] - rules: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) 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 6dd2f6735..f027d8849 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1101.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1101.py @@ -9,18 +9,17 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - state: Literal["open", "resolved"] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolution_comment: NotRequired[Union[str, None]] + commit_title: NotRequired[str] + commit_message: NotRequired[str] + sha: NotRequired[str] + merge_method: NotRequired[Literal["merge", "squash", "rebase"]] -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) 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 48f7d82ce..430b6639e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1102.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1102.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): - """ReposOwnerRepoStatusesShaPostBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - state: Literal["error", "failure", "pending", "success"] - target_url: NotRequired[Union[str, None]] - description: NotRequired[Union[str, None]] - context: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) 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 9e6d26d8a..12d07d173 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1103.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1103.py @@ -12,11 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): - """ReposOwnerRepoSubscriptionPutBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - subscribed: NotRequired[bool] - ignored: NotRequired[bool] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) 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 492fdc91e..a84cf2d89 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1104.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1104.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - pattern: str + reviewers: List[str] + team_reviewers: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) 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 681ccb3a7..1d45bd83c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1105.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1105.py @@ -10,13 +10,14 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoTopicsPutBodyType(TypedDict): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - names: List[str] + reviewers: NotRequired[List[str]] + team_reviewers: List[str] -__all__ = ("ReposOwnerRepoTopicsPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) 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 75339e545..020f5596d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1106.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1106.py @@ -13,12 +13,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoTransferPostBodyType(TypedDict): - """ReposOwnerRepoTransferPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - new_owner: str - new_name: NotRequired[str] - team_ids: NotRequired[List[int]] + reviewers: List[str] + team_reviewers: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoTransferPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) 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 0b51fb534..1046c3f1e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1107.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1107.py @@ -9,17 +9,34 @@ from __future__ import annotations +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" +class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - owner: NotRequired[str] - name: str - description: NotRequired[str] - include_all_branches: NotRequired[bool] - private: NotRequired[bool] + commit_id: NotRequired[str] + body: NotRequired[str] + event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] + comments: NotRequired[ + List[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] + ] -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) +class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" + + path: str + position: NotRequired[int] + body: str + line: NotRequired[int] + side: NotRequired[str] + start_line: NotRequired[int] + start_side: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", +) 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 b4e292586..05cccf0c0 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1108.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1108.py @@ -9,45 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ScimV2OrganizationsOrgUsersPostBodyType(TypedDict): - """ScimV2OrganizationsOrgUsersPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - user_name: str - display_name: NotRequired[str] - name: ScimV2OrganizationsOrgUsersPostBodyPropNameType - emails: List[ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType] - schemas: NotRequired[List[str]] - external_id: NotRequired[str] - groups: NotRequired[List[str]] - active: NotRequired[bool] + body: str -class ScimV2OrganizationsOrgUsersPostBodyPropNameType(TypedDict): - """ScimV2OrganizationsOrgUsersPostBodyPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: str - family_name: str - formatted: NotRequired[str] - - -class ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType(TypedDict): - """ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems""" - - value: str - primary: NotRequired[bool] - type: NotRequired[str] - - -__all__ = ( - "ScimV2OrganizationsOrgUsersPostBodyType", - "ScimV2OrganizationsOrgUsersPostBodyPropNameType", - "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType", -) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) 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 c39deeb1d..6b49304a1 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1109.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1109.py @@ -9,45 +9,15 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - 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] + message: str + event: NotRequired[Literal["DISMISS"]] -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName - - Examples: - {'givenName': 'Jane', 'familyName': 'User'} - """ - - given_name: str - family_name: str - formatted: NotRequired[str] - - -class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" - - type: NotRequired[str] - value: str - primary: NotRequired[bool] - - -__all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyType", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType", - "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType", -) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) 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 8ca10d594..db429f41c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1110.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1110.py @@ -9,61 +9,15 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - schemas: NotRequired[List[str]] - operations: List[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType - ] + body: NotRequired[str] + event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType(TypedDict): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems""" - - op: Literal["add", "remove", "replace"] - path: NotRequired[str] - value: NotRequired[ - Union[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type, - List[ - ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType - ], - str, - ] - ] - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type( - TypedDict -): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0""" - - active: NotRequired[Union[bool, None]] - user_name: NotRequired[Union[str, None]] - external_id: NotRequired[Union[str, None]] - given_name: NotRequired[Union[str, None]] - family_name: NotRequired[Union[str, None]] - - -class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType( - TypedDict -): - """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1 - Items - """ - - value: NotRequired[str] - primary: NotRequired[bool] - - -__all__ = ( - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type", - "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType", -) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) 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 b589c2a6a..20f8615d9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1111.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1111.py @@ -9,21 +9,13 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdPatchBodyType(TypedDict): - """TeamsTeamIdPatchBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - name: str - description: NotRequired[str] - privacy: NotRequired[Literal["secret", "closed"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - permission: NotRequired[Literal["pull", "push", "admin"]] - parent_team_id: NotRequired[Union[int, None]] + expected_head_sha: NotRequired[str] -__all__ = ("TeamsTeamIdPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1112.py b/githubkit/versions/ghec_v2022_11_28/types/group_1112.py index 46f00fe63..6be5b5e11 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1112.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1112.py @@ -12,12 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdDiscussionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsPostBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - title: str - body: str - private: NotRequired[bool] + message: NotRequired[str] + url: NotRequired[str] -__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1113.py b/githubkit/versions/ghec_v2022_11_28/types/group_1113.py index 2797e0af9..ad449b3dd 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1113.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1113.py @@ -9,14 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" +class ReposOwnerRepoReleasesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesPostBody""" - title: NotRequired[str] + tag_name: str + target_commitish: NotRequired[str] + name: NotRequired[str] body: NotRequired[str] + draft: NotRequired[bool] + prerelease: NotRequired[bool] + discussion_category_name: NotRequired[str] + generate_release_notes: NotRequired[bool] + make_latest: NotRequired[Literal["true", "false", "legacy"]] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoReleasesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1114.py b/githubkit/versions/ghec_v2022_11_28/types/group_1114.py index 49b6126e3..14ed366af 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1114.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1114.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - body: str + name: NotRequired[str] + label: NotRequired[str] + state: NotRequired[str] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1115.py b/githubkit/versions/ghec_v2022_11_28/types/group_1115.py index aba26488a..951aca8ca 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1115.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1115.py @@ -9,15 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - body: str + tag_name: str + target_commitish: NotRequired[str] + previous_tag_name: NotRequired[str] + configuration_file_path: NotRequired[str] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1116.py b/githubkit/versions/ghec_v2022_11_28/types/group_1116.py index ea06c9bbf..fc4fe244b 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1116.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1116.py @@ -10,19 +10,20 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" +class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + name: NotRequired[str] + body: NotRequired[str] + draft: NotRequired[bool] + prerelease: NotRequired[bool] + make_latest: NotRequired[Literal["true", "false", "legacy"]] + discussion_category_name: NotRequired[str] -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1117.py b/githubkit/versions/ghec_v2022_11_28/types/group_1117.py index 02edb1cc8..d85bf8d37 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1117.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1117.py @@ -13,12 +13,10 @@ from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" +class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1118.py b/githubkit/versions/ghec_v2022_11_28/types/group_1118.py index 8ac2e4896..f980c32ad 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1118.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1118.py @@ -9,14 +9,71 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0137 import RepositoryRuleUpdateType +from .group_0161 import RepositoryRuleOneof17Type +from .group_0157 import RepositoryRuleWorkflowsType +from .group_0142 import RepositoryRulePullRequestType +from .group_0159 import RepositoryRuleCodeScanningType +from .group_0125 import RepositoryRulesetConditionsType +from .group_0124 import RepositoryRulesetBypassActorType +from .group_0154 import RepositoryRuleTagNamePatternType +from .group_0152 import RepositoryRuleBranchNamePatternType +from .group_0140 import RepositoryRuleRequiredDeploymentsType +from .group_0144 import RepositoryRuleRequiredStatusChecksType +from .group_0146 import RepositoryRuleCommitMessagePatternType +from .group_0150 import RepositoryRuleCommitterEmailPatternType +from .group_0148 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0139 import ( + RepositoryRuleOneof15Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0136 import ( + RepositoryRuleOneof14Type, + RepositoryRuleOneof16Type, + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): - """TeamsTeamIdMembershipsUsernamePutBody""" - role: NotRequired[Literal["member", "maintainer"]] +class ReposOwnerRepoRulesetsPostBodyType(TypedDict): + """ReposOwnerRepoRulesetsPostBody""" + name: str + target: NotRequired[Literal["branch", "tag", "push"]] + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] + conditions: NotRequired[RepositoryRulesetConditionsType] + rules: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) + +__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) 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 206f6e4e5..ea5855ed9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1119.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1119.py @@ -9,14 +9,71 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0137 import RepositoryRuleUpdateType +from .group_0161 import RepositoryRuleOneof17Type +from .group_0157 import RepositoryRuleWorkflowsType +from .group_0142 import RepositoryRulePullRequestType +from .group_0159 import RepositoryRuleCodeScanningType +from .group_0125 import RepositoryRulesetConditionsType +from .group_0124 import RepositoryRulesetBypassActorType +from .group_0154 import RepositoryRuleTagNamePatternType +from .group_0152 import RepositoryRuleBranchNamePatternType +from .group_0140 import RepositoryRuleRequiredDeploymentsType +from .group_0144 import RepositoryRuleRequiredStatusChecksType +from .group_0146 import RepositoryRuleCommitMessagePatternType +from .group_0150 import RepositoryRuleCommitterEmailPatternType +from .group_0148 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0139 import ( + RepositoryRuleOneof15Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0136 import ( + RepositoryRuleOneof14Type, + RepositoryRuleOneof16Type, + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): - """TeamsTeamIdProjectsProjectIdPutBody""" - permission: NotRequired[Literal["read", "write", "admin"]] +class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): + """ReposOwnerRepoRulesetsRulesetIdPutBody""" + name: NotRequired[str] + target: NotRequired[Literal["branch", "tag", "push"]] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] + conditions: NotRequired[RepositoryRulesetConditionsType] + rules: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) + +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) 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 fd87b040e..6dd2f6735 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1120.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1120.py @@ -9,14 +9,18 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): - """TeamsTeamIdProjectsProjectIdPutResponse403""" +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + state: Literal["open", "resolved"] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] + resolution_comment: NotRequired[Union[str, None]] -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1121.py b/githubkit/versions/ghec_v2022_11_28/types/group_1121.py index 5f68e3fc2..48f7d82ce 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1121.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1121.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): - """TeamsTeamIdReposOwnerRepoPutBody""" +class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): + """ReposOwnerRepoStatusesShaPostBody""" - permission: NotRequired[Literal["pull", "push", "admin"]] + state: Literal["error", "failure", "pending", "success"] + target_url: NotRequired[Union[str, None]] + description: NotRequired[Union[str, None]] + context: NotRequired[str] -__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) +__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) 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 2b78f607c..9e6d26d8a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1122.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1122.py @@ -9,29 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdTeamSyncGroupMappingsPatchBodyType(TypedDict): - """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" +class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): + """ReposOwnerRepoSubscriptionPutBody""" - groups: List[TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] - synced_at: NotRequired[str] + subscribed: NotRequired[bool] + ignored: NotRequired[bool] -class TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType(TypedDict): - """TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems""" - - group_id: str - group_name: str - group_description: str - id: NotRequired[str] - name: NotRequired[str] - description: NotRequired[str] - - -__all__ = ( - "TeamsTeamIdTeamSyncGroupMappingsPatchBodyType", - "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", -) +__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) 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 a5b98bc3c..492fdc91e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1123.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1123.py @@ -9,21 +9,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class UserPatchBodyType(TypedDict): - """UserPatchBody""" +class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): + """ReposOwnerRepoTagsProtectionPostBody""" - 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] + pattern: str -__all__ = ("UserPatchBodyType",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) 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 d3c3d97e4..681ccb3a7 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1124.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1124.py @@ -12,14 +12,11 @@ from typing import List from typing_extensions import TypedDict -from .group_0089 import CodespaceType +class ReposOwnerRepoTopicsPutBodyType(TypedDict): + """ReposOwnerRepoTopicsPutBody""" -class UserCodespacesGetResponse200Type(TypedDict): - """UserCodespacesGetResponse200""" + names: List[str] - total_count: int - codespaces: List[CodespaceType] - -__all__ = ("UserCodespacesGetResponse200Type",) +__all__ = ("ReposOwnerRepoTopicsPutBodyType",) 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 dc342bf35..75339e545 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1125.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1125.py @@ -9,25 +9,16 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class UserCodespacesPostBodyOneof0Type(TypedDict): - """UserCodespacesPostBodyOneof0""" +class ReposOwnerRepoTransferPostBodyType(TypedDict): + """ReposOwnerRepoTransferPostBody""" - 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] + new_owner: str + new_name: NotRequired[str] + team_ids: NotRequired[List[int]] -__all__ = ("UserCodespacesPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoTransferPostBodyType",) 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 cf235f497..0b51fb534 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1126.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1126.py @@ -9,33 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class UserCodespacesPostBodyOneof1Type(TypedDict): - """UserCodespacesPostBodyOneof1""" +class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - 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] + owner: NotRequired[str] + name: str + description: NotRequired[str] + include_all_branches: NotRequired[bool] + private: NotRequired[bool] -class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): - """UserCodespacesPostBodyOneof1PropPullRequest - - Pull request number for this codespace - """ - - pull_request_number: int - repository_id: int - - -__all__ = ( - "UserCodespacesPostBodyOneof1Type", - "UserCodespacesPostBodyOneof1PropPullRequestType", -) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) 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 6c62a2d33..b4e292586 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1127.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1127.py @@ -9,32 +9,45 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class UserCodespacesSecretsGetResponse200Type(TypedDict): - """UserCodespacesSecretsGetResponse200""" +class ScimV2OrganizationsOrgUsersPostBodyType(TypedDict): + """ScimV2OrganizationsOrgUsersPostBody""" - total_count: int - secrets: List[CodespacesSecretType] + user_name: str + display_name: NotRequired[str] + name: ScimV2OrganizationsOrgUsersPostBodyPropNameType + emails: List[ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType] + schemas: NotRequired[List[str]] + external_id: NotRequired[str] + groups: NotRequired[List[str]] + active: NotRequired[bool] -class CodespacesSecretType(TypedDict): - """Codespaces Secret +class ScimV2OrganizationsOrgUsersPostBodyPropNameType(TypedDict): + """ScimV2OrganizationsOrgUsersPostBodyPropName - Secrets for a GitHub Codespace. + Examples: + {'givenName': 'Jane', 'familyName': 'User'} """ - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: str + given_name: str + family_name: str + formatted: NotRequired[str] + + +class ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType(TypedDict): + """ScimV2OrganizationsOrgUsersPostBodyPropEmailsItems""" + + value: str + primary: NotRequired[bool] + type: NotRequired[str] __all__ = ( - "UserCodespacesSecretsGetResponse200Type", - "CodespacesSecretType", + "ScimV2OrganizationsOrgUsersPostBodyType", + "ScimV2OrganizationsOrgUsersPostBodyPropNameType", + "ScimV2OrganizationsOrgUsersPostBodyPropEmailsItemsType", ) 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 f7e1dab5d..c39deeb1d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1128.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1128.py @@ -9,16 +9,45 @@ from __future__ import annotations -from typing import List, Union +from typing import List from typing_extensions import TypedDict, NotRequired -class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): - """UserCodespacesSecretsSecretNamePutBody""" +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPutBody""" - encrypted_value: NotRequired[str] - key_id: str - selected_repository_ids: NotRequired[List[Union[int, str]]] + schemas: NotRequired[List[str]] + display_name: NotRequired[str] + external_id: NotRequired[str] + groups: NotRequired[List[str]] + active: NotRequired[bool] + user_name: str + name: ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType + emails: List[ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType] -__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropName + + Examples: + {'givenName': 'Jane', 'familyName': 'User'} + """ + + given_name: str + family_name: str + formatted: NotRequired[str] + + +class ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItems""" + + type: NotRequired[str] + value: str + primary: NotRequired[bool] + + +__all__ = ( + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyType", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropNameType", + "ScimV2OrganizationsOrgUsersScimUserIdPutBodyPropEmailsItemsType", +) 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 7254b7e28..8ca10d594 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1129.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1129.py @@ -9,17 +9,61 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0079 import MinimalRepositoryType +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBody""" -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + schemas: NotRequired[List[str]] + operations: List[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType + ] - total_count: int - repositories: List[MinimalRepositoryType] +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType(TypedDict): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItems""" -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) + op: Literal["add", "remove", "replace"] + path: NotRequired[str] + value: NotRequired[ + Union[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type, + List[ + ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType + ], + str, + ] + ] + + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type( + TypedDict +): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0""" + + active: NotRequired[Union[bool, None]] + user_name: NotRequired[Union[str, None]] + external_id: NotRequired[Union[str, None]] + given_name: NotRequired[Union[str, None]] + family_name: NotRequired[Union[str, None]] + + +class ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType( + TypedDict +): + """ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1 + Items + """ + + value: NotRequired[str] + primary: NotRequired[bool] + + +__all__ = ( + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyType", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsType", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof0Type", + "ScimV2OrganizationsOrgUsersScimUserIdPatchBodyPropOperationsItemsPropValueOneof1ItemsType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1130.py b/githubkit/versions/ghec_v2022_11_28/types/group_1130.py index 623f6ef5e..b589c2a6a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1130.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1130.py @@ -9,14 +9,21 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" +class TeamsTeamIdPatchBodyType(TypedDict): + """TeamsTeamIdPatchBody""" - selected_repository_ids: List[int] + name: str + description: NotRequired[str] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: NotRequired[Literal["pull", "push", "admin"]] + parent_team_id: NotRequired[Union[int, None]] -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) +__all__ = ("TeamsTeamIdPatchBodyType",) 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 b46628249..46f00fe63 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1131.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1131.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class UserCodespacesCodespaceNamePatchBodyType(TypedDict): - """UserCodespacesCodespaceNamePatchBody""" +class TeamsTeamIdDiscussionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsPostBody""" - machine: NotRequired[str] - display_name: NotRequired[str] - recent_folders: NotRequired[List[str]] + title: str + body: str + private: NotRequired[bool] -__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) +__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) 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 9683077de..2797e0af9 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1132.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1132.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0088 import CodespaceMachineType +class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" -class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): - """UserCodespacesCodespaceNameMachinesGetResponse200""" + title: NotRequired[str] + body: NotRequired[str] - total_count: int - machines: List[CodespaceMachineType] - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) 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 adf5558f2..49b6126e3 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1133.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1133.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): - """UserCodespacesCodespaceNamePublishPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" - name: NotRequired[str] - private: NotRequired[bool] + body: str -__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) 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 741f85377..aba26488a 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1134.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1134.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class UserEmailVisibilityPatchBodyType(TypedDict): - """UserEmailVisibilityPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - visibility: Literal["public", "private"] + body: str -__all__ = ("UserEmailVisibilityPatchBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) 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 76706bdf0..ea06c9bbf 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1135.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1135.py @@ -9,18 +9,20 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict -class UserEmailsPostBodyOneof0Type(TypedDict): - """UserEmailsPostBodyOneof0 +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] - emails: List[str] - -__all__ = ("UserEmailsPostBodyOneof0Type",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", +) 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 a7b448531..02edb1cc8 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1136.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1136.py @@ -9,23 +9,16 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict -class UserEmailsDeleteBodyOneof0Type(TypedDict): - """UserEmailsDeleteBodyOneof0 +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" - 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. + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ - emails: List[str] - - -__all__ = ("UserEmailsDeleteBodyOneof0Type",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) 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 c3eff10ec..8ac2e4896 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1137.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1137.py @@ -9,14 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class UserGpgKeysPostBodyType(TypedDict): - """UserGpgKeysPostBody""" +class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): + """TeamsTeamIdMembershipsUsernamePutBody""" - name: NotRequired[str] - armored_public_key: str + role: NotRequired[Literal["member", "maintainer"]] -__all__ = ("UserGpgKeysPostBodyType",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) 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 64abc4546..206f6e4e5 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1138.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1138.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -from .group_0015 import InstallationType +class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): + """TeamsTeamIdProjectsProjectIdPutBody""" -class UserInstallationsGetResponse200Type(TypedDict): - """UserInstallationsGetResponse200""" + permission: NotRequired[Literal["read", "write", "admin"]] - total_count: int - installations: List[InstallationType] - -__all__ = ("UserInstallationsGetResponse200Type",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) 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 a8c57fcc3..fd87b040e 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1139.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1139.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0017 import RepositoryType +class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): + """TeamsTeamIdProjectsProjectIdPutResponse403""" -class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" + message: NotRequired[str] + documentation_url: NotRequired[str] - total_count: int - repository_selection: NotRequired[str] - repositories: List[RepositoryType] - -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) 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 9f9dd053b..5f68e3fc2 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1140.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1140.py @@ -9,11 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """UserInteractionLimitsGetResponse200Anyof1""" +class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): + """TeamsTeamIdReposOwnerRepoPutBody""" + permission: NotRequired[Literal["pull", "push", "admin"]] -__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) 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 01b3a0e4d..2b78f607c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1141.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1141.py @@ -9,14 +9,29 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -class UserKeysPostBodyType(TypedDict): - """UserKeysPostBody""" +class TeamsTeamIdTeamSyncGroupMappingsPatchBodyType(TypedDict): + """TeamsTeamIdTeamSyncGroupMappingsPatchBody""" - title: NotRequired[str] - key: str + groups: List[TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType] + synced_at: NotRequired[str] -__all__ = ("UserKeysPostBodyType",) +class TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType(TypedDict): + """TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItems""" + + group_id: str + group_name: str + group_description: str + id: NotRequired[str] + name: NotRequired[str] + description: NotRequired[str] + + +__all__ = ( + "TeamsTeamIdTeamSyncGroupMappingsPatchBodyType", + "TeamsTeamIdTeamSyncGroupMappingsPatchBodyPropGroupsItemsType", +) 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 718052573..a5b98bc3c 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1142.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1142.py @@ -9,14 +9,21 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired -class UserMembershipsOrgsOrgPatchBodyType(TypedDict): - """UserMembershipsOrgsOrgPatchBody""" +class UserPatchBodyType(TypedDict): + """UserPatchBody""" - state: Literal["active"] + 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__ = ("UserMembershipsOrgsOrgPatchBodyType",) +__all__ = ("UserPatchBodyType",) 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 4d601de18..79d277415 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1143.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1143.py @@ -9,22 +9,17 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0094 import CodespaceType -class UserMigrationsPostBodyType(TypedDict): - """UserMigrationsPostBody""" - lock_repositories: NotRequired[bool] - exclude_metadata: NotRequired[bool] - exclude_git_data: NotRequired[bool] - exclude_attachments: NotRequired[bool] - exclude_releases: NotRequired[bool] - exclude_owner_projects: NotRequired[bool] - org_metadata_only: NotRequired[bool] - exclude: NotRequired[List[Literal["repositories"]]] - repositories: List[str] +class UserCodespacesGetResponse200Type(TypedDict): + """UserCodespacesGetResponse200""" + total_count: int + codespaces: List[CodespaceType] -__all__ = ("UserMigrationsPostBodyType",) + +__all__ = ("UserCodespacesGetResponse200Type",) 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 788630d15..dc342bf35 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1144.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1144.py @@ -9,15 +9,25 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -class UserProjectsPostBodyType(TypedDict): - """UserProjectsPostBody""" +class UserCodespacesPostBodyOneof0Type(TypedDict): + """UserCodespacesPostBodyOneof0""" - name: str - body: NotRequired[Union[str, None]] + repository_id: int + ref: NotRequired[str] + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] -__all__ = ("UserProjectsPostBodyType",) +__all__ = ("UserCodespacesPostBodyOneof0Type",) 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 7b85c56d3..cf235f497 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1145.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1145.py @@ -13,34 +13,29 @@ from typing_extensions import TypedDict, NotRequired -class UserReposPostBodyType(TypedDict): - """UserReposPostBody""" - - name: str - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_discussions: NotRequired[bool] - team_id: NotRequired[int] - auto_init: NotRequired[bool] - gitignore_template: NotRequired[str] - license_template: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - has_downloads: NotRequired[bool] - is_template: NotRequired[bool] - - -__all__ = ("UserReposPostBodyType",) +class UserCodespacesPostBodyOneof1Type(TypedDict): + """UserCodespacesPostBodyOneof1""" + + pull_request: UserCodespacesPostBodyOneof1PropPullRequestType + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + + +class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): + """UserCodespacesPostBodyOneof1PropPullRequest + + Pull request number for this codespace + """ + + pull_request_number: int + repository_id: int + + +__all__ = ( + "UserCodespacesPostBodyOneof1Type", + "UserCodespacesPostBodyOneof1PropPullRequestType", +) 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 e15229eae..6c62a2d33 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1146.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1146.py @@ -9,19 +9,32 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict -class UserSocialAccountsPostBodyType(TypedDict): - """UserSocialAccountsPostBody +class UserCodespacesSecretsGetResponse200Type(TypedDict): + """UserCodespacesSecretsGetResponse200""" - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} + total_count: int + secrets: List[CodespacesSecretType] + + +class CodespacesSecretType(TypedDict): + """Codespaces Secret + + Secrets for a GitHub Codespace. """ - account_urls: List[str] + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: str -__all__ = ("UserSocialAccountsPostBodyType",) +__all__ = ( + "UserCodespacesSecretsGetResponse200Type", + "CodespacesSecretType", +) 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 ee2d5aa51..f7e1dab5d 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1147.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1147.py @@ -9,19 +9,16 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -class UserSocialAccountsDeleteBodyType(TypedDict): - """UserSocialAccountsDeleteBody +class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): + """UserCodespacesSecretsSecretNamePutBody""" - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} - """ + encrypted_value: NotRequired[str] + key_id: str + selected_repository_ids: NotRequired[List[Union[int, str]]] - account_urls: List[str] - -__all__ = ("UserSocialAccountsDeleteBodyType",) +__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) 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 4e43f5e67..3f591b858 100644 --- a/githubkit/versions/ghec_v2022_11_28/types/group_1148.py +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1148.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0082 import MinimalRepositoryType -class UserSshSigningKeysPostBodyType(TypedDict): - """UserSshSigningKeysPostBody""" - title: NotRequired[str] - key: str +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: List[MinimalRepositoryType] -__all__ = ("UserSshSigningKeysPostBodyType",) + +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1149.py b/githubkit/versions/ghec_v2022_11_28/types/group_1149.py new file mode 100644 index 000000000..623f6ef5e --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1149.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List +from typing_extensions import TypedDict + + +class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" + + selected_repository_ids: List[int] + + +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1150.py b/githubkit/versions/ghec_v2022_11_28/types/group_1150.py new file mode 100644 index 000000000..b46628249 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1150.py @@ -0,0 +1,24 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List +from typing_extensions import TypedDict, NotRequired + + +class UserCodespacesCodespaceNamePatchBodyType(TypedDict): + """UserCodespacesCodespaceNamePatchBody""" + + machine: NotRequired[str] + display_name: NotRequired[str] + recent_folders: NotRequired[List[str]] + + +__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1151.py b/githubkit/versions/ghec_v2022_11_28/types/group_1151.py new file mode 100644 index 000000000..cc08641e8 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1151.py @@ -0,0 +1,25 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List +from typing_extensions import TypedDict + +from .group_0093 import CodespaceMachineType + + +class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): + """UserCodespacesCodespaceNameMachinesGetResponse200""" + + total_count: int + machines: List[CodespaceMachineType] + + +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1152.py b/githubkit/versions/ghec_v2022_11_28/types/group_1152.py new file mode 100644 index 000000000..adf5558f2 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1152.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict, NotRequired + + +class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): + """UserCodespacesCodespaceNamePublishPostBody""" + + name: NotRequired[str] + private: NotRequired[bool] + + +__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1153.py b/githubkit/versions/ghec_v2022_11_28/types/group_1153.py new file mode 100644 index 000000000..741f85377 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1153.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import TypedDict + + +class UserEmailVisibilityPatchBodyType(TypedDict): + """UserEmailVisibilityPatchBody""" + + visibility: Literal["public", "private"] + + +__all__ = ("UserEmailVisibilityPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1154.py b/githubkit/versions/ghec_v2022_11_28/types/group_1154.py new file mode 100644 index 000000000..76706bdf0 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1154.py @@ -0,0 +1,26 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List +from typing_extensions import TypedDict + + +class UserEmailsPostBodyOneof0Type(TypedDict): + """UserEmailsPostBodyOneof0 + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + + emails: List[str] + + +__all__ = ("UserEmailsPostBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1155.py b/githubkit/versions/ghec_v2022_11_28/types/group_1155.py new file mode 100644 index 000000000..a7b448531 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1155.py @@ -0,0 +1,31 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List +from typing_extensions import TypedDict + + +class UserEmailsDeleteBodyOneof0Type(TypedDict): + """UserEmailsDeleteBodyOneof0 + + Deletes one or more email addresses from your GitHub account. Must contain at + least one email address. **Note:** Alternatively, you can pass a single email + address or an `array` of emails addresses directly, but we recommend that you + pass an object using the `emails` key. + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + + emails: List[str] + + +__all__ = ("UserEmailsDeleteBodyOneof0Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1156.py b/githubkit/versions/ghec_v2022_11_28/types/group_1156.py new file mode 100644 index 000000000..c3eff10ec --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1156.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict, NotRequired + + +class UserGpgKeysPostBodyType(TypedDict): + """UserGpgKeysPostBody""" + + name: NotRequired[str] + armored_public_key: str + + +__all__ = ("UserGpgKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1157.py b/githubkit/versions/ghec_v2022_11_28/types/group_1157.py new file mode 100644 index 000000000..64abc4546 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1157.py @@ -0,0 +1,25 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List +from typing_extensions import TypedDict + +from .group_0015 import InstallationType + + +class UserInstallationsGetResponse200Type(TypedDict): + """UserInstallationsGetResponse200""" + + total_count: int + installations: List[InstallationType] + + +__all__ = ("UserInstallationsGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1158.py b/githubkit/versions/ghec_v2022_11_28/types/group_1158.py new file mode 100644 index 000000000..a8c57fcc3 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1158.py @@ -0,0 +1,26 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List +from typing_extensions import TypedDict, NotRequired + +from .group_0017 import RepositoryType + + +class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" + + total_count: int + repository_selection: NotRequired[str] + repositories: List[RepositoryType] + + +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1159.py b/githubkit/versions/ghec_v2022_11_28/types/group_1159.py new file mode 100644 index 000000000..9f9dd053b --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1159.py @@ -0,0 +1,19 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """UserInteractionLimitsGetResponse200Anyof1""" + + +__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1160.py b/githubkit/versions/ghec_v2022_11_28/types/group_1160.py new file mode 100644 index 000000000..01b3a0e4d --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1160.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict, NotRequired + + +class UserKeysPostBodyType(TypedDict): + """UserKeysPostBody""" + + title: NotRequired[str] + key: str + + +__all__ = ("UserKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1161.py b/githubkit/versions/ghec_v2022_11_28/types/group_1161.py new file mode 100644 index 000000000..718052573 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1161.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import TypedDict + + +class UserMembershipsOrgsOrgPatchBodyType(TypedDict): + """UserMembershipsOrgsOrgPatchBody""" + + state: Literal["active"] + + +__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1162.py b/githubkit/versions/ghec_v2022_11_28/types/group_1162.py new file mode 100644 index 000000000..4d601de18 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1162.py @@ -0,0 +1,30 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired + + +class UserMigrationsPostBodyType(TypedDict): + """UserMigrationsPostBody""" + + lock_repositories: NotRequired[bool] + exclude_metadata: NotRequired[bool] + exclude_git_data: NotRequired[bool] + exclude_attachments: NotRequired[bool] + exclude_releases: NotRequired[bool] + exclude_owner_projects: NotRequired[bool] + org_metadata_only: NotRequired[bool] + exclude: NotRequired[List[Literal["repositories"]]] + repositories: List[str] + + +__all__ = ("UserMigrationsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1163.py b/githubkit/versions/ghec_v2022_11_28/types/group_1163.py new file mode 100644 index 000000000..788630d15 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1163.py @@ -0,0 +1,23 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union +from typing_extensions import TypedDict, NotRequired + + +class UserProjectsPostBodyType(TypedDict): + """UserProjectsPostBody""" + + name: str + body: NotRequired[Union[str, None]] + + +__all__ = ("UserProjectsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1164.py b/githubkit/versions/ghec_v2022_11_28/types/group_1164.py new file mode 100644 index 000000000..7b85c56d3 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1164.py @@ -0,0 +1,46 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import TypedDict, NotRequired + + +class UserReposPostBodyType(TypedDict): + """UserReposPostBody""" + + name: str + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_discussions: NotRequired[bool] + team_id: NotRequired[int] + auto_init: NotRequired[bool] + gitignore_template: NotRequired[str] + license_template: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + has_downloads: NotRequired[bool] + is_template: NotRequired[bool] + + +__all__ = ("UserReposPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1165.py b/githubkit/versions/ghec_v2022_11_28/types/group_1165.py new file mode 100644 index 000000000..e15229eae --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1165.py @@ -0,0 +1,27 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List +from typing_extensions import TypedDict + + +class UserSocialAccountsPostBodyType(TypedDict): + """UserSocialAccountsPostBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: List[str] + + +__all__ = ("UserSocialAccountsPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1166.py b/githubkit/versions/ghec_v2022_11_28/types/group_1166.py new file mode 100644 index 000000000..ee2d5aa51 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1166.py @@ -0,0 +1,27 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List +from typing_extensions import TypedDict + + +class UserSocialAccountsDeleteBodyType(TypedDict): + """UserSocialAccountsDeleteBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: List[str] + + +__all__ = ("UserSocialAccountsDeleteBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1167.py b/githubkit/versions/ghec_v2022_11_28/types/group_1167.py new file mode 100644 index 000000000..4e43f5e67 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1167.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict, NotRequired + + +class UserSshSigningKeysPostBodyType(TypedDict): + """UserSshSigningKeysPostBody""" + + title: NotRequired[str] + key: str + + +__all__ = ("UserSshSigningKeysPostBodyType",) diff --git a/githubkit/versions/ghec_v2022_11_28/types/group_1168.py b/githubkit/versions/ghec_v2022_11_28/types/group_1168.py new file mode 100644 index 000000000..293532f7a --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/types/group_1168.py @@ -0,0 +1,151 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List, Union +from typing_extensions import TypedDict, NotRequired + + +class UsersUsernameAttestationsSubjectDigestGetResponse200Type(TypedDict): + """UsersUsernameAttestationsSubjectDigestGetResponse200""" + + attestations: NotRequired[ + List[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType + ] + ] + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[SigstoreBundle0Type] + repository_id: NotRequired[int] + + +class SigstoreBundle0Type(TypedDict): + """Sigstore Bundle v0.1 + + Sigstore Bundle v0.1 + """ + + media_type: NotRequired[str] + verification_material: NotRequired[SigstoreBundle0PropVerificationMaterialType] + dsse_envelope: NotRequired[SigstoreBundle0PropDsseEnvelopeType] + + +class SigstoreBundle0PropDsseEnvelopeType(TypedDict): + """SigstoreBundle0PropDsseEnvelope""" + + payload: NotRequired[str] + payload_type: NotRequired[str] + signatures: NotRequired[ + List[SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType] + ] + + +class SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType(TypedDict): + """SigstoreBundle0PropDsseEnvelopePropSignaturesItems""" + + sig: NotRequired[str] + keyid: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialType(TypedDict): + """SigstoreBundle0PropVerificationMaterial""" + + x_509_certificate_chain: NotRequired[ + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType + ] + tlog_entries: NotRequired[ + List[SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType] + ] + timestamp_verification_data: NotRequired[Union[str, None]] + + +class SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType(TypedDict): + """SigstoreBundle0PropVerificationMaterialPropX509CertificateChain""" + + certificates: NotRequired[ + List[ + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType + ] + ] + + +class SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType( + TypedDict +): + """SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesI + tems + """ + + raw_bytes: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType(TypedDict): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems""" + + log_index: NotRequired[str] + log_id: NotRequired[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType + ] + kind_version: NotRequired[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType + ] + integrated_time: NotRequired[str] + inclusion_promise: NotRequired[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType + ] + inclusion_proof: NotRequired[Union[str, None]] + canonicalized_body: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType( + TypedDict +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId""" + + key_id: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType( + TypedDict +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion""" + + kind: NotRequired[str] + version: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType( + TypedDict +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise""" + + signed_entry_timestamp: NotRequired[str] + + +__all__ = ( + "UsersUsernameAttestationsSubjectDigestGetResponse200Type", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "SigstoreBundle0Type", + "SigstoreBundle0PropDsseEnvelopeType", + "SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType", + "SigstoreBundle0PropVerificationMaterialType", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType", +) diff --git a/githubkit/versions/ghec_v2022_11_28/webhooks/__init__.py b/githubkit/versions/ghec_v2022_11_28/webhooks/__init__.py index 479d9967f..4ee820fd0 100644 --- a/githubkit/versions/ghec_v2022_11_28/webhooks/__init__.py +++ b/githubkit/versions/ghec_v2022_11_28/webhooks/__init__.py @@ -163,6 +163,9 @@ from .github_app_authorization import ( GithubAppAuthorizationEvent as GithubAppAuthorizationEvent, ) + from .projects_v2_status_update import ( + ProjectsV2StatusUpdateEvent as ProjectsV2StatusUpdateEvent, + ) from .discussion_comment import ( discussion_comment_action_types as discussion_comment_action_types, ) @@ -214,6 +217,9 @@ from .custom_property_values import ( custom_property_values_action_types as custom_property_values_action_types, ) + from .exemption_request_push_ruleset import ( + ExemptionRequestPushRulesetEvent as ExemptionRequestPushRulesetEvent, + ) from .secret_scanning_alert_location import ( SecretScanningAlertLocationEvent as SecretScanningAlertLocationEvent, ) @@ -229,6 +235,9 @@ from .installation_repositories import ( installation_repositories_action_types as installation_repositories_action_types, ) + from .projects_v2_status_update import ( + projects_v2_status_update_action_types as projects_v2_status_update_action_types, + ) from .exemption_request_secret_scanning import ( ExemptionRequestSecretScanningEvent as ExemptionRequestSecretScanningEvent, ) @@ -244,6 +253,9 @@ from .personal_access_token_request import ( personal_access_token_request_action_types as personal_access_token_request_action_types, ) + from .exemption_request_push_ruleset import ( + exemption_request_push_ruleset_action_types as exemption_request_push_ruleset_action_types, + ) from .repository_vulnerability_alert import ( repository_vulnerability_alert_action_types as repository_vulnerability_alert_action_types, ) @@ -266,6 +278,10 @@ "BranchProtectionRuleEvent", "branch_protection_rule_action_types", ), + ".exemption_request_push_ruleset": ( + "ExemptionRequestPushRulesetEvent", + "exemption_request_push_ruleset_action_types", + ), ".exemption_request_secret_scanning": ( "ExemptionRequestSecretScanningEvent", "exemption_request_secret_scanning_action_types", @@ -345,6 +361,10 @@ ".project_column": ("ProjectColumnEvent", "project_column_action_types"), ".projects_v2": ("ProjectsV2Event", "projects_v2_action_types"), ".projects_v2_item": ("ProjectsV2ItemEvent", "projects_v2_item_action_types"), + ".projects_v2_status_update": ( + "ProjectsV2StatusUpdateEvent", + "projects_v2_status_update_action_types", + ), ".public": ("PublicEvent", "public_action_types"), ".pull_request": ("PullRequestEvent", "pull_request_action_types"), ".pull_request_review_comment": ( diff --git a/githubkit/versions/ghec_v2022_11_28/webhooks/_namespace.py b/githubkit/versions/ghec_v2022_11_28/webhooks/_namespace.py index 8521ba69e..b20cf6ca9 100644 --- a/githubkit/versions/ghec_v2022_11_28/webhooks/_namespace.py +++ b/githubkit/versions/ghec_v2022_11_28/webhooks/_namespace.py @@ -86,11 +86,13 @@ from .branch_protection_rule import BranchProtectionRuleEvent from .custom_property_values import CustomPropertyValuesEvent from .github_app_authorization import GithubAppAuthorizationEvent + from .projects_v2_status_update import ProjectsV2StatusUpdateEvent from .installation_repositories import InstallationRepositoriesEvent from .pull_request_review_thread import PullRequestReviewThreadEvent from .deployment_protection_rule import DeploymentProtectionRuleEvent from .pull_request_review_comment import PullRequestReviewCommentEvent from .personal_access_token_request import PersonalAccessTokenRequestEvent + from .exemption_request_push_ruleset import ExemptionRequestPushRulesetEvent from .secret_scanning_alert_location import SecretScanningAlertLocationEvent from .repository_vulnerability_alert import RepositoryVulnerabilityAlertEvent from .branch_protection_configuration import BranchProtectionConfigurationEvent @@ -100,6 +102,7 @@ EventNameType: TypeAlias = Literal[ "branch_protection_configuration", "branch_protection_rule", + "exemption_request_push_ruleset", "exemption_request_secret_scanning", "check_run", "check_suite", @@ -143,6 +146,7 @@ "project_column", "projects_v2", "projects_v2_item", + "projects_v2_status_update", "public", "pull_request", "pull_request_review_comment", @@ -174,6 +178,7 @@ VALID_EVENT_NAMES: Set[EventNameType] = { "branch_protection_configuration", "branch_protection_rule", + "exemption_request_push_ruleset", "exemption_request_secret_scanning", "check_run", "check_suite", @@ -217,6 +222,7 @@ "project_column", "projects_v2", "projects_v2_item", + "projects_v2_status_update", "public", "pull_request", "pull_request_review_comment", @@ -277,6 +283,11 @@ def parse( ) -> "BranchProtectionRuleEvent": ... @overload @staticmethod + def parse( + name: Literal["exemption_request_push_ruleset"], payload: Union[str, bytes] + ) -> "ExemptionRequestPushRulesetEvent": ... + @overload + @staticmethod def parse( name: Literal["exemption_request_secret_scanning"], payload: Union[str, bytes] ) -> "ExemptionRequestSecretScanningEvent": ... @@ -474,6 +485,11 @@ def parse( ) -> "ProjectsV2ItemEvent": ... @overload @staticmethod + def parse( + name: Literal["projects_v2_status_update"], payload: Union[str, bytes] + ) -> "ProjectsV2StatusUpdateEvent": ... + @overload + @staticmethod def parse(name: Literal["public"], payload: Union[str, bytes]) -> "PublicEvent": ... @overload @staticmethod @@ -644,6 +660,11 @@ def parse_obj( ) -> "BranchProtectionRuleEvent": ... @overload @staticmethod + def parse_obj( + name: Literal["exemption_request_push_ruleset"], payload: Dict[str, Any] + ) -> "ExemptionRequestPushRulesetEvent": ... + @overload + @staticmethod def parse_obj( name: Literal["exemption_request_secret_scanning"], payload: Dict[str, Any] ) -> "ExemptionRequestSecretScanningEvent": ... @@ -851,6 +872,11 @@ def parse_obj( ) -> "ProjectsV2ItemEvent": ... @overload @staticmethod + def parse_obj( + name: Literal["projects_v2_status_update"], payload: Dict[str, Any] + ) -> "ProjectsV2StatusUpdateEvent": ... + @overload + @staticmethod def parse_obj( name: Literal["public"], payload: Dict[str, Any] ) -> "PublicEvent": ... diff --git a/githubkit/versions/ghec_v2022_11_28/webhooks/_types.py b/githubkit/versions/ghec_v2022_11_28/webhooks/_types.py index 508ccbaaf..cf317db98 100644 --- a/githubkit/versions/ghec_v2022_11_28/webhooks/_types.py +++ b/githubkit/versions/ghec_v2022_11_28/webhooks/_types.py @@ -116,6 +116,7 @@ from .github_app_authorization import Event as GithubAppAuthorizationEvent from .dependabot_alert import action_types as dependabot_alert_action_types from .projects_v2_item import action_types as projects_v2_item_action_types +from .projects_v2_status_update import Event as ProjectsV2StatusUpdateEvent from .registry_package import action_types as registry_package_action_types from .deployment_review import action_types as deployment_review_action_types from .deployment_status import action_types as deployment_status_action_types @@ -135,6 +136,7 @@ from .repository_dispatch import action_types as repository_dispatch_action_types from .marketplace_purchase import action_types as marketplace_purchase_action_types from .personal_access_token_request import Event as PersonalAccessTokenRequestEvent +from .exemption_request_push_ruleset import Event as ExemptionRequestPushRulesetEvent from .secret_scanning_alert import action_types as secret_scanning_alert_action_types from .secret_scanning_alert_location import Event as SecretScanningAlertLocationEvent from .security_and_analysis import action_types as security_and_analysis_action_types @@ -151,6 +153,9 @@ from .installation_repositories import ( action_types as installation_repositories_action_types, ) +from .projects_v2_status_update import ( + action_types as projects_v2_status_update_action_types, +) from .deployment_protection_rule import ( action_types as deployment_protection_rule_action_types, ) @@ -163,6 +168,9 @@ from .personal_access_token_request import ( action_types as personal_access_token_request_action_types, ) +from .exemption_request_push_ruleset import ( + action_types as exemption_request_push_ruleset_action_types, +) from .repository_vulnerability_alert import ( action_types as repository_vulnerability_alert_action_types, ) @@ -179,6 +187,7 @@ WebhookEvent = Union[ BranchProtectionConfigurationEvent, BranchProtectionRuleEvent, + ExemptionRequestPushRulesetEvent, ExemptionRequestSecretScanningEvent, CheckRunEvent, CheckSuiteEvent, @@ -222,6 +231,7 @@ ProjectColumnEvent, ProjectsV2Event, ProjectsV2ItemEvent, + ProjectsV2StatusUpdateEvent, PublicEvent, PullRequestEvent, PullRequestReviewCommentEvent, @@ -254,6 +264,7 @@ webhook_action_types = { "branch_protection_configuration": branch_protection_configuration_action_types, "branch_protection_rule": branch_protection_rule_action_types, + "exemption_request_push_ruleset": exemption_request_push_ruleset_action_types, "exemption_request_secret_scanning": exemption_request_secret_scanning_action_types, "check_run": check_run_action_types, "check_suite": check_suite_action_types, @@ -297,6 +308,7 @@ "project_column": project_column_action_types, "projects_v2": projects_v2_action_types, "projects_v2_item": projects_v2_item_action_types, + "projects_v2_status_update": projects_v2_status_update_action_types, "public": public_action_types, "pull_request": pull_request_action_types, "pull_request_review_comment": pull_request_review_comment_action_types, @@ -329,6 +341,7 @@ webhook_event_types = { "branch_protection_configuration": BranchProtectionConfigurationEvent, "branch_protection_rule": BranchProtectionRuleEvent, + "exemption_request_push_ruleset": ExemptionRequestPushRulesetEvent, "exemption_request_secret_scanning": ExemptionRequestSecretScanningEvent, "check_run": CheckRunEvent, "check_suite": CheckSuiteEvent, @@ -372,6 +385,7 @@ "project_column": ProjectColumnEvent, "projects_v2": ProjectsV2Event, "projects_v2_item": ProjectsV2ItemEvent, + "projects_v2_status_update": ProjectsV2StatusUpdateEvent, "public": PublicEvent, "pull_request": PullRequestEvent, "pull_request_review_comment": PullRequestReviewCommentEvent, diff --git a/githubkit/versions/ghec_v2022_11_28/webhooks/exemption_request_push_ruleset.py b/githubkit/versions/ghec_v2022_11_28/webhooks/exemption_request_push_ruleset.py new file mode 100644 index 000000000..5fad91dde --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/webhooks/exemption_request_push_ruleset.py @@ -0,0 +1,53 @@ +"""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 typing import Dict, Type, Union +from typing_extensions import Annotated, TypeAlias + +from pydantic import Field + +from githubkit.compat import GitHubModel + +from ..models import ( + WebhookExemptionRequestCreated, + WebhookExemptionRequestCancelled, + WebhookExemptionRequestCompleted, + WebhookExemptionRequestResponseDismissed, + WebhookExemptionRequestResponseSubmitted, +) + +Event: TypeAlias = Annotated[ + Union[ + WebhookExemptionRequestCancelled, + WebhookExemptionRequestCompleted, + WebhookExemptionRequestCreated, + WebhookExemptionRequestResponseDismissed, + WebhookExemptionRequestResponseSubmitted, + ], + Field(discriminator="action"), +] + +ExemptionRequestPushRulesetEvent: TypeAlias = Event + +action_types: Dict[str, Type[GitHubModel]] = { + "cancelled": WebhookExemptionRequestCancelled, + "completed": WebhookExemptionRequestCompleted, + "created": WebhookExemptionRequestCreated, + "response_dismissed": WebhookExemptionRequestResponseDismissed, + "response_submitted": WebhookExemptionRequestResponseSubmitted, +} + +exemption_request_push_ruleset_action_types = action_types + +__all__ = ( + "Event", + "ExemptionRequestPushRulesetEvent", + "action_types", + "exemption_request_push_ruleset_action_types", +) diff --git a/githubkit/versions/ghec_v2022_11_28/webhooks/projects_v2_status_update.py b/githubkit/versions/ghec_v2022_11_28/webhooks/projects_v2_status_update.py new file mode 100644 index 000000000..e945576c1 --- /dev/null +++ b/githubkit/versions/ghec_v2022_11_28/webhooks/projects_v2_status_update.py @@ -0,0 +1,47 @@ +"""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 typing import Dict, Type, Union +from typing_extensions import Annotated, TypeAlias + +from pydantic import Field + +from githubkit.compat import GitHubModel + +from ..models import ( + WebhookProjectsV2StatusUpdateEdited, + WebhookProjectsV2StatusUpdateCreated, + WebhookProjectsV2StatusUpdateDeleted, +) + +Event: TypeAlias = Annotated[ + Union[ + WebhookProjectsV2StatusUpdateCreated, + WebhookProjectsV2StatusUpdateDeleted, + WebhookProjectsV2StatusUpdateEdited, + ], + Field(discriminator="action"), +] + +ProjectsV2StatusUpdateEvent: TypeAlias = Event + +action_types: Dict[str, Type[GitHubModel]] = { + "created": WebhookProjectsV2StatusUpdateCreated, + "deleted": WebhookProjectsV2StatusUpdateDeleted, + "edited": WebhookProjectsV2StatusUpdateEdited, +} + +projects_v2_status_update_action_types = action_types + +__all__ = ( + "Event", + "ProjectsV2StatusUpdateEvent", + "action_types", + "projects_v2_status_update_action_types", +) diff --git a/githubkit/versions/latest/models.py b/githubkit/versions/latest/models.py index b5c64f263..ed6e19930 100644 --- a/githubkit/versions/latest/models.py +++ b/githubkit/versions/latest/models.py @@ -155,6 +155,7 @@ from githubkit.versions.v2022_11_28.models import CommitActivity as CommitActivity from githubkit.versions.v2022_11_28.models import ContentSymlink as ContentSymlink from githubkit.versions.v2022_11_28.models import ContentTraffic as ContentTraffic + from githubkit.versions.v2022_11_28.models import EnterpriseTeam as EnterpriseTeam from githubkit.versions.v2022_11_28.models import FullRepository as FullRepository from githubkit.versions.v2022_11_28.models import GlobalAdvisory as GlobalAdvisory from githubkit.versions.v2022_11_28.models import LicenseContent as LicenseContent @@ -182,6 +183,7 @@ from githubkit.versions.v2022_11_28.models import ReferrerTraffic as ReferrerTraffic from githubkit.versions.v2022_11_28.models import RuleSuitesItems as RuleSuitesItems from githubkit.versions.v2022_11_28.models import SelectedActions as SelectedActions + from githubkit.versions.v2022_11_28.models import SigstoreBundle0 as SigstoreBundle0 from githubkit.versions.v2022_11_28.models import SimpleClassroom as SimpleClassroom from githubkit.versions.v2022_11_28.models import SnapshotPropJob as SnapshotPropJob from githubkit.versions.v2022_11_28.models import ValidationError as ValidationError @@ -432,9 +434,15 @@ from githubkit.versions.v2022_11_28.models import ( SimpleUserWebhooks as SimpleUserWebhooks, ) + from githubkit.versions.v2022_11_28.models import ( + TeamRoleAssignment as TeamRoleAssignment, + ) from githubkit.versions.v2022_11_28.models import ( ThreadSubscription as ThreadSubscription, ) + from githubkit.versions.v2022_11_28.models import ( + UserRoleAssignment as UserRoleAssignment, + ) from githubkit.versions.v2022_11_28.models import ( WebhookLabelEdited as WebhookLabelEdited, ) @@ -867,6 +875,9 @@ from githubkit.versions.v2022_11_28.models import ( OrganizationInvitation as OrganizationInvitation, ) + from githubkit.versions.v2022_11_28.models import ( + ProjectsV2StatusUpdate as ProjectsV2StatusUpdate, + ) from githubkit.versions.v2022_11_28.models import ( PullRequestMergeResult as PullRequestMergeResult, ) @@ -1188,6 +1199,9 @@ from githubkit.versions.v2022_11_28.models import ( CodeScanningSarifsReceipt as CodeScanningSarifsReceipt, ) + from githubkit.versions.v2022_11_28.models import ( + CodeSecurityConfiguration as CodeSecurityConfiguration, + ) from githubkit.versions.v2022_11_28.models import ( CommunityProfilePropFiles as CommunityProfilePropFiles, ) @@ -1359,6 +1373,9 @@ from githubkit.versions.v2022_11_28.models import ( ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody, ) + from githubkit.versions.v2022_11_28.models import ( + ProjectsV2IterationSetting as ProjectsV2IterationSetting, + ) from githubkit.versions.v2022_11_28.models import ( PullRequestMinimalPropBase as PullRequestMinimalPropBase, ) @@ -1677,6 +1694,9 @@ from githubkit.versions.v2022_11_28.models import ( OrganizationDependabotSecret as OrganizationDependabotSecret, ) + from githubkit.versions.v2022_11_28.models import ( + ProjectsV2SingleSelectOption as ProjectsV2SingleSelectOption, + ) from githubkit.versions.v2022_11_28.models import ( ProtectedBranchAdminEnforced as ProtectedBranchAdminEnforced, ) @@ -2172,6 +2192,9 @@ from githubkit.versions.v2022_11_28.models import ( SecretScanningLocationIssueBody as SecretScanningLocationIssueBody, ) + from githubkit.versions.v2022_11_28.models import ( + SigstoreBundle0PropDsseEnvelope as SigstoreBundle0PropDsseEnvelope, + ) from githubkit.versions.v2022_11_28.models import ( UserInstallationsGetResponse200 as UserInstallationsGetResponse200, ) @@ -2478,6 +2501,9 @@ from githubkit.versions.v2022_11_28.models import ( RuleSuitePropRuleEvaluationsItems as RuleSuitePropRuleEvaluationsItems, ) + from githubkit.versions.v2022_11_28.models import ( + TeamRoleAssignmentPropPermissions as TeamRoleAssignmentPropPermissions, + ) from githubkit.versions.v2022_11_28.models import ( WebhookBranchProtectionRuleEdited as WebhookBranchProtectionRuleEdited, ) @@ -2571,6 +2597,9 @@ from githubkit.versions.v2022_11_28.models import ( PullRequestReviewPropLinksPropHtml as PullRequestReviewPropLinksPropHtml, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsPostBody as ReposOwnerRepoAttestationsPostBody, + ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoHooksHookIdPatchBody as ReposOwnerRepoHooksHookIdPatchBody, ) @@ -2778,6 +2807,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookProjectCardEditedPropChanges as WebhookProjectCardEditedPropChanges, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookProjectsV2StatusUpdateEdited as WebhookProjectsV2StatusUpdateEdited, + ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAutoMergeDisabled as WebhookPullRequestAutoMergeDisabled, ) @@ -2907,6 +2939,12 @@ from githubkit.versions.v2022_11_28.models import ( WebhookMetaDeletedPropHookPropConfig as WebhookMetaDeletedPropHookPropConfig, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookProjectsV2StatusUpdateCreated as WebhookProjectsV2StatusUpdateCreated, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookProjectsV2StatusUpdateDeleted as WebhookProjectsV2StatusUpdateDeleted, + ) from githubkit.versions.v2022_11_28.models import ( WebhookPushPropRepositoryPropLicense as WebhookPushPropRepositoryPropLicense, ) @@ -2946,6 +2984,9 @@ from githubkit.versions.v2022_11_28.models import ( CodeScanningVariantAnalysisRepository as CodeScanningVariantAnalysisRepository, ) + from githubkit.versions.v2022_11_28.models import ( + CodeSecurityConfigurationRepositories as CodeSecurityConfigurationRepositories, + ) from githubkit.versions.v2022_11_28.models import ( CopilotUsageMetricsPropBreakdownItems as CopilotUsageMetricsPropBreakdownItems, ) @@ -3060,6 +3101,9 @@ from githubkit.versions.v2022_11_28.models import ( CodeScanningDefaultSetupUpdateResponse as CodeScanningDefaultSetupUpdateResponse, ) + from githubkit.versions.v2022_11_28.models import ( + CodeSecurityDefaultConfigurationsItems as CodeSecurityDefaultConfigurationsItems, + ) from githubkit.versions.v2022_11_28.models import ( CommitSearchResultItemPropParentsItems as CommitSearchResultItemPropParentsItems, ) @@ -3255,6 +3299,9 @@ from githubkit.versions.v2022_11_28.models import ( SecurityAndAnalysisPropAdvancedSecurity as SecurityAndAnalysisPropAdvancedSecurity, ) + from githubkit.versions.v2022_11_28.models import ( + SigstoreBundle0PropVerificationMaterial as SigstoreBundle0PropVerificationMaterial, + ) from githubkit.versions.v2022_11_28.models import ( WebhookDeploymentCreatedPropWorkflowRun as WebhookDeploymentCreatedPropWorkflowRun, ) @@ -3453,6 +3500,9 @@ from githubkit.versions.v2022_11_28.models import ( EnvironmentPropProtectionRulesItemsAnyof2 as EnvironmentPropProtectionRulesItemsAnyof2, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgCodeSecurityConfigurationsPostBody as OrgsOrgCodeSecurityConfigurationsPostBody, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgCodespacesSecretsSecretNamePutBody as OrgsOrgCodespacesSecretsSecretNamePutBody, ) @@ -3471,6 +3521,9 @@ from githubkit.versions.v2022_11_28.models import ( PullRequestReviewPropLinksPropPullRequest as PullRequestReviewPropLinksPropPullRequest, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsPostResponse201 as ReposOwnerRepoAttestationsPostResponse201, + ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoCheckRunsPostBodyPropOutput as ReposOwnerRepoCheckRunsPostBodyPropOutput, ) @@ -3936,6 +3989,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoActionsWorkflowsGetResponse200 as ReposOwnerRepoActionsWorkflowsGetResponse200, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsPostBodyPropBundle as ReposOwnerRepoAttestationsPostBodyPropBundle, + ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBody as ReposOwnerRepoImportAuthorsAuthorIdPatchBody, ) @@ -4137,6 +4193,9 @@ from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsVariablesNameRepositoriesPutBody as OrgsOrgActionsVariablesNameRepositoriesPutBody, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgAttestationsSubjectDigestGetResponse200 as OrgsOrgAttestationsSubjectDigestGetResponse200, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBody as OrgsOrgCodespacesAccessSelectedUsersDeleteBody, ) @@ -4233,6 +4292,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookProjectCardMovedPropChangesPropColumnId as WebhookProjectCardMovedPropChangesPropColumnId, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookProjectsV2StatusUpdateEditedPropChanges as WebhookProjectsV2StatusUpdateEditedPropChanges, + ) from githubkit.versions.v2022_11_28.models import ( WebhookReleasePrereleasedPropReleasePropAuthor as WebhookReleasePrereleasedPropReleasePropAuthor, ) @@ -4743,6 +4805,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2, ) + from githubkit.versions.v2022_11_28.models import ( + SigstoreBundle0PropDsseEnvelopePropSignaturesItems as SigstoreBundle0PropDsseEnvelopePropSignaturesItems, + ) from githubkit.versions.v2022_11_28.models import ( UserCodespacesSecretsSecretNameRepositoriesPutBody as UserCodespacesSecretsSecretNameRepositoriesPutBody, ) @@ -4953,6 +5018,9 @@ from githubkit.versions.v2022_11_28.models import ( RepositoryRuleCommitAuthorEmailPatternPropParameters as RepositoryRuleCommitAuthorEmailPatternPropParameters, ) + from githubkit.versions.v2022_11_28.models import ( + UsersUsernameAttestationsSubjectDigestGetResponse200 as UsersUsernameAttestationsSubjectDigestGetResponse200, + ) from githubkit.versions.v2022_11_28.models import ( WebhookInstallationTargetRenamedPropChangesPropLogin as WebhookInstallationTargetRenamedPropChangesPropLogin, ) @@ -5061,6 +5129,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200 as ReposOwnerRepoAttestationsSubjectDigestGetResponse200, + ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaults as ReposOwnerRepoCodespacesNewGetResponse200PropDefaults, ) @@ -5199,6 +5270,9 @@ from githubkit.versions.v2022_11_28.models import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItems as WorkflowRunUsagePropBillablePropMacosPropJobRunsItems, ) + from githubkit.versions.v2022_11_28.models import ( + EnterprisesEnterpriseCopilotBillingSeatsGetResponse200 as EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody, ) @@ -5268,6 +5342,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesUnlockedPropIssuePropMilestonePropCreator as WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropBody as WebhookProjectsV2StatusUpdateEditedPropChangesPropBody, + ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAssignedPropPullRequestPropAutoMerge as WebhookPullRequestAssignedPropPullRequestPropAutoMerge, ) @@ -5463,6 +5540,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items, ) + from githubkit.versions.v2022_11_28.models import ( + SecurityAndAnalysisPropSecretScanningNonProviderPatterns as SecurityAndAnalysisPropSecretScanningNonProviderPatterns, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, ) @@ -5508,6 +5588,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookProjectsV2ProjectEditedPropChangesPropDescription as WebhookProjectsV2ProjectEditedPropChangesPropDescription, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus as WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus, + ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItems as WebhookPullRequestAssignedPropPullRequestPropLabelsItems, ) @@ -5595,6 +5678,9 @@ from githubkit.versions.v2022_11_28.models import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, + ) from githubkit.versions.v2022_11_28.models import ( ProtectedBranchPullRequestReviewPropDismissalRestrictions as ProtectedBranchPullRequestReviewPropDismissalRestrictions, ) @@ -5868,6 +5954,9 @@ from githubkit.versions.v2022_11_28.models import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage, ) + from githubkit.versions.v2022_11_28.models import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems, + ) from githubkit.versions.v2022_11_28.models import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository, ) @@ -5895,6 +5984,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee as WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate, + ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItems as WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, ) @@ -5967,6 +6059,9 @@ from githubkit.versions.v2022_11_28.models import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepository as PersonalAccessTokenRequestPropPermissionsAddedPropRepository, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope, + ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200 as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200, ) @@ -6003,6 +6098,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate, + ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits, ) @@ -6258,6 +6356,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, + ) from githubkit.versions.v2022_11_28.models import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganization as PersonalAccessTokenRequestPropPermissionsAddedPropOrganization, ) @@ -6405,6 +6506,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, ) @@ -6420,6 +6524,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody, ) + from githubkit.versions.v2022_11_28.models import ( + SigstoreBundle0PropVerificationMaterialPropX509CertificateChain as SigstoreBundle0PropVerificationMaterialPropX509CertificateChain, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems, ) @@ -6783,6 +6890,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync as WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor, ) @@ -6960,6 +7070,9 @@ from githubkit.versions.v2022_11_28.models import ( CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos as CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems, + ) from githubkit.versions.v2022_11_28.models import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage, ) @@ -7110,6 +7223,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial, + ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0, ) @@ -7119,6 +7235,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0, ) + from githubkit.versions.v2022_11_28.models import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId, + ) from githubkit.versions.v2022_11_28.models import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) @@ -7410,6 +7529,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, + ) from githubkit.versions.v2022_11_28.models import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, ) @@ -7539,6 +7661,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval as WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase, ) @@ -7809,6 +7934,9 @@ from githubkit.versions.v2022_11_28.models import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, ) + from githubkit.versions.v2022_11_28.models import ( + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage, ) @@ -7896,9 +8024,18 @@ from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems, + ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody, ) + from githubkit.versions.v2022_11_28.models import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion, + ) + from githubkit.versions.v2022_11_28.models import ( + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation, ) @@ -8256,6 +8393,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, + ) from githubkit.versions.v2022_11_28.models import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) @@ -8409,6 +8549,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200, ) + from githubkit.versions.v2022_11_28.models import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) @@ -8655,6 +8798,9 @@ from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems, ) + from githubkit.versions.v2022_11_28.models import ( + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage, ) @@ -8712,6 +8858,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns, + ) from githubkit.versions.v2022_11_28.models import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation, ) @@ -8763,12 +8912,18 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, + ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems, ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200, ) + from githubkit.versions.v2022_11_28.models import ( + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems, + ) from githubkit.versions.v2022_11_28.models import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel, ) @@ -9078,6 +9233,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, + ) from githubkit.versions.v2022_11_28.models import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) @@ -9144,9 +9302,15 @@ from githubkit.versions.v2022_11_28.models import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, + ) from githubkit.versions.v2022_11_28.models import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions, ) + from githubkit.versions.v2022_11_28.models import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, + ) from githubkit.versions.v2022_11_28.models import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, ) @@ -9183,6 +9347,9 @@ from githubkit.versions.v2022_11_28.models import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) + from githubkit.versions.v2022_11_28.models import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, + ) else: __lazy_vars__ = { "githubkit.versions.v2022_11_28.models": ( @@ -9230,6 +9397,14 @@ "SimpleClassroomAssignment", "SimpleClassroom", "ClassroomAssignmentGrade", + "TeamSimple", + "Team", + "TeamPropPermissions", + "OrganizationSimple", + "CopilotSeatDetails", + "EnterpriseTeam", + "Organization", + "OrganizationPropPlan", "CopilotUsageMetrics", "CopilotUsageMetricsPropBreakdownItems", "DependabotAlertPackage", @@ -9286,6 +9461,7 @@ "SecurityAndAnalysisPropDependabotSecurityUpdates", "SecurityAndAnalysisPropSecretScanning", "SecurityAndAnalysisPropSecretScanningPushProtection", + "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", "MinimalRepository", "CodeOfConduct", "MinimalRepositoryPropPermissions", @@ -9297,7 +9473,6 @@ "OrganizationFullPropPlan", "ActionsCacheUsageOrgEnterprise", "OidcCustomSub", - "EmptyObject", "ActionsOrganizationPermissions", "SelectedActions", "ActionsGetDefaultWorkflowPermissions", @@ -9314,6 +9489,9 @@ "CodeScanningAlertLocation", "CodeScanningAlertInstancePropMessage", "CodeScanningOrganizationAlertItems", + "CodeSecurityConfiguration", + "CodeSecurityDefaultConfigurationsItems", + "CodeSecurityConfigurationRepositories", "CodespaceMachine", "Codespace", "CodespacePropGitStatus", @@ -9321,13 +9499,6 @@ "CodespacesPublicKey", "CopilotOrganizationDetails", "CopilotSeatBreakdown", - "TeamSimple", - "Team", - "TeamPropPermissions", - "CopilotSeatDetails", - "Organization", - "OrganizationPropPlan", - "OrgsOrgCopilotBillingSeatsGetResponse200", "DependabotPublicKey", "Package", "OrganizationInvitation", @@ -9336,12 +9507,14 @@ "InteractionLimitResponse", "InteractionLimit", "OrgMembership", - "OrganizationSimple", "OrgMembershipPropPermissions", "Migration", "OrganizationFineGrainedPermission", "OrganizationRole", "OrgsOrgOrganizationRolesGetResponse200", + "TeamRoleAssignment", + "TeamRoleAssignmentPropPermissions", + "UserRoleAssignment", "PackageVersion", "PackageVersionPropMetadata", "PackageVersionPropMetadataPropContainer", @@ -9527,6 +9700,7 @@ "Verification", "DiffEntry", "Commit", + "EmptyObject", "CommitPropParentsItems", "CommitPropStats", "CommitPropCommit", @@ -9965,6 +10139,7 @@ "WebhooksProjectChanges", "WebhooksProjectChangesPropArchivedAt", "ProjectsV2Item", + "ProjectsV2StatusUpdate", "PullRequestWebhook", "PullRequestWebhookAllof1", "WebhooksPullRequest5", @@ -10057,6 +10232,10 @@ "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", "WebhookCheckRunCompleted", @@ -10771,6 +10950,8 @@ "WebhookProjectsV2ItemEdited", "WebhookProjectsV2ItemEditedPropChangesOneof0", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", + "ProjectsV2SingleSelectOption", + "ProjectsV2IterationSetting", "WebhookProjectsV2ItemEditedPropChangesOneof1", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", "WebhookProjectsV2ItemReordered", @@ -10778,6 +10959,14 @@ "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", "WebhookProjectsV2ItemRestored", "WebhookProjectsV2ProjectReopened", + "WebhookProjectsV2StatusUpdateCreated", + "WebhookProjectsV2StatusUpdateDeleted", + "WebhookProjectsV2StatusUpdateEdited", + "WebhookProjectsV2StatusUpdateEditedPropChanges", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", "WebhookPublic", "WebhookPullRequestAssigned", "WebhookPullRequestAssignedPropPullRequest", @@ -11983,6 +12172,7 @@ "ApplicationsClientIdTokenPatchBody", "ApplicationsClientIdTokenScopedPostBody", "EmojisGetResponse200", + "EnterprisesEnterpriseCopilotBillingSeatsGetResponse200", "EnterprisesEnterpriseSecretScanningAlertsGetResponse503", "GistsPostBody", "GistsPostBodyPropFiles", @@ -12022,6 +12212,16 @@ "OrgsOrgActionsVariablesNamePatchBody", "OrgsOrgActionsVariablesNameRepositoriesGetResponse200", "OrgsOrgActionsVariablesNameRepositoriesPutBody", + "OrgsOrgAttestationsSubjectDigestGetResponse200", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + "OrgsOrgCodeSecurityConfigurationsPostBody", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", "OrgsOrgCodespacesGetResponse200", "OrgsOrgCodespacesAccessPutBody", "OrgsOrgCodespacesAccessSelectedUsersPostBody", @@ -12031,6 +12231,7 @@ "OrgsOrgCodespacesSecretsSecretNamePutBody", "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200", "OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody", + "OrgsOrgCopilotBillingSeatsGetResponse200", "OrgsOrgCopilotBillingSelectedTeamsPostBody", "OrgsOrgCopilotBillingSelectedTeamsPostResponse201", "OrgsOrgCopilotBillingSelectedTeamsDeleteBody", @@ -12111,6 +12312,7 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", "ReposOwnerRepoActionsArtifactsGetResponse200", "ReposOwnerRepoActionsJobsJobIdRerunPostBody", "ReposOwnerRepoActionsOidcCustomizationSubPutBody", @@ -12138,6 +12340,16 @@ "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", "ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200", + "ReposOwnerRepoAttestationsPostBody", + "ReposOwnerRepoAttestationsPostBodyPropBundle", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", + "ReposOwnerRepoAttestationsPostResponse201", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", "ReposOwnerRepoAutolinksPostBody", "ReposOwnerRepoBranchesBranchProtectionPutBody", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", @@ -12363,5 +12575,17 @@ "UserSocialAccountsPostBody", "UserSocialAccountsDeleteBody", "UserSshSigningKeysPostBody", + "UsersUsernameAttestationsSubjectDigestGetResponse200", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "SigstoreBundle0", + "SigstoreBundle0PropDsseEnvelope", + "SigstoreBundle0PropDsseEnvelopePropSignaturesItems", + "SigstoreBundle0PropVerificationMaterial", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChain", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise", ) } diff --git a/githubkit/versions/latest/types.py b/githubkit/versions/latest/types.py index d219943d5..8109fd9a2 100644 --- a/githubkit/versions/latest/types.py +++ b/githubkit/versions/latest/types.py @@ -251,6 +251,9 @@ from githubkit.versions.v2022_11_28.types import ( ContentTrafficType as ContentTrafficType, ) + from githubkit.versions.v2022_11_28.types import ( + EnterpriseTeamType as EnterpriseTeamType, + ) from githubkit.versions.v2022_11_28.types import ( FullRepositoryType as FullRepositoryType, ) @@ -332,6 +335,9 @@ from githubkit.versions.v2022_11_28.types import ( SelectedActionsType as SelectedActionsType, ) + from githubkit.versions.v2022_11_28.types import ( + SigstoreBundle0Type as SigstoreBundle0Type, + ) from githubkit.versions.v2022_11_28.types import ( SimpleClassroomType as SimpleClassroomType, ) @@ -596,9 +602,15 @@ from githubkit.versions.v2022_11_28.types import ( SimpleUserWebhooksType as SimpleUserWebhooksType, ) + from githubkit.versions.v2022_11_28.types import ( + TeamRoleAssignmentType as TeamRoleAssignmentType, + ) from githubkit.versions.v2022_11_28.types import ( ThreadSubscriptionType as ThreadSubscriptionType, ) + from githubkit.versions.v2022_11_28.types import ( + UserRoleAssignmentType as UserRoleAssignmentType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookLabelEditedType as WebhookLabelEditedType, ) @@ -1031,6 +1043,9 @@ from githubkit.versions.v2022_11_28.types import ( OrganizationInvitationType as OrganizationInvitationType, ) + from githubkit.versions.v2022_11_28.types import ( + ProjectsV2StatusUpdateType as ProjectsV2StatusUpdateType, + ) from githubkit.versions.v2022_11_28.types import ( PullRequestMergeResultType as PullRequestMergeResultType, ) @@ -1352,6 +1367,9 @@ from githubkit.versions.v2022_11_28.types import ( CodeScanningSarifsReceiptType as CodeScanningSarifsReceiptType, ) + from githubkit.versions.v2022_11_28.types import ( + CodeSecurityConfigurationType as CodeSecurityConfigurationType, + ) from githubkit.versions.v2022_11_28.types import ( CommunityProfilePropFilesType as CommunityProfilePropFilesType, ) @@ -1523,6 +1541,9 @@ from githubkit.versions.v2022_11_28.types import ( ProjectsProjectIdPatchBodyType as ProjectsProjectIdPatchBodyType, ) + from githubkit.versions.v2022_11_28.types import ( + ProjectsV2IterationSettingType as ProjectsV2IterationSettingType, + ) from githubkit.versions.v2022_11_28.types import ( PullRequestMinimalPropBaseType as PullRequestMinimalPropBaseType, ) @@ -1841,6 +1862,9 @@ from githubkit.versions.v2022_11_28.types import ( OrganizationDependabotSecretType as OrganizationDependabotSecretType, ) + from githubkit.versions.v2022_11_28.types import ( + ProjectsV2SingleSelectOptionType as ProjectsV2SingleSelectOptionType, + ) from githubkit.versions.v2022_11_28.types import ( ProtectedBranchAdminEnforcedType as ProtectedBranchAdminEnforcedType, ) @@ -2336,6 +2360,9 @@ from githubkit.versions.v2022_11_28.types import ( SecretScanningLocationIssueBodyType as SecretScanningLocationIssueBodyType, ) + from githubkit.versions.v2022_11_28.types import ( + SigstoreBundle0PropDsseEnvelopeType as SigstoreBundle0PropDsseEnvelopeType, + ) from githubkit.versions.v2022_11_28.types import ( UserInstallationsGetResponse200Type as UserInstallationsGetResponse200Type, ) @@ -2642,6 +2669,9 @@ from githubkit.versions.v2022_11_28.types import ( RuleSuitePropRuleEvaluationsItemsType as RuleSuitePropRuleEvaluationsItemsType, ) + from githubkit.versions.v2022_11_28.types import ( + TeamRoleAssignmentPropPermissionsType as TeamRoleAssignmentPropPermissionsType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookBranchProtectionRuleEditedType as WebhookBranchProtectionRuleEditedType, ) @@ -2735,6 +2765,9 @@ from githubkit.versions.v2022_11_28.types import ( PullRequestReviewPropLinksPropHtmlType as PullRequestReviewPropLinksPropHtmlType, ) + from githubkit.versions.v2022_11_28.types import ( + ReposOwnerRepoAttestationsPostBodyType as ReposOwnerRepoAttestationsPostBodyType, + ) from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoHooksHookIdPatchBodyType as ReposOwnerRepoHooksHookIdPatchBodyType, ) @@ -2942,6 +2975,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookProjectCardEditedPropChangesType as WebhookProjectCardEditedPropChangesType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookProjectsV2StatusUpdateEditedType as WebhookProjectsV2StatusUpdateEditedType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestAutoMergeDisabledType as WebhookPullRequestAutoMergeDisabledType, ) @@ -3071,6 +3107,12 @@ from githubkit.versions.v2022_11_28.types import ( WebhookMetaDeletedPropHookPropConfigType as WebhookMetaDeletedPropHookPropConfigType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookProjectsV2StatusUpdateCreatedType as WebhookProjectsV2StatusUpdateCreatedType, + ) + from githubkit.versions.v2022_11_28.types import ( + WebhookProjectsV2StatusUpdateDeletedType as WebhookProjectsV2StatusUpdateDeletedType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookPushPropRepositoryPropLicenseType as WebhookPushPropRepositoryPropLicenseType, ) @@ -3110,6 +3152,9 @@ from githubkit.versions.v2022_11_28.types import ( CodeScanningVariantAnalysisRepositoryType as CodeScanningVariantAnalysisRepositoryType, ) + from githubkit.versions.v2022_11_28.types import ( + CodeSecurityConfigurationRepositoriesType as CodeSecurityConfigurationRepositoriesType, + ) from githubkit.versions.v2022_11_28.types import ( CopilotUsageMetricsPropBreakdownItemsType as CopilotUsageMetricsPropBreakdownItemsType, ) @@ -3224,6 +3269,9 @@ from githubkit.versions.v2022_11_28.types import ( CodeScanningDefaultSetupUpdateResponseType as CodeScanningDefaultSetupUpdateResponseType, ) + from githubkit.versions.v2022_11_28.types import ( + CodeSecurityDefaultConfigurationsItemsType as CodeSecurityDefaultConfigurationsItemsType, + ) from githubkit.versions.v2022_11_28.types import ( CommitSearchResultItemPropParentsItemsType as CommitSearchResultItemPropParentsItemsType, ) @@ -3419,6 +3467,9 @@ from githubkit.versions.v2022_11_28.types import ( SecurityAndAnalysisPropAdvancedSecurityType as SecurityAndAnalysisPropAdvancedSecurityType, ) + from githubkit.versions.v2022_11_28.types import ( + SigstoreBundle0PropVerificationMaterialType as SigstoreBundle0PropVerificationMaterialType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookDeploymentCreatedPropWorkflowRunType as WebhookDeploymentCreatedPropWorkflowRunType, ) @@ -3617,6 +3668,9 @@ from githubkit.versions.v2022_11_28.types import ( EnvironmentPropProtectionRulesItemsAnyof2Type as EnvironmentPropProtectionRulesItemsAnyof2Type, ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgCodeSecurityConfigurationsPostBodyType as OrgsOrgCodeSecurityConfigurationsPostBodyType, + ) from githubkit.versions.v2022_11_28.types import ( OrgsOrgCodespacesSecretsSecretNamePutBodyType as OrgsOrgCodespacesSecretsSecretNamePutBodyType, ) @@ -3635,6 +3689,9 @@ from githubkit.versions.v2022_11_28.types import ( PullRequestReviewPropLinksPropPullRequestType as PullRequestReviewPropLinksPropPullRequestType, ) + from githubkit.versions.v2022_11_28.types import ( + ReposOwnerRepoAttestationsPostResponse201Type as ReposOwnerRepoAttestationsPostResponse201Type, + ) from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoCheckRunsPostBodyPropOutputType as ReposOwnerRepoCheckRunsPostBodyPropOutputType, ) @@ -4100,6 +4157,9 @@ from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoActionsWorkflowsGetResponse200Type as ReposOwnerRepoActionsWorkflowsGetResponse200Type, ) + from githubkit.versions.v2022_11_28.types import ( + ReposOwnerRepoAttestationsPostBodyPropBundleType as ReposOwnerRepoAttestationsPostBodyPropBundleType, + ) from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType as ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType, ) @@ -4301,6 +4361,9 @@ from githubkit.versions.v2022_11_28.types import ( OrgsOrgActionsVariablesNameRepositoriesPutBodyType as OrgsOrgActionsVariablesNameRepositoriesPutBodyType, ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgAttestationsSubjectDigestGetResponse200Type as OrgsOrgAttestationsSubjectDigestGetResponse200Type, + ) from githubkit.versions.v2022_11_28.types import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType as OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType, ) @@ -4397,6 +4460,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookProjectCardMovedPropChangesPropColumnIdType as WebhookProjectCardMovedPropChangesPropColumnIdType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookProjectsV2StatusUpdateEditedPropChangesType as WebhookProjectsV2StatusUpdateEditedPropChangesType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookReleasePrereleasedPropReleasePropAuthorType as WebhookReleasePrereleasedPropReleasePropAuthorType, ) @@ -4907,6 +4973,9 @@ from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type, ) + from githubkit.versions.v2022_11_28.types import ( + SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType as SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType, + ) from githubkit.versions.v2022_11_28.types import ( UserCodespacesSecretsSecretNameRepositoriesPutBodyType as UserCodespacesSecretsSecretNameRepositoriesPutBodyType, ) @@ -5117,6 +5186,9 @@ from githubkit.versions.v2022_11_28.types import ( RepositoryRuleCommitAuthorEmailPatternPropParametersType as RepositoryRuleCommitAuthorEmailPatternPropParametersType, ) + from githubkit.versions.v2022_11_28.types import ( + UsersUsernameAttestationsSubjectDigestGetResponse200Type as UsersUsernameAttestationsSubjectDigestGetResponse200Type, + ) from githubkit.versions.v2022_11_28.types import ( WebhookInstallationTargetRenamedPropChangesPropLoginType as WebhookInstallationTargetRenamedPropChangesPropLoginType, ) @@ -5225,6 +5297,9 @@ from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType, ) + from githubkit.versions.v2022_11_28.types import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type as ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type, + ) from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType as ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType, ) @@ -5363,6 +5438,9 @@ from githubkit.versions.v2022_11_28.types import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType as WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType, ) + from githubkit.versions.v2022_11_28.types import ( + EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type as EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type, + ) from githubkit.versions.v2022_11_28.types import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType, ) @@ -5432,6 +5510,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType as WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType as WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergeType as WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, ) @@ -5627,6 +5708,9 @@ from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType, ) + from githubkit.versions.v2022_11_28.types import ( + SecurityAndAnalysisPropSecretScanningNonProviderPatternsType as SecurityAndAnalysisPropSecretScanningNonProviderPatternsType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, ) @@ -5672,6 +5756,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType as WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType as WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType, ) @@ -5759,6 +5846,9 @@ from githubkit.versions.v2022_11_28.types import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type, ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType, + ) from githubkit.versions.v2022_11_28.types import ( ProtectedBranchPullRequestReviewPropDismissalRestrictionsType as ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, ) @@ -6032,6 +6122,9 @@ from githubkit.versions.v2022_11_28.types import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType, ) + from githubkit.versions.v2022_11_28.types import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType, ) @@ -6059,6 +6152,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType as WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, ) @@ -6131,6 +6227,9 @@ from githubkit.versions.v2022_11_28.types import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType, ) + from githubkit.versions.v2022_11_28.types import ( + ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType, + ) from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type, ) @@ -6167,6 +6266,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType as WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType, ) @@ -6422,6 +6524,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, + ) from githubkit.versions.v2022_11_28.types import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType, ) @@ -6569,6 +6674,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, + ) from githubkit.versions.v2022_11_28.types import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType, ) @@ -6584,6 +6692,9 @@ from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType, ) + from githubkit.versions.v2022_11_28.types import ( + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType, ) @@ -6947,6 +7058,9 @@ from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType as WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType, ) @@ -7124,6 +7238,9 @@ from githubkit.versions.v2022_11_28.types import ( CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType as CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType, ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, + ) from githubkit.versions.v2022_11_28.types import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType, ) @@ -7274,6 +7391,9 @@ from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType, ) + from githubkit.versions.v2022_11_28.types import ( + ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType, + ) from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type, ) @@ -7283,6 +7403,9 @@ from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type, ) + from githubkit.versions.v2022_11_28.types import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType, + ) from githubkit.versions.v2022_11_28.types import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) @@ -7574,6 +7697,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type, + ) from githubkit.versions.v2022_11_28.types import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) @@ -7703,6 +7829,9 @@ from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType as WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) @@ -7973,6 +8102,9 @@ from githubkit.versions.v2022_11_28.types import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, ) + from githubkit.versions.v2022_11_28.types import ( + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType, ) @@ -8060,9 +8192,18 @@ from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) + from githubkit.versions.v2022_11_28.types import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, + ) from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType, ) + from githubkit.versions.v2022_11_28.types import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType, + ) + from githubkit.versions.v2022_11_28.types import ( + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType, ) @@ -8420,6 +8561,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType, ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, + ) from githubkit.versions.v2022_11_28.types import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) @@ -8573,6 +8717,9 @@ from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type, ) + from githubkit.versions.v2022_11_28.types import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) @@ -8819,6 +8966,9 @@ from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType, ) + from githubkit.versions.v2022_11_28.types import ( + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType, ) @@ -8876,6 +9026,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType, ) + from githubkit.versions.v2022_11_28.types import ( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType, ) @@ -8927,12 +9080,18 @@ from githubkit.versions.v2022_11_28.types import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) + from githubkit.versions.v2022_11_28.types import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, + ) from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType, ) from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type, ) + from githubkit.versions.v2022_11_28.types import ( + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType, ) @@ -9242,6 +9401,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType, ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) @@ -9308,9 +9470,15 @@ from githubkit.versions.v2022_11_28.types import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) + from githubkit.versions.v2022_11_28.types import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, + ) from githubkit.versions.v2022_11_28.types import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) + from githubkit.versions.v2022_11_28.types import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, + ) from githubkit.versions.v2022_11_28.types import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, ) @@ -9347,6 +9515,9 @@ from githubkit.versions.v2022_11_28.types import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) + from githubkit.versions.v2022_11_28.types import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, + ) else: __lazy_vars__ = { "githubkit.versions.v2022_11_28.types": ( @@ -9394,6 +9565,14 @@ "SimpleClassroomAssignmentType", "SimpleClassroomType", "ClassroomAssignmentGradeType", + "TeamSimpleType", + "TeamType", + "TeamPropPermissionsType", + "OrganizationSimpleType", + "CopilotSeatDetailsType", + "EnterpriseTeamType", + "OrganizationType", + "OrganizationPropPlanType", "CopilotUsageMetricsType", "CopilotUsageMetricsPropBreakdownItemsType", "DependabotAlertPackageType", @@ -9450,6 +9629,7 @@ "SecurityAndAnalysisPropDependabotSecurityUpdatesType", "SecurityAndAnalysisPropSecretScanningType", "SecurityAndAnalysisPropSecretScanningPushProtectionType", + "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", "MinimalRepositoryType", "CodeOfConductType", "MinimalRepositoryPropPermissionsType", @@ -9461,7 +9641,6 @@ "OrganizationFullPropPlanType", "ActionsCacheUsageOrgEnterpriseType", "OidcCustomSubType", - "EmptyObjectType", "ActionsOrganizationPermissionsType", "SelectedActionsType", "ActionsGetDefaultWorkflowPermissionsType", @@ -9478,6 +9657,9 @@ "CodeScanningAlertLocationType", "CodeScanningAlertInstancePropMessageType", "CodeScanningOrganizationAlertItemsType", + "CodeSecurityConfigurationType", + "CodeSecurityDefaultConfigurationsItemsType", + "CodeSecurityConfigurationRepositoriesType", "CodespaceMachineType", "CodespaceType", "CodespacePropGitStatusType", @@ -9485,13 +9667,6 @@ "CodespacesPublicKeyType", "CopilotOrganizationDetailsType", "CopilotSeatBreakdownType", - "TeamSimpleType", - "TeamType", - "TeamPropPermissionsType", - "CopilotSeatDetailsType", - "OrganizationType", - "OrganizationPropPlanType", - "OrgsOrgCopilotBillingSeatsGetResponse200Type", "DependabotPublicKeyType", "PackageType", "OrganizationInvitationType", @@ -9500,12 +9675,14 @@ "InteractionLimitResponseType", "InteractionLimitType", "OrgMembershipType", - "OrganizationSimpleType", "OrgMembershipPropPermissionsType", "MigrationType", "OrganizationFineGrainedPermissionType", "OrganizationRoleType", "OrgsOrgOrganizationRolesGetResponse200Type", + "TeamRoleAssignmentType", + "TeamRoleAssignmentPropPermissionsType", + "UserRoleAssignmentType", "PackageVersionType", "PackageVersionPropMetadataType", "PackageVersionPropMetadataPropContainerType", @@ -9691,6 +9868,7 @@ "VerificationType", "DiffEntryType", "CommitType", + "EmptyObjectType", "CommitPropParentsItemsType", "CommitPropStatsType", "CommitPropCommitType", @@ -10129,6 +10307,7 @@ "WebhooksProjectChangesType", "WebhooksProjectChangesPropArchivedAtType", "ProjectsV2ItemType", + "ProjectsV2StatusUpdateType", "PullRequestWebhookType", "PullRequestWebhookAllof1Type", "WebhooksPullRequest5Type", @@ -10221,6 +10400,10 @@ "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", "WebhookCheckRunCompletedType", @@ -10935,6 +11118,8 @@ "WebhookProjectsV2ItemEditedType", "WebhookProjectsV2ItemEditedPropChangesOneof0Type", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", + "ProjectsV2SingleSelectOptionType", + "ProjectsV2IterationSettingType", "WebhookProjectsV2ItemEditedPropChangesOneof1Type", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", "WebhookProjectsV2ItemReorderedType", @@ -10942,6 +11127,14 @@ "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", "WebhookProjectsV2ItemRestoredType", "WebhookProjectsV2ProjectReopenedType", + "WebhookProjectsV2StatusUpdateCreatedType", + "WebhookProjectsV2StatusUpdateDeletedType", + "WebhookProjectsV2StatusUpdateEditedType", + "WebhookProjectsV2StatusUpdateEditedPropChangesType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType", "WebhookPublicType", "WebhookPullRequestAssignedType", "WebhookPullRequestAssignedPropPullRequestType", @@ -12147,6 +12340,7 @@ "ApplicationsClientIdTokenPatchBodyType", "ApplicationsClientIdTokenScopedPostBodyType", "EmojisGetResponse200Type", + "EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type", "EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type", "GistsPostBodyType", "GistsPostBodyPropFilesType", @@ -12186,6 +12380,16 @@ "OrgsOrgActionsVariablesNamePatchBodyType", "OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type", "OrgsOrgActionsVariablesNameRepositoriesPutBodyType", + "OrgsOrgAttestationsSubjectDigestGetResponse200Type", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", + "OrgsOrgCodeSecurityConfigurationsPostBodyType", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", "OrgsOrgCodespacesGetResponse200Type", "OrgsOrgCodespacesAccessPutBodyType", "OrgsOrgCodespacesAccessSelectedUsersPostBodyType", @@ -12195,6 +12399,7 @@ "OrgsOrgCodespacesSecretsSecretNamePutBodyType", "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type", "OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType", + "OrgsOrgCopilotBillingSeatsGetResponse200Type", "OrgsOrgCopilotBillingSelectedTeamsPostBodyType", "OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type", "OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType", @@ -12275,6 +12480,7 @@ "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", "ReposOwnerRepoActionsArtifactsGetResponse200Type", "ReposOwnerRepoActionsJobsJobIdRerunPostBodyType", "ReposOwnerRepoActionsOidcCustomizationSubPutBodyType", @@ -12302,6 +12508,16 @@ "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", "ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type", + "ReposOwnerRepoAttestationsPostBodyType", + "ReposOwnerRepoAttestationsPostBodyPropBundleType", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", + "ReposOwnerRepoAttestationsPostResponse201Type", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", "ReposOwnerRepoAutolinksPostBodyType", "ReposOwnerRepoBranchesBranchProtectionPutBodyType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", @@ -12527,5 +12743,17 @@ "UserSocialAccountsPostBodyType", "UserSocialAccountsDeleteBodyType", "UserSshSigningKeysPostBodyType", + "UsersUsernameAttestationsSubjectDigestGetResponse200Type", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "SigstoreBundle0Type", + "SigstoreBundle0PropDsseEnvelopeType", + "SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType", + "SigstoreBundle0PropVerificationMaterialType", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType", ) } diff --git a/githubkit/versions/latest/webhooks.py b/githubkit/versions/latest/webhooks.py index 45ce5d573..bb85b4e0c 100644 --- a/githubkit/versions/latest/webhooks.py +++ b/githubkit/versions/latest/webhooks.py @@ -286,6 +286,9 @@ from githubkit.versions.v2022_11_28.webhooks import ( GithubAppAuthorizationEvent as GithubAppAuthorizationEvent, ) + from githubkit.versions.v2022_11_28.webhooks import ( + ProjectsV2StatusUpdateEvent as ProjectsV2StatusUpdateEvent, + ) from githubkit.versions.v2022_11_28.webhooks import ( commit_comment_action_types as commit_comment_action_types, ) @@ -385,6 +388,9 @@ from githubkit.versions.v2022_11_28.webhooks import ( installation_repositories_action_types as installation_repositories_action_types, ) + from githubkit.versions.v2022_11_28.webhooks import ( + projects_v2_status_update_action_types as projects_v2_status_update_action_types, + ) from githubkit.versions.v2022_11_28.webhooks import ( deployment_protection_rule_action_types as deployment_protection_rule_action_types, ) @@ -584,6 +590,10 @@ "ProjectsV2ItemEvent", "projects_v2_item_action_types", ), + "githubkit.versions.v2022_11_28.webhooks.projects_v2_status_update": ( + "ProjectsV2StatusUpdateEvent", + "projects_v2_status_update_action_types", + ), "githubkit.versions.v2022_11_28.webhooks.public": ( "PublicEvent", "public_action_types", diff --git a/githubkit/versions/v2022_11_28/models/__init__.py b/githubkit/versions/v2022_11_28/models/__init__.py index f588a7b66..016a578b5 100644 --- a/githubkit/versions/v2022_11_28/models/__init__.py +++ b/githubkit/versions/v2022_11_28/models/__init__.py @@ -10,860 +10,868 @@ from typing import TYPE_CHECKING if TYPE_CHECKING: - from .group_0158 import Job as Job - from .group_0337 import Tag as Tag - from .group_0360 import Key as Key + from .group_0163 import Job as Job + from .group_0342 import Tag as Tag + from .group_0365 import Key as Key from .group_0000 import Root as Root - from .group_0038 import Feed as Feed - from .group_0076 import Team as Team - from .group_0218 import Link as Link - from .group_0252 import Blob as Blob - from .group_0258 import Hook as Hook - from .group_0292 import Page as Page - from .group_0035 import Issue as Issue - from .group_0037 import Actor as Actor - from .group_0037 import Event as Event - from .group_0278 import Label as Label - from .group_0339 import Topic as Topic - from .group_0358 import Email as Email - from .group_0052 import Thread as Thread - from .group_0063 import Runner as Runner - from .group_0185 import Commit as Commit - from .group_0224 import Status as Status - from .group_0254 import GitRef as GitRef - from .group_0255 import GitTag as GitTag - from .group_0259 import Import as Import - from .group_0359 import GpgKey as GpgKey - from .group_0045 import License as License - from .group_0079 import Package as Package - from .group_0081 import OrgHook as OrgHook - from .group_0091 import Project as Project - from .group_0182 import GitUser as GitUser - from .group_0256 import GitTree as GitTree - from .group_0309 import Release as Release - from .group_0340 import Traffic as Traffic - from .group_0039 import BaseGist as BaseGist - from .group_0143 import TeamFull as TeamFull - from .group_0146 import Reaction as Reaction - from .group_0156 import Artifact as Artifact - from .group_0174 import Activity as Activity - from .group_0175 import Autolink as Autolink - from .group_0192 import CheckRun as CheckRun - from .group_0238 import Metadata as Metadata - from .group_0240 import Manifest as Manifest - from .group_0241 import Snapshot as Snapshot - from .group_0289 import Language as Language - from .group_0885 import Workflow as Workflow + from .group_0026 import Team as Team + from .group_0042 import Feed as Feed + from .group_0223 import Link as Link + from .group_0257 import Blob as Blob + from .group_0263 import Hook as Hook + from .group_0297 import Page as Page + from .group_0039 import Issue as Issue + from .group_0041 import Actor as Actor + from .group_0041 import Event as Event + from .group_0283 import Label as Label + from .group_0344 import Topic as Topic + from .group_0363 import Email as Email + from .group_0056 import Thread as Thread + from .group_0066 import Runner as Runner + from .group_0190 import Commit as Commit + from .group_0229 import Status as Status + from .group_0259 import GitRef as GitRef + from .group_0260 import GitTag as GitTag + from .group_0264 import Import as Import + from .group_0364 import GpgKey as GpgKey + from .group_0049 import License as License + from .group_0082 import Package as Package + from .group_0084 import OrgHook as OrgHook + from .group_0096 import Project as Project + from .group_0187 import GitUser as GitUser + from .group_0261 import GitTree as GitTree + from .group_0314 import Release as Release + from .group_0345 import Traffic as Traffic + from .group_0043 import BaseGist as BaseGist + from .group_0148 import TeamFull as TeamFull + from .group_0151 import Reaction as Reaction + from .group_0161 import Artifact as Artifact + from .group_0179 import Activity as Activity + from .group_0180 import Autolink as Autolink + from .group_0197 import CheckRun as CheckRun + from .group_0243 import Metadata as Metadata + from .group_0245 import Manifest as Manifest + from .group_0246 import Snapshot as Snapshot + from .group_0294 import Language as Language + from .group_0902 import Workflow as Workflow from .group_0009 import ScimError as ScimError from .group_0022 import Classroom as Classroom - from .group_0033 import Milestone as Milestone - from .group_0072 import Codespace as Codespace - from .group_0085 import Migration as Migration - from .group_0137 import RuleSuite as RuleSuite - from .group_0153 import RateLimit as RateLimit - from .group_0184 import DiffEntry as DiffEntry - from .group_0219 import AutoMerge as AutoMerge - from .group_0251 import ShortBlob as ShortBlob - from .group_0253 import GitCommit as GitCommit - from .group_0288 import DeployKey as DeployKey - from .group_0293 import PageBuild as PageBuild - from .group_0332 import Stargazer as Stargazer - from .group_0365 import Hovercard as Hovercard - from .group_0366 import KeySimple as KeySimple + from .group_0037 import Milestone as Milestone + from .group_0078 import Codespace as Codespace + from .group_0088 import Migration as Migration + from .group_0142 import RuleSuite as RuleSuite + from .group_0158 import RateLimit as RateLimit + from .group_0189 import DiffEntry as DiffEntry + from .group_0224 import AutoMerge as AutoMerge + from .group_0256 import ShortBlob as ShortBlob + from .group_0258 import GitCommit as GitCommit + from .group_0293 import DeployKey as DeployKey + from .group_0298 import PageBuild as PageBuild + from .group_0337 import Stargazer as Stargazer + from .group_0370 import Hovercard as Hovercard + from .group_0371 import KeySimple as KeySimple from .group_0001 import SimpleUser as SimpleUser from .group_0003 import BasicError as BasicError from .group_0012 import Enterprise as Enterprise from .group_0017 import Repository as Repository - from .group_0041 import GistSimple as GistSimple - from .group_0041 import PublicUser as PublicUser - from .group_0043 import GistCommit as GistCommit - from .group_0075 import TeamSimple as TeamSimple - from .group_0171 import Deployment as Deployment - from .group_0194 import CheckSuite as CheckSuite - from .group_0232 import FileCommit as FileCommit - from .group_0239 import Dependency as Dependency - from .group_0262 import IssueEvent as IssueEvent - from .group_0381 import Discussion as Discussion - from .group_0395 import MergeGroup as MergeGroup - from .group_0402 import ProjectsV2 as ProjectsV2 + from .group_0025 import TeamSimple as TeamSimple + from .group_0045 import GistSimple as GistSimple + from .group_0045 import PublicUser as PublicUser + from .group_0047 import GistCommit as GistCommit + from .group_0176 import Deployment as Deployment + from .group_0199 import CheckSuite as CheckSuite + from .group_0237 import FileCommit as FileCommit + from .group_0244 import Dependency as Dependency + from .group_0267 import IssueEvent as IssueEvent + from .group_0386 import Discussion as Discussion + from .group_0400 import MergeGroup as MergeGroup + from .group_0407 import ProjectsV2 as ProjectsV2 from .group_0006 import Integration as Integration - from .group_0040 import GistHistory as GistHistory - from .group_0042 import GistComment as GistComment - from .group_0049 import ApiOverview as ApiOverview - from .group_0057 import EmptyObject as EmptyObject - from .group_0062 import RunnerLabel as RunnerLabel - from .group_0148 import TeamProject as TeamProject - from .group_0150 import ProjectCard as ProjectCard - from .group_0166 import WorkflowRun as WorkflowRun - from .group_0181 import ShortBranch as ShortBranch - from .group_0217 import BranchShort as BranchShort - from .group_0227 import ContentTree as ContentTree - from .group_0229 import ContentFile as ContentFile - from .group_0233 import Contributor as Contributor - from .group_0244 import Environment as Environment - from .group_0298 import PullRequest as PullRequest - from .group_0344 import ViewTraffic as ViewTraffic - from .group_0354 import PrivateUser as PrivateUser - from .group_0481 import WebhookFork as WebhookFork - from .group_0596 import WebhookPing as WebhookPing - from .group_0659 import WebhookPush as WebhookPush + from .group_0044 import GistHistory as GistHistory + from .group_0046 import GistComment as GistComment + from .group_0053 import ApiOverview as ApiOverview + from .group_0065 import RunnerLabel as RunnerLabel + from .group_0153 import TeamProject as TeamProject + from .group_0155 import ProjectCard as ProjectCard + from .group_0171 import WorkflowRun as WorkflowRun + from .group_0186 import ShortBranch as ShortBranch + from .group_0190 import EmptyObject as EmptyObject + from .group_0222 import BranchShort as BranchShort + from .group_0232 import ContentTree as ContentTree + from .group_0234 import ContentFile as ContentFile + from .group_0238 import Contributor as Contributor + from .group_0249 import Environment as Environment + from .group_0303 import PullRequest as PullRequest + from .group_0349 import ViewTraffic as ViewTraffic + from .group_0359 import PrivateUser as PrivateUser + from .group_0487 import WebhookFork as WebhookFork + from .group_0602 import WebhookPing as WebhookPing + from .group_0668 import WebhookPush as WebhookPush from .group_0011 import HookDelivery as HookDelivery from .group_0015 import Installation as Installation - from .group_0036 import IssueComment as IssueComment - from .group_0038 import LinkWithType as LinkWithType - from .group_0077 import Organization as Organization - from .group_0165 import SimpleCommit as SimpleCommit - from .group_0183 import Verification as Verification - from .group_0215 import Collaborator as Collaborator - from .group_0257 import HookResponse as HookResponse - from .group_0260 import PorterAuthor as PorterAuthor - from .group_0308 import ReleaseAsset as ReleaseAsset - from .group_0341 import CloneTraffic as CloneTraffic - from .group_0372 import WebhooksRule as WebhooksRule - from .group_0379 import WebhooksUser as WebhooksUser - from .group_0394 import WebhooksTeam as WebhooksTeam + from .group_0028 import Organization as Organization + from .group_0040 import IssueComment as IssueComment + from .group_0042 import LinkWithType as LinkWithType + from .group_0170 import SimpleCommit as SimpleCommit + from .group_0188 import Verification as Verification + from .group_0220 import Collaborator as Collaborator + from .group_0262 import HookResponse as HookResponse + from .group_0265 import PorterAuthor as PorterAuthor + from .group_0313 import ReleaseAsset as ReleaseAsset + from .group_0346 import CloneTraffic as CloneTraffic + from .group_0377 import WebhooksRule as WebhooksRule + from .group_0384 import WebhooksUser as WebhooksUser + from .group_0399 import WebhooksTeam as WebhooksTeam from .group_0002 import Vulnerability as Vulnerability from .group_0007 import WebhookConfig as WebhookConfig from .group_0016 import LicenseSimple as LicenseSimple from .group_0020 import Authorization as Authorization - from .group_0037 import EventPropRepo as EventPropRepo - from .group_0038 import FeedPropLinks as FeedPropLinks - from .group_0051 import CodeOfConduct as CodeOfConduct - from .group_0056 import OidcCustomSub as OidcCustomSub - from .group_0084 import OrgMembership as OrgMembership - from .group_0151 import ProjectColumn as ProjectColumn - from .group_0160 import ActionsSecret as ActionsSecret - from .group_0173 import WorkflowUsage as WorkflowUsage - from .group_0216 import CommitComment as CommitComment - from .group_0306 import ReviewComment as ReviewComment - from .group_0337 import TagPropCommit as TagPropCommit - from .group_0338 import TagProtection as TagProtection - from .group_0362 import SocialAccount as SocialAccount - from .group_0363 import SshSigningKey as SshSigningKey - from .group_0383 import WebhooksLabel as WebhooksLabel - from .group_0388 import WebhooksIssue as WebhooksIssue - from .group_0412 import WebhooksAlert as WebhooksAlert - from .group_0417 import WebhooksTeam1 as WebhooksTeam1 - from .group_0441 import WebhookCreate as WebhookCreate - from .group_0446 import WebhookDelete as WebhookDelete - from .group_0487 import WebhookGollum as WebhookGollum - from .group_0627 import WebhookPublic as WebhookPublic - from .group_0718 import WebhookStatus as WebhookStatus - from .group_0754 import GistsPostBody as GistsPostBody - from .group_1047 import UserPatchBody as UserPatchBody + from .group_0041 import EventPropRepo as EventPropRepo + from .group_0042 import FeedPropLinks as FeedPropLinks + from .group_0055 import CodeOfConduct as CodeOfConduct + from .group_0060 import OidcCustomSub as OidcCustomSub + from .group_0087 import OrgMembership as OrgMembership + from .group_0156 import ProjectColumn as ProjectColumn + from .group_0165 import ActionsSecret as ActionsSecret + from .group_0178 import WorkflowUsage as WorkflowUsage + from .group_0221 import CommitComment as CommitComment + from .group_0311 import ReviewComment as ReviewComment + from .group_0342 import TagPropCommit as TagPropCommit + from .group_0343 import TagProtection as TagProtection + from .group_0367 import SocialAccount as SocialAccount + from .group_0368 import SshSigningKey as SshSigningKey + from .group_0388 import WebhooksLabel as WebhooksLabel + from .group_0393 import WebhooksIssue as WebhooksIssue + from .group_0418 import WebhooksAlert as WebhooksAlert + from .group_0423 import WebhooksTeam1 as WebhooksTeam1 + from .group_0447 import WebhookCreate as WebhookCreate + from .group_0452 import WebhookDelete as WebhookDelete + from .group_0493 import WebhookGollum as WebhookGollum + from .group_0636 import WebhookPublic as WebhookPublic + from .group_0727 import WebhookStatus as WebhookStatus + from .group_0764 import GistsPostBody as GistsPostBody + from .group_1067 import UserPatchBody as UserPatchBody from .group_0002 import GlobalAdvisory as GlobalAdvisory from .group_0014 import AppPermissions as AppPermissions - from .group_0034 import ReactionRollup as ReactionRollup - from .group_0088 import PackageVersion as PackageVersion - from .group_0096 import FullRepository as FullRepository - from .group_0144 import TeamDiscussion as TeamDiscussion - from .group_0147 import TeamMembership as TeamMembership - from .group_0149 import TeamRepository as TeamRepository - from .group_0230 import ContentSymlink as ContentSymlink - from .group_0290 import LicenseContent as LicenseContent - from .group_0291 import MergedUpstream as MergedUpstream - from .group_0295 import PageDeployment as PageDeployment - from .group_0333 import CommitActivity as CommitActivity - from .group_0342 import ContentTraffic as ContentTraffic - from .group_0380 import WebhooksAnswer as WebhooksAnswer - from .group_0390 import WebhooksIssue2 as WebhooksIssue2 - from .group_0404 import ProjectsV2Item as ProjectsV2Item - from .group_0409 import WebhooksReview as WebhooksReview - from .group_0723 import WebhookTeamAdd as WebhookTeamAdd + from .group_0028 import EnterpriseTeam as EnterpriseTeam + from .group_0038 import ReactionRollup as ReactionRollup + from .group_0093 import PackageVersion as PackageVersion + from .group_0101 import FullRepository as FullRepository + from .group_0149 import TeamDiscussion as TeamDiscussion + from .group_0152 import TeamMembership as TeamMembership + from .group_0154 import TeamRepository as TeamRepository + from .group_0235 import ContentSymlink as ContentSymlink + from .group_0295 import LicenseContent as LicenseContent + from .group_0296 import MergedUpstream as MergedUpstream + from .group_0300 import PageDeployment as PageDeployment + from .group_0338 import CommitActivity as CommitActivity + from .group_0347 import ContentTraffic as ContentTraffic + from .group_0385 import WebhooksAnswer as WebhooksAnswer + from .group_0395 import WebhooksIssue2 as WebhooksIssue2 + from .group_0409 import ProjectsV2Item as ProjectsV2Item + from .group_0415 import WebhooksReview as WebhooksReview + from .group_0732 import WebhookTeamAdd as WebhookTeamAdd from .group_0010 import ValidationError as ValidationError from .group_0023 import SimpleClassroom as SimpleClassroom - from .group_0059 import SelectedActions as SelectedActions - from .group_0136 import RuleSuitesItems as RuleSuitesItems - from .group_0161 import ActionsVariable as ActionsVariable - from .group_0185 import CommitPropStats as CommitPropStats - from .group_0188 import ProtectedBranch as ProtectedBranch - from .group_0193 import CheckAnnotation as CheckAnnotation - from .group_0234 import DependabotAlert as DependabotAlert - from .group_0241 import SnapshotPropJob as SnapshotPropJob - from .group_0261 import PorterLargeFile as PorterLargeFile - from .group_0262 import IssueEventLabel as IssueEventLabel - from .group_0292 import PagesSourceHash as PagesSourceHash - from .group_0294 import PageBuildStatus as PageBuildStatus - from .group_0343 import ReferrerTraffic as ReferrerTraffic - from .group_0382 import WebhooksComment as WebhooksComment - from .group_0387 import WebhooksChanges as WebhooksChanges - from .group_0400 import WebhooksProject as WebhooksProject - from .group_0410 import WebhooksRelease as WebhooksRelease + from .group_0062 import SelectedActions as SelectedActions + from .group_0141 import RuleSuitesItems as RuleSuitesItems + from .group_0166 import ActionsVariable as ActionsVariable + from .group_0190 import CommitPropStats as CommitPropStats + from .group_0193 import ProtectedBranch as ProtectedBranch + from .group_0198 import CheckAnnotation as CheckAnnotation + from .group_0239 import DependabotAlert as DependabotAlert + from .group_0246 import SnapshotPropJob as SnapshotPropJob + from .group_0266 import PorterLargeFile as PorterLargeFile + from .group_0267 import IssueEventLabel as IssueEventLabel + from .group_0297 import PagesSourceHash as PagesSourceHash + from .group_0299 import PageBuildStatus as PageBuildStatus + from .group_0348 import ReferrerTraffic as ReferrerTraffic + from .group_0387 import WebhooksComment as WebhooksComment + from .group_0392 import WebhooksChanges as WebhooksChanges + from .group_0405 import WebhooksProject as WebhooksProject + from .group_0416 import WebhooksRelease as WebhooksRelease + from .group_1093 import SigstoreBundle0 as SigstoreBundle0 from .group_0008 import HookDeliveryItem as HookDeliveryItem - from .group_0029 import SimpleRepository as SimpleRepository - from .group_0037 import EventPropPayload as EventPropPayload - from .group_0054 import OrganizationFull as OrganizationFull - from .group_0066 import ActionsPublicKey as ActionsPublicKey - from .group_0071 import CodespaceMachine as CodespaceMachine - from .group_0083 import InteractionLimit as InteractionLimit - from .group_0087 import OrganizationRole as OrganizationRole - from .group_0143 import TeamOrganization as TeamOrganization - from .group_0157 import ActionsCacheList as ActionsCacheList - from .group_0172 import WorkflowRunUsage as WorkflowRunUsage - from .group_0180 import BranchProtection as BranchProtection - from .group_0186 import CommitPropCommit as CommitPropCommit - from .group_0191 import DeploymentSimple as DeploymentSimple - from .group_0212 import CodeownersErrors as CodeownersErrors - from .group_0225 import CommunityProfile as CommunityProfile - from .group_0226 import CommitComparison as CommitComparison - from .group_0231 import ContentSubmodule as ContentSubmodule - from .group_0240 import ManifestPropFile as ManifestPropFile - from .group_0242 import DeploymentStatus as DeploymentStatus - from .group_0254 import GitRefPropObject as GitRefPropObject - from .group_0255 import GitTagPropObject as GitTagPropObject - from .group_0255 import GitTagPropTagger as GitTagPropTagger - from .group_0262 import IssueEventRename as IssueEventRename - from .group_0273 import LockedIssueEvent as LockedIssueEvent - from .group_0297 import PagesHealthCheck as PagesHealthCheck - from .group_0373 import SimpleCheckSuite as SimpleCheckSuite - from .group_0376 import WebhooksWorkflow as WebhooksWorkflow - from .group_0377 import WebhooksApprover as WebhooksApprover - from .group_0411 import WebhooksRelease1 as WebhooksRelease1 - from .group_0416 import WebhooksChanges8 as WebhooksChanges8 - from .group_0591 import WebhookPageBuild as WebhookPageBuild - from .group_0761 import MarkdownPostBody as MarkdownPostBody - from .group_0765 import OrgsOrgPatchBody as OrgsOrgPatchBody - from .group_0934 import DependabotSecret as DependabotSecret - from .group_1051 import CodespacesSecret as CodespacesSecret - from .group_1065 import UserKeysPostBody as UserKeysPostBody + from .group_0033 import SimpleRepository as SimpleRepository + from .group_0041 import EventPropPayload as EventPropPayload + from .group_0058 import OrganizationFull as OrganizationFull + from .group_0069 import ActionsPublicKey as ActionsPublicKey + from .group_0077 import CodespaceMachine as CodespaceMachine + from .group_0086 import InteractionLimit as InteractionLimit + from .group_0090 import OrganizationRole as OrganizationRole + from .group_0148 import TeamOrganization as TeamOrganization + from .group_0162 import ActionsCacheList as ActionsCacheList + from .group_0177 import WorkflowRunUsage as WorkflowRunUsage + from .group_0185 import BranchProtection as BranchProtection + from .group_0191 import CommitPropCommit as CommitPropCommit + from .group_0196 import DeploymentSimple as DeploymentSimple + from .group_0217 import CodeownersErrors as CodeownersErrors + from .group_0230 import CommunityProfile as CommunityProfile + from .group_0231 import CommitComparison as CommitComparison + from .group_0236 import ContentSubmodule as ContentSubmodule + from .group_0245 import ManifestPropFile as ManifestPropFile + from .group_0247 import DeploymentStatus as DeploymentStatus + from .group_0259 import GitRefPropObject as GitRefPropObject + from .group_0260 import GitTagPropObject as GitTagPropObject + from .group_0260 import GitTagPropTagger as GitTagPropTagger + from .group_0267 import IssueEventRename as IssueEventRename + from .group_0278 import LockedIssueEvent as LockedIssueEvent + from .group_0302 import PagesHealthCheck as PagesHealthCheck + from .group_0378 import SimpleCheckSuite as SimpleCheckSuite + from .group_0381 import WebhooksWorkflow as WebhooksWorkflow + from .group_0382 import WebhooksApprover as WebhooksApprover + from .group_0417 import WebhooksRelease1 as WebhooksRelease1 + from .group_0422 import WebhooksChanges8 as WebhooksChanges8 + from .group_0597 import WebhookPageBuild as WebhookPageBuild + from .group_0771 import MarkdownPostBody as MarkdownPostBody + from .group_0775 import OrgsOrgPatchBody as OrgsOrgPatchBody + from .group_0954 import DependabotSecret as DependabotSecret + from .group_1071 import CodespacesSecret as CodespacesSecret + from .group_1085 import UserKeysPostBody as UserKeysPostBody from .group_0018 import InstallationToken as InstallationToken - from .group_0039 import BaseGistPropFiles as BaseGistPropFiles - from .group_0044 import GitignoreTemplate as GitignoreTemplate - from .group_0051 import MinimalRepository as MinimalRepository - from .group_0052 import ThreadPropSubject as ThreadPropSubject - from .group_0064 import RunnerApplication as RunnerApplication - from .group_0081 import OrgHookPropConfig as OrgHookPropConfig - from .group_0092 import OrgCustomProperty as OrgCustomProperty - from .group_0135 import RepositoryRuleset as RepositoryRuleset - from .group_0154 import RateLimitOverview as RateLimitOverview - from .group_0158 import JobPropStepsItems as JobPropStepsItems - from .group_0159 import OidcCustomSubRepo as OidcCustomSubRepo - from .group_0170 import PendingDeployment as PendingDeployment - from .group_0188 import StatusCheckPolicy as StatusCheckPolicy - from .group_0197 import CodeScanningAlert as CodeScanningAlert - from .group_0220 import PullRequestSimple as PullRequestSimple - from .group_0253 import GitCommitPropTree as GitCommitPropTree - from .group_0263 import LabeledIssueEvent as LabeledIssueEvent - from .group_0269 import RenamedIssueEvent as RenamedIssueEvent - from .group_0305 import PullRequestReview as PullRequestReview - from .group_0364 import StarredRepository as StarredRepository - from .group_0375 import WebhooksDeployKey as WebhooksDeployKey - from .group_0389 import WebhooksMilestone as WebhooksMilestone - from .group_0727 import WebhookTeamEdited as WebhookTeamEdited - from .group_1069 import UserReposPostBody as UserReposPostBody + from .group_0043 import BaseGistPropFiles as BaseGistPropFiles + from .group_0048 import GitignoreTemplate as GitignoreTemplate + from .group_0055 import MinimalRepository as MinimalRepository + from .group_0056 import ThreadPropSubject as ThreadPropSubject + from .group_0067 import RunnerApplication as RunnerApplication + from .group_0084 import OrgHookPropConfig as OrgHookPropConfig + from .group_0097 import OrgCustomProperty as OrgCustomProperty + from .group_0140 import RepositoryRuleset as RepositoryRuleset + from .group_0159 import RateLimitOverview as RateLimitOverview + from .group_0163 import JobPropStepsItems as JobPropStepsItems + from .group_0164 import OidcCustomSubRepo as OidcCustomSubRepo + from .group_0175 import PendingDeployment as PendingDeployment + from .group_0193 import StatusCheckPolicy as StatusCheckPolicy + from .group_0202 import CodeScanningAlert as CodeScanningAlert + from .group_0225 import PullRequestSimple as PullRequestSimple + from .group_0258 import GitCommitPropTree as GitCommitPropTree + from .group_0268 import LabeledIssueEvent as LabeledIssueEvent + from .group_0274 import RenamedIssueEvent as RenamedIssueEvent + from .group_0310 import PullRequestReview as PullRequestReview + from .group_0369 import StarredRepository as StarredRepository + from .group_0380 import WebhooksDeployKey as WebhooksDeployKey + from .group_0394 import WebhooksMilestone as WebhooksMilestone + from .group_0736 import WebhookTeamEdited as WebhookTeamEdited + from .group_1089 import UserReposPostBody as UserReposPostBody from .group_0019 import ScopedInstallation as ScopedInstallation - from .group_0041 import PublicUserPropPlan as PublicUserPropPlan - from .group_0053 import ThreadSubscription as ThreadSubscription - from .group_0077 import CopilotSeatDetails as CopilotSeatDetails - from .group_0084 import OrganizationSimple as OrganizationSimple - from .group_0139 import RepositoryAdvisory as RepositoryAdvisory - from .group_0164 import PullRequestMinimal as PullRequestMinimal - from .group_0166 import ReferencedWorkflow as ReferencedWorkflow - from .group_0192 import CheckRunPropOutput as CheckRunPropOutput - from .group_0223 import SimpleCommitStatus as SimpleCommitStatus - from .group_0265 import AssignedIssueEvent as AssignedIssueEvent - from .group_0293 import PageBuildPropError as PageBuildPropError - from .group_0335 import ParticipationStats as ParticipationStats - from .group_0361 import MarketplaceAccount as MarketplaceAccount - from .group_0367 import EnterpriseWebhooks as EnterpriseWebhooks - from .group_0368 import SimpleInstallation as SimpleInstallation - from .group_0370 import RepositoryWebhooks as RepositoryWebhooks - from .group_0371 import SimpleUserWebhooks as SimpleUserWebhooks - from .group_0381 import DiscussionPropUser as DiscussionPropUser - from .group_0396 import WebhooksMilestone3 as WebhooksMilestone3 - from .group_0397 import WebhooksMembership as WebhooksMembership - from .group_0405 import PullRequestWebhook as PullRequestWebhook - from .group_0558 import WebhookLabelEdited as WebhookLabelEdited - from .group_0564 import WebhookMemberAdded as WebhookMemberAdded - from .group_0571 import WebhookMetaDeleted as WebhookMetaDeleted - from .group_0716 import WebhookStarCreated as WebhookStarCreated - from .group_0717 import WebhookStarDeleted as WebhookStarDeleted - from .group_0725 import WebhookTeamCreated as WebhookTeamCreated - from .group_0726 import WebhookTeamDeleted as WebhookTeamDeleted + from .group_0027 import OrganizationSimple as OrganizationSimple + from .group_0028 import CopilotSeatDetails as CopilotSeatDetails + from .group_0045 import PublicUserPropPlan as PublicUserPropPlan + from .group_0057 import ThreadSubscription as ThreadSubscription + from .group_0091 import TeamRoleAssignment as TeamRoleAssignment + from .group_0092 import UserRoleAssignment as UserRoleAssignment + from .group_0144 import RepositoryAdvisory as RepositoryAdvisory + from .group_0169 import PullRequestMinimal as PullRequestMinimal + from .group_0171 import ReferencedWorkflow as ReferencedWorkflow + from .group_0197 import CheckRunPropOutput as CheckRunPropOutput + from .group_0228 import SimpleCommitStatus as SimpleCommitStatus + from .group_0270 import AssignedIssueEvent as AssignedIssueEvent + from .group_0298 import PageBuildPropError as PageBuildPropError + from .group_0340 import ParticipationStats as ParticipationStats + from .group_0366 import MarketplaceAccount as MarketplaceAccount + from .group_0372 import EnterpriseWebhooks as EnterpriseWebhooks + from .group_0373 import SimpleInstallation as SimpleInstallation + from .group_0375 import RepositoryWebhooks as RepositoryWebhooks + from .group_0376 import SimpleUserWebhooks as SimpleUserWebhooks + from .group_0386 import DiscussionPropUser as DiscussionPropUser + from .group_0401 import WebhooksMilestone3 as WebhooksMilestone3 + from .group_0402 import WebhooksMembership as WebhooksMembership + from .group_0411 import PullRequestWebhook as PullRequestWebhook + from .group_0564 import WebhookLabelEdited as WebhookLabelEdited + from .group_0570 import WebhookMemberAdded as WebhookMemberAdded + from .group_0577 import WebhookMetaDeleted as WebhookMetaDeleted + from .group_0725 import WebhookStarCreated as WebhookStarCreated + from .group_0726 import WebhookStarDeleted as WebhookStarDeleted + from .group_0734 import WebhookTeamCreated as WebhookTeamCreated + from .group_0735 import WebhookTeamDeleted as WebhookTeamDeleted from .group_0022 import ClassroomAssignment as ClassroomAssignment from .group_0023 import SimpleClassroomUser as SimpleClassroomUser - from .group_0025 import CopilotUsageMetrics as CopilotUsageMetrics - from .group_0041 import GistSimplePropFiles as GistSimplePropFiles - from .group_0047 import MarketplacePurchase as MarketplacePurchase - from .group_0050 import SecurityAndAnalysis as SecurityAndAnalysis - from .group_0065 import AuthenticationToken as AuthenticationToken - from .group_0073 import CodespacesPublicKey as CodespacesPublicKey - from .group_0076 import TeamPropPermissions as TeamPropPermissions - from .group_0078 import DependabotPublicKey as DependabotPublicKey - from .group_0093 import CustomPropertyValue as CustomPropertyValue - from .group_0095 import CodeOfConductSimple as CodeOfConductSimple - from .group_0140 import ActionsBillingUsage as ActionsBillingUsage - from .group_0225 import CommunityHealthFile as CommunityHealthFile - from .group_0253 import GitCommitPropAuthor as GitCommitPropAuthor - from .group_0262 import IssueEventMilestone as IssueEventMilestone - from .group_0264 import UnlabeledIssueEvent as UnlabeledIssueEvent - from .group_0299 import PullRequestPropHead as PullRequestPropHead - from .group_0300 import PullRequestPropBase as PullRequestPropBase - from .group_0310 import ReleaseNotesContent as ReleaseNotesContent - from .group_0328 import SecretScanningAlert as SecretScanningAlert - from .group_0334 import ContributorActivity as ContributorActivity - from .group_0354 import PrivateUserPropPlan as PrivateUserPropPlan - from .group_0399 import WebhooksProjectCard as WebhooksProjectCard - from .group_0415 import WebhooksSponsorship as WebhooksSponsorship - from .group_0531 import WebhookIssuesClosed as WebhookIssuesClosed - from .group_0544 import WebhookIssuesEdited as WebhookIssuesEdited - from .group_0546 import WebhookIssuesLocked as WebhookIssuesLocked - from .group_0548 import WebhookIssuesOpened as WebhookIssuesOpened - from .group_0549 import WebhookIssuesPinned as WebhookIssuesPinned - from .group_0556 import WebhookLabelCreated as WebhookLabelCreated - from .group_0557 import WebhookLabelDeleted as WebhookLabelDeleted - from .group_0565 import WebhookMemberEdited as WebhookMemberEdited - from .group_0597 import WebhookPingPropHook as WebhookPingPropHook - from .group_0729 import WebhookWatchStarted as WebhookWatchStarted - from .group_0790 import CodespacesOrgSecret as CodespacesOrgSecret - from .group_1061 import UserGpgKeysPostBody as UserGpgKeysPostBody + from .group_0026 import TeamPropPermissions as TeamPropPermissions + from .group_0029 import CopilotUsageMetrics as CopilotUsageMetrics + from .group_0045 import GistSimplePropFiles as GistSimplePropFiles + from .group_0051 import MarketplacePurchase as MarketplacePurchase + from .group_0054 import SecurityAndAnalysis as SecurityAndAnalysis + from .group_0068 import AuthenticationToken as AuthenticationToken + from .group_0079 import CodespacesPublicKey as CodespacesPublicKey + from .group_0081 import DependabotPublicKey as DependabotPublicKey + from .group_0098 import CustomPropertyValue as CustomPropertyValue + from .group_0100 import CodeOfConductSimple as CodeOfConductSimple + from .group_0145 import ActionsBillingUsage as ActionsBillingUsage + from .group_0230 import CommunityHealthFile as CommunityHealthFile + from .group_0258 import GitCommitPropAuthor as GitCommitPropAuthor + from .group_0267 import IssueEventMilestone as IssueEventMilestone + from .group_0269 import UnlabeledIssueEvent as UnlabeledIssueEvent + from .group_0304 import PullRequestPropHead as PullRequestPropHead + from .group_0305 import PullRequestPropBase as PullRequestPropBase + from .group_0315 import ReleaseNotesContent as ReleaseNotesContent + from .group_0333 import SecretScanningAlert as SecretScanningAlert + from .group_0339 import ContributorActivity as ContributorActivity + from .group_0359 import PrivateUserPropPlan as PrivateUserPropPlan + from .group_0404 import WebhooksProjectCard as WebhooksProjectCard + from .group_0421 import WebhooksSponsorship as WebhooksSponsorship + from .group_0537 import WebhookIssuesClosed as WebhookIssuesClosed + from .group_0550 import WebhookIssuesEdited as WebhookIssuesEdited + from .group_0552 import WebhookIssuesLocked as WebhookIssuesLocked + from .group_0554 import WebhookIssuesOpened as WebhookIssuesOpened + from .group_0555 import WebhookIssuesPinned as WebhookIssuesPinned + from .group_0562 import WebhookLabelCreated as WebhookLabelCreated + from .group_0563 import WebhookLabelDeleted as WebhookLabelDeleted + from .group_0571 import WebhookMemberEdited as WebhookMemberEdited + from .group_0603 import WebhookPingPropHook as WebhookPingPropHook + from .group_0738 import WebhookWatchStarted as WebhookWatchStarted + from .group_0806 import CodespacesOrgSecret as CodespacesOrgSecret + from .group_1081 import UserGpgKeysPostBody as UserGpgKeysPostBody from .group_0020 import AuthorizationPropApp as AuthorizationPropApp - from .group_0035 import IssuePropPullRequest as IssuePropPullRequest - from .group_0040 import GistSimplePropForkOf as GistSimplePropForkOf - from .group_0074 import CopilotSeatBreakdown as CopilotSeatBreakdown - from .group_0077 import OrganizationPropPlan as OrganizationPropPlan - from .group_0110 import RepositoryRuleUpdate as RepositoryRuleUpdate - from .group_0141 import PackagesBillingUsage as PackagesBillingUsage - from .group_0142 import CombinedBillingUsage as CombinedBillingUsage - from .group_0167 import EnvironmentApprovals as EnvironmentApprovals - from .group_0187 import BranchWithProtection as BranchWithProtection - from .group_0195 import CheckSuitePreference as CheckSuitePreference - from .group_0198 import CodeScanningAnalysis as CodeScanningAnalysis - from .group_0214 import RepositoryInvitation as RepositoryInvitation - from .group_0223 import CombinedCommitStatus as CombinedCommitStatus - from .group_0227 import ContentTreePropLinks as ContentTreePropLinks - from .group_0229 import ContentFilePropLinks as ContentFilePropLinks - from .group_0232 import FileCommitPropCommit as FileCommitPropCommit - from .group_0240 import ManifestPropResolved as ManifestPropResolved - from .group_0241 import SnapshotPropDetector as SnapshotPropDetector - from .group_0256 import GitTreePropTreeItems as GitTreePropTreeItems - from .group_0266 import UnassignedIssueEvent as UnassignedIssueEvent - from .group_0267 import MilestonedIssueEvent as MilestonedIssueEvent - from .group_0279 import TimelineCommentEvent as TimelineCommentEvent - from .group_0302 import PullRequestPropLinks as PullRequestPropLinks - from .group_0346 import CodeSearchResultItem as CodeSearchResultItem - from .group_0351 import RepoSearchResultItem as RepoSearchResultItem - from .group_0353 import UserSearchResultItem as UserSearchResultItem - from .group_0386 import WebhooksIssueComment as WebhooksIssueComment - from .group_0407 import WebhooksPullRequest5 as WebhooksPullRequest5 - from .group_0542 import WebhookIssuesDeleted as WebhookIssuesDeleted - from .group_0545 import WebhookIssuesLabeled as WebhookIssuesLabeled - from .group_0566 import WebhookMemberRemoved as WebhookMemberRemoved - from .group_0606 import WebhookProjectClosed as WebhookProjectClosed - from .group_0613 import WebhookProjectEdited as WebhookProjectEdited - from .group_0668 import WebhookReleaseEdited as WebhookReleaseEdited - from .group_0752 import EmojisGetResponse200 as EmojisGetResponse200 - from .group_0756 import GistsGistIdPatchBody as GistsGistIdPatchBody - from .group_0762 import NotificationsPutBody as NotificationsPutBody - from .group_0806 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody - from .group_0828 import OrgsOrgReposPostBody as OrgsOrgReposPostBody - from .group_0831 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody - from .group_0924 import RepoCodespacesSecret as RepoCodespacesSecret - from .group_1036 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody - from .group_1068 import UserProjectsPostBody as UserProjectsPostBody + from .group_0028 import OrganizationPropPlan as OrganizationPropPlan + from .group_0039 import IssuePropPullRequest as IssuePropPullRequest + from .group_0044 import GistSimplePropForkOf as GistSimplePropForkOf + from .group_0080 import CopilotSeatBreakdown as CopilotSeatBreakdown + from .group_0115 import RepositoryRuleUpdate as RepositoryRuleUpdate + from .group_0146 import PackagesBillingUsage as PackagesBillingUsage + from .group_0147 import CombinedBillingUsage as CombinedBillingUsage + from .group_0172 import EnvironmentApprovals as EnvironmentApprovals + from .group_0192 import BranchWithProtection as BranchWithProtection + from .group_0200 import CheckSuitePreference as CheckSuitePreference + from .group_0203 import CodeScanningAnalysis as CodeScanningAnalysis + from .group_0219 import RepositoryInvitation as RepositoryInvitation + from .group_0228 import CombinedCommitStatus as CombinedCommitStatus + from .group_0232 import ContentTreePropLinks as ContentTreePropLinks + from .group_0234 import ContentFilePropLinks as ContentFilePropLinks + from .group_0237 import FileCommitPropCommit as FileCommitPropCommit + from .group_0245 import ManifestPropResolved as ManifestPropResolved + from .group_0246 import SnapshotPropDetector as SnapshotPropDetector + from .group_0261 import GitTreePropTreeItems as GitTreePropTreeItems + from .group_0271 import UnassignedIssueEvent as UnassignedIssueEvent + from .group_0272 import MilestonedIssueEvent as MilestonedIssueEvent + from .group_0284 import TimelineCommentEvent as TimelineCommentEvent + from .group_0307 import PullRequestPropLinks as PullRequestPropLinks + from .group_0351 import CodeSearchResultItem as CodeSearchResultItem + from .group_0356 import RepoSearchResultItem as RepoSearchResultItem + from .group_0358 import UserSearchResultItem as UserSearchResultItem + from .group_0391 import WebhooksIssueComment as WebhooksIssueComment + from .group_0413 import WebhooksPullRequest5 as WebhooksPullRequest5 + from .group_0548 import WebhookIssuesDeleted as WebhookIssuesDeleted + from .group_0551 import WebhookIssuesLabeled as WebhookIssuesLabeled + from .group_0572 import WebhookMemberRemoved as WebhookMemberRemoved + from .group_0612 import WebhookProjectClosed as WebhookProjectClosed + from .group_0619 import WebhookProjectEdited as WebhookProjectEdited + from .group_0677 import WebhookReleaseEdited as WebhookReleaseEdited + from .group_0761 import EmojisGetResponse200 as EmojisGetResponse200 + from .group_0766 import GistsGistIdPatchBody as GistsGistIdPatchBody + from .group_0772 import NotificationsPutBody as NotificationsPutBody + from .group_0823 import OrgsOrgHooksPostBody as OrgsOrgHooksPostBody + from .group_0845 import OrgsOrgReposPostBody as OrgsOrgReposPostBody + from .group_0848 import OrgsOrgTeamsPostBody as OrgsOrgTeamsPostBody + from .group_0944 import RepoCodespacesSecret as RepoCodespacesSecret + from .group_1056 import TeamsTeamIdPatchBody as TeamsTeamIdPatchBody + from .group_1088 import UserProjectsPostBody as UserProjectsPostBody from .group_0004 import ValidationErrorSimple as ValidationErrorSimple - from .group_0109 import RepositoryRuleOneof14 as RepositoryRuleOneof14 - from .group_0109 import RepositoryRuleOneof16 as RepositoryRuleOneof16 - from .group_0112 import RepositoryRuleOneof15 as RepositoryRuleOneof15 - from .group_0134 import RepositoryRuleOneof17 as RepositoryRuleOneof17 - from .group_0145 import TeamDiscussionComment as TeamDiscussionComment - from .group_0181 import ShortBranchPropCommit as ShortBranchPropCommit - from .group_0197 import CodeScanningAlertRule as CodeScanningAlertRule - from .group_0217 import BranchShortPropCommit as BranchShortPropCommit - from .group_0228 import ContentDirectoryItems as ContentDirectoryItems - from .group_0232 import FileCommitPropContent as FileCommitPropContent - from .group_0241 import SnapshotPropManifests as SnapshotPropManifests - from .group_0262 import IssueEventProjectCard as IssueEventProjectCard - from .group_0283 import TimelineReviewedEvent as TimelineReviewedEvent - from .group_0287 import StateChangeIssueEvent as StateChangeIssueEvent - from .group_0292 import PagesHttpsCertificate as PagesHttpsCertificate - from .group_0296 import PagesDeploymentStatus as PagesDeploymentStatus - from .group_0349 import IssueSearchResultItem as IssueSearchResultItem - from .group_0350 import LabelSearchResultItem as LabelSearchResultItem - from .group_0352 import TopicSearchResultItem as TopicSearchResultItem - from .group_0359 import GpgKeyPropEmailsItems as GpgKeyPropEmailsItems - from .group_0388 import WebhooksIssuePropUser as WebhooksIssuePropUser - from .group_0391 import WebhooksUserMannequin as WebhooksUserMannequin - from .group_0401 import WebhooksProjectColumn as WebhooksProjectColumn - from .group_0408 import WebhooksReviewComment as WebhooksReviewComment - from .group_0482 import WebhookForkPropForkee as WebhookForkPropForkee - from .group_0530 import WebhookIssuesAssigned as WebhookIssuesAssigned - from .group_0550 import WebhookIssuesReopened as WebhookIssuesReopened - from .group_0554 import WebhookIssuesUnlocked as WebhookIssuesUnlocked - from .group_0555 import WebhookIssuesUnpinned as WebhookIssuesUnpinned - from .group_0588 import WebhookPackageUpdated as WebhookPackageUpdated - from .group_0611 import WebhookProjectCreated as WebhookProjectCreated - from .group_0612 import WebhookProjectDeleted as WebhookProjectDeleted - from .group_0659 import WebhookPushPropPusher as WebhookPushPropPusher - from .group_0666 import WebhookReleaseCreated as WebhookReleaseCreated - from .group_0667 import WebhookReleaseDeleted as WebhookReleaseDeleted + from .group_0114 import RepositoryRuleOneof14 as RepositoryRuleOneof14 + from .group_0114 import RepositoryRuleOneof16 as RepositoryRuleOneof16 + from .group_0117 import RepositoryRuleOneof15 as RepositoryRuleOneof15 + from .group_0139 import RepositoryRuleOneof17 as RepositoryRuleOneof17 + from .group_0150 import TeamDiscussionComment as TeamDiscussionComment + from .group_0186 import ShortBranchPropCommit as ShortBranchPropCommit + from .group_0202 import CodeScanningAlertRule as CodeScanningAlertRule + from .group_0222 import BranchShortPropCommit as BranchShortPropCommit + from .group_0233 import ContentDirectoryItems as ContentDirectoryItems + from .group_0237 import FileCommitPropContent as FileCommitPropContent + from .group_0246 import SnapshotPropManifests as SnapshotPropManifests + from .group_0267 import IssueEventProjectCard as IssueEventProjectCard + from .group_0288 import TimelineReviewedEvent as TimelineReviewedEvent + from .group_0292 import StateChangeIssueEvent as StateChangeIssueEvent + from .group_0297 import PagesHttpsCertificate as PagesHttpsCertificate + from .group_0301 import PagesDeploymentStatus as PagesDeploymentStatus + from .group_0354 import IssueSearchResultItem as IssueSearchResultItem + from .group_0355 import LabelSearchResultItem as LabelSearchResultItem + from .group_0357 import TopicSearchResultItem as TopicSearchResultItem + from .group_0364 import GpgKeyPropEmailsItems as GpgKeyPropEmailsItems + from .group_0393 import WebhooksIssuePropUser as WebhooksIssuePropUser + from .group_0396 import WebhooksUserMannequin as WebhooksUserMannequin + from .group_0406 import WebhooksProjectColumn as WebhooksProjectColumn + from .group_0414 import WebhooksReviewComment as WebhooksReviewComment + from .group_0488 import WebhookForkPropForkee as WebhookForkPropForkee + from .group_0536 import WebhookIssuesAssigned as WebhookIssuesAssigned + from .group_0556 import WebhookIssuesReopened as WebhookIssuesReopened + from .group_0560 import WebhookIssuesUnlocked as WebhookIssuesUnlocked + from .group_0561 import WebhookIssuesUnpinned as WebhookIssuesUnpinned + from .group_0594 import WebhookPackageUpdated as WebhookPackageUpdated + from .group_0617 import WebhookProjectCreated as WebhookProjectCreated + from .group_0618 import WebhookProjectDeleted as WebhookProjectDeleted + from .group_0668 import WebhookPushPropPusher as WebhookPushPropPusher + from .group_0675 import WebhookReleaseCreated as WebhookReleaseCreated + from .group_0676 import WebhookReleaseDeleted as WebhookReleaseDeleted from .group_0002 import GlobalAdvisoryPropCvss as GlobalAdvisoryPropCvss - from .group_0026 import DependabotAlertPackage as DependabotAlertPackage - from .group_0046 import MarketplaceListingPlan as MarketplaceListingPlan - from .group_0049 import ApiOverviewPropDomains as ApiOverviewPropDomains - from .group_0072 import CodespacePropGitStatus as CodespacePropGitStatus - from .group_0080 import OrganizationInvitation as OrganizationInvitation - from .group_0109 import RepositoryRuleCreation as RepositoryRuleCreation - from .group_0109 import RepositoryRuleDeletion as RepositoryRuleDeletion - from .group_0165 import SimpleCommitPropAuthor as SimpleCommitPropAuthor - from .group_0185 import CommitPropParentsItems as CommitPropParentsItems - from .group_0192 import CheckRunPropCheckSuite as CheckRunPropCheckSuite - from .group_0196 import CodeScanningAlertItems as CodeScanningAlertItems - from .group_0253 import GitCommitPropCommitter as GitCommitPropCommitter - from .group_0268 import DemilestonedIssueEvent as DemilestonedIssueEvent - from .group_0282 import TimelineCommittedEvent as TimelineCommittedEvent - from .group_0303 import PullRequestMergeResult as PullRequestMergeResult - from .group_0307 import ReviewCommentPropLinks as ReviewCommentPropLinks - from .group_0336 import RepositorySubscription as RepositorySubscription - from .group_0347 import CommitSearchResultItem as CommitSearchResultItem - from .group_0356 import CodespaceExportDetails as CodespaceExportDetails - from .group_0359 import GpgKeyPropSubkeysItems as GpgKeyPropSubkeysItems - from .group_0377 import WebhooksReviewersItems as WebhooksReviewersItems - from .group_0378 import WebhooksWorkflowJobRun as WebhooksWorkflowJobRun - from .group_0380 import WebhooksAnswerPropUser as WebhooksAnswerPropUser - from .group_0381 import DiscussionPropCategory as DiscussionPropCategory - from .group_0390 import WebhooksIssue2PropUser as WebhooksIssue2PropUser - from .group_0394 import WebhooksTeamPropParent as WebhooksTeamPropParent - from .group_0403 import WebhooksProjectChanges as WebhooksProjectChanges - from .group_0409 import WebhooksReviewPropUser as WebhooksReviewPropUser - from .group_0425 import WebhookCheckRunCreated as WebhookCheckRunCreated - from .group_0553 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled - from .group_0567 import WebhookMembershipAdded as WebhookMembershipAdded - from .group_0572 import WebhookMilestoneClosed as WebhookMilestoneClosed - from .group_0575 import WebhookMilestoneEdited as WebhookMilestoneEdited - from .group_0576 import WebhookMilestoneOpened as WebhookMilestoneOpened - from .group_0577 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked - from .group_0598 import WebhookPingFormEncoded as WebhookPingFormEncoded - from .group_0614 import WebhookProjectReopened as WebhookProjectReopened - from .group_0671 import WebhookReleaseReleased as WebhookReleaseReleased - from .group_0699 import SecretScanningLocation as SecretScanningLocation - from .group_0744 import AppHookConfigPatchBody as AppHookConfigPatchBody - from .group_0754 import GistsPostBodyPropFiles as GistsPostBodyPropFiles - from .group_0942 import DeploymentBranchPolicy as DeploymentBranchPolicy - from .group_1067 import UserMigrationsPostBody as UserMigrationsPostBody + from .group_0030 import DependabotAlertPackage as DependabotAlertPackage + from .group_0050 import MarketplaceListingPlan as MarketplaceListingPlan + from .group_0053 import ApiOverviewPropDomains as ApiOverviewPropDomains + from .group_0078 import CodespacePropGitStatus as CodespacePropGitStatus + from .group_0083 import OrganizationInvitation as OrganizationInvitation + from .group_0114 import RepositoryRuleCreation as RepositoryRuleCreation + from .group_0114 import RepositoryRuleDeletion as RepositoryRuleDeletion + from .group_0170 import SimpleCommitPropAuthor as SimpleCommitPropAuthor + from .group_0190 import CommitPropParentsItems as CommitPropParentsItems + from .group_0197 import CheckRunPropCheckSuite as CheckRunPropCheckSuite + from .group_0201 import CodeScanningAlertItems as CodeScanningAlertItems + from .group_0258 import GitCommitPropCommitter as GitCommitPropCommitter + from .group_0273 import DemilestonedIssueEvent as DemilestonedIssueEvent + from .group_0287 import TimelineCommittedEvent as TimelineCommittedEvent + from .group_0308 import PullRequestMergeResult as PullRequestMergeResult + from .group_0312 import ReviewCommentPropLinks as ReviewCommentPropLinks + from .group_0341 import RepositorySubscription as RepositorySubscription + from .group_0352 import CommitSearchResultItem as CommitSearchResultItem + from .group_0361 import CodespaceExportDetails as CodespaceExportDetails + from .group_0364 import GpgKeyPropSubkeysItems as GpgKeyPropSubkeysItems + from .group_0382 import WebhooksReviewersItems as WebhooksReviewersItems + from .group_0383 import WebhooksWorkflowJobRun as WebhooksWorkflowJobRun + from .group_0385 import WebhooksAnswerPropUser as WebhooksAnswerPropUser + from .group_0386 import DiscussionPropCategory as DiscussionPropCategory + from .group_0395 import WebhooksIssue2PropUser as WebhooksIssue2PropUser + from .group_0399 import WebhooksTeamPropParent as WebhooksTeamPropParent + from .group_0408 import WebhooksProjectChanges as WebhooksProjectChanges + from .group_0410 import ProjectsV2StatusUpdate as ProjectsV2StatusUpdate + from .group_0415 import WebhooksReviewPropUser as WebhooksReviewPropUser + from .group_0431 import WebhookCheckRunCreated as WebhookCheckRunCreated + from .group_0559 import WebhookIssuesUnlabeled as WebhookIssuesUnlabeled + from .group_0573 import WebhookMembershipAdded as WebhookMembershipAdded + from .group_0578 import WebhookMilestoneClosed as WebhookMilestoneClosed + from .group_0581 import WebhookMilestoneEdited as WebhookMilestoneEdited + from .group_0582 import WebhookMilestoneOpened as WebhookMilestoneOpened + from .group_0583 import WebhookOrgBlockBlocked as WebhookOrgBlockBlocked + from .group_0604 import WebhookPingFormEncoded as WebhookPingFormEncoded + from .group_0620 import WebhookProjectReopened as WebhookProjectReopened + from .group_0680 import WebhookReleaseReleased as WebhookReleaseReleased + from .group_0708 import SecretScanningLocation as SecretScanningLocation + from .group_0753 import AppHookConfigPatchBody as AppHookConfigPatchBody + from .group_0764 import GistsPostBodyPropFiles as GistsPostBodyPropFiles + from .group_0962 import DeploymentBranchPolicy as DeploymentBranchPolicy + from .group_1087 import UserMigrationsPostBody as UserMigrationsPostBody from .group_0011 import HookDeliveryPropRequest as HookDeliveryPropRequest - from .group_0130 import RepositoryRuleWorkflows as RepositoryRuleWorkflows - from .group_0156 import ArtifactPropWorkflowRun as ArtifactPropWorkflowRun - from .group_0179 import BranchRestrictionPolicy as BranchRestrictionPolicy - from .group_0230 import ContentSymlinkPropLinks as ContentSymlinkPropLinks - from .group_0237 import DependencyGraphSpdxSbom as DependencyGraphSpdxSbom - from .group_0249 import CustomDeploymentRuleApp as CustomDeploymentRuleApp - from .group_0290 import LicenseContentPropLinks as LicenseContentPropLinks - from .group_0355 import CodespacesUserPublicKey as CodespacesUserPublicKey - from .group_0361 import UserMarketplacePurchase as UserMarketplacePurchase - from .group_0381 import DiscussionPropReactions as DiscussionPropReactions - from .group_0382 import WebhooksCommentPropUser as WebhooksCommentPropUser - from .group_0387 import WebhooksChangesPropBody as WebhooksChangesPropBody - from .group_0409 import WebhooksReviewPropLinks as WebhooksReviewPropLinks - from .group_0417 import WebhooksTeam1PropParent as WebhooksTeam1PropParent - from .group_0454 import WebhookDeployKeyCreated as WebhookDeployKeyCreated - from .group_0455 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted - from .group_0464 import WebhookDiscussionClosed as WebhookDiscussionClosed - from .group_0470 import WebhookDiscussionEdited as WebhookDiscussionEdited - from .group_0472 import WebhookDiscussionLocked as WebhookDiscussionLocked - from .group_0473 import WebhookDiscussionPinned as WebhookDiscussionPinned - from .group_0547 import WebhookIssuesMilestoned as WebhookIssuesMilestoned - from .group_0552 import WebhookIssuesUnassigned as WebhookIssuesUnassigned - from .group_0573 import WebhookMilestoneCreated as WebhookMilestoneCreated - from .group_0574 import WebhookMilestoneDeleted as WebhookMilestoneDeleted - from .group_0584 import WebhookRubygemsMetadata as WebhookRubygemsMetadata - from .group_0585 import WebhookPackagePublished as WebhookPackagePublished - from .group_0603 import WebhookProjectCardMoved as WebhookProjectCardMoved - from .group_0670 import WebhookReleasePublished as WebhookReleasePublished - from .group_0679 import WebhookRepositoryEdited as WebhookRepositoryEdited - from .group_0680 import WebhookRepositoryImport as WebhookRepositoryImport - from .group_0718 import WebhookStatusPropCommit as WebhookStatusPropCommit - from .group_0730 import WebhookWorkflowDispatch as WebhookWorkflowDispatch - from .group_0824 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody - from .group_0829 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody - from .group_0862 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody + from .group_0135 import RepositoryRuleWorkflows as RepositoryRuleWorkflows + from .group_0161 import ArtifactPropWorkflowRun as ArtifactPropWorkflowRun + from .group_0184 import BranchRestrictionPolicy as BranchRestrictionPolicy + from .group_0235 import ContentSymlinkPropLinks as ContentSymlinkPropLinks + from .group_0242 import DependencyGraphSpdxSbom as DependencyGraphSpdxSbom + from .group_0254 import CustomDeploymentRuleApp as CustomDeploymentRuleApp + from .group_0295 import LicenseContentPropLinks as LicenseContentPropLinks + from .group_0360 import CodespacesUserPublicKey as CodespacesUserPublicKey + from .group_0366 import UserMarketplacePurchase as UserMarketplacePurchase + from .group_0386 import DiscussionPropReactions as DiscussionPropReactions + from .group_0387 import WebhooksCommentPropUser as WebhooksCommentPropUser + from .group_0392 import WebhooksChangesPropBody as WebhooksChangesPropBody + from .group_0415 import WebhooksReviewPropLinks as WebhooksReviewPropLinks + from .group_0423 import WebhooksTeam1PropParent as WebhooksTeam1PropParent + from .group_0460 import WebhookDeployKeyCreated as WebhookDeployKeyCreated + from .group_0461 import WebhookDeployKeyDeleted as WebhookDeployKeyDeleted + from .group_0470 import WebhookDiscussionClosed as WebhookDiscussionClosed + from .group_0476 import WebhookDiscussionEdited as WebhookDiscussionEdited + from .group_0478 import WebhookDiscussionLocked as WebhookDiscussionLocked + from .group_0479 import WebhookDiscussionPinned as WebhookDiscussionPinned + from .group_0553 import WebhookIssuesMilestoned as WebhookIssuesMilestoned + from .group_0558 import WebhookIssuesUnassigned as WebhookIssuesUnassigned + from .group_0579 import WebhookMilestoneCreated as WebhookMilestoneCreated + from .group_0580 import WebhookMilestoneDeleted as WebhookMilestoneDeleted + from .group_0590 import WebhookRubygemsMetadata as WebhookRubygemsMetadata + from .group_0591 import WebhookPackagePublished as WebhookPackagePublished + from .group_0609 import WebhookProjectCardMoved as WebhookProjectCardMoved + from .group_0679 import WebhookReleasePublished as WebhookReleasePublished + from .group_0688 import WebhookRepositoryEdited as WebhookRepositoryEdited + from .group_0689 import WebhookRepositoryImport as WebhookRepositoryImport + from .group_0727 import WebhookStatusPropCommit as WebhookStatusPropCommit + from .group_0739 import WebhookWorkflowDispatch as WebhookWorkflowDispatch + from .group_0841 import OrgsOrgProjectsPostBody as OrgsOrgProjectsPostBody + from .group_0846 import OrgsOrgRulesetsPostBody as OrgsOrgRulesetsPostBody + from .group_0879 import ReposOwnerRepoPatchBody as ReposOwnerRepoPatchBody from .group_0002 import VulnerabilityPropPackage as VulnerabilityPropPackage from .group_0011 import HookDeliveryPropResponse as HookDeliveryPropResponse from .group_0024 import ClassroomAssignmentGrade as ClassroomAssignmentGrade - from .group_0041 import GistSimplePropForksItems as GistSimplePropForksItems - from .group_0054 import OrganizationFullPropPlan as OrganizationFullPropPlan - from .group_0068 import CodeScanningAnalysisTool as CodeScanningAnalysisTool - from .group_0082 import InteractionLimitResponse as InteractionLimitResponse - from .group_0138 import RepositoryAdvisoryCredit as RepositoryAdvisoryCredit - from .group_0143 import TeamOrganizationPropPlan as TeamOrganizationPropPlan - from .group_0186 import CommitPropCommitPropTree as CommitPropCommitPropTree - from .group_0207 import CodeScanningDefaultSetup as CodeScanningDefaultSetup - from .group_0211 import CodeScanningSarifsStatus as CodeScanningSarifsStatus - from .group_0236 import DependencyGraphDiffItems as DependencyGraphDiffItems - from .group_0250 import DeploymentProtectionRule as DeploymentProtectionRule - from .group_0274 import AddedToProjectIssueEvent as AddedToProjectIssueEvent - from .group_0284 import PullRequestReviewComment as PullRequestReviewComment - from .group_0304 import PullRequestReviewRequest as PullRequestReviewRequest - from .group_0329 import RepositoryAdvisoryCreate as RepositoryAdvisoryCreate - from .group_0331 import RepositoryAdvisoryUpdate as RepositoryAdvisoryUpdate - from .group_0346 import SearchCodeGetResponse200 as SearchCodeGetResponse200 - from .group_0406 import PullRequestWebhookAllof1 as PullRequestWebhookAllof1 - from .group_0414 import WebhooksSecurityAdvisory as WebhooksSecurityAdvisory - from .group_0416 import WebhooksChanges8PropTier as WebhooksChanges8PropTier - from .group_0423 import WebhookCheckRunCompleted as WebhookCheckRunCompleted - from .group_0456 import WebhookDeploymentCreated as WebhookDeploymentCreated - from .group_0468 import WebhookDiscussionCreated as WebhookDiscussionCreated - from .group_0469 import WebhookDiscussionDeleted as WebhookDiscussionDeleted - from .group_0471 import WebhookDiscussionLabeled as WebhookDiscussionLabeled - from .group_0551 import WebhookIssuesTransferred as WebhookIssuesTransferred - from .group_0568 import WebhookMembershipRemoved as WebhookMembershipRemoved - from .group_0578 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked - from .group_0602 import WebhookProjectCardEdited as WebhookProjectCardEdited - from .group_0631 import WebhookPullRequestClosed as WebhookPullRequestClosed - from .group_0635 import WebhookPullRequestEdited as WebhookPullRequestEdited - from .group_0638 import WebhookPullRequestLocked as WebhookPullRequestLocked - from .group_0640 import WebhookPullRequestOpened as WebhookPullRequestOpened - from .group_0676 import WebhookRepositoryCreated as WebhookRepositoryCreated - from .group_0677 import WebhookRepositoryDeleted as WebhookRepositoryDeleted - from .group_0683 import WebhookRepositoryRenamed as WebhookRepositoryRenamed - from .group_0712 import WebhookSponsorshipEdited as WebhookSponsorshipEdited - from .group_0737 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued - from .group_1059 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 + from .group_0045 import GistSimplePropForksItems as GistSimplePropForksItems + from .group_0058 import OrganizationFullPropPlan as OrganizationFullPropPlan + from .group_0071 import CodeScanningAnalysisTool as CodeScanningAnalysisTool + from .group_0085 import InteractionLimitResponse as InteractionLimitResponse + from .group_0143 import RepositoryAdvisoryCredit as RepositoryAdvisoryCredit + from .group_0148 import TeamOrganizationPropPlan as TeamOrganizationPropPlan + from .group_0191 import CommitPropCommitPropTree as CommitPropCommitPropTree + from .group_0212 import CodeScanningDefaultSetup as CodeScanningDefaultSetup + from .group_0216 import CodeScanningSarifsStatus as CodeScanningSarifsStatus + from .group_0241 import DependencyGraphDiffItems as DependencyGraphDiffItems + from .group_0255 import DeploymentProtectionRule as DeploymentProtectionRule + from .group_0279 import AddedToProjectIssueEvent as AddedToProjectIssueEvent + from .group_0289 import PullRequestReviewComment as PullRequestReviewComment + from .group_0309 import PullRequestReviewRequest as PullRequestReviewRequest + from .group_0334 import RepositoryAdvisoryCreate as RepositoryAdvisoryCreate + from .group_0336 import RepositoryAdvisoryUpdate as RepositoryAdvisoryUpdate + from .group_0351 import SearchCodeGetResponse200 as SearchCodeGetResponse200 + from .group_0412 import PullRequestWebhookAllof1 as PullRequestWebhookAllof1 + from .group_0420 import WebhooksSecurityAdvisory as WebhooksSecurityAdvisory + from .group_0422 import WebhooksChanges8PropTier as WebhooksChanges8PropTier + from .group_0429 import WebhookCheckRunCompleted as WebhookCheckRunCompleted + from .group_0462 import WebhookDeploymentCreated as WebhookDeploymentCreated + from .group_0474 import WebhookDiscussionCreated as WebhookDiscussionCreated + from .group_0475 import WebhookDiscussionDeleted as WebhookDiscussionDeleted + from .group_0477 import WebhookDiscussionLabeled as WebhookDiscussionLabeled + from .group_0557 import WebhookIssuesTransferred as WebhookIssuesTransferred + from .group_0574 import WebhookMembershipRemoved as WebhookMembershipRemoved + from .group_0584 import WebhookOrgBlockUnblocked as WebhookOrgBlockUnblocked + from .group_0608 import WebhookProjectCardEdited as WebhookProjectCardEdited + from .group_0640 import WebhookPullRequestClosed as WebhookPullRequestClosed + from .group_0644 import WebhookPullRequestEdited as WebhookPullRequestEdited + from .group_0647 import WebhookPullRequestLocked as WebhookPullRequestLocked + from .group_0649 import WebhookPullRequestOpened as WebhookPullRequestOpened + from .group_0685 import WebhookRepositoryCreated as WebhookRepositoryCreated + from .group_0686 import WebhookRepositoryDeleted as WebhookRepositoryDeleted + from .group_0692 import WebhookRepositoryRenamed as WebhookRepositoryRenamed + from .group_0721 import WebhookSponsorshipEdited as WebhookSponsorshipEdited + from .group_0746 import WebhookWorkflowJobQueued as WebhookWorkflowJobQueued + from .group_1079 import UserEmailsPostBodyOneof0 as UserEmailsPostBodyOneof0 from .group_0017 import RepositoryPropPermissions as RepositoryPropPermissions from .group_0021 import SimpleClassroomRepository as SimpleClassroomRepository from .group_0023 import SimpleClassroomAssignment as SimpleClassroomAssignment - from .group_0069 import CodeScanningAlertInstance as CodeScanningAlertInstance - from .group_0069 import CodeScanningAlertLocation as CodeScanningAlertLocation - from .group_0115 import RepositoryRulePullRequest as RepositoryRulePullRequest - from .group_0165 import SimpleCommitPropCommitter as SimpleCommitPropCommitter - from .group_0173 import WorkflowUsagePropBillable as WorkflowUsagePropBillable - from .group_0210 import CodeScanningSarifsReceipt as CodeScanningSarifsReceipt - from .group_0221 import PullRequestSimplePropBase as PullRequestSimplePropBase - from .group_0221 import PullRequestSimplePropHead as PullRequestSimplePropHead - from .group_0225 import CommunityProfilePropFiles as CommunityProfilePropFiles - from .group_0231 import ContentSubmodulePropLinks as ContentSubmodulePropLinks - from .group_0253 import GitCommitPropParentsItems as GitCommitPropParentsItems - from .group_0253 import GitCommitPropVerification as GitCommitPropVerification - from .group_0262 import IssueEventDismissedReview as IssueEventDismissedReview - from .group_0270 import ReviewRequestedIssueEvent as ReviewRequestedIssueEvent - from .group_0272 import ReviewDismissedIssueEvent as ReviewDismissedIssueEvent - from .group_0311 import RepositoryRuleRulesetInfo as RepositoryRuleRulesetInfo - from .group_0353 import SearchUsersGetResponse200 as SearchUsersGetResponse200 - from .group_0384 import WebhooksRepositoriesItems as WebhooksRepositoriesItems - from .group_0388 import WebhooksIssuePropAssignee as WebhooksIssuePropAssignee - from .group_0410 import WebhooksReleasePropAuthor as WebhooksReleasePropAuthor - from .group_0462 import WebhookDiscussionAnswered as WebhookDiscussionAnswered - from .group_0474 import WebhookDiscussionReopened as WebhookDiscussionReopened - from .group_0479 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked - from .group_0480 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned - from .group_0519 import WebhookIssueCommentEdited as WebhookIssueCommentEdited - from .group_0543 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned - from .group_0591 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild - from .group_0600 import WebhookProjectCardCreated as WebhookProjectCardCreated - from .group_0601 import WebhookProjectCardDeleted as WebhookProjectCardDeleted - from .group_0610 import WebhookProjectColumnMoved as WebhookProjectColumnMoved - from .group_0637 import WebhookPullRequestLabeled as WebhookPullRequestLabeled - from .group_0659 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit - from .group_0659 import WebhookPushPropRepository as WebhookPushPropRepository - from .group_0669 import WebhookReleasePrereleased as WebhookReleasePrereleased - from .group_0672 import WebhookReleaseUnpublished as WebhookReleaseUnpublished - from .group_0675 import WebhookRepositoryArchived as WebhookRepositoryArchived - from .group_0711 import WebhookSponsorshipCreated as WebhookSponsorshipCreated - from .group_0738 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting - from .group_0755 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 - from .group_0777 import OrganizationActionsSecret as OrganizationActionsSecret - from .group_0814 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody + from .group_0072 import CodeScanningAlertInstance as CodeScanningAlertInstance + from .group_0072 import CodeScanningAlertLocation as CodeScanningAlertLocation + from .group_0074 import CodeSecurityConfiguration as CodeSecurityConfiguration + from .group_0120 import RepositoryRulePullRequest as RepositoryRulePullRequest + from .group_0170 import SimpleCommitPropCommitter as SimpleCommitPropCommitter + from .group_0178 import WorkflowUsagePropBillable as WorkflowUsagePropBillable + from .group_0215 import CodeScanningSarifsReceipt as CodeScanningSarifsReceipt + from .group_0226 import PullRequestSimplePropBase as PullRequestSimplePropBase + from .group_0226 import PullRequestSimplePropHead as PullRequestSimplePropHead + from .group_0230 import CommunityProfilePropFiles as CommunityProfilePropFiles + from .group_0236 import ContentSubmodulePropLinks as ContentSubmodulePropLinks + from .group_0258 import GitCommitPropParentsItems as GitCommitPropParentsItems + from .group_0258 import GitCommitPropVerification as GitCommitPropVerification + from .group_0267 import IssueEventDismissedReview as IssueEventDismissedReview + from .group_0275 import ReviewRequestedIssueEvent as ReviewRequestedIssueEvent + from .group_0277 import ReviewDismissedIssueEvent as ReviewDismissedIssueEvent + from .group_0316 import RepositoryRuleRulesetInfo as RepositoryRuleRulesetInfo + from .group_0358 import SearchUsersGetResponse200 as SearchUsersGetResponse200 + from .group_0389 import WebhooksRepositoriesItems as WebhooksRepositoriesItems + from .group_0393 import WebhooksIssuePropAssignee as WebhooksIssuePropAssignee + from .group_0416 import WebhooksReleasePropAuthor as WebhooksReleasePropAuthor + from .group_0468 import WebhookDiscussionAnswered as WebhookDiscussionAnswered + from .group_0480 import WebhookDiscussionReopened as WebhookDiscussionReopened + from .group_0485 import WebhookDiscussionUnlocked as WebhookDiscussionUnlocked + from .group_0486 import WebhookDiscussionUnpinned as WebhookDiscussionUnpinned + from .group_0525 import WebhookIssueCommentEdited as WebhookIssueCommentEdited + from .group_0549 import WebhookIssuesDemilestoned as WebhookIssuesDemilestoned + from .group_0597 import WebhookPageBuildPropBuild as WebhookPageBuildPropBuild + from .group_0606 import WebhookProjectCardCreated as WebhookProjectCardCreated + from .group_0607 import WebhookProjectCardDeleted as WebhookProjectCardDeleted + from .group_0616 import WebhookProjectColumnMoved as WebhookProjectColumnMoved + from .group_0646 import WebhookPullRequestLabeled as WebhookPullRequestLabeled + from .group_0668 import WebhookPushPropHeadCommit as WebhookPushPropHeadCommit + from .group_0668 import WebhookPushPropRepository as WebhookPushPropRepository + from .group_0678 import WebhookReleasePrereleased as WebhookReleasePrereleased + from .group_0681 import WebhookReleaseUnpublished as WebhookReleaseUnpublished + from .group_0684 import WebhookRepositoryArchived as WebhookRepositoryArchived + from .group_0720 import WebhookSponsorshipCreated as WebhookSponsorshipCreated + from .group_0747 import WebhookWorkflowJobWaiting as WebhookWorkflowJobWaiting + from .group_0765 import GistsGistIdGetResponse403 as GistsGistIdGetResponse403 + from .group_0787 import OrganizationActionsSecret as OrganizationActionsSecret + from .group_0831 import OrgsOrgMigrationsPostBody as OrgsOrgMigrationsPostBody from .group_0005 import IntegrationPropPermissions as IntegrationPropPermissions - from .group_0035 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 - from .group_0043 import GistCommitPropChangeStatus as GistCommitPropChangeStatus - from .group_0074 import CopilotOrganizationDetails as CopilotOrganizationDetails - from .group_0088 import PackageVersionPropMetadata as PackageVersionPropMetadata - from .group_0106 import OrgRulesetConditionsOneof0 as OrgRulesetConditionsOneof0 - from .group_0107 import OrgRulesetConditionsOneof1 as OrgRulesetConditionsOneof1 - from .group_0108 import OrgRulesetConditionsOneof2 as OrgRulesetConditionsOneof2 - from .group_0132 import RepositoryRuleCodeScanning as RepositoryRuleCodeScanning - from .group_0135 import RepositoryRulesetPropLinks as RepositoryRulesetPropLinks - from .group_0139 import RepositoryAdvisoryPropCvss as RepositoryAdvisoryPropCvss - from .group_0148 import TeamProjectPropPermissions as TeamProjectPropPermissions - from .group_0164 import PullRequestMinimalPropBase as PullRequestMinimalPropBase - from .group_0164 import PullRequestMinimalPropHead as PullRequestMinimalPropHead - from .group_0200 import CodeScanningCodeqlDatabase as CodeScanningCodeqlDatabase - from .group_0222 import PullRequestSimplePropLinks as PullRequestSimplePropLinks - from .group_0263 import LabeledIssueEventPropLabel as LabeledIssueEventPropLabel - from .group_0284 import TimelineLineCommentedEvent as TimelineLineCommentedEvent - from .group_0285 import TimelineAssignedIssueEvent as TimelineAssignedIssueEvent - from .group_0297 import PagesHealthCheckPropDomain as PagesHealthCheckPropDomain - from .group_0299 import PullRequestPropLabelsItems as PullRequestPropLabelsItems - from .group_0305 import PullRequestReviewPropLinks as PullRequestReviewPropLinks - from .group_0349 import SearchIssuesGetResponse200 as SearchIssuesGetResponse200 - from .group_0350 import SearchLabelsGetResponse200 as SearchLabelsGetResponse200 - from .group_0352 import SearchTopicsGetResponse200 as SearchTopicsGetResponse200 - from .group_0365 import HovercardPropContextsItems as HovercardPropContextsItems - from .group_0369 import OrganizationSimpleWebhooks as OrganizationSimpleWebhooks - from .group_0388 import WebhooksIssuePropMilestone as WebhooksIssuePropMilestone - from .group_0388 import WebhooksIssuePropReactions as WebhooksIssuePropReactions - from .group_0390 import WebhooksIssue2PropAssignee as WebhooksIssue2PropAssignee - from .group_0397 import WebhooksMembershipPropUser as WebhooksMembershipPropUser - from .group_0398 import PersonalAccessTokenRequest as PersonalAccessTokenRequest - from .group_0400 import WebhooksProjectPropCreator as WebhooksProjectPropCreator - from .group_0411 import WebhooksRelease1PropAuthor as WebhooksRelease1PropAuthor - from .group_0412 import WebhooksAlertPropDismisser as WebhooksAlertPropDismisser - from .group_0413 import SecretScanningAlertWebhook as SecretScanningAlertWebhook - from .group_0429 import WebhookCheckRunRerequested as WebhookCheckRunRerequested - from .group_0431 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted - from .group_0432 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested - from .group_0478 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled - from .group_0488 import WebhookInstallationCreated as WebhookInstallationCreated - from .group_0489 import WebhookInstallationDeleted as WebhookInstallationDeleted - from .group_0493 import WebhookInstallationSuspend as WebhookInstallationSuspend - from .group_0496 import WebhookIssueCommentCreated as WebhookIssueCommentCreated - from .group_0508 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted - from .group_0570 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed - from .group_0571 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook - from .group_0579 import WebhookOrganizationDeleted as WebhookOrganizationDeleted - from .group_0583 import WebhookOrganizationRenamed as WebhookOrganizationRenamed - from .group_0609 import WebhookProjectColumnEdited as WebhookProjectColumnEdited - from .group_0628 import WebhookPullRequestAssigned as WebhookPullRequestAssigned - from .group_0634 import WebhookPullRequestDequeued as WebhookPullRequestDequeued - from .group_0636 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued - from .group_0642 import WebhookPullRequestReopened as WebhookPullRequestReopened - from .group_0658 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked - from .group_0707 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis - from .group_0811 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody - from .group_0857 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody - from .group_0981 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody - from .group_1060 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 - from .group_1070 import UserSocialAccountsPostBody as UserSocialAccountsPostBody - from .group_1072 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody + from .group_0039 import IssuePropLabelsItemsOneof1 as IssuePropLabelsItemsOneof1 + from .group_0047 import GistCommitPropChangeStatus as GistCommitPropChangeStatus + from .group_0080 import CopilotOrganizationDetails as CopilotOrganizationDetails + from .group_0093 import PackageVersionPropMetadata as PackageVersionPropMetadata + from .group_0111 import OrgRulesetConditionsOneof0 as OrgRulesetConditionsOneof0 + from .group_0112 import OrgRulesetConditionsOneof1 as OrgRulesetConditionsOneof1 + from .group_0113 import OrgRulesetConditionsOneof2 as OrgRulesetConditionsOneof2 + from .group_0137 import RepositoryRuleCodeScanning as RepositoryRuleCodeScanning + from .group_0140 import RepositoryRulesetPropLinks as RepositoryRulesetPropLinks + from .group_0144 import RepositoryAdvisoryPropCvss as RepositoryAdvisoryPropCvss + from .group_0153 import TeamProjectPropPermissions as TeamProjectPropPermissions + from .group_0169 import PullRequestMinimalPropBase as PullRequestMinimalPropBase + from .group_0169 import PullRequestMinimalPropHead as PullRequestMinimalPropHead + from .group_0205 import CodeScanningCodeqlDatabase as CodeScanningCodeqlDatabase + from .group_0227 import PullRequestSimplePropLinks as PullRequestSimplePropLinks + from .group_0268 import LabeledIssueEventPropLabel as LabeledIssueEventPropLabel + from .group_0289 import TimelineLineCommentedEvent as TimelineLineCommentedEvent + from .group_0290 import TimelineAssignedIssueEvent as TimelineAssignedIssueEvent + from .group_0302 import PagesHealthCheckPropDomain as PagesHealthCheckPropDomain + from .group_0304 import PullRequestPropLabelsItems as PullRequestPropLabelsItems + from .group_0310 import PullRequestReviewPropLinks as PullRequestReviewPropLinks + from .group_0354 import SearchIssuesGetResponse200 as SearchIssuesGetResponse200 + from .group_0355 import SearchLabelsGetResponse200 as SearchLabelsGetResponse200 + from .group_0357 import SearchTopicsGetResponse200 as SearchTopicsGetResponse200 + from .group_0370 import HovercardPropContextsItems as HovercardPropContextsItems + from .group_0374 import OrganizationSimpleWebhooks as OrganizationSimpleWebhooks + from .group_0393 import WebhooksIssuePropMilestone as WebhooksIssuePropMilestone + from .group_0393 import WebhooksIssuePropReactions as WebhooksIssuePropReactions + from .group_0395 import WebhooksIssue2PropAssignee as WebhooksIssue2PropAssignee + from .group_0402 import WebhooksMembershipPropUser as WebhooksMembershipPropUser + from .group_0403 import PersonalAccessTokenRequest as PersonalAccessTokenRequest + from .group_0405 import WebhooksProjectPropCreator as WebhooksProjectPropCreator + from .group_0417 import WebhooksRelease1PropAuthor as WebhooksRelease1PropAuthor + from .group_0418 import WebhooksAlertPropDismisser as WebhooksAlertPropDismisser + from .group_0419 import SecretScanningAlertWebhook as SecretScanningAlertWebhook + from .group_0435 import WebhookCheckRunRerequested as WebhookCheckRunRerequested + from .group_0437 import WebhookCheckSuiteCompleted as WebhookCheckSuiteCompleted + from .group_0438 import WebhookCheckSuiteRequested as WebhookCheckSuiteRequested + from .group_0484 import WebhookDiscussionUnlabeled as WebhookDiscussionUnlabeled + from .group_0494 import WebhookInstallationCreated as WebhookInstallationCreated + from .group_0495 import WebhookInstallationDeleted as WebhookInstallationDeleted + from .group_0499 import WebhookInstallationSuspend as WebhookInstallationSuspend + from .group_0502 import WebhookIssueCommentCreated as WebhookIssueCommentCreated + from .group_0514 import WebhookIssueCommentDeleted as WebhookIssueCommentDeleted + from .group_0576 import WebhookMergeGroupDestroyed as WebhookMergeGroupDestroyed + from .group_0577 import WebhookMetaDeletedPropHook as WebhookMetaDeletedPropHook + from .group_0585 import WebhookOrganizationDeleted as WebhookOrganizationDeleted + from .group_0589 import WebhookOrganizationRenamed as WebhookOrganizationRenamed + from .group_0615 import WebhookProjectColumnEdited as WebhookProjectColumnEdited + from .group_0629 import ProjectsV2IterationSetting as ProjectsV2IterationSetting + from .group_0637 import WebhookPullRequestAssigned as WebhookPullRequestAssigned + from .group_0643 import WebhookPullRequestDequeued as WebhookPullRequestDequeued + from .group_0645 import WebhookPullRequestEnqueued as WebhookPullRequestEnqueued + from .group_0651 import WebhookPullRequestReopened as WebhookPullRequestReopened + from .group_0667 import WebhookPullRequestUnlocked as WebhookPullRequestUnlocked + from .group_0716 import WebhookSecurityAndAnalysis as WebhookSecurityAndAnalysis + from .group_0828 import OrgsOrgInvitationsPostBody as OrgsOrgInvitationsPostBody + from .group_0874 import ProjectsProjectIdPatchBody as ProjectsProjectIdPatchBody + from .group_1001 import ReposOwnerRepoKeysPostBody as ReposOwnerRepoKeysPostBody + from .group_1080 import UserEmailsDeleteBodyOneof0 as UserEmailsDeleteBodyOneof0 + from .group_1090 import UserSocialAccountsPostBody as UserSocialAccountsPostBody + from .group_1092 import UserSshSigningKeysPostBody as UserSshSigningKeysPostBody from .group_0002 import GlobalAdvisoryPropCwesItems as GlobalAdvisoryPropCwesItems from .group_0022 import SimpleClassroomOrganization as SimpleClassroomOrganization from .group_0023 import ClassroomAcceptedAssignment as ClassroomAcceptedAssignment - from .group_0040 import GistHistoryPropChangeStatus as GistHistoryPropChangeStatus - from .group_0094 import OrgRepoCustomPropertyValues as OrgRepoCustomPropertyValues - from .group_0098 import RepositoryRulesetConditions as RepositoryRulesetConditions - from .group_0171 import DeploymentPropPayloadOneof0 as DeploymentPropPayloadOneof0 - from .group_0176 import CheckAutomatedSecurityFixes as CheckAutomatedSecurityFixes - from .group_0203 import CodeScanningVariantAnalysis as CodeScanningVariantAnalysis - from .group_0215 import CollaboratorPropPermissions as CollaboratorPropPermissions - from .group_0227 import ContentTreePropEntriesItems as ContentTreePropEntriesItems - from .group_0269 import RenamedIssueEventPropRename as RenamedIssueEventPropRename - from .group_0299 import PullRequestPropHeadPropRepo as PullRequestPropHeadPropRepo - from .group_0299 import PullRequestPropHeadPropUser as PullRequestPropHeadPropUser - from .group_0300 import PullRequestPropBasePropUser as PullRequestPropBasePropUser - from .group_0301 import PullRequestPropBasePropRepo as PullRequestPropBasePropRepo - from .group_0347 import SearchCommitsGetResponse200 as SearchCommitsGetResponse200 - from .group_0357 import CodespaceWithFullRepository as CodespaceWithFullRepository - from .group_0380 import WebhooksAnswerPropReactions as WebhooksAnswerPropReactions - from .group_0390 import WebhooksIssue2PropMilestone as WebhooksIssue2PropMilestone - from .group_0390 import WebhooksIssue2PropReactions as WebhooksIssue2PropReactions - from .group_0392 import WebhooksMarketplacePurchase as WebhooksMarketplacePurchase - from .group_0415 import WebhooksSponsorshipPropTier as WebhooksSponsorshipPropTier - from .group_0440 import WebhookCommitCommentCreated as WebhookCommitCommentCreated - from .group_0451 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed - from .group_0477 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered - from .group_0483 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 - from .group_0485 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 - from .group_0487 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems - from .group_0599 import WebhookProjectCardConverted as WebhookProjectCardConverted - from .group_0607 import WebhookProjectColumnCreated as WebhookProjectColumnCreated - from .group_0608 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted - from .group_0623 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited - from .group_0657 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled - from .group_0659 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems - from .group_0681 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized - from .group_0682 import WebhookRepositoryPublicized as WebhookRepositoryPublicized - from .group_0693 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived - from .group_0710 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled - from .group_0731 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted - from .group_0739 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted - from .group_0741 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested - from .group_0757 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody - from .group_0763 import NotificationsPutResponse202 as NotificationsPutResponse202 - from .group_0781 import OrganizationActionsVariable as OrganizationActionsVariable - from .group_0807 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody - from .group_0950 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody - from .group_0957 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody - from .group_0960 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody - from .group_1003 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody - from .group_1033 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody - from .group_0051 import MinimalRepositoryPropLicense as MinimalRepositoryPropLicense - from .group_0067 import CodeScanningAlertRuleSummary as CodeScanningAlertRuleSummary - from .group_0084 import OrgMembershipPropPermissions as OrgMembershipPropPermissions - from .group_0097 import RepositoryRulesetBypassActor as RepositoryRulesetBypassActor - from .group_0109 import RepositoryRuleNonFastForward as RepositoryRuleNonFastForward - from .group_0127 import RepositoryRuleTagNamePattern as RepositoryRuleTagNamePattern - from .group_0162 import ActionsRepositoryPermissions as ActionsRepositoryPermissions - from .group_0172 import WorkflowRunUsagePropBillable as WorkflowRunUsagePropBillable - from .group_0180 import ProtectedBranchAdminEnforced as ProtectedBranchAdminEnforced - from .group_0199 import CodeScanningAnalysisDeletion as CodeScanningAnalysisDeletion - from .group_0216 import TimelineCommitCommentedEvent as TimelineCommitCommentedEvent - from .group_0232 import FileCommitPropCommitPropTree as FileCommitPropCommitPropTree - from .group_0264 import UnlabeledIssueEventPropLabel as UnlabeledIssueEventPropLabel - from .group_0276 import RemovedFromProjectIssueEvent as RemovedFromProjectIssueEvent - from .group_0280 import TimelineCrossReferencedEvent as TimelineCrossReferencedEvent - from .group_0286 import TimelineUnassignedIssueEvent as TimelineUnassignedIssueEvent - from .group_0312 import RepositoryRuleDetailedOneof0 as RepositoryRuleDetailedOneof0 - from .group_0313 import RepositoryRuleDetailedOneof1 as RepositoryRuleDetailedOneof1 - from .group_0314 import RepositoryRuleDetailedOneof2 as RepositoryRuleDetailedOneof2 - from .group_0315 import RepositoryRuleDetailedOneof3 as RepositoryRuleDetailedOneof3 - from .group_0316 import RepositoryRuleDetailedOneof4 as RepositoryRuleDetailedOneof4 - from .group_0317 import RepositoryRuleDetailedOneof5 as RepositoryRuleDetailedOneof5 - from .group_0318 import RepositoryRuleDetailedOneof6 as RepositoryRuleDetailedOneof6 - from .group_0319 import RepositoryRuleDetailedOneof7 as RepositoryRuleDetailedOneof7 - from .group_0320 import RepositoryRuleDetailedOneof8 as RepositoryRuleDetailedOneof8 - from .group_0321 import RepositoryRuleDetailedOneof9 as RepositoryRuleDetailedOneof9 - from .group_0345 import SearchResultTextMatchesItems as SearchResultTextMatchesItems - from .group_0374 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite - from .group_0381 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy - from .group_0382 import WebhooksCommentPropReactions as WebhooksCommentPropReactions - from .group_0386 import WebhooksIssueCommentPropUser as WebhooksIssueCommentPropUser - from .group_0388 import WebhooksIssuePropLabelsItems as WebhooksIssuePropLabelsItems - from .group_0388 import WebhooksIssuePropPullRequest as WebhooksIssuePropPullRequest - from .group_0389 import WebhooksMilestonePropCreator as WebhooksMilestonePropCreator - from .group_0407 import WebhooksPullRequest5PropBase as WebhooksPullRequest5PropBase - from .group_0407 import WebhooksPullRequest5PropHead as WebhooksPullRequest5PropHead - from .group_0407 import WebhooksPullRequest5PropUser as WebhooksPullRequest5PropUser - from .group_0410 import WebhooksReleasePropReactions as WebhooksReleasePropReactions - from .group_0433 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested - from .group_0442 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated - from .group_0443 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted - from .group_0444 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated - from .group_0475 import WebhookDiscussionTransferred as WebhookDiscussionTransferred - from .group_0495 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend - from .group_0532 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue - from .group_0544 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue - from .group_0546 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue - from .group_0548 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue - from .group_0621 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated - from .group_0622 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted - from .group_0639 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned - from .group_0656 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned - from .group_0692 import WebhookRepositoryTransferred as WebhookRepositoryTransferred - from .group_0699 import SecretScanningLocationCommit as SecretScanningLocationCommit - from .group_0724 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository - from .group_0727 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges - from .group_0734 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress - from .group_0740 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress - from .group_0802 import OrganizationDependabotSecret as OrganizationDependabotSecret - from .group_0966 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody - from .group_0982 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody - from .group_0985 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody - from .group_1048 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 - from .group_1049 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 - from .group_1050 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 - from .group_1058 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody - from .group_1071 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody - from .group_0030 import ( + from .group_0044 import GistHistoryPropChangeStatus as GistHistoryPropChangeStatus + from .group_0099 import OrgRepoCustomPropertyValues as OrgRepoCustomPropertyValues + from .group_0103 import RepositoryRulesetConditions as RepositoryRulesetConditions + from .group_0176 import DeploymentPropPayloadOneof0 as DeploymentPropPayloadOneof0 + from .group_0181 import CheckAutomatedSecurityFixes as CheckAutomatedSecurityFixes + from .group_0208 import CodeScanningVariantAnalysis as CodeScanningVariantAnalysis + from .group_0220 import CollaboratorPropPermissions as CollaboratorPropPermissions + from .group_0232 import ContentTreePropEntriesItems as ContentTreePropEntriesItems + from .group_0274 import RenamedIssueEventPropRename as RenamedIssueEventPropRename + from .group_0304 import PullRequestPropHeadPropRepo as PullRequestPropHeadPropRepo + from .group_0304 import PullRequestPropHeadPropUser as PullRequestPropHeadPropUser + from .group_0305 import PullRequestPropBasePropUser as PullRequestPropBasePropUser + from .group_0306 import PullRequestPropBasePropRepo as PullRequestPropBasePropRepo + from .group_0352 import SearchCommitsGetResponse200 as SearchCommitsGetResponse200 + from .group_0362 import CodespaceWithFullRepository as CodespaceWithFullRepository + from .group_0385 import WebhooksAnswerPropReactions as WebhooksAnswerPropReactions + from .group_0395 import WebhooksIssue2PropMilestone as WebhooksIssue2PropMilestone + from .group_0395 import WebhooksIssue2PropReactions as WebhooksIssue2PropReactions + from .group_0397 import WebhooksMarketplacePurchase as WebhooksMarketplacePurchase + from .group_0421 import WebhooksSponsorshipPropTier as WebhooksSponsorshipPropTier + from .group_0446 import WebhookCommitCommentCreated as WebhookCommitCommentCreated + from .group_0457 import WebhookDependabotAlertFixed as WebhookDependabotAlertFixed + from .group_0483 import WebhookDiscussionUnanswered as WebhookDiscussionUnanswered + from .group_0489 import WebhookForkPropForkeeAllof0 as WebhookForkPropForkeeAllof0 + from .group_0491 import WebhookForkPropForkeeAllof1 as WebhookForkPropForkeeAllof1 + from .group_0493 import WebhookGollumPropPagesItems as WebhookGollumPropPagesItems + from .group_0605 import WebhookProjectCardConverted as WebhookProjectCardConverted + from .group_0613 import WebhookProjectColumnCreated as WebhookProjectColumnCreated + from .group_0614 import WebhookProjectColumnDeleted as WebhookProjectColumnDeleted + from .group_0629 import WebhookProjectsV2ItemEdited as WebhookProjectsV2ItemEdited + from .group_0666 import WebhookPullRequestUnlabeled as WebhookPullRequestUnlabeled + from .group_0668 import WebhookPushPropCommitsItems as WebhookPushPropCommitsItems + from .group_0690 import WebhookRepositoryPrivatized as WebhookRepositoryPrivatized + from .group_0691 import WebhookRepositoryPublicized as WebhookRepositoryPublicized + from .group_0702 import WebhookRepositoryUnarchived as WebhookRepositoryUnarchived + from .group_0719 import WebhookSponsorshipCancelled as WebhookSponsorshipCancelled + from .group_0740 import WebhookWorkflowJobCompleted as WebhookWorkflowJobCompleted + from .group_0748 import WebhookWorkflowRunCompleted as WebhookWorkflowRunCompleted + from .group_0750 import WebhookWorkflowRunRequested as WebhookWorkflowRunRequested + from .group_0767 import GistsGistIdCommentsPostBody as GistsGistIdCommentsPostBody + from .group_0773 import NotificationsPutResponse202 as NotificationsPutResponse202 + from .group_0791 import OrganizationActionsVariable as OrganizationActionsVariable + from .group_0824 import OrgsOrgHooksHookIdPatchBody as OrgsOrgHooksHookIdPatchBody + from .group_0970 import ReposOwnerRepoForksPostBody as ReposOwnerRepoForksPostBody + from .group_0977 import ReposOwnerRepoHooksPostBody as ReposOwnerRepoHooksPostBody + from .group_0980 import ReposOwnerRepoImportPutBody as ReposOwnerRepoImportPutBody + from .group_1023 import ReposOwnerRepoPullsPostBody as ReposOwnerRepoPullsPostBody + from .group_1053 import ReposOwnerRepoTopicsPutBody as ReposOwnerRepoTopicsPutBody + from .group_0055 import MinimalRepositoryPropLicense as MinimalRepositoryPropLicense + from .group_0070 import CodeScanningAlertRuleSummary as CodeScanningAlertRuleSummary + from .group_0087 import OrgMembershipPropPermissions as OrgMembershipPropPermissions + from .group_0102 import RepositoryRulesetBypassActor as RepositoryRulesetBypassActor + from .group_0114 import RepositoryRuleNonFastForward as RepositoryRuleNonFastForward + from .group_0132 import RepositoryRuleTagNamePattern as RepositoryRuleTagNamePattern + from .group_0167 import ActionsRepositoryPermissions as ActionsRepositoryPermissions + from .group_0177 import WorkflowRunUsagePropBillable as WorkflowRunUsagePropBillable + from .group_0185 import ProtectedBranchAdminEnforced as ProtectedBranchAdminEnforced + from .group_0204 import CodeScanningAnalysisDeletion as CodeScanningAnalysisDeletion + from .group_0221 import TimelineCommitCommentedEvent as TimelineCommitCommentedEvent + from .group_0237 import FileCommitPropCommitPropTree as FileCommitPropCommitPropTree + from .group_0269 import UnlabeledIssueEventPropLabel as UnlabeledIssueEventPropLabel + from .group_0281 import RemovedFromProjectIssueEvent as RemovedFromProjectIssueEvent + from .group_0285 import TimelineCrossReferencedEvent as TimelineCrossReferencedEvent + from .group_0291 import TimelineUnassignedIssueEvent as TimelineUnassignedIssueEvent + from .group_0317 import RepositoryRuleDetailedOneof0 as RepositoryRuleDetailedOneof0 + from .group_0318 import RepositoryRuleDetailedOneof1 as RepositoryRuleDetailedOneof1 + from .group_0319 import RepositoryRuleDetailedOneof2 as RepositoryRuleDetailedOneof2 + from .group_0320 import RepositoryRuleDetailedOneof3 as RepositoryRuleDetailedOneof3 + from .group_0321 import RepositoryRuleDetailedOneof4 as RepositoryRuleDetailedOneof4 + from .group_0322 import RepositoryRuleDetailedOneof5 as RepositoryRuleDetailedOneof5 + from .group_0323 import RepositoryRuleDetailedOneof6 as RepositoryRuleDetailedOneof6 + from .group_0324 import RepositoryRuleDetailedOneof7 as RepositoryRuleDetailedOneof7 + from .group_0325 import RepositoryRuleDetailedOneof8 as RepositoryRuleDetailedOneof8 + from .group_0326 import RepositoryRuleDetailedOneof9 as RepositoryRuleDetailedOneof9 + from .group_0350 import SearchResultTextMatchesItems as SearchResultTextMatchesItems + from .group_0379 import CheckRunWithSimpleCheckSuite as CheckRunWithSimpleCheckSuite + from .group_0386 import DiscussionPropAnswerChosenBy as DiscussionPropAnswerChosenBy + from .group_0387 import WebhooksCommentPropReactions as WebhooksCommentPropReactions + from .group_0391 import WebhooksIssueCommentPropUser as WebhooksIssueCommentPropUser + from .group_0393 import WebhooksIssuePropLabelsItems as WebhooksIssuePropLabelsItems + from .group_0393 import WebhooksIssuePropPullRequest as WebhooksIssuePropPullRequest + from .group_0394 import WebhooksMilestonePropCreator as WebhooksMilestonePropCreator + from .group_0413 import WebhooksPullRequest5PropBase as WebhooksPullRequest5PropBase + from .group_0413 import WebhooksPullRequest5PropHead as WebhooksPullRequest5PropHead + from .group_0413 import WebhooksPullRequest5PropUser as WebhooksPullRequest5PropUser + from .group_0416 import WebhooksReleasePropReactions as WebhooksReleasePropReactions + from .group_0439 import WebhookCheckSuiteRerequested as WebhookCheckSuiteRerequested + from .group_0448 import WebhookCustomPropertyCreated as WebhookCustomPropertyCreated + from .group_0449 import WebhookCustomPropertyDeleted as WebhookCustomPropertyDeleted + from .group_0450 import WebhookCustomPropertyUpdated as WebhookCustomPropertyUpdated + from .group_0481 import WebhookDiscussionTransferred as WebhookDiscussionTransferred + from .group_0501 import WebhookInstallationUnsuspend as WebhookInstallationUnsuspend + from .group_0538 import WebhookIssuesClosedPropIssue as WebhookIssuesClosedPropIssue + from .group_0550 import WebhookIssuesEditedPropIssue as WebhookIssuesEditedPropIssue + from .group_0552 import WebhookIssuesLockedPropIssue as WebhookIssuesLockedPropIssue + from .group_0554 import WebhookIssuesOpenedPropIssue as WebhookIssuesOpenedPropIssue + from .group_0627 import WebhookProjectsV2ItemCreated as WebhookProjectsV2ItemCreated + from .group_0628 import WebhookProjectsV2ItemDeleted as WebhookProjectsV2ItemDeleted + from .group_0629 import ProjectsV2SingleSelectOption as ProjectsV2SingleSelectOption + from .group_0648 import WebhookPullRequestMilestoned as WebhookPullRequestMilestoned + from .group_0665 import WebhookPullRequestUnassigned as WebhookPullRequestUnassigned + from .group_0701 import WebhookRepositoryTransferred as WebhookRepositoryTransferred + from .group_0708 import SecretScanningLocationCommit as SecretScanningLocationCommit + from .group_0733 import WebhookTeamAddedToRepository as WebhookTeamAddedToRepository + from .group_0736 import WebhookTeamEditedPropChanges as WebhookTeamEditedPropChanges + from .group_0743 import WebhookWorkflowJobInProgress as WebhookWorkflowJobInProgress + from .group_0749 import WebhookWorkflowRunInProgress as WebhookWorkflowRunInProgress + from .group_0819 import OrganizationDependabotSecret as OrganizationDependabotSecret + from .group_0986 import ReposOwnerRepoIssuesPostBody as ReposOwnerRepoIssuesPostBody + from .group_1002 import ReposOwnerRepoLabelsPostBody as ReposOwnerRepoLabelsPostBody + from .group_1005 import ReposOwnerRepoMergesPostBody as ReposOwnerRepoMergesPostBody + from .group_1068 import UserCodespacesGetResponse200 as UserCodespacesGetResponse200 + from .group_1069 import UserCodespacesPostBodyOneof0 as UserCodespacesPostBodyOneof0 + from .group_1070 import UserCodespacesPostBodyOneof1 as UserCodespacesPostBodyOneof1 + from .group_1078 import UserEmailVisibilityPatchBody as UserEmailVisibilityPatchBody + from .group_1091 import UserSocialAccountsDeleteBody as UserSocialAccountsDeleteBody + from .group_0034 import ( DependabotAlertWithRepository as DependabotAlertWithRepository, ) - from .group_0040 import ( + from .group_0044 import ( GistSimplePropForkOfPropFiles as GistSimplePropForkOfPropFiles, ) - from .group_0096 import ( + from .group_0101 import ( FullRepositoryPropPermissions as FullRepositoryPropPermissions, ) - from .group_0149 import ( + from .group_0154 import ( TeamRepositoryPropPermissions as TeamRepositoryPropPermissions, ) - from .group_0152 import ( + from .group_0157 import ( ProjectCollaboratorPermission as ProjectCollaboratorPermission, ) - from .group_0187 import ( + from .group_0192 import ( BranchWithProtectionPropLinks as BranchWithProtectionPropLinks, ) - from .group_0188 import ( + from .group_0193 import ( ProtectedBranchPropLockBranch as ProtectedBranchPropLockBranch, ) - from .group_0235 import ( + from .group_0240 import ( DependabotAlertPropDependency as DependabotAlertPropDependency, ) - from .group_0259 import ( + from .group_0264 import ( ImportPropProjectChoicesItems as ImportPropProjectChoicesItems, ) - from .group_0297 import ( + from .group_0302 import ( PagesHealthCheckPropAltDomain as PagesHealthCheckPropAltDomain, ) - from .group_0322 import ( + from .group_0327 import ( RepositoryRuleDetailedOneof10 as RepositoryRuleDetailedOneof10, ) - from .group_0323 import ( + from .group_0328 import ( RepositoryRuleDetailedOneof11 as RepositoryRuleDetailedOneof11, ) - from .group_0324 import ( + from .group_0329 import ( RepositoryRuleDetailedOneof12 as RepositoryRuleDetailedOneof12, ) - from .group_0325 import ( + from .group_0330 import ( RepositoryRuleDetailedOneof13 as RepositoryRuleDetailedOneof13, ) - from .group_0326 import ( + from .group_0331 import ( RepositoryRuleDetailedOneof14 as RepositoryRuleDetailedOneof14, ) - from .group_0327 import ( + from .group_0332 import ( RepositoryRuleDetailedOneof15 as RepositoryRuleDetailedOneof15, ) - from .group_0390 import ( + from .group_0395 import ( WebhooksIssue2PropLabelsItems as WebhooksIssue2PropLabelsItems, ) - from .group_0390 import ( + from .group_0395 import ( WebhooksIssue2PropPullRequest as WebhooksIssue2PropPullRequest, ) - from .group_0396 import ( + from .group_0401 import ( WebhooksMilestone3PropCreator as WebhooksMilestone3PropCreator, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLinks as WebhooksPullRequest5PropLinks, ) - from .group_0408 import ( + from .group_0414 import ( WebhooksReviewCommentPropUser as WebhooksReviewCommentPropUser, ) - from .group_0411 import ( + from .group_0417 import ( WebhooksRelease1PropReactions as WebhooksRelease1PropReactions, ) - from .group_0437 import ( + from .group_0443 import ( WebhookCodeScanningAlertFixed as WebhookCodeScanningAlertFixed, ) - from .group_0449 import ( + from .group_0455 import ( WebhookDependabotAlertCreated as WebhookDependabotAlertCreated, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssue as WebhookIssuesDeletedPropIssue, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssue as WebhookIssuesLabeledPropIssue, ) - from .group_0558 import ( + from .group_0564 import ( WebhookLabelEditedPropChanges as WebhookLabelEditedPropChanges, ) - from .group_0564 import ( + from .group_0570 import ( WebhookMemberAddedPropChanges as WebhookMemberAddedPropChanges, ) - from .group_0597 import ( + from .group_0603 import ( WebhookPingPropHookPropConfig as WebhookPingPropHookPropConfig, ) - from .group_0619 import ( + from .group_0625 import ( WebhookProjectsV2ItemArchived as WebhookProjectsV2ItemArchived, ) - from .group_0625 import ( + from .group_0631 import ( WebhookProjectsV2ItemRestored as WebhookProjectsV2ItemRestored, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronize as WebhookPullRequestSynchronize, ) - from .group_0663 import ( + from .group_0672 import ( WebhookRegistryPackageUpdated as WebhookRegistryPackageUpdated, ) - from .group_0715 import ( + from .group_0724 import ( WebhookSponsorshipTierChanged as WebhookSponsorshipTierChanged, ) - from .group_0756 import ( + from .group_0766 import ( GistsGistIdPatchBodyPropFiles as GistsGistIdPatchBodyPropFiles, ) - from .group_0759 import ( + from .group_0769 import ( GistsGistIdStarGetResponse404 as GistsGistIdStarGetResponse404, ) - from .group_0766 import ( + from .group_0776 import ( ActionsCacheUsageByRepository as ActionsCacheUsageByRepository, ) - from .group_0832 import ( + from .group_0849 import ( OrgsOrgTeamsTeamSlugPatchBody as OrgsOrgTeamsTeamSlugPatchBody, ) - from .group_0953 import ( + from .group_0973 import ( ReposOwnerRepoGitRefsPostBody as ReposOwnerRepoGitRefsPostBody, ) - from .group_0955 import ( + from .group_0975 import ( ReposOwnerRepoGitTagsPostBody as ReposOwnerRepoGitTagsPostBody, ) - from .group_0961 import ( + from .group_0981 import ( ReposOwnerRepoImportPatchBody as ReposOwnerRepoImportPatchBody, ) from .group_0002 import ( @@ -875,544 +883,550 @@ from .group_0013 import ( IntegrationInstallationRequest as IntegrationInstallationRequest, ) - from .group_0037 import ( + from .group_0041 import ( EventPropPayloadPropPagesItems as EventPropPayloadPropPagesItems, ) - from .group_0055 import ( + from .group_0059 import ( ActionsCacheUsageOrgEnterprise as ActionsCacheUsageOrgEnterprise, ) - from .group_0058 import ( + from .group_0061 import ( ActionsOrganizationPermissions as ActionsOrganizationPermissions, ) - from .group_0155 import ( + from .group_0160 import ( RateLimitOverviewPropResources as RateLimitOverviewPropResources, ) - from .group_0169 import ( + from .group_0174 import ( ReviewCustomGatesStateRequired as ReviewCustomGatesStateRequired, ) - from .group_0180 import ( + from .group_0185 import ( BranchProtectionPropLockBranch as BranchProtectionPropLockBranch, ) - from .group_0208 import ( + from .group_0213 import ( CodeScanningDefaultSetupUpdate as CodeScanningDefaultSetupUpdate, ) - from .group_0228 import ( + from .group_0233 import ( ContentDirectoryItemsPropLinks as ContentDirectoryItemsPropLinks, ) - from .group_0232 import ( + from .group_0237 import ( FileCommitPropCommitPropAuthor as FileCommitPropCommitPropAuthor, ) - from .group_0232 import ( + from .group_0237 import ( FileCommitPropContentPropLinks as FileCommitPropContentPropLinks, ) - from .group_0243 import ( + from .group_0248 import ( DeploymentBranchPolicySettings as DeploymentBranchPolicySettings, ) - from .group_0271 import ( + from .group_0276 import ( ReviewRequestRemovedIssueEvent as ReviewRequestRemovedIssueEvent, ) - from .group_0275 import ( + from .group_0280 import ( MovedColumnInProjectIssueEvent as MovedColumnInProjectIssueEvent, ) - from .group_0277 import ( + from .group_0282 import ( ConvertedNoteToIssueIssueEvent as ConvertedNoteToIssueIssueEvent, ) - from .group_0282 import ( + from .group_0287 import ( TimelineCommittedEventPropTree as TimelineCommittedEventPropTree, ) - from .group_0283 import ( + from .group_0288 import ( TimelineReviewedEventPropLinks as TimelineReviewedEventPropLinks, ) - from .group_0385 import ( + from .group_0390 import ( WebhooksRepositoriesAddedItems as WebhooksRepositoriesAddedItems, ) - from .group_0399 import ( + from .group_0404 import ( WebhooksProjectCardPropCreator as WebhooksProjectCardPropCreator, ) - from .group_0408 import ( + from .group_0414 import ( WebhooksReviewCommentPropLinks as WebhooksReviewCommentPropLinks, ) - from .group_0410 import ( + from .group_0416 import ( WebhooksReleasePropAssetsItems as WebhooksReleasePropAssetsItems, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksSponsorshipPropSponsor as WebhooksSponsorshipPropSponsor, ) - from .group_0427 import ( + from .group_0433 import ( WebhookCheckRunRequestedAction as WebhookCheckRunRequestedAction, ) - from .group_0453 import ( + from .group_0459 import ( WebhookDependabotAlertReopened as WebhookDependabotAlertReopened, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreated as WebhookDeploymentStatusCreated, ) - from .group_0467 import ( + from .group_0473 import ( WebhookDiscussionCommentEdited as WebhookDiscussionCommentEdited, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropChanges as WebhookIssuesEditedPropChanges, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChanges as WebhookIssuesOpenedPropChanges, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssue as WebhookIssuesReopenedPropIssue, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssue as WebhookIssuesUnlockedPropIssue, ) - from .group_0565 import ( + from .group_0571 import ( WebhookMemberEditedPropChanges as WebhookMemberEditedPropChanges, ) - from .group_0580 import ( + from .group_0586 import ( WebhookOrganizationMemberAdded as WebhookOrganizationMemberAdded, ) - from .group_0615 import ( + from .group_0621 import ( WebhookProjectsV2ProjectClosed as WebhookProjectsV2ProjectClosed, ) - from .group_0618 import ( + from .group_0624 import ( WebhookProjectsV2ProjectEdited as WebhookProjectsV2ProjectEdited, ) - from .group_0620 import ( + from .group_0626 import ( WebhookProjectsV2ItemConverted as WebhookProjectsV2ItemConverted, ) - from .group_0624 import ( + from .group_0630 import ( WebhookProjectsV2ItemReordered as WebhookProjectsV2ItemReordered, ) - from .group_0633 import ( + from .group_0642 import ( WebhookPullRequestDemilestoned as WebhookPullRequestDemilestoned, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEdited as WebhookPullRequestReviewEdited, ) - from .group_0686 import ( + from .group_0695 import ( WebhookRepositoryRulesetEdited as WebhookRepositoryRulesetEdited, ) - from .group_0705 import ( + from .group_0714 import ( WebhookSecurityAdvisoryUpdated as WebhookSecurityAdvisoryUpdated, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropBranchesItems as WebhookStatusPropBranchesItems, ) - from .group_0787 import ( + from .group_0803 import ( OrgsOrgCodespacesAccessPutBody as OrgsOrgCodespacesAccessPutBody, ) - from .group_0806 import ( + from .group_0823 import ( OrgsOrgHooksPostBodyPropConfig as OrgsOrgHooksPostBodyPropConfig, ) - from .group_0951 import ( + from .group_0971 import ( ReposOwnerRepoGitBlobsPostBody as ReposOwnerRepoGitBlobsPostBody, ) - from .group_0956 import ( + from .group_0976 import ( ReposOwnerRepoGitTreesPostBody as ReposOwnerRepoGitTreesPostBody, ) - from .group_1001 import ( + from .group_1021 import ( ReposOwnerRepoProjectsPostBody as ReposOwnerRepoProjectsPostBody, ) - from .group_1022 import ( + from .group_1042 import ( ReposOwnerRepoReleasesPostBody as ReposOwnerRepoReleasesPostBody, ) - from .group_1027 import ( + from .group_1047 import ( ReposOwnerRepoRulesetsPostBody as ReposOwnerRepoRulesetsPostBody, ) - from .group_1034 import ( + from .group_1054 import ( ReposOwnerRepoTransferPostBody as ReposOwnerRepoTransferPostBody, ) - from .group_1037 import ( + from .group_1057 import ( TeamsTeamIdDiscussionsPostBody as TeamsTeamIdDiscussionsPostBody, ) - from .group_0028 import ( + from .group_0032 import ( DependabotAlertSecurityAdvisory as DependabotAlertSecurityAdvisory, ) - from .group_0032 import ( + from .group_0036 import ( OrganizationSecretScanningAlert as OrganizationSecretScanningAlert, ) - from .group_0072 import ( + from .group_0078 import ( CodespacePropRuntimeConstraints as CodespacePropRuntimeConstraints, ) - from .group_0125 import ( + from .group_0130 import ( RepositoryRuleBranchNamePattern as RepositoryRuleBranchNamePattern, ) - from .group_0139 import ( + from .group_0144 import ( RepositoryAdvisoryPropCwesItems as RepositoryAdvisoryPropCwesItems, ) - from .group_0139 import ( + from .group_0144 import ( RepositoryAdvisoryVulnerability as RepositoryAdvisoryVulnerability, ) - from .group_0212 import ( + from .group_0217 import ( CodeownersErrorsPropErrorsItems as CodeownersErrorsPropErrorsItems, ) - from .group_0237 import ( + from .group_0242 import ( DependencyGraphSpdxSbomPropSbom as DependencyGraphSpdxSbomPropSbom, ) - from .group_0388 import ( + from .group_0393 import ( WebhooksIssuePropAssigneesItems as WebhooksIssuePropAssigneesItems, ) - from .group_0409 import ( + from .group_0415 import ( WebhooksReviewPropLinksPropHtml as WebhooksReviewPropLinksPropHtml, ) - from .group_0411 import ( + from .group_0417 import ( WebhooksRelease1PropAssetsItems as WebhooksRelease1PropAssetsItems, ) - from .group_0436 import ( + from .group_0442 import ( WebhookCodeScanningAlertCreated as WebhookCodeScanningAlertCreated, ) - from .group_0450 import ( + from .group_0456 import ( WebhookDependabotAlertDismissed as WebhookDependabotAlertDismissed, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApproved as WebhookDeploymentReviewApproved, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejected as WebhookDeploymentReviewRejected, ) - from .group_0465 import ( + from .group_0471 import ( WebhookDiscussionCommentCreated as WebhookDiscussionCommentCreated, ) - from .group_0466 import ( + from .group_0472 import ( WebhookDiscussionCommentDeleted as WebhookDiscussionCommentDeleted, ) - from .group_0613 import ( + from .group_0619 import ( WebhookProjectEditedPropChanges as WebhookProjectEditedPropChanges, ) - from .group_0616 import ( + from .group_0622 import ( WebhookProjectsV2ProjectCreated as WebhookProjectsV2ProjectCreated, ) - from .group_0617 import ( + from .group_0623 import ( WebhookProjectsV2ProjectDeleted as WebhookProjectsV2ProjectDeleted, ) - from .group_0660 import ( + from .group_0669 import ( WebhookRegistryPackagePublished as WebhookRegistryPackagePublished, ) - from .group_0668 import ( + from .group_0677 import ( WebhookReleaseEditedPropChanges as WebhookReleaseEditedPropChanges, ) - from .group_0678 import ( + from .group_0687 import ( WebhookRepositoryDispatchSample as WebhookRepositoryDispatchSample, ) - from .group_0684 import ( + from .group_0693 import ( WebhookRepositoryRulesetCreated as WebhookRepositoryRulesetCreated, ) - from .group_0685 import ( + from .group_0694 import ( WebhookRepositoryRulesetDeleted as WebhookRepositoryRulesetDeleted, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationIssueBody as SecretScanningLocationIssueBody, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropRepository as WebhookTeamEditedPropRepository, ) - from .group_0782 import ( + from .group_0792 import ( OrgsOrgActionsVariablesPostBody as OrgsOrgActionsVariablesPostBody, ) - from .group_0786 import ( + from .group_0802 import ( OrgsOrgCodespacesGetResponse200 as OrgsOrgCodespacesGetResponse200, ) - from .group_0830 import ( + from .group_0847 import ( OrgsOrgRulesetsRulesetIdPutBody as OrgsOrgRulesetsRulesetIdPutBody, ) - from .group_0861 import ( + from .group_0878 import ( ReposOwnerRepoDeleteResponse403 as ReposOwnerRepoDeleteResponse403, ) - from .group_0888 import ( + from .group_0908 import ( ReposOwnerRepoAutolinksPostBody as ReposOwnerRepoAutolinksPostBody, ) - from .group_1062 import ( + from .group_1082 import ( UserInstallationsGetResponse200 as UserInstallationsGetResponse200, ) - from .group_1066 import ( + from .group_1086 import ( UserMembershipsOrgsOrgPatchBody as UserMembershipsOrgsOrgPatchBody, ) - from .group_0051 import ( + from .group_1093 import ( + SigstoreBundle0PropDsseEnvelope as SigstoreBundle0PropDsseEnvelope, + ) + from .group_0055 import ( MinimalRepositoryPropPermissions as MinimalRepositoryPropPermissions, ) - from .group_0109 import ( + from .group_0114 import ( RepositoryRuleRequiredSignatures as RepositoryRuleRequiredSignatures, ) - from .group_0139 import ( + from .group_0144 import ( RepositoryAdvisoryPropSubmission as RepositoryAdvisoryPropSubmission, ) - from .group_0168 import ( + from .group_0173 import ( ReviewCustomGatesCommentRequired as ReviewCustomGatesCommentRequired, ) - from .group_0170 import ( + from .group_0175 import ( PendingDeploymentPropEnvironment as PendingDeploymentPropEnvironment, ) - from .group_0177 import ( + from .group_0182 import ( ProtectedBranchPullRequestReview as ProtectedBranchPullRequestReview, ) - from .group_0188 import ( + from .group_0193 import ( ProtectedBranchPropEnforceAdmins as ProtectedBranchPropEnforceAdmins, ) - from .group_0188 import ( + from .group_0193 import ( StatusCheckPolicyPropChecksItems as StatusCheckPolicyPropChecksItems, ) - from .group_0215 import ( + from .group_0220 import ( RepositoryCollaboratorPermission as RepositoryCollaboratorPermission, ) - from .group_0220 import ( + from .group_0225 import ( PullRequestSimplePropLabelsItems as PullRequestSimplePropLabelsItems, ) - from .group_0282 import ( + from .group_0287 import ( TimelineCommittedEventPropAuthor as TimelineCommittedEventPropAuthor, ) - from .group_0330 import ( + from .group_0335 import ( PrivateVulnerabilityReportCreate as PrivateVulnerabilityReportCreate, ) - from .group_0348 import ( + from .group_0353 import ( CommitSearchResultItemPropCommit as CommitSearchResultItemPropCommit, ) - from .group_0351 import ( + from .group_0356 import ( SearchRepositoriesGetResponse200 as SearchRepositoriesGetResponse200, ) - from .group_0390 import ( + from .group_0395 import ( WebhooksIssue2PropAssigneesItems as WebhooksIssue2PropAssigneesItems, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropAssignee as WebhooksPullRequest5PropAssignee, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropMergedBy as WebhooksPullRequest5PropMergedBy, ) - from .group_0414 import ( + from .group_0420 import ( WebhooksSecurityAdvisoryPropCvss as WebhooksSecurityAdvisoryPropCvss, ) - from .group_0416 import ( + from .group_0422 import ( WebhooksChanges8PropTierPropFrom as WebhooksChanges8PropTierPropFrom, ) - from .group_0438 import ( + from .group_0444 import ( WebhookCodeScanningAlertReopened as WebhookCodeScanningAlertReopened, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequested as WebhookDeploymentReviewRequested, ) - from .group_0463 import ( + from .group_0469 import ( WebhookDiscussionCategoryChanged as WebhookDiscussionCategoryChanged, ) - from .group_0482 import ( + from .group_0488 import ( WebhookForkPropForkeeMergedOwner as WebhookForkPropForkeeMergedOwner, ) - from .group_0494 import ( + from .group_0500 import ( WebhookInstallationTargetRenamed as WebhookInstallationTargetRenamed, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssue as WebhookIssuesMilestonedPropIssue, ) - from .group_0567 import ( + from .group_0573 import ( WebhookMembershipAddedPropSender as WebhookMembershipAddedPropSender, ) - from .group_0569 import ( + from .group_0575 import ( WebhookMergeGroupChecksRequested as WebhookMergeGroupChecksRequested, ) - from .group_0581 import ( + from .group_0587 import ( WebhookOrganizationMemberInvited as WebhookOrganizationMemberInvited, ) - from .group_0582 import ( + from .group_0588 import ( WebhookOrganizationMemberRemoved as WebhookOrganizationMemberRemoved, ) - from .group_0589 import ( + from .group_0595 import ( WebhookPackageUpdatedPropPackage as WebhookPackageUpdatedPropPackage, ) - from .group_0626 import ( + from .group_0632 import ( WebhookProjectsV2ProjectReopened as WebhookProjectsV2ProjectReopened, ) - from .group_0641 import ( + from .group_0650 import ( WebhookPullRequestReadyForReview as WebhookPullRequestReadyForReview, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationIssueTitle as SecretScanningLocationIssueTitle, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationWikiCommit as SecretScanningLocationWikiCommit, ) - from .group_0704 import ( + from .group_0713 import ( WebhookSecurityAdvisoryPublished as WebhookSecurityAdvisoryPublished, ) - from .group_0706 import ( + from .group_0715 import ( WebhookSecurityAdvisoryWithdrawn as WebhookSecurityAdvisoryWithdrawn, ) - from .group_0725 import ( + from .group_0734 import ( WebhookTeamCreatedPropRepository as WebhookTeamCreatedPropRepository, ) - from .group_0726 import ( + from .group_0735 import ( WebhookTeamDeletedPropRepository as WebhookTeamDeletedPropRepository, ) - from .group_0728 import ( + from .group_0737 import ( WebhookTeamRemovedFromRepository as WebhookTeamRemovedFromRepository, ) - from .group_0767 import ( + from .group_0777 import ( OrgsOrgActionsPermissionsPutBody as OrgsOrgActionsPermissionsPutBody, ) - from .group_0815 import ( + from .group_0832 import ( OrgsOrgOrganizationRolesPostBody as OrgsOrgOrganizationRolesPostBody, ) - from .group_0825 import ( + from .group_0842 import ( OrgsOrgPropertiesSchemaPatchBody as OrgsOrgPropertiesSchemaPatchBody, ) - from .group_0827 import ( + from .group_0844 import ( OrgsOrgPropertiesValuesPatchBody as OrgsOrgPropertiesValuesPatchBody, ) - from .group_0850 import ( + from .group_0867 import ( ProjectsColumnsColumnIdPatchBody as ProjectsColumnsColumnIdPatchBody, ) - from .group_0860 import ( + from .group_0877 import ( ProjectsProjectIdColumnsPostBody as ProjectsProjectIdColumnsPostBody, ) - from .group_0920 import ( + from .group_0940 import ( ReposOwnerRepoCodespacesPostBody as ReposOwnerRepoCodespacesPostBody, ) - from .group_0940 import ( + from .group_0960 import ( ReposOwnerRepoDispatchesPostBody as ReposOwnerRepoDispatchesPostBody, ) - from .group_0952 import ( + from .group_0972 import ( ReposOwnerRepoGitCommitsPostBody as ReposOwnerRepoGitCommitsPostBody, ) - from .group_0963 import ( + from .group_0983 import ( ReposOwnerRepoImportLfsPatchBody as ReposOwnerRepoImportLfsPatchBody, ) - from .group_0986 import ( + from .group_1006 import ( ReposOwnerRepoMilestonesPostBody as ReposOwnerRepoMilestonesPostBody, ) - from .group_0991 import ( + from .group_1011 import ( ReposOwnerRepoPagesPutBodyAnyof0 as ReposOwnerRepoPagesPutBodyAnyof0, ) - from .group_0992 import ( + from .group_1012 import ( ReposOwnerRepoPagesPutBodyAnyof1 as ReposOwnerRepoPagesPutBodyAnyof1, ) - from .group_0993 import ( + from .group_1013 import ( ReposOwnerRepoPagesPutBodyAnyof2 as ReposOwnerRepoPagesPutBodyAnyof2, ) - from .group_0994 import ( + from .group_1014 import ( ReposOwnerRepoPagesPutBodyAnyof3 as ReposOwnerRepoPagesPutBodyAnyof3, ) - from .group_0995 import ( + from .group_1015 import ( ReposOwnerRepoPagesPutBodyAnyof4 as ReposOwnerRepoPagesPutBodyAnyof4, ) - from .group_1046 import ( + from .group_1066 import ( TeamsTeamIdReposOwnerRepoPutBody as TeamsTeamIdReposOwnerRepoPutBody, ) - from .group_0049 import ( + from .group_0053 import ( ApiOverviewPropSshKeyFingerprints as ApiOverviewPropSshKeyFingerprints, ) - from .group_0086 import ( + from .group_0089 import ( OrganizationFineGrainedPermission as OrganizationFineGrainedPermission, ) - from .group_0113 import ( + from .group_0091 import ( + TeamRoleAssignmentPropPermissions as TeamRoleAssignmentPropPermissions, + ) + from .group_0118 import ( RepositoryRuleRequiredDeployments as RepositoryRuleRequiredDeployments, ) - from .group_0137 import ( + from .group_0142 import ( RuleSuitePropRuleEvaluationsItems as RuleSuitePropRuleEvaluationsItems, ) - from .group_0163 import ( + from .group_0168 import ( ActionsWorkflowAccessToRepository as ActionsWorkflowAccessToRepository, ) - from .group_0188 import ( + from .group_0193 import ( ProtectedBranchPropAllowDeletions as ProtectedBranchPropAllowDeletions, ) - from .group_0188 import ( + from .group_0193 import ( ProtectedBranchPropBlockCreations as ProtectedBranchPropBlockCreations, ) - from .group_0232 import ( + from .group_0237 import ( FileCommitPropCommitPropCommitter as FileCommitPropCommitPropCommitter, ) - from .group_0248 import ( + from .group_0253 import ( DeploymentBranchPolicyNamePattern as DeploymentBranchPolicyNamePattern, ) - from .group_0267 import ( + from .group_0272 import ( MilestonedIssueEventPropMilestone as MilestonedIssueEventPropMilestone, ) - from .group_0284 import ( + from .group_0289 import ( PullRequestReviewCommentPropLinks as PullRequestReviewCommentPropLinks, ) - from .group_0334 import ( + from .group_0339 import ( ContributorActivityPropWeeksItems as ContributorActivityPropWeeksItems, ) - from .group_0370 import ( + from .group_0375 import ( RepositoryWebhooksPropPermissions as RepositoryWebhooksPropPermissions, ) - from .group_0386 import ( + from .group_0391 import ( WebhooksIssueCommentPropReactions as WebhooksIssueCommentPropReactions, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropAutoMerge as WebhooksPullRequest5PropAutoMerge, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropMilestone as WebhooksPullRequest5PropMilestone, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksSponsorshipPropMaintainer as WebhooksSponsorshipPropMaintainer, ) - from .group_0422 import ( + from .group_0428 import ( WebhookBranchProtectionRuleEdited as WebhookBranchProtectionRuleEdited, ) - from .group_0426 import ( + from .group_0432 import ( WebhookCheckRunCreatedFormEncoded as WebhookCheckRunCreatedFormEncoded, ) - from .group_0560 import ( + from .group_0566 import ( WebhookMarketplacePurchaseChanged as WebhookMarketplacePurchaseChanged, ) - from .group_0575 import ( + from .group_0581 import ( WebhookMilestoneEditedPropChanges as WebhookMilestoneEditedPropChanges, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissed as WebhookPullRequestReviewDismissed, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmitted as WebhookPullRequestReviewSubmitted, ) - from .group_0674 import ( + from .group_0683 import ( WebhookRepositoryAdvisoryReported as WebhookRepositoryAdvisoryReported, ) - from .group_0698 import ( + from .group_0707 import ( WebhookSecretScanningAlertCreated as WebhookSecretScanningAlertCreated, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropCommitPropAuthor as WebhookStatusPropCommitPropAuthor, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropCommitPropCommit as WebhookStatusPropCommitPropCommit, ) - from .group_0730 import ( + from .group_0739 import ( WebhookWorkflowDispatchPropInputs as WebhookWorkflowDispatchPropInputs, ) - from .group_0748 import ( + from .group_0757 import ( ApplicationsClientIdTokenPostBody as ApplicationsClientIdTokenPostBody, ) - from .group_0808 import ( + from .group_0825 import ( OrgsOrgHooksHookIdConfigPatchBody as OrgsOrgHooksHookIdConfigPatchBody, ) - from .group_0813 import ( + from .group_0830 import ( OrgsOrgMembershipsUsernamePutBody as OrgsOrgMembershipsUsernamePutBody, ) - from .group_0858 import ( + from .group_0875 import ( ProjectsProjectIdPatchResponse403 as ProjectsProjectIdPatchResponse403, ) - from .group_0911 import ( + from .group_0931 import ( ReposOwnerRepoCheckSuitesPostBody as ReposOwnerRepoCheckSuitesPostBody, ) - from .group_0931 import ( + from .group_0951 import ( ReposOwnerRepoContentsPathPutBody as ReposOwnerRepoContentsPathPutBody, ) - from .group_0937 import ( + from .group_0957 import ( ReposOwnerRepoDeploymentsPostBody as ReposOwnerRepoDeploymentsPostBody, ) - from .group_0954 import ( + from .group_0974 import ( ReposOwnerRepoGitRefsRefPatchBody as ReposOwnerRepoGitRefsRefPatchBody, ) - from .group_0983 import ( + from .group_1003 import ( ReposOwnerRepoLabelsNamePatchBody as ReposOwnerRepoLabelsNamePatchBody, ) - from .group_0997 import ( + from .group_1017 import ( ReposOwnerRepoPagesPostBodyAnyof0 as ReposOwnerRepoPagesPostBodyAnyof0, ) - from .group_0998 import ( + from .group_1018 import ( ReposOwnerRepoPagesPostBodyAnyof1 as ReposOwnerRepoPagesPostBodyAnyof1, ) - from .group_1030 import ( + from .group_1050 import ( ReposOwnerRepoStatusesShaPostBody as ReposOwnerRepoStatusesShaPostBody, ) - from .group_1031 import ( + from .group_1051 import ( ReposOwnerRepoSubscriptionPutBody as ReposOwnerRepoSubscriptionPutBody, ) from .group_0002 import ( @@ -1424,6657 +1438,6798 @@ from .group_0011 import ( HookDeliveryPropRequestPropPayload as HookDeliveryPropRequestPropPayload, ) - from .group_0065 import ( + from .group_0068 import ( AuthenticationTokenPropPermissions as AuthenticationTokenPropPermissions, ) - from .group_0070 import ( + from .group_0073 import ( CodeScanningOrganizationAlertItems as CodeScanningOrganizationAlertItems, ) - from .group_0096 import ( + from .group_0101 import ( FullRepositoryPropCustomProperties as FullRepositoryPropCustomProperties, ) - from .group_0111 import ( + from .group_0116 import ( RepositoryRuleUpdatePropParameters as RepositoryRuleUpdatePropParameters, ) - from .group_0117 import ( + from .group_0122 import ( RepositoryRuleRequiredStatusChecks as RepositoryRuleRequiredStatusChecks, ) - from .group_0119 import ( + from .group_0124 import ( RepositoryRuleCommitMessagePattern as RepositoryRuleCommitMessagePattern, ) - from .group_0135 import ( + from .group_0140 import ( RepositoryRulesetPropLinksPropHtml as RepositoryRulesetPropLinksPropHtml, ) - from .group_0135 import ( + from .group_0140 import ( RepositoryRulesetPropLinksPropSelf as RepositoryRulesetPropLinksPropSelf, ) - from .group_0139 import ( + from .group_0144 import ( RepositoryAdvisoryPropCreditsItems as RepositoryAdvisoryPropCreditsItems, ) - from .group_0164 import ( + from .group_0169 import ( PullRequestMinimalPropBasePropRepo as PullRequestMinimalPropBasePropRepo, ) - from .group_0164 import ( + from .group_0169 import ( PullRequestMinimalPropHeadPropRepo as PullRequestMinimalPropHeadPropRepo, ) - from .group_0173 import ( + from .group_0178 import ( WorkflowUsagePropBillablePropMacos as WorkflowUsagePropBillablePropMacos, ) - from .group_0180 import ( + from .group_0185 import ( BranchProtectionPropAllowDeletions as BranchProtectionPropAllowDeletions, ) - from .group_0180 import ( + from .group_0185 import ( BranchProtectionPropBlockCreations as BranchProtectionPropBlockCreations, ) - from .group_0180 import ( + from .group_0185 import ( ProtectedBranchRequiredStatusCheck as ProtectedBranchRequiredStatusCheck, ) - from .group_0305 import ( + from .group_0310 import ( PullRequestReviewPropLinksPropHtml as PullRequestReviewPropLinksPropHtml, ) - from .group_0377 import ( + from .group_0382 import ( WebhooksReviewersItemsPropReviewer as WebhooksReviewersItemsPropReviewer, ) - from .group_0408 import ( + from .group_0414 import ( WebhooksReviewCommentPropReactions as WebhooksReviewCommentPropReactions, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksSponsorshipPropSponsorable as WebhooksSponsorshipPropSponsorable, ) - from .group_0420 import ( + from .group_0426 import ( WebhookBranchProtectionRuleCreated as WebhookBranchProtectionRuleCreated, ) - from .group_0421 import ( + from .group_0427 import ( WebhookBranchProtectionRuleDeleted as WebhookBranchProtectionRuleDeleted, ) - from .group_0445 import ( + from .group_0451 import ( WebhookCustomPropertyValuesUpdated as WebhookCustomPropertyValuesUpdated, ) - from .group_0448 import ( + from .group_0454 import ( WebhookDependabotAlertAutoReopened as WebhookDependabotAlertAutoReopened, ) - from .group_0452 import ( + from .group_0458 import ( WebhookDependabotAlertReintroduced as WebhookDependabotAlertReintroduced, ) - from .group_0470 import ( + from .group_0476 import ( WebhookDiscussionEditedPropChanges as WebhookDiscussionEditedPropChanges, ) - from .group_0482 import ( + from .group_0488 import ( WebhookForkPropForkeeMergedLicense as WebhookForkPropForkeeMergedLicense, ) - from .group_0520 import ( + from .group_0526 import ( WebhookIssueCommentEditedPropIssue as WebhookIssueCommentEditedPropIssue, ) - from .group_0533 import ( + from .group_0539 import ( WebhookIssuesClosedPropIssueAllof0 as WebhookIssuesClosedPropIssueAllof0, ) - from .group_0539 import ( + from .group_0545 import ( WebhookIssuesClosedPropIssueAllof1 as WebhookIssuesClosedPropIssueAllof1, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssue as WebhookIssuesDemilestonedPropIssue, ) - from .group_0568 import ( + from .group_0574 import ( WebhookMembershipRemovedPropSender as WebhookMembershipRemovedPropSender, ) - from .group_0586 import ( + from .group_0592 import ( WebhookPackagePublishedPropPackage as WebhookPackagePublishedPropPackage, ) - from .group_0591 import ( + from .group_0597 import ( WebhookPageBuildPropBuildPropError as WebhookPageBuildPropBuildPropError, ) - from .group_0603 import ( + from .group_0609 import ( WebhookProjectCardMovedPropChanges as WebhookProjectCardMovedPropChanges, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabled as WebhookPullRequestAutoMergeEnabled, ) - from .group_0632 import ( + from .group_0641 import ( WebhookPullRequestConvertedToDraft as WebhookPullRequestConvertedToDraft, ) - from .group_0659 import ( + from .group_0668 import ( WebhookPushPropRepositoryPropOwner as WebhookPushPropRepositoryPropOwner, ) - from .group_0673 import ( + from .group_0682 import ( WebhookRepositoryAdvisoryPublished as WebhookRepositoryAdvisoryPublished, ) - from .group_0679 import ( + from .group_0688 import ( WebhookRepositoryEditedPropChanges as WebhookRepositoryEditedPropChanges, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationIssueComment as SecretScanningLocationIssueComment, ) - from .group_0701 import ( + from .group_0710 import ( WebhookSecretScanningAlertReopened as WebhookSecretScanningAlertReopened, ) - from .group_0702 import ( + from .group_0711 import ( WebhookSecretScanningAlertResolved as WebhookSecretScanningAlertResolved, ) - from .group_0750 import ( + from .group_0759 import ( ApplicationsClientIdTokenPatchBody as ApplicationsClientIdTokenPatchBody, ) - from .group_0755 import ( + from .group_0765 import ( GistsGistIdGetResponse403PropBlock as GistsGistIdGetResponse403PropBlock, ) - from .group_0809 import ( + from .group_0826 import ( OrgsOrgInstallationsGetResponse200 as OrgsOrgInstallationsGetResponse200, ) - from .group_0856 import ( + from .group_0873 import ( ProjectsProjectIdDeleteResponse403 as ProjectsProjectIdDeleteResponse403, ) - from .group_0958 import ( + from .group_0905 import ( + ReposOwnerRepoAttestationsPostBody as ReposOwnerRepoAttestationsPostBody, + ) + from .group_0978 import ( ReposOwnerRepoHooksHookIdPatchBody as ReposOwnerRepoHooksHookIdPatchBody, ) - from .group_0988 import ( + from .group_1008 import ( ReposOwnerRepoNotificationsPutBody as ReposOwnerRepoNotificationsPutBody, ) from .group_0011 import ( HookDeliveryPropResponsePropHeaders as HookDeliveryPropResponsePropHeaders, ) - from .group_0090 import ( + from .group_0095 import ( OrganizationProgrammaticAccessGrant as OrganizationProgrammaticAccessGrant, ) - from .group_0109 import ( + from .group_0114 import ( RepositoryRuleOneof14PropParameters as RepositoryRuleOneof14PropParameters, ) - from .group_0109 import ( + from .group_0114 import ( RepositoryRuleOneof16PropParameters as RepositoryRuleOneof16PropParameters, ) - from .group_0112 import ( + from .group_0117 import ( RepositoryRuleOneof15PropParameters as RepositoryRuleOneof15PropParameters, ) - from .group_0112 import ( + from .group_0117 import ( RepositoryRuleRequiredLinearHistory as RepositoryRuleRequiredLinearHistory, ) - from .group_0123 import ( + from .group_0128 import ( RepositoryRuleCommitterEmailPattern as RepositoryRuleCommitterEmailPattern, ) - from .group_0134 import ( + from .group_0139 import ( RepositoryRuleOneof17PropParameters as RepositoryRuleOneof17PropParameters, ) - from .group_0170 import ( + from .group_0175 import ( PendingDeploymentPropReviewersItems as PendingDeploymentPropReviewersItems, ) - from .group_0173 import ( + from .group_0178 import ( WorkflowUsagePropBillablePropUbuntu as WorkflowUsagePropBillablePropUbuntu, ) - from .group_0188 import ( + from .group_0193 import ( ProtectedBranchPropAllowForcePushes as ProtectedBranchPropAllowForcePushes, ) - from .group_0188 import ( + from .group_0193 import ( ProtectedBranchPropAllowForkSyncing as ProtectedBranchPropAllowForkSyncing, ) - from .group_0195 import ( + from .group_0200 import ( CheckSuitePreferencePropPreferences as CheckSuitePreferencePropPreferences, ) - from .group_0206 import ( + from .group_0211 import ( CodeScanningVariantAnalysisRepoTask as CodeScanningVariantAnalysisRepoTask, ) - from .group_0268 import ( + from .group_0273 import ( DemilestonedIssueEventPropMilestone as DemilestonedIssueEventPropMilestone, ) - from .group_0282 import ( + from .group_0287 import ( TimelineCommittedEventPropCommitter as TimelineCommittedEventPropCommitter, ) - from .group_0351 import ( + from .group_0356 import ( RepoSearchResultItemPropPermissions as RepoSearchResultItemPropPermissions, ) - from .group_0392 import ( + from .group_0397 import ( WebhooksMarketplacePurchasePropPlan as WebhooksMarketplacePurchasePropPlan, ) - from .group_0393 import ( + from .group_0398 import ( WebhooksPreviousMarketplacePurchase as WebhooksPreviousMarketplacePurchase, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLabelsItems as WebhooksPullRequest5PropLabelsItems, ) - from .group_0424 import ( + from .group_0430 import ( WebhookCheckRunCompletedFormEncoded as WebhookCheckRunCompletedFormEncoded, ) - from .group_0447 import ( + from .group_0453 import ( WebhookDependabotAlertAutoDismissed as WebhookDependabotAlertAutoDismissed, ) - from .group_0498 import ( + from .group_0504 import ( WebhookIssueCommentCreatedPropIssue as WebhookIssueCommentCreatedPropIssue, ) - from .group_0509 import ( + from .group_0515 import ( WebhookIssueCommentDeletedPropIssue as WebhookIssueCommentDeletedPropIssue, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChanges as WebhookIssuesTransferredPropChanges, ) - from .group_0559 import ( + from .group_0565 import ( WebhookMarketplacePurchaseCancelled as WebhookMarketplacePurchaseCancelled, ) - from .group_0563 import ( + from .group_0569 import ( WebhookMarketplacePurchasePurchased as WebhookMarketplacePurchasePurchased, ) - from .group_0584 import ( + from .group_0590 import ( WebhookRubygemsMetadataPropMetadata as WebhookRubygemsMetadataPropMetadata, ) - from .group_0591 import ( + from .group_0597 import ( WebhookPageBuildPropBuildPropPusher as WebhookPageBuildPropBuildPropPusher, ) - from .group_0602 import ( + from .group_0608 import ( WebhookProjectCardEditedPropChanges as WebhookProjectCardEditedPropChanges, ) - from .group_0629 import ( + from .group_0635 import ( + WebhookProjectsV2StatusUpdateEdited as WebhookProjectsV2StatusUpdateEdited, + ) + from .group_0638 import ( WebhookPullRequestAutoMergeDisabled as WebhookPullRequestAutoMergeDisabled, ) - from .group_0635 import ( + from .group_0644 import ( WebhookPullRequestEditedPropChanges as WebhookPullRequestEditedPropChanges, ) - from .group_0659 import ( + from .group_0668 import ( WebhookPushPropHeadCommitPropAuthor as WebhookPushPropHeadCommitPropAuthor, ) - from .group_0683 import ( + from .group_0692 import ( WebhookRepositoryRenamedPropChanges as WebhookRepositoryRenamedPropChanges, ) - from .group_0703 import ( + from .group_0712 import ( WebhookSecretScanningAlertValidated as WebhookSecretScanningAlertValidated, ) - from .group_0712 import ( + from .group_0721 import ( WebhookSponsorshipEditedPropChanges as WebhookSponsorshipEditedPropChanges, ) - from .group_0714 import ( + from .group_0723 import ( WebhookSponsorshipPendingTierChange as WebhookSponsorshipPendingTierChange, ) - from .group_0747 import ( + from .group_0756 import ( ApplicationsClientIdGrantDeleteBody as ApplicationsClientIdGrantDeleteBody, ) - from .group_0749 import ( + from .group_0758 import ( ApplicationsClientIdTokenDeleteBody as ApplicationsClientIdTokenDeleteBody, ) - from .group_0770 import ( + from .group_0780 import ( OrgsOrgActionsRunnersGetResponse200 as OrgsOrgActionsRunnersGetResponse200, ) - from .group_0777 import ( + from .group_0787 import ( OrgsOrgActionsSecretsGetResponse200 as OrgsOrgActionsSecretsGetResponse200, ) - from .group_0822 import ( + from .group_0839 import ( OrgsOrgPersonalAccessTokensPostBody as OrgsOrgPersonalAccessTokensPostBody, ) - from .group_0845 import ( + from .group_0862 import ( ProjectsColumnsCardsCardIdPatchBody as ProjectsColumnsCardsCardIdPatchBody, ) - from .group_0984 import ( + from .group_1004 import ( ReposOwnerRepoMergeUpstreamPostBody as ReposOwnerRepoMergeUpstreamPostBody, ) - from .group_1044 import ( + from .group_1064 import ( TeamsTeamIdProjectsProjectIdPutBody as TeamsTeamIdProjectsProjectIdPutBody, ) - from .group_1051 import ( + from .group_1071 import ( UserCodespacesSecretsGetResponse200 as UserCodespacesSecretsGetResponse200, ) - from .group_0027 import ( + from .group_0031 import ( DependabotAlertSecurityVulnerability as DependabotAlertSecurityVulnerability, ) - from .group_0060 import ( + from .group_0063 import ( ActionsGetDefaultWorkflowPermissions as ActionsGetDefaultWorkflowPermissions, ) - from .group_0061 import ( + from .group_0064 import ( ActionsSetDefaultWorkflowPermissions as ActionsSetDefaultWorkflowPermissions, ) - from .group_0069 import ( + from .group_0072 import ( CodeScanningAlertInstancePropMessage as CodeScanningAlertInstancePropMessage, ) - from .group_0088 import ( + from .group_0093 import ( PackageVersionPropMetadataPropDocker as PackageVersionPropMetadataPropDocker, ) - from .group_0133 import ( + from .group_0138 import ( RepositoryRuleParamsCodeScanningTool as RepositoryRuleParamsCodeScanningTool, ) - from .group_0173 import ( + from .group_0178 import ( WorkflowUsagePropBillablePropWindows as WorkflowUsagePropBillablePropWindows, ) - from .group_0179 import ( + from .group_0184 import ( BranchRestrictionPolicyPropAppsItems as BranchRestrictionPolicyPropAppsItems, ) - from .group_0180 import ( + from .group_0185 import ( BranchProtectionPropAllowForcePushes as BranchProtectionPropAllowForcePushes, ) - from .group_0180 import ( + from .group_0185 import ( BranchProtectionPropAllowForkSyncing as BranchProtectionPropAllowForkSyncing, ) - from .group_0227 import ( + from .group_0232 import ( ContentTreePropEntriesItemsPropLinks as ContentTreePropEntriesItemsPropLinks, ) - from .group_0232 import ( + from .group_0237 import ( FileCommitPropCommitPropParentsItems as FileCommitPropCommitPropParentsItems, ) - from .group_0232 import ( + from .group_0237 import ( FileCommitPropCommitPropVerification as FileCommitPropCommitPropVerification, ) - from .group_0299 import ( + from .group_0304 import ( PullRequestPropHeadPropRepoPropOwner as PullRequestPropHeadPropRepoPropOwner, ) - from .group_0301 import ( + from .group_0306 import ( PullRequestPropBasePropRepoPropOwner as PullRequestPropBasePropRepoPropOwner, ) - from .group_0349 import ( + from .group_0354 import ( IssueSearchResultItemPropLabelsItems as IssueSearchResultItemPropLabelsItems, ) - from .group_0349 import ( + from .group_0354 import ( IssueSearchResultItemPropPullRequest as IssueSearchResultItemPropPullRequest, ) - from .group_0403 import ( + from .group_0408 import ( WebhooksProjectChangesPropArchivedAt as WebhooksProjectChangesPropArchivedAt, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropBasePropRepo as WebhooksPullRequest5PropBasePropRepo, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropBasePropUser as WebhooksPullRequest5PropBasePropUser, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropHeadPropRepo as WebhooksPullRequest5PropHeadPropRepo, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropHeadPropUser as WebhooksPullRequest5PropHeadPropUser, ) - from .group_0435 import ( + from .group_0441 import ( WebhookCodeScanningAlertClosedByUser as WebhookCodeScanningAlertClosedByUser, ) - from .group_0483 import ( + from .group_0489 import ( WebhookForkPropForkeeAllof0PropOwner as WebhookForkPropForkeeAllof0PropOwner, ) - from .group_0485 import ( + from .group_0491 import ( WebhookForkPropForkeeAllof1PropOwner as WebhookForkPropForkeeAllof1PropOwner, ) - from .group_0486 import ( + from .group_0492 import ( WebhookGithubAppAuthorizationRevoked as WebhookGithubAppAuthorizationRevoked, ) - from .group_0491 import ( + from .group_0497 import ( WebhookInstallationRepositoriesAdded as WebhookInstallationRepositoriesAdded, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropUser as WebhookIssuesEditedPropIssuePropUser, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropUser as WebhookIssuesLockedPropIssuePropUser, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropUser as WebhookIssuesOpenedPropIssuePropUser, ) - from .group_0571 import ( + from .group_0577 import ( WebhookMetaDeletedPropHookPropConfig as WebhookMetaDeletedPropHookPropConfig, ) - from .group_0659 import ( + from .group_0633 import ( + WebhookProjectsV2StatusUpdateCreated as WebhookProjectsV2StatusUpdateCreated, + ) + from .group_0634 import ( + WebhookProjectsV2StatusUpdateDeleted as WebhookProjectsV2StatusUpdateDeleted, + ) + from .group_0668 import ( WebhookPushPropRepositoryPropLicense as WebhookPushPropRepositoryPropLicense, ) - from .group_0669 import ( + from .group_0678 import ( WebhookReleasePrereleasedPropRelease as WebhookReleasePrereleasedPropRelease, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationDiscussionBody as SecretScanningLocationDiscussionBody, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropCommitPropCommitter as WebhookStatusPropCommitPropCommitter, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropChangesPropName as WebhookTeamEditedPropChangesPropName, ) - from .group_0783 import ( + from .group_0793 import ( OrgsOrgActionsVariablesNamePatchBody as OrgsOrgActionsVariablesNamePatchBody, ) - from .group_0854 import ( + from .group_0871 import ( ProjectsColumnsColumnIdMovesPostBody as ProjectsColumnsColumnIdMovesPostBody, ) - from .group_0932 import ( + from .group_0952 import ( ReposOwnerRepoContentsPathDeleteBody as ReposOwnerRepoContentsPathDeleteBody, ) - from .group_1032 import ( + from .group_1052 import ( ReposOwnerRepoTagsProtectionPostBody as ReposOwnerRepoTagsProtectionPostBody, ) - from .group_1055 import ( + from .group_1075 import ( UserCodespacesCodespaceNamePatchBody as UserCodespacesCodespaceNamePatchBody, ) - from .group_0025 import ( + from .group_0029 import ( CopilotUsageMetricsPropBreakdownItems as CopilotUsageMetricsPropBreakdownItems, ) - from .group_0050 import ( + from .group_0054 import ( SecurityAndAnalysisPropSecretScanning as SecurityAndAnalysisPropSecretScanning, ) - from .group_0129 import ( + from .group_0076 import ( + CodeSecurityConfigurationRepositories as CodeSecurityConfigurationRepositories, + ) + from .group_0134 import ( RepositoryRuleParamsRestrictedCommits as RepositoryRuleParamsRestrictedCommits, ) - from .group_0131 import ( + from .group_0136 import ( RepositoryRuleWorkflowsPropParameters as RepositoryRuleWorkflowsPropParameters, ) - from .group_0172 import ( + from .group_0177 import ( WorkflowRunUsagePropBillablePropMacos as WorkflowRunUsagePropBillablePropMacos, ) - from .group_0179 import ( + from .group_0184 import ( BranchRestrictionPolicyPropTeamsItems as BranchRestrictionPolicyPropTeamsItems, ) - from .group_0179 import ( + from .group_0184 import ( BranchRestrictionPolicyPropUsersItems as BranchRestrictionPolicyPropUsersItems, ) - from .group_0188 import ( + from .group_0193 import ( ProtectedBranchPropRequiredSignatures as ProtectedBranchPropRequiredSignatures, ) - from .group_0201 import ( + from .group_0206 import ( CodeScanningVariantAnalysisRepository as CodeScanningVariantAnalysisRepository, ) - from .group_0352 import ( + from .group_0357 import ( TopicSearchResultItemPropAliasesItems as TopicSearchResultItemPropAliasesItems, ) - from .group_0352 import ( + from .group_0357 import ( TopicSearchResultItemPropRelatedItems as TopicSearchResultItemPropRelatedItems, ) - from .group_0359 import ( + from .group_0364 import ( GpgKeyPropSubkeysItemsPropEmailsItems as GpgKeyPropSubkeysItemsPropEmailsItems, ) - from .group_0388 import ( + from .group_0393 import ( WebhooksIssuePropMilestonePropCreator as WebhooksIssuePropMilestonePropCreator, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLinksPropHtml as WebhooksPullRequest5PropLinksPropHtml, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLinksPropSelf as WebhooksPullRequest5PropLinksPropSelf, ) - from .group_0414 import ( + from .group_0420 import ( WebhooksSecurityAdvisoryPropCwesItems as WebhooksSecurityAdvisoryPropCwesItems, ) - from .group_0430 import ( + from .group_0436 import ( WebhookCheckRunRerequestedFormEncoded as WebhookCheckRunRerequestedFormEncoded, ) - from .group_0497 import ( + from .group_0503 import ( WebhookIssueCommentCreatedPropComment as WebhookIssueCommentCreatedPropComment, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropUser as WebhookIssuesDeletedPropIssuePropUser, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropUser as WebhookIssuesLabeledPropIssuePropUser, ) - from .group_0558 import ( + from .group_0564 import ( WebhookLabelEditedPropChangesPropName as WebhookLabelEditedPropChangesPropName, ) - from .group_0583 import ( + from .group_0589 import ( WebhookOrganizationRenamedPropChanges as WebhookOrganizationRenamedPropChanges, ) - from .group_0609 import ( + from .group_0615 import ( WebhookProjectColumnEditedPropChanges as WebhookProjectColumnEditedPropChanges, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEdited as WebhookPullRequestReviewCommentEdited, ) - from .group_0659 import ( + from .group_0668 import ( WebhookPushPropCommitsItemsPropAuthor as WebhookPushPropCommitsItemsPropAuthor, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationDiscussionTitle as SecretScanningLocationDiscussionTitle, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationPullRequestBody as SecretScanningLocationPullRequestBody, ) - from .group_0708 import ( + from .group_0717 import ( WebhookSecurityAndAnalysisPropChanges as WebhookSecurityAndAnalysisPropChanges, ) - from .group_0713 import ( + from .group_0722 import ( WebhookSponsorshipPendingCancellation as WebhookSponsorshipPendingCancellation, ) - from .group_0758 import ( + from .group_0768 import ( GistsGistIdCommentsCommentIdPatchBody as GistsGistIdCommentsCommentIdPatchBody, ) - from .group_0781 import ( + from .group_0791 import ( OrgsOrgActionsVariablesGetResponse200 as OrgsOrgActionsVariablesGetResponse200, ) - from .group_0807 import ( + from .group_0824 import ( OrgsOrgHooksHookIdPatchBodyPropConfig as OrgsOrgHooksHookIdPatchBodyPropConfig, ) - from .group_0906 import ( + from .group_0926 import ( ReposOwnerRepoCheckRunsPostBodyOneof0 as ReposOwnerRepoCheckRunsPostBodyOneof0, ) - from .group_0907 import ( + from .group_0927 import ( ReposOwnerRepoCheckRunsPostBodyOneof1 as ReposOwnerRepoCheckRunsPostBodyOneof1, ) - from .group_0957 import ( + from .group_0977 import ( ReposOwnerRepoHooksPostBodyPropConfig as ReposOwnerRepoHooksPostBodyPropConfig, ) - from .group_0996 import ( + from .group_1016 import ( ReposOwnerRepoPagesPostBodyPropSource as ReposOwnerRepoPagesPostBodyPropSource, ) - from .group_1043 import ( + from .group_1063 import ( TeamsTeamIdMembershipsUsernamePutBody as TeamsTeamIdMembershipsUsernamePutBody, ) - from .group_0087 import ( + from .group_0075 import ( + CodeSecurityDefaultConfigurationsItems as CodeSecurityDefaultConfigurationsItems, + ) + from .group_0090 import ( OrgsOrgOrganizationRolesGetResponse200 as OrgsOrgOrganizationRolesGetResponse200, ) - from .group_0099 import ( + from .group_0104 import ( RepositoryRulesetConditionsPropRefName as RepositoryRulesetConditionsPropRefName, ) - from .group_0121 import ( + from .group_0126 import ( RepositoryRuleCommitAuthorEmailPattern as RepositoryRuleCommitAuthorEmailPattern, ) - from .group_0139 import ( + from .group_0144 import ( RepositoryAdvisoryPropIdentifiersItems as RepositoryAdvisoryPropIdentifiersItems, ) - from .group_0157 import ( + from .group_0162 import ( ActionsCacheListPropActionsCachesItems as ActionsCacheListPropActionsCachesItems, ) - from .group_0172 import ( + from .group_0177 import ( WorkflowRunUsagePropBillablePropUbuntu as WorkflowRunUsagePropBillablePropUbuntu, ) - from .group_0180 import ( + from .group_0185 import ( BranchProtectionPropRequiredSignatures as BranchProtectionPropRequiredSignatures, ) - from .group_0209 import ( + from .group_0214 import ( CodeScanningDefaultSetupUpdateResponse as CodeScanningDefaultSetupUpdateResponse, ) - from .group_0281 import ( + from .group_0286 import ( TimelineCrossReferencedEventPropSource as TimelineCrossReferencedEventPropSource, ) - from .group_0282 import ( + from .group_0287 import ( TimelineCommittedEventPropParentsItems as TimelineCommittedEventPropParentsItems, ) - from .group_0282 import ( + from .group_0287 import ( TimelineCommittedEventPropVerification as TimelineCommittedEventPropVerification, ) - from .group_0283 import ( + from .group_0288 import ( TimelineReviewedEventPropLinksPropHtml as TimelineReviewedEventPropLinksPropHtml, ) - from .group_0299 import ( + from .group_0304 import ( PullRequestPropHeadPropRepoPropLicense as PullRequestPropHeadPropRepoPropLicense, ) - from .group_0347 import ( + from .group_0352 import ( CommitSearchResultItemPropParentsItems as CommitSearchResultItemPropParentsItems, ) - from .group_0370 import ( + from .group_0375 import ( RepositoryWebhooksPropCustomProperties as RepositoryWebhooksPropCustomProperties, ) - from .group_0374 import ( + from .group_0379 import ( CheckRunWithSimpleCheckSuitePropOutput as CheckRunWithSimpleCheckSuitePropOutput, ) - from .group_0388 import ( + from .group_0393 import ( WebhooksIssuePropPerformedViaGithubApp as WebhooksIssuePropPerformedViaGithubApp, ) - from .group_0390 import ( + from .group_0395 import ( WebhooksIssue2PropMilestonePropCreator as WebhooksIssue2PropMilestonePropCreator, ) - from .group_0392 import ( + from .group_0397 import ( WebhooksMarketplacePurchasePropAccount as WebhooksMarketplacePurchasePropAccount, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropAssigneesItems as WebhooksPullRequest5PropAssigneesItems, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLinksPropIssue as WebhooksPullRequest5PropLinksPropIssue, ) - from .group_0408 import ( + from .group_0414 import ( WebhooksReviewCommentPropLinksPropHtml as WebhooksReviewCommentPropLinksPropHtml, ) - from .group_0408 import ( + from .group_0414 import ( WebhooksReviewCommentPropLinksPropSelf as WebhooksReviewCommentPropLinksPropSelf, ) - from .group_0409 import ( + from .group_0415 import ( WebhooksReviewPropLinksPropPullRequest as WebhooksReviewPropLinksPropPullRequest, ) - from .group_0437 import ( + from .group_0443 import ( WebhookCodeScanningAlertFixedPropAlert as WebhookCodeScanningAlertFixedPropAlert, ) - from .group_0439 import ( + from .group_0445 import ( WebhookCodeScanningAlertReopenedByUser as WebhookCodeScanningAlertReopenedByUser, ) - from .group_0440 import ( + from .group_0446 import ( WebhookCommitCommentCreatedPropComment as WebhookCommitCommentCreatedPropComment, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropDeployment as WebhookDeploymentCreatedPropDeployment, ) - from .group_0483 import ( + from .group_0489 import ( WebhookForkPropForkeeAllof0PropLicense as WebhookForkPropForkeeAllof0PropLicense, ) - from .group_0485 import ( + from .group_0491 import ( WebhookForkPropForkeeAllof1PropLicense as WebhookForkPropForkeeAllof1PropLicense, ) - from .group_0492 import ( + from .group_0498 import ( WebhookInstallationRepositoriesRemoved as WebhookInstallationRepositoriesRemoved, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssuesClosedPropIssueMergedUser as WebhookIssuesClosedPropIssueMergedUser, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropChangesPropBody as WebhookIssuesEditedPropChangesPropBody, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropUser as WebhookIssuesReopenedPropIssuePropUser, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropUser as WebhookIssuesUnlockedPropIssuePropUser, ) - from .group_0558 import ( + from .group_0564 import ( WebhookLabelEditedPropChangesPropColor as WebhookLabelEditedPropChangesPropColor, ) - from .group_0584 import ( + from .group_0590 import ( WebhookRubygemsMetadataPropVersionInfo as WebhookRubygemsMetadataPropVersionInfo, ) - from .group_0599 import ( + from .group_0605 import ( WebhookProjectCardConvertedPropChanges as WebhookProjectCardConvertedPropChanges, ) - from .group_0603 import ( + from .group_0609 import ( WebhookProjectCardMovedPropProjectCard as WebhookProjectCardMovedPropProjectCard, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreated as WebhookPullRequestReviewCommentCreated, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeleted as WebhookPullRequestReviewCommentDeleted, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolved as WebhookPullRequestReviewThreadResolved, ) - from .group_0659 import ( + from .group_0668 import ( WebhookPushPropHeadCommitPropCommitter as WebhookPushPropHeadCommitPropCommitter, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationPullRequestTitle as SecretScanningLocationPullRequestTitle, ) - from .group_0760 import ( + from .group_0770 import ( InstallationRepositoriesGetResponse200 as InstallationRepositoriesGetResponse200, ) - from .group_0778 import ( + from .group_0788 import ( OrgsOrgActionsSecretsSecretNamePutBody as OrgsOrgActionsSecretsSecretNamePutBody, ) - from .group_0790 import ( + from .group_0806 import ( OrgsOrgCodespacesSecretsGetResponse200 as OrgsOrgCodespacesSecretsGetResponse200, ) - from .group_0802 import ( + from .group_0819 import ( OrgsOrgDependabotSecretsGetResponse200 as OrgsOrgDependabotSecretsGetResponse200, ) - from .group_0883 import ( + from .group_0900 import ( ReposOwnerRepoActionsVariablesPostBody as ReposOwnerRepoActionsVariablesPostBody, ) - from .group_0919 import ( + from .group_0939 import ( ReposOwnerRepoCodespacesGetResponse200 as ReposOwnerRepoCodespacesGetResponse200, ) - from .group_0999 import ( + from .group_1019 import ( ReposOwnerRepoPagesDeploymentsPostBody as ReposOwnerRepoPagesDeploymentsPostBody, ) - from .group_1006 import ( + from .group_1026 import ( ReposOwnerRepoPullsPullNumberPatchBody as ReposOwnerRepoPullsPullNumberPatchBody, ) - from .group_1028 import ( + from .group_1048 import ( ReposOwnerRepoRulesetsRulesetIdPutBody as ReposOwnerRepoRulesetsRulesetIdPutBody, ) - from .group_1052 import ( + from .group_1072 import ( UserCodespacesSecretsSecretNamePutBody as UserCodespacesSecretsSecretNamePutBody, ) - from .group_0028 import ( + from .group_0032 import ( DependabotAlertSecurityAdvisoryPropCvss as DependabotAlertSecurityAdvisoryPropCvss, ) - from .group_0050 import ( + from .group_0054 import ( SecurityAndAnalysisPropAdvancedSecurity as SecurityAndAnalysisPropAdvancedSecurity, ) - from .group_0088 import ( + from .group_0093 import ( PackageVersionPropMetadataPropContainer as PackageVersionPropMetadataPropContainer, ) - from .group_0116 import ( + from .group_0121 import ( RepositoryRulePullRequestPropParameters as RepositoryRulePullRequestPropParameters, ) - from .group_0172 import ( + from .group_0177 import ( WorkflowRunUsagePropBillablePropWindows as WorkflowRunUsagePropBillablePropWindows, ) - from .group_0274 import ( + from .group_0279 import ( AddedToProjectIssueEventPropProjectCard as AddedToProjectIssueEventPropProjectCard, ) - from .group_0390 import ( + from .group_0395 import ( WebhooksIssue2PropPerformedViaGithubApp as WebhooksIssue2PropPerformedViaGithubApp, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRun as WebhookDeploymentCreatedPropWorkflowRun, ) - from .group_0476 import ( + from .group_0482 import ( WebhookDiscussionTransferredPropChanges as WebhookDiscussionTransferredPropChanges, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropChangesPropTitle as WebhookIssuesEditedPropChangesPropTitle, ) - from .group_0561 import ( + from .group_0567 import ( WebhookMarketplacePurchasePendingChange as WebhookMarketplacePurchasePendingChange, ) - from .group_0595 import ( + from .group_0601 import ( WebhookPersonalAccessTokenRequestDenied as WebhookPersonalAccessTokenRequestDenied, ) - from .group_0613 import ( + from .group_0619 import ( WebhookProjectEditedPropChangesPropBody as WebhookProjectEditedPropChangesPropBody, ) - from .group_0613 import ( + from .group_0619 import ( WebhookProjectEditedPropChangesPropName as WebhookProjectEditedPropChangesPropName, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequest as WebhookPullRequestLockedPropPullRequest, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0 as WebhookPullRequestReviewRequestedOneof0, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1 as WebhookPullRequestReviewRequestedOneof1, ) - from .group_0668 import ( + from .group_0677 import ( WebhookReleaseEditedPropChangesPropBody as WebhookReleaseEditedPropChangesPropBody, ) - from .group_0668 import ( + from .group_0677 import ( WebhookReleaseEditedPropChangesPropName as WebhookReleaseEditedPropChangesPropName, ) - from .group_0692 import ( + from .group_0701 import ( WebhookRepositoryTransferredPropChanges as WebhookRepositoryTransferredPropChanges, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationDiscussionComment as SecretScanningLocationDiscussionComment, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationPullRequestReview as SecretScanningLocationPullRequestReview, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropCommitPropParentsItems as WebhookStatusPropCommitPropParentsItems, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropChangesPropPrivacy as WebhookTeamEditedPropChangesPropPrivacy, ) - from .group_0737 import ( + from .group_0746 import ( WebhookWorkflowJobQueuedPropWorkflowJob as WebhookWorkflowJobQueuedPropWorkflowJob, ) - from .group_0751 import ( + from .group_0760 import ( ApplicationsClientIdTokenScopedPostBody as ApplicationsClientIdTokenScopedPostBody, ) - from .group_0816 import ( + from .group_0833 import ( OrgsOrgOrganizationRolesRoleIdPatchBody as OrgsOrgOrganizationRolesRoleIdPatchBody, ) - from .group_0833 import ( + from .group_0850 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsPostBody, ) - from .group_0846 import ( + from .group_0863 import ( ProjectsColumnsCardsCardIdMovesPostBody as ProjectsColumnsCardsCardIdMovesPostBody, ) - from .group_0868 import ( + from .group_0885 import ( ReposOwnerRepoActionsPermissionsPutBody as ReposOwnerRepoActionsPermissionsPutBody, ) - from .group_0873 import ( + from .group_0890 import ( ReposOwnerRepoActionsRunsGetResponse200 as ReposOwnerRepoActionsRunsGetResponse200, ) - from .group_0955 import ( + from .group_0975 import ( ReposOwnerRepoGitTagsPostBodyPropTagger as ReposOwnerRepoGitTagsPostBodyPropTagger, ) - from .group_1002 import ( + from .group_1022 import ( ReposOwnerRepoPropertiesValuesPatchBody as ReposOwnerRepoPropertiesValuesPatchBody, ) - from .group_0077 import ( - OrgsOrgCopilotBillingSeatsGetResponse200 as OrgsOrgCopilotBillingSeatsGetResponse200, + from .group_1093 import ( + SigstoreBundle0PropVerificationMaterial as SigstoreBundle0PropVerificationMaterial, ) - from .group_0133 import ( + from .group_0138 import ( RepositoryRuleCodeScanningPropParameters as RepositoryRuleCodeScanningPropParameters, ) - from .group_0188 import ( + from .group_0193 import ( ProtectedBranchPropRequiredLinearHistory as ProtectedBranchPropRequiredLinearHistory, ) - from .group_0244 import ( + from .group_0249 import ( ReposOwnerRepoEnvironmentsGetResponse200 as ReposOwnerRepoEnvironmentsGetResponse200, ) - from .group_0329 import ( + from .group_0334 import ( RepositoryAdvisoryCreatePropCreditsItems as RepositoryAdvisoryCreatePropCreditsItems, ) - from .group_0331 import ( + from .group_0336 import ( RepositoryAdvisoryUpdatePropCreditsItems as RepositoryAdvisoryUpdatePropCreditsItems, ) - from .group_0348 import ( + from .group_0353 import ( CommitSearchResultItemPropCommitPropTree as CommitSearchResultItemPropCommitPropTree, ) - from .group_0357 import ( + from .group_0362 import ( CodespaceWithFullRepositoryPropGitStatus as CodespaceWithFullRepositoryPropGitStatus, ) - from .group_0370 import ( + from .group_0375 import ( RepositoryWebhooksPropTemplateRepository as RepositoryWebhooksPropTemplateRepository, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLinksPropCommits as WebhooksPullRequest5PropLinksPropCommits, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuite as WebhookCheckSuiteCompletedPropCheckSuite, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuite as WebhookCheckSuiteRequestedPropCheckSuite, ) - from .group_0434 import ( + from .group_0440 import ( WebhookCodeScanningAlertAppearedInBranch as WebhookCodeScanningAlertAppearedInBranch, ) - from .group_0436 import ( + from .group_0442 import ( WebhookCodeScanningAlertCreatedPropAlert as WebhookCodeScanningAlertCreatedPropAlert, ) - from .group_0457 import ( + from .group_0463 import ( WebhookDeploymentProtectionRuleRequested as WebhookDeploymentProtectionRuleRequested, ) - from .group_0521 import ( + from .group_0527 import ( WebhookIssueCommentEditedPropIssueAllof0 as WebhookIssueCommentEditedPropIssueAllof0, ) - from .group_0527 import ( + from .group_0533 import ( WebhookIssueCommentEditedPropIssueAllof1 as WebhookIssueCommentEditedPropIssueAllof1, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssuesClosedPropIssueMergedLabels as WebhookIssuesClosedPropIssueMergedLabels, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropAssignee as WebhookIssuesEditedPropIssuePropAssignee, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropAssignee as WebhookIssuesLockedPropIssuePropAssignee, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropUser as WebhookIssuesMilestonedPropIssuePropUser, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropAssignee as WebhookIssuesOpenedPropIssuePropAssignee, ) - from .group_0594 import ( + from .group_0600 import ( WebhookPersonalAccessTokenRequestCreated as WebhookPersonalAccessTokenRequestCreated, ) - from .group_0601 import ( + from .group_0607 import ( WebhookProjectCardDeletedPropProjectCard as WebhookProjectCardDeletedPropProjectCard, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequest as WebhookPullRequestLabeledPropPullRequest, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolved as WebhookPullRequestReviewThreadUnresolved, ) - from .group_0659 import ( + from .group_0668 import ( WebhookPushPropCommitsItemsPropCommitter as WebhookPushPropCommitsItemsPropCommitter, ) - from .group_0659 import ( + from .group_0668 import ( WebhookPushPropRepositoryPropPermissions as WebhookPushPropRepositoryPropPermissions, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationPullRequestComment as SecretScanningLocationPullRequestComment, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropBranchesItemsPropCommit as WebhookStatusPropBranchesItemsPropCommit, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropRepositoryPropOwner as WebhookTeamEditedPropRepositoryPropOwner, ) - from .group_0738 import ( + from .group_0747 import ( WebhookWorkflowJobWaitingPropWorkflowJob as WebhookWorkflowJobWaitingPropWorkflowJob, ) - from .group_0823 import ( + from .group_0810 import ( + OrgsOrgCopilotBillingSeatsGetResponse200 as OrgsOrgCopilotBillingSeatsGetResponse200, + ) + from .group_0840 import ( OrgsOrgPersonalAccessTokensPatIdPostBody as OrgsOrgPersonalAccessTokensPatIdPostBody, ) - from .group_0828 import ( + from .group_0845 import ( OrgsOrgReposPostBodyPropCustomProperties as OrgsOrgReposPostBodyPropCustomProperties, ) - from .group_0843 import ( + from .group_0860 import ( OrgsOrgSecurityProductEnablementPostBody as OrgsOrgSecurityProductEnablementPostBody, ) - from .group_0918 import ( + from .group_0938 import ( ReposOwnerRepoCodeScanningSarifsPostBody as ReposOwnerRepoCodeScanningSarifsPostBody, ) - from .group_0927 import ( + from .group_0947 import ( ReposOwnerRepoCommentsCommentIdPatchBody as ReposOwnerRepoCommentsCommentIdPatchBody, ) - from .group_0938 import ( + from .group_0958 import ( ReposOwnerRepoDeploymentsPostResponse202 as ReposOwnerRepoDeploymentsPostResponse202, ) - from .group_0959 import ( + from .group_0979 import ( ReposOwnerRepoHooksHookIdConfigPatchBody as ReposOwnerRepoHooksHookIdConfigPatchBody, ) - from .group_0969 import ( + from .group_0989 import ( ReposOwnerRepoIssuesIssueNumberPatchBody as ReposOwnerRepoIssuesIssueNumberPatchBody, ) - from .group_1025 import ( + from .group_1045 import ( ReposOwnerRepoReleasesReleaseIdPatchBody as ReposOwnerRepoReleasesReleaseIdPatchBody, ) - from .group_0131 import ( + from .group_0136 import ( RepositoryRuleParamsWorkflowFileReference as RepositoryRuleParamsWorkflowFileReference, ) - from .group_0167 import ( + from .group_0172 import ( EnvironmentApprovalsPropEnvironmentsItems as EnvironmentApprovalsPropEnvironmentsItems, ) - from .group_0180 import ( + from .group_0185 import ( BranchProtectionPropRequiredLinearHistory as BranchProtectionPropRequiredLinearHistory, ) - from .group_0213 import ( + from .group_0218 import ( CodespacesPermissionsCheckForDevcontainer as CodespacesPermissionsCheckForDevcontainer, ) - from .group_0244 import ( + from .group_0249 import ( EnvironmentPropProtectionRulesItemsAnyof0 as EnvironmentPropProtectionRulesItemsAnyof0, ) - from .group_0244 import ( + from .group_0249 import ( EnvironmentPropProtectionRulesItemsAnyof2 as EnvironmentPropProtectionRulesItemsAnyof2, ) - from .group_0245 import ( + from .group_0250 import ( EnvironmentPropProtectionRulesItemsAnyof1 as EnvironmentPropProtectionRulesItemsAnyof1, ) - from .group_0247 import ( + from .group_0252 import ( DeploymentBranchPolicyNamePatternWithType as DeploymentBranchPolicyNamePatternWithType, ) - from .group_0284 import ( + from .group_0289 import ( PullRequestReviewCommentPropLinksPropHtml as PullRequestReviewCommentPropLinksPropHtml, ) - from .group_0284 import ( + from .group_0289 import ( PullRequestReviewCommentPropLinksPropSelf as PullRequestReviewCommentPropLinksPropSelf, ) - from .group_0305 import ( + from .group_0310 import ( PullRequestReviewPropLinksPropPullRequest as PullRequestReviewPropLinksPropPullRequest, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLinksPropComments as WebhooksPullRequest5PropLinksPropComments, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLinksPropStatuses as WebhooksPullRequest5PropLinksPropStatuses, ) - from .group_0428 import ( + from .group_0434 import ( WebhookCheckRunRequestedActionFormEncoded as WebhookCheckRunRequestedActionFormEncoded, ) - from .group_0438 import ( + from .group_0444 import ( WebhookCodeScanningAlertReopenedPropAlert as WebhookCodeScanningAlertReopenedPropAlert, ) - from .group_0467 import ( + from .group_0473 import ( WebhookDiscussionCommentEditedPropChanges as WebhookDiscussionCommentEditedPropChanges, ) - from .group_0490 import ( + from .group_0496 import ( WebhookInstallationNewPermissionsAccepted as WebhookInstallationNewPermissionsAccepted, ) - from .group_0499 import ( + from .group_0505 import ( WebhookIssueCommentCreatedPropIssueAllof0 as WebhookIssueCommentCreatedPropIssueAllof0, ) - from .group_0505 import ( + from .group_0511 import ( WebhookIssueCommentCreatedPropIssueAllof1 as WebhookIssueCommentCreatedPropIssueAllof1, ) - from .group_0510 import ( + from .group_0516 import ( WebhookIssueCommentDeletedPropIssueAllof0 as WebhookIssueCommentDeletedPropIssueAllof0, ) - from .group_0516 import ( + from .group_0522 import ( WebhookIssueCommentDeletedPropIssueAllof1 as WebhookIssueCommentDeletedPropIssueAllof1, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropAssignee as WebhookIssuesDeletedPropIssuePropAssignee, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropMilestone as WebhookIssuesEditedPropIssuePropMilestone, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropReactions as WebhookIssuesEditedPropIssuePropReactions, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropAssignee as WebhookIssuesLabeledPropIssuePropAssignee, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropMilestone as WebhookIssuesLockedPropIssuePropMilestone, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropReactions as WebhookIssuesLockedPropIssuePropReactions, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropMilestone as WebhookIssuesOpenedPropIssuePropMilestone, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropReactions as WebhookIssuesOpenedPropIssuePropReactions, ) - from .group_0564 import ( + from .group_0570 import ( WebhookMemberAddedPropChangesPropRoleName as WebhookMemberAddedPropChangesPropRoleName, ) - from .group_0589 import ( + from .group_0595 import ( WebhookPackageUpdatedPropPackagePropOwner as WebhookPackageUpdatedPropPackagePropOwner, ) - from .group_0592 import ( + from .group_0598 import ( WebhookPersonalAccessTokenRequestApproved as WebhookPersonalAccessTokenRequestApproved, ) - from .group_0618 import ( + from .group_0624 import ( WebhookProjectsV2ProjectEditedPropChanges as WebhookProjectsV2ProjectEditedPropChanges, ) - from .group_0620 import ( + from .group_0626 import ( WebhookProjectsV2ItemConvertedPropChanges as WebhookProjectsV2ItemConvertedPropChanges, ) - from .group_0624 import ( + from .group_0630 import ( WebhookProjectsV2ItemReorderedPropChanges as WebhookProjectsV2ItemReorderedPropChanges, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequest as WebhookPullRequestAssignedPropPullRequest, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequest as WebhookPullRequestDequeuedPropPullRequest, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequest as WebhookPullRequestEnqueuedPropPullRequest, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropChanges as WebhookPullRequestReviewEditedPropChanges, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequest as WebhookPullRequestUnlockedPropPullRequest, ) - from .group_0687 import ( + from .group_0696 import ( WebhookRepositoryRulesetEditedPropChanges as WebhookRepositoryRulesetEditedPropChanges, ) - from .group_0694 import ( + from .group_0703 import ( WebhookRepositoryVulnerabilityAlertCreate as WebhookRepositoryVulnerabilityAlertCreate, ) - from .group_0696 import ( + from .group_0705 import ( WebhookRepositoryVulnerabilityAlertReopen as WebhookRepositoryVulnerabilityAlertReopen, ) - from .group_0699 import ( + from .group_0708 import ( WebhookSecretScanningAlertLocationCreated as WebhookSecretScanningAlertLocationCreated, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropCommitPropCommitPropTree as WebhookStatusPropCommitPropCommitPropTree, ) - from .group_0725 import ( + from .group_0734 import ( WebhookTeamCreatedPropRepositoryPropOwner as WebhookTeamCreatedPropRepositoryPropOwner, ) - from .group_0726 import ( + from .group_0735 import ( WebhookTeamDeletedPropRepositoryPropOwner as WebhookTeamDeletedPropRepositoryPropOwner, ) - from .group_0791 import ( + from .group_0797 import ( + OrgsOrgCodeSecurityConfigurationsPostBody as OrgsOrgCodeSecurityConfigurationsPostBody, + ) + from .group_0807 import ( OrgsOrgCodespacesSecretsSecretNamePutBody as OrgsOrgCodespacesSecretsSecretNamePutBody, ) - from .group_0803 import ( + from .group_0820 import ( OrgsOrgDependabotSecretsSecretNamePutBody as OrgsOrgDependabotSecretsSecretNamePutBody, ) - from .group_0842 import ( + from .group_0859 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody, ) - from .group_0905 import ( + from .group_0906 import ( + ReposOwnerRepoAttestationsPostResponse201 as ReposOwnerRepoAttestationsPostResponse201, + ) + from .group_0925 import ( ReposOwnerRepoCheckRunsPostBodyPropOutput as ReposOwnerRepoCheckRunsPostBodyPropOutput, ) - from .group_0923 import ( + from .group_0943 import ( ReposOwnerRepoCodespacesNewGetResponse200 as ReposOwnerRepoCodespacesNewGetResponse200, ) - from .group_0989 import ( + from .group_1009 import ( ReposOwnerRepoNotificationsPutResponse202 as ReposOwnerRepoNotificationsPutResponse202, ) - from .group_1010 import ( + from .group_1030 import ( ReposOwnerRepoPullsPullNumberMergePutBody as ReposOwnerRepoPullsPullNumberMergePutBody, ) - from .group_1064 import ( + from .group_1084 import ( UserInteractionLimitsGetResponse200Anyof1 as UserInteractionLimitsGetResponse200Anyof1, ) - from .group_0048 import ( + from .group_0052 import ( MarketplacePurchasePropMarketplacePurchase as MarketplacePurchasePropMarketplacePurchase, ) - from .group_0089 import ( + from .group_0094 import ( OrganizationProgrammaticAccessGrantRequest as OrganizationProgrammaticAccessGrantRequest, ) - from .group_0128 import ( + from .group_0133 import ( RepositoryRuleTagNamePatternPropParameters as RepositoryRuleTagNamePatternPropParameters, ) - from .group_0139 import ( + from .group_0144 import ( RepositoryAdvisoryVulnerabilityPropPackage as RepositoryAdvisoryVulnerabilityPropPackage, ) - from .group_0299 import ( + from .group_0304 import ( PullRequestPropHeadPropRepoPropPermissions as PullRequestPropHeadPropRepoPropPermissions, ) - from .group_0301 import ( + from .group_0306 import ( PullRequestPropBasePropRepoPropPermissions as PullRequestPropBasePropRepoPropPermissions, ) - from .group_0348 import ( + from .group_0353 import ( CommitSearchResultItemPropCommitPropAuthor as CommitSearchResultItemPropCommitPropAuthor, ) - from .group_0410 import ( + from .group_0416 import ( WebhooksReleasePropAssetsItemsPropUploader as WebhooksReleasePropAssetsItemsPropUploader, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuite as WebhookCheckSuiteRerequestedPropCheckSuite, ) - from .group_0443 import ( + from .group_0449 import ( WebhookCustomPropertyDeletedPropDefinition as WebhookCustomPropertyDeletedPropDefinition, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropCheckRun as WebhookDeploymentStatusCreatedPropCheckRun, ) - from .group_0470 import ( + from .group_0476 import ( WebhookDiscussionEditedPropChangesPropBody as WebhookDiscussionEditedPropChangesPropBody, ) - from .group_0484 import ( + from .group_0490 import ( WebhookForkPropForkeeAllof0PropPermissions as WebhookForkPropForkeeAllof0PropPermissions, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssuesClosedPropIssueMergedAssignee as WebhookIssuesClosedPropIssueMergedAssignee, ) - from .group_0533 import ( + from .group_0539 import ( WebhookIssuesClosedPropIssueAllof0PropUser as WebhookIssuesClosedPropIssueAllof0PropUser, ) - from .group_0539 import ( + from .group_0545 import ( WebhookIssuesClosedPropIssueAllof1PropUser as WebhookIssuesClosedPropIssueAllof1PropUser, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropMilestone as WebhookIssuesDeletedPropIssuePropMilestone, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropReactions as WebhookIssuesDeletedPropIssuePropReactions, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropUser as WebhookIssuesDemilestonedPropIssuePropUser, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropMilestone as WebhookIssuesLabeledPropIssuePropMilestone, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropReactions as WebhookIssuesLabeledPropIssuePropReactions, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssue as WebhookIssuesOpenedPropChangesPropOldIssue, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropAssignee as WebhookIssuesReopenedPropIssuePropAssignee, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropAssignee as WebhookIssuesUnlockedPropIssuePropAssignee, ) - from .group_0575 import ( + from .group_0581 import ( WebhookMilestoneEditedPropChangesPropDueOn as WebhookMilestoneEditedPropChangesPropDueOn, ) - from .group_0575 import ( + from .group_0581 import ( WebhookMilestoneEditedPropChangesPropTitle as WebhookMilestoneEditedPropChangesPropTitle, ) - from .group_0593 import ( + from .group_0599 import ( WebhookPersonalAccessTokenRequestCancelled as WebhookPersonalAccessTokenRequestCancelled, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequest as WebhookPullRequestUnlabeledPropPullRequest, ) - from .group_0695 import ( + from .group_0704 import ( WebhookRepositoryVulnerabilityAlertDismiss as WebhookRepositoryVulnerabilityAlertDismiss, ) - from .group_0697 import ( + from .group_0706 import ( WebhookRepositoryVulnerabilityAlertResolve as WebhookRepositoryVulnerabilityAlertResolve, ) - from .group_0724 import ( + from .group_0733 import ( WebhookTeamAddedToRepositoryPropRepository as WebhookTeamAddedToRepositoryPropRepository, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropChangesPropRepository as WebhookTeamEditedPropChangesPropRepository, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropRepositoryPropLicense as WebhookTeamEditedPropRepositoryPropLicense, ) - from .group_0731 import ( + from .group_0740 import ( WebhookWorkflowJobCompletedPropWorkflowJob as WebhookWorkflowJobCompletedPropWorkflowJob, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRun as WebhookWorkflowRunCompletedPropWorkflowRun, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRun as WebhookWorkflowRunRequestedPropWorkflowRun, ) - from .group_0742 import ( + from .group_0751 import ( AppManifestsCodeConversionsPostResponse201 as AppManifestsCodeConversionsPostResponse201, ) - from .group_0774 import ( + from .group_0784 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBody as OrgsOrgActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0794 import ( + from .group_0811 import ( OrgsOrgCopilotBillingSelectedTeamsPostBody as OrgsOrgCopilotBillingSelectedTeamsPostBody, ) - from .group_0798 import ( + from .group_0815 import ( OrgsOrgCopilotBillingSelectedUsersPostBody as OrgsOrgCopilotBillingSelectedUsersPostBody, ) - from .group_0817 import ( + from .group_0834 import ( OrgsOrgOutsideCollaboratorsUsernamePutBody as OrgsOrgOutsideCollaboratorsUsernamePutBody, ) - from .group_0820 import ( + from .group_0837 import ( OrgsOrgPersonalAccessTokenRequestsPostBody as OrgsOrgPersonalAccessTokenRequestsPostBody, ) - from .group_0851 import ( + from .group_0868 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0 as ProjectsColumnsColumnIdCardsPostBodyOneof0, ) - from .group_0852 import ( + from .group_0869 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1 as ProjectsColumnsColumnIdCardsPostBodyOneof1, ) - from .group_0869 import ( + from .group_0886 import ( ReposOwnerRepoActionsRunnersGetResponse200 as ReposOwnerRepoActionsRunnersGetResponse200, ) - from .group_0880 import ( + from .group_0897 import ( ReposOwnerRepoActionsSecretsGetResponse200 as ReposOwnerRepoActionsSecretsGetResponse200, ) - from .group_0904 import ( + from .group_0924 import ( ReposOwnerRepoBranchesBranchRenamePostBody as ReposOwnerRepoBranchesBranchRenamePostBody, ) - from .group_0926 import ( + from .group_0946 import ( ReposOwnerRepoCollaboratorsUsernamePutBody as ReposOwnerRepoCollaboratorsUsernamePutBody, ) - from .group_0952 import ( + from .group_0972 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthor as ReposOwnerRepoGitCommitsPostBodyPropAuthor, ) - from .group_0979 import ( + from .group_0999 import ( ReposOwnerRepoIssuesIssueNumberLockPutBody as ReposOwnerRepoIssuesIssueNumberLockPutBody, ) - from .group_0990 import ( + from .group_1010 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1 as ReposOwnerRepoPagesPutBodyPropSourceAnyof1, ) - from .group_1045 import ( + from .group_1065 import ( TeamsTeamIdProjectsProjectIdPutResponse403 as TeamsTeamIdProjectsProjectIdPutResponse403, ) - from .group_1057 import ( + from .group_1077 import ( UserCodespacesCodespaceNamePublishPostBody as UserCodespacesCodespaceNamePublishPostBody, ) - from .group_0031 import ( + from .group_0035 import ( DependabotAlertWithRepositoryPropDependency as DependabotAlertWithRepositoryPropDependency, ) - from .group_0140 import ( + from .group_0145 import ( ActionsBillingUsagePropMinutesUsedBreakdown as ActionsBillingUsagePropMinutesUsedBreakdown, ) - from .group_0202 import ( + from .group_0207 import ( CodeScanningVariantAnalysisSkippedRepoGroup as CodeScanningVariantAnalysisSkippedRepoGroup, ) - from .group_0276 import ( + from .group_0281 import ( RemovedFromProjectIssueEventPropProjectCard as RemovedFromProjectIssueEventPropProjectCard, ) - from .group_0393 import ( + from .group_0398 import ( WebhooksPreviousMarketplacePurchasePropPlan as WebhooksPreviousMarketplacePurchasePropPlan, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropRequestedTeamsItems as WebhooksPullRequest5PropRequestedTeamsItems, ) - from .group_0411 import ( + from .group_0417 import ( WebhooksRelease1PropAssetsItemsPropUploader as WebhooksRelease1PropAssetsItemsPropUploader, ) - from .group_0414 import ( + from .group_0420 import ( WebhooksSecurityAdvisoryPropReferencesItems as WebhooksSecurityAdvisoryPropReferencesItems, ) - from .group_0419 import ( + from .group_0425 import ( WebhookBranchProtectionConfigurationEnabled as WebhookBranchProtectionConfigurationEnabled, ) - from .group_0463 import ( + from .group_0469 import ( WebhookDiscussionCategoryChangedPropChanges as WebhookDiscussionCategoryChangedPropChanges, ) - from .group_0470 import ( + from .group_0476 import ( WebhookDiscussionEditedPropChangesPropTitle as WebhookDiscussionEditedPropChangesPropTitle, ) - from .group_0494 import ( + from .group_0500 import ( WebhookInstallationTargetRenamedPropAccount as WebhookInstallationTargetRenamedPropAccount, ) - from .group_0494 import ( + from .group_0500 import ( WebhookInstallationTargetRenamedPropChanges as WebhookInstallationTargetRenamedPropChanges, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssuesClosedPropIssueMergedAssignees as WebhookIssuesClosedPropIssueMergedAssignees, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssuesClosedPropIssueMergedReactions as WebhookIssuesClosedPropIssueMergedReactions, ) - from .group_0540 import ( + from .group_0546 import ( WebhookIssuesClosedPropIssueMergedMilestone as WebhookIssuesClosedPropIssueMergedMilestone, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropLabelsItems as WebhookIssuesEditedPropIssuePropLabelsItems, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropPullRequest as WebhookIssuesEditedPropIssuePropPullRequest, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropLabelsItems as WebhookIssuesLockedPropIssuePropLabelsItems, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropPullRequest as WebhookIssuesLockedPropIssuePropPullRequest, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropLabelsItems as WebhookIssuesOpenedPropIssuePropLabelsItems, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropPullRequest as WebhookIssuesOpenedPropIssuePropPullRequest, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropMilestone as WebhookIssuesReopenedPropIssuePropMilestone, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropReactions as WebhookIssuesReopenedPropIssuePropReactions, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropMilestone as WebhookIssuesUnlockedPropIssuePropMilestone, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropReactions as WebhookIssuesUnlockedPropIssuePropReactions, ) - from .group_0564 import ( + from .group_0570 import ( WebhookMemberAddedPropChangesPropPermission as WebhookMemberAddedPropChangesPropPermission, ) - from .group_0586 import ( + from .group_0592 import ( WebhookPackagePublishedPropPackagePropOwner as WebhookPackagePublishedPropPackagePropOwner, ) - from .group_0602 import ( + from .group_0608 import ( WebhookProjectCardEditedPropChangesPropNote as WebhookProjectCardEditedPropChangesPropNote, ) - from .group_0635 import ( + from .group_0644 import ( WebhookPullRequestEditedPropChangesPropBase as WebhookPullRequestEditedPropChangesPropBase, ) - from .group_0635 import ( + from .group_0644 import ( WebhookPullRequestEditedPropChangesPropBody as WebhookPullRequestEditedPropChangesPropBody, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropReview as WebhookPullRequestReviewDismissedPropReview, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequest as WebhookPullRequestUnassignedPropPullRequest, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropCommitPropCommitPropAuthor as WebhookStatusPropCommitPropCommitPropAuthor, ) - from .group_0725 import ( + from .group_0734 import ( WebhookTeamCreatedPropRepositoryPropLicense as WebhookTeamCreatedPropRepositoryPropLicense, ) - from .group_0726 import ( + from .group_0735 import ( WebhookTeamDeletedPropRepositoryPropLicense as WebhookTeamDeletedPropRepositoryPropLicense, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropChangesPropDescription as WebhookTeamEditedPropChangesPropDescription, ) - from .group_0734 import ( + from .group_0743 import ( WebhookWorkflowJobInProgressPropWorkflowJob as WebhookWorkflowJobInProgressPropWorkflowJob, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRun as WebhookWorkflowRunInProgressPropWorkflowRun, ) - from .group_0775 import ( + from .group_0785 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBody as OrgsOrgActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0844 import ( + from .group_0861 import ( ProjectsColumnsCardsCardIdDeleteResponse403 as ProjectsColumnsCardsCardIdDeleteResponse403, ) - from .group_0853 import ( + from .group_0870 import ( ProjectsColumnsColumnIdCardsPostResponse503 as ProjectsColumnsColumnIdCardsPostResponse503, ) - from .group_0855 import ( + from .group_0872 import ( ProjectsColumnsColumnIdMovesPostResponse201 as ProjectsColumnsColumnIdMovesPostResponse201, ) - from .group_0864 import ( + from .group_0881 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBody as ReposOwnerRepoActionsJobsJobIdRerunPostBody, ) - from .group_0878 import ( + from .group_0895 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBody as ReposOwnerRepoActionsRunsRunIdRerunPostBody, ) - from .group_0884 import ( + from .group_0901 import ( ReposOwnerRepoActionsVariablesNamePatchBody as ReposOwnerRepoActionsVariablesNamePatchBody, ) - from .group_0931 import ( + from .group_0951 import ( ReposOwnerRepoContentsPathPutBodyPropAuthor as ReposOwnerRepoContentsPathPutBodyPropAuthor, ) - from .group_0956 import ( + from .group_0976 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItems as ReposOwnerRepoGitTreesPostBodyPropTreeItems, ) - from .group_1024 import ( + from .group_1044 import ( ReposOwnerRepoReleasesGenerateNotesPostBody as ReposOwnerRepoReleasesGenerateNotesPostBody, ) - from .group_1050 import ( + from .group_1070 import ( UserCodespacesPostBodyOneof1PropPullRequest as UserCodespacesPostBodyOneof1PropPullRequest, ) - from .group_0028 import ( + from .group_0032 import ( DependabotAlertSecurityAdvisoryPropCwesItems as DependabotAlertSecurityAdvisoryPropCwesItems, ) - from .group_0118 import ( + from .group_0123 import ( RepositoryRuleParamsStatusCheckConfiguration as RepositoryRuleParamsStatusCheckConfiguration, ) - from .group_0272 import ( + from .group_0277 import ( ReviewDismissedIssueEventPropDismissedReview as ReviewDismissedIssueEventPropDismissedReview, ) - from .group_0345 import ( + from .group_0350 import ( SearchResultTextMatchesItemsPropMatchesItems as SearchResultTextMatchesItemsPropMatchesItems, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropMilestonePropCreator as WebhooksPullRequest5PropMilestonePropCreator, ) - from .group_0414 import ( + from .group_0420 import ( WebhooksSecurityAdvisoryPropIdentifiersItems as WebhooksSecurityAdvisoryPropIdentifiersItems, ) - from .group_0418 import ( + from .group_0424 import ( WebhookBranchProtectionConfigurationDisabled as WebhookBranchProtectionConfigurationDisabled, ) - from .group_0422 import ( + from .group_0428 import ( WebhookBranchProtectionRuleEditedPropChanges as WebhookBranchProtectionRuleEditedPropChanges, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeployment as WebhookDeploymentStatusCreatedPropDeployment, ) - from .group_0520 import ( + from .group_0526 import ( WebhookIssueCommentEditedPropIssueMergedUser as WebhookIssueCommentEditedPropIssueMergedUser, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropLabelsItems as WebhookIssuesDeletedPropIssuePropLabelsItems, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropPullRequest as WebhookIssuesDeletedPropIssuePropPullRequest, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropLabelsItems as WebhookIssuesLabeledPropIssuePropLabelsItems, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropPullRequest as WebhookIssuesLabeledPropIssuePropPullRequest, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropAssignee as WebhookIssuesMilestonedPropIssuePropAssignee, ) - from .group_0558 import ( + from .group_0564 import ( WebhookLabelEditedPropChangesPropDescription as WebhookLabelEditedPropChangesPropDescription, ) - from .group_0565 import ( + from .group_0571 import ( WebhookMemberEditedPropChangesPropPermission as WebhookMemberEditedPropChangesPropPermission, ) - from .group_0584 import ( + from .group_0590 import ( WebhookRubygemsMetadataPropDependenciesItems as WebhookRubygemsMetadataPropDependenciesItems, ) - from .group_0589 import ( + from .group_0595 import ( WebhookPackageUpdatedPropPackagePropRegistry as WebhookPackageUpdatedPropPackagePropRegistry, ) - from .group_0604 import ( + from .group_0610 import ( WebhookProjectCardMovedPropProjectCardAllof0 as WebhookProjectCardMovedPropProjectCardAllof0, ) - from .group_0605 import ( + from .group_0611 import ( WebhookProjectCardMovedPropProjectCardAllof1 as WebhookProjectCardMovedPropProjectCardAllof1, ) - from .group_0623 import ( + from .group_0629 import ( WebhookProjectsV2ItemEditedPropChangesOneof0 as WebhookProjectsV2ItemEditedPropChangesOneof0, ) - from .group_0623 import ( + from .group_0629 import ( WebhookProjectsV2ItemEditedPropChangesOneof1 as WebhookProjectsV2ItemEditedPropChangesOneof1, ) - from .group_0635 import ( + from .group_0644 import ( WebhookPullRequestEditedPropChangesPropTitle as WebhookPullRequestEditedPropChangesPropTitle, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0 as WebhookPullRequestReviewRequestRemovedOneof0, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1 as WebhookPullRequestReviewRequestRemovedOneof1, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequest as WebhookPullRequestSynchronizePropPullRequest, ) - from .group_0679 import ( + from .group_0688 import ( WebhookRepositoryEditedPropChangesPropTopics as WebhookRepositoryEditedPropChangesPropTopics, ) - from .group_0769 import ( + from .group_0779 import ( OrgsOrgActionsPermissionsRepositoriesPutBody as OrgsOrgActionsPermissionsRepositoriesPutBody, ) - from .group_0788 import ( + from .group_0804 import ( OrgsOrgCodespacesAccessSelectedUsersPostBody as OrgsOrgCodespacesAccessSelectedUsersPostBody, ) - from .group_0796 import ( + from .group_0813 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBody as OrgsOrgCopilotBillingSelectedTeamsDeleteBody, ) - from .group_0800 import ( + from .group_0817 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBody as OrgsOrgCopilotBillingSelectedUsersDeleteBody, ) - from .group_0810 import ( + from .group_0827 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1 as OrgsOrgInteractionLimitsGetResponse200Anyof1, ) - from .group_0840 import ( + from .group_0857 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody, ) - from .group_0863 import ( + from .group_0880 import ( ReposOwnerRepoActionsArtifactsGetResponse200 as ReposOwnerRepoActionsArtifactsGetResponse200, ) - from .group_0882 import ( + from .group_0899 import ( ReposOwnerRepoActionsVariablesGetResponse200 as ReposOwnerRepoActionsVariablesGetResponse200, ) - from .group_0885 import ( + from .group_0902 import ( ReposOwnerRepoActionsWorkflowsGetResponse200 as ReposOwnerRepoActionsWorkflowsGetResponse200, ) - from .group_0962 import ( + from .group_0905 import ( + ReposOwnerRepoAttestationsPostBodyPropBundle as ReposOwnerRepoAttestationsPostBodyPropBundle, + ) + from .group_0982 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBody as ReposOwnerRepoImportAuthorsAuthorIdPatchBody, ) - from .group_1016 import ( + from .group_1036 import ( ReposOwnerRepoPullsPullNumberReviewsPostBody as ReposOwnerRepoPullsPullNumberReviewsPostBody, ) - from .group_1023 import ( + from .group_1043 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBody as ReposOwnerRepoReleasesAssetsAssetIdPatchBody, ) - from .group_0102 import ( + from .group_0107 import ( RepositoryRulesetConditionsRepositoryIdTarget as RepositoryRulesetConditionsRepositoryIdTarget, ) - from .group_0126 import ( + from .group_0131 import ( RepositoryRuleBranchNamePatternPropParameters as RepositoryRuleBranchNamePatternPropParameters, ) - from .group_0179 import ( + from .group_0184 import ( BranchRestrictionPolicyPropAppsItemsPropOwner as BranchRestrictionPolicyPropAppsItemsPropOwner, ) - from .group_0189 import ( + from .group_0194 import ( ProtectedBranchPropRequiredPullRequestReviews as ProtectedBranchPropRequiredPullRequestReviews, ) - from .group_0275 import ( + from .group_0280 import ( MovedColumnInProjectIssueEventPropProjectCard as MovedColumnInProjectIssueEventPropProjectCard, ) - from .group_0277 import ( + from .group_0282 import ( ConvertedNoteToIssueIssueEventPropProjectCard as ConvertedNoteToIssueIssueEventPropProjectCard, ) - from .group_0283 import ( + from .group_0288 import ( TimelineReviewedEventPropLinksPropPullRequest as TimelineReviewedEventPropLinksPropPullRequest, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropBasePropRepoPropOwner as WebhooksPullRequest5PropBasePropRepoPropOwner, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropHeadPropRepoPropOwner as WebhooksPullRequest5PropHeadPropRepoPropOwner, ) - from .group_0408 import ( + from .group_0414 import ( WebhooksReviewCommentPropLinksPropPullRequest as WebhooksReviewCommentPropLinksPropPullRequest, ) - from .group_0435 import ( + from .group_0441 import ( WebhookCodeScanningAlertClosedByUserPropAlert as WebhookCodeScanningAlertClosedByUserPropAlert, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRun as WebhookDeploymentStatusCreatedPropWorkflowRun, ) - from .group_0497 import ( + from .group_0503 import ( WebhookIssueCommentCreatedPropCommentPropUser as WebhookIssueCommentCreatedPropCommentPropUser, ) - from .group_0498 import ( + from .group_0504 import ( WebhookIssueCommentCreatedPropIssueMergedUser as WebhookIssueCommentCreatedPropIssueMergedUser, ) - from .group_0509 import ( + from .group_0515 import ( WebhookIssueCommentDeletedPropIssueMergedUser as WebhookIssueCommentDeletedPropIssueMergedUser, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropMilestone as WebhookIssuesMilestonedPropIssuePropMilestone, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropReactions as WebhookIssuesMilestonedPropIssuePropReactions, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropLabelsItems as WebhookIssuesReopenedPropIssuePropLabelsItems, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropPullRequest as WebhookIssuesReopenedPropIssuePropPullRequest, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropLabelsItems as WebhookIssuesUnlockedPropIssuePropLabelsItems, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropPullRequest as WebhookIssuesUnlockedPropIssuePropPullRequest, ) - from .group_0609 import ( + from .group_0615 import ( WebhookProjectColumnEditedPropChangesPropName as WebhookProjectColumnEditedPropChangesPropName, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequest as WebhookPullRequestReviewEditedPropPullRequest, ) - from .group_0659 import ( + from .group_0668 import ( WebhookPushPropRepositoryPropCustomProperties as WebhookPushPropRepositoryPropCustomProperties, ) - from .group_0668 import ( + from .group_0677 import ( WebhookReleaseEditedPropChangesPropMakeLatest as WebhookReleaseEditedPropChangesPropMakeLatest, ) - from .group_0709 import ( + from .group_0718 import ( WebhookSecurityAndAnalysisPropChangesPropFrom as WebhookSecurityAndAnalysisPropChangesPropFrom, ) - from .group_0859 import ( + from .group_0876 import ( ProjectsProjectIdCollaboratorsUsernamePutBody as ProjectsProjectIdCollaboratorsUsernamePutBody, ) - from .group_0881 import ( + from .group_0898 import ( ReposOwnerRepoActionsSecretsSecretNamePutBody as ReposOwnerRepoActionsSecretsSecretNamePutBody, ) - from .group_0889 import ( + from .group_0909 import ( ReposOwnerRepoBranchesBranchProtectionPutBody as ReposOwnerRepoBranchesBranchProtectionPutBody, ) - from .group_0912 import ( + from .group_0932 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBody as ReposOwnerRepoCheckSuitesPreferencesPatchBody, ) - from .group_0924 import ( + from .group_0944 import ( ReposOwnerRepoCodespacesSecretsGetResponse200 as ReposOwnerRepoCodespacesSecretsGetResponse200, ) - from .group_0934 import ( + from .group_0954 import ( ReposOwnerRepoDependabotSecretsGetResponse200 as ReposOwnerRepoDependabotSecretsGetResponse200, ) - from .group_0952 import ( + from .group_0972 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitter as ReposOwnerRepoGitCommitsPostBodyPropCommitter, ) - from .group_1004 import ( + from .group_1024 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBody as ReposOwnerRepoPullsCommentsCommentIdPatchBody, ) - from .group_1008 import ( + from .group_1028 import ( ReposOwnerRepoPullsPullNumberCommentsPostBody as ReposOwnerRepoPullsPullNumberCommentsPostBody, ) - from .group_0393 import ( + from .group_0398 import ( WebhooksPreviousMarketplacePurchasePropAccount as WebhooksPreviousMarketplacePurchasePropAccount, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsAdded as PersonalAccessTokenRequestPropPermissionsAdded, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropAutoMergePropEnabledBy as WebhooksPullRequest5PropAutoMergePropEnabledBy, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLinksPropReviewComment as WebhooksPullRequest5PropLinksPropReviewComment, ) - from .group_0437 import ( + from .group_0443 import ( WebhookCodeScanningAlertFixedPropAlertPropRule as WebhookCodeScanningAlertFixedPropAlertPropRule, ) - from .group_0437 import ( + from .group_0443 import ( WebhookCodeScanningAlertFixedPropAlertPropTool as WebhookCodeScanningAlertFixedPropAlertPropTool, ) - from .group_0440 import ( + from .group_0446 import ( WebhookCommitCommentCreatedPropCommentPropUser as WebhookCommitCommentCreatedPropCommentPropUser, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRun as WebhookDeploymentReviewApprovedPropWorkflowRun, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRun as WebhookDeploymentReviewRejectedPropWorkflowRun, ) - from .group_0533 import ( + from .group_0539 import ( WebhookIssuesClosedPropIssueAllof0PropAssignee as WebhookIssuesClosedPropIssueAllof0PropAssignee, ) - from .group_0539 import ( + from .group_0545 import ( WebhookIssuesClosedPropIssueAllof1PropAssignee as WebhookIssuesClosedPropIssueAllof1PropAssignee, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropAssignee as WebhookIssuesDemilestonedPropIssuePropAssignee, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropAssigneesItems as WebhookIssuesEditedPropIssuePropAssigneesItems, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropAssigneesItems as WebhookIssuesLockedPropIssuePropAssigneesItems, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropAssigneesItems as WebhookIssuesOpenedPropIssuePropAssigneesItems, ) - from .group_0581 import ( + from .group_0587 import ( WebhookOrganizationMemberInvitedPropInvitation as WebhookOrganizationMemberInvitedPropInvitation, ) - from .group_0583 import ( + from .group_0589 import ( WebhookOrganizationRenamedPropChangesPropLogin as WebhookOrganizationRenamedPropChangesPropLogin, ) - from .group_0586 import ( + from .group_0592 import ( WebhookPackagePublishedPropPackagePropRegistry as WebhookPackagePublishedPropPackagePropRegistry, ) - from .group_0599 import ( + from .group_0605 import ( WebhookProjectCardConvertedPropChangesPropNote as WebhookProjectCardConvertedPropChangesPropNote, ) - from .group_0603 import ( + from .group_0609 import ( WebhookProjectCardMovedPropChangesPropColumnId as WebhookProjectCardMovedPropChangesPropColumnId, ) - from .group_0669 import ( + from .group_0635 import ( + WebhookProjectsV2StatusUpdateEditedPropChanges as WebhookProjectsV2StatusUpdateEditedPropChanges, + ) + from .group_0678 import ( WebhookReleasePrereleasedPropReleasePropAuthor as WebhookReleasePrereleasedPropReleasePropAuthor, ) - from .group_0679 import ( + from .group_0688 import ( WebhookRepositoryEditedPropChangesPropHomepage as WebhookRepositoryEditedPropChangesPropHomepage, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationPullRequestReviewComment as SecretScanningLocationPullRequestReviewComment, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropCommitPropCommitPropCommitter as WebhookStatusPropCommitPropCommitPropCommitter, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropRepositoryPropPermissions as WebhookTeamEditedPropRepositoryPropPermissions, ) - from .group_0728 import ( + from .group_0737 import ( WebhookTeamRemovedFromRepositoryPropRepository as WebhookTeamRemovedFromRepositoryPropRepository, ) - from .group_0771 import ( + from .group_0781 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBody as OrgsOrgActionsRunnersGenerateJitconfigPostBody, ) - from .group_0785 import ( + from .group_0795 import ( OrgsOrgActionsVariablesNameRepositoriesPutBody as OrgsOrgActionsVariablesNameRepositoriesPutBody, ) - from .group_0789 import ( + from .group_0796 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200 as OrgsOrgAttestationsSubjectDigestGetResponse200, + ) + from .group_0805 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBody as OrgsOrgCodespacesAccessSelectedUsersDeleteBody, ) - from .group_0812 import ( + from .group_0829 import ( OrgsOrgMembersUsernameCodespacesGetResponse200 as OrgsOrgMembersUsernameCodespacesGetResponse200, ) - from .group_0839 import ( + from .group_0856 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody, ) - from .group_0847 import ( + from .group_0864 import ( ProjectsColumnsCardsCardIdMovesPostResponse201 as ProjectsColumnsCardsCardIdMovesPostResponse201, ) - from .group_0848 import ( + from .group_0865 import ( ProjectsColumnsCardsCardIdMovesPostResponse403 as ProjectsColumnsCardsCardIdMovesPostResponse403, ) - from .group_0849 import ( + from .group_0866 import ( ProjectsColumnsCardsCardIdMovesPostResponse503 as ProjectsColumnsCardsCardIdMovesPostResponse503, ) - from .group_0862 import ( + from .group_0879 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysis as ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, ) - from .group_0922 import ( + from .group_0942 import ( ReposOwnerRepoCodespacesMachinesGetResponse200 as ReposOwnerRepoCodespacesMachinesGetResponse200, ) - from .group_0929 import ( + from .group_0949 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBody as ReposOwnerRepoCommitsCommitShaCommentsPostBody, ) - from .group_0931 import ( + from .group_0951 import ( ReposOwnerRepoContentsPathPutBodyPropCommitter as ReposOwnerRepoContentsPathPutBodyPropCommitter, ) - from .group_0932 import ( + from .group_0952 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthor as ReposOwnerRepoContentsPathDeleteBodyPropAuthor, ) - from .group_0965 import ( + from .group_0985 import ( ReposOwnerRepoInvitationsInvitationIdPatchBody as ReposOwnerRepoInvitationsInvitationIdPatchBody, ) - from .group_0967 import ( + from .group_0987 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBody as ReposOwnerRepoIssuesCommentsCommentIdPatchBody, ) - from .group_1035 import ( + from .group_1055 import ( ReposTemplateOwnerTemplateRepoGeneratePostBody as ReposTemplateOwnerTemplateRepoGeneratePostBody, ) - from .group_0048 import ( + from .group_0052 import ( MarketplacePurchasePropMarketplacePendingChange as MarketplacePurchasePropMarketplacePendingChange, ) - from .group_0100 import ( + from .group_0105 import ( RepositoryRulesetConditionsRepositoryNameTarget as RepositoryRulesetConditionsRepositoryNameTarget, ) - from .group_0114 import ( + from .group_0119 import ( RepositoryRuleRequiredDeploymentsPropParameters as RepositoryRuleRequiredDeploymentsPropParameters, ) - from .group_0137 import ( + from .group_0142 import ( RuleSuitePropRuleEvaluationsItemsPropRuleSource as RuleSuitePropRuleEvaluationsItemsPropRuleSource, ) - from .group_0237 import ( + from .group_0242 import ( DependencyGraphSpdxSbomPropSbomPropCreationInfo as DependencyGraphSpdxSbomPropSbomPropCreationInfo, ) - from .group_0388 import ( + from .group_0393 import ( WebhooksIssuePropPerformedViaGithubAppPropOwner as WebhooksIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsResult as PersonalAccessTokenRequestPropPermissionsResult, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropRepositoriesItems as PersonalAccessTokenRequestPropRepositoriesItems, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropBasePropRepoPropLicense as WebhooksPullRequest5PropBasePropRepoPropLicense, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropHeadPropRepoPropLicense as WebhooksPullRequest5PropHeadPropRepoPropLicense, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLinksPropReviewComments as WebhooksPullRequest5PropLinksPropReviewComments, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropApp as WebhookCheckSuiteCompletedPropCheckSuitePropApp, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropApp as WebhookCheckSuiteRequestedPropCheckSuitePropApp, ) - from .group_0439 import ( + from .group_0445 import ( WebhookCodeScanningAlertReopenedByUserPropAlert as WebhookCodeScanningAlertReopenedByUserPropAlert, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRun as WebhookDeploymentReviewRequestedPropWorkflowRun, ) - from .group_0533 import ( + from .group_0539 import ( WebhookIssuesClosedPropIssueAllof0PropReactions as WebhookIssuesClosedPropIssueAllof0PropReactions, ) - from .group_0535 import ( + from .group_0541 import ( WebhookIssuesClosedPropIssueAllof0PropMilestone as WebhookIssuesClosedPropIssueAllof0PropMilestone, ) - from .group_0539 import ( + from .group_0545 import ( WebhookIssuesClosedPropIssueAllof1PropMilestone as WebhookIssuesClosedPropIssueAllof1PropMilestone, ) - from .group_0539 import ( + from .group_0545 import ( WebhookIssuesClosedPropIssueAllof1PropReactions as WebhookIssuesClosedPropIssueAllof1PropReactions, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropAssigneesItems as WebhookIssuesDeletedPropIssuePropAssigneesItems, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropMilestone as WebhookIssuesDemilestonedPropIssuePropMilestone, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropReactions as WebhookIssuesDemilestonedPropIssuePropReactions, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropAssigneesItems as WebhookIssuesLabeledPropIssuePropAssigneesItems, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropLabelsItems as WebhookIssuesMilestonedPropIssuePropLabelsItems, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropPullRequest as WebhookIssuesMilestonedPropIssuePropPullRequest, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldRepository as WebhookIssuesOpenedPropChangesPropOldRepository, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssue as WebhookIssuesTransferredPropChangesPropNewIssue, ) - from .group_0565 import ( + from .group_0571 import ( WebhookMemberEditedPropChangesPropOldPermission as WebhookMemberEditedPropChangesPropOldPermission, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropBase as WebhookPullRequestLockedPropPullRequestPropBase, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropHead as WebhookPullRequestLockedPropPullRequestPropHead, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropUser as WebhookPullRequestLockedPropPullRequestPropUser, ) - from .group_0725 import ( + from .group_0734 import ( WebhookTeamCreatedPropRepositoryPropPermissions as WebhookTeamCreatedPropRepositoryPropPermissions, ) - from .group_0726 import ( + from .group_0735 import ( WebhookTeamDeletedPropRepositoryPropPermissions as WebhookTeamDeletedPropRepositoryPropPermissions, ) - from .group_0764 import ( + from .group_0774 import ( NotificationsThreadsThreadIdSubscriptionPutBody as NotificationsThreadsThreadIdSubscriptionPutBody, ) - from .group_0905 import ( + from .group_0925 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItems as ReposOwnerRepoCheckRunsPostBodyPropActionsItems, ) - from .group_0930 import ( + from .group_0950 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200 as ReposOwnerRepoCommitsRefCheckRunsGetResponse200, ) - from .group_0972 import ( + from .group_0992 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBody as ReposOwnerRepoIssuesIssueNumberCommentsPostBody, ) - from .group_1007 import ( + from .group_1027 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBody as ReposOwnerRepoPullsPullNumberCodespacesPostBody, ) - from .group_1038 import ( + from .group_1058 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberPatchBody, ) - from .group_0050 import ( + from .group_0054 import ( SecurityAndAnalysisPropDependabotSecurityUpdates as SecurityAndAnalysisPropDependabotSecurityUpdates, ) - from .group_0118 import ( + from .group_0123 import ( RepositoryRuleRequiredStatusChecksPropParameters as RepositoryRuleRequiredStatusChecksPropParameters, ) - from .group_0120 import ( + from .group_0125 import ( RepositoryRuleCommitMessagePatternPropParameters as RepositoryRuleCommitMessagePatternPropParameters, ) - from .group_0236 import ( + from .group_0241 import ( DependencyGraphDiffItemsPropVulnerabilitiesItems as DependencyGraphDiffItemsPropVulnerabilitiesItems, ) - from .group_0237 import ( + from .group_0242 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItems as DependencyGraphSpdxSbomPropSbomPropPackagesItems, ) - from .group_0284 import ( + from .group_0289 import ( PullRequestReviewCommentPropLinksPropPullRequest as PullRequestReviewCommentPropLinksPropPullRequest, ) - from .group_0329 import ( + from .group_0334 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItems as RepositoryAdvisoryCreatePropVulnerabilitiesItems, ) - from .group_0331 import ( + from .group_0336 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItems as RepositoryAdvisoryUpdatePropVulnerabilitiesItems, ) - from .group_0390 import ( + from .group_0395 import ( WebhooksIssue2PropPerformedViaGithubAppPropOwner as WebhooksIssue2PropPerformedViaGithubAppPropOwner, ) - from .group_0414 import ( + from .group_0420 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItems as WebhooksSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_0436 import ( + from .group_0442 import ( WebhookCodeScanningAlertCreatedPropAlertPropRule as WebhookCodeScanningAlertCreatedPropAlertPropRule, ) - from .group_0436 import ( + from .group_0442 import ( WebhookCodeScanningAlertCreatedPropAlertPropTool as WebhookCodeScanningAlertCreatedPropAlertPropTool, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropActor as WebhookDeploymentCreatedPropWorkflowRunPropActor, ) - from .group_0521 import ( + from .group_0527 import ( WebhookIssueCommentEditedPropIssueAllof0PropUser as WebhookIssueCommentEditedPropIssueAllof0PropUser, ) - from .group_0527 import ( + from .group_0533 import ( WebhookIssueCommentEditedPropIssueAllof1PropUser as WebhookIssueCommentEditedPropIssueAllof1PropUser, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropAssigneesItems as WebhookIssuesReopenedPropIssuePropAssigneesItems, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropAssigneesItems as WebhookIssuesUnlockedPropIssuePropAssigneesItems, ) - from .group_0562 import ( + from .group_0568 import ( WebhookMarketplacePurchasePendingChangeCancelled as WebhookMarketplacePurchasePendingChangeCancelled, ) - from .group_0575 import ( + from .group_0581 import ( WebhookMilestoneEditedPropChangesPropDescription as WebhookMilestoneEditedPropChangesPropDescription, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropBase as WebhookPullRequestLabeledPropPullRequestPropBase, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropHead as WebhookPullRequestLabeledPropPullRequestPropHead, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropUser as WebhookPullRequestLabeledPropPullRequestPropUser, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLinks as WebhookPullRequestLockedPropPullRequestPropLinks, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequest as WebhookPullRequestReviewDismissedPropPullRequest, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequest as WebhookPullRequestReviewSubmittedPropPullRequest, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropThread as WebhookPullRequestReviewThreadResolvedPropThread, ) - from .group_0664 import ( + from .group_0673 import ( WebhookRegistryPackageUpdatedPropRegistryPackage as WebhookRegistryPackageUpdatedPropRegistryPackage, ) - from .group_0678 import ( + from .group_0687 import ( WebhookRepositoryDispatchSamplePropClientPayload as WebhookRepositoryDispatchSamplePropClientPayload, ) - from .group_0692 import ( + from .group_0701 import ( WebhookRepositoryTransferredPropChangesPropOwner as WebhookRepositoryTransferredPropChangesPropOwner, ) - from .group_0732 import ( + from .group_0741 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0 as WebhookWorkflowJobCompletedPropWorkflowJobAllof0, ) - from .group_0733 import ( + from .group_0742 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1 as WebhookWorkflowJobCompletedPropWorkflowJobAllof1, ) - from .group_0743 import ( + from .group_0752 import ( AppManifestsCodeConversionsPostResponse201Allof1 as AppManifestsCodeConversionsPostResponse201Allof1, ) - from .group_0826 import ( + from .group_0843 import ( OrgsOrgPropertiesSchemaCustomPropertyNamePutBody as OrgsOrgPropertiesSchemaCustomPropertyNamePutBody, ) - from .group_0865 import ( + from .group_0882 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBody as ReposOwnerRepoActionsOidcCustomizationSubPutBody, ) - from .group_0876 import ( + from .group_0893 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200, ) - from .group_0909 import ( + from .group_0929 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0, ) - from .group_0910 import ( + from .group_0930 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1 as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1, ) - from .group_0925 import ( + from .group_0945 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBody as ReposOwnerRepoCodespacesSecretsSecretNamePutBody, ) - from .group_0928 import ( + from .group_0948 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBody as ReposOwnerRepoCommentsCommentIdReactionsPostBody, ) - from .group_0935 import ( + from .group_0955 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBody as ReposOwnerRepoDependabotSecretsSecretNamePutBody, ) - from .group_0941 import ( + from .group_0961 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNamePutBody, ) - from .group_0970 import ( + from .group_0990 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBody as ReposOwnerRepoIssuesIssueNumberAssigneesPostBody, ) - from .group_0980 import ( + from .group_1000 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBody as ReposOwnerRepoIssuesIssueNumberReactionsPostBody, ) - from .group_0987 import ( + from .group_1007 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBody as ReposOwnerRepoMilestonesMilestoneNumberPatchBody, ) - from .group_1011 import ( + from .group_1031 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405 as ReposOwnerRepoPullsPullNumberMergePutResponse405, ) - from .group_1012 import ( + from .group_1032 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409 as ReposOwnerRepoPullsPullNumberMergePutResponse409, ) - from .group_1020 import ( + from .group_1040 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBody as ReposOwnerRepoPullsPullNumberUpdateBranchPutBody, ) - from .group_1026 import ( + from .group_1046 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBody as ReposOwnerRepoReleasesReleaseIdReactionsPostBody, ) - from .group_0105 import ( + from .group_0110 import ( RepositoryRulesetConditionsRepositoryPropertySpec as RepositoryRulesetConditionsRepositoryPropertySpec, ) - from .group_0124 import ( + from .group_0129 import ( RepositoryRuleCommitterEmailPatternPropParameters as RepositoryRuleCommitterEmailPatternPropParameters, ) - from .group_0180 import ( + from .group_0185 import ( ProtectedBranchRequiredStatusCheckPropChecksItems as ProtectedBranchRequiredStatusCheckPropChecksItems, ) - from .group_0188 import ( + from .group_0193 import ( ProtectedBranchPropRequiredConversationResolution as ProtectedBranchPropRequiredConversationResolution, ) - from .group_0194 import ( + from .group_0199 import ( ReposOwnerRepoCommitsRefCheckSuitesGetResponse200 as ReposOwnerRepoCommitsRefCheckSuitesGetResponse200, ) - from .group_0357 import ( + from .group_0362 import ( CodespaceWithFullRepositoryPropRuntimeConstraints as CodespaceWithFullRepositoryPropRuntimeConstraints, ) - from .group_0370 import ( + from .group_0375 import ( RepositoryWebhooksPropTemplateRepositoryPropOwner as RepositoryWebhooksPropTemplateRepositoryPropOwner, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsUpgraded as PersonalAccessTokenRequestPropPermissionsUpgraded, ) - from .group_0427 import ( + from .group_0433 import ( WebhookCheckRunRequestedActionPropRequestedAction as WebhookCheckRunRequestedActionPropRequestedAction, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropApp as WebhookCheckSuiteRerequestedPropCheckSuitePropApp, ) - from .group_0434 import ( + from .group_0440 import ( WebhookCodeScanningAlertAppearedInBranchPropAlert as WebhookCodeScanningAlertAppearedInBranchPropAlert, ) - from .group_0438 import ( + from .group_0444 import ( WebhookCodeScanningAlertReopenedPropAlertPropRule as WebhookCodeScanningAlertReopenedPropAlertPropRule, ) - from .group_0438 import ( + from .group_0444 import ( WebhookCodeScanningAlertReopenedPropAlertPropTool as WebhookCodeScanningAlertReopenedPropAlertPropTool, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropDeploymentPropCreator as WebhookDeploymentCreatedPropDeploymentPropCreator, ) - from .group_0467 import ( + from .group_0473 import ( WebhookDiscussionCommentEditedPropChangesPropBody as WebhookDiscussionCommentEditedPropChangesPropBody, ) - from .group_0499 import ( + from .group_0505 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUser as WebhookIssueCommentCreatedPropIssueAllof0PropUser, ) - from .group_0505 import ( + from .group_0511 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUser as WebhookIssueCommentCreatedPropIssueAllof1PropUser, ) - from .group_0510 import ( + from .group_0516 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUser as WebhookIssueCommentDeletedPropIssueAllof0PropUser, ) - from .group_0516 import ( + from .group_0522 import ( WebhookIssueCommentDeletedPropIssueAllof1PropUser as WebhookIssueCommentDeletedPropIssueAllof1PropUser, ) - from .group_0520 import ( + from .group_0526 import ( WebhookIssueCommentEditedPropIssueMergedAssignees as WebhookIssueCommentEditedPropIssueMergedAssignees, ) - from .group_0520 import ( + from .group_0526 import ( WebhookIssueCommentEditedPropIssueMergedReactions as WebhookIssueCommentEditedPropIssueMergedReactions, ) - from .group_0528 import ( + from .group_0534 import ( WebhookIssueCommentEditedPropIssueMergedMilestone as WebhookIssueCommentEditedPropIssueMergedMilestone, ) - from .group_0533 import ( + from .group_0539 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItems as WebhookIssuesClosedPropIssueAllof0PropLabelsItems, ) - from .group_0538 import ( + from .group_0544 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequest as WebhookIssuesClosedPropIssueAllof0PropPullRequest, ) - from .group_0539 import ( + from .group_0545 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItems as WebhookIssuesClosedPropIssueAllof1PropLabelsItems, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropLabelsItems as WebhookIssuesDemilestonedPropIssuePropLabelsItems, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropPullRequest as WebhookIssuesDemilestonedPropIssuePropPullRequest, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropBase as WebhookPullRequestAssignedPropPullRequestPropBase, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropHead as WebhookPullRequestAssignedPropPullRequestPropHead, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropUser as WebhookPullRequestAssignedPropPullRequestPropUser, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequest as WebhookPullRequestAutoMergeEnabledPropPullRequest, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropBase as WebhookPullRequestDequeuedPropPullRequestPropBase, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropHead as WebhookPullRequestDequeuedPropPullRequestPropHead, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropUser as WebhookPullRequestDequeuedPropPullRequestPropUser, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropBase as WebhookPullRequestEnqueuedPropPullRequestPropBase, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropHead as WebhookPullRequestEnqueuedPropPullRequestPropHead, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropUser as WebhookPullRequestEnqueuedPropPullRequestPropUser, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLinks as WebhookPullRequestLabeledPropPullRequestPropLinks, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropComment as WebhookPullRequestReviewCommentCreatedPropComment, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropChangesPropBody as WebhookPullRequestReviewEditedPropChangesPropBody, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropBase as WebhookPullRequestUnlockedPropPullRequestPropBase, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropHead as WebhookPullRequestUnlockedPropPullRequestPropHead, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropUser as WebhookPullRequestUnlockedPropPullRequestPropUser, ) - from .group_0669 import ( + from .group_0678 import ( WebhookReleasePrereleasedPropReleasePropReactions as WebhookReleasePrereleasedPropReleasePropReactions, ) - from .group_0679 import ( + from .group_0688 import ( WebhookRepositoryEditedPropChangesPropDescription as WebhookRepositoryEditedPropChangesPropDescription, ) - from .group_0683 import ( + from .group_0692 import ( WebhookRepositoryRenamedPropChangesPropRepository as WebhookRepositoryRenamedPropChangesPropRepository, ) - from .group_0687 import ( + from .group_0696 import ( WebhookRepositoryRulesetEditedPropChangesPropName as WebhookRepositoryRulesetEditedPropChangesPropName, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropCommitPropCommitPropVerification as WebhookStatusPropCommitPropCommitPropVerification, ) - from .group_0719 import ( + from .group_0728 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0 as WebhookStatusPropCommitPropCommitPropAuthorAllof0, ) - from .group_0720 import ( + from .group_0729 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1 as WebhookStatusPropCommitPropCommitPropAuthorAllof1, ) - from .group_0735 import ( + from .group_0744 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0 as WebhookWorkflowJobInProgressPropWorkflowJobAllof0, ) - from .group_0736 import ( + from .group_0745 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1 as WebhookWorkflowJobInProgressPropWorkflowJobAllof1, ) - from .group_0773 import ( + from .group_0783 import ( OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200 as OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200, ) - from .group_0795 import ( + from .group_0812 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201 as OrgsOrgCopilotBillingSelectedTeamsPostResponse201, ) - from .group_0799 import ( + from .group_0816 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201 as OrgsOrgCopilotBillingSelectedUsersPostResponse201, ) - from .group_0818 import ( + from .group_0835 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202 as OrgsOrgOutsideCollaboratorsUsernamePutResponse202, ) - from .group_0871 import ( + from .group_0888 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody, ) - from .group_0932 import ( + from .group_0952 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitter as ReposOwnerRepoContentsPathDeleteBodyPropCommitter, ) - from .group_0940 import ( + from .group_0960 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayload as ReposOwnerRepoDispatchesPostBodyPropClientPayload, ) - from .group_0966 import ( + from .group_0986 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1, ) - from .group_1056 import ( + from .group_1076 import ( UserCodespacesCodespaceNameMachinesGetResponse200 as UserCodespacesCodespaceNameMachinesGetResponse200, ) - from .group_0028 import ( + from .group_0032 import ( DependabotAlertSecurityAdvisoryPropReferencesItems as DependabotAlertSecurityAdvisoryPropReferencesItems, ) - from .group_0090 import ( + from .group_0095 import ( OrganizationProgrammaticAccessGrantPropPermissions as OrganizationProgrammaticAccessGrantPropPermissions, ) - from .group_0180 import ( + from .group_0185 import ( BranchProtectionPropRequiredConversationResolution as BranchProtectionPropRequiredConversationResolution, ) - from .group_0205 import ( + from .group_0210 import ( CodeScanningVariantAnalysisPropSkippedRepositories as CodeScanningVariantAnalysisPropSkippedRepositories, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropReviewersItems as WebhookDeploymentReviewRequestedPropReviewersItems, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRun as WebhookDeploymentReviewRequestedPropWorkflowJobRun, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentStatus as WebhookDeploymentStatusCreatedPropDeploymentStatus, ) - from .group_0497 import ( + from .group_0503 import ( WebhookIssueCommentCreatedPropCommentPropReactions as WebhookIssueCommentCreatedPropCommentPropReactions, ) - from .group_0498 import ( + from .group_0504 import ( WebhookIssueCommentCreatedPropIssueMergedAssignees as WebhookIssueCommentCreatedPropIssueMergedAssignees, ) - from .group_0498 import ( + from .group_0504 import ( WebhookIssueCommentCreatedPropIssueMergedReactions as WebhookIssueCommentCreatedPropIssueMergedReactions, ) - from .group_0506 import ( + from .group_0512 import ( WebhookIssueCommentCreatedPropIssueMergedMilestone as WebhookIssueCommentCreatedPropIssueMergedMilestone, ) - from .group_0509 import ( + from .group_0515 import ( WebhookIssueCommentDeletedPropIssueMergedAssignees as WebhookIssueCommentDeletedPropIssueMergedAssignees, ) - from .group_0509 import ( + from .group_0515 import ( WebhookIssueCommentDeletedPropIssueMergedReactions as WebhookIssueCommentDeletedPropIssueMergedReactions, ) - from .group_0517 import ( + from .group_0523 import ( WebhookIssueCommentDeletedPropIssueMergedMilestone as WebhookIssueCommentDeletedPropIssueMergedMilestone, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropAssigneesItems as WebhookIssuesMilestonedPropIssuePropAssigneesItems, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUser as WebhookIssuesOpenedPropChangesPropOldIssuePropUser, ) - from .group_0590 import ( + from .group_0596 import ( WebhookPackageUpdatedPropPackagePropPackageVersion as WebhookPackageUpdatedPropPackagePropPackageVersion, ) - from .group_0618 import ( + from .group_0624 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitle as WebhookProjectsV2ProjectEditedPropChangesPropTitle, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLinks as WebhookPullRequestAssignedPropPullRequestPropLinks, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequest as WebhookPullRequestAutoMergeDisabledPropPullRequest, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLinks as WebhookPullRequestDequeuedPropPullRequestPropLinks, ) - from .group_0635 import ( + from .group_0644 import ( WebhookPullRequestEditedPropChangesPropBasePropRef as WebhookPullRequestEditedPropChangesPropBasePropRef, ) - from .group_0635 import ( + from .group_0644 import ( WebhookPullRequestEditedPropChangesPropBasePropSha as WebhookPullRequestEditedPropChangesPropBasePropSha, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinks as WebhookPullRequestEnqueuedPropPullRequestPropLinks, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropThread as WebhookPullRequestReviewThreadUnresolvedPropThread, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropBase as WebhookPullRequestUnlabeledPropPullRequestPropBase, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropHead as WebhookPullRequestUnlabeledPropPullRequestPropHead, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropUser as WebhookPullRequestUnlabeledPropPullRequestPropUser, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinks as WebhookPullRequestUnlockedPropPullRequestPropLinks, ) - from .group_0661 import ( + from .group_0670 import ( WebhookRegistryPackagePublishedPropRegistryPackage as WebhookRegistryPackagePublishedPropRegistryPackage, ) - from .group_0690 import ( + from .group_0699 import ( WebhookRepositoryRulesetEditedPropChangesPropRules as WebhookRepositoryRulesetEditedPropChangesPropRules, ) - from .group_0745 import ( + from .group_0754 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202 as AppHookDeliveriesDeliveryIdAttemptsPostResponse202, ) - from .group_0746 import ( + from .group_0755 import ( AppInstallationsInstallationIdAccessTokensPostBody as AppInstallationsInstallationIdAccessTokensPostBody, ) - from .group_0766 import ( + from .group_0776 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200 as OrgsOrgActionsCacheUsageByRepositoryGetResponse200, ) - from .group_0780 import ( + from .group_0790 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBody as OrgsOrgActionsSecretsSecretNameRepositoriesPutBody, ) - from .group_0872 import ( + from .group_0889 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody, ) - from .group_0933 import ( + from .group_0953 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBody as ReposOwnerRepoDependabotAlertsAlertNumberPatchBody, ) - from .group_0937 import ( + from .group_0957 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0 as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0, ) - from .group_0971 import ( + from .group_0991 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody, ) - from .group_0973 import ( + from .group_0993 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0, ) - from .group_0974 import ( + from .group_0994 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2, ) - from .group_1054 import ( + from .group_1074 import ( UserCodespacesSecretsSecretNameRepositoriesPutBody as UserCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_0028 import ( + from .group_1093 import ( + SigstoreBundle0PropDsseEnvelopePropSignaturesItems as SigstoreBundle0PropDsseEnvelopePropSignaturesItems, + ) + from .group_0032 import ( DependabotAlertSecurityAdvisoryPropIdentifiersItems as DependabotAlertSecurityAdvisoryPropIdentifiersItems, ) - from .group_0050 import ( + from .group_0054 import ( SecurityAndAnalysisPropSecretScanningPushProtection as SecurityAndAnalysisPropSecretScanningPushProtection, ) - from .group_0104 import ( + from .group_0109 import ( RepositoryRulesetConditionsRepositoryPropertyTarget as RepositoryRulesetConditionsRepositoryPropertyTarget, ) - from .group_0179 import ( + from .group_0184 import ( BranchRestrictionPolicyPropAppsItemsPropPermissions as BranchRestrictionPolicyPropAppsItemsPropPermissions, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropBasePropRepoPropPermissions as WebhooksPullRequest5PropBasePropRepoPropPermissions, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropHeadPropRepoPropPermissions as WebhooksPullRequest5PropHeadPropRepoPropPermissions, ) - from .group_0440 import ( + from .group_0446 import ( WebhookCommitCommentCreatedPropCommentPropReactions as WebhookCommitCommentCreatedPropCommentPropReactions, ) - from .group_0494 import ( + from .group_0500 import ( WebhookInstallationTargetRenamedPropChangesPropSlug as WebhookInstallationTargetRenamedPropChangesPropSlug, ) - from .group_0601 import ( + from .group_0607 import ( WebhookProjectCardDeletedPropProjectCardPropCreator as WebhookProjectCardDeletedPropProjectCardPropCreator, ) - from .group_0603 import ( + from .group_0609 import ( WebhookProjectCardMovedPropProjectCardMergedCreator as WebhookProjectCardMovedPropProjectCardMergedCreator, ) - from .group_0618 import ( + from .group_0624 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublic as WebhookProjectsV2ProjectEditedPropChangesPropPublic, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropAssignee as WebhookPullRequestLockedPropPullRequestPropAssignee, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropMergedBy as WebhookPullRequestLockedPropPullRequestPropMergedBy, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropReviewPropUser as WebhookPullRequestReviewDismissedPropReviewPropUser, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropBase as WebhookPullRequestUnassignedPropPullRequestPropBase, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropHead as WebhookPullRequestUnassignedPropPullRequestPropHead, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropUser as WebhookPullRequestUnassignedPropPullRequestPropUser, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinks as WebhookPullRequestUnlabeledPropPullRequestPropLinks, ) - from .group_0669 import ( + from .group_0678 import ( WebhookReleasePrereleasedPropReleasePropAssetsItems as WebhookReleasePrereleasedPropReleasePropAssetsItems, ) - from .group_0679 import ( + from .group_0688 import ( WebhookRepositoryEditedPropChangesPropDefaultBranch as WebhookRepositoryEditedPropChangesPropDefaultBranch, ) - from .group_0695 import ( + from .group_0704 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlert as WebhookRepositoryVulnerabilityAlertDismissPropAlert, ) - from .group_0697 import ( + from .group_0706 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlert as WebhookRepositoryVulnerabilityAlertResolvePropAlert, ) - from .group_0712 import ( + from .group_0721 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevel as WebhookSponsorshipEditedPropChangesPropPrivacyLevel, ) - from .group_0724 import ( + from .group_0733 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwner as WebhookTeamAddedToRepositoryPropRepositoryPropOwner, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropChangesPropNotificationSetting as WebhookTeamEditedPropChangesPropNotificationSetting, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropRepositoryPropCustomProperties as WebhookTeamEditedPropRepositoryPropCustomProperties, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropActor as WebhookWorkflowRunCompletedPropWorkflowRunPropActor, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActor as WebhookWorkflowRunRequestedPropWorkflowRunPropActor, ) - from .group_0768 import ( + from .group_0778 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200 as OrgsOrgActionsPermissionsRepositoriesGetResponse200, ) - from .group_0797 import ( + from .group_0814 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200, ) - from .group_0801 import ( + from .group_0818 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200, ) - from .group_0841 import ( + from .group_0858 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403 as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403, ) - from .group_0921 import ( + from .group_0941 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200 as ReposOwnerRepoCodespacesDevcontainersGetResponse200, ) - from .group_0964 import ( + from .group_0984 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1 as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1, ) - from .group_0976 import ( + from .group_0996 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0, ) - from .group_0977 import ( + from .group_0997 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2 as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2, ) - from .group_1017 import ( + from .group_1037 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody, ) - from .group_0122 import ( + from .group_0127 import ( RepositoryRuleCommitAuthorEmailPatternPropParameters as RepositoryRuleCommitAuthorEmailPatternPropParameters, ) - from .group_0494 import ( + from .group_0500 import ( WebhookInstallationTargetRenamedPropChangesPropLogin as WebhookInstallationTargetRenamedPropChangesPropLogin, ) - from .group_0522 import ( + from .group_0528 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssignee as WebhookIssueCommentEditedPropIssueAllof0PropAssignee, ) - from .group_0527 import ( + from .group_0533 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssignee as WebhookIssueCommentEditedPropIssueAllof1PropAssignee, ) - from .group_0533 import ( + from .group_0539 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItems as WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, ) - from .group_0539 import ( + from .group_0545 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItems as WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropAssigneesItems as WebhookIssuesDemilestonedPropIssuePropAssigneesItems, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreator as WebhookIssuesEditedPropIssuePropMilestonePropCreator, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropMilestonePropCreator as WebhookIssuesLockedPropIssuePropMilestonePropCreator, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreator as WebhookIssuesOpenedPropIssuePropMilestonePropCreator, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewRepository as WebhookIssuesTransferredPropChangesPropNewRepository, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersion as WebhookPackagePublishedPropPackagePropPackageVersion, ) - from .group_0623 import ( + from .group_0629 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBody as WebhookProjectsV2ItemEditedPropChangesOneof1PropBody, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropAssignee as WebhookPullRequestLabeledPropPullRequestPropAssignee, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropMergedBy as WebhookPullRequestLabeledPropPullRequestPropMergedBy, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropAutoMerge as WebhookPullRequestLockedPropPullRequestPropAutoMerge, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropMilestone as WebhookPullRequestLockedPropPullRequestPropMilestone, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequest as WebhookPullRequestReviewCommentEditedPropPullRequest, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropReviewPropLinks as WebhookPullRequestReviewDismissedPropReviewPropLinks, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropBase as WebhookPullRequestSynchronizePropPullRequestPropBase, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropHead as WebhookPullRequestSynchronizePropPullRequestPropHead, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropUser as WebhookPullRequestSynchronizePropPullRequestPropUser, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLinks as WebhookPullRequestUnassignedPropPullRequestPropLinks, ) - from .group_0700 import ( + from .group_0709 import ( WebhookSecretScanningAlertLocationCreatedFormEncoded as WebhookSecretScanningAlertLocationCreatedFormEncoded, ) - from .group_0706 import ( + from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory, ) - from .group_0721 import ( + from .group_0730 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0 as WebhookStatusPropCommitPropCommitPropCommitterAllof0, ) - from .group_0722 import ( + from .group_0731 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1 as WebhookStatusPropCommitPropCommitPropCommitterAllof1, ) - from .group_0725 import ( + from .group_0734 import ( WebhookTeamCreatedPropRepositoryPropCustomProperties as WebhookTeamCreatedPropRepositoryPropCustomProperties, ) - from .group_0726 import ( + from .group_0735 import ( WebhookTeamDeletedPropRepositoryPropCustomProperties as WebhookTeamDeletedPropRepositoryPropCustomProperties, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropActor as WebhookWorkflowRunInProgressPropWorkflowRunPropActor, ) - from .group_0776 import ( + from .group_0786 import ( OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200 as OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200, ) - from .group_0819 import ( + from .group_0836 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422 as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422, ) - from .group_0908 import ( + from .group_0928 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, ) - from .group_0914 import ( + from .group_0934 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody, ) - from .group_0172 import ( + from .group_1093 import ( + UsersUsernameAttestationsSubjectDigestGetResponse200 as UsersUsernameAttestationsSubjectDigestGetResponse200, + ) + from .group_0177 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItems as WorkflowRunUsagePropBillablePropMacosPropJobRunsItems, ) - from .group_0388 import ( + from .group_0393 import ( WebhooksIssuePropPerformedViaGithubAppPropPermissions as WebhooksIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof0 as WebhooksPullRequest5PropRequestedReviewersItemsOneof0, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1 as WebhooksPullRequest5PropRequestedReviewersItemsOneof1, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropRequestedTeamsItemsPropParent as WebhooksPullRequest5PropRequestedTeamsItemsPropParent, ) - from .group_0435 import ( + from .group_0441 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRule as WebhookCodeScanningAlertClosedByUserPropAlertPropRule, ) - from .group_0435 import ( + from .group_0441 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropTool as WebhookCodeScanningAlertClosedByUserPropAlertPropTool, ) - from .group_0437 import ( + from .group_0443 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedBy as WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepository as WebhookDeploymentCreatedPropWorkflowRunPropRepository, ) - from .group_0500 import ( + from .group_0506 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssignee as WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, ) - from .group_0505 import ( + from .group_0511 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssignee as WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, ) - from .group_0511 import ( + from .group_0517 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssignee as WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, ) - from .group_0516 import ( + from .group_0522 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssignee as WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, ) - from .group_0521 import ( + from .group_0527 import ( WebhookIssueCommentEditedPropIssueAllof0PropReactions as WebhookIssueCommentEditedPropIssueAllof0PropReactions, ) - from .group_0524 import ( + from .group_0530 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestone as WebhookIssueCommentEditedPropIssueAllof0PropMilestone, ) - from .group_0527 import ( + from .group_0533 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestone as WebhookIssueCommentEditedPropIssueAllof1PropMilestone, ) - from .group_0527 import ( + from .group_0533 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactions as WebhookIssueCommentEditedPropIssueAllof1PropReactions, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreator as WebhookIssuesDeletedPropIssuePropMilestonePropCreator, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubApp as WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreator as WebhookIssuesLabeledPropIssuePropMilestonePropCreator, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubApp as WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropAssignee as WebhookPullRequestAssignedPropPullRequestPropAssignee, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropMergedBy as WebhookPullRequestAssignedPropPullRequestPropMergedBy, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropAssignee as WebhookPullRequestDequeuedPropPullRequestPropAssignee, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedBy as WebhookPullRequestDequeuedPropPullRequestPropMergedBy, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssignee as WebhookPullRequestEnqueuedPropPullRequestPropAssignee, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedBy as WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMerge as WebhookPullRequestLabeledPropPullRequestPropAutoMerge, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropMilestone as WebhookPullRequestLabeledPropPullRequestPropMilestone, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequest as WebhookPullRequestReviewCommentCreatedPropPullRequest, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequest as WebhookPullRequestReviewCommentDeletedPropPullRequest, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropBase as WebhookPullRequestReviewEditedPropPullRequestPropBase, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropHead as WebhookPullRequestReviewEditedPropPullRequestPropHead, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropUser as WebhookPullRequestReviewEditedPropPullRequestPropUser, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequest as WebhookPullRequestReviewThreadResolvedPropPullRequest, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLinks as WebhookPullRequestSynchronizePropPullRequestPropLinks, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropAssignee as WebhookPullRequestUnlockedPropPullRequestPropAssignee, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedBy as WebhookPullRequestUnlockedPropPullRequestPropMergedBy, ) - from .group_0724 import ( + from .group_0733 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicense as WebhookTeamAddedToRepositoryPropRepositoryPropLicense, ) - from .group_0731 import ( + from .group_0740 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps as WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps, ) - from .group_0737 import ( + from .group_0746 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems, ) - from .group_0772 import ( + from .group_0782 import ( OrgsOrgActionsRunnersGenerateJitconfigPostResponse201 as OrgsOrgActionsRunnersGenerateJitconfigPostResponse201, ) - from .group_0784 import ( + from .group_0794 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200 as OrgsOrgActionsVariablesNameRepositoriesGetResponse200, ) - from .group_0793 import ( + from .group_0809 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody, ) - from .group_0805 import ( + from .group_0822 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody, ) - from .group_0870 import ( + from .group_0887 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody, ) - from .group_0874 import ( + from .group_0891 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200 as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200, ) - from .group_0879 import ( + from .group_0896 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody, ) - from .group_0923 import ( + from .group_0907 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200 as ReposOwnerRepoAttestationsSubjectDigestGetResponse200, + ) + from .group_0943 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaults as ReposOwnerRepoCodespacesNewGetResponse200PropDefaults, ) - from .group_0936 import ( + from .group_0956 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201 as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201, ) - from .group_0939 import ( + from .group_0959 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody, ) - from .group_1005 import ( + from .group_1025 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody, ) - from .group_0172 import ( + from .group_0177 import ( WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems as WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems, ) - from .group_0352 import ( + from .group_0357 import ( TopicSearchResultItemPropAliasesItemsPropTopicRelation as TopicSearchResultItemPropAliasesItemsPropTopicRelation, ) - from .group_0352 import ( + from .group_0357 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelation as TopicSearchResultItemPropRelatedItemsPropTopicRelation, ) - from .group_0390 import ( + from .group_0395 import ( WebhooksIssue2PropPerformedViaGithubAppPropPermissions as WebhooksIssue2PropPerformedViaGithubAppPropPermissions, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, ) - from .group_0499 import ( + from .group_0505 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactions as WebhookIssueCommentCreatedPropIssueAllof0PropReactions, ) - from .group_0502 import ( + from .group_0508 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestone as WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, ) - from .group_0505 import ( + from .group_0511 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestone as WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, ) - from .group_0505 import ( + from .group_0511 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactions as WebhookIssueCommentCreatedPropIssueAllof1PropReactions, ) - from .group_0510 import ( + from .group_0516 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactions as WebhookIssueCommentDeletedPropIssueAllof0PropReactions, ) - from .group_0513 import ( + from .group_0519 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestone as WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, ) - from .group_0516 import ( + from .group_0522 import ( WebhookIssueCommentDeletedPropIssueAllof1PropMilestone as WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, ) - from .group_0516 import ( + from .group_0522 import ( WebhookIssueCommentDeletedPropIssueAllof1PropReactions as WebhookIssueCommentDeletedPropIssueAllof1PropReactions, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp as WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp as WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee as WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropMilestonePropCreator as WebhookIssuesReopenedPropIssuePropMilestonePropCreator, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropMilestonePropCreator as WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, ) - from .group_0628 import ( + from .group_0635 import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropBody as WebhookProjectsV2StatusUpdateEditedPropChangesPropBody, + ) + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMerge as WebhookPullRequestAssignedPropPullRequestPropAutoMerge, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropMilestone as WebhookPullRequestAssignedPropPullRequestPropMilestone, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMerge as WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestone as WebhookPullRequestDequeuedPropPullRequestPropMilestone, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge as WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestone as WebhookPullRequestEnqueuedPropPullRequestPropMilestone, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItems as WebhookPullRequestLockedPropPullRequestPropLabelsItems, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinks as WebhookPullRequestReviewEditedPropPullRequestPropLinks, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequest as WebhookPullRequestReviewRequestedOneof0PropPullRequest, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequest as WebhookPullRequestReviewRequestedOneof1PropPullRequest, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssignee as WebhookPullRequestUnlabeledPropPullRequestPropAssignee, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedBy as WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMerge as WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestone as WebhookPullRequestUnlockedPropPullRequestPropMilestone, ) - from .group_0734 import ( + from .group_0743 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps as WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps, ) - from .group_0738 import ( + from .group_0747 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems, ) - from .group_0821 import ( + from .group_0762 import ( + EnterprisesEnterpriseCopilotBillingSeatsGetResponse200 as EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, + ) + from .group_0838 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody, ) - from .group_0866 import ( + from .group_0883 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200 as ReposOwnerRepoActionsOrganizationSecretsGetResponse200, ) - from .group_0968 import ( + from .group_0988 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody, ) - from .group_1029 import ( + from .group_1049 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody, ) - from .group_1039 import ( + from .group_1059 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_0172 import ( + from .group_0177 import ( WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems as WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems, ) - from .group_0204 import ( + from .group_0209 import ( CodeScanningVariantAnalysisPropScannedRepositoriesItems as CodeScanningVariantAnalysisPropScannedRepositoriesItems, ) - from .group_0370 import ( + from .group_0375 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissions as RepositoryWebhooksPropTemplateRepositoryPropPermissions, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOther as PersonalAccessTokenRequestPropPermissionsAddedPropOther, ) - from .group_0439 import ( + from .group_0445 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRule as WebhookCodeScanningAlertReopenedByUserPropAlertPropRule, ) - from .group_0439 import ( + from .group_0445 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropTool as WebhookCodeScanningAlertReopenedByUserPropAlertPropTool, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0 as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreator as WebhookDeploymentStatusCreatedPropDeploymentPropCreator, ) - from .group_0463 import ( + from .group_0469 import ( WebhookDiscussionCategoryChangedPropChangesPropCategory as WebhookDiscussionCategoryChangedPropChangesPropCategory, ) - from .group_0522 import ( + from .group_0528 import ( WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems as WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, ) - from .group_0522 import ( + from .group_0528 import ( WebhookIssueCommentEditedPropIssueAllof0PropPullRequest as WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, ) - from .group_0527 import ( + from .group_0533 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems, ) - from .group_0541 import ( + from .group_0547 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp as WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactions as WebhookIssuesOpenedPropChangesPropOldIssuePropReactions, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp as WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUser as WebhookIssuesTransferredPropChangesPropNewIssuePropUser, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, ) - from .group_0604 import ( + from .group_0610 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreator as WebhookProjectCardMovedPropProjectCardAllof0PropCreator, ) - from .group_0605 import ( + from .group_0611 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreator as WebhookProjectCardMovedPropProjectCardAllof1PropCreator, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItems as WebhookPullRequestLabeledPropPullRequestPropLabelsItems, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepo as WebhookPullRequestLockedPropPullRequestPropBasePropRepo, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUser as WebhookPullRequestLockedPropPullRequestPropBasePropUser, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepo as WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUser as WebhookPullRequestLockedPropPullRequestPropHeadPropUser, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropPullRequest, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropAssignee as WebhookPullRequestUnassignedPropPullRequestPropAssignee, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedBy as WebhookPullRequestUnassignedPropPullRequestPropMergedBy, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge as WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestone as WebhookPullRequestUnlabeledPropPullRequestPropMilestone, ) - from .group_0688 import ( + from .group_0697 import ( WebhookRepositoryRulesetEditedPropChangesPropConditions as WebhookRepositoryRulesetEditedPropChangesPropConditions, ) - from .group_0728 import ( + from .group_0737 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner, ) - from .group_0753 import ( + from .group_0763 import ( EnterprisesEnterpriseSecretScanningAlertsGetResponse503 as EnterprisesEnterpriseSecretScanningAlertsGetResponse503, ) - from .group_0975 import ( + from .group_0995 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items, ) - from .group_1021 import ( + from .group_1041 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202 as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202, ) - from .group_1042 import ( + from .group_1062 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_0330 import ( + from .group_0054 import ( + SecurityAndAnalysisPropSecretScanningNonProviderPatterns as SecurityAndAnalysisPropSecretScanningNonProviderPatterns, + ) + from .group_0335 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItems as PrivateVulnerabilityReportCreatePropVulnerabilitiesItems, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsResultPropOther as PersonalAccessTokenRequestPropPermissionsResultPropOther, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit, ) - from .group_0438 import ( + from .group_0444 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy as WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropActor, ) - from .group_0500 import ( + from .group_0506 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, ) - from .group_0500 import ( + from .group_0506 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, ) - from .group_0505 import ( + from .group_0511 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems, ) - from .group_0511 import ( + from .group_0517 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, ) - from .group_0511 import ( + from .group_0517 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, ) - from .group_0516 import ( + from .group_0522 import ( WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems as WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropMilestonePropCreator as WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, ) - from .group_0618 import ( + from .group_0624 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescription as WebhookProjectsV2ProjectEditedPropChangesPropDescription, ) - from .group_0620 import ( + from .group_0626 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentType as WebhookProjectsV2ItemConvertedPropChangesPropContentType, ) - from .group_0628 import ( + from .group_0635 import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus as WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus, + ) + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItems as WebhookPullRequestAssignedPropPullRequestPropLabelsItems, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItems as WebhookPullRequestDequeuedPropPullRequestPropLabelsItems, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepo as WebhookPullRequestLabeledPropPullRequestPropBasePropRepo, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUser as WebhookPullRequestLabeledPropPullRequestPropBasePropUser, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUser as WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtml as WebhookPullRequestLockedPropPullRequestPropLinksPropHtml, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelf as WebhookPullRequestLockedPropPullRequestPropLinksPropSelf, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBase as WebhookPullRequestReviewDismissedPropPullRequestPropBase, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHead as WebhookPullRequestReviewDismissedPropPullRequestPropHead, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropUser, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestedOneof1PropRequestedTeam, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBase as WebhookPullRequestReviewSubmittedPropPullRequestPropBase, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHead as WebhookPullRequestReviewSubmittedPropPullRequestPropHead, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropUser, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropAssignee as WebhookPullRequestSynchronizePropPullRequestPropAssignee, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedBy as WebhookPullRequestSynchronizePropPullRequestPropMergedBy, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMerge as WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestone as WebhookPullRequestUnassignedPropPullRequestPropMilestone, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItems as WebhookPullRequestUnlockedPropPullRequestPropLabelsItems, ) - from .group_0687 import ( + from .group_0696 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcement as WebhookRepositoryRulesetEditedPropChangesPropEnforcement, ) - from .group_0692 import ( + from .group_0701 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFrom as WebhookRepositoryTransferredPropChangesPropOwnerPropFrom, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropRepository, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropRepository, ) - from .group_0834 import ( + from .group_0851 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody, ) - from .group_0867 import ( + from .group_0884 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200 as ReposOwnerRepoActionsOrganizationVariablesGetResponse200, ) - from .group_0877 import ( + from .group_0894 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody, ) - from .group_0905 import ( + from .group_0925 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems, ) - from .group_0978 import ( + from .group_0998 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items, ) - from .group_0089 import ( + from .group_0094 import ( OrganizationProgrammaticAccessGrantRequestPropPermissions as OrganizationProgrammaticAccessGrantRequestPropPermissions, ) - from .group_0178 import ( + from .group_0183 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictions as ProtectedBranchPullRequestReviewPropDismissalRestrictions, ) - from .group_0434 import ( + from .group_0440 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule, ) - from .group_0434 import ( + from .group_0440 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool as WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest, ) - from .group_0581 import ( + from .group_0587 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviter as WebhookOrganizationMemberInvitedPropInvitationPropInviter, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepo as WebhookPullRequestAssignedPropPullRequestPropBasePropRepo, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUser as WebhookPullRequestAssignedPropPullRequestPropBasePropUser, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUser as WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUser as WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItems as WebhookPullRequestLockedPropPullRequestPropAssigneesItems, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssue as WebhookPullRequestLockedPropPullRequestPropLinksPropIssue, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUser as WebhookPullRequestReviewCommentCreatedPropCommentPropUser, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinks as WebhookPullRequestReviewDismissedPropPullRequestPropLinks, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssignee as WebhookPullRequestReviewEditedPropPullRequestPropAssignee, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinks as WebhookPullRequestReviewSubmittedPropPullRequestPropLinks, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMerge as WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestone as WebhookPullRequestSynchronizePropPullRequestPropMilestone, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUser as WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, ) - from .group_0664 import ( + from .group_0673 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner, ) - from .group_0683 import ( + from .group_0692 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropName as WebhookRepositoryRenamedPropChangesPropRepositoryPropName, ) - from .group_0724 import ( + from .group_0733 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissions as WebhookTeamAddedToRepositoryPropRepositoryPropPermissions, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissions as WebhookTeamEditedPropChangesPropRepositoryPropPermissions, ) - from .group_0728 import ( + from .group_0737 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropRepository, ) - from .group_0779 import ( + from .group_0789 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1000 import ( + from .group_0798 import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, + ) + from .group_1020 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200 as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200, ) - from .group_1015 import ( + from .group_1035 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody, ) - from .group_1053 import ( + from .group_1073 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200 as UserCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_1063 import ( + from .group_1083 import ( UserInstallationsInstallationIdRepositoriesGetResponse200 as UserInstallationsInstallationIdRepositoriesGetResponse200, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOther as PersonalAccessTokenRequestPropPermissionsUpgradedPropOther, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0521 import ( + from .group_0527 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, ) - from .group_0527 import ( + from .group_0533 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, ) - from .group_0534 import ( + from .group_0540 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, ) - from .group_0623 import ( + from .group_0629 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItems as WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinks as WebhookPullRequestReviewCommentCreatedPropCommentPropLinks, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestone as WebhookPullRequestReviewEditedPropPullRequestPropMilestone, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItems as WebhookPullRequestUnassignedPropPullRequestPropLabelsItems, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf, ) - from .group_0853 import ( + from .group_0870 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems, ) - from .group_0886 import ( + from .group_0903 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody, ) - from .group_0887 import ( + from .group_0904 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200 as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200, ) - from .group_0908 import ( + from .group_0928 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, ) - from .group_0948 import ( + from .group_0968 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody, ) - from .group_1019 import ( + from .group_1039 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody, ) - from .group_0027 import ( + from .group_0031 import ( DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion as DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion, ) - from .group_0090 import ( + from .group_0095 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOther as OrganizationProgrammaticAccessGrantPropPermissionsPropOther, ) - from .group_0246 import ( + from .group_0251 import ( EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems as EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems, ) - from .group_0329 import ( + from .group_0334 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage, ) - from .group_0331 import ( + from .group_0336 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage, ) - from .group_0414 import ( + from .group_0420 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository, ) - from .group_0499 import ( + from .group_0505 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, ) - from .group_0505 import ( + from .group_0511 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, ) - from .group_0510 import ( + from .group_0516 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, ) - from .group_0516 import ( + from .group_0522 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, ) - from .group_0537 import ( + from .group_0543 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0539 import ( + from .group_0545 import ( WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee as WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, ) - from .group_0628 import ( + from .group_0635 import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate, + ) + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItems as WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommits as WebhookPullRequestLockedPropPullRequestPropLinksPropCommits, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItems as WebhookPullRequestSynchronizePropPullRequestPropLabelsItems, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUser as WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue, ) - from .group_0661 import ( + from .group_0670 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwner as WebhookRegistryPackagePublishedPropRegistryPackagePropOwner, ) - from .group_0398 import ( + from .group_1093 import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems, + ) + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepository as PersonalAccessTokenRequestPropPermissionsAddedPropRepository, ) - from .group_0435 import ( + from .group_0441 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, ) - from .group_0437 import ( + from .group_0443 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactions as WebhookIssuesTransferredPropChangesPropNewIssuePropReactions, ) - from .group_0590 import ( + from .group_0596 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, ) - from .group_0637 import ( + from .group_0635 import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate as WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate, + ) + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropComments as WebhookPullRequestLockedPropPullRequestPropLinksPropComments, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBase as WebhookPullRequestReviewCommentEditedPropPullRequestPropBase, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHead as WebhookPullRequestReviewCommentEditedPropPullRequestPropHead, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssignee as WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee as WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUser as WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue, ) - from .group_0664 import ( + from .group_0673 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, ) - from .group_0706 import ( + from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0792 import ( + from .group_0808 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0804 import ( + from .group_0821 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200 as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200, ) - from .group_0913 import ( + from .group_0905 import ( + ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope, + ) + from .group_0933 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200 as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200, ) - from .group_0103 import ( + from .group_0108 import ( RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId as RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId, ) - from .group_0195 import ( + from .group_0200 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepository as PersonalAccessTokenRequestPropPermissionsResultPropRepository, ) - from .group_0422 import ( + from .group_0428 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1 as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator, ) - from .group_0529 import ( + from .group_0535 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, ) - from .group_0590 import ( + from .group_0596 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease as WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease, ) - from .group_0618 import ( + from .group_0624 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescription as WebhookProjectsV2ProjectEditedPropChangesPropShortDescription, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropComments, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestone as WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits, ) - from .group_0728 import ( + from .group_0737 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0848 import ( + from .group_0865 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems, ) - from .group_0849 import ( + from .group_0866 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems, ) - from .group_0889 import ( + from .group_0909 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, ) - from .group_0905 import ( + from .group_0925 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems, ) - from .group_0915 import ( + from .group_0935 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0, ) - from .group_0916 import ( + from .group_0936 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1, ) - from .group_0917 import ( + from .group_0937 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2 as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2, ) - from .group_0969 import ( + from .group_0989 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1 as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1, ) - from .group_1009 import ( + from .group_1029 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody, ) - from .group_1013 import ( + from .group_1033 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0, ) - from .group_1014 import ( + from .group_1034 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1 as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1, ) - from .group_1016 import ( + from .group_1036 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems, ) - from .group_1018 import ( + from .group_1038 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganization as PersonalAccessTokenRequestPropPermissionsAddedPropOrganization, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0436 import ( + from .group_0442 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer, ) - from .group_0507 import ( + from .group_0513 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, ) - from .group_0518 import ( + from .group_0524 import ( WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropComments, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactions as WebhookPullRequestReviewCommentCreatedPropCommentPropReactions, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses, ) - from .group_0661 import ( + from .group_0670 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, ) - from .group_0724 import ( + from .group_0733 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties as WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties, ) - from .group_0732 import ( + from .group_0741 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems, ) - from .group_0733 import ( + from .group_0742 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, ) - from .group_0945 import ( + from .group_0799 import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, + ) + from .group_0965 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200, ) - from .group_0178 import ( + from .group_0183 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganization as PersonalAccessTokenRequestPropPermissionsResultPropOrganization, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent as WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems, ) - from .group_0438 import ( + from .group_0444 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository, ) - from .group_0463 import ( + from .group_0469 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropRelease as WebhookPackagePublishedPropPackagePropPackageVersionPropRelease, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses, ) - from .group_0669 import ( + from .group_0678 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, ) - from .group_0735 import ( + from .group_0744 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems, ) - from .group_0736 import ( + from .group_0745 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0835 import ( + from .group_0800 import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, + ) + from .group_0852 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody, ) - from .group_0949 import ( + from .group_0969 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody, ) - from .group_0090 import ( + from .group_1093 import ( + SigstoreBundle0PropVerificationMaterialPropX509CertificateChain as SigstoreBundle0PropVerificationMaterialPropX509CertificateChain, + ) + from .group_0095 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantPropPermissionsPropRepository, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions, ) - from .group_0434 import ( + from .group_0440 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, ) - from .group_0491 import ( + from .group_0497 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems, ) - from .group_0523 import ( + from .group_0529 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0560 import ( + from .group_0566 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems, ) - from .group_0692 import ( + from .group_0701 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, ) - from .group_0695 import ( + from .group_0704 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, ) - from .group_0697 import ( + from .group_0706 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, ) - from .group_0838 import ( + from .group_0855 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody, ) - from .group_0862 import ( + from .group_0879 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning, ) - from .group_0947 import ( + from .group_0967 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200, ) - from .group_0101 import ( + from .group_0106 import ( RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName as RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository, ) - from .group_0501 import ( + from .group_0507 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0512 import ( + from .group_0518 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, ) - from .group_0526 import ( + from .group_0532 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0527 import ( + from .group_0533 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, ) - from .group_0706 import ( + from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0946 import ( + from .group_0966 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody, ) - from .group_0974 import ( + from .group_0994 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems, ) - from .group_0089 import ( + from .group_0094 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther, ) - from .group_0090 import ( + from .group_0095 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization, ) - from .group_0433 import ( + from .group_0428 import ( + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync as WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync, + ) + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems, ) - from .group_0492 import ( + from .group_0498 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems, ) - from .group_0504 import ( + from .group_0510 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0505 import ( + from .group_0511 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0515 import ( + from .group_0521 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, ) - from .group_0516 import ( + from .group_0522 import ( WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp as WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1 as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0665 import ( + from .group_0674 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, ) - from .group_0691 import ( + from .group_0700 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, ) - from .group_0728 import ( + from .group_0737 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0862 import ( + from .group_0879 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity, ) - from .group_0941 import ( + from .group_0961 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems, ) - from .group_0977 import ( + from .group_0997 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems, ) - from .group_0205 import ( + from .group_0210 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos as CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos, ) - from .group_0330 import ( + from .group_0335 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0435 import ( + from .group_0441 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata, ) - from .group_0590 import ( + from .group_0596 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor, ) - from .group_0891 import ( + from .group_0796 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems, + ) + from .group_0911 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody, ) - from .group_0895 import ( + from .group_0915 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0, ) - from .group_0908 import ( + from .group_0928 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems, ) - from .group_0422 import ( + from .group_0428 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames, ) - from .group_0422 import ( + from .group_0428 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly, ) - from .group_0422 import ( + from .group_0428 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0536 import ( + from .group_0542 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, ) - from .group_0886 import ( + from .group_0903 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs, ) - from .group_0896 import ( + from .group_0905 import ( + ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial, + ) + from .group_0916 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0, ) - from .group_0898 import ( + from .group_0918 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0, ) - from .group_0901 import ( + from .group_0921 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0, ) - from .group_1040 import ( + from .group_1060 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_0237 import ( + from .group_1093 import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId, + ) + from .group_0242 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter, ) - from .group_0439 import ( + from .group_0445 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0875 import ( + from .group_0892 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200 as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200, ) - from .group_0889 import ( + from .group_0909 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, ) - from .group_0899 import ( + from .group_0919 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0, ) - from .group_0902 import ( + from .group_0922 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0, ) - from .group_0190 import ( + from .group_0195 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0561 import ( + from .group_0567 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0897 import ( + from .group_0801 import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, + ) + from .group_0917 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0, ) - from .group_0089 import ( + from .group_0094 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository, ) - from .group_0414 import ( + from .group_0420 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0433 import ( + from .group_0428 import ( + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval as WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval, + ) + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead, ) - from .group_0434 import ( + from .group_0440 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance, ) - from .group_0437 import ( + from .group_0443 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, ) - from .group_0562 import ( + from .group_0568 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase, ) - from .group_0590 import ( + from .group_0596 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0590 import ( + from .group_0596 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments, ) - from .group_0689 import ( + from .group_0698 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, ) - from .group_0706 import ( + from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0900 import ( + from .group_0920 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0, ) - from .group_0903 import ( + from .group_0923 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0, ) - from .group_0912 import ( + from .group_0932 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems, ) - from .group_0437 import ( + from .group_0443 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties, ) - from .group_0560 import ( + from .group_0566 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0692 import ( + from .group_0701 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization, ) - from .group_0706 import ( + from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0908 import ( + from .group_0928 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems, ) - from .group_0089 import ( + from .group_0094 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization, ) - from .group_0105 import ( + from .group_0110 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, ) - from .group_0436 import ( + from .group_0442 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0590 import ( + from .group_0596 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0624 import ( + from .group_0630 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0890 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody, ) - from .group_0921 import ( + from .group_0941 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems, ) - from .group_0436 import ( + from .group_1093 import ( + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems, + ) + from .group_0428 import ( + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel, + ) + from .group_0442 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0438 import ( + from .group_0444 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0525 import ( + from .group_0531 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0536 import ( + from .group_0542 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0943 import ( + from .group_0907 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems, + ) + from .group_0963 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody, ) - from .group_0438 import ( + from .group_1093 import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion, + ) + from .group_0444 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp, ) - from .group_0503 import ( + from .group_0509 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0514 import ( + from .group_0520 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, ) - from .group_0560 import ( + from .group_0566 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0889 import ( + from .group_0909 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, ) - from .group_0190 import ( + from .group_0195 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0665 import ( + from .group_0674 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0706 import ( + from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems, ) - from .group_1041 import ( + from .group_1061 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_0422 import ( + from .group_0428 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0665 import ( + from .group_0674 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0691 import ( + from .group_0700 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges, ) - from .group_0836 import ( + from .group_0796 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, + ) + from .group_0853 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody, ) - from .group_0435 import ( + from .group_0441 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner, ) - from .group_0561 import ( + from .group_0567 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor, ) - from .group_0862 import ( + from .group_0879 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo, ) - from .group_0435 import ( + from .group_0441 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0562 import ( + from .group_0568 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0892 import ( + from .group_0912 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0, ) - from .group_0942 import ( + from .group_0962 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200, ) - from .group_0250 import ( + from .group_1093 import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise, + ) + from .group_0255 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200, ) - from .group_0439 import ( + from .group_0445 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage, ) - from .group_0525 import ( + from .group_0531 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0893 import ( + from .group_0913 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0, ) - from .group_0439 import ( + from .group_0445 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation, ) - from .group_0503 import ( + from .group_0509 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0514 import ( + from .group_0520 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, ) - from .group_0561 import ( + from .group_0567 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment, ) - from .group_0434 import ( + from .group_0428 import ( + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel, + ) + from .group_0440 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0562 import ( + from .group_0568 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1, ) - from .group_0689 import ( + from .group_0698 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges, ) - from .group_0891 import ( + from .group_0911 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems, ) - from .group_0894 import ( + from .group_0914 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0, ) - from .group_0434 import ( + from .group_0440 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, ) - from .group_0665 import ( + from .group_0674 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0422 import ( + from .group_0879 import ( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns, + ) + from .group_0428 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0889 import ( + from .group_0907 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle, + ) + from .group_0909 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems, ) - from .group_0944 import ( + from .group_0964 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200, ) - from .group_0587 import ( + from .group_1093 import ( + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems, + ) + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems, ) - from .group_0837 import ( + from .group_0854 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0665 import ( + from .group_0674 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0665 import ( + from .group_0674 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0706 import ( + from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage, ) - from .group_0422 import ( + from .group_0428 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0691 import ( + from .group_0700 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor, ) - from .group_0665 import ( + from .group_0674 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0691 import ( + from .group_0700 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, ) - from .group_0689 import ( + from .group_0698 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0689 import ( + from .group_0698 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude, ) - from .group_0689 import ( + from .group_0698 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude, ) - from .group_0662 import ( + from .group_0796 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, + ) + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts, ) - from .group_0691 import ( + from .group_0700 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0890 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies, ) - from .group_0689 import ( + from .group_0698 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType, ) - from .group_0706 import ( + from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, ) - from .group_0889 import ( + from .group_0907 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope, + ) + from .group_0909 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, ) - from .group_0648 import ( + from .group_0796 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, + ) + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, ) - from .group_0890 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, ) - from .group_0889 import ( + from .group_0909 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies, ) + from .group_0907 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial, + ) else: __lazy_vars__ = { ".group_0000": ("Root",), @@ -8135,218 +8290,226 @@ "SimpleClassroom", ), ".group_0024": ("ClassroomAssignmentGrade",), - ".group_0025": ( + ".group_0025": ("TeamSimple",), + ".group_0026": ( + "Team", + "TeamPropPermissions", + ), + ".group_0027": ("OrganizationSimple",), + ".group_0028": ( + "CopilotSeatDetails", + "EnterpriseTeam", + "Organization", + "OrganizationPropPlan", + ), + ".group_0029": ( "CopilotUsageMetrics", "CopilotUsageMetricsPropBreakdownItems", ), - ".group_0026": ("DependabotAlertPackage",), - ".group_0027": ( + ".group_0030": ("DependabotAlertPackage",), + ".group_0031": ( "DependabotAlertSecurityVulnerability", "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion", ), - ".group_0028": ( + ".group_0032": ( "DependabotAlertSecurityAdvisory", "DependabotAlertSecurityAdvisoryPropCvss", "DependabotAlertSecurityAdvisoryPropCwesItems", "DependabotAlertSecurityAdvisoryPropIdentifiersItems", "DependabotAlertSecurityAdvisoryPropReferencesItems", ), - ".group_0029": ("SimpleRepository",), - ".group_0030": ("DependabotAlertWithRepository",), - ".group_0031": ("DependabotAlertWithRepositoryPropDependency",), - ".group_0032": ("OrganizationSecretScanningAlert",), - ".group_0033": ("Milestone",), - ".group_0034": ("ReactionRollup",), - ".group_0035": ( + ".group_0033": ("SimpleRepository",), + ".group_0034": ("DependabotAlertWithRepository",), + ".group_0035": ("DependabotAlertWithRepositoryPropDependency",), + ".group_0036": ("OrganizationSecretScanningAlert",), + ".group_0037": ("Milestone",), + ".group_0038": ("ReactionRollup",), + ".group_0039": ( "Issue", "IssuePropLabelsItemsOneof1", "IssuePropPullRequest", ), - ".group_0036": ("IssueComment",), - ".group_0037": ( + ".group_0040": ("IssueComment",), + ".group_0041": ( "EventPropPayload", "EventPropPayloadPropPagesItems", "Event", "Actor", "EventPropRepo", ), - ".group_0038": ( + ".group_0042": ( "Feed", "FeedPropLinks", "LinkWithType", ), - ".group_0039": ( + ".group_0043": ( "BaseGist", "BaseGistPropFiles", ), - ".group_0040": ( + ".group_0044": ( "GistHistory", "GistHistoryPropChangeStatus", "GistSimplePropForkOf", "GistSimplePropForkOfPropFiles", ), - ".group_0041": ( + ".group_0045": ( "GistSimple", "GistSimplePropFiles", "GistSimplePropForksItems", "PublicUser", "PublicUserPropPlan", ), - ".group_0042": ("GistComment",), - ".group_0043": ( + ".group_0046": ("GistComment",), + ".group_0047": ( "GistCommit", "GistCommitPropChangeStatus", ), - ".group_0044": ("GitignoreTemplate",), - ".group_0045": ("License",), - ".group_0046": ("MarketplaceListingPlan",), - ".group_0047": ("MarketplacePurchase",), - ".group_0048": ( + ".group_0048": ("GitignoreTemplate",), + ".group_0049": ("License",), + ".group_0050": ("MarketplaceListingPlan",), + ".group_0051": ("MarketplacePurchase",), + ".group_0052": ( "MarketplacePurchasePropMarketplacePendingChange", "MarketplacePurchasePropMarketplacePurchase", ), - ".group_0049": ( + ".group_0053": ( "ApiOverview", "ApiOverviewPropSshKeyFingerprints", "ApiOverviewPropDomains", ), - ".group_0050": ( + ".group_0054": ( "SecurityAndAnalysis", "SecurityAndAnalysisPropAdvancedSecurity", "SecurityAndAnalysisPropDependabotSecurityUpdates", "SecurityAndAnalysisPropSecretScanning", "SecurityAndAnalysisPropSecretScanningPushProtection", + "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", ), - ".group_0051": ( + ".group_0055": ( "MinimalRepository", "CodeOfConduct", "MinimalRepositoryPropPermissions", "MinimalRepositoryPropLicense", ), - ".group_0052": ( + ".group_0056": ( "Thread", "ThreadPropSubject", ), - ".group_0053": ("ThreadSubscription",), - ".group_0054": ( + ".group_0057": ("ThreadSubscription",), + ".group_0058": ( "OrganizationFull", "OrganizationFullPropPlan", ), - ".group_0055": ("ActionsCacheUsageOrgEnterprise",), - ".group_0056": ("OidcCustomSub",), - ".group_0057": ("EmptyObject",), - ".group_0058": ("ActionsOrganizationPermissions",), - ".group_0059": ("SelectedActions",), - ".group_0060": ("ActionsGetDefaultWorkflowPermissions",), - ".group_0061": ("ActionsSetDefaultWorkflowPermissions",), - ".group_0062": ("RunnerLabel",), - ".group_0063": ("Runner",), - ".group_0064": ("RunnerApplication",), - ".group_0065": ( + ".group_0059": ("ActionsCacheUsageOrgEnterprise",), + ".group_0060": ("OidcCustomSub",), + ".group_0061": ("ActionsOrganizationPermissions",), + ".group_0062": ("SelectedActions",), + ".group_0063": ("ActionsGetDefaultWorkflowPermissions",), + ".group_0064": ("ActionsSetDefaultWorkflowPermissions",), + ".group_0065": ("RunnerLabel",), + ".group_0066": ("Runner",), + ".group_0067": ("RunnerApplication",), + ".group_0068": ( "AuthenticationToken", "AuthenticationTokenPropPermissions", ), - ".group_0066": ("ActionsPublicKey",), - ".group_0067": ("CodeScanningAlertRuleSummary",), - ".group_0068": ("CodeScanningAnalysisTool",), - ".group_0069": ( + ".group_0069": ("ActionsPublicKey",), + ".group_0070": ("CodeScanningAlertRuleSummary",), + ".group_0071": ("CodeScanningAnalysisTool",), + ".group_0072": ( "CodeScanningAlertInstance", "CodeScanningAlertLocation", "CodeScanningAlertInstancePropMessage", ), - ".group_0070": ("CodeScanningOrganizationAlertItems",), - ".group_0071": ("CodespaceMachine",), - ".group_0072": ( + ".group_0073": ("CodeScanningOrganizationAlertItems",), + ".group_0074": ("CodeSecurityConfiguration",), + ".group_0075": ("CodeSecurityDefaultConfigurationsItems",), + ".group_0076": ("CodeSecurityConfigurationRepositories",), + ".group_0077": ("CodespaceMachine",), + ".group_0078": ( "Codespace", "CodespacePropGitStatus", "CodespacePropRuntimeConstraints", ), - ".group_0073": ("CodespacesPublicKey",), - ".group_0074": ( + ".group_0079": ("CodespacesPublicKey",), + ".group_0080": ( "CopilotOrganizationDetails", "CopilotSeatBreakdown", ), - ".group_0075": ("TeamSimple",), - ".group_0076": ( - "Team", - "TeamPropPermissions", - ), - ".group_0077": ( - "CopilotSeatDetails", - "Organization", - "OrganizationPropPlan", - "OrgsOrgCopilotBillingSeatsGetResponse200", - ), - ".group_0078": ("DependabotPublicKey",), - ".group_0079": ("Package",), - ".group_0080": ("OrganizationInvitation",), - ".group_0081": ( + ".group_0081": ("DependabotPublicKey",), + ".group_0082": ("Package",), + ".group_0083": ("OrganizationInvitation",), + ".group_0084": ( "OrgHook", "OrgHookPropConfig", ), - ".group_0082": ("InteractionLimitResponse",), - ".group_0083": ("InteractionLimit",), - ".group_0084": ( + ".group_0085": ("InteractionLimitResponse",), + ".group_0086": ("InteractionLimit",), + ".group_0087": ( "OrgMembership", - "OrganizationSimple", "OrgMembershipPropPermissions", ), - ".group_0085": ("Migration",), - ".group_0086": ("OrganizationFineGrainedPermission",), - ".group_0087": ( + ".group_0088": ("Migration",), + ".group_0089": ("OrganizationFineGrainedPermission",), + ".group_0090": ( "OrganizationRole", "OrgsOrgOrganizationRolesGetResponse200", ), - ".group_0088": ( + ".group_0091": ( + "TeamRoleAssignment", + "TeamRoleAssignmentPropPermissions", + ), + ".group_0092": ("UserRoleAssignment",), + ".group_0093": ( "PackageVersion", "PackageVersionPropMetadata", "PackageVersionPropMetadataPropContainer", "PackageVersionPropMetadataPropDocker", ), - ".group_0089": ( + ".group_0094": ( "OrganizationProgrammaticAccessGrantRequest", "OrganizationProgrammaticAccessGrantRequestPropPermissions", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", ), - ".group_0090": ( + ".group_0095": ( "OrganizationProgrammaticAccessGrant", "OrganizationProgrammaticAccessGrantPropPermissions", "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", ), - ".group_0091": ("Project",), - ".group_0092": ("OrgCustomProperty",), - ".group_0093": ("CustomPropertyValue",), - ".group_0094": ("OrgRepoCustomPropertyValues",), - ".group_0095": ("CodeOfConductSimple",), - ".group_0096": ( + ".group_0096": ("Project",), + ".group_0097": ("OrgCustomProperty",), + ".group_0098": ("CustomPropertyValue",), + ".group_0099": ("OrgRepoCustomPropertyValues",), + ".group_0100": ("CodeOfConductSimple",), + ".group_0101": ( "FullRepository", "FullRepositoryPropPermissions", "FullRepositoryPropCustomProperties", ), - ".group_0097": ("RepositoryRulesetBypassActor",), - ".group_0098": ("RepositoryRulesetConditions",), - ".group_0099": ("RepositoryRulesetConditionsPropRefName",), - ".group_0100": ("RepositoryRulesetConditionsRepositoryNameTarget",), - ".group_0101": ( + ".group_0102": ("RepositoryRulesetBypassActor",), + ".group_0103": ("RepositoryRulesetConditions",), + ".group_0104": ("RepositoryRulesetConditionsPropRefName",), + ".group_0105": ("RepositoryRulesetConditionsRepositoryNameTarget",), + ".group_0106": ( "RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName", ), - ".group_0102": ("RepositoryRulesetConditionsRepositoryIdTarget",), - ".group_0103": ( + ".group_0107": ("RepositoryRulesetConditionsRepositoryIdTarget",), + ".group_0108": ( "RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId", ), - ".group_0104": ("RepositoryRulesetConditionsRepositoryPropertyTarget",), - ".group_0105": ( + ".group_0109": ("RepositoryRulesetConditionsRepositoryPropertyTarget",), + ".group_0110": ( "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", "RepositoryRulesetConditionsRepositoryPropertySpec", ), - ".group_0106": ("OrgRulesetConditionsOneof0",), - ".group_0107": ("OrgRulesetConditionsOneof1",), - ".group_0108": ("OrgRulesetConditionsOneof2",), - ".group_0109": ( + ".group_0111": ("OrgRulesetConditionsOneof0",), + ".group_0112": ("OrgRulesetConditionsOneof1",), + ".group_0113": ("OrgRulesetConditionsOneof2",), + ".group_0114": ( "RepositoryRuleCreation", "RepositoryRuleDeletion", "RepositoryRuleRequiredSignatures", @@ -8356,61 +8519,61 @@ "RepositoryRuleOneof16", "RepositoryRuleOneof16PropParameters", ), - ".group_0110": ("RepositoryRuleUpdate",), - ".group_0111": ("RepositoryRuleUpdatePropParameters",), - ".group_0112": ( + ".group_0115": ("RepositoryRuleUpdate",), + ".group_0116": ("RepositoryRuleUpdatePropParameters",), + ".group_0117": ( "RepositoryRuleRequiredLinearHistory", "RepositoryRuleOneof15", "RepositoryRuleOneof15PropParameters", ), - ".group_0113": ("RepositoryRuleRequiredDeployments",), - ".group_0114": ("RepositoryRuleRequiredDeploymentsPropParameters",), - ".group_0115": ("RepositoryRulePullRequest",), - ".group_0116": ("RepositoryRulePullRequestPropParameters",), - ".group_0117": ("RepositoryRuleRequiredStatusChecks",), - ".group_0118": ( + ".group_0118": ("RepositoryRuleRequiredDeployments",), + ".group_0119": ("RepositoryRuleRequiredDeploymentsPropParameters",), + ".group_0120": ("RepositoryRulePullRequest",), + ".group_0121": ("RepositoryRulePullRequestPropParameters",), + ".group_0122": ("RepositoryRuleRequiredStatusChecks",), + ".group_0123": ( "RepositoryRuleRequiredStatusChecksPropParameters", "RepositoryRuleParamsStatusCheckConfiguration", ), - ".group_0119": ("RepositoryRuleCommitMessagePattern",), - ".group_0120": ("RepositoryRuleCommitMessagePatternPropParameters",), - ".group_0121": ("RepositoryRuleCommitAuthorEmailPattern",), - ".group_0122": ("RepositoryRuleCommitAuthorEmailPatternPropParameters",), - ".group_0123": ("RepositoryRuleCommitterEmailPattern",), - ".group_0124": ("RepositoryRuleCommitterEmailPatternPropParameters",), - ".group_0125": ("RepositoryRuleBranchNamePattern",), - ".group_0126": ("RepositoryRuleBranchNamePatternPropParameters",), - ".group_0127": ("RepositoryRuleTagNamePattern",), - ".group_0128": ("RepositoryRuleTagNamePatternPropParameters",), - ".group_0129": ("RepositoryRuleParamsRestrictedCommits",), - ".group_0130": ("RepositoryRuleWorkflows",), - ".group_0131": ( + ".group_0124": ("RepositoryRuleCommitMessagePattern",), + ".group_0125": ("RepositoryRuleCommitMessagePatternPropParameters",), + ".group_0126": ("RepositoryRuleCommitAuthorEmailPattern",), + ".group_0127": ("RepositoryRuleCommitAuthorEmailPatternPropParameters",), + ".group_0128": ("RepositoryRuleCommitterEmailPattern",), + ".group_0129": ("RepositoryRuleCommitterEmailPatternPropParameters",), + ".group_0130": ("RepositoryRuleBranchNamePattern",), + ".group_0131": ("RepositoryRuleBranchNamePatternPropParameters",), + ".group_0132": ("RepositoryRuleTagNamePattern",), + ".group_0133": ("RepositoryRuleTagNamePatternPropParameters",), + ".group_0134": ("RepositoryRuleParamsRestrictedCommits",), + ".group_0135": ("RepositoryRuleWorkflows",), + ".group_0136": ( "RepositoryRuleWorkflowsPropParameters", "RepositoryRuleParamsWorkflowFileReference", ), - ".group_0132": ("RepositoryRuleCodeScanning",), - ".group_0133": ( + ".group_0137": ("RepositoryRuleCodeScanning",), + ".group_0138": ( "RepositoryRuleCodeScanningPropParameters", "RepositoryRuleParamsCodeScanningTool", ), - ".group_0134": ( + ".group_0139": ( "RepositoryRuleOneof17", "RepositoryRuleOneof17PropParameters", ), - ".group_0135": ( + ".group_0140": ( "RepositoryRuleset", "RepositoryRulesetPropLinks", "RepositoryRulesetPropLinksPropSelf", "RepositoryRulesetPropLinksPropHtml", ), - ".group_0136": ("RuleSuitesItems",), - ".group_0137": ( + ".group_0141": ("RuleSuitesItems",), + ".group_0142": ( "RuleSuite", "RuleSuitePropRuleEvaluationsItems", "RuleSuitePropRuleEvaluationsItemsPropRuleSource", ), - ".group_0138": ("RepositoryAdvisoryCredit",), - ".group_0139": ( + ".group_0143": ("RepositoryAdvisoryCredit",), + ".group_0144": ( "RepositoryAdvisory", "RepositoryAdvisoryPropIdentifiersItems", "RepositoryAdvisoryPropSubmission", @@ -8420,84 +8583,84 @@ "RepositoryAdvisoryVulnerability", "RepositoryAdvisoryVulnerabilityPropPackage", ), - ".group_0140": ( + ".group_0145": ( "ActionsBillingUsage", "ActionsBillingUsagePropMinutesUsedBreakdown", ), - ".group_0141": ("PackagesBillingUsage",), - ".group_0142": ("CombinedBillingUsage",), - ".group_0143": ( + ".group_0146": ("PackagesBillingUsage",), + ".group_0147": ("CombinedBillingUsage",), + ".group_0148": ( "TeamFull", "TeamOrganization", "TeamOrganizationPropPlan", ), - ".group_0144": ("TeamDiscussion",), - ".group_0145": ("TeamDiscussionComment",), - ".group_0146": ("Reaction",), - ".group_0147": ("TeamMembership",), - ".group_0148": ( + ".group_0149": ("TeamDiscussion",), + ".group_0150": ("TeamDiscussionComment",), + ".group_0151": ("Reaction",), + ".group_0152": ("TeamMembership",), + ".group_0153": ( "TeamProject", "TeamProjectPropPermissions", ), - ".group_0149": ( + ".group_0154": ( "TeamRepository", "TeamRepositoryPropPermissions", ), - ".group_0150": ("ProjectCard",), - ".group_0151": ("ProjectColumn",), - ".group_0152": ("ProjectCollaboratorPermission",), - ".group_0153": ("RateLimit",), - ".group_0154": ("RateLimitOverview",), - ".group_0155": ("RateLimitOverviewPropResources",), - ".group_0156": ( + ".group_0155": ("ProjectCard",), + ".group_0156": ("ProjectColumn",), + ".group_0157": ("ProjectCollaboratorPermission",), + ".group_0158": ("RateLimit",), + ".group_0159": ("RateLimitOverview",), + ".group_0160": ("RateLimitOverviewPropResources",), + ".group_0161": ( "Artifact", "ArtifactPropWorkflowRun", ), - ".group_0157": ( + ".group_0162": ( "ActionsCacheList", "ActionsCacheListPropActionsCachesItems", ), - ".group_0158": ( + ".group_0163": ( "Job", "JobPropStepsItems", ), - ".group_0159": ("OidcCustomSubRepo",), - ".group_0160": ("ActionsSecret",), - ".group_0161": ("ActionsVariable",), - ".group_0162": ("ActionsRepositoryPermissions",), - ".group_0163": ("ActionsWorkflowAccessToRepository",), - ".group_0164": ( + ".group_0164": ("OidcCustomSubRepo",), + ".group_0165": ("ActionsSecret",), + ".group_0166": ("ActionsVariable",), + ".group_0167": ("ActionsRepositoryPermissions",), + ".group_0168": ("ActionsWorkflowAccessToRepository",), + ".group_0169": ( "PullRequestMinimal", "PullRequestMinimalPropHead", "PullRequestMinimalPropHeadPropRepo", "PullRequestMinimalPropBase", "PullRequestMinimalPropBasePropRepo", ), - ".group_0165": ( + ".group_0170": ( "SimpleCommit", "SimpleCommitPropAuthor", "SimpleCommitPropCommitter", ), - ".group_0166": ( + ".group_0171": ( "WorkflowRun", "ReferencedWorkflow", ), - ".group_0167": ( + ".group_0172": ( "EnvironmentApprovals", "EnvironmentApprovalsPropEnvironmentsItems", ), - ".group_0168": ("ReviewCustomGatesCommentRequired",), - ".group_0169": ("ReviewCustomGatesStateRequired",), - ".group_0170": ( + ".group_0173": ("ReviewCustomGatesCommentRequired",), + ".group_0174": ("ReviewCustomGatesStateRequired",), + ".group_0175": ( "PendingDeploymentPropReviewersItems", "PendingDeployment", "PendingDeploymentPropEnvironment", ), - ".group_0171": ( + ".group_0176": ( "Deployment", "DeploymentPropPayloadOneof0", ), - ".group_0172": ( + ".group_0177": ( "WorkflowRunUsage", "WorkflowRunUsagePropBillable", "WorkflowRunUsagePropBillablePropUbuntu", @@ -8507,22 +8670,22 @@ "WorkflowRunUsagePropBillablePropWindows", "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", ), - ".group_0173": ( + ".group_0178": ( "WorkflowUsage", "WorkflowUsagePropBillable", "WorkflowUsagePropBillablePropUbuntu", "WorkflowUsagePropBillablePropMacos", "WorkflowUsagePropBillablePropWindows", ), - ".group_0174": ("Activity",), - ".group_0175": ("Autolink",), - ".group_0176": ("CheckAutomatedSecurityFixes",), - ".group_0177": ("ProtectedBranchPullRequestReview",), - ".group_0178": ( + ".group_0179": ("Activity",), + ".group_0180": ("Autolink",), + ".group_0181": ("CheckAutomatedSecurityFixes",), + ".group_0182": ("ProtectedBranchPullRequestReview",), + ".group_0183": ( "ProtectedBranchPullRequestReviewPropDismissalRestrictions", "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", ), - ".group_0179": ( + ".group_0184": ( "BranchRestrictionPolicy", "BranchRestrictionPolicyPropUsersItems", "BranchRestrictionPolicyPropTeamsItems", @@ -8530,7 +8693,7 @@ "BranchRestrictionPolicyPropAppsItemsPropOwner", "BranchRestrictionPolicyPropAppsItemsPropPermissions", ), - ".group_0180": ( + ".group_0185": ( "BranchProtection", "ProtectedBranchAdminEnforced", "BranchProtectionPropRequiredLinearHistory", @@ -8544,27 +8707,28 @@ "ProtectedBranchRequiredStatusCheck", "ProtectedBranchRequiredStatusCheckPropChecksItems", ), - ".group_0181": ( + ".group_0186": ( "ShortBranch", "ShortBranchPropCommit", ), - ".group_0182": ("GitUser",), - ".group_0183": ("Verification",), - ".group_0184": ("DiffEntry",), - ".group_0185": ( + ".group_0187": ("GitUser",), + ".group_0188": ("Verification",), + ".group_0189": ("DiffEntry",), + ".group_0190": ( "Commit", + "EmptyObject", "CommitPropParentsItems", "CommitPropStats", ), - ".group_0186": ( + ".group_0191": ( "CommitPropCommit", "CommitPropCommitPropTree", ), - ".group_0187": ( + ".group_0192": ( "BranchWithProtection", "BranchWithProtectionPropLinks", ), - ".group_0188": ( + ".group_0193": ( "ProtectedBranch", "ProtectedBranchPropRequiredSignatures", "ProtectedBranchPropEnforceAdmins", @@ -8578,113 +8742,113 @@ "StatusCheckPolicy", "StatusCheckPolicyPropChecksItems", ), - ".group_0189": ("ProtectedBranchPropRequiredPullRequestReviews",), - ".group_0190": ( + ".group_0194": ("ProtectedBranchPropRequiredPullRequestReviews",), + ".group_0195": ( "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", ), - ".group_0191": ("DeploymentSimple",), - ".group_0192": ( + ".group_0196": ("DeploymentSimple",), + ".group_0197": ( "CheckRun", "CheckRunPropOutput", "CheckRunPropCheckSuite", ), - ".group_0193": ("CheckAnnotation",), - ".group_0194": ( + ".group_0198": ("CheckAnnotation",), + ".group_0199": ( "CheckSuite", "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", ), - ".group_0195": ( + ".group_0200": ( "CheckSuitePreference", "CheckSuitePreferencePropPreferences", "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", ), - ".group_0196": ("CodeScanningAlertItems",), - ".group_0197": ( + ".group_0201": ("CodeScanningAlertItems",), + ".group_0202": ( "CodeScanningAlert", "CodeScanningAlertRule", ), - ".group_0198": ("CodeScanningAnalysis",), - ".group_0199": ("CodeScanningAnalysisDeletion",), - ".group_0200": ("CodeScanningCodeqlDatabase",), - ".group_0201": ("CodeScanningVariantAnalysisRepository",), - ".group_0202": ("CodeScanningVariantAnalysisSkippedRepoGroup",), - ".group_0203": ("CodeScanningVariantAnalysis",), - ".group_0204": ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",), - ".group_0205": ( + ".group_0203": ("CodeScanningAnalysis",), + ".group_0204": ("CodeScanningAnalysisDeletion",), + ".group_0205": ("CodeScanningCodeqlDatabase",), + ".group_0206": ("CodeScanningVariantAnalysisRepository",), + ".group_0207": ("CodeScanningVariantAnalysisSkippedRepoGroup",), + ".group_0208": ("CodeScanningVariantAnalysis",), + ".group_0209": ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",), + ".group_0210": ( "CodeScanningVariantAnalysisPropSkippedRepositories", "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", ), - ".group_0206": ("CodeScanningVariantAnalysisRepoTask",), - ".group_0207": ("CodeScanningDefaultSetup",), - ".group_0208": ("CodeScanningDefaultSetupUpdate",), - ".group_0209": ("CodeScanningDefaultSetupUpdateResponse",), - ".group_0210": ("CodeScanningSarifsReceipt",), - ".group_0211": ("CodeScanningSarifsStatus",), - ".group_0212": ( + ".group_0211": ("CodeScanningVariantAnalysisRepoTask",), + ".group_0212": ("CodeScanningDefaultSetup",), + ".group_0213": ("CodeScanningDefaultSetupUpdate",), + ".group_0214": ("CodeScanningDefaultSetupUpdateResponse",), + ".group_0215": ("CodeScanningSarifsReceipt",), + ".group_0216": ("CodeScanningSarifsStatus",), + ".group_0217": ( "CodeownersErrors", "CodeownersErrorsPropErrorsItems", ), - ".group_0213": ("CodespacesPermissionsCheckForDevcontainer",), - ".group_0214": ("RepositoryInvitation",), - ".group_0215": ( + ".group_0218": ("CodespacesPermissionsCheckForDevcontainer",), + ".group_0219": ("RepositoryInvitation",), + ".group_0220": ( "RepositoryCollaboratorPermission", "Collaborator", "CollaboratorPropPermissions", ), - ".group_0216": ( + ".group_0221": ( "CommitComment", "TimelineCommitCommentedEvent", ), - ".group_0217": ( + ".group_0222": ( "BranchShort", "BranchShortPropCommit", ), - ".group_0218": ("Link",), - ".group_0219": ("AutoMerge",), - ".group_0220": ( + ".group_0223": ("Link",), + ".group_0224": ("AutoMerge",), + ".group_0225": ( "PullRequestSimple", "PullRequestSimplePropLabelsItems", ), - ".group_0221": ( + ".group_0226": ( "PullRequestSimplePropHead", "PullRequestSimplePropBase", ), - ".group_0222": ("PullRequestSimplePropLinks",), - ".group_0223": ( + ".group_0227": ("PullRequestSimplePropLinks",), + ".group_0228": ( "CombinedCommitStatus", "SimpleCommitStatus", ), - ".group_0224": ("Status",), - ".group_0225": ( + ".group_0229": ("Status",), + ".group_0230": ( "CommunityProfilePropFiles", "CommunityHealthFile", "CommunityProfile", ), - ".group_0226": ("CommitComparison",), - ".group_0227": ( + ".group_0231": ("CommitComparison",), + ".group_0232": ( "ContentTree", "ContentTreePropLinks", "ContentTreePropEntriesItems", "ContentTreePropEntriesItemsPropLinks", ), - ".group_0228": ( + ".group_0233": ( "ContentDirectoryItems", "ContentDirectoryItemsPropLinks", ), - ".group_0229": ( + ".group_0234": ( "ContentFile", "ContentFilePropLinks", ), - ".group_0230": ( + ".group_0235": ( "ContentSymlink", "ContentSymlinkPropLinks", ), - ".group_0231": ( + ".group_0236": ( "ContentSubmodule", "ContentSubmodulePropLinks", ), - ".group_0232": ( + ".group_0237": ( "FileCommit", "FileCommitPropContent", "FileCommitPropContentPropLinks", @@ -8695,53 +8859,53 @@ "FileCommitPropCommitPropParentsItems", "FileCommitPropCommitPropVerification", ), - ".group_0233": ("Contributor",), - ".group_0234": ("DependabotAlert",), - ".group_0235": ("DependabotAlertPropDependency",), - ".group_0236": ( + ".group_0238": ("Contributor",), + ".group_0239": ("DependabotAlert",), + ".group_0240": ("DependabotAlertPropDependency",), + ".group_0241": ( "DependencyGraphDiffItems", "DependencyGraphDiffItemsPropVulnerabilitiesItems", ), - ".group_0237": ( + ".group_0242": ( "DependencyGraphSpdxSbom", "DependencyGraphSpdxSbomPropSbom", "DependencyGraphSpdxSbomPropSbomPropCreationInfo", "DependencyGraphSpdxSbomPropSbomPropPackagesItems", "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", ), - ".group_0238": ("Metadata",), - ".group_0239": ("Dependency",), - ".group_0240": ( + ".group_0243": ("Metadata",), + ".group_0244": ("Dependency",), + ".group_0245": ( "Manifest", "ManifestPropFile", "ManifestPropResolved", ), - ".group_0241": ( + ".group_0246": ( "Snapshot", "SnapshotPropJob", "SnapshotPropDetector", "SnapshotPropManifests", ), - ".group_0242": ("DeploymentStatus",), - ".group_0243": ("DeploymentBranchPolicySettings",), - ".group_0244": ( + ".group_0247": ("DeploymentStatus",), + ".group_0248": ("DeploymentBranchPolicySettings",), + ".group_0249": ( "Environment", "EnvironmentPropProtectionRulesItemsAnyof0", "EnvironmentPropProtectionRulesItemsAnyof2", "ReposOwnerRepoEnvironmentsGetResponse200", ), - ".group_0245": ("EnvironmentPropProtectionRulesItemsAnyof1",), - ".group_0246": ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",), - ".group_0247": ("DeploymentBranchPolicyNamePatternWithType",), - ".group_0248": ("DeploymentBranchPolicyNamePattern",), - ".group_0249": ("CustomDeploymentRuleApp",), - ".group_0250": ( + ".group_0250": ("EnvironmentPropProtectionRulesItemsAnyof1",), + ".group_0251": ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",), + ".group_0252": ("DeploymentBranchPolicyNamePatternWithType",), + ".group_0253": ("DeploymentBranchPolicyNamePattern",), + ".group_0254": ("CustomDeploymentRuleApp",), + ".group_0255": ( "DeploymentProtectionRule", "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", ), - ".group_0251": ("ShortBlob",), - ".group_0252": ("Blob",), - ".group_0253": ( + ".group_0256": ("ShortBlob",), + ".group_0257": ("Blob",), + ".group_0258": ( "GitCommit", "GitCommitPropAuthor", "GitCommitPropCommitter", @@ -8749,28 +8913,28 @@ "GitCommitPropParentsItems", "GitCommitPropVerification", ), - ".group_0254": ( + ".group_0259": ( "GitRef", "GitRefPropObject", ), - ".group_0255": ( + ".group_0260": ( "GitTag", "GitTagPropTagger", "GitTagPropObject", ), - ".group_0256": ( + ".group_0261": ( "GitTree", "GitTreePropTreeItems", ), - ".group_0257": ("HookResponse",), - ".group_0258": ("Hook",), - ".group_0259": ( + ".group_0262": ("HookResponse",), + ".group_0263": ("Hook",), + ".group_0264": ( "Import", "ImportPropProjectChoicesItems", ), - ".group_0260": ("PorterAuthor",), - ".group_0261": ("PorterLargeFile",), - ".group_0262": ( + ".group_0265": ("PorterAuthor",), + ".group_0266": ("PorterLargeFile",), + ".group_0267": ( "IssueEvent", "IssueEventLabel", "IssueEventDismissedReview", @@ -8778,56 +8942,56 @@ "IssueEventProjectCard", "IssueEventRename", ), - ".group_0263": ( + ".group_0268": ( "LabeledIssueEvent", "LabeledIssueEventPropLabel", ), - ".group_0264": ( + ".group_0269": ( "UnlabeledIssueEvent", "UnlabeledIssueEventPropLabel", ), - ".group_0265": ("AssignedIssueEvent",), - ".group_0266": ("UnassignedIssueEvent",), - ".group_0267": ( + ".group_0270": ("AssignedIssueEvent",), + ".group_0271": ("UnassignedIssueEvent",), + ".group_0272": ( "MilestonedIssueEvent", "MilestonedIssueEventPropMilestone", ), - ".group_0268": ( + ".group_0273": ( "DemilestonedIssueEvent", "DemilestonedIssueEventPropMilestone", ), - ".group_0269": ( + ".group_0274": ( "RenamedIssueEvent", "RenamedIssueEventPropRename", ), - ".group_0270": ("ReviewRequestedIssueEvent",), - ".group_0271": ("ReviewRequestRemovedIssueEvent",), - ".group_0272": ( + ".group_0275": ("ReviewRequestedIssueEvent",), + ".group_0276": ("ReviewRequestRemovedIssueEvent",), + ".group_0277": ( "ReviewDismissedIssueEvent", "ReviewDismissedIssueEventPropDismissedReview", ), - ".group_0273": ("LockedIssueEvent",), - ".group_0274": ( + ".group_0278": ("LockedIssueEvent",), + ".group_0279": ( "AddedToProjectIssueEvent", "AddedToProjectIssueEventPropProjectCard", ), - ".group_0275": ( + ".group_0280": ( "MovedColumnInProjectIssueEvent", "MovedColumnInProjectIssueEventPropProjectCard", ), - ".group_0276": ( + ".group_0281": ( "RemovedFromProjectIssueEvent", "RemovedFromProjectIssueEventPropProjectCard", ), - ".group_0277": ( + ".group_0282": ( "ConvertedNoteToIssueIssueEvent", "ConvertedNoteToIssueIssueEventPropProjectCard", ), - ".group_0278": ("Label",), - ".group_0279": ("TimelineCommentEvent",), - ".group_0280": ("TimelineCrossReferencedEvent",), - ".group_0281": ("TimelineCrossReferencedEventPropSource",), - ".group_0282": ( + ".group_0283": ("Label",), + ".group_0284": ("TimelineCommentEvent",), + ".group_0285": ("TimelineCrossReferencedEvent",), + ".group_0286": ("TimelineCrossReferencedEventPropSource",), + ".group_0287": ( "TimelineCommittedEvent", "TimelineCommittedEventPropAuthor", "TimelineCommittedEventPropCommitter", @@ -8835,13 +8999,13 @@ "TimelineCommittedEventPropParentsItems", "TimelineCommittedEventPropVerification", ), - ".group_0283": ( + ".group_0288": ( "TimelineReviewedEvent", "TimelineReviewedEventPropLinks", "TimelineReviewedEventPropLinksPropHtml", "TimelineReviewedEventPropLinksPropPullRequest", ), - ".group_0284": ( + ".group_0289": ( "PullRequestReviewComment", "PullRequestReviewCommentPropLinks", "PullRequestReviewCommentPropLinksPropSelf", @@ -8849,35 +9013,35 @@ "PullRequestReviewCommentPropLinksPropPullRequest", "TimelineLineCommentedEvent", ), - ".group_0285": ("TimelineAssignedIssueEvent",), - ".group_0286": ("TimelineUnassignedIssueEvent",), - ".group_0287": ("StateChangeIssueEvent",), - ".group_0288": ("DeployKey",), - ".group_0289": ("Language",), - ".group_0290": ( + ".group_0290": ("TimelineAssignedIssueEvent",), + ".group_0291": ("TimelineUnassignedIssueEvent",), + ".group_0292": ("StateChangeIssueEvent",), + ".group_0293": ("DeployKey",), + ".group_0294": ("Language",), + ".group_0295": ( "LicenseContent", "LicenseContentPropLinks", ), - ".group_0291": ("MergedUpstream",), - ".group_0292": ( + ".group_0296": ("MergedUpstream",), + ".group_0297": ( "Page", "PagesSourceHash", "PagesHttpsCertificate", ), - ".group_0293": ( + ".group_0298": ( "PageBuild", "PageBuildPropError", ), - ".group_0294": ("PageBuildStatus",), - ".group_0295": ("PageDeployment",), - ".group_0296": ("PagesDeploymentStatus",), - ".group_0297": ( + ".group_0299": ("PageBuildStatus",), + ".group_0300": ("PageDeployment",), + ".group_0301": ("PagesDeploymentStatus",), + ".group_0302": ( "PagesHealthCheck", "PagesHealthCheckPropDomain", "PagesHealthCheckPropAltDomain", ), - ".group_0298": ("PullRequest",), - ".group_0299": ( + ".group_0303": ("PullRequest",), + ".group_0304": ( "PullRequestPropLabelsItems", "PullRequestPropHead", "PullRequestPropHeadPropRepo", @@ -8886,117 +9050,117 @@ "PullRequestPropHeadPropRepoPropLicense", "PullRequestPropHeadPropUser", ), - ".group_0300": ( + ".group_0305": ( "PullRequestPropBase", "PullRequestPropBasePropUser", ), - ".group_0301": ( + ".group_0306": ( "PullRequestPropBasePropRepo", "PullRequestPropBasePropRepoPropOwner", "PullRequestPropBasePropRepoPropPermissions", ), - ".group_0302": ("PullRequestPropLinks",), - ".group_0303": ("PullRequestMergeResult",), - ".group_0304": ("PullRequestReviewRequest",), - ".group_0305": ( + ".group_0307": ("PullRequestPropLinks",), + ".group_0308": ("PullRequestMergeResult",), + ".group_0309": ("PullRequestReviewRequest",), + ".group_0310": ( "PullRequestReview", "PullRequestReviewPropLinks", "PullRequestReviewPropLinksPropHtml", "PullRequestReviewPropLinksPropPullRequest", ), - ".group_0306": ("ReviewComment",), - ".group_0307": ("ReviewCommentPropLinks",), - ".group_0308": ("ReleaseAsset",), - ".group_0309": ("Release",), - ".group_0310": ("ReleaseNotesContent",), - ".group_0311": ("RepositoryRuleRulesetInfo",), - ".group_0312": ("RepositoryRuleDetailedOneof0",), - ".group_0313": ("RepositoryRuleDetailedOneof1",), - ".group_0314": ("RepositoryRuleDetailedOneof2",), - ".group_0315": ("RepositoryRuleDetailedOneof3",), - ".group_0316": ("RepositoryRuleDetailedOneof4",), - ".group_0317": ("RepositoryRuleDetailedOneof5",), - ".group_0318": ("RepositoryRuleDetailedOneof6",), - ".group_0319": ("RepositoryRuleDetailedOneof7",), - ".group_0320": ("RepositoryRuleDetailedOneof8",), - ".group_0321": ("RepositoryRuleDetailedOneof9",), - ".group_0322": ("RepositoryRuleDetailedOneof10",), - ".group_0323": ("RepositoryRuleDetailedOneof11",), - ".group_0324": ("RepositoryRuleDetailedOneof12",), - ".group_0325": ("RepositoryRuleDetailedOneof13",), - ".group_0326": ("RepositoryRuleDetailedOneof14",), - ".group_0327": ("RepositoryRuleDetailedOneof15",), - ".group_0328": ("SecretScanningAlert",), - ".group_0329": ( + ".group_0311": ("ReviewComment",), + ".group_0312": ("ReviewCommentPropLinks",), + ".group_0313": ("ReleaseAsset",), + ".group_0314": ("Release",), + ".group_0315": ("ReleaseNotesContent",), + ".group_0316": ("RepositoryRuleRulesetInfo",), + ".group_0317": ("RepositoryRuleDetailedOneof0",), + ".group_0318": ("RepositoryRuleDetailedOneof1",), + ".group_0319": ("RepositoryRuleDetailedOneof2",), + ".group_0320": ("RepositoryRuleDetailedOneof3",), + ".group_0321": ("RepositoryRuleDetailedOneof4",), + ".group_0322": ("RepositoryRuleDetailedOneof5",), + ".group_0323": ("RepositoryRuleDetailedOneof6",), + ".group_0324": ("RepositoryRuleDetailedOneof7",), + ".group_0325": ("RepositoryRuleDetailedOneof8",), + ".group_0326": ("RepositoryRuleDetailedOneof9",), + ".group_0327": ("RepositoryRuleDetailedOneof10",), + ".group_0328": ("RepositoryRuleDetailedOneof11",), + ".group_0329": ("RepositoryRuleDetailedOneof12",), + ".group_0330": ("RepositoryRuleDetailedOneof13",), + ".group_0331": ("RepositoryRuleDetailedOneof14",), + ".group_0332": ("RepositoryRuleDetailedOneof15",), + ".group_0333": ("SecretScanningAlert",), + ".group_0334": ( "RepositoryAdvisoryCreate", "RepositoryAdvisoryCreatePropCreditsItems", "RepositoryAdvisoryCreatePropVulnerabilitiesItems", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", ), - ".group_0330": ( + ".group_0335": ( "PrivateVulnerabilityReportCreate", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", ), - ".group_0331": ( + ".group_0336": ( "RepositoryAdvisoryUpdate", "RepositoryAdvisoryUpdatePropCreditsItems", "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", ), - ".group_0332": ("Stargazer",), - ".group_0333": ("CommitActivity",), - ".group_0334": ( + ".group_0337": ("Stargazer",), + ".group_0338": ("CommitActivity",), + ".group_0339": ( "ContributorActivity", "ContributorActivityPropWeeksItems", ), - ".group_0335": ("ParticipationStats",), - ".group_0336": ("RepositorySubscription",), - ".group_0337": ( + ".group_0340": ("ParticipationStats",), + ".group_0341": ("RepositorySubscription",), + ".group_0342": ( "Tag", "TagPropCommit", ), - ".group_0338": ("TagProtection",), - ".group_0339": ("Topic",), - ".group_0340": ("Traffic",), - ".group_0341": ("CloneTraffic",), - ".group_0342": ("ContentTraffic",), - ".group_0343": ("ReferrerTraffic",), - ".group_0344": ("ViewTraffic",), - ".group_0345": ( + ".group_0343": ("TagProtection",), + ".group_0344": ("Topic",), + ".group_0345": ("Traffic",), + ".group_0346": ("CloneTraffic",), + ".group_0347": ("ContentTraffic",), + ".group_0348": ("ReferrerTraffic",), + ".group_0349": ("ViewTraffic",), + ".group_0350": ( "SearchResultTextMatchesItems", "SearchResultTextMatchesItemsPropMatchesItems", ), - ".group_0346": ( + ".group_0351": ( "CodeSearchResultItem", "SearchCodeGetResponse200", ), - ".group_0347": ( + ".group_0352": ( "CommitSearchResultItem", "CommitSearchResultItemPropParentsItems", "SearchCommitsGetResponse200", ), - ".group_0348": ( + ".group_0353": ( "CommitSearchResultItemPropCommit", "CommitSearchResultItemPropCommitPropAuthor", "CommitSearchResultItemPropCommitPropTree", ), - ".group_0349": ( + ".group_0354": ( "IssueSearchResultItem", "IssueSearchResultItemPropLabelsItems", "IssueSearchResultItemPropPullRequest", "SearchIssuesGetResponse200", ), - ".group_0350": ( + ".group_0355": ( "LabelSearchResultItem", "SearchLabelsGetResponse200", ), - ".group_0351": ( + ".group_0356": ( "RepoSearchResultItem", "RepoSearchResultItemPropPermissions", "SearchRepositoriesGetResponse200", ), - ".group_0352": ( + ".group_0357": ( "TopicSearchResultItem", "TopicSearchResultItemPropRelatedItems", "TopicSearchResultItemPropRelatedItemsPropTopicRelation", @@ -9004,45 +9168,45 @@ "TopicSearchResultItemPropAliasesItemsPropTopicRelation", "SearchTopicsGetResponse200", ), - ".group_0353": ( + ".group_0358": ( "UserSearchResultItem", "SearchUsersGetResponse200", ), - ".group_0354": ( + ".group_0359": ( "PrivateUser", "PrivateUserPropPlan", ), - ".group_0355": ("CodespacesUserPublicKey",), - ".group_0356": ("CodespaceExportDetails",), - ".group_0357": ( + ".group_0360": ("CodespacesUserPublicKey",), + ".group_0361": ("CodespaceExportDetails",), + ".group_0362": ( "CodespaceWithFullRepository", "CodespaceWithFullRepositoryPropGitStatus", "CodespaceWithFullRepositoryPropRuntimeConstraints", ), - ".group_0358": ("Email",), - ".group_0359": ( + ".group_0363": ("Email",), + ".group_0364": ( "GpgKey", "GpgKeyPropEmailsItems", "GpgKeyPropSubkeysItems", "GpgKeyPropSubkeysItemsPropEmailsItems", ), - ".group_0360": ("Key",), - ".group_0361": ( + ".group_0365": ("Key",), + ".group_0366": ( "UserMarketplacePurchase", "MarketplaceAccount", ), - ".group_0362": ("SocialAccount",), - ".group_0363": ("SshSigningKey",), - ".group_0364": ("StarredRepository",), - ".group_0365": ( + ".group_0367": ("SocialAccount",), + ".group_0368": ("SshSigningKey",), + ".group_0369": ("StarredRepository",), + ".group_0370": ( "Hovercard", "HovercardPropContextsItems", ), - ".group_0366": ("KeySimple",), - ".group_0367": ("EnterpriseWebhooks",), - ".group_0368": ("SimpleInstallation",), - ".group_0369": ("OrganizationSimpleWebhooks",), - ".group_0370": ( + ".group_0371": ("KeySimple",), + ".group_0372": ("EnterpriseWebhooks",), + ".group_0373": ("SimpleInstallation",), + ".group_0374": ("OrganizationSimpleWebhooks",), + ".group_0375": ( "RepositoryWebhooks", "RepositoryWebhooksPropPermissions", "RepositoryWebhooksPropCustomProperties", @@ -9050,52 +9214,52 @@ "RepositoryWebhooksPropTemplateRepositoryPropOwner", "RepositoryWebhooksPropTemplateRepositoryPropPermissions", ), - ".group_0371": ("SimpleUserWebhooks",), - ".group_0372": ("WebhooksRule",), - ".group_0373": ("SimpleCheckSuite",), - ".group_0374": ( + ".group_0376": ("SimpleUserWebhooks",), + ".group_0377": ("WebhooksRule",), + ".group_0378": ("SimpleCheckSuite",), + ".group_0379": ( "CheckRunWithSimpleCheckSuite", "CheckRunWithSimpleCheckSuitePropOutput", ), - ".group_0375": ("WebhooksDeployKey",), - ".group_0376": ("WebhooksWorkflow",), - ".group_0377": ( + ".group_0380": ("WebhooksDeployKey",), + ".group_0381": ("WebhooksWorkflow",), + ".group_0382": ( "WebhooksApprover", "WebhooksReviewersItems", "WebhooksReviewersItemsPropReviewer", ), - ".group_0378": ("WebhooksWorkflowJobRun",), - ".group_0379": ("WebhooksUser",), - ".group_0380": ( + ".group_0383": ("WebhooksWorkflowJobRun",), + ".group_0384": ("WebhooksUser",), + ".group_0385": ( "WebhooksAnswer", "WebhooksAnswerPropReactions", "WebhooksAnswerPropUser", ), - ".group_0381": ( + ".group_0386": ( "Discussion", "DiscussionPropAnswerChosenBy", "DiscussionPropCategory", "DiscussionPropReactions", "DiscussionPropUser", ), - ".group_0382": ( + ".group_0387": ( "WebhooksComment", "WebhooksCommentPropReactions", "WebhooksCommentPropUser", ), - ".group_0383": ("WebhooksLabel",), - ".group_0384": ("WebhooksRepositoriesItems",), - ".group_0385": ("WebhooksRepositoriesAddedItems",), - ".group_0386": ( + ".group_0388": ("WebhooksLabel",), + ".group_0389": ("WebhooksRepositoriesItems",), + ".group_0390": ("WebhooksRepositoriesAddedItems",), + ".group_0391": ( "WebhooksIssueComment", "WebhooksIssueCommentPropReactions", "WebhooksIssueCommentPropUser", ), - ".group_0387": ( + ".group_0392": ( "WebhooksChanges", "WebhooksChangesPropBody", ), - ".group_0388": ( + ".group_0393": ( "WebhooksIssue", "WebhooksIssuePropAssignee", "WebhooksIssuePropAssigneesItems", @@ -9109,11 +9273,11 @@ "WebhooksIssuePropReactions", "WebhooksIssuePropUser", ), - ".group_0389": ( + ".group_0394": ( "WebhooksMilestone", "WebhooksMilestonePropCreator", ), - ".group_0390": ( + ".group_0395": ( "WebhooksIssue2", "WebhooksIssue2PropAssignee", "WebhooksIssue2PropAssigneesItems", @@ -9127,31 +9291,31 @@ "WebhooksIssue2PropReactions", "WebhooksIssue2PropUser", ), - ".group_0391": ("WebhooksUserMannequin",), - ".group_0392": ( + ".group_0396": ("WebhooksUserMannequin",), + ".group_0397": ( "WebhooksMarketplacePurchase", "WebhooksMarketplacePurchasePropAccount", "WebhooksMarketplacePurchasePropPlan", ), - ".group_0393": ( + ".group_0398": ( "WebhooksPreviousMarketplacePurchase", "WebhooksPreviousMarketplacePurchasePropAccount", "WebhooksPreviousMarketplacePurchasePropPlan", ), - ".group_0394": ( + ".group_0399": ( "WebhooksTeam", "WebhooksTeamPropParent", ), - ".group_0395": ("MergeGroup",), - ".group_0396": ( + ".group_0400": ("MergeGroup",), + ".group_0401": ( "WebhooksMilestone3", "WebhooksMilestone3PropCreator", ), - ".group_0397": ( + ".group_0402": ( "WebhooksMembership", "WebhooksMembershipPropUser", ), - ".group_0398": ( + ".group_0403": ( "PersonalAccessTokenRequest", "PersonalAccessTokenRequestPropRepositoriesItems", "PersonalAccessTokenRequestPropPermissionsAdded", @@ -9167,24 +9331,25 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepository", "PersonalAccessTokenRequestPropPermissionsResultPropOther", ), - ".group_0399": ( + ".group_0404": ( "WebhooksProjectCard", "WebhooksProjectCardPropCreator", ), - ".group_0400": ( + ".group_0405": ( "WebhooksProject", "WebhooksProjectPropCreator", ), - ".group_0401": ("WebhooksProjectColumn",), - ".group_0402": ("ProjectsV2",), - ".group_0403": ( + ".group_0406": ("WebhooksProjectColumn",), + ".group_0407": ("ProjectsV2",), + ".group_0408": ( "WebhooksProjectChanges", "WebhooksProjectChangesPropArchivedAt", ), - ".group_0404": ("ProjectsV2Item",), - ".group_0405": ("PullRequestWebhook",), - ".group_0406": ("PullRequestWebhookAllof1",), - ".group_0407": ( + ".group_0409": ("ProjectsV2Item",), + ".group_0410": ("ProjectsV2StatusUpdate",), + ".group_0411": ("PullRequestWebhook",), + ".group_0412": ("PullRequestWebhookAllof1",), + ".group_0413": ( "WebhooksPullRequest5", "WebhooksPullRequest5PropAssignee", "WebhooksPullRequest5PropAssigneesItems", @@ -9222,7 +9387,7 @@ "WebhooksPullRequest5PropRequestedTeamsItems", "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", ), - ".group_0408": ( + ".group_0414": ( "WebhooksReviewComment", "WebhooksReviewCommentPropReactions", "WebhooksReviewCommentPropUser", @@ -9231,33 +9396,33 @@ "WebhooksReviewCommentPropLinksPropPullRequest", "WebhooksReviewCommentPropLinksPropSelf", ), - ".group_0409": ( + ".group_0415": ( "WebhooksReview", "WebhooksReviewPropUser", "WebhooksReviewPropLinks", "WebhooksReviewPropLinksPropHtml", "WebhooksReviewPropLinksPropPullRequest", ), - ".group_0410": ( + ".group_0416": ( "WebhooksRelease", "WebhooksReleasePropAuthor", "WebhooksReleasePropReactions", "WebhooksReleasePropAssetsItems", "WebhooksReleasePropAssetsItemsPropUploader", ), - ".group_0411": ( + ".group_0417": ( "WebhooksRelease1", "WebhooksRelease1PropAssetsItems", "WebhooksRelease1PropAssetsItemsPropUploader", "WebhooksRelease1PropAuthor", "WebhooksRelease1PropReactions", ), - ".group_0412": ( + ".group_0418": ( "WebhooksAlert", "WebhooksAlertPropDismisser", ), - ".group_0413": ("SecretScanningAlertWebhook",), - ".group_0414": ( + ".group_0419": ("SecretScanningAlertWebhook",), + ".group_0420": ( "WebhooksSecurityAdvisory", "WebhooksSecurityAdvisoryPropCvss", "WebhooksSecurityAdvisoryPropCwesItems", @@ -9267,27 +9432,27 @@ "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0415": ( + ".group_0421": ( "WebhooksSponsorship", "WebhooksSponsorshipPropMaintainer", "WebhooksSponsorshipPropSponsor", "WebhooksSponsorshipPropSponsorable", "WebhooksSponsorshipPropTier", ), - ".group_0416": ( + ".group_0422": ( "WebhooksChanges8", "WebhooksChanges8PropTier", "WebhooksChanges8PropTierPropFrom", ), - ".group_0417": ( + ".group_0423": ( "WebhooksTeam1", "WebhooksTeam1PropParent", ), - ".group_0418": ("WebhookBranchProtectionConfigurationDisabled",), - ".group_0419": ("WebhookBranchProtectionConfigurationEnabled",), - ".group_0420": ("WebhookBranchProtectionRuleCreated",), - ".group_0421": ("WebhookBranchProtectionRuleDeleted",), - ".group_0422": ( + ".group_0424": ("WebhookBranchProtectionConfigurationDisabled",), + ".group_0425": ("WebhookBranchProtectionConfigurationEnabled",), + ".group_0426": ("WebhookBranchProtectionRuleCreated",), + ".group_0427": ("WebhookBranchProtectionRuleDeleted",), + ".group_0428": ( "WebhookBranchProtectionRuleEdited", "WebhookBranchProtectionRuleEditedPropChanges", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", @@ -9295,21 +9460,25 @@ "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", ), - ".group_0423": ("WebhookCheckRunCompleted",), - ".group_0424": ("WebhookCheckRunCompletedFormEncoded",), - ".group_0425": ("WebhookCheckRunCreated",), - ".group_0426": ("WebhookCheckRunCreatedFormEncoded",), - ".group_0427": ( + ".group_0429": ("WebhookCheckRunCompleted",), + ".group_0430": ("WebhookCheckRunCompletedFormEncoded",), + ".group_0431": ("WebhookCheckRunCreated",), + ".group_0432": ("WebhookCheckRunCreatedFormEncoded",), + ".group_0433": ( "WebhookCheckRunRequestedAction", "WebhookCheckRunRequestedActionPropRequestedAction", ), - ".group_0428": ("WebhookCheckRunRequestedActionFormEncoded",), - ".group_0429": ("WebhookCheckRunRerequested",), - ".group_0430": ("WebhookCheckRunRerequestedFormEncoded",), - ".group_0431": ( + ".group_0434": ("WebhookCheckRunRequestedActionFormEncoded",), + ".group_0435": ("WebhookCheckRunRerequested",), + ".group_0436": ("WebhookCheckRunRerequestedFormEncoded",), + ".group_0437": ( "WebhookCheckSuiteCompleted", "WebhookCheckSuiteCompletedPropCheckSuite", "WebhookCheckSuiteCompletedPropCheckSuitePropApp", @@ -9324,7 +9493,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0432": ( + ".group_0438": ( "WebhookCheckSuiteRequested", "WebhookCheckSuiteRequestedPropCheckSuite", "WebhookCheckSuiteRequestedPropCheckSuitePropApp", @@ -9339,7 +9508,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0433": ( + ".group_0439": ( "WebhookCheckSuiteRerequested", "WebhookCheckSuiteRerequestedPropCheckSuite", "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", @@ -9354,7 +9523,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ), - ".group_0434": ( + ".group_0440": ( "WebhookCodeScanningAlertAppearedInBranch", "WebhookCodeScanningAlertAppearedInBranchPropAlert", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", @@ -9364,7 +9533,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", ), - ".group_0435": ( + ".group_0441": ( "WebhookCodeScanningAlertClosedByUser", "WebhookCodeScanningAlertClosedByUserPropAlert", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", @@ -9374,7 +9543,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", ), - ".group_0436": ( + ".group_0442": ( "WebhookCodeScanningAlertCreated", "WebhookCodeScanningAlertCreatedPropAlert", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", @@ -9383,7 +9552,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRule", "WebhookCodeScanningAlertCreatedPropAlertPropTool", ), - ".group_0437": ( + ".group_0443": ( "WebhookCodeScanningAlertFixed", "WebhookCodeScanningAlertFixedPropAlert", "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", @@ -9393,7 +9562,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRule", "WebhookCodeScanningAlertFixedPropAlertPropTool", ), - ".group_0438": ( + ".group_0444": ( "WebhookCodeScanningAlertReopened", "WebhookCodeScanningAlertReopenedPropAlert", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", @@ -9403,7 +9572,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRule", "WebhookCodeScanningAlertReopenedPropAlertPropTool", ), - ".group_0439": ( + ".group_0445": ( "WebhookCodeScanningAlertReopenedByUser", "WebhookCodeScanningAlertReopenedByUserPropAlert", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", @@ -9412,31 +9581,31 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", ), - ".group_0440": ( + ".group_0446": ( "WebhookCommitCommentCreated", "WebhookCommitCommentCreatedPropComment", "WebhookCommitCommentCreatedPropCommentPropReactions", "WebhookCommitCommentCreatedPropCommentPropUser", ), - ".group_0441": ("WebhookCreate",), - ".group_0442": ("WebhookCustomPropertyCreated",), - ".group_0443": ( + ".group_0447": ("WebhookCreate",), + ".group_0448": ("WebhookCustomPropertyCreated",), + ".group_0449": ( "WebhookCustomPropertyDeleted", "WebhookCustomPropertyDeletedPropDefinition", ), - ".group_0444": ("WebhookCustomPropertyUpdated",), - ".group_0445": ("WebhookCustomPropertyValuesUpdated",), - ".group_0446": ("WebhookDelete",), - ".group_0447": ("WebhookDependabotAlertAutoDismissed",), - ".group_0448": ("WebhookDependabotAlertAutoReopened",), - ".group_0449": ("WebhookDependabotAlertCreated",), - ".group_0450": ("WebhookDependabotAlertDismissed",), - ".group_0451": ("WebhookDependabotAlertFixed",), - ".group_0452": ("WebhookDependabotAlertReintroduced",), - ".group_0453": ("WebhookDependabotAlertReopened",), - ".group_0454": ("WebhookDeployKeyCreated",), - ".group_0455": ("WebhookDeployKeyDeleted",), - ".group_0456": ( + ".group_0450": ("WebhookCustomPropertyUpdated",), + ".group_0451": ("WebhookCustomPropertyValuesUpdated",), + ".group_0452": ("WebhookDelete",), + ".group_0453": ("WebhookDependabotAlertAutoDismissed",), + ".group_0454": ("WebhookDependabotAlertAutoReopened",), + ".group_0455": ("WebhookDependabotAlertCreated",), + ".group_0456": ("WebhookDependabotAlertDismissed",), + ".group_0457": ("WebhookDependabotAlertFixed",), + ".group_0458": ("WebhookDependabotAlertReintroduced",), + ".group_0459": ("WebhookDependabotAlertReopened",), + ".group_0460": ("WebhookDeployKeyCreated",), + ".group_0461": ("WebhookDeployKeyDeleted",), + ".group_0462": ( "WebhookDeploymentCreated", "WebhookDeploymentCreatedPropDeployment", "WebhookDeploymentCreatedPropDeploymentPropCreator", @@ -9458,8 +9627,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0457": ("WebhookDeploymentProtectionRuleRequested",), - ".group_0458": ( + ".group_0463": ("WebhookDeploymentProtectionRuleRequested",), + ".group_0464": ( "WebhookDeploymentReviewApproved", "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", "WebhookDeploymentReviewApprovedPropWorkflowRun", @@ -9477,7 +9646,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0459": ( + ".group_0465": ( "WebhookDeploymentReviewRejected", "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", "WebhookDeploymentReviewRejectedPropWorkflowRun", @@ -9495,7 +9664,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0460": ( + ".group_0466": ( "WebhookDeploymentReviewRequested", "WebhookDeploymentReviewRequestedPropWorkflowJobRun", "WebhookDeploymentReviewRequestedPropReviewersItems", @@ -9515,7 +9684,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0461": ( + ".group_0467": ( "WebhookDeploymentStatusCreated", "WebhookDeploymentStatusCreatedPropCheckRun", "WebhookDeploymentStatusCreatedPropDeployment", @@ -9543,116 +9712,116 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0462": ("WebhookDiscussionAnswered",), - ".group_0463": ( + ".group_0468": ("WebhookDiscussionAnswered",), + ".group_0469": ( "WebhookDiscussionCategoryChanged", "WebhookDiscussionCategoryChangedPropChanges", "WebhookDiscussionCategoryChangedPropChangesPropCategory", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", ), - ".group_0464": ("WebhookDiscussionClosed",), - ".group_0465": ("WebhookDiscussionCommentCreated",), - ".group_0466": ("WebhookDiscussionCommentDeleted",), - ".group_0467": ( + ".group_0470": ("WebhookDiscussionClosed",), + ".group_0471": ("WebhookDiscussionCommentCreated",), + ".group_0472": ("WebhookDiscussionCommentDeleted",), + ".group_0473": ( "WebhookDiscussionCommentEdited", "WebhookDiscussionCommentEditedPropChanges", "WebhookDiscussionCommentEditedPropChangesPropBody", ), - ".group_0468": ("WebhookDiscussionCreated",), - ".group_0469": ("WebhookDiscussionDeleted",), - ".group_0470": ( + ".group_0474": ("WebhookDiscussionCreated",), + ".group_0475": ("WebhookDiscussionDeleted",), + ".group_0476": ( "WebhookDiscussionEdited", "WebhookDiscussionEditedPropChanges", "WebhookDiscussionEditedPropChangesPropBody", "WebhookDiscussionEditedPropChangesPropTitle", ), - ".group_0471": ("WebhookDiscussionLabeled",), - ".group_0472": ("WebhookDiscussionLocked",), - ".group_0473": ("WebhookDiscussionPinned",), - ".group_0474": ("WebhookDiscussionReopened",), - ".group_0475": ("WebhookDiscussionTransferred",), - ".group_0476": ("WebhookDiscussionTransferredPropChanges",), - ".group_0477": ("WebhookDiscussionUnanswered",), - ".group_0478": ("WebhookDiscussionUnlabeled",), - ".group_0479": ("WebhookDiscussionUnlocked",), - ".group_0480": ("WebhookDiscussionUnpinned",), - ".group_0481": ("WebhookFork",), - ".group_0482": ( + ".group_0477": ("WebhookDiscussionLabeled",), + ".group_0478": ("WebhookDiscussionLocked",), + ".group_0479": ("WebhookDiscussionPinned",), + ".group_0480": ("WebhookDiscussionReopened",), + ".group_0481": ("WebhookDiscussionTransferred",), + ".group_0482": ("WebhookDiscussionTransferredPropChanges",), + ".group_0483": ("WebhookDiscussionUnanswered",), + ".group_0484": ("WebhookDiscussionUnlabeled",), + ".group_0485": ("WebhookDiscussionUnlocked",), + ".group_0486": ("WebhookDiscussionUnpinned",), + ".group_0487": ("WebhookFork",), + ".group_0488": ( "WebhookForkPropForkee", "WebhookForkPropForkeeMergedLicense", "WebhookForkPropForkeeMergedOwner", ), - ".group_0483": ( + ".group_0489": ( "WebhookForkPropForkeeAllof0", "WebhookForkPropForkeeAllof0PropLicense", "WebhookForkPropForkeeAllof0PropOwner", ), - ".group_0484": ("WebhookForkPropForkeeAllof0PropPermissions",), - ".group_0485": ( + ".group_0490": ("WebhookForkPropForkeeAllof0PropPermissions",), + ".group_0491": ( "WebhookForkPropForkeeAllof1", "WebhookForkPropForkeeAllof1PropLicense", "WebhookForkPropForkeeAllof1PropOwner", ), - ".group_0486": ("WebhookGithubAppAuthorizationRevoked",), - ".group_0487": ( + ".group_0492": ("WebhookGithubAppAuthorizationRevoked",), + ".group_0493": ( "WebhookGollum", "WebhookGollumPropPagesItems", ), - ".group_0488": ("WebhookInstallationCreated",), - ".group_0489": ("WebhookInstallationDeleted",), - ".group_0490": ("WebhookInstallationNewPermissionsAccepted",), - ".group_0491": ( + ".group_0494": ("WebhookInstallationCreated",), + ".group_0495": ("WebhookInstallationDeleted",), + ".group_0496": ("WebhookInstallationNewPermissionsAccepted",), + ".group_0497": ( "WebhookInstallationRepositoriesAdded", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", ), - ".group_0492": ( + ".group_0498": ( "WebhookInstallationRepositoriesRemoved", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", ), - ".group_0493": ("WebhookInstallationSuspend",), - ".group_0494": ( + ".group_0499": ("WebhookInstallationSuspend",), + ".group_0500": ( "WebhookInstallationTargetRenamed", "WebhookInstallationTargetRenamedPropAccount", "WebhookInstallationTargetRenamedPropChanges", "WebhookInstallationTargetRenamedPropChangesPropLogin", "WebhookInstallationTargetRenamedPropChangesPropSlug", ), - ".group_0495": ("WebhookInstallationUnsuspend",), - ".group_0496": ("WebhookIssueCommentCreated",), - ".group_0497": ( + ".group_0501": ("WebhookInstallationUnsuspend",), + ".group_0502": ("WebhookIssueCommentCreated",), + ".group_0503": ( "WebhookIssueCommentCreatedPropComment", "WebhookIssueCommentCreatedPropCommentPropReactions", "WebhookIssueCommentCreatedPropCommentPropUser", ), - ".group_0498": ( + ".group_0504": ( "WebhookIssueCommentCreatedPropIssue", "WebhookIssueCommentCreatedPropIssueMergedAssignees", "WebhookIssueCommentCreatedPropIssueMergedReactions", "WebhookIssueCommentCreatedPropIssueMergedUser", ), - ".group_0499": ( + ".group_0505": ( "WebhookIssueCommentCreatedPropIssueAllof0", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", "WebhookIssueCommentCreatedPropIssueAllof0PropUser", ), - ".group_0500": ( + ".group_0506": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", ), - ".group_0501": ( + ".group_0507": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0502": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), - ".group_0503": ( + ".group_0508": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",), + ".group_0509": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0504": ( + ".group_0510": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0505": ( + ".group_0511": ( "WebhookIssueCommentCreatedPropIssueAllof1", "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", @@ -9662,40 +9831,40 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", "WebhookIssueCommentCreatedPropIssueAllof1PropUser", ), - ".group_0506": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), - ".group_0507": ( + ".group_0512": ("WebhookIssueCommentCreatedPropIssueMergedMilestone",), + ".group_0513": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp", ), - ".group_0508": ("WebhookIssueCommentDeleted",), - ".group_0509": ( + ".group_0514": ("WebhookIssueCommentDeleted",), + ".group_0515": ( "WebhookIssueCommentDeletedPropIssue", "WebhookIssueCommentDeletedPropIssueMergedAssignees", "WebhookIssueCommentDeletedPropIssueMergedReactions", "WebhookIssueCommentDeletedPropIssueMergedUser", ), - ".group_0510": ( + ".group_0516": ( "WebhookIssueCommentDeletedPropIssueAllof0", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", "WebhookIssueCommentDeletedPropIssueAllof0PropUser", ), - ".group_0511": ( + ".group_0517": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", ), - ".group_0512": ( + ".group_0518": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0513": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), - ".group_0514": ( + ".group_0519": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",), + ".group_0520": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0515": ( + ".group_0521": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0516": ( + ".group_0522": ( "WebhookIssueCommentDeletedPropIssueAllof1", "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", @@ -9705,40 +9874,40 @@ "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", "WebhookIssueCommentDeletedPropIssueAllof1PropUser", ), - ".group_0517": ("WebhookIssueCommentDeletedPropIssueMergedMilestone",), - ".group_0518": ( + ".group_0523": ("WebhookIssueCommentDeletedPropIssueMergedMilestone",), + ".group_0524": ( "WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp", ), - ".group_0519": ("WebhookIssueCommentEdited",), - ".group_0520": ( + ".group_0525": ("WebhookIssueCommentEdited",), + ".group_0526": ( "WebhookIssueCommentEditedPropIssue", "WebhookIssueCommentEditedPropIssueMergedAssignees", "WebhookIssueCommentEditedPropIssueMergedReactions", "WebhookIssueCommentEditedPropIssueMergedUser", ), - ".group_0521": ( + ".group_0527": ( "WebhookIssueCommentEditedPropIssueAllof0", "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", "WebhookIssueCommentEditedPropIssueAllof0PropReactions", "WebhookIssueCommentEditedPropIssueAllof0PropUser", ), - ".group_0522": ( + ".group_0528": ( "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", ), - ".group_0523": ( + ".group_0529": ( "WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator", ), - ".group_0524": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",), - ".group_0525": ( + ".group_0530": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",), + ".group_0531": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0526": ( + ".group_0532": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp", ), - ".group_0527": ( + ".group_0533": ( "WebhookIssueCommentEditedPropIssueAllof1", "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", @@ -9748,13 +9917,13 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactions", "WebhookIssueCommentEditedPropIssueAllof1PropUser", ), - ".group_0528": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), - ".group_0529": ( + ".group_0534": ("WebhookIssueCommentEditedPropIssueMergedMilestone",), + ".group_0535": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp", ), - ".group_0530": ("WebhookIssuesAssigned",), - ".group_0531": ("WebhookIssuesClosed",), - ".group_0532": ( + ".group_0536": ("WebhookIssuesAssigned",), + ".group_0537": ("WebhookIssuesClosed",), + ".group_0538": ( "WebhookIssuesClosedPropIssue", "WebhookIssuesClosedPropIssueMergedAssignee", "WebhookIssuesClosedPropIssueMergedAssignees", @@ -9762,7 +9931,7 @@ "WebhookIssuesClosedPropIssueMergedReactions", "WebhookIssuesClosedPropIssueMergedUser", ), - ".group_0533": ( + ".group_0539": ( "WebhookIssuesClosedPropIssueAllof0", "WebhookIssuesClosedPropIssueAllof0PropAssignee", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", @@ -9770,15 +9939,15 @@ "WebhookIssuesClosedPropIssueAllof0PropReactions", "WebhookIssuesClosedPropIssueAllof0PropUser", ), - ".group_0534": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), - ".group_0535": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), - ".group_0536": ( + ".group_0540": ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",), + ".group_0541": ("WebhookIssuesClosedPropIssueAllof0PropMilestone",), + ".group_0542": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ), - ".group_0537": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), - ".group_0538": ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",), - ".group_0539": ( + ".group_0543": ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",), + ".group_0544": ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",), + ".group_0545": ( "WebhookIssuesClosedPropIssueAllof1", "WebhookIssuesClosedPropIssueAllof1PropAssignee", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", @@ -9788,9 +9957,9 @@ "WebhookIssuesClosedPropIssueAllof1PropReactions", "WebhookIssuesClosedPropIssueAllof1PropUser", ), - ".group_0540": ("WebhookIssuesClosedPropIssueMergedMilestone",), - ".group_0541": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), - ".group_0542": ( + ".group_0546": ("WebhookIssuesClosedPropIssueMergedMilestone",), + ".group_0547": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",), + ".group_0548": ( "WebhookIssuesDeleted", "WebhookIssuesDeletedPropIssue", "WebhookIssuesDeletedPropIssuePropAssignee", @@ -9805,7 +9974,7 @@ "WebhookIssuesDeletedPropIssuePropReactions", "WebhookIssuesDeletedPropIssuePropUser", ), - ".group_0543": ( + ".group_0549": ( "WebhookIssuesDemilestoned", "WebhookIssuesDemilestonedPropIssue", "WebhookIssuesDemilestonedPropIssuePropAssignee", @@ -9820,7 +9989,7 @@ "WebhookIssuesDemilestonedPropIssuePropReactions", "WebhookIssuesDemilestonedPropIssuePropUser", ), - ".group_0544": ( + ".group_0550": ( "WebhookIssuesEdited", "WebhookIssuesEditedPropChanges", "WebhookIssuesEditedPropChangesPropBody", @@ -9838,7 +10007,7 @@ "WebhookIssuesEditedPropIssuePropReactions", "WebhookIssuesEditedPropIssuePropUser", ), - ".group_0545": ( + ".group_0551": ( "WebhookIssuesLabeled", "WebhookIssuesLabeledPropIssue", "WebhookIssuesLabeledPropIssuePropAssignee", @@ -9853,7 +10022,7 @@ "WebhookIssuesLabeledPropIssuePropReactions", "WebhookIssuesLabeledPropIssuePropUser", ), - ".group_0546": ( + ".group_0552": ( "WebhookIssuesLocked", "WebhookIssuesLockedPropIssue", "WebhookIssuesLockedPropIssuePropAssignee", @@ -9868,7 +10037,7 @@ "WebhookIssuesLockedPropIssuePropReactions", "WebhookIssuesLockedPropIssuePropUser", ), - ".group_0547": ( + ".group_0553": ( "WebhookIssuesMilestoned", "WebhookIssuesMilestonedPropIssue", "WebhookIssuesMilestonedPropIssuePropAssignee", @@ -9883,7 +10052,7 @@ "WebhookIssuesMilestonedPropIssuePropReactions", "WebhookIssuesMilestonedPropIssuePropUser", ), - ".group_0548": ( + ".group_0554": ( "WebhookIssuesOpened", "WebhookIssuesOpenedPropIssue", "WebhookIssuesOpenedPropIssuePropAssignee", @@ -9916,8 +10085,8 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", ), - ".group_0549": ("WebhookIssuesPinned",), - ".group_0550": ( + ".group_0555": ("WebhookIssuesPinned",), + ".group_0556": ( "WebhookIssuesReopened", "WebhookIssuesReopenedPropIssue", "WebhookIssuesReopenedPropIssuePropAssignee", @@ -9932,7 +10101,7 @@ "WebhookIssuesReopenedPropIssuePropReactions", "WebhookIssuesReopenedPropIssuePropUser", ), - ".group_0551": ( + ".group_0557": ( "WebhookIssuesTransferred", "WebhookIssuesTransferredPropChanges", "WebhookIssuesTransferredPropChangesPropNewIssue", @@ -9953,9 +10122,9 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", ), - ".group_0552": ("WebhookIssuesUnassigned",), - ".group_0553": ("WebhookIssuesUnlabeled",), - ".group_0554": ( + ".group_0558": ("WebhookIssuesUnassigned",), + ".group_0559": ("WebhookIssuesUnlabeled",), + ".group_0560": ( "WebhookIssuesUnlocked", "WebhookIssuesUnlockedPropIssue", "WebhookIssuesUnlockedPropIssuePropAssignee", @@ -9970,103 +10139,103 @@ "WebhookIssuesUnlockedPropIssuePropReactions", "WebhookIssuesUnlockedPropIssuePropUser", ), - ".group_0555": ("WebhookIssuesUnpinned",), - ".group_0556": ("WebhookLabelCreated",), - ".group_0557": ("WebhookLabelDeleted",), - ".group_0558": ( + ".group_0561": ("WebhookIssuesUnpinned",), + ".group_0562": ("WebhookLabelCreated",), + ".group_0563": ("WebhookLabelDeleted",), + ".group_0564": ( "WebhookLabelEdited", "WebhookLabelEditedPropChanges", "WebhookLabelEditedPropChangesPropColor", "WebhookLabelEditedPropChangesPropDescription", "WebhookLabelEditedPropChangesPropName", ), - ".group_0559": ("WebhookMarketplacePurchaseCancelled",), - ".group_0560": ( + ".group_0565": ("WebhookMarketplacePurchaseCancelled",), + ".group_0566": ( "WebhookMarketplacePurchaseChanged", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", ), - ".group_0561": ( + ".group_0567": ( "WebhookMarketplacePurchasePendingChange", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", ), - ".group_0562": ( + ".group_0568": ( "WebhookMarketplacePurchasePendingChangeCancelled", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", ), - ".group_0563": ("WebhookMarketplacePurchasePurchased",), - ".group_0564": ( + ".group_0569": ("WebhookMarketplacePurchasePurchased",), + ".group_0570": ( "WebhookMemberAdded", "WebhookMemberAddedPropChanges", "WebhookMemberAddedPropChangesPropPermission", "WebhookMemberAddedPropChangesPropRoleName", ), - ".group_0565": ( + ".group_0571": ( "WebhookMemberEdited", "WebhookMemberEditedPropChanges", "WebhookMemberEditedPropChangesPropOldPermission", "WebhookMemberEditedPropChangesPropPermission", ), - ".group_0566": ("WebhookMemberRemoved",), - ".group_0567": ( + ".group_0572": ("WebhookMemberRemoved",), + ".group_0573": ( "WebhookMembershipAdded", "WebhookMembershipAddedPropSender", ), - ".group_0568": ( + ".group_0574": ( "WebhookMembershipRemoved", "WebhookMembershipRemovedPropSender", ), - ".group_0569": ("WebhookMergeGroupChecksRequested",), - ".group_0570": ("WebhookMergeGroupDestroyed",), - ".group_0571": ( + ".group_0575": ("WebhookMergeGroupChecksRequested",), + ".group_0576": ("WebhookMergeGroupDestroyed",), + ".group_0577": ( "WebhookMetaDeleted", "WebhookMetaDeletedPropHook", "WebhookMetaDeletedPropHookPropConfig", ), - ".group_0572": ("WebhookMilestoneClosed",), - ".group_0573": ("WebhookMilestoneCreated",), - ".group_0574": ("WebhookMilestoneDeleted",), - ".group_0575": ( + ".group_0578": ("WebhookMilestoneClosed",), + ".group_0579": ("WebhookMilestoneCreated",), + ".group_0580": ("WebhookMilestoneDeleted",), + ".group_0581": ( "WebhookMilestoneEdited", "WebhookMilestoneEditedPropChanges", "WebhookMilestoneEditedPropChangesPropDescription", "WebhookMilestoneEditedPropChangesPropDueOn", "WebhookMilestoneEditedPropChangesPropTitle", ), - ".group_0576": ("WebhookMilestoneOpened",), - ".group_0577": ("WebhookOrgBlockBlocked",), - ".group_0578": ("WebhookOrgBlockUnblocked",), - ".group_0579": ("WebhookOrganizationDeleted",), - ".group_0580": ("WebhookOrganizationMemberAdded",), - ".group_0581": ( + ".group_0582": ("WebhookMilestoneOpened",), + ".group_0583": ("WebhookOrgBlockBlocked",), + ".group_0584": ("WebhookOrgBlockUnblocked",), + ".group_0585": ("WebhookOrganizationDeleted",), + ".group_0586": ("WebhookOrganizationMemberAdded",), + ".group_0587": ( "WebhookOrganizationMemberInvited", "WebhookOrganizationMemberInvitedPropInvitation", "WebhookOrganizationMemberInvitedPropInvitationPropInviter", ), - ".group_0582": ("WebhookOrganizationMemberRemoved",), - ".group_0583": ( + ".group_0588": ("WebhookOrganizationMemberRemoved",), + ".group_0589": ( "WebhookOrganizationRenamed", "WebhookOrganizationRenamedPropChanges", "WebhookOrganizationRenamedPropChangesPropLogin", ), - ".group_0584": ( + ".group_0590": ( "WebhookRubygemsMetadata", "WebhookRubygemsMetadataPropVersionInfo", "WebhookRubygemsMetadataPropMetadata", "WebhookRubygemsMetadataPropDependenciesItems", ), - ".group_0585": ("WebhookPackagePublished",), - ".group_0586": ( + ".group_0591": ("WebhookPackagePublished",), + ".group_0592": ( "WebhookPackagePublishedPropPackage", "WebhookPackagePublishedPropPackagePropOwner", "WebhookPackagePublishedPropPackagePropRegistry", ), - ".group_0587": ( + ".group_0593": ( "WebhookPackagePublishedPropPackagePropPackageVersion", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", @@ -10098,13 +10267,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0588": ("WebhookPackageUpdated",), - ".group_0589": ( + ".group_0594": ("WebhookPackageUpdated",), + ".group_0595": ( "WebhookPackageUpdatedPropPackage", "WebhookPackageUpdatedPropPackagePropOwner", "WebhookPackageUpdatedPropPackagePropRegistry", ), - ".group_0590": ( + ".group_0596": ( "WebhookPackageUpdatedPropPackagePropPackageVersion", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", @@ -10113,75 +10282,75 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0591": ( + ".group_0597": ( "WebhookPageBuild", "WebhookPageBuildPropBuild", "WebhookPageBuildPropBuildPropError", "WebhookPageBuildPropBuildPropPusher", ), - ".group_0592": ("WebhookPersonalAccessTokenRequestApproved",), - ".group_0593": ("WebhookPersonalAccessTokenRequestCancelled",), - ".group_0594": ("WebhookPersonalAccessTokenRequestCreated",), - ".group_0595": ("WebhookPersonalAccessTokenRequestDenied",), - ".group_0596": ("WebhookPing",), - ".group_0597": ( + ".group_0598": ("WebhookPersonalAccessTokenRequestApproved",), + ".group_0599": ("WebhookPersonalAccessTokenRequestCancelled",), + ".group_0600": ("WebhookPersonalAccessTokenRequestCreated",), + ".group_0601": ("WebhookPersonalAccessTokenRequestDenied",), + ".group_0602": ("WebhookPing",), + ".group_0603": ( "WebhookPingPropHook", "WebhookPingPropHookPropConfig", ), - ".group_0598": ("WebhookPingFormEncoded",), - ".group_0599": ( + ".group_0604": ("WebhookPingFormEncoded",), + ".group_0605": ( "WebhookProjectCardConverted", "WebhookProjectCardConvertedPropChanges", "WebhookProjectCardConvertedPropChangesPropNote", ), - ".group_0600": ("WebhookProjectCardCreated",), - ".group_0601": ( + ".group_0606": ("WebhookProjectCardCreated",), + ".group_0607": ( "WebhookProjectCardDeleted", "WebhookProjectCardDeletedPropProjectCard", "WebhookProjectCardDeletedPropProjectCardPropCreator", ), - ".group_0602": ( + ".group_0608": ( "WebhookProjectCardEdited", "WebhookProjectCardEditedPropChanges", "WebhookProjectCardEditedPropChangesPropNote", ), - ".group_0603": ( + ".group_0609": ( "WebhookProjectCardMoved", "WebhookProjectCardMovedPropChanges", "WebhookProjectCardMovedPropChangesPropColumnId", "WebhookProjectCardMovedPropProjectCard", "WebhookProjectCardMovedPropProjectCardMergedCreator", ), - ".group_0604": ( + ".group_0610": ( "WebhookProjectCardMovedPropProjectCardAllof0", "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", ), - ".group_0605": ( + ".group_0611": ( "WebhookProjectCardMovedPropProjectCardAllof1", "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", ), - ".group_0606": ("WebhookProjectClosed",), - ".group_0607": ("WebhookProjectColumnCreated",), - ".group_0608": ("WebhookProjectColumnDeleted",), - ".group_0609": ( + ".group_0612": ("WebhookProjectClosed",), + ".group_0613": ("WebhookProjectColumnCreated",), + ".group_0614": ("WebhookProjectColumnDeleted",), + ".group_0615": ( "WebhookProjectColumnEdited", "WebhookProjectColumnEditedPropChanges", "WebhookProjectColumnEditedPropChangesPropName", ), - ".group_0610": ("WebhookProjectColumnMoved",), - ".group_0611": ("WebhookProjectCreated",), - ".group_0612": ("WebhookProjectDeleted",), - ".group_0613": ( + ".group_0616": ("WebhookProjectColumnMoved",), + ".group_0617": ("WebhookProjectCreated",), + ".group_0618": ("WebhookProjectDeleted",), + ".group_0619": ( "WebhookProjectEdited", "WebhookProjectEditedPropChanges", "WebhookProjectEditedPropChangesPropBody", "WebhookProjectEditedPropChangesPropName", ), - ".group_0614": ("WebhookProjectReopened",), - ".group_0615": ("WebhookProjectsV2ProjectClosed",), - ".group_0616": ("WebhookProjectsV2ProjectCreated",), - ".group_0617": ("WebhookProjectsV2ProjectDeleted",), - ".group_0618": ( + ".group_0620": ("WebhookProjectReopened",), + ".group_0621": ("WebhookProjectsV2ProjectClosed",), + ".group_0622": ("WebhookProjectsV2ProjectCreated",), + ".group_0623": ("WebhookProjectsV2ProjectDeleted",), + ".group_0624": ( "WebhookProjectsV2ProjectEdited", "WebhookProjectsV2ProjectEditedPropChanges", "WebhookProjectsV2ProjectEditedPropChangesPropDescription", @@ -10189,30 +10358,42 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", "WebhookProjectsV2ProjectEditedPropChangesPropTitle", ), - ".group_0619": ("WebhookProjectsV2ItemArchived",), - ".group_0620": ( + ".group_0625": ("WebhookProjectsV2ItemArchived",), + ".group_0626": ( "WebhookProjectsV2ItemConverted", "WebhookProjectsV2ItemConvertedPropChanges", "WebhookProjectsV2ItemConvertedPropChangesPropContentType", ), - ".group_0621": ("WebhookProjectsV2ItemCreated",), - ".group_0622": ("WebhookProjectsV2ItemDeleted",), - ".group_0623": ( + ".group_0627": ("WebhookProjectsV2ItemCreated",), + ".group_0628": ("WebhookProjectsV2ItemDeleted",), + ".group_0629": ( "WebhookProjectsV2ItemEdited", "WebhookProjectsV2ItemEditedPropChangesOneof0", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", + "ProjectsV2SingleSelectOption", + "ProjectsV2IterationSetting", "WebhookProjectsV2ItemEditedPropChangesOneof1", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", ), - ".group_0624": ( + ".group_0630": ( "WebhookProjectsV2ItemReordered", "WebhookProjectsV2ItemReorderedPropChanges", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", ), - ".group_0625": ("WebhookProjectsV2ItemRestored",), - ".group_0626": ("WebhookProjectsV2ProjectReopened",), - ".group_0627": ("WebhookPublic",), - ".group_0628": ( + ".group_0631": ("WebhookProjectsV2ItemRestored",), + ".group_0632": ("WebhookProjectsV2ProjectReopened",), + ".group_0633": ("WebhookProjectsV2StatusUpdateCreated",), + ".group_0634": ("WebhookProjectsV2StatusUpdateDeleted",), + ".group_0635": ( + "WebhookProjectsV2StatusUpdateEdited", + "WebhookProjectsV2StatusUpdateEditedPropChanges", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", + ), + ".group_0636": ("WebhookPublic",), + ".group_0637": ( "WebhookPullRequestAssigned", "WebhookPullRequestAssignedPropPullRequest", "WebhookPullRequestAssignedPropPullRequestPropAssignee", @@ -10251,7 +10432,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0629": ( + ".group_0638": ( "WebhookPullRequestAutoMergeDisabled", "WebhookPullRequestAutoMergeDisabledPropPullRequest", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", @@ -10290,7 +10471,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0630": ( + ".group_0639": ( "WebhookPullRequestAutoMergeEnabled", "WebhookPullRequestAutoMergeEnabledPropPullRequest", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", @@ -10329,10 +10510,10 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0631": ("WebhookPullRequestClosed",), - ".group_0632": ("WebhookPullRequestConvertedToDraft",), - ".group_0633": ("WebhookPullRequestDemilestoned",), - ".group_0634": ( + ".group_0640": ("WebhookPullRequestClosed",), + ".group_0641": ("WebhookPullRequestConvertedToDraft",), + ".group_0642": ("WebhookPullRequestDemilestoned",), + ".group_0643": ( "WebhookPullRequestDequeued", "WebhookPullRequestDequeuedPropPullRequest", "WebhookPullRequestDequeuedPropPullRequestPropAssignee", @@ -10371,7 +10552,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0635": ( + ".group_0644": ( "WebhookPullRequestEdited", "WebhookPullRequestEditedPropChanges", "WebhookPullRequestEditedPropChangesPropBody", @@ -10380,7 +10561,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRef", "WebhookPullRequestEditedPropChangesPropBasePropSha", ), - ".group_0636": ( + ".group_0645": ( "WebhookPullRequestEnqueued", "WebhookPullRequestEnqueuedPropPullRequest", "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", @@ -10419,7 +10600,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0637": ( + ".group_0646": ( "WebhookPullRequestLabeled", "WebhookPullRequestLabeledPropPullRequest", "WebhookPullRequestLabeledPropPullRequestPropAssignee", @@ -10458,7 +10639,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0638": ( + ".group_0647": ( "WebhookPullRequestLocked", "WebhookPullRequestLockedPropPullRequest", "WebhookPullRequestLockedPropPullRequestPropAssignee", @@ -10497,11 +10678,11 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0639": ("WebhookPullRequestMilestoned",), - ".group_0640": ("WebhookPullRequestOpened",), - ".group_0641": ("WebhookPullRequestReadyForReview",), - ".group_0642": ("WebhookPullRequestReopened",), - ".group_0643": ( + ".group_0648": ("WebhookPullRequestMilestoned",), + ".group_0649": ("WebhookPullRequestOpened",), + ".group_0650": ("WebhookPullRequestReadyForReview",), + ".group_0651": ("WebhookPullRequestReopened",), + ".group_0652": ( "WebhookPullRequestReviewCommentCreated", "WebhookPullRequestReviewCommentCreatedPropComment", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", @@ -10546,7 +10727,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0644": ( + ".group_0653": ( "WebhookPullRequestReviewCommentDeleted", "WebhookPullRequestReviewCommentDeletedPropPullRequest", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", @@ -10584,7 +10765,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0645": ( + ".group_0654": ( "WebhookPullRequestReviewCommentEdited", "WebhookPullRequestReviewCommentEditedPropPullRequest", "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", @@ -10622,7 +10803,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0646": ( + ".group_0655": ( "WebhookPullRequestReviewDismissed", "WebhookPullRequestReviewDismissedPropReview", "WebhookPullRequestReviewDismissedPropReviewPropUser", @@ -10665,7 +10846,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0647": ( + ".group_0656": ( "WebhookPullRequestReviewEdited", "WebhookPullRequestReviewEditedPropChanges", "WebhookPullRequestReviewEditedPropChangesPropBody", @@ -10705,7 +10886,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0648": ( + ".group_0657": ( "WebhookPullRequestReviewRequestRemovedOneof0", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", @@ -10745,7 +10926,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0649": ( + ".group_0658": ( "WebhookPullRequestReviewRequestRemovedOneof1", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", @@ -10786,7 +10967,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0650": ( + ".group_0659": ( "WebhookPullRequestReviewRequestedOneof0", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", "WebhookPullRequestReviewRequestedOneof0PropPullRequest", @@ -10826,7 +11007,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0651": ( + ".group_0660": ( "WebhookPullRequestReviewRequestedOneof1", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", @@ -10867,7 +11048,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0652": ( + ".group_0661": ( "WebhookPullRequestReviewSubmitted", "WebhookPullRequestReviewSubmittedPropPullRequest", "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", @@ -10905,7 +11086,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0653": ( + ".group_0662": ( "WebhookPullRequestReviewThreadResolved", "WebhookPullRequestReviewThreadResolvedPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", @@ -10951,7 +11132,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0654": ( + ".group_0663": ( "WebhookPullRequestReviewThreadUnresolved", "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", @@ -10997,7 +11178,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", ), - ".group_0655": ( + ".group_0664": ( "WebhookPullRequestSynchronize", "WebhookPullRequestSynchronizePropPullRequest", "WebhookPullRequestSynchronizePropPullRequestPropAssignee", @@ -11036,7 +11217,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0656": ( + ".group_0665": ( "WebhookPullRequestUnassigned", "WebhookPullRequestUnassignedPropPullRequest", "WebhookPullRequestUnassignedPropPullRequestPropAssignee", @@ -11075,7 +11256,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0657": ( + ".group_0666": ( "WebhookPullRequestUnlabeled", "WebhookPullRequestUnlabeledPropPullRequest", "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", @@ -11114,7 +11295,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0658": ( + ".group_0667": ( "WebhookPullRequestUnlocked", "WebhookPullRequestUnlockedPropPullRequest", "WebhookPullRequestUnlockedPropPullRequestPropAssignee", @@ -11153,7 +11334,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", ), - ".group_0659": ( + ".group_0668": ( "WebhookPush", "WebhookPushPropHeadCommit", "WebhookPushPropHeadCommitPropAuthor", @@ -11168,13 +11349,13 @@ "WebhookPushPropRepositoryPropOwner", "WebhookPushPropRepositoryPropPermissions", ), - ".group_0660": ("WebhookRegistryPackagePublished",), - ".group_0661": ( + ".group_0669": ("WebhookRegistryPackagePublished",), + ".group_0670": ( "WebhookRegistryPackagePublishedPropRegistryPackage", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", ), - ".group_0662": ( + ".group_0671": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", @@ -11205,13 +11386,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0663": ("WebhookRegistryPackageUpdated",), - ".group_0664": ( + ".group_0672": ("WebhookRegistryPackageUpdated",), + ".group_0673": ( "WebhookRegistryPackageUpdatedPropRegistryPackage", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", ), - ".group_0665": ( + ".group_0674": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", @@ -11220,16 +11401,16 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", ), - ".group_0666": ("WebhookReleaseCreated",), - ".group_0667": ("WebhookReleaseDeleted",), - ".group_0668": ( + ".group_0675": ("WebhookReleaseCreated",), + ".group_0676": ("WebhookReleaseDeleted",), + ".group_0677": ( "WebhookReleaseEdited", "WebhookReleaseEditedPropChanges", "WebhookReleaseEditedPropChangesPropBody", "WebhookReleaseEditedPropChangesPropName", "WebhookReleaseEditedPropChangesPropMakeLatest", ), - ".group_0669": ( + ".group_0678": ( "WebhookReleasePrereleased", "WebhookReleasePrereleasedPropRelease", "WebhookReleasePrereleasedPropReleasePropAssetsItems", @@ -11237,19 +11418,19 @@ "WebhookReleasePrereleasedPropReleasePropAuthor", "WebhookReleasePrereleasedPropReleasePropReactions", ), - ".group_0670": ("WebhookReleasePublished",), - ".group_0671": ("WebhookReleaseReleased",), - ".group_0672": ("WebhookReleaseUnpublished",), - ".group_0673": ("WebhookRepositoryAdvisoryPublished",), - ".group_0674": ("WebhookRepositoryAdvisoryReported",), - ".group_0675": ("WebhookRepositoryArchived",), - ".group_0676": ("WebhookRepositoryCreated",), - ".group_0677": ("WebhookRepositoryDeleted",), - ".group_0678": ( + ".group_0679": ("WebhookReleasePublished",), + ".group_0680": ("WebhookReleaseReleased",), + ".group_0681": ("WebhookReleaseUnpublished",), + ".group_0682": ("WebhookRepositoryAdvisoryPublished",), + ".group_0683": ("WebhookRepositoryAdvisoryReported",), + ".group_0684": ("WebhookRepositoryArchived",), + ".group_0685": ("WebhookRepositoryCreated",), + ".group_0686": ("WebhookRepositoryDeleted",), + ".group_0687": ( "WebhookRepositoryDispatchSample", "WebhookRepositoryDispatchSamplePropClientPayload", ), - ".group_0679": ( + ".group_0688": ( "WebhookRepositoryEdited", "WebhookRepositoryEditedPropChanges", "WebhookRepositoryEditedPropChangesPropDefaultBranch", @@ -11257,25 +11438,25 @@ "WebhookRepositoryEditedPropChangesPropHomepage", "WebhookRepositoryEditedPropChangesPropTopics", ), - ".group_0680": ("WebhookRepositoryImport",), - ".group_0681": ("WebhookRepositoryPrivatized",), - ".group_0682": ("WebhookRepositoryPublicized",), - ".group_0683": ( + ".group_0689": ("WebhookRepositoryImport",), + ".group_0690": ("WebhookRepositoryPrivatized",), + ".group_0691": ("WebhookRepositoryPublicized",), + ".group_0692": ( "WebhookRepositoryRenamed", "WebhookRepositoryRenamedPropChanges", "WebhookRepositoryRenamedPropChangesPropRepository", "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", ), - ".group_0684": ("WebhookRepositoryRulesetCreated",), - ".group_0685": ("WebhookRepositoryRulesetDeleted",), - ".group_0686": ("WebhookRepositoryRulesetEdited",), - ".group_0687": ( + ".group_0693": ("WebhookRepositoryRulesetCreated",), + ".group_0694": ("WebhookRepositoryRulesetDeleted",), + ".group_0695": ("WebhookRepositoryRulesetEdited",), + ".group_0696": ( "WebhookRepositoryRulesetEditedPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropName", "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", ), - ".group_0688": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), - ".group_0689": ( + ".group_0697": ("WebhookRepositoryRulesetEditedPropChangesPropConditions",), + ".group_0698": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", @@ -11283,15 +11464,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", ), - ".group_0690": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), - ".group_0691": ( + ".group_0699": ("WebhookRepositoryRulesetEditedPropChangesPropRules",), + ".group_0700": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", ), - ".group_0692": ( + ".group_0701": ( "WebhookRepositoryTransferred", "WebhookRepositoryTransferredPropChanges", "WebhookRepositoryTransferredPropChangesPropOwner", @@ -11299,21 +11480,21 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", ), - ".group_0693": ("WebhookRepositoryUnarchived",), - ".group_0694": ("WebhookRepositoryVulnerabilityAlertCreate",), - ".group_0695": ( + ".group_0702": ("WebhookRepositoryUnarchived",), + ".group_0703": ("WebhookRepositoryVulnerabilityAlertCreate",), + ".group_0704": ( "WebhookRepositoryVulnerabilityAlertDismiss", "WebhookRepositoryVulnerabilityAlertDismissPropAlert", "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", ), - ".group_0696": ("WebhookRepositoryVulnerabilityAlertReopen",), - ".group_0697": ( + ".group_0705": ("WebhookRepositoryVulnerabilityAlertReopen",), + ".group_0706": ( "WebhookRepositoryVulnerabilityAlertResolve", "WebhookRepositoryVulnerabilityAlertResolvePropAlert", "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", ), - ".group_0698": ("WebhookSecretScanningAlertCreated",), - ".group_0699": ( + ".group_0707": ("WebhookSecretScanningAlertCreated",), + ".group_0708": ( "WebhookSecretScanningAlertLocationCreated", "SecretScanningLocation", "SecretScanningLocationCommit", @@ -11330,13 +11511,13 @@ "SecretScanningLocationPullRequestReview", "SecretScanningLocationPullRequestReviewComment", ), - ".group_0700": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), - ".group_0701": ("WebhookSecretScanningAlertReopened",), - ".group_0702": ("WebhookSecretScanningAlertResolved",), - ".group_0703": ("WebhookSecretScanningAlertValidated",), - ".group_0704": ("WebhookSecurityAdvisoryPublished",), - ".group_0705": ("WebhookSecurityAdvisoryUpdated",), - ".group_0706": ( + ".group_0709": ("WebhookSecretScanningAlertLocationCreatedFormEncoded",), + ".group_0710": ("WebhookSecretScanningAlertReopened",), + ".group_0711": ("WebhookSecretScanningAlertResolved",), + ".group_0712": ("WebhookSecretScanningAlertValidated",), + ".group_0713": ("WebhookSecurityAdvisoryPublished",), + ".group_0714": ("WebhookSecurityAdvisoryUpdated",), + ".group_0715": ( "WebhookSecurityAdvisoryWithdrawn", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", @@ -11347,22 +11528,22 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", ), - ".group_0707": ("WebhookSecurityAndAnalysis",), - ".group_0708": ("WebhookSecurityAndAnalysisPropChanges",), - ".group_0709": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), - ".group_0710": ("WebhookSponsorshipCancelled",), - ".group_0711": ("WebhookSponsorshipCreated",), - ".group_0712": ( + ".group_0716": ("WebhookSecurityAndAnalysis",), + ".group_0717": ("WebhookSecurityAndAnalysisPropChanges",), + ".group_0718": ("WebhookSecurityAndAnalysisPropChangesPropFrom",), + ".group_0719": ("WebhookSponsorshipCancelled",), + ".group_0720": ("WebhookSponsorshipCreated",), + ".group_0721": ( "WebhookSponsorshipEdited", "WebhookSponsorshipEditedPropChanges", "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", ), - ".group_0713": ("WebhookSponsorshipPendingCancellation",), - ".group_0714": ("WebhookSponsorshipPendingTierChange",), - ".group_0715": ("WebhookSponsorshipTierChanged",), - ".group_0716": ("WebhookStarCreated",), - ".group_0717": ("WebhookStarDeleted",), - ".group_0718": ( + ".group_0722": ("WebhookSponsorshipPendingCancellation",), + ".group_0723": ("WebhookSponsorshipPendingTierChange",), + ".group_0724": ("WebhookSponsorshipTierChanged",), + ".group_0725": ("WebhookStarCreated",), + ".group_0726": ("WebhookStarDeleted",), + ".group_0727": ( "WebhookStatus", "WebhookStatusPropBranchesItems", "WebhookStatusPropBranchesItemsPropCommit", @@ -11376,12 +11557,12 @@ "WebhookStatusPropCommitPropCommitPropTree", "WebhookStatusPropCommitPropCommitPropVerification", ), - ".group_0719": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), - ".group_0720": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), - ".group_0721": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), - ".group_0722": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), - ".group_0723": ("WebhookTeamAdd",), - ".group_0724": ( + ".group_0728": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",), + ".group_0729": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",), + ".group_0730": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",), + ".group_0731": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",), + ".group_0732": ("WebhookTeamAdd",), + ".group_0733": ( "WebhookTeamAddedToRepository", "WebhookTeamAddedToRepositoryPropRepository", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", @@ -11389,7 +11570,7 @@ "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", ), - ".group_0725": ( + ".group_0734": ( "WebhookTeamCreated", "WebhookTeamCreatedPropRepository", "WebhookTeamCreatedPropRepositoryPropCustomProperties", @@ -11397,7 +11578,7 @@ "WebhookTeamCreatedPropRepositoryPropOwner", "WebhookTeamCreatedPropRepositoryPropPermissions", ), - ".group_0726": ( + ".group_0735": ( "WebhookTeamDeleted", "WebhookTeamDeletedPropRepository", "WebhookTeamDeletedPropRepositoryPropCustomProperties", @@ -11405,7 +11586,7 @@ "WebhookTeamDeletedPropRepositoryPropOwner", "WebhookTeamDeletedPropRepositoryPropPermissions", ), - ".group_0727": ( + ".group_0736": ( "WebhookTeamEdited", "WebhookTeamEditedPropRepository", "WebhookTeamEditedPropRepositoryPropCustomProperties", @@ -11421,7 +11602,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", ), - ".group_0728": ( + ".group_0737": ( "WebhookTeamRemovedFromRepository", "WebhookTeamRemovedFromRepositoryPropRepository", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", @@ -11429,48 +11610,48 @@ "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", ), - ".group_0729": ("WebhookWatchStarted",), - ".group_0730": ( + ".group_0738": ("WebhookWatchStarted",), + ".group_0739": ( "WebhookWorkflowDispatch", "WebhookWorkflowDispatchPropInputs", ), - ".group_0731": ( + ".group_0740": ( "WebhookWorkflowJobCompleted", "WebhookWorkflowJobCompletedPropWorkflowJob", "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ), - ".group_0732": ( + ".group_0741": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ), - ".group_0733": ( + ".group_0742": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", ), - ".group_0734": ( + ".group_0743": ( "WebhookWorkflowJobInProgress", "WebhookWorkflowJobInProgressPropWorkflowJob", "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", ), - ".group_0735": ( + ".group_0744": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", ), - ".group_0736": ( + ".group_0745": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", ), - ".group_0737": ( + ".group_0746": ( "WebhookWorkflowJobQueued", "WebhookWorkflowJobQueuedPropWorkflowJob", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", ), - ".group_0738": ( + ".group_0747": ( "WebhookWorkflowJobWaiting", "WebhookWorkflowJobWaitingPropWorkflowJob", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", ), - ".group_0739": ( + ".group_0748": ( "WebhookWorkflowRunCompleted", "WebhookWorkflowRunCompletedPropWorkflowRun", "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", @@ -11489,7 +11670,7 @@ "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0740": ( + ".group_0749": ( "WebhookWorkflowRunInProgress", "WebhookWorkflowRunInProgressPropWorkflowRun", "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", @@ -11508,7 +11689,7 @@ "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0741": ( + ".group_0750": ( "WebhookWorkflowRunRequested", "WebhookWorkflowRunRequestedPropWorkflowRun", "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", @@ -11527,222 +11708,257 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ), - ".group_0742": ("AppManifestsCodeConversionsPostResponse201",), - ".group_0743": ("AppManifestsCodeConversionsPostResponse201Allof1",), - ".group_0744": ("AppHookConfigPatchBody",), - ".group_0745": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), - ".group_0746": ("AppInstallationsInstallationIdAccessTokensPostBody",), - ".group_0747": ("ApplicationsClientIdGrantDeleteBody",), - ".group_0748": ("ApplicationsClientIdTokenPostBody",), - ".group_0749": ("ApplicationsClientIdTokenDeleteBody",), - ".group_0750": ("ApplicationsClientIdTokenPatchBody",), - ".group_0751": ("ApplicationsClientIdTokenScopedPostBody",), - ".group_0752": ("EmojisGetResponse200",), - ".group_0753": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",), - ".group_0754": ( + ".group_0751": ("AppManifestsCodeConversionsPostResponse201",), + ".group_0752": ("AppManifestsCodeConversionsPostResponse201Allof1",), + ".group_0753": ("AppHookConfigPatchBody",), + ".group_0754": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",), + ".group_0755": ("AppInstallationsInstallationIdAccessTokensPostBody",), + ".group_0756": ("ApplicationsClientIdGrantDeleteBody",), + ".group_0757": ("ApplicationsClientIdTokenPostBody",), + ".group_0758": ("ApplicationsClientIdTokenDeleteBody",), + ".group_0759": ("ApplicationsClientIdTokenPatchBody",), + ".group_0760": ("ApplicationsClientIdTokenScopedPostBody",), + ".group_0761": ("EmojisGetResponse200",), + ".group_0762": ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200",), + ".group_0763": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",), + ".group_0764": ( "GistsPostBody", "GistsPostBodyPropFiles", ), - ".group_0755": ( + ".group_0765": ( "GistsGistIdGetResponse403", "GistsGistIdGetResponse403PropBlock", ), - ".group_0756": ( + ".group_0766": ( "GistsGistIdPatchBody", "GistsGistIdPatchBodyPropFiles", ), - ".group_0757": ("GistsGistIdCommentsPostBody",), - ".group_0758": ("GistsGistIdCommentsCommentIdPatchBody",), - ".group_0759": ("GistsGistIdStarGetResponse404",), - ".group_0760": ("InstallationRepositoriesGetResponse200",), - ".group_0761": ("MarkdownPostBody",), - ".group_0762": ("NotificationsPutBody",), - ".group_0763": ("NotificationsPutResponse202",), - ".group_0764": ("NotificationsThreadsThreadIdSubscriptionPutBody",), - ".group_0765": ("OrgsOrgPatchBody",), - ".group_0766": ( + ".group_0767": ("GistsGistIdCommentsPostBody",), + ".group_0768": ("GistsGistIdCommentsCommentIdPatchBody",), + ".group_0769": ("GistsGistIdStarGetResponse404",), + ".group_0770": ("InstallationRepositoriesGetResponse200",), + ".group_0771": ("MarkdownPostBody",), + ".group_0772": ("NotificationsPutBody",), + ".group_0773": ("NotificationsPutResponse202",), + ".group_0774": ("NotificationsThreadsThreadIdSubscriptionPutBody",), + ".group_0775": ("OrgsOrgPatchBody",), + ".group_0776": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", "ActionsCacheUsageByRepository", ), - ".group_0767": ("OrgsOrgActionsPermissionsPutBody",), - ".group_0768": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), - ".group_0769": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), - ".group_0770": ("OrgsOrgActionsRunnersGetResponse200",), - ".group_0771": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), - ".group_0772": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",), - ".group_0773": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",), - ".group_0774": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), - ".group_0775": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), - ".group_0776": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",), - ".group_0777": ( + ".group_0777": ("OrgsOrgActionsPermissionsPutBody",), + ".group_0778": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",), + ".group_0779": ("OrgsOrgActionsPermissionsRepositoriesPutBody",), + ".group_0780": ("OrgsOrgActionsRunnersGetResponse200",), + ".group_0781": ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",), + ".group_0782": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",), + ".group_0783": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",), + ".group_0784": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",), + ".group_0785": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",), + ".group_0786": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",), + ".group_0787": ( "OrgsOrgActionsSecretsGetResponse200", "OrganizationActionsSecret", ), - ".group_0778": ("OrgsOrgActionsSecretsSecretNamePutBody",), - ".group_0779": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), - ".group_0780": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), - ".group_0781": ( + ".group_0788": ("OrgsOrgActionsSecretsSecretNamePutBody",), + ".group_0789": ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",), + ".group_0790": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",), + ".group_0791": ( "OrgsOrgActionsVariablesGetResponse200", "OrganizationActionsVariable", ), - ".group_0782": ("OrgsOrgActionsVariablesPostBody",), - ".group_0783": ("OrgsOrgActionsVariablesNamePatchBody",), - ".group_0784": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), - ".group_0785": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), - ".group_0786": ("OrgsOrgCodespacesGetResponse200",), - ".group_0787": ("OrgsOrgCodespacesAccessPutBody",), - ".group_0788": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), - ".group_0789": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), - ".group_0790": ( + ".group_0792": ("OrgsOrgActionsVariablesPostBody",), + ".group_0793": ("OrgsOrgActionsVariablesNamePatchBody",), + ".group_0794": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",), + ".group_0795": ("OrgsOrgActionsVariablesNameRepositoriesPutBody",), + ".group_0796": ( + "OrgsOrgAttestationsSubjectDigestGetResponse200", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + ), + ".group_0797": ("OrgsOrgCodeSecurityConfigurationsPostBody",), + ".group_0798": ("OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody",), + ".group_0799": ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody", + ), + ".group_0800": ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody", + ), + ".group_0801": ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200", + ), + ".group_0802": ("OrgsOrgCodespacesGetResponse200",), + ".group_0803": ("OrgsOrgCodespacesAccessPutBody",), + ".group_0804": ("OrgsOrgCodespacesAccessSelectedUsersPostBody",), + ".group_0805": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",), + ".group_0806": ( "OrgsOrgCodespacesSecretsGetResponse200", "CodespacesOrgSecret", ), - ".group_0791": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), - ".group_0792": ( + ".group_0807": ("OrgsOrgCodespacesSecretsSecretNamePutBody",), + ".group_0808": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0793": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_0794": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), - ".group_0795": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), - ".group_0796": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), - ".group_0797": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), - ".group_0798": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), - ".group_0799": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), - ".group_0800": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), - ".group_0801": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), - ".group_0802": ( + ".group_0809": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_0810": ("OrgsOrgCopilotBillingSeatsGetResponse200",), + ".group_0811": ("OrgsOrgCopilotBillingSelectedTeamsPostBody",), + ".group_0812": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",), + ".group_0813": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",), + ".group_0814": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",), + ".group_0815": ("OrgsOrgCopilotBillingSelectedUsersPostBody",), + ".group_0816": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",), + ".group_0817": ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",), + ".group_0818": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",), + ".group_0819": ( "OrgsOrgDependabotSecretsGetResponse200", "OrganizationDependabotSecret", ), - ".group_0803": ("OrgsOrgDependabotSecretsSecretNamePutBody",), - ".group_0804": ( + ".group_0820": ("OrgsOrgDependabotSecretsSecretNamePutBody",), + ".group_0821": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200", ), - ".group_0805": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), - ".group_0806": ( + ".group_0822": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",), + ".group_0823": ( "OrgsOrgHooksPostBody", "OrgsOrgHooksPostBodyPropConfig", ), - ".group_0807": ( + ".group_0824": ( "OrgsOrgHooksHookIdPatchBody", "OrgsOrgHooksHookIdPatchBodyPropConfig", ), - ".group_0808": ("OrgsOrgHooksHookIdConfigPatchBody",), - ".group_0809": ("OrgsOrgInstallationsGetResponse200",), - ".group_0810": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), - ".group_0811": ("OrgsOrgInvitationsPostBody",), - ".group_0812": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), - ".group_0813": ("OrgsOrgMembershipsUsernamePutBody",), - ".group_0814": ("OrgsOrgMigrationsPostBody",), - ".group_0815": ("OrgsOrgOrganizationRolesPostBody",), - ".group_0816": ("OrgsOrgOrganizationRolesRoleIdPatchBody",), - ".group_0817": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), - ".group_0818": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), - ".group_0819": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), - ".group_0820": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), - ".group_0821": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), - ".group_0822": ("OrgsOrgPersonalAccessTokensPostBody",), - ".group_0823": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), - ".group_0824": ("OrgsOrgProjectsPostBody",), - ".group_0825": ("OrgsOrgPropertiesSchemaPatchBody",), - ".group_0826": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",), - ".group_0827": ("OrgsOrgPropertiesValuesPatchBody",), - ".group_0828": ( + ".group_0825": ("OrgsOrgHooksHookIdConfigPatchBody",), + ".group_0826": ("OrgsOrgInstallationsGetResponse200",), + ".group_0827": ("OrgsOrgInteractionLimitsGetResponse200Anyof1",), + ".group_0828": ("OrgsOrgInvitationsPostBody",), + ".group_0829": ("OrgsOrgMembersUsernameCodespacesGetResponse200",), + ".group_0830": ("OrgsOrgMembershipsUsernamePutBody",), + ".group_0831": ("OrgsOrgMigrationsPostBody",), + ".group_0832": ("OrgsOrgOrganizationRolesPostBody",), + ".group_0833": ("OrgsOrgOrganizationRolesRoleIdPatchBody",), + ".group_0834": ("OrgsOrgOutsideCollaboratorsUsernamePutBody",), + ".group_0835": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",), + ".group_0836": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",), + ".group_0837": ("OrgsOrgPersonalAccessTokenRequestsPostBody",), + ".group_0838": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",), + ".group_0839": ("OrgsOrgPersonalAccessTokensPostBody",), + ".group_0840": ("OrgsOrgPersonalAccessTokensPatIdPostBody",), + ".group_0841": ("OrgsOrgProjectsPostBody",), + ".group_0842": ("OrgsOrgPropertiesSchemaPatchBody",), + ".group_0843": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",), + ".group_0844": ("OrgsOrgPropertiesValuesPatchBody",), + ".group_0845": ( "OrgsOrgReposPostBody", "OrgsOrgReposPostBodyPropCustomProperties", ), - ".group_0829": ("OrgsOrgRulesetsPostBody",), - ".group_0830": ("OrgsOrgRulesetsRulesetIdPutBody",), - ".group_0831": ("OrgsOrgTeamsPostBody",), - ".group_0832": ("OrgsOrgTeamsTeamSlugPatchBody",), - ".group_0833": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), - ".group_0834": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), - ".group_0835": ( + ".group_0846": ("OrgsOrgRulesetsPostBody",), + ".group_0847": ("OrgsOrgRulesetsRulesetIdPutBody",), + ".group_0848": ("OrgsOrgTeamsPostBody",), + ".group_0849": ("OrgsOrgTeamsTeamSlugPatchBody",), + ".group_0850": ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",), + ".group_0851": ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",), + ".group_0852": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody", ), - ".group_0836": ( + ".group_0853": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_0837": ( + ".group_0854": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_0838": ( + ".group_0855": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody", ), - ".group_0839": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), - ".group_0840": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), - ".group_0841": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), - ".group_0842": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), - ".group_0843": ("OrgsOrgSecurityProductEnablementPostBody",), - ".group_0844": ("ProjectsColumnsCardsCardIdDeleteResponse403",), - ".group_0845": ("ProjectsColumnsCardsCardIdPatchBody",), - ".group_0846": ("ProjectsColumnsCardsCardIdMovesPostBody",), - ".group_0847": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), - ".group_0848": ( + ".group_0856": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",), + ".group_0857": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",), + ".group_0858": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",), + ".group_0859": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",), + ".group_0860": ("OrgsOrgSecurityProductEnablementPostBody",), + ".group_0861": ("ProjectsColumnsCardsCardIdDeleteResponse403",), + ".group_0862": ("ProjectsColumnsCardsCardIdPatchBody",), + ".group_0863": ("ProjectsColumnsCardsCardIdMovesPostBody",), + ".group_0864": ("ProjectsColumnsCardsCardIdMovesPostResponse201",), + ".group_0865": ( "ProjectsColumnsCardsCardIdMovesPostResponse403", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", ), - ".group_0849": ( + ".group_0866": ( "ProjectsColumnsCardsCardIdMovesPostResponse503", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", ), - ".group_0850": ("ProjectsColumnsColumnIdPatchBody",), - ".group_0851": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), - ".group_0852": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), - ".group_0853": ( + ".group_0867": ("ProjectsColumnsColumnIdPatchBody",), + ".group_0868": ("ProjectsColumnsColumnIdCardsPostBodyOneof0",), + ".group_0869": ("ProjectsColumnsColumnIdCardsPostBodyOneof1",), + ".group_0870": ( "ProjectsColumnsColumnIdCardsPostResponse503", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", ), - ".group_0854": ("ProjectsColumnsColumnIdMovesPostBody",), - ".group_0855": ("ProjectsColumnsColumnIdMovesPostResponse201",), - ".group_0856": ("ProjectsProjectIdDeleteResponse403",), - ".group_0857": ("ProjectsProjectIdPatchBody",), - ".group_0858": ("ProjectsProjectIdPatchResponse403",), - ".group_0859": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), - ".group_0860": ("ProjectsProjectIdColumnsPostBody",), - ".group_0861": ("ReposOwnerRepoDeleteResponse403",), - ".group_0862": ( + ".group_0871": ("ProjectsColumnsColumnIdMovesPostBody",), + ".group_0872": ("ProjectsColumnsColumnIdMovesPostResponse201",), + ".group_0873": ("ProjectsProjectIdDeleteResponse403",), + ".group_0874": ("ProjectsProjectIdPatchBody",), + ".group_0875": ("ProjectsProjectIdPatchResponse403",), + ".group_0876": ("ProjectsProjectIdCollaboratorsUsernamePutBody",), + ".group_0877": ("ProjectsProjectIdColumnsPostBody",), + ".group_0878": ("ReposOwnerRepoDeleteResponse403",), + ".group_0879": ( "ReposOwnerRepoPatchBody", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", - ), - ".group_0863": ("ReposOwnerRepoActionsArtifactsGetResponse200",), - ".group_0864": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), - ".group_0865": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), - ".group_0866": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), - ".group_0867": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), - ".group_0868": ("ReposOwnerRepoActionsPermissionsPutBody",), - ".group_0869": ("ReposOwnerRepoActionsRunnersGetResponse200",), - ".group_0870": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), - ".group_0871": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), - ".group_0872": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), - ".group_0873": ("ReposOwnerRepoActionsRunsGetResponse200",), - ".group_0874": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), - ".group_0875": ( + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", + ), + ".group_0880": ("ReposOwnerRepoActionsArtifactsGetResponse200",), + ".group_0881": ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",), + ".group_0882": ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",), + ".group_0883": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",), + ".group_0884": ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",), + ".group_0885": ("ReposOwnerRepoActionsPermissionsPutBody",), + ".group_0886": ("ReposOwnerRepoActionsRunnersGetResponse200",), + ".group_0887": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",), + ".group_0888": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",), + ".group_0889": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",), + ".group_0890": ("ReposOwnerRepoActionsRunsGetResponse200",), + ".group_0891": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",), + ".group_0892": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200", ), - ".group_0876": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), - ".group_0877": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), - ".group_0878": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), - ".group_0879": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), - ".group_0880": ("ReposOwnerRepoActionsSecretsGetResponse200",), - ".group_0881": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), - ".group_0882": ("ReposOwnerRepoActionsVariablesGetResponse200",), - ".group_0883": ("ReposOwnerRepoActionsVariablesPostBody",), - ".group_0884": ("ReposOwnerRepoActionsVariablesNamePatchBody",), - ".group_0885": ( + ".group_0893": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",), + ".group_0894": ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",), + ".group_0895": ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",), + ".group_0896": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",), + ".group_0897": ("ReposOwnerRepoActionsSecretsGetResponse200",), + ".group_0898": ("ReposOwnerRepoActionsSecretsSecretNamePutBody",), + ".group_0899": ("ReposOwnerRepoActionsVariablesGetResponse200",), + ".group_0900": ("ReposOwnerRepoActionsVariablesPostBody",), + ".group_0901": ("ReposOwnerRepoActionsVariablesNamePatchBody",), + ".group_0902": ( "ReposOwnerRepoActionsWorkflowsGetResponse200", "Workflow", ), - ".group_0886": ( + ".group_0903": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", ), - ".group_0887": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), - ".group_0888": ("ReposOwnerRepoAutolinksPostBody",), - ".group_0889": ( + ".group_0904": ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",), + ".group_0905": ( + "ReposOwnerRepoAttestationsPostBody", + "ReposOwnerRepoAttestationsPostBodyPropBundle", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", + ), + ".group_0906": ("ReposOwnerRepoAttestationsPostResponse201",), + ".group_0907": ( + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", + ), + ".group_0908": ("ReposOwnerRepoAutolinksPostBody",), + ".group_0909": ( "ReposOwnerRepoBranchesBranchProtectionPutBody", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", @@ -11751,329 +11967,343 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", ), - ".group_0890": ( + ".group_0910": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", ), - ".group_0891": ( + ".group_0911": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", ), - ".group_0892": ( + ".group_0912": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", ), - ".group_0893": ( + ".group_0913": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", ), - ".group_0894": ( + ".group_0914": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", ), - ".group_0895": ( + ".group_0915": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0", ), - ".group_0896": ( + ".group_0916": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0", ), - ".group_0897": ( + ".group_0917": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0", ), - ".group_0898": ( + ".group_0918": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0", ), - ".group_0899": ( + ".group_0919": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0", ), - ".group_0900": ( + ".group_0920": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0", ), - ".group_0901": ( + ".group_0921": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0", ), - ".group_0902": ( + ".group_0922": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0", ), - ".group_0903": ( + ".group_0923": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0", ), - ".group_0904": ("ReposOwnerRepoBranchesBranchRenamePostBody",), - ".group_0905": ( + ".group_0924": ("ReposOwnerRepoBranchesBranchRenamePostBody",), + ".group_0925": ( "ReposOwnerRepoCheckRunsPostBodyPropOutput", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", ), - ".group_0906": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), - ".group_0907": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), - ".group_0908": ( + ".group_0926": ("ReposOwnerRepoCheckRunsPostBodyOneof0",), + ".group_0927": ("ReposOwnerRepoCheckRunsPostBodyOneof1",), + ".group_0928": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", ), - ".group_0909": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), - ".group_0910": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), - ".group_0911": ("ReposOwnerRepoCheckSuitesPostBody",), - ".group_0912": ( + ".group_0929": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",), + ".group_0930": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",), + ".group_0931": ("ReposOwnerRepoCheckSuitesPostBody",), + ".group_0932": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBody", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", ), - ".group_0913": ( + ".group_0933": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200", ), - ".group_0914": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), - ".group_0915": ( + ".group_0934": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",), + ".group_0935": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0", ), - ".group_0916": ( + ".group_0936": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1", ), - ".group_0917": ( + ".group_0937": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2", ), - ".group_0918": ("ReposOwnerRepoCodeScanningSarifsPostBody",), - ".group_0919": ("ReposOwnerRepoCodespacesGetResponse200",), - ".group_0920": ("ReposOwnerRepoCodespacesPostBody",), - ".group_0921": ( + ".group_0938": ("ReposOwnerRepoCodeScanningSarifsPostBody",), + ".group_0939": ("ReposOwnerRepoCodespacesGetResponse200",), + ".group_0940": ("ReposOwnerRepoCodespacesPostBody",), + ".group_0941": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", ), - ".group_0922": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), - ".group_0923": ( + ".group_0942": ("ReposOwnerRepoCodespacesMachinesGetResponse200",), + ".group_0943": ( "ReposOwnerRepoCodespacesNewGetResponse200", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", ), - ".group_0924": ( + ".group_0944": ( "ReposOwnerRepoCodespacesSecretsGetResponse200", "RepoCodespacesSecret", ), - ".group_0925": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), - ".group_0926": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), - ".group_0927": ("ReposOwnerRepoCommentsCommentIdPatchBody",), - ".group_0928": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), - ".group_0929": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), - ".group_0930": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), - ".group_0931": ( + ".group_0945": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",), + ".group_0946": ("ReposOwnerRepoCollaboratorsUsernamePutBody",), + ".group_0947": ("ReposOwnerRepoCommentsCommentIdPatchBody",), + ".group_0948": ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",), + ".group_0949": ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",), + ".group_0950": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",), + ".group_0951": ( "ReposOwnerRepoContentsPathPutBody", "ReposOwnerRepoContentsPathPutBodyPropCommitter", "ReposOwnerRepoContentsPathPutBodyPropAuthor", ), - ".group_0932": ( + ".group_0952": ( "ReposOwnerRepoContentsPathDeleteBody", "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", ), - ".group_0933": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), - ".group_0934": ( + ".group_0953": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",), + ".group_0954": ( "ReposOwnerRepoDependabotSecretsGetResponse200", "DependabotSecret", ), - ".group_0935": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), - ".group_0936": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), - ".group_0937": ( + ".group_0955": ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",), + ".group_0956": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",), + ".group_0957": ( "ReposOwnerRepoDeploymentsPostBody", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", ), - ".group_0938": ("ReposOwnerRepoDeploymentsPostResponse202",), - ".group_0939": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), - ".group_0940": ( + ".group_0958": ("ReposOwnerRepoDeploymentsPostResponse202",), + ".group_0959": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",), + ".group_0960": ( "ReposOwnerRepoDispatchesPostBody", "ReposOwnerRepoDispatchesPostBodyPropClientPayload", ), - ".group_0941": ( + ".group_0961": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", ), - ".group_0942": ( + ".group_0962": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", "DeploymentBranchPolicy", ), - ".group_0943": ( + ".group_0963": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", ), - ".group_0944": ( + ".group_0964": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", ), - ".group_0945": ( + ".group_0965": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200", ), - ".group_0946": ( + ".group_0966": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody", ), - ".group_0947": ( + ".group_0967": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200", ), - ".group_0948": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), - ".group_0949": ( + ".group_0968": ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",), + ".group_0969": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody", ), - ".group_0950": ("ReposOwnerRepoForksPostBody",), - ".group_0951": ("ReposOwnerRepoGitBlobsPostBody",), - ".group_0952": ( + ".group_0970": ("ReposOwnerRepoForksPostBody",), + ".group_0971": ("ReposOwnerRepoGitBlobsPostBody",), + ".group_0972": ( "ReposOwnerRepoGitCommitsPostBody", "ReposOwnerRepoGitCommitsPostBodyPropAuthor", "ReposOwnerRepoGitCommitsPostBodyPropCommitter", ), - ".group_0953": ("ReposOwnerRepoGitRefsPostBody",), - ".group_0954": ("ReposOwnerRepoGitRefsRefPatchBody",), - ".group_0955": ( + ".group_0973": ("ReposOwnerRepoGitRefsPostBody",), + ".group_0974": ("ReposOwnerRepoGitRefsRefPatchBody",), + ".group_0975": ( "ReposOwnerRepoGitTagsPostBody", "ReposOwnerRepoGitTagsPostBodyPropTagger", ), - ".group_0956": ( + ".group_0976": ( "ReposOwnerRepoGitTreesPostBody", "ReposOwnerRepoGitTreesPostBodyPropTreeItems", ), - ".group_0957": ( + ".group_0977": ( "ReposOwnerRepoHooksPostBody", "ReposOwnerRepoHooksPostBodyPropConfig", ), - ".group_0958": ("ReposOwnerRepoHooksHookIdPatchBody",), - ".group_0959": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), - ".group_0960": ("ReposOwnerRepoImportPutBody",), - ".group_0961": ("ReposOwnerRepoImportPatchBody",), - ".group_0962": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), - ".group_0963": ("ReposOwnerRepoImportLfsPatchBody",), - ".group_0964": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), - ".group_0965": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), - ".group_0966": ( + ".group_0978": ("ReposOwnerRepoHooksHookIdPatchBody",), + ".group_0979": ("ReposOwnerRepoHooksHookIdConfigPatchBody",), + ".group_0980": ("ReposOwnerRepoImportPutBody",), + ".group_0981": ("ReposOwnerRepoImportPatchBody",), + ".group_0982": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",), + ".group_0983": ("ReposOwnerRepoImportLfsPatchBody",), + ".group_0984": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",), + ".group_0985": ("ReposOwnerRepoInvitationsInvitationIdPatchBody",), + ".group_0986": ( "ReposOwnerRepoIssuesPostBody", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", ), - ".group_0967": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), - ".group_0968": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), - ".group_0969": ( + ".group_0987": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",), + ".group_0988": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",), + ".group_0989": ( "ReposOwnerRepoIssuesIssueNumberPatchBody", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", ), - ".group_0970": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), - ".group_0971": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), - ".group_0972": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), - ".group_0973": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), - ".group_0974": ( + ".group_0990": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",), + ".group_0991": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",), + ".group_0992": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",), + ".group_0993": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",), + ".group_0994": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", ), - ".group_0975": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), - ".group_0976": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), - ".group_0977": ( + ".group_0995": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",), + ".group_0996": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",), + ".group_0997": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", ), - ".group_0978": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), - ".group_0979": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), - ".group_0980": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), - ".group_0981": ("ReposOwnerRepoKeysPostBody",), - ".group_0982": ("ReposOwnerRepoLabelsPostBody",), - ".group_0983": ("ReposOwnerRepoLabelsNamePatchBody",), - ".group_0984": ("ReposOwnerRepoMergeUpstreamPostBody",), - ".group_0985": ("ReposOwnerRepoMergesPostBody",), - ".group_0986": ("ReposOwnerRepoMilestonesPostBody",), - ".group_0987": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), - ".group_0988": ("ReposOwnerRepoNotificationsPutBody",), - ".group_0989": ("ReposOwnerRepoNotificationsPutResponse202",), - ".group_0990": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), - ".group_0991": ("ReposOwnerRepoPagesPutBodyAnyof0",), - ".group_0992": ("ReposOwnerRepoPagesPutBodyAnyof1",), - ".group_0993": ("ReposOwnerRepoPagesPutBodyAnyof2",), - ".group_0994": ("ReposOwnerRepoPagesPutBodyAnyof3",), - ".group_0995": ("ReposOwnerRepoPagesPutBodyAnyof4",), - ".group_0996": ("ReposOwnerRepoPagesPostBodyPropSource",), - ".group_0997": ("ReposOwnerRepoPagesPostBodyAnyof0",), - ".group_0998": ("ReposOwnerRepoPagesPostBodyAnyof1",), - ".group_0999": ("ReposOwnerRepoPagesDeploymentsPostBody",), - ".group_1000": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), - ".group_1001": ("ReposOwnerRepoProjectsPostBody",), - ".group_1002": ("ReposOwnerRepoPropertiesValuesPatchBody",), - ".group_1003": ("ReposOwnerRepoPullsPostBody",), - ".group_1004": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), - ".group_1005": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), - ".group_1006": ("ReposOwnerRepoPullsPullNumberPatchBody",), - ".group_1007": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), - ".group_1008": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), - ".group_1009": ( + ".group_0998": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",), + ".group_0999": ("ReposOwnerRepoIssuesIssueNumberLockPutBody",), + ".group_1000": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",), + ".group_1001": ("ReposOwnerRepoKeysPostBody",), + ".group_1002": ("ReposOwnerRepoLabelsPostBody",), + ".group_1003": ("ReposOwnerRepoLabelsNamePatchBody",), + ".group_1004": ("ReposOwnerRepoMergeUpstreamPostBody",), + ".group_1005": ("ReposOwnerRepoMergesPostBody",), + ".group_1006": ("ReposOwnerRepoMilestonesPostBody",), + ".group_1007": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",), + ".group_1008": ("ReposOwnerRepoNotificationsPutBody",), + ".group_1009": ("ReposOwnerRepoNotificationsPutResponse202",), + ".group_1010": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",), + ".group_1011": ("ReposOwnerRepoPagesPutBodyAnyof0",), + ".group_1012": ("ReposOwnerRepoPagesPutBodyAnyof1",), + ".group_1013": ("ReposOwnerRepoPagesPutBodyAnyof2",), + ".group_1014": ("ReposOwnerRepoPagesPutBodyAnyof3",), + ".group_1015": ("ReposOwnerRepoPagesPutBodyAnyof4",), + ".group_1016": ("ReposOwnerRepoPagesPostBodyPropSource",), + ".group_1017": ("ReposOwnerRepoPagesPostBodyAnyof0",), + ".group_1018": ("ReposOwnerRepoPagesPostBodyAnyof1",), + ".group_1019": ("ReposOwnerRepoPagesDeploymentsPostBody",), + ".group_1020": ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",), + ".group_1021": ("ReposOwnerRepoProjectsPostBody",), + ".group_1022": ("ReposOwnerRepoPropertiesValuesPatchBody",), + ".group_1023": ("ReposOwnerRepoPullsPostBody",), + ".group_1024": ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",), + ".group_1025": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",), + ".group_1026": ("ReposOwnerRepoPullsPullNumberPatchBody",), + ".group_1027": ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",), + ".group_1028": ("ReposOwnerRepoPullsPullNumberCommentsPostBody",), + ".group_1029": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody", ), - ".group_1010": ("ReposOwnerRepoPullsPullNumberMergePutBody",), - ".group_1011": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), - ".group_1012": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), - ".group_1013": ( + ".group_1030": ("ReposOwnerRepoPullsPullNumberMergePutBody",), + ".group_1031": ("ReposOwnerRepoPullsPullNumberMergePutResponse405",), + ".group_1032": ("ReposOwnerRepoPullsPullNumberMergePutResponse409",), + ".group_1033": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0", ), - ".group_1014": ( + ".group_1034": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1", ), - ".group_1015": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), - ".group_1016": ( + ".group_1035": ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",), + ".group_1036": ( "ReposOwnerRepoPullsPullNumberReviewsPostBody", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", ), - ".group_1017": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), - ".group_1018": ( + ".group_1037": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",), + ".group_1038": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody", ), - ".group_1019": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), - ".group_1020": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), - ".group_1021": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), - ".group_1022": ("ReposOwnerRepoReleasesPostBody",), - ".group_1023": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), - ".group_1024": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), - ".group_1025": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), - ".group_1026": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), - ".group_1027": ("ReposOwnerRepoRulesetsPostBody",), - ".group_1028": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), - ".group_1029": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), - ".group_1030": ("ReposOwnerRepoStatusesShaPostBody",), - ".group_1031": ("ReposOwnerRepoSubscriptionPutBody",), - ".group_1032": ("ReposOwnerRepoTagsProtectionPostBody",), - ".group_1033": ("ReposOwnerRepoTopicsPutBody",), - ".group_1034": ("ReposOwnerRepoTransferPostBody",), - ".group_1035": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), - ".group_1036": ("TeamsTeamIdPatchBody",), - ".group_1037": ("TeamsTeamIdDiscussionsPostBody",), - ".group_1038": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), - ".group_1039": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), - ".group_1040": ( + ".group_1039": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",), + ".group_1040": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",), + ".group_1041": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",), + ".group_1042": ("ReposOwnerRepoReleasesPostBody",), + ".group_1043": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",), + ".group_1044": ("ReposOwnerRepoReleasesGenerateNotesPostBody",), + ".group_1045": ("ReposOwnerRepoReleasesReleaseIdPatchBody",), + ".group_1046": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",), + ".group_1047": ("ReposOwnerRepoRulesetsPostBody",), + ".group_1048": ("ReposOwnerRepoRulesetsRulesetIdPutBody",), + ".group_1049": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",), + ".group_1050": ("ReposOwnerRepoStatusesShaPostBody",), + ".group_1051": ("ReposOwnerRepoSubscriptionPutBody",), + ".group_1052": ("ReposOwnerRepoTagsProtectionPostBody",), + ".group_1053": ("ReposOwnerRepoTopicsPutBody",), + ".group_1054": ("ReposOwnerRepoTransferPostBody",), + ".group_1055": ("ReposTemplateOwnerTemplateRepoGeneratePostBody",), + ".group_1056": ("TeamsTeamIdPatchBody",), + ".group_1057": ("TeamsTeamIdDiscussionsPostBody",), + ".group_1058": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",), + ".group_1059": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",), + ".group_1060": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ), - ".group_1041": ( + ".group_1061": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", ), - ".group_1042": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), - ".group_1043": ("TeamsTeamIdMembershipsUsernamePutBody",), - ".group_1044": ("TeamsTeamIdProjectsProjectIdPutBody",), - ".group_1045": ("TeamsTeamIdProjectsProjectIdPutResponse403",), - ".group_1046": ("TeamsTeamIdReposOwnerRepoPutBody",), - ".group_1047": ("UserPatchBody",), - ".group_1048": ("UserCodespacesGetResponse200",), - ".group_1049": ("UserCodespacesPostBodyOneof0",), - ".group_1050": ( + ".group_1062": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",), + ".group_1063": ("TeamsTeamIdMembershipsUsernamePutBody",), + ".group_1064": ("TeamsTeamIdProjectsProjectIdPutBody",), + ".group_1065": ("TeamsTeamIdProjectsProjectIdPutResponse403",), + ".group_1066": ("TeamsTeamIdReposOwnerRepoPutBody",), + ".group_1067": ("UserPatchBody",), + ".group_1068": ("UserCodespacesGetResponse200",), + ".group_1069": ("UserCodespacesPostBodyOneof0",), + ".group_1070": ( "UserCodespacesPostBodyOneof1", "UserCodespacesPostBodyOneof1PropPullRequest", ), - ".group_1051": ( + ".group_1071": ( "UserCodespacesSecretsGetResponse200", "CodespacesSecret", ), - ".group_1052": ("UserCodespacesSecretsSecretNamePutBody",), - ".group_1053": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), - ".group_1054": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), - ".group_1055": ("UserCodespacesCodespaceNamePatchBody",), - ".group_1056": ("UserCodespacesCodespaceNameMachinesGetResponse200",), - ".group_1057": ("UserCodespacesCodespaceNamePublishPostBody",), - ".group_1058": ("UserEmailVisibilityPatchBody",), - ".group_1059": ("UserEmailsPostBodyOneof0",), - ".group_1060": ("UserEmailsDeleteBodyOneof0",), - ".group_1061": ("UserGpgKeysPostBody",), - ".group_1062": ("UserInstallationsGetResponse200",), - ".group_1063": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), - ".group_1064": ("UserInteractionLimitsGetResponse200Anyof1",), - ".group_1065": ("UserKeysPostBody",), - ".group_1066": ("UserMembershipsOrgsOrgPatchBody",), - ".group_1067": ("UserMigrationsPostBody",), - ".group_1068": ("UserProjectsPostBody",), - ".group_1069": ("UserReposPostBody",), - ".group_1070": ("UserSocialAccountsPostBody",), - ".group_1071": ("UserSocialAccountsDeleteBody",), - ".group_1072": ("UserSshSigningKeysPostBody",), + ".group_1072": ("UserCodespacesSecretsSecretNamePutBody",), + ".group_1073": ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",), + ".group_1074": ("UserCodespacesSecretsSecretNameRepositoriesPutBody",), + ".group_1075": ("UserCodespacesCodespaceNamePatchBody",), + ".group_1076": ("UserCodespacesCodespaceNameMachinesGetResponse200",), + ".group_1077": ("UserCodespacesCodespaceNamePublishPostBody",), + ".group_1078": ("UserEmailVisibilityPatchBody",), + ".group_1079": ("UserEmailsPostBodyOneof0",), + ".group_1080": ("UserEmailsDeleteBodyOneof0",), + ".group_1081": ("UserGpgKeysPostBody",), + ".group_1082": ("UserInstallationsGetResponse200",), + ".group_1083": ("UserInstallationsInstallationIdRepositoriesGetResponse200",), + ".group_1084": ("UserInteractionLimitsGetResponse200Anyof1",), + ".group_1085": ("UserKeysPostBody",), + ".group_1086": ("UserMembershipsOrgsOrgPatchBody",), + ".group_1087": ("UserMigrationsPostBody",), + ".group_1088": ("UserProjectsPostBody",), + ".group_1089": ("UserReposPostBody",), + ".group_1090": ("UserSocialAccountsPostBody",), + ".group_1091": ("UserSocialAccountsDeleteBody",), + ".group_1092": ("UserSshSigningKeysPostBody",), + ".group_1093": ( + "UsersUsernameAttestationsSubjectDigestGetResponse200", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "SigstoreBundle0", + "SigstoreBundle0PropDsseEnvelope", + "SigstoreBundle0PropDsseEnvelopePropSignaturesItems", + "SigstoreBundle0PropVerificationMaterial", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChain", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise", + ), } diff --git a/githubkit/versions/v2022_11_28/models/group_0025.py b/githubkit/versions/v2022_11_28/models/group_0025.py index 960bacbf1..5a2cdf61e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0025.py +++ b/githubkit/versions/v2022_11_28/models/group_0025.py @@ -9,102 +9,45 @@ from __future__ import annotations -from datetime import date -from typing import List, Union +from typing import Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class CopilotUsageMetrics(GitHubModel): - """Copilot Usage Metrics +class TeamSimple(GitHubModel): + """Team Simple - Summary of Copilot usage. + Groups of organization members that gives permissions on specified repositories. """ - day: date = Field( - description="The date for which the usage metrics are reported, in `YYYY-MM-DD` format." + 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_suggestions_count: Missing[int] = Field( - default=UNSET, - description="The total number of Copilot code completion suggestions shown to users.", - ) - total_acceptances_count: Missing[int] = Field( - default=UNSET, - description="The total number of Copilot code completion suggestions accepted by users.", - ) - total_lines_suggested: Missing[int] = Field( - default=UNSET, - description="The total number of lines of code completions suggested by Copilot.", - ) - total_lines_accepted: Missing[int] = Field( - default=UNSET, - description="The total number of lines of code completions accepted by users.", - ) - total_active_users: Missing[int] = Field( - default=UNSET, - description="The total number of users who were shown Copilot code completion suggestions during the day specified.", - ) - total_chat_acceptances: Missing[int] = Field( - default=UNSET, - description="The total instances of users who accepted code suggested by Copilot Chat in the IDE (panel and inline).", - ) - total_chat_turns: Missing[int] = Field( - default=UNSET, - description="The total number of chat turns (prompt and response pairs) sent between users and Copilot Chat in the IDE.", - ) - total_active_chat_users: Missing[int] = Field( - default=UNSET, - description="The total number of users who interacted with Copilot Chat in the IDE during the day specified.", - ) - breakdown: Union[List[CopilotUsageMetricsPropBreakdownItems], None] = Field( - description="Breakdown of Copilot code completions usage by language and editor" + privacy: Missing[str] = Field( + default=UNSET, description="The level of privacy this team should have" ) - - -class CopilotUsageMetricsPropBreakdownItems(ExtraGitHubModel): - """CopilotUsageMetricsPropBreakdownItems - - Breakdown of Copilot usage by editor for this language - """ - - language: Missing[str] = Field( - default=UNSET, - description="The language in which Copilot suggestions were shown to users in the specified editor.", - ) - editor: Missing[str] = Field( - default=UNSET, - description="The editor in which Copilot suggestions were shown to users for the specified language.", - ) - suggestions_count: Missing[int] = Field( - default=UNSET, - description="The number of Copilot suggestions shown to users in the editor specified during the day specified.", - ) - acceptances_count: Missing[int] = Field( - default=UNSET, - description="The number of Copilot suggestions accepted by users in the editor specified during the day specified.", - ) - lines_suggested: Missing[int] = Field( - default=UNSET, - description="The number of lines of code suggested by Copilot in the editor specified during the day specified.", - ) - lines_accepted: Missing[int] = Field( - default=UNSET, - description="The number of lines of code accepted by users in the editor specified during the day specified.", + notification_setting: Missing[str] = Field( + default=UNSET, description="The notification setting the team has set" ) - active_users: Missing[int] = Field( + html_url: str = Field() + repositories_url: str = Field() + slug: str = Field() + ldap_dn: Missing[str] = Field( default=UNSET, - description="The number of users who were shown Copilot completion suggestions in the editor specified during the day specified.", + description="Distinguished Name (DN) that team maps to within LDAP environment", ) -model_rebuild(CopilotUsageMetrics) -model_rebuild(CopilotUsageMetricsPropBreakdownItems) +model_rebuild(TeamSimple) -__all__ = ( - "CopilotUsageMetrics", - "CopilotUsageMetricsPropBreakdownItems", -) +__all__ = ("TeamSimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0026.py b/githubkit/versions/v2022_11_28/models/group_0026.py index ff820726e..70bb9bfdb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0026.py +++ b/githubkit/versions/v2022_11_28/models/group_0026.py @@ -9,23 +9,53 @@ from __future__ import annotations +from typing import Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0025 import TeamSimple -class DependabotAlertPackage(GitHubModel): - """DependabotAlertPackage - - Details for the vulnerable package. - """ - ecosystem: str = Field( - description="The package's language or package management ecosystem." - ) - name: str = Field(description="The unique package name within its ecosystem.") +class Team(GitHubModel): + """Team + Groups of organization members that gives permissions on specified repositories. + """ -model_rebuild(DependabotAlertPackage) - -__all__ = ("DependabotAlertPackage",) + 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_0027.py b/githubkit/versions/v2022_11_28/models/group_0027.py index a38fbfb8f..d86ab3170 100644 --- a/githubkit/versions/v2022_11_28/models/group_0027.py +++ b/githubkit/versions/v2022_11_28/models/group_0027.py @@ -9,52 +9,33 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0026 import DependabotAlertPackage +class OrganizationSimple(GitHubModel): + """Organization Simple -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 - - Details pertaining to the package version that patches this vulnerability. + A GitHub organization. """ - identifier: str = Field( - description="The package version that patches this 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() -model_rebuild(DependabotAlertSecurityVulnerability) -model_rebuild(DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion) +model_rebuild(OrganizationSimple) -__all__ = ( - "DependabotAlertSecurityVulnerability", - "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion", -) +__all__ = ("OrganizationSimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0028.py b/githubkit/versions/v2022_11_28/models/group_0028.py index b8523f1c4..1ad30eb5c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0028.py +++ b/githubkit/versions/v2022_11_28/models/group_0028.py @@ -9,114 +9,145 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union +from datetime import date, datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0027 import DependabotAlertSecurityVulnerability +from .group_0026 import Team +from .group_0001 import SimpleUser +from .group_0027 import OrganizationSimple -class DependabotAlertSecurityAdvisory(GitHubModel): - """DependabotAlertSecurityAdvisory +class CopilotSeatDetails(GitHubModel): + """Copilot Business Seat Detail - Details for the GitHub Security Advisory. + Information about a Copilot Business seat assignment for a user, team, or + organization. """ - ghsa_id: str = Field( - description="The unique GitHub Security Advisory ID assigned to the advisory." + assignee: Union[SimpleUser, Team, Organization] = Field( + description="The assignee that has been granted access to GitHub Copilot." ) - cve_id: Union[str, None] = Field( - description="The unique CVE ID assigned to the advisory." + organization: Missing[Union[OrganizationSimple, None]] = Field( + default=UNSET, description="The organization to which this seat belongs." ) - summary: str = Field( - max_length=1024, description="A short, plain text summary of the advisory." + 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.", ) - description: str = Field( - description="A long-form Markdown-supported description of the advisory." + pending_cancellation_date: Missing[Union[date, None]] = Field( + default=UNSET, + description="The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee's Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization's next billing cycle.", ) - vulnerabilities: List[DependabotAlertSecurityVulnerability] = Field( - description="Vulnerable version range information for the advisory." + last_activity_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="Timestamp of user's last GitHub Copilot activity, in ISO 8601 format.", ) - severity: Literal["low", "medium", "high", "critical"] = Field( - description="The severity of the advisory." + last_activity_editor: Missing[Union[str, None]] = Field( + default=UNSET, + description="Last editor that was used by the user for a GitHub Copilot completion.", ) - cvss: DependabotAlertSecurityAdvisoryPropCvss = Field( - description="Details for the advisory pertaining to the Common Vulnerability Scoring System." + created_at: datetime = Field( + description="Timestamp of when the assignee was last granted access to GitHub Copilot, in ISO 8601 format." ) - cwes: List[DependabotAlertSecurityAdvisoryPropCwesItems] = Field( - description="Details for the advisory pertaining to Common Weakness Enumeration." - ) - identifiers: List[DependabotAlertSecurityAdvisoryPropIdentifiersItems] = Field( - description="Values that identify this advisory among security information sources." - ) - references: List[DependabotAlertSecurityAdvisoryPropReferencesItems] = Field( - description="Links to additional advisory information." - ) - published_at: datetime = Field( - description="The time that the advisory was published in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: datetime = Field( - description="The time that the advisory was last modified in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - withdrawn_at: Union[datetime, None] = Field( - description="The time that the advisory was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - - -class DependabotAlertSecurityAdvisoryPropCvss(GitHubModel): - """DependabotAlertSecurityAdvisoryPropCvss - - Details for the advisory pertaining to the Common Vulnerability Scoring System. - """ - - score: float = Field(le=10.0, description="The overall CVSS score of the advisory.") - vector_string: Union[str, None] = Field( - description="The full CVSS vector string for the advisory." + updated_at: Missing[datetime] = Field( + default=UNSET, + description="Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.", ) -class DependabotAlertSecurityAdvisoryPropCwesItems(GitHubModel): - """DependabotAlertSecurityAdvisoryPropCwesItems +class EnterpriseTeam(GitHubModel): + """Enterprise Team - A CWE weakness assigned to the advisory. + Group of enterprise owners and/or members """ - cwe_id: str = Field(description="The unique CWE ID.") - name: str = Field(description="The short, plain text name of the CWE.") + id: int = Field() + name: str = Field() + slug: str = Field() + url: str = Field() + sync_to_organizations: str = Field() + group_id: Missing[Union[int, None]] = Field(default=UNSET) + html_url: str = Field() + members_url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() -class DependabotAlertSecurityAdvisoryPropIdentifiersItems(GitHubModel): - """DependabotAlertSecurityAdvisoryPropIdentifiersItems +class Organization(GitHubModel): + """Organization - An advisory identifier. + GitHub account for managing multiple users, teams, and repositories """ - type: Literal["CVE", "GHSA"] = Field(description="The type of advisory identifier.") - value: str = Field(description="The value of the advisory identifer.") - + login: str = Field(description="Unique login name of the organization") + url: str = Field(description="URL for the organization") + id: int = Field() + node_id: 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() + blog: Missing[str] = Field( + default=UNSET, description="Display blog url for the organization" + ) + html_url: str = Field() + name: Missing[str] = Field( + default=UNSET, description="Display name for the organization" + ) + company: Missing[str] = Field( + default=UNSET, description="Display company name for the organization" + ) + location: Missing[str] = Field( + default=UNSET, description="Display location for the organization" + ) + email: Missing[str] = Field( + default=UNSET, description="Display email for the organization" + ) + has_organization_projects: bool = Field( + description="Specifies if organization projects are enabled for this org" + ) + has_repository_projects: bool = Field( + description="Specifies if repository projects are enabled for repositories that belong to this org" + ) + is_verified: Missing[bool] = Field(default=UNSET) + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() + type: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + plan: Missing[OrganizationPropPlan] = Field(default=UNSET) -class DependabotAlertSecurityAdvisoryPropReferencesItems(GitHubModel): - """DependabotAlertSecurityAdvisoryPropReferencesItems - A link to additional advisory information. - """ +class OrganizationPropPlan(GitHubModel): + """OrganizationPropPlan""" - url: str = Field(description="The URL of the reference.") + name: Missing[str] = Field(default=UNSET) + space: Missing[int] = Field(default=UNSET) + private_repos: Missing[int] = Field(default=UNSET) + filled_seats: Missing[int] = Field(default=UNSET) + seats: Missing[int] = Field(default=UNSET) -model_rebuild(DependabotAlertSecurityAdvisory) -model_rebuild(DependabotAlertSecurityAdvisoryPropCvss) -model_rebuild(DependabotAlertSecurityAdvisoryPropCwesItems) -model_rebuild(DependabotAlertSecurityAdvisoryPropIdentifiersItems) -model_rebuild(DependabotAlertSecurityAdvisoryPropReferencesItems) +model_rebuild(CopilotSeatDetails) +model_rebuild(EnterpriseTeam) +model_rebuild(Organization) +model_rebuild(OrganizationPropPlan) __all__ = ( - "DependabotAlertSecurityAdvisory", - "DependabotAlertSecurityAdvisoryPropCvss", - "DependabotAlertSecurityAdvisoryPropCwesItems", - "DependabotAlertSecurityAdvisoryPropIdentifiersItems", - "DependabotAlertSecurityAdvisoryPropReferencesItems", + "CopilotSeatDetails", + "EnterpriseTeam", + "Organization", + "OrganizationPropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0029.py b/githubkit/versions/v2022_11_28/models/group_0029.py index f0cc1608d..960bacbf1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0029.py +++ b/githubkit/versions/v2022_11_28/models/group_0029.py @@ -9,145 +9,102 @@ from __future__ import annotations -from typing import Union +from datetime import date +from typing import List, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0001 import SimpleUser +class CopilotUsageMetrics(GitHubModel): + """Copilot Usage Metrics -class SimpleRepository(GitHubModel): - """Simple Repository - - A GitHub repository. + Summary of Copilot usage. """ - 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." + day: date = Field( + description="The date for which the usage metrics are reported, in `YYYY-MM-DD` format." ) - events_url: str = Field( - description="The API URL to list the events of the repository." + total_suggestions_count: Missing[int] = Field( + default=UNSET, + description="The total number of Copilot code completion suggestions shown to users.", ) - forks_url: str = Field( - description="The API URL to list the forks of the repository." + total_acceptances_count: Missing[int] = Field( + default=UNSET, + description="The total number of Copilot code completion suggestions accepted by users.", ) - git_commits_url: str = Field( - description="A template for the API URL to get information about Git commits of the repository." + total_lines_suggested: Missing[int] = Field( + default=UNSET, + description="The total number of lines of code completions suggested by Copilot.", ) - git_refs_url: str = Field( - description="A template for the API URL to get information about Git refs of the repository." + total_lines_accepted: Missing[int] = Field( + default=UNSET, + description="The total number of lines of code completions accepted by users.", ) - git_tags_url: str = Field( - description="A template for the API URL to get information about Git tags of the repository." + total_active_users: Missing[int] = Field( + default=UNSET, + description="The total number of users who were shown Copilot code completion suggestions during the day specified.", ) - issue_comment_url: str = Field( - description="A template for the API URL to get information about issue comments on the repository." + total_chat_acceptances: Missing[int] = Field( + default=UNSET, + description="The total instances of users who accepted code suggested by Copilot Chat in the IDE (panel and inline).", ) - issue_events_url: str = Field( - description="A template for the API URL to get information about issue events on the repository." + total_chat_turns: Missing[int] = Field( + default=UNSET, + description="The total number of chat turns (prompt and response pairs) sent between users and Copilot Chat in the IDE.", ) - issues_url: str = Field( - description="A template for the API URL to get information about issues on the repository." + total_active_chat_users: Missing[int] = Field( + default=UNSET, + description="The total number of users who interacted with Copilot Chat in the IDE during the day specified.", ) - keys_url: str = Field( - description="A template for the API URL to get information about deploy keys on the repository." + breakdown: Union[List[CopilotUsageMetricsPropBreakdownItems], None] = Field( + description="Breakdown of Copilot code completions usage by language and editor" ) - 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." + + +class CopilotUsageMetricsPropBreakdownItems(ExtraGitHubModel): + """CopilotUsageMetricsPropBreakdownItems + + Breakdown of Copilot usage by editor for this language + """ + + language: Missing[str] = Field( + default=UNSET, + description="The language in which Copilot suggestions were shown to users in the specified editor.", ) - subscribers_url: str = Field( - description="The API URL to list the subscribers on the repository." + editor: Missing[str] = Field( + default=UNSET, + description="The editor in which Copilot suggestions were shown to users for the specified language.", ) - subscription_url: str = Field( - description="The API URL to subscribe to notifications for this repository." + suggestions_count: Missing[int] = Field( + default=UNSET, + description="The number of Copilot suggestions shown to users in the editor specified during the day specified.", ) - tags_url: str = Field( - description="The API URL to get information about tags on the repository." + acceptances_count: Missing[int] = Field( + default=UNSET, + description="The number of Copilot suggestions accepted by users in the editor specified during the day specified.", ) - teams_url: str = Field( - description="The API URL to list the teams on the repository." + lines_suggested: Missing[int] = Field( + default=UNSET, + description="The number of lines of code suggested by Copilot in the editor specified during the day specified.", ) - trees_url: str = Field( - description="A template for the API URL to create or retrieve a raw Git tree of the repository." + lines_accepted: Missing[int] = Field( + default=UNSET, + description="The number of lines of code accepted by users in the editor specified during the day specified.", ) - hooks_url: str = Field( - description="The API URL to list the hooks on the repository." + active_users: Missing[int] = Field( + default=UNSET, + description="The number of users who were shown Copilot completion suggestions in the editor specified during the day specified.", ) -model_rebuild(SimpleRepository) +model_rebuild(CopilotUsageMetrics) +model_rebuild(CopilotUsageMetricsPropBreakdownItems) -__all__ = ("SimpleRepository",) +__all__ = ( + "CopilotUsageMetrics", + "CopilotUsageMetricsPropBreakdownItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0030.py b/githubkit/versions/v2022_11_28/models/group_0030.py index 0eacd9d4a..ff820726e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0030.py +++ b/githubkit/versions/v2022_11_28/models/group_0030.py @@ -9,75 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import Annotated - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0029 import SimpleRepository -from .group_0028 import DependabotAlertSecurityAdvisory -from .group_0027 import DependabotAlertSecurityVulnerability -from .group_0031 import DependabotAlertWithRepositoryPropDependency - -class DependabotAlertWithRepository(GitHubModel): - """DependabotAlertWithRepository +class DependabotAlertPackage(GitHubModel): + """DependabotAlertPackage - A Dependabot alert. + 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." - ) - dependency: DependabotAlertWithRepositoryPropDependency = Field( - description="Details for the vulnerable dependency." - ) - security_advisory: DependabotAlertSecurityAdvisory = Field( - description="Details for the GitHub Security Advisory." - ) - security_vulnerability: DependabotAlertSecurityVulnerability = Field( - description="Details pertaining to one vulnerable version range for the advisory." - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: datetime = Field( - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], - ] = Field(description="The reason that the alert was dismissed.") - dismissed_comment: Union[Annotated[str, Field(max_length=280)], None] = Field( - description="An optional comment associated with the alert's dismissal." - ) - fixed_at: Union[datetime, None] = Field( - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - auto_dismissed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The 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." + 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(DependabotAlertWithRepository) +model_rebuild(DependabotAlertPackage) -__all__ = ("DependabotAlertWithRepository",) +__all__ = ("DependabotAlertPackage",) diff --git a/githubkit/versions/v2022_11_28/models/group_0031.py b/githubkit/versions/v2022_11_28/models/group_0031.py index 1c8a91831..97ee660ea 100644 --- a/githubkit/versions/v2022_11_28/models/group_0031.py +++ b/githubkit/versions/v2022_11_28/models/group_0031.py @@ -13,31 +13,48 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0026 import DependabotAlertPackage +from .group_0030 import DependabotAlertPackage -class DependabotAlertWithRepositoryPropDependency(GitHubModel): - """DependabotAlertWithRepositoryPropDependency +class DependabotAlertSecurityVulnerability(GitHubModel): + """DependabotAlertSecurityVulnerability - Details for the vulnerable dependency. + Details pertaining to one vulnerable version range for the advisory. """ - package: Missing[DependabotAlertPackage] = Field( - default=UNSET, description="Details for the vulnerable package." + package: DependabotAlertPackage = Field( + 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.", + severity: Literal["low", "medium", "high", "critical"] = Field( + description="The severity of the vulnerability." ) - scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( - default=UNSET, description="The execution scope of the vulnerable dependency." + vulnerable_version_range: str = Field( + description="Conditions that identify vulnerable versions of this vulnerability's package." + ) + first_patched_version: Union[ + DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion, None + ] = Field( + description="Details pertaining to the package version that patches this vulnerability." + ) + + +class DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion(GitHubModel): + """DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion + + Details pertaining to the package version that patches this vulnerability. + """ + + identifier: str = Field( + description="The package version that patches this vulnerability." ) -model_rebuild(DependabotAlertWithRepositoryPropDependency) +model_rebuild(DependabotAlertSecurityVulnerability) +model_rebuild(DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion) -__all__ = ("DependabotAlertWithRepositoryPropDependency",) +__all__ = ( + "DependabotAlertSecurityVulnerability", + "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0032.py b/githubkit/versions/v2022_11_28/models/group_0032.py index c03c504e6..665e0b568 100644 --- a/githubkit/versions/v2022_11_28/models/group_0032.py +++ b/githubkit/versions/v2022_11_28/models/group_0032.py @@ -10,85 +10,113 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0029 import SimpleRepository +from .group_0031 import DependabotAlertSecurityVulnerability -class OrganizationSecretScanningAlert(GitHubModel): - """OrganizationSecretScanningAlert""" +class DependabotAlertSecurityAdvisory(GitHubModel): + """DependabotAlertSecurityAdvisory - 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." + Details for the GitHub Security Advisory. + """ + + ghsa_id: str = Field( + description="The unique GitHub Security Advisory ID assigned to the advisory." ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." + cve_id: Union[str, None] = Field( + description="The unique CVE ID assigned to the advisory." ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", + summary: str = Field( + max_length=1024, description="A short, plain text summary of the advisory." ) - state: Missing[Literal["open", "resolved"]] = Field( - default=UNSET, - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", + description: str = Field( + description="A long-form Markdown-supported description of the advisory." ) - 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.", + vulnerabilities: List[DependabotAlertSecurityVulnerability] = Field( + description="Vulnerable version range information for the advisory." ) - 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`.", + severity: Literal["low", "medium", "high", "critical"] = Field( + description="The severity of the advisory." ) - 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." + cvss: DependabotAlertSecurityAdvisoryPropCvss = Field( + description="Details for the advisory pertaining to the Common Vulnerability Scoring System." ) - 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 "[Secret scanning patterns](https://docs.github.com/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)."', + cwes: List[DependabotAlertSecurityAdvisoryPropCwesItems] = Field( + description="Details for the advisory pertaining to Common Weakness Enumeration." ) - secret: Missing[str] = Field( - default=UNSET, description="The secret that was detected." + identifiers: List[DependabotAlertSecurityAdvisoryPropIdentifiersItems] = Field( + description="Values that identify this advisory among security information sources." ) - repository: Missing[SimpleRepository] = Field( - default=UNSET, title="Simple Repository", description="A GitHub repository." + references: List[DependabotAlertSecurityAdvisoryPropReferencesItems] = Field( + description="Links to additional advisory information." ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether push protection was bypassed for the detected secret.", + published_at: datetime = Field( + description="The time that the advisory was published in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - 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`.", + updated_at: datetime = Field( + description="The time that the advisory was last modified in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="The comment that was optionally added when this alert was closed", + withdrawn_at: Union[datetime, None] = Field( + description="The time that the advisory was withdrawn in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." + + +class DependabotAlertSecurityAdvisoryPropCvss(GitHubModel): + """DependabotAlertSecurityAdvisoryPropCvss + + Details for the advisory pertaining to the Common Vulnerability Scoring System. + """ + + score: float = Field(le=10.0, description="The overall CVSS score of the advisory.") + vector_string: Union[str, None] = Field( + description="The full CVSS vector string for the advisory." ) -model_rebuild(OrganizationSecretScanningAlert) +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__ = ("OrganizationSecretScanningAlert",) +__all__ = ( + "DependabotAlertSecurityAdvisory", + "DependabotAlertSecurityAdvisoryPropCvss", + "DependabotAlertSecurityAdvisoryPropCwesItems", + "DependabotAlertSecurityAdvisoryPropIdentifiersItems", + "DependabotAlertSecurityAdvisoryPropReferencesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0033.py b/githubkit/versions/v2022_11_28/models/group_0033.py index d723b51dc..f0cc1608d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0033.py +++ b/githubkit/versions/v2022_11_28/models/group_0033.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from pydantic import Field @@ -19,32 +18,136 @@ from .group_0001 import SimpleUser -class Milestone(GitHubModel): - """Milestone +class SimpleRepository(GitHubModel): + """Simple Repository - A collection of related issues and pull requests. + A GitHub repository. """ - url: str = Field() - html_url: str = Field() - labels_url: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - state: Literal["open", "closed"] = Field( - default="open", description="The state of the milestone." - ) - title: str = Field(description="The title of the milestone.") - description: Union[str, None] = Field() - creator: Union[None, SimpleUser] = Field() - open_issues: int = Field() - closed_issues: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - due_on: Union[datetime, None] = Field() - - -model_rebuild(Milestone) - -__all__ = ("Milestone",) + 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." + ) + hooks_url: str = Field( + description="The API URL to list the hooks on the repository." + ) + + +model_rebuild(SimpleRepository) + +__all__ = ("SimpleRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0034.py b/githubkit/versions/v2022_11_28/models/group_0034.py index fd85f1373..be98d5073 100644 --- a/githubkit/versions/v2022_11_28/models/group_0034.py +++ b/githubkit/versions/v2022_11_28/models/group_0034.py @@ -9,26 +9,75 @@ from __future__ import annotations +from datetime import datetime +from typing import Union, Literal +from typing_extensions import Annotated + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0033 import SimpleRepository +from .group_0032 import DependabotAlertSecurityAdvisory +from .group_0031 import DependabotAlertSecurityVulnerability +from .group_0035 import DependabotAlertWithRepositoryPropDependency + + +class DependabotAlertWithRepository(GitHubModel): + """DependabotAlertWithRepository -class ReactionRollup(GitHubModel): - """Reaction Rollup""" + A Dependabot alert. + """ - url: str = Field() - total_count: int = Field() - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - laugh: int = Field() - confused: int = Field() - heart: int = Field() - hooray: int = Field() - eyes: int = Field() - rocket: int = Field() + number: int = Field(description="The security alert number.") + state: Literal["auto_dismissed", "dismissed", "fixed", "open"] = Field( + description="The state of the Dependabot alert." + ) + dependency: DependabotAlertWithRepositoryPropDependency = Field( + description="Details for the vulnerable dependency." + ) + security_advisory: DependabotAlertSecurityAdvisory = Field( + description="Details for the GitHub Security Advisory." + ) + security_vulnerability: DependabotAlertSecurityVulnerability = Field( + description="Details pertaining to one vulnerable version range for the advisory." + ) + url: str = Field(description="The REST API URL of the alert resource.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + updated_at: datetime = Field( + description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_reason: Union[ + None, + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ], + ] = Field(description="The reason that the alert was dismissed.") + dismissed_comment: Union[Annotated[str, Field(max_length=280)], None] = Field( + description="An optional comment associated with the alert's dismissal." + ) + fixed_at: Union[datetime, None] = Field( + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + auto_dismissed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="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(ReactionRollup) +model_rebuild(DependabotAlertWithRepository) -__all__ = ("ReactionRollup",) +__all__ = ("DependabotAlertWithRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0035.py b/githubkit/versions/v2022_11_28/models/group_0035.py index ebd24cb54..9cec2fa23 100644 --- a/githubkit/versions/v2022_11_28/models/group_0035.py +++ b/githubkit/versions/v2022_11_28/models/group_0035.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,108 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0033 import Milestone -from .group_0001 import SimpleUser -from .group_0017 import Repository -from .group_0006 import Integration -from .group_0034 import ReactionRollup +from .group_0030 import DependabotAlertPackage -class Issue(GitHubModel): - """Issue +class DependabotAlertWithRepositoryPropDependency(GitHubModel): + """DependabotAlertWithRepositoryPropDependency - Issues are a great way to keep track of tasks, enhancements, and bugs for your - projects. + Details for the vulnerable dependency. """ - 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" + package: Missing[DependabotAlertPackage] = Field( + default=UNSET, description="Details for the vulnerable package." ) - state: str = Field(description="State of the issue; either 'open' or 'closed'") - state_reason: Missing[ - Union[None, Literal["completed", "reopened", "not_planned"]] - ] = Field(default=UNSET, description="The reason for the current state") - title: str = Field(description="Title of the issue") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Contents of the issue" + manifest_path: Missing[str] = Field( + default=UNSET, + description="The full path to the dependency manifest file, relative to the root of the repository.", ) - 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" + scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( + default=UNSET, description="The execution scope of the vulnerable dependency." ) - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - milestone: Union[None, Milestone] = Field() - locked: bool = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - comments: int = Field() - pull_request: Missing[IssuePropPullRequest] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - closed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - body_html: Missing[Union[str, None]] = Field(default=UNSET) - body_text: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - repository: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - - -class IssuePropLabelsItemsOneof1(GitHubModel): - """IssuePropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - default: Missing[bool] = Field(default=UNSET) - - -class IssuePropPullRequest(GitHubModel): - """IssuePropPullRequest""" - - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - diff_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - patch_url: Union[str, None] = Field() - url: Union[str, None] = Field() -model_rebuild(Issue) -model_rebuild(IssuePropLabelsItemsOneof1) -model_rebuild(IssuePropPullRequest) +model_rebuild(DependabotAlertWithRepositoryPropDependency) -__all__ = ( - "Issue", - "IssuePropLabelsItemsOneof1", - "IssuePropPullRequest", -) +__all__ = ("DependabotAlertWithRepositoryPropDependency",) diff --git a/githubkit/versions/v2022_11_28/models/group_0036.py b/githubkit/versions/v2022_11_28/models/group_0036.py index edcb9a761..9e1819642 100644 --- a/githubkit/versions/v2022_11_28/models/group_0036.py +++ b/githubkit/versions/v2022_11_28/models/group_0036.py @@ -19,48 +19,76 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -from .group_0006 import Integration -from .group_0034 import ReactionRollup +from .group_0033 import SimpleRepository -class IssueComment(GitHubModel): - """Issue Comment +class OrganizationSecretScanningAlert(GitHubModel): + """OrganizationSecretScanningAlert""" - Comments provide a way for people to collaborate on an issue. - """ - - id: int = Field(description="Unique identifier of the issue comment") - node_id: str = Field() - url: str = Field(description="URL for the issue comment") - body: Missing[str] = Field( - default=UNSET, description="Contents of the issue comment" - ) - body_text: Missing[str] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - html_url: str = Field() - user: Union[None, SimpleUser] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - issue_url: str = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + 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( - title="author_association", - description="How the author is associated with the repository.", + 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 "[Secret scanning patterns](https://docs.github.com/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)."', + ) + 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`.", + ) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, + description="The comment that was optionally added when this alert was closed", ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(IssueComment) +model_rebuild(OrganizationSecretScanningAlert) -__all__ = ("IssueComment",) +__all__ = ("OrganizationSecretScanningAlert",) diff --git a/githubkit/versions/v2022_11_28/models/group_0037.py b/githubkit/versions/v2022_11_28/models/group_0037.py index ed61e6528..d723b51dc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0037.py +++ b/githubkit/versions/v2022_11_28/models/group_0037.py @@ -10,94 +10,41 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0035 import Issue -from .group_0036 import IssueComment +from .group_0001 import SimpleUser -class EventPropPayload(GitHubModel): - """EventPropPayload""" +class Milestone(GitHubModel): + """Milestone - 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 + A collection of related issues and pull requests. """ - id: str = Field() - type: Union[str, None] = Field() - actor: Actor = Field(title="Actor", description="Actor") - repo: EventPropRepo = Field() - org: Missing[Actor] = Field(default=UNSET, title="Actor", description="Actor") - payload: EventPropPayload = Field() - public: bool = Field() - created_at: Union[datetime, None] = Field() - - -class Actor(GitHubModel): - """Actor - - Actor - """ - - id: int = Field() - login: str = Field() - display_login: Missing[str] = Field(default=UNSET) - gravatar_id: Union[str, None] = Field() url: str = Field() - avatar_url: str = Field() - - -class EventPropRepo(GitHubModel): - """EventPropRepo""" - + html_url: str = Field() + labels_url: str = Field() id: int = Field() - name: str = Field() - url: str = 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(EventPropPayload) -model_rebuild(EventPropPayloadPropPagesItems) -model_rebuild(Event) -model_rebuild(Actor) -model_rebuild(EventPropRepo) +model_rebuild(Milestone) -__all__ = ( - "EventPropPayload", - "EventPropPayloadPropPagesItems", - "Event", - "Actor", - "EventPropRepo", -) +__all__ = ("Milestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0038.py b/githubkit/versions/v2022_11_28/models/group_0038.py index 583006545..fd85f1373 100644 --- a/githubkit/versions/v2022_11_28/models/group_0038.py +++ b/githubkit/versions/v2022_11_28/models/group_0038.py @@ -9,88 +9,26 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class Feed(GitHubModel): - """Feed - - Feed - """ - - timeline_url: str = Field() - user_url: str = Field() - current_user_public_url: Missing[str] = Field(default=UNSET) - current_user_url: Missing[str] = Field(default=UNSET) - current_user_actor_url: Missing[str] = Field(default=UNSET) - current_user_organization_url: Missing[str] = Field(default=UNSET) - current_user_organization_urls: Missing[List[str]] = Field(default=UNSET) - security_advisories_url: Missing[str] = Field(default=UNSET) - repository_discussions_url: Missing[str] = Field( - default=UNSET, description="A feed of discussions for a given repository." - ) - repository_discussions_category_url: Missing[str] = Field( - default=UNSET, - description="A feed of discussions for a given repository and category.", - ) - links: FeedPropLinks = Field(alias="_links") - - -class FeedPropLinks(GitHubModel): - """FeedPropLinks""" - - timeline: LinkWithType = Field( - title="Link With Type", description="Hypermedia Link with Type" - ) - user: LinkWithType = Field( - title="Link With Type", description="Hypermedia Link with Type" - ) - security_advisories: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) - current_user: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) - current_user_public: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) - current_user_actor: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) - current_user_organization: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) - current_user_organizations: Missing[List[LinkWithType]] = Field(default=UNSET) - repository_discussions: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) - repository_discussions_category: Missing[LinkWithType] = Field( - default=UNSET, title="Link With Type", description="Hypermedia Link with Type" - ) - - -class LinkWithType(GitHubModel): - """Link With Type - - Hypermedia Link with Type - """ +class ReactionRollup(GitHubModel): + """Reaction Rollup""" - href: str = Field() - type: str = Field() + url: str = Field() + total_count: int = Field() + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + laugh: int = Field() + confused: int = Field() + heart: int = Field() + hooray: int = Field() + eyes: int = Field() + rocket: int = Field() -model_rebuild(Feed) -model_rebuild(FeedPropLinks) -model_rebuild(LinkWithType) +model_rebuild(ReactionRollup) -__all__ = ( - "Feed", - "FeedPropLinks", - "LinkWithType", -) +__all__ = ("ReactionRollup",) diff --git a/githubkit/versions/v2022_11_28/models/group_0039.py b/githubkit/versions/v2022_11_28/models/group_0039.py index 94caec0b4..f4cfdbf4c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0039.py +++ b/githubkit/versions/v2022_11_28/models/group_0039.py @@ -10,55 +10,116 @@ from __future__ import annotations from datetime import datetime -from typing import Any, List, Union +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild +from .group_0037 import Milestone from .group_0001 import SimpleUser +from .group_0017 import Repository +from .group_0006 import Integration +from .group_0038 import ReactionRollup -class BaseGist(GitHubModel): - """Base Gist +class Issue(GitHubModel): + """Issue - Base Gist + Issues are a great way to keep track of tasks, enhancements, and bugs for your + projects. """ - url: str = Field() - forks_url: str = Field() - commits_url: str = Field() - id: str = Field() + id: int = Field() node_id: str = Field() - git_pull_url: str = Field() - git_push_url: 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() - files: BaseGistPropFiles = Field() - public: bool = Field() + number: int = Field( + description="Number uniquely identifying the issue within its repository" + ) + state: str = Field(description="State of the issue; either 'open' or 'closed'") + state_reason: Missing[ + Union[None, Literal["completed", "reopened", "not_planned"]] + ] = Field(default=UNSET, description="The reason for the current state") + title: str = Field(description="Title of the issue") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Contents of the issue" + ) + user: Union[None, SimpleUser] = Field() + labels: List[Union[str, IssuePropLabelsItemsOneof1]] = Field( + description="Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository" + ) + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) + milestone: Union[None, Milestone] = Field() + locked: bool = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + comments: int = Field() + pull_request: Missing[IssuePropPullRequest] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() created_at: datetime = Field() updated_at: datetime = Field() - description: Union[str, None] = Field() - comments: int = Field() - user: Union[None, SimpleUser] = Field() - comments_url: str = Field() - owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + draft: Missing[bool] = Field(default=UNSET) + closed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + repository: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) - truncated: Missing[bool] = Field(default=UNSET) - forks: Missing[List[Any]] = Field(default=UNSET) - history: Missing[List[Any]] = 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") + + +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 BaseGistPropFiles(ExtraGitHubModel): - """BaseGistPropFiles""" + 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(BaseGist) -model_rebuild(BaseGistPropFiles) +model_rebuild(Issue) +model_rebuild(IssuePropLabelsItemsOneof1) +model_rebuild(IssuePropPullRequest) __all__ = ( - "BaseGist", - "BaseGistPropFiles", + "Issue", + "IssuePropLabelsItemsOneof1", + "IssuePropPullRequest", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0040.py b/githubkit/versions/v2022_11_28/models/group_0040.py index df09f74a0..33e8df957 100644 --- a/githubkit/versions/v2022_11_28/models/group_0040.py +++ b/githubkit/versions/v2022_11_28/models/group_0040.py @@ -10,78 +10,57 @@ from __future__ import annotations from datetime import datetime -from typing import Any, List, Union +from typing import Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser +from .group_0006 import Integration +from .group_0038 import ReactionRollup -class GistHistory(GitHubModel): - """Gist History +class IssueComment(GitHubModel): + """Issue Comment - Gist History + Comments provide a way for people to collaborate on an issue. """ - 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 - """ - - url: str = Field() - forks_url: str = Field() - commits_url: str = Field() - id: str = Field() + id: int = Field(description="Unique identifier of the issue comment") node_id: str = Field() - git_pull_url: str = Field() - git_push_url: str = Field() + url: str = Field(description="URL for the issue comment") + body: Missing[str] = Field( + default=UNSET, description="Contents of the issue comment" + ) + body_text: Missing[str] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) html_url: str = Field() - files: GistSimplePropForkOfPropFiles = Field() - public: bool = Field() + user: Union[None, SimpleUser] = Field() created_at: datetime = Field() updated_at: datetime = Field() - description: Union[str, None] = Field() - comments: int = Field() - 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", -) + issue_url: str = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + + +model_rebuild(IssueComment) + +__all__ = ("IssueComment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0041.py b/githubkit/versions/v2022_11_28/models/group_0041.py index a1798c3f7..50d090ec0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0041.py +++ b/githubkit/versions/v2022_11_28/models/group_0041.py @@ -16,128 +16,88 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0040 import GistHistory, GistSimplePropForkOf +from .group_0039 import Issue +from .group_0040 import IssueComment -class GistSimple(GitHubModel): - """Gist Simple +class EventPropPayload(GitHubModel): + """EventPropPayload""" - Gist Simple - """ - - forks: Missing[Union[List[GistSimplePropForksItems], None]] = Field(default=UNSET) - history: Missing[Union[List[GistHistory], None]] = Field(default=UNSET) - fork_of: Missing[Union[GistSimplePropForkOf, None]] = Field( - default=UNSET, title="Gist", description="Gist" + 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.", ) - 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) - 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." + comment: Missing[IssueComment] = Field( + default=UNSET, + title="Issue Comment", + description="Comments provide a way for people to collaborate on an issue.", ) - truncated: Missing[bool] = Field(default=UNSET) + pages: Missing[List[EventPropPayloadPropPagesItems]] = Field(default=UNSET) -class GistSimplePropFiles(ExtraGitHubModel): - """GistSimplePropFiles""" +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 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 Event(GitHubModel): + """Event + Event + """ + + id: str = Field() + type: Union[str, None] = Field() + actor: Actor = Field(title="Actor", description="Actor") + repo: EventPropRepo = Field() + org: Missing[Actor] = Field(default=UNSET, title="Actor", description="Actor") + payload: EventPropPayload = Field() + public: bool = Field() + created_at: Union[datetime, None] = Field() -class PublicUser(GitHubModel): - """Public User - Public User +class Actor(GitHubModel): + """Actor + + Actor """ - login: str = Field() id: int = Field() - node_id: str = Field() - avatar_url: str = Field() + login: str = Field() + display_login: Missing[str] = Field(default=UNSET) 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) - suspended_at: Missing[Union[datetime, None]] = 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() + avatar_url: str = Field() + + +class EventPropRepo(GitHubModel): + """EventPropRepo""" + + id: int = Field() name: str = Field() - space: int = Field() - private_repos: int = Field() + url: str = Field() -model_rebuild(GistSimple) -model_rebuild(GistSimplePropFiles) -model_rebuild(GistSimplePropForksItems) -model_rebuild(PublicUser) -model_rebuild(PublicUserPropPlan) +model_rebuild(EventPropPayload) +model_rebuild(EventPropPayloadPropPagesItems) +model_rebuild(Event) +model_rebuild(Actor) +model_rebuild(EventPropRepo) __all__ = ( - "GistSimple", - "GistSimplePropFiles", - "GistSimplePropForksItems", - "PublicUser", - "PublicUserPropPlan", + "EventPropPayload", + "EventPropPayloadPropPagesItems", + "Event", + "Actor", + "EventPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0042.py b/githubkit/versions/v2022_11_28/models/group_0042.py index 32e3658f4..583006545 100644 --- a/githubkit/versions/v2022_11_28/models/group_0042.py +++ b/githubkit/versions/v2022_11_28/models/group_0042.py @@ -9,44 +9,88 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class Feed(GitHubModel): + """Feed -class GistComment(GitHubModel): - """Gist Comment + Feed + """ + + timeline_url: str = Field() + user_url: str = Field() + current_user_public_url: Missing[str] = Field(default=UNSET) + current_user_url: Missing[str] = Field(default=UNSET) + current_user_actor_url: Missing[str] = Field(default=UNSET) + current_user_organization_url: Missing[str] = Field(default=UNSET) + current_user_organization_urls: Missing[List[str]] = Field(default=UNSET) + security_advisories_url: Missing[str] = Field(default=UNSET) + repository_discussions_url: Missing[str] = Field( + default=UNSET, description="A feed of discussions for a given repository." + ) + repository_discussions_category_url: Missing[str] = Field( + default=UNSET, + description="A feed of discussions for a given repository and category.", + ) + links: FeedPropLinks = Field(alias="_links") + + +class FeedPropLinks(GitHubModel): + """FeedPropLinks""" - A comment made to a gist. + 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 """ - 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",) + href: str = Field() + type: str = Field() + + +model_rebuild(Feed) +model_rebuild(FeedPropLinks) +model_rebuild(LinkWithType) + +__all__ = ( + "Feed", + "FeedPropLinks", + "LinkWithType", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0043.py b/githubkit/versions/v2022_11_28/models/group_0043.py index 3fa53b8b7..94caec0b4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0043.py +++ b/githubkit/versions/v2022_11_28/models/group_0043.py @@ -9,43 +9,56 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import Any, List, Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild from .group_0001 import SimpleUser -class GistCommit(GitHubModel): - """Gist Commit +class BaseGist(GitHubModel): + """Base Gist - Gist Commit + Base Gist """ url: str = Field() - version: 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() user: Union[None, SimpleUser] = Field() - change_status: GistCommitPropChangeStatus = Field() - committed_at: datetime = 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 GistCommitPropChangeStatus(GitHubModel): - """GistCommitPropChangeStatus""" +class BaseGistPropFiles(ExtraGitHubModel): + """BaseGistPropFiles""" - total: Missing[int] = Field(default=UNSET) - additions: Missing[int] = Field(default=UNSET) - deletions: Missing[int] = Field(default=UNSET) - -model_rebuild(GistCommit) -model_rebuild(GistCommitPropChangeStatus) +model_rebuild(BaseGist) +model_rebuild(BaseGistPropFiles) __all__ = ( - "GistCommit", - "GistCommitPropChangeStatus", + "BaseGist", + "BaseGistPropFiles", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0044.py b/githubkit/versions/v2022_11_28/models/group_0044.py index 68fca7a2b..df09f74a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0044.py +++ b/githubkit/versions/v2022_11_28/models/group_0044.py @@ -9,21 +9,79 @@ from __future__ import annotations +from datetime import datetime +from typing import Any, List, Union + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + +from .group_0001 import SimpleUser + + +class GistHistory(GitHubModel): + """Gist History + + Gist History + """ + + user: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + committed_at: Missing[datetime] = Field(default=UNSET) + change_status: Missing[GistHistoryPropChangeStatus] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class GistHistoryPropChangeStatus(GitHubModel): + """GistHistoryPropChangeStatus""" + total: Missing[int] = Field(default=UNSET) + additions: Missing[int] = Field(default=UNSET) + deletions: Missing[int] = Field(default=UNSET) -class GitignoreTemplate(GitHubModel): - """Gitignore Template - Gitignore Template +class GistSimplePropForkOf(GitHubModel): + """Gist + + Gist """ - name: str = Field() - source: str = Field() + url: str = Field() + forks_url: str = Field() + commits_url: str = Field() + id: str = Field() + node_id: str = Field() + git_pull_url: str = Field() + git_push_url: str = Field() + html_url: str = Field() + files: GistSimplePropForkOfPropFiles = Field() + public: bool = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + description: Union[str, None] = Field() + comments: int = Field() + 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(GitignoreTemplate) +model_rebuild(GistHistory) +model_rebuild(GistHistoryPropChangeStatus) +model_rebuild(GistSimplePropForkOf) +model_rebuild(GistSimplePropForkOfPropFiles) -__all__ = ("GitignoreTemplate",) +__all__ = ( + "GistHistory", + "GistHistoryPropChangeStatus", + "GistSimplePropForkOf", + "GistSimplePropForkOfPropFiles", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0045.py b/githubkit/versions/v2022_11_28/models/group_0045.py index 1922e917d..ada0f8464 100644 --- a/githubkit/versions/v2022_11_28/models/group_0045.py +++ b/githubkit/versions/v2022_11_28/models/group_0045.py @@ -9,34 +9,135 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0044 import GistHistory, GistSimplePropForkOf -class License(GitHubModel): - """License - License +class GistSimple(GitHubModel): + """Gist Simple + + Gist Simple """ - key: str = Field() - name: str = Field() - spdx_id: Union[str, None] = Field() - url: Union[str, None] = Field() + 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) + user: Missing[Union[str, None]] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + truncated: Missing[bool] = Field(default=UNSET) + + +class GistSimplePropFiles(ExtraGitHubModel): + """GistSimplePropFiles""" + + +class GistSimplePropForksItems(GitHubModel): + """GistSimplePropForksItems""" + + id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[PublicUser] = Field( + default=UNSET, title="Public User", description="Public User" + ) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + + +class PublicUser(GitHubModel): + """Public User + + Public User + """ + + login: str = Field() + id: int = Field() node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: 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() + 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) + suspended_at: Missing[Union[datetime, None]] = 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(License) +model_rebuild(GistSimple) +model_rebuild(GistSimplePropFiles) +model_rebuild(GistSimplePropForksItems) +model_rebuild(PublicUser) +model_rebuild(PublicUserPropPlan) -__all__ = ("License",) +__all__ = ( + "GistSimple", + "GistSimplePropFiles", + "GistSimplePropForksItems", + "PublicUser", + "PublicUserPropPlan", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0046.py b/githubkit/versions/v2022_11_28/models/group_0046.py index d49a37f42..32e3658f4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0046.py +++ b/githubkit/versions/v2022_11_28/models/group_0046.py @@ -9,34 +9,44 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class MarketplaceListingPlan(GitHubModel): - """Marketplace Listing Plan - Marketplace Listing Plan +class GistComment(GitHubModel): + """Gist Comment + + A comment made to a gist. """ - url: str = Field() - accounts_url: str = Field() id: int = Field() - number: int = Field() - name: str = Field() - description: str = Field() - monthly_price_in_cents: int = Field() - yearly_price_in_cents: int = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - has_free_trial: bool = Field() - unit_name: Union[str, None] = Field() - state: str = Field() - bullets: List[str] = Field() - - -model_rebuild(MarketplaceListingPlan) - -__all__ = ("MarketplaceListingPlan",) + 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_0047.py b/githubkit/versions/v2022_11_28/models/group_0047.py index 2c715ca7e..3fa53b8b7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0047.py +++ b/githubkit/versions/v2022_11_28/models/group_0047.py @@ -10,6 +10,7 @@ from __future__ import annotations from typing import Union +from datetime import datetime from pydantic import Field @@ -17,30 +18,34 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0048 import ( - MarketplacePurchasePropMarketplacePurchase, - MarketplacePurchasePropMarketplacePendingChange, -) +from .group_0001 import SimpleUser -class MarketplacePurchase(GitHubModel): - """Marketplace Purchase +class GistCommit(GitHubModel): + """Gist Commit - Marketplace Purchase + Gist Commit """ 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() + 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(MarketplacePurchase) -__all__ = ("MarketplacePurchase",) +model_rebuild(GistCommit) +model_rebuild(GistCommitPropChangeStatus) + +__all__ = ( + "GistCommit", + "GistCommitPropChangeStatus", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0048.py b/githubkit/versions/v2022_11_28/models/group_0048.py index d201dac37..68fca7a2b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0048.py +++ b/githubkit/versions/v2022_11_28/models/group_0048.py @@ -9,52 +9,21 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0046 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 GitignoreTemplate(GitHubModel): + """Gitignore Template -class MarketplacePurchasePropMarketplacePurchase(GitHubModel): - """MarketplacePurchasePropMarketplacePurchase""" + Gitignore Template + """ - 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", - ) + name: str = Field() + source: str = Field() -model_rebuild(MarketplacePurchasePropMarketplacePendingChange) -model_rebuild(MarketplacePurchasePropMarketplacePurchase) +model_rebuild(GitignoreTemplate) -__all__ = ( - "MarketplacePurchasePropMarketplacePendingChange", - "MarketplacePurchasePropMarketplacePurchase", -) +__all__ = ("GitignoreTemplate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0049.py b/githubkit/versions/v2022_11_28/models/group_0049.py index 319af6342..1922e917d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0049.py +++ b/githubkit/versions/v2022_11_28/models/group_0049.py @@ -9,65 +9,34 @@ from __future__ import annotations -from typing import List +from typing import List, Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ApiOverview(GitHubModel): - """Api Overview +class License(GitHubModel): + """License - Api Overview + License """ - 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) - dependabot: Missing[List[str]] = Field(default=UNSET) - domains: Missing[ApiOverviewPropDomains] = Field(default=UNSET) + 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() -class ApiOverviewPropSshKeyFingerprints(GitHubModel): - """ApiOverviewPropSshKeyFingerprints""" +model_rebuild(License) - 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) - - -model_rebuild(ApiOverview) -model_rebuild(ApiOverviewPropSshKeyFingerprints) -model_rebuild(ApiOverviewPropDomains) - -__all__ = ( - "ApiOverview", - "ApiOverviewPropSshKeyFingerprints", - "ApiOverviewPropDomains", -) +__all__ = ("License",) diff --git a/githubkit/versions/v2022_11_28/models/group_0050.py b/githubkit/versions/v2022_11_28/models/group_0050.py index 6e6d859ec..d49a37f42 100644 --- a/githubkit/versions/v2022_11_28/models/group_0050.py +++ b/githubkit/versions/v2022_11_28/models/group_0050.py @@ -9,75 +9,34 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class SecurityAndAnalysis(GitHubModel): - """SecurityAndAnalysis""" +class MarketplaceListingPlan(GitHubModel): + """Marketplace Listing Plan - advanced_security: Missing[SecurityAndAnalysisPropAdvancedSecurity] = Field( - default=UNSET - ) - dependabot_security_updates: Missing[ - SecurityAndAnalysisPropDependabotSecurityUpdates - ] = Field( - default=UNSET, - description="Enable or disable Dependabot security updates for the repository.", - ) - secret_scanning: Missing[SecurityAndAnalysisPropSecretScanning] = Field( - default=UNSET - ) - secret_scanning_push_protection: Missing[ - SecurityAndAnalysisPropSecretScanningPushProtection - ] = Field(default=UNSET) - - -class SecurityAndAnalysisPropAdvancedSecurity(GitHubModel): - """SecurityAndAnalysisPropAdvancedSecurity""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropDependabotSecurityUpdates(GitHubModel): - """SecurityAndAnalysisPropDependabotSecurityUpdates - - Enable or disable Dependabot security updates for the repository. + Marketplace Listing Plan """ - status: Missing[Literal["enabled", "disabled"]] = Field( - default=UNSET, - description="The enablement status of Dependabot security updates for the repository.", - ) - - -class SecurityAndAnalysisPropSecretScanning(GitHubModel): - """SecurityAndAnalysisPropSecretScanning""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) - - -class SecurityAndAnalysisPropSecretScanningPushProtection(GitHubModel): - """SecurityAndAnalysisPropSecretScanningPushProtection""" - - status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + 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(SecurityAndAnalysis) -model_rebuild(SecurityAndAnalysisPropAdvancedSecurity) -model_rebuild(SecurityAndAnalysisPropDependabotSecurityUpdates) -model_rebuild(SecurityAndAnalysisPropSecretScanning) -model_rebuild(SecurityAndAnalysisPropSecretScanningPushProtection) +model_rebuild(MarketplaceListingPlan) -__all__ = ( - "SecurityAndAnalysis", - "SecurityAndAnalysisPropAdvancedSecurity", - "SecurityAndAnalysisPropDependabotSecurityUpdates", - "SecurityAndAnalysisPropSecretScanning", - "SecurityAndAnalysisPropSecretScanningPushProtection", -) +__all__ = ("MarketplaceListingPlan",) diff --git a/githubkit/versions/v2022_11_28/models/group_0051.py b/githubkit/versions/v2022_11_28/models/group_0051.py index d54b87fdb..5fc034358 100644 --- a/githubkit/versions/v2022_11_28/models/group_0051.py +++ b/githubkit/versions/v2022_11_28/models/group_0051.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import Union from pydantic import Field @@ -18,155 +17,30 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0050 import SecurityAndAnalysis - - -class MinimalRepository(GitHubModel): - """Minimal Repository - - Minimal Repository - """ - - id: int = Field() - node_id: str = Field() - name: str = Field() - full_name: str = Field() - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field() - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: Missing[str] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[Union[str, None]] = Field(default=UNSET) - hooks_url: str = Field() - svn_url: Missing[str] = Field(default=UNSET) - homepage: Missing[Union[str, None]] = Field(default=UNSET) - language: Missing[Union[str, None]] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) - size: Missing[int] = Field( - default=UNSET, - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.", - ) - default_branch: Missing[str] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[List[str]] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - has_discussions: Missing[bool] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - pushed_at: Missing[Union[datetime, None]] = Field(default=UNSET) - created_at: Missing[Union[datetime, None]] = Field(default=UNSET) - updated_at: Missing[Union[datetime, None]] = Field(default=UNSET) - permissions: Missing[MinimalRepositoryPropPermissions] = Field(default=UNSET) - role_name: Missing[str] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - subscribers_count: Missing[int] = Field(default=UNSET) - network_count: Missing[int] = Field(default=UNSET) - code_of_conduct: Missing[CodeOfConduct] = Field( - default=UNSET, title="Code Of Conduct", description="Code Of Conduct" - ) - license_: Missing[Union[MinimalRepositoryPropLicense, None]] = Field( - default=UNSET, alias="license" - ) - forks: Missing[int] = Field(default=UNSET) - open_issues: Missing[int] = Field(default=UNSET) - watchers: Missing[int] = Field(default=UNSET) - allow_forking: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET - ) +from .group_0052 import ( + MarketplacePurchasePropMarketplacePurchase, + MarketplacePurchasePropMarketplacePendingChange, +) -class CodeOfConduct(GitHubModel): - """Code Of Conduct +class MarketplacePurchase(GitHubModel): + """Marketplace Purchase - Code Of Conduct + Marketplace Purchase """ - 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) + 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(MinimalRepository) -model_rebuild(CodeOfConduct) -model_rebuild(MinimalRepositoryPropPermissions) -model_rebuild(MinimalRepositoryPropLicense) +model_rebuild(MarketplacePurchase) -__all__ = ( - "MinimalRepository", - "CodeOfConduct", - "MinimalRepositoryPropPermissions", - "MinimalRepositoryPropLicense", -) +__all__ = ("MarketplacePurchase",) diff --git a/githubkit/versions/v2022_11_28/models/group_0052.py b/githubkit/versions/v2022_11_28/models/group_0052.py index 4ca54c01c..f608df750 100644 --- a/githubkit/versions/v2022_11_28/models/group_0052.py +++ b/githubkit/versions/v2022_11_28/models/group_0052.py @@ -13,43 +13,48 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0051 import MinimalRepository +from .group_0050 import MarketplaceListingPlan -class Thread(GitHubModel): - """Thread +class MarketplacePurchasePropMarketplacePendingChange(GitHubModel): + """MarketplacePurchasePropMarketplacePendingChange""" - Thread - """ - - id: str = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + 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", ) - 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() +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(Thread) -model_rebuild(ThreadPropSubject) +model_rebuild(MarketplacePurchasePropMarketplacePendingChange) +model_rebuild(MarketplacePurchasePropMarketplacePurchase) __all__ = ( - "Thread", - "ThreadPropSubject", + "MarketplacePurchasePropMarketplacePendingChange", + "MarketplacePurchasePropMarketplacePurchase", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0053.py b/githubkit/versions/v2022_11_28/models/group_0053.py index c7f24dd2f..319af6342 100644 --- a/githubkit/versions/v2022_11_28/models/group_0053.py +++ b/githubkit/versions/v2022_11_28/models/group_0053.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import List from pydantic import Field @@ -19,21 +18,56 @@ from githubkit.compat import GitHubModel, model_rebuild -class ThreadSubscription(GitHubModel): - """Thread Subscription +class ApiOverview(GitHubModel): + """Api Overview - Thread Subscription + Api Overview """ - 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) + 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) + dependabot: Missing[List[str]] = Field(default=UNSET) + domains: Missing[ApiOverviewPropDomains] = Field(default=UNSET) -model_rebuild(ThreadSubscription) +class ApiOverviewPropSshKeyFingerprints(GitHubModel): + """ApiOverviewPropSshKeyFingerprints""" -__all__ = ("ThreadSubscription",) + 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) + + +model_rebuild(ApiOverview) +model_rebuild(ApiOverviewPropSshKeyFingerprints) +model_rebuild(ApiOverviewPropDomains) + +__all__ = ( + "ApiOverview", + "ApiOverviewPropSshKeyFingerprints", + "ApiOverviewPropDomains", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0054.py b/githubkit/versions/v2022_11_28/models/group_0054.py index c454530e4..006df7bf1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0054.py +++ b/githubkit/versions/v2022_11_28/models/group_0054.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Literal from pydantic import Field @@ -19,111 +18,77 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrganizationFull(GitHubModel): - """Organization Full +class SecurityAndAnalysis(GitHubModel): + """SecurityAndAnalysis""" - Organization Full - """ - - 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) - billing_email: Missing[Union[str, None]] = Field(default=UNSET) - plan: Missing[OrganizationFullPropPlan] = Field(default=UNSET) - default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) - members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) - two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) - members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) - members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_pages: Missing[bool] = Field(default=UNSET) - members_can_create_public_pages: Missing[bool] = Field(default=UNSET) - members_can_create_private_pages: Missing[bool] = Field(default=UNSET) - members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( + advanced_security: Missing[SecurityAndAnalysisPropAdvancedSecurity] = Field( default=UNSET ) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - advanced_security_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether GitHub Advanced Security is automatically enabled for new repositories and repositories transferred to\nthis organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether dependabot security updates are automatically enabled for new repositories and repositories transferred\nto this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether dependency graph is automatically enabled for new repositories and repositories transferred to this\norganization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( + dependabot_security_updates: Missing[ + SecurityAndAnalysisPropDependabotSecurityUpdates + ] = Field( default=UNSET, - description="Whether secret scanning is automatically enabled for new repositories and repositories transferred to this\norganization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + description="Enable or disable Dependabot security updates for the repository.", ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether secret scanning push protection is automatically enabled for new repositories and repositories\ntransferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", - ) - 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: Missing[SecurityAndAnalysisPropSecretScanning] = Field( + default=UNSET ) - secret_scanning_push_protection_custom_link: Missing[Union[str, None]] = Field( + secret_scanning_push_protection: Missing[ + SecurityAndAnalysisPropSecretScanningPushProtection + ] = Field(default=UNSET) + secret_scanning_non_provider_patterns: Missing[ + SecurityAndAnalysisPropSecretScanningNonProviderPatterns + ] = Field(default=UNSET) + + +class SecurityAndAnalysisPropAdvancedSecurity(GitHubModel): + """SecurityAndAnalysisPropAdvancedSecurity""" + + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) + + +class SecurityAndAnalysisPropDependabotSecurityUpdates(GitHubModel): + """SecurityAndAnalysisPropDependabotSecurityUpdates + + Enable or disable Dependabot security updates for the repository. + """ + + status: Missing[Literal["enabled", "disabled"]] = Field( default=UNSET, - description="An optional URL string to display to contributors who are blocked from pushing a secret.", + description="The enablement status of Dependabot security updates for the repository.", ) - created_at: datetime = Field() - updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() -class OrganizationFullPropPlan(GitHubModel): - """OrganizationFullPropPlan""" +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""" - name: str = Field() - space: int = Field() - private_repos: int = Field() - filled_seats: Missing[int] = Field(default=UNSET) - seats: Missing[int] = Field(default=UNSET) + status: Missing[Literal["enabled", "disabled"]] = Field(default=UNSET) -model_rebuild(OrganizationFull) -model_rebuild(OrganizationFullPropPlan) +model_rebuild(SecurityAndAnalysis) +model_rebuild(SecurityAndAnalysisPropAdvancedSecurity) +model_rebuild(SecurityAndAnalysisPropDependabotSecurityUpdates) +model_rebuild(SecurityAndAnalysisPropSecretScanning) +model_rebuild(SecurityAndAnalysisPropSecretScanningPushProtection) +model_rebuild(SecurityAndAnalysisPropSecretScanningNonProviderPatterns) __all__ = ( - "OrganizationFull", - "OrganizationFullPropPlan", + "SecurityAndAnalysis", + "SecurityAndAnalysisPropAdvancedSecurity", + "SecurityAndAnalysisPropDependabotSecurityUpdates", + "SecurityAndAnalysisPropSecretScanning", + "SecurityAndAnalysisPropSecretScanningPushProtection", + "SecurityAndAnalysisPropSecretScanningNonProviderPatterns", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0055.py b/githubkit/versions/v2022_11_28/models/group_0055.py index 0faeb8276..ed77254a7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0055.py +++ b/githubkit/versions/v2022_11_28/models/group_0055.py @@ -9,22 +9,164 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0054 import SecurityAndAnalysis + -class ActionsCacheUsageOrgEnterprise(GitHubModel): - """ActionsCacheUsageOrgEnterprise""" +class MinimalRepository(GitHubModel): + """Minimal Repository - total_active_caches_count: int = Field( - description="The count of active caches across all repositories of an enterprise or an organization." + Minimal Repository + """ + + id: int = Field() + node_id: str = Field() + name: str = Field() + full_name: str = Field() + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + private: bool = Field() + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: Missing[str] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: Missing[str] = Field(default=UNSET) + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: Missing[str] = Field(default=UNSET) + mirror_url: Missing[Union[str, None]] = Field(default=UNSET) + hooks_url: str = Field() + svn_url: Missing[str] = Field(default=UNSET) + homepage: Missing[Union[str, None]] = Field(default=UNSET) + language: Missing[Union[str, None]] = Field(default=UNSET) + forks_count: Missing[int] = Field(default=UNSET) + stargazers_count: Missing[int] = Field(default=UNSET) + watchers_count: Missing[int] = Field(default=UNSET) + size: Missing[int] = Field( + default=UNSET, + description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.", + ) + default_branch: Missing[str] = Field(default=UNSET) + open_issues_count: Missing[int] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + topics: Missing[List[str]] = Field(default=UNSET) + has_issues: Missing[bool] = Field(default=UNSET) + has_projects: Missing[bool] = Field(default=UNSET) + has_wiki: Missing[bool] = Field(default=UNSET) + has_pages: Missing[bool] = Field(default=UNSET) + has_downloads: Missing[bool] = Field(default=UNSET) + has_discussions: Missing[bool] = Field(default=UNSET) + archived: Missing[bool] = Field(default=UNSET) + disabled: Missing[bool] = Field(default=UNSET) + visibility: Missing[str] = Field(default=UNSET) + pushed_at: Missing[Union[datetime, None]] = Field(default=UNSET) + created_at: Missing[Union[datetime, None]] = Field(default=UNSET) + updated_at: Missing[Union[datetime, None]] = Field(default=UNSET) + permissions: Missing[MinimalRepositoryPropPermissions] = Field(default=UNSET) + role_name: Missing[str] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + code_of_conduct: Missing[CodeOfConduct] = Field( + default=UNSET, title="Code Of Conduct", description="Code Of Conduct" ) - 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." + license_: Missing[Union[MinimalRepositoryPropLicense, None]] = Field( + default=UNSET, alias="license" ) + forks: Missing[int] = Field(default=UNSET) + open_issues: Missing[int] = Field(default=UNSET) + watchers: Missing[int] = Field(default=UNSET) + allow_forking: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET + ) + + +class CodeOfConduct(GitHubModel): + """Code Of Conduct + + 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) -model_rebuild(ActionsCacheUsageOrgEnterprise) +model_rebuild(MinimalRepository) +model_rebuild(CodeOfConduct) +model_rebuild(MinimalRepositoryPropPermissions) +model_rebuild(MinimalRepositoryPropLicense) -__all__ = ("ActionsCacheUsageOrgEnterprise",) +__all__ = ( + "MinimalRepository", + "CodeOfConduct", + "MinimalRepositoryPropPermissions", + "MinimalRepositoryPropLicense", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0056.py b/githubkit/versions/v2022_11_28/models/group_0056.py index cb271d715..493d41979 100644 --- a/githubkit/versions/v2022_11_28/models/group_0056.py +++ b/githubkit/versions/v2022_11_28/models/group_0056.py @@ -9,24 +9,47 @@ from __future__ import annotations -from typing import List +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0055 import MinimalRepository -class OidcCustomSub(GitHubModel): - """Actions OIDC Subject customization - Actions OIDC Subject customization +class Thread(GitHubModel): + """Thread + + Thread """ - include_claim_keys: List[str] = Field( - description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores." + id: str = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) + subject: ThreadPropSubject = Field() + reason: str = Field() + unread: bool = Field() + updated_at: str = Field() + last_read_at: Union[str, None] = Field() + url: str = Field() + subscription_url: str = Field() + + +class ThreadPropSubject(GitHubModel): + """ThreadPropSubject""" + + title: str = Field() + url: str = Field() + latest_comment_url: str = Field() + type: str = Field() -model_rebuild(OidcCustomSub) +model_rebuild(Thread) +model_rebuild(ThreadPropSubject) -__all__ = ("OidcCustomSub",) +__all__ = ( + "Thread", + "ThreadPropSubject", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0057.py b/githubkit/versions/v2022_11_28/models/group_0057.py index c4eca12ed..c7f24dd2f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0057.py +++ b/githubkit/versions/v2022_11_28/models/group_0057.py @@ -9,16 +9,31 @@ from __future__ import annotations +from typing import Union +from datetime import datetime + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class EmptyObject(GitHubModel): - """Empty Object +class ThreadSubscription(GitHubModel): + """Thread Subscription - An object without any properties. + Thread Subscription """ + 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(EmptyObject) +model_rebuild(ThreadSubscription) -__all__ = ("EmptyObject",) +__all__ = ("ThreadSubscription",) diff --git a/githubkit/versions/v2022_11_28/models/group_0058.py b/githubkit/versions/v2022_11_28/models/group_0058.py index b6ec716a4..c454530e4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0058.py +++ b/githubkit/versions/v2022_11_28/models/group_0058.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from typing import Union +from datetime import datetime from pydantic import Field @@ -18,26 +19,111 @@ from githubkit.compat import GitHubModel, model_rebuild -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." + Organization Full + """ + + 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) + billing_email: Missing[Union[str, None]] = Field(default=UNSET) + plan: Missing[OrganizationFullPropPlan] = Field(default=UNSET) + default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) + members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) + two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) + members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) + members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) + members_can_create_pages: Missing[bool] = Field(default=UNSET) + members_can_create_public_pages: Missing[bool] = Field(default=UNSET) + members_can_create_private_pages: Missing[bool] = Field(default=UNSET) + members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( + default=UNSET + ) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + advanced_security_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether GitHub Advanced Security is automatically enabled for new repositories and repositories transferred to\nthis organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", + ) + dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description="Whether dependabot security updates are automatically enabled for new repositories and repositories transferred\nto this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", ) - selected_repositories_url: Missing[str] = Field( + dependency_graph_enabled_for_new_repositories: Missing[bool] = 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="Whether dependency graph is automatically enabled for new repositories and repositories transferred to this\norganization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + description="Whether secret scanning is automatically enabled for new repositories and repositories transferred to this\norganization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", ) - selected_actions_url: Missing[str] = Field( + secret_scanning_push_protection_enabled_for_new_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="Whether secret scanning push protection is automatically enabled for new repositories and repositories\ntransferred to this organization.\n\nThis field is only visible to organization owners or members of a team with the security manager role.", ) + 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() + + +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(ActionsOrganizationPermissions) +model_rebuild(OrganizationFull) +model_rebuild(OrganizationFullPropPlan) -__all__ = ("ActionsOrganizationPermissions",) +__all__ = ( + "OrganizationFull", + "OrganizationFullPropPlan", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0059.py b/githubkit/versions/v2022_11_28/models/group_0059.py index 9bfb09225..0faeb8276 100644 --- a/githubkit/versions/v2022_11_28/models/group_0059.py +++ b/githubkit/versions/v2022_11_28/models/group_0059.py @@ -9,32 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class SelectedActions(GitHubModel): - """SelectedActions""" +class ActionsCacheUsageOrgEnterprise(GitHubModel): + """ActionsCacheUsageOrgEnterprise""" - 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.", + total_active_caches_count: int = Field( + description="The count of active caches across all repositories of an enterprise or an organization." ) - 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**: The `patterns_allowed` setting only applies to public repositories.", + 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(SelectedActions) +model_rebuild(ActionsCacheUsageOrgEnterprise) -__all__ = ("SelectedActions",) +__all__ = ("ActionsCacheUsageOrgEnterprise",) diff --git a/githubkit/versions/v2022_11_28/models/group_0060.py b/githubkit/versions/v2022_11_28/models/group_0060.py index 0ec430210..cb271d715 100644 --- a/githubkit/versions/v2022_11_28/models/group_0060.py +++ b/githubkit/versions/v2022_11_28/models/group_0060.py @@ -9,24 +9,24 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ActionsGetDefaultWorkflowPermissions(GitHubModel): - """ActionsGetDefaultWorkflowPermissions""" +class OidcCustomSub(GitHubModel): + """Actions OIDC Subject customization - default_workflow_permissions: Literal["read", "write"] = Field( - description="The default workflow permissions granted to the GITHUB_TOKEN when running workflows." - ) - can_approve_pull_request_reviews: bool = Field( - description="Whether GitHub Actions can approve pull requests. Enabling this can be a security risk." + 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(ActionsGetDefaultWorkflowPermissions) +model_rebuild(OidcCustomSub) -__all__ = ("ActionsGetDefaultWorkflowPermissions",) +__all__ = ("OidcCustomSub",) diff --git a/githubkit/versions/v2022_11_28/models/group_0061.py b/githubkit/versions/v2022_11_28/models/group_0061.py index 8784bbb2a..b6ec716a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0061.py +++ b/githubkit/versions/v2022_11_28/models/group_0061.py @@ -18,19 +18,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class ActionsSetDefaultWorkflowPermissions(GitHubModel): - """ActionsSetDefaultWorkflowPermissions""" +class ActionsOrganizationPermissions(GitHubModel): + """ActionsOrganizationPermissions""" - default_workflow_permissions: Missing[Literal["read", "write"]] = Field( + enabled_repositories: Literal["all", "none", "selected"] = Field( + description="The policy that controls the repositories in the organization that are allowed to run GitHub Actions." + ) + 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 default workflow permissions granted to the GITHUB_TOKEN when running workflows.", + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) - can_approve_pull_request_reviews: Missing[bool] = Field( + selected_actions_url: Missing[str] = Field( default=UNSET, - description="Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.", + 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(ActionsSetDefaultWorkflowPermissions) +model_rebuild(ActionsOrganizationPermissions) -__all__ = ("ActionsSetDefaultWorkflowPermissions",) +__all__ = ("ActionsOrganizationPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0062.py b/githubkit/versions/v2022_11_28/models/group_0062.py index f7d1b8ea9..9bfb09225 100644 --- a/githubkit/versions/v2022_11_28/models/group_0062.py +++ b/githubkit/versions/v2022_11_28/models/group_0062.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -18,22 +18,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class RunnerLabel(GitHubModel): - """Self hosted runner label +class SelectedActions(GitHubModel): + """SelectedActions""" - A label for a self hosted runner - """ - - id: Missing[int] = Field( - default=UNSET, description="Unique identifier of the label." + 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.", ) - name: str = Field(description="Name of the label.") - type: Missing[Literal["read-only", "custom"]] = Field( + patterns_allowed: Missing[List[str]] = Field( default=UNSET, - description="The type of label. Read-only labels are applied automatically when the runner is configured.", + 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**: The `patterns_allowed` setting only applies to public repositories.", ) -model_rebuild(RunnerLabel) +model_rebuild(SelectedActions) -__all__ = ("RunnerLabel",) +__all__ = ("SelectedActions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0063.py b/githubkit/versions/v2022_11_28/models/group_0063.py index 8622ae205..0ec430210 100644 --- a/githubkit/versions/v2022_11_28/models/group_0063.py +++ b/githubkit/versions/v2022_11_28/models/group_0063.py @@ -9,34 +9,24 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0062 import RunnerLabel +class ActionsGetDefaultWorkflowPermissions(GitHubModel): + """ActionsGetDefaultWorkflowPermissions""" -class Runner(GitHubModel): - """Self hosted runners - - A self hosted runner - """ - - id: int = Field(description="The id of the runner.") - runner_group_id: Missing[int] = Field( - default=UNSET, description="The id of the runner group." + default_workflow_permissions: Literal["read", "write"] = Field( + description="The default workflow permissions granted to the GITHUB_TOKEN when running workflows." + ) + can_approve_pull_request_reviews: bool = Field( + description="Whether GitHub Actions can approve pull requests. Enabling this can be a security risk." ) - name: str = Field(description="The name of the runner.") - os: str = Field(description="The Operating System of the runner.") - status: str = Field(description="The status of the runner.") - busy: bool = Field() - labels: List[RunnerLabel] = Field() -model_rebuild(Runner) +model_rebuild(ActionsGetDefaultWorkflowPermissions) -__all__ = ("Runner",) +__all__ = ("ActionsGetDefaultWorkflowPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0064.py b/githubkit/versions/v2022_11_28/models/group_0064.py index 59d2cb03a..8784bbb2a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0064.py +++ b/githubkit/versions/v2022_11_28/models/group_0064.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,23 +18,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class RunnerApplication(GitHubModel): - """Runner Application - - Runner Application - """ +class ActionsSetDefaultWorkflowPermissions(GitHubModel): + """ActionsSetDefaultWorkflowPermissions""" - os: str = Field() - architecture: str = Field() - download_url: str = Field() - filename: str = Field() - temp_download_token: Missing[str] = Field( + 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="A short lived bearer token used to download the runner, if needed.", + description="Whether GitHub Actions can approve pull requests. Enabling this can be a security risk.", ) - sha256_checksum: Missing[str] = Field(default=UNSET) -model_rebuild(RunnerApplication) +model_rebuild(ActionsSetDefaultWorkflowPermissions) -__all__ = ("RunnerApplication",) +__all__ = ("ActionsSetDefaultWorkflowPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0065.py b/githubkit/versions/v2022_11_28/models/group_0065.py index 0dedb86e7..f7d1b8ea9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0065.py +++ b/githubkit/versions/v2022_11_28/models/group_0065.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,40 +17,23 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0017 import Repository +class RunnerLabel(GitHubModel): + """Self hosted runner label -class AuthenticationToken(GitHubModel): - """Authentication Token - - Authentication Token + A label for 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" + id: Missing[int] = Field( + default=UNSET, description="Unique identifier of the label." ) - single_file: Missing[Union[str, None]] = Field(default=UNSET) - repository_selection: Missing[Literal["all", "selected"]] = Field( + name: str = Field(description="Name of the label.") + type: Missing[Literal["read-only", "custom"]] = Field( default=UNSET, - description="Describe whether all repositories have been selected or there's a selection involved", + description="The type of label. Read-only labels are applied automatically when the runner is configured.", ) -class AuthenticationTokenPropPermissions(GitHubModel): - """AuthenticationTokenPropPermissions - - Examples: - {'issues': 'read', 'deployments': 'write'} - """ - - -model_rebuild(AuthenticationToken) -model_rebuild(AuthenticationTokenPropPermissions) +model_rebuild(RunnerLabel) -__all__ = ( - "AuthenticationToken", - "AuthenticationTokenPropPermissions", -) +__all__ = ("RunnerLabel",) diff --git a/githubkit/versions/v2022_11_28/models/group_0066.py b/githubkit/versions/v2022_11_28/models/group_0066.py index b8d8694be..445e19811 100644 --- a/githubkit/versions/v2022_11_28/models/group_0066.py +++ b/githubkit/versions/v2022_11_28/models/group_0066.py @@ -9,27 +9,34 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0065 import RunnerLabel + -class ActionsPublicKey(GitHubModel): - """ActionsPublicKey +class Runner(GitHubModel): + """Self hosted runners - The public key used for setting Actions Secrets. + A self hosted runner """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") - id: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) + id: int = Field(description="The id of the runner.") + runner_group_id: Missing[int] = Field( + default=UNSET, description="The id of the runner group." + ) + name: str = Field(description="The name of the runner.") + os: str = Field(description="The Operating System of the runner.") + status: str = Field(description="The status of the runner.") + busy: bool = Field() + labels: List[RunnerLabel] = Field() -model_rebuild(ActionsPublicKey) +model_rebuild(Runner) -__all__ = ("ActionsPublicKey",) +__all__ = ("Runner",) diff --git a/githubkit/versions/v2022_11_28/models/group_0067.py b/githubkit/versions/v2022_11_28/models/group_0067.py index 3187592df..59d2cb03a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0067.py +++ b/githubkit/versions/v2022_11_28/models/group_0067.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,31 +16,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class CodeScanningAlertRuleSummary(GitHubModel): - """CodeScanningAlertRuleSummary""" +class RunnerApplication(GitHubModel): + """Runner Application - 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." - ) - tags: Missing[Union[List[str], None]] = Field( - default=UNSET, description="A set of tags applicable for the rule." - ) - 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( + Runner Application + """ + + os: str = Field() + architecture: str = Field() + download_url: str = Field() + filename: str = Field() + temp_download_token: Missing[str] = Field( default=UNSET, - description="A short description of the rule used to detect the alert.", + description="A short lived bearer token used to download the runner, if needed.", ) + sha256_checksum: Missing[str] = Field(default=UNSET) -model_rebuild(CodeScanningAlertRuleSummary) +model_rebuild(RunnerApplication) -__all__ = ("CodeScanningAlertRuleSummary",) +__all__ = ("RunnerApplication",) diff --git a/githubkit/versions/v2022_11_28/models/group_0068.py b/githubkit/versions/v2022_11_28/models/group_0068.py index 99ef5d566..0dedb86e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0068.py +++ b/githubkit/versions/v2022_11_28/models/group_0068.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,24 +18,40 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0017 import Repository -class CodeScanningAnalysisTool(GitHubModel): - """CodeScanningAnalysisTool""" - name: Missing[str] = Field( - default=UNSET, - description="The name of the tool used to generate the code scanning analysis.", - ) - version: Missing[Union[str, None]] = Field( - default=UNSET, - description="The version of the tool used to generate the code scanning analysis.", +class AuthenticationToken(GitHubModel): + """Authentication Token + + Authentication Token + """ + + token: str = Field(description="The token used for authentication") + expires_at: datetime = Field(description="The time this token expires") + permissions: Missing[AuthenticationTokenPropPermissions] = Field(default=UNSET) + repositories: Missing[List[Repository]] = Field( + default=UNSET, description="The repositories this token has access to" ) - guid: Missing[Union[str, None]] = Field( + single_file: Missing[Union[str, None]] = Field(default=UNSET) + repository_selection: Missing[Literal["all", "selected"]] = Field( default=UNSET, - description="The GUID of the tool used to generate the code scanning analysis, if provided in the uploaded SARIF data.", + description="Describe whether all repositories have been selected or there's a selection involved", ) -model_rebuild(CodeScanningAnalysisTool) +class AuthenticationTokenPropPermissions(GitHubModel): + """AuthenticationTokenPropPermissions + + Examples: + {'issues': 'read', 'deployments': 'write'} + """ + + +model_rebuild(AuthenticationToken) +model_rebuild(AuthenticationTokenPropPermissions) -__all__ = ("CodeScanningAnalysisTool",) +__all__ = ( + "AuthenticationToken", + "AuthenticationTokenPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0069.py b/githubkit/versions/v2022_11_28/models/group_0069.py index 5ad0792e6..b8d8694be 100644 --- a/githubkit/versions/v2022_11_28/models/group_0069.py +++ b/githubkit/versions/v2022_11_28/models/group_0069.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,67 +16,20 @@ from githubkit.compat import GitHubModel, model_rebuild -class CodeScanningAlertInstance(GitHubModel): - """CodeScanningAlertInstance""" - - ref: Missing[str] = Field( - default=UNSET, - description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``.", - ) - analysis_key: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name.", - ) - environment: Missing[str] = Field( - default=UNSET, - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed.", - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.", - ) - state: Missing[Literal["open", "dismissed", "fixed"]] = Field( - default=UNSET, description="State of a code scanning alert." - ) - commit_sha: Missing[str] = Field(default=UNSET) - message: Missing[CodeScanningAlertInstancePropMessage] = Field(default=UNSET) - location: Missing[CodeScanningAlertLocation] = Field( - default=UNSET, description="Describe a region within a file for the alert." - ) - html_url: Missing[str] = Field(default=UNSET) - classifications: Missing[ - List[Union[None, Literal["source", "generated", "test", "library"]]] - ] = Field( - default=UNSET, - description="Classifications that have been applied to the file that triggered the alert.\nFor example identifying it as documentation, or a generated file.", - ) - - -class CodeScanningAlertLocation(GitHubModel): - """CodeScanningAlertLocation +class ActionsPublicKey(GitHubModel): + """ActionsPublicKey - Describe a region within a file for the alert. + The public key used for setting Actions Secrets. """ - 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) + 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(CodeScanningAlertInstance) -model_rebuild(CodeScanningAlertLocation) -model_rebuild(CodeScanningAlertInstancePropMessage) +model_rebuild(ActionsPublicKey) -__all__ = ( - "CodeScanningAlertInstance", - "CodeScanningAlertLocation", - "CodeScanningAlertInstancePropMessage", -) +__all__ = ("ActionsPublicKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0070.py b/githubkit/versions/v2022_11_28/models/group_0070.py index 54aacb724..3187592df 100644 --- a/githubkit/versions/v2022_11_28/models/group_0070.py +++ b/githubkit/versions/v2022_11_28/models/group_0070.py @@ -9,9 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import Annotated +from typing import List, Union, Literal from pydantic import Field @@ -19,59 +17,32 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0029 import SimpleRepository -from .group_0068 import CodeScanningAnalysisTool -from .group_0069 import CodeScanningAlertInstance -from .group_0067 import CodeScanningAlertRuleSummary +class CodeScanningAlertRuleSummary(GitHubModel): + """CodeScanningAlertRuleSummary""" -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( + id: Missing[Union[str, None]] = Field( default=UNSET, - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="A unique identifier for the rule used to detect the alert.", ) - 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." + name: Missing[str] = Field( + default=UNSET, description="The name of the rule used to detect the alert." ) - state: 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`.", + tags: Missing[Union[List[str], None]] = Field( + default=UNSET, description="A set of tags applicable for the rule." ) - 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`." + severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field( + default=UNSET, description="The severity of the alert." ) - 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." + 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.", ) -model_rebuild(CodeScanningOrganizationAlertItems) +model_rebuild(CodeScanningAlertRuleSummary) -__all__ = ("CodeScanningOrganizationAlertItems",) +__all__ = ("CodeScanningAlertRuleSummary",) diff --git a/githubkit/versions/v2022_11_28/models/group_0071.py b/githubkit/versions/v2022_11_28/models/group_0071.py index 4fbdf9f60..99ef5d566 100644 --- a/githubkit/versions/v2022_11_28/models/group_0071.py +++ b/githubkit/versions/v2022_11_28/models/group_0071.py @@ -9,36 +9,32 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class CodespaceMachine(GitHubModel): - """Codespace machine +class CodeScanningAnalysisTool(GitHubModel): + """CodeScanningAnalysisTool""" - 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." - ) - 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." + name: Missing[str] = Field( + default=UNSET, + description="The name of the tool used to generate the code scanning analysis.", ) - memory_in_bytes: int = Field( - description="How much memory is available to the codespace." + version: Missing[Union[str, None]] = Field( + default=UNSET, + description="The version of the tool used to generate the code scanning analysis.", ) - 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.' + guid: Missing[Union[str, None]] = Field( + default=UNSET, + description="The GUID of the tool used to generate the code scanning analysis, if provided in the uploaded SARIF data.", ) -model_rebuild(CodespaceMachine) +model_rebuild(CodeScanningAnalysisTool) -__all__ = ("CodespaceMachine",) +__all__ = ("CodeScanningAnalysisTool",) diff --git a/githubkit/versions/v2022_11_28/models/group_0072.py b/githubkit/versions/v2022_11_28/models/group_0072.py index 62915dfad..5ad0792e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0072.py +++ b/githubkit/versions/v2022_11_28/models/group_0072.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,157 +17,68 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0071 import CodespaceMachine -from .group_0051 import MinimalRepository +class CodeScanningAlertInstance(GitHubModel): + """CodeScanningAlertInstance""" -class Codespace(GitHubModel): - """Codespace - - A codespace. - """ - - id: int = Field() - name: str = Field(description="Automatically generated name of this codespace.") - display_name: Missing[Union[str, None]] = Field( - default=UNSET, description="Display name for this codespace." - ) - environment_id: Union[str, None] = Field( - description="UUID identifying this codespace's environment." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - billable_owner: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - machine: Union[None, CodespaceMachine] = Field() - devcontainer_path: Missing[Union[str, None]] = Field( + ref: Missing[str] = Field( default=UNSET, - description="Path to devcontainer.json from repo root used to create Codespace.", + description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``.", ) - prebuild: Union[bool, None] = Field( - description="Whether the codespace was created from a prebuild." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - last_used_at: datetime = Field( - description="Last known time this codespace was started." - ) - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] = Field(description="State of this codespace.") - url: str = Field(description="API URL for this codespace.") - git_status: CodespacePropGitStatus = Field( - description="Details about the codespace's git repository." - ) - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( - description="The initally assigned location of a new codespace." - ) - idle_timeout_minutes: Union[int, None] = Field( - description="The number of minutes of inactivity after which this codespace will be automatically stopped." - ) - web_url: str = Field(description="URL to access this codespace on the web.") - machines_url: str = Field( - description="API URL to access available alternate machine types for this codespace." - ) - start_url: str = Field(description="API URL to start this codespace.") - stop_url: str = Field(description="API URL to stop this codespace.") - publish_url: Missing[Union[str, None]] = Field( + analysis_key: Missing[str] = Field( default=UNSET, - description="API URL to publish this codespace to a new repository.", + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name.", ) - pulls_url: Union[str, None] = Field( - description="API URL for the Pull Request associated with this codespace, if any." - ) - recent_folders: List[str] = Field() - runtime_constraints: Missing[CodespacePropRuntimeConstraints] = Field(default=UNSET) - pending_operation: Missing[Union[bool, None]] = Field( + environment: Missing[str] = 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.", + 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.", ) - pending_operation_disabled_reason: Missing[Union[str, None]] = Field( + category: Missing[str] = Field( default=UNSET, - description="Text to show user when codespace is disabled by a pending operation", + 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.", ) - 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", + state: Missing[Literal["open", "dismissed", "fixed"]] = Field( + default=UNSET, description="State of a code scanning alert." ) - retention_period_minutes: Missing[Union[int, None]] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) - 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"', + 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." ) - last_known_stop_notice: Missing[Union[str, None]] = Field( + html_url: Missing[str] = Field(default=UNSET) + classifications: Missing[ + List[Union[None, Literal["source", "generated", "test", "library"]]] + ] = Field( default=UNSET, - description="The text to display to a user when a codespace has been stopped for a potentially actionable reason.", + description="Classifications that have been applied to the file that triggered the alert.\nFor example identifying it as documentation, or a generated file.", ) -class CodespacePropGitStatus(GitHubModel): - """CodespacePropGitStatus +class CodeScanningAlertLocation(GitHubModel): + """CodeScanningAlertLocation - Details about the codespace's git repository. + Describe a region within a file for the alert. """ - 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.", - ) + 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 CodespacePropRuntimeConstraints(GitHubModel): - """CodespacePropRuntimeConstraints""" +class CodeScanningAlertInstancePropMessage(GitHubModel): + """CodeScanningAlertInstancePropMessage""" - 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.", - ) + text: Missing[str] = Field(default=UNSET) -model_rebuild(Codespace) -model_rebuild(CodespacePropGitStatus) -model_rebuild(CodespacePropRuntimeConstraints) +model_rebuild(CodeScanningAlertInstance) +model_rebuild(CodeScanningAlertLocation) +model_rebuild(CodeScanningAlertInstancePropMessage) __all__ = ( - "Codespace", - "CodespacePropGitStatus", - "CodespacePropRuntimeConstraints", + "CodeScanningAlertInstance", + "CodeScanningAlertLocation", + "CodeScanningAlertInstancePropMessage", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0073.py b/githubkit/versions/v2022_11_28/models/group_0073.py index 61840d31d..9740c3d82 100644 --- a/githubkit/versions/v2022_11_28/models/group_0073.py +++ b/githubkit/versions/v2022_11_28/models/group_0073.py @@ -9,27 +9,69 @@ from __future__ import annotations +from datetime import datetime +from typing import Union, Literal +from typing_extensions import Annotated + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0033 import SimpleRepository +from .group_0071 import CodeScanningAnalysisTool +from .group_0072 import CodeScanningAlertInstance +from .group_0070 import CodeScanningAlertRuleSummary -class CodespacesPublicKey(GitHubModel): - """CodespacesPublicKey - The public key used for setting Codespaces secrets. - """ +class CodeScanningOrganizationAlertItems(GitHubModel): + """CodeScanningOrganizationAlertItems""" - 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) + 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: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + fixed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field( + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + rule: CodeScanningAlertRuleSummary = Field() + tool: CodeScanningAnalysisTool = Field() + most_recent_instance: CodeScanningAlertInstance = Field() + repository: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." + ) -model_rebuild(CodespacesPublicKey) +model_rebuild(CodeScanningOrganizationAlertItems) -__all__ = ("CodespacesPublicKey",) +__all__ = ("CodeScanningOrganizationAlertItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0074.py b/githubkit/versions/v2022_11_28/models/group_0074.py index 638c75792..f3d32b974 100644 --- a/githubkit/versions/v2022_11_28/models/group_0074.py +++ b/githubkit/versions/v2022_11_28/models/group_0074.py @@ -10,82 +10,84 @@ from __future__ import annotations from typing import Literal +from datetime import datetime from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class CopilotOrganizationDetails(ExtraGitHubModel): - """Copilot Business Organization Details +class CodeSecurityConfiguration(GitHubModel): + """CodeSecurityConfiguration - Information about the seat breakdown and policies set for an organization with a - Copilot Business subscription. + A code security configuration """ - seat_breakdown: CopilotSeatBreakdown = Field( - title="Copilot Business Seat Breakdown", - description="The breakdown of Copilot Business seats for the organization.", + id: Missing[int] = Field( + default=UNSET, description="The ID of the code security configuration" ) - public_code_suggestions: Literal["allow", "block", "unconfigured", "unknown"] = ( - Field( - description="The organization policy for allowing or disallowing Copilot to make suggestions that match public code." - ) - ) - ide_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + name: Missing[str] = Field( default=UNSET, - description="The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor.", + description="The name of the code security configuration. Must be unique within the organization.", ) - platform_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( - default=UNSET, - description="The organization policy for allowing or disallowing organization members to use Copilot features within github.com.", + target_type: Missing[Literal["global", "organization"]] = Field( + default=UNSET, description="The type of the code security configuration." ) - cli: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( - default=UNSET, - description="The organization policy for allowing or disallowing organization members to use Copilot within their CLI.", + description: Missing[str] = Field( + default=UNSET, description="A description of the code security configuration" ) - seat_management_setting: Literal[ - "assign_all", "assign_selected", "disabled", "unconfigured" - ] = Field(description="The mode of assigning new seats.") - - -class CopilotSeatBreakdown(GitHubModel): - """Copilot Business Seat Breakdown - - The breakdown of Copilot Business seats for the organization. - """ - - total: Missing[int] = Field( - default=UNSET, - description="The total number of seats being billed for the organization as of the current billing cycle.", + advanced_security: Missing[Literal["enabled", "disabled"]] = Field( + default=UNSET, description="The enablement status of GitHub Advanced Security" ) - added_this_cycle: Missing[int] = Field( - default=UNSET, description="Seats added during the current billing cycle." + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" ) - pending_cancellation: Missing[int] = Field( - default=UNSET, - description="The number of seats that are pending cancellation at the end of the current billing cycle.", + 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", + ) ) - pending_invitation: Missing[int] = Field( + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description="The number of seats that have been assigned to users that have not yet accepted an invitation to this organization.", + description="The enablement status of secret scanning push protection", ) - active_this_cycle: Missing[int] = Field( + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description="The number of seats that have used Copilot during the current billing cycle.", + description="The enablement status of secret scanning validity checks", ) - inactive_this_cycle: Missing[int] = Field( + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( default=UNSET, - description="The number of seats that have not used Copilot during the current billing cycle.", + description="The enablement status of private vulnerability reporting", + ) + url: Missing[str] = Field(default=UNSET, description="The URL of the configuration") + html_url: Missing[str] = Field( + default=UNSET, description="The URL of the configuration" ) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) -model_rebuild(CopilotOrganizationDetails) -model_rebuild(CopilotSeatBreakdown) +model_rebuild(CodeSecurityConfiguration) -__all__ = ( - "CopilotOrganizationDetails", - "CopilotSeatBreakdown", -) +__all__ = ("CodeSecurityConfiguration",) diff --git a/githubkit/versions/v2022_11_28/models/group_0075.py b/githubkit/versions/v2022_11_28/models/group_0075.py index 5a2cdf61e..0e747c152 100644 --- a/githubkit/versions/v2022_11_28/models/group_0075.py +++ b/githubkit/versions/v2022_11_28/models/group_0075.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,37 +17,23 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0074 import CodeSecurityConfiguration -class TeamSimple(GitHubModel): - """Team Simple - Groups of organization members that gives permissions on specified repositories. - """ +class CodeSecurityDefaultConfigurationsItems(GitHubModel): + """CodeSecurityDefaultConfigurationsItems""" - 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" + 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", + ) ) - 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", + configuration: Missing[CodeSecurityConfiguration] = Field( + default=UNSET, description="A code security configuration" ) -model_rebuild(TeamSimple) +model_rebuild(CodeSecurityDefaultConfigurationsItems) -__all__ = ("TeamSimple",) +__all__ = ("CodeSecurityDefaultConfigurationsItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0076.py b/githubkit/versions/v2022_11_28/models/group_0076.py index 9124735ee..1cb85b92b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0076.py +++ b/githubkit/versions/v2022_11_28/models/group_0076.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,45 +17,26 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0075 import TeamSimple +from .group_0033 import SimpleRepository -class Team(GitHubModel): - """Team +class CodeSecurityConfigurationRepositories(GitHubModel): + """CodeSecurityConfigurationRepositories - Groups of organization members that gives permissions on specified repositories. + Repositories associated with a code security configuration and attachment status """ - 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", -) + status: Missing[ + Literal["attached", "attaching", "detached", "enforced", "failed", "updating"] + ] = 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." + ) + + +model_rebuild(CodeSecurityConfigurationRepositories) + +__all__ = ("CodeSecurityConfigurationRepositories",) diff --git a/githubkit/versions/v2022_11_28/models/group_0077.py b/githubkit/versions/v2022_11_28/models/group_0077.py index a5c515257..4fbdf9f60 100644 --- a/githubkit/versions/v2022_11_28/models/group_0077.py +++ b/githubkit/versions/v2022_11_28/models/group_0077.py @@ -9,133 +9,36 @@ from __future__ import annotations -from typing import List, Union -from datetime import date, datetime +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0076 import Team -from .group_0001 import SimpleUser +class CodespaceMachine(GitHubModel): + """Codespace machine -class CopilotSeatDetails(GitHubModel): - """Copilot Business Seat Detail - - Information about a Copilot Business seat assignment for a user, team, or - organization. + A description of the machine powering a codespace. """ - assignee: Union[SimpleUser, Team, Organization] = Field( - description="The assignee that has been granted access to GitHub Copilot." - ) - assigning_team: Missing[Union[Team, None]] = Field( - default=UNSET, - description="The team that granted access to GitHub Copilot to the assignee. This will be null if the user was assigned a seat individually.", - ) - 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." + 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." ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format.", - ) - - -class Organization(GitHubModel): - """Organization - - GitHub account for managing multiple users, teams, and repositories - """ - - login: str = Field(description="Unique login name of the organization") - url: str = Field(description="URL for the organization") - id: int = Field() - node_id: 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() - blog: Missing[str] = Field( - default=UNSET, description="Display blog url for the organization" + 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." ) - html_url: str = Field() - name: Missing[str] = Field( - default=UNSET, description="Display name for the organization" + memory_in_bytes: int = Field( + description="How much memory is available to the codespace." ) - company: Missing[str] = Field( - default=UNSET, description="Display company name for the organization" - ) - location: Missing[str] = Field( - default=UNSET, description="Display location for the organization" - ) - email: Missing[str] = Field( - default=UNSET, description="Display email for the organization" - ) - has_organization_projects: bool = Field( - description="Specifies if organization projects are enabled for this org" - ) - has_repository_projects: bool = Field( - description="Specifies if repository projects are enabled for repositories that belong to this org" - ) - is_verified: Missing[bool] = Field(default=UNSET) - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - type: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - plan: Missing[OrganizationPropPlan] = Field(default=UNSET) - - -class OrganizationPropPlan(GitHubModel): - """OrganizationPropPlan""" - - name: Missing[str] = Field(default=UNSET) - space: Missing[int] = Field(default=UNSET) - private_repos: Missing[int] = Field(default=UNSET) - filled_seats: Missing[int] = Field(default=UNSET) - seats: Missing[int] = Field(default=UNSET) - - -class OrgsOrgCopilotBillingSeatsGetResponse200(GitHubModel): - """OrgsOrgCopilotBillingSeatsGetResponse200""" - - total_seats: Missing[int] = Field( - default=UNSET, - description="Total number of Copilot seats for the organization currently being billed.", + cpus: int = Field(description="How many cores are available to the codespace.") + prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] = Field( + description='Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status.' ) - seats: Missing[List[CopilotSeatDetails]] = Field(default=UNSET) -model_rebuild(CopilotSeatDetails) -model_rebuild(Organization) -model_rebuild(OrganizationPropPlan) -model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) +model_rebuild(CodespaceMachine) -__all__ = ( - "CopilotSeatDetails", - "Organization", - "OrganizationPropPlan", - "OrgsOrgCopilotBillingSeatsGetResponse200", -) +__all__ = ("CodespaceMachine",) diff --git a/githubkit/versions/v2022_11_28/models/group_0078.py b/githubkit/versions/v2022_11_28/models/group_0078.py index a7dfe2e7d..6a60add19 100644 --- a/githubkit/versions/v2022_11_28/models/group_0078.py +++ b/githubkit/versions/v2022_11_28/models/group_0078.py @@ -9,21 +9,166 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0077 import CodespaceMachine +from .group_0055 import MinimalRepository + + +class Codespace(GitHubModel): + """Codespace + + A codespace. + """ + + id: int = Field() + name: str = Field(description="Automatically generated name of this codespace.") + display_name: Missing[Union[str, None]] = Field( + default=UNSET, description="Display name for this codespace." + ) + environment_id: Union[str, None] = Field( + description="UUID identifying this codespace's environment." + ) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + billable_owner: SimpleUser = Field( + title="Simple User", description="A GitHub user." + ) + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) + machine: Union[None, CodespaceMachine] = Field() + devcontainer_path: Missing[Union[str, None]] = Field( + default=UNSET, + description="Path to devcontainer.json from repo root used to create Codespace.", + ) + prebuild: Union[bool, None] = Field( + description="Whether the codespace was created from a prebuild." + ) + created_at: datetime = Field() + updated_at: datetime = Field() + last_used_at: datetime = Field( + description="Last known time this codespace was started." + ) + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] = Field(description="State of this codespace.") + url: str = Field(description="API URL for this codespace.") + git_status: CodespacePropGitStatus = Field( + description="Details about the codespace's git repository." + ) + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( + description="The initally assigned location of a new codespace." + ) + idle_timeout_minutes: Union[int, None] = Field( + description="The number of minutes of inactivity after which this codespace will be automatically stopped." + ) + web_url: str = Field(description="URL to access this codespace on the web.") + machines_url: str = Field( + description="API URL to access available alternate machine types for this codespace." + ) + start_url: str = Field(description="API URL to start this codespace.") + stop_url: str = Field(description="API URL to stop this codespace.") + publish_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="API URL to publish this codespace to a new repository.", + ) + pulls_url: Union[str, None] = Field( + description="API URL for the Pull Request associated with this codespace, if any." + ) + recent_folders: List[str] = Field() + runtime_constraints: Missing[CodespacePropRuntimeConstraints] = Field(default=UNSET) + pending_operation: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", + ) + pending_operation_disabled_reason: Missing[Union[str, None]] = Field( + default=UNSET, + description="Text to show user when codespace is disabled by a pending operation", + ) + idle_timeout_notice: Missing[Union[str, None]] = Field( + default=UNSET, + description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", + ) + retention_period_minutes: Missing[Union[int, None]] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + ) + retention_expires_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', + ) + last_known_stop_notice: Missing[Union[str, None]] = Field( + default=UNSET, + description="The text to display to a user when a codespace has been stopped for a potentially actionable reason.", + ) + -class DependabotPublicKey(GitHubModel): - """DependabotPublicKey +class CodespacePropGitStatus(GitHubModel): + """CodespacePropGitStatus - The public key used for setting Dependabot Secrets. + Details about the codespace's git repository. """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") + ahead: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is ahead of the remote.", + ) + behind: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is behind the remote.", + ) + has_unpushed_changes: Missing[bool] = Field( + default=UNSET, description="Whether the local repository has unpushed changes." + ) + has_uncommitted_changes: Missing[bool] = Field( + default=UNSET, + description="Whether the local repository has uncommitted changes.", + ) + ref: Missing[str] = Field( + default=UNSET, + description="The current branch (or SHA if in detached HEAD state) of the local repository.", + ) + + +class CodespacePropRuntimeConstraints(GitHubModel): + """CodespacePropRuntimeConstraints""" + + allowed_port_privacy_settings: Missing[Union[List[str], None]] = Field( + default=UNSET, + description="The privacy settings a user can select from when forwarding a port.", + ) -model_rebuild(DependabotPublicKey) +model_rebuild(Codespace) +model_rebuild(CodespacePropGitStatus) +model_rebuild(CodespacePropRuntimeConstraints) -__all__ = ("DependabotPublicKey",) +__all__ = ( + "Codespace", + "CodespacePropGitStatus", + "CodespacePropRuntimeConstraints", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0079.py b/githubkit/versions/v2022_11_28/models/group_0079.py index fb987ff28..61840d31d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0079.py +++ b/githubkit/versions/v2022_11_28/models/group_0079.py @@ -9,40 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0051 import MinimalRepository - -class Package(GitHubModel): - """Package +class CodespacesPublicKey(GitHubModel): + """CodespacesPublicKey - A software package + The public key used for setting Codespaces secrets. """ - 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() + 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(Package) +model_rebuild(CodespacesPublicKey) -__all__ = ("Package",) +__all__ = ("CodespacesPublicKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0080.py b/githubkit/versions/v2022_11_28/models/group_0080.py index 1f1596144..638c75792 100644 --- a/githubkit/versions/v2022_11_28/models/group_0080.py +++ b/githubkit/versions/v2022_11_28/models/group_0080.py @@ -9,37 +9,83 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0001 import SimpleUser +class CopilotOrganizationDetails(ExtraGitHubModel): + """Copilot Business Organization Details -class OrganizationInvitation(GitHubModel): - """Organization Invitation + Information about the seat breakdown and policies set for an organization with a + Copilot Business subscription. + """ + + seat_breakdown: CopilotSeatBreakdown = Field( + title="Copilot Business Seat Breakdown", + description="The breakdown of Copilot Business seats for the organization.", + ) + public_code_suggestions: Literal["allow", "block", "unconfigured", "unknown"] = ( + Field( + description="The organization policy for allowing or disallowing Copilot to make suggestions that match public code." + ) + ) + ide_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + default=UNSET, + description="The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor.", + ) + platform_chat: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + default=UNSET, + description="The organization policy for allowing or disallowing organization members to use Copilot features within github.com.", + ) + cli: Missing[Literal["enabled", "disabled", "unconfigured"]] = Field( + default=UNSET, + description="The organization policy for allowing or disallowing organization members to use Copilot within their CLI.", + ) + seat_management_setting: Literal[ + "assign_all", "assign_selected", "disabled", "unconfigured" + ] = Field(description="The mode of assigning new seats.") + + +class CopilotSeatBreakdown(GitHubModel): + """Copilot Business Seat Breakdown - Organization Invitation + The breakdown of Copilot Business seats for the organization. """ - 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) + total: Missing[int] = Field( + default=UNSET, + description="The total number of seats being billed for the organization as of the current billing cycle.", + ) + added_this_cycle: Missing[int] = Field( + default=UNSET, description="Seats added during the current billing cycle." + ) + pending_cancellation: Missing[int] = Field( + default=UNSET, + description="The number of seats that are pending cancellation at the end of the current billing cycle.", + ) + pending_invitation: Missing[int] = Field( + default=UNSET, + description="The number of seats that have been assigned to users that have not yet accepted an invitation to this organization.", + ) + active_this_cycle: Missing[int] = Field( + default=UNSET, + description="The number of seats that have used Copilot during the current billing cycle.", + ) + inactive_this_cycle: Missing[int] = Field( + default=UNSET, + description="The number of seats that have not used Copilot during the current billing cycle.", + ) -model_rebuild(OrganizationInvitation) +model_rebuild(CopilotOrganizationDetails) +model_rebuild(CopilotSeatBreakdown) -__all__ = ("OrganizationInvitation",) +__all__ = ( + "CopilotOrganizationDetails", + "CopilotSeatBreakdown", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0081.py b/githubkit/versions/v2022_11_28/models/group_0081.py index ad190d5de..a7dfe2e7d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0081.py +++ b/githubkit/versions/v2022_11_28/models/group_0081.py @@ -9,48 +9,21 @@ from __future__ import annotations -from typing import List -from datetime import datetime - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgHook(GitHubModel): - """Org Hook +class DependabotPublicKey(GitHubModel): + """DependabotPublicKey - Org Hook + The public key used for setting Dependabot Secrets. """ - 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) + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") -model_rebuild(OrgHook) -model_rebuild(OrgHookPropConfig) +model_rebuild(DependabotPublicKey) -__all__ = ( - "OrgHook", - "OrgHookPropConfig", -) +__all__ = ("DependabotPublicKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0082.py b/githubkit/versions/v2022_11_28/models/group_0082.py index 9b7c2e376..dd8632290 100644 --- a/githubkit/versions/v2022_11_28/models/group_0082.py +++ b/githubkit/versions/v2022_11_28/models/group_0082.py @@ -9,27 +9,40 @@ from __future__ import annotations -from typing import Literal from datetime import datetime +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0055 import MinimalRepository -class InteractionLimitResponse(GitHubModel): - """Interaction Limits - Interaction limit settings. +class Package(GitHubModel): + """Package + + A software package """ - 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() + 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(InteractionLimitResponse) +model_rebuild(Package) -__all__ = ("InteractionLimitResponse",) +__all__ = ("Package",) diff --git a/githubkit/versions/v2022_11_28/models/group_0083.py b/githubkit/versions/v2022_11_28/models/group_0083.py index 691af00f1..1f1596144 100644 --- a/githubkit/versions/v2022_11_28/models/group_0083.py +++ b/githubkit/versions/v2022_11_28/models/group_0083.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,24 +17,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class InteractionLimit(GitHubModel): - """Interaction Restrictions - Limit interactions to a specific type of user for a specified duration +class OrganizationInvitation(GitHubModel): + """Organization Invitation + + Organization Invitation """ - limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( - description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." - ) - expiry: Missing[ - Literal["one_day", "three_days", "one_week", "one_month", "six_months"] - ] = Field( - default=UNSET, - description="The duration of the interaction restriction. Default: `one_day`.", - ) + id: int = Field() + 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(InteractionLimit) +model_rebuild(OrganizationInvitation) -__all__ = ("InteractionLimit",) +__all__ = ("OrganizationInvitation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0084.py b/githubkit/versions/v2022_11_28/models/group_0084.py index e6f9743e0..ad190d5de 100644 --- a/githubkit/versions/v2022_11_28/models/group_0084.py +++ b/githubkit/versions/v2022_11_28/models/group_0084.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List +from datetime import datetime from pydantic import Field @@ -17,62 +18,39 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class OrgHook(GitHubModel): + """Org Hook -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." - ) - 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 OrganizationSimple(GitHubModel): - """Organization Simple - - A GitHub organization. + Org Hook """ - 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() + 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 OrgMembershipPropPermissions(GitHubModel): - """OrgMembershipPropPermissions""" +class OrgHookPropConfig(GitHubModel): + """OrgHookPropConfig""" - can_create_repository: bool = Field() + 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(OrgMembership) -model_rebuild(OrganizationSimple) -model_rebuild(OrgMembershipPropPermissions) +model_rebuild(OrgHook) +model_rebuild(OrgHookPropConfig) __all__ = ( - "OrgMembership", - "OrganizationSimple", - "OrgMembershipPropPermissions", + "OrgHook", + "OrgHookPropConfig", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0085.py b/githubkit/versions/v2022_11_28/models/group_0085.py index 90b3e4df8..9b7c2e376 100644 --- a/githubkit/versions/v2022_11_28/models/group_0085.py +++ b/githubkit/versions/v2022_11_28/models/group_0085.py @@ -9,50 +9,27 @@ from __future__ import annotations +from typing import Literal from datetime import datetime -from typing import List, Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0017 import Repository +class InteractionLimitResponse(GitHubModel): + """Interaction Limits -class Migration(GitHubModel): - """Migration - - A migration. + Interaction limit settings. """ - id: int = Field() - owner: Union[None, SimpleUser] = Field() - guid: str = Field() - state: str = Field() - lock_repositories: bool = Field() - exclude_metadata: bool = Field() - exclude_git_data: bool = Field() - exclude_attachments: bool = Field() - exclude_releases: bool = Field() - exclude_owner_projects: bool = Field() - org_metadata_only: bool = Field() - repositories: List[Repository] = Field( - description="The repositories included in the migration. Only returned for export migrations." - ) - url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - node_id: str = Field() - archive_url: Missing[str] = Field(default=UNSET) - exclude: Missing[List[str]] = Field( - default=UNSET, - description='Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `"repositories"`.', + limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( + description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." ) + origin: str = Field() + expires_at: datetime = Field() -model_rebuild(Migration) +model_rebuild(InteractionLimitResponse) -__all__ = ("Migration",) +__all__ = ("InteractionLimitResponse",) diff --git a/githubkit/versions/v2022_11_28/models/group_0086.py b/githubkit/versions/v2022_11_28/models/group_0086.py index d92a39bb6..691af00f1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0086.py +++ b/githubkit/versions/v2022_11_28/models/group_0086.py @@ -9,21 +9,32 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrganizationFineGrainedPermission(GitHubModel): - """Organization Fine-Grained Permission +class InteractionLimit(GitHubModel): + """Interaction Restrictions - A fine-grained permission that protects organization resources. + Limit interactions to a specific type of user for a specified duration """ - name: str = Field() - description: str = Field() + limit: Literal["existing_users", "contributors_only", "collaborators_only"] = Field( + description="The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect." + ) + expiry: Missing[ + Literal["one_day", "three_days", "one_week", "one_month", "six_months"] + ] = Field( + default=UNSET, + description="The duration of the interaction restriction. Default: `one_day`.", + ) -model_rebuild(OrganizationFineGrainedPermission) +model_rebuild(InteractionLimit) -__all__ = ("OrganizationFineGrainedPermission",) +__all__ = ("InteractionLimit",) diff --git a/githubkit/versions/v2022_11_28/models/group_0087.py b/githubkit/versions/v2022_11_28/models/group_0087.py index 73cbad8d5..fd115b741 100644 --- a/githubkit/versions/v2022_11_28/models/group_0087.py +++ b/githubkit/versions/v2022_11_28/models/group_0087.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import Union, Literal from pydantic import Field @@ -19,47 +18,40 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser +from .group_0027 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." ) - permissions: List[str] = Field( - description="A list of permissions included in this role." + role: Literal["admin", "member", "billing_manager"] = Field( + description="The user's membership type in the organization." ) - organization: Union[None, SimpleUser] = Field() - created_at: datetime = Field(description="The date and time the role was created.") - updated_at: datetime = Field( - description="The date and time the role was last updated." + 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_0088.py b/githubkit/versions/v2022_11_28/models/group_0088.py index 7284dd91d..90b3e4df8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0088.py +++ b/githubkit/versions/v2022_11_28/models/group_0088.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Literal +from typing import List, Union from pydantic import Field @@ -18,62 +18,41 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0017 import Repository -class PackageVersion(GitHubModel): - """Package Version - A version of a software package +class Migration(GitHubModel): + """Migration + + A migration. """ - id: int = Field(description="Unique identifier of the package version.") - name: str = Field(description="The name of the package version.") + id: int = Field() + owner: Union[None, SimpleUser] = Field() + guid: str = Field() + state: str = Field() + lock_repositories: bool = Field() + exclude_metadata: bool = Field() + exclude_git_data: bool = Field() + exclude_attachments: bool = Field() + exclude_releases: bool = Field() + exclude_owner_projects: bool = Field() + org_metadata_only: bool = Field() + repositories: List[Repository] = Field( + description="The repositories included in the migration. Only returned for export migrations." + ) url: str = Field() - package_html_url: str = Field() - html_url: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - description: Missing[str] = Field(default=UNSET) created_at: datetime = Field() updated_at: datetime = Field() - deleted_at: Missing[datetime] = Field(default=UNSET) - metadata: Missing[PackageVersionPropMetadata] = Field( - default=UNSET, title="Package Version Metadata" - ) - - -class PackageVersionPropMetadata(GitHubModel): - """Package Version Metadata""" - - package_type: Literal[ - "npm", "maven", "rubygems", "docker", "nuget", "container" - ] = Field() - container: Missing[PackageVersionPropMetadataPropContainer] = Field( - default=UNSET, title="Container Metadata" - ) - docker: Missing[PackageVersionPropMetadataPropDocker] = Field( - default=UNSET, title="Docker Metadata" + node_id: str = Field() + archive_url: Missing[str] = Field(default=UNSET) + exclude: Missing[List[str]] = Field( + default=UNSET, + description='Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `"repositories"`.', ) -class PackageVersionPropMetadataPropContainer(GitHubModel): - """Container Metadata""" - - tags: List[str] = Field() - - -class PackageVersionPropMetadataPropDocker(GitHubModel): - """Docker Metadata""" - - tag: Missing[List[str]] = Field(default=UNSET) - - -model_rebuild(PackageVersion) -model_rebuild(PackageVersionPropMetadata) -model_rebuild(PackageVersionPropMetadataPropContainer) -model_rebuild(PackageVersionPropMetadataPropDocker) +model_rebuild(Migration) -__all__ = ( - "PackageVersion", - "PackageVersionPropMetadata", - "PackageVersionPropMetadataPropContainer", - "PackageVersionPropMetadataPropDocker", -) +__all__ = ("Migration",) diff --git a/githubkit/versions/v2022_11_28/models/group_0089.py b/githubkit/versions/v2022_11_28/models/group_0089.py index 3fdddf239..d92a39bb6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0089.py +++ b/githubkit/versions/v2022_11_28/models/group_0089.py @@ -9,97 +9,21 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - -from .group_0001 import SimpleUser - - -class OrganizationProgrammaticAccessGrantRequest(GitHubModel): - """Simple Organization Programmatic Access Grant Request - - Minimal representation of an organization programmatic access grant request for - enumerations - """ - - id: int = Field( - description="Unique identifier of the request for access via fine-grained personal access token. The `pat_request_id` used to review PAT requests." - ) - reason: Union[str, None] = Field(description="Reason for requesting access.") - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - repository_selection: Literal["none", "all", "subset"] = Field( - description="Type of repository selection requested." - ) - repositories_url: str = Field( - description="URL to the list of repositories requested to be accessed via fine-grained personal access token. Should only be followed when `repository_selection` is `subset`." - ) - permissions: OrganizationProgrammaticAccessGrantRequestPropPermissions = Field( - description="Permissions requested, categorized by type of permission." - ) - created_at: str = Field( - description="Date and time when the request for access was created." - ) - token_expired: bool = Field( - description="Whether the associated fine-grained personal access token has expired." - ) - token_expires_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token expires." - ) - token_last_used_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token was last used for authentication." - ) +from githubkit.compat import GitHubModel, model_rebuild -class OrganizationProgrammaticAccessGrantRequestPropPermissions(GitHubModel): - """OrganizationProgrammaticAccessGrantRequestPropPermissions +class OrganizationFineGrainedPermission(GitHubModel): + """Organization Fine-Grained Permission - Permissions requested, categorized by type of permission. + A fine-grained permission that protects organization resources. """ - organization: Missing[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository - ] = Field(default=UNSET) - other: Missing[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther - ] = Field(default=UNSET) - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization""" - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository""" - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther""" + name: str = Field() + description: str = Field() -model_rebuild(OrganizationProgrammaticAccessGrantRequest) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissions) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository) -model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther) +model_rebuild(OrganizationFineGrainedPermission) -__all__ = ( - "OrganizationProgrammaticAccessGrantRequest", - "OrganizationProgrammaticAccessGrantRequestPropPermissions", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", -) +__all__ = ("OrganizationFineGrainedPermission",) diff --git a/githubkit/versions/v2022_11_28/models/group_0090.py b/githubkit/versions/v2022_11_28/models/group_0090.py index a4c5c0aa0..73cbad8d5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0090.py +++ b/githubkit/versions/v2022_11_28/models/group_0090.py @@ -9,94 +9,57 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -class OrganizationProgrammaticAccessGrant(GitHubModel): - """Organization Programmatic Access Grant +class OrganizationRole(GitHubModel): + """Organization Role - Minimal representation of an organization programmatic access grant for - enumerations + Organization roles """ - id: int = Field( - description="Unique identifier of the fine-grained personal access token. The `pat_id` used to get details about an approved fine-grained personal access token." + id: int = Field(description="The unique identifier of the role.") + name: str = Field(description="The name of the role.") + description: Missing[Union[str, None]] = Field( + default=UNSET, + description="A short description about who this role is for or what permissions it grants.", ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - repository_selection: Literal["none", "all", "subset"] = Field( - description="Type of repository selection requested." + permissions: List[str] = Field( + description="A list of permissions included in this role." ) - 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`." + 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." ) - 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_expired: bool = Field( - description="Whether the associated fine-grained personal access token has expired." - ) - token_expires_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token expires." - ) - token_last_used_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token was last used for authentication." - ) - -class OrganizationProgrammaticAccessGrantPropPermissions(GitHubModel): - """OrganizationProgrammaticAccessGrantPropPermissions - Permissions requested, categorized by type of permission. - """ +class OrgsOrgOrganizationRolesGetResponse200(GitHubModel): + """OrgsOrgOrganizationRolesGetResponse200""" - organization: Missing[ - OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - OrganizationProgrammaticAccessGrantPropPermissionsPropRepository - ] = Field(default=UNSET) - other: Missing[OrganizationProgrammaticAccessGrantPropPermissionsPropOther] = Field( - default=UNSET + total_count: Missing[int] = Field( + default=UNSET, + description="The total number of organization roles available to the organization.", + ) + roles: Missing[List[OrganizationRole]] = Field( + default=UNSET, + description="The list of organization roles available to the organization.", ) -class OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization""" - - -class OrganizationProgrammaticAccessGrantPropPermissionsPropRepository( - ExtraGitHubModel -): - """OrganizationProgrammaticAccessGrantPropPermissionsPropRepository""" - - -class OrganizationProgrammaticAccessGrantPropPermissionsPropOther(ExtraGitHubModel): - """OrganizationProgrammaticAccessGrantPropPermissionsPropOther""" - - -model_rebuild(OrganizationProgrammaticAccessGrant) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissions) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropRepository) -model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOther) +model_rebuild(OrganizationRole) +model_rebuild(OrgsOrgOrganizationRolesGetResponse200) __all__ = ( - "OrganizationProgrammaticAccessGrant", - "OrganizationProgrammaticAccessGrantPropPermissions", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", - "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", + "OrganizationRole", + "OrgsOrgOrganizationRolesGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0091.py b/githubkit/versions/v2022_11_28/models/group_0091.py index 1003eee7e..8d5bdf2be 100644 --- a/githubkit/versions/v2022_11_28/models/group_0091.py +++ b/githubkit/versions/v2022_11_28/models/group_0091.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from pydantic import Field @@ -18,38 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +from .group_0025 import TeamSimple -class Project(GitHubModel): - """Project +class TeamRoleAssignment(GitHubModel): + """A Role Assignment for a Team - Projects are a way to organize columns and cards of work. + The Relationship a Team has with a role. """ - owner_url: str = Field() - url: str = Field() - html_url: str = Field() - columns_url: str = Field() id: int = Field() node_id: str = Field() - name: str = Field(description="Name of the project") - body: Union[str, None] = Field(description="Body of the project") - number: int = Field() - state: str = Field(description="State of the project; either 'open' or 'closed'") - creator: Union[None, SimpleUser] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( - default=UNSET, - description="The baseline permission that all organization members have on this project. Only present if owner is an organization.", - ) - private: Missing[bool] = Field( - default=UNSET, - description="Whether or not this project can be seen by everyone. Only present if owner is an organization.", - ) - - -model_rebuild(Project) - -__all__ = ("Project",) + name: str = Field() + slug: str = Field() + description: Union[str, None] = Field() + privacy: Missing[str] = Field(default=UNSET) + notification_setting: Missing[str] = Field(default=UNSET) + permission: str = Field() + permissions: Missing[TeamRoleAssignmentPropPermissions] = Field(default=UNSET) + url: str = Field() + html_url: str = Field() + members_url: str = Field() + repositories_url: str = Field() + parent: Union[None, TeamSimple] = Field() + + +class TeamRoleAssignmentPropPermissions(GitHubModel): + """TeamRoleAssignmentPropPermissions""" + + pull: bool = Field() + triage: bool = Field() + push: bool = Field() + maintain: bool = Field() + admin: bool = Field() + + +model_rebuild(TeamRoleAssignment) +model_rebuild(TeamRoleAssignmentPropPermissions) + +__all__ = ( + "TeamRoleAssignment", + "TeamRoleAssignmentPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0092.py b/githubkit/versions/v2022_11_28/models/group_0092.py index 47364c2fe..c8f8a9538 100644 --- a/githubkit/versions/v2022_11_28/models/group_0092.py +++ b/githubkit/versions/v2022_11_28/models/group_0092.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import Annotated +from typing import Union from pydantic import Field @@ -19,41 +18,35 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgCustomProperty(GitHubModel): - """Organization Custom Property +class UserRoleAssignment(GitHubModel): + """A Role Assignment for a User - Custom property defined on an organization + The Relationship a User has with a role. """ - property_name: str = Field(description="The name of the property") - value_type: Literal["string", "single_select"] = Field( - description="The type of the value for the property" - ) - required: Missing[bool] = Field( - default=UNSET, description="Whether the property is required." - ) - default_value: Missing[Union[str, List[str], None]] = Field( - default=UNSET, description="Default value of the property" - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the property" - ) - allowed_values: Missing[ - Union[ - Annotated[ - List[Annotated[str, Field(max_length=75)]], Field(max_length=200) - ], - None, - ] - ] = Field( - default=UNSET, - description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", - ) - 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(OrgCustomProperty) - -__all__ = ("OrgCustomProperty",) + 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) + + +model_rebuild(UserRoleAssignment) + +__all__ = ("UserRoleAssignment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0093.py b/githubkit/versions/v2022_11_28/models/group_0093.py index 9b8b64121..7284dd91d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0093.py +++ b/githubkit/versions/v2022_11_28/models/group_0093.py @@ -9,25 +9,71 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class CustomPropertyValue(GitHubModel): - """Custom Property Value +class PackageVersion(GitHubModel): + """Package Version - Custom property name and associated value + A version of a software package """ - property_name: str = Field(description="The name of the property") - value: Union[str, List[str], None] = Field( - description="The value assigned to the property" + id: int = Field(description="Unique identifier of the 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" ) -model_rebuild(CustomPropertyValue) +class PackageVersionPropMetadata(GitHubModel): + """Package Version Metadata""" -__all__ = ("CustomPropertyValue",) + package_type: Literal[ + "npm", "maven", "rubygems", "docker", "nuget", "container" + ] = Field() + container: Missing[PackageVersionPropMetadataPropContainer] = Field( + default=UNSET, title="Container Metadata" + ) + docker: Missing[PackageVersionPropMetadataPropDocker] = Field( + default=UNSET, title="Docker Metadata" + ) + + +class PackageVersionPropMetadataPropContainer(GitHubModel): + """Container Metadata""" + + tags: List[str] = Field() + + +class PackageVersionPropMetadataPropDocker(GitHubModel): + """Docker Metadata""" + + tag: Missing[List[str]] = Field(default=UNSET) + + +model_rebuild(PackageVersion) +model_rebuild(PackageVersionPropMetadata) +model_rebuild(PackageVersionPropMetadataPropContainer) +model_rebuild(PackageVersionPropMetadataPropDocker) + +__all__ = ( + "PackageVersion", + "PackageVersionPropMetadata", + "PackageVersionPropMetadataPropContainer", + "PackageVersionPropMetadataPropDocker", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0094.py b/githubkit/versions/v2022_11_28/models/group_0094.py index a96c4cc4f..3fdddf239 100644 --- a/githubkit/versions/v2022_11_28/models/group_0094.py +++ b/githubkit/versions/v2022_11_28/models/group_0094.py @@ -9,29 +9,97 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0093 import CustomPropertyValue +from .group_0001 import SimpleUser -class OrgRepoCustomPropertyValues(GitHubModel): - """Organization Repository Custom Property Values +class OrganizationProgrammaticAccessGrantRequest(GitHubModel): + """Simple Organization Programmatic Access Grant Request - List of custom property values for a repository + Minimal representation of an organization programmatic access grant request for + enumerations """ - 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" + 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_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(OrgRepoCustomPropertyValues) +model_rebuild(OrganizationProgrammaticAccessGrantRequest) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissions) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository) +model_rebuild(OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther) -__all__ = ("OrgRepoCustomPropertyValues",) +__all__ = ( + "OrganizationProgrammaticAccessGrantRequest", + "OrganizationProgrammaticAccessGrantRequestPropPermissions", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0095.py b/githubkit/versions/v2022_11_28/models/group_0095.py index 35b60a16d..a4c5c0aa0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0095.py +++ b/githubkit/versions/v2022_11_28/models/group_0095.py @@ -9,25 +9,94 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from .group_0001 import SimpleUser -class CodeOfConductSimple(GitHubModel): - """Code Of Conduct Simple - Code of Conduct Simple +class OrganizationProgrammaticAccessGrant(GitHubModel): + """Organization Programmatic Access Grant + + Minimal representation of an organization programmatic access grant for + enumerations + """ + + id: int = Field( + description="Unique identifier of the fine-grained personal access token. 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_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. """ - url: str = Field() - key: str = Field() - name: str = Field() - html_url: Union[str, None] = Field() + 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(CodeOfConductSimple) +model_rebuild(OrganizationProgrammaticAccessGrant) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissions) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropRepository) +model_rebuild(OrganizationProgrammaticAccessGrantPropPermissionsPropOther) -__all__ = ("CodeOfConductSimple",) +__all__ = ( + "OrganizationProgrammaticAccessGrant", + "OrganizationProgrammaticAccessGrantPropPermissions", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization", + "OrganizationProgrammaticAccessGrantPropPermissionsPropRepository", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOther", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0096.py b/githubkit/versions/v2022_11_28/models/group_0096.py index d819b2235..1003eee7e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0096.py +++ b/githubkit/versions/v2022_11_28/models/group_0096.py @@ -10,195 +10,46 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -from .group_0017 import Repository -from .group_0016 import LicenseSimple -from .group_0050 import SecurityAndAnalysis -from .group_0095 import CodeOfConductSimple -class FullRepository(GitHubModel): - """Full Repository +class Project(GitHubModel): + """Project - Full Repository + Projects are a way to organize columns and cards of work. """ + owner_url: str = Field() + url: str = Field() + html_url: str = Field() + columns_url: str = Field() id: int = Field() node_id: str = Field() - name: str = Field() - full_name: str = Field() - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - private: bool = Field() - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() - url: str = Field() - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - downloads_url: str = Field() - events_url: str = Field() - forks_url: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - pulls_url: str = Field() - releases_url: str = Field() - ssh_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - clone_url: str = Field() - mirror_url: Union[str, None] = Field() - hooks_url: str = Field() - svn_url: str = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - size: int = Field( - description="The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0." - ) - default_branch: str = Field() - open_issues_count: int = Field() - is_template: Missing[bool] = Field(default=UNSET) - topics: Missing[List[str]] = Field(default=UNSET) - has_issues: bool = Field() - has_projects: bool = Field() - has_wiki: bool = Field() - has_pages: bool = Field() - has_downloads: Missing[bool] = Field(default=UNSET) - has_discussions: bool = Field() - archived: bool = Field() - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - pushed_at: datetime = Field() + name: str = Field(description="Name of the project") + body: Union[str, None] = Field(description="Body of the project") + number: int = Field() + state: str = Field(description="State of the project; either 'open' or 'closed'") + creator: Union[None, SimpleUser] = Field() created_at: datetime = Field() updated_at: datetime = Field() - permissions: Missing[FullRepositoryPropPermissions] = Field(default=UNSET) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - template_repository: Missing[Union[None, Repository]] = Field(default=UNSET) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - allow_update_branch: Missing[bool] = Field(default=UNSET) - use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull request's title.\n - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + description="The baseline permission that all organization members have on this project. Only present if owner is an organization.", ) - allow_forking: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - subscribers_count: int = Field() - network_count: int = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - organization: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - parent: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - source: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - forks: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - open_issues: int = Field() - watchers: int = Field() - anonymous_access_enabled: Missing[bool] = Field( - default=UNSET, description="Whether anonymous git access is allowed." - ) - code_of_conduct: Missing[CodeOfConductSimple] = Field( + private: Missing[bool] = Field( default=UNSET, - title="Code Of Conduct Simple", - description="Code of Conduct Simple", - ) - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET + description="Whether or not this project can be seen by everyone. Only present if owner is an organization.", ) - custom_properties: Missing[FullRepositoryPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - - -class FullRepositoryPropPermissions(GitHubModel): - """FullRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - - -class FullRepositoryPropCustomProperties(ExtraGitHubModel): - """FullRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ -model_rebuild(FullRepository) -model_rebuild(FullRepositoryPropPermissions) -model_rebuild(FullRepositoryPropCustomProperties) +model_rebuild(Project) -__all__ = ( - "FullRepository", - "FullRepositoryPropPermissions", - "FullRepositoryPropCustomProperties", -) +__all__ = ("Project",) diff --git a/githubkit/versions/v2022_11_28/models/group_0097.py b/githubkit/versions/v2022_11_28/models/group_0097.py index 6c8d0b2ff..04d3f49ab 100644 --- a/githubkit/versions/v2022_11_28/models/group_0097.py +++ b/githubkit/versions/v2022_11_28/models/group_0097.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal +from typing_extensions import Annotated from pydantic import Field @@ -18,24 +19,41 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRulesetBypassActor(GitHubModel): - """Repository Ruleset Bypass Actor +class OrgCustomProperty(GitHubModel): + """Organization Custom Property - An actor that can bypass rules in a ruleset + Custom property defined on an organization """ - 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.\n", + property_name: str = Field(description="The name 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" ) - actor_type: Literal[ - "Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey" - ] = Field(description="The type of actor that can bypass a ruleset.\n") - bypass_mode: Literal["always", "pull_request"] = Field( - 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.\n" + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Short description of the property" + ) + allowed_values: Missing[ + Union[ + Annotated[ + List[Annotated[str, Field(max_length=75)]], Field(max_length=200) + ], + None, + ] + ] = Field( + default=UNSET, + description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", ) + 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(OrgCustomProperty) -__all__ = ("RepositoryRulesetBypassActor",) +__all__ = ("OrgCustomProperty",) diff --git a/githubkit/versions/v2022_11_28/models/group_0098.py b/githubkit/versions/v2022_11_28/models/group_0098.py index 9b35ee25d..9b8b64121 100644 --- a/githubkit/versions/v2022_11_28/models/group_0098.py +++ b/githubkit/versions/v2022_11_28/models/group_0098.py @@ -9,24 +9,25 @@ from __future__ import annotations +from typing import List, Union + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0099 import RepositoryRulesetConditionsPropRefName - -class RepositoryRulesetConditions(GitHubModel): - """Repository ruleset conditions for ref names +class CustomPropertyValue(GitHubModel): + """Custom Property Value - Parameters for a repository ruleset ref name condition + Custom property name and associated value """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + property_name: str = Field(description="The name of the property") + value: Union[str, List[str], None] = Field( + description="The value assigned to the property" + ) -model_rebuild(RepositoryRulesetConditions) +model_rebuild(CustomPropertyValue) -__all__ = ("RepositoryRulesetConditions",) +__all__ = ("CustomPropertyValue",) diff --git a/githubkit/versions/v2022_11_28/models/group_0099.py b/githubkit/versions/v2022_11_28/models/group_0099.py index cac223a59..dec72283b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0099.py +++ b/githubkit/versions/v2022_11_28/models/group_0099.py @@ -13,24 +13,25 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0098 import CustomPropertyValue -class RepositoryRulesetConditionsPropRefName(GitHubModel): - """RepositoryRulesetConditionsPropRefName""" - include: Missing[List[str]] = Field( - default=UNSET, - description="Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~DEFAULT_BRANCH` to include the default branch or `~ALL` to include all branches.", - ) - exclude: Missing[List[str]] = Field( - default=UNSET, - description="Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match.", +class OrgRepoCustomPropertyValues(GitHubModel): + """Organization Repository Custom Property Values + + List of custom property values for a repository + """ + + repository_id: int = Field() + repository_name: str = Field() + repository_full_name: str = Field() + properties: List[CustomPropertyValue] = Field( + description="List of custom property names and associated values" ) -model_rebuild(RepositoryRulesetConditionsPropRefName) +model_rebuild(OrgRepoCustomPropertyValues) -__all__ = ("RepositoryRulesetConditionsPropRefName",) +__all__ = ("OrgRepoCustomPropertyValues",) diff --git a/githubkit/versions/v2022_11_28/models/group_0100.py b/githubkit/versions/v2022_11_28/models/group_0100.py index 181081a6e..35b60a16d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0100.py +++ b/githubkit/versions/v2022_11_28/models/group_0100.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_0101 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, -) - -class RepositoryRulesetConditionsRepositoryNameTarget(GitHubModel): - """Repository ruleset conditions for repository names +class CodeOfConductSimple(GitHubModel): + """Code Of Conduct Simple - Parameters for a repository name condition + Code of Conduct Simple """ - repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() + url: str = Field() + key: str = Field() + name: str = Field() + html_url: Union[str, None] = Field() -model_rebuild(RepositoryRulesetConditionsRepositoryNameTarget) +model_rebuild(CodeOfConductSimple) -__all__ = ("RepositoryRulesetConditionsRepositoryNameTarget",) +__all__ = ("CodeOfConductSimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0101.py b/githubkit/versions/v2022_11_28/models/group_0101.py index 5729a4ea4..548bfd6c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0101.py +++ b/githubkit/versions/v2022_11_28/models/group_0101.py @@ -9,32 +9,196 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0017 import Repository +from .group_0016 import LicenseSimple +from .group_0054 import SecurityAndAnalysis +from .group_0100 import CodeOfConductSimple -class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName(GitHubModel): - """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" - include: Missing[List[str]] = Field( +class FullRepository(GitHubModel): + """Full Repository + + Full 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="Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts `~ALL` to include all repositories.", + description="The 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).", + ) ) - exclude: Missing[List[str]] = Field( + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( default=UNSET, - description="Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.", + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", ) - protected: Missing[bool] = Field( + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( default=UNSET, - description="Whether renaming of target repositories is prevented.", + description="The default value for a merge commit title.\n\n - `PR_TITLE` - default to the pull 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(RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName) +model_rebuild(FullRepository) +model_rebuild(FullRepositoryPropPermissions) +model_rebuild(FullRepositoryPropCustomProperties) -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName",) +__all__ = ( + "FullRepository", + "FullRepositoryPropPermissions", + "FullRepositoryPropCustomProperties", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0102.py b/githubkit/versions/v2022_11_28/models/group_0102.py index 29cc857ee..6c8d0b2ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0102.py +++ b/githubkit/versions/v2022_11_28/models/group_0102.py @@ -9,24 +9,33 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0103 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId - -class RepositoryRulesetConditionsRepositoryIdTarget(GitHubModel): - """Repository ruleset conditions for repository IDs +class RepositoryRulesetBypassActor(GitHubModel): + """Repository Ruleset Bypass Actor - Parameters for a repository ID condition + An actor that can bypass rules in a ruleset """ - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( - Field() + actor_id: Missing[Union[int, None]] = Field( + default=UNSET, + description="The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories.\n", + ) + actor_type: Literal[ + "Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey" + ] = Field(description="The type of actor that can bypass a ruleset.\n") + bypass_mode: Literal["always", "pull_request"] = Field( + 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.\n" ) -model_rebuild(RepositoryRulesetConditionsRepositoryIdTarget) +model_rebuild(RepositoryRulesetBypassActor) -__all__ = ("RepositoryRulesetConditionsRepositoryIdTarget",) +__all__ = ("RepositoryRulesetBypassActor",) diff --git a/githubkit/versions/v2022_11_28/models/group_0103.py b/githubkit/versions/v2022_11_28/models/group_0103.py index cdb3781a4..70a59cc72 100644 --- a/githubkit/versions/v2022_11_28/models/group_0103.py +++ b/githubkit/versions/v2022_11_28/models/group_0103.py @@ -9,24 +9,24 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0104 import RepositoryRulesetConditionsPropRefName + + +class RepositoryRulesetConditions(GitHubModel): + """Repository ruleset conditions for ref names -class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId(GitHubModel): - """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" + Parameters for a repository ruleset ref name condition + """ - 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.", - ) + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) -model_rebuild(RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId) +model_rebuild(RepositoryRulesetConditions) -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId",) +__all__ = ("RepositoryRulesetConditions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0104.py b/githubkit/versions/v2022_11_28/models/group_0104.py index 731e098d5..cac223a59 100644 --- a/githubkit/versions/v2022_11_28/models/group_0104.py +++ b/githubkit/versions/v2022_11_28/models/group_0104.py @@ -9,24 +9,28 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0105 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, -) - - -class RepositoryRulesetConditionsRepositoryPropertyTarget(GitHubModel): - """Repository ruleset conditions for repository properties - Parameters for a repository property condition - """ +class RepositoryRulesetConditionsPropRefName(GitHubModel): + """RepositoryRulesetConditionsPropRefName""" - repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() + 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.", + ) -model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTarget) +model_rebuild(RepositoryRulesetConditionsPropRefName) -__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTarget",) +__all__ = ("RepositoryRulesetConditionsPropRefName",) diff --git a/githubkit/versions/v2022_11_28/models/group_0105.py b/githubkit/versions/v2022_11_28/models/group_0105.py index 78f66546d..4f1af5a6c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0105.py +++ b/githubkit/versions/v2022_11_28/models/group_0105.py @@ -9,46 +9,24 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class 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_0106 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, +) -class RepositoryRulesetConditionsRepositoryPropertySpec(GitHubModel): - """Repository ruleset property targeting definition +class RepositoryRulesetConditionsRepositoryNameTarget(GitHubModel): + """Repository ruleset conditions for repository names - Parameters for a targeting a repository property + Parameters for a repository name condition """ - name: str = Field(description="The name of the repository property to target") - property_values: List[str] = Field( - description="The values to match for the repository property" - ) + repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() -model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty) -model_rebuild(RepositoryRulesetConditionsRepositoryPropertySpec) +model_rebuild(RepositoryRulesetConditionsRepositoryNameTarget) -__all__ = ( - "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", - "RepositoryRulesetConditionsRepositoryPropertySpec", -) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTarget",) diff --git a/githubkit/versions/v2022_11_28/models/group_0106.py b/githubkit/versions/v2022_11_28/models/group_0106.py index a159bad91..5729a4ea4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0106.py +++ b/githubkit/versions/v2022_11_28/models/group_0106.py @@ -9,28 +9,32 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0099 import RepositoryRulesetConditionsPropRefName -from .group_0101 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, -) - - -class OrgRulesetConditionsOneof0(GitHubModel): - """repository_name_and_ref_name - Conditions to target repositories by name and refs by name - """ +class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName(GitHubModel): + """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) - repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() + 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.", + ) -model_rebuild(OrgRulesetConditionsOneof0) +model_rebuild(RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName) -__all__ = ("OrgRulesetConditionsOneof0",) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName",) diff --git a/githubkit/versions/v2022_11_28/models/group_0107.py b/githubkit/versions/v2022_11_28/models/group_0107.py index 1527249df..635c9e8f5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0107.py +++ b/githubkit/versions/v2022_11_28/models/group_0107.py @@ -11,26 +11,22 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0099 import RepositoryRulesetConditionsPropRefName -from .group_0103 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId +from .group_0108 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId -class OrgRulesetConditionsOneof1(GitHubModel): - """repository_id_and_ref_name +class RepositoryRulesetConditionsRepositoryIdTarget(GitHubModel): + """Repository ruleset conditions for repository IDs - Conditions to target repositories by id and refs by name + Parameters for a repository ID condition """ - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( Field() ) -model_rebuild(OrgRulesetConditionsOneof1) +model_rebuild(RepositoryRulesetConditionsRepositoryIdTarget) -__all__ = ("OrgRulesetConditionsOneof1",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTarget",) diff --git a/githubkit/versions/v2022_11_28/models/group_0108.py b/githubkit/versions/v2022_11_28/models/group_0108.py index 260a08b2b..cdb3781a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0108.py +++ b/githubkit/versions/v2022_11_28/models/group_0108.py @@ -9,28 +9,24 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0099 import RepositoryRulesetConditionsPropRefName -from .group_0105 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, -) - - -class OrgRulesetConditionsOneof2(GitHubModel): - """repository_property_and_ref_name - Conditions to target repositories by property and refs by name - """ +class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId(GitHubModel): + """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" - ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) - repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = 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(OrgRulesetConditionsOneof2) +model_rebuild(RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId) -__all__ = ("OrgRulesetConditionsOneof2",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId",) diff --git a/githubkit/versions/v2022_11_28/models/group_0109.py b/githubkit/versions/v2022_11_28/models/group_0109.py index 9e33343bc..4e0e93479 100644 --- a/githubkit/versions/v2022_11_28/models/group_0109.py +++ b/githubkit/versions/v2022_11_28/models/group_0109.py @@ -9,109 +9,24 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0110 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, +) -class RepositoryRuleCreation(GitHubModel): - """creation - - Only allow users with bypass permission to create matching refs. - """ - - type: Literal["creation"] = Field() - - -class RepositoryRuleDeletion(GitHubModel): - """deletion - - Only allow users with bypass permissions to delete matching refs. - """ - - type: Literal["deletion"] = Field() - - -class RepositoryRuleRequiredSignatures(GitHubModel): - """required_signatures - - Commits pushed to matching refs must have verified signatures. - """ - - type: Literal["required_signatures"] = Field() - - -class RepositoryRuleNonFastForward(GitHubModel): - """non_fast_forward - - Prevent users with push access from force pushing to refs. - """ - - type: Literal["non_fast_forward"] = Field() - - -class RepositoryRuleOneof14(GitHubModel): - """file_path_restriction - - Note: file_path_restriction is in beta and subject to change. - - Prevent commits that include changes in specified file paths from being pushed - to the commit graph. - """ - - type: Literal["file_path_restriction"] = Field() - parameters: Missing[RepositoryRuleOneof14PropParameters] = Field(default=UNSET) - - -class RepositoryRuleOneof14PropParameters(GitHubModel): - """RepositoryRuleOneof14PropParameters""" - - restricted_file_paths: List[str] = Field( - description="The file paths that are restricted from being pushed to the commit graph." - ) - - -class RepositoryRuleOneof16(GitHubModel): - """file_extension_restriction - Note: file_extension_restriction is in beta and subject to change. +class RepositoryRulesetConditionsRepositoryPropertyTarget(GitHubModel): + """Repository ruleset conditions for repository properties - Prevent commits that include files with specified file extensions from being - pushed to the commit graph. + Parameters for a repository property condition """ - type: Literal["file_extension_restriction"] = Field() - parameters: Missing[RepositoryRuleOneof16PropParameters] = Field(default=UNSET) + repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() -class RepositoryRuleOneof16PropParameters(GitHubModel): - """RepositoryRuleOneof16PropParameters""" +model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTarget) - restricted_file_extensions: List[str] = Field( - description="The file extensions that are restricted from being pushed to the commit graph." - ) - - -model_rebuild(RepositoryRuleCreation) -model_rebuild(RepositoryRuleDeletion) -model_rebuild(RepositoryRuleRequiredSignatures) -model_rebuild(RepositoryRuleNonFastForward) -model_rebuild(RepositoryRuleOneof14) -model_rebuild(RepositoryRuleOneof14PropParameters) -model_rebuild(RepositoryRuleOneof16) -model_rebuild(RepositoryRuleOneof16PropParameters) - -__all__ = ( - "RepositoryRuleCreation", - "RepositoryRuleDeletion", - "RepositoryRuleRequiredSignatures", - "RepositoryRuleNonFastForward", - "RepositoryRuleOneof14", - "RepositoryRuleOneof14PropParameters", - "RepositoryRuleOneof16", - "RepositoryRuleOneof16PropParameters", -) +__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTarget",) diff --git a/githubkit/versions/v2022_11_28/models/group_0110.py b/githubkit/versions/v2022_11_28/models/group_0110.py index c3843deea..854c188ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0110.py +++ b/githubkit/versions/v2022_11_28/models/group_0110.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field @@ -17,19 +17,42 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0111 import RepositoryRuleUpdatePropParameters +class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty( + GitHubModel +): + """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" -class RepositoryRuleUpdate(GitHubModel): - """update + include: Missing[List[RepositoryRulesetConditionsRepositoryPropertySpec]] = Field( + default=UNSET, + description="The repository properties and values to include. All of these properties must match for the condition to pass.", + ) + exclude: Missing[List[RepositoryRulesetConditionsRepositoryPropertySpec]] = Field( + default=UNSET, + description="The repository properties and values to exclude. The condition will not pass if any of these properties match.", + ) - Only allow users with bypass permission to update matching refs. + +class RepositoryRulesetConditionsRepositoryPropertySpec(GitHubModel): + """Repository ruleset property targeting definition + + Parameters for a targeting a repository property """ - type: Literal["update"] = Field() - parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) + name: str = Field(description="The name of the repository property to target") + property_values: List[str] = Field( + description="The values to match for the repository property" + ) + source: Missing[Literal["custom", "system"]] = Field( + default=UNSET, + description="The source of the repository property. Defaults to 'custom' if not specified.", + ) -model_rebuild(RepositoryRuleUpdate) +model_rebuild(RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty) +model_rebuild(RepositoryRulesetConditionsRepositoryPropertySpec) -__all__ = ("RepositoryRuleUpdate",) +__all__ = ( + "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty", + "RepositoryRulesetConditionsRepositoryPropertySpec", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0111.py b/githubkit/versions/v2022_11_28/models/group_0111.py index 24be869ac..f8f2f274f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0111.py +++ b/githubkit/versions/v2022_11_28/models/group_0111.py @@ -11,17 +11,26 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0104 import RepositoryRulesetConditionsPropRefName +from .group_0106 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName, +) -class RepositoryRuleUpdatePropParameters(GitHubModel): - """RepositoryRuleUpdatePropParameters""" - update_allows_fetch_and_merge: bool = Field( - description="Branch can pull changes from its upstream repository" - ) +class OrgRulesetConditionsOneof0(GitHubModel): + """repository_name_and_ref_name + Conditions to target repositories by name and refs by name + """ -model_rebuild(RepositoryRuleUpdatePropParameters) + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_name: RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName = Field() -__all__ = ("RepositoryRuleUpdatePropParameters",) + +model_rebuild(OrgRulesetConditionsOneof0) + +__all__ = ("OrgRulesetConditionsOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0112.py b/githubkit/versions/v2022_11_28/models/group_0112.py index 2a7438d93..d17e4130f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0112.py +++ b/githubkit/versions/v2022_11_28/models/group_0112.py @@ -9,53 +9,28 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class RepositoryRuleRequiredLinearHistory(GitHubModel): - """required_linear_history - - Prevent merge commits from being pushed to matching refs. - """ - - type: Literal["required_linear_history"] = Field() +from .group_0104 import RepositoryRulesetConditionsPropRefName +from .group_0108 import RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId -class RepositoryRuleOneof15(GitHubModel): - """max_file_path_length +class OrgRulesetConditionsOneof1(GitHubModel): + """repository_id_and_ref_name - Note: max_file_path_length is in beta and subject to change. - - Prevent commits that include file paths that exceed a specified character limit - from being pushed to the commit graph. + Conditions to target repositories by id and refs by name """ - type: Literal["max_file_path_length"] = Field() - parameters: Missing[RepositoryRuleOneof15PropParameters] = Field(default=UNSET) - - -class RepositoryRuleOneof15PropParameters(GitHubModel): - """RepositoryRuleOneof15PropParameters""" - - max_file_path_length: int = Field( - le=256.0, - ge=1.0, - description="The maximum amount of characters allowed in file paths", + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId = ( + Field() ) -model_rebuild(RepositoryRuleRequiredLinearHistory) -model_rebuild(RepositoryRuleOneof15) -model_rebuild(RepositoryRuleOneof15PropParameters) +model_rebuild(OrgRulesetConditionsOneof1) -__all__ = ( - "RepositoryRuleRequiredLinearHistory", - "RepositoryRuleOneof15", - "RepositoryRuleOneof15PropParameters", -) +__all__ = ("OrgRulesetConditionsOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0113.py b/githubkit/versions/v2022_11_28/models/group_0113.py index 314fb0006..daa7d8db3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0113.py +++ b/githubkit/versions/v2022_11_28/models/group_0113.py @@ -9,30 +9,28 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0114 import RepositoryRuleRequiredDeploymentsPropParameters +from .group_0104 import RepositoryRulesetConditionsPropRefName +from .group_0110 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty, +) -class RepositoryRuleRequiredDeployments(GitHubModel): - """required_deployments +class OrgRulesetConditionsOneof2(GitHubModel): + """repository_property_and_ref_name - Choose which environments must be successfully deployed to before refs can be - pushed into a ref that matches this rule. + Conditions to target repositories by property and refs by name """ - type: Literal["required_deployments"] = Field() - parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( - default=UNSET - ) + ref_name: Missing[RepositoryRulesetConditionsPropRefName] = Field(default=UNSET) + repository_property: RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty = Field() -model_rebuild(RepositoryRuleRequiredDeployments) +model_rebuild(OrgRulesetConditionsOneof2) -__all__ = ("RepositoryRuleRequiredDeployments",) +__all__ = ("OrgRulesetConditionsOneof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_0114.py b/githubkit/versions/v2022_11_28/models/group_0114.py index 8f7b74ce6..9e33343bc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0114.py +++ b/githubkit/versions/v2022_11_28/models/group_0114.py @@ -9,21 +9,109 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleRequiredDeploymentsPropParameters(GitHubModel): - """RepositoryRuleRequiredDeploymentsPropParameters""" +class RepositoryRuleCreation(GitHubModel): + """creation - required_deployment_environments: List[str] = Field( - description="The environments that must be successfully deployed to before branches can be merged." + Only allow users with bypass permission to create matching refs. + """ + + type: Literal["creation"] = Field() + + +class RepositoryRuleDeletion(GitHubModel): + """deletion + + Only allow users with bypass permissions to delete matching refs. + """ + + type: Literal["deletion"] = Field() + + +class RepositoryRuleRequiredSignatures(GitHubModel): + """required_signatures + + Commits pushed to matching refs must have verified signatures. + """ + + type: Literal["required_signatures"] = Field() + + +class RepositoryRuleNonFastForward(GitHubModel): + """non_fast_forward + + Prevent users with push access from force pushing to refs. + """ + + type: Literal["non_fast_forward"] = Field() + + +class RepositoryRuleOneof14(GitHubModel): + """file_path_restriction + + Note: file_path_restriction is in beta and subject to change. + + Prevent commits that include changes in specified file paths from being pushed + to the commit graph. + """ + + type: Literal["file_path_restriction"] = Field() + parameters: Missing[RepositoryRuleOneof14PropParameters] = Field(default=UNSET) + + +class RepositoryRuleOneof14PropParameters(GitHubModel): + """RepositoryRuleOneof14PropParameters""" + + restricted_file_paths: List[str] = Field( + description="The file paths that are restricted from being pushed to the commit graph." + ) + + +class RepositoryRuleOneof16(GitHubModel): + """file_extension_restriction + + Note: file_extension_restriction is in beta and subject to change. + + Prevent commits that include files with specified file extensions from being + pushed to the commit graph. + """ + + type: Literal["file_extension_restriction"] = Field() + parameters: Missing[RepositoryRuleOneof16PropParameters] = Field(default=UNSET) + + +class RepositoryRuleOneof16PropParameters(GitHubModel): + """RepositoryRuleOneof16PropParameters""" + + restricted_file_extensions: List[str] = Field( + description="The file extensions that are restricted from being pushed to the commit graph." ) -model_rebuild(RepositoryRuleRequiredDeploymentsPropParameters) +model_rebuild(RepositoryRuleCreation) +model_rebuild(RepositoryRuleDeletion) +model_rebuild(RepositoryRuleRequiredSignatures) +model_rebuild(RepositoryRuleNonFastForward) +model_rebuild(RepositoryRuleOneof14) +model_rebuild(RepositoryRuleOneof14PropParameters) +model_rebuild(RepositoryRuleOneof16) +model_rebuild(RepositoryRuleOneof16PropParameters) -__all__ = ("RepositoryRuleRequiredDeploymentsPropParameters",) +__all__ = ( + "RepositoryRuleCreation", + "RepositoryRuleDeletion", + "RepositoryRuleRequiredSignatures", + "RepositoryRuleNonFastForward", + "RepositoryRuleOneof14", + "RepositoryRuleOneof14PropParameters", + "RepositoryRuleOneof16", + "RepositoryRuleOneof16PropParameters", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0115.py b/githubkit/versions/v2022_11_28/models/group_0115.py index 1b75ba859..d842b9aa7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0115.py +++ b/githubkit/versions/v2022_11_28/models/group_0115.py @@ -17,20 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0116 import RepositoryRulePullRequestPropParameters +from .group_0116 import RepositoryRuleUpdatePropParameters -class RepositoryRulePullRequest(GitHubModel): - """pull_request +class RepositoryRuleUpdate(GitHubModel): + """update - Require all commits be made to a non-target branch and submitted via a pull - request before they can be merged. + Only allow users with bypass permission to update matching refs. """ - type: Literal["pull_request"] = Field() - parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) + type: Literal["update"] = Field() + parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) -model_rebuild(RepositoryRulePullRequest) +model_rebuild(RepositoryRuleUpdate) -__all__ = ("RepositoryRulePullRequest",) +__all__ = ("RepositoryRuleUpdate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0116.py b/githubkit/versions/v2022_11_28/models/group_0116.py index d08a2932e..24be869ac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0116.py +++ b/githubkit/versions/v2022_11_28/models/group_0116.py @@ -14,27 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRulePullRequestPropParameters(GitHubModel): - """RepositoryRulePullRequestPropParameters""" +class RepositoryRuleUpdatePropParameters(GitHubModel): + """RepositoryRuleUpdatePropParameters""" - 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." + update_allows_fetch_and_merge: bool = Field( + description="Branch can pull changes from its upstream repository" ) -model_rebuild(RepositoryRulePullRequestPropParameters) +model_rebuild(RepositoryRuleUpdatePropParameters) -__all__ = ("RepositoryRulePullRequestPropParameters",) +__all__ = ("RepositoryRuleUpdatePropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0117.py b/githubkit/versions/v2022_11_28/models/group_0117.py index 467c06758..2a7438d93 100644 --- a/githubkit/versions/v2022_11_28/models/group_0117.py +++ b/githubkit/versions/v2022_11_28/models/group_0117.py @@ -17,22 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0118 import RepositoryRuleRequiredStatusChecksPropParameters +class RepositoryRuleRequiredLinearHistory(GitHubModel): + """required_linear_history -class RepositoryRuleRequiredStatusChecks(GitHubModel): - """required_status_checks + Prevent merge commits from being pushed to matching refs. + """ + + type: Literal["required_linear_history"] = Field() + + +class RepositoryRuleOneof15(GitHubModel): + """max_file_path_length - 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. + Note: max_file_path_length is in beta and subject to change. + + Prevent commits that include file paths that exceed a specified character limit + from being pushed to the commit graph. """ - type: Literal["required_status_checks"] = Field() - parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( - default=UNSET + type: Literal["max_file_path_length"] = Field() + parameters: Missing[RepositoryRuleOneof15PropParameters] = Field(default=UNSET) + + +class RepositoryRuleOneof15PropParameters(GitHubModel): + """RepositoryRuleOneof15PropParameters""" + + max_file_path_length: int = Field( + le=256.0, + ge=1.0, + description="The maximum amount of characters allowed in file paths", ) -model_rebuild(RepositoryRuleRequiredStatusChecks) +model_rebuild(RepositoryRuleRequiredLinearHistory) +model_rebuild(RepositoryRuleOneof15) +model_rebuild(RepositoryRuleOneof15PropParameters) -__all__ = ("RepositoryRuleRequiredStatusChecks",) +__all__ = ( + "RepositoryRuleRequiredLinearHistory", + "RepositoryRuleOneof15", + "RepositoryRuleOneof15PropParameters", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0118.py b/githubkit/versions/v2022_11_28/models/group_0118.py index a0cca3785..d8e67a932 100644 --- a/githubkit/versions/v2022_11_28/models/group_0118.py +++ b/githubkit/versions/v2022_11_28/models/group_0118.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -17,37 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0119 import RepositoryRuleRequiredDeploymentsPropParameters -class RepositoryRuleRequiredStatusChecksPropParameters(GitHubModel): - """RepositoryRuleRequiredStatusChecksPropParameters""" - - 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 RepositoryRuleRequiredDeployments(GitHubModel): + """required_deployments -class RepositoryRuleParamsStatusCheckConfiguration(GitHubModel): - """StatusCheckConfiguration - - Required status check + Choose which environments must be successfully deployed to before refs can be + pushed into a ref that matches this 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["required_deployments"] = Field() + parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( + default=UNSET ) -model_rebuild(RepositoryRuleRequiredStatusChecksPropParameters) -model_rebuild(RepositoryRuleParamsStatusCheckConfiguration) +model_rebuild(RepositoryRuleRequiredDeployments) -__all__ = ( - "RepositoryRuleRequiredStatusChecksPropParameters", - "RepositoryRuleParamsStatusCheckConfiguration", -) +__all__ = ("RepositoryRuleRequiredDeployments",) diff --git a/githubkit/versions/v2022_11_28/models/group_0119.py b/githubkit/versions/v2022_11_28/models/group_0119.py index 588a2ee29..8f7b74ce6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0119.py +++ b/githubkit/versions/v2022_11_28/models/group_0119.py @@ -9,29 +9,21 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0120 import RepositoryRuleCommitMessagePatternPropParameters +class RepositoryRuleRequiredDeploymentsPropParameters(GitHubModel): + """RepositoryRuleRequiredDeploymentsPropParameters""" -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 + required_deployment_environments: List[str] = Field( + description="The environments that must be successfully deployed to before branches can be merged." ) -model_rebuild(RepositoryRuleCommitMessagePattern) +model_rebuild(RepositoryRuleRequiredDeploymentsPropParameters) -__all__ = ("RepositoryRuleCommitMessagePattern",) +__all__ = ("RepositoryRuleRequiredDeploymentsPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0120.py b/githubkit/versions/v2022_11_28/models/group_0120.py index e05238ec3..393c68add 100644 --- a/githubkit/versions/v2022_11_28/models/group_0120.py +++ b/githubkit/versions/v2022_11_28/models/group_0120.py @@ -17,22 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0121 import RepositoryRulePullRequestPropParameters -class RepositoryRuleCommitMessagePatternPropParameters(GitHubModel): - """RepositoryRuleCommitMessagePatternPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." - ) - negate: Missing[bool] = Field( - default=UNSET, description="If true, the rule will fail if the pattern matches." - ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." - ) - pattern: str = Field(description="The pattern to match with.") +class RepositoryRulePullRequest(GitHubModel): + """pull_request + Require all commits be made to a non-target branch and submitted via a pull + request before they can be merged. + """ -model_rebuild(RepositoryRuleCommitMessagePatternPropParameters) + type: Literal["pull_request"] = Field() + parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) -__all__ = ("RepositoryRuleCommitMessagePatternPropParameters",) + +model_rebuild(RepositoryRulePullRequest) + +__all__ = ("RepositoryRulePullRequest",) diff --git a/githubkit/versions/v2022_11_28/models/group_0121.py b/githubkit/versions/v2022_11_28/models/group_0121.py index 2e4b80ed3..d08a2932e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0121.py +++ b/githubkit/versions/v2022_11_28/models/group_0121.py @@ -9,29 +9,32 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0122 import RepositoryRuleCommitAuthorEmailPatternPropParameters - -class RepositoryRuleCommitAuthorEmailPattern(GitHubModel): - """commit_author_email_pattern +class RepositoryRulePullRequestPropParameters(GitHubModel): + """RepositoryRulePullRequestPropParameters""" - Parameters to be used for the commit_author_email_pattern rule - """ - - type: Literal["commit_author_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( - default=UNSET + dismiss_stale_reviews_on_push: bool = Field( + description="New, reviewable commits pushed will dismiss previous pull request review approvals." + ) + require_code_owner_review: bool = Field( + description="Require an approving review in pull requests that modify files that have a designated code owner." + ) + require_last_push_approval: bool = Field( + description="Whether the most recent reviewable push must be approved by someone other than the person who pushed it." + ) + required_approving_review_count: int = Field( + le=10.0, + description="The number of approving reviews that are required before a pull request can be merged.", + ) + required_review_thread_resolution: bool = Field( + description="All conversations on code must be resolved before a pull request can be merged." ) -model_rebuild(RepositoryRuleCommitAuthorEmailPattern) +model_rebuild(RepositoryRulePullRequestPropParameters) -__all__ = ("RepositoryRuleCommitAuthorEmailPattern",) +__all__ = ("RepositoryRulePullRequestPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0122.py b/githubkit/versions/v2022_11_28/models/group_0122.py index a92c84f61..da3cea7be 100644 --- a/githubkit/versions/v2022_11_28/models/group_0122.py +++ b/githubkit/versions/v2022_11_28/models/group_0122.py @@ -17,22 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0123 import RepositoryRuleRequiredStatusChecksPropParameters -class RepositoryRuleCommitAuthorEmailPatternPropParameters(GitHubModel): - """RepositoryRuleCommitAuthorEmailPatternPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." - ) - negate: Missing[bool] = Field( - default=UNSET, description="If true, the rule will fail if the pattern matches." - ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." +class RepositoryRuleRequiredStatusChecks(GitHubModel): + """required_status_checks + + Choose which status checks must pass before the ref is updated. When enabled, + commits must first be pushed to another ref where the checks pass. + """ + + type: Literal["required_status_checks"] = Field() + parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( + default=UNSET ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleCommitAuthorEmailPatternPropParameters) +model_rebuild(RepositoryRuleRequiredStatusChecks) -__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParameters",) +__all__ = ("RepositoryRuleRequiredStatusChecks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0123.py b/githubkit/versions/v2022_11_28/models/group_0123.py index b1e336491..a0cca3785 100644 --- a/githubkit/versions/v2022_11_28/models/group_0123.py +++ b/githubkit/versions/v2022_11_28/models/group_0123.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -17,21 +17,37 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0124 import RepositoryRuleCommitterEmailPatternPropParameters +class RepositoryRuleRequiredStatusChecksPropParameters(GitHubModel): + """RepositoryRuleRequiredStatusChecksPropParameters""" + + 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 RepositoryRuleCommitterEmailPattern(GitHubModel): - """committer_email_pattern - Parameters to be used for the committer_email_pattern rule +class RepositoryRuleParamsStatusCheckConfiguration(GitHubModel): + """StatusCheckConfiguration + + Required status check """ - type: Literal["committer_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( - default=UNSET + context: str = Field( + description="The status check context name that must be present on the commit." + ) + integration_id: Missing[int] = Field( + default=UNSET, + description="The optional integration ID that this status check must originate from.", ) -model_rebuild(RepositoryRuleCommitterEmailPattern) +model_rebuild(RepositoryRuleRequiredStatusChecksPropParameters) +model_rebuild(RepositoryRuleParamsStatusCheckConfiguration) -__all__ = ("RepositoryRuleCommitterEmailPattern",) +__all__ = ( + "RepositoryRuleRequiredStatusChecksPropParameters", + "RepositoryRuleParamsStatusCheckConfiguration", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0124.py b/githubkit/versions/v2022_11_28/models/group_0124.py index 1741604e2..4e495dba4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0124.py +++ b/githubkit/versions/v2022_11_28/models/group_0124.py @@ -17,22 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0125 import RepositoryRuleCommitMessagePatternPropParameters -class RepositoryRuleCommitterEmailPatternPropParameters(GitHubModel): - """RepositoryRuleCommitterEmailPatternPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." - ) - negate: Missing[bool] = Field( - default=UNSET, description="If true, the rule will fail if the pattern matches." - ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." +class RepositoryRuleCommitMessagePattern(GitHubModel): + """commit_message_pattern + + Parameters to be used for the commit_message_pattern rule + """ + + type: Literal["commit_message_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( + default=UNSET ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleCommitterEmailPatternPropParameters) +model_rebuild(RepositoryRuleCommitMessagePattern) -__all__ = ("RepositoryRuleCommitterEmailPatternPropParameters",) +__all__ = ("RepositoryRuleCommitMessagePattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0125.py b/githubkit/versions/v2022_11_28/models/group_0125.py index 8d58ddd3d..e05238ec3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0125.py +++ b/githubkit/versions/v2022_11_28/models/group_0125.py @@ -17,21 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0126 import RepositoryRuleBranchNamePatternPropParameters +class RepositoryRuleCommitMessagePatternPropParameters(GitHubModel): + """RepositoryRuleCommitMessagePatternPropParameters""" -class RepositoryRuleBranchNamePattern(GitHubModel): - """branch_name_pattern - - Parameters to be used for the branch_name_pattern rule - """ - - type: Literal["branch_name_pattern"] = Field() - parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( - default=UNSET + name: Missing[str] = Field( + default=UNSET, description="How this rule will appear to users." + ) + negate: Missing[bool] = Field( + default=UNSET, description="If true, the rule will fail if the pattern matches." + ) + operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( + description="The operator to use for matching." ) + pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleBranchNamePattern) +model_rebuild(RepositoryRuleCommitMessagePatternPropParameters) -__all__ = ("RepositoryRuleBranchNamePattern",) +__all__ = ("RepositoryRuleCommitMessagePatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0126.py b/githubkit/versions/v2022_11_28/models/group_0126.py index 682aa611e..115464c74 100644 --- a/githubkit/versions/v2022_11_28/models/group_0126.py +++ b/githubkit/versions/v2022_11_28/models/group_0126.py @@ -17,22 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0127 import RepositoryRuleCommitAuthorEmailPatternPropParameters -class RepositoryRuleBranchNamePatternPropParameters(GitHubModel): - """RepositoryRuleBranchNamePatternPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." - ) - negate: Missing[bool] = Field( - default=UNSET, description="If true, the rule will fail if the pattern matches." - ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." +class RepositoryRuleCommitAuthorEmailPattern(GitHubModel): + """commit_author_email_pattern + + Parameters to be used for the commit_author_email_pattern rule + """ + + type: Literal["commit_author_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( + default=UNSET ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleBranchNamePatternPropParameters) +model_rebuild(RepositoryRuleCommitAuthorEmailPattern) -__all__ = ("RepositoryRuleBranchNamePatternPropParameters",) +__all__ = ("RepositoryRuleCommitAuthorEmailPattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0127.py b/githubkit/versions/v2022_11_28/models/group_0127.py index 96ab2b018..a92c84f61 100644 --- a/githubkit/versions/v2022_11_28/models/group_0127.py +++ b/githubkit/versions/v2022_11_28/models/group_0127.py @@ -17,21 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0128 import RepositoryRuleTagNamePatternPropParameters +class RepositoryRuleCommitAuthorEmailPatternPropParameters(GitHubModel): + """RepositoryRuleCommitAuthorEmailPatternPropParameters""" -class RepositoryRuleTagNamePattern(GitHubModel): - """tag_name_pattern - - Parameters to be used for the tag_name_pattern rule - """ - - type: Literal["tag_name_pattern"] = Field() - parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( - default=UNSET + name: Missing[str] = Field( + default=UNSET, description="How this rule will appear to users." + ) + negate: Missing[bool] = Field( + default=UNSET, description="If true, the rule will fail if the pattern matches." + ) + operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( + description="The operator to use for matching." ) + pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleTagNamePattern) +model_rebuild(RepositoryRuleCommitAuthorEmailPatternPropParameters) -__all__ = ("RepositoryRuleTagNamePattern",) +__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0128.py b/githubkit/versions/v2022_11_28/models/group_0128.py index 6b7565aaa..ec23a0fe3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0128.py +++ b/githubkit/versions/v2022_11_28/models/group_0128.py @@ -17,22 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0129 import RepositoryRuleCommitterEmailPatternPropParameters -class RepositoryRuleTagNamePatternPropParameters(GitHubModel): - """RepositoryRuleTagNamePatternPropParameters""" - name: Missing[str] = Field( - default=UNSET, description="How this rule will appear to users." - ) - negate: Missing[bool] = Field( - default=UNSET, description="If true, the rule will fail if the pattern matches." - ) - operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( - description="The operator to use for matching." +class RepositoryRuleCommitterEmailPattern(GitHubModel): + """committer_email_pattern + + Parameters to be used for the committer_email_pattern rule + """ + + type: Literal["committer_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( + default=UNSET ) - pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleTagNamePatternPropParameters) +model_rebuild(RepositoryRuleCommitterEmailPattern) -__all__ = ("RepositoryRuleTagNamePatternPropParameters",) +__all__ = ("RepositoryRuleCommitterEmailPattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0129.py b/githubkit/versions/v2022_11_28/models/group_0129.py index 396fce809..1741604e2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0129.py +++ b/githubkit/versions/v2022_11_28/models/group_0129.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,16 +18,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleParamsRestrictedCommits(GitHubModel): - """RestrictedCommits - - Restricted commit - """ +class RepositoryRuleCommitterEmailPatternPropParameters(GitHubModel): + """RepositoryRuleCommitterEmailPatternPropParameters""" - oid: str = Field(description="Full or abbreviated commit hash to reject") - reason: Missing[str] = Field(default=UNSET, description="Reason for restriction") + name: Missing[str] = Field( + default=UNSET, description="How this rule will appear to users." + ) + negate: Missing[bool] = Field( + default=UNSET, description="If true, the rule will fail if the pattern matches." + ) + operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( + description="The operator to use for matching." + ) + pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleParamsRestrictedCommits) +model_rebuild(RepositoryRuleCommitterEmailPatternPropParameters) -__all__ = ("RepositoryRuleParamsRestrictedCommits",) +__all__ = ("RepositoryRuleCommitterEmailPatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0130.py b/githubkit/versions/v2022_11_28/models/group_0130.py index e3be8af1d..6317a7d0e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0130.py +++ b/githubkit/versions/v2022_11_28/models/group_0130.py @@ -17,20 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0131 import RepositoryRuleWorkflowsPropParameters +from .group_0131 import RepositoryRuleBranchNamePatternPropParameters -class RepositoryRuleWorkflows(GitHubModel): - """workflows +class RepositoryRuleBranchNamePattern(GitHubModel): + """branch_name_pattern - Require all changes made to a targeted branch to pass the specified workflows - before they can be merged. + Parameters to be used for the branch_name_pattern rule """ - type: Literal["workflows"] = Field() - parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + type: Literal["branch_name_pattern"] = Field() + parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( + default=UNSET + ) -model_rebuild(RepositoryRuleWorkflows) +model_rebuild(RepositoryRuleBranchNamePattern) -__all__ = ("RepositoryRuleWorkflows",) +__all__ = ("RepositoryRuleBranchNamePattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0131.py b/githubkit/versions/v2022_11_28/models/group_0131.py index dab0871f3..682aa611e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0131.py +++ b/githubkit/versions/v2022_11_28/models/group_0131.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -18,36 +18,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleWorkflowsPropParameters(GitHubModel): - """RepositoryRuleWorkflowsPropParameters""" +class RepositoryRuleBranchNamePatternPropParameters(GitHubModel): + """RepositoryRuleBranchNamePatternPropParameters""" - workflows: List[RepositoryRuleParamsWorkflowFileReference] = Field( - description="Workflows that must pass for this rule to pass." + name: Missing[str] = Field( + default=UNSET, description="How this rule will appear to users." ) - - -class RepositoryRuleParamsWorkflowFileReference(GitHubModel): - """WorkflowFileReference - - A workflow that must run for this rule to pass - """ - - path: str = Field(description="The path to the workflow file") - ref: Missing[str] = Field( - default=UNSET, description="The ref (branch or tag) of the workflow file to use" - ) - repository_id: int = Field( - description="The ID of the repository where the workflow is defined" + negate: Missing[bool] = Field( + default=UNSET, description="If true, the rule will fail if the pattern matches." ) - sha: Missing[str] = Field( - default=UNSET, description="The commit SHA of the workflow file to use" + operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( + description="The operator to use for matching." ) + pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleWorkflowsPropParameters) -model_rebuild(RepositoryRuleParamsWorkflowFileReference) +model_rebuild(RepositoryRuleBranchNamePatternPropParameters) -__all__ = ( - "RepositoryRuleWorkflowsPropParameters", - "RepositoryRuleParamsWorkflowFileReference", -) +__all__ = ("RepositoryRuleBranchNamePatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0132.py b/githubkit/versions/v2022_11_28/models/group_0132.py index ec10a2f8c..bd4603d88 100644 --- a/githubkit/versions/v2022_11_28/models/group_0132.py +++ b/githubkit/versions/v2022_11_28/models/group_0132.py @@ -17,21 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0133 import RepositoryRuleCodeScanningPropParameters +from .group_0133 import RepositoryRuleTagNamePatternPropParameters -class RepositoryRuleCodeScanning(GitHubModel): - """code_scanning +class RepositoryRuleTagNamePattern(GitHubModel): + """tag_name_pattern - Choose which tools must provide code scanning results before the reference is - updated. When configured, code scanning must be enabled and have results for - both the commit and the reference being updated. + Parameters to be used for the tag_name_pattern rule """ - type: Literal["code_scanning"] = Field() - parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + type: Literal["tag_name_pattern"] = Field() + parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( + default=UNSET + ) -model_rebuild(RepositoryRuleCodeScanning) +model_rebuild(RepositoryRuleTagNamePattern) -__all__ = ("RepositoryRuleCodeScanning",) +__all__ = ("RepositoryRuleTagNamePattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0133.py b/githubkit/versions/v2022_11_28/models/group_0133.py index 912bccdc7..6b7565aaa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0133.py +++ b/githubkit/versions/v2022_11_28/models/group_0133.py @@ -9,42 +9,30 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleCodeScanningPropParameters(GitHubModel): - """RepositoryRuleCodeScanningPropParameters""" +class RepositoryRuleTagNamePatternPropParameters(GitHubModel): + """RepositoryRuleTagNamePatternPropParameters""" - code_scanning_tools: List[RepositoryRuleParamsCodeScanningTool] = Field( - description="Tools that must provide code scanning results for this rule to pass." + name: Missing[str] = Field( + default=UNSET, description="How this rule will appear to users." ) - - -class RepositoryRuleParamsCodeScanningTool(GitHubModel): - """CodeScanningTool - - A tool that must provide code scanning results for this rule to pass. - """ - - alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] = Field( - description='The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' + negate: Missing[bool] = Field( + default=UNSET, description="If true, the rule will fail if the pattern matches." ) - security_alerts_threshold: Literal[ - "none", "critical", "high_or_higher", "medium_or_higher", "all" - ] = Field( - description='The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' + operator: Literal["starts_with", "ends_with", "contains", "regex"] = Field( + description="The operator to use for matching." ) - tool: str = Field(description="The name of a code scanning tool") + pattern: str = Field(description="The pattern to match with.") -model_rebuild(RepositoryRuleCodeScanningPropParameters) -model_rebuild(RepositoryRuleParamsCodeScanningTool) +model_rebuild(RepositoryRuleTagNamePatternPropParameters) -__all__ = ( - "RepositoryRuleCodeScanningPropParameters", - "RepositoryRuleParamsCodeScanningTool", -) +__all__ = ("RepositoryRuleTagNamePatternPropParameters",) diff --git a/githubkit/versions/v2022_11_28/models/group_0134.py b/githubkit/versions/v2022_11_28/models/group_0134.py index 2b26e71c6..396fce809 100644 --- a/githubkit/versions/v2022_11_28/models/group_0134.py +++ b/githubkit/versions/v2022_11_28/models/group_0134.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,33 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleOneof17(GitHubModel): - """max_file_size - - Note: max_file_size is in beta and subject to change. +class RepositoryRuleParamsRestrictedCommits(GitHubModel): + """RestrictedCommits - Prevent commits that exceed a specified file size limit from being pushed to the - commit. + Restricted commit """ - type: Literal["max_file_size"] = Field() - parameters: Missing[RepositoryRuleOneof17PropParameters] = Field(default=UNSET) - - -class RepositoryRuleOneof17PropParameters(GitHubModel): - """RepositoryRuleOneof17PropParameters""" - - max_file_size: int = Field( - le=100.0, - ge=1.0, - description="The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).", - ) + oid: str = Field(description="Full or abbreviated commit hash to reject") + reason: Missing[str] = Field(default=UNSET, description="Reason for restriction") -model_rebuild(RepositoryRuleOneof17) -model_rebuild(RepositoryRuleOneof17PropParameters) +model_rebuild(RepositoryRuleParamsRestrictedCommits) -__all__ = ( - "RepositoryRuleOneof17", - "RepositoryRuleOneof17PropParameters", -) +__all__ = ("RepositoryRuleParamsRestrictedCommits",) diff --git a/githubkit/versions/v2022_11_28/models/group_0135.py b/githubkit/versions/v2022_11_28/models/group_0135.py index 736dedd94..fe9e5a52b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0135.py +++ b/githubkit/versions/v2022_11_28/models/group_0135.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,133 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0110 import RepositoryRuleUpdate -from .group_0134 import RepositoryRuleOneof17 -from .group_0130 import RepositoryRuleWorkflows -from .group_0115 import RepositoryRulePullRequest -from .group_0106 import OrgRulesetConditionsOneof0 -from .group_0107 import OrgRulesetConditionsOneof1 -from .group_0108 import OrgRulesetConditionsOneof2 -from .group_0132 import RepositoryRuleCodeScanning -from .group_0098 import RepositoryRulesetConditions -from .group_0097 import RepositoryRulesetBypassActor -from .group_0127 import RepositoryRuleTagNamePattern -from .group_0125 import RepositoryRuleBranchNamePattern -from .group_0113 import RepositoryRuleRequiredDeployments -from .group_0117 import RepositoryRuleRequiredStatusChecks -from .group_0119 import RepositoryRuleCommitMessagePattern -from .group_0123 import RepositoryRuleCommitterEmailPattern -from .group_0121 import RepositoryRuleCommitAuthorEmailPattern -from .group_0112 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory -from .group_0109 import ( - RepositoryRuleOneof14, - RepositoryRuleOneof16, - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) +from .group_0136 import RepositoryRuleWorkflowsPropParameters -class RepositoryRuleset(GitHubModel): - """Repository ruleset +class RepositoryRuleWorkflows(GitHubModel): + """workflows - A set of rules to apply when specified conditions are met. + Require all changes made to a targeted branch to pass the specified workflows + before they can be merged. """ - id: int = Field(description="The ID of the ruleset") - name: str = Field(description="The name of the ruleset") - target: Missing[Literal["branch", "tag", "push"]] = Field( - default=UNSET, - description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", - ) - source_type: Missing[Literal["Repository", "Organization"]] = 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, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) + type: Literal["workflows"] = Field() + parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) -class RepositoryRulesetPropLinks(GitHubModel): - """RepositoryRulesetPropLinks""" +model_rebuild(RepositoryRuleWorkflows) - self_: Missing[RepositoryRulesetPropLinksPropSelf] = Field( - default=UNSET, alias="self" - ) - html: Missing[RepositoryRulesetPropLinksPropHtml] = 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", - "RepositoryRulesetPropLinksPropSelf", - "RepositoryRulesetPropLinksPropHtml", -) +__all__ = ("RepositoryRuleWorkflows",) diff --git a/githubkit/versions/v2022_11_28/models/group_0136.py b/githubkit/versions/v2022_11_28/models/group_0136.py index 19d31c199..dab0871f3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0136.py +++ b/githubkit/versions/v2022_11_28/models/group_0136.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime +from typing import List from pydantic import Field @@ -19,46 +18,36 @@ from githubkit.compat import GitHubModel, model_rebuild -class RuleSuitesItems(GitHubModel): - """RuleSuitesItems""" +class RepositoryRuleWorkflowsPropParameters(GitHubModel): + """RepositoryRuleWorkflowsPropParameters""" - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the rule insight." - ) - actor_id: Missing[int] = Field( - default=UNSET, description="The number that identifies the user." - ) - actor_name: Missing[str] = Field( - default=UNSET, description="The handle for the GitHub user account." - ) - before_sha: Missing[str] = Field( - default=UNSET, description="The first commit sha before the push evaluation." - ) - after_sha: Missing[str] = Field( - default=UNSET, description="The last commit sha in the push evaluation." + workflows: List[RepositoryRuleParamsWorkflowFileReference] = Field( + description="Workflows that must pass for this rule to pass." ) + + +class RepositoryRuleParamsWorkflowFileReference(GitHubModel): + """WorkflowFileReference + + A workflow that must run for this rule to pass + """ + + path: str = Field(description="The path to the workflow file") ref: Missing[str] = Field( - default=UNSET, description="The ref name that the evaluation ran on." - ) - repository_id: Missing[int] = Field( - default=UNSET, - description="The ID of the repository associated with the rule evaluation.", - ) - repository_name: Missing[str] = Field( - default=UNSET, - description="The name of the repository without the `.git` extension.", + default=UNSET, description="The ref (branch or tag) of the workflow file to use" ) - 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.", + repository_id: int = Field( + description="The ID of the repository where the workflow is defined" ) - evaluation_result: Missing[Literal["pass", "fail"]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`.", + sha: Missing[str] = Field( + default=UNSET, description="The commit SHA of the workflow file to use" ) -model_rebuild(RuleSuitesItems) +model_rebuild(RepositoryRuleWorkflowsPropParameters) +model_rebuild(RepositoryRuleParamsWorkflowFileReference) -__all__ = ("RuleSuitesItems",) +__all__ = ( + "RepositoryRuleWorkflowsPropParameters", + "RepositoryRuleParamsWorkflowFileReference", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0137.py b/githubkit/versions/v2022_11_28/models/group_0137.py index 1986e3106..6e30e60e8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0137.py +++ b/githubkit/versions/v2022_11_28/models/group_0137.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,90 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0138 import RepositoryRuleCodeScanningPropParameters -class RuleSuite(GitHubModel): - """Rule Suite - Response - """ - - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the rule insight." - ) - actor_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The number that identifies the user." - ) - actor_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The handle for the GitHub user account." - ) - before_sha: Missing[str] = Field( - default=UNSET, description="The first commit sha before the push evaluation." - ) - after_sha: Missing[str] = Field( - default=UNSET, description="The last commit sha in the push evaluation." - ) - ref: Missing[str] = Field( - default=UNSET, description="The ref name that the evaluation ran on." - ) - repository_id: Missing[int] = Field( - default=UNSET, - description="The ID of the repository associated with the rule evaluation.", - ) - repository_name: Missing[str] = Field( - default=UNSET, - description="The name of the repository without the `.git` extension.", - ) - pushed_at: Missing[datetime] = Field(default=UNSET) - result: Missing[Literal["pass", "fail", "bypass"]] = Field( - default=UNSET, - description="The result of the rule evaluations for rules with the `active` enforcement status.", - ) - evaluation_result: Missing[Literal["pass", "fail"]] = 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`.", - ) - rule_evaluations: Missing[List[RuleSuitePropRuleEvaluationsItems]] = Field( - default=UNSET, description="Details on the evaluated rules." - ) - - -class RuleSuitePropRuleEvaluationsItems(GitHubModel): - """RuleSuitePropRuleEvaluationsItems""" +class RepositoryRuleCodeScanning(GitHubModel): + """code_scanning - rule_source: Missing[RuleSuitePropRuleEvaluationsItemsPropRuleSource] = Field( - default=UNSET - ) - enforcement: Missing[Literal["active", "evaluate", "deleted ruleset"]] = Field( - default=UNSET, description="The enforcement level of this rule source." - ) - result: Missing[Literal["pass", "fail"]] = Field( - default=UNSET, - description="The result of the evaluation of the individual rule.", - ) - rule_type: Missing[str] = Field(default=UNSET, description="The type of rule.") - details: Missing[str] = Field( - default=UNSET, description="Any associated details with the rule evaluation." - ) - - -class RuleSuitePropRuleEvaluationsItemsPropRuleSource(GitHubModel): - """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" + Choose which tools must provide code scanning results before the reference is + updated. When configured, code scanning must be enabled and have results for + both the commit and the reference being updated. + """ - type: Missing[str] = Field(default=UNSET, description="The type of rule source.") - id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of the rule source." - ) - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the rule source." - ) + type: Literal["code_scanning"] = Field() + parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) -model_rebuild(RuleSuite) -model_rebuild(RuleSuitePropRuleEvaluationsItems) -model_rebuild(RuleSuitePropRuleEvaluationsItemsPropRuleSource) +model_rebuild(RepositoryRuleCodeScanning) -__all__ = ( - "RuleSuite", - "RuleSuitePropRuleEvaluationsItems", - "RuleSuitePropRuleEvaluationsItemsPropRuleSource", -) +__all__ = ("RepositoryRuleCodeScanning",) diff --git a/githubkit/versions/v2022_11_28/models/group_0138.py b/githubkit/versions/v2022_11_28/models/group_0138.py index 68d3ec209..912bccdc7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0138.py +++ b/githubkit/versions/v2022_11_28/models/group_0138.py @@ -9,39 +9,42 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class RepositoryRuleCodeScanningPropParameters(GitHubModel): + """RepositoryRuleCodeScanningPropParameters""" + + code_scanning_tools: List[RepositoryRuleParamsCodeScanningTool] = Field( + description="Tools that must provide code scanning results for this rule to pass." + ) -class RepositoryAdvisoryCredit(GitHubModel): - """RepositoryAdvisoryCredit - A credit given to a user for a repository security advisory. +class RepositoryRuleParamsCodeScanningTool(GitHubModel): + """CodeScanningTool + + A tool that must provide code scanning results for this rule to pass. """ - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] = Field(description="The type of credit the user is receiving.") - state: Literal["accepted", "declined", "pending"] = Field( - description="The state of the user's acceptance of the credit." + alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] = Field( + description='The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' + ) + security_alerts_threshold: Literal[ + "none", "critical", "high_or_higher", "medium_or_higher", "all" + ] = Field( + description='The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)."' ) + tool: str = Field(description="The name of a code scanning tool") -model_rebuild(RepositoryAdvisoryCredit) +model_rebuild(RepositoryRuleCodeScanningPropParameters) +model_rebuild(RepositoryRuleParamsCodeScanningTool) -__all__ = ("RepositoryAdvisoryCredit",) +__all__ = ( + "RepositoryRuleCodeScanningPropParameters", + "RepositoryRuleParamsCodeScanningTool", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0139.py b/githubkit/versions/v2022_11_28/models/group_0139.py index 5f01b3c74..2b26e71c6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0139.py +++ b/githubkit/versions/v2022_11_28/models/group_0139.py @@ -9,9 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import Annotated +from typing import Literal from pydantic import Field @@ -19,189 +17,34 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0076 import Team -from .group_0001 import SimpleUser -from .group_0138 import RepositoryAdvisoryCredit +class RepositoryRuleOneof17(GitHubModel): + """max_file_size -class RepositoryAdvisory(GitHubModel): - """RepositoryAdvisory + Note: max_file_size is in beta and subject to change. - A repository security advisory. + Prevent commits that exceed a specified file size limit from being pushed to the + commit. """ - ghsa_id: str = Field(description="The GitHub Security Advisory ID.") - cve_id: Union[str, None] = Field( - description="The Common Vulnerabilities and Exposures (CVE) ID." - ) - url: str = Field(description="The API URL for the advisory.") - html_url: str = Field(description="The URL for the advisory.") - summary: str = Field( - max_length=1024, description="A short summary of the advisory." - ) - description: Union[Annotated[str, Field(max_length=65535)], None] = Field( - description="A detailed description of what the advisory entails." - ) - severity: Union[None, Literal["critical", "high", "medium", "low"]] = Field( - description="The severity of the advisory." - ) - author: None = Field(description="The author of the advisory.") - publisher: None = Field(description="The publisher of the advisory.") - identifiers: List[RepositoryAdvisoryPropIdentifiersItems] = Field() - state: Literal["published", "closed", "withdrawn", "draft", "triage"] = Field( - description="The state of the advisory." - ) - created_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was created, in ISO 8601 format." - ) - updated_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was last updated, in ISO 8601 format." - ) - published_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was published, in ISO 8601 format." - ) - closed_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was closed, in ISO 8601 format." - ) - withdrawn_at: Union[datetime, None] = Field( - description="The date and time of when the advisory was withdrawn, in ISO 8601 format." - ) - submission: Union[RepositoryAdvisoryPropSubmission, None] = Field() - vulnerabilities: Union[List[RepositoryAdvisoryVulnerability], None] = Field() - cvss: Union[RepositoryAdvisoryPropCvss, None] = Field() - 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." - ) + type: Literal["max_file_size"] = Field() + parameters: Missing[RepositoryRuleOneof17PropParameters] = Field(default=UNSET) -class RepositoryAdvisoryVulnerabilityPropPackage(GitHubModel): - """RepositoryAdvisoryVulnerabilityPropPackage - - The name of the package affected by the vulnerability. - """ +class RepositoryRuleOneof17PropParameters(GitHubModel): + """RepositoryRuleOneof17PropParameters""" - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Union[str, None] = Field( - description="The unique package name within its ecosystem." + max_file_size: int = Field( + le=100.0, + ge=1.0, + description="The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).", ) -model_rebuild(RepositoryAdvisory) -model_rebuild(RepositoryAdvisoryPropIdentifiersItems) -model_rebuild(RepositoryAdvisoryPropSubmission) -model_rebuild(RepositoryAdvisoryPropCvss) -model_rebuild(RepositoryAdvisoryPropCwesItems) -model_rebuild(RepositoryAdvisoryPropCreditsItems) -model_rebuild(RepositoryAdvisoryVulnerability) -model_rebuild(RepositoryAdvisoryVulnerabilityPropPackage) +model_rebuild(RepositoryRuleOneof17) +model_rebuild(RepositoryRuleOneof17PropParameters) __all__ = ( - "RepositoryAdvisory", - "RepositoryAdvisoryPropIdentifiersItems", - "RepositoryAdvisoryPropSubmission", - "RepositoryAdvisoryPropCvss", - "RepositoryAdvisoryPropCwesItems", - "RepositoryAdvisoryPropCreditsItems", - "RepositoryAdvisoryVulnerability", - "RepositoryAdvisoryVulnerabilityPropPackage", + "RepositoryRuleOneof17", + "RepositoryRuleOneof17PropParameters", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0140.py b/githubkit/versions/v2022_11_28/models/group_0140.py index 4be9aa73e..78a21055e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0140.py +++ b/githubkit/versions/v2022_11_28/models/group_0140.py @@ -9,99 +9,142 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0115 import RepositoryRuleUpdate +from .group_0139 import RepositoryRuleOneof17 +from .group_0135 import RepositoryRuleWorkflows +from .group_0120 import RepositoryRulePullRequest +from .group_0111 import OrgRulesetConditionsOneof0 +from .group_0112 import OrgRulesetConditionsOneof1 +from .group_0113 import OrgRulesetConditionsOneof2 +from .group_0137 import RepositoryRuleCodeScanning +from .group_0103 import RepositoryRulesetConditions +from .group_0102 import RepositoryRulesetBypassActor +from .group_0132 import RepositoryRuleTagNamePattern +from .group_0130 import RepositoryRuleBranchNamePattern +from .group_0118 import RepositoryRuleRequiredDeployments +from .group_0122 import RepositoryRuleRequiredStatusChecks +from .group_0124 import RepositoryRuleCommitMessagePattern +from .group_0128 import RepositoryRuleCommitterEmailPattern +from .group_0126 import RepositoryRuleCommitAuthorEmailPattern +from .group_0117 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory +from .group_0114 import ( + RepositoryRuleOneof14, + RepositoryRuleOneof16, + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class ActionsBillingUsage(GitHubModel): - """ActionsBillingUsage""" - total_minutes_used: int = Field( - description="The sum of the free and paid GitHub Actions minutes used." - ) - total_paid_minutes_used: int = Field( - description="The total paid GitHub Actions minutes used." - ) - included_minutes: int = Field( - description="The amount of free GitHub Actions minutes available." - ) - minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdown = Field() +class RepositoryRuleset(GitHubModel): + """Repository ruleset + A set of rules to apply when specified conditions are met. + """ -class ActionsBillingUsagePropMinutesUsedBreakdown(GitHubModel): - """ActionsBillingUsagePropMinutesUsedBreakdown""" - - ubuntu: Missing[int] = Field( - default=UNSET, - alias="UBUNTU", - description="Total minutes used on Ubuntu runner machines.", - ) - macos: Missing[int] = Field( - default=UNSET, - alias="MACOS", - description="Total minutes used on macOS runner machines.", - ) - windows: Missing[int] = Field( - default=UNSET, - alias="WINDOWS", - description="Total minutes used on Windows runner machines.", - ) - ubuntu_4_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 4 core runner machines.", - ) - ubuntu_8_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 8 core runner machines.", - ) - ubuntu_16_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 16 core runner machines.", - ) - ubuntu_32_core: Missing[int] = Field( + id: int = Field(description="The ID of the ruleset") + name: str = Field(description="The name of the ruleset") + target: Missing[Literal["branch", "tag", "push"]] = Field( default=UNSET, - description="Total minutes used on Ubuntu 32 core runner machines.", + description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", ) - ubuntu_64_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Ubuntu 64 core runner machines.", + source_type: Missing[Literal["Repository", "Organization"]] = Field( + default=UNSET, description="The type of the source of the ruleset" ) - windows_4_core: Missing[int] = Field( - default=UNSET, - description="Total minutes used on Windows 4 core runner machines.", + source: str = Field(description="The name of the source") + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)." ) - windows_8_core: Missing[int] = Field( + bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( default=UNSET, - description="Total minutes used on Windows 8 core runner machines.", + description="The actors that can bypass the rules in this ruleset", ) - windows_16_core: Missing[int] = Field( + current_user_can_bypass: Missing[ + Literal["always", "pull_requests_only", "never"] + ] = 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." + 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, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + 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[RepositoryRulesetPropLinksPropHtml] = 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(ActionsBillingUsage) -model_rebuild(ActionsBillingUsagePropMinutesUsedBreakdown) +model_rebuild(RepositoryRuleset) +model_rebuild(RepositoryRulesetPropLinks) +model_rebuild(RepositoryRulesetPropLinksPropSelf) +model_rebuild(RepositoryRulesetPropLinksPropHtml) __all__ = ( - "ActionsBillingUsage", - "ActionsBillingUsagePropMinutesUsedBreakdown", + "RepositoryRuleset", + "RepositoryRulesetPropLinks", + "RepositoryRulesetPropLinksPropSelf", + "RepositoryRulesetPropLinksPropHtml", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0141.py b/githubkit/versions/v2022_11_28/models/group_0141.py index b7be403af..19d31c199 100644 --- a/githubkit/versions/v2022_11_28/models/group_0141.py +++ b/githubkit/versions/v2022_11_28/models/group_0141.py @@ -9,25 +9,56 @@ from __future__ import annotations +from typing import Literal +from datetime import datetime + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class PackagesBillingUsage(GitHubModel): - """PackagesBillingUsage""" +class RuleSuitesItems(GitHubModel): + """RuleSuitesItems""" - total_gigabytes_bandwidth_used: int = Field( - description="Sum of the free and paid storage space (GB) for GitHuub Packages." + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the rule insight." + ) + actor_id: Missing[int] = Field( + default=UNSET, description="The number that identifies the user." + ) + actor_name: Missing[str] = Field( + default=UNSET, description="The handle for the GitHub user account." + ) + before_sha: Missing[str] = Field( + default=UNSET, description="The first commit sha before the push evaluation." + ) + after_sha: Missing[str] = Field( + default=UNSET, description="The last commit sha in the push evaluation." + ) + ref: Missing[str] = Field( + default=UNSET, description="The ref name that the evaluation ran on." + ) + repository_id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository associated with the rule evaluation.", + ) + repository_name: Missing[str] = Field( + default=UNSET, + description="The name of the repository without the `.git` extension.", ) - total_paid_gigabytes_bandwidth_used: int = Field( - description="Total paid storage space (GB) for GitHuub Packages." + pushed_at: Missing[datetime] = Field(default=UNSET) + result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` enforcement status.", ) - included_gigabytes_bandwidth: int = Field( - description="Free storage space (GB) for GitHub Packages." + evaluation_result: Missing[Literal["pass", "fail"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`.", ) -model_rebuild(PackagesBillingUsage) +model_rebuild(RuleSuitesItems) -__all__ = ("PackagesBillingUsage",) +__all__ = ("RuleSuitesItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0142.py b/githubkit/versions/v2022_11_28/models/group_0142.py index 7f2b2b444..1986e3106 100644 --- a/githubkit/versions/v2022_11_28/models/group_0142.py +++ b/githubkit/versions/v2022_11_28/models/group_0142.py @@ -9,25 +9,99 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class CombinedBillingUsage(GitHubModel): - """CombinedBillingUsage""" +class RuleSuite(GitHubModel): + """Rule Suite + + Response + """ + + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the rule insight." + ) + actor_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The number that identifies the user." + ) + actor_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The handle for the GitHub user account." + ) + before_sha: Missing[str] = Field( + default=UNSET, description="The first commit sha before the push evaluation." + ) + after_sha: Missing[str] = Field( + default=UNSET, description="The last commit sha in the push evaluation." + ) + ref: Missing[str] = Field( + default=UNSET, description="The ref name that the evaluation ran on." + ) + repository_id: Missing[int] = Field( + default=UNSET, + description="The ID of the repository associated with the rule evaluation.", + ) + repository_name: Missing[str] = Field( + default=UNSET, + description="The name of the repository without the `.git` extension.", + ) + pushed_at: Missing[datetime] = Field(default=UNSET) + result: Missing[Literal["pass", "fail", "bypass"]] = Field( + default=UNSET, + description="The result of the rule evaluations for rules with the `active` enforcement status.", + ) + evaluation_result: Missing[Literal["pass", "fail"]] = 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`.", + ) + rule_evaluations: Missing[List[RuleSuitePropRuleEvaluationsItems]] = Field( + default=UNSET, description="Details on the evaluated rules." + ) + + +class RuleSuitePropRuleEvaluationsItems(GitHubModel): + """RuleSuitePropRuleEvaluationsItems""" - days_left_in_billing_cycle: int = Field( - description="Numbers of days left in billing cycle." + rule_source: Missing[RuleSuitePropRuleEvaluationsItemsPropRuleSource] = Field( + default=UNSET + ) + enforcement: Missing[Literal["active", "evaluate", "deleted ruleset"]] = Field( + default=UNSET, description="The enforcement level of this rule source." ) - estimated_paid_storage_for_month: int = Field( - description="Estimated storage space (GB) used in billing cycle." + result: Missing[Literal["pass", "fail"]] = Field( + default=UNSET, + description="The result of the evaluation of the individual rule.", + ) + rule_type: Missing[str] = Field(default=UNSET, description="The type of rule.") + details: Missing[str] = Field( + default=UNSET, description="Any associated details with the rule evaluation." + ) + + +class RuleSuitePropRuleEvaluationsItemsPropRuleSource(GitHubModel): + """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" + + type: Missing[str] = Field(default=UNSET, description="The type of rule source.") + id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of the rule source." ) - estimated_storage_for_month: int = Field( - description="Estimated sum of free and paid storage space (GB) used in billing cycle." + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the rule source." ) -model_rebuild(CombinedBillingUsage) +model_rebuild(RuleSuite) +model_rebuild(RuleSuitePropRuleEvaluationsItems) +model_rebuild(RuleSuitePropRuleEvaluationsItemsPropRuleSource) -__all__ = ("CombinedBillingUsage",) +__all__ = ( + "RuleSuite", + "RuleSuitePropRuleEvaluationsItems", + "RuleSuitePropRuleEvaluationsItemsPropRuleSource", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0143.py b/githubkit/versions/v2022_11_28/models/group_0143.py index c07b283c8..68d3ec209 100644 --- a/githubkit/versions/v2022_11_28/models/group_0143.py +++ b/githubkit/versions/v2022_11_28/models/group_0143.py @@ -9,131 +9,39 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0075 import TeamSimple +from .group_0001 import SimpleUser -class TeamFull(GitHubModel): - """Full Team +class RepositoryAdvisoryCredit(GitHubModel): + """RepositoryAdvisoryCredit - Groups of organization members that gives permissions on specified repositories. + A credit given to a user for a repository security advisory. """ - id: int = Field(description="Unique identifier of the team") - node_id: str = Field() - url: str = Field(description="URL for the team") - html_url: str = Field() - name: str = Field(description="Name of the team") - slug: str = Field() - description: Union[str, None] = Field() - privacy: Missing[Literal["closed", "secret"]] = Field( - default=UNSET, description="The level of privacy this team should have" + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") + state: Literal["accepted", "declined", "pending"] = Field( + description="The state of the user's acceptance of the credit." ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field(default=UNSET, description="The notification setting the team has set") - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - members_url: str = Field() - repositories_url: str = Field() - parent: Missing[Union[None, TeamSimple]] = Field(default=UNSET) - members_count: int = Field() - repos_count: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - organization: TeamOrganization = Field( - title="Team Organization", description="Team Organization" - ) - ldap_dn: Missing[str] = Field( - default=UNSET, - description="Distinguished Name (DN) that team maps to within LDAP environment", - ) - - -class TeamOrganization(GitHubModel): - """Team Organization - - Team Organization - """ - - login: str = Field() - id: int = Field() - node_id: str = Field() - url: str = Field() - repos_url: str = Field() - events_url: str = Field() - hooks_url: str = Field() - issues_url: str = Field() - members_url: str = Field() - public_members_url: str = Field() - avatar_url: str = Field() - description: Union[str, None] = Field() - name: Missing[Union[str, None]] = Field(default=UNSET) - company: Missing[Union[str, None]] = Field(default=UNSET) - blog: Missing[Union[str, None]] = Field(default=UNSET) - location: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - is_verified: Missing[bool] = Field(default=UNSET) - has_organization_projects: bool = Field() - has_repository_projects: bool = Field() - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() - html_url: str = Field() - created_at: datetime = Field() - type: str = Field() - total_private_repos: Missing[int] = Field(default=UNSET) - owned_private_repos: Missing[int] = Field(default=UNSET) - private_gists: Missing[Union[int, None]] = Field(default=UNSET) - disk_usage: Missing[Union[int, None]] = Field(default=UNSET) - collaborators: Missing[Union[int, None]] = Field(default=UNSET) - billing_email: Missing[Union[str, None]] = Field(default=UNSET) - plan: Missing[TeamOrganizationPropPlan] = Field(default=UNSET) - default_repository_permission: Missing[Union[str, None]] = Field(default=UNSET) - members_can_create_repositories: Missing[Union[bool, None]] = Field(default=UNSET) - two_factor_requirement_enabled: Missing[Union[bool, None]] = Field(default=UNSET) - members_allowed_repository_creation_type: Missing[str] = Field(default=UNSET) - members_can_create_public_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_private_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_internal_repositories: Missing[bool] = Field(default=UNSET) - members_can_create_pages: Missing[bool] = Field(default=UNSET) - members_can_create_public_pages: Missing[bool] = Field(default=UNSET) - members_can_create_private_pages: Missing[bool] = Field(default=UNSET) - members_can_fork_private_repositories: Missing[Union[bool, None]] = Field( - default=UNSET - ) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() - - -class TeamOrganizationPropPlan(GitHubModel): - """TeamOrganizationPropPlan""" - - name: str = Field() - space: int = Field() - private_repos: int = Field() - filled_seats: Missing[int] = Field(default=UNSET) - seats: Missing[int] = Field(default=UNSET) -model_rebuild(TeamFull) -model_rebuild(TeamOrganization) -model_rebuild(TeamOrganizationPropPlan) +model_rebuild(RepositoryAdvisoryCredit) -__all__ = ( - "TeamFull", - "TeamOrganization", - "TeamOrganizationPropPlan", -) +__all__ = ("RepositoryAdvisoryCredit",) diff --git a/githubkit/versions/v2022_11_28/models/group_0144.py b/githubkit/versions/v2022_11_28/models/group_0144.py index f716a0615..ad7bc0daf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0144.py +++ b/githubkit/versions/v2022_11_28/models/group_0144.py @@ -9,8 +9,9 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import Annotated from pydantic import Field @@ -18,43 +19,189 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0026 import Team from .group_0001 import SimpleUser -from .group_0034 import ReactionRollup +from .group_0143 import RepositoryAdvisoryCredit -class TeamDiscussion(GitHubModel): - """Team Discussion +class RepositoryAdvisory(GitHubModel): + """RepositoryAdvisory - A team discussion is a persistent record of a free-form conversation within a - team. + A repository security advisory. """ - author: Union[None, SimpleUser] = Field() - body: str = Field(description="The main text of the discussion.") - body_html: str = Field() - body_version: str = Field( - description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." + ghsa_id: str = Field(description="The GitHub Security Advisory ID.") + cve_id: Union[str, None] = Field( + description="The Common Vulnerabilities and Exposures (CVE) ID." ) - comments_count: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - last_edited_at: Union[datetime, None] = Field() - html_url: str = Field() - node_id: str = Field() - number: int = Field(description="The unique sequence number of a team discussion.") - pinned: bool = Field( - description="Whether or not this discussion should be pinned for easy retrieval." + url: str = Field(description="The API URL for the advisory.") + html_url: str = Field(description="The URL for the advisory.") + summary: str = Field( + max_length=1024, description="A short summary of the advisory." ) - private: bool = Field( - description="Whether or not this discussion should be restricted to team members and organization owners." + description: Union[Annotated[str, Field(max_length=65535)], None] = Field( + description="A detailed description of what the advisory entails." + ) + severity: Union[None, Literal["critical", "high", "medium", "low"]] = Field( + description="The severity of the advisory." + ) + author: None = Field(description="The author of the advisory.") + publisher: None = Field(description="The publisher of the advisory.") + identifiers: List[RepositoryAdvisoryPropIdentifiersItems] = Field() + state: Literal["published", "closed", "withdrawn", "draft", "triage"] = Field( + description="The state of the advisory." + ) + created_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was created, in ISO 8601 format." + ) + updated_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was last updated, in ISO 8601 format." + ) + published_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was published, in ISO 8601 format." + ) + closed_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was closed, in ISO 8601 format." + ) + withdrawn_at: Union[datetime, None] = Field( + description="The date and time of when the advisory was withdrawn, in ISO 8601 format." + ) + submission: Union[RepositoryAdvisoryPropSubmission, None] = Field() + vulnerabilities: Union[List[RepositoryAdvisoryVulnerability], None] = Field() + cvss: Union[RepositoryAdvisoryPropCvss, None] = Field() + cwes: Union[List[RepositoryAdvisoryPropCwesItems], None] = Field() + cwe_ids: Union[List[str], None] = Field(description="A list of only the CWE IDs.") + credits_: Union[List[RepositoryAdvisoryPropCreditsItems], None] = Field( + alias="credits" + ) + credits_detailed: Union[List[RepositoryAdvisoryCredit], None] = Field() + collaborating_users: Union[List[SimpleUser], None] = Field( + description="A list of users that collaborate on the advisory." + ) + collaborating_teams: Union[List[Team], None] = Field( + description="A list of teams that collaborate on the advisory." + ) + private_fork: None = Field( + description="A temporary private fork of the advisory's repository for collaborating on a fix." + ) + + +class RepositoryAdvisoryPropIdentifiersItems(GitHubModel): + """RepositoryAdvisoryPropIdentifiersItems""" + + type: Literal["CVE", "GHSA"] = Field(description="The type of identifier.") + value: str = Field(description="The identifier value.") + + +class RepositoryAdvisoryPropSubmission(GitHubModel): + """RepositoryAdvisoryPropSubmission""" + + accepted: bool = Field( + description="Whether a private vulnerability report was accepted by the repository's administrators." + ) + + +class RepositoryAdvisoryPropCvss(GitHubModel): + """RepositoryAdvisoryPropCvss""" + + vector_string: Union[str, None] = Field(description="The CVSS vector.") + score: Union[Annotated[float, Field(le=10.0)], None] = Field( + description="The CVSS score." + ) + + +class RepositoryAdvisoryPropCwesItems(GitHubModel): + """RepositoryAdvisoryPropCwesItems""" + + cwe_id: str = Field(description="The Common Weakness Enumeration (CWE) identifier.") + name: str = Field(description="The name of the CWE.") + + +class RepositoryAdvisoryPropCreditsItems(GitHubModel): + """RepositoryAdvisoryPropCreditsItems""" + + login: Missing[str] = Field( + default=UNSET, description="The username of the user credited." + ) + type: Missing[ + Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + ] = Field(default=UNSET, description="The type of credit the user is receiving.") + + +class RepositoryAdvisoryVulnerability(GitHubModel): + """RepositoryAdvisoryVulnerability + + A product affected by the vulnerability detailed in a repository security + advisory. + """ + + package: Union[RepositoryAdvisoryVulnerabilityPropPackage, None] = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Union[str, None] = Field( + description="The range of the package versions affected by the vulnerability." + ) + patched_versions: Union[str, None] = Field( + description="The package version(s) that resolve the vulnerability." + ) + vulnerable_functions: Union[List[str], None] = Field( + description="The functions in the package that are affected." + ) + + +class RepositoryAdvisoryVulnerabilityPropPackage(GitHubModel): + """RepositoryAdvisoryVulnerabilityPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Union[str, None] = Field( + description="The unique package name within its ecosystem." ) - team_url: str = Field() - title: str = Field(description="The title of the discussion.") - updated_at: datetime = Field() - url: str = Field() - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TeamDiscussion) +model_rebuild(RepositoryAdvisory) +model_rebuild(RepositoryAdvisoryPropIdentifiersItems) +model_rebuild(RepositoryAdvisoryPropSubmission) +model_rebuild(RepositoryAdvisoryPropCvss) +model_rebuild(RepositoryAdvisoryPropCwesItems) +model_rebuild(RepositoryAdvisoryPropCreditsItems) +model_rebuild(RepositoryAdvisoryVulnerability) +model_rebuild(RepositoryAdvisoryVulnerabilityPropPackage) -__all__ = ("TeamDiscussion",) +__all__ = ( + "RepositoryAdvisory", + "RepositoryAdvisoryPropIdentifiersItems", + "RepositoryAdvisoryPropSubmission", + "RepositoryAdvisoryPropCvss", + "RepositoryAdvisoryPropCwesItems", + "RepositoryAdvisoryPropCreditsItems", + "RepositoryAdvisoryVulnerability", + "RepositoryAdvisoryVulnerabilityPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0145.py b/githubkit/versions/v2022_11_28/models/group_0145.py index d95893b8e..4be9aa73e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0145.py +++ b/githubkit/versions/v2022_11_28/models/group_0145.py @@ -9,44 +9,99 @@ from __future__ import annotations -from typing import Union -from datetime import datetime - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0034 import ReactionRollup +class ActionsBillingUsage(GitHubModel): + """ActionsBillingUsage""" + + total_minutes_used: int = Field( + description="The sum of the free and paid GitHub Actions minutes used." + ) + total_paid_minutes_used: int = Field( + description="The total paid GitHub Actions minutes used." + ) + included_minutes: int = Field( + description="The amount of free GitHub Actions minutes available." + ) + minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdown = Field() -class TeamDiscussionComment(GitHubModel): - """Team Discussion Comment - A reply to a discussion within a team. - """ +class ActionsBillingUsagePropMinutesUsedBreakdown(GitHubModel): + """ActionsBillingUsagePropMinutesUsedBreakdown""" - author: Union[None, SimpleUser] = Field() - body: str = Field(description="The main text of the comment.") - body_html: str = Field() - body_version: str = Field( - description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." + ubuntu: Missing[int] = Field( + default=UNSET, + alias="UBUNTU", + description="Total minutes used on Ubuntu runner machines.", + ) + macos: Missing[int] = Field( + default=UNSET, + alias="MACOS", + description="Total minutes used on macOS runner machines.", + ) + windows: Missing[int] = Field( + default=UNSET, + alias="WINDOWS", + description="Total minutes used on Windows runner machines.", + ) + ubuntu_4_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 4 core runner machines.", + ) + ubuntu_8_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 8 core runner machines.", + ) + ubuntu_16_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 16 core runner machines.", + ) + ubuntu_32_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 32 core runner machines.", + ) + ubuntu_64_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Ubuntu 64 core runner machines.", + ) + windows_4_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 4 core runner machines.", + ) + windows_8_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 8 core runner machines.", + ) + windows_16_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 16 core runner machines.", + ) + windows_32_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 32 core runner machines.", + ) + windows_64_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on Windows 64 core runner machines.", + ) + macos_12_core: Missing[int] = Field( + default=UNSET, + description="Total minutes used on macOS 12 core runner machines.", ) - created_at: datetime = Field() - last_edited_at: Union[datetime, None] = Field() - discussion_url: str = Field() - html_url: str = Field() - node_id: str = Field() - number: int = Field( - description="The unique sequence number of a team discussion comment." + total: Missing[int] = Field( + default=UNSET, description="Total minutes used on all runner machines." ) - updated_at: datetime = Field() - url: str = Field() - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TeamDiscussionComment) +model_rebuild(ActionsBillingUsage) +model_rebuild(ActionsBillingUsagePropMinutesUsedBreakdown) -__all__ = ("TeamDiscussionComment",) +__all__ = ( + "ActionsBillingUsage", + "ActionsBillingUsagePropMinutesUsedBreakdown", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0146.py b/githubkit/versions/v2022_11_28/models/group_0146.py index 1b65a991f..b7be403af 100644 --- a/githubkit/versions/v2022_11_28/models/group_0146.py +++ b/githubkit/versions/v2022_11_28/models/group_0146.py @@ -9,32 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser - - -class Reaction(GitHubModel): - """Reaction - Reactions to conversations provide a way to help people express their feelings - more simply and effectively. - """ +class PackagesBillingUsage(GitHubModel): + """PackagesBillingUsage""" - id: int = Field() - node_id: str = Field() - user: Union[None, SimpleUser] = Field() - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] = Field(description="The reaction to use") - created_at: datetime = Field() + total_gigabytes_bandwidth_used: int = Field( + description="Sum of the free and paid storage space (GB) for GitHuub Packages." + ) + total_paid_gigabytes_bandwidth_used: int = Field( + description="Total paid storage space (GB) for GitHuub Packages." + ) + included_gigabytes_bandwidth: int = Field( + description="Free storage space (GB) for GitHub Packages." + ) -model_rebuild(Reaction) +model_rebuild(PackagesBillingUsage) -__all__ = ("Reaction",) +__all__ = ("PackagesBillingUsage",) diff --git a/githubkit/versions/v2022_11_28/models/group_0147.py b/githubkit/versions/v2022_11_28/models/group_0147.py index bf5d392cb..7f2b2b444 100644 --- a/githubkit/versions/v2022_11_28/models/group_0147.py +++ b/githubkit/versions/v2022_11_28/models/group_0147.py @@ -9,28 +9,25 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class TeamMembership(GitHubModel): - """Team Membership - - Team Membership - """ +class CombinedBillingUsage(GitHubModel): + """CombinedBillingUsage""" - url: str = Field() - role: Literal["member", "maintainer"] = Field( - default="member", description="The role of the user in the team." + days_left_in_billing_cycle: int = Field( + description="Numbers of days left in billing cycle." + ) + estimated_paid_storage_for_month: int = Field( + description="Estimated storage space (GB) used in billing cycle." ) - state: Literal["active", "pending"] = Field( - description="The state of the user's membership in the team." + estimated_storage_for_month: int = Field( + description="Estimated sum of free and paid storage space (GB) used in billing cycle." ) -model_rebuild(TeamMembership) +model_rebuild(CombinedBillingUsage) -__all__ = ("TeamMembership",) +__all__ = ("CombinedBillingUsage",) diff --git a/githubkit/versions/v2022_11_28/models/group_0148.py b/githubkit/versions/v2022_11_28/models/group_0148.py index d5b5146c9..a2f857b50 100644 --- a/githubkit/versions/v2022_11_28/models/group_0148.py +++ b/githubkit/versions/v2022_11_28/models/group_0148.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,51 +18,122 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +from .group_0025 import TeamSimple -class TeamProject(GitHubModel): - """Team Project +class TeamFull(GitHubModel): + """Full Team - A team's access to a project. + Groups of organization members that gives permissions on specified repositories. """ - owner_url: str = Field() - url: str = Field() - html_url: str = Field() - columns_url: str = Field() - id: int = Field() + id: int = Field(description="Unique identifier of the team") 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.", + 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" ) - private: Missing[bool] = Field( + ldap_dn: Missing[str] = Field( default=UNSET, - description="Whether the project is private or not. Only present when owner is an organization.", + description="Distinguished Name (DN) that team maps to within LDAP environment", ) - permissions: TeamProjectPropPermissions = Field() -class TeamProjectPropPermissions(GitHubModel): - """TeamProjectPropPermissions""" +class TeamOrganization(GitHubModel): + """Team Organization + + Team Organization + """ - read: bool = Field() - write: bool = Field() - admin: bool = Field() + login: str = Field() + id: int = Field() + node_id: str = Field() + url: str = Field() + repos_url: str = Field() + events_url: str = Field() + hooks_url: str = Field() + issues_url: str = Field() + members_url: str = Field() + public_members_url: str = Field() + avatar_url: str = Field() + description: Union[str, None] = Field() + name: Missing[Union[str, None]] = Field(default=UNSET) + company: Missing[Union[str, None]] = Field(default=UNSET) + blog: Missing[Union[str, None]] = Field(default=UNSET) + location: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + is_verified: Missing[bool] = Field(default=UNSET) + has_organization_projects: bool = Field() + has_repository_projects: bool = Field() + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() + html_url: str = Field() + 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(TeamProject) -model_rebuild(TeamProjectPropPermissions) +model_rebuild(TeamFull) +model_rebuild(TeamOrganization) +model_rebuild(TeamOrganizationPropPlan) __all__ = ( - "TeamProject", - "TeamProjectPropPermissions", + "TeamFull", + "TeamOrganization", + "TeamOrganizationPropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0149.py b/githubkit/versions/v2022_11_28/models/group_0149.py index 2665ccb3b..130b5e945 100644 --- a/githubkit/versions/v2022_11_28/models/group_0149.py +++ b/githubkit/versions/v2022_11_28/models/group_0149.py @@ -9,8 +9,8 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union from pydantic import Field @@ -19,153 +19,42 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -from .group_0016 import LicenseSimple +from .group_0038 import ReactionRollup -class TeamRepository(GitHubModel): - """Team Repository +class TeamDiscussion(GitHubModel): + """Team Discussion - A team's access to a repository. + A team discussion is a persistent record of a free-form conversation within a + team. """ - id: int = Field(description="Unique identifier of the repository") - node_id: str = Field() - name: str = Field(description="The name of the repository.") - full_name: str = Field() - license_: Union[None, LicenseSimple] = Field(alias="license") - forks: int = Field() - permissions: Missing[TeamRepositoryPropPermissions] = Field(default=UNSET) - role_name: Missing[str] = Field(default=UNSET) - owner: Union[None, SimpleUser] = Field() - private: bool = Field( - default=False, description="Whether the repository is private or public." + author: Union[None, SimpleUser] = Field() + body: str = Field(description="The main text of the 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." ) - 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_count: int = 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" + 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." ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", + private: bool = Field( + description="Whether or not this discussion should be restricted to team members and organization owners." ) - 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) + 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(TeamRepository) -model_rebuild(TeamRepositoryPropPermissions) +model_rebuild(TeamDiscussion) -__all__ = ( - "TeamRepository", - "TeamRepositoryPropPermissions", -) +__all__ = ("TeamDiscussion",) diff --git a/githubkit/versions/v2022_11_28/models/group_0150.py b/githubkit/versions/v2022_11_28/models/group_0150.py index b7cb92d6f..49b80467e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0150.py +++ b/githubkit/versions/v2022_11_28/models/group_0150.py @@ -19,31 +19,34 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser +from .group_0038 import ReactionRollup -class ProjectCard(GitHubModel): - """Project Card +class TeamDiscussionComment(GitHubModel): + """Team Discussion Comment - Project cards represent a scope of work. + A reply to a discussion within a team. """ - url: str = Field() - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - creator: Union[None, SimpleUser] = Field() + author: Union[None, SimpleUser] = Field() + body: str = Field(description="The main text of the comment.") + body_html: str = Field() + body_version: str = Field( + description="The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server." + ) created_at: datetime = Field() - updated_at: datetime = Field() - archived: Missing[bool] = Field( - default=UNSET, description="Whether or not the card is archived" + last_edited_at: Union[datetime, None] = Field() + 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." ) - 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() + updated_at: datetime = Field() + url: str = Field() + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(ProjectCard) +model_rebuild(TeamDiscussionComment) -__all__ = ("ProjectCard",) +__all__ = ("TeamDiscussionComment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0151.py b/githubkit/versions/v2022_11_28/models/group_0151.py index 08e6fd84f..1b65a991f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0151.py +++ b/githubkit/versions/v2022_11_28/models/group_0151.py @@ -10,28 +10,31 @@ from __future__ import annotations from datetime import datetime +from typing import Union, Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class ProjectColumn(GitHubModel): - """Project Column - Project columns contain cards of work. +class Reaction(GitHubModel): + """Reaction + + Reactions to conversations provide a way to help people express their feelings + more simply and effectively. """ - 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() node_id: str = Field() - name: str = Field(description="Name of the project column") + user: Union[None, SimpleUser] = Field() + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field(description="The reaction to use") created_at: datetime = Field() - updated_at: datetime = Field() -model_rebuild(ProjectColumn) +model_rebuild(Reaction) -__all__ = ("ProjectColumn",) +__all__ = ("Reaction",) diff --git a/githubkit/versions/v2022_11_28/models/group_0152.py b/githubkit/versions/v2022_11_28/models/group_0152.py index 667f2f8ab..bf5d392cb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0152.py +++ b/githubkit/versions/v2022_11_28/models/group_0152.py @@ -9,25 +9,28 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class TeamMembership(GitHubModel): + """Team Membership -class ProjectCollaboratorPermission(GitHubModel): - """Project Collaborator Permission - - Project Collaborator Permission + Team Membership """ - permission: str = Field() - user: Union[None, SimpleUser] = Field() + url: str = Field() + role: Literal["member", "maintainer"] = Field( + default="member", description="The role of the user in the team." + ) + state: Literal["active", "pending"] = Field( + description="The state of the user's membership in the team." + ) -model_rebuild(ProjectCollaboratorPermission) +model_rebuild(TeamMembership) -__all__ = ("ProjectCollaboratorPermission",) +__all__ = ("TeamMembership",) diff --git a/githubkit/versions/v2022_11_28/models/group_0153.py b/githubkit/versions/v2022_11_28/models/group_0153.py index 335b1a1b9..d5b5146c9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0153.py +++ b/githubkit/versions/v2022_11_28/models/group_0153.py @@ -9,20 +9,59 @@ from __future__ import annotations +from typing import Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser + + +class TeamProject(GitHubModel): + """Team Project + + A team's access to a project. + """ + + owner_url: str = Field() + url: str = Field() + html_url: str = Field() + columns_url: str = Field() + id: int = Field() + node_id: str = Field() + name: str = Field() + body: Union[str, None] = Field() + number: int = Field() + state: str = Field() + creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") + created_at: str = Field() + updated_at: str = Field() + organization_permission: Missing[str] = Field( + default=UNSET, + description="The organization permission for this project. Only present when owner is an organization.", + ) + private: Missing[bool] = Field( + default=UNSET, + description="Whether the project is private or not. Only present when owner is an organization.", + ) + permissions: TeamProjectPropPermissions = Field() + -class RateLimit(GitHubModel): - """Rate Limit""" +class TeamProjectPropPermissions(GitHubModel): + """TeamProjectPropPermissions""" - limit: int = Field() - remaining: int = Field() - reset: int = Field() - used: int = Field() + read: bool = Field() + write: bool = Field() + admin: bool = Field() -model_rebuild(RateLimit) +model_rebuild(TeamProject) +model_rebuild(TeamProjectPropPermissions) -__all__ = ("RateLimit",) +__all__ = ( + "TeamProject", + "TeamProjectPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0154.py b/githubkit/versions/v2022_11_28/models/group_0154.py index d62509404..2665ccb3b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0154.py +++ b/githubkit/versions/v2022_11_28/models/group_0154.py @@ -9,24 +9,163 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0153 import RateLimit -from .group_0155 import RateLimitOverviewPropResources +from .group_0001 import SimpleUser +from .group_0016 import LicenseSimple -class RateLimitOverview(GitHubModel): - """Rate Limit Overview +class TeamRepository(GitHubModel): + """Team Repository - Rate Limit Overview + A team's access to a repository. """ - resources: RateLimitOverviewPropResources = Field() - rate: RateLimit = Field(title="Rate Limit") + id: int = Field(description="Unique identifier of the repository") + node_id: str = Field() + name: str = Field(description="The name of the repository.") + full_name: str = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + forks: int = Field() + permissions: Missing[TeamRepositoryPropPermissions] = Field(default=UNSET) + role_name: Missing[str] = Field(default=UNSET) + owner: Union[None, SimpleUser] = Field() + private: bool = Field( + default=False, description="Whether the repository is private or public." + ) + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + downloads_url: str = Field() + events_url: str = Field() + forks_url: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + pulls_url: str = Field() + releases_url: str = Field() + ssh_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + clone_url: str = Field() + mirror_url: Union[str, None] = Field() + hooks_url: str = Field() + svn_url: str = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + size: int = Field() + default_branch: str = Field(description="The default branch of the repository.") + open_issues_count: int = Field() + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + topics: Missing[List[str]] = Field(default=UNSET) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_pages: bool = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + disabled: bool = Field( + description="Returns whether or not this repository disabled." + ) + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + pushed_at: Union[datetime, None] = Field() + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + 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(RateLimitOverview) +model_rebuild(TeamRepository) +model_rebuild(TeamRepositoryPropPermissions) -__all__ = ("RateLimitOverview",) +__all__ = ( + "TeamRepository", + "TeamRepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0155.py b/githubkit/versions/v2022_11_28/models/group_0155.py index 28cda3544..b7cb92d6f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0155.py +++ b/githubkit/versions/v2022_11_28/models/group_0155.py @@ -9,32 +9,41 @@ from __future__ import annotations +from typing import Union +from datetime import datetime + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0153 import RateLimit +from .group_0001 import SimpleUser + +class ProjectCard(GitHubModel): + """Project Card -class RateLimitOverviewPropResources(GitHubModel): - """RateLimitOverviewPropResources""" + Project cards represent a scope of work. + """ - core: RateLimit = Field(title="Rate Limit") - graphql: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - search: RateLimit = Field(title="Rate Limit") - code_search: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - source_import: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - integration_manifest: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - code_scanning_upload: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - actions_runner_registration: Missing[RateLimit] = Field( - default=UNSET, title="Rate Limit" + 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" ) - scim: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") - dependency_snapshots: Missing[RateLimit] = Field(default=UNSET, title="Rate Limit") + 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(RateLimitOverviewPropResources) +model_rebuild(ProjectCard) -__all__ = ("RateLimitOverviewPropResources",) +__all__ = ("ProjectCard",) diff --git a/githubkit/versions/v2022_11_28/models/group_0156.py b/githubkit/versions/v2022_11_28/models/group_0156.py index 04f67c7ff..08e6fd84f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0156.py +++ b/githubkit/versions/v2022_11_28/models/group_0156.py @@ -9,49 +9,29 @@ from __future__ import annotations -from typing import Union from datetime import datetime from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class Artifact(GitHubModel): - """Artifact +class ProjectColumn(GitHubModel): + """Project Column - An artifact + Project columns contain cards of work. """ - id: int = Field() - node_id: str = Field() - name: str = Field(description="The name of the artifact.") - size_in_bytes: int = Field(description="The size in bytes of the artifact.") url: str = Field() - archive_download_url: str = Field() - expired: bool = Field(description="Whether or not the artifact has expired.") - created_at: Union[datetime, None] = Field() - expires_at: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - workflow_run: Missing[Union[ArtifactPropWorkflowRun, None]] = Field(default=UNSET) - - -class ArtifactPropWorkflowRun(GitHubModel): - """ArtifactPropWorkflowRun""" - - id: Missing[int] = Field(default=UNSET) - repository_id: Missing[int] = Field(default=UNSET) - head_repository_id: Missing[int] = Field(default=UNSET) - head_branch: Missing[str] = Field(default=UNSET) - head_sha: Missing[str] = Field(default=UNSET) + 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(Artifact) -model_rebuild(ArtifactPropWorkflowRun) +model_rebuild(ProjectColumn) -__all__ = ( - "Artifact", - "ArtifactPropWorkflowRun", -) +__all__ = ("ProjectColumn",) diff --git a/githubkit/versions/v2022_11_28/models/group_0157.py b/githubkit/versions/v2022_11_28/models/group_0157.py index a51bdd0eb..667f2f8ab 100644 --- a/githubkit/versions/v2022_11_28/models/group_0157.py +++ b/githubkit/versions/v2022_11_28/models/group_0157.py @@ -9,44 +9,25 @@ from __future__ import annotations -from typing import List -from datetime import datetime +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class ActionsCacheList(GitHubModel): - """Repository actions caches - Repository actions caches - """ - - total_count: int = Field(description="Total number of caches") - actions_caches: List[ActionsCacheListPropActionsCachesItems] = Field( - description="Array of caches" - ) +class ProjectCollaboratorPermission(GitHubModel): + """Project Collaborator Permission + Project Collaborator Permission + """ -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) + permission: str = Field() + user: Union[None, SimpleUser] = Field() -model_rebuild(ActionsCacheList) -model_rebuild(ActionsCacheListPropActionsCachesItems) +model_rebuild(ProjectCollaboratorPermission) -__all__ = ( - "ActionsCacheList", - "ActionsCacheListPropActionsCachesItems", -) +__all__ = ("ProjectCollaboratorPermission",) diff --git a/githubkit/versions/v2022_11_28/models/group_0158.py b/githubkit/versions/v2022_11_28/models/group_0158.py index 2252539d9..335b1a1b9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0158.py +++ b/githubkit/versions/v2022_11_28/models/group_0158.py @@ -9,102 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class Job(GitHubModel): - """Job - - Information of a job execution in a workflow run - """ - - id: int = Field(description="The id of the job.") - run_id: int = Field(description="The id of the associated workflow run.") - run_url: str = Field() - run_attempt: Missing[int] = Field( - default=UNSET, - description="Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.", - ) - node_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being run.") - url: str = Field() - html_url: Union[str, None] = Field() - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ] = Field(description="The phase of the lifecycle that the job is currently in.") - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] = Field(description="The outcome of the job.") - created_at: datetime = Field( - description="The time that the job created, in ISO 8601 format." - ) - started_at: datetime = Field( - description="The time that the job started, in ISO 8601 format." - ) - completed_at: Union[datetime, None] = Field( - description="The time that the job finished, in ISO 8601 format." - ) - name: str = Field(description="The name of the job.") - steps: Missing[List[JobPropStepsItems]] = Field( - default=UNSET, description="Steps in this job." - ) - check_run_url: str = Field() - labels: List[str] = Field( - description='Labels for the workflow job. Specified by the "runs_on" attribute in the action\'s workflow file.' - ) - runner_id: Union[int, None] = Field( - description="The ID of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - runner_name: Union[str, None] = Field( - description="The name of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" - ) - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - head_branch: Union[str, None] = Field(description="The name of the current branch.") - - -class JobPropStepsItems(GitHubModel): - """JobPropStepsItems""" +class RateLimit(GitHubModel): + """Rate Limit""" - 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." - ) + limit: int = Field() + remaining: int = Field() + reset: int = Field() + used: int = Field() -model_rebuild(Job) -model_rebuild(JobPropStepsItems) +model_rebuild(RateLimit) -__all__ = ( - "Job", - "JobPropStepsItems", -) +__all__ = ("RateLimit",) diff --git a/githubkit/versions/v2022_11_28/models/group_0159.py b/githubkit/versions/v2022_11_28/models/group_0159.py index 897f77145..2044784a2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0159.py +++ b/githubkit/versions/v2022_11_28/models/group_0159.py @@ -9,30 +9,24 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0158 import RateLimit +from .group_0160 import RateLimitOverviewPropResources + -class OidcCustomSubRepo(GitHubModel): - """Actions OIDC subject customization for a repository +class RateLimitOverview(GitHubModel): + """Rate Limit Overview - Actions OIDC subject customization for a repository + Rate Limit Overview """ - 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.", - ) + resources: RateLimitOverviewPropResources = Field() + rate: RateLimit = Field(title="Rate Limit") -model_rebuild(OidcCustomSubRepo) +model_rebuild(RateLimitOverview) -__all__ = ("OidcCustomSubRepo",) +__all__ = ("RateLimitOverview",) diff --git a/githubkit/versions/v2022_11_28/models/group_0160.py b/githubkit/versions/v2022_11_28/models/group_0160.py index 4e5c3a572..c3b8b78da 100644 --- a/githubkit/versions/v2022_11_28/models/group_0160.py +++ b/githubkit/versions/v2022_11_28/models/group_0160.py @@ -9,24 +9,32 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0158 import RateLimit -class ActionsSecret(GitHubModel): - """Actions Secret - Set secrets for GitHub Actions. - """ +class RateLimitOverviewPropResources(GitHubModel): + """RateLimitOverviewPropResources""" - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = 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") -model_rebuild(ActionsSecret) +model_rebuild(RateLimitOverviewPropResources) -__all__ = ("ActionsSecret",) +__all__ = ("RateLimitOverviewPropResources",) diff --git a/githubkit/versions/v2022_11_28/models/group_0161.py b/githubkit/versions/v2022_11_28/models/group_0161.py index cb0c0f09c..04f67c7ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0161.py +++ b/githubkit/versions/v2022_11_28/models/group_0161.py @@ -9,26 +9,49 @@ from __future__ import annotations +from typing import Union from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ActionsVariable(GitHubModel): - """Actions Variable""" +class Artifact(GitHubModel): + """Artifact - 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." - ) + An artifact + """ + id: int = Field() + node_id: str = Field() + name: str = Field(description="The name of the artifact.") + size_in_bytes: int = Field(description="The size in bytes of the artifact.") + url: str = Field() + archive_download_url: str = Field() + expired: bool = Field(description="Whether or not the artifact has expired.") + created_at: Union[datetime, None] = Field() + expires_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + workflow_run: Missing[Union[ArtifactPropWorkflowRun, None]] = Field(default=UNSET) -model_rebuild(ActionsVariable) -__all__ = ("ActionsVariable",) +class ArtifactPropWorkflowRun(GitHubModel): + """ArtifactPropWorkflowRun""" + + id: Missing[int] = Field(default=UNSET) + repository_id: Missing[int] = Field(default=UNSET) + head_repository_id: Missing[int] = Field(default=UNSET) + head_branch: Missing[str] = Field(default=UNSET) + head_sha: Missing[str] = Field(default=UNSET) + + +model_rebuild(Artifact) +model_rebuild(ArtifactPropWorkflowRun) + +__all__ = ( + "Artifact", + "ArtifactPropWorkflowRun", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0162.py b/githubkit/versions/v2022_11_28/models/group_0162.py index e41a57331..a51bdd0eb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0162.py +++ b/githubkit/versions/v2022_11_28/models/group_0162.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from typing import List +from datetime import datetime from pydantic import Field @@ -18,22 +19,34 @@ from githubkit.compat import GitHubModel, model_rebuild -class ActionsRepositoryPermissions(GitHubModel): - """ActionsRepositoryPermissions""" +class ActionsCacheList(GitHubModel): + """Repository actions caches - 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`.", + Repository actions caches + """ + + total_count: int = Field(description="Total number of caches") + actions_caches: List[ActionsCacheListPropActionsCachesItems] = Field( + description="Array of caches" ) -model_rebuild(ActionsRepositoryPermissions) +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__ = ("ActionsRepositoryPermissions",) +__all__ = ( + "ActionsCacheList", + "ActionsCacheListPropActionsCachesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0163.py b/githubkit/versions/v2022_11_28/models/group_0163.py index 3a917b352..2252539d9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0163.py +++ b/githubkit/versions/v2022_11_28/models/group_0163.py @@ -9,21 +9,102 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ActionsWorkflowAccessToRepository(GitHubModel): - """ActionsWorkflowAccessToRepository""" +class Job(GitHubModel): + """Job - 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." + Information of a job execution in a workflow run + """ + + id: int = Field(description="The id of the job.") + run_id: int = Field(description="The id of the associated workflow run.") + run_url: str = Field() + run_attempt: Missing[int] = Field( + default=UNSET, + description="Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.", + ) + node_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being run.") + url: str = Field() + html_url: Union[str, None] = Field() + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] = Field(description="The phase of the lifecycle that the job is currently in.") + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] = Field(description="The outcome of the job.") + created_at: datetime = Field( + description="The time that the job created, in ISO 8601 format." + ) + started_at: datetime = Field( + description="The time that the job started, in ISO 8601 format." + ) + completed_at: Union[datetime, None] = Field( + description="The time that the job finished, in ISO 8601 format." + ) + name: str = Field(description="The name of the job.") + steps: Missing[List[JobPropStepsItems]] = Field( + default=UNSET, description="Steps in this job." + ) + check_run_url: str = Field() + labels: List[str] = Field( + description='Labels for the workflow job. Specified by the "runs_on" attribute in the action\'s workflow file.' + ) + runner_id: Union[int, None] = Field( + description="The ID of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + runner_name: Union[str, None] = Field( + description="The name of the runner to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + runner_group_name: Union[str, None] = Field( + description="The name of the runner group to which this job has been assigned. (If a runner hasn't yet been assigned, this will be null.)" + ) + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + head_branch: Union[str, None] = Field(description="The name of the current branch.") + + +class JobPropStepsItems(GitHubModel): + """JobPropStepsItems""" + + status: Literal["queued", "in_progress", "completed"] = Field( + description="The phase of the lifecycle that the job is currently in." + ) + conclusion: Union[str, None] = Field(description="The outcome of the job.") + name: str = Field(description="The name of the job.") + number: int = Field() + started_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="The time that the step started, in ISO 8601 format." + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="The time that the job finished, in ISO 8601 format." ) -model_rebuild(ActionsWorkflowAccessToRepository) +model_rebuild(Job) +model_rebuild(JobPropStepsItems) -__all__ = ("ActionsWorkflowAccessToRepository",) +__all__ = ( + "Job", + "JobPropStepsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0164.py b/githubkit/versions/v2022_11_28/models/group_0164.py index e33032524..897f77145 100644 --- a/githubkit/versions/v2022_11_28/models/group_0164.py +++ b/githubkit/versions/v2022_11_28/models/group_0164.py @@ -9,63 +9,30 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class 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 OidcCustomSubRepo(GitHubModel): + """Actions OIDC subject customization for a repository -class PullRequestMinimalPropBasePropRepo(GitHubModel): - """PullRequestMinimalPropBasePropRepo""" + Actions OIDC subject customization for a repository + """ - id: int = Field() - url: str = Field() - name: str = Field() + use_default: bool = Field( + description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." + ) + include_claim_keys: Missing[List[str]] = Field( + default=UNSET, + description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", + ) -model_rebuild(PullRequestMinimal) -model_rebuild(PullRequestMinimalPropHead) -model_rebuild(PullRequestMinimalPropHeadPropRepo) -model_rebuild(PullRequestMinimalPropBase) -model_rebuild(PullRequestMinimalPropBasePropRepo) +model_rebuild(OidcCustomSubRepo) -__all__ = ( - "PullRequestMinimal", - "PullRequestMinimalPropHead", - "PullRequestMinimalPropHeadPropRepo", - "PullRequestMinimalPropBase", - "PullRequestMinimalPropBasePropRepo", -) +__all__ = ("OidcCustomSubRepo",) diff --git a/githubkit/versions/v2022_11_28/models/group_0165.py b/githubkit/versions/v2022_11_28/models/group_0165.py index ec954ebac..4e5c3a572 100644 --- a/githubkit/versions/v2022_11_28/models/group_0165.py +++ b/githubkit/versions/v2022_11_28/models/group_0165.py @@ -9,7 +9,6 @@ from __future__ import annotations -from typing import Union from datetime import datetime from pydantic import Field @@ -17,50 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class SimpleCommit(GitHubModel): - """Simple Commit +class ActionsSecret(GitHubModel): + """Actions Secret - A commit. + Set secrets for GitHub Actions. """ - 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" - ) + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -class SimpleCommitPropAuthor(GitHubModel): - """SimpleCommitPropAuthor +model_rebuild(ActionsSecret) - Information about the Git author - """ - - name: str = Field(description="Name of the commit's author") - email: str = Field(description="Git email address of the commit's author") - - -class SimpleCommitPropCommitter(GitHubModel): - """SimpleCommitPropCommitter - - Information about the Git committer - """ - - name: str = Field(description="Name of the commit's committer") - email: str = Field(description="Git email address of the commit's committer") - - -model_rebuild(SimpleCommit) -model_rebuild(SimpleCommitPropAuthor) -model_rebuild(SimpleCommitPropCommitter) - -__all__ = ( - "SimpleCommit", - "SimpleCommitPropAuthor", - "SimpleCommitPropCommitter", -) +__all__ = ("ActionsSecret",) diff --git a/githubkit/versions/v2022_11_28/models/group_0166.py b/githubkit/versions/v2022_11_28/models/group_0166.py index d48b6e777..cb0c0f09c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0166.py +++ b/githubkit/versions/v2022_11_28/models/group_0166.py @@ -10,115 +10,25 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0165 import SimpleCommit -from .group_0051 import MinimalRepository -from .group_0164 import PullRequestMinimal +class ActionsVariable(GitHubModel): + """Actions Variable""" -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." + 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." ) - run_started_at: Missing[datetime] = Field( - default=UNSET, description="The start time of the latest run. Resets on re-run." + 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." ) - jobs_url: str = Field(description="The URL to the jobs for the workflow run.") - logs_url: str = Field( - description="The URL to download the logs for the workflow run." - ) - check_suite_url: str = Field(description="The URL to the associated check suite.") - artifacts_url: str = Field( - description="The URL to the artifacts for the workflow run." - ) - cancel_url: str = Field(description="The URL to cancel the workflow run.") - rerun_url: str = Field(description="The URL to rerun the workflow run.") - previous_attempt_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="The URL to the previous attempted run of this workflow, if one exists.", - ) - workflow_url: str = Field(description="The URL to the workflow.") - head_commit: Union[None, SimpleCommit] = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - head_repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - head_repository_id: Missing[int] = Field(default=UNSET) - display_title: str = Field( - description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow." - ) - - -class ReferencedWorkflow(GitHubModel): - """Referenced workflow - - A workflow referenced/reused by the initial caller workflow - """ - - path: str = Field() - sha: str = Field() - ref: Missing[str] = Field(default=UNSET) -model_rebuild(WorkflowRun) -model_rebuild(ReferencedWorkflow) +model_rebuild(ActionsVariable) -__all__ = ( - "WorkflowRun", - "ReferencedWorkflow", -) +__all__ = ("ActionsVariable",) diff --git a/githubkit/versions/v2022_11_28/models/group_0167.py b/githubkit/versions/v2022_11_28/models/group_0167.py index ac687db77..e41a57331 100644 --- a/githubkit/versions/v2022_11_28/models/group_0167.py +++ b/githubkit/versions/v2022_11_28/models/group_0167.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Literal from pydantic import Field @@ -18,49 +17,23 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class ActionsRepositoryPermissions(GitHubModel): + """ActionsRepositoryPermissions""" -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." + enabled: bool = Field( + description="Whether GitHub Actions is enabled on the repository." ) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - created_at: Missing[datetime] = Field( + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( default=UNSET, - description="The time that the environment was created, in ISO 8601 format.", + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", ) - updated_at: Missing[datetime] = Field( + selected_actions_url: Missing[str] = Field( default=UNSET, - description="The time that the environment was last updated, in ISO 8601 format.", + 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(EnvironmentApprovals) -model_rebuild(EnvironmentApprovalsPropEnvironmentsItems) +model_rebuild(ActionsRepositoryPermissions) -__all__ = ( - "EnvironmentApprovals", - "EnvironmentApprovalsPropEnvironmentsItems", -) +__all__ = ("ActionsRepositoryPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0168.py b/githubkit/versions/v2022_11_28/models/group_0168.py index 831ca354e..3a917b352 100644 --- a/githubkit/versions/v2022_11_28/models/group_0168.py +++ b/githubkit/versions/v2022_11_28/models/group_0168.py @@ -9,22 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReviewCustomGatesCommentRequired(GitHubModel): - """ReviewCustomGatesCommentRequired""" +class ActionsWorkflowAccessToRepository(GitHubModel): + """ActionsWorkflowAccessToRepository""" - environment_name: str = Field( - description="The name of the environment to approve or reject." - ) - comment: str = Field( - description="Comment associated with the pending deployment protection rule. **Required when state is not provided.**" + access_level: Literal["none", "user", "organization"] = Field( + description="Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the\nrepository.\n\n`none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization." ) -model_rebuild(ReviewCustomGatesCommentRequired) +model_rebuild(ActionsWorkflowAccessToRepository) -__all__ = ("ReviewCustomGatesCommentRequired",) +__all__ = ("ActionsWorkflowAccessToRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0169.py b/githubkit/versions/v2022_11_28/models/group_0169.py index 21a8d9682..e33032524 100644 --- a/githubkit/versions/v2022_11_28/models/group_0169.py +++ b/githubkit/versions/v2022_11_28/models/group_0169.py @@ -9,29 +9,63 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReviewCustomGatesStateRequired(GitHubModel): - """ReviewCustomGatesStateRequired""" +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""" - environment_name: str = Field( - description="The name of the environment to approve or reject." - ) - state: Literal["approved", "rejected"] = Field( - description="Whether to approve or reject deployment to the specified environments." - ) - comment: Missing[str] = Field( - default=UNSET, description="Optional comment to include with the review." - ) + id: int = Field() + url: str = Field() + name: str = Field() -model_rebuild(ReviewCustomGatesStateRequired) +model_rebuild(PullRequestMinimal) +model_rebuild(PullRequestMinimalPropHead) +model_rebuild(PullRequestMinimalPropHeadPropRepo) +model_rebuild(PullRequestMinimalPropBase) +model_rebuild(PullRequestMinimalPropBasePropRepo) -__all__ = ("ReviewCustomGatesStateRequired",) +__all__ = ( + "PullRequestMinimal", + "PullRequestMinimalPropHead", + "PullRequestMinimalPropHeadPropRepo", + "PullRequestMinimalPropBase", + "PullRequestMinimalPropBasePropRepo", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0170.py b/githubkit/versions/v2022_11_28/models/group_0170.py index cd5f70f84..ec954ebac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0170.py +++ b/githubkit/versions/v2022_11_28/models/group_0170.py @@ -9,65 +9,58 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0076 import Team -from .group_0001 import SimpleUser +class SimpleCommit(GitHubModel): + """Simple Commit -class PendingDeploymentPropReviewersItems(GitHubModel): - """PendingDeploymentPropReviewersItems""" + A commit. + """ - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." + 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" ) - reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) -class PendingDeployment(GitHubModel): - """Pending Deployment +class SimpleCommitPropAuthor(GitHubModel): + """SimpleCommitPropAuthor - Details of a deployment that is waiting for protection rules to pass + Information about the Git author """ - 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." - ) + name: str = Field(description="Name of the commit's author") + email: str = Field(description="Git email address of the commit's author") -class PendingDeploymentPropEnvironment(GitHubModel): - """PendingDeploymentPropEnvironment""" +class SimpleCommitPropCommitter(GitHubModel): + """SimpleCommitPropCommitter - 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) + 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(PendingDeploymentPropReviewersItems) -model_rebuild(PendingDeployment) -model_rebuild(PendingDeploymentPropEnvironment) +model_rebuild(SimpleCommit) +model_rebuild(SimpleCommitPropAuthor) +model_rebuild(SimpleCommitPropCommitter) __all__ = ( - "PendingDeploymentPropReviewersItems", - "PendingDeployment", - "PendingDeploymentPropEnvironment", + "SimpleCommit", + "SimpleCommitPropAuthor", + "SimpleCommitPropCommitter", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0171.py b/githubkit/versions/v2022_11_28/models/group_0171.py index 8375afbb3..7f9af30d7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0171.py +++ b/githubkit/versions/v2022_11_28/models/group_0171.py @@ -9,63 +9,116 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -from .group_0006 import Integration +from .group_0170 import SimpleCommit +from .group_0055 import MinimalRepository +from .group_0169 import PullRequestMinimal -class Deployment(GitHubModel): - """Deployment +class WorkflowRun(GitHubModel): + """Workflow Run - A request for a specific ref(branch,sha,tag) to be deployed + An invocation of a workflow """ - url: str = Field() - id: int = Field(description="Unique identifier of the deployment") + 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() - 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() + 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() - 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.", + actor: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - production_environment: Missing[bool] = Field( + 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="Specifies if the given environment is one that end-users directly interact with. Default: false.", + description="The URL to the previous attempted run of this workflow, if one exists.", ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET + 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 -class DeploymentPropPayloadOneof0(ExtraGitHubModel): - """DeploymentPropPayloadOneof0""" + A workflow referenced/reused by the initial caller workflow + """ + + path: str = Field() + sha: str = Field() + ref: Missing[str] = Field(default=UNSET) -model_rebuild(Deployment) -model_rebuild(DeploymentPropPayloadOneof0) +model_rebuild(WorkflowRun) +model_rebuild(ReferencedWorkflow) __all__ = ( - "Deployment", - "DeploymentPropPayloadOneof0", + "WorkflowRun", + "ReferencedWorkflow", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0172.py b/githubkit/versions/v2022_11_28/models/group_0172.py index 3cca2c7af..ac687db77 100644 --- a/githubkit/versions/v2022_11_28/models/group_0172.py +++ b/githubkit/versions/v2022_11_28/models/group_0172.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Literal from pydantic import Field @@ -17,98 +18,49 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class WorkflowRunUsage(GitHubModel): - """Workflow Run Usage - - Workflow Run Usage - """ - - billable: WorkflowRunUsagePropBillable = Field() - run_duration_ms: Missing[int] = Field(default=UNSET) +class EnvironmentApprovals(GitHubModel): + """Environment Approval -class WorkflowRunUsagePropBillable(GitHubModel): - """WorkflowRunUsagePropBillable""" + An entry in the reviews log for environment deployments + """ - ubuntu: Missing[WorkflowRunUsagePropBillablePropUbuntu] = Field( - default=UNSET, alias="UBUNTU" - ) - macos: Missing[WorkflowRunUsagePropBillablePropMacos] = Field( - default=UNSET, alias="MACOS" + environments: List[EnvironmentApprovalsPropEnvironmentsItems] = Field( + description="The list of environments that were approved or rejected" ) - windows: Missing[WorkflowRunUsagePropBillablePropWindows] = Field( - default=UNSET, alias="WINDOWS" + 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 WorkflowRunUsagePropBillablePropUbuntu(GitHubModel): - """WorkflowRunUsagePropBillablePropUbuntu""" +class EnvironmentApprovalsPropEnvironmentsItems(GitHubModel): + """EnvironmentApprovalsPropEnvironmentsItems""" - total_ms: int = Field() - jobs: int = Field() - job_runs: Missing[List[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems]] = ( - Field(default=UNSET) + 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." ) - - -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) + 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.", ) - - -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) + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the environment was last updated, in ISO 8601 format.", ) -class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems(GitHubModel): - """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" - - job_id: int = Field() - duration_ms: int = Field() - - -model_rebuild(WorkflowRunUsage) -model_rebuild(WorkflowRunUsagePropBillable) -model_rebuild(WorkflowRunUsagePropBillablePropUbuntu) -model_rebuild(WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems) -model_rebuild(WorkflowRunUsagePropBillablePropMacos) -model_rebuild(WorkflowRunUsagePropBillablePropMacosPropJobRunsItems) -model_rebuild(WorkflowRunUsagePropBillablePropWindows) -model_rebuild(WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems) +model_rebuild(EnvironmentApprovals) +model_rebuild(EnvironmentApprovalsPropEnvironmentsItems) __all__ = ( - "WorkflowRunUsage", - "WorkflowRunUsagePropBillable", - "WorkflowRunUsagePropBillablePropUbuntu", - "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems", - "WorkflowRunUsagePropBillablePropMacos", - "WorkflowRunUsagePropBillablePropMacosPropJobRunsItems", - "WorkflowRunUsagePropBillablePropWindows", - "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", + "EnvironmentApprovals", + "EnvironmentApprovalsPropEnvironmentsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0173.py b/githubkit/versions/v2022_11_28/models/group_0173.py index 23b0c91f9..831ca354e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0173.py +++ b/githubkit/versions/v2022_11_28/models/group_0173.py @@ -11,62 +11,20 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WorkflowUsage(GitHubModel): - """Workflow Usage +class ReviewCustomGatesCommentRequired(GitHubModel): + """ReviewCustomGatesCommentRequired""" - Workflow Usage - """ - - billable: WorkflowUsagePropBillable = Field() - - -class WorkflowUsagePropBillable(GitHubModel): - """WorkflowUsagePropBillable""" - - ubuntu: Missing[WorkflowUsagePropBillablePropUbuntu] = Field( - default=UNSET, alias="UBUNTU" + environment_name: str = Field( + description="The name of the environment to approve or reject." ) - macos: Missing[WorkflowUsagePropBillablePropMacos] = Field( - default=UNSET, alias="MACOS" + comment: str = Field( + description="Comment associated with the pending deployment protection rule. **Required when state is not provided.**" ) - windows: Missing[WorkflowUsagePropBillablePropWindows] = Field( - default=UNSET, alias="WINDOWS" - ) - - -class WorkflowUsagePropBillablePropUbuntu(GitHubModel): - """WorkflowUsagePropBillablePropUbuntu""" - - total_ms: Missing[int] = Field(default=UNSET) - - -class WorkflowUsagePropBillablePropMacos(GitHubModel): - """WorkflowUsagePropBillablePropMacos""" - - total_ms: Missing[int] = Field(default=UNSET) - - -class WorkflowUsagePropBillablePropWindows(GitHubModel): - """WorkflowUsagePropBillablePropWindows""" - - total_ms: Missing[int] = Field(default=UNSET) -model_rebuild(WorkflowUsage) -model_rebuild(WorkflowUsagePropBillable) -model_rebuild(WorkflowUsagePropBillablePropUbuntu) -model_rebuild(WorkflowUsagePropBillablePropMacos) -model_rebuild(WorkflowUsagePropBillablePropWindows) +model_rebuild(ReviewCustomGatesCommentRequired) -__all__ = ( - "WorkflowUsage", - "WorkflowUsagePropBillable", - "WorkflowUsagePropBillablePropUbuntu", - "WorkflowUsagePropBillablePropMacos", - "WorkflowUsagePropBillablePropWindows", -) +__all__ = ("ReviewCustomGatesCommentRequired",) diff --git a/githubkit/versions/v2022_11_28/models/group_0174.py b/githubkit/versions/v2022_11_28/models/group_0174.py index 468497ad7..21a8d9682 100644 --- a/githubkit/versions/v2022_11_28/models/group_0174.py +++ b/githubkit/versions/v2022_11_28/models/group_0174.py @@ -9,41 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class ReviewCustomGatesStateRequired(GitHubModel): + """ReviewCustomGatesStateRequired""" -class Activity(GitHubModel): - """Activity - - Activity - """ - - id: int = Field() - node_id: str = Field() - before: str = Field(description="The SHA of the commit before the activity.") - after: str = Field(description="The SHA of the commit after the activity.") - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + environment_name: str = Field( + description="The name of the environment to approve or reject." + ) + state: Literal["approved", "rejected"] = Field( + description="Whether to approve or reject deployment to the specified environments." + ) + comment: Missing[str] = Field( + default=UNSET, description="Optional comment to include with the review." ) - timestamp: datetime = Field(description="The time when the activity occurred.") - activity_type: Literal[ - "push", - "force_push", - "branch_deletion", - "branch_creation", - "pr_merge", - "merge_queue_merge", - ] = Field(description="The type of the activity that was performed.") - actor: Union[None, SimpleUser] = Field() -model_rebuild(Activity) +model_rebuild(ReviewCustomGatesStateRequired) -__all__ = ("Activity",) +__all__ = ("ReviewCustomGatesStateRequired",) diff --git a/githubkit/versions/v2022_11_28/models/group_0175.py b/githubkit/versions/v2022_11_28/models/group_0175.py index 245d14611..a0ec16653 100644 --- a/githubkit/versions/v2022_11_28/models/group_0175.py +++ b/githubkit/versions/v2022_11_28/models/group_0175.py @@ -9,27 +9,65 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0026 import Team +from .group_0001 import SimpleUser + + +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 Autolink(GitHubModel): - """Autolink reference +class PendingDeployment(GitHubModel): + """Pending Deployment - An autolink reference. + Details of a deployment that is waiting for protection rules to pass """ - id: int = Field() - key_prefix: str = Field(description="The prefix of a key that is linkified.") - url_template: str = Field( - description="A template for the target URL that is generated if a key was found." + environment: 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." ) - is_alphanumeric: bool = Field( - description="Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters." + current_user_can_approve: bool = Field( + description="Whether the currently authenticated user can approve the deployment" + ) + reviewers: List[PendingDeploymentPropReviewersItems] = Field( + description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed." + ) + + +class PendingDeploymentPropEnvironment(GitHubModel): + """PendingDeploymentPropEnvironment""" + + id: Missing[int] = Field(default=UNSET, description="The id of the environment.") + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( + default=UNSET, description="The name of the environment." ) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) -model_rebuild(Autolink) +model_rebuild(PendingDeploymentPropReviewersItems) +model_rebuild(PendingDeployment) +model_rebuild(PendingDeploymentPropEnvironment) -__all__ = ("Autolink",) +__all__ = ( + "PendingDeploymentPropReviewersItems", + "PendingDeployment", + "PendingDeploymentPropEnvironment", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0176.py b/githubkit/versions/v2022_11_28/models/group_0176.py index 3a5b5b6e7..8375afbb3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0176.py +++ b/githubkit/versions/v2022_11_28/models/group_0176.py @@ -9,25 +9,63 @@ 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.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + +from .group_0001 import SimpleUser +from .group_0006 import Integration -class CheckAutomatedSecurityFixes(GitHubModel): - """Check Automated Security Fixes +class Deployment(GitHubModel): + """Deployment - Check Automated Security Fixes + A request for a specific ref(branch,sha,tag) to be deployed """ - enabled: bool = Field( - description="Whether automated security fixes are enabled for the repository." + 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.", ) - paused: bool = Field( - description="Whether automated security fixes are paused for the repository." + production_environment: Missing[bool] = Field( + default=UNSET, + description="Specifies if the given environment is one that end-users directly interact with. Default: false.", ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + + +class DeploymentPropPayloadOneof0(ExtraGitHubModel): + """DeploymentPropPayloadOneof0""" -model_rebuild(CheckAutomatedSecurityFixes) +model_rebuild(Deployment) +model_rebuild(DeploymentPropPayloadOneof0) -__all__ = ("CheckAutomatedSecurityFixes",) +__all__ = ( + "Deployment", + "DeploymentPropPayloadOneof0", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0177.py b/githubkit/versions/v2022_11_28/models/group_0177.py index c6fea4983..3cca2c7af 100644 --- a/githubkit/versions/v2022_11_28/models/group_0177.py +++ b/githubkit/versions/v2022_11_28/models/group_0177.py @@ -9,43 +9,106 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0178 import ( - ProtectedBranchPullRequestReviewPropDismissalRestrictions, - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, -) - -class ProtectedBranchPullRequestReview(GitHubModel): - """Protected Branch Pull Request Review +class WorkflowRunUsage(GitHubModel): + """Workflow Run Usage - Protected Branch Pull Request Review + Workflow Run Usage """ - url: Missing[str] = Field(default=UNSET) - dismissal_restrictions: Missing[ - ProtectedBranchPullRequestReviewPropDismissalRestrictions - ] = Field(default=UNSET) - bypass_pull_request_allowances: Missing[ - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", + billable: WorkflowRunUsagePropBillable = Field() + run_duration_ms: Missing[int] = Field(default=UNSET) + + +class WorkflowRunUsagePropBillable(GitHubModel): + """WorkflowRunUsagePropBillable""" + + ubuntu: Missing[WorkflowRunUsagePropBillablePropUbuntu] = Field( + default=UNSET, alias="UBUNTU" ) - 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.", + macos: Missing[WorkflowRunUsagePropBillablePropMacos] = Field( + default=UNSET, alias="MACOS" + ) + windows: Missing[WorkflowRunUsagePropBillablePropWindows] = Field( + default=UNSET, alias="WINDOWS" ) -model_rebuild(ProtectedBranchPullRequestReview) +class WorkflowRunUsagePropBillablePropUbuntu(GitHubModel): + """WorkflowRunUsagePropBillablePropUbuntu""" -__all__ = ("ProtectedBranchPullRequestReview",) + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[List[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems]] = ( + Field(default=UNSET) + ) + + +class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems(GitHubModel): + """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" + + job_id: int = Field() + duration_ms: int = Field() + + +class WorkflowRunUsagePropBillablePropMacos(GitHubModel): + """WorkflowRunUsagePropBillablePropMacos""" + + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[List[WorkflowRunUsagePropBillablePropMacosPropJobRunsItems]] = ( + Field(default=UNSET) + ) + + +class WorkflowRunUsagePropBillablePropMacosPropJobRunsItems(GitHubModel): + """WorkflowRunUsagePropBillablePropMacosPropJobRunsItems""" + + job_id: int = Field() + duration_ms: int = Field() + + +class WorkflowRunUsagePropBillablePropWindows(GitHubModel): + """WorkflowRunUsagePropBillablePropWindows""" + + total_ms: int = Field() + jobs: int = Field() + job_runs: Missing[List[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems]] = ( + Field(default=UNSET) + ) + + +class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems(GitHubModel): + """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" + + job_id: int = Field() + duration_ms: int = Field() + + +model_rebuild(WorkflowRunUsage) +model_rebuild(WorkflowRunUsagePropBillable) +model_rebuild(WorkflowRunUsagePropBillablePropUbuntu) +model_rebuild(WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems) +model_rebuild(WorkflowRunUsagePropBillablePropMacos) +model_rebuild(WorkflowRunUsagePropBillablePropMacosPropJobRunsItems) +model_rebuild(WorkflowRunUsagePropBillablePropWindows) +model_rebuild(WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems) + +__all__ = ( + "WorkflowRunUsage", + "WorkflowRunUsagePropBillable", + "WorkflowRunUsagePropBillablePropUbuntu", + "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems", + "WorkflowRunUsagePropBillablePropMacos", + "WorkflowRunUsagePropBillablePropMacosPropJobRunsItems", + "WorkflowRunUsagePropBillablePropWindows", + "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0178.py b/githubkit/versions/v2022_11_28/models/group_0178.py index e4dc2ebcb..23b0c91f9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0178.py +++ b/githubkit/versions/v2022_11_28/models/group_0178.py @@ -9,60 +9,64 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0076 import Team -from .group_0001 import SimpleUser -from .group_0006 import Integration +class WorkflowUsage(GitHubModel): + """Workflow Usage + + Workflow Usage + """ + + billable: WorkflowUsagePropBillable = Field() -class ProtectedBranchPullRequestReviewPropDismissalRestrictions(GitHubModel): - """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" - users: Missing[List[SimpleUser]] = Field( - default=UNSET, description="The list of users with review dismissal access." +class WorkflowUsagePropBillable(GitHubModel): + """WorkflowUsagePropBillable""" + + ubuntu: Missing[WorkflowUsagePropBillablePropUbuntu] = Field( + default=UNSET, alias="UBUNTU" ) - teams: Missing[List[Team]] = Field( - default=UNSET, description="The list of teams with review dismissal access." + macos: Missing[WorkflowUsagePropBillablePropMacos] = Field( + default=UNSET, alias="MACOS" ) - apps: Missing[List[Union[Integration, None]]] = Field( - default=UNSET, description="The list of apps with review dismissal access." + windows: Missing[WorkflowUsagePropBillablePropWindows] = Field( + default=UNSET, alias="WINDOWS" ) - url: Missing[str] = Field(default=UNSET) - users_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) -class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances(GitHubModel): - """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances +class WorkflowUsagePropBillablePropUbuntu(GitHubModel): + """WorkflowUsagePropBillablePropUbuntu""" - Allow specific users, teams, or apps to bypass pull request requirements. - """ + total_ms: Missing[int] = Field(default=UNSET) - users: Missing[List[SimpleUser]] = Field( - default=UNSET, - description="The list of users allowed to bypass pull request requirements.", - ) - teams: Missing[List[Team]] = Field( - default=UNSET, - description="The list of teams allowed to bypass pull request requirements.", - ) - apps: Missing[List[Union[Integration, None]]] = Field( - default=UNSET, - description="The list of apps allowed to bypass pull request requirements.", - ) + +class WorkflowUsagePropBillablePropMacos(GitHubModel): + """WorkflowUsagePropBillablePropMacos""" + + total_ms: Missing[int] = Field(default=UNSET) + + +class WorkflowUsagePropBillablePropWindows(GitHubModel): + """WorkflowUsagePropBillablePropWindows""" + + total_ms: Missing[int] = Field(default=UNSET) -model_rebuild(ProtectedBranchPullRequestReviewPropDismissalRestrictions) -model_rebuild(ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances) +model_rebuild(WorkflowUsage) +model_rebuild(WorkflowUsagePropBillable) +model_rebuild(WorkflowUsagePropBillablePropUbuntu) +model_rebuild(WorkflowUsagePropBillablePropMacos) +model_rebuild(WorkflowUsagePropBillablePropWindows) __all__ = ( - "ProtectedBranchPullRequestReviewPropDismissalRestrictions", - "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", + "WorkflowUsage", + "WorkflowUsagePropBillable", + "WorkflowUsagePropBillablePropUbuntu", + "WorkflowUsagePropBillablePropMacos", + "WorkflowUsagePropBillablePropWindows", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0179.py b/githubkit/versions/v2022_11_28/models/group_0179.py index 23aa15d33..468497ad7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0179.py +++ b/githubkit/versions/v2022_11_28/models/group_0179.py @@ -9,139 +9,41 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -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) - - -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 Activity(GitHubModel): + """Activity + Activity + """ -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) - description: Missing[str] = Field(default=UNSET) - external_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - permissions: Missing[BranchRestrictionPolicyPropAppsItemsPropPermissions] = Field( - default=UNSET + id: int = Field() + 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/`." ) - 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) - - -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) + 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(BranchRestrictionPolicy) -model_rebuild(BranchRestrictionPolicyPropUsersItems) -model_rebuild(BranchRestrictionPolicyPropTeamsItems) -model_rebuild(BranchRestrictionPolicyPropAppsItems) -model_rebuild(BranchRestrictionPolicyPropAppsItemsPropOwner) -model_rebuild(BranchRestrictionPolicyPropAppsItemsPropPermissions) +model_rebuild(Activity) -__all__ = ( - "BranchRestrictionPolicy", - "BranchRestrictionPolicyPropUsersItems", - "BranchRestrictionPolicyPropTeamsItems", - "BranchRestrictionPolicyPropAppsItems", - "BranchRestrictionPolicyPropAppsItemsPropOwner", - "BranchRestrictionPolicyPropAppsItemsPropPermissions", -) +__all__ = ("Activity",) diff --git a/githubkit/versions/v2022_11_28/models/group_0180.py b/githubkit/versions/v2022_11_28/models/group_0180.py index 93536310f..245d14611 100644 --- a/githubkit/versions/v2022_11_28/models/group_0180.py +++ b/githubkit/versions/v2022_11_28/models/group_0180.py @@ -9,184 +9,27 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0179 import BranchRestrictionPolicy -from .group_0177 import ProtectedBranchPullRequestReview - -class BranchProtection(GitHubModel): - """Branch Protection +class Autolink(GitHubModel): + """Autolink reference - Branch Protection + An autolink reference. """ - 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 + 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." ) - 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 + is_alphanumeric: bool = Field( + description="Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters." ) - lock_branch: Missing[BranchProtectionPropLockBranch] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", - ) - allow_fork_syncing: Missing[BranchProtectionPropAllowForkSyncing] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", - ) - - -class ProtectedBranchAdminEnforced(GitHubModel): - """Protected Branch Admin Enforced - - Protected Branch Admin Enforced - """ - - url: str = Field() - enabled: bool = Field() - - -class BranchProtectionPropRequiredLinearHistory(GitHubModel): - """BranchProtectionPropRequiredLinearHistory""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowForcePushes(GitHubModel): - """BranchProtectionPropAllowForcePushes""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowDeletions(GitHubModel): - """BranchProtectionPropAllowDeletions""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropBlockCreations(GitHubModel): - """BranchProtectionPropBlockCreations""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropRequiredConversationResolution(GitHubModel): - """BranchProtectionPropRequiredConversationResolution""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropRequiredSignatures(GitHubModel): - """BranchProtectionPropRequiredSignatures""" - - url: str = Field() - enabled: bool = Field() - - -class BranchProtectionPropLockBranch(GitHubModel): - """BranchProtectionPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class BranchProtectionPropAllowForkSyncing(GitHubModel): - """BranchProtectionPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchRequiredStatusCheck(GitHubModel): - """Protected Branch Required Status Check - - Protected Branch Required Status Check - """ - - url: Missing[str] = Field(default=UNSET) - enforcement_level: Missing[str] = Field(default=UNSET) - contexts: List[str] = Field() - checks: List[ProtectedBranchRequiredStatusCheckPropChecksItems] = Field() - contexts_url: Missing[str] = Field(default=UNSET) - strict: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchRequiredStatusCheckPropChecksItems(GitHubModel): - """ProtectedBranchRequiredStatusCheckPropChecksItems""" - - context: str = Field() - app_id: Union[int, None] = Field() -model_rebuild(BranchProtection) -model_rebuild(ProtectedBranchAdminEnforced) -model_rebuild(BranchProtectionPropRequiredLinearHistory) -model_rebuild(BranchProtectionPropAllowForcePushes) -model_rebuild(BranchProtectionPropAllowDeletions) -model_rebuild(BranchProtectionPropBlockCreations) -model_rebuild(BranchProtectionPropRequiredConversationResolution) -model_rebuild(BranchProtectionPropRequiredSignatures) -model_rebuild(BranchProtectionPropLockBranch) -model_rebuild(BranchProtectionPropAllowForkSyncing) -model_rebuild(ProtectedBranchRequiredStatusCheck) -model_rebuild(ProtectedBranchRequiredStatusCheckPropChecksItems) +model_rebuild(Autolink) -__all__ = ( - "BranchProtection", - "ProtectedBranchAdminEnforced", - "BranchProtectionPropRequiredLinearHistory", - "BranchProtectionPropAllowForcePushes", - "BranchProtectionPropAllowDeletions", - "BranchProtectionPropBlockCreations", - "BranchProtectionPropRequiredConversationResolution", - "BranchProtectionPropRequiredSignatures", - "BranchProtectionPropLockBranch", - "BranchProtectionPropAllowForkSyncing", - "ProtectedBranchRequiredStatusCheck", - "ProtectedBranchRequiredStatusCheckPropChecksItems", -) +__all__ = ("Autolink",) diff --git a/githubkit/versions/v2022_11_28/models/group_0181.py b/githubkit/versions/v2022_11_28/models/group_0181.py index 6f4b0c02c..3a5b5b6e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0181.py +++ b/githubkit/versions/v2022_11_28/models/group_0181.py @@ -11,39 +11,23 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0180 import BranchProtection +class CheckAutomatedSecurityFixes(GitHubModel): + """Check Automated Security Fixes -class ShortBranch(GitHubModel): - """Short Branch - - Short Branch + Check Automated Security Fixes """ - name: str = Field() - commit: ShortBranchPropCommit = Field() - protected: bool = Field() - protection: Missing[BranchProtection] = Field( - default=UNSET, title="Branch Protection", description="Branch Protection" + enabled: bool = Field( + description="Whether automated security fixes are enabled for the repository." + ) + paused: bool = Field( + description="Whether automated security fixes are paused for the repository." ) - protection_url: Missing[str] = Field(default=UNSET) - - -class ShortBranchPropCommit(GitHubModel): - """ShortBranchPropCommit""" - - sha: str = Field() - url: str = Field() -model_rebuild(ShortBranch) -model_rebuild(ShortBranchPropCommit) +model_rebuild(CheckAutomatedSecurityFixes) -__all__ = ( - "ShortBranch", - "ShortBranchPropCommit", -) +__all__ = ("CheckAutomatedSecurityFixes",) diff --git a/githubkit/versions/v2022_11_28/models/group_0182.py b/githubkit/versions/v2022_11_28/models/group_0182.py index 8ddc071e1..7cd7cd4eb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0182.py +++ b/githubkit/versions/v2022_11_28/models/group_0182.py @@ -15,18 +15,37 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0183 import ( + ProtectedBranchPullRequestReviewPropDismissalRestrictions, + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances, +) -class GitUser(GitHubModel): - """Git User - Metaproperties for Git author/committer information. - """ - - name: Missing[str] = Field(default=UNSET) - email: Missing[str] = Field(default=UNSET) - date: Missing[str] = Field(default=UNSET) +class ProtectedBranchPullRequestReview(GitHubModel): + """Protected Branch Pull Request Review + Protected Branch Pull Request Review + """ -model_rebuild(GitUser) - -__all__ = ("GitUser",) + url: Missing[str] = Field(default=UNSET) + dismissal_restrictions: Missing[ + ProtectedBranchPullRequestReviewPropDismissalRestrictions + ] = Field(default=UNSET) + bypass_pull_request_allowances: Missing[ + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances + ] = Field( + default=UNSET, + description="Allow specific users, teams, or apps to bypass pull request requirements.", + ) + dismiss_stale_reviews: bool = Field() + require_code_owner_reviews: bool = Field() + required_approving_review_count: Missing[int] = Field(le=6.0, default=UNSET) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it.", + ) + + +model_rebuild(ProtectedBranchPullRequestReview) + +__all__ = ("ProtectedBranchPullRequestReview",) diff --git a/githubkit/versions/v2022_11_28/models/group_0183.py b/githubkit/versions/v2022_11_28/models/group_0183.py index 03ad6635a..de13bc6d0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0183.py +++ b/githubkit/versions/v2022_11_28/models/group_0183.py @@ -9,22 +9,60 @@ from __future__ import annotations -from typing import Union +from typing import List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0026 import Team +from .group_0001 import SimpleUser +from .group_0006 import Integration -class Verification(GitHubModel): - """Verification""" - verified: bool = Field() - reason: str = Field() - payload: Union[str, None] = Field() - signature: Union[str, None] = Field() +class ProtectedBranchPullRequestReviewPropDismissalRestrictions(GitHubModel): + """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" + users: Missing[List[SimpleUser]] = Field( + default=UNSET, description="The list of users with review dismissal access." + ) + teams: Missing[List[Team]] = Field( + default=UNSET, description="The list of teams with review dismissal access." + ) + apps: Missing[List[Union[Integration, None]]] = Field( + default=UNSET, description="The list of apps with review dismissal access." + ) + url: Missing[str] = Field(default=UNSET) + users_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) -model_rebuild(Verification) -__all__ = ("Verification",) +class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances(GitHubModel): + """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: Missing[List[SimpleUser]] = Field( + default=UNSET, + description="The list of users allowed to bypass pull request requirements.", + ) + teams: Missing[List[Team]] = Field( + default=UNSET, + description="The list of teams allowed to bypass pull request requirements.", + ) + apps: Missing[List[Union[Integration, None]]] = Field( + default=UNSET, + description="The list of apps allowed to bypass pull request requirements.", + ) + + +model_rebuild(ProtectedBranchPullRequestReviewPropDismissalRestrictions) +model_rebuild(ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances) + +__all__ = ( + "ProtectedBranchPullRequestReviewPropDismissalRestrictions", + "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0184.py b/githubkit/versions/v2022_11_28/models/group_0184.py index ce82b54ec..23aa15d33 100644 --- a/githubkit/versions/v2022_11_28/models/group_0184.py +++ b/githubkit/versions/v2022_11_28/models/group_0184.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from pydantic import Field @@ -18,27 +18,130 @@ from githubkit.compat import GitHubModel, model_rebuild -class DiffEntry(GitHubModel): - """Diff Entry +class BranchRestrictionPolicy(GitHubModel): + """Branch Restriction Policy - Diff Entry + Branch Restriction Policy """ - sha: str = Field() - filename: str = Field() - status: Literal[ - "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" - ] = Field() - additions: int = Field() - deletions: int = Field() - changes: int = Field() - blob_url: str = Field() - raw_url: str = Field() - contents_url: str = Field() - patch: Missing[str] = Field(default=UNSET) - previous_filename: Missing[str] = Field(default=UNSET) + url: str = Field() + users_url: str = Field() + teams_url: str = Field() + apps_url: str = Field() + users: List[BranchRestrictionPolicyPropUsersItems] = Field() + teams: List[BranchRestrictionPolicyPropTeamsItems] = Field() + apps: List[BranchRestrictionPolicyPropAppsItems] = Field() -model_rebuild(DiffEntry) +class BranchRestrictionPolicyPropUsersItems(GitHubModel): + """BranchRestrictionPolicyPropUsersItems""" -__all__ = ("DiffEntry",) + 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 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) + 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) + + +class BranchRestrictionPolicyPropAppsItemsPropPermissions(GitHubModel): + """BranchRestrictionPolicyPropAppsItemsPropPermissions""" + + metadata: Missing[str] = Field(default=UNSET) + contents: Missing[str] = Field(default=UNSET) + issues: Missing[str] = Field(default=UNSET) + single_file: Missing[str] = Field(default=UNSET) + + +model_rebuild(BranchRestrictionPolicy) +model_rebuild(BranchRestrictionPolicyPropUsersItems) +model_rebuild(BranchRestrictionPolicyPropTeamsItems) +model_rebuild(BranchRestrictionPolicyPropAppsItems) +model_rebuild(BranchRestrictionPolicyPropAppsItemsPropOwner) +model_rebuild(BranchRestrictionPolicyPropAppsItemsPropPermissions) + +__all__ = ( + "BranchRestrictionPolicy", + "BranchRestrictionPolicyPropUsersItems", + "BranchRestrictionPolicyPropTeamsItems", + "BranchRestrictionPolicyPropAppsItems", + "BranchRestrictionPolicyPropAppsItemsPropOwner", + "BranchRestrictionPolicyPropAppsItemsPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0185.py b/githubkit/versions/v2022_11_28/models/group_0185.py index 58d5d57a9..0f8e5afe9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0185.py +++ b/githubkit/versions/v2022_11_28/models/group_0185.py @@ -17,52 +17,176 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0184 import DiffEntry -from .group_0001 import SimpleUser -from .group_0186 import CommitPropCommit +from .group_0184 import BranchRestrictionPolicy +from .group_0182 import ProtectedBranchPullRequestReview -class Commit(GitHubModel): - """Commit +class BranchProtection(GitHubModel): + """Branch Protection - Commit + Branch Protection + """ + + url: Missing[str] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) + required_status_checks: Missing[ProtectedBranchRequiredStatusCheck] = Field( + default=UNSET, + title="Protected Branch Required Status Check", + description="Protected Branch Required Status Check", + ) + enforce_admins: Missing[ProtectedBranchAdminEnforced] = Field( + default=UNSET, + title="Protected Branch Admin Enforced", + description="Protected Branch Admin Enforced", + ) + required_pull_request_reviews: Missing[ProtectedBranchPullRequestReview] = Field( + default=UNSET, + title="Protected Branch Pull Request Review", + description="Protected Branch Pull Request Review", + ) + restrictions: Missing[BranchRestrictionPolicy] = Field( + default=UNSET, + title="Branch Restriction Policy", + description="Branch Restriction Policy", + ) + required_linear_history: Missing[BranchProtectionPropRequiredLinearHistory] = Field( + default=UNSET + ) + allow_force_pushes: Missing[BranchProtectionPropAllowForcePushes] = Field( + default=UNSET + ) + allow_deletions: Missing[BranchProtectionPropAllowDeletions] = Field(default=UNSET) + block_creations: Missing[BranchProtectionPropBlockCreations] = Field(default=UNSET) + required_conversation_resolution: Missing[ + BranchProtectionPropRequiredConversationResolution + ] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + protection_url: Missing[str] = Field(default=UNSET) + required_signatures: Missing[BranchProtectionPropRequiredSignatures] = Field( + default=UNSET + ) + lock_branch: Missing[BranchProtectionPropLockBranch] = Field( + default=UNSET, + description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", + ) + allow_fork_syncing: Missing[BranchProtectionPropAllowForkSyncing] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", + ) + + +class ProtectedBranchAdminEnforced(GitHubModel): + """Protected Branch Admin Enforced + + Protected Branch Admin Enforced """ url: str = Field() - sha: str = Field() - node_id: str = Field() - html_url: str = Field() - comments_url: str = Field() - commit: CommitPropCommit = Field() - author: Union[None, SimpleUser] = Field() - committer: Union[None, SimpleUser] = Field() - parents: List[CommitPropParentsItems] = Field() - stats: Missing[CommitPropStats] = Field(default=UNSET) - files: Missing[List[DiffEntry]] = Field(default=UNSET) - - -class CommitPropParentsItems(GitHubModel): - """CommitPropParentsItems""" - - sha: 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() - html_url: Missing[str] = Field(default=UNSET) + 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 CommitPropStats(GitHubModel): - """CommitPropStats""" +class ProtectedBranchRequiredStatusCheckPropChecksItems(GitHubModel): + """ProtectedBranchRequiredStatusCheckPropChecksItems""" - additions: Missing[int] = Field(default=UNSET) - deletions: Missing[int] = Field(default=UNSET) - total: Missing[int] = Field(default=UNSET) + context: str = Field() + app_id: Union[int, None] = Field() -model_rebuild(Commit) -model_rebuild(CommitPropParentsItems) -model_rebuild(CommitPropStats) +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__ = ( - "Commit", - "CommitPropParentsItems", - "CommitPropStats", + "BranchProtection", + "ProtectedBranchAdminEnforced", + "BranchProtectionPropRequiredLinearHistory", + "BranchProtectionPropAllowForcePushes", + "BranchProtectionPropAllowDeletions", + "BranchProtectionPropBlockCreations", + "BranchProtectionPropRequiredConversationResolution", + "BranchProtectionPropRequiredSignatures", + "BranchProtectionPropLockBranch", + "BranchProtectionPropAllowForkSyncing", + "ProtectedBranchRequiredStatusCheck", + "ProtectedBranchRequiredStatusCheckPropChecksItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0186.py b/githubkit/versions/v2022_11_28/models/group_0186.py index 6b029f4fa..afa038b97 100644 --- a/githubkit/versions/v2022_11_28/models/group_0186.py +++ b/githubkit/versions/v2022_11_28/models/group_0186.py @@ -9,41 +9,41 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0182 import GitUser -from .group_0183 import Verification +from .group_0185 import BranchProtection -class CommitPropCommit(GitHubModel): - """CommitPropCommit""" +class ShortBranch(GitHubModel): + """Short Branch - 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") + 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 CommitPropCommitPropTree(GitHubModel): - """CommitPropCommitPropTree""" +class ShortBranchPropCommit(GitHubModel): + """ShortBranchPropCommit""" sha: str = Field() url: str = Field() -model_rebuild(CommitPropCommit) -model_rebuild(CommitPropCommitPropTree) +model_rebuild(ShortBranch) +model_rebuild(ShortBranchPropCommit) __all__ = ( - "CommitPropCommit", - "CommitPropCommitPropTree", + "ShortBranch", + "ShortBranchPropCommit", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0187.py b/githubkit/versions/v2022_11_28/models/group_0187.py index 5902645af..8ddc071e1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0187.py +++ b/githubkit/versions/v2022_11_28/models/group_0187.py @@ -15,39 +15,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0185 import Commit -from .group_0180 import BranchProtection +class GitUser(GitHubModel): + """Git User -class BranchWithProtection(GitHubModel): - """Branch With Protection - - Branch With Protection + Metaproperties for Git author/committer information. """ - name: str = Field() - commit: Commit = Field(title="Commit", description="Commit") - links: BranchWithProtectionPropLinks = Field(alias="_links") - protected: bool = Field() - protection: BranchProtection = Field( - title="Branch Protection", description="Branch Protection" - ) - protection_url: str = Field() - pattern: Missing[str] = Field(default=UNSET) - required_approving_review_count: Missing[int] = Field(default=UNSET) - - -class BranchWithProtectionPropLinks(GitHubModel): - """BranchWithProtectionPropLinks""" - - html: str = Field() - self_: str = Field(alias="self") + name: Missing[str] = Field(default=UNSET) + email: Missing[str] = Field(default=UNSET) + date: Missing[str] = Field(default=UNSET) -model_rebuild(BranchWithProtection) -model_rebuild(BranchWithProtectionPropLinks) +model_rebuild(GitUser) -__all__ = ( - "BranchWithProtection", - "BranchWithProtectionPropLinks", -) +__all__ = ("GitUser",) diff --git a/githubkit/versions/v2022_11_28/models/group_0188.py b/githubkit/versions/v2022_11_28/models/group_0188.py index f63309f05..03ad6635a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0188.py +++ b/githubkit/versions/v2022_11_28/models/group_0188.py @@ -9,169 +9,22 @@ from __future__ import annotations -from typing import List, Union +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0179 import BranchRestrictionPolicy -from .group_0189 import ProtectedBranchPropRequiredPullRequestReviews +class Verification(GitHubModel): + """Verification""" -class ProtectedBranch(GitHubModel): - """Protected Branch + verified: bool = Field() + reason: str = Field() + payload: Union[str, None] = Field() + signature: Union[str, None] = Field() - 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.", - ) +model_rebuild(Verification) - -class ProtectedBranchPropRequiredSignatures(GitHubModel): - """ProtectedBranchPropRequiredSignatures""" - - url: str = Field() - enabled: bool = Field() - - -class ProtectedBranchPropEnforceAdmins(GitHubModel): - """ProtectedBranchPropEnforceAdmins""" - - url: str = Field() - enabled: bool = Field() - - -class ProtectedBranchPropRequiredLinearHistory(GitHubModel): - """ProtectedBranchPropRequiredLinearHistory""" - - enabled: bool = Field() - - -class ProtectedBranchPropAllowForcePushes(GitHubModel): - """ProtectedBranchPropAllowForcePushes""" - - enabled: bool = Field() - - -class ProtectedBranchPropAllowDeletions(GitHubModel): - """ProtectedBranchPropAllowDeletions""" - - enabled: bool = Field() - - -class ProtectedBranchPropRequiredConversationResolution(GitHubModel): - """ProtectedBranchPropRequiredConversationResolution""" - - enabled: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchPropBlockCreations(GitHubModel): - """ProtectedBranchPropBlockCreations""" - - enabled: bool = Field() - - -class ProtectedBranchPropLockBranch(GitHubModel): - """ProtectedBranchPropLockBranch - - Whether to set the branch as read-only. If this is true, users will not be able - to push to the branch. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class ProtectedBranchPropAllowForkSyncing(GitHubModel): - """ProtectedBranchPropAllowForkSyncing - - Whether users can pull changes from upstream when the branch is locked. Set to - `true` to allow fork syncing. Set to `false` to prevent fork syncing. - """ - - enabled: Missing[bool] = Field(default=UNSET) - - -class StatusCheckPolicy(GitHubModel): - """Status Check Policy - - Status Check Policy - """ - - url: str = Field() - strict: bool = Field() - contexts: List[str] = Field() - checks: List[StatusCheckPolicyPropChecksItems] = Field() - contexts_url: str = Field() - - -class StatusCheckPolicyPropChecksItems(GitHubModel): - """StatusCheckPolicyPropChecksItems""" - - context: str = Field() - app_id: Union[int, None] = Field() - - -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__ = ( - "ProtectedBranch", - "ProtectedBranchPropRequiredSignatures", - "ProtectedBranchPropEnforceAdmins", - "ProtectedBranchPropRequiredLinearHistory", - "ProtectedBranchPropAllowForcePushes", - "ProtectedBranchPropAllowDeletions", - "ProtectedBranchPropRequiredConversationResolution", - "ProtectedBranchPropBlockCreations", - "ProtectedBranchPropLockBranch", - "ProtectedBranchPropAllowForkSyncing", - "StatusCheckPolicy", - "StatusCheckPolicyPropChecksItems", -) +__all__ = ("Verification",) diff --git a/githubkit/versions/v2022_11_28/models/group_0189.py b/githubkit/versions/v2022_11_28/models/group_0189.py index a1e31704a..ce82b54ec 100644 --- a/githubkit/versions/v2022_11_28/models/group_0189.py +++ b/githubkit/versions/v2022_11_28/models/group_0189.py @@ -9,37 +9,36 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0190 import ( - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, -) +class DiffEntry(GitHubModel): + """Diff Entry -class ProtectedBranchPropRequiredPullRequestReviews(GitHubModel): - """ProtectedBranchPropRequiredPullRequestReviews""" + Diff Entry + """ - url: str = Field() - dismiss_stale_reviews: Missing[bool] = Field(default=UNSET) - require_code_owner_reviews: Missing[bool] = Field(default=UNSET) - required_approving_review_count: Missing[int] = Field(default=UNSET) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it.", - ) - dismissal_restrictions: Missing[ - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions - ] = Field(default=UNSET) - bypass_pull_request_allowances: Missing[ - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances - ] = Field(default=UNSET) + sha: str = Field() + filename: str = Field() + status: Literal[ + "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" + ] = Field() + additions: int = Field() + deletions: int = Field() + changes: int = Field() + blob_url: str = Field() + raw_url: str = Field() + contents_url: str = Field() + patch: Missing[str] = Field(default=UNSET) + previous_filename: Missing[str] = Field(default=UNSET) -model_rebuild(ProtectedBranchPropRequiredPullRequestReviews) +model_rebuild(DiffEntry) -__all__ = ("ProtectedBranchPropRequiredPullRequestReviews",) +__all__ = ("DiffEntry",) diff --git a/githubkit/versions/v2022_11_28/models/group_0190.py b/githubkit/versions/v2022_11_28/models/group_0190.py index d6ae9a52b..446ba2d22 100644 --- a/githubkit/versions/v2022_11_28/models/group_0190.py +++ b/githubkit/versions/v2022_11_28/models/group_0190.py @@ -17,40 +17,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0076 import Team +from .group_0189 import DiffEntry from .group_0001 import SimpleUser -from .group_0006 import Integration +from .group_0191 import CommitPropCommit -class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions( - GitHubModel -): - """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" +class Commit(GitHubModel): + """Commit + + Commit + """ url: str = Field() - users_url: str = Field() - teams_url: str = Field() - users: List[SimpleUser] = Field() - teams: List[Team] = Field() - apps: Missing[List[Union[Integration, None]]] = Field(default=UNSET) + sha: str = Field() + 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 ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( - GitHubModel -): - """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" +class EmptyObject(GitHubModel): + """Empty Object - users: List[SimpleUser] = Field() - teams: List[Team] = Field() - apps: Missing[List[Union[Integration, None]]] = Field(default=UNSET) + An object without any properties. + """ -model_rebuild(ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions) -model_rebuild( - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances -) +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__ = ( - "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", - "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "Commit", + "EmptyObject", + "CommitPropParentsItems", + "CommitPropStats", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0191.py b/githubkit/versions/v2022_11_28/models/group_0191.py index 54d28e22f..f164a6137 100644 --- a/githubkit/versions/v2022_11_28/models/group_0191.py +++ b/githubkit/versions/v2022_11_28/models/group_0191.py @@ -10,7 +10,6 @@ from __future__ import annotations from typing import Union -from datetime import datetime from pydantic import Field @@ -18,40 +17,33 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0006 import Integration +from .group_0187 import GitUser +from .group_0188 import Verification -class DeploymentSimple(GitHubModel): - """Deployment +class CommitPropCommit(GitHubModel): + """CommitPropCommit""" - A deployment created as the result of an Actions check run from a workflow that - references an environment - """ + url: str = Field() + author: Union[None, GitUser] = Field() + committer: Union[None, GitUser] = Field() + message: str = Field() + comment_count: int = Field() + tree: CommitPropCommitPropTree = Field() + verification: Missing[Verification] = Field(default=UNSET, title="Verification") + + +class CommitPropCommitPropTree(GitHubModel): + """CommitPropCommitPropTree""" + sha: str = Field() url: str = Field() - 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",) + + +model_rebuild(CommitPropCommit) +model_rebuild(CommitPropCommitPropTree) + +__all__ = ( + "CommitPropCommit", + "CommitPropCommitPropTree", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0192.py b/githubkit/versions/v2022_11_28/models/group_0192.py index a1139f033..e628dbc43 100644 --- a/githubkit/versions/v2022_11_28/models/group_0192.py +++ b/githubkit/versions/v2022_11_28/models/group_0192.py @@ -9,88 +9,45 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0006 import Integration -from .group_0191 import DeploymentSimple -from .group_0164 import PullRequestMinimal +from .group_0190 import Commit +from .group_0185 import BranchProtection -class CheckRun(GitHubModel): - """CheckRun +class BranchWithProtection(GitHubModel): + """Branch With Protection - A check performed on the code of a given code change + Branch With Protection """ - 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", + 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 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""" +class BranchWithProtectionPropLinks(GitHubModel): + """BranchWithProtectionPropLinks""" - id: int = Field() + html: str = Field() + self_: str = Field(alias="self") -model_rebuild(CheckRun) -model_rebuild(CheckRunPropOutput) -model_rebuild(CheckRunPropCheckSuite) +model_rebuild(BranchWithProtection) +model_rebuild(BranchWithProtectionPropLinks) __all__ = ( - "CheckRun", - "CheckRunPropOutput", - "CheckRunPropCheckSuite", + "BranchWithProtection", + "BranchWithProtectionPropLinks", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0193.py b/githubkit/versions/v2022_11_28/models/group_0193.py index 2dfb0cd0e..637a9c7b5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0193.py +++ b/githubkit/versions/v2022_11_28/models/group_0193.py @@ -9,31 +9,169 @@ from __future__ import annotations -from typing import Union +from typing import List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0184 import BranchRestrictionPolicy +from .group_0194 import ProtectedBranchPropRequiredPullRequestReviews -class CheckAnnotation(GitHubModel): - """Check Annotation - Check Annotation +class ProtectedBranch(GitHubModel): + """Protected Branch + + Branch protections protect branches + """ + + url: str = Field() + required_status_checks: Missing[StatusCheckPolicy] = Field( + default=UNSET, title="Status Check Policy", description="Status Check Policy" + ) + required_pull_request_reviews: Missing[ + ProtectedBranchPropRequiredPullRequestReviews + ] = Field(default=UNSET) + required_signatures: Missing[ProtectedBranchPropRequiredSignatures] = Field( + default=UNSET + ) + enforce_admins: Missing[ProtectedBranchPropEnforceAdmins] = Field(default=UNSET) + required_linear_history: Missing[ProtectedBranchPropRequiredLinearHistory] = Field( + default=UNSET + ) + allow_force_pushes: Missing[ProtectedBranchPropAllowForcePushes] = Field( + default=UNSET + ) + allow_deletions: Missing[ProtectedBranchPropAllowDeletions] = Field(default=UNSET) + restrictions: Missing[BranchRestrictionPolicy] = Field( + default=UNSET, + title="Branch Restriction Policy", + description="Branch Restriction Policy", + ) + required_conversation_resolution: Missing[ + ProtectedBranchPropRequiredConversationResolution + ] = Field(default=UNSET) + block_creations: Missing[ProtectedBranchPropBlockCreations] = Field(default=UNSET) + lock_branch: Missing[ProtectedBranchPropLockBranch] = Field( + default=UNSET, + description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch.", + ) + allow_fork_syncing: Missing[ProtectedBranchPropAllowForkSyncing] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing.", + ) + + +class ProtectedBranchPropRequiredSignatures(GitHubModel): + """ProtectedBranchPropRequiredSignatures""" + + url: str = Field() + enabled: bool = Field() + + +class ProtectedBranchPropEnforceAdmins(GitHubModel): + """ProtectedBranchPropEnforceAdmins""" + + url: str = Field() + enabled: bool = Field() + + +class ProtectedBranchPropRequiredLinearHistory(GitHubModel): + """ProtectedBranchPropRequiredLinearHistory""" + + enabled: bool = Field() + + +class ProtectedBranchPropAllowForcePushes(GitHubModel): + """ProtectedBranchPropAllowForcePushes""" + + enabled: bool = Field() + + +class ProtectedBranchPropAllowDeletions(GitHubModel): + """ProtectedBranchPropAllowDeletions""" + + enabled: bool = Field() + + +class ProtectedBranchPropRequiredConversationResolution(GitHubModel): + """ProtectedBranchPropRequiredConversationResolution""" + + enabled: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchPropBlockCreations(GitHubModel): + """ProtectedBranchPropBlockCreations""" + + enabled: bool = Field() + + +class ProtectedBranchPropLockBranch(GitHubModel): + """ProtectedBranchPropLockBranch + + Whether to set the branch as read-only. If this is true, users will not be able + to push to the branch. + """ + + enabled: Missing[bool] = Field(default=UNSET) + + +class ProtectedBranchPropAllowForkSyncing(GitHubModel): + """ProtectedBranchPropAllowForkSyncing + + Whether users can pull changes from upstream when the branch is locked. Set to + `true` to allow fork syncing. Set to `false` to prevent fork syncing. + """ + + enabled: Missing[bool] = Field(default=UNSET) + + +class StatusCheckPolicy(GitHubModel): + """Status Check Policy + + Status Check Policy """ - path: str = Field() - start_line: int = Field() - end_line: int = Field() - start_column: Union[int, None] = Field() - end_column: Union[int, None] = Field() - annotation_level: Union[str, None] = Field() - title: Union[str, None] = Field() - message: Union[str, None] = Field() - raw_details: Union[str, None] = Field() - blob_href: str = Field() + url: str = Field() + 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(CheckAnnotation) +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__ = ("CheckAnnotation",) +__all__ = ( + "ProtectedBranch", + "ProtectedBranchPropRequiredSignatures", + "ProtectedBranchPropEnforceAdmins", + "ProtectedBranchPropRequiredLinearHistory", + "ProtectedBranchPropAllowForcePushes", + "ProtectedBranchPropAllowDeletions", + "ProtectedBranchPropRequiredConversationResolution", + "ProtectedBranchPropBlockCreations", + "ProtectedBranchPropLockBranch", + "ProtectedBranchPropAllowForkSyncing", + "StatusCheckPolicy", + "StatusCheckPolicyPropChecksItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0194.py b/githubkit/versions/v2022_11_28/models/group_0194.py index ecedc07a6..a43a8ddea 100644 --- a/githubkit/versions/v2022_11_28/models/group_0194.py +++ b/githubkit/versions/v2022_11_28/models/group_0194.py @@ -9,83 +9,37 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0006 import Integration -from .group_0165 import SimpleCommit -from .group_0051 import MinimalRepository -from .group_0164 import PullRequestMinimal - +from .group_0195 import ( + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions, + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances, +) -class CheckSuite(GitHubModel): - """CheckSuite - A suite of checks performed on the code of a given code change - """ +class ProtectedBranchPropRequiredPullRequestReviews(GitHubModel): + """ProtectedBranchPropRequiredPullRequestReviews""" - id: int = Field() - node_id: str = Field() - head_branch: Union[str, None] = Field() - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - status: Union[ - None, - Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ], - ] = Field( - description="The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites." - ) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "startup_failure", - "stale", - ], - ] = Field() - url: Union[str, None] = Field() - before: Union[str, None] = Field() - after: Union[str, None] = Field() - pull_requests: Union[List[PullRequestMinimal], None] = Field() - app: Union[None, Integration, None] = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" + 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.", ) - 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) + dismissal_restrictions: Missing[ + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions + ] = Field(default=UNSET) + bypass_pull_request_allowances: Missing[ + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances + ] = Field(default=UNSET) -class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" +model_rebuild(ProtectedBranchPropRequiredPullRequestReviews) - total_count: int = Field() - check_suites: List[CheckSuite] = Field() - - -model_rebuild(CheckSuite) -model_rebuild(ReposOwnerRepoCommitsRefCheckSuitesGetResponse200) - -__all__ = ( - "CheckSuite", - "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", -) +__all__ = ("ProtectedBranchPropRequiredPullRequestReviews",) diff --git a/githubkit/versions/v2022_11_28/models/group_0195.py b/githubkit/versions/v2022_11_28/models/group_0195.py index 11fc599a6..592921a36 100644 --- a/githubkit/versions/v2022_11_28/models/group_0195.py +++ b/githubkit/versions/v2022_11_28/models/group_0195.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import List, Union from pydantic import Field @@ -17,42 +17,40 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0051 import MinimalRepository +from .group_0026 import Team +from .group_0001 import SimpleUser +from .group_0006 import Integration -class CheckSuitePreference(GitHubModel): - """Check Suite Preference +class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions( + GitHubModel +): + """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" - Check suite configuration preferences for a repository. - """ + 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) - preferences: CheckSuitePreferencePropPreferences = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) +class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( + GitHubModel +): + """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" -class CheckSuitePreferencePropPreferences(GitHubModel): - """CheckSuitePreferencePropPreferences""" + users: List[SimpleUser] = Field() + teams: List[Team] = Field() + apps: Missing[List[Union[Integration, None]]] = Field(default=UNSET) - auto_trigger_checks: Missing[ - List[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems] - ] = Field(default=UNSET) - -class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems(GitHubModel): - """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" - - app_id: int = Field() - setting: bool = Field() - - -model_rebuild(CheckSuitePreference) -model_rebuild(CheckSuitePreferencePropPreferences) -model_rebuild(CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems) +model_rebuild(ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions) +model_rebuild( + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances +) __all__ = ( - "CheckSuitePreference", - "CheckSuitePreferencePropPreferences", - "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", + "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions", + "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0196.py b/githubkit/versions/v2022_11_28/models/group_0196.py index 92a8fcb98..54d28e22f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0196.py +++ b/githubkit/versions/v2022_11_28/models/group_0196.py @@ -9,9 +9,8 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import Union, Literal -from typing_extensions import Annotated from pydantic import Field @@ -19,55 +18,40 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0068 import CodeScanningAnalysisTool -from .group_0069 import CodeScanningAlertInstance -from .group_0067 import CodeScanningAlertRuleSummary +from .group_0006 import Integration -class CodeScanningAlertItems(GitHubModel): - """CodeScanningAlertItems""" +class DeploymentSimple(GitHubModel): + """Deployment - number: int = Field(description="The security alert number.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: Missing[datetime] = Field( + A deployment created as the result of an Actions check run from a workflow that + references an environment + """ + + url: str = Field() + id: int = Field(description="Unique identifier of the deployment") + node_id: str = Field() + task: str = Field(description="Parameter to specify a task to execute") + original_environment: Missing[str] = Field(default=UNSET) + environment: str = Field(description="Name for the target deployment environment.") + description: Union[str, None] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + statuses_url: str = Field() + repository_url: str = Field() + transient_environment: Missing[bool] = Field( default=UNSET, - description="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." + description="Specifies if the given environment is will no longer exist at some point in the future. Default: false.", ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - fixed_at: Missing[Union[datetime, None]] = Field( + production_environment: Missing[bool] = 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="Specifies if the given environment is one that end-users directly interact with. Default: false.", ) - 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.", - ) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) - rule: CodeScanningAlertRuleSummary = Field() - tool: CodeScanningAnalysisTool = Field() - most_recent_instance: CodeScanningAlertInstance = Field() -model_rebuild(CodeScanningAlertItems) +model_rebuild(DeploymentSimple) -__all__ = ("CodeScanningAlertItems",) +__all__ = ("DeploymentSimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0197.py b/githubkit/versions/v2022_11_28/models/group_0197.py index 905ccc7c6..bd2f579d6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0197.py +++ b/githubkit/versions/v2022_11_28/models/group_0197.py @@ -11,7 +11,6 @@ from datetime import datetime from typing import List, Union, Literal -from typing_extensions import Annotated from pydantic import Field @@ -19,95 +18,79 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0068 import CodeScanningAnalysisTool -from .group_0069 import CodeScanningAlertInstance +from .group_0006 import Integration +from .group_0196 import DeploymentSimple +from .group_0169 import PullRequestMinimal -class CodeScanningAlert(GitHubModel): - """CodeScanningAlert""" +class CheckRun(GitHubModel): + """CheckRun - number: int = Field(description="The security alert number.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: str = Field( - description="The REST API URL for fetching the list of instances for an alert." - ) - state: 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"] + 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="**Required when the state is dismissed.** The reason for dismissing or closing the alert." - ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) + description="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", ) - rule: CodeScanningAlertRule = Field() - tool: CodeScanningAnalysisTool = Field() - most_recent_instance: CodeScanningAlertInstance = Field() -class CodeScanningAlertRule(GitHubModel): - """CodeScanningAlertRule""" +class CheckRunPropOutput(GitHubModel): + """CheckRunPropOutput""" - 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="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.", - ) + 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(CodeScanningAlert) -model_rebuild(CodeScanningAlertRule) +model_rebuild(CheckRun) +model_rebuild(CheckRunPropOutput) +model_rebuild(CheckRunPropCheckSuite) __all__ = ( - "CodeScanningAlert", - "CodeScanningAlertRule", + "CheckRun", + "CheckRunPropOutput", + "CheckRunPropCheckSuite", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0198.py b/githubkit/versions/v2022_11_28/models/group_0198.py index 5c2c54dcd..2dfb0cd0e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0198.py +++ b/githubkit/versions/v2022_11_28/models/group_0198.py @@ -9,57 +9,31 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0068 import CodeScanningAnalysisTool +class CheckAnnotation(GitHubModel): + """Check Annotation -class CodeScanningAnalysis(GitHubModel): - """CodeScanningAnalysis""" + Check Annotation + """ - ref: str = Field( - description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``." - ) - commit_sha: str = Field( - min_length=40, - max_length=40, - pattern="^[0-9a-fA-F]+$", - description="The SHA of the commit to which the analysis you are uploading relates.", - ) - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - environment: str = Field( - description="Identifies the variable values associated with the environment in which this analysis was performed." - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed. Used to distinguish between multiple analyses for the same tool and commit, but performed on different languages or different parts of the code.", - ) - error: str = Field() - created_at: datetime = Field( - description="The time that the analysis was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - results_count: int = Field( - description="The total number of results in the analysis." - ) - rules_count: int = Field( - description="The total number of rules used in the analysis." - ) - 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") + 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(CodeScanningAnalysis) +model_rebuild(CheckAnnotation) -__all__ = ("CodeScanningAnalysis",) +__all__ = ("CheckAnnotation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0199.py b/githubkit/versions/v2022_11_28/models/group_0199.py index d589823d8..72cc2681d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0199.py +++ b/githubkit/versions/v2022_11_28/models/group_0199.py @@ -9,27 +9,83 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0006 import Integration +from .group_0170 import SimpleCommit +from .group_0055 import MinimalRepository +from .group_0169 import PullRequestMinimal -class CodeScanningAnalysisDeletion(GitHubModel): - """Analysis deletion - Successful deletion of a code scanning analysis +class CheckSuite(GitHubModel): + """CheckSuite + + A suite of checks performed on the code of a given code change """ - next_analysis_url: Union[str, None] = Field( - description="Next deletable analysis in chain, without last analysis deletion confirmation" + id: int = Field() + node_id: str = Field() + head_branch: Union[str, None] = Field() + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + status: Union[ + None, + Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ], + ] = Field( + description="The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites." ) - confirm_delete_url: Union[str, None] = Field( - description="Next deletable analysis in chain, with last analysis deletion confirmation" + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "startup_failure", + "stale", + ], + ] = Field() + url: Union[str, None] = Field() + before: Union[str, None] = Field() + after: Union[str, None] = Field() + pull_requests: Union[List[PullRequestMinimal], None] = Field() + app: Union[None, Integration, None] = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) + created_at: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") + latest_check_runs_count: int = Field() + check_runs_url: str = Field() + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + + +class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" + + total_count: int = Field() + check_suites: List[CheckSuite] = Field() -model_rebuild(CodeScanningAnalysisDeletion) +model_rebuild(CheckSuite) +model_rebuild(ReposOwnerRepoCommitsRefCheckSuitesGetResponse200) -__all__ = ("CodeScanningAnalysisDeletion",) +__all__ = ( + "CheckSuite", + "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0200.py b/githubkit/versions/v2022_11_28/models/group_0200.py index 18e1e1dc1..79b063c41 100644 --- a/githubkit/versions/v2022_11_28/models/group_0200.py +++ b/githubkit/versions/v2022_11_28/models/group_0200.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import List from pydantic import Field @@ -18,36 +17,42 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +from .group_0055 import MinimalRepository -class CodeScanningCodeqlDatabase(GitHubModel): - """CodeQL Database +class CheckSuitePreference(GitHubModel): + """Check Suite Preference - A CodeQL database. + Check suite configuration preferences for a repository. """ - id: int = Field(description="The ID of the CodeQL database.") - name: str = Field(description="The name of the CodeQL database.") - language: str = Field(description="The language of the CodeQL database.") - uploader: SimpleUser = Field(title="Simple User", description="A GitHub user.") - content_type: str = Field(description="The MIME type of the CodeQL database file.") - size: int = Field(description="The size of the CodeQL database file in bytes.") - created_at: datetime = Field( - description="The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - url: str = Field( - description="The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property." - ) - commit_oid: Missing[Union[str, None]] = Field( - default=UNSET, - description="The commit SHA of the repository at the time the CodeQL database was created.", + preferences: CheckSuitePreferencePropPreferences = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) -model_rebuild(CodeScanningCodeqlDatabase) +class CheckSuitePreferencePropPreferences(GitHubModel): + """CheckSuitePreferencePropPreferences""" + + auto_trigger_checks: Missing[ + List[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems] + ] = Field(default=UNSET) + + +class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems(GitHubModel): + """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" + + app_id: int = Field() + setting: bool = Field() + + +model_rebuild(CheckSuitePreference) +model_rebuild(CheckSuitePreferencePropPreferences) +model_rebuild(CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems) -__all__ = ("CodeScanningCodeqlDatabase",) +__all__ = ( + "CheckSuitePreference", + "CheckSuitePreferencePropPreferences", + "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0201.py b/githubkit/versions/v2022_11_28/models/group_0201.py index 45858fe34..2982dbb01 100644 --- a/githubkit/versions/v2022_11_28/models/group_0201.py +++ b/githubkit/versions/v2022_11_28/models/group_0201.py @@ -9,30 +9,65 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import Union, Literal +from typing_extensions import Annotated from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0071 import CodeScanningAnalysisTool +from .group_0072 import CodeScanningAlertInstance +from .group_0070 import CodeScanningAlertRuleSummary -class CodeScanningVariantAnalysisRepository(GitHubModel): - """Repository Identifier - Repository Identifier - """ +class CodeScanningAlertItems(GitHubModel): + """CodeScanningAlertItems""" - id: int = Field(description="A unique identifier of the repository.") - name: str = Field(description="The name of the repository.") - full_name: str = Field( - description="The full, globally unique, name of the repository." + number: int = Field(description="The security alert number.") + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - private: bool = Field(description="Whether the repository is private.") - stargazers_count: int = Field() - updated_at: Union[datetime, None] = Field() + 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: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + fixed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field( + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + rule: CodeScanningAlertRuleSummary = Field() + tool: CodeScanningAnalysisTool = Field() + most_recent_instance: CodeScanningAlertInstance = Field() -model_rebuild(CodeScanningVariantAnalysisRepository) +model_rebuild(CodeScanningAlertItems) -__all__ = ("CodeScanningVariantAnalysisRepository",) +__all__ = ("CodeScanningAlertItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0202.py b/githubkit/versions/v2022_11_28/models/group_0202.py index caf59eed3..dfb183ca7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0202.py +++ b/githubkit/versions/v2022_11_28/models/group_0202.py @@ -9,26 +9,105 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import Annotated from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0201 import CodeScanningVariantAnalysisRepository +from .group_0001 import SimpleUser +from .group_0071 import CodeScanningAnalysisTool +from .group_0072 import CodeScanningAlertInstance -class CodeScanningVariantAnalysisSkippedRepoGroup(GitHubModel): - """CodeScanningVariantAnalysisSkippedRepoGroup""" +class CodeScanningAlert(GitHubModel): + """CodeScanningAlert""" - repository_count: int = Field( - description="The total number of repositories that were skipped for this reason." + 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`." ) - 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." + 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: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + fixed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + dismissed_by: Union[None, SimpleUser] = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field( + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert." + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + rule: CodeScanningAlertRule = Field() + tool: CodeScanningAnalysisTool = Field() + most_recent_instance: CodeScanningAlertInstance = Field() + + +class CodeScanningAlertRule(GitHubModel): + """CodeScanningAlertRule""" + + id: Missing[Union[str, None]] = Field( + default=UNSET, + description="A unique identifier for the rule used to detect the alert.", + ) + name: Missing[str] = Field( + default=UNSET, description="The name of the rule used to detect the alert." + ) + severity: Missing[Union[None, Literal["none", "note", "warning", "error"]]] = Field( + default=UNSET, description="The severity of the alert." + ) + security_severity_level: Missing[ + Union[None, Literal["low", "medium", "high", "critical"]] + ] = Field(default=UNSET, description="The security severity of the alert.") + description: Missing[str] = Field( + default=UNSET, + description="A short description of the rule used to detect the alert.", + ) + full_description: Missing[str] = Field( + default=UNSET, description="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(CodeScanningVariantAnalysisSkippedRepoGroup) +model_rebuild(CodeScanningAlert) +model_rebuild(CodeScanningAlertRule) -__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroup",) +__all__ = ( + "CodeScanningAlert", + "CodeScanningAlertRule", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0203.py b/githubkit/versions/v2022_11_28/models/group_0203.py index d611a497c..1769c1b3a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0203.py +++ b/githubkit/versions/v2022_11_28/models/group_0203.py @@ -10,7 +10,6 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal from pydantic import Field @@ -18,61 +17,49 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0029 import SimpleRepository -from .group_0205 import CodeScanningVariantAnalysisPropSkippedRepositories -from .group_0204 import CodeScanningVariantAnalysisPropScannedRepositoriesItems +from .group_0071 import CodeScanningAnalysisTool -class CodeScanningVariantAnalysis(GitHubModel): - """Variant Analysis +class CodeScanningAnalysis(GitHubModel): + """CodeScanningAnalysis""" - A run of a CodeQL query against one or more repositories. - """ - - id: int = Field(description="The ID of the variant analysis.") - controller_repo: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." + ref: str = Field( + description="The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`,\n`refs/heads/` or simply ``." ) - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - query_language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack_url: str = Field(description="The download url for the query pack.") - created_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", + commit_sha: str = Field( + min_length=40, + max_length=40, + pattern="^[0-9a-fA-F]+$", + description="The SHA of the commit to which the analysis you are uploading relates.", ) - updated_at: Missing[datetime] = Field( - default=UNSET, - description="The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." ) - 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.", + environment: str = Field( + description="Identifies the variable values associated with the environment in which this analysis was performed." ) - status: Literal["in_progress", "succeeded", "failed", "cancelled"] = Field() - actions_workflow_run_id: Missing[int] = Field( + category: Missing[str] = Field( default=UNSET, - description="The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started.", + description="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.", ) - 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.", + error: str = Field() + created_at: datetime = Field( + description="The time that the analysis was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." ) - 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.", + 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(CodeScanningVariantAnalysis) +model_rebuild(CodeScanningAnalysis) -__all__ = ("CodeScanningVariantAnalysis",) +__all__ = ("CodeScanningAnalysis",) diff --git a/githubkit/versions/v2022_11_28/models/group_0204.py b/githubkit/versions/v2022_11_28/models/group_0204.py index 53e55e6fc..d589823d8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0204.py +++ b/githubkit/versions/v2022_11_28/models/group_0204.py @@ -9,42 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0201 import CodeScanningVariantAnalysisRepository +class CodeScanningAnalysisDeletion(GitHubModel): + """Analysis deletion -class CodeScanningVariantAnalysisPropScannedRepositoriesItems(GitHubModel): - """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" + Successful deletion of a code scanning analysis + """ - repository: CodeScanningVariantAnalysisRepository = Field( - title="Repository Identifier", description="Repository Identifier" + next_analysis_url: Union[str, None] = Field( + description="Next deletable analysis in chain, without last analysis deletion confirmation" ) - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] = Field( - description="The new status of the CodeQL variant analysis repository task." - ) - result_count: Missing[int] = Field( - default=UNSET, - description="The number of results in the case of a successful analysis. This is only available for successful analyses.", - ) - artifact_size_in_bytes: Missing[int] = Field( - default=UNSET, - description="The size of the artifact. This is only available for successful analyses.", - ) - failure_message: Missing[str] = Field( - default=UNSET, - description="The reason of the failure of this repo task. This is only available if the repository task has failed.", + confirm_delete_url: Union[str, None] = Field( + description="Next deletable analysis in chain, with last analysis deletion confirmation" ) -model_rebuild(CodeScanningVariantAnalysisPropScannedRepositoriesItems) +model_rebuild(CodeScanningAnalysisDeletion) -__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",) +__all__ = ("CodeScanningAnalysisDeletion",) diff --git a/githubkit/versions/v2022_11_28/models/group_0205.py b/githubkit/versions/v2022_11_28/models/group_0205.py index b1d368ce9..18e1e1dc1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0205.py +++ b/githubkit/versions/v2022_11_28/models/group_0205.py @@ -9,43 +9,45 @@ from __future__ import annotations -from typing import List +from typing import Union +from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0202 import CodeScanningVariantAnalysisSkippedRepoGroup +from .group_0001 import SimpleUser -class CodeScanningVariantAnalysisPropSkippedRepositories(GitHubModel): - """CodeScanningVariantAnalysisPropSkippedRepositories +class CodeScanningCodeqlDatabase(GitHubModel): + """CodeQL Database - Information about repositories that were skipped from processing. This - information is only available to the user that initiated the variant analysis. + A CodeQL database. """ - 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 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." ) - 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." + 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(CodeScanningVariantAnalysisPropSkippedRepositories) -model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos) +model_rebuild(CodeScanningCodeqlDatabase) -__all__ = ( - "CodeScanningVariantAnalysisPropSkippedRepositories", - "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", -) +__all__ = ("CodeScanningCodeqlDatabase",) diff --git a/githubkit/versions/v2022_11_28/models/group_0206.py b/githubkit/versions/v2022_11_28/models/group_0206.py index 40394ee3a..45858fe34 100644 --- a/githubkit/versions/v2022_11_28/models/group_0206.py +++ b/githubkit/versions/v2022_11_28/models/group_0206.py @@ -9,54 +9,30 @@ from __future__ import annotations -from typing import Literal +from typing import Union +from datetime import datetime from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0029 import SimpleRepository +class CodeScanningVariantAnalysisRepository(GitHubModel): + """Repository Identifier -class CodeScanningVariantAnalysisRepoTask(GitHubModel): - """CodeScanningVariantAnalysisRepoTask""" + Repository Identifier + """ - repository: SimpleRepository = Field( - title="Simple Repository", description="A GitHub repository." - ) - analysis_status: Literal[ - "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" - ] = Field( - description="The new status of the CodeQL variant analysis repository task." - ) - artifact_size_in_bytes: Missing[int] = Field( - default=UNSET, - description="The size of the artifact. This is only available for successful analyses.", - ) - result_count: Missing[int] = Field( - default=UNSET, - description="The number of results in the case of a successful analysis. This is only available for successful analyses.", - ) - failure_message: Missing[str] = Field( - default=UNSET, - description="The reason of the failure of this repo task. This is only available if the repository task has failed.", - ) - database_commit_sha: Missing[str] = Field( - default=UNSET, - description="The SHA of the commit the CodeQL database was built against. This is only available for successful analyses.", - ) - source_location_prefix: Missing[str] = Field( - default=UNSET, - description="The source location prefix to use. This is only available for successful analyses.", - ) - artifact_url: Missing[str] = Field( - default=UNSET, - description="The URL of the artifact. This is only available for successful analyses.", + 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(CodeScanningVariantAnalysisRepoTask) +model_rebuild(CodeScanningVariantAnalysisRepository) -__all__ = ("CodeScanningVariantAnalysisRepoTask",) +__all__ = ("CodeScanningVariantAnalysisRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0207.py b/githubkit/versions/v2022_11_28/models/group_0207.py index f3d93ae7d..5ab797a7a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0207.py +++ b/githubkit/versions/v2022_11_28/models/group_0207.py @@ -9,53 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0206 import CodeScanningVariantAnalysisRepository -class CodeScanningDefaultSetup(GitHubModel): - """CodeScanningDefaultSetup - Configuration for code scanning default setup. - """ +class CodeScanningVariantAnalysisSkippedRepoGroup(GitHubModel): + """CodeScanningVariantAnalysisSkippedRepoGroup""" - state: Missing[Literal["configured", "not-configured"]] = Field( - default=UNSET, - description="Code scanning default setup has been configured or not.", + repository_count: int = Field( + description="The total number of repositories that were skipped for this reason." ) - languages: Missing[ - List[ - Literal[ - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "javascript", - "python", - "ruby", - "typescript", - "swift", - ] - ] - ] = Field(default=UNSET, description="Languages to be analyzed.") - query_suite: Missing[Literal["default", "extended"]] = Field( - default=UNSET, description="CodeQL query suite to be used." - ) - updated_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="Timestamp of latest configuration update." - ) - schedule: Missing[Union[None, Literal["weekly"]]] = Field( - default=UNSET, description="The frequency of the periodic analysis." + 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(CodeScanningDefaultSetup) +model_rebuild(CodeScanningVariantAnalysisSkippedRepoGroup) -__all__ = ("CodeScanningDefaultSetup",) +__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroup",) diff --git a/githubkit/versions/v2022_11_28/models/group_0208.py b/githubkit/versions/v2022_11_28/models/group_0208.py index de2f0166a..7820c6633 100644 --- a/githubkit/versions/v2022_11_28/models/group_0208.py +++ b/githubkit/versions/v2022_11_28/models/group_0208.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,35 +18,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0033 import SimpleRepository +from .group_0210 import CodeScanningVariantAnalysisPropSkippedRepositories +from .group_0209 import CodeScanningVariantAnalysisPropScannedRepositoriesItems -class CodeScanningDefaultSetupUpdate(GitHubModel): - """CodeScanningDefaultSetupUpdate - Configuration for code scanning default setup. +class CodeScanningVariantAnalysis(GitHubModel): + """Variant Analysis + + A run of a CodeQL query against one or more repositories. """ - state: Missing[Literal["configured", "not-configured"]] = Field( - default=UNSET, description="The desired state of code scanning default setup." + id: int = Field(description="The ID of the variant analysis.") + controller_repo: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." + ) + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + query_language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack_url: str = Field(description="The download url for the query pack.") + created_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time at which the variant analysis was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", + ) + updated_at: Missing[datetime] = Field( + default=UNSET, + description="The date and time at which the variant analysis was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.", + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The date and time at which the variant analysis was completed, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ. Will be null if the variant analysis has not yet completed or this information is not available.", + ) + status: Literal["in_progress", "succeeded", "failed", "cancelled"] = Field() + actions_workflow_run_id: Missing[int] = Field( + default=UNSET, + description="The GitHub Actions workflow run used to execute this variant analysis. This is only available if the workflow run has started.", ) - query_suite: Missing[Literal["default", "extended"]] = Field( - default=UNSET, description="CodeQL query suite to be used." + 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.", ) - languages: Missing[ - List[ - Literal[ - "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",) + 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(CodeScanningVariantAnalysis) + +__all__ = ("CodeScanningVariantAnalysis",) diff --git a/githubkit/versions/v2022_11_28/models/group_0209.py b/githubkit/versions/v2022_11_28/models/group_0209.py index f521485d8..354217d67 100644 --- a/githubkit/versions/v2022_11_28/models/group_0209.py +++ b/githubkit/versions/v2022_11_28/models/group_0209.py @@ -9,29 +9,42 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0206 import CodeScanningVariantAnalysisRepository -class CodeScanningDefaultSetupUpdateResponse(GitHubModel): - """CodeScanningDefaultSetupUpdateResponse - You can use `run_url` to track the status of the run. This includes a property - status and conclusion. - You should not rely on this always being an actions workflow run object. - """ +class CodeScanningVariantAnalysisPropScannedRepositoriesItems(GitHubModel): + """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" - run_id: Missing[int] = Field( - default=UNSET, description="ID of the corresponding run." + 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.", ) - run_url: Missing[str] = Field( - default=UNSET, description="URL of the corresponding run." + 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.", ) -model_rebuild(CodeScanningDefaultSetupUpdateResponse) +model_rebuild(CodeScanningVariantAnalysisPropScannedRepositoriesItems) -__all__ = ("CodeScanningDefaultSetupUpdateResponse",) +__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0210.py b/githubkit/versions/v2022_11_28/models/group_0210.py index e3dd21ec7..bbea458ae 100644 --- a/githubkit/versions/v2022_11_28/models/group_0210.py +++ b/githubkit/versions/v2022_11_28/models/group_0210.py @@ -9,23 +9,43 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0207 import CodeScanningVariantAnalysisSkippedRepoGroup + + +class CodeScanningVariantAnalysisPropSkippedRepositories(GitHubModel): + """CodeScanningVariantAnalysisPropSkippedRepositories + + Information about repositories that were skipped from processing. This + information is only available to the user that initiated the variant analysis. + """ -class CodeScanningSarifsReceipt(GitHubModel): - """CodeScanningSarifsReceipt""" + access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() + not_found_repos: CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos = Field() + no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() + over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroup = Field() - id: Missing[str] = Field(default=UNSET, description="An identifier for the upload.") - url: Missing[str] = Field( - default=UNSET, - description="The REST API URL for checking the status of the upload.", + +class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos(GitHubModel): + """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" + + repository_count: int = Field( + description="The total number of repositories that were skipped for this reason." + ) + repository_full_names: List[str] = Field( + description="A list of full repository names that were skipped. This list may not include all repositories that were skipped." ) -model_rebuild(CodeScanningSarifsReceipt) +model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositories) +model_rebuild(CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos) -__all__ = ("CodeScanningSarifsReceipt",) +__all__ = ( + "CodeScanningVariantAnalysisPropSkippedRepositories", + "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0211.py b/githubkit/versions/v2022_11_28/models/group_0211.py index 7414dcd5c..55363400e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0211.py +++ b/githubkit/versions/v2022_11_28/models/group_0211.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,24 +17,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0033 import SimpleRepository -class CodeScanningSarifsStatus(GitHubModel): - """CodeScanningSarifsStatus""" - processing_status: Missing[Literal["pending", "complete", "failed"]] = Field( +class CodeScanningVariantAnalysisRepoTask(GitHubModel): + """CodeScanningVariantAnalysisRepoTask""" + + repository: SimpleRepository = Field( + title="Simple Repository", description="A GitHub repository." + ) + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" + ] = Field( + description="The new status of the CodeQL variant analysis repository task." + ) + artifact_size_in_bytes: Missing[int] = Field( + default=UNSET, + description="The size of the artifact. This is only available for successful analyses.", + ) + result_count: Missing[int] = Field( + default=UNSET, + description="The 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="`pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed.", + description="The SHA of the commit the CodeQL database was built against. This is only available for successful analyses.", ) - analyses_url: Missing[Union[str, None]] = Field( + source_location_prefix: Missing[str] = Field( default=UNSET, - description="The REST API URL for getting the analyses associated with the upload.", + description="The source location prefix to use. This is only available for successful analyses.", ) - errors: Missing[Union[List[str], None]] = Field( + artifact_url: Missing[str] = Field( default=UNSET, - description="Any errors that ocurred during processing of the delivery.", + description="The URL of the artifact. This is only available for successful analyses.", ) -model_rebuild(CodeScanningSarifsStatus) +model_rebuild(CodeScanningVariantAnalysisRepoTask) -__all__ = ("CodeScanningSarifsStatus",) +__all__ = ("CodeScanningVariantAnalysisRepoTask",) diff --git a/githubkit/versions/v2022_11_28/models/group_0212.py b/githubkit/versions/v2022_11_28/models/group_0212.py index b4a4ef9df..f3d93ae7d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0212.py +++ b/githubkit/versions/v2022_11_28/models/group_0212.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,38 +19,43 @@ from githubkit.compat import GitHubModel, model_rebuild -class CodeownersErrors(GitHubModel): - """CODEOWNERS errors +class CodeScanningDefaultSetup(GitHubModel): + """CodeScanningDefaultSetup - A list of errors found in a repo's CODEOWNERS file + Configuration for code scanning default setup. """ - errors: List[CodeownersErrorsPropErrorsItems] = Field() - - -class CodeownersErrorsPropErrorsItems(GitHubModel): - """CodeownersErrorsPropErrorsItems""" - - line: int = Field(description="The line number where this errors occurs.") - column: int = Field(description="The column number where this errors occurs.") - source: Missing[str] = Field( - default=UNSET, description="The contents of the line where the error occurs." - ) - kind: str = Field(description="The type of error.") - suggestion: Missing[Union[str, None]] = Field( + state: Missing[Literal["configured", "not-configured"]] = Field( default=UNSET, - description="Suggested action to fix the error. This will usually be `null`, but is provided for some common errors.", + description="Code scanning default setup has been configured or not.", + ) + languages: Missing[ + List[ + Literal[ + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "javascript", + "python", + "ruby", + "typescript", + "swift", + ] + ] + ] = Field(default=UNSET, description="Languages to be analyzed.") + query_suite: Missing[Literal["default", "extended"]] = Field( + default=UNSET, description="CodeQL query suite to be used." + ) + updated_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="Timestamp of latest configuration update." ) - message: str = Field( - description="A human-readable description of the error, combining information from multiple fields, laid out for display in a monospaced typeface (for example, a command-line setting)." + schedule: Missing[Union[None, Literal["weekly"]]] = Field( + default=UNSET, description="The frequency of the periodic analysis." ) - path: str = Field(description="The path of the file where the error occured.") -model_rebuild(CodeownersErrors) -model_rebuild(CodeownersErrorsPropErrorsItems) +model_rebuild(CodeScanningDefaultSetup) -__all__ = ( - "CodeownersErrors", - "CodeownersErrorsPropErrorsItems", -) +__all__ = ("CodeScanningDefaultSetup",) diff --git a/githubkit/versions/v2022_11_28/models/group_0213.py b/githubkit/versions/v2022_11_28/models/group_0213.py index de6f0cf08..de2f0166a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0213.py +++ b/githubkit/versions/v2022_11_28/models/group_0213.py @@ -9,22 +9,43 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class CodespacesPermissionsCheckForDevcontainer(GitHubModel): - """Codespaces Permissions Check +class CodeScanningDefaultSetupUpdate(GitHubModel): + """CodeScanningDefaultSetupUpdate - Permission check result for a given devcontainer config. + Configuration for code scanning default setup. """ - accepted: bool = Field( - description="Whether the user has accepted the permissions defined by the devcontainer config" + state: Missing[Literal["configured", "not-configured"]] = Field( + default=UNSET, description="The desired state of code scanning default setup." ) - - -model_rebuild(CodespacesPermissionsCheckForDevcontainer) - -__all__ = ("CodespacesPermissionsCheckForDevcontainer",) + query_suite: Missing[Literal["default", "extended"]] = Field( + default=UNSET, description="CodeQL query suite to be used." + ) + languages: Missing[ + List[ + Literal[ + "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_0214.py b/githubkit/versions/v2022_11_28/models/group_0214.py index 883d2aafb..f521485d8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0214.py +++ b/githubkit/versions/v2022_11_28/models/group_0214.py @@ -9,43 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0051 import MinimalRepository - -class RepositoryInvitation(GitHubModel): - """Repository Invitation +class CodeScanningDefaultSetupUpdateResponse(GitHubModel): + """CodeScanningDefaultSetupUpdateResponse - Repository invitations let you manage who you collaborate with. + You can use `run_url` to track the status of the run. This includes a property + status and conclusion. + You should not rely on this always being an actions workflow run object. """ - id: int = Field(description="Unique identifier of the repository invitation.") - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - invitee: Union[None, SimpleUser] = Field() - inviter: Union[None, SimpleUser] = Field() - permissions: Literal["read", "write", "admin", "triage", "maintain"] = Field( - description="The permission associated with the invitation." + run_id: Missing[int] = Field( + default=UNSET, description="ID of the corresponding run." ) - created_at: datetime = Field() - expired: Missing[bool] = Field( - default=UNSET, description="Whether or not the invitation has expired" + run_url: Missing[str] = Field( + default=UNSET, description="URL of the corresponding run." ) - url: str = Field(description="URL for the repository invitation") - html_url: str = Field() - node_id: str = Field() -model_rebuild(RepositoryInvitation) +model_rebuild(CodeScanningDefaultSetupUpdateResponse) -__all__ = ("RepositoryInvitation",) +__all__ = ("CodeScanningDefaultSetupUpdateResponse",) diff --git a/githubkit/versions/v2022_11_28/models/group_0215.py b/githubkit/versions/v2022_11_28/models/group_0215.py index 0829293dd..e3dd21ec7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0215.py +++ b/githubkit/versions/v2022_11_28/models/group_0215.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.utils import UNSET @@ -18,63 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryCollaboratorPermission(GitHubModel): - """Repository Collaborator Permission - - Repository Collaborator Permission - """ - - permission: str = Field() - role_name: str = Field() - user: Union[None, Collaborator] = Field() - - -class Collaborator(GitHubModel): - """Collaborator - - Collaborator - """ - - login: str = Field() - id: int = Field() - email: Missing[Union[str, None]] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() - url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - permissions: Missing[CollaboratorPropPermissions] = Field(default=UNSET) - role_name: str = Field() - - -class CollaboratorPropPermissions(GitHubModel): - """CollaboratorPropPermissions""" +class CodeScanningSarifsReceipt(GitHubModel): + """CodeScanningSarifsReceipt""" - pull: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - push: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - admin: bool = Field() + id: Missing[str] = Field(default=UNSET, description="An identifier for the upload.") + url: Missing[str] = Field( + default=UNSET, + description="The REST API URL for checking the status of the upload.", + ) -model_rebuild(RepositoryCollaboratorPermission) -model_rebuild(Collaborator) -model_rebuild(CollaboratorPropPermissions) +model_rebuild(CodeScanningSarifsReceipt) -__all__ = ( - "RepositoryCollaboratorPermission", - "Collaborator", - "CollaboratorPropPermissions", -) +__all__ = ("CodeScanningSarifsReceipt",) diff --git a/githubkit/versions/v2022_11_28/models/group_0216.py b/githubkit/versions/v2022_11_28/models/group_0216.py index b526aa226..7414dcd5c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0216.py +++ b/githubkit/versions/v2022_11_28/models/group_0216.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,60 +17,24 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0034 import ReactionRollup +class CodeScanningSarifsStatus(GitHubModel): + """CodeScanningSarifsStatus""" -class CommitComment(GitHubModel): - """Commit Comment - - Commit Comment - """ - - html_url: str = Field() - url: str = Field() - id: int = Field() - node_id: str = Field() - body: str = Field() - path: Union[str, None] = Field() - position: Union[int, None] = Field() - line: Union[int, None] = Field() - commit_id: str = Field() - user: Union[None, SimpleUser] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", + processing_status: Missing[Literal["pending", "complete", "failed"]] = Field( + default=UNSET, + description="`pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed.", + ) + analyses_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="The REST API URL for getting the analyses associated with the upload.", + ) + errors: Missing[Union[List[str], None]] = Field( + default=UNSET, + description="Any errors that ocurred during processing of the delivery.", ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - - -class TimelineCommitCommentedEvent(GitHubModel): - """Timeline Commit Commented Event - - Timeline Commit Commented Event - """ - - event: Missing[Literal["commit_commented"]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - commit_id: Missing[str] = Field(default=UNSET) - comments: Missing[List[CommitComment]] = Field(default=UNSET) -model_rebuild(CommitComment) -model_rebuild(TimelineCommitCommentedEvent) +model_rebuild(CodeScanningSarifsStatus) -__all__ = ( - "CommitComment", - "TimelineCommitCommentedEvent", -) +__all__ = ("CodeScanningSarifsStatus",) diff --git a/githubkit/versions/v2022_11_28/models/group_0217.py b/githubkit/versions/v2022_11_28/models/group_0217.py index 1899117e7..b4a4ef9df 100644 --- a/githubkit/versions/v2022_11_28/models/group_0217.py +++ b/githubkit/versions/v2022_11_28/models/group_0217.py @@ -9,33 +9,47 @@ from __future__ import annotations +from typing import List, Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class BranchShort(GitHubModel): - """Branch Short +class CodeownersErrors(GitHubModel): + """CODEOWNERS errors - Branch Short + A list of errors found in a repo's CODEOWNERS file """ - name: str = Field() - commit: BranchShortPropCommit = Field() - protected: bool = Field() + errors: List[CodeownersErrorsPropErrorsItems] = Field() -class BranchShortPropCommit(GitHubModel): - """BranchShortPropCommit""" +class CodeownersErrorsPropErrorsItems(GitHubModel): + """CodeownersErrorsPropErrorsItems""" - sha: str = Field() - url: str = Field() + line: int = Field(description="The line number where this errors occurs.") + column: int = Field(description="The column number where this errors occurs.") + source: Missing[str] = Field( + default=UNSET, description="The contents of the line where the error occurs." + ) + kind: str = Field(description="The type of error.") + suggestion: Missing[Union[str, None]] = Field( + default=UNSET, + description="Suggested action to fix the error. This will usually be `null`, but is provided for some common errors.", + ) + message: str = Field( + description="A human-readable description of the error, combining information from multiple fields, laid out for display in a monospaced typeface (for example, a command-line setting)." + ) + path: str = Field(description="The path of the file where the error occured.") -model_rebuild(BranchShort) -model_rebuild(BranchShortPropCommit) +model_rebuild(CodeownersErrors) +model_rebuild(CodeownersErrorsPropErrorsItems) __all__ = ( - "BranchShort", - "BranchShortPropCommit", + "CodeownersErrors", + "CodeownersErrorsPropErrorsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0218.py b/githubkit/versions/v2022_11_28/models/group_0218.py index b537858f8..de6f0cf08 100644 --- a/githubkit/versions/v2022_11_28/models/group_0218.py +++ b/githubkit/versions/v2022_11_28/models/group_0218.py @@ -14,15 +14,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class Link(GitHubModel): - """Link +class CodespacesPermissionsCheckForDevcontainer(GitHubModel): + """Codespaces Permissions Check - Hypermedia Link + Permission check result for a given devcontainer config. """ - href: str = Field() + accepted: bool = Field( + description="Whether the user has accepted the permissions defined by the devcontainer config" + ) -model_rebuild(Link) +model_rebuild(CodespacesPermissionsCheckForDevcontainer) -__all__ = ("Link",) +__all__ = ("CodespacesPermissionsCheckForDevcontainer",) diff --git a/githubkit/versions/v2022_11_28/models/group_0219.py b/githubkit/versions/v2022_11_28/models/group_0219.py index 7c19d354d..434bde4ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0219.py +++ b/githubkit/versions/v2022_11_28/models/group_0219.py @@ -9,33 +9,43 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser +from .group_0055 import MinimalRepository -class AutoMerge(GitHubModel): - """Auto merge +class RepositoryInvitation(GitHubModel): + """Repository Invitation - The status of auto merging a pull request. + Repository invitations let you manage who you collaborate with. """ - enabled_by: SimpleUser = Field(title="Simple User", description="A GitHub user.") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." + id: int = Field(description="Unique identifier of the repository invitation.") + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." + 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." ) - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." + created_at: datetime = Field() + expired: Missing[bool] = Field( + default=UNSET, description="Whether or not the invitation has expired" ) + url: str = Field(description="URL for the repository invitation") + html_url: str = Field() + node_id: str = Field() -model_rebuild(AutoMerge) +model_rebuild(RepositoryInvitation) -__all__ = ("AutoMerge",) +__all__ = ("RepositoryInvitation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0220.py b/githubkit/versions/v2022_11_28/models/group_0220.py index cff328374..0829293dd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0220.py +++ b/githubkit/versions/v2022_11_28/models/group_0220.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field @@ -18,91 +17,64 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0076 import Team -from .group_0033 import Milestone -from .group_0219 import AutoMerge -from .group_0001 import SimpleUser -from .group_0222 import PullRequestSimplePropLinks -from .group_0221 import PullRequestSimplePropBase, PullRequestSimplePropHead +class RepositoryCollaboratorPermission(GitHubModel): + """Repository Collaborator Permission -class PullRequestSimple(GitHubModel): - """Pull Request Simple - - Pull Request Simple + Repository Collaborator Permission """ - 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""" + 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() - name: str = Field() - description: Union[str, None] = Field() - color: str = Field() - default: bool = Field() - - -model_rebuild(PullRequestSimple) -model_rebuild(PullRequestSimplePropLabelsItems) + 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() + + +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__ = ( - "PullRequestSimple", - "PullRequestSimplePropLabelsItems", + "RepositoryCollaboratorPermission", + "Collaborator", + "CollaboratorPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0221.py b/githubkit/versions/v2022_11_28/models/group_0221.py index def6cd3fc..eeeb20e23 100644 --- a/githubkit/versions/v2022_11_28/models/group_0221.py +++ b/githubkit/versions/v2022_11_28/models/group_0221.py @@ -9,40 +9,69 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -from .group_0017 import Repository +from .group_0038 import ReactionRollup -class PullRequestSimplePropHead(GitHubModel): - """PullRequestSimplePropHead""" +class CommitComment(GitHubModel): + """Commit Comment - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[None, Repository] = Field() - sha: str = Field() - user: Union[None, SimpleUser] = Field() - - -class PullRequestSimplePropBase(GitHubModel): - """PullRequestSimplePropBase""" + Commit Comment + """ - label: str = Field() - ref: str = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") - sha: str = Field() + 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() - - -model_rebuild(PullRequestSimplePropHead) -model_rebuild(PullRequestSimplePropBase) + created_at: datetime = Field() + updated_at: datetime = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + + +class TimelineCommitCommentedEvent(GitHubModel): + """Timeline Commit Commented Event + + Timeline Commit Commented Event + """ + + event: Missing[Literal["commit_commented"]] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + commit_id: Missing[str] = Field(default=UNSET) + comments: Missing[List[CommitComment]] = Field(default=UNSET) + + +model_rebuild(CommitComment) +model_rebuild(TimelineCommitCommentedEvent) __all__ = ( - "PullRequestSimplePropHead", - "PullRequestSimplePropBase", + "CommitComment", + "TimelineCommitCommentedEvent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0222.py b/githubkit/versions/v2022_11_28/models/group_0222.py index ee91196a6..1899117e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0222.py +++ b/githubkit/versions/v2022_11_28/models/group_0222.py @@ -13,22 +13,29 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0218 import Link +class BranchShort(GitHubModel): + """Branch Short -class PullRequestSimplePropLinks(GitHubModel): - """PullRequestSimplePropLinks""" + Branch Short + """ - 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") + name: str = Field() + commit: BranchShortPropCommit = Field() + protected: bool = Field() -model_rebuild(PullRequestSimplePropLinks) +class BranchShortPropCommit(GitHubModel): + """BranchShortPropCommit""" -__all__ = ("PullRequestSimplePropLinks",) + sha: str = Field() + url: str = Field() + + +model_rebuild(BranchShort) +model_rebuild(BranchShortPropCommit) + +__all__ = ( + "BranchShort", + "BranchShortPropCommit", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0223.py b/githubkit/versions/v2022_11_28/models/group_0223.py index 98033d1b2..b537858f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0223.py +++ b/githubkit/versions/v2022_11_28/models/group_0223.py @@ -9,55 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0051 import MinimalRepository - -class CombinedCommitStatus(GitHubModel): - """Combined Commit Status +class Link(GitHubModel): + """Link - Combined Commit Status + Hypermedia Link """ - 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() - - -class SimpleCommitStatus(GitHubModel): - """Simple Commit Status""" - - description: Union[str, None] = Field() - id: int = Field() - node_id: str = Field() - state: str = Field() - context: str = Field() - target_url: Union[str, None] = Field() - required: Missing[Union[bool, None]] = Field(default=UNSET) - avatar_url: Union[str, None] = Field() - url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - - -model_rebuild(CombinedCommitStatus) -model_rebuild(SimpleCommitStatus) - -__all__ = ( - "CombinedCommitStatus", - "SimpleCommitStatus", -) + href: str = Field() + + +model_rebuild(Link) + +__all__ = ("Link",) diff --git a/githubkit/versions/v2022_11_28/models/group_0224.py b/githubkit/versions/v2022_11_28/models/group_0224.py index 5a4a1eb53..7c19d354d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0224.py +++ b/githubkit/versions/v2022_11_28/models/group_0224.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from pydantic import Field @@ -18,25 +18,24 @@ from .group_0001 import SimpleUser -class Status(GitHubModel): - """Status +class AutoMerge(GitHubModel): + """Auto merge - The status of a commit. + The status of auto merging a pull request. """ - 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() + enabled_by: SimpleUser = Field(title="Simple User", description="A GitHub user.") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) -model_rebuild(Status) +model_rebuild(AutoMerge) -__all__ = ("Status",) +__all__ = ("AutoMerge",) diff --git a/githubkit/versions/v2022_11_28/models/group_0225.py b/githubkit/versions/v2022_11_28/models/group_0225.py index ebede3204..f7b675dd9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0225.py +++ b/githubkit/versions/v2022_11_28/models/group_0225.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,49 +18,91 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0016 import LicenseSimple -from .group_0095 import CodeOfConductSimple +from .group_0026 import Team +from .group_0037 import Milestone +from .group_0224 import AutoMerge +from .group_0001 import SimpleUser +from .group_0227 import PullRequestSimplePropLinks +from .group_0226 import PullRequestSimplePropBase, PullRequestSimplePropHead -class CommunityProfilePropFiles(GitHubModel): - """CommunityProfilePropFiles""" +class PullRequestSimple(GitHubModel): + """Pull Request Simple - 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""" + Pull Request Simple + """ url: str = Field() + id: int = Field() + node_id: str = Field() html_url: str = Field() - - -class CommunityProfile(GitHubModel): - """Community Profile - - Community Profile - """ - - health_percentage: int = 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() - documentation: Union[str, None] = Field() - files: CommunityProfilePropFiles = Field() - updated_at: Union[datetime, None] = Field() - content_reports_enabled: Missing[bool] = Field(default=UNSET) + color: str = Field() + default: bool = Field() -model_rebuild(CommunityProfilePropFiles) -model_rebuild(CommunityHealthFile) -model_rebuild(CommunityProfile) +model_rebuild(PullRequestSimple) +model_rebuild(PullRequestSimplePropLabelsItems) __all__ = ( - "CommunityProfilePropFiles", - "CommunityHealthFile", - "CommunityProfile", + "PullRequestSimple", + "PullRequestSimplePropLabelsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0226.py b/githubkit/versions/v2022_11_28/models/group_0226.py index f825efa2c..def6cd3fc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0226.py +++ b/githubkit/versions/v2022_11_28/models/group_0226.py @@ -9,39 +9,40 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0185 import Commit -from .group_0184 import DiffEntry +from .group_0001 import SimpleUser +from .group_0017 import Repository -class CommitComparison(GitHubModel): - """Commit Comparison +class PullRequestSimplePropHead(GitHubModel): + """PullRequestSimplePropHead""" - Commit Comparison - """ + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[None, Repository] = Field() + sha: str = Field() + user: Union[None, SimpleUser] = Field() - 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) +class PullRequestSimplePropBase(GitHubModel): + """PullRequestSimplePropBase""" -model_rebuild(CommitComparison) + label: str = Field() + ref: str = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") + sha: str = Field() + user: Union[None, SimpleUser] = Field() -__all__ = ("CommitComparison",) + +model_rebuild(PullRequestSimplePropHead) +model_rebuild(PullRequestSimplePropBase) + +__all__ = ( + "PullRequestSimplePropHead", + "PullRequestSimplePropBase", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0227.py b/githubkit/versions/v2022_11_28/models/group_0227.py index d7e74cd04..847629303 100644 --- a/githubkit/versions/v2022_11_28/models/group_0227.py +++ b/githubkit/versions/v2022_11_28/models/group_0227.py @@ -9,74 +9,26 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class ContentTree(GitHubModel): - """Content Tree - - Content Tree - """ - - 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() - entries: Missing[List[ContentTreePropEntriesItems]] = Field(default=UNSET) - links: ContentTreePropLinks = Field(alias="_links") - - -class ContentTreePropLinks(GitHubModel): - """ContentTreePropLinks""" - - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") - - -class ContentTreePropEntriesItems(GitHubModel): - """ContentTreePropEntriesItems""" - - type: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() - 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: ContentTreePropEntriesItemsPropLinks = Field(alias="_links") +from .group_0223 import Link -class ContentTreePropEntriesItemsPropLinks(GitHubModel): - """ContentTreePropEntriesItemsPropLinks""" +class PullRequestSimplePropLinks(GitHubModel): + """PullRequestSimplePropLinks""" - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + comments: Link = Field(title="Link", description="Hypermedia Link") + commits: Link = Field(title="Link", description="Hypermedia Link") + statuses: Link = Field(title="Link", description="Hypermedia Link") + html: Link = Field(title="Link", description="Hypermedia Link") + issue: Link = Field(title="Link", description="Hypermedia Link") + review_comments: Link = Field(title="Link", description="Hypermedia Link") + review_comment: Link = Field(title="Link", description="Hypermedia Link") + self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") -model_rebuild(ContentTree) -model_rebuild(ContentTreePropLinks) -model_rebuild(ContentTreePropEntriesItems) -model_rebuild(ContentTreePropEntriesItemsPropLinks) +model_rebuild(PullRequestSimplePropLinks) -__all__ = ( - "ContentTree", - "ContentTreePropLinks", - "ContentTreePropEntriesItems", - "ContentTreePropEntriesItemsPropLinks", -) +__all__ = ("PullRequestSimplePropLinks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0228.py b/githubkit/versions/v2022_11_28/models/group_0228.py index f782c8d1f..ca9c3a4ba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0228.py +++ b/githubkit/versions/v2022_11_28/models/group_0228.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union from pydantic import Field @@ -17,35 +18,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0055 import MinimalRepository -class ContentDirectoryItems(GitHubModel): - """ContentDirectoryItems""" - type: Literal["dir", "file", "submodule", "symlink"] = Field() - size: int = Field() - name: str = Field() - path: str = Field() - content: Missing[str] = Field(default=UNSET) +class CombinedCommitStatus(GitHubModel): + """Combined Commit Status + + 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() - 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 SimpleCommitStatus(GitHubModel): + """Simple Commit Status""" - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + description: Union[str, None] = Field() + id: int = Field() + node_id: str = Field() + state: str = Field() + context: str = Field() + target_url: Union[str, None] = Field() + required: Missing[Union[bool, None]] = Field(default=UNSET) + avatar_url: Union[str, None] = Field() + url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ContentDirectoryItems) -model_rebuild(ContentDirectoryItemsPropLinks) +model_rebuild(CombinedCommitStatus) +model_rebuild(SimpleCommitStatus) __all__ = ( - "ContentDirectoryItems", - "ContentDirectoryItemsPropLinks", + "CombinedCommitStatus", + "SimpleCommitStatus", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0229.py b/githubkit/versions/v2022_11_28/models/group_0229.py index 1af5fd9fd..5a4a1eb53 100644 --- a/githubkit/versions/v2022_11_28/models/group_0229.py +++ b/githubkit/versions/v2022_11_28/models/group_0229.py @@ -9,49 +9,34 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class ContentFile(GitHubModel): - """Content File - Content File +class Status(GitHubModel): + """Status + + The status of a commit. """ - type: Literal["file"] = Field() - encoding: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() - content: str = Field() - sha: str = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentFilePropLinks = Field(alias="_links") - target: Missing[str] = Field(default=UNSET) - submodule_git_url: Missing[str] = Field(default=UNSET) - - -class ContentFilePropLinks(GitHubModel): - """ContentFilePropLinks""" - - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") + 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(ContentFile) -model_rebuild(ContentFilePropLinks) +model_rebuild(Status) -__all__ = ( - "ContentFile", - "ContentFilePropLinks", -) +__all__ = ("Status",) diff --git a/githubkit/versions/v2022_11_28/models/group_0230.py b/githubkit/versions/v2022_11_28/models/group_0230.py index 8f2dc9b36..e55b64c6d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0230.py +++ b/githubkit/versions/v2022_11_28/models/group_0230.py @@ -9,44 +9,58 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union +from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0016 import LicenseSimple +from .group_0100 import CodeOfConductSimple -class ContentSymlink(GitHubModel): - """Symlink Content - An object describing a symlink - """ +class CommunityProfilePropFiles(GitHubModel): + """CommunityProfilePropFiles""" + + code_of_conduct: Union[None, CodeOfConductSimple] = Field() + code_of_conduct_file: Union[None, CommunityHealthFile] = Field() + license_: Union[None, LicenseSimple] = Field(alias="license") + contributing: Union[None, CommunityHealthFile] = Field() + readme: Union[None, CommunityHealthFile] = Field() + issue_template: Union[None, CommunityHealthFile] = Field() + pull_request_template: Union[None, CommunityHealthFile] = Field() + + +class CommunityHealthFile(GitHubModel): + """Community Health File""" - type: Literal["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") + html_url: str = Field() + +class CommunityProfile(GitHubModel): + """Community Profile -class ContentSymlinkPropLinks(GitHubModel): - """ContentSymlinkPropLinks""" + 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(ContentSymlink) -model_rebuild(ContentSymlinkPropLinks) +model_rebuild(CommunityProfilePropFiles) +model_rebuild(CommunityHealthFile) +model_rebuild(CommunityProfile) __all__ = ( - "ContentSymlink", - "ContentSymlinkPropLinks", + "CommunityProfilePropFiles", + "CommunityHealthFile", + "CommunityProfile", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0231.py b/githubkit/versions/v2022_11_28/models/group_0231.py index 23682cfb1..31a594bac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0231.py +++ b/githubkit/versions/v2022_11_28/models/group_0231.py @@ -9,44 +9,39 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0190 import Commit +from .group_0189 import DiffEntry -class ContentSubmodule(GitHubModel): - """Submodule Content - An object describing a submodule +class CommitComparison(GitHubModel): + """Commit Comparison + + Commit Comparison """ - type: Literal["submodule"] = Field() - submodule_git_url: str = Field() - size: int = Field() - name: str = Field() - path: str = Field() - sha: str = Field() url: str = Field() - git_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - links: ContentSubmodulePropLinks = Field(alias="_links") - - -class ContentSubmodulePropLinks(GitHubModel): - """ContentSubmodulePropLinks""" - - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") - - -model_rebuild(ContentSubmodule) -model_rebuild(ContentSubmodulePropLinks) - -__all__ = ( - "ContentSubmodule", - "ContentSubmodulePropLinks", -) + 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_0232.py b/githubkit/versions/v2022_11_28/models/group_0232.py index ef42a5d0b..d7e74cd04 100644 --- a/githubkit/versions/v2022_11_28/models/group_0232.py +++ b/githubkit/versions/v2022_11_28/models/group_0232.py @@ -18,114 +18,65 @@ from githubkit.compat import GitHubModel, model_rebuild -class FileCommit(GitHubModel): - """File Commit +class ContentTree(GitHubModel): + """Content Tree - File Commit + Content Tree """ - content: Union[FileCommitPropContent, None] = Field() - commit: FileCommitPropCommit = Field() + 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() + entries: Missing[List[ContentTreePropEntriesItems]] = Field(default=UNSET) + links: ContentTreePropLinks = Field(alias="_links") -class FileCommitPropContent(GitHubModel): - """FileCommitPropContent""" +class ContentTreePropLinks(GitHubModel): + """ContentTreePropLinks""" - 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""" +class ContentTreePropEntriesItems(GitHubModel): + """ContentTreePropEntriesItems""" - self_: Missing[str] = Field(default=UNSET, alias="self") - git: Missing[str] = Field(default=UNSET) - html: Missing[str] = Field(default=UNSET) + type: str = 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: ContentTreePropEntriesItemsPropLinks = Field(alias="_links") -class FileCommitPropCommit(GitHubModel): - """FileCommitPropCommit""" +class ContentTreePropEntriesItemsPropLinks(GitHubModel): + """ContentTreePropEntriesItemsPropLinks""" - 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) + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") -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) - - -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(ContentTree) +model_rebuild(ContentTreePropLinks) +model_rebuild(ContentTreePropEntriesItems) +model_rebuild(ContentTreePropEntriesItemsPropLinks) __all__ = ( - "FileCommit", - "FileCommitPropContent", - "FileCommitPropContentPropLinks", - "FileCommitPropCommit", - "FileCommitPropCommitPropAuthor", - "FileCommitPropCommitPropCommitter", - "FileCommitPropCommitPropTree", - "FileCommitPropCommitPropParentsItems", - "FileCommitPropCommitPropVerification", + "ContentTree", + "ContentTreePropLinks", + "ContentTreePropEntriesItems", + "ContentTreePropEntriesItemsPropLinks", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0233.py b/githubkit/versions/v2022_11_28/models/group_0233.py index bd8204a62..f782c8d1f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0233.py +++ b/githubkit/versions/v2022_11_28/models/group_0233.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from pydantic import Field @@ -18,35 +18,34 @@ from githubkit.compat import GitHubModel, model_rebuild -class Contributor(GitHubModel): - """Contributor - - Contributor - """ - - login: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[Union[str, None]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - type: str = Field() - site_admin: Missing[bool] = Field(default=UNSET) - contributions: int = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -model_rebuild(Contributor) - -__all__ = ("Contributor",) +class ContentDirectoryItems(GitHubModel): + """ContentDirectoryItems""" + + type: Literal["dir", "file", "submodule", "symlink"] = Field() + size: int = Field() + name: str = Field() + path: str = Field() + content: Missing[str] = Field(default=UNSET) + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentDirectoryItemsPropLinks = Field(alias="_links") + + +class ContentDirectoryItemsPropLinks(GitHubModel): + """ContentDirectoryItemsPropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +model_rebuild(ContentDirectoryItems) +model_rebuild(ContentDirectoryItemsPropLinks) + +__all__ = ( + "ContentDirectoryItems", + "ContentDirectoryItemsPropLinks", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0234.py b/githubkit/versions/v2022_11_28/models/group_0234.py index 746cc61c6..1af5fd9fd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0234.py +++ b/githubkit/versions/v2022_11_28/models/group_0234.py @@ -9,9 +9,7 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import Annotated from pydantic import Field @@ -19,61 +17,41 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0235 import DependabotAlertPropDependency -from .group_0028 import DependabotAlertSecurityAdvisory -from .group_0027 import DependabotAlertSecurityVulnerability +class ContentFile(GitHubModel): + """Content File -class DependabotAlert(GitHubModel): - """DependabotAlert - - A Dependabot alert. + Content File """ - number: int = Field(description="The security alert number.") - state: Literal["auto_dismissed", "dismissed", "fixed", "open"] = Field( - description="The state of the Dependabot alert." - ) - dependency: DependabotAlertPropDependency = Field( - description="Details for the vulnerable dependency." - ) - security_advisory: DependabotAlertSecurityAdvisory = Field( - description="Details for the GitHub Security Advisory." - ) - security_vulnerability: DependabotAlertSecurityVulnerability = Field( - description="Details pertaining to one vulnerable version range for the advisory." - ) - url: str = Field(description="The REST API URL of the alert resource.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - updated_at: datetime = Field( - description="The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[None, SimpleUser] = Field() - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], - ] = Field(description="The reason that the alert was dismissed.") - dismissed_comment: Union[Annotated[str, Field(max_length=280)], None] = Field( - description="An optional comment associated with the alert's dismissal." - ) - fixed_at: Union[datetime, None] = Field( - description="The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - auto_dismissed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - - -model_rebuild(DependabotAlert) - -__all__ = ("DependabotAlert",) + type: Literal["file"] = Field() + encoding: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + content: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentFilePropLinks = Field(alias="_links") + target: Missing[str] = Field(default=UNSET) + submodule_git_url: Missing[str] = Field(default=UNSET) + + +class ContentFilePropLinks(GitHubModel): + """ContentFilePropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") + + +model_rebuild(ContentFile) +model_rebuild(ContentFilePropLinks) + +__all__ = ( + "ContentFile", + "ContentFilePropLinks", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0235.py b/githubkit/versions/v2022_11_28/models/group_0235.py index 10642284b..8f2dc9b36 100644 --- a/githubkit/versions/v2022_11_28/models/group_0235.py +++ b/githubkit/versions/v2022_11_28/models/group_0235.py @@ -13,31 +13,40 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0026 import DependabotAlertPackage +class ContentSymlink(GitHubModel): + """Symlink Content -class DependabotAlertPropDependency(GitHubModel): - """DependabotAlertPropDependency - - Details for the vulnerable dependency. + An object describing a symlink """ - package: Missing[DependabotAlertPackage] = Field( - default=UNSET, description="Details for the vulnerable package." - ) - manifest_path: Missing[str] = Field( - default=UNSET, - description="The full path to the dependency manifest file, relative to the root of the repository.", - ) - scope: Missing[Union[None, Literal["development", "runtime"]]] = Field( - default=UNSET, description="The execution scope of the vulnerable dependency." - ) + type: Literal["symlink"] = Field() + target: str = Field() + size: int = Field() + name: str = Field() + path: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentSymlinkPropLinks = Field(alias="_links") + + +class ContentSymlinkPropLinks(GitHubModel): + """ContentSymlinkPropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") -model_rebuild(DependabotAlertPropDependency) +model_rebuild(ContentSymlink) +model_rebuild(ContentSymlinkPropLinks) -__all__ = ("DependabotAlertPropDependency",) +__all__ = ( + "ContentSymlink", + "ContentSymlinkPropLinks", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0236.py b/githubkit/versions/v2022_11_28/models/group_0236.py index f34e182ab..23682cfb1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0236.py +++ b/githubkit/versions/v2022_11_28/models/group_0236.py @@ -9,43 +9,44 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class DependencyGraphDiffItems(GitHubModel): - """DependencyGraphDiffItems""" +class ContentSubmodule(GitHubModel): + """Submodule Content - change_type: Literal["added", "removed"] = Field() - manifest: str = Field() - ecosystem: str = Field() + An object describing a submodule + """ + + type: Literal["submodule"] = Field() + submodule_git_url: str = Field() + size: int = Field() name: str = Field() - version: str = Field() - package_url: Union[str, None] = Field() - license_: Union[str, None] = Field(alias="license") - source_repository_url: Union[str, None] = Field() - vulnerabilities: List[DependencyGraphDiffItemsPropVulnerabilitiesItems] = Field() - scope: Literal["unknown", "runtime", "development"] = Field( - description="Where the dependency is utilized. `development` means that the dependency is only utilized in the development environment. `runtime` means that the dependency is utilized at runtime and in the development environment." - ) + path: str = Field() + sha: str = Field() + url: str = Field() + git_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + links: ContentSubmodulePropLinks = Field(alias="_links") -class DependencyGraphDiffItemsPropVulnerabilitiesItems(GitHubModel): - """DependencyGraphDiffItemsPropVulnerabilitiesItems""" +class ContentSubmodulePropLinks(GitHubModel): + """ContentSubmodulePropLinks""" - severity: str = Field() - advisory_ghsa_id: str = Field() - advisory_summary: str = Field() - advisory_url: str = Field() + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") -model_rebuild(DependencyGraphDiffItems) -model_rebuild(DependencyGraphDiffItemsPropVulnerabilitiesItems) +model_rebuild(ContentSubmodule) +model_rebuild(ContentSubmodulePropLinks) __all__ = ( - "DependencyGraphDiffItems", - "DependencyGraphDiffItemsPropVulnerabilitiesItems", + "ContentSubmodule", + "ContentSubmodulePropLinks", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0237.py b/githubkit/versions/v2022_11_28/models/group_0237.py index 7f410acba..ef42a5d0b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0237.py +++ b/githubkit/versions/v2022_11_28/models/group_0237.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import List, Union from pydantic import Field @@ -18,124 +18,114 @@ from githubkit.compat import GitHubModel, model_rebuild -class DependencyGraphSpdxSbom(GitHubModel): - """Dependency Graph SPDX SBOM +class FileCommit(GitHubModel): + """File Commit - A schema for the SPDX JSON format returned by the Dependency Graph. + File Commit """ - sbom: DependencyGraphSpdxSbomPropSbom = Field() + content: Union[FileCommitPropContent, None] = Field() + commit: FileCommitPropCommit = Field() -class DependencyGraphSpdxSbomPropSbom(GitHubModel): - """DependencyGraphSpdxSbomPropSbom""" +class FileCommitPropContent(GitHubModel): + """FileCommitPropContent""" - spdxid: str = Field( - alias="SPDXID", description="The SPDX identifier for the SPDX document." + 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" ) - spdx_version: str = Field( - alias="spdxVersion", - description="The version of the SPDX specification that this document conforms to.", - ) - 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_describes: List[str] = Field( - alias="documentDescribes", - description="The name of the repository that the SPDX document describes.", - ) - document_namespace: str = Field( - alias="documentNamespace", description="The namespace for the SPDX document." - ) - packages: List[DependencyGraphSpdxSbomPropSbomPropPackagesItems] = Field() -class DependencyGraphSpdxSbomPropSbomPropCreationInfo(GitHubModel): - """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" +class FileCommitPropContentPropLinks(GitHubModel): + """FileCommitPropContentPropLinks""" - created: str = Field(description="The date and time the SPDX document was created.") - creators: List[str] = Field( - description="The tools that were used to generate the SPDX document." - ) + self_: Missing[str] = Field(default=UNSET, alias="self") + git: Missing[str] = Field(default=UNSET) + html: Missing[str] = Field(default=UNSET) -class DependencyGraphSpdxSbomPropSbomPropPackagesItems(GitHubModel): - """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" +class FileCommitPropCommit(GitHubModel): + """FileCommitPropCommit""" - spdxid: Missing[str] = Field( - default=UNSET, - alias="SPDXID", - description="A unique SPDX identifier for the package.", - ) - name: Missing[str] = Field(default=UNSET, description="The name of the package.") - version_info: Missing[str] = Field( - default=UNSET, - alias="versionInfo", - description="The version of the package. If the package does not have an exact version specified,\na version range is given.", - ) - download_location: Missing[str] = Field( - default=UNSET, - alias="downloadLocation", - description="The location where the package can be downloaded,\nor NOASSERTION if this has not been determined.", - ) - files_analyzed: Missing[bool] = Field( - default=UNSET, - alias="filesAnalyzed", - description="Whether the package's file content has been subjected to\nanalysis during the creation of the SPDX document.", - ) - license_concluded: Missing[str] = Field( - default=UNSET, - alias="licenseConcluded", - description="The license of the package as determined while creating the SPDX document.", - ) - license_declared: Missing[str] = Field( - default=UNSET, - alias="licenseDeclared", - description="The license of the package as declared by its author, or NOASSERTION if this information\nwas not available when the SPDX document was created.", - ) - supplier: Missing[str] = Field( - default=UNSET, - description="The distribution source of this package, or NOASSERTION if this was not determined.", - ) - external_refs: Missing[ - List[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems] - ] = Field(default=UNSET, alias="externalRefs") + 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 DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems( - GitHubModel -): - """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" +class FileCommitPropCommitPropAuthor(GitHubModel): + """FileCommitPropCommitPropAuthor""" - reference_category: str = Field( - alias="referenceCategory", - description="The category of reference to an external resource this reference refers to.", - ) - reference_locator: str = Field( - alias="referenceLocator", - description="A locator for the particular external resource this reference refers to.", - ) - reference_type: str = Field( - alias="referenceType", - description="The category of reference to an external resource this reference refers to.", - ) + date: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + email: Missing[str] = Field(default=UNSET) + + +class 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) -model_rebuild(DependencyGraphSpdxSbom) -model_rebuild(DependencyGraphSpdxSbomPropSbom) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropCreationInfo) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItems) -model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems) +model_rebuild(FileCommit) +model_rebuild(FileCommitPropContent) +model_rebuild(FileCommitPropContentPropLinks) +model_rebuild(FileCommitPropCommit) +model_rebuild(FileCommitPropCommitPropAuthor) +model_rebuild(FileCommitPropCommitPropCommitter) +model_rebuild(FileCommitPropCommitPropTree) +model_rebuild(FileCommitPropCommitPropParentsItems) +model_rebuild(FileCommitPropCommitPropVerification) __all__ = ( - "DependencyGraphSpdxSbom", - "DependencyGraphSpdxSbomPropSbom", - "DependencyGraphSpdxSbomPropSbomPropCreationInfo", - "DependencyGraphSpdxSbomPropSbomPropPackagesItems", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", + "FileCommit", + "FileCommitPropContent", + "FileCommitPropContentPropLinks", + "FileCommitPropCommit", + "FileCommitPropCommitPropAuthor", + "FileCommitPropCommitPropCommitter", + "FileCommitPropCommitPropTree", + "FileCommitPropCommitPropParentsItems", + "FileCommitPropCommitPropVerification", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0238.py b/githubkit/versions/v2022_11_28/models/group_0238.py index ffac1fb50..bd8204a62 100644 --- a/githubkit/versions/v2022_11_28/models/group_0238.py +++ b/githubkit/versions/v2022_11_28/models/group_0238.py @@ -9,17 +9,44 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from typing import Union +from pydantic import Field -class Metadata(ExtraGitHubModel): - """metadata +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. - """ +class Contributor(GitHubModel): + """Contributor -model_rebuild(Metadata) + Contributor + """ -__all__ = ("Metadata",) + 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) + + +model_rebuild(Contributor) + +__all__ = ("Contributor",) diff --git a/githubkit/versions/v2022_11_28/models/group_0239.py b/githubkit/versions/v2022_11_28/models/group_0239.py index 87f288c5d..73ca898fd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0239.py +++ b/githubkit/versions/v2022_11_28/models/group_0239.py @@ -9,7 +9,9 @@ from __future__ import annotations -from typing import List, Literal +from datetime import datetime +from typing import Union, Literal +from typing_extensions import Annotated from pydantic import Field @@ -17,36 +19,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0238 import Metadata +from .group_0001 import SimpleUser +from .group_0240 import DependabotAlertPropDependency +from .group_0032 import DependabotAlertSecurityAdvisory +from .group_0031 import DependabotAlertSecurityVulnerability -class Dependency(GitHubModel): - """Dependency""" +class DependabotAlert(GitHubModel): + """DependabotAlert - 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.", + A Dependabot alert. + """ + + number: int = Field(description="The security alert number.") + state: Literal["auto_dismissed", "dismissed", "fixed", "open"] = Field( + description="The state of the Dependabot alert." ) - metadata: Missing[Metadata] = Field( - default=UNSET, - title="metadata", - description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", + dependency: DependabotAlertPropDependency = Field( + description="Details for the vulnerable dependency." ) - relationship: Missing[Literal["direct", "indirect"]] = Field( - default=UNSET, - description="A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency.", + security_advisory: DependabotAlertSecurityAdvisory = Field( + description="Details for the GitHub Security Advisory." ) - 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.", + 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`." ) - dependencies: Missing[List[str]] = Field( + auto_dismissed_at: Missing[Union[datetime, None]] = Field( default=UNSET, - description="Array of package-url (PURLs) of direct child dependencies.", + description="The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) -model_rebuild(Dependency) +model_rebuild(DependabotAlert) -__all__ = ("Dependency",) +__all__ = ("DependabotAlert",) diff --git a/githubkit/versions/v2022_11_28/models/group_0240.py b/githubkit/versions/v2022_11_28/models/group_0240.py index ab4c9e56d..4e54bea11 100644 --- a/githubkit/versions/v2022_11_28/models/group_0240.py +++ b/githubkit/versions/v2022_11_28/models/group_0240.py @@ -9,52 +9,35 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0238 import Metadata +from .group_0030 import DependabotAlertPackage -class Manifest(GitHubModel): - """Manifest""" +class DependabotAlertPropDependency(GitHubModel): + """DependabotAlertPropDependency - 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""" + Details for the vulnerable dependency. + """ - source_location: Missing[str] = Field( + package: Missing[DependabotAlertPackage] = Field( + default=UNSET, description="Details for the vulnerable package." + ) + manifest_path: Missing[str] = Field( default=UNSET, - description="The path of the manifest file relative to the root of the Git repository.", + 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." ) -class ManifestPropResolved(ExtraGitHubModel): - """ManifestPropResolved - - A collection of resolved package dependencies. - """ - - -model_rebuild(Manifest) -model_rebuild(ManifestPropFile) -model_rebuild(ManifestPropResolved) +model_rebuild(DependabotAlertPropDependency) -__all__ = ( - "Manifest", - "ManifestPropFile", - "ManifestPropResolved", -) +__all__ = ("DependabotAlertPropDependency",) diff --git a/githubkit/versions/v2022_11_28/models/group_0241.py b/githubkit/versions/v2022_11_28/models/group_0241.py index 2bfdd140a..f34e182ab 100644 --- a/githubkit/versions/v2022_11_28/models/group_0241.py +++ b/githubkit/versions/v2022_11_28/models/group_0241.py @@ -9,88 +9,43 @@ from __future__ import annotations -from datetime import datetime +from typing import List, Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0238 import Metadata +class DependencyGraphDiffItems(GitHubModel): + """DependencyGraphDiffItems""" -class Snapshot(GitHubModel): - """snapshot - - Create a new snapshot of a repository's dependencies. - """ - - version: int = Field( - description="The version of the repository snapshot submission." - ) - job: SnapshotPropJob = Field() - sha: str = Field( - min_length=40, - max_length=40, - description="The commit SHA associated with this dependency snapshot. Maximum length: 40 characters.", - ) - ref: str = Field( - pattern="^refs/", - description="The repository branch that triggered this snapshot.", + 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." ) - detector: SnapshotPropDetector = Field( - description="A description of the detector used." - ) - metadata: Missing[Metadata] = Field( - default=UNSET, - title="metadata", - description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", - ) - manifests: Missing[SnapshotPropManifests] = Field( - default=UNSET, - description="A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies.", - ) - scanned: datetime = Field(description="The time at which the snapshot was scanned.") - - -class SnapshotPropJob(GitHubModel): - """SnapshotPropJob""" - - id: str = Field(description="The external ID of the job.") - correlator: str = Field( - description="Correlator provides a key that is used to group snapshots submitted over time. Only the \"latest\" submitted snapshot for a given combination of `job.correlator` and `detector.name` will be considered when calculating a repository's current dependencies. Correlator should be as unique as it takes to distinguish all detection runs for a given \"wave\" of CI workflow you run. If you're using GitHub Actions, a good default value for this could be the environment variables GITHUB_WORKFLOW and GITHUB_JOB concatenated together. If you're using a build matrix, then you'll also need to add additional key(s) to distinguish between each submission inside a matrix variation." - ) - html_url: Missing[str] = Field(default=UNSET, description="The url for the job.") - - -class SnapshotPropDetector(GitHubModel): - """SnapshotPropDetector - - A description of the detector used. - """ - - name: str = Field(description="The name of the detector used.") - version: str = Field(description="The version of the detector used.") - url: str = Field(description="The url of the detector used.") -class SnapshotPropManifests(ExtraGitHubModel): - """SnapshotPropManifests +class DependencyGraphDiffItemsPropVulnerabilitiesItems(GitHubModel): + """DependencyGraphDiffItemsPropVulnerabilitiesItems""" - A collection of package manifests, which are a collection of related - dependencies declared in a file or representing a logical group of dependencies. - """ + severity: str = Field() + advisory_ghsa_id: str = Field() + advisory_summary: str = Field() + advisory_url: str = Field() -model_rebuild(Snapshot) -model_rebuild(SnapshotPropJob) -model_rebuild(SnapshotPropDetector) -model_rebuild(SnapshotPropManifests) +model_rebuild(DependencyGraphDiffItems) +model_rebuild(DependencyGraphDiffItemsPropVulnerabilitiesItems) __all__ = ( - "Snapshot", - "SnapshotPropJob", - "SnapshotPropDetector", - "SnapshotPropManifests", + "DependencyGraphDiffItems", + "DependencyGraphDiffItemsPropVulnerabilitiesItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0242.py b/githubkit/versions/v2022_11_28/models/group_0242.py index 46820d7ea..f363ea7ca 100644 --- a/githubkit/versions/v2022_11_28/models/group_0242.py +++ b/githubkit/versions/v2022_11_28/models/group_0242.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from pydantic import Field @@ -18,48 +17,130 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0006 import Integration +class DependencyGraphSpdxSbom(GitHubModel): + """Dependency Graph SPDX SBOM -class DeploymentStatus(GitHubModel): - """Deployment Status - - The status of a deployment. + A schema for the SPDX JSON format returned by the Dependency Graph. """ - 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( + 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.", + ) + 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_describes: List[str] = Field( + alias="documentDescribes", + description="The name of the repository that the SPDX document describes.", + ) + document_namespace: str = Field( + alias="documentNamespace", description="The namespace for the SPDX document." + ) + packages: List[DependencyGraphSpdxSbomPropSbomPropPackagesItems] = Field() + + +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 DependencyGraphSpdxSbomPropSbomPropPackagesItems(GitHubModel): + """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" + + spdxid: Missing[str] = Field( default=UNSET, - description="The environment of the deployment that the status is for.", + alias="SPDXID", + description="A unique SPDX identifier for the package.", ) - target_url: str = Field( - default="", description="Deprecated: the URL to associate with this status." + name: Missing[str] = Field(default=UNSET, description="The name of the package.") + version_info: Missing[str] = Field( + default=UNSET, + alias="versionInfo", + description="The version of the package. If the package does not have an exact version specified,\na version range is given.", + ) + download_location: Missing[str] = Field( + default=UNSET, + alias="downloadLocation", + description="The location where the package can be downloaded,\nor NOASSERTION if this has not been determined.", + ) + files_analyzed: Missing[bool] = Field( + default=UNSET, + alias="filesAnalyzed", + description="Whether the package's file content has been subjected to\nanalysis during the creation of the SPDX document.", + ) + license_concluded: Missing[str] = Field( + default=UNSET, + alias="licenseConcluded", + description="The license of the package as determined while creating the SPDX document.", + ) + license_declared: Missing[str] = Field( + default=UNSET, + alias="licenseDeclared", + description="The license of the package as declared by its author, or NOASSERTION if this information\nwas not available when the SPDX document was created.", + ) + supplier: Missing[str] = Field( + default=UNSET, + description="The distribution source of this package, or NOASSERTION if this was not determined.", + ) + copyright_text: Missing[str] = Field( + default=UNSET, + alias="copyrightText", + description="The copyright holders of the package, and any dates present with those notices, if available.", ) - 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." + 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.", ) - log_url: Missing[str] = Field( - default=UNSET, description="The URL to associate with this status." + reference_locator: str = Field( + alias="referenceLocator", + description="A locator for the particular external resource this reference refers to.", ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET + reference_type: str = Field( + alias="referenceType", + description="The category of reference to an external resource this reference refers to.", ) -model_rebuild(DeploymentStatus) +model_rebuild(DependencyGraphSpdxSbom) +model_rebuild(DependencyGraphSpdxSbomPropSbom) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropCreationInfo) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItems) +model_rebuild(DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems) -__all__ = ("DeploymentStatus",) +__all__ = ( + "DependencyGraphSpdxSbom", + "DependencyGraphSpdxSbomPropSbom", + "DependencyGraphSpdxSbomPropSbomPropCreationInfo", + "DependencyGraphSpdxSbomPropSbomPropPackagesItems", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0243.py b/githubkit/versions/v2022_11_28/models/group_0243.py index 2969bea8b..ffac1fb50 100644 --- a/githubkit/versions/v2022_11_28/models/group_0243.py +++ b/githubkit/versions/v2022_11_28/models/group_0243.py @@ -9,26 +9,17 @@ from __future__ import annotations -from pydantic import Field +from githubkit.compat import ExtraGitHubModel, model_rebuild -from githubkit.compat import GitHubModel, model_rebuild +class Metadata(ExtraGitHubModel): + """metadata -class DeploymentBranchPolicySettings(GitHubModel): - """DeploymentBranchPolicySettings - - The type of deployment branch policy for this environment. To allow all branches - to deploy, set to `null`. + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. """ - protected_branches: bool = Field( - description="Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`." - ) - custom_branch_policies: bool = Field( - description="Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`." - ) - -model_rebuild(DeploymentBranchPolicySettings) +model_rebuild(Metadata) -__all__ = ("DeploymentBranchPolicySettings",) +__all__ = ("Metadata",) diff --git a/githubkit/versions/v2022_11_28/models/group_0244.py b/githubkit/versions/v2022_11_28/models/group_0244.py index c61e537bb..6972e884d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0244.py +++ b/githubkit/versions/v2022_11_28/models/group_0244.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import List, Literal from pydantic import Field @@ -18,84 +17,36 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0243 import DeploymentBranchPolicySettings -from .group_0245 import EnvironmentPropProtectionRulesItemsAnyof1 +from .group_0243 import Metadata -class Environment(GitHubModel): - """Environment +class Dependency(GitHubModel): + """Dependency""" - 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." + 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.", ) - protection_rules: Missing[ - List[ - Union[ - EnvironmentPropProtectionRulesItemsAnyof0, - EnvironmentPropProtectionRulesItemsAnyof1, - EnvironmentPropProtectionRulesItemsAnyof2, - ] - ] - ] = Field( + metadata: Missing[Metadata] = Field( default=UNSET, - description="Built-in deployment protection rules for the environment.", + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", ) - deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( - Field( - default=UNSET, - description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", - ) + relationship: Missing[Literal["direct", "indirect"]] = Field( + default=UNSET, + description="A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency.", ) - - -class EnvironmentPropProtectionRulesItemsAnyof0(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof0""" - - id: int = Field() - node_id: str = Field() - type: str = Field() - wait_timer: Missing[int] = Field( + scope: Missing[Literal["runtime", "development"]] = Field( default=UNSET, - description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", + description="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.", ) - - -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" + dependencies: Missing[List[str]] = Field( + default=UNSET, + description="Array of package-url (PURLs) of direct child dependencies.", ) - environments: Missing[List[Environment]] = Field(default=UNSET) -model_rebuild(Environment) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof0) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof2) -model_rebuild(ReposOwnerRepoEnvironmentsGetResponse200) +model_rebuild(Dependency) -__all__ = ( - "Environment", - "EnvironmentPropProtectionRulesItemsAnyof0", - "EnvironmentPropProtectionRulesItemsAnyof2", - "ReposOwnerRepoEnvironmentsGetResponse200", -) +__all__ = ("Dependency",) diff --git a/githubkit/versions/v2022_11_28/models/group_0245.py b/githubkit/versions/v2022_11_28/models/group_0245.py index cfd3a76ee..6754488f5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0245.py +++ b/githubkit/versions/v2022_11_28/models/group_0245.py @@ -9,35 +9,52 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0246 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems +from .group_0243 import Metadata -class EnvironmentPropProtectionRulesItemsAnyof1(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof1""" +class Manifest(GitHubModel): + """Manifest""" - id: int = Field() - node_id: str = Field() - prevent_self_review: Missing[bool] = Field( + name: str = Field(description="The name of the manifest.") + file: Missing[ManifestPropFile] = Field(default=UNSET) + metadata: Missing[Metadata] = Field( default=UNSET, - description="Whether deployments to this environment can be approved by the user who created the deployment.", + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", + ) + resolved: Missing[ManifestPropResolved] = Field( + default=UNSET, description="A collection of resolved package dependencies." ) - type: str = Field() - reviewers: Missing[ - List[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems] - ] = Field( + + +class ManifestPropFile(GitHubModel): + """ManifestPropFile""" + + source_location: Missing[str] = Field( default=UNSET, - description="The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", + description="The path of the manifest file relative to the root of the Git repository.", ) -model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1) +class ManifestPropResolved(ExtraGitHubModel): + """ManifestPropResolved + + A collection of resolved package dependencies. + """ + + +model_rebuild(Manifest) +model_rebuild(ManifestPropFile) +model_rebuild(ManifestPropResolved) -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1",) +__all__ = ( + "Manifest", + "ManifestPropFile", + "ManifestPropResolved", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0246.py b/githubkit/versions/v2022_11_28/models/group_0246.py index ee7932eb1..54d87c3a9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0246.py +++ b/githubkit/versions/v2022_11_28/models/group_0246.py @@ -9,27 +9,88 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0076 import Team -from .group_0001 import SimpleUser +from .group_0243 import Metadata -class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems(GitHubModel): - """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" +class Snapshot(GitHubModel): + """snapshot - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." + 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." + ) + metadata: Missing[Metadata] = Field( + default=UNSET, + title="metadata", + description="User-defined metadata to store domain-specific information limited to 8 keys with scalar values.", ) - reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) + 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(EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems) +model_rebuild(Snapshot) +model_rebuild(SnapshotPropJob) +model_rebuild(SnapshotPropDetector) +model_rebuild(SnapshotPropManifests) -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",) +__all__ = ( + "Snapshot", + "SnapshotPropJob", + "SnapshotPropDetector", + "SnapshotPropManifests", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0247.py b/githubkit/versions/v2022_11_28/models/group_0247.py index aee2faae9..46820d7ea 100644 --- a/githubkit/versions/v2022_11_28/models/group_0247.py +++ b/githubkit/versions/v2022_11_28/models/group_0247.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,18 +18,48 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0006 import Integration -class DeploymentBranchPolicyNamePatternWithType(GitHubModel): - """Deployment branch and tag policy name pattern""" - name: str = Field( - description="The name pattern that branches or tags must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." +class DeploymentStatus(GitHubModel): + """Deployment Status + + The status of a deployment. + """ + + url: str = Field() + id: int = Field() + node_id: str = Field() + state: Literal[ + "error", "failure", "inactive", "pending", "success", "queued", "in_progress" + ] = Field(description="The state of the status.") + creator: Union[None, SimpleUser] = Field() + description: str = Field( + max_length=140, default="", description="A short description of the status." + ) + environment: Missing[str] = Field( + default=UNSET, + description="The environment of the deployment that the status is for.", + ) + target_url: str = Field( + default="", description="Deprecated: the URL to associate with this status." + ) + created_at: datetime = Field() + updated_at: datetime = Field() + deployment_url: str = Field() + repository_url: str = Field() + environment_url: Missing[str] = Field( + default=UNSET, description="The URL for accessing your environment." + ) + log_url: Missing[str] = Field( + default=UNSET, description="The URL to associate with this status." ) - type: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="Whether this rule targets a branch or tag" + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) -model_rebuild(DeploymentBranchPolicyNamePatternWithType) +model_rebuild(DeploymentStatus) -__all__ = ("DeploymentBranchPolicyNamePatternWithType",) +__all__ = ("DeploymentStatus",) diff --git a/githubkit/versions/v2022_11_28/models/group_0248.py b/githubkit/versions/v2022_11_28/models/group_0248.py index 11e46307f..2969bea8b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0248.py +++ b/githubkit/versions/v2022_11_28/models/group_0248.py @@ -14,14 +14,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class DeploymentBranchPolicyNamePattern(GitHubModel): - """Deployment branch policy name pattern""" +class DeploymentBranchPolicySettings(GitHubModel): + """DeploymentBranchPolicySettings - name: str = Field( - description="The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + The type of deployment branch policy for this environment. To allow all branches + to deploy, set to `null`. + """ + + protected_branches: bool = Field( + description="Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`." + ) + custom_branch_policies: bool = Field( + description="Whether only branches that match the specified name patterns can deploy to this environment. If `custom_branch_policies` is `true`, `protected_branches` must be `false`; if `custom_branch_policies` is `false`, `protected_branches` must be `true`." ) -model_rebuild(DeploymentBranchPolicyNamePattern) +model_rebuild(DeploymentBranchPolicySettings) -__all__ = ("DeploymentBranchPolicyNamePattern",) +__all__ = ("DeploymentBranchPolicySettings",) diff --git a/githubkit/versions/v2022_11_28/models/group_0249.py b/githubkit/versions/v2022_11_28/models/group_0249.py index ec57f6950..f9622a892 100644 --- a/githubkit/versions/v2022_11_28/models/group_0249.py +++ b/githubkit/versions/v2022_11_28/models/group_0249.py @@ -9,31 +9,93 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0248 import DeploymentBranchPolicySettings +from .group_0250 import EnvironmentPropProtectionRulesItemsAnyof1 + -class CustomDeploymentRuleApp(GitHubModel): - """Custom deployment protection rule app +class Environment(GitHubModel): + """Environment - A GitHub App that is providing a custom deployment protection rule. + Details of a deployment environment """ - id: int = Field( - description="The unique identifier of the deployment protection rule integration." + 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.", ) - slug: str = Field( - description="The slugified name of the deployment protection rule integration." + 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`.", + ) ) - integration_url: str = Field( - description="The URL for the endpoint to get details about the app." + + +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).", ) - node_id: str = Field( - description="The node ID for the deployment protection rule integration." + + +class EnvironmentPropProtectionRulesItemsAnyof2(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof2""" + + id: int = Field() + node_id: str = Field() + type: str = Field() + + +class ReposOwnerRepoEnvironmentsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsGetResponse200""" + + total_count: Missing[int] = Field( + default=UNSET, description="The number of environments in this repository" ) + environments: Missing[List[Environment]] = Field(default=UNSET) -model_rebuild(CustomDeploymentRuleApp) +model_rebuild(Environment) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof0) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof2) +model_rebuild(ReposOwnerRepoEnvironmentsGetResponse200) -__all__ = ("CustomDeploymentRuleApp",) +__all__ = ( + "Environment", + "EnvironmentPropProtectionRulesItemsAnyof0", + "EnvironmentPropProtectionRulesItemsAnyof2", + "ReposOwnerRepoEnvironmentsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0250.py b/githubkit/versions/v2022_11_28/models/group_0250.py index 01086cc8d..c308f8a13 100644 --- a/githubkit/versions/v2022_11_28/models/group_0250.py +++ b/githubkit/versions/v2022_11_28/models/group_0250.py @@ -17,52 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0249 import CustomDeploymentRuleApp +from .group_0251 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems -class DeploymentProtectionRule(GitHubModel): - """Deployment protection rule +class EnvironmentPropProtectionRulesItemsAnyof1(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof1""" - 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( + id: int = Field() + node_id: str = Field() + prevent_self_review: Missing[bool] = Field( default=UNSET, - description="The number of enabled custom deployment protection rules for this environment", + description="Whether deployments to this environment can be approved by the user who created the deployment.", ) - custom_deployment_protection_rules: Missing[List[DeploymentProtectionRule]] = Field( - default=UNSET + 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(DeploymentProtectionRule) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 -) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1) -__all__ = ( - "DeploymentProtectionRule", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", -) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0251.py b/githubkit/versions/v2022_11_28/models/group_0251.py index 23227f8fe..215e136cb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0251.py +++ b/githubkit/versions/v2022_11_28/models/group_0251.py @@ -9,21 +9,27 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0026 import Team +from .group_0001 import SimpleUser -class ShortBlob(GitHubModel): - """Short Blob - Short Blob - """ +class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems(GitHubModel): + """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" - url: str = Field() - sha: str = Field() + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." + ) + reviewer: Missing[Union[SimpleUser, Team]] = Field(default=UNSET) -model_rebuild(ShortBlob) +model_rebuild(EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems) -__all__ = ("ShortBlob",) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0252.py b/githubkit/versions/v2022_11_28/models/group_0252.py index c52a12148..aee2faae9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0252.py +++ b/githubkit/versions/v2022_11_28/models/group_0252.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -18,21 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class Blob(GitHubModel): - """Blob +class DeploymentBranchPolicyNamePatternWithType(GitHubModel): + """Deployment branch and tag policy name pattern""" - Blob - """ + name: str = Field( + description="The name pattern that branches or tags must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch)." + ) + type: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="Whether this rule targets a branch or tag" + ) - 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(DeploymentBranchPolicyNamePatternWithType) -model_rebuild(Blob) - -__all__ = ("Blob",) +__all__ = ("DeploymentBranchPolicyNamePatternWithType",) diff --git a/githubkit/versions/v2022_11_28/models/group_0253.py b/githubkit/versions/v2022_11_28/models/group_0253.py index 314d3773a..11e46307f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0253.py +++ b/githubkit/versions/v2022_11_28/models/group_0253.py @@ -9,94 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import List, 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 - """ +class DeploymentBranchPolicyNamePattern(GitHubModel): + """Deployment branch policy name pattern""" - 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" + 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)." ) - message: str = Field(description="Message describing the purpose of the commit") - tree: GitCommitPropTree = Field() - parents: List[GitCommitPropParentsItems] = Field() - verification: GitCommitPropVerification = Field() - html_url: str = Field() - - -class GitCommitPropAuthor(GitHubModel): - """GitCommitPropAuthor - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") - - -class GitCommitPropCommitter(GitHubModel): - """GitCommitPropCommitter - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") - - -class GitCommitPropTree(GitHubModel): - """GitCommitPropTree""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - - -class GitCommitPropParentsItems(GitHubModel): - """GitCommitPropParentsItems""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - html_url: str = Field() - - -class GitCommitPropVerification(GitHubModel): - """GitCommitPropVerification""" - - verified: bool = Field() - reason: str = Field() - signature: Union[str, None] = Field() - payload: Union[str, None] = Field() -model_rebuild(GitCommit) -model_rebuild(GitCommitPropAuthor) -model_rebuild(GitCommitPropCommitter) -model_rebuild(GitCommitPropTree) -model_rebuild(GitCommitPropParentsItems) -model_rebuild(GitCommitPropVerification) +model_rebuild(DeploymentBranchPolicyNamePattern) -__all__ = ( - "GitCommit", - "GitCommitPropAuthor", - "GitCommitPropCommitter", - "GitCommitPropTree", - "GitCommitPropParentsItems", - "GitCommitPropVerification", -) +__all__ = ("DeploymentBranchPolicyNamePattern",) diff --git a/githubkit/versions/v2022_11_28/models/group_0254.py b/githubkit/versions/v2022_11_28/models/group_0254.py index ee31507d1..ec57f6950 100644 --- a/githubkit/versions/v2022_11_28/models/group_0254.py +++ b/githubkit/versions/v2022_11_28/models/group_0254.py @@ -14,30 +14,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class GitRef(GitHubModel): - """Git Reference +class CustomDeploymentRuleApp(GitHubModel): + """Custom deployment protection rule app - Git references within a repository + A GitHub App that is providing a custom deployment protection rule. """ - ref: str = Field() - node_id: str = Field() - url: str = Field() - object_: GitRefPropObject = Field(alias="object") + id: int = Field( + description="The unique identifier of the deployment protection rule integration." + ) + slug: str = Field( + description="The slugified name of the deployment protection rule integration." + ) + integration_url: str = Field( + description="The URL for the endpoint to get details about the app." + ) + node_id: str = Field( + description="The node ID for the deployment protection rule integration." + ) -class GitRefPropObject(GitHubModel): - """GitRefPropObject""" +model_rebuild(CustomDeploymentRuleApp) - type: str = Field() - sha: str = Field(min_length=40, max_length=40, description="SHA for the reference") - url: str = Field() - - -model_rebuild(GitRef) -model_rebuild(GitRefPropObject) - -__all__ = ( - "GitRef", - "GitRefPropObject", -) +__all__ = ("CustomDeploymentRuleApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0255.py b/githubkit/versions/v2022_11_28/models/group_0255.py index ba977d4a0..e6d52d385 100644 --- a/githubkit/versions/v2022_11_28/models/group_0255.py +++ b/githubkit/versions/v2022_11_28/models/group_0255.py @@ -9,53 +9,60 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0183 import Verification +from .group_0254 import CustomDeploymentRuleApp -class GitTag(GitHubModel): - """Git Tag +class DeploymentProtectionRule(GitHubModel): + """Deployment protection rule - Metadata for a Git tag + Deployment protection rule """ - node_id: str = Field() - tag: str = Field(description="Name of the tag") - sha: str = Field() - url: str = Field(description="URL for the tag") - message: str = Field(description="Message describing the purpose of the tag") - tagger: GitTagPropTagger = Field() - object_: GitTagPropObject = Field(alias="object") - verification: Missing[Verification] = Field(default=UNSET, title="Verification") - - -class GitTagPropTagger(GitHubModel): - """GitTagPropTagger""" - - date: str = Field() - email: str = Field() - name: str = Field() - - -class GitTagPropObject(GitHubModel): - """GitTagPropObject""" + 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'} + """ - sha: str = Field() - type: str = Field() - url: str = Field() + total_count: Missing[int] = Field( + default=UNSET, + description="The number of enabled custom deployment protection rules for this environment", + ) + custom_deployment_protection_rules: Missing[List[DeploymentProtectionRule]] = Field( + default=UNSET + ) -model_rebuild(GitTag) -model_rebuild(GitTagPropTagger) -model_rebuild(GitTagPropObject) +model_rebuild(DeploymentProtectionRule) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 +) __all__ = ( - "GitTag", - "GitTagPropTagger", - "GitTagPropObject", + "DeploymentProtectionRule", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0256.py b/githubkit/versions/v2022_11_28/models/group_0256.py index 458d88b27..23227f8fe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0256.py +++ b/githubkit/versions/v2022_11_28/models/group_0256.py @@ -9,44 +9,21 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class GitTree(GitHubModel): - """Git Tree +class ShortBlob(GitHubModel): + """Short Blob - The hierarchy between files in a Git repository. + Short Blob """ - sha: str = Field() url: str = Field() - truncated: bool = Field() - tree: List[GitTreePropTreeItems] = Field( - description="Objects specifying a tree structure" - ) - - -class GitTreePropTreeItems(GitHubModel): - """GitTreePropTreeItems""" - - path: Missing[str] = Field(default=UNSET) - mode: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + sha: str = Field() -model_rebuild(GitTree) -model_rebuild(GitTreePropTreeItems) +model_rebuild(ShortBlob) -__all__ = ( - "GitTree", - "GitTreePropTreeItems", -) +__all__ = ("ShortBlob",) diff --git a/githubkit/versions/v2022_11_28/models/group_0257.py b/githubkit/versions/v2022_11_28/models/group_0257.py index 544751a06..c52a12148 100644 --- a/githubkit/versions/v2022_11_28/models/group_0257.py +++ b/githubkit/versions/v2022_11_28/models/group_0257.py @@ -13,17 +13,26 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class HookResponse(GitHubModel): - """Hook Response""" +class Blob(GitHubModel): + """Blob - code: Union[int, None] = Field() - status: Union[str, None] = Field() - message: Union[str, None] = Field() + Blob + """ + 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(HookResponse) -__all__ = ("HookResponse",) +model_rebuild(Blob) + +__all__ = ("Blob",) diff --git a/githubkit/versions/v2022_11_28/models/group_0258.py b/githubkit/versions/v2022_11_28/models/group_0258.py index f03d41cf0..314d3773a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0258.py +++ b/githubkit/versions/v2022_11_28/models/group_0258.py @@ -9,48 +9,94 @@ from __future__ import annotations -from typing import List from datetime import datetime +from typing import List, Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0257 import HookResponse -from .group_0007 import WebhookConfig +class GitCommit(GitHubModel): + """Git Commit -class Hook(GitHubModel): - """Webhook - - Webhooks for repositories. + Low-level Git commit operations within a 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(description="SHA for the commit") + node_id: str = Field() + url: str = Field() + author: GitCommitPropAuthor = Field( + description="Identifying information for the git-user" ) - config: WebhookConfig = Field( - title="Webhook Configuration", description="Configuration object of the webhook" + committer: GitCommitPropCommitter = Field( + description="Identifying information for the git-user" ) - updated_at: datetime = Field() - created_at: datetime = Field() + message: str = Field(description="Message describing the purpose of the commit") + tree: GitCommitPropTree = Field() + parents: List[GitCommitPropParentsItems] = Field() + verification: GitCommitPropVerification = Field() + html_url: str = Field() + + +class GitCommitPropAuthor(GitHubModel): + """GitCommitPropAuthor + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class GitCommitPropCommitter(GitHubModel): + """GitCommitPropCommitter + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class GitCommitPropTree(GitHubModel): + """GitCommitPropTree""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + + +class GitCommitPropParentsItems(GitHubModel): + """GitCommitPropParentsItems""" + + sha: str = Field(description="SHA for the commit") url: str = Field() - test_url: str = Field() - ping_url: str = Field() - deliveries_url: Missing[str] = Field(default=UNSET) - last_response: HookResponse = Field(title="Hook Response") + html_url: str = Field() + + +class GitCommitPropVerification(GitHubModel): + """GitCommitPropVerification""" + + verified: bool = Field() + reason: str = Field() + signature: Union[str, None] = Field() + payload: Union[str, None] = Field() -model_rebuild(Hook) +model_rebuild(GitCommit) +model_rebuild(GitCommitPropAuthor) +model_rebuild(GitCommitPropCommitter) +model_rebuild(GitCommitPropTree) +model_rebuild(GitCommitPropParentsItems) +model_rebuild(GitCommitPropVerification) -__all__ = ("Hook",) +__all__ = ( + "GitCommit", + "GitCommitPropAuthor", + "GitCommitPropCommitter", + "GitCommitPropTree", + "GitCommitPropParentsItems", + "GitCommitPropVerification", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0259.py b/githubkit/versions/v2022_11_28/models/group_0259.py index be9c31456..ee31507d1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0259.py +++ b/githubkit/versions/v2022_11_28/models/group_0259.py @@ -9,75 +9,35 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class Import(GitHubModel): - """Import +class GitRef(GitHubModel): + """Git Reference - A repository import from an external source. + Git references within a repository """ - vcs: Union[str, None] = Field() - use_lfs: Missing[bool] = Field(default=UNSET) - vcs_url: str = Field(description="The URL of the originating repository.") - svc_root: Missing[str] = Field(default=UNSET) - tfvc_project: Missing[str] = Field(default=UNSET) - status: Literal[ - "auth", - "error", - "none", - "detecting", - "choose", - "auth_failed", - "importing", - "mapping", - "waiting_to_push", - "pushing", - "complete", - "setup", - "unknown", - "detection_found_multiple", - "detection_found_nothing", - "detection_needs_auth", - ] = Field() - status_text: Missing[Union[str, None]] = Field(default=UNSET) - failed_step: Missing[Union[str, None]] = Field(default=UNSET) - error_message: Missing[Union[str, None]] = Field(default=UNSET) - import_percent: Missing[Union[int, None]] = Field(default=UNSET) - commit_count: Missing[Union[int, None]] = Field(default=UNSET) - push_percent: Missing[Union[int, None]] = Field(default=UNSET) - has_large_files: Missing[bool] = Field(default=UNSET) - large_files_size: Missing[int] = Field(default=UNSET) - large_files_count: Missing[int] = Field(default=UNSET) - project_choices: Missing[List[ImportPropProjectChoicesItems]] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - authors_count: Missing[Union[int, None]] = Field(default=UNSET) + ref: str = Field() + node_id: str = Field() url: str = Field() - html_url: str = Field() - authors_url: str = Field() - repository_url: str = Field() - svn_root: Missing[str] = Field(default=UNSET) + object_: GitRefPropObject = Field(alias="object") -class ImportPropProjectChoicesItems(GitHubModel): - """ImportPropProjectChoicesItems""" +class GitRefPropObject(GitHubModel): + """GitRefPropObject""" - vcs: Missing[str] = Field(default=UNSET) - tfvc_project: Missing[str] = Field(default=UNSET) - human_name: Missing[str] = Field(default=UNSET) + type: str = Field() + sha: str = Field(min_length=40, max_length=40, description="SHA for the reference") + url: str = Field() -model_rebuild(Import) -model_rebuild(ImportPropProjectChoicesItems) +model_rebuild(GitRef) +model_rebuild(GitRefPropObject) __all__ = ( - "Import", - "ImportPropProjectChoicesItems", + "GitRef", + "GitRefPropObject", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0260.py b/githubkit/versions/v2022_11_28/models/group_0260.py index 7ed1d272d..109baaeeb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0260.py +++ b/githubkit/versions/v2022_11_28/models/group_0260.py @@ -11,24 +11,51 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0188 import Verification -class PorterAuthor(GitHubModel): - """Porter Author - Porter Author +class GitTag(GitHubModel): + """Git Tag + + Metadata for a Git tag """ - id: int = Field() - remote_id: str = Field() - remote_name: str = Field() + node_id: str = Field() + tag: str = Field(description="Name of the tag") + sha: str = Field() + url: str = Field(description="URL for the tag") + message: str = Field(description="Message describing the purpose of the tag") + tagger: GitTagPropTagger = Field() + object_: GitTagPropObject = Field(alias="object") + verification: Missing[Verification] = Field(default=UNSET, title="Verification") + + +class GitTagPropTagger(GitHubModel): + """GitTagPropTagger""" + + date: str = Field() email: str = Field() name: str = Field() + + +class GitTagPropObject(GitHubModel): + """GitTagPropObject""" + + sha: str = Field() + type: str = Field() url: str = Field() - import_url: str = Field() -model_rebuild(PorterAuthor) +model_rebuild(GitTag) +model_rebuild(GitTagPropTagger) +model_rebuild(GitTagPropObject) -__all__ = ("PorterAuthor",) +__all__ = ( + "GitTag", + "GitTagPropTagger", + "GitTagPropObject", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0261.py b/githubkit/versions/v2022_11_28/models/group_0261.py index c54f24120..458d88b27 100644 --- a/githubkit/versions/v2022_11_28/models/group_0261.py +++ b/githubkit/versions/v2022_11_28/models/group_0261.py @@ -9,23 +9,44 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class PorterLargeFile(GitHubModel): - """Porter Large File +class GitTree(GitHubModel): + """Git Tree - Porter Large File + The hierarchy between files in a Git repository. """ - ref_name: str = Field() - path: str = Field() - oid: str = Field() - size: int = Field() + sha: str = Field() + url: str = Field() + truncated: bool = Field() + tree: List[GitTreePropTreeItems] = Field( + description="Objects specifying a tree structure" + ) + + +class GitTreePropTreeItems(GitHubModel): + """GitTreePropTreeItems""" + + path: Missing[str] = Field(default=UNSET) + mode: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(PorterLargeFile) +model_rebuild(GitTree) +model_rebuild(GitTreePropTreeItems) -__all__ = ("PorterLargeFile",) +__all__ = ( + "GitTree", + "GitTreePropTreeItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0262.py b/githubkit/versions/v2022_11_28/models/group_0262.py index 9a3a8fb53..544751a06 100644 --- a/githubkit/versions/v2022_11_28/models/group_0262.py +++ b/githubkit/versions/v2022_11_28/models/group_0262.py @@ -9,150 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0076 import Team -from .group_0035 import Issue -from .group_0001 import SimpleUser -from .group_0006 import Integration +class HookResponse(GitHubModel): + """Hook Response""" -class IssueEvent(GitHubModel): - """Issue Event + code: Union[int, None] = Field() + status: Union[str, None] = Field() + message: Union[str, None] = Field() - Issue Event - """ - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: Union[None, SimpleUser] = Field() - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: datetime = Field() - issue: Missing[Union[None, Issue]] = Field(default=UNSET) - label: Missing[IssueEventLabel] = Field( - default=UNSET, title="Issue Event Label", description="Issue Event Label" - ) - assignee: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - assigner: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - review_requester: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - requested_reviewer: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - requested_team: Missing[Team] = Field( - default=UNSET, - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - dismissed_review: Missing[IssueEventDismissedReview] = Field( - default=UNSET, title="Issue Event Dismissed Review" - ) - milestone: Missing[IssueEventMilestone] = Field( - default=UNSET, - title="Issue Event Milestone", - description="Issue Event Milestone", - ) - project_card: Missing[IssueEventProjectCard] = Field( - default=UNSET, - title="Issue Event Project Card", - description="Issue Event Project Card", - ) - rename: Missing[IssueEventRename] = Field( - default=UNSET, title="Issue Event Rename", description="Issue Event Rename" - ) - author_association: Missing[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - ] = Field( - default=UNSET, - title="author_association", - description="How the author is associated with the repository.", - ) - lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) +model_rebuild(HookResponse) - -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() - - -model_rebuild(IssueEvent) -model_rebuild(IssueEventLabel) -model_rebuild(IssueEventDismissedReview) -model_rebuild(IssueEventMilestone) -model_rebuild(IssueEventProjectCard) -model_rebuild(IssueEventRename) - -__all__ = ( - "IssueEvent", - "IssueEventLabel", - "IssueEventDismissedReview", - "IssueEventMilestone", - "IssueEventProjectCard", - "IssueEventRename", -) +__all__ = ("HookResponse",) diff --git a/githubkit/versions/v2022_11_28/models/group_0263.py b/githubkit/versions/v2022_11_28/models/group_0263.py index 6f376ebe4..94e653e09 100644 --- a/githubkit/versions/v2022_11_28/models/group_0263.py +++ b/githubkit/versions/v2022_11_28/models/group_0263.py @@ -9,45 +9,48 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List +from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0006 import Integration +from .group_0262 import HookResponse +from .group_0007 import WebhookConfig -class LabeledIssueEvent(GitHubModel): - """Labeled Issue Event +class Hook(GitHubModel): + """Webhook - Labeled Issue Event + Webhooks for repositories. """ - id: int = Field() - node_id: str = Field() + type: str = Field() + id: int = Field(description="Unique identifier of the webhook.") + name: str = Field( + description="The name of a valid service, use 'web' for a webhook." + ) + active: bool = Field( + description="Determines whether the hook is actually triggered on pushes." + ) + events: List[str] = Field( + description="Determines what events the hook is triggered for. Default: ['push']." + ) + config: WebhookConfig = Field( + title="Webhook Configuration", description="Configuration object of the webhook" + ) + updated_at: datetime = Field() + created_at: datetime = Field() url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["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() + test_url: str = Field() + ping_url: str = Field() + deliveries_url: Missing[str] = Field(default=UNSET) + last_response: HookResponse = Field(title="Hook Response") -class LabeledIssueEventPropLabel(GitHubModel): - """LabeledIssueEventPropLabel""" +model_rebuild(Hook) - name: str = Field() - color: str = Field() - - -model_rebuild(LabeledIssueEvent) -model_rebuild(LabeledIssueEventPropLabel) - -__all__ = ( - "LabeledIssueEvent", - "LabeledIssueEventPropLabel", -) +__all__ = ("Hook",) diff --git a/githubkit/versions/v2022_11_28/models/group_0264.py b/githubkit/versions/v2022_11_28/models/group_0264.py index ad01f1526..be9c31456 100644 --- a/githubkit/versions/v2022_11_28/models/group_0264.py +++ b/githubkit/versions/v2022_11_28/models/group_0264.py @@ -9,45 +9,75 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0006 import Integration +class Import(GitHubModel): + """Import -class UnlabeledIssueEvent(GitHubModel): - """Unlabeled Issue Event - - Unlabeled Issue Event + A repository import from an external source. """ - id: int = Field() - node_id: str = Field() + vcs: Union[str, None] = Field() + use_lfs: Missing[bool] = Field(default=UNSET) + vcs_url: str = Field(description="The URL of the originating repository.") + svc_root: Missing[str] = Field(default=UNSET) + tfvc_project: Missing[str] = Field(default=UNSET) + status: Literal[ + "auth", + "error", + "none", + "detecting", + "choose", + "auth_failed", + "importing", + "mapping", + "waiting_to_push", + "pushing", + "complete", + "setup", + "unknown", + "detection_found_multiple", + "detection_found_nothing", + "detection_needs_auth", + ] = Field() + status_text: Missing[Union[str, None]] = Field(default=UNSET) + failed_step: Missing[Union[str, None]] = Field(default=UNSET) + error_message: Missing[Union[str, None]] = Field(default=UNSET) + import_percent: Missing[Union[int, None]] = Field(default=UNSET) + commit_count: Missing[Union[int, None]] = Field(default=UNSET) + push_percent: Missing[Union[int, None]] = Field(default=UNSET) + has_large_files: Missing[bool] = Field(default=UNSET) + large_files_size: Missing[int] = Field(default=UNSET) + large_files_count: Missing[int] = Field(default=UNSET) + project_choices: Missing[List[ImportPropProjectChoicesItems]] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + authors_count: Missing[Union[int, None]] = Field(default=UNSET) url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["unlabeled"] = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - label: UnlabeledIssueEventPropLabel = Field() + html_url: str = Field() + authors_url: str = Field() + repository_url: str = Field() + svn_root: Missing[str] = Field(default=UNSET) -class UnlabeledIssueEventPropLabel(GitHubModel): - """UnlabeledIssueEventPropLabel""" +class ImportPropProjectChoicesItems(GitHubModel): + """ImportPropProjectChoicesItems""" - name: str = Field() - color: str = Field() + vcs: Missing[str] = Field(default=UNSET) + tfvc_project: Missing[str] = Field(default=UNSET) + human_name: Missing[str] = Field(default=UNSET) -model_rebuild(UnlabeledIssueEvent) -model_rebuild(UnlabeledIssueEventPropLabel) +model_rebuild(Import) +model_rebuild(ImportPropProjectChoicesItems) __all__ = ( - "UnlabeledIssueEvent", - "UnlabeledIssueEventPropLabel", + "Import", + "ImportPropProjectChoicesItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0265.py b/githubkit/versions/v2022_11_28/models/group_0265.py index d58f7c5ed..7ed1d272d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0265.py +++ b/githubkit/versions/v2022_11_28/models/group_0265.py @@ -9,38 +9,26 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0006 import Integration - -class AssignedIssueEvent(GitHubModel): - """Assigned Issue Event +class PorterAuthor(GitHubModel): + """Porter Author - Assigned Issue Event + Porter Author """ id: int = Field() - node_id: str = Field() + remote_id: str = Field() + remote_name: str = Field() + email: str = Field() + name: str = Field() url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[Integration, None] = Field( - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") - assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - - -model_rebuild(AssignedIssueEvent) - -__all__ = ("AssignedIssueEvent",) + import_url: str = Field() + + +model_rebuild(PorterAuthor) + +__all__ = ("PorterAuthor",) diff --git a/githubkit/versions/v2022_11_28/models/group_0266.py b/githubkit/versions/v2022_11_28/models/group_0266.py index 1c9e0e427..c54f24120 100644 --- a/githubkit/versions/v2022_11_28/models/group_0266.py +++ b/githubkit/versions/v2022_11_28/models/group_0266.py @@ -9,35 +9,23 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0006 import Integration - -class UnassignedIssueEvent(GitHubModel): - """Unassigned Issue Event +class PorterLargeFile(GitHubModel): + """Porter Large File - Unassigned Issue Event + Porter Large File """ - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: str = Field() - commit_id: Union[str, None] = Field() - commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") - assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + ref_name: str = Field() + path: str = Field() + oid: str = Field() + size: int = Field() -model_rebuild(UnassignedIssueEvent) +model_rebuild(PorterLargeFile) -__all__ = ("UnassignedIssueEvent",) +__all__ = ("PorterLargeFile",) diff --git a/githubkit/versions/v2022_11_28/models/group_0267.py b/githubkit/versions/v2022_11_28/models/group_0267.py index 7493096af..4789e423c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0267.py +++ b/githubkit/versions/v2022_11_28/models/group_0267.py @@ -9,44 +9,150 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0026 import Team +from .group_0039 import Issue from .group_0001 import SimpleUser from .group_0006 import Integration -class MilestonedIssueEvent(GitHubModel): - """Milestoned Issue Event +class IssueEvent(GitHubModel): + """Issue Event - Milestoned 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["milestoned"] = Field() + actor: Union[None, SimpleUser] = Field() + event: str = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() - created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - milestone: MilestonedIssueEventPropMilestone = 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 MilestonedIssueEventPropMilestone(GitHubModel): - """MilestonedIssueEventPropMilestone""" +class IssueEventMilestone(GitHubModel): + """Issue Event Milestone + + Issue Event Milestone + """ title: str = Field() -model_rebuild(MilestonedIssueEvent) -model_rebuild(MilestonedIssueEventPropMilestone) +class IssueEventProjectCard(GitHubModel): + """Issue Event Project Card + + Issue Event Project Card + """ + + url: str = Field() + id: int = Field() + project_url: str = Field() + project_id: int = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +class IssueEventRename(GitHubModel): + """Issue Event Rename + + Issue Event Rename + """ + + from_: str = Field(alias="from") + to: str = Field() + + +model_rebuild(IssueEvent) +model_rebuild(IssueEventLabel) +model_rebuild(IssueEventDismissedReview) +model_rebuild(IssueEventMilestone) +model_rebuild(IssueEventProjectCard) +model_rebuild(IssueEventRename) __all__ = ( - "MilestonedIssueEvent", - "MilestonedIssueEventPropMilestone", + "IssueEvent", + "IssueEventLabel", + "IssueEventDismissedReview", + "IssueEventMilestone", + "IssueEventProjectCard", + "IssueEventRename", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0268.py b/githubkit/versions/v2022_11_28/models/group_0268.py index 9420ade70..6f376ebe4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0268.py +++ b/githubkit/versions/v2022_11_28/models/group_0268.py @@ -19,34 +19,35 @@ from .group_0006 import Integration -class DemilestonedIssueEvent(GitHubModel): - """Demilestoned Issue Event +class LabeledIssueEvent(GitHubModel): + """Labeled Issue Event - Demilestoned Issue Event + Labeled Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["demilestoned"] = Field() + event: Literal["labeled"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - milestone: DemilestonedIssueEventPropMilestone = Field() + label: LabeledIssueEventPropLabel = Field() -class DemilestonedIssueEventPropMilestone(GitHubModel): - """DemilestonedIssueEventPropMilestone""" +class LabeledIssueEventPropLabel(GitHubModel): + """LabeledIssueEventPropLabel""" - title: str = Field() + name: str = Field() + color: str = Field() -model_rebuild(DemilestonedIssueEvent) -model_rebuild(DemilestonedIssueEventPropMilestone) +model_rebuild(LabeledIssueEvent) +model_rebuild(LabeledIssueEventPropLabel) __all__ = ( - "DemilestonedIssueEvent", - "DemilestonedIssueEventPropMilestone", + "LabeledIssueEvent", + "LabeledIssueEventPropLabel", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0269.py b/githubkit/versions/v2022_11_28/models/group_0269.py index ccefbdde8..ad01f1526 100644 --- a/githubkit/versions/v2022_11_28/models/group_0269.py +++ b/githubkit/versions/v2022_11_28/models/group_0269.py @@ -19,35 +19,35 @@ from .group_0006 import Integration -class RenamedIssueEvent(GitHubModel): - """Renamed Issue Event +class UnlabeledIssueEvent(GitHubModel): + """Unlabeled Issue Event - Renamed Issue Event + Unlabeled Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["renamed"] = 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() - rename: RenamedIssueEventPropRename = Field() + label: UnlabeledIssueEventPropLabel = Field() -class RenamedIssueEventPropRename(GitHubModel): - """RenamedIssueEventPropRename""" +class UnlabeledIssueEventPropLabel(GitHubModel): + """UnlabeledIssueEventPropLabel""" - from_: str = Field(alias="from") - to: str = Field() + name: str = Field() + color: str = Field() -model_rebuild(RenamedIssueEvent) -model_rebuild(RenamedIssueEventPropRename) +model_rebuild(UnlabeledIssueEvent) +model_rebuild(UnlabeledIssueEventPropLabel) __all__ = ( - "RenamedIssueEvent", - "RenamedIssueEventPropRename", + "UnlabeledIssueEvent", + "UnlabeledIssueEventPropLabel", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0270.py b/githubkit/versions/v2022_11_28/models/group_0270.py index ec22d485c..d58f7c5ed 100644 --- a/githubkit/versions/v2022_11_28/models/group_0270.py +++ b/githubkit/versions/v2022_11_28/models/group_0270.py @@ -9,47 +9,38 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0076 import Team from .group_0001 import SimpleUser from .group_0006 import Integration -class ReviewRequestedIssueEvent(GitHubModel): - """Review Requested Issue Event +class AssignedIssueEvent(GitHubModel): + """Assigned Issue Event - Review Requested Issue Event + Assigned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_requested"] = Field() + event: str = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - review_requester: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - requested_team: Missing[Team] = Field( - default=UNSET, - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - requested_reviewer: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + performed_via_github_app: Union[Integration, None] = Field( + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(ReviewRequestedIssueEvent) +model_rebuild(AssignedIssueEvent) -__all__ = ("ReviewRequestedIssueEvent",) +__all__ = ("AssignedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0271.py b/githubkit/versions/v2022_11_28/models/group_0271.py index 0b60956d7..1c9e0e427 100644 --- a/githubkit/versions/v2022_11_28/models/group_0271.py +++ b/githubkit/versions/v2022_11_28/models/group_0271.py @@ -9,47 +9,35 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0076 import Team from .group_0001 import SimpleUser from .group_0006 import Integration -class ReviewRequestRemovedIssueEvent(GitHubModel): - """Review Request Removed Issue Event +class UnassignedIssueEvent(GitHubModel): + """Unassigned Issue Event - Review Request Removed Issue Event + Unassigned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_request_removed"] = Field() + event: str = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - review_requester: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - requested_team: Missing[Team] = Field( - default=UNSET, - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - requested_reviewer: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - - -model_rebuild(ReviewRequestRemovedIssueEvent) - -__all__ = ("ReviewRequestRemovedIssueEvent",) + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assigner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + + +model_rebuild(UnassignedIssueEvent) + +__all__ = ("UnassignedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0272.py b/githubkit/versions/v2022_11_28/models/group_0272.py index e01a0c7ee..7493096af 100644 --- a/githubkit/versions/v2022_11_28/models/group_0272.py +++ b/githubkit/versions/v2022_11_28/models/group_0272.py @@ -13,45 +13,40 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser from .group_0006 import Integration -class ReviewDismissedIssueEvent(GitHubModel): - """Review Dismissed Issue Event +class MilestonedIssueEvent(GitHubModel): + """Milestoned Issue Event - Review Dismissed Issue Event + Milestoned Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["review_dismissed"] = 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() - dismissed_review: ReviewDismissedIssueEventPropDismissedReview = Field() + milestone: MilestonedIssueEventPropMilestone = Field() -class ReviewDismissedIssueEventPropDismissedReview(GitHubModel): - """ReviewDismissedIssueEventPropDismissedReview""" +class MilestonedIssueEventPropMilestone(GitHubModel): + """MilestonedIssueEventPropMilestone""" - state: str = Field() - review_id: int = Field() - dismissal_message: Union[str, None] = Field() - dismissal_commit_id: Missing[str] = Field(default=UNSET) + title: str = Field() -model_rebuild(ReviewDismissedIssueEvent) -model_rebuild(ReviewDismissedIssueEventPropDismissedReview) +model_rebuild(MilestonedIssueEvent) +model_rebuild(MilestonedIssueEventPropMilestone) __all__ = ( - "ReviewDismissedIssueEvent", - "ReviewDismissedIssueEventPropDismissedReview", + "MilestonedIssueEvent", + "MilestonedIssueEventPropMilestone", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0273.py b/githubkit/versions/v2022_11_28/models/group_0273.py index c49e31371..9420ade70 100644 --- a/githubkit/versions/v2022_11_28/models/group_0273.py +++ b/githubkit/versions/v2022_11_28/models/group_0273.py @@ -19,24 +19,34 @@ from .group_0006 import Integration -class LockedIssueEvent(GitHubModel): - """Locked Issue Event +class DemilestonedIssueEvent(GitHubModel): + """Demilestoned Issue Event - Locked 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["locked"] = 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() - lock_reason: Union[str, None] = Field() + milestone: DemilestonedIssueEventPropMilestone = Field() -model_rebuild(LockedIssueEvent) +class DemilestonedIssueEventPropMilestone(GitHubModel): + """DemilestonedIssueEventPropMilestone""" -__all__ = ("LockedIssueEvent",) + title: str = Field() + + +model_rebuild(DemilestonedIssueEvent) +model_rebuild(DemilestonedIssueEventPropMilestone) + +__all__ = ( + "DemilestonedIssueEvent", + "DemilestonedIssueEventPropMilestone", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0274.py b/githubkit/versions/v2022_11_28/models/group_0274.py index ed998c928..ccefbdde8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0274.py +++ b/githubkit/versions/v2022_11_28/models/group_0274.py @@ -13,49 +13,41 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser from .group_0006 import Integration -class AddedToProjectIssueEvent(GitHubModel): - """Added to Project Issue Event +class RenamedIssueEvent(GitHubModel): + """Renamed Issue Event - Added to Project Issue Event + Renamed Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["added_to_project"] = Field() + event: Literal["renamed"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[AddedToProjectIssueEventPropProjectCard] = Field( - default=UNSET - ) + rename: RenamedIssueEventPropRename = Field() -class AddedToProjectIssueEventPropProjectCard(GitHubModel): - """AddedToProjectIssueEventPropProjectCard""" +class RenamedIssueEventPropRename(GitHubModel): + """RenamedIssueEventPropRename""" - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) + from_: str = Field(alias="from") + to: str = Field() -model_rebuild(AddedToProjectIssueEvent) -model_rebuild(AddedToProjectIssueEventPropProjectCard) +model_rebuild(RenamedIssueEvent) +model_rebuild(RenamedIssueEventPropRename) __all__ = ( - "AddedToProjectIssueEvent", - "AddedToProjectIssueEventPropProjectCard", + "RenamedIssueEvent", + "RenamedIssueEventPropRename", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0275.py b/githubkit/versions/v2022_11_28/models/group_0275.py index b8b953f8b..94322c103 100644 --- a/githubkit/versions/v2022_11_28/models/group_0275.py +++ b/githubkit/versions/v2022_11_28/models/group_0275.py @@ -17,45 +17,39 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0026 import Team from .group_0001 import SimpleUser from .group_0006 import Integration -class MovedColumnInProjectIssueEvent(GitHubModel): - """Moved Column in Project Issue Event +class ReviewRequestedIssueEvent(GitHubModel): + """Review Requested Issue Event - Moved Column in Project Issue Event + Review Requested Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["moved_columns_in_project"] = Field() + event: Literal["review_requested"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[MovedColumnInProjectIssueEventPropProjectCard] = Field( - default=UNSET + review_requester: SimpleUser = Field( + title="Simple User", description="A GitHub user." + ) + requested_team: Missing[Team] = Field( + default=UNSET, + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + requested_reviewer: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -class MovedColumnInProjectIssueEventPropProjectCard(GitHubModel): - """MovedColumnInProjectIssueEventPropProjectCard""" - - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -model_rebuild(MovedColumnInProjectIssueEvent) -model_rebuild(MovedColumnInProjectIssueEventPropProjectCard) +model_rebuild(ReviewRequestedIssueEvent) -__all__ = ( - "MovedColumnInProjectIssueEvent", - "MovedColumnInProjectIssueEventPropProjectCard", -) +__all__ = ("ReviewRequestedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0276.py b/githubkit/versions/v2022_11_28/models/group_0276.py index e148a7e54..21d73d5fb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0276.py +++ b/githubkit/versions/v2022_11_28/models/group_0276.py @@ -17,45 +17,39 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0026 import Team from .group_0001 import SimpleUser from .group_0006 import Integration -class RemovedFromProjectIssueEvent(GitHubModel): - """Removed from Project Issue Event +class ReviewRequestRemovedIssueEvent(GitHubModel): + """Review Request Removed Issue Event - Removed from Project Issue Event + Review Request Removed Issue Event """ id: int = Field() node_id: str = Field() url: str = Field() actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["removed_from_project"] = Field() + event: Literal["review_request_removed"] = Field() commit_id: Union[str, None] = Field() commit_url: Union[str, None] = Field() created_at: str = Field() performed_via_github_app: Union[None, Integration, None] = Field() - project_card: Missing[RemovedFromProjectIssueEventPropProjectCard] = Field( - default=UNSET + review_requester: SimpleUser = Field( + title="Simple User", description="A GitHub user." + ) + requested_team: Missing[Team] = Field( + default=UNSET, + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + requested_reviewer: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) -class RemovedFromProjectIssueEventPropProjectCard(GitHubModel): - """RemovedFromProjectIssueEventPropProjectCard""" - - id: int = Field() - url: str = Field() - project_id: int = Field() - project_url: str = Field() - column_name: str = Field() - previous_column_name: Missing[str] = Field(default=UNSET) - - -model_rebuild(RemovedFromProjectIssueEvent) -model_rebuild(RemovedFromProjectIssueEventPropProjectCard) +model_rebuild(ReviewRequestRemovedIssueEvent) -__all__ = ( - "RemovedFromProjectIssueEvent", - "RemovedFromProjectIssueEventPropProjectCard", -) +__all__ = ("ReviewRequestRemovedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0277.py b/githubkit/versions/v2022_11_28/models/group_0277.py index cf5133829..e01a0c7ee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0277.py +++ b/githubkit/versions/v2022_11_28/models/group_0277.py @@ -21,44 +21,37 @@ from .group_0006 import Integration -class ConvertedNoteToIssueIssueEvent(GitHubModel): - """Converted Note to Issue Issue Event +class ReviewDismissedIssueEvent(GitHubModel): + """Review Dismissed Issue Event - Converted Note to Issue 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["converted_note_to_issue"] = 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[Integration, None] = Field( - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - project_card: Missing[ConvertedNoteToIssueIssueEventPropProjectCard] = Field( - default=UNSET - ) + performed_via_github_app: Union[None, Integration, None] = Field() + dismissed_review: ReviewDismissedIssueEventPropDismissedReview = Field() -class ConvertedNoteToIssueIssueEventPropProjectCard(GitHubModel): - """ConvertedNoteToIssueIssueEventPropProjectCard""" +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(ConvertedNoteToIssueIssueEvent) -model_rebuild(ConvertedNoteToIssueIssueEventPropProjectCard) +model_rebuild(ReviewDismissedIssueEvent) +model_rebuild(ReviewDismissedIssueEventPropDismissedReview) __all__ = ( - "ConvertedNoteToIssueIssueEvent", - "ConvertedNoteToIssueIssueEventPropProjectCard", + "ReviewDismissedIssueEvent", + "ReviewDismissedIssueEventPropDismissedReview", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0278.py b/githubkit/versions/v2022_11_28/models/group_0278.py index 4ab6afdfe..c49e31371 100644 --- a/githubkit/versions/v2022_11_28/models/group_0278.py +++ b/githubkit/versions/v2022_11_28/models/group_0278.py @@ -9,31 +9,34 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0006 import Integration -class Label(GitHubModel): - """Label - Color-coded labels help you categorize and filter your issues (just like labels - in Gmail). +class LockedIssueEvent(GitHubModel): + """Locked Issue Event + + Locked Issue Event """ id: int = Field() 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() - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["locked"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + lock_reason: Union[str, None] = Field() -model_rebuild(Label) +model_rebuild(LockedIssueEvent) -__all__ = ("Label",) +__all__ = ("LockedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0279.py b/githubkit/versions/v2022_11_28/models/group_0279.py index 78d0c52a3..ed998c928 100644 --- a/githubkit/versions/v2022_11_28/models/group_0279.py +++ b/githubkit/versions/v2022_11_28/models/group_0279.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -20,49 +19,43 @@ from .group_0001 import SimpleUser from .group_0006 import Integration -from .group_0034 import ReactionRollup -class TimelineCommentEvent(GitHubModel): - """Timeline Comment Event +class AddedToProjectIssueEvent(GitHubModel): + """Added to Project Issue Event - Timeline Comment Event + Added to Project Issue Event """ - event: Literal["commented"] = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - id: int = Field(description="Unique identifier of the issue comment") + id: int = Field() node_id: str = Field() - url: str = Field(description="URL for the issue comment") - body: Missing[str] = Field( - default=UNSET, description="Contents of the issue comment" - ) - body_text: Missing[str] = Field(default=UNSET) - body_html: Missing[str] = Field(default=UNSET) - html_url: str = Field() - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - created_at: datetime = Field() - updated_at: datetime = Field() - issue_url: str = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["added_to_project"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + project_card: Missing[AddedToProjectIssueEventPropProjectCard] = Field( default=UNSET ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(TimelineCommentEvent) +class AddedToProjectIssueEventPropProjectCard(GitHubModel): + """AddedToProjectIssueEventPropProjectCard""" + + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +model_rebuild(AddedToProjectIssueEvent) +model_rebuild(AddedToProjectIssueEventPropProjectCard) -__all__ = ("TimelineCommentEvent",) +__all__ = ( + "AddedToProjectIssueEvent", + "AddedToProjectIssueEventPropProjectCard", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0280.py b/githubkit/versions/v2022_11_28/models/group_0280.py index b898f772c..b8b953f8b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0280.py +++ b/githubkit/versions/v2022_11_28/models/group_0280.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -19,24 +18,44 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -from .group_0281 import TimelineCrossReferencedEventPropSource +from .group_0006 import Integration -class TimelineCrossReferencedEvent(GitHubModel): - """Timeline Cross Referenced Event +class MovedColumnInProjectIssueEvent(GitHubModel): + """Moved Column in Project Issue Event - Timeline Cross Referenced Event + Moved Column in Project Issue Event """ - event: Literal["cross-referenced"] = Field() - actor: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["moved_columns_in_project"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + project_card: Missing[MovedColumnInProjectIssueEventPropProjectCard] = Field( + default=UNSET ) - created_at: datetime = Field() - updated_at: datetime = Field() - source: TimelineCrossReferencedEventPropSource = Field() -model_rebuild(TimelineCrossReferencedEvent) +class MovedColumnInProjectIssueEventPropProjectCard(GitHubModel): + """MovedColumnInProjectIssueEventPropProjectCard""" -__all__ = ("TimelineCrossReferencedEvent",) + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +model_rebuild(MovedColumnInProjectIssueEvent) +model_rebuild(MovedColumnInProjectIssueEventPropProjectCard) + +__all__ = ( + "MovedColumnInProjectIssueEvent", + "MovedColumnInProjectIssueEventPropProjectCard", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0281.py b/githubkit/versions/v2022_11_28/models/group_0281.py index a486c581e..e148a7e54 100644 --- a/githubkit/versions/v2022_11_28/models/group_0281.py +++ b/githubkit/versions/v2022_11_28/models/group_0281.py @@ -9,26 +9,53 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0035 import Issue +from .group_0001 import SimpleUser +from .group_0006 import Integration + +class RemovedFromProjectIssueEvent(GitHubModel): + """Removed from Project Issue Event -class TimelineCrossReferencedEventPropSource(GitHubModel): - """TimelineCrossReferencedEventPropSource""" + Removed from Project Issue Event + """ - type: Missing[str] = Field(default=UNSET) - issue: Missing[Issue] = Field( - default=UNSET, - title="Issue", - description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["removed_from_project"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + project_card: Missing[RemovedFromProjectIssueEventPropProjectCard] = Field( + default=UNSET ) -model_rebuild(TimelineCrossReferencedEventPropSource) +class RemovedFromProjectIssueEventPropProjectCard(GitHubModel): + """RemovedFromProjectIssueEventPropProjectCard""" + + id: int = Field() + url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) + + +model_rebuild(RemovedFromProjectIssueEvent) +model_rebuild(RemovedFromProjectIssueEventPropProjectCard) -__all__ = ("TimelineCrossReferencedEventPropSource",) +__all__ = ( + "RemovedFromProjectIssueEvent", + "RemovedFromProjectIssueEventPropProjectCard", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0282.py b/githubkit/versions/v2022_11_28/models/group_0282.py index 350a6156a..cf5133829 100644 --- a/githubkit/versions/v2022_11_28/models/group_0282.py +++ b/githubkit/versions/v2022_11_28/models/group_0282.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,88 +17,48 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0006 import Integration -class TimelineCommittedEvent(GitHubModel): - """Timeline Committed Event - Timeline Committed Event +class ConvertedNoteToIssueIssueEvent(GitHubModel): + """Converted Note to Issue Issue Event + + Converted Note to Issue Issue Event """ - event: Missing[Literal["committed"]] = Field(default=UNSET) - sha: str = Field(description="SHA for the commit") + id: int = Field() node_id: str = Field() url: str = Field() - author: TimelineCommittedEventPropAuthor = Field( - description="Identifying information for the git-user" + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["converted_note_to_issue"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[Integration, None] = Field( + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - committer: TimelineCommittedEventPropCommitter = Field( - description="Identifying information for the git-user" + project_card: Missing[ConvertedNoteToIssueIssueEventPropProjectCard] = Field( + default=UNSET ) - message: str = Field(description="Message describing the purpose of the commit") - tree: TimelineCommittedEventPropTree = Field() - parents: List[TimelineCommittedEventPropParentsItems] = Field() - verification: TimelineCommittedEventPropVerification = Field() - html_url: str = Field() - - -class TimelineCommittedEventPropAuthor(GitHubModel): - """TimelineCommittedEventPropAuthor - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") - - -class TimelineCommittedEventPropCommitter(GitHubModel): - """TimelineCommittedEventPropCommitter - - Identifying information for the git-user - """ - - date: datetime = Field(description="Timestamp of the commit") - email: str = Field(description="Git email address of the user") - name: str = Field(description="Name of the git user") -class TimelineCommittedEventPropTree(GitHubModel): - """TimelineCommittedEventPropTree""" +class ConvertedNoteToIssueIssueEventPropProjectCard(GitHubModel): + """ConvertedNoteToIssueIssueEventPropProjectCard""" - sha: str = Field(description="SHA for the commit") + id: int = Field() url: str = Field() + project_id: int = Field() + project_url: str = Field() + column_name: str = Field() + previous_column_name: Missing[str] = Field(default=UNSET) -class TimelineCommittedEventPropParentsItems(GitHubModel): - """TimelineCommittedEventPropParentsItems""" - - sha: str = Field(description="SHA for the commit") - url: str = Field() - html_url: str = Field() - - -class TimelineCommittedEventPropVerification(GitHubModel): - """TimelineCommittedEventPropVerification""" - - verified: bool = Field() - reason: str = Field() - signature: Union[str, None] = Field() - payload: Union[str, None] = Field() - - -model_rebuild(TimelineCommittedEvent) -model_rebuild(TimelineCommittedEventPropAuthor) -model_rebuild(TimelineCommittedEventPropCommitter) -model_rebuild(TimelineCommittedEventPropTree) -model_rebuild(TimelineCommittedEventPropParentsItems) -model_rebuild(TimelineCommittedEventPropVerification) +model_rebuild(ConvertedNoteToIssueIssueEvent) +model_rebuild(ConvertedNoteToIssueIssueEventPropProjectCard) __all__ = ( - "TimelineCommittedEvent", - "TimelineCommittedEventPropAuthor", - "TimelineCommittedEventPropCommitter", - "TimelineCommittedEventPropTree", - "TimelineCommittedEventPropParentsItems", - "TimelineCommittedEventPropVerification", + "ConvertedNoteToIssueIssueEvent", + "ConvertedNoteToIssueIssueEventPropProjectCard", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0283.py b/githubkit/versions/v2022_11_28/models/group_0283.py index 01fd30cac..4ab6afdfe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0283.py +++ b/githubkit/versions/v2022_11_28/models/group_0283.py @@ -9,79 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class Label(GitHubModel): + """Label -class TimelineReviewedEvent(GitHubModel): - """Timeline Reviewed Event - - Timeline Reviewed Event + Color-coded labels help you categorize and filter your issues (just like labels + in Gmail). """ - event: Literal["reviewed"] = Field() - id: int = Field(description="Unique identifier of the review") + id: int = Field() node_id: str = Field() - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field(description="The text of the review.") - state: str = Field() - html_url: str = Field() - pull_request_url: str = Field() - links: TimelineReviewedEventPropLinks = Field(alias="_links") - submitted_at: Missing[datetime] = Field(default=UNSET) - commit_id: str = Field(description="A commit SHA for the review.") - body_html: Missing[Union[str, None]] = Field(default=UNSET) - body_text: Missing[Union[str, None]] = Field(default=UNSET) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", + url: str = Field(description="URL for the label") + name: str = Field(description="The name of the label.") + description: Union[str, None] = Field() + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) + default: bool = Field() -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(Label) -__all__ = ( - "TimelineReviewedEvent", - "TimelineReviewedEventPropLinks", - "TimelineReviewedEventPropLinksPropHtml", - "TimelineReviewedEventPropLinksPropPullRequest", -) +__all__ = ("Label",) diff --git a/githubkit/versions/v2022_11_28/models/group_0284.py b/githubkit/versions/v2022_11_28/models/group_0284.py index 6bccbc20a..679647840 100644 --- a/githubkit/versions/v2022_11_28/models/group_0284.py +++ b/githubkit/versions/v2022_11_28/models/group_0284.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -19,53 +19,31 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -from .group_0034 import ReactionRollup +from .group_0006 import Integration +from .group_0038 import ReactionRollup -class PullRequestReviewComment(GitHubModel): - """Pull Request Review Comment +class TimelineCommentEvent(GitHubModel): + """Timeline Comment Event - Pull Request Review Comments are comments on a portion of the Pull Request's - diff. + Timeline Comment 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 deprecated; 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 deprecated; 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." + 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.") - 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." - ) + issue_url: str = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -79,89 +57,12 @@ class PullRequestReviewComment(GitHubModel): 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.", + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET ) reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") - body_html: Missing[str] = Field(default=UNSET) - body_text: Missing[str] = Field(default=UNSET) - - -class PullRequestReviewCommentPropLinks(GitHubModel): - """PullRequestReviewCommentPropLinks""" - - self_: PullRequestReviewCommentPropLinksPropSelf = Field(alias="self") - html: PullRequestReviewCommentPropLinksPropHtml = Field() - pull_request: PullRequestReviewCommentPropLinksPropPullRequest = Field() - - -class PullRequestReviewCommentPropLinksPropSelf(GitHubModel): - """PullRequestReviewCommentPropLinksPropSelf""" - - href: str = Field() - - -class PullRequestReviewCommentPropLinksPropHtml(GitHubModel): - """PullRequestReviewCommentPropLinksPropHtml""" - - href: str = Field() - - -class PullRequestReviewCommentPropLinksPropPullRequest(GitHubModel): - """PullRequestReviewCommentPropLinksPropPullRequest""" - - href: str = Field() - - -class TimelineLineCommentedEvent(GitHubModel): - """Timeline Line Commented Event - - Timeline Line Commented Event - """ - - event: Missing[Literal["line_commented"]] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - comments: Missing[List[PullRequestReviewComment]] = Field(default=UNSET) -model_rebuild(PullRequestReviewComment) -model_rebuild(PullRequestReviewCommentPropLinks) -model_rebuild(PullRequestReviewCommentPropLinksPropSelf) -model_rebuild(PullRequestReviewCommentPropLinksPropHtml) -model_rebuild(PullRequestReviewCommentPropLinksPropPullRequest) -model_rebuild(TimelineLineCommentedEvent) +model_rebuild(TimelineCommentEvent) -__all__ = ( - "PullRequestReviewComment", - "PullRequestReviewCommentPropLinks", - "PullRequestReviewCommentPropLinksPropSelf", - "PullRequestReviewCommentPropLinksPropHtml", - "PullRequestReviewCommentPropLinksPropPullRequest", - "TimelineLineCommentedEvent", -) +__all__ = ("TimelineCommentEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0285.py b/githubkit/versions/v2022_11_28/models/group_0285.py index 4f5cd2cb1..c662e1efc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0285.py +++ b/githubkit/versions/v2022_11_28/models/group_0285.py @@ -9,34 +9,34 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal +from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild from .group_0001 import SimpleUser -from .group_0006 import Integration +from .group_0286 import TimelineCrossReferencedEventPropSource -class TimelineAssignedIssueEvent(GitHubModel): - """Timeline Assigned Issue Event +class TimelineCrossReferencedEvent(GitHubModel): + """Timeline Cross Referenced Event - Timeline Assigned Issue Event + Timeline Cross Referenced Event """ - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["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.") + 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(TimelineAssignedIssueEvent) +model_rebuild(TimelineCrossReferencedEvent) -__all__ = ("TimelineAssignedIssueEvent",) +__all__ = ("TimelineCrossReferencedEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0286.py b/githubkit/versions/v2022_11_28/models/group_0286.py index 5aa20a106..f35b23055 100644 --- a/githubkit/versions/v2022_11_28/models/group_0286.py +++ b/githubkit/versions/v2022_11_28/models/group_0286.py @@ -9,34 +9,26 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0006 import Integration - +from .group_0039 import Issue -class TimelineUnassignedIssueEvent(GitHubModel): - """Timeline Unassigned Issue Event - Timeline Unassigned Issue Event - """ +class TimelineCrossReferencedEventPropSource(GitHubModel): + """TimelineCrossReferencedEventPropSource""" - id: int = Field() - node_id: str = Field() - url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: Literal["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.") + type: Missing[str] = Field(default=UNSET) + issue: Missing[Issue] = Field( + default=UNSET, + title="Issue", + description="Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + ) -model_rebuild(TimelineUnassignedIssueEvent) +model_rebuild(TimelineCrossReferencedEventPropSource) -__all__ = ("TimelineUnassignedIssueEvent",) +__all__ = ("TimelineCrossReferencedEventPropSource",) diff --git a/githubkit/versions/v2022_11_28/models/group_0287.py b/githubkit/versions/v2022_11_28/models/group_0287.py index 809377a35..350a6156a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0287.py +++ b/githubkit/versions/v2022_11_28/models/group_0287.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,28 +18,88 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0006 import Integration +class TimelineCommittedEvent(GitHubModel): + """Timeline Committed Event -class StateChangeIssueEvent(GitHubModel): - """State Change Issue Event - - State Change Issue Event + Timeline Committed Event """ - id: int = Field() + event: Missing[Literal["committed"]] = Field(default=UNSET) + sha: str = Field(description="SHA for the commit") node_id: str = Field() url: str = Field() - actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") - event: 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) + author: TimelineCommittedEventPropAuthor = Field( + description="Identifying information for the git-user" + ) + committer: TimelineCommittedEventPropCommitter = Field( + description="Identifying information for the git-user" + ) + message: str = Field(description="Message describing the purpose of the commit") + tree: TimelineCommittedEventPropTree = Field() + parents: List[TimelineCommittedEventPropParentsItems] = Field() + verification: TimelineCommittedEventPropVerification = Field() + html_url: str = Field() + + +class TimelineCommittedEventPropAuthor(GitHubModel): + """TimelineCommittedEventPropAuthor + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class TimelineCommittedEventPropCommitter(GitHubModel): + """TimelineCommittedEventPropCommitter + + Identifying information for the git-user + """ + + date: datetime = Field(description="Timestamp of the commit") + email: str = Field(description="Git email address of the user") + name: str = Field(description="Name of the git user") + + +class TimelineCommittedEventPropTree(GitHubModel): + """TimelineCommittedEventPropTree""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + + +class TimelineCommittedEventPropParentsItems(GitHubModel): + """TimelineCommittedEventPropParentsItems""" + + sha: str = Field(description="SHA for the commit") + url: str = Field() + html_url: str = Field() + + +class TimelineCommittedEventPropVerification(GitHubModel): + """TimelineCommittedEventPropVerification""" + + verified: bool = Field() + reason: str = Field() + signature: Union[str, None] = Field() + payload: Union[str, None] = Field() -model_rebuild(StateChangeIssueEvent) +model_rebuild(TimelineCommittedEvent) +model_rebuild(TimelineCommittedEventPropAuthor) +model_rebuild(TimelineCommittedEventPropCommitter) +model_rebuild(TimelineCommittedEventPropTree) +model_rebuild(TimelineCommittedEventPropParentsItems) +model_rebuild(TimelineCommittedEventPropVerification) -__all__ = ("StateChangeIssueEvent",) +__all__ = ( + "TimelineCommittedEvent", + "TimelineCommittedEventPropAuthor", + "TimelineCommittedEventPropCommitter", + "TimelineCommittedEventPropTree", + "TimelineCommittedEventPropParentsItems", + "TimelineCommittedEventPropVerification", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0288.py b/githubkit/versions/v2022_11_28/models/group_0288.py index a711bb72a..01fd30cac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0288.py +++ b/githubkit/versions/v2022_11_28/models/group_0288.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,24 +18,70 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class DeployKey(GitHubModel): - """Deploy Key - An SSH key granting access to a single repository. +class TimelineReviewedEvent(GitHubModel): + """Timeline Reviewed Event + + Timeline Reviewed Event """ - id: int = Field() - key: str = Field() - url: str = Field() - title: str = Field() - verified: bool = Field() - created_at: str = Field() - read_only: bool = Field() - added_by: Missing[Union[str, None]] = Field(default=UNSET) - last_used: Missing[Union[str, None]] = Field(default=UNSET) + event: Literal["reviewed"] = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field(description="The text of the review.") + state: str = Field() + html_url: str = Field() + pull_request_url: str = Field() + links: TimelineReviewedEventPropLinks = Field(alias="_links") + submitted_at: Missing[datetime] = Field(default=UNSET) + commit_id: str = Field(description="A commit SHA for the review.") + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + + +class TimelineReviewedEventPropLinks(GitHubModel): + """TimelineReviewedEventPropLinks""" + + html: TimelineReviewedEventPropLinksPropHtml = Field() + pull_request: TimelineReviewedEventPropLinksPropPullRequest = Field() + + +class TimelineReviewedEventPropLinksPropHtml(GitHubModel): + """TimelineReviewedEventPropLinksPropHtml""" + + href: str = Field() + + +class TimelineReviewedEventPropLinksPropPullRequest(GitHubModel): + """TimelineReviewedEventPropLinksPropPullRequest""" + + href: str = Field() -model_rebuild(DeployKey) +model_rebuild(TimelineReviewedEvent) +model_rebuild(TimelineReviewedEventPropLinks) +model_rebuild(TimelineReviewedEventPropLinksPropHtml) +model_rebuild(TimelineReviewedEventPropLinksPropPullRequest) -__all__ = ("DeployKey",) +__all__ = ( + "TimelineReviewedEvent", + "TimelineReviewedEventPropLinks", + "TimelineReviewedEventPropLinksPropHtml", + "TimelineReviewedEventPropLinksPropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0289.py b/githubkit/versions/v2022_11_28/models/group_0289.py index 58247c327..a408c6e79 100644 --- a/githubkit/versions/v2022_11_28/models/group_0289.py +++ b/githubkit/versions/v2022_11_28/models/group_0289.py @@ -9,16 +9,159 @@ from __future__ import annotations -from githubkit.compat import ExtraGitHubModel, model_rebuild +from datetime import datetime +from typing import List, Union, Literal +from pydantic import Field -class Language(ExtraGitHubModel): - """Language +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild - Language +from .group_0001 import SimpleUser +from .group_0038 import ReactionRollup + + +class PullRequestReviewComment(GitHubModel): + """Pull Request Review Comment + + Pull Request Review Comments are comments on a portion of the Pull Request's + diff. """ + url: str = Field(description="URL for the pull request review comment") + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + id: int = Field(description="The ID of the pull request review comment.") + node_id: str = Field(description="The node ID of the pull request review comment.") + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Missing[int] = Field( + default=UNSET, + description="The line index in the diff to which the comment applies. This field is deprecated; 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 deprecated; use `original_line` instead.", + ) + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: str = Field(description="The text of the comment.") + created_at: datetime = Field() + updated_at: datetime = Field() + html_url: str = Field(description="HTML URL for the pull request review comment.") + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + links: PullRequestReviewCommentPropLinks = Field(alias="_links") + start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The first line of the range for a multi-line comment.", + ) + original_start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The first line of the range for a multi-line comment.", + ) + start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( + default=UNSET, + description="The side of the first line of the range for a multi-line comment.", + ) + line: Missing[int] = Field( + default=UNSET, + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + original_line: Missing[int] = Field( + default=UNSET, + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + side: Missing[Literal["LEFT", "RIGHT"]] = Field( + default=UNSET, + description="The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + + +class PullRequestReviewCommentPropLinks(GitHubModel): + """PullRequestReviewCommentPropLinks""" + + self_: PullRequestReviewCommentPropLinksPropSelf = Field(alias="self") + html: PullRequestReviewCommentPropLinksPropHtml = Field() + pull_request: PullRequestReviewCommentPropLinksPropPullRequest = Field() + + +class PullRequestReviewCommentPropLinksPropSelf(GitHubModel): + """PullRequestReviewCommentPropLinksPropSelf""" + + href: str = Field() + + +class PullRequestReviewCommentPropLinksPropHtml(GitHubModel): + """PullRequestReviewCommentPropLinksPropHtml""" + + href: str = Field() + + +class PullRequestReviewCommentPropLinksPropPullRequest(GitHubModel): + """PullRequestReviewCommentPropLinksPropPullRequest""" + + href: str = Field() + + +class TimelineLineCommentedEvent(GitHubModel): + """Timeline Line Commented Event + + Timeline Line Commented Event + """ + + event: Missing[Literal["line_commented"]] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + comments: Missing[List[PullRequestReviewComment]] = Field(default=UNSET) + -model_rebuild(Language) +model_rebuild(PullRequestReviewComment) +model_rebuild(PullRequestReviewCommentPropLinks) +model_rebuild(PullRequestReviewCommentPropLinksPropSelf) +model_rebuild(PullRequestReviewCommentPropLinksPropHtml) +model_rebuild(PullRequestReviewCommentPropLinksPropPullRequest) +model_rebuild(TimelineLineCommentedEvent) -__all__ = ("Language",) +__all__ = ( + "PullRequestReviewComment", + "PullRequestReviewCommentPropLinks", + "PullRequestReviewCommentPropLinksPropSelf", + "PullRequestReviewCommentPropLinksPropHtml", + "PullRequestReviewCommentPropLinksPropPullRequest", + "TimelineLineCommentedEvent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0290.py b/githubkit/versions/v2022_11_28/models/group_0290.py index 535642846..4f5cd2cb1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0290.py +++ b/githubkit/versions/v2022_11_28/models/group_0290.py @@ -9,48 +9,34 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0016 import LicenseSimple +from .group_0001 import SimpleUser +from .group_0006 import Integration -class LicenseContent(GitHubModel): - """License Content +class TimelineAssignedIssueEvent(GitHubModel): + """Timeline Assigned Issue Event - License Content + Timeline Assigned Issue Event """ - name: str = Field() - path: str = Field() - sha: str = Field() - size: int = Field() + id: int = Field() + node_id: str = Field() url: str = Field() - html_url: Union[str, None] = Field() - git_url: Union[str, None] = Field() - download_url: Union[str, None] = Field() - type: str = Field() - content: str = Field() - encoding: str = Field() - links: LicenseContentPropLinks = Field(alias="_links") - license_: Union[None, LicenseSimple] = Field(alias="license") + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["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.") -class LicenseContentPropLinks(GitHubModel): - """LicenseContentPropLinks""" +model_rebuild(TimelineAssignedIssueEvent) - git: Union[str, None] = Field() - html: Union[str, None] = Field() - self_: str = Field(alias="self") - - -model_rebuild(LicenseContent) -model_rebuild(LicenseContentPropLinks) - -__all__ = ( - "LicenseContent", - "LicenseContentPropLinks", -) +__all__ = ("TimelineAssignedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0291.py b/githubkit/versions/v2022_11_28/models/group_0291.py index 564733c8a..5aa20a106 100644 --- a/githubkit/versions/v2022_11_28/models/group_0291.py +++ b/githubkit/versions/v2022_11_28/models/group_0291.py @@ -9,26 +9,34 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0006 import Integration -class MergedUpstream(GitHubModel): - """Merged upstream - Results of a successful merge upstream request +class TimelineUnassignedIssueEvent(GitHubModel): + """Timeline Unassigned Issue Event + + Timeline Unassigned Issue Event """ - message: Missing[str] = Field(default=UNSET) - merge_type: Missing[Literal["merge", "fast-forward", "none"]] = Field(default=UNSET) - base_branch: Missing[str] = Field(default=UNSET) + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: Literal["unassigned"] = Field() + commit_id: Union[str, None] = Field() + commit_url: Union[str, None] = Field() + created_at: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + assignee: SimpleUser = Field(title="Simple User", description="A GitHub user.") -model_rebuild(MergedUpstream) +model_rebuild(TimelineUnassignedIssueEvent) -__all__ = ("MergedUpstream",) +__all__ = ("TimelineUnassignedIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0292.py b/githubkit/versions/v2022_11_28/models/group_0292.py index 8f748b081..809377a35 100644 --- a/githubkit/versions/v2022_11_28/models/group_0292.py +++ b/githubkit/versions/v2022_11_28/models/group_0292.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import date, datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field @@ -18,83 +17,28 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0006 import Integration -class Page(GitHubModel): - """GitHub Pages - The configuration for GitHub Pages for a repository. - """ - - url: str = Field(description="The API address for accessing this Page resource.") - status: Union[None, Literal["built", "building", "errored"]] = Field( - description="The status of the most recent build of the Page." - ) - cname: Union[str, None] = Field(description="The Pages site's custom domain") - protected_domain_state: Missing[ - Union[None, Literal["pending", "verified", "unverified"]] - ] = Field(default=UNSET, description="The state if the domain is verified") - pending_domain_unverified_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The timestamp when a pending domain becomes unverified.", - ) - custom_404: bool = Field( - default=False, description="Whether the Page has a custom 404 page." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The web address the Page can be accessed from." - ) - build_type: Missing[Union[None, Literal["legacy", "workflow"]]] = Field( - default=UNSET, description="The process in which the Page will be built." - ) - source: Missing[PagesSourceHash] = Field(default=UNSET, title="Pages Source Hash") - public: bool = Field( - description="Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site." - ) - https_certificate: Missing[PagesHttpsCertificate] = Field( - default=UNSET, title="Pages Https Certificate" - ) - https_enforced: Missing[bool] = Field( - default=UNSET, description="Whether https is enabled on the domain" - ) - - -class PagesSourceHash(GitHubModel): - """Pages Source Hash""" +class StateChangeIssueEvent(GitHubModel): + """State Change Issue Event - branch: str = Field() - path: str = Field() - - -class PagesHttpsCertificate(GitHubModel): - """Pages Https Certificate""" + State Change Issue Event + """ - state: Literal[ - "new", - "authorization_created", - "authorization_pending", - "authorized", - "authorization_revoked", - "issued", - "uploaded", - "approved", - "errored", - "bad_authz", - "destroy_pending", - "dns_changed", - ] = Field() - description: str = Field() - domains: List[str] = Field( - description="Array of the domain set and its alternate name (if it is configured)" - ) - expires_at: Missing[date] = Field(default=UNSET) + id: int = Field() + node_id: str = Field() + url: str = Field() + actor: SimpleUser = Field(title="Simple User", description="A GitHub user.") + event: 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(Page) -model_rebuild(PagesSourceHash) -model_rebuild(PagesHttpsCertificate) +model_rebuild(StateChangeIssueEvent) -__all__ = ( - "Page", - "PagesSourceHash", - "PagesHttpsCertificate", -) +__all__ = ("StateChangeIssueEvent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0293.py b/githubkit/versions/v2022_11_28/models/group_0293.py index c24d44917..a711bb72a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0293.py +++ b/githubkit/versions/v2022_11_28/models/group_0293.py @@ -10,41 +10,31 @@ from __future__ import annotations from typing import Union -from datetime import datetime from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class DeployKey(GitHubModel): + """Deploy Key -class PageBuild(GitHubModel): - """Page Build - - Page Build + An SSH key granting access to a single repository. """ + id: int = Field() + key: str = Field() url: str = Field() - status: str = Field() - error: PageBuildPropError = Field() - pusher: Union[None, SimpleUser] = Field() - commit: str = Field() - duration: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - - -class PageBuildPropError(GitHubModel): - """PageBuildPropError""" - - message: Union[str, None] = Field() + title: str = Field() + verified: bool = Field() + created_at: str = Field() + read_only: bool = Field() + added_by: Missing[Union[str, None]] = Field(default=UNSET) + last_used: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(PageBuild) -model_rebuild(PageBuildPropError) +model_rebuild(DeployKey) -__all__ = ( - "PageBuild", - "PageBuildPropError", -) +__all__ = ("DeployKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0294.py b/githubkit/versions/v2022_11_28/models/group_0294.py index 4b54230bc..58247c327 100644 --- a/githubkit/versions/v2022_11_28/models/group_0294.py +++ b/githubkit/versions/v2022_11_28/models/group_0294.py @@ -9,21 +9,16 @@ from __future__ import annotations -from pydantic import Field +from githubkit.compat import ExtraGitHubModel, model_rebuild -from githubkit.compat import GitHubModel, model_rebuild +class Language(ExtraGitHubModel): + """Language -class PageBuildStatus(GitHubModel): - """Page Build Status - - Page Build Status + Language """ - url: str = Field() - status: str = Field() - -model_rebuild(PageBuildStatus) +model_rebuild(Language) -__all__ = ("PageBuildStatus",) +__all__ = ("Language",) diff --git a/githubkit/versions/v2022_11_28/models/group_0295.py b/githubkit/versions/v2022_11_28/models/group_0295.py index 2b58439e7..535642846 100644 --- a/githubkit/versions/v2022_11_28/models/group_0295.py +++ b/githubkit/versions/v2022_11_28/models/group_0295.py @@ -13,29 +13,44 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0016 import LicenseSimple -class PageDeployment(GitHubModel): - """GitHub Pages - The GitHub Pages deployment status. +class LicenseContent(GitHubModel): + """License Content + + License Content """ - 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." - ) + name: str = Field() + path: str = Field() + sha: str = Field() + size: int = Field() + url: str = Field() + html_url: Union[str, None] = Field() + git_url: Union[str, None] = Field() + download_url: Union[str, None] = Field() + type: str = Field() + content: str = Field() + encoding: str = Field() + links: LicenseContentPropLinks = Field(alias="_links") + license_: Union[None, LicenseSimple] = Field(alias="license") + + +class LicenseContentPropLinks(GitHubModel): + """LicenseContentPropLinks""" + + git: Union[str, None] = Field() + html: Union[str, None] = Field() + self_: str = Field(alias="self") -model_rebuild(PageDeployment) +model_rebuild(LicenseContent) +model_rebuild(LicenseContentPropLinks) -__all__ = ("PageDeployment",) +__all__ = ( + "LicenseContent", + "LicenseContentPropLinks", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0296.py b/githubkit/versions/v2022_11_28/models/group_0296.py index 7c20e9413..564733c8a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0296.py +++ b/githubkit/versions/v2022_11_28/models/group_0296.py @@ -18,26 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class PagesDeploymentStatus(GitHubModel): - """GitHub Pages deployment status""" - - status: Missing[ - Literal[ - "deployment_in_progress", - "syncing_files", - "finished_file_sync", - "updating_pages", - "purging_cdn", - "deployment_cancelled", - "deployment_failed", - "deployment_content_failed", - "deployment_attempt_error", - "deployment_lost", - "succeed", - ] - ] = Field(default=UNSET, description="The current status of the deployment.") - - -model_rebuild(PagesDeploymentStatus) - -__all__ = ("PagesDeploymentStatus",) +class MergedUpstream(GitHubModel): + """Merged upstream + + Results of a successful merge upstream request + """ + + 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) + +__all__ = ("MergedUpstream",) diff --git a/githubkit/versions/v2022_11_28/models/group_0297.py b/githubkit/versions/v2022_11_28/models/group_0297.py index 9e283e574..8f748b081 100644 --- a/githubkit/versions/v2022_11_28/models/group_0297.py +++ b/githubkit/versions/v2022_11_28/models/group_0297.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import date, datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,94 +19,82 @@ from githubkit.compat import GitHubModel, model_rebuild -class PagesHealthCheck(GitHubModel): - """Pages Health Check Status +class Page(GitHubModel): + """GitHub Pages - Pages Health Check Status + The configuration for GitHub Pages for a repository. """ - domain: Missing[PagesHealthCheckPropDomain] = Field(default=UNSET) - alt_domain: Missing[Union[PagesHealthCheckPropAltDomain, None]] = Field( - default=UNSET + 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 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 +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)" ) - 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) + expires_at: Missing[date] = Field(default=UNSET) + + +model_rebuild(Page) +model_rebuild(PagesSourceHash) +model_rebuild(PagesHttpsCertificate) __all__ = ( - "PagesHealthCheck", - "PagesHealthCheckPropDomain", - "PagesHealthCheckPropAltDomain", + "Page", + "PagesSourceHash", + "PagesHttpsCertificate", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0298.py b/githubkit/versions/v2022_11_28/models/group_0298.py index 918d2f061..c24d44917 100644 --- a/githubkit/versions/v2022_11_28/models/group_0298.py +++ b/githubkit/versions/v2022_11_28/models/group_0298.py @@ -9,106 +9,42 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0033 import Milestone -from .group_0219 import AutoMerge from .group_0001 import SimpleUser -from .group_0075 import TeamSimple -from .group_0300 import PullRequestPropBase -from .group_0302 import PullRequestPropLinks -from .group_0299 import PullRequestPropHead, PullRequestPropLabelsItems -class PullRequest(GitHubModel): - """Pull Request +class PageBuild(GitHubModel): + """Page Build - Pull requests let you tell others about changes you've pushed to a repository on - GitHub. Once a pull request is sent, interested parties can review the set of - changes, discuss potential modifications, and even push follow-up commits if - necessary. + Page Build """ 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) + 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() - 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",) + + +class PageBuildPropError(GitHubModel): + """PageBuildPropError""" + + message: Union[str, None] = Field() + + +model_rebuild(PageBuild) +model_rebuild(PageBuildPropError) + +__all__ = ( + "PageBuild", + "PageBuildPropError", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0299.py b/githubkit/versions/v2022_11_28/models/group_0299.py index d2cc30430..4b54230bc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0299.py +++ b/githubkit/versions/v2022_11_28/models/group_0299.py @@ -9,215 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class PullRequestPropLabelsItems(GitHubModel): - """PullRequestPropLabelsItems""" - - id: int = Field() - node_id: str = Field() - url: str = Field() - name: str = Field() - description: Union[str, None] = Field() - color: str = Field() - default: bool = Field() - - -class PullRequestPropHead(GitHubModel): - """PullRequestPropHead""" - - label: Union[str, None] = Field() - ref: str = Field() - repo: Union[PullRequestPropHeadPropRepo, None] = Field() - sha: str = Field() - user: Union[PullRequestPropHeadPropUser, None] = Field() - - -class PullRequestPropHeadPropRepo(GitHubModel): - """PullRequestPropHeadPropRepo""" - - 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() - node_id: 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() - name: str = Field() - notifications_url: str = Field() - owner: PullRequestPropHeadPropRepoPropOwner = Field() - private: bool = Field() - 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() - clone_url: str = Field() - default_branch: str = Field() - forks: int = Field() - forks_count: int = Field() - git_url: str = Field() - has_downloads: bool = Field() - has_issues: bool = Field() - has_projects: bool = Field() - has_wiki: bool = Field() - has_pages: bool = Field() - has_discussions: bool = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - master_branch: Missing[str] = Field(default=UNSET) - archived: bool = Field() - disabled: bool = Field() - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - mirror_url: Union[str, None] = Field() - open_issues: int = Field() - open_issues_count: int = Field() - permissions: Missing[PullRequestPropHeadPropRepoPropPermissions] = 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) - license_: Union[PullRequestPropHeadPropRepoPropLicense, None] = Field( - alias="license" - ) - pushed_at: datetime = Field() - size: int = Field() - ssh_url: str = Field() - stargazers_count: int = Field() - svn_url: str = Field() - topics: Missing[List[str]] = Field(default=UNSET) - watchers: int = Field() - watchers_count: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - allow_forking: Missing[bool] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - - -class PullRequestPropHeadPropRepoPropOwner(GitHubModel): - """PullRequestPropHeadPropRepoPropOwner""" - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: Union[str, None] = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - login: 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() - - -class PullRequestPropHeadPropRepoPropPermissions(GitHubModel): - """PullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - - -class PullRequestPropHeadPropRepoPropLicense(GitHubModel): - """PullRequestPropHeadPropRepoPropLicense""" - - key: str = Field() - name: str = Field() - url: Union[str, None] = Field() - spdx_id: Union[str, None] = Field() - node_id: str = Field() - +class PageBuildStatus(GitHubModel): + """Page Build Status -class PullRequestPropHeadPropUser(GitHubModel): - """PullRequestPropHeadPropUser""" + Page Build Status + """ - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: Union[str, None] = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - login: 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() + status: str = Field() -model_rebuild(PullRequestPropLabelsItems) -model_rebuild(PullRequestPropHead) -model_rebuild(PullRequestPropHeadPropRepo) -model_rebuild(PullRequestPropHeadPropRepoPropOwner) -model_rebuild(PullRequestPropHeadPropRepoPropPermissions) -model_rebuild(PullRequestPropHeadPropRepoPropLicense) -model_rebuild(PullRequestPropHeadPropUser) +model_rebuild(PageBuildStatus) -__all__ = ( - "PullRequestPropLabelsItems", - "PullRequestPropHead", - "PullRequestPropHeadPropRepo", - "PullRequestPropHeadPropRepoPropOwner", - "PullRequestPropHeadPropRepoPropPermissions", - "PullRequestPropHeadPropRepoPropLicense", - "PullRequestPropHeadPropUser", -) +__all__ = ("PageBuildStatus",) diff --git a/githubkit/versions/v2022_11_28/models/group_0300.py b/githubkit/versions/v2022_11_28/models/group_0300.py index e8d2b8086..2b58439e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0300.py +++ b/githubkit/versions/v2022_11_28/models/group_0300.py @@ -13,48 +13,29 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0301 import PullRequestPropBasePropRepo - - -class PullRequestPropBase(GitHubModel): - """PullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: PullRequestPropBasePropRepo = Field() - sha: str = Field() - user: PullRequestPropBasePropUser = Field() - - -class PullRequestPropBasePropUser(GitHubModel): - """PullRequestPropBasePropUser""" - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: Union[str, None] = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - login: 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() - - -model_rebuild(PullRequestPropBase) -model_rebuild(PullRequestPropBasePropUser) - -__all__ = ( - "PullRequestPropBase", - "PullRequestPropBasePropUser", -) + +class PageDeployment(GitHubModel): + """GitHub Pages + + The GitHub Pages deployment status. + """ + + id: Union[int, str] = Field( + description="The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit." + ) + status_url: str = Field( + description="The URI to monitor GitHub Pages deployment status." + ) + page_url: str = Field(description="The URI to the deployed GitHub Pages.") + preview_url: Missing[str] = Field( + default=UNSET, description="The URI to the deployed GitHub Pages preview." + ) + + +model_rebuild(PageDeployment) + +__all__ = ("PageDeployment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0301.py b/githubkit/versions/v2022_11_28/models/group_0301.py index 7d789e957..7c20e9413 100644 --- a/githubkit/versions/v2022_11_28/models/group_0301.py +++ b/githubkit/versions/v2022_11_28/models/group_0301.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import Literal from pydantic import Field @@ -18,143 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0016 import LicenseSimple +class PagesDeploymentStatus(GitHubModel): + """GitHub Pages deployment status""" -class PullRequestPropBasePropRepo(GitHubModel): - """PullRequestPropBasePropRepo""" + 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.") - 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() - is_template: Missing[bool] = Field(default=UNSET) - node_id: 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() - name: str = Field() - notifications_url: str = Field() - owner: PullRequestPropBasePropRepoPropOwner = Field() - private: bool = Field() - 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() - clone_url: str = Field() - default_branch: str = Field() - forks: int = Field() - forks_count: int = Field() - git_url: str = Field() - has_downloads: bool = Field() - has_issues: bool = Field() - has_projects: bool = Field() - has_wiki: bool = Field() - has_pages: bool = Field() - has_discussions: bool = Field() - homepage: Union[str, None] = Field() - language: Union[str, None] = Field() - master_branch: Missing[str] = Field(default=UNSET) - archived: bool = Field() - disabled: bool = Field() - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", - ) - mirror_url: Union[str, None] = Field() - open_issues: int = Field() - open_issues_count: int = Field() - permissions: Missing[PullRequestPropBasePropRepoPropPermissions] = 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) - license_: Union[None, LicenseSimple] = Field(alias="license") - pushed_at: datetime = Field() - size: int = Field() - ssh_url: str = Field() - stargazers_count: int = Field() - svn_url: str = Field() - topics: Missing[List[str]] = Field(default=UNSET) - watchers: int = Field() - watchers_count: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - allow_forking: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) +model_rebuild(PagesDeploymentStatus) -class PullRequestPropBasePropRepoPropOwner(GitHubModel): - """PullRequestPropBasePropRepoPropOwner""" - - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: Union[str, None] = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - login: 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() - - -class PullRequestPropBasePropRepoPropPermissions(GitHubModel): - """PullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - - -model_rebuild(PullRequestPropBasePropRepo) -model_rebuild(PullRequestPropBasePropRepoPropOwner) -model_rebuild(PullRequestPropBasePropRepoPropPermissions) - -__all__ = ( - "PullRequestPropBasePropRepo", - "PullRequestPropBasePropRepoPropOwner", - "PullRequestPropBasePropRepoPropPermissions", -) +__all__ = ("PagesDeploymentStatus",) diff --git a/githubkit/versions/v2022_11_28/models/group_0302.py b/githubkit/versions/v2022_11_28/models/group_0302.py index 7ca805e48..9e283e574 100644 --- a/githubkit/versions/v2022_11_28/models/group_0302.py +++ b/githubkit/versions/v2022_11_28/models/group_0302.py @@ -9,26 +9,103 @@ from __future__ import annotations +from typing import Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0218 import Link + +class PagesHealthCheck(GitHubModel): + """Pages Health Check Status + + Pages Health Check Status + """ + + domain: Missing[PagesHealthCheckPropDomain] = Field(default=UNSET) + alt_domain: Missing[Union[PagesHealthCheckPropAltDomain, None]] = Field( + default=UNSET + ) + + +class PagesHealthCheckPropDomain(GitHubModel): + """PagesHealthCheckPropDomain""" + + host: Missing[str] = Field(default=UNSET) + uri: Missing[str] = Field(default=UNSET) + nameservers: Missing[str] = Field(default=UNSET) + dns_resolves: Missing[bool] = Field(default=UNSET) + is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) + is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) + is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid_domain: Missing[bool] = Field(default=UNSET) + is_apex_domain: Missing[bool] = Field(default=UNSET) + should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( + default=UNSET + ) + is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) + is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_pages_domain: Missing[bool] = Field(default=UNSET) + is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid: Missing[bool] = Field(default=UNSET) + reason: Missing[Union[str, None]] = Field(default=UNSET) + responds_to_https: Missing[bool] = Field(default=UNSET) + enforces_https: Missing[bool] = Field(default=UNSET) + https_error: Missing[Union[str, None]] = Field(default=UNSET) + is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) + caa_error: Missing[Union[str, None]] = Field(default=UNSET) -class PullRequestPropLinks(GitHubModel): - """PullRequestPropLinks""" +class PagesHealthCheckPropAltDomain(GitHubModel): + """PagesHealthCheckPropAltDomain""" - comments: Link = Field(title="Link", description="Hypermedia Link") - commits: Link = Field(title="Link", description="Hypermedia Link") - statuses: Link = Field(title="Link", description="Hypermedia Link") - html: Link = Field(title="Link", description="Hypermedia Link") - issue: Link = Field(title="Link", description="Hypermedia Link") - review_comments: Link = Field(title="Link", description="Hypermedia Link") - review_comment: Link = Field(title="Link", description="Hypermedia Link") - self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") + host: Missing[str] = Field(default=UNSET) + uri: Missing[str] = Field(default=UNSET) + nameservers: Missing[str] = Field(default=UNSET) + dns_resolves: Missing[bool] = Field(default=UNSET) + is_proxied: Missing[Union[bool, None]] = Field(default=UNSET) + is_cloudflare_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_fastly_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_old_ip_address: Missing[Union[bool, None]] = Field(default=UNSET) + is_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_cname_record: Missing[Union[bool, None]] = Field(default=UNSET) + has_mx_records_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid_domain: Missing[bool] = Field(default=UNSET) + is_apex_domain: Missing[bool] = Field(default=UNSET) + should_be_a_record: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_github_user_domain: Missing[Union[bool, None]] = Field(default=UNSET) + is_cname_to_pages_dot_github_dot_com: Missing[Union[bool, None]] = Field( + default=UNSET + ) + is_cname_to_fastly: Missing[Union[bool, None]] = Field(default=UNSET) + is_pointed_to_github_pages_ip: Missing[Union[bool, None]] = Field(default=UNSET) + is_non_github_pages_ip_present: Missing[Union[bool, None]] = Field(default=UNSET) + is_pages_domain: Missing[bool] = Field(default=UNSET) + is_served_by_pages: Missing[Union[bool, None]] = Field(default=UNSET) + is_valid: Missing[bool] = Field(default=UNSET) + reason: Missing[Union[str, None]] = Field(default=UNSET) + responds_to_https: Missing[bool] = Field(default=UNSET) + enforces_https: Missing[bool] = Field(default=UNSET) + https_error: Missing[Union[str, None]] = Field(default=UNSET) + is_https_eligible: Missing[Union[bool, None]] = Field(default=UNSET) + caa_error: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(PullRequestPropLinks) +model_rebuild(PagesHealthCheck) +model_rebuild(PagesHealthCheckPropDomain) +model_rebuild(PagesHealthCheckPropAltDomain) -__all__ = ("PullRequestPropLinks",) +__all__ = ( + "PagesHealthCheck", + "PagesHealthCheckPropDomain", + "PagesHealthCheckPropAltDomain", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0303.py b/githubkit/versions/v2022_11_28/models/group_0303.py index da433b3b8..c48c4244c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0303.py +++ b/githubkit/versions/v2022_11_28/models/group_0303.py @@ -9,22 +9,106 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0037 import Milestone +from .group_0224 import AutoMerge +from .group_0001 import SimpleUser +from .group_0025 import TeamSimple +from .group_0305 import PullRequestPropBase +from .group_0307 import PullRequestPropLinks +from .group_0304 import PullRequestPropHead, PullRequestPropLabelsItems + -class PullRequestMergeResult(GitHubModel): - """Pull Request Merge Result +class PullRequest(GitHubModel): + """Pull Request - Pull Request Merge Result + Pull requests let you tell others about changes you've pushed to a repository on + GitHub. Once a pull request is sent, interested parties can review the set of + changes, discuss potential modifications, and even push follow-up commits if + necessary. """ - sha: str = Field() + url: str = Field() + id: int = Field() + node_id: str = Field() + html_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + issue_url: str = Field() + commits_url: str = Field() + review_comments_url: str = Field() + review_comment_url: str = Field() + comments_url: str = Field() + statuses_url: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + locked: bool = Field() + title: str = Field(description="The title of the pull request.") + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field() + labels: List[PullRequestPropLabelsItems] = Field() + milestone: Union[None, Milestone] = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + created_at: datetime = Field() + updated_at: datetime = Field() + closed_at: Union[datetime, None] = Field() + merged_at: Union[datetime, None] = Field() + merge_commit_sha: Union[str, None] = Field() + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) + requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) + requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) + head: PullRequestPropHead = Field() + base: PullRequestPropBase = Field() + links: PullRequestPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", description="The status of auto merging a pull request." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="Indicates whether or not the pull request is a draft.", + ) merged: bool = Field() - message: str = Field() + mergeable: Union[bool, None] = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: str = Field() + merged_by: Union[None, SimpleUser] = Field() + comments: int = Field() + review_comments: int = Field() + maintainer_can_modify: bool = Field( + description="Indicates whether maintainers can modify the pull request." + ) + commits: int = Field() + additions: int = Field() + deletions: int = Field() + changed_files: int = Field() -model_rebuild(PullRequestMergeResult) +model_rebuild(PullRequest) -__all__ = ("PullRequestMergeResult",) +__all__ = ("PullRequest",) diff --git a/githubkit/versions/v2022_11_28/models/group_0304.py b/githubkit/versions/v2022_11_28/models/group_0304.py index faa27ca1e..d2cc30430 100644 --- a/githubkit/versions/v2022_11_28/models/group_0304.py +++ b/githubkit/versions/v2022_11_28/models/group_0304.py @@ -9,26 +9,215 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0076 import Team -from .group_0001 import SimpleUser +class PullRequestPropLabelsItems(GitHubModel): + """PullRequestPropLabelsItems""" -class PullRequestReviewRequest(GitHubModel): - """Pull Request Review Request + id: int = Field() + node_id: str = Field() + url: str = Field() + name: str = Field() + description: Union[str, None] = Field() + color: str = Field() + default: bool = Field() - Pull Request Review Request - """ - users: List[SimpleUser] = Field() - teams: List[Team] = Field() +class PullRequestPropHead(GitHubModel): + """PullRequestPropHead""" + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[PullRequestPropHeadPropRepo, None] = Field() + sha: str = Field() + user: Union[PullRequestPropHeadPropUser, None] = Field() -model_rebuild(PullRequestReviewRequest) -__all__ = ("PullRequestReviewRequest",) +class PullRequestPropHeadPropRepo(GitHubModel): + """PullRequestPropHeadPropRepo""" + + 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() + node_id: 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() + name: str = Field() + notifications_url: str = Field() + owner: PullRequestPropHeadPropRepoPropOwner = Field() + private: bool = Field() + 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() + clone_url: str = Field() + default_branch: str = Field() + forks: int = Field() + forks_count: int = Field() + git_url: str = Field() + has_downloads: bool = Field() + has_issues: bool = Field() + has_projects: bool = Field() + has_wiki: bool = Field() + has_pages: bool = Field() + has_discussions: bool = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + master_branch: Missing[str] = Field(default=UNSET) + archived: bool = Field() + disabled: bool = Field() + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", + ) + mirror_url: Union[str, None] = Field() + open_issues: int = Field() + open_issues_count: int = Field() + permissions: Missing[PullRequestPropHeadPropRepoPropPermissions] = 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) + license_: Union[PullRequestPropHeadPropRepoPropLicense, None] = Field( + alias="license" + ) + pushed_at: datetime = Field() + size: int = Field() + ssh_url: str = Field() + stargazers_count: int = Field() + svn_url: str = Field() + topics: Missing[List[str]] = Field(default=UNSET) + watchers: int = Field() + watchers_count: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + allow_forking: Missing[bool] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + + +class PullRequestPropHeadPropRepoPropOwner(GitHubModel): + """PullRequestPropHeadPropRepoPropOwner""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: Union[str, None] = Field() + html_url: str = Field() + id: int = Field() + node_id: str = Field() + login: 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() + + +class PullRequestPropHeadPropRepoPropPermissions(GitHubModel): + """PullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + + +class PullRequestPropHeadPropRepoPropLicense(GitHubModel): + """PullRequestPropHeadPropRepoPropLicense""" + + key: str = Field() + name: str = Field() + url: Union[str, None] = Field() + spdx_id: Union[str, None] = Field() + node_id: str = Field() + + +class PullRequestPropHeadPropUser(GitHubModel): + """PullRequestPropHeadPropUser""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: Union[str, None] = Field() + html_url: str = Field() + id: int = Field() + node_id: str = Field() + login: 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() + + +model_rebuild(PullRequestPropLabelsItems) +model_rebuild(PullRequestPropHead) +model_rebuild(PullRequestPropHeadPropRepo) +model_rebuild(PullRequestPropHeadPropRepoPropOwner) +model_rebuild(PullRequestPropHeadPropRepoPropPermissions) +model_rebuild(PullRequestPropHeadPropRepoPropLicense) +model_rebuild(PullRequestPropHeadPropUser) + +__all__ = ( + "PullRequestPropLabelsItems", + "PullRequestPropHead", + "PullRequestPropHeadPropRepo", + "PullRequestPropHeadPropRepoPropOwner", + "PullRequestPropHeadPropRepoPropPermissions", + "PullRequestPropHeadPropRepoPropLicense", + "PullRequestPropHeadPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0305.py b/githubkit/versions/v2022_11_28/models/group_0305.py index e9cc5181f..9b5952b3c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0305.py +++ b/githubkit/versions/v2022_11_28/models/group_0305.py @@ -9,80 +9,52 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +from .group_0306 import PullRequestPropBasePropRepo -class PullRequestReview(GitHubModel): - """Pull Request Review +class PullRequestPropBase(GitHubModel): + """PullRequestPropBase""" - 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() + label: str = Field() + ref: str = Field() + repo: PullRequestPropBasePropRepo = Field() + sha: str = Field() + user: PullRequestPropBasePropUser = Field() -class PullRequestReviewPropLinksPropHtml(GitHubModel): - """PullRequestReviewPropLinksPropHtml""" +class PullRequestPropBasePropUser(GitHubModel): + """PullRequestPropBasePropUser""" - href: str = Field() - - -class PullRequestReviewPropLinksPropPullRequest(GitHubModel): - """PullRequestReviewPropLinksPropPullRequest""" - - href: str = Field() + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: Union[str, None] = Field() + html_url: str = Field() + id: int = Field() + node_id: str = Field() + login: 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() -model_rebuild(PullRequestReview) -model_rebuild(PullRequestReviewPropLinks) -model_rebuild(PullRequestReviewPropLinksPropHtml) -model_rebuild(PullRequestReviewPropLinksPropPullRequest) +model_rebuild(PullRequestPropBase) +model_rebuild(PullRequestPropBasePropUser) __all__ = ( - "PullRequestReview", - "PullRequestReviewPropLinks", - "PullRequestReviewPropLinksPropHtml", - "PullRequestReviewPropLinksPropPullRequest", + "PullRequestPropBase", + "PullRequestPropBasePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0306.py b/githubkit/versions/v2022_11_28/models/group_0306.py index 749fd4d49..7d789e957 100644 --- a/githubkit/versions/v2022_11_28/models/group_0306.py +++ b/githubkit/versions/v2022_11_28/models/group_0306.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union from pydantic import Field @@ -18,77 +18,143 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0034 import ReactionRollup -from .group_0307 import ReviewCommentPropLinks +from .group_0016 import LicenseSimple -class ReviewComment(GitHubModel): - """Legacy Review Comment +class PullRequestPropBasePropRepo(GitHubModel): + """PullRequestPropBasePropRepo""" - Legacy Review Comment - """ - - url: str = Field() - pull_request_review_id: Union[int, None] = 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() + 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() + is_template: Missing[bool] = Field(default=UNSET) 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( + 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() + notifications_url: str = Field() + owner: PullRequestPropBasePropRepoPropOwner = Field() + private: bool = Field() + 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() + clone_url: str = Field() + default_branch: str = Field() + forks: int = Field() + forks_count: int = Field() + git_url: str = Field() + has_downloads: bool = Field() + has_issues: bool = Field() + has_projects: bool = Field() + has_wiki: bool = Field() + has_pages: bool = Field() + has_discussions: bool = Field() + homepage: Union[str, None] = Field() + language: Union[str, None] = Field() + master_branch: Missing[str] = Field(default=UNSET) + archived: bool = Field() + disabled: bool = Field() + visibility: Missing[str] = Field( default=UNSET, - description="The first line of the range for a multi-line comment.", + description="The repository visibility: public, private, or internal.", ) - original_start_line: Missing[Union[int, None]] = Field( - default=UNSET, - description="The original first line of the range for a multi-line comment.", + mirror_url: Union[str, None] = Field() + open_issues: int = Field() + open_issues_count: int = Field() + permissions: Missing[PullRequestPropBasePropRepoPropPermissions] = 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) + license_: Union[None, LicenseSimple] = Field(alias="license") + pushed_at: datetime = Field() + size: int = Field() + ssh_url: str = Field() + stargazers_count: int = Field() + svn_url: str = Field() + topics: Missing[List[str]] = Field(default=UNSET) + watchers: int = Field() + watchers_count: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + allow_forking: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + + +class PullRequestPropBasePropRepoPropOwner(GitHubModel): + """PullRequestPropBasePropRepoPropOwner""" + + avatar_url: str = Field() + events_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + gravatar_id: Union[str, None] = Field() + html_url: str = Field() + id: int = Field() + node_id: str = Field() + login: 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() + + +class PullRequestPropBasePropRepoPropPermissions(GitHubModel): + """PullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + pull: bool = Field() -model_rebuild(ReviewComment) +model_rebuild(PullRequestPropBasePropRepo) +model_rebuild(PullRequestPropBasePropRepoPropOwner) +model_rebuild(PullRequestPropBasePropRepoPropPermissions) -__all__ = ("ReviewComment",) +__all__ = ( + "PullRequestPropBasePropRepo", + "PullRequestPropBasePropRepoPropOwner", + "PullRequestPropBasePropRepoPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0307.py b/githubkit/versions/v2022_11_28/models/group_0307.py index 1a5dda360..031d55164 100644 --- a/githubkit/versions/v2022_11_28/models/group_0307.py +++ b/githubkit/versions/v2022_11_28/models/group_0307.py @@ -13,17 +13,22 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0218 import Link +from .group_0223 import Link -class ReviewCommentPropLinks(GitHubModel): - """ReviewCommentPropLinks""" +class PullRequestPropLinks(GitHubModel): + """PullRequestPropLinks""" - self_: Link = Field(alias="self", title="Link", description="Hypermedia Link") + comments: Link = Field(title="Link", description="Hypermedia Link") + commits: Link = Field(title="Link", description="Hypermedia Link") + statuses: Link = Field(title="Link", description="Hypermedia Link") html: Link = Field(title="Link", description="Hypermedia Link") - pull_request: 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(ReviewCommentPropLinks) +model_rebuild(PullRequestPropLinks) -__all__ = ("ReviewCommentPropLinks",) +__all__ = ("PullRequestPropLinks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0308.py b/githubkit/versions/v2022_11_28/models/group_0308.py index c653fae45..da433b3b8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0308.py +++ b/githubkit/versions/v2022_11_28/models/group_0308.py @@ -9,39 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser - -class ReleaseAsset(GitHubModel): - """Release Asset +class PullRequestMergeResult(GitHubModel): + """Pull Request Merge Result - Data related to a release. + Pull Request Merge Result """ - url: str = Field() - browser_download_url: str = Field() - id: int = Field() - node_id: str = Field() - name: str = Field(description="The file name of the asset.") - label: Union[str, None] = Field() - state: Literal["uploaded", "open"] = Field( - description="State of the release asset." - ) - content_type: str = Field() - size: int = Field() - download_count: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - uploader: Union[None, SimpleUser] = Field() - - -model_rebuild(ReleaseAsset) - -__all__ = ("ReleaseAsset",) + sha: str = Field() + merged: bool = Field() + message: str = Field() + + +model_rebuild(PullRequestMergeResult) + +__all__ = ("PullRequestMergeResult",) diff --git a/githubkit/versions/v2022_11_28/models/group_0309.py b/githubkit/versions/v2022_11_28/models/group_0309.py index 782c9fae2..e67d857b1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0309.py +++ b/githubkit/versions/v2022_11_28/models/group_0309.py @@ -9,59 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0026 import Team from .group_0001 import SimpleUser -from .group_0308 import ReleaseAsset -from .group_0034 import ReactionRollup -class Release(GitHubModel): - """Release +class PullRequestReviewRequest(GitHubModel): + """Pull Request Review Request - A release. + Pull Request Review Request """ - 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") + users: List[SimpleUser] = Field() + teams: List[Team] = Field() -model_rebuild(Release) +model_rebuild(PullRequestReviewRequest) -__all__ = ("Release",) +__all__ = ("PullRequestReviewRequest",) diff --git a/githubkit/versions/v2022_11_28/models/group_0310.py b/githubkit/versions/v2022_11_28/models/group_0310.py index e30bd3be3..e9cc5181f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0310.py +++ b/githubkit/versions/v2022_11_28/models/group_0310.py @@ -9,23 +9,80 @@ from __future__ import annotations +from datetime import datetime +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser + -class ReleaseNotesContent(GitHubModel): - """Generated Release Notes Content +class PullRequestReview(GitHubModel): + """Pull Request Review - Generated name and body describing a release + Pull Request Reviews are reviews on pull requests. """ - 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" + 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.", ) -model_rebuild(ReleaseNotesContent) +class PullRequestReviewPropLinks(GitHubModel): + """PullRequestReviewPropLinks""" + + html: PullRequestReviewPropLinksPropHtml = Field() + pull_request: PullRequestReviewPropLinksPropPullRequest = Field() + + +class PullRequestReviewPropLinksPropHtml(GitHubModel): + """PullRequestReviewPropLinksPropHtml""" + + href: str = Field() + + +class PullRequestReviewPropLinksPropPullRequest(GitHubModel): + """PullRequestReviewPropLinksPropPullRequest""" + + href: str = Field() + + +model_rebuild(PullRequestReview) +model_rebuild(PullRequestReviewPropLinks) +model_rebuild(PullRequestReviewPropLinksPropHtml) +model_rebuild(PullRequestReviewPropLinksPropPullRequest) -__all__ = ("ReleaseNotesContent",) +__all__ = ( + "PullRequestReview", + "PullRequestReviewPropLinks", + "PullRequestReviewPropLinksPropHtml", + "PullRequestReviewPropLinksPropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0311.py b/githubkit/versions/v2022_11_28/models/group_0311.py index 5ea214237..39f7ed63d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0311.py +++ b/githubkit/versions/v2022_11_28/models/group_0311.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,27 +18,77 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0038 import ReactionRollup +from .group_0312 import ReviewCommentPropLinks -class RepositoryRuleRulesetInfo(GitHubModel): - """repository ruleset data for rule - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. +class ReviewComment(GitHubModel): + """Legacy Review Comment + + Legacy Review Comment """ - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( + url: str = Field() + pull_request_review_id: Union[int, None] = Field() + id: int = Field() + node_id: str = Field() + diff_hunk: str = Field() + path: str = Field() + position: Union[int, None] = Field() + original_position: int = Field() + commit_id: str = Field() + original_commit_id: str = Field() + in_reply_to_id: Missing[int] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + body: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + html_url: str = Field() + pull_request_url: str = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + links: ReviewCommentPropLinks = Field(alias="_links") + body_text: Missing[str] = Field(default=UNSET) + body_html: Missing[str] = Field(default=UNSET) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + side: Missing[Literal["LEFT", "RIGHT"]] = Field( default=UNSET, - description="The type of source for the ruleset that includes this rule.", + description="The side of the first line of the range for a multi-line comment.", ) - ruleset_source: Missing[str] = Field( + start_side: Missing[Union[None, Literal["LEFT", "RIGHT"]]] = Field( default=UNSET, - description="The name of the source of the ruleset that includes this rule.", + description="The side of the first line of the range for a multi-line comment.", ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + line: Missing[int] = Field( + default=UNSET, + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + original_line: Missing[int] = Field( + default=UNSET, + description="The original line of the blob to which the comment applies. The last line of the range for a multi-line comment", + ) + start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The first line of the range for a multi-line comment.", + ) + original_start_line: Missing[Union[int, None]] = Field( + default=UNSET, + description="The original first line of the range for a multi-line comment.", ) -model_rebuild(RepositoryRuleRulesetInfo) +model_rebuild(ReviewComment) -__all__ = ("RepositoryRuleRulesetInfo",) +__all__ = ("ReviewComment",) diff --git a/githubkit/versions/v2022_11_28/models/group_0312.py b/githubkit/versions/v2022_11_28/models/group_0312.py index 44c4c2b32..6fc88a2f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0312.py +++ b/githubkit/versions/v2022_11_28/models/group_0312.py @@ -9,32 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0223 import Link + -class RepositoryRuleDetailedOneof0(GitHubModel): - """RepositoryRuleDetailedOneof0""" +class ReviewCommentPropLinks(GitHubModel): + """ReviewCommentPropLinks""" - 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." - ) + 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(RepositoryRuleDetailedOneof0) +model_rebuild(ReviewCommentPropLinks) -__all__ = ("RepositoryRuleDetailedOneof0",) +__all__ = ("ReviewCommentPropLinks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0313.py b/githubkit/versions/v2022_11_28/models/group_0313.py index 269c8d1f8..c653fae45 100644 --- a/githubkit/versions/v2022_11_28/models/group_0313.py +++ b/githubkit/versions/v2022_11_28/models/group_0313.py @@ -9,35 +9,39 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0111 import RepositoryRuleUpdatePropParameters +from .group_0001 import SimpleUser -class RepositoryRuleDetailedOneof1(GitHubModel): - """RepositoryRuleDetailedOneof1""" +class ReleaseAsset(GitHubModel): + """Release Asset - type: Literal["update"] = Field() - parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + Data related to a release. + """ + + url: str = Field() + browser_download_url: str = Field() + id: int = Field() + node_id: str = Field() + name: str = Field(description="The file name of the asset.") + label: Union[str, None] = Field() + state: Literal["uploaded", "open"] = Field( + description="State of the release asset." ) + content_type: str = Field() + size: int = Field() + download_count: int = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + uploader: Union[None, SimpleUser] = Field() -model_rebuild(RepositoryRuleDetailedOneof1) +model_rebuild(ReleaseAsset) -__all__ = ("RepositoryRuleDetailedOneof1",) +__all__ = ("ReleaseAsset",) diff --git a/githubkit/versions/v2022_11_28/models/group_0314.py b/githubkit/versions/v2022_11_28/models/group_0314.py index 6c5ebd286..8eaecc233 100644 --- a/githubkit/versions/v2022_11_28/models/group_0314.py +++ b/githubkit/versions/v2022_11_28/models/group_0314.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union from pydantic import Field @@ -17,24 +18,50 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0313 import ReleaseAsset +from .group_0038 import ReactionRollup -class RepositoryRuleDetailedOneof2(GitHubModel): - """RepositoryRuleDetailedOneof2""" - type: Literal["deletion"] = Field() - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", +class Release(GitHubModel): + """Release + + A release. + """ + + url: str = Field() + html_url: str = Field() + assets_url: str = Field() + upload_url: str = Field() + tarball_url: Union[str, None] = Field() + zipball_url: Union[str, None] = Field() + id: int = Field() + node_id: str = Field() + tag_name: str = Field(description="The name of the tag.") + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + name: Union[str, None] = Field() + body: Missing[Union[str, None]] = Field(default=UNSET) + draft: bool = Field( + description="true to create a draft (unpublished) release, false to create a published one." ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", + prerelease: bool = Field( + description="Whether to identify the release as a prerelease or a full release." ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + created_at: datetime = Field() + published_at: Union[datetime, None] = Field() + author: SimpleUser = Field(title="Simple User", description="A GitHub user.") + assets: List[ReleaseAsset] = Field() + body_html: Missing[Union[str, None]] = Field(default=UNSET) + body_text: Missing[Union[str, None]] = Field(default=UNSET) + mentions_count: Missing[int] = Field(default=UNSET) + discussion_url: Missing[str] = Field( + default=UNSET, description="The URL of the release discussion." ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") -model_rebuild(RepositoryRuleDetailedOneof2) +model_rebuild(Release) -__all__ = ("RepositoryRuleDetailedOneof2",) +__all__ = ("Release",) diff --git a/githubkit/versions/v2022_11_28/models/group_0315.py b/githubkit/versions/v2022_11_28/models/group_0315.py index 4d5e6da2a..e30bd3be3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0315.py +++ b/githubkit/versions/v2022_11_28/models/group_0315.py @@ -9,32 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleDetailedOneof3(GitHubModel): - """RepositoryRuleDetailedOneof3""" +class ReleaseNotesContent(GitHubModel): + """Generated Release Notes Content - type: Literal["required_linear_history"] = Field() - ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( - default=UNSET, - description="The type of source for the ruleset that includes this rule.", - ) - ruleset_source: Missing[str] = Field( - default=UNSET, - description="The name of the source of the ruleset that includes this rule.", - ) - ruleset_id: Missing[int] = Field( - default=UNSET, description="The ID of the ruleset that includes this rule." + 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(RepositoryRuleDetailedOneof3) +model_rebuild(ReleaseNotesContent) -__all__ = ("RepositoryRuleDetailedOneof3",) +__all__ = ("ReleaseNotesContent",) diff --git a/githubkit/versions/v2022_11_28/models/group_0316.py b/githubkit/versions/v2022_11_28/models/group_0316.py index b1338e836..5ea214237 100644 --- a/githubkit/versions/v2022_11_28/models/group_0316.py +++ b/githubkit/versions/v2022_11_28/models/group_0316.py @@ -17,16 +17,14 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0114 import RepositoryRuleRequiredDeploymentsPropParameters +class RepositoryRuleRulesetInfo(GitHubModel): + """repository ruleset data for rule -class RepositoryRuleDetailedOneof4(GitHubModel): - """RepositoryRuleDetailedOneof4""" + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. + """ - type: Literal["required_deployments"] = Field() - parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( - default=UNSET - ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +38,6 @@ class RepositoryRuleDetailedOneof4(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof4) +model_rebuild(RepositoryRuleRulesetInfo) -__all__ = ("RepositoryRuleDetailedOneof4",) +__all__ = ("RepositoryRuleRulesetInfo",) diff --git a/githubkit/versions/v2022_11_28/models/group_0317.py b/githubkit/versions/v2022_11_28/models/group_0317.py index 700c31a55..44c4c2b32 100644 --- a/githubkit/versions/v2022_11_28/models/group_0317.py +++ b/githubkit/versions/v2022_11_28/models/group_0317.py @@ -18,10 +18,10 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleDetailedOneof5(GitHubModel): - """RepositoryRuleDetailedOneof5""" +class RepositoryRuleDetailedOneof0(GitHubModel): + """RepositoryRuleDetailedOneof0""" - type: Literal["required_signatures"] = Field() + type: Literal["creation"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -35,6 +35,6 @@ class RepositoryRuleDetailedOneof5(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof5) +model_rebuild(RepositoryRuleDetailedOneof0) -__all__ = ("RepositoryRuleDetailedOneof5",) +__all__ = ("RepositoryRuleDetailedOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0318.py b/githubkit/versions/v2022_11_28/models/group_0318.py index 921b200e1..fd6618c20 100644 --- a/githubkit/versions/v2022_11_28/models/group_0318.py +++ b/githubkit/versions/v2022_11_28/models/group_0318.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0116 import RepositoryRulePullRequestPropParameters +from .group_0116 import RepositoryRuleUpdatePropParameters -class RepositoryRuleDetailedOneof6(GitHubModel): - """RepositoryRuleDetailedOneof6""" +class RepositoryRuleDetailedOneof1(GitHubModel): + """RepositoryRuleDetailedOneof1""" - type: Literal["pull_request"] = Field() - parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) + type: Literal["update"] = Field() + parameters: Missing[RepositoryRuleUpdatePropParameters] = Field(default=UNSET) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +38,6 @@ class RepositoryRuleDetailedOneof6(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof6) +model_rebuild(RepositoryRuleDetailedOneof1) -__all__ = ("RepositoryRuleDetailedOneof6",) +__all__ = ("RepositoryRuleDetailedOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0319.py b/githubkit/versions/v2022_11_28/models/group_0319.py index 2b12d3251..6c5ebd286 100644 --- a/githubkit/versions/v2022_11_28/models/group_0319.py +++ b/githubkit/versions/v2022_11_28/models/group_0319.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0118 import RepositoryRuleRequiredStatusChecksPropParameters +class RepositoryRuleDetailedOneof2(GitHubModel): + """RepositoryRuleDetailedOneof2""" -class RepositoryRuleDetailedOneof7(GitHubModel): - """RepositoryRuleDetailedOneof7""" - - type: Literal["required_status_checks"] = Field() - parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( - default=UNSET - ) + type: Literal["deletion"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +35,6 @@ class RepositoryRuleDetailedOneof7(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof7) +model_rebuild(RepositoryRuleDetailedOneof2) -__all__ = ("RepositoryRuleDetailedOneof7",) +__all__ = ("RepositoryRuleDetailedOneof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_0320.py b/githubkit/versions/v2022_11_28/models/group_0320.py index 6319e5592..4d5e6da2a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0320.py +++ b/githubkit/versions/v2022_11_28/models/group_0320.py @@ -18,10 +18,10 @@ from githubkit.compat import GitHubModel, model_rebuild -class RepositoryRuleDetailedOneof8(GitHubModel): - """RepositoryRuleDetailedOneof8""" +class RepositoryRuleDetailedOneof3(GitHubModel): + """RepositoryRuleDetailedOneof3""" - type: Literal["non_fast_forward"] = Field() + type: Literal["required_linear_history"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -35,6 +35,6 @@ class RepositoryRuleDetailedOneof8(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof8) +model_rebuild(RepositoryRuleDetailedOneof3) -__all__ = ("RepositoryRuleDetailedOneof8",) +__all__ = ("RepositoryRuleDetailedOneof3",) diff --git a/githubkit/versions/v2022_11_28/models/group_0321.py b/githubkit/versions/v2022_11_28/models/group_0321.py index 376e28deb..6feeddf58 100644 --- a/githubkit/versions/v2022_11_28/models/group_0321.py +++ b/githubkit/versions/v2022_11_28/models/group_0321.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0120 import RepositoryRuleCommitMessagePatternPropParameters +from .group_0119 import RepositoryRuleRequiredDeploymentsPropParameters -class RepositoryRuleDetailedOneof9(GitHubModel): - """RepositoryRuleDetailedOneof9""" +class RepositoryRuleDetailedOneof4(GitHubModel): + """RepositoryRuleDetailedOneof4""" - type: Literal["commit_message_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( + type: Literal["required_deployments"] = Field() + parameters: Missing[RepositoryRuleRequiredDeploymentsPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof9(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof9) +model_rebuild(RepositoryRuleDetailedOneof4) -__all__ = ("RepositoryRuleDetailedOneof9",) +__all__ = ("RepositoryRuleDetailedOneof4",) diff --git a/githubkit/versions/v2022_11_28/models/group_0322.py b/githubkit/versions/v2022_11_28/models/group_0322.py index 6d7d23595..700c31a55 100644 --- a/githubkit/versions/v2022_11_28/models/group_0322.py +++ b/githubkit/versions/v2022_11_28/models/group_0322.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0122 import RepositoryRuleCommitAuthorEmailPatternPropParameters +class RepositoryRuleDetailedOneof5(GitHubModel): + """RepositoryRuleDetailedOneof5""" -class RepositoryRuleDetailedOneof10(GitHubModel): - """RepositoryRuleDetailedOneof10""" - - type: Literal["commit_author_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( - default=UNSET - ) + type: Literal["required_signatures"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +35,6 @@ class RepositoryRuleDetailedOneof10(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof10) +model_rebuild(RepositoryRuleDetailedOneof5) -__all__ = ("RepositoryRuleDetailedOneof10",) +__all__ = ("RepositoryRuleDetailedOneof5",) diff --git a/githubkit/versions/v2022_11_28/models/group_0323.py b/githubkit/versions/v2022_11_28/models/group_0323.py index 6f087397f..b7f6a3898 100644 --- a/githubkit/versions/v2022_11_28/models/group_0323.py +++ b/githubkit/versions/v2022_11_28/models/group_0323.py @@ -17,16 +17,14 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0124 import RepositoryRuleCommitterEmailPatternPropParameters +from .group_0121 import RepositoryRulePullRequestPropParameters -class RepositoryRuleDetailedOneof11(GitHubModel): - """RepositoryRuleDetailedOneof11""" +class RepositoryRuleDetailedOneof6(GitHubModel): + """RepositoryRuleDetailedOneof6""" - type: Literal["committer_email_pattern"] = Field() - parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( - default=UNSET - ) + type: Literal["pull_request"] = Field() + parameters: Missing[RepositoryRulePullRequestPropParameters] = Field(default=UNSET) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +38,6 @@ class RepositoryRuleDetailedOneof11(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof11) +model_rebuild(RepositoryRuleDetailedOneof6) -__all__ = ("RepositoryRuleDetailedOneof11",) +__all__ = ("RepositoryRuleDetailedOneof6",) diff --git a/githubkit/versions/v2022_11_28/models/group_0324.py b/githubkit/versions/v2022_11_28/models/group_0324.py index f65d3b8f0..eba99c467 100644 --- a/githubkit/versions/v2022_11_28/models/group_0324.py +++ b/githubkit/versions/v2022_11_28/models/group_0324.py @@ -17,14 +17,14 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0126 import RepositoryRuleBranchNamePatternPropParameters +from .group_0123 import RepositoryRuleRequiredStatusChecksPropParameters -class RepositoryRuleDetailedOneof12(GitHubModel): - """RepositoryRuleDetailedOneof12""" +class RepositoryRuleDetailedOneof7(GitHubModel): + """RepositoryRuleDetailedOneof7""" - type: Literal["branch_name_pattern"] = Field() - parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( + type: Literal["required_status_checks"] = Field() + parameters: Missing[RepositoryRuleRequiredStatusChecksPropParameters] = Field( default=UNSET ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( @@ -40,6 +40,6 @@ class RepositoryRuleDetailedOneof12(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof12) +model_rebuild(RepositoryRuleDetailedOneof7) -__all__ = ("RepositoryRuleDetailedOneof12",) +__all__ = ("RepositoryRuleDetailedOneof7",) diff --git a/githubkit/versions/v2022_11_28/models/group_0325.py b/githubkit/versions/v2022_11_28/models/group_0325.py index 585d3ab07..6319e5592 100644 --- a/githubkit/versions/v2022_11_28/models/group_0325.py +++ b/githubkit/versions/v2022_11_28/models/group_0325.py @@ -17,16 +17,11 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0128 import RepositoryRuleTagNamePatternPropParameters +class RepositoryRuleDetailedOneof8(GitHubModel): + """RepositoryRuleDetailedOneof8""" -class RepositoryRuleDetailedOneof13(GitHubModel): - """RepositoryRuleDetailedOneof13""" - - type: Literal["tag_name_pattern"] = Field() - parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( - default=UNSET - ) + type: Literal["non_fast_forward"] = Field() ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -40,6 +35,6 @@ class RepositoryRuleDetailedOneof13(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof13) +model_rebuild(RepositoryRuleDetailedOneof8) -__all__ = ("RepositoryRuleDetailedOneof13",) +__all__ = ("RepositoryRuleDetailedOneof8",) diff --git a/githubkit/versions/v2022_11_28/models/group_0326.py b/githubkit/versions/v2022_11_28/models/group_0326.py index a8f8c0e52..cca357e78 100644 --- a/githubkit/versions/v2022_11_28/models/group_0326.py +++ b/githubkit/versions/v2022_11_28/models/group_0326.py @@ -17,14 +17,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0131 import RepositoryRuleWorkflowsPropParameters +from .group_0125 import RepositoryRuleCommitMessagePatternPropParameters -class RepositoryRuleDetailedOneof14(GitHubModel): - """RepositoryRuleDetailedOneof14""" +class RepositoryRuleDetailedOneof9(GitHubModel): + """RepositoryRuleDetailedOneof9""" - type: Literal["workflows"] = Field() - parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + type: Literal["commit_message_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitMessagePatternPropParameters] = Field( + default=UNSET + ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +40,6 @@ class RepositoryRuleDetailedOneof14(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof14) +model_rebuild(RepositoryRuleDetailedOneof9) -__all__ = ("RepositoryRuleDetailedOneof14",) +__all__ = ("RepositoryRuleDetailedOneof9",) diff --git a/githubkit/versions/v2022_11_28/models/group_0327.py b/githubkit/versions/v2022_11_28/models/group_0327.py index a6b542a7b..e6e6a3236 100644 --- a/githubkit/versions/v2022_11_28/models/group_0327.py +++ b/githubkit/versions/v2022_11_28/models/group_0327.py @@ -17,14 +17,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0133 import RepositoryRuleCodeScanningPropParameters +from .group_0127 import RepositoryRuleCommitAuthorEmailPatternPropParameters -class RepositoryRuleDetailedOneof15(GitHubModel): - """RepositoryRuleDetailedOneof15""" +class RepositoryRuleDetailedOneof10(GitHubModel): + """RepositoryRuleDetailedOneof10""" - type: Literal["code_scanning"] = Field() - parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + type: Literal["commit_author_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitAuthorEmailPatternPropParameters] = Field( + default=UNSET + ) ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, description="The type of source for the ruleset that includes this rule.", @@ -38,6 +40,6 @@ class RepositoryRuleDetailedOneof15(GitHubModel): ) -model_rebuild(RepositoryRuleDetailedOneof15) +model_rebuild(RepositoryRuleDetailedOneof10) -__all__ = ("RepositoryRuleDetailedOneof15",) +__all__ = ("RepositoryRuleDetailedOneof10",) diff --git a/githubkit/versions/v2022_11_28/models/group_0328.py b/githubkit/versions/v2022_11_28/models/group_0328.py index a80eda521..84db3e8a8 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 Union, Literal +from typing import Literal from pydantic import Field @@ -18,72 +17,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +from .group_0129 import RepositoryRuleCommitterEmailPatternPropParameters -class SecretScanningAlert(GitHubModel): - """SecretScanningAlert""" +class RepositoryRuleDetailedOneof11(GitHubModel): + """RepositoryRuleDetailedOneof11""" - number: Missing[int] = Field( - default=UNSET, description="The security alert number." + type: Literal["committer_email_pattern"] = Field() + parameters: Missing[RepositoryRuleCommitterEmailPatternPropParameters] = Field( + default=UNSET ) - created_at: Missing[datetime] = Field( + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The type of source for the ruleset that includes this rule.", ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." - ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." - ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", - ) - state: Missing[Literal["open", "resolved"]] = Field( - default=UNSET, - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", - ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolved_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, description="An optional comment to resolve an alert." - ) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." - ) - secret_type_display_name: Missing[str] = Field( - default=UNSET, - description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Secret scanning patterns](https://docs.github.com/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)."', - ) - 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( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The name of the source of the ruleset that includes this rule.", ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(SecretScanningAlert) +model_rebuild(RepositoryRuleDetailedOneof11) -__all__ = ("SecretScanningAlert",) +__all__ = ("RepositoryRuleDetailedOneof11",) diff --git a/githubkit/versions/v2022_11_28/models/group_0329.py b/githubkit/versions/v2022_11_28/models/group_0329.py index efed65a18..a82b30895 100644 --- a/githubkit/versions/v2022_11_28/models/group_0329.py +++ b/githubkit/versions/v2022_11_28/models/group_0329.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,120 +17,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0131 import RepositoryRuleBranchNamePatternPropParameters -class RepositoryAdvisoryCreate(GitHubModel): - """RepositoryAdvisoryCreate""" - summary: str = Field( - max_length=1024, description="A short summary of the advisory." - ) - description: str = Field( - max_length=65535, - description="A detailed description of what the advisory impacts.", - ) - cve_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." - ) - vulnerabilities: List[RepositoryAdvisoryCreatePropVulnerabilitiesItems] = Field( - description="A product affected by the vulnerability detailed in a repository security advisory." - ) - cwe_ids: Missing[Union[List[str], None]] = Field( - default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." - ) - credits_: Missing[Union[List[RepositoryAdvisoryCreatePropCreditsItems], None]] = ( - Field( - default=UNSET, - alias="credits", - description="A list of users receiving credit for their participation in the security advisory.", - ) - ) - severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( - Field( - default=UNSET, - description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", - ) - ) - cvss_vector_string: Missing[Union[str, None]] = Field( - default=UNSET, - description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", - ) - start_private_fork: Missing[bool] = Field( - default=UNSET, - description="Whether to create a temporary private fork of the repository to collaborate on a fix.", - ) +class RepositoryRuleDetailedOneof12(GitHubModel): + """RepositoryRuleDetailedOneof12""" - -class RepositoryAdvisoryCreatePropCreditsItems(GitHubModel): - """RepositoryAdvisoryCreatePropCreditsItems""" - - login: str = Field(description="The username of the user credited.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] = Field(description="The type of credit the user is receiving.") - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItems(GitHubModel): - """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage = Field( - description="The name of the package affected by the vulnerability." + type: Literal["branch_name_pattern"] = Field() + parameters: Missing[RepositoryRuleBranchNamePatternPropParameters] = Field( + default=UNSET ) - vulnerable_version_range: Missing[Union[str, None]] = Field( + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description="The range of the package versions affected by the vulnerability.", + description="The type of source for the ruleset that includes this rule.", ) - patched_versions: Missing[Union[str, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The package version(s) that resolve the vulnerability.", + description="The name of the source of the ruleset that includes this rule.", ) - vulnerable_functions: Missing[Union[List[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." - ) - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(RepositoryAdvisoryCreate) -model_rebuild(RepositoryAdvisoryCreatePropCreditsItems) -model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItems) -model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage) +model_rebuild(RepositoryRuleDetailedOneof12) -__all__ = ( - "RepositoryAdvisoryCreate", - "RepositoryAdvisoryCreatePropCreditsItems", - "RepositoryAdvisoryCreatePropVulnerabilitiesItems", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", -) +__all__ = ("RepositoryRuleDetailedOneof12",) diff --git a/githubkit/versions/v2022_11_28/models/group_0330.py b/githubkit/versions/v2022_11_28/models/group_0330.py index 7b8c49810..28509b519 100644 --- a/githubkit/versions/v2022_11_28/models/group_0330.py +++ b/githubkit/versions/v2022_11_28/models/group_0330.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,93 +17,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0133 import RepositoryRuleTagNamePatternPropParameters -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 RepositoryRuleDetailedOneof13(GitHubModel): + """RepositoryRuleDetailedOneof13""" -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItems(GitHubModel): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" - - package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage = ( - Field(description="The name of the package affected by the vulnerability.") + type: Literal["tag_name_pattern"] = Field() + parameters: Missing[RepositoryRuleTagNamePatternPropParameters] = Field( + default=UNSET ) - vulnerable_version_range: Missing[Union[str, None]] = Field( + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description="The range of the package versions affected by the vulnerability.", + description="The type of source for the ruleset that includes this rule.", ) - patched_versions: Missing[Union[str, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The package version(s) that resolve the vulnerability.", - ) - vulnerable_functions: Missing[Union[List[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." + description="The name of the source of the ruleset that includes this rule.", ) - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(PrivateVulnerabilityReportCreate) -model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItems) -model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage) +model_rebuild(RepositoryRuleDetailedOneof13) -__all__ = ( - "PrivateVulnerabilityReportCreate", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", -) +__all__ = ("RepositoryRuleDetailedOneof13",) diff --git a/githubkit/versions/v2022_11_28/models/group_0331.py b/githubkit/versions/v2022_11_28/models/group_0331.py index ab7417cce..56fe6d71b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0331.py +++ b/githubkit/versions/v2022_11_28/models/group_0331.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,131 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0136 import RepositoryRuleWorkflowsPropParameters -class RepositoryAdvisoryUpdate(GitHubModel): - """RepositoryAdvisoryUpdate""" - summary: Missing[str] = Field( - max_length=1024, default=UNSET, description="A short summary of the advisory." - ) - description: Missing[str] = Field( - max_length=65535, - default=UNSET, - description="A detailed description of what the advisory impacts.", - ) - cve_id: Missing[Union[str, None]] = Field( - default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." - ) - vulnerabilities: Missing[List[RepositoryAdvisoryUpdatePropVulnerabilitiesItems]] = ( - Field( - default=UNSET, - description="A product affected by the vulnerability detailed in a repository security advisory.", - ) - ) - cwe_ids: Missing[Union[List[str], None]] = Field( - default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." - ) - credits_: Missing[Union[List[RepositoryAdvisoryUpdatePropCreditsItems], None]] = ( - Field( - default=UNSET, - alias="credits", - description="A list of users receiving credit for their participation in the security advisory.", - ) - ) - severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( - Field( - default=UNSET, - description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", - ) - ) - cvss_vector_string: Missing[Union[str, None]] = Field( - default=UNSET, - description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", - ) - state: Missing[Literal["published", "closed", "draft"]] = Field( - default=UNSET, description="The state of the advisory." - ) - collaborating_users: Missing[Union[List[str], None]] = Field( - default=UNSET, - description="A list of usernames who have been granted write access to the advisory.", - ) - collaborating_teams: Missing[Union[List[str], None]] = Field( - default=UNSET, - description="A list of team slugs which have been granted write access to the advisory.", - ) - - -class RepositoryAdvisoryUpdatePropCreditsItems(GitHubModel): - """RepositoryAdvisoryUpdatePropCreditsItems""" - - login: str = Field(description="The username of the user credited.") - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] = Field(description="The type of credit the user is receiving.") - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItems(GitHubModel): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" +class RepositoryRuleDetailedOneof14(GitHubModel): + """RepositoryRuleDetailedOneof14""" - package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage = Field( - description="The name of the package affected by the vulnerability." - ) - vulnerable_version_range: Missing[Union[str, None]] = Field( + type: Literal["workflows"] = Field() + parameters: Missing[RepositoryRuleWorkflowsPropParameters] = Field(default=UNSET) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( default=UNSET, - description="The range of the package versions affected by the vulnerability.", + description="The type of source for the ruleset that includes this rule.", ) - patched_versions: Missing[Union[str, None]] = Field( + ruleset_source: Missing[str] = Field( default=UNSET, - description="The package version(s) that resolve the vulnerability.", - ) - vulnerable_functions: Missing[Union[List[str], None]] = Field( - default=UNSET, description="The functions in the package that are affected." + description="The name of the source of the ruleset that includes this rule.", ) - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage(GitHubModel): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] = Field(description="The package's language or package management ecosystem.") - name: Missing[Union[str, None]] = Field( - default=UNSET, description="The unique package name within its ecosystem." + ruleset_id: Missing[int] = Field( + default=UNSET, description="The ID of the ruleset that includes this rule." ) -model_rebuild(RepositoryAdvisoryUpdate) -model_rebuild(RepositoryAdvisoryUpdatePropCreditsItems) -model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItems) -model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage) +model_rebuild(RepositoryRuleDetailedOneof14) -__all__ = ( - "RepositoryAdvisoryUpdate", - "RepositoryAdvisoryUpdatePropCreditsItems", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", -) +__all__ = ("RepositoryRuleDetailedOneof14",) diff --git a/githubkit/versions/v2022_11_28/models/group_0332.py b/githubkit/versions/v2022_11_28/models/group_0332.py index 3a0e47a6f..7dd481ba7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0332.py +++ b/githubkit/versions/v2022_11_28/models/group_0332.py @@ -9,26 +9,35 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +from .group_0138 import RepositoryRuleCodeScanningPropParameters -class Stargazer(GitHubModel): - """Stargazer +class RepositoryRuleDetailedOneof15(GitHubModel): + """RepositoryRuleDetailedOneof15""" - Stargazer - """ + type: Literal["code_scanning"] = Field() + parameters: Missing[RepositoryRuleCodeScanningPropParameters] = Field(default=UNSET) + ruleset_source_type: Missing[Literal["Repository", "Organization"]] = Field( + default=UNSET, + description="The type of source for the ruleset that includes this rule.", + ) + 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." + ) - starred_at: datetime = Field() - user: Union[None, SimpleUser] = Field() +model_rebuild(RepositoryRuleDetailedOneof15) -model_rebuild(Stargazer) - -__all__ = ("Stargazer",) +__all__ = ("RepositoryRuleDetailedOneof15",) diff --git a/githubkit/versions/v2022_11_28/models/group_0333.py b/githubkit/versions/v2022_11_28/models/group_0333.py index e36a25e25..a80eda521 100644 --- a/githubkit/versions/v2022_11_28/models/group_0333.py +++ b/githubkit/versions/v2022_11_28/models/group_0333.py @@ -9,24 +9,81 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class CommitActivity(GitHubModel): - """Commit Activity - Commit Activity - """ +class SecretScanningAlert(GitHubModel): + """SecretScanningAlert""" - days: List[int] = Field() - total: int = Field() - week: int = Field() + number: Missing[int] = Field( + default=UNSET, description="The security alert number." + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." + ) + locations_url: Missing[str] = Field( + default=UNSET, + description="The REST API URL of the code locations for this alert.", + ) + state: Missing[Literal["open", "resolved"]] = Field( + default=UNSET, + description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.", + ) + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( + default=UNSET, + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", + ) + resolved_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + 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 "[Secret scanning patterns](https://docs.github.com/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)."', + ) + 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`.", + ) + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." + ) -model_rebuild(CommitActivity) +model_rebuild(SecretScanningAlert) -__all__ = ("CommitActivity",) +__all__ = ("SecretScanningAlert",) diff --git a/githubkit/versions/v2022_11_28/models/group_0334.py b/githubkit/versions/v2022_11_28/models/group_0334.py index 7b033f045..efed65a18 100644 --- a/githubkit/versions/v2022_11_28/models/group_0334.py +++ b/githubkit/versions/v2022_11_28/models/group_0334.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import List, Union, Literal from pydantic import Field @@ -17,33 +17,120 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser - -class ContributorActivity(GitHubModel): - """Contributor Activity - - Contributor Activity +class RepositoryAdvisoryCreate(GitHubModel): + """RepositoryAdvisoryCreate""" + + summary: str = Field( + max_length=1024, description="A short summary of the advisory." + ) + description: str = Field( + max_length=65535, + description="A detailed description of what the advisory impacts.", + ) + cve_id: Missing[Union[str, None]] = Field( + default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." + ) + vulnerabilities: List[RepositoryAdvisoryCreatePropVulnerabilitiesItems] = Field( + description="A product affected by the vulnerability detailed in a repository security advisory." + ) + cwe_ids: Missing[Union[List[str], None]] = Field( + default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." + ) + credits_: Missing[Union[List[RepositoryAdvisoryCreatePropCreditsItems], None]] = ( + Field( + default=UNSET, + alias="credits", + description="A list of users receiving credit for their participation in the security advisory.", + ) + ) + severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( + Field( + default=UNSET, + description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", + ) + ) + cvss_vector_string: Missing[Union[str, None]] = Field( + default=UNSET, + description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + ) + start_private_fork: Missing[bool] = Field( + default=UNSET, + description="Whether to create a temporary private fork of the repository to collaborate on a fix.", + ) + + +class RepositoryAdvisoryCreatePropCreditsItems(GitHubModel): + """RepositoryAdvisoryCreatePropCreditsItems""" + + login: str = Field(description="The username of the user credited.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") + + +class RepositoryAdvisoryCreatePropVulnerabilitiesItems(GitHubModel): + """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Missing[Union[str, None]] = Field( + default=UNSET, + description="The range of the package versions affected by the vulnerability.", + ) + patched_versions: Missing[Union[str, None]] = Field( + default=UNSET, + description="The package version(s) that resolve the vulnerability.", + ) + vulnerable_functions: Missing[Union[List[str], None]] = Field( + default=UNSET, description="The functions in the package that are affected." + ) + + +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. """ - author: Union[None, SimpleUser] = Field() - total: int = Field() - weeks: List[ContributorActivityPropWeeksItems] = Field() - - -class ContributorActivityPropWeeksItems(GitHubModel): - """ContributorActivityPropWeeksItems""" - - w: Missing[int] = Field(default=UNSET) - a: Missing[int] = Field(default=UNSET) - d: Missing[int] = Field(default=UNSET) - c: Missing[int] = Field(default=UNSET) - - -model_rebuild(ContributorActivity) -model_rebuild(ContributorActivityPropWeeksItems) + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The unique package name within its ecosystem." + ) + + +model_rebuild(RepositoryAdvisoryCreate) +model_rebuild(RepositoryAdvisoryCreatePropCreditsItems) +model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItems) +model_rebuild(RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage) __all__ = ( - "ContributorActivity", - "ContributorActivityPropWeeksItems", + "RepositoryAdvisoryCreate", + "RepositoryAdvisoryCreatePropCreditsItems", + "RepositoryAdvisoryCreatePropVulnerabilitiesItems", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0335.py b/githubkit/versions/v2022_11_28/models/group_0335.py index 1d3f14e20..7b8c49810 100644 --- a/githubkit/versions/v2022_11_28/models/group_0335.py +++ b/githubkit/versions/v2022_11_28/models/group_0335.py @@ -9,20 +9,101 @@ from __future__ import annotations -from typing import List +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ParticipationStats(GitHubModel): - """Participation Stats""" +class PrivateVulnerabilityReportCreate(GitHubModel): + """PrivateVulnerabilityReportCreate""" - all_: List[int] = Field(alias="all") - owner: List[int] = Field() + 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.", + ) -model_rebuild(ParticipationStats) +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItems(GitHubModel): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" -__all__ = ("ParticipationStats",) + 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. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The unique package name within its ecosystem." + ) + + +model_rebuild(PrivateVulnerabilityReportCreate) +model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItems) +model_rebuild(PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage) + +__all__ = ( + "PrivateVulnerabilityReportCreate", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItems", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0336.py b/githubkit/versions/v2022_11_28/models/group_0336.py index ef630501d..ab7417cce 100644 --- a/githubkit/versions/v2022_11_28/models/group_0336.py +++ b/githubkit/versions/v2022_11_28/models/group_0336.py @@ -9,32 +9,139 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class RepositorySubscription(GitHubModel): - """Repository Invitation +class RepositoryAdvisoryUpdate(GitHubModel): + """RepositoryAdvisoryUpdate""" + + summary: Missing[str] = Field( + max_length=1024, default=UNSET, description="A short summary of the advisory." + ) + description: Missing[str] = Field( + max_length=65535, + default=UNSET, + description="A detailed description of what the advisory impacts.", + ) + cve_id: Missing[Union[str, None]] = Field( + default=UNSET, description="The Common Vulnerabilities and Exposures (CVE) ID." + ) + vulnerabilities: Missing[List[RepositoryAdvisoryUpdatePropVulnerabilitiesItems]] = ( + Field( + default=UNSET, + description="A product affected by the vulnerability detailed in a repository security advisory.", + ) + ) + cwe_ids: Missing[Union[List[str], None]] = Field( + default=UNSET, description="A list of Common Weakness Enumeration (CWE) IDs." + ) + credits_: Missing[Union[List[RepositoryAdvisoryUpdatePropCreditsItems], None]] = ( + Field( + default=UNSET, + alias="credits", + description="A list of users receiving credit for their participation in the security advisory.", + ) + ) + severity: Missing[Union[None, Literal["critical", "high", "medium", "low"]]] = ( + Field( + default=UNSET, + description="The severity of the advisory. You must choose between setting this field or `cvss_vector_string`.", + ) + ) + cvss_vector_string: Missing[Union[str, None]] = Field( + default=UNSET, + description="The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or `severity`.", + ) + state: Missing[Literal["published", "closed", "draft"]] = Field( + default=UNSET, description="The state of the advisory." + ) + collaborating_users: Missing[Union[List[str], None]] = Field( + default=UNSET, + description="A list of usernames who have been granted write access to the advisory.", + ) + collaborating_teams: Missing[Union[List[str], None]] = Field( + default=UNSET, + description="A list of team slugs which have been granted write access to the advisory.", + ) - Repository invitations let you manage who you collaborate with. - """ - subscribed: bool = Field( - description="Determines if notifications should be received from this repository." +class RepositoryAdvisoryUpdatePropCreditsItems(GitHubModel): + """RepositoryAdvisoryUpdatePropCreditsItems""" + + login: str = Field(description="The username of the user credited.") + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] = Field(description="The type of credit the user is receiving.") + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItems(GitHubModel): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage = Field( + description="The name of the package affected by the vulnerability." + ) + vulnerable_version_range: Missing[Union[str, None]] = Field( + default=UNSET, + description="The range of the package versions affected by the vulnerability.", + ) + patched_versions: Missing[Union[str, None]] = Field( + default=UNSET, + description="The package version(s) that resolve the vulnerability.", ) - ignored: bool = Field( - description="Determines if all notifications should be blocked from this repository." + vulnerable_functions: Missing[Union[List[str], None]] = Field( + default=UNSET, description="The functions in the package that are affected." + ) + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage(GitHubModel): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] = Field(description="The package's language or package management ecosystem.") + name: Missing[Union[str, None]] = Field( + default=UNSET, description="The unique package name within its ecosystem." ) - reason: Union[str, None] = Field() - created_at: datetime = Field() - url: str = Field() - repository_url: str = Field() -model_rebuild(RepositorySubscription) +model_rebuild(RepositoryAdvisoryUpdate) +model_rebuild(RepositoryAdvisoryUpdatePropCreditsItems) +model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItems) +model_rebuild(RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage) -__all__ = ("RepositorySubscription",) +__all__ = ( + "RepositoryAdvisoryUpdate", + "RepositoryAdvisoryUpdatePropCreditsItems", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItems", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0337.py b/githubkit/versions/v2022_11_28/models/group_0337.py index c5f394186..3a0e47a6f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0337.py +++ b/githubkit/versions/v2022_11_28/models/group_0337.py @@ -9,35 +9,26 @@ from __future__ import annotations +from typing import Union +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class Tag(GitHubModel): - """Tag - - Tag - """ - name: str = Field() - commit: TagPropCommit = Field() - zipball_url: str = Field() - tarball_url: str = Field() - node_id: str = Field() +class Stargazer(GitHubModel): + """Stargazer + Stargazer + """ -class TagPropCommit(GitHubModel): - """TagPropCommit""" - - sha: str = Field() - url: str = Field() + starred_at: datetime = Field() + user: Union[None, SimpleUser] = Field() -model_rebuild(Tag) -model_rebuild(TagPropCommit) +model_rebuild(Stargazer) -__all__ = ( - "Tag", - "TagPropCommit", -) +__all__ = ("Stargazer",) diff --git a/githubkit/versions/v2022_11_28/models/group_0338.py b/githubkit/versions/v2022_11_28/models/group_0338.py index a7005e85e..e36a25e25 100644 --- a/githubkit/versions/v2022_11_28/models/group_0338.py +++ b/githubkit/versions/v2022_11_28/models/group_0338.py @@ -9,26 +9,24 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class TagProtection(GitHubModel): - """Tag protection +class CommitActivity(GitHubModel): + """Commit Activity - Tag protection + Commit Activity """ - id: Missing[int] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - enabled: Missing[bool] = Field(default=UNSET) - pattern: str = Field() + days: List[int] = Field() + total: int = Field() + week: int = Field() -model_rebuild(TagProtection) +model_rebuild(CommitActivity) -__all__ = ("TagProtection",) +__all__ = ("CommitActivity",) diff --git a/githubkit/versions/v2022_11_28/models/group_0339.py b/githubkit/versions/v2022_11_28/models/group_0339.py index 0ab144da3..7b033f045 100644 --- a/githubkit/versions/v2022_11_28/models/group_0339.py +++ b/githubkit/versions/v2022_11_28/models/group_0339.py @@ -9,22 +9,41 @@ from __future__ import annotations -from typing import List +from typing import List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class Topic(GitHubModel): - """Topic - A topic aggregates entities that are related to a subject. +class ContributorActivity(GitHubModel): + """Contributor Activity + + Contributor Activity """ - names: List[str] = Field() + author: Union[None, SimpleUser] = Field() + total: int = Field() + weeks: List[ContributorActivityPropWeeksItems] = Field() + + +class ContributorActivityPropWeeksItems(GitHubModel): + """ContributorActivityPropWeeksItems""" + + w: Missing[int] = Field(default=UNSET) + a: Missing[int] = Field(default=UNSET) + d: Missing[int] = Field(default=UNSET) + c: Missing[int] = Field(default=UNSET) -model_rebuild(Topic) +model_rebuild(ContributorActivity) +model_rebuild(ContributorActivityPropWeeksItems) -__all__ = ("Topic",) +__all__ = ( + "ContributorActivity", + "ContributorActivityPropWeeksItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0340.py b/githubkit/versions/v2022_11_28/models/group_0340.py index 8f9d3f9f8..1d3f14e20 100644 --- a/githubkit/versions/v2022_11_28/models/group_0340.py +++ b/githubkit/versions/v2022_11_28/models/group_0340.py @@ -9,21 +9,20 @@ from __future__ import annotations -from datetime import datetime +from typing import List from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class Traffic(GitHubModel): - """Traffic""" +class ParticipationStats(GitHubModel): + """Participation Stats""" - timestamp: datetime = Field() - uniques: int = Field() - count: int = Field() + all_: List[int] = Field(alias="all") + owner: List[int] = Field() -model_rebuild(Traffic) +model_rebuild(ParticipationStats) -__all__ = ("Traffic",) +__all__ = ("ParticipationStats",) diff --git a/githubkit/versions/v2022_11_28/models/group_0341.py b/githubkit/versions/v2022_11_28/models/group_0341.py index 89e458025..ef630501d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0341.py +++ b/githubkit/versions/v2022_11_28/models/group_0341.py @@ -9,26 +9,32 @@ from __future__ import annotations -from typing import List +from typing import Union +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0340 import Traffic +class RepositorySubscription(GitHubModel): + """Repository Invitation -class CloneTraffic(GitHubModel): - """Clone Traffic - - Clone Traffic + Repository invitations let you manage who you collaborate with. """ - count: int = Field() - uniques: int = Field() - clones: List[Traffic] = Field() + subscribed: bool = Field( + description="Determines if notifications should be received from this repository." + ) + ignored: bool = Field( + description="Determines if all notifications should be blocked from this repository." + ) + reason: Union[str, None] = Field() + created_at: datetime = Field() + url: str = Field() + repository_url: str = Field() -model_rebuild(CloneTraffic) +model_rebuild(RepositorySubscription) -__all__ = ("CloneTraffic",) +__all__ = ("RepositorySubscription",) diff --git a/githubkit/versions/v2022_11_28/models/group_0342.py b/githubkit/versions/v2022_11_28/models/group_0342.py index 97ab65074..c5f394186 100644 --- a/githubkit/versions/v2022_11_28/models/group_0342.py +++ b/githubkit/versions/v2022_11_28/models/group_0342.py @@ -14,18 +14,30 @@ from githubkit.compat import GitHubModel, model_rebuild -class ContentTraffic(GitHubModel): - """Content Traffic +class Tag(GitHubModel): + """Tag - Content Traffic + Tag """ - path: str = Field() - title: str = Field() - count: int = Field() - uniques: int = Field() + name: str = Field() + commit: TagPropCommit = Field() + zipball_url: str = Field() + tarball_url: str = Field() + node_id: str = Field() -model_rebuild(ContentTraffic) +class TagPropCommit(GitHubModel): + """TagPropCommit""" -__all__ = ("ContentTraffic",) + sha: str = Field() + url: str = Field() + + +model_rebuild(Tag) +model_rebuild(TagPropCommit) + +__all__ = ( + "Tag", + "TagPropCommit", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0343.py b/githubkit/versions/v2022_11_28/models/group_0343.py index 7ced93dd8..a7005e85e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0343.py +++ b/githubkit/versions/v2022_11_28/models/group_0343.py @@ -11,20 +11,24 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReferrerTraffic(GitHubModel): - """Referrer Traffic +class TagProtection(GitHubModel): + """Tag protection - Referrer Traffic + Tag protection """ - referrer: str = Field() - count: int = Field() - uniques: int = Field() + id: Missing[int] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + enabled: Missing[bool] = Field(default=UNSET) + pattern: str = Field() -model_rebuild(ReferrerTraffic) +model_rebuild(TagProtection) -__all__ = ("ReferrerTraffic",) +__all__ = ("TagProtection",) diff --git a/githubkit/versions/v2022_11_28/models/group_0344.py b/githubkit/versions/v2022_11_28/models/group_0344.py index 601377bef..0ab144da3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0344.py +++ b/githubkit/versions/v2022_11_28/models/group_0344.py @@ -15,20 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0340 import Traffic +class Topic(GitHubModel): + """Topic -class ViewTraffic(GitHubModel): - """View Traffic - - View Traffic + A topic aggregates entities that are related to a subject. """ - count: int = Field() - uniques: int = Field() - views: List[Traffic] = Field() + names: List[str] = Field() -model_rebuild(ViewTraffic) +model_rebuild(Topic) -__all__ = ("ViewTraffic",) +__all__ = ("Topic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0345.py b/githubkit/versions/v2022_11_28/models/group_0345.py index 2b52c39fa..8f9d3f9f8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0345.py +++ b/githubkit/versions/v2022_11_28/models/group_0345.py @@ -9,38 +9,21 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class SearchResultTextMatchesItems(GitHubModel): - """SearchResultTextMatchesItems""" +class Traffic(GitHubModel): + """Traffic""" - object_url: Missing[str] = Field(default=UNSET) - object_type: Missing[Union[str, None]] = Field(default=UNSET) - property_: Missing[str] = Field(default=UNSET, alias="property") - fragment: Missing[str] = Field(default=UNSET) - matches: Missing[List[SearchResultTextMatchesItemsPropMatchesItems]] = Field( - default=UNSET - ) + timestamp: datetime = Field() + uniques: int = Field() + count: int = Field() -class SearchResultTextMatchesItemsPropMatchesItems(GitHubModel): - """SearchResultTextMatchesItemsPropMatchesItems""" +model_rebuild(Traffic) - text: Missing[str] = Field(default=UNSET) - indices: Missing[List[int]] = Field(default=UNSET) - - -model_rebuild(SearchResultTextMatchesItems) -model_rebuild(SearchResultTextMatchesItemsPropMatchesItems) - -__all__ = ( - "SearchResultTextMatchesItems", - "SearchResultTextMatchesItemsPropMatchesItems", -) +__all__ = ("Traffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0346.py b/githubkit/versions/v2022_11_28/models/group_0346.py index 01a303e7d..ea4fd03c9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0346.py +++ b/githubkit/versions/v2022_11_28/models/group_0346.py @@ -9,56 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0051 import MinimalRepository -from .group_0345 import SearchResultTextMatchesItems +from .group_0345 import Traffic -class CodeSearchResultItem(GitHubModel): - """Code Search Result Item +class CloneTraffic(GitHubModel): + """Clone Traffic - Code Search Result Item + Clone Traffic """ - name: str = Field() - path: str = Field() - sha: str = Field() - url: str = Field() - git_url: str = Field() - html_url: str = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - score: float = Field() - file_size: Missing[int] = Field(default=UNSET) - language: Missing[Union[str, None]] = Field(default=UNSET) - last_modified_at: Missing[datetime] = Field(default=UNSET) - line_numbers: Missing[List[str]] = Field(default=UNSET) - text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) + count: int = Field() + uniques: int = Field() + clones: List[Traffic] = Field() -class SearchCodeGetResponse200(GitHubModel): - """SearchCodeGetResponse200""" +model_rebuild(CloneTraffic) - total_count: int = Field() - incomplete_results: bool = Field() - items: List[CodeSearchResultItem] = Field() - - -model_rebuild(CodeSearchResultItem) -model_rebuild(SearchCodeGetResponse200) - -__all__ = ( - "CodeSearchResultItem", - "SearchCodeGetResponse200", -) +__all__ = ("CloneTraffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0347.py b/githubkit/versions/v2022_11_28/models/group_0347.py index 7036ab833..97ab65074 100644 --- a/githubkit/versions/v2022_11_28/models/group_0347.py +++ b/githubkit/versions/v2022_11_28/models/group_0347.py @@ -9,67 +9,23 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0182 import GitUser -from .group_0001 import SimpleUser -from .group_0051 import MinimalRepository -from .group_0345 import SearchResultTextMatchesItems -from .group_0348 import CommitSearchResultItemPropCommit - -class CommitSearchResultItem(GitHubModel): - """Commit Search Result Item +class ContentTraffic(GitHubModel): + """Content Traffic - Commit Search Result Item + Content Traffic """ - url: str = Field() - sha: str = Field() - html_url: str = Field() - comments_url: str = Field() - commit: CommitSearchResultItemPropCommit = Field() - author: Union[None, SimpleUser] = Field() - committer: Union[None, GitUser] = Field() - parents: List[CommitSearchResultItemPropParentsItems] = Field() - repository: MinimalRepository = Field( - title="Minimal Repository", description="Minimal Repository" - ) - score: float = Field() - node_id: str = Field() - text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) - - -class CommitSearchResultItemPropParentsItems(GitHubModel): - """CommitSearchResultItemPropParentsItems""" - - url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - sha: Missing[str] = Field(default=UNSET) - - -class SearchCommitsGetResponse200(GitHubModel): - """SearchCommitsGetResponse200""" - - total_count: int = Field() - incomplete_results: bool = Field() - items: List[CommitSearchResultItem] = Field() + path: str = Field() + title: str = Field() + count: int = Field() + uniques: int = Field() -model_rebuild(CommitSearchResultItem) -model_rebuild(CommitSearchResultItemPropParentsItems) -model_rebuild(SearchCommitsGetResponse200) +model_rebuild(ContentTraffic) -__all__ = ( - "CommitSearchResultItem", - "CommitSearchResultItemPropParentsItems", - "SearchCommitsGetResponse200", -) +__all__ = ("ContentTraffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0348.py b/githubkit/versions/v2022_11_28/models/group_0348.py index ba2f9fbb8..7ced93dd8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0348.py +++ b/githubkit/versions/v2022_11_28/models/group_0348.py @@ -9,52 +9,22 @@ from __future__ import annotations -from typing import Union -from datetime import datetime - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0182 import GitUser -from .group_0183 import Verification - - -class CommitSearchResultItemPropCommit(GitHubModel): - """CommitSearchResultItemPropCommit""" - - author: CommitSearchResultItemPropCommitPropAuthor = Field() - committer: Union[None, GitUser] = Field() - comment_count: int = Field() - message: str = Field() - tree: CommitSearchResultItemPropCommitPropTree = Field() - url: str = Field() - verification: Missing[Verification] = Field(default=UNSET, title="Verification") - - -class CommitSearchResultItemPropCommitPropAuthor(GitHubModel): - """CommitSearchResultItemPropCommitPropAuthor""" - - name: str = Field() - email: str = Field() - date: datetime = Field() +class ReferrerTraffic(GitHubModel): + """Referrer Traffic -class CommitSearchResultItemPropCommitPropTree(GitHubModel): - """CommitSearchResultItemPropCommitPropTree""" + Referrer Traffic + """ - sha: str = Field() - url: str = Field() + referrer: str = Field() + count: int = Field() + uniques: int = Field() -model_rebuild(CommitSearchResultItemPropCommit) -model_rebuild(CommitSearchResultItemPropCommitPropAuthor) -model_rebuild(CommitSearchResultItemPropCommitPropTree) +model_rebuild(ReferrerTraffic) -__all__ = ( - "CommitSearchResultItemPropCommit", - "CommitSearchResultItemPropCommitPropAuthor", - "CommitSearchResultItemPropCommitPropTree", -) +__all__ = ("ReferrerTraffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0349.py b/githubkit/versions/v2022_11_28/models/group_0349.py index 2cc3dc276..44714127b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0349.py +++ b/githubkit/versions/v2022_11_28/models/group_0349.py @@ -9,122 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0033 import Milestone -from .group_0001 import SimpleUser -from .group_0017 import Repository -from .group_0006 import Integration -from .group_0034 import ReactionRollup -from .group_0345 import SearchResultTextMatchesItems +from .group_0345 import Traffic -class IssueSearchResultItem(GitHubModel): - """Issue Search Result Item +class ViewTraffic(GitHubModel): + """View Traffic - Issue Search Result Item + View Traffic """ - url: str = Field() - repository_url: str = Field() - labels_url: str = Field() - comments_url: str = Field() - events_url: str = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - title: str = Field() - locked: bool = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - user: Union[None, SimpleUser] = Field() - labels: List[IssueSearchResultItemPropLabelsItems] = Field() - state: str = Field() - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[None, SimpleUser] = Field() - milestone: Union[None, Milestone] = Field() - comments: int = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) - pull_request: Missing[IssueSearchResultItemPropPullRequest] = Field(default=UNSET) - body: Missing[str] = Field(default=UNSET) - score: float = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - draft: Missing[bool] = Field(default=UNSET) - repository: Missing[Repository] = Field( - default=UNSET, title="Repository", description="A repository on GitHub." - ) - body_html: Missing[str] = Field(default=UNSET) - body_text: Missing[str] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - performed_via_github_app: Missing[Union[None, Integration, None]] = Field( - default=UNSET - ) - reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + count: int = Field() + uniques: int = Field() + views: List[Traffic] = Field() -class IssueSearchResultItemPropLabelsItems(GitHubModel): - """IssueSearchResultItemPropLabelsItems""" +model_rebuild(ViewTraffic) - 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 IssueSearchResultItemPropPullRequest(GitHubModel): - """IssueSearchResultItemPropPullRequest""" - - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - diff_url: Union[str, None] = Field() - html_url: Union[str, None] = Field() - patch_url: Union[str, None] = Field() - url: Union[str, None] = Field() - - -class SearchIssuesGetResponse200(GitHubModel): - """SearchIssuesGetResponse200""" - - total_count: int = Field() - incomplete_results: bool = Field() - items: List[IssueSearchResultItem] = Field() - - -model_rebuild(IssueSearchResultItem) -model_rebuild(IssueSearchResultItemPropLabelsItems) -model_rebuild(IssueSearchResultItemPropPullRequest) -model_rebuild(SearchIssuesGetResponse200) - -__all__ = ( - "IssueSearchResultItem", - "IssueSearchResultItemPropLabelsItems", - "IssueSearchResultItemPropPullRequest", - "SearchIssuesGetResponse200", -) +__all__ = ("ViewTraffic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0350.py b/githubkit/versions/v2022_11_28/models/group_0350.py index 7c9f788cd..2b52c39fa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0350.py +++ b/githubkit/versions/v2022_11_28/models/group_0350.py @@ -17,40 +17,30 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0345 import SearchResultTextMatchesItems +class SearchResultTextMatchesItems(GitHubModel): + """SearchResultTextMatchesItems""" -class LabelSearchResultItem(GitHubModel): - """Label Search Result Item - - Label Search Result Item - """ - - id: int = Field() - node_id: str = Field() - url: str = Field() - name: str = Field() - color: str = Field() - default: bool = Field() - description: Union[str, None] = Field() - score: float = Field() - text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" + object_url: Missing[str] = Field(default=UNSET) + object_type: Missing[Union[str, None]] = Field(default=UNSET) + property_: Missing[str] = Field(default=UNSET, alias="property") + fragment: Missing[str] = Field(default=UNSET) + matches: Missing[List[SearchResultTextMatchesItemsPropMatchesItems]] = Field( + default=UNSET ) -class SearchLabelsGetResponse200(GitHubModel): - """SearchLabelsGetResponse200""" +class SearchResultTextMatchesItemsPropMatchesItems(GitHubModel): + """SearchResultTextMatchesItemsPropMatchesItems""" - total_count: int = Field() - incomplete_results: bool = Field() - items: List[LabelSearchResultItem] = Field() + text: Missing[str] = Field(default=UNSET) + indices: Missing[List[int]] = Field(default=UNSET) -model_rebuild(LabelSearchResultItem) -model_rebuild(SearchLabelsGetResponse200) +model_rebuild(SearchResultTextMatchesItems) +model_rebuild(SearchResultTextMatchesItemsPropMatchesItems) __all__ = ( - "LabelSearchResultItem", - "SearchLabelsGetResponse200", + "SearchResultTextMatchesItems", + "SearchResultTextMatchesItemsPropMatchesItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0351.py b/githubkit/versions/v2022_11_28/models/group_0351.py index bd70db43e..f4019c777 100644 --- a/githubkit/versions/v2022_11_28/models/group_0351.py +++ b/githubkit/versions/v2022_11_28/models/group_0351.py @@ -18,139 +18,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0016 import LicenseSimple -from .group_0345 import SearchResultTextMatchesItems +from .group_0055 import MinimalRepository +from .group_0350 import SearchResultTextMatchesItems -class RepoSearchResultItem(GitHubModel): - """Repo Search Result Item +class CodeSearchResultItem(GitHubModel): + """Code Search Result Item - Repo Search Result Item + Code Search Result Item """ - id: int = Field() - node_id: str = Field() name: str = Field() - full_name: str = Field() - owner: Union[None, SimpleUser] = Field() - private: bool = Field() - html_url: str = Field() - description: Union[str, None] = Field() - fork: bool = Field() + path: str = Field() + sha: str = Field() url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - pushed_at: datetime = Field() - homepage: Union[str, None] = Field() - size: int = Field() - stargazers_count: int = Field() - watchers_count: int = Field() - language: Union[str, None] = Field() - forks_count: int = Field() - open_issues_count: int = Field() - master_branch: Missing[str] = Field(default=UNSET) - default_branch: str = Field() - score: float = Field() - forks_url: str = Field() - keys_url: str = Field() - collaborators_url: str = Field() - teams_url: str = Field() - hooks_url: str = Field() - issue_events_url: str = Field() - events_url: str = Field() - assignees_url: str = Field() - branches_url: str = Field() - tags_url: str = Field() - blobs_url: str = Field() - git_tags_url: str = Field() - git_refs_url: str = Field() - trees_url: str = Field() - statuses_url: str = Field() - languages_url: str = Field() - stargazers_url: str = Field() - contributors_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - commits_url: str = Field() - git_commits_url: str = Field() - comments_url: str = Field() - issue_comment_url: str = Field() - contents_url: str = Field() - compare_url: str = Field() - merges_url: str = Field() - archive_url: str = Field() - downloads_url: str = Field() - issues_url: str = Field() - pulls_url: str = Field() - milestones_url: str = Field() - notifications_url: str = Field() - labels_url: str = Field() - releases_url: str = Field() - deployments_url: str = Field() git_url: str = Field() - ssh_url: str = Field() - clone_url: str = Field() - svn_url: str = Field() - forks: int = Field() - open_issues: int = Field() - watchers: int = Field() - topics: Missing[List[str]] = Field(default=UNSET) - mirror_url: Union[str, None] = Field() - has_issues: bool = Field() - has_projects: bool = Field() - has_pages: bool = Field() - has_wiki: bool = Field() - has_downloads: bool = Field() - has_discussions: Missing[bool] = Field(default=UNSET) - archived: bool = Field() - disabled: bool = Field( - description="Returns whether or not this repository disabled." - ) - visibility: Missing[str] = Field( - default=UNSET, - description="The repository visibility: public, private, or internal.", + html_url: str = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" ) - license_: Union[None, LicenseSimple] = Field(alias="license") - permissions: Missing[RepoSearchResultItemPropPermissions] = Field(default=UNSET) + score: float = Field() + file_size: Missing[int] = Field(default=UNSET) + language: Missing[Union[str, None]] = Field(default=UNSET) + last_modified_at: Missing[datetime] = Field(default=UNSET) + line_numbers: Missing[List[str]] = Field(default=UNSET) text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( default=UNSET, title="Search Result Text Matches" ) - temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) - allow_merge_commit: Missing[bool] = Field(default=UNSET) - allow_squash_merge: Missing[bool] = Field(default=UNSET) - allow_rebase_merge: Missing[bool] = Field(default=UNSET) - allow_auto_merge: Missing[bool] = Field(default=UNSET) - delete_branch_on_merge: Missing[bool] = Field(default=UNSET) - allow_forking: Missing[bool] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - web_commit_signoff_required: Missing[bool] = Field(default=UNSET) - - -class RepoSearchResultItemPropPermissions(GitHubModel): - """RepoSearchResultItemPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - pull: bool = Field() -class SearchRepositoriesGetResponse200(GitHubModel): - """SearchRepositoriesGetResponse200""" +class SearchCodeGetResponse200(GitHubModel): + """SearchCodeGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: List[RepoSearchResultItem] = Field() + items: List[CodeSearchResultItem] = Field() -model_rebuild(RepoSearchResultItem) -model_rebuild(RepoSearchResultItemPropPermissions) -model_rebuild(SearchRepositoriesGetResponse200) +model_rebuild(CodeSearchResultItem) +model_rebuild(SearchCodeGetResponse200) __all__ = ( - "RepoSearchResultItem", - "RepoSearchResultItemPropPermissions", - "SearchRepositoriesGetResponse200", + "CodeSearchResultItem", + "SearchCodeGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0352.py b/githubkit/versions/v2022_11_28/models/group_0352.py index b08656242..79c2abe7f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0352.py +++ b/githubkit/versions/v2022_11_28/models/group_0352.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union from pydantic import Field @@ -18,93 +17,59 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0345 import SearchResultTextMatchesItems +from .group_0187 import GitUser +from .group_0001 import SimpleUser +from .group_0055 import MinimalRepository +from .group_0350 import SearchResultTextMatchesItems +from .group_0353 import CommitSearchResultItemPropCommit -class TopicSearchResultItem(GitHubModel): - """Topic Search Result Item +class CommitSearchResultItem(GitHubModel): + """Commit Search Result Item - Topic Search Result Item + Commit Search Result Item """ - name: str = Field() - display_name: Union[str, None] = Field() - short_description: Union[str, None] = Field() - description: Union[str, None] = Field() - created_by: Union[str, None] = Field() - released: Union[str, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - featured: bool = Field() - curated: bool = Field() + url: str = Field() + sha: str = Field() + html_url: str = Field() + comments_url: str = Field() + commit: CommitSearchResultItemPropCommit = Field() + author: Union[None, SimpleUser] = Field() + committer: Union[None, GitUser] = Field() + parents: List[CommitSearchResultItemPropParentsItems] = Field() + repository: MinimalRepository = Field( + title="Minimal Repository", description="Minimal Repository" + ) score: float = Field() - repository_count: Missing[Union[int, None]] = Field(default=UNSET) - logo_url: Missing[Union[str, None]] = Field(default=UNSET) + node_id: str = Field() text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( default=UNSET, title="Search Result Text Matches" ) - related: Missing[Union[List[TopicSearchResultItemPropRelatedItems], None]] = Field( - default=UNSET - ) - aliases: Missing[Union[List[TopicSearchResultItemPropAliasesItems], None]] = Field( - default=UNSET - ) - - -class TopicSearchResultItemPropRelatedItems(GitHubModel): - """TopicSearchResultItemPropRelatedItems""" - - topic_relation: Missing[TopicSearchResultItemPropRelatedItemsPropTopicRelation] = ( - Field(default=UNSET) - ) - - -class TopicSearchResultItemPropRelatedItemsPropTopicRelation(GitHubModel): - """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - topic_id: Missing[int] = Field(default=UNSET) - relation_type: Missing[str] = Field(default=UNSET) - - -class TopicSearchResultItemPropAliasesItems(GitHubModel): - """TopicSearchResultItemPropAliasesItems""" - - topic_relation: Missing[TopicSearchResultItemPropAliasesItemsPropTopicRelation] = ( - Field(default=UNSET) - ) -class TopicSearchResultItemPropAliasesItemsPropTopicRelation(GitHubModel): - """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" +class CommitSearchResultItemPropParentsItems(GitHubModel): + """CommitSearchResultItemPropParentsItems""" - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - topic_id: Missing[int] = Field(default=UNSET) - relation_type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + sha: Missing[str] = Field(default=UNSET) -class SearchTopicsGetResponse200(GitHubModel): - """SearchTopicsGetResponse200""" +class SearchCommitsGetResponse200(GitHubModel): + """SearchCommitsGetResponse200""" total_count: int = Field() incomplete_results: bool = Field() - items: List[TopicSearchResultItem] = Field() + items: List[CommitSearchResultItem] = Field() -model_rebuild(TopicSearchResultItem) -model_rebuild(TopicSearchResultItemPropRelatedItems) -model_rebuild(TopicSearchResultItemPropRelatedItemsPropTopicRelation) -model_rebuild(TopicSearchResultItemPropAliasesItems) -model_rebuild(TopicSearchResultItemPropAliasesItemsPropTopicRelation) -model_rebuild(SearchTopicsGetResponse200) +model_rebuild(CommitSearchResultItem) +model_rebuild(CommitSearchResultItemPropParentsItems) +model_rebuild(SearchCommitsGetResponse200) __all__ = ( - "TopicSearchResultItem", - "TopicSearchResultItemPropRelatedItems", - "TopicSearchResultItemPropRelatedItemsPropTopicRelation", - "TopicSearchResultItemPropAliasesItems", - "TopicSearchResultItemPropAliasesItemsPropTopicRelation", - "SearchTopicsGetResponse200", + "CommitSearchResultItem", + "CommitSearchResultItemPropParentsItems", + "SearchCommitsGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0353.py b/githubkit/versions/v2022_11_28/models/group_0353.py index 739363e2d..83c1dd6a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0353.py +++ b/githubkit/versions/v2022_11_28/models/group_0353.py @@ -9,8 +9,8 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union from pydantic import Field @@ -18,65 +18,43 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0345 import SearchResultTextMatchesItems +from .group_0187 import GitUser +from .group_0188 import Verification -class UserSearchResultItem(GitHubModel): - """User Search Result Item +class CommitSearchResultItemPropCommit(GitHubModel): + """CommitSearchResultItemPropCommit""" - User Search Result Item - """ + author: CommitSearchResultItemPropCommitPropAuthor = Field() + committer: Union[None, GitUser] = Field() + comment_count: int = Field() + message: str = Field() + tree: CommitSearchResultItemPropCommitPropTree = Field() + url: str = Field() + verification: Missing[Verification] = Field(default=UNSET, title="Verification") + + +class CommitSearchResultItemPropCommitPropAuthor(GitHubModel): + """CommitSearchResultItemPropCommitPropAuthor""" + + name: str = Field() + email: str = Field() + date: datetime = Field() - login: str = Field() - id: int = Field() - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() + +class CommitSearchResultItemPropCommitPropTree(GitHubModel): + """CommitSearchResultItemPropCommitPropTree""" + + sha: str = Field() url: str = Field() - html_url: str = Field() - followers_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() - received_events_url: str = Field() - type: str = Field() - score: float = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - events_url: str = Field() - public_repos: Missing[int] = Field(default=UNSET) - public_gists: Missing[int] = Field(default=UNSET) - followers: Missing[int] = Field(default=UNSET) - following: Missing[int] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - bio: Missing[Union[str, None]] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - location: Missing[Union[str, None]] = Field(default=UNSET) - site_admin: bool = Field() - hireable: Missing[Union[bool, None]] = Field(default=UNSET) - text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( - default=UNSET, title="Search Result Text Matches" - ) - blog: Missing[Union[str, None]] = Field(default=UNSET) - company: Missing[Union[str, None]] = Field(default=UNSET) - suspended_at: Missing[Union[datetime, None]] = Field(default=UNSET) - - -class SearchUsersGetResponse200(GitHubModel): - """SearchUsersGetResponse200""" - - total_count: int = Field() - incomplete_results: bool = Field() - items: List[UserSearchResultItem] = Field() - - -model_rebuild(UserSearchResultItem) -model_rebuild(SearchUsersGetResponse200) + + +model_rebuild(CommitSearchResultItemPropCommit) +model_rebuild(CommitSearchResultItemPropCommitPropAuthor) +model_rebuild(CommitSearchResultItemPropCommitPropTree) __all__ = ( - "UserSearchResultItem", - "SearchUsersGetResponse200", + "CommitSearchResultItemPropCommit", + "CommitSearchResultItemPropCommitPropAuthor", + "CommitSearchResultItemPropCommitPropTree", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0354.py b/githubkit/versions/v2022_11_28/models/group_0354.py index 4c009363c..adefd85e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0354.py +++ b/githubkit/versions/v2022_11_28/models/group_0354.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,71 +18,113 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0037 import Milestone +from .group_0001 import SimpleUser +from .group_0017 import Repository +from .group_0006 import Integration +from .group_0038 import ReactionRollup +from .group_0350 import SearchResultTextMatchesItems -class PrivateUser(GitHubModel): - """Private User - Private User +class IssueSearchResultItem(GitHubModel): + """Issue Search Result Item + + Issue Search Result Item """ - login: str = Field() - id: int = Field() - node_id: str = Field() - avatar_url: str = Field() - gravatar_id: Union[str, None] = Field() url: str = Field() - html_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - organizations_url: str = Field() - repos_url: str = Field() + repository_url: str = Field() + labels_url: str = Field() + comments_url: str = Field() events_url: str = Field() - received_events_url: str = Field() - type: str = Field() - site_admin: bool = Field() - name: Union[str, None] = Field() - company: Union[str, None] = Field() - blog: Union[str, None] = Field() - location: Union[str, None] = Field() - email: Union[str, None] = Field() - notification_email: Missing[Union[str, None]] = Field(default=UNSET) - hireable: Union[bool, None] = Field() - bio: Union[str, None] = Field() - twitter_username: Missing[Union[str, None]] = Field(default=UNSET) - public_repos: int = Field() - public_gists: int = Field() - followers: int = Field() - following: int = Field() + html_url: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + title: str = Field() + locked: bool = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) + user: Union[None, SimpleUser] = Field() + labels: List[IssueSearchResultItemPropLabelsItems] = Field() + state: str = Field() + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[None, SimpleUser] = Field() + milestone: Union[None, Milestone] = Field() + comments: int = Field() created_at: datetime = Field() updated_at: datetime = Field() - private_gists: int = Field() - total_private_repos: int = Field() - owned_private_repos: int = Field() - disk_usage: int = Field() - collaborators: int = Field() - two_factor_authentication: bool = Field() - plan: Missing[PrivateUserPropPlan] = Field(default=UNSET) - suspended_at: Missing[Union[datetime, None]] = Field(default=UNSET) - business_plus: Missing[bool] = Field(default=UNSET) - ldap_dn: Missing[str] = Field(default=UNSET) - - -class PrivateUserPropPlan(GitHubModel): - """PrivateUserPropPlan""" - - collaborators: int = Field() - name: str = Field() - space: int = Field() - private_repos: int = Field() - - -model_rebuild(PrivateUser) -model_rebuild(PrivateUserPropPlan) + closed_at: Union[datetime, None] = Field() + text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + pull_request: Missing[IssueSearchResultItemPropPullRequest] = Field(default=UNSET) + body: Missing[str] = Field(default=UNSET) + score: float = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + draft: Missing[bool] = Field(default=UNSET) + repository: Missing[Repository] = Field( + default=UNSET, title="Repository", description="A repository on GitHub." + ) + body_html: Missing[str] = Field(default=UNSET) + body_text: Missing[str] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + performed_via_github_app: Missing[Union[None, Integration, None]] = Field( + default=UNSET + ) + reactions: Missing[ReactionRollup] = Field(default=UNSET, title="Reaction Rollup") + + +class IssueSearchResultItemPropLabelsItems(GitHubModel): + """IssueSearchResultItemPropLabelsItems""" + + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + color: Missing[str] = Field(default=UNSET) + default: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + + +class IssueSearchResultItemPropPullRequest(GitHubModel): + """IssueSearchResultItemPropPullRequest""" + + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + diff_url: Union[str, None] = Field() + html_url: Union[str, None] = Field() + patch_url: Union[str, None] = Field() + url: Union[str, None] = Field() + + +class SearchIssuesGetResponse200(GitHubModel): + """SearchIssuesGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: List[IssueSearchResultItem] = Field() + + +model_rebuild(IssueSearchResultItem) +model_rebuild(IssueSearchResultItemPropLabelsItems) +model_rebuild(IssueSearchResultItemPropPullRequest) +model_rebuild(SearchIssuesGetResponse200) __all__ = ( - "PrivateUser", - "PrivateUserPropPlan", + "IssueSearchResultItem", + "IssueSearchResultItemPropLabelsItems", + "IssueSearchResultItemPropPullRequest", + "SearchIssuesGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0355.py b/githubkit/versions/v2022_11_28/models/group_0355.py index f6bee6e63..2272de99f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0355.py +++ b/githubkit/versions/v2022_11_28/models/group_0355.py @@ -9,21 +9,48 @@ from __future__ import annotations +from typing import List, Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0350 import SearchResultTextMatchesItems + -class CodespacesUserPublicKey(GitHubModel): - """CodespacesUserPublicKey +class LabelSearchResultItem(GitHubModel): + """Label Search Result Item - The public key used for setting user Codespaces' Secrets. + Label Search Result Item """ - key_id: str = Field(description="The identifier for the key.") - key: str = Field(description="The Base64 encoded public key.") + id: int = Field() + node_id: str = Field() + url: str = Field() + name: str = Field() + color: str = Field() + default: bool = Field() + description: Union[str, None] = Field() + score: float = Field() + text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + + +class SearchLabelsGetResponse200(GitHubModel): + """SearchLabelsGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: List[LabelSearchResultItem] = Field() -model_rebuild(CodespacesUserPublicKey) +model_rebuild(LabelSearchResultItem) +model_rebuild(SearchLabelsGetResponse200) -__all__ = ("CodespacesUserPublicKey",) +__all__ = ( + "LabelSearchResultItem", + "SearchLabelsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0356.py b/githubkit/versions/v2022_11_28/models/group_0356.py index a59d9e60b..a164419be 100644 --- a/githubkit/versions/v2022_11_28/models/group_0356.py +++ b/githubkit/versions/v2022_11_28/models/group_0356.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union from pydantic import Field @@ -18,35 +18,139 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0016 import LicenseSimple +from .group_0350 import SearchResultTextMatchesItems -class CodespaceExportDetails(GitHubModel): - """Fetches information about an export of a codespace. - An export of a codespace. Also, latest export details for a codespace can be - fetched with id = latest +class RepoSearchResultItem(GitHubModel): + """Repo Search Result Item + + Repo Search Result Item """ - state: Missing[Union[str, None]] = Field( - default=UNSET, description="State of the latest export" - ) - completed_at: Missing[Union[datetime, None]] = Field( - default=UNSET, description="Completion time of the last export operation" - ) - branch: Missing[Union[str, None]] = Field( - default=UNSET, description="Name of the exported branch" + id: int = Field() + node_id: str = Field() + name: str = Field() + full_name: str = Field() + owner: Union[None, SimpleUser] = Field() + private: bool = Field() + html_url: str = Field() + description: Union[str, None] = Field() + fork: bool = Field() + url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + pushed_at: datetime = Field() + homepage: Union[str, None] = Field() + size: int = Field() + stargazers_count: int = Field() + watchers_count: int = Field() + language: Union[str, None] = Field() + forks_count: int = Field() + open_issues_count: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + default_branch: str = Field() + score: float = Field() + forks_url: str = Field() + keys_url: str = Field() + collaborators_url: str = Field() + teams_url: str = Field() + hooks_url: str = Field() + issue_events_url: str = Field() + events_url: str = Field() + assignees_url: str = Field() + branches_url: str = Field() + tags_url: str = Field() + blobs_url: str = Field() + git_tags_url: str = Field() + git_refs_url: str = Field() + trees_url: str = Field() + statuses_url: str = Field() + languages_url: str = Field() + stargazers_url: str = Field() + contributors_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + commits_url: str = Field() + git_commits_url: str = Field() + comments_url: str = Field() + issue_comment_url: str = Field() + contents_url: str = Field() + compare_url: str = Field() + merges_url: str = Field() + archive_url: str = Field() + downloads_url: str = Field() + issues_url: str = Field() + pulls_url: str = Field() + milestones_url: str = Field() + notifications_url: str = Field() + labels_url: str = Field() + releases_url: str = Field() + deployments_url: str = Field() + git_url: str = Field() + ssh_url: str = Field() + clone_url: str = Field() + svn_url: str = Field() + forks: int = Field() + open_issues: int = Field() + watchers: int = Field() + topics: Missing[List[str]] = Field(default=UNSET) + mirror_url: Union[str, None] = Field() + has_issues: bool = Field() + has_projects: bool = Field() + has_pages: bool = Field() + has_wiki: bool = Field() + has_downloads: bool = Field() + has_discussions: Missing[bool] = Field(default=UNSET) + archived: bool = Field() + disabled: bool = Field( + description="Returns whether or not this repository disabled." ) - sha: Missing[Union[str, None]] = Field( - default=UNSET, description="Git commit SHA of the exported branch" + visibility: Missing[str] = Field( + default=UNSET, + description="The repository visibility: public, private, or internal.", ) - id: Missing[str] = Field(default=UNSET, description="Id for the export details") - export_url: Missing[str] = Field( - default=UNSET, description="Url for fetching export details" - ) - html_url: Missing[Union[str, None]] = Field( - default=UNSET, description="Web url for the exported branch" + license_: Union[None, LicenseSimple] = Field(alias="license") + permissions: Missing[RepoSearchResultItemPropPermissions] = Field(default=UNSET) + text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" ) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_merge_commit: Missing[bool] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field(default=UNSET) + allow_rebase_merge: Missing[bool] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + allow_forking: Missing[bool] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + web_commit_signoff_required: Missing[bool] = Field(default=UNSET) + + +class RepoSearchResultItemPropPermissions(GitHubModel): + """RepoSearchResultItemPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + + +class SearchRepositoriesGetResponse200(GitHubModel): + """SearchRepositoriesGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: List[RepoSearchResultItem] = Field() -model_rebuild(CodespaceExportDetails) +model_rebuild(RepoSearchResultItem) +model_rebuild(RepoSearchResultItemPropPermissions) +model_rebuild(SearchRepositoriesGetResponse200) -__all__ = ("CodespaceExportDetails",) +__all__ = ( + "RepoSearchResultItem", + "RepoSearchResultItemPropPermissions", + "SearchRepositoriesGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0357.py b/githubkit/versions/v2022_11_28/models/group_0357.py index f75a0a0c1..d72ae867f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0357.py +++ b/githubkit/versions/v2022_11_28/models/group_0357.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from pydantic import Field @@ -18,155 +18,93 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0096 import FullRepository -from .group_0071 import CodespaceMachine +from .group_0350 import SearchResultTextMatchesItems -class CodespaceWithFullRepository(GitHubModel): - """Codespace +class TopicSearchResultItem(GitHubModel): + """Topic Search Result Item - A codespace. + Topic Search Result Item """ - id: int = Field() - name: str = Field(description="Automatically generated name of this codespace.") - display_name: Missing[Union[str, None]] = Field( - default=UNSET, description="Display name for this codespace." - ) - environment_id: Union[str, None] = Field( - description="UUID identifying this codespace's environment." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - billable_owner: SimpleUser = Field( - title="Simple User", description="A GitHub user." - ) - repository: FullRepository = Field( - title="Full Repository", description="Full Repository" - ) - machine: Union[None, CodespaceMachine] = Field() - devcontainer_path: Missing[Union[str, None]] = Field( - default=UNSET, - description="Path to devcontainer.json from repo root used to create Codespace.", - ) - prebuild: Union[bool, None] = Field( - description="Whether the codespace was created from a prebuild." - ) + name: str = Field() + display_name: Union[str, None] = Field() + short_description: Union[str, None] = Field() + description: Union[str, None] = Field() + created_by: Union[str, None] = Field() + released: Union[str, None] = Field() created_at: datetime = Field() updated_at: datetime = Field() - last_used_at: datetime = Field( - description="Last known time this codespace was started." - ) - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] = Field(description="State of this codespace.") - url: str = Field(description="API URL for this codespace.") - git_status: CodespaceWithFullRepositoryPropGitStatus = Field( - description="Details about the codespace's git repository." - ) - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( - description="The initally assigned location of a new codespace." + featured: bool = Field() + curated: bool = Field() + score: float = Field() + repository_count: Missing[Union[int, None]] = Field(default=UNSET) + logo_url: Missing[Union[str, None]] = Field(default=UNSET) + text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" ) - idle_timeout_minutes: Union[int, None] = Field( - description="The number of minutes of inactivity after which this codespace will be automatically stopped." + related: Missing[Union[List[TopicSearchResultItemPropRelatedItems], None]] = Field( + default=UNSET ) - web_url: str = Field(description="URL to access this codespace on the web.") - machines_url: str = Field( - description="API URL to access available alternate machine types for this codespace." + aliases: Missing[Union[List[TopicSearchResultItemPropAliasesItems], None]] = Field( + default=UNSET ) - start_url: str = Field(description="API URL to start this codespace.") - stop_url: str = Field(description="API URL to stop this codespace.") - publish_url: Missing[Union[str, None]] = Field( - default=UNSET, - description="API URL to publish this codespace to a new repository.", - ) - pulls_url: Union[str, None] = Field( - description="API URL for the Pull Request associated with this codespace, if any." - ) - recent_folders: List[str] = Field() - runtime_constraints: Missing[CodespaceWithFullRepositoryPropRuntimeConstraints] = ( + + +class TopicSearchResultItemPropRelatedItems(GitHubModel): + """TopicSearchResultItemPropRelatedItems""" + + topic_relation: Missing[TopicSearchResultItemPropRelatedItemsPropTopicRelation] = ( Field(default=UNSET) ) - pending_operation: Missing[Union[bool, None]] = Field( - default=UNSET, - description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", - ) - pending_operation_disabled_reason: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace is disabled by a pending operation", - ) - idle_timeout_notice: Missing[Union[str, None]] = Field( - default=UNSET, - description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", - ) - retention_period_minutes: Missing[Union[int, None]] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) - retention_expires_at: Missing[Union[datetime, None]] = Field( - default=UNSET, - description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', - ) -class CodespaceWithFullRepositoryPropGitStatus(GitHubModel): - """CodespaceWithFullRepositoryPropGitStatus +class TopicSearchResultItemPropRelatedItemsPropTopicRelation(GitHubModel): + """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" - Details about the codespace's git repository. - """ + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + topic_id: Missing[int] = Field(default=UNSET) + relation_type: Missing[str] = Field(default=UNSET) - ahead: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is ahead of the remote.", - ) - behind: Missing[int] = Field( - default=UNSET, - description="The number of commits the local repository is behind the remote.", - ) - has_unpushed_changes: Missing[bool] = Field( - default=UNSET, description="Whether the local repository has unpushed changes." - ) - has_uncommitted_changes: Missing[bool] = Field( - default=UNSET, - description="Whether the local repository has uncommitted changes.", - ) - ref: Missing[str] = Field( - default=UNSET, - description="The current branch (or SHA if in detached HEAD state) of the local repository.", + +class TopicSearchResultItemPropAliasesItems(GitHubModel): + """TopicSearchResultItemPropAliasesItems""" + + topic_relation: Missing[TopicSearchResultItemPropAliasesItemsPropTopicRelation] = ( + Field(default=UNSET) ) -class CodespaceWithFullRepositoryPropRuntimeConstraints(GitHubModel): - """CodespaceWithFullRepositoryPropRuntimeConstraints""" +class TopicSearchResultItemPropAliasesItemsPropTopicRelation(GitHubModel): + """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" - allowed_port_privacy_settings: Missing[Union[List[str], None]] = Field( - default=UNSET, - description="The privacy settings a user can select from when forwarding a port.", - ) + id: Missing[int] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + topic_id: Missing[int] = Field(default=UNSET) + relation_type: Missing[str] = Field(default=UNSET) + + +class SearchTopicsGetResponse200(GitHubModel): + """SearchTopicsGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: List[TopicSearchResultItem] = Field() -model_rebuild(CodespaceWithFullRepository) -model_rebuild(CodespaceWithFullRepositoryPropGitStatus) -model_rebuild(CodespaceWithFullRepositoryPropRuntimeConstraints) +model_rebuild(TopicSearchResultItem) +model_rebuild(TopicSearchResultItemPropRelatedItems) +model_rebuild(TopicSearchResultItemPropRelatedItemsPropTopicRelation) +model_rebuild(TopicSearchResultItemPropAliasesItems) +model_rebuild(TopicSearchResultItemPropAliasesItemsPropTopicRelation) +model_rebuild(SearchTopicsGetResponse200) __all__ = ( - "CodespaceWithFullRepository", - "CodespaceWithFullRepositoryPropGitStatus", - "CodespaceWithFullRepositoryPropRuntimeConstraints", + "TopicSearchResultItem", + "TopicSearchResultItemPropRelatedItems", + "TopicSearchResultItemPropRelatedItemsPropTopicRelation", + "TopicSearchResultItemPropAliasesItems", + "TopicSearchResultItemPropAliasesItemsPropTopicRelation", + "SearchTopicsGetResponse200", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0358.py b/githubkit/versions/v2022_11_28/models/group_0358.py index 1fb1f3941..6002c8016 100644 --- a/githubkit/versions/v2022_11_28/models/group_0358.py +++ b/githubkit/versions/v2022_11_28/models/group_0358.py @@ -9,25 +9,74 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0350 import SearchResultTextMatchesItems -class Email(GitHubModel): - """Email - Email +class UserSearchResultItem(GitHubModel): + """User Search Result Item + + User Search Result Item """ - email: str = Field() - primary: bool = Field() - verified: bool = Field() - visibility: Union[str, None] = Field() + login: str = Field() + id: int = Field() + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + received_events_url: str = Field() + type: str = Field() + score: float = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + events_url: str = Field() + public_repos: Missing[int] = Field(default=UNSET) + public_gists: Missing[int] = Field(default=UNSET) + followers: Missing[int] = Field(default=UNSET) + following: Missing[int] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + bio: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + location: Missing[Union[str, None]] = Field(default=UNSET) + site_admin: bool = Field() + hireable: Missing[Union[bool, None]] = Field(default=UNSET) + text_matches: Missing[List[SearchResultTextMatchesItems]] = Field( + default=UNSET, title="Search Result Text Matches" + ) + blog: Missing[Union[str, None]] = Field(default=UNSET) + company: Missing[Union[str, None]] = Field(default=UNSET) + suspended_at: Missing[Union[datetime, None]] = Field(default=UNSET) + + +class SearchUsersGetResponse200(GitHubModel): + """SearchUsersGetResponse200""" + + total_count: int = Field() + incomplete_results: bool = Field() + items: List[UserSearchResultItem] = Field() -model_rebuild(Email) +model_rebuild(UserSearchResultItem) +model_rebuild(SearchUsersGetResponse200) -__all__ = ("Email",) +__all__ = ( + "UserSearchResultItem", + "SearchUsersGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0359.py b/githubkit/versions/v2022_11_28/models/group_0359.py index ed85687e5..4c009363c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0359.py +++ b/githubkit/versions/v2022_11_28/models/group_0359.py @@ -9,8 +9,8 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import Any, List, Union from pydantic import Field @@ -19,70 +19,70 @@ from githubkit.compat import GitHubModel, model_rebuild -class GpgKey(GitHubModel): - """GPG Key +class PrivateUser(GitHubModel): + """Private User - A unique encryption key + Private User """ + login: str = Field() id: int = Field() - name: Missing[Union[str, None]] = Field(default=UNSET) - primary_key_id: Union[int, None] = Field() - key_id: str = Field() - public_key: str = Field() - emails: List[GpgKeyPropEmailsItems] = Field() - subkeys: List[GpgKeyPropSubkeysItems] = Field() - can_sign: bool = Field() - can_encrypt_comms: bool = Field() - can_encrypt_storage: bool = Field() - can_certify: bool = Field() + node_id: str = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() + url: str = Field() + html_url: str = Field() + followers_url: str = Field() + following_url: str = Field() + gists_url: str = Field() + starred_url: str = Field() + subscriptions_url: str = Field() + organizations_url: str = Field() + repos_url: str = Field() + events_url: str = Field() + received_events_url: str = Field() + type: str = Field() + site_admin: bool = Field() + name: Union[str, None] = Field() + company: Union[str, None] = Field() + blog: Union[str, None] = Field() + location: Union[str, None] = Field() + email: Union[str, None] = Field() + notification_email: Missing[Union[str, None]] = Field(default=UNSET) + hireable: Union[bool, None] = Field() + bio: Union[str, None] = Field() + twitter_username: Missing[Union[str, None]] = Field(default=UNSET) + public_repos: int = Field() + public_gists: int = Field() + followers: int = Field() + following: int = Field() created_at: datetime = Field() - expires_at: Union[datetime, None] = Field() - revoked: bool = Field() - raw_key: Union[str, None] = Field() + updated_at: datetime = Field() + private_gists: int = Field() + total_private_repos: int = Field() + owned_private_repos: int = Field() + disk_usage: int = Field() + collaborators: int = Field() + two_factor_authentication: bool = Field() + plan: Missing[PrivateUserPropPlan] = Field(default=UNSET) + suspended_at: Missing[Union[datetime, None]] = Field(default=UNSET) + business_plus: Missing[bool] = Field(default=UNSET) + ldap_dn: Missing[str] = Field(default=UNSET) -class GpgKeyPropEmailsItems(GitHubModel): - """GpgKeyPropEmailsItems""" +class PrivateUserPropPlan(GitHubModel): + """PrivateUserPropPlan""" - email: Missing[str] = Field(default=UNSET) - verified: Missing[bool] = Field(default=UNSET) + collaborators: int = Field() + name: str = Field() + space: int = Field() + private_repos: int = Field() -class GpgKeyPropSubkeysItems(GitHubModel): - """GpgKeyPropSubkeysItems""" - - id: Missing[int] = Field(default=UNSET) - primary_key_id: Missing[int] = Field(default=UNSET) - key_id: Missing[str] = Field(default=UNSET) - public_key: Missing[str] = Field(default=UNSET) - emails: Missing[List[GpgKeyPropSubkeysItemsPropEmailsItems]] = Field(default=UNSET) - subkeys: Missing[List[Any]] = Field(default=UNSET) - can_sign: Missing[bool] = Field(default=UNSET) - can_encrypt_comms: Missing[bool] = Field(default=UNSET) - can_encrypt_storage: Missing[bool] = Field(default=UNSET) - can_certify: Missing[bool] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - expires_at: Missing[Union[str, None]] = Field(default=UNSET) - raw_key: Missing[Union[str, None]] = Field(default=UNSET) - revoked: Missing[bool] = Field(default=UNSET) - - -class GpgKeyPropSubkeysItemsPropEmailsItems(GitHubModel): - """GpgKeyPropSubkeysItemsPropEmailsItems""" - - email: Missing[str] = Field(default=UNSET) - verified: Missing[bool] = Field(default=UNSET) - - -model_rebuild(GpgKey) -model_rebuild(GpgKeyPropEmailsItems) -model_rebuild(GpgKeyPropSubkeysItems) -model_rebuild(GpgKeyPropSubkeysItemsPropEmailsItems) +model_rebuild(PrivateUser) +model_rebuild(PrivateUserPropPlan) __all__ = ( - "GpgKey", - "GpgKeyPropEmailsItems", - "GpgKeyPropSubkeysItems", - "GpgKeyPropSubkeysItemsPropEmailsItems", + "PrivateUser", + "PrivateUserPropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0360.py b/githubkit/versions/v2022_11_28/models/group_0360.py index f75f4e54d..f6bee6e63 100644 --- a/githubkit/versions/v2022_11_28/models/group_0360.py +++ b/githubkit/versions/v2022_11_28/models/group_0360.py @@ -9,28 +9,21 @@ from __future__ import annotations -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class Key(GitHubModel): - """Key +class CodespacesUserPublicKey(GitHubModel): + """CodespacesUserPublicKey - Key + The public key used for setting user Codespaces' Secrets. """ - key: str = Field() - id: int = Field() - url: str = Field() - title: str = Field() - created_at: datetime = Field() - verified: bool = Field() - read_only: bool = Field() + key_id: str = Field(description="The identifier for the key.") + key: str = Field(description="The Base64 encoded public key.") -model_rebuild(Key) +model_rebuild(CodespacesUserPublicKey) -__all__ = ("Key",) +__all__ = ("CodespacesUserPublicKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0361.py b/githubkit/versions/v2022_11_28/models/group_0361.py index 04239170a..a59d9e60b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0361.py +++ b/githubkit/versions/v2022_11_28/models/group_0361.py @@ -18,43 +18,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0046 import MarketplaceListingPlan +class CodespaceExportDetails(GitHubModel): + """Fetches information about an export of a codespace. -class UserMarketplacePurchase(GitHubModel): - """User Marketplace Purchase - - User Marketplace Purchase + An export of a codespace. Also, latest export details for a codespace can be + fetched with id = latest """ - billing_cycle: str = Field() - next_billing_date: Union[datetime, None] = Field() - unit_count: Union[int, None] = Field() - on_free_trial: bool = Field() - free_trial_ends_on: Union[datetime, None] = Field() - updated_at: Union[datetime, None] = Field() - account: MarketplaceAccount = Field(title="Marketplace Account") - plan: MarketplaceListingPlan = Field( - title="Marketplace Listing Plan", description="Marketplace Listing Plan" + state: Missing[Union[str, None]] = Field( + default=UNSET, description="State of the latest export" + ) + completed_at: Missing[Union[datetime, None]] = Field( + default=UNSET, description="Completion time of the last export operation" + ) + branch: Missing[Union[str, None]] = Field( + default=UNSET, description="Name of the exported branch" + ) + sha: Missing[Union[str, None]] = Field( + default=UNSET, description="Git commit SHA of the exported branch" + ) + id: Missing[str] = Field(default=UNSET, description="Id for the export details") + export_url: Missing[str] = Field( + default=UNSET, description="Url for fetching export details" + ) + html_url: Missing[Union[str, None]] = Field( + default=UNSET, description="Web url for the exported branch" ) -class MarketplaceAccount(GitHubModel): - """Marketplace Account""" - - url: str = Field() - id: int = Field() - type: str = Field() - node_id: Missing[str] = Field(default=UNSET) - login: str = Field() - email: Missing[Union[str, None]] = Field(default=UNSET) - organization_billing_email: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(UserMarketplacePurchase) -model_rebuild(MarketplaceAccount) +model_rebuild(CodespaceExportDetails) -__all__ = ( - "UserMarketplacePurchase", - "MarketplaceAccount", -) +__all__ = ("CodespaceExportDetails",) diff --git a/githubkit/versions/v2022_11_28/models/group_0362.py b/githubkit/versions/v2022_11_28/models/group_0362.py index cae25bb86..3d350ab64 100644 --- a/githubkit/versions/v2022_11_28/models/group_0362.py +++ b/githubkit/versions/v2022_11_28/models/group_0362.py @@ -9,21 +9,164 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0101 import FullRepository +from .group_0077 import CodespaceMachine + + +class CodespaceWithFullRepository(GitHubModel): + """Codespace + + A codespace. + """ + + id: int = Field() + name: str = Field(description="Automatically generated name of this codespace.") + display_name: Missing[Union[str, None]] = Field( + default=UNSET, description="Display name for this codespace." + ) + environment_id: Union[str, None] = Field( + description="UUID identifying this codespace's environment." + ) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + billable_owner: SimpleUser = Field( + title="Simple User", description="A GitHub user." + ) + repository: FullRepository = Field( + title="Full Repository", description="Full Repository" + ) + machine: Union[None, CodespaceMachine] = Field() + devcontainer_path: Missing[Union[str, None]] = Field( + default=UNSET, + description="Path to devcontainer.json from repo root used to create Codespace.", + ) + prebuild: Union[bool, None] = Field( + description="Whether the codespace was created from a prebuild." + ) + created_at: datetime = Field() + updated_at: datetime = Field() + last_used_at: datetime = Field( + description="Last known time this codespace was started." + ) + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] = Field(description="State of this codespace.") + url: str = Field(description="API URL for this codespace.") + git_status: CodespaceWithFullRepositoryPropGitStatus = Field( + description="Details about the codespace's git repository." + ) + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] = Field( + description="The initally assigned location of a new codespace." + ) + idle_timeout_minutes: Union[int, None] = Field( + description="The number of minutes of inactivity after which this codespace will be automatically stopped." + ) + web_url: str = Field(description="URL to access this codespace on the web.") + machines_url: str = Field( + description="API URL to access available alternate machine types for this codespace." + ) + start_url: str = Field(description="API URL to start this codespace.") + stop_url: str = Field(description="API URL to stop this codespace.") + publish_url: Missing[Union[str, None]] = Field( + default=UNSET, + description="API URL to publish this codespace to a new repository.", + ) + pulls_url: Union[str, None] = Field( + description="API URL for the Pull Request associated with this codespace, if any." + ) + recent_folders: List[str] = Field() + runtime_constraints: Missing[CodespaceWithFullRepositoryPropRuntimeConstraints] = ( + Field(default=UNSET) + ) + pending_operation: Missing[Union[bool, None]] = Field( + default=UNSET, + description="Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.", + ) + pending_operation_disabled_reason: Missing[Union[str, None]] = Field( + default=UNSET, + description="Text to show user when codespace is disabled by a pending operation", + ) + idle_timeout_notice: Missing[Union[str, None]] = Field( + default=UNSET, + description="Text to show user when codespace idle timeout minutes has been overriden by an organization policy", + ) + retention_period_minutes: Missing[Union[int, None]] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + ) + retention_expires_at: Missing[Union[datetime, None]] = Field( + default=UNSET, + description='When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"', + ) + -class SocialAccount(GitHubModel): - """Social account +class CodespaceWithFullRepositoryPropGitStatus(GitHubModel): + """CodespaceWithFullRepositoryPropGitStatus - Social media account + Details about the codespace's git repository. """ - provider: str = Field() - url: str = Field() + ahead: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is ahead of the remote.", + ) + behind: Missing[int] = Field( + default=UNSET, + description="The number of commits the local repository is behind the remote.", + ) + has_unpushed_changes: Missing[bool] = Field( + default=UNSET, description="Whether the local repository has unpushed changes." + ) + has_uncommitted_changes: Missing[bool] = Field( + default=UNSET, + description="Whether the local repository has uncommitted changes.", + ) + ref: Missing[str] = Field( + default=UNSET, + description="The current branch (or SHA if in detached HEAD state) of the local repository.", + ) + + +class CodespaceWithFullRepositoryPropRuntimeConstraints(GitHubModel): + """CodespaceWithFullRepositoryPropRuntimeConstraints""" + + allowed_port_privacy_settings: Missing[Union[List[str], None]] = Field( + default=UNSET, + description="The privacy settings a user can select from when forwarding a port.", + ) -model_rebuild(SocialAccount) +model_rebuild(CodespaceWithFullRepository) +model_rebuild(CodespaceWithFullRepositoryPropGitStatus) +model_rebuild(CodespaceWithFullRepositoryPropRuntimeConstraints) -__all__ = ("SocialAccount",) +__all__ = ( + "CodespaceWithFullRepository", + "CodespaceWithFullRepositoryPropGitStatus", + "CodespaceWithFullRepositoryPropRuntimeConstraints", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0363.py b/githubkit/versions/v2022_11_28/models/group_0363.py index e6313b836..1fb1f3941 100644 --- a/githubkit/versions/v2022_11_28/models/group_0363.py +++ b/githubkit/versions/v2022_11_28/models/group_0363.py @@ -9,25 +9,25 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class SshSigningKey(GitHubModel): - """SSH Signing Key +class Email(GitHubModel): + """Email - A public SSH key used to sign Git commits + Email """ - key: str = Field() - id: int = Field() - title: str = Field() - created_at: datetime = Field() + email: str = Field() + primary: bool = Field() + verified: bool = Field() + visibility: Union[str, None] = Field() -model_rebuild(SshSigningKey) +model_rebuild(Email) -__all__ = ("SshSigningKey",) +__all__ = ("Email",) diff --git a/githubkit/versions/v2022_11_28/models/group_0364.py b/githubkit/versions/v2022_11_28/models/group_0364.py index d048a0350..ed85687e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0364.py +++ b/githubkit/versions/v2022_11_28/models/group_0364.py @@ -10,24 +10,79 @@ from __future__ import annotations from datetime import datetime +from typing import Any, List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0017 import Repository +class GpgKey(GitHubModel): + """GPG Key -class StarredRepository(GitHubModel): - """Starred Repository - - Starred Repository + A unique encryption key """ - starred_at: datetime = Field() - repo: Repository = Field(title="Repository", description="A repository on GitHub.") + id: int = Field() + name: Missing[Union[str, None]] = Field(default=UNSET) + primary_key_id: Union[int, None] = Field() + key_id: str = Field() + public_key: str = Field() + emails: List[GpgKeyPropEmailsItems] = Field() + subkeys: List[GpgKeyPropSubkeysItems] = Field() + can_sign: bool = Field() + can_encrypt_comms: bool = Field() + can_encrypt_storage: bool = Field() + can_certify: bool = Field() + created_at: datetime = Field() + expires_at: Union[datetime, None] = Field() + revoked: bool = Field() + raw_key: Union[str, None] = Field() + + +class GpgKeyPropEmailsItems(GitHubModel): + """GpgKeyPropEmailsItems""" + + email: Missing[str] = Field(default=UNSET) + verified: Missing[bool] = Field(default=UNSET) + + +class GpgKeyPropSubkeysItems(GitHubModel): + """GpgKeyPropSubkeysItems""" + + id: Missing[int] = Field(default=UNSET) + primary_key_id: Missing[int] = Field(default=UNSET) + key_id: Missing[str] = Field(default=UNSET) + public_key: Missing[str] = Field(default=UNSET) + emails: Missing[List[GpgKeyPropSubkeysItemsPropEmailsItems]] = Field(default=UNSET) + subkeys: Missing[List[Any]] = Field(default=UNSET) + can_sign: Missing[bool] = Field(default=UNSET) + can_encrypt_comms: Missing[bool] = Field(default=UNSET) + can_encrypt_storage: Missing[bool] = Field(default=UNSET) + can_certify: Missing[bool] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + expires_at: Missing[Union[str, None]] = Field(default=UNSET) + raw_key: Missing[Union[str, None]] = Field(default=UNSET) + revoked: Missing[bool] = Field(default=UNSET) + + +class GpgKeyPropSubkeysItemsPropEmailsItems(GitHubModel): + """GpgKeyPropSubkeysItemsPropEmailsItems""" + + email: Missing[str] = Field(default=UNSET) + verified: Missing[bool] = Field(default=UNSET) -model_rebuild(StarredRepository) +model_rebuild(GpgKey) +model_rebuild(GpgKeyPropEmailsItems) +model_rebuild(GpgKeyPropSubkeysItems) +model_rebuild(GpgKeyPropSubkeysItemsPropEmailsItems) -__all__ = ("StarredRepository",) +__all__ = ( + "GpgKey", + "GpgKeyPropEmailsItems", + "GpgKeyPropSubkeysItems", + "GpgKeyPropSubkeysItemsPropEmailsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0365.py b/githubkit/versions/v2022_11_28/models/group_0365.py index 7d0eefaae..f75f4e54d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0365.py +++ b/githubkit/versions/v2022_11_28/models/group_0365.py @@ -9,33 +9,28 @@ from __future__ import annotations -from typing import List +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class Hovercard(GitHubModel): - """Hovercard +class Key(GitHubModel): + """Key - Hovercard + Key """ - contexts: List[HovercardPropContextsItems] = Field() + key: str = Field() + id: int = Field() + url: str = Field() + title: str = Field() + created_at: datetime = Field() + verified: bool = Field() + read_only: bool = Field() -class HovercardPropContextsItems(GitHubModel): - """HovercardPropContextsItems""" +model_rebuild(Key) - message: str = Field() - octicon: str = Field() - - -model_rebuild(Hovercard) -model_rebuild(HovercardPropContextsItems) - -__all__ = ( - "Hovercard", - "HovercardPropContextsItems", -) +__all__ = ("Key",) diff --git a/githubkit/versions/v2022_11_28/models/group_0366.py b/githubkit/versions/v2022_11_28/models/group_0366.py index fd0411072..3ccdf026c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0366.py +++ b/githubkit/versions/v2022_11_28/models/group_0366.py @@ -9,21 +9,52 @@ from __future__ import annotations +from typing import Union +from datetime import datetime + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0050 import MarketplaceListingPlan + -class KeySimple(GitHubModel): - """Key Simple +class UserMarketplacePurchase(GitHubModel): + """User Marketplace Purchase - Key Simple + User Marketplace Purchase """ + billing_cycle: str = Field() + next_billing_date: Union[datetime, None] = Field() + unit_count: Union[int, None] = Field() + on_free_trial: bool = Field() + free_trial_ends_on: Union[datetime, None] = Field() + updated_at: Union[datetime, None] = Field() + account: MarketplaceAccount = Field(title="Marketplace Account") + plan: MarketplaceListingPlan = Field( + title="Marketplace Listing Plan", description="Marketplace Listing Plan" + ) + + +class MarketplaceAccount(GitHubModel): + """Marketplace Account""" + + url: str = Field() id: int = Field() - key: str = Field() + type: str = Field() + node_id: Missing[str] = Field(default=UNSET) + login: str = Field() + email: Missing[Union[str, None]] = Field(default=UNSET) + organization_billing_email: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(KeySimple) +model_rebuild(UserMarketplacePurchase) +model_rebuild(MarketplaceAccount) -__all__ = ("KeySimple",) +__all__ = ( + "UserMarketplacePurchase", + "MarketplaceAccount", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0367.py b/githubkit/versions/v2022_11_28/models/group_0367.py index 934bafe2d..cae25bb86 100644 --- a/githubkit/versions/v2022_11_28/models/group_0367.py +++ b/githubkit/versions/v2022_11_28/models/group_0367.py @@ -9,43 +9,21 @@ from __future__ import annotations -from typing import Union -from datetime import datetime - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class EnterpriseWebhooks(GitHubModel): - """Enterprise +class SocialAccount(GitHubModel): + """Social account - 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)." + Social media account """ - 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",) + provider: str = Field() + url: str = Field() + + +model_rebuild(SocialAccount) + +__all__ = ("SocialAccount",) diff --git a/githubkit/versions/v2022_11_28/models/group_0368.py b/githubkit/versions/v2022_11_28/models/group_0368.py index 8f356bd76..e6313b836 100644 --- a/githubkit/versions/v2022_11_28/models/group_0368.py +++ b/githubkit/versions/v2022_11_28/models/group_0368.py @@ -9,25 +9,25 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class SimpleInstallation(GitHubModel): - """Simple Installation +class SshSigningKey(GitHubModel): + """SSH Signing Key - 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)." + A public SSH key used to sign Git commits """ - id: int = Field(description="The ID of the installation.") - node_id: str = Field(description="The global node ID of the installation.") + key: str = Field() + id: int = Field() + title: str = Field() + created_at: datetime = Field() -model_rebuild(SimpleInstallation) +model_rebuild(SshSigningKey) -__all__ = ("SimpleInstallation",) +__all__ = ("SshSigningKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0369.py b/githubkit/versions/v2022_11_28/models/group_0369.py index 29be5dd8a..d048a0350 100644 --- a/githubkit/versions/v2022_11_28/models/group_0369.py +++ b/githubkit/versions/v2022_11_28/models/group_0369.py @@ -9,36 +9,25 @@ from __future__ import annotations -from typing import Union +from datetime import datetime from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0017 import Repository -class OrganizationSimpleWebhooks(GitHubModel): - """Organization Simple - 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. +class StarredRepository(GitHubModel): + """Starred Repository + + Starred Repository """ - 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() + starred_at: datetime = Field() + repo: Repository = Field(title="Repository", description="A repository on GitHub.") -model_rebuild(OrganizationSimpleWebhooks) +model_rebuild(StarredRepository) -__all__ = ("OrganizationSimpleWebhooks",) +__all__ = ("StarredRepository",) diff --git a/githubkit/versions/v2022_11_28/models/group_0370.py b/githubkit/versions/v2022_11_28/models/group_0370.py index 548b0540c..7d0eefaae 100644 --- a/githubkit/versions/v2022_11_28/models/group_0370.py +++ b/githubkit/versions/v2022_11_28/models/group_0370.py @@ -9,372 +9,33 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0016 import LicenseSimple +class Hovercard(GitHubModel): + """Hovercard -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 has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - 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. + Hovercard """ - -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) + contexts: List[HovercardPropContextsItems] = Field() -class RepositoryWebhooksPropTemplateRepositoryPropPermissions(GitHubModel): - """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" +class HovercardPropContextsItems(GitHubModel): + """HovercardPropContextsItems""" - 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) + message: str = Field() + octicon: str = Field() -model_rebuild(RepositoryWebhooks) -model_rebuild(RepositoryWebhooksPropPermissions) -model_rebuild(RepositoryWebhooksPropCustomProperties) -model_rebuild(RepositoryWebhooksPropTemplateRepository) -model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropOwner) -model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropPermissions) +model_rebuild(Hovercard) +model_rebuild(HovercardPropContextsItems) __all__ = ( - "RepositoryWebhooks", - "RepositoryWebhooksPropPermissions", - "RepositoryWebhooksPropCustomProperties", - "RepositoryWebhooksPropTemplateRepository", - "RepositoryWebhooksPropTemplateRepositoryPropOwner", - "RepositoryWebhooksPropTemplateRepositoryPropPermissions", + "Hovercard", + "HovercardPropContextsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0371.py b/githubkit/versions/v2022_11_28/models/group_0371.py index 0b0e642ec..fd0411072 100644 --- a/githubkit/versions/v2022_11_28/models/group_0371.py +++ b/githubkit/versions/v2022_11_28/models/group_0371.py @@ -9,45 +9,21 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class SimpleUserWebhooks(GitHubModel): - """Simple User +class KeySimple(GitHubModel): + """Key Simple - The GitHub user that triggered the event. This property is included in every - webhook payload. + Key Simple """ - 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) - - -model_rebuild(SimpleUserWebhooks) - -__all__ = ("SimpleUserWebhooks",) + key: str = Field() + + +model_rebuild(KeySimple) + +__all__ = ("KeySimple",) diff --git a/githubkit/versions/v2022_11_28/models/group_0372.py b/githubkit/versions/v2022_11_28/models/group_0372.py index 8ef945d0d..934bafe2d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0372.py +++ b/githubkit/versions/v2022_11_28/models/group_0372.py @@ -9,8 +9,8 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Literal from pydantic import Field @@ -19,64 +19,33 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksRule(GitHubModel): - """branch protection rule +class EnterpriseWebhooks(GitHubModel): + """Enterprise - 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. + 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)." """ - admin_enforced: bool = Field() - allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() + description: Missing[Union[str, None]] = Field( + default=UNSET, description="A short description of the enterprise." ) - allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] = ( - Field() + html_url: str = Field() + website_url: Missing[Union[str, None]] = Field( + default=UNSET, description="The enterprise's website URL." ) - 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() - 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() + 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(WebhooksRule) +model_rebuild(EnterpriseWebhooks) -__all__ = ("WebhooksRule",) +__all__ = ("EnterpriseWebhooks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0373.py b/githubkit/versions/v2022_11_28/models/group_0373.py index aa4e214c2..8f356bd76 100644 --- a/githubkit/versions/v2022_11_28/models/group_0373.py +++ b/githubkit/versions/v2022_11_28/models/group_0373.py @@ -9,67 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0006 import Integration -from .group_0051 import MinimalRepository -from .group_0164 import PullRequestMinimal - -class SimpleCheckSuite(GitHubModel): - """SimpleCheckSuite +class SimpleInstallation(GitHubModel): + """Simple Installation - A suite of checks performed on the code of a given code change + The GitHub App installation. Webhook payloads contain the `installation` + property when the event is configured + for and sent to a GitHub App. For more information, + see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating- + github-apps/registering-a-github-app/using-webhooks-with-github-apps)." """ - after: Missing[Union[str, None]] = Field(default=UNSET) - app: Missing[Union[Integration, None]] = Field( - default=UNSET, - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - before: Missing[Union[str, None]] = Field(default=UNSET) - conclusion: Missing[ - Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "stale", - "startup_failure", - ], - ] - ] = Field(default=UNSET) - created_at: Missing[datetime] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field(default=UNSET) - head_sha: Missing[str] = Field( - default=UNSET, description="The SHA of the head commit that is being checked." - ) - id: Missing[int] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - pull_requests: Missing[List[PullRequestMinimal]] = Field(default=UNSET) - repository: Missing[MinimalRepository] = Field( - default=UNSET, title="Minimal Repository", description="Minimal Repository" - ) - status: Missing[ - Literal["queued", "in_progress", "completed", "pending", "waiting"] - ] = Field(default=UNSET) - updated_at: Missing[datetime] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + id: int = Field(description="The ID of the installation.") + node_id: str = Field(description="The global node ID of the installation.") -model_rebuild(SimpleCheckSuite) +model_rebuild(SimpleInstallation) -__all__ = ("SimpleCheckSuite",) +__all__ = ("SimpleInstallation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0374.py b/githubkit/versions/v2022_11_28/models/group_0374.py index e945b00c7..29be5dd8a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0374.py +++ b/githubkit/versions/v2022_11_28/models/group_0374.py @@ -9,83 +9,36 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0006 import Integration -from .group_0191 import DeploymentSimple -from .group_0373 import SimpleCheckSuite -from .group_0164 import PullRequestMinimal +class OrganizationSimpleWebhooks(GitHubModel): + """Organization Simple -class CheckRunWithSimpleCheckSuite(GitHubModel): - """CheckRun - - A check performed on the code of a given code change + A GitHub organization. Webhook payloads contain the `organization` property when + the webhook is configured for an + organization, or when the event occurs from activity in a repository owned by an + organization. """ - app: Union[None, Integration, None] = Field() - check_suite: SimpleCheckSuite = Field( - description="A suite of checks performed on the code of a given code change" - ) - completed_at: Union[datetime, None] = Field() - conclusion: Union[ - None, - Literal[ - "waiting", - "pending", - "startup_failure", - "stale", - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] = Field() - deployment: Missing[DeploymentSimple] = Field( - default=UNSET, - title="Deployment", - description="A deployment created as the result of an Actions check run from a workflow that references an environment", - ) - details_url: str = Field() - external_id: str = Field() - head_sha: str = Field(description="The SHA of the commit that is being checked.") - html_url: str = Field() - id: int = Field(description="The id of the check.") - name: str = Field(description="The name of the check.") + login: str = Field() + id: int = Field() node_id: str = Field() - output: CheckRunWithSimpleCheckSuitePropOutput = Field() - pull_requests: List[PullRequestMinimal] = Field() - started_at: datetime = Field() - status: Literal["queued", "in_progress", "completed", "pending"] = Field( - description="The phase of the lifecycle that the check is currently in." - ) url: str = Field() + 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() -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) +model_rebuild(OrganizationSimpleWebhooks) -__all__ = ( - "CheckRunWithSimpleCheckSuite", - "CheckRunWithSimpleCheckSuitePropOutput", -) +__all__ = ("OrganizationSimpleWebhooks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0375.py b/githubkit/versions/v2022_11_28/models/group_0375.py index 895c911de..548b0540c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0375.py +++ b/githubkit/versions/v2022_11_28/models/group_0375.py @@ -9,33 +9,372 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from .group_0001 import SimpleUser +from .group_0016 import LicenseSimple -class WebhooksDeployKey(GitHubModel): - """WebhooksDeployKey - The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- - deploy-key) resource. +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. """ - 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() + 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() - verified: bool = 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 has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow forking this repo" + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + open_issues: int = Field() + watchers: int = Field() + master_branch: Missing[str] = Field(default=UNSET) + starred_at: Missing[str] = Field(default=UNSET) + anonymous_access_enabled: Missing[bool] = Field( + default=UNSET, + description="Whether anonymous git access is enabled for this repository", + ) + + +class RepositoryWebhooksPropPermissions(GitHubModel): + """RepositoryWebhooksPropPermissions""" + + admin: bool = Field() + pull: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + push: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + + +class RepositoryWebhooksPropCustomProperties(ExtraGitHubModel): + """RepositoryWebhooksPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class RepositoryWebhooksPropTemplateRepository(GitHubModel): + """RepositoryWebhooksPropTemplateRepository""" + + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + owner: Missing[RepositoryWebhooksPropTemplateRepositoryPropOwner] = Field( + default=UNSET + ) + private: Missing[bool] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + description: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + git_url: Missing[str] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + ssh_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + clone_url: Missing[str] = Field(default=UNSET) + mirror_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + svn_url: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + language: Missing[str] = Field(default=UNSET) + forks_count: Missing[int] = Field(default=UNSET) + stargazers_count: Missing[int] = Field(default=UNSET) + watchers_count: Missing[int] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + default_branch: Missing[str] = Field(default=UNSET) + open_issues_count: Missing[int] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + topics: Missing[List[str]] = Field(default=UNSET) + has_issues: Missing[bool] = Field(default=UNSET) + has_projects: Missing[bool] = Field(default=UNSET) + has_wiki: Missing[bool] = Field(default=UNSET) + has_pages: Missing[bool] = Field(default=UNSET) + has_downloads: Missing[bool] = Field(default=UNSET) + archived: Missing[bool] = Field(default=UNSET) + disabled: Missing[bool] = Field(default=UNSET) + visibility: Missing[str] = Field(default=UNSET) + pushed_at: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + permissions: Missing[RepositoryWebhooksPropTemplateRepositoryPropPermissions] = ( + Field(default=UNSET) + ) + allow_rebase_merge: Missing[bool] = Field(default=UNSET) + temp_clone_token: Missing[Union[str, None]] = Field(default=UNSET) + allow_squash_merge: Missing[bool] = Field(default=UNSET) + allow_auto_merge: Missing[bool] = Field(default=UNSET) + delete_branch_on_merge: Missing[bool] = Field(default=UNSET) + allow_update_branch: Missing[bool] = Field(default=UNSET) + use_squash_pr_title_as_default: Missing[bool] = Field(default=UNSET) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + allow_merge_commit: Missing[bool] = Field(default=UNSET) + subscribers_count: Missing[int] = Field(default=UNSET) + network_count: Missing[int] = Field(default=UNSET) + + +class RepositoryWebhooksPropTemplateRepositoryPropOwner(GitHubModel): + """RepositoryWebhooksPropTemplateRepositoryPropOwner""" + + login: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + + +class RepositoryWebhooksPropTemplateRepositoryPropPermissions(GitHubModel): + """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" + + admin: Missing[bool] = Field(default=UNSET) + maintain: Missing[bool] = Field(default=UNSET) + push: Missing[bool] = Field(default=UNSET) + triage: Missing[bool] = Field(default=UNSET) + pull: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhooksDeployKey) +model_rebuild(RepositoryWebhooks) +model_rebuild(RepositoryWebhooksPropPermissions) +model_rebuild(RepositoryWebhooksPropCustomProperties) +model_rebuild(RepositoryWebhooksPropTemplateRepository) +model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropOwner) +model_rebuild(RepositoryWebhooksPropTemplateRepositoryPropPermissions) -__all__ = ("WebhooksDeployKey",) +__all__ = ( + "RepositoryWebhooks", + "RepositoryWebhooksPropPermissions", + "RepositoryWebhooksPropCustomProperties", + "RepositoryWebhooksPropTemplateRepository", + "RepositoryWebhooksPropTemplateRepositoryPropOwner", + "RepositoryWebhooksPropTemplateRepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0376.py b/githubkit/versions/v2022_11_28/models/group_0376.py index 8e1eed602..0b0e642ec 100644 --- a/githubkit/versions/v2022_11_28/models/group_0376.py +++ b/githubkit/versions/v2022_11_28/models/group_0376.py @@ -9,28 +9,45 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksWorkflow(GitHubModel): - """Workflow""" +class SimpleUserWebhooks(GitHubModel): + """Simple User - badge_url: str = Field() - created_at: datetime = Field() - html_url: str = Field() + The GitHub user that triggered the event. This property is included in every + webhook payload. + """ + + name: Missing[Union[str, None]] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + login: str = Field() id: int = Field() - name: str = Field() node_id: str = Field() - path: str = Field() - state: str = Field() - updated_at: datetime = Field() + avatar_url: str = Field() + gravatar_id: Union[str, None] = Field() url: str = Field() - - -model_rebuild(WebhooksWorkflow) - -__all__ = ("WebhooksWorkflow",) + 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) + + +model_rebuild(SimpleUserWebhooks) + +__all__ = ("SimpleUserWebhooks",) diff --git a/githubkit/versions/v2022_11_28/models/group_0377.py b/githubkit/versions/v2022_11_28/models/group_0377.py index 6ba220e91..930049b68 100644 --- a/githubkit/versions/v2022_11_28/models/group_0377.py +++ b/githubkit/versions/v2022_11_28/models/group_0377.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Literal from pydantic import Field @@ -18,70 +19,71 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksApprover(GitHubModel): - """WebhooksApprover""" +class WebhooksRule(GitHubModel): + """branch protection rule - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + The branch protection rule. Includes a `name` and all the [branch protection + settings](https://docs.github.com/github/administering-a-repository/defining- + the-mergeability-of-pull-requests/about-protected-branches#about-branch- + protection-settings) applied to branches that match the name. Binary settings + are boolean. Multi-level configurations are one of `off`, `non_admins`, or + `everyone`. Actor and build lists are arrays of strings. + """ - -class WebhooksReviewersItems(GitHubModel): - """WebhooksReviewersItems""" - - reviewer: Missing[Union[WebhooksReviewersItemsPropReviewer, None]] = Field( - default=UNSET, title="User" + admin_enforced: bool = Field() + allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() ) - type: Missing[Literal["User"]] = Field(default=UNSET) - - -class WebhooksReviewersItemsPropReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + authorized_actor_names: List[str] = Field() + authorized_actors_only: bool = Field() + authorized_dismissal_actors_only: bool = Field() + create_protected: Missing[bool] = Field(default=UNSET) + created_at: datetime = Field() + dismiss_stale_reviews_on_push: bool = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + ignore_approvals_from_contributors: bool = Field() + linear_history_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + lock_branch_enforcement_level: Literal["off", "non_admins", "everyone"] = Field( + description="The enforcement level of the branch lock setting. `off` means the branch is not locked, `non_admins` means the branch is read-only for non_admins, and `everyone` means the branch is read-only for everyone." + ) + lock_allows_fork_sync: Missing[bool] = Field( + default=UNSET, + description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow users to pull changes from upstream when the branch is locked. This setting is only applicable for forks.", + ) + merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] = Field() + name: str = Field() + pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + repository_id: int = Field() + require_code_owner_review: bool = Field() + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it", + ) + required_approving_review_count: int = Field() + required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] = ( + Field() + ) + required_status_checks: List[str] = Field() + required_status_checks_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + signature_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] = Field() + strict_required_status_checks_policy: bool = Field() + updated_at: datetime = Field() -model_rebuild(WebhooksApprover) -model_rebuild(WebhooksReviewersItems) -model_rebuild(WebhooksReviewersItemsPropReviewer) +model_rebuild(WebhooksRule) -__all__ = ( - "WebhooksApprover", - "WebhooksReviewersItems", - "WebhooksReviewersItemsPropReviewer", -) +__all__ = ("WebhooksRule",) diff --git a/githubkit/versions/v2022_11_28/models/group_0378.py b/githubkit/versions/v2022_11_28/models/group_0378.py index 291bcddcd..8e1eb4b46 100644 --- a/githubkit/versions/v2022_11_28/models/group_0378.py +++ b/githubkit/versions/v2022_11_28/models/group_0378.py @@ -9,24 +9,67 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0006 import Integration +from .group_0055 import MinimalRepository +from .group_0169 import PullRequestMinimal + + +class SimpleCheckSuite(GitHubModel): + """SimpleCheckSuite -class WebhooksWorkflowJobRun(GitHubModel): - """WebhooksWorkflowJobRun""" + A suite of checks performed on the code of a given code change + """ - conclusion: None = Field() - created_at: str = Field() - environment: str = Field() - html_url: str = Field() - id: int = Field() - name: None = Field() - status: str = Field() - updated_at: str = Field() + after: Missing[Union[str, None]] = Field(default=UNSET) + app: Missing[Union[Integration, None]] = Field( + default=UNSET, + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + before: Missing[Union[str, None]] = Field(default=UNSET) + conclusion: Missing[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + ] = Field(default=UNSET) + created_at: Missing[datetime] = Field(default=UNSET) + head_branch: Missing[Union[str, None]] = Field(default=UNSET) + head_sha: Missing[str] = Field( + default=UNSET, description="The SHA of the head commit that is being checked." + ) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + pull_requests: Missing[List[PullRequestMinimal]] = Field(default=UNSET) + repository: Missing[MinimalRepository] = Field( + default=UNSET, title="Minimal Repository", description="Minimal Repository" + ) + status: Missing[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] = Field(default=UNSET) + updated_at: Missing[datetime] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksWorkflowJobRun) +model_rebuild(SimpleCheckSuite) -__all__ = ("WebhooksWorkflowJobRun",) +__all__ = ("SimpleCheckSuite",) diff --git a/githubkit/versions/v2022_11_28/models/group_0379.py b/githubkit/versions/v2022_11_28/models/group_0379.py index 28089a5fe..e18233276 100644 --- a/githubkit/versions/v2022_11_28/models/group_0379.py +++ b/githubkit/versions/v2022_11_28/models/group_0379.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,33 +18,74 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0006 import Integration +from .group_0196 import DeploymentSimple +from .group_0378 import SimpleCheckSuite +from .group_0169 import PullRequestMinimal -class WebhooksUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(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(WebhooksUser) - -__all__ = ("WebhooksUser",) + +class CheckRunWithSimpleCheckSuite(GitHubModel): + """CheckRun + + A check performed on the code of a given code change + """ + + app: Union[None, Integration, None] = Field() + check_suite: SimpleCheckSuite = Field( + description="A suite of checks performed on the code of a given code change" + ) + completed_at: Union[datetime, None] = Field() + conclusion: Union[ + None, + Literal[ + "waiting", + "pending", + "startup_failure", + "stale", + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] = Field() + deployment: Missing[DeploymentSimple] = Field( + default=UNSET, + title="Deployment", + description="A deployment created as the result of an Actions check run from a workflow that references an environment", + ) + details_url: str = Field() + external_id: str = Field() + head_sha: str = Field(description="The SHA of the commit that is being checked.") + html_url: str = Field() + id: int = Field(description="The id of the check.") + name: str = Field(description="The name of the check.") + node_id: str = Field() + output: CheckRunWithSimpleCheckSuitePropOutput = Field() + pull_requests: List[PullRequestMinimal] = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "pending"] = Field( + description="The phase of the lifecycle that the check is currently in." + ) + url: str = Field() + + +class CheckRunWithSimpleCheckSuitePropOutput(GitHubModel): + """CheckRunWithSimpleCheckSuitePropOutput""" + + annotations_count: int = Field() + annotations_url: str = Field() + summary: Union[str, None] = Field() + text: Union[str, None] = Field() + title: Union[str, None] = Field() + + +model_rebuild(CheckRunWithSimpleCheckSuite) +model_rebuild(CheckRunWithSimpleCheckSuitePropOutput) + +__all__ = ( + "CheckRunWithSimpleCheckSuite", + "CheckRunWithSimpleCheckSuitePropOutput", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0380.py b/githubkit/versions/v2022_11_28/models/group_0380.py index 468cd4b7a..895c911de 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 Union, Literal +from typing import Union from pydantic import Field @@ -19,85 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksAnswer(GitHubModel): - """WebhooksAnswer""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field() - child_comment_count: int = Field() - created_at: datetime = Field() - discussion_id: int = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - parent_id: None = Field() - reactions: Missing[WebhooksAnswerPropReactions] = Field( - default=UNSET, title="Reactions" - ) - repository_url: str = Field() - updated_at: datetime = Field() - user: Union[WebhooksAnswerPropUser, None] = Field(title="User") - - -class WebhooksAnswerPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhooksDeployKey(GitHubModel): + """WebhooksDeployKey + The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- + deploy-key) resource. + """ -class WebhooksAnswerPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + added_by: Missing[Union[str, None]] = Field(default=UNSET) + created_at: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + 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() -model_rebuild(WebhooksAnswer) -model_rebuild(WebhooksAnswerPropReactions) -model_rebuild(WebhooksAnswerPropUser) +model_rebuild(WebhooksDeployKey) -__all__ = ( - "WebhooksAnswer", - "WebhooksAnswerPropReactions", - "WebhooksAnswerPropUser", -) +__all__ = ("WebhooksDeployKey",) diff --git a/githubkit/versions/v2022_11_28/models/group_0381.py b/githubkit/versions/v2022_11_28/models/group_0381.py index f6857b9b0..8e1eed602 100644 --- a/githubkit/versions/v2022_11_28/models/group_0381.py +++ b/githubkit/versions/v2022_11_28/models/group_0381.py @@ -10,155 +10,27 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class Discussion(GitHubModel): - """Discussion +class WebhooksWorkflow(GitHubModel): + """Workflow""" - A Discussion in a repository. - """ - - active_lock_reason: Union[str, None] = Field() - answer_chosen_at: Union[str, None] = Field() - answer_chosen_by: Union[DiscussionPropAnswerChosenBy, None] = Field(title="User") - answer_html_url: Union[str, None] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field() - category: DiscussionPropCategory = Field() - comments: int = Field() + badge_url: str = Field() created_at: datetime = Field() html_url: str = Field() id: int = Field() - locked: bool = Field() + name: str = Field() node_id: str = Field() - number: int = Field() - reactions: Missing[DiscussionPropReactions] = Field( - default=UNSET, title="Reactions" - ) - repository_url: str = Field() - state: Literal["open", "closed", "locked", "converting", "transferring"] = Field( - description="The current state of the discussion.\n`converting` means that the discussion is being converted from an issue.\n`transferring` means that the discussion is being transferred from another repository." - ) - state_reason: Union[ - None, Literal["resolved", "outdated", "duplicate", "reopened"] - ] = Field(description="The reason for the current state") - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field() + path: str = Field() + state: str = Field() updated_at: datetime = Field() - user: Union[DiscussionPropUser, None] = Field(title="User") - - -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) - - -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) - - -model_rebuild(Discussion) -model_rebuild(DiscussionPropAnswerChosenBy) -model_rebuild(DiscussionPropCategory) -model_rebuild(DiscussionPropReactions) -model_rebuild(DiscussionPropUser) +model_rebuild(WebhooksWorkflow) -__all__ = ( - "Discussion", - "DiscussionPropAnswerChosenBy", - "DiscussionPropCategory", - "DiscussionPropReactions", - "DiscussionPropUser", -) +__all__ = ("WebhooksWorkflow",) diff --git a/githubkit/versions/v2022_11_28/models/group_0382.py b/githubkit/versions/v2022_11_28/models/group_0382.py index 0c2738c6c..6ba220e91 100644 --- a/githubkit/versions/v2022_11_28/models/group_0382.py +++ b/githubkit/versions/v2022_11_28/models/group_0382.py @@ -18,52 +18,39 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksComment(GitHubModel): - """WebhooksComment""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", +class WebhooksApprover(GitHubModel): + """WebhooksApprover""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksReviewersItems(GitHubModel): + """WebhooksReviewersItems""" + + reviewer: Missing[Union[WebhooksReviewersItemsPropReviewer, None]] = Field( + default=UNSET, title="User" ) - body: str = Field() - child_comment_count: int = Field() - created_at: str = Field() - discussion_id: int = Field() - html_url: str = Field() - id: int = Field() - node_id: str = Field() - parent_id: Union[int, None] = Field() - reactions: WebhooksCommentPropReactions = Field(title="Reactions") - repository_url: str = Field() - updated_at: str = Field() - user: Union[WebhooksCommentPropUser, None] = Field(title="User") - - -class WebhooksCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksCommentPropUser(GitHubModel): + type: Missing[Literal["User"]] = Field(default=UNSET) + + +class WebhooksReviewersItemsPropReviewer(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -89,12 +76,12 @@ class WebhooksCommentPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksComment) -model_rebuild(WebhooksCommentPropReactions) -model_rebuild(WebhooksCommentPropUser) +model_rebuild(WebhooksApprover) +model_rebuild(WebhooksReviewersItems) +model_rebuild(WebhooksReviewersItemsPropReviewer) __all__ = ( - "WebhooksComment", - "WebhooksCommentPropReactions", - "WebhooksCommentPropUser", + "WebhooksApprover", + "WebhooksReviewersItems", + "WebhooksReviewersItemsPropReviewer", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0383.py b/githubkit/versions/v2022_11_28/models/group_0383.py index 6e6effd19..291bcddcd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0383.py +++ b/githubkit/versions/v2022_11_28/models/group_0383.py @@ -9,27 +9,24 @@ from __future__ import annotations -from typing import Union - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class WebhooksLabel(GitHubModel): - """Label""" +class WebhooksWorkflowJobRun(GitHubModel): + """WebhooksWorkflowJobRun""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() + conclusion: None = Field() + created_at: str = Field() + environment: str = Field() + html_url: str = Field() id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") + name: None = Field() + status: str = Field() + updated_at: str = Field() -model_rebuild(WebhooksLabel) +model_rebuild(WebhooksWorkflowJobRun) -__all__ = ("WebhooksLabel",) +__all__ = ("WebhooksWorkflowJobRun",) diff --git a/githubkit/versions/v2022_11_28/models/group_0384.py b/githubkit/versions/v2022_11_28/models/group_0384.py index ba770b6b0..28089a5fe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0384.py +++ b/githubkit/versions/v2022_11_28/models/group_0384.py @@ -9,21 +9,41 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksRepositoriesItems(GitHubModel): - """WebhooksRepositoriesItems""" - - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") - - -model_rebuild(WebhooksRepositoriesItems) - -__all__ = ("WebhooksRepositoriesItems",) +class WebhooksUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksUser) + +__all__ = ("WebhooksUser",) diff --git a/githubkit/versions/v2022_11_28/models/group_0385.py b/githubkit/versions/v2022_11_28/models/group_0385.py index f17279ee4..468cd4b7a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0385.py +++ b/githubkit/versions/v2022_11_28/models/group_0385.py @@ -9,21 +9,95 @@ from __future__ import annotations +from datetime import datetime +from typing import Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksRepositoriesAddedItems(GitHubModel): - """WebhooksRepositoriesAddedItems""" +class WebhooksAnswer(GitHubModel): + """WebhooksAnswer""" - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field() + child_comment_count: int = Field() + created_at: datetime = Field() + discussion_id: int = Field() + html_url: str = Field() + id: int = Field() node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") + parent_id: None = Field() + reactions: Missing[WebhooksAnswerPropReactions] = Field( + default=UNSET, title="Reactions" + ) + repository_url: str = Field() + updated_at: datetime = Field() + user: Union[WebhooksAnswerPropUser, None] = Field(title="User") + + +class WebhooksAnswerPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksAnswerPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksRepositoriesAddedItems) +model_rebuild(WebhooksAnswer) +model_rebuild(WebhooksAnswerPropReactions) +model_rebuild(WebhooksAnswerPropUser) -__all__ = ("WebhooksRepositoriesAddedItems",) +__all__ = ( + "WebhooksAnswer", + "WebhooksAnswerPropReactions", + "WebhooksAnswerPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0386.py b/githubkit/versions/v2022_11_28/models/group_0386.py index e380729fd..f6857b9b0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0386.py +++ b/githubkit/versions/v2022_11_28/models/group_0386.py @@ -18,16 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0006 import Integration +class Discussion(GitHubModel): + """Discussion -class WebhooksIssueComment(GitHubModel): - """issue comment - - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. + A Discussion in a repository. """ + active_lock_reason: Union[str, None] = Field() + answer_chosen_at: Union[str, None] = Field() + answer_chosen_by: Union[DiscussionPropAnswerChosenBy, None] = Field(title="User") + answer_html_url: Union[str, None] = Field() author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -41,23 +42,73 @@ class WebhooksIssueComment(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - body: str = Field(description="Contents of the issue comment") + body: str = Field() + category: DiscussionPropCategory = Field() + comments: int = Field() created_at: datetime = Field() html_url: str = Field() - id: int = Field(description="Unique identifier of the issue comment") - issue_url: str = Field() + id: int = Field() + locked: bool = Field() node_id: str = Field() - performed_via_github_app: Union[Integration, None] = Field( - title="GitHub app", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + number: int = Field() + reactions: Missing[DiscussionPropReactions] = Field( + default=UNSET, title="Reactions" + ) + repository_url: str = Field() + state: Literal["open", "closed", "locked", "converting", "transferring"] = Field( + description="The current state of the discussion.\n`converting` means that the discussion is being converted from an issue.\n`transferring` means that the discussion is being transferred from another repository." ) - reactions: WebhooksIssueCommentPropReactions = Field(title="Reactions") + state_reason: Union[ + None, Literal["resolved", "outdated", "duplicate", "reopened"] + ] = Field(description="The reason for the current state") + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field() updated_at: datetime = Field() - url: str = Field(description="URL for the issue comment") - user: Union[WebhooksIssueCommentPropUser, None] = Field(title="User") + user: Union[DiscussionPropUser, None] = Field(title="User") + + +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) + + +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 WebhooksIssueCommentPropReactions(GitHubModel): +class DiscussionPropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -72,7 +123,7 @@ class WebhooksIssueCommentPropReactions(GitHubModel): url: str = Field() -class WebhooksIssueCommentPropUser(GitHubModel): +class DiscussionPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -94,18 +145,20 @@ class WebhooksIssueCommentPropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksIssueComment) -model_rebuild(WebhooksIssueCommentPropReactions) -model_rebuild(WebhooksIssueCommentPropUser) +model_rebuild(Discussion) +model_rebuild(DiscussionPropAnswerChosenBy) +model_rebuild(DiscussionPropCategory) +model_rebuild(DiscussionPropReactions) +model_rebuild(DiscussionPropUser) __all__ = ( - "WebhooksIssueComment", - "WebhooksIssueCommentPropReactions", - "WebhooksIssueCommentPropUser", + "Discussion", + "DiscussionPropAnswerChosenBy", + "DiscussionPropCategory", + "DiscussionPropReactions", + "DiscussionPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0387.py b/githubkit/versions/v2022_11_28/models/group_0387.py index 2491fe3f4..0c2738c6c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0387.py +++ b/githubkit/versions/v2022_11_28/models/group_0387.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,25 +18,83 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksChanges(GitHubModel): - """WebhooksChanges - - The changes to the comment. - """ - - body: Missing[WebhooksChangesPropBody] = Field(default=UNSET) - - -class WebhooksChangesPropBody(GitHubModel): - """WebhooksChangesPropBody""" - - from_: str = Field(alias="from", description="The previous version of the body.") - - -model_rebuild(WebhooksChanges) -model_rebuild(WebhooksChangesPropBody) +class WebhooksComment(GitHubModel): + """WebhooksComment""" + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field() + child_comment_count: int = Field() + created_at: str = Field() + discussion_id: int = Field() + html_url: str = Field() + id: int = Field() + node_id: str = Field() + parent_id: Union[int, None] = Field() + reactions: WebhooksCommentPropReactions = Field(title="Reactions") + repository_url: str = Field() + updated_at: str = Field() + user: Union[WebhooksCommentPropUser, None] = Field(title="User") + + +class WebhooksCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksCommentPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksComment) +model_rebuild(WebhooksCommentPropReactions) +model_rebuild(WebhooksCommentPropUser) __all__ = ( - "WebhooksChanges", - "WebhooksChangesPropBody", + "WebhooksComment", + "WebhooksCommentPropReactions", + "WebhooksCommentPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0388.py b/githubkit/versions/v2022_11_28/models/group_0388.py index 33bfca0fa..6e6effd19 100644 --- a/githubkit/versions/v2022_11_28/models/group_0388.py +++ b/githubkit/versions/v2022_11_28/models/group_0388.py @@ -9,138 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhooksIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhooksIssuePropAssigneesItems, None]] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhooksIssuePropLabelsItems]] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhooksIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhooksIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhooksIssuePropPullRequest] = Field(default=UNSET) - reactions: WebhooksIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhooksIssuePropUser, None] = Field(title="User") - - -class WebhooksIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -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) - - -class WebhooksIssuePropLabelsItems(GitHubModel): +class WebhooksLabel(GitHubModel): """Label""" color: str = Field( @@ -154,291 +30,6 @@ class WebhooksIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhooksIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksIssuePropMilestonePropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = 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) - - -class WebhooksIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhooksIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhooksIssuePropPullRequest(GitHubModel): - """WebhooksIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksIssuePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -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) +model_rebuild(WebhooksLabel) -__all__ = ( - "WebhooksIssue", - "WebhooksIssuePropAssignee", - "WebhooksIssuePropAssigneesItems", - "WebhooksIssuePropLabelsItems", - "WebhooksIssuePropMilestone", - "WebhooksIssuePropMilestonePropCreator", - "WebhooksIssuePropPerformedViaGithubApp", - "WebhooksIssuePropPerformedViaGithubAppPropOwner", - "WebhooksIssuePropPerformedViaGithubAppPropPermissions", - "WebhooksIssuePropPullRequest", - "WebhooksIssuePropReactions", - "WebhooksIssuePropUser", -) +__all__ = ("WebhooksLabel",) diff --git a/githubkit/versions/v2022_11_28/models/group_0389.py b/githubkit/versions/v2022_11_28/models/group_0389.py index a251b7a85..ba770b6b0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0389.py +++ b/githubkit/versions/v2022_11_28/models/group_0389.py @@ -9,72 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhooksRepositoriesItems(GitHubModel): + """WebhooksRepositoriesItems""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksMilestonePropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhooksMilestone) -model_rebuild(WebhooksMilestonePropCreator) +model_rebuild(WebhooksRepositoriesItems) -__all__ = ( - "WebhooksMilestone", - "WebhooksMilestonePropCreator", -) +__all__ = ("WebhooksRepositoriesItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0390.py b/githubkit/versions/v2022_11_28/models/group_0390.py index e90b48da9..f17279ee4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0390.py +++ b/githubkit/versions/v2022_11_28/models/group_0390.py @@ -9,424 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksIssue2(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ +class WebhooksRepositoriesAddedItems(GitHubModel): + """WebhooksRepositoriesAddedItems""" - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhooksIssue2PropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhooksIssue2PropAssigneesItems, None]] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhooksIssue2PropLabelsItems]] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhooksIssue2PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhooksIssue2PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhooksIssue2PropPullRequest] = Field(default=UNSET) - reactions: WebhooksIssue2PropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhooksIssue2PropUser, None] = Field(title="User") - - -class WebhooksIssue2PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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) - - -class WebhooksIssue2PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhooksIssue2PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksIssue2PropMilestonePropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksIssue2PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = 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) - - -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) + private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhooksIssue2) -model_rebuild(WebhooksIssue2PropAssignee) -model_rebuild(WebhooksIssue2PropAssigneesItems) -model_rebuild(WebhooksIssue2PropLabelsItems) -model_rebuild(WebhooksIssue2PropMilestone) -model_rebuild(WebhooksIssue2PropMilestonePropCreator) -model_rebuild(WebhooksIssue2PropPerformedViaGithubApp) -model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropOwner) -model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhooksIssue2PropPullRequest) -model_rebuild(WebhooksIssue2PropReactions) -model_rebuild(WebhooksIssue2PropUser) +model_rebuild(WebhooksRepositoriesAddedItems) -__all__ = ( - "WebhooksIssue2", - "WebhooksIssue2PropAssignee", - "WebhooksIssue2PropAssigneesItems", - "WebhooksIssue2PropLabelsItems", - "WebhooksIssue2PropMilestone", - "WebhooksIssue2PropMilestonePropCreator", - "WebhooksIssue2PropPerformedViaGithubApp", - "WebhooksIssue2PropPerformedViaGithubAppPropOwner", - "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", - "WebhooksIssue2PropPullRequest", - "WebhooksIssue2PropReactions", - "WebhooksIssue2PropUser", -) +__all__ = ("WebhooksRepositoriesAddedItems",) diff --git a/githubkit/versions/v2022_11_28/models/group_0391.py b/githubkit/versions/v2022_11_28/models/group_0391.py index 3c33afe16..e380729fd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0391.py +++ b/githubkit/versions/v2022_11_28/models/group_0391.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -17,8 +18,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0006 import Integration -class WebhooksUserMannequin(GitHubModel): + +class WebhooksIssueComment(GitHubModel): + """issue comment + + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + itself. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="Contents of the issue comment") + created_at: datetime = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() + node_id: str = Field() + performed_via_github_app: Union[Integration, None] = Field( + title="GitHub app", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + reactions: WebhooksIssueCommentPropReactions = Field(title="Reactions") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue comment") + user: Union[WebhooksIssueCommentPropUser, None] = Field(title="User") + + +class WebhooksIssueCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksIssueCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -46,6 +100,12 @@ class WebhooksUserMannequin(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksUserMannequin) +model_rebuild(WebhooksIssueComment) +model_rebuild(WebhooksIssueCommentPropReactions) +model_rebuild(WebhooksIssueCommentPropUser) -__all__ = ("WebhooksUserMannequin",) +__all__ = ( + "WebhooksIssueComment", + "WebhooksIssueCommentPropReactions", + "WebhooksIssueCommentPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0392.py b/githubkit/versions/v2022_11_28/models/group_0392.py index 2d6d781be..2491fe3f4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0392.py +++ b/githubkit/versions/v2022_11_28/models/group_0392.py @@ -9,55 +9,32 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" - - account: WebhooksMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Union[str, None] = Field() - on_free_trial: bool = Field() - plan: WebhooksMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - +class WebhooksChanges(GitHubModel): + """WebhooksChanges -class WebhooksMarketplacePurchasePropAccount(GitHubModel): - """WebhooksMarketplacePurchasePropAccount""" + The changes to the comment. + """ - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() + body: Missing[WebhooksChangesPropBody] = Field(default=UNSET) -class WebhooksMarketplacePurchasePropPlan(GitHubModel): - """WebhooksMarketplacePurchasePropPlan""" +class WebhooksChangesPropBody(GitHubModel): + """WebhooksChangesPropBody""" - bullets: List[Union[str, None]] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + from_: str = Field(alias="from", description="The previous version of the body.") -model_rebuild(WebhooksMarketplacePurchase) -model_rebuild(WebhooksMarketplacePurchasePropAccount) -model_rebuild(WebhooksMarketplacePurchasePropPlan) +model_rebuild(WebhooksChanges) +model_rebuild(WebhooksChangesPropBody) __all__ = ( - "WebhooksMarketplacePurchase", - "WebhooksMarketplacePurchasePropAccount", - "WebhooksMarketplacePurchasePropPlan", + "WebhooksChanges", + "WebhooksChangesPropBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0393.py b/githubkit/versions/v2022_11_28/models/group_0393.py index 482bffab9..33bfca0fa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0393.py +++ b/githubkit/versions/v2022_11_28/models/group_0393.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,48 +19,426 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksPreviousMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" +class WebhooksIssue(GitHubModel): + """Issue - 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() + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhooksIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhooksIssuePropAssigneesItems, None]] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhooksIssuePropLabelsItems]] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhooksIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhooksIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhooksIssuePropPullRequest] = Field(default=UNSET) + reactions: WebhooksIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhooksIssuePropUser, None] = Field(title="User") + + +class WebhooksIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +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) + + +class WebhooksIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhooksIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhooksIssuePropMilestonePropCreator, None] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhooksPreviousMarketplacePurchasePropAccount(GitHubModel): - """WebhooksPreviousMarketplacePurchasePropAccount""" +class WebhooksIssuePropMilestonePropCreator(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() + owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhooksIssuePropPerformedViaGithubAppPropPermissions] = Field( + default=UNSET, description="The set of permissions for the GitHub app" + ) + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhooksIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhooksPreviousMarketplacePurchasePropPlan(GitHubModel): - """WebhooksPreviousMarketplacePurchasePropPlan""" +class WebhooksIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhooksIssuePropPerformedViaGithubAppPropPermissions - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhooksIssuePropPullRequest(GitHubModel): + """WebhooksIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksIssuePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksPreviousMarketplacePurchase) -model_rebuild(WebhooksPreviousMarketplacePurchasePropAccount) -model_rebuild(WebhooksPreviousMarketplacePurchasePropPlan) +model_rebuild(WebhooksIssue) +model_rebuild(WebhooksIssuePropAssignee) +model_rebuild(WebhooksIssuePropAssigneesItems) +model_rebuild(WebhooksIssuePropLabelsItems) +model_rebuild(WebhooksIssuePropMilestone) +model_rebuild(WebhooksIssuePropMilestonePropCreator) +model_rebuild(WebhooksIssuePropPerformedViaGithubApp) +model_rebuild(WebhooksIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhooksIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhooksIssuePropPullRequest) +model_rebuild(WebhooksIssuePropReactions) +model_rebuild(WebhooksIssuePropUser) __all__ = ( - "WebhooksPreviousMarketplacePurchase", - "WebhooksPreviousMarketplacePurchasePropAccount", - "WebhooksPreviousMarketplacePurchasePropPlan", + "WebhooksIssue", + "WebhooksIssuePropAssignee", + "WebhooksIssuePropAssigneesItems", + "WebhooksIssuePropLabelsItems", + "WebhooksIssuePropMilestone", + "WebhooksIssuePropMilestonePropCreator", + "WebhooksIssuePropPerformedViaGithubApp", + "WebhooksIssuePropPerformedViaGithubAppPropOwner", + "WebhooksIssuePropPerformedViaGithubAppPropPermissions", + "WebhooksIssuePropPullRequest", + "WebhooksIssuePropReactions", + "WebhooksIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0394.py b/githubkit/versions/v2022_11_28/models/group_0394.py index 37c1135a6..a251b7a85 100644 --- a/githubkit/versions/v2022_11_28/models/group_0394.py +++ b/githubkit/versions/v2022_11_28/models/group_0394.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -18,62 +19,62 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksTeam(GitHubModel): - """Team +class WebhooksMilestone(GitHubModel): + """Milestone - Groups of organization members that gives permissions on specified repositories. + A collection of related issues and pull requests. """ - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhooksTeamPropParent, None]] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhooksMilestonePropCreator, None] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhooksTeamPropParent(GitHubModel): - """WebhooksTeamPropParent""" +class WebhooksMilestonePropCreator(GitHubModel): + """User""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksTeam) -model_rebuild(WebhooksTeamPropParent) +model_rebuild(WebhooksMilestone) +model_rebuild(WebhooksMilestonePropCreator) __all__ = ( - "WebhooksTeam", - "WebhooksTeamPropParent", + "WebhooksMilestone", + "WebhooksMilestonePropCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0395.py b/githubkit/versions/v2022_11_28/models/group_0395.py index 78309ba81..e90b48da9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0395.py +++ b/githubkit/versions/v2022_11_28/models/group_0395.py @@ -9,28 +9,424 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0165 import SimpleCommit + +class WebhooksIssue2(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhooksIssue2PropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhooksIssue2PropAssigneesItems, None]] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhooksIssue2PropLabelsItems]] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhooksIssue2PropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhooksIssue2PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhooksIssue2PropPullRequest] = Field(default=UNSET) + reactions: WebhooksIssue2PropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhooksIssue2PropUser, None] = Field(title="User") + + +class WebhooksIssue2PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class MergeGroup(GitHubModel): - """Merge Group +class WebhooksIssue2PropAssigneesItems(GitHubModel): + """User""" - A group of pull requests that the merge queue has grouped together to be merged. + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhooksIssue2PropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. """ - head_sha: str = Field(description="The SHA of the merge group.") - head_ref: str = Field(description="The full ref of the merge group.") - base_sha: str = Field(description="The SHA of the merge group's parent commit.") - base_ref: str = Field( - description="The full ref of the branch the merge group will be merged into." + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhooksIssue2PropMilestonePropCreator, None] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhooksIssue2PropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = 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) + + +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 ) - head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhooksIssue2PropPullRequest(GitHubModel): + """WebhooksIssue2PropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksIssue2PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class 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) -model_rebuild(MergeGroup) +model_rebuild(WebhooksIssue2) +model_rebuild(WebhooksIssue2PropAssignee) +model_rebuild(WebhooksIssue2PropAssigneesItems) +model_rebuild(WebhooksIssue2PropLabelsItems) +model_rebuild(WebhooksIssue2PropMilestone) +model_rebuild(WebhooksIssue2PropMilestonePropCreator) +model_rebuild(WebhooksIssue2PropPerformedViaGithubApp) +model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropOwner) +model_rebuild(WebhooksIssue2PropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhooksIssue2PropPullRequest) +model_rebuild(WebhooksIssue2PropReactions) +model_rebuild(WebhooksIssue2PropUser) -__all__ = ("MergeGroup",) +__all__ = ( + "WebhooksIssue2", + "WebhooksIssue2PropAssignee", + "WebhooksIssue2PropAssigneesItems", + "WebhooksIssue2PropLabelsItems", + "WebhooksIssue2PropMilestone", + "WebhooksIssue2PropMilestonePropCreator", + "WebhooksIssue2PropPerformedViaGithubApp", + "WebhooksIssue2PropPerformedViaGithubAppPropOwner", + "WebhooksIssue2PropPerformedViaGithubAppPropPermissions", + "WebhooksIssue2PropPullRequest", + "WebhooksIssue2PropReactions", + "WebhooksIssue2PropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0396.py b/githubkit/versions/v2022_11_28/models/group_0396.py index 8f317fbe3..3c33afe16 100644 --- a/githubkit/versions/v2022_11_28/models/group_0396.py +++ b/githubkit/versions/v2022_11_28/models/group_0396.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -19,31 +18,7 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksMilestone3(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhooksMilestone3PropCreator, None] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksMilestone3PropCreator(GitHubModel): +class WebhooksUserMannequin(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -65,14 +40,12 @@ class WebhooksMilestone3PropCreator(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksMilestone3) -model_rebuild(WebhooksMilestone3PropCreator) +model_rebuild(WebhooksUserMannequin) -__all__ = ( - "WebhooksMilestone3", - "WebhooksMilestone3PropCreator", -) +__all__ = ("WebhooksUserMannequin",) diff --git a/githubkit/versions/v2022_11_28/models/group_0397.py b/githubkit/versions/v2022_11_28/models/group_0397.py index dc3320449..2d6d781be 100644 --- a/githubkit/versions/v2022_11_28/models/group_0397.py +++ b/githubkit/versions/v2022_11_28/models/group_0397.py @@ -9,59 +9,55 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksMembership(GitHubModel): - """Membership +class WebhooksMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" - The membership between the user and the organization. Not present when the - action is `member_invited`. - """ + account: WebhooksMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhooksMarketplacePurchasePropPlan = Field() + unit_count: int = Field() - organization_url: str = Field() - role: str = Field() - state: str = Field() - url: str = Field() - user: Union[WebhooksMembershipPropUser, None] = Field(title="User") +class WebhooksMarketplacePurchasePropAccount(GitHubModel): + """WebhooksMarketplacePurchasePropAccount""" -class WebhooksMembershipPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhooksMarketplacePurchasePropPlan(GitHubModel): + """WebhooksMarketplacePurchasePropPlan""" + + bullets: List[Union[str, None]] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() -model_rebuild(WebhooksMembership) -model_rebuild(WebhooksMembershipPropUser) +model_rebuild(WebhooksMarketplacePurchase) +model_rebuild(WebhooksMarketplacePurchasePropAccount) +model_rebuild(WebhooksMarketplacePurchasePropPlan) __all__ = ( - "WebhooksMembership", - "WebhooksMembershipPropUser", + "WebhooksMarketplacePurchase", + "WebhooksMarketplacePurchasePropAccount", + "WebhooksMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0398.py b/githubkit/versions/v2022_11_28/models/group_0398.py index 8614622e5..482bffab9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0398.py +++ b/githubkit/versions/v2022_11_28/models/group_0398.py @@ -15,184 +15,51 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - -from .group_0001 import SimpleUser - - -class PersonalAccessTokenRequest(GitHubModel): - """Personal Access Token Request - - Details of a Personal Access Token Request. - """ - - id: int = Field( - description="Unique identifier of the request for access via fine-grained personal access token. Used as the `pat_request_id` parameter in the list and review API calls." - ) - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - permissions_added: PersonalAccessTokenRequestPropPermissionsAdded = Field( - description="New requested permissions, categorized by type of permission." - ) - permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgraded = Field( - description="Requested permissions that elevate access for a previously approved request for access, categorized by type of permission." - ) - permissions_result: PersonalAccessTokenRequestPropPermissionsResult = Field( - description="Permissions requested, categorized by type of permission. This field incorporates `permissions_added` and `permissions_upgraded`." - ) - repository_selection: Literal["none", "all", "subset"] = Field( - description="Type of repository selection requested." - ) - repository_count: Union[int, None] = Field( - description="The number of repositories the token is requesting access to. This field is only populated when `repository_selection` is `subset`." - ) - repositories: Union[List[PersonalAccessTokenRequestPropRepositoriesItems], None] = ( - Field( - description="An array of repository objects the token is requesting access to. This field is only populated when `repository_selection` is `subset`." - ) - ) - created_at: str = Field( - description="Date and time when the request for access was created." - ) - token_expired: bool = Field( - description="Whether the associated fine-grained personal access token has expired." - ) - token_expires_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token expires." - ) - token_last_used_at: Union[str, None] = Field( - description="Date and time when the associated fine-grained personal access token was last used for authentication." - ) - - -class PersonalAccessTokenRequestPropRepositoriesItems(GitHubModel): - """PersonalAccessTokenRequestPropRepositoriesItems""" - - full_name: str = Field() - id: int = Field(description="Unique identifier of the repository") - name: str = Field(description="The name of the repository.") - node_id: str = Field() - private: bool = Field(description="Whether the repository is private or public.") - - -class PersonalAccessTokenRequestPropPermissionsAdded(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsAdded - - New requested permissions, categorized by type of permission. - """ - - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsAddedPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsAddedPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsAddedPropOther] = Field( - default=UNSET - ) - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOrganization(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" - +from githubkit.compat import GitHubModel, model_rebuild -class PersonalAccessTokenRequestPropPermissionsUpgraded(GitHubModel): - """PersonalAccessTokenRequestPropPermissionsUpgraded - Requested permissions that elevate access for a previously approved request for - access, categorized by type of permission. - """ +class WebhooksPreviousMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" - organization: Missing[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization - ] = Field(default=UNSET) - repository: Missing[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository - ] = Field(default=UNSET) - other: Missing[PersonalAccessTokenRequestPropPermissionsUpgradedPropOther] = Field( - default=UNSET - ) + 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 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 WebhooksPreviousMarketplacePurchasePropAccount(GitHubModel): + """WebhooksPreviousMarketplacePurchasePropAccount""" + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() -class PersonalAccessTokenRequestPropPermissionsResultPropRepository(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" +class WebhooksPreviousMarketplacePurchasePropPlan(GitHubModel): + """WebhooksPreviousMarketplacePurchasePropPlan""" -class PersonalAccessTokenRequestPropPermissionsResultPropOther(ExtraGitHubModel): - """PersonalAccessTokenRequestPropPermissionsResultPropOther""" + bullets: List[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() -model_rebuild(PersonalAccessTokenRequest) -model_rebuild(PersonalAccessTokenRequestPropRepositoriesItems) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAdded) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsAddedPropOther) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgraded) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsUpgradedPropOther) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResult) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOrganization) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropRepository) -model_rebuild(PersonalAccessTokenRequestPropPermissionsResultPropOther) +model_rebuild(WebhooksPreviousMarketplacePurchase) +model_rebuild(WebhooksPreviousMarketplacePurchasePropAccount) +model_rebuild(WebhooksPreviousMarketplacePurchasePropPlan) __all__ = ( - "PersonalAccessTokenRequest", - "PersonalAccessTokenRequestPropRepositoriesItems", - "PersonalAccessTokenRequestPropPermissionsAdded", - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepository", - "PersonalAccessTokenRequestPropPermissionsAddedPropOther", - "PersonalAccessTokenRequestPropPermissionsUpgraded", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOther", - "PersonalAccessTokenRequestPropPermissionsResult", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganization", - "PersonalAccessTokenRequestPropPermissionsResultPropRepository", - "PersonalAccessTokenRequestPropPermissionsResultPropOther", + "WebhooksPreviousMarketplacePurchase", + "WebhooksPreviousMarketplacePurchasePropAccount", + "WebhooksPreviousMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0399.py b/githubkit/versions/v2022_11_28/models/group_0399.py index bb54bf921..37c1135a6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0399.py +++ b/githubkit/versions/v2022_11_28/models/group_0399.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -19,54 +18,62 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksProjectCard(GitHubModel): - """Project Card""" +class WebhooksTeam(GitHubModel): + """Team - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhooksProjectCardPropCreator, None] = Field(title="User") - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksProjectCardPropCreator(GitHubModel): - """User""" + Groups of organization members that gives permissions on specified repositories. + """ - avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhooksProjectCard) -model_rebuild(WebhooksProjectCardPropCreator) + parent: Missing[Union[WebhooksTeamPropParent, None]] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksTeamPropParent(GitHubModel): + """WebhooksTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( + Field( + description="Whether team members will receive notifications when their team is @mentioned" + ) + ) + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhooksTeam) +model_rebuild(WebhooksTeamPropParent) __all__ = ( - "WebhooksProjectCard", - "WebhooksProjectCardPropCreator", + "WebhooksTeam", + "WebhooksTeamPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0400.py b/githubkit/versions/v2022_11_28/models/group_0400.py index 09fa0ec4b..b90b6efe6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0400.py +++ b/githubkit/versions/v2022_11_28/models/group_0400.py @@ -9,66 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0170 import SimpleCommit -class WebhooksProject(GitHubModel): - """Project""" - - body: Union[str, None] = Field(description="Body of the project") - columns_url: str = Field() - created_at: datetime = Field() - creator: Union[WebhooksProjectPropCreator, None] = Field(title="User") - html_url: str = Field() - id: int = Field() - name: str = Field(description="Name of the project") - node_id: str = Field() - number: int = Field() - owner_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the project; either 'open' or 'closed'" - ) - updated_at: datetime = Field() - url: str = Field() +class MergeGroup(GitHubModel): + """Merge Group -class WebhooksProjectPropCreator(GitHubModel): - """User""" + A group of pull requests that the merge queue has grouped together to be merged. + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + head_sha: str = Field(description="The SHA of the merge group.") + head_ref: str = Field(description="The full ref of the merge group.") + base_sha: str = Field(description="The SHA of the merge group's parent commit.") + base_ref: str = Field( + description="The full ref of the branch the merge group will be merged into." + ) + head_commit: SimpleCommit = Field(title="Simple Commit", description="A commit.") -model_rebuild(WebhooksProject) -model_rebuild(WebhooksProjectPropCreator) +model_rebuild(MergeGroup) -__all__ = ( - "WebhooksProject", - "WebhooksProjectPropCreator", -) +__all__ = ("MergeGroup",) diff --git a/githubkit/versions/v2022_11_28/models/group_0401.py b/githubkit/versions/v2022_11_28/models/group_0401.py index 8b615adb9..8f317fbe3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0401.py +++ b/githubkit/versions/v2022_11_28/models/group_0401.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -19,20 +19,60 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksProjectColumn(GitHubModel): - """Project Column""" +class WebhooksMilestone3(GitHubModel): + """Milestone - after_id: Missing[Union[int, None]] = Field(default=UNSET) - cards_url: str = Field() + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() created_at: datetime = Field() - id: int = Field(description="The unique identifier of the project column") - name: str = Field(description="Name of the project column") + creator: Union[WebhooksMilestone3PropCreator, None] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() node_id: str = Field() - project_url: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") updated_at: datetime = Field() url: str = Field() -model_rebuild(WebhooksProjectColumn) +class WebhooksMilestone3PropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksMilestone3) +model_rebuild(WebhooksMilestone3PropCreator) -__all__ = ("WebhooksProjectColumn",) +__all__ = ( + "WebhooksMilestone3", + "WebhooksMilestone3PropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0402.py b/githubkit/versions/v2022_11_28/models/group_0402.py index 3528848a1..dc3320449 100644 --- a/githubkit/versions/v2022_11_28/models/group_0402.py +++ b/githubkit/versions/v2022_11_28/models/group_0402.py @@ -9,38 +9,59 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class WebhooksMembership(GitHubModel): + """Membership -class ProjectsV2(GitHubModel): - """Projects v2 Project - - A projects v2 project + The membership between the user and the organization. Not present when the + action is `member_invited`. """ - id: float = Field() - node_id: str = Field() - owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") - creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") - title: str = Field() - description: Union[str, None] = Field() - public: bool = Field() - closed_at: Union[datetime, None] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - number: int = Field() - short_description: Union[str, None] = Field() - deleted_at: Union[datetime, None] = Field() - deleted_by: Union[None, SimpleUser] = Field() - - -model_rebuild(ProjectsV2) - -__all__ = ("ProjectsV2",) + organization_url: str = Field() + role: str = Field() + state: str = Field() + url: str = Field() + user: Union[WebhooksMembershipPropUser, None] = Field(title="User") + + +class WebhooksMembershipPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksMembership) +model_rebuild(WebhooksMembershipPropUser) + +__all__ = ( + "WebhooksMembership", + "WebhooksMembershipPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0403.py b/githubkit/versions/v2022_11_28/models/group_0403.py index cf59e18a4..8614622e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0403.py +++ b/githubkit/versions/v2022_11_28/models/group_0403.py @@ -9,33 +9,190 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + +from .group_0001 import SimpleUser + + +class PersonalAccessTokenRequest(GitHubModel): + """Personal Access Token Request + + Details of a Personal Access Token Request. + """ + + id: int = Field( + description="Unique identifier of the request for access via fine-grained personal access token. Used as the `pat_request_id` parameter in the list and review API calls." + ) + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + permissions_added: PersonalAccessTokenRequestPropPermissionsAdded = Field( + description="New requested permissions, categorized by type of permission." + ) + permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgraded = Field( + description="Requested permissions that elevate access for a previously approved request for access, categorized by type of permission." + ) + permissions_result: PersonalAccessTokenRequestPropPermissionsResult = Field( + description="Permissions requested, categorized by type of permission. This field incorporates `permissions_added` and `permissions_upgraded`." + ) + repository_selection: Literal["none", "all", "subset"] = Field( + description="Type of repository selection requested." + ) + repository_count: Union[int, None] = Field( + description="The number of repositories the token is requesting access to. This field is only populated when `repository_selection` is `subset`." + ) + repositories: Union[List[PersonalAccessTokenRequestPropRepositoriesItems], None] = ( + Field( + description="An array of repository objects the token is requesting access to. This field is only populated when `repository_selection` is `subset`." + ) + ) + created_at: str = Field( + description="Date and time when the request for access was created." + ) + token_expired: bool = Field( + description="Whether the associated fine-grained personal access token has expired." + ) + token_expires_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token expires." + ) + token_last_used_at: Union[str, None] = Field( + description="Date and time when the associated fine-grained personal access token was last used for authentication." + ) -class WebhooksProjectChanges(GitHubModel): - """WebhooksProjectChanges""" +class PersonalAccessTokenRequestPropRepositoriesItems(GitHubModel): + """PersonalAccessTokenRequestPropRepositoriesItems""" - archived_at: Missing[WebhooksProjectChangesPropArchivedAt] = Field(default=UNSET) + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") -class WebhooksProjectChangesPropArchivedAt(GitHubModel): - """WebhooksProjectChangesPropArchivedAt""" +class PersonalAccessTokenRequestPropPermissionsAdded(GitHubModel): + """PersonalAccessTokenRequestPropPermissionsAdded - from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[datetime, None]] = Field(default=UNSET) + 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 + ) -model_rebuild(WebhooksProjectChanges) -model_rebuild(WebhooksProjectChangesPropArchivedAt) + +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__ = ( - "WebhooksProjectChanges", - "WebhooksProjectChangesPropArchivedAt", + "PersonalAccessTokenRequest", + "PersonalAccessTokenRequestPropRepositoriesItems", + "PersonalAccessTokenRequestPropPermissionsAdded", + "PersonalAccessTokenRequestPropPermissionsAddedPropOrganization", + "PersonalAccessTokenRequestPropPermissionsAddedPropRepository", + "PersonalAccessTokenRequestPropPermissionsAddedPropOther", + "PersonalAccessTokenRequestPropPermissionsUpgraded", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOther", + "PersonalAccessTokenRequestPropPermissionsResult", + "PersonalAccessTokenRequestPropPermissionsResultPropOrganization", + "PersonalAccessTokenRequestPropPermissionsResultPropRepository", + "PersonalAccessTokenRequestPropPermissionsResultPropOther", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0404.py b/githubkit/versions/v2022_11_28/models/group_0404.py index 4f045f2bc..bb54bf921 100644 --- a/githubkit/versions/v2022_11_28/models/group_0404.py +++ b/githubkit/versions/v2022_11_28/models/group_0404.py @@ -18,31 +18,55 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class WebhooksProjectCard(GitHubModel): + """Project Card""" + + after_id: Missing[Union[int, None]] = Field(default=UNSET) + archived: bool = Field(description="Whether or not the card is archived") + column_id: int = Field() + column_url: str = Field() + content_url: Missing[str] = Field(default=UNSET) + created_at: datetime = Field() + creator: Union[WebhooksProjectCardPropCreator, None] = Field(title="User") + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() -class ProjectsV2Item(GitHubModel): - """Projects v2 Item - An item belonging to a project - """ +class WebhooksProjectCardPropCreator(GitHubModel): + """User""" - id: float = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - project_node_id: Missing[str] = Field(default=UNSET) - content_node_id: str = Field() - content_type: Literal["Issue", "PullRequest", "DraftIssue"] = Field( - title="Projects v2 Item Content Type", - description="The type of content tracked in a project item", - ) - creator: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - created_at: datetime = Field() - updated_at: datetime = Field() - archived_at: Union[datetime, None] = Field() + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(ProjectsV2Item) +model_rebuild(WebhooksProjectCard) +model_rebuild(WebhooksProjectCardPropCreator) -__all__ = ("ProjectsV2Item",) +__all__ = ( + "WebhooksProjectCard", + "WebhooksProjectCardPropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0405.py b/githubkit/versions/v2022_11_28/models/group_0405.py index d835343d5..09fa0ec4b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0405.py +++ b/githubkit/versions/v2022_11_28/models/group_0405.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,126 +18,57 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0033 import Milestone -from .group_0219 import AutoMerge -from .group_0001 import SimpleUser -from .group_0075 import TeamSimple -from .group_0300 import PullRequestPropBase -from .group_0302 import PullRequestPropLinks -from .group_0299 import PullRequestPropHead, PullRequestPropLabelsItems +class WebhooksProject(GitHubModel): + """Project""" -class PullRequestWebhook(GitHubModel): - """PullRequestWebhook""" - - url: str = Field() + body: Union[str, None] = Field(description="Body of the project") + columns_url: str = Field() + created_at: datetime = Field() + creator: Union[WebhooksProjectPropCreator, None] = Field(title="User") + html_url: str = Field() id: int = Field() + name: str = Field(description="Name of the project") node_id: str = Field() - html_url: str = Field() - diff_url: str = Field() - patch_url: str = Field() - issue_url: str = Field() - commits_url: str = Field() - review_comments_url: str = Field() - review_comment_url: str = Field() - comments_url: str = Field() - statuses_url: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() + owner_url: str = Field() state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." + description="State of the project; either 'open' or 'closed'" ) - locked: bool = Field() - title: str = Field(description="The title of the pull request.") - user: SimpleUser = Field(title="Simple User", description="A GitHub user.") - body: Union[str, None] = Field() - labels: List[PullRequestPropLabelsItems] = Field() - milestone: Union[None, Milestone] = Field() - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - created_at: datetime = Field() updated_at: datetime = Field() - closed_at: Union[datetime, None] = Field() - merged_at: Union[datetime, None] = Field() - merge_commit_sha: Union[str, None] = Field() - assignee: Union[None, SimpleUser] = Field() - assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) - requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) - head: PullRequestPropHead = Field() - base: PullRequestPropBase = Field() - links: PullRequestPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="author_association", - description="How the author is associated with the repository.", - ) - auto_merge: Union[AutoMerge, None] = Field( - title="Auto merge", description="The status of auto merging a pull request." - ) - draft: Missing[bool] = Field( - default=UNSET, - description="Indicates whether or not the pull request is a draft.", - ) - merged: bool = Field() - mergeable: Union[bool, None] = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: str = Field() - merged_by: Union[None, SimpleUser] = Field() - comments: int = Field() - review_comments: int = Field() - maintainer_can_modify: bool = Field( - description="Indicates whether maintainers can modify the pull request." - ) - commits: int = Field() - additions: int = Field() - deletions: int = Field() - changed_files: int = Field() - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", - ) + url: str = Field() + + +class WebhooksProjectPropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(PullRequestWebhook) +model_rebuild(WebhooksProject) +model_rebuild(WebhooksProjectPropCreator) -__all__ = ("PullRequestWebhook",) +__all__ = ( + "WebhooksProject", + "WebhooksProjectPropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0406.py b/githubkit/versions/v2022_11_28/models/group_0406.py index c72e6b1e8..8b615adb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0406.py +++ b/githubkit/versions/v2022_11_28/models/group_0406.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from typing import Union +from datetime import datetime from pydantic import Field @@ -18,46 +19,20 @@ from githubkit.compat import GitHubModel, model_rebuild -class PullRequestWebhookAllof1(GitHubModel): - """PullRequestWebhookAllof1""" - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to allow updating the pull request's branch.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged.", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", - ) - - -model_rebuild(PullRequestWebhookAllof1) - -__all__ = ("PullRequestWebhookAllof1",) +class WebhooksProjectColumn(GitHubModel): + """Project Column""" + + after_id: Missing[Union[int, None]] = Field(default=UNSET) + cards_url: str = Field() + created_at: datetime = Field() + id: int = Field(description="The unique identifier of the project column") + name: str = Field(description="Name of the project column") + node_id: str = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +model_rebuild(WebhooksProjectColumn) + +__all__ = ("WebhooksProjectColumn",) diff --git a/githubkit/versions/v2022_11_28/models/group_0407.py b/githubkit/versions/v2022_11_28/models/group_0407.py index 0b9614fd6..3528848a1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0407.py +++ b/githubkit/versions/v2022_11_28/models/group_0407.py @@ -9,1063 +9,38 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class WebhooksPullRequest5(GitHubModel): - """Pull Request""" - links: WebhooksPullRequest5PropLinks = Field(alias="_links") - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhooksPullRequest5PropAssignee, None] = Field(title="User") - assignees: List[Union[WebhooksPullRequest5PropAssigneesItems, None]] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[WebhooksPullRequest5PropAutoMerge, None] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhooksPullRequest5PropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhooksPullRequest5PropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhooksPullRequest5PropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[Union[WebhooksPullRequest5PropMergedBy, None]] = Field( - default=UNSET, title="User" - ) - milestone: Union[WebhooksPullRequest5PropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhooksPullRequest5PropRequestedReviewersItemsOneof0, - None, - WebhooksPullRequest5PropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[WebhooksPullRequest5PropRequestedTeamsItems] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhooksPullRequest5PropUser, None] = Field(title="User") - - -class WebhooksPullRequest5PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropAssigneesItems(GitHubModel): - """User""" +class ProjectsV2(GitHubModel): + """Projects v2 Project - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. + A projects v2 project """ - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledBy, None] = Field( - title="User" - ) - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhooksPullRequest5PropAutoMergePropEnabledBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") + id: float = Field() node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhooksPullRequest5PropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksPullRequest5PropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - + owner: SimpleUser = Field(title="Simple User", description="A GitHub user.") + creator: SimpleUser = Field(title="Simple User", description="A GitHub user.") + title: str = Field() + description: Union[str, None] = Field() + public: bool = Field() closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhooksPullRequest5PropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhooksPullRequest5PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -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) - - -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) - - -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) - - -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) - - -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) - - -class WebhooksPullRequest5PropHeadPropRepoPropPermissions(GitHubModel): - """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent, None] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent(GitHubModel): - """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhooksPullRequest5PropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParent, None] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhooksPullRequest5PropRequestedTeamsItemsPropParent(GitHubModel): - """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + number: int = Field() + short_description: Union[str, None] = Field() + deleted_at: Union[datetime, None] = Field() + deleted_by: Union[None, SimpleUser] = Field() -model_rebuild(WebhooksPullRequest5) -model_rebuild(WebhooksPullRequest5PropAssignee) -model_rebuild(WebhooksPullRequest5PropAssigneesItems) -model_rebuild(WebhooksPullRequest5PropAutoMerge) -model_rebuild(WebhooksPullRequest5PropAutoMergePropEnabledBy) -model_rebuild(WebhooksPullRequest5PropLabelsItems) -model_rebuild(WebhooksPullRequest5PropMergedBy) -model_rebuild(WebhooksPullRequest5PropMilestone) -model_rebuild(WebhooksPullRequest5PropMilestonePropCreator) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof0) -model_rebuild(WebhooksPullRequest5PropUser) -model_rebuild(WebhooksPullRequest5PropLinks) -model_rebuild(WebhooksPullRequest5PropLinksPropComments) -model_rebuild(WebhooksPullRequest5PropLinksPropCommits) -model_rebuild(WebhooksPullRequest5PropLinksPropHtml) -model_rebuild(WebhooksPullRequest5PropLinksPropIssue) -model_rebuild(WebhooksPullRequest5PropLinksPropReviewComment) -model_rebuild(WebhooksPullRequest5PropLinksPropReviewComments) -model_rebuild(WebhooksPullRequest5PropLinksPropSelf) -model_rebuild(WebhooksPullRequest5PropLinksPropStatuses) -model_rebuild(WebhooksPullRequest5PropBase) -model_rebuild(WebhooksPullRequest5PropBasePropUser) -model_rebuild(WebhooksPullRequest5PropBasePropRepo) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropLicense) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropOwner) -model_rebuild(WebhooksPullRequest5PropBasePropRepoPropPermissions) -model_rebuild(WebhooksPullRequest5PropHead) -model_rebuild(WebhooksPullRequest5PropHeadPropUser) -model_rebuild(WebhooksPullRequest5PropHeadPropRepo) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropLicense) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropOwner) -model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropPermissions) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1) -model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent) -model_rebuild(WebhooksPullRequest5PropRequestedTeamsItems) -model_rebuild(WebhooksPullRequest5PropRequestedTeamsItemsPropParent) +model_rebuild(ProjectsV2) -__all__ = ( - "WebhooksPullRequest5", - "WebhooksPullRequest5PropAssignee", - "WebhooksPullRequest5PropAssigneesItems", - "WebhooksPullRequest5PropAutoMerge", - "WebhooksPullRequest5PropAutoMergePropEnabledBy", - "WebhooksPullRequest5PropLabelsItems", - "WebhooksPullRequest5PropMergedBy", - "WebhooksPullRequest5PropMilestone", - "WebhooksPullRequest5PropMilestonePropCreator", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof0", - "WebhooksPullRequest5PropUser", - "WebhooksPullRequest5PropLinks", - "WebhooksPullRequest5PropLinksPropComments", - "WebhooksPullRequest5PropLinksPropCommits", - "WebhooksPullRequest5PropLinksPropHtml", - "WebhooksPullRequest5PropLinksPropIssue", - "WebhooksPullRequest5PropLinksPropReviewComment", - "WebhooksPullRequest5PropLinksPropReviewComments", - "WebhooksPullRequest5PropLinksPropSelf", - "WebhooksPullRequest5PropLinksPropStatuses", - "WebhooksPullRequest5PropBase", - "WebhooksPullRequest5PropBasePropUser", - "WebhooksPullRequest5PropBasePropRepo", - "WebhooksPullRequest5PropBasePropRepoPropLicense", - "WebhooksPullRequest5PropBasePropRepoPropOwner", - "WebhooksPullRequest5PropBasePropRepoPropPermissions", - "WebhooksPullRequest5PropHead", - "WebhooksPullRequest5PropHeadPropUser", - "WebhooksPullRequest5PropHeadPropRepo", - "WebhooksPullRequest5PropHeadPropRepoPropLicense", - "WebhooksPullRequest5PropHeadPropRepoPropOwner", - "WebhooksPullRequest5PropHeadPropRepoPropPermissions", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent", - "WebhooksPullRequest5PropRequestedTeamsItems", - "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", -) +__all__ = ("ProjectsV2",) diff --git a/githubkit/versions/v2022_11_28/models/group_0408.py b/githubkit/versions/v2022_11_28/models/group_0408.py index 62047b0be..cf59e18a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0408.py +++ b/githubkit/versions/v2022_11_28/models/group_0408.py @@ -9,8 +9,8 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import Union, Literal from pydantic import Field @@ -19,169 +19,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksReviewComment(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: WebhooksReviewCommentPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: int = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhooksReviewCommentPropReactions = Field(title="Reactions") - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[WebhooksReviewCommentPropUser, None] = Field(title="User") - - -class WebhooksReviewCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksReviewCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksReviewCommentPropLinks(GitHubModel): - """WebhooksReviewCommentPropLinks""" - - html: WebhooksReviewCommentPropLinksPropHtml = Field(title="Link") - pull_request: WebhooksReviewCommentPropLinksPropPullRequest = Field(title="Link") - self_: WebhooksReviewCommentPropLinksPropSelf = Field(alias="self", title="Link") - - -class WebhooksReviewCommentPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksReviewCommentPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksReviewCommentPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -model_rebuild(WebhooksReviewComment) -model_rebuild(WebhooksReviewCommentPropReactions) -model_rebuild(WebhooksReviewCommentPropUser) -model_rebuild(WebhooksReviewCommentPropLinks) -model_rebuild(WebhooksReviewCommentPropLinksPropHtml) -model_rebuild(WebhooksReviewCommentPropLinksPropPullRequest) -model_rebuild(WebhooksReviewCommentPropLinksPropSelf) +class WebhooksProjectChanges(GitHubModel): + """WebhooksProjectChanges""" + + archived_at: Missing[WebhooksProjectChangesPropArchivedAt] = Field(default=UNSET) + + +class WebhooksProjectChangesPropArchivedAt(GitHubModel): + """WebhooksProjectChangesPropArchivedAt""" + + from_: Missing[Union[datetime, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[datetime, None]] = Field(default=UNSET) + + +model_rebuild(WebhooksProjectChanges) +model_rebuild(WebhooksProjectChangesPropArchivedAt) __all__ = ( - "WebhooksReviewComment", - "WebhooksReviewCommentPropReactions", - "WebhooksReviewCommentPropUser", - "WebhooksReviewCommentPropLinks", - "WebhooksReviewCommentPropLinksPropHtml", - "WebhooksReviewCommentPropLinksPropPullRequest", - "WebhooksReviewCommentPropLinksPropSelf", + "WebhooksProjectChanges", + "WebhooksProjectChangesPropArchivedAt", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0409.py b/githubkit/versions/v2022_11_28/models/group_0409.py index 672b54986..4f045f2bc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0409.py +++ b/githubkit/versions/v2022_11_28/models/group_0409.py @@ -18,93 +18,31 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class WebhooksReview(GitHubModel): - """WebhooksReview - - The review that was affected. - """ - - links: WebhooksReviewPropLinks = Field(alias="_links") - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="The text of the review.") - commit_id: str = Field(description="A commit SHA for the review.") - html_url: str = Field() - id: int = Field(description="Unique identifier of the review") - node_id: str = Field() - pull_request_url: str = Field() - state: str = Field() - submitted_at: Union[datetime, None] = Field() - user: Union[WebhooksReviewPropUser, None] = Field(title="User") +class ProjectsV2Item(GitHubModel): + """Projects v2 Item -class WebhooksReviewPropUser(GitHubModel): - """User""" + An item belonging to a project + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: float = Field() node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksReviewPropLinks(GitHubModel): - """WebhooksReviewPropLinks""" - - html: WebhooksReviewPropLinksPropHtml = Field(title="Link") - pull_request: WebhooksReviewPropLinksPropPullRequest = Field(title="Link") - - -class WebhooksReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhooksReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() + project_node_id: Missing[str] = Field(default=UNSET) + content_node_id: str = Field() + content_type: Literal["Issue", "PullRequest", "DraftIssue"] = Field( + title="Projects v2 Item Content Type", + description="The type of content tracked in a project item", + ) + creator: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + created_at: datetime = Field() + updated_at: datetime = Field() + archived_at: Union[datetime, None] = Field() -model_rebuild(WebhooksReview) -model_rebuild(WebhooksReviewPropUser) -model_rebuild(WebhooksReviewPropLinks) -model_rebuild(WebhooksReviewPropLinksPropHtml) -model_rebuild(WebhooksReviewPropLinksPropPullRequest) +model_rebuild(ProjectsV2Item) -__all__ = ( - "WebhooksReview", - "WebhooksReviewPropUser", - "WebhooksReviewPropLinks", - "WebhooksReviewPropLinksPropHtml", - "WebhooksReviewPropLinksPropPullRequest", -) +__all__ = ("ProjectsV2Item",) diff --git a/githubkit/versions/v2022_11_28/models/group_0410.py b/githubkit/versions/v2022_11_28/models/group_0410.py index 80c6a4678..48026565a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0410.py +++ b/githubkit/versions/v2022_11_28/models/group_0410.py @@ -9,8 +9,8 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal +from datetime import date, datetime from pydantic import Field @@ -18,142 +18,33 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser -class WebhooksRelease(GitHubModel): - """Release - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. +class ProjectsV2StatusUpdate(GitHubModel): + """Projects v2 Status Update + + An status update belonging to a project """ - assets: List[WebhooksReleasePropAssetsItems] = Field() - assets_url: str = Field() - author: Union[WebhooksReleasePropAuthor, None] = Field(title="User") - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() + id: float = Field() node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhooksReleasePropReactions] = Field( - default=UNSET, title="Reactions" - ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + project_node_id: Missing[str] = Field(default=UNSET) + creator: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhooksReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhooksReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") updated_at: datetime = Field() - uploader: Missing[Union[WebhooksReleasePropAssetsItemsPropUploader, None]] = Field( - default=UNSET, title="User" + status: Missing[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] = Field(default=UNSET) + start_date: Missing[date] = Field(default=UNSET) + target_date: Missing[date] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the status update" ) - url: str = Field() - - -class WebhooksReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksRelease) -model_rebuild(WebhooksReleasePropAuthor) -model_rebuild(WebhooksReleasePropReactions) -model_rebuild(WebhooksReleasePropAssetsItems) -model_rebuild(WebhooksReleasePropAssetsItemsPropUploader) +model_rebuild(ProjectsV2StatusUpdate) -__all__ = ( - "WebhooksRelease", - "WebhooksReleasePropAuthor", - "WebhooksReleasePropReactions", - "WebhooksReleasePropAssetsItems", - "WebhooksReleasePropAssetsItemsPropUploader", -) +__all__ = ("ProjectsV2StatusUpdate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0411.py b/githubkit/versions/v2022_11_28/models/group_0411.py index f09235c81..19ef9173c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0411.py +++ b/githubkit/versions/v2022_11_28/models/group_0411.py @@ -18,142 +18,126 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0037 import Milestone +from .group_0224 import AutoMerge +from .group_0001 import SimpleUser +from .group_0025 import TeamSimple +from .group_0305 import PullRequestPropBase +from .group_0307 import PullRequestPropLinks +from .group_0304 import PullRequestPropHead, PullRequestPropLabelsItems -class WebhooksRelease1(GitHubModel): - """Release - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ +class PullRequestWebhook(GitHubModel): + """PullRequestWebhook""" - assets: List[Union[WebhooksRelease1PropAssetsItems, None]] = Field() - assets_url: str = Field() - author: Union[WebhooksRelease1PropAuthor, None] = Field(title="User") - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() + url: str = Field() id: int = Field() - name: Union[str, None] = Field() node_id: str = Field() - prerelease: bool = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhooksRelease1PropReactions] = Field( - default=UNSET, title="Reactions" + html_url: str = Field() + diff_url: str = Field() + patch_url: str = Field() + issue_url: str = Field() + commits_url: str = Field() + review_comments_url: str = Field() + review_comment_url: str = Field() + comments_url: str = Field() + statuses_url: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhooksRelease1PropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() + locked: bool = Field() + title: str = Field(description="The title of the pull request.") + user: SimpleUser = Field(title="Simple User", description="A GitHub user.") + body: Union[str, None] = Field() + labels: List[PullRequestPropLabelsItems] = Field() + milestone: Union[None, Milestone] = Field() + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") updated_at: datetime = Field() - uploader: Missing[Union[WebhooksRelease1PropAssetsItemsPropUploader, None]] = Field( - default=UNSET, title="User" + closed_at: Union[datetime, None] = Field() + merged_at: Union[datetime, None] = Field() + merge_commit_sha: Union[str, None] = Field() + assignee: Union[None, SimpleUser] = Field() + assignees: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) + requested_reviewers: Missing[Union[List[SimpleUser], None]] = Field(default=UNSET) + requested_teams: Missing[Union[List[TeamSimple], None]] = Field(default=UNSET) + head: PullRequestPropHead = Field() + base: PullRequestPropBase = Field() + links: PullRequestPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="author_association", + description="How the author is associated with the repository.", + ) + auto_merge: Union[AutoMerge, None] = Field( + title="Auto merge", description="The status of auto merging a pull request." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="Indicates whether or not the pull request is a draft.", + ) + merged: bool = Field() + mergeable: Union[bool, None] = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: str = Field() + merged_by: Union[None, SimpleUser] = Field() + comments: int = Field() + review_comments: int = Field() + maintainer_can_modify: bool = Field( + description="Indicates whether maintainers can modify the pull request." + ) + commits: int = Field() + additions: int = Field() + deletions: int = Field() + changed_files: int = Field() + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to allow updating the pull request's branch.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged.", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", ) - url: str = Field() - - -class WebhooksRelease1PropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksRelease1PropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhooksRelease1PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() -model_rebuild(WebhooksRelease1) -model_rebuild(WebhooksRelease1PropAssetsItems) -model_rebuild(WebhooksRelease1PropAssetsItemsPropUploader) -model_rebuild(WebhooksRelease1PropAuthor) -model_rebuild(WebhooksRelease1PropReactions) +model_rebuild(PullRequestWebhook) -__all__ = ( - "WebhooksRelease1", - "WebhooksRelease1PropAssetsItems", - "WebhooksRelease1PropAssetsItemsPropUploader", - "WebhooksRelease1PropAuthor", - "WebhooksRelease1PropReactions", -) +__all__ = ("PullRequestWebhook",) diff --git a/githubkit/versions/v2022_11_28/models/group_0412.py b/githubkit/versions/v2022_11_28/models/group_0412.py index ad502fe9e..c72e6b1e8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0412.py +++ b/githubkit/versions/v2022_11_28/models/group_0412.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -19,63 +18,46 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksAlert(GitHubModel): - """Repository Vulnerability Alert Alert +class PullRequestWebhookAllof1(GitHubModel): + """PullRequestWebhookAllof1""" - The security alert of the vulnerable dependency. - """ - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_reason: Missing[str] = Field(default=UNSET) - dismissed_at: Missing[str] = Field(default=UNSET) - dismisser: Missing[Union[WebhooksAlertPropDismisser, None]] = Field( - default=UNSET, title="User" + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Whether to allow updating the pull request's branch.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged.", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description='The default value for a merge commit title.\n- `PR_TITLE` - default to the pull request\'s title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., "Merge pull request #123 from branch-name").', + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.**", ) - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["open"] = Field() - - -class WebhooksAlertPropDismisser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhooksAlert) -model_rebuild(WebhooksAlertPropDismisser) +model_rebuild(PullRequestWebhookAllof1) -__all__ = ( - "WebhooksAlert", - "WebhooksAlertPropDismisser", -) +__all__ = ("PullRequestWebhookAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0413.py b/githubkit/versions/v2022_11_28/models/group_0413.py index fcf080f13..0b9614fd6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0413.py +++ b/githubkit/versions/v2022_11_28/models/group_0413.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,68 +18,1054 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class WebhooksPullRequest5(GitHubModel): + """Pull Request""" -class SecretScanningAlertWebhook(GitHubModel): - """SecretScanningAlertWebhook""" - - number: Missing[int] = Field( - default=UNSET, description="The security alert number." + links: WebhooksPullRequest5PropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhooksPullRequest5PropAssignee, None] = Field(title="User") + assignees: List[Union[WebhooksPullRequest5PropAssigneesItems, None]] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhooksPullRequest5PropAutoMerge, None] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhooksPullRequest5PropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." ) - created_at: Missing[datetime] = Field( + head: WebhooksPullRequest5PropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhooksPullRequest5PropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( default=UNSET, - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="Indicates whether maintainers can modify the pull request.", ) - updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) - url: Missing[str] = Field( - default=UNSET, description="The REST API URL of the alert resource." + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[Union[WebhooksPullRequest5PropMergedBy, None]] = Field( + default=UNSET, title="User" ) - html_url: Missing[str] = Field( - default=UNSET, description="The GitHub URL of the alert resource." + milestone: Union[WebhooksPullRequest5PropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - locations_url: Missing[str] = Field( - default=UNSET, - description="The REST API URL of the code locations for this alert.", + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." ) - resolution: Missing[ + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ Union[ + WebhooksPullRequest5PropRequestedReviewersItemsOneof0, None, - Literal[ - "false_positive", - "wont_fix", - "revoked", - "used_in_tests", - "pattern_deleted", - "pattern_edited", - ], + WebhooksPullRequest5PropRequestedReviewersItemsOneof1, ] - ] = Field(default=UNSET, description="The reason for resolving the alert.") - resolved_at: Missing[Union[datetime, None]] = Field( + ] = Field() + requested_teams: List[WebhooksPullRequest5PropRequestedTeamsItems] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhooksPullRequest5PropUser, None] = Field(title="User") + + +class WebhooksPullRequest5PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +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) + + +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) + + +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) + + +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) + + +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) + + +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) + + +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) + + +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 time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) - 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." + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", ) - secret_type: Missing[str] = Field( - default=UNSET, description="The type of secret that secret scanning detected." + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_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" ) - validity: Missing[Literal["active", "inactive", "unknown"]] = Field( - default=UNSET, description="The token status as of the latest validity check." + permissions: Missing[WebhooksPullRequest5PropHeadPropRepoPropPermissions] = Field( + default=UNSET ) - push_protection_bypassed: Missing[Union[bool, None]] = Field( + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( default=UNSET, - description="Whether push protection was bypassed for the detected secret.", + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default 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).", + ) ) - push_protection_bypassed_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) - push_protection_bypassed_at: Missing[Union[datetime, None]] = 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() + use_squash_pr_title_as_default: Missing[bool] = Field( default=UNSET, - description="The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="Whether a squash merge commit can use the pull request title as default.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class 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) + + +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(SecretScanningAlertWebhook) +model_rebuild(WebhooksPullRequest5) +model_rebuild(WebhooksPullRequest5PropAssignee) +model_rebuild(WebhooksPullRequest5PropAssigneesItems) +model_rebuild(WebhooksPullRequest5PropAutoMerge) +model_rebuild(WebhooksPullRequest5PropAutoMergePropEnabledBy) +model_rebuild(WebhooksPullRequest5PropLabelsItems) +model_rebuild(WebhooksPullRequest5PropMergedBy) +model_rebuild(WebhooksPullRequest5PropMilestone) +model_rebuild(WebhooksPullRequest5PropMilestonePropCreator) +model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof0) +model_rebuild(WebhooksPullRequest5PropUser) +model_rebuild(WebhooksPullRequest5PropLinks) +model_rebuild(WebhooksPullRequest5PropLinksPropComments) +model_rebuild(WebhooksPullRequest5PropLinksPropCommits) +model_rebuild(WebhooksPullRequest5PropLinksPropHtml) +model_rebuild(WebhooksPullRequest5PropLinksPropIssue) +model_rebuild(WebhooksPullRequest5PropLinksPropReviewComment) +model_rebuild(WebhooksPullRequest5PropLinksPropReviewComments) +model_rebuild(WebhooksPullRequest5PropLinksPropSelf) +model_rebuild(WebhooksPullRequest5PropLinksPropStatuses) +model_rebuild(WebhooksPullRequest5PropBase) +model_rebuild(WebhooksPullRequest5PropBasePropUser) +model_rebuild(WebhooksPullRequest5PropBasePropRepo) +model_rebuild(WebhooksPullRequest5PropBasePropRepoPropLicense) +model_rebuild(WebhooksPullRequest5PropBasePropRepoPropOwner) +model_rebuild(WebhooksPullRequest5PropBasePropRepoPropPermissions) +model_rebuild(WebhooksPullRequest5PropHead) +model_rebuild(WebhooksPullRequest5PropHeadPropUser) +model_rebuild(WebhooksPullRequest5PropHeadPropRepo) +model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropLicense) +model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropOwner) +model_rebuild(WebhooksPullRequest5PropHeadPropRepoPropPermissions) +model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1) +model_rebuild(WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent) +model_rebuild(WebhooksPullRequest5PropRequestedTeamsItems) +model_rebuild(WebhooksPullRequest5PropRequestedTeamsItemsPropParent) -__all__ = ("SecretScanningAlertWebhook",) +__all__ = ( + "WebhooksPullRequest5", + "WebhooksPullRequest5PropAssignee", + "WebhooksPullRequest5PropAssigneesItems", + "WebhooksPullRequest5PropAutoMerge", + "WebhooksPullRequest5PropAutoMergePropEnabledBy", + "WebhooksPullRequest5PropLabelsItems", + "WebhooksPullRequest5PropMergedBy", + "WebhooksPullRequest5PropMilestone", + "WebhooksPullRequest5PropMilestonePropCreator", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof0", + "WebhooksPullRequest5PropUser", + "WebhooksPullRequest5PropLinks", + "WebhooksPullRequest5PropLinksPropComments", + "WebhooksPullRequest5PropLinksPropCommits", + "WebhooksPullRequest5PropLinksPropHtml", + "WebhooksPullRequest5PropLinksPropIssue", + "WebhooksPullRequest5PropLinksPropReviewComment", + "WebhooksPullRequest5PropLinksPropReviewComments", + "WebhooksPullRequest5PropLinksPropSelf", + "WebhooksPullRequest5PropLinksPropStatuses", + "WebhooksPullRequest5PropBase", + "WebhooksPullRequest5PropBasePropUser", + "WebhooksPullRequest5PropBasePropRepo", + "WebhooksPullRequest5PropBasePropRepoPropLicense", + "WebhooksPullRequest5PropBasePropRepoPropOwner", + "WebhooksPullRequest5PropBasePropRepoPropPermissions", + "WebhooksPullRequest5PropHead", + "WebhooksPullRequest5PropHeadPropUser", + "WebhooksPullRequest5PropHeadPropRepo", + "WebhooksPullRequest5PropHeadPropRepoPropLicense", + "WebhooksPullRequest5PropHeadPropRepoPropOwner", + "WebhooksPullRequest5PropHeadPropRepoPropPermissions", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent", + "WebhooksPullRequest5PropRequestedTeamsItems", + "WebhooksPullRequest5PropRequestedTeamsItemsPropParent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0414.py b/githubkit/versions/v2022_11_28/models/group_0414.py index b8cdae3ae..62047b0be 100644 --- a/githubkit/versions/v2022_11_28/models/group_0414.py +++ b/githubkit/versions/v2022_11_28/models/group_0414.py @@ -9,103 +9,179 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhooksSecurityAdvisory(GitHubModel): - """WebhooksSecurityAdvisory +class WebhooksReviewComment(GitHubModel): + """Pull Request Review Comment - The details of the security advisory, including summary, description, and - severity. + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. """ - cvss: WebhooksSecurityAdvisoryPropCvss = Field() - cwes: List[WebhooksSecurityAdvisoryPropCwesItems] = Field() - description: str = Field() - ghsa_id: str = Field() - identifiers: List[WebhooksSecurityAdvisoryPropIdentifiersItems] = Field() - published_at: str = Field() - references: List[WebhooksSecurityAdvisoryPropReferencesItems] = Field() - severity: str = Field() - summary: str = Field() - updated_at: str = Field() - vulnerabilities: List[WebhooksSecurityAdvisoryPropVulnerabilitiesItems] = Field() - withdrawn_at: Union[str, None] = Field() - - -class WebhooksSecurityAdvisoryPropCvss(GitHubModel): - """WebhooksSecurityAdvisoryPropCvss""" - - score: float = Field() - vector_string: Union[str, None] = Field() - - -class WebhooksSecurityAdvisoryPropCwesItems(GitHubModel): - """WebhooksSecurityAdvisoryPropCwesItems""" - - cwe_id: str = Field() - name: str = Field() + links: WebhooksReviewCommentPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: int = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhooksReviewCommentPropReactions = Field(title="Reactions") + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[WebhooksReviewCommentPropUser, None] = Field(title="User") + + +class WebhooksReviewCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhooksSecurityAdvisoryPropIdentifiersItems(GitHubModel): - """WebhooksSecurityAdvisoryPropIdentifiersItems""" +class WebhooksReviewCommentPropUser(GitHubModel): + """User""" - type: str = Field() - value: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhooksSecurityAdvisoryPropReferencesItems(GitHubModel): - """WebhooksSecurityAdvisoryPropReferencesItems""" +class WebhooksReviewCommentPropLinks(GitHubModel): + """WebhooksReviewCommentPropLinks""" - url: str = Field() + html: WebhooksReviewCommentPropLinksPropHtml = Field(title="Link") + pull_request: WebhooksReviewCommentPropLinksPropPullRequest = Field(title="Link") + self_: WebhooksReviewCommentPropLinksPropSelf = Field(alias="self", title="Link") -class WebhooksSecurityAdvisoryPropVulnerabilitiesItems(GitHubModel): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" +class WebhooksReviewCommentPropLinksPropHtml(GitHubModel): + """Link""" - first_patched_version: Union[ - WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, None - ] = Field() - package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() - severity: str = Field() - vulnerable_version_range: str = Field() + href: str = Field() -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( - GitHubModel -): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" +class WebhooksReviewCommentPropLinksPropPullRequest(GitHubModel): + """Link""" - identifier: str = Field() + href: str = Field() -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage(GitHubModel): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" +class WebhooksReviewCommentPropLinksPropSelf(GitHubModel): + """Link""" - ecosystem: str = Field() - name: str = Field() + href: str = Field() -model_rebuild(WebhooksSecurityAdvisory) -model_rebuild(WebhooksSecurityAdvisoryPropCvss) -model_rebuild(WebhooksSecurityAdvisoryPropCwesItems) -model_rebuild(WebhooksSecurityAdvisoryPropIdentifiersItems) -model_rebuild(WebhooksSecurityAdvisoryPropReferencesItems) -model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItems) -model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion) -model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage) +model_rebuild(WebhooksReviewComment) +model_rebuild(WebhooksReviewCommentPropReactions) +model_rebuild(WebhooksReviewCommentPropUser) +model_rebuild(WebhooksReviewCommentPropLinks) +model_rebuild(WebhooksReviewCommentPropLinksPropHtml) +model_rebuild(WebhooksReviewCommentPropLinksPropPullRequest) +model_rebuild(WebhooksReviewCommentPropLinksPropSelf) __all__ = ( - "WebhooksSecurityAdvisory", - "WebhooksSecurityAdvisoryPropCvss", - "WebhooksSecurityAdvisoryPropCwesItems", - "WebhooksSecurityAdvisoryPropIdentifiersItems", - "WebhooksSecurityAdvisoryPropReferencesItems", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItems", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", + "WebhooksReviewComment", + "WebhooksReviewCommentPropReactions", + "WebhooksReviewCommentPropUser", + "WebhooksReviewCommentPropLinks", + "WebhooksReviewCommentPropLinksPropHtml", + "WebhooksReviewCommentPropLinksPropPullRequest", + "WebhooksReviewCommentPropLinksPropSelf", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0415.py b/githubkit/versions/v2022_11_28/models/group_0415.py index 55fa41c47..672b54986 100644 --- a/githubkit/versions/v2022_11_28/models/group_0415.py +++ b/githubkit/versions/v2022_11_28/models/group_0415.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -18,45 +19,38 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksSponsorship(GitHubModel): - """WebhooksSponsorship""" +class WebhooksReview(GitHubModel): + """WebhooksReview - created_at: str = Field() - maintainer: Missing[WebhooksSponsorshipPropMaintainer] = Field(default=UNSET) - node_id: str = Field() - privacy_level: str = Field() - sponsor: Union[WebhooksSponsorshipPropSponsor, None] = Field(title="User") - sponsorable: Union[WebhooksSponsorshipPropSponsorable, None] = Field(title="User") - tier: WebhooksSponsorshipPropTier = Field( - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", - ) - - -class WebhooksSponsorshipPropMaintainer(GitHubModel): - """WebhooksSponsorshipPropMaintainer""" + The review that was affected. + """ - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + links: WebhooksReviewPropLinks = Field(alias="_links") + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="The text of the review.") + commit_id: str = Field(description="A commit SHA for the review.") + html_url: str = Field() + id: int = Field(description="Unique identifier of the review") + node_id: str = Field() + pull_request_url: str = Field() + state: str = Field() + submitted_at: Union[datetime, None] = Field() + user: Union[WebhooksReviewPropUser, None] = Field(title="User") -class WebhooksSponsorshipPropSponsor(GitHubModel): +class WebhooksReviewPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -82,61 +76,35 @@ class WebhooksSponsorshipPropSponsor(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhooksSponsorshipPropSponsorable(GitHubModel): - """User""" +class WebhooksReviewPropLinks(GitHubModel): + """WebhooksReviewPropLinks""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + html: WebhooksReviewPropLinksPropHtml = Field(title="Link") + pull_request: WebhooksReviewPropLinksPropPullRequest = Field(title="Link") -class WebhooksSponsorshipPropTier(GitHubModel): - """Sponsorship Tier +class WebhooksReviewPropLinksPropHtml(GitHubModel): + """Link""" - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ + href: str = Field() - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() - node_id: str = Field() + +class WebhooksReviewPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() -model_rebuild(WebhooksSponsorship) -model_rebuild(WebhooksSponsorshipPropMaintainer) -model_rebuild(WebhooksSponsorshipPropSponsor) -model_rebuild(WebhooksSponsorshipPropSponsorable) -model_rebuild(WebhooksSponsorshipPropTier) +model_rebuild(WebhooksReview) +model_rebuild(WebhooksReviewPropUser) +model_rebuild(WebhooksReviewPropLinks) +model_rebuild(WebhooksReviewPropLinksPropHtml) +model_rebuild(WebhooksReviewPropLinksPropPullRequest) __all__ = ( - "WebhooksSponsorship", - "WebhooksSponsorshipPropMaintainer", - "WebhooksSponsorshipPropSponsor", - "WebhooksSponsorshipPropSponsorable", - "WebhooksSponsorshipPropTier", + "WebhooksReview", + "WebhooksReviewPropUser", + "WebhooksReviewPropLinks", + "WebhooksReviewPropLinksPropHtml", + "WebhooksReviewPropLinksPropPullRequest", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0416.py b/githubkit/versions/v2022_11_28/models/group_0416.py index 9ce36e738..80c6a4678 100644 --- a/githubkit/versions/v2022_11_28/models/group_0416.py +++ b/githubkit/versions/v2022_11_28/models/group_0416.py @@ -9,6 +9,9 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,47 +19,141 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksChanges8(GitHubModel): - """WebhooksChanges8""" - - tier: WebhooksChanges8PropTier = Field() +class WebhooksRelease(GitHubModel): + """Release + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ -class WebhooksChanges8PropTier(GitHubModel): - """WebhooksChanges8PropTier""" - - from_: WebhooksChanges8PropTierPropFrom = Field( - alias="from", - title="Sponsorship Tier", - description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", + assets: List[WebhooksReleasePropAssetsItems] = Field() + assets_url: str = Field() + author: Union[WebhooksReleasePropAuthor, None] = Field(title="User") + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." ) - - -class WebhooksChanges8PropTierPropFrom(GitHubModel): - """Sponsorship Tier - - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhooksReleasePropReactions] = Field( + default=UNSET, title="Reactions" + ) + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." + ) + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() + + +class WebhooksReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksReleasePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhooksReleasePropAssetsItems(GitHubModel): + """Release Asset + + Data related to a release. """ - created_at: str = Field() - description: str = Field() - is_custom_ammount: Missing[bool] = Field(default=UNSET) - is_custom_amount: Missing[bool] = Field(default=UNSET) - is_one_time: bool = Field() - monthly_price_in_cents: int = Field() - monthly_price_in_dollars: int = Field() - name: str = Field() + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") node_id: str = Field() - - -model_rebuild(WebhooksChanges8) -model_rebuild(WebhooksChanges8PropTier) -model_rebuild(WebhooksChanges8PropTierPropFrom) + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[Union[WebhooksReleasePropAssetsItemsPropUploader, None]] = Field( + default=UNSET, title="User" + ) + url: str = Field() + + +class WebhooksReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhooksRelease) +model_rebuild(WebhooksReleasePropAuthor) +model_rebuild(WebhooksReleasePropReactions) +model_rebuild(WebhooksReleasePropAssetsItems) +model_rebuild(WebhooksReleasePropAssetsItemsPropUploader) __all__ = ( - "WebhooksChanges8", - "WebhooksChanges8PropTier", - "WebhooksChanges8PropTierPropFrom", + "WebhooksRelease", + "WebhooksReleasePropAuthor", + "WebhooksReleasePropReactions", + "WebhooksReleasePropAssetsItems", + "WebhooksReleasePropAssetsItemsPropUploader", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0417.py b/githubkit/versions/v2022_11_28/models/group_0417.py index f54fe0e54..f09235c81 100644 --- a/githubkit/versions/v2022_11_28/models/group_0417.py +++ b/githubkit/versions/v2022_11_28/models/group_0417.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,65 +19,141 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhooksTeam1(GitHubModel): - """Team +class WebhooksRelease1(GitHubModel): + """Release - Groups of organization members that gives permissions on specified repositories. + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. """ - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" + assets: List[Union[WebhooksRelease1PropAssetsItems, None]] = Field() + assets_url: str = Field() + author: Union[WebhooksRelease1PropAuthor, None] = Field(title="User") + body: Union[str, None] = Field() + created_at: Union[datetime, None] = Field() + discussion_url: Missing[str] = Field(default=UNSET) + draft: bool = Field(description="Whether the release is a draft or published") + html_url: str = Field() + id: int = Field() + name: Union[str, None] = Field() + node_id: str = Field() + prerelease: bool = Field( + description="Whether the release is identified as a prerelease or a full release." ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[Union[WebhooksTeam1PropParent, None]] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + published_at: Union[datetime, None] = Field() + reactions: Missing[WebhooksRelease1PropReactions] = Field( + default=UNSET, title="Reactions" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="Whether team members will receive notifications when their team is @mentioned", + tag_name: str = Field(description="The name of the tag.") + tarball_url: Union[str, None] = Field() + target_commitish: str = Field( + description="Specifies the commitish value that determines where the Git tag is created from." ) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + upload_url: str = Field() + url: str = Field() + zipball_url: Union[str, None] = Field() -class WebhooksTeam1PropParent(GitHubModel): - """WebhooksTeam1PropParent""" +class WebhooksRelease1PropAssetsItems(GitHubModel): + """Release Asset - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") + Data related to a release. + """ + + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[Union[WebhooksRelease1PropAssetsItemsPropUploader, None]] = Field( + default=UNSET, title="User" ) - privacy: Literal["open", "closed", "secret"] = Field() - notification_setting: Literal["notifications_enabled", "notifications_disabled"] = ( - Field( - description="Whether team members will receive notifications when their team is @mentioned" - ) - ) - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + url: str = Field() + +class WebhooksRelease1PropAssetsItemsPropUploader(GitHubModel): + """User""" -model_rebuild(WebhooksTeam1) -model_rebuild(WebhooksTeam1PropParent) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksRelease1PropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhooksRelease1PropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +model_rebuild(WebhooksRelease1) +model_rebuild(WebhooksRelease1PropAssetsItems) +model_rebuild(WebhooksRelease1PropAssetsItemsPropUploader) +model_rebuild(WebhooksRelease1PropAuthor) +model_rebuild(WebhooksRelease1PropReactions) __all__ = ( - "WebhooksTeam1", - "WebhooksTeam1PropParent", + "WebhooksRelease1", + "WebhooksRelease1PropAssetsItems", + "WebhooksRelease1PropAssetsItemsPropUploader", + "WebhooksRelease1PropAuthor", + "WebhooksRelease1PropReactions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0418.py b/githubkit/versions/v2022_11_28/models/group_0418.py index f17d41390..ad502fe9e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0418.py +++ b/githubkit/versions/v2022_11_28/models/group_0418.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,42 +18,64 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +class WebhooksAlert(GitHubModel): + """Repository Vulnerability Alert Alert -class WebhookBranchProtectionConfigurationDisabled(GitHubModel): - """branch protection configuration disabled event""" + The security alert of the vulnerable dependency. + """ - action: Literal["disabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + 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() + id: int = Field() + node_id: str = Field() + number: int = Field() + severity: str = Field() + state: Literal["open"] = Field() + + +class WebhooksAlertPropDismisser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookBranchProtectionConfigurationDisabled) +model_rebuild(WebhooksAlert) +model_rebuild(WebhooksAlertPropDismisser) -__all__ = ("WebhookBranchProtectionConfigurationDisabled",) +__all__ = ( + "WebhooksAlert", + "WebhooksAlertPropDismisser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0419.py b/githubkit/versions/v2022_11_28/models/group_0419.py index 5cd18e67c..6a3fe6cc5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0419.py +++ b/githubkit/versions/v2022_11_28/models/group_0419.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,42 +18,72 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0001 import SimpleUser -class WebhookBranchProtectionConfigurationEnabled(GitHubModel): - """branch protection configuration enabled event""" +class SecretScanningAlertWebhook(GitHubModel): + """SecretScanningAlertWebhook""" - action: Literal["enabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + number: Missing[int] = Field( + default=UNSET, description="The security alert number." + ) + created_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + updated_at: Missing[Union[None, datetime]] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The REST API URL of the alert resource." + ) + html_url: Missing[str] = Field( + default=UNSET, description="The GitHub URL of the alert resource." + ) + locations_url: Missing[str] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + description="The REST API URL of the code locations for this alert.", ) - installation: Missing[SimpleInstallation] = Field( + resolution: Missing[ + Union[ + None, + Literal[ + "false_positive", + "wont_fix", + "revoked", + "used_in_tests", + "pattern_deleted", + "pattern_edited", + ], + ] + ] = Field(default=UNSET, description="The reason for resolving the alert.") + resolved_at: Missing[Union[datetime, None]] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + resolved_by: Missing[Union[None, SimpleUser]] = Field(default=UNSET) + resolution_comment: Missing[Union[str, None]] = Field( + default=UNSET, description="An optional comment to resolve an alert." + ) + secret_type: Missing[str] = Field( + default=UNSET, description="The type of secret that secret scanning detected." + ) + secret_type_display_name: Missing[str] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description='User-friendly name for the detected secret, matching the `secret_type`.\nFor a list of built-in patterns, see "[Secret scanning patterns](https://docs.github.com/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)."', ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + validity: Missing[Literal["active", "inactive", "unknown"]] = Field( + default=UNSET, description="The token status as of the latest validity check." ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + 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`.", ) -model_rebuild(WebhookBranchProtectionConfigurationEnabled) +model_rebuild(SecretScanningAlertWebhook) -__all__ = ("WebhookBranchProtectionConfigurationEnabled",) +__all__ = ("SecretScanningAlertWebhook",) diff --git a/githubkit/versions/v2022_11_28/models/group_0420.py b/githubkit/versions/v2022_11_28/models/group_0420.py index fa854ab73..b8cdae3ae 100644 --- a/githubkit/versions/v2022_11_28/models/group_0420.py +++ b/githubkit/versions/v2022_11_28/models/group_0420.py @@ -9,55 +9,103 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0372 import WebhooksRule -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks - - -class WebhookBranchProtectionRuleCreated(GitHubModel): - """branch protection rule created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookBranchProtectionRuleCreated) - -__all__ = ("WebhookBranchProtectionRuleCreated",) + +class WebhooksSecurityAdvisory(GitHubModel): + """WebhooksSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhooksSecurityAdvisoryPropCvss = Field() + cwes: List[WebhooksSecurityAdvisoryPropCwesItems] = Field() + description: str = Field() + ghsa_id: str = Field() + identifiers: List[WebhooksSecurityAdvisoryPropIdentifiersItems] = Field() + published_at: str = Field() + references: List[WebhooksSecurityAdvisoryPropReferencesItems] = Field() + severity: str = Field() + summary: str = Field() + updated_at: str = Field() + vulnerabilities: List[WebhooksSecurityAdvisoryPropVulnerabilitiesItems] = Field() + withdrawn_at: Union[str, None] = Field() + + +class WebhooksSecurityAdvisoryPropCvss(GitHubModel): + """WebhooksSecurityAdvisoryPropCvss""" + + score: float = Field() + vector_string: Union[str, None] = Field() + + +class WebhooksSecurityAdvisoryPropCwesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropCwesItems""" + + cwe_id: str = Field() + name: str = Field() + + +class WebhooksSecurityAdvisoryPropIdentifiersItems(GitHubModel): + """WebhooksSecurityAdvisoryPropIdentifiersItems""" + + type: str = Field() + value: str = Field() + + +class WebhooksSecurityAdvisoryPropReferencesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropReferencesItems""" + + url: str = Field() + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItems(GitHubModel): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion, None + ] = Field() + package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage = Field() + severity: str = Field() + vulnerable_version_range: str = Field() + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion( + GitHubModel +): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" + + identifier: str = Field() + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage(GitHubModel): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" + + ecosystem: str = Field() + name: str = Field() + + +model_rebuild(WebhooksSecurityAdvisory) +model_rebuild(WebhooksSecurityAdvisoryPropCvss) +model_rebuild(WebhooksSecurityAdvisoryPropCwesItems) +model_rebuild(WebhooksSecurityAdvisoryPropIdentifiersItems) +model_rebuild(WebhooksSecurityAdvisoryPropReferencesItems) +model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItems) +model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion) +model_rebuild(WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage) + +__all__ = ( + "WebhooksSecurityAdvisory", + "WebhooksSecurityAdvisoryPropCvss", + "WebhooksSecurityAdvisoryPropCwesItems", + "WebhooksSecurityAdvisoryPropIdentifiersItems", + "WebhooksSecurityAdvisoryPropReferencesItems", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItems", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0421.py b/githubkit/versions/v2022_11_28/models/group_0421.py index 86fc4e30a..55fa41c47 100644 --- a/githubkit/versions/v2022_11_28/models/group_0421.py +++ b/githubkit/versions/v2022_11_28/models/group_0421.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,47 +17,126 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0372 import WebhooksRule -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +class WebhooksSponsorship(GitHubModel): + """WebhooksSponsorship""" -class WebhookBranchProtectionRuleDeleted(GitHubModel): - """branch protection rule deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + 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.", ) -model_rebuild(WebhookBranchProtectionRuleDeleted) +class WebhooksSponsorshipPropMaintainer(GitHubModel): + """WebhooksSponsorshipPropMaintainer""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +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) + + +class WebhooksSponsorshipPropTier(GitHubModel): + """Sponsorship Tier + + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. + """ + + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() + name: str = Field() + node_id: str = Field() + + +model_rebuild(WebhooksSponsorship) +model_rebuild(WebhooksSponsorshipPropMaintainer) +model_rebuild(WebhooksSponsorshipPropSponsor) +model_rebuild(WebhooksSponsorshipPropSponsorable) +model_rebuild(WebhooksSponsorshipPropTier) -__all__ = ("WebhookBranchProtectionRuleDeleted",) +__all__ = ( + "WebhooksSponsorship", + "WebhooksSponsorshipPropMaintainer", + "WebhooksSponsorshipPropSponsor", + "WebhooksSponsorshipPropSponsorable", + "WebhooksSponsorshipPropTier", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0422.py b/githubkit/versions/v2022_11_28/models/group_0422.py index 389dfb3be..9ce36e738 100644 --- a/githubkit/versions/v2022_11_28/models/group_0422.py +++ b/githubkit/versions/v2022_11_28/models/group_0422.py @@ -9,164 +9,54 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0372 import WebhooksRule -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks - - -class WebhookBranchProtectionRuleEdited(GitHubModel): - """branch protection rule edited event""" - - action: Literal["edited"] = Field() - changes: Missing[WebhookBranchProtectionRuleEditedPropChanges] = Field( - default=UNSET, - description="If the action was `edited`, the changes to the rule.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -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) - required_status_checks: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks - ] = Field(default=UNSET) - required_status_checks_enforcement_level: Missing[ - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel - ] = Field(default=UNSET) - -class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" +class WebhooksChanges8(GitHubModel): + """WebhooksChanges8""" - from_: Union[bool, None] = Field(alias="from") + tier: WebhooksChanges8PropTier = Field() -class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" +class WebhooksChanges8PropTier(GitHubModel): + """WebhooksChanges8PropTier""" - 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 WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks(GitHubModel): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + from_: WebhooksChanges8PropTierPropFrom = Field( + alias="from", + title="Sponsorship Tier", + description="The `tier_changed` and `pending_tier_change` will include the original tier before the change or pending change. For more information, see the pending tier change payload.", + ) - from_: List[str] = Field(alias="from") +class WebhooksChanges8PropTierPropFrom(GitHubModel): + """Sponsorship Tier -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel( - GitHubModel -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL - evel + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + created_at: str = Field() + description: str = Field() + is_custom_ammount: Missing[bool] = Field(default=UNSET) + is_custom_amount: Missing[bool] = Field(default=UNSET) + is_one_time: bool = Field() + monthly_price_in_cents: int = Field() + monthly_price_in_dollars: int = Field() + name: str = Field() + node_id: str = Field() -model_rebuild(WebhookBranchProtectionRuleEdited) -model_rebuild(WebhookBranchProtectionRuleEditedPropChanges) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly -) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel -) -model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks) -model_rebuild( - WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel -) +model_rebuild(WebhooksChanges8) +model_rebuild(WebhooksChanges8PropTier) +model_rebuild(WebhooksChanges8PropTierPropFrom) __all__ = ( - "WebhookBranchProtectionRuleEdited", - "WebhookBranchProtectionRuleEditedPropChanges", - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", + "WebhooksChanges8", + "WebhooksChanges8PropTier", + "WebhooksChanges8PropTierPropFrom", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0423.py b/githubkit/versions/v2022_11_28/models/group_0423.py index d33d618c2..f54fe0e54 100644 --- a/githubkit/versions/v2022_11_28/models/group_0423.py +++ b/githubkit/versions/v2022_11_28/models/group_0423.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,41 +17,66 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0374 import CheckRunWithSimpleCheckSuite +class WebhooksTeam1(GitHubModel): + """Team -class WebhookCheckRunCompleted(GitHubModel): - """Check Run Completed Event""" + Groups of organization members that gives permissions on specified repositories. + """ - action: Literal["completed"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" ) - installation: Missing[SimpleInstallation] = Field( + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[Union[WebhooksTeam1PropParent, None]] = Field(default=UNSET) + permission: Missing[str] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + description="Permission that the team will have for its repositories", ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="Whether team members will receive notifications when their team is @mentioned", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhooksTeam1PropParent(GitHubModel): + """WebhooksTeam1PropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + 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(WebhookCheckRunCompleted) +model_rebuild(WebhooksTeam1) +model_rebuild(WebhooksTeam1PropParent) -__all__ = ("WebhookCheckRunCompleted",) +__all__ = ( + "WebhooksTeam1", + "WebhooksTeam1PropParent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0424.py b/githubkit/versions/v2022_11_28/models/group_0424.py index 15f0118a0..160d0ebcc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0424.py +++ b/githubkit/versions/v2022_11_28/models/group_0424.py @@ -9,22 +9,50 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookCheckRunCompletedFormEncoded(GitHubModel): - """Check Run Completed Event - The check_run.completed webhook encoded with URL encoding - """ +class WebhookBranchProtectionConfigurationDisabled(GitHubModel): + """branch protection configuration disabled event""" - payload: str = Field( - description="A URL-encoded string of the check_run.completed JSON payload. The decoded payload is a JSON object." + action: Literal["disabled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCheckRunCompletedFormEncoded) +model_rebuild(WebhookBranchProtectionConfigurationDisabled) -__all__ = ("WebhookCheckRunCompletedFormEncoded",) +__all__ = ("WebhookBranchProtectionConfigurationDisabled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0425.py b/githubkit/versions/v2022_11_28/models/group_0425.py index 3459a0ab5..66d69bdc0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0425.py +++ b/githubkit/versions/v2022_11_28/models/group_0425.py @@ -17,20 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0374 import CheckRunWithSimpleCheckSuite +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookCheckRunCreated(GitHubModel): - """Check Run Created Event""" +class WebhookBranchProtectionConfigurationEnabled(GitHubModel): + """branch protection configuration enabled event""" - action: Literal["created"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + action: Literal["enabled"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -52,6 +53,6 @@ class WebhookCheckRunCreated(GitHubModel): ) -model_rebuild(WebhookCheckRunCreated) +model_rebuild(WebhookBranchProtectionConfigurationEnabled) -__all__ = ("WebhookCheckRunCreated",) +__all__ = ("WebhookBranchProtectionConfigurationEnabled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0426.py b/githubkit/versions/v2022_11_28/models/group_0426.py index 2a3f094c3..50e47e327 100644 --- a/githubkit/versions/v2022_11_28/models/group_0426.py +++ b/githubkit/versions/v2022_11_28/models/group_0426.py @@ -9,22 +9,55 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0377 import WebhooksRule +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookCheckRunCreatedFormEncoded(GitHubModel): - """Check Run Created Event - The check_run.created webhook encoded with URL encoding - """ +class WebhookBranchProtectionRuleCreated(GitHubModel): + """branch protection rule created event""" - payload: str = Field( - description="A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object." + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCheckRunCreatedFormEncoded) +model_rebuild(WebhookBranchProtectionRuleCreated) -__all__ = ("WebhookCheckRunCreatedFormEncoded",) +__all__ = ("WebhookBranchProtectionRuleCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0427.py b/githubkit/versions/v2022_11_28/models/group_0427.py index 60b03345a..68430ea74 100644 --- a/githubkit/versions/v2022_11_28/models/group_0427.py +++ b/githubkit/versions/v2022_11_28/models/group_0427.py @@ -17,20 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0374 import CheckRunWithSimpleCheckSuite +from .group_0377 import WebhooksRule +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookCheckRunRequestedAction(GitHubModel): - """Check Run Requested Action Event""" +class WebhookBranchProtectionRuleDeleted(GitHubModel): + """branch protection rule deleted event""" - action: Literal["requested_action"] = Field() - check_run: CheckRunWithSimpleCheckSuite = Field( - title="CheckRun", - description="A check performed on the code of a given code change", + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -46,8 +48,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.") + 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: SimpleUserWebhooks = Field( title="Simple User", @@ -55,22 +58,6 @@ class WebhookCheckRunRequestedAction(GitHubModel): ) -class WebhookCheckRunRequestedActionPropRequestedAction(GitHubModel): - """WebhookCheckRunRequestedActionPropRequestedAction - - The action requested by the user. - """ - - identifier: Missing[str] = Field( - default=UNSET, - description="The integrator reference of the action requested by the user.", - ) - - -model_rebuild(WebhookCheckRunRequestedAction) -model_rebuild(WebhookCheckRunRequestedActionPropRequestedAction) +model_rebuild(WebhookBranchProtectionRuleDeleted) -__all__ = ( - "WebhookCheckRunRequestedAction", - "WebhookCheckRunRequestedActionPropRequestedAction", -) +__all__ = ("WebhookBranchProtectionRuleDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0428.py b/githubkit/versions/v2022_11_28/models/group_0428.py index ccf1a4c5f..3165fe001 100644 --- a/githubkit/versions/v2022_11_28/models/group_0428.py +++ b/githubkit/versions/v2022_11_28/models/group_0428.py @@ -9,22 +9,220 @@ from __future__ import annotations +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0377 import WebhooksRule +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): - """Check Run Requested Action Event - The check_run.requested_action webhook encoded with URL encoding - """ +class WebhookBranchProtectionRuleEdited(GitHubModel): + """branch protection rule edited event""" - payload: str = Field( - description="A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object." + action: Literal["edited"] = Field() + changes: Missing[WebhookBranchProtectionRuleEditedPropChanges] = Field( + default=UNSET, + description="If the action was `edited`, the changes to the rule.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookBranchProtectionRuleEditedPropChanges(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChanges + + If the action was `edited`, the changes to the rule. + """ + + admin_enforced: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced + ] = Field(default=UNSET) + authorized_actor_names: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames + ] = Field(default=UNSET) + authorized_actors_only: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly + ] = Field(default=UNSET) + authorized_dismissal_actors_only: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly + ] = Field(default=UNSET) + linear_history_requirement_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel + ] = Field(default=UNSET) + lock_branch_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel + ] = Field(default=UNSET) + lock_allows_fork_sync: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync + ] = Field(default=UNSET) + pull_request_reviews_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel + ] = Field(default=UNSET) + require_last_push_approval: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval + ] = Field(default=UNSET) + required_status_checks: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks + ] = Field(default=UNSET) + required_status_checks_enforcement_level: Missing[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel + ] = Field(default=UNSET) + + +class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" + + from_: List[str] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem + entLevel + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev + el + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" + + from_: Union[bool, None] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks(GitHubModel): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + + from_: List[str] = Field(alias="from") + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel( + GitHubModel +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL + evel + """ + + from_: Literal["off", "non_admins", "everyone"] = Field(alias="from") -model_rebuild(WebhookCheckRunRequestedActionFormEncoded) +model_rebuild(WebhookBranchProtectionRuleEdited) +model_rebuild(WebhookBranchProtectionRuleEditedPropChanges) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly +) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel +) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel +) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel +) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval) +model_rebuild(WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks) +model_rebuild( + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel +) -__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) +__all__ = ( + "WebhookBranchProtectionRuleEdited", + "WebhookBranchProtectionRuleEditedPropChanges", + "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly", + "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevel", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevel", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0429.py b/githubkit/versions/v2022_11_28/models/group_0429.py index 72107ccfd..6bf8971ab 100644 --- a/githubkit/versions/v2022_11_28/models/group_0429.py +++ b/githubkit/versions/v2022_11_28/models/group_0429.py @@ -17,17 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0374 import CheckRunWithSimpleCheckSuite +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0379 import CheckRunWithSimpleCheckSuite -class WebhookCheckRunRerequested(GitHubModel): - """Check Run Re-Requested Event""" +class WebhookCheckRunCompleted(GitHubModel): + """Check Run Completed Event""" - action: Literal["rerequested"] = Field() + action: Literal["completed"] = Field() check_run: CheckRunWithSimpleCheckSuite = Field( title="CheckRun", description="A check performed on the code of a given code change", @@ -52,6 +52,6 @@ class WebhookCheckRunRerequested(GitHubModel): ) -model_rebuild(WebhookCheckRunRerequested) +model_rebuild(WebhookCheckRunCompleted) -__all__ = ("WebhookCheckRunRerequested",) +__all__ = ("WebhookCheckRunCompleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0430.py b/githubkit/versions/v2022_11_28/models/group_0430.py index a44f5cc13..15f0118a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0430.py +++ b/githubkit/versions/v2022_11_28/models/group_0430.py @@ -14,17 +14,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookCheckRunRerequestedFormEncoded(GitHubModel): - """Check Run Re-Requested Event +class WebhookCheckRunCompletedFormEncoded(GitHubModel): + """Check Run Completed Event - The check_run.rerequested webhook encoded with URL encoding + The check_run.completed webhook encoded with URL encoding """ payload: str = Field( - description="A URL-encoded string of the check_run.rerequested JSON payload. The decoded payload is a JSON object." + description="A URL-encoded string of the check_run.completed JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookCheckRunRerequestedFormEncoded) +model_rebuild(WebhookCheckRunCompletedFormEncoded) -__all__ = ("WebhookCheckRunRerequestedFormEncoded",) +__all__ = ("WebhookCheckRunCompletedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0431.py b/githubkit/versions/v2022_11_28/models/group_0431.py index fbcba1dec..a2b363a23 100644 --- a/githubkit/versions/v2022_11_28/models/group_0431.py +++ b/githubkit/versions/v2022_11_28/models/group_0431.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,24 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0379 import CheckRunWithSimpleCheckSuite -class WebhookCheckSuiteCompleted(GitHubModel): - """check_suite completed event""" +class WebhookCheckRunCreated(GitHubModel): + """Check Run Created Event""" - action: Literal["completed"] = Field() - check_suite: WebhookCheckSuiteCompletedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + action: Literal["created"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -57,358 +52,6 @@ class WebhookCheckSuiteCompleted(GitHubModel): ) -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "merge_group", - "pull_request_review_thread", - "workflow_job", - "merge_queue_entry", - "security_and_analysis", - "projects_v2_item", - "secret_scanning_alert_location", - ] - ] - ] = 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[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) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -model_rebuild(WebhookCheckSuiteCompleted) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuite) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunCreated) -__all__ = ( - "WebhookCheckSuiteCompleted", - "WebhookCheckSuiteCompletedPropCheckSuite", - "WebhookCheckSuiteCompletedPropCheckSuitePropApp", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0432.py b/githubkit/versions/v2022_11_28/models/group_0432.py index 89de5b8da..2a3f094c3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0432.py +++ b/githubkit/versions/v2022_11_28/models/group_0432.py @@ -9,406 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks - - -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)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "workflow_job", - "merge_queue_entry", - "security_and_analysis", - "secret_scanning_alert_location", - "projects_v2_item", - "merge_group", - "repository_import", - ] - ] - ] = 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[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) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - -class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer +class WebhookCheckRunCreatedFormEncoded(GitHubModel): + """Check Run Created Event - Metaproperties for Git author/committer information. + The check_run.created webhook encoded with URL encoding """ - 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() + payload: str = Field( + description="A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object." ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookCheckSuiteRequested) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuite) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunCreatedFormEncoded) -__all__ = ( - "WebhookCheckSuiteRequested", - "WebhookCheckSuiteRequestedPropCheckSuite", - "WebhookCheckSuiteRequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookCheckRunCreatedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0433.py b/githubkit/versions/v2022_11_28/models/group_0433.py index dcd21183a..1664a2b19 100644 --- a/githubkit/versions/v2022_11_28/models/group_0433.py +++ b/githubkit/versions/v2022_11_28/models/group_0433.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,24 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0379 import CheckRunWithSimpleCheckSuite -class WebhookCheckSuiteRerequested(GitHubModel): - """check_suite rerequested event""" +class WebhookCheckRunRequestedAction(GitHubModel): + """Check Run Requested Action Event""" - action: Literal["rerequested"] = Field() - check_suite: WebhookCheckSuiteRerequestedPropCheckSuite = Field( - description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + action: Literal["requested_action"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -51,360 +46,31 @@ class WebhookCheckSuiteRerequested(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requested_action: Missing[WebhookCheckRunRequestedActionPropRequestedAction] = ( + Field(default=UNSET, description="The action requested by the user.") + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuite +class WebhookCheckRunRequestedActionPropRequestedAction(GitHubModel): + """WebhookCheckRunRequestedActionPropRequestedAction - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). + The action requested by the user. """ - after: Union[str, None] = Field() - app: WebhookCheckSuiteRerequestedPropCheckSuitePropApp = Field( - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - before: Union[str, None] = Field() - check_runs_url: str = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field( - description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." - ) - created_at: datetime = Field() - head_branch: Union[str, None] = Field( - description="The head branch name the changes are on." - ) - head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit = Field( - title="SimpleCommit" - ) - head_sha: str = Field( - description="The SHA of the head commit that is being checked." - ) - id: int = Field() - latest_check_runs_count: int = Field() - node_id: str = Field() - pull_requests: List[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems - ] = Field( - description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." - ) - rerequestable: Missing[bool] = Field(default=UNSET) - runs_rerequestable: Missing[bool] = Field(default=UNSET) - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( - Field( - description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." - ) - ) - updated_at: datetime = Field() - url: str = Field(description="URL that points to the check suite API resource.") - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropApp(GitHubModel): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "merge_queue_entry", - "workflow_job", - ] - ] - ] = 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[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + identifier: Missing[str] = Field( + default=UNSET, + description="The integrator reference of the action requested by the user.", ) - sha: str = Field() - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - id: int = Field() - name: str = Field() - url: str = Field() - - -model_rebuild(WebhookCheckSuiteRerequested) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuite) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropApp) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase) -model_rebuild( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) -model_rebuild( - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookCheckRunRequestedAction) +model_rebuild(WebhookCheckRunRequestedActionPropRequestedAction) __all__ = ( - "WebhookCheckSuiteRerequested", - "WebhookCheckSuiteRerequestedPropCheckSuite", - "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", + "WebhookCheckRunRequestedAction", + "WebhookCheckRunRequestedActionPropRequestedAction", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0434.py b/githubkit/versions/v2022_11_28/models/group_0434.py index ec5b129a3..ccf1a4c5f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0434.py +++ b/githubkit/versions/v2022_11_28/models/group_0434.py @@ -9,220 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks - - -class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): - """code_scanning_alert appeared_in_branch event""" - - action: Literal["appeared_in_branch"] = Field() - alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) +class WebhookCheckRunRequestedActionFormEncoded(GitHubModel): + """Check Run Requested Action Event -class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlert - - The code scanning alert involved in the event. + The check_run.requested_action webhook encoded with URL encoding """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - 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: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool = Field() - url: str = Field() - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance( - GitHubModel -): - """Alert Instance""" - - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", - ) - classifications: Missing[List[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." - ) - location: Missing[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." - ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion - """ - - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge - """ - - text: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" - - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + payload: str = Field( + description="A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookCodeScanningAlertAppearedInBranch) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation -) -model_rebuild( - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage -) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) +model_rebuild(WebhookCheckRunRequestedActionFormEncoded) -__all__ = ( - "WebhookCodeScanningAlertAppearedInBranch", - "WebhookCodeScanningAlertAppearedInBranchPropAlert", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", -) +__all__ = ("WebhookCheckRunRequestedActionFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0435.py b/githubkit/versions/v2022_11_28/models/group_0435.py index 83a00107b..80e08c318 100644 --- a/githubkit/versions/v2022_11_28/models/group_0435.py +++ b/githubkit/versions/v2022_11_28/models/group_0435.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,27 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0379 import CheckRunWithSimpleCheckSuite -class WebhookCodeScanningAlertClosedByUser(GitHubModel): - """code_scanning_alert closed_by_user event""" +class WebhookCheckRunRerequested(GitHubModel): + """Check Run Re-Requested Event""" - action: Literal["closed_by_user"] = Field() - alert: WebhookCodeScanningAlertClosedByUserPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + action: Literal["rerequested"] = Field() + check_run: CheckRunWithSimpleCheckSuite = Field( + title="CheckRun", + description="A check performed on the code of a given code change", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -50,9 +42,6 @@ class WebhookCodeScanningAlertClosedByUser(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -63,166 +52,6 @@ class WebhookCodeScanningAlertClosedByUser(GitHubModel): ) -class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlert - - The code scanning alert involved in the event. - """ - - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: datetime = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None - ] = Field(title="User") - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRule = Field() - state: Literal["dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() - url: str = Field() - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" - - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", - ) - classifications: Missing[List[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." - ) - location: Missing[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." - ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" - - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" - - text: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" - - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[List[str], None]] = Field(default=UNSET) - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" - - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) - - -model_rebuild(WebhookCodeScanningAlertClosedByUser) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlert) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation -) -model_rebuild( - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage -) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropTool) +model_rebuild(WebhookCheckRunRerequested) -__all__ = ( - "WebhookCodeScanningAlertClosedByUser", - "WebhookCodeScanningAlertClosedByUserPropAlert", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", - "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", -) +__all__ = ("WebhookCheckRunRerequested",) diff --git a/githubkit/versions/v2022_11_28/models/group_0436.py b/githubkit/versions/v2022_11_28/models/group_0436.py index b88e48588..a44f5cc13 100644 --- a/githubkit/versions/v2022_11_28/models/group_0436.py +++ b/githubkit/versions/v2022_11_28/models/group_0436.py @@ -9,198 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import Annotated - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks - - -class WebhookCodeScanningAlertCreated(GitHubModel): - """code_scanning_alert created event""" - - action: Literal["created"] = Field() - alert: WebhookCodeScanningAlertCreatedPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - -class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlert +class WebhookCheckRunRerequestedFormEncoded(GitHubModel): + """Check Run Re-Requested Event - The code scanning alert involved in the event. + The check_run.rerequested webhook encoded with URL encoding """ - created_at: Union[datetime, None] = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" - ) - dismissed_at: None = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." - ) - dismissed_by: None = Field() - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) - dismissed_reason: None = Field( - description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." - ) - fixed_at: Missing[None] = Field(default=UNSET) - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: Missing[str] = Field(default=UNSET) - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertCreatedPropAlertPropRule = Field() - state: Literal["open", "dismissed"] = Field( - description="State of a code scanning alert." - ) - tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() - updated_at: Missing[Union[str, None]] = Field(default=UNSET) - url: str = Field() - - -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" - - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." - ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", - ) - classifications: Missing[List[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." - ) - location: Missing[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." - ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." - ) - - -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" - - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - - -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( - GitHubModel -): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" - - text: Missing[str] = Field(default=UNSET) - - -class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" - - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." - ) - tags: Missing[Union[List[str], None]] = Field(default=UNSET) - - -class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertCreatedPropAlertPropTool""" - - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + payload: str = Field( + description="A URL-encoded string of the check_run.rerequested JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookCodeScanningAlertCreated) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) -model_rebuild( - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation -) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) +model_rebuild(WebhookCheckRunRerequestedFormEncoded) -__all__ = ( - "WebhookCodeScanningAlertCreated", - "WebhookCodeScanningAlertCreatedPropAlert", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertCreatedPropAlertPropRule", - "WebhookCodeScanningAlertCreatedPropAlertPropTool", -) +__all__ = ("WebhookCheckRunRerequestedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0437.py b/githubkit/versions/v2022_11_28/models/group_0437.py index 379ccbf93..d91779b2a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0437.py +++ b/githubkit/versions/v2022_11_28/models/group_0437.py @@ -18,22 +18,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookCodeScanningAlertFixed(GitHubModel): - """code_scanning_alert fixed event""" +class WebhookCheckSuiteCompleted(GitHubModel): + """check_suite completed event""" - action: Literal["fixed"] = Field() - alert: WebhookCodeScanningAlertFixedPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["completed"] = Field() + check_suite: WebhookCheckSuiteCompletedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertFixed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -63,37 +57,151 @@ class WebhookCodeScanningAlertFixed(GitHubModel): ) -class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlert +class WebhookCheckSuiteCompletedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteCompletedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + after: Union[str, None] = Field() + app: WebhookCheckSuiteCompletedPropCheckSuitePropApp = Field( + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + 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." ) - dismissed_at: Union[datetime, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + 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`." ) - dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, None] = ( + 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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "merge_group", + "pull_request_review_thread", + "workflow_job", + "merge_queue_entry", + "security_and_analysis", + "projects_v2_item", + "secret_scanning_alert_location", + ] + ] + ] = 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[WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner, None] = ( Field(title="User") ) - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] = Field(description="The reason for dismissing or closing the alert.") - html_url: str = Field(description="The GitHub URL of the alert resource.") - instances_url: Missing[str] = Field(default=UNSET) - most_recent_instance: Missing[ - Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, None] - ] = Field(default=UNSET, title="Alert Instance") - number: int = Field(description="The code scanning alert number.") - rule: WebhookCodeScanningAlertFixedPropAlertPropRule = Field() - state: Literal["fixed"] = Field(description="State of a code scanning alert.") - tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() - url: str = Field() + 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 WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -119,105 +227,188 @@ class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + 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.", ) - 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." + committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) ) - location: Missing[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase( GitHubModel ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + ref: str = Field() + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( GitHubModel ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: Missing[str] = Field(default=UNSET) + id: int = Field() + name: str = Field() + url: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str = Field( - description="A short description of the rule used to detect the alert." + ref: str = Field() + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) - 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) + sha: str = Field() -class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertFixed) -model_rebuild(WebhookCodeScanningAlertFixedPropAlert) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropTool) +model_rebuild(WebhookCheckSuiteCompleted) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuite) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase) +model_rebuild( + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead) +model_rebuild( + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo +) __all__ = ( - "WebhookCodeScanningAlertFixed", - "WebhookCodeScanningAlertFixedPropAlert", - "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertFixedPropAlertPropRule", - "WebhookCodeScanningAlertFixedPropAlertPropTool", + "WebhookCheckSuiteCompleted", + "WebhookCheckSuiteCompletedPropCheckSuite", + "WebhookCheckSuiteCompletedPropCheckSuitePropApp", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0438.py b/githubkit/versions/v2022_11_28/models/group_0438.py index 42aa32768..15c571605 100644 --- a/githubkit/versions/v2022_11_28/models/group_0438.py +++ b/githubkit/versions/v2022_11_28/models/group_0438.py @@ -18,22 +18,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookCodeScanningAlertReopened(GitHubModel): - """code_scanning_alert reopened event""" +class WebhookCheckSuiteRequested(GitHubModel): + """check_suite requested event""" - action: Literal["reopened"] = Field() - alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: Union[str, None] = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["requested"] = Field() + check_suite: WebhookCheckSuiteRequestedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: Union[str, None] = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -63,144 +57,358 @@ class WebhookCodeScanningAlertReopened(GitHubModel): ) -class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCheckSuiteRequestedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteRequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + after: Union[str, None] = Field() + app: WebhookCheckSuiteRequestedPropCheckSuitePropApp = Field( + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - dismissed_at: Union[str, None] = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." ) - dismissed_by: Union[ - WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, None - ] = Field() - dismissed_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`." + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." ) - 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: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" ) - tool: WebhookCodeScanningAlertReopenedPropAlertPropTool = Field() - url: str = Field() + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: List[ + 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 WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" +class WebhookCheckSuiteRequestedPropCheckSuitePropApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "workflow_job", + "merge_queue_entry", + "security_and_analysis", + "secret_scanning_alert_location", + "projects_v2_item", + "merge_group", + "repository_import", + ] + ] + ] = 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[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) -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubModel): - """Alert Instance""" +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + 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.", ) - 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." + committer: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) ) - location: Missing[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + head: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase( GitHubModel ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + ref: str = Field() + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( GitHubModel ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: Missing[str] = Field(default=UNSET) + id: int = Field() + name: str = Field() + url: str = Field() -class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropRule""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str = Field( - description="A short description of the rule used to detect the alert." - ) - full_description: Missing[str] = Field(default=UNSET) - help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") - help_uri: Missing[Union[str, None]] = Field( - default=UNSET, - description="A link to the documentation for the rule used to detect the alert.", - ) - id: str = Field( - description="A unique identifier for the rule used to detect the alert." - ) - name: Missing[str] = Field(default=UNSET) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." + ref: str = Field() + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) - tags: Missing[Union[List[str], None]] = Field(default=UNSET) + sha: str = Field() -class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" - guid: Missing[Union[str, None]] = Field(default=UNSET) - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." - ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." - ) + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertReopened) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCheckSuiteRequested) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuite) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase) model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertReopened", - "WebhookCodeScanningAlertReopenedPropAlert", - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedPropAlertPropRule", - "WebhookCodeScanningAlertReopenedPropAlertPropTool", + "WebhookCheckSuiteRequested", + "WebhookCheckSuiteRequestedPropCheckSuite", + "WebhookCheckSuiteRequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0439.py b/githubkit/versions/v2022_11_28/models/group_0439.py index 7807646cb..c0d09dcd6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0439.py +++ b/githubkit/versions/v2022_11_28/models/group_0439.py @@ -18,22 +18,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookCodeScanningAlertReopenedByUser(GitHubModel): - """code_scanning_alert reopened_by_user event""" +class WebhookCheckSuiteRerequested(GitHubModel): + """check_suite rerequested event""" - action: Literal["reopened_by_user"] = Field() - alert: WebhookCodeScanningAlertReopenedByUserPropAlert = Field( - description="The code scanning alert involved in the event." - ) - commit_oid: str = Field( - description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + action: Literal["rerequested"] = Field() + check_suite: WebhookCheckSuiteRerequestedPropCheckSuite = Field( + description="The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -50,9 +47,6 @@ class WebhookCodeScanningAlertReopenedByUser(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - ref: str = Field( - description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -63,133 +57,354 @@ class WebhookCodeScanningAlertReopenedByUser(GitHubModel): ) -class WebhookCodeScanningAlertReopenedByUserPropAlert(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCheckSuiteRerequestedPropCheckSuite(GitHubModel): + """WebhookCheckSuiteRerequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ - created_at: datetime = Field( - description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + after: Union[str, None] = Field() + app: WebhookCheckSuiteRerequestedPropCheckSuitePropApp = Field( + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - dismissed_at: None = Field( - description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + before: Union[str, None] = Field() + check_runs_url: str = Field() + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field( + description="The summary conclusion for all check runs that are part of the check suite. This value will be `null` until the check run has completed." ) - dismissed_by: None = Field() - dismissed_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`." + created_at: datetime = Field() + head_branch: Union[str, None] = Field( + description="The head branch name the changes are on." ) - 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: Literal["open", "fixed"] = Field( - description="State of a code scanning alert." + head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit = Field( + title="SimpleCommit" ) - tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropTool = Field() - url: str = Field() + head_sha: str = Field( + description="The SHA of the head commit that is being checked." + ) + id: int = Field() + latest_check_runs_count: int = Field() + node_id: str = Field() + pull_requests: List[ + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems + ] = Field( + description="An array of pull requests that match this check suite. A pull request matches a check suite if they have the same `head_sha` and `head_branch`. When the check suite's `head_branch` is in a forked repository it will be `null` and the `pull_requests` array will be empty." + ) + rerequestable: Missing[bool] = Field(default=UNSET) + runs_rerequestable: Missing[bool] = Field(default=UNSET) + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] = ( + Field( + description="The summary status for all check runs that are part of the check suite. Can be `requested`, `in_progress`, or `completed`." + ) + ) + updated_at: datetime = Field() + url: str = Field(description="URL that points to the check suite API resource.") -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance( - GitHubModel -): - """Alert Instance""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropApp(GitHubModel): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ - analysis_key: str = Field( - description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "merge_queue_entry", + "workflow_job", + ] + ] + ] = 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[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner, None] = ( + Field(title="User") ) - category: Missing[str] = Field( - default=UNSET, - description="Identifies the configuration under which the analysis was executed.", + permissions: Missing[ + WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions(GitHubModel): + """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - classifications: Missing[List[str]] = Field(default=UNSET) - commit_sha: Missing[str] = Field(default=UNSET) - environment: str = Field( - description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - location: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation - ] = Field(default=UNSET) - message: Missing[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage - ] = Field(default=UNSET) - ref: str = Field( - description="The full Git reference, formatted as `refs/heads/`." + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - state: Literal["open", "dismissed", "fixed"] = Field( - description="State of a code scanning alert." + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", ) + committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter = ( + Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation( - GitHubModel -): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. """ - end_column: Missing[int] = Field(default=UNSET) - end_line: Missing[int] = Field(default=UNSET) - path: Missing[str] = Field(default=UNSET) - start_column: Missing[int] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage( +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter( GitHubModel ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + """Committer + + 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 WebhookCodeScanningAlertReopenedByUserPropAlertPropRule(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" - 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." + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase = ( + Field() ) - severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( - description="The severity of the alert." + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead = ( + Field() ) + id: int = Field() + number: int = Field() + url: str = Field() -class WebhookCodeScanningAlertReopenedByUserPropAlertPropTool(GitHubModel): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - name: str = Field( - description="The name of the tool used to generate the code scanning analysis alert." + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" ) - version: Union[str, None] = Field( - description="The version of the tool used to detect the alert." + sha: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" ) + sha: str = Field() + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookCodeScanningAlertReopenedByUser) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlert) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance) +model_rebuild(WebhookCheckSuiteRerequested) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuite) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropApp) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase) model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo ) +model_rebuild(WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead) model_rebuild( - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo ) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropRule) -model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropTool) __all__ = ( - "WebhookCodeScanningAlertReopenedByUser", - "WebhookCodeScanningAlertReopenedByUserPropAlert", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", + "WebhookCheckSuiteRerequested", + "WebhookCheckSuiteRerequestedPropCheckSuite", + "WebhookCheckSuiteRerequestedPropCheckSuitePropApp", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwner", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommit", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthor", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitter", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItems", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepo", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0440.py b/githubkit/versions/v2022_11_28/models/group_0440.py index 66717a1e7..3b2bb0ba5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0440.py +++ b/githubkit/versions/v2022_11_28/models/group_0440.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,21 +18,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookCommitCommentCreated(GitHubModel): - """commit_comment created event""" +class WebhookCodeScanningAlertAppearedInBranch(GitHubModel): + """code_scanning_alert appeared_in_branch event""" - action: Literal["created"] = Field( - description="The action performed. Can be `created`." + action: Literal["appeared_in_branch"] = Field() + alert: WebhookCodeScanningAlertAppearedInBranchPropAlert = Field( + description="The code scanning alert involved in the event." ) - comment: WebhookCommitCommentCreatedPropComment = Field( - description="The [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit-comment) resource." + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -48,6 +50,9 @@ class WebhookCommitCommentCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -58,69 +63,41 @@ class WebhookCommitCommentCreated(GitHubModel): ) -class WebhookCommitCommentCreatedPropComment(GitHubModel): - """WebhookCommitCommentCreatedPropComment +class WebhookCodeScanningAlertAppearedInBranchPropAlert(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlert - The [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit- - comment) resource. + The code scanning alert involved in the event. """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: str = Field() - html_url: str = Field() - id: int = Field(description="The ID of the commit comment.") - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the commit comment.") - path: Union[str, None] = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - reactions: Missing[WebhookCommitCommentCreatedPropCommentPropReactions] = Field( - default=UNSET, title="Reactions" - ) - updated_at: str = Field() - url: str = Field() - user: Union[WebhookCommitCommentCreatedPropCommentPropUser, None] = Field( - title="User" + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" ) - - -class WebhookCommitCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy, None + ] = Field(title="User") + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") + 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: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool = Field() url: str = Field() -class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -146,14 +123,106 @@ class WebhookCommitCommentCreatedPropCommentPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookCommitCommentCreated) -model_rebuild(WebhookCommitCommentCreatedPropComment) -model_rebuild(WebhookCommitCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookCommitCommentCreatedPropCommentPropUser) +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance( + GitHubModel +): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[List[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion + """ + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" + + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertAppearedInBranch) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlert) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool) __all__ = ( - "WebhookCommitCommentCreated", - "WebhookCommitCommentCreatedPropComment", - "WebhookCommitCommentCreatedPropCommentPropReactions", - "WebhookCommitCommentCreatedPropCommentPropUser", + "WebhookCodeScanningAlertAppearedInBranch", + "WebhookCodeScanningAlertAppearedInBranchPropAlert", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedBy", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0441.py b/githubkit/versions/v2022_11_28/models/group_0441.py index d0f509c4f..53c36f52e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0441.py +++ b/githubkit/versions/v2022_11_28/models/group_0441.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,18 +18,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookCreate(GitHubModel): - """create event""" +class WebhookCodeScanningAlertClosedByUser(GitHubModel): + """code_scanning_alert closed_by_user event""" - description: Union[str, None] = Field( - description="The repository's current description." + action: Literal["closed_by_user"] = Field() + alert: WebhookCodeScanningAlertClosedByUserPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -40,22 +45,13 @@ class WebhookCreate(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - master_branch: str = Field( - description="The name of the repository's default branch (usually `main`)." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher_type: str = Field( - description="The pusher type for the event. Can be either `user` or a deploy key." - ) ref: str = Field( - description="The [`git ref`](https://docs.github.com/rest/git/refs#get-a-reference) resource." - ) - ref_type: Literal["tag", "branch"] = Field( - description="The type of Git ref object created in the repository." + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) repository: RepositoryWebhooks = Field( title="Repository", @@ -67,6 +63,166 @@ class WebhookCreate(GitHubModel): ) -model_rebuild(WebhookCreate) +class WebhookCodeScanningAlertClosedByUserPropAlert(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: datetime = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy, None + ] = Field(title="User") + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRule = Field() + state: Literal["dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[List[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[List[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertClosedByUser) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlert) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertClosedByUserPropAlertPropTool) -__all__ = ("WebhookCreate",) +__all__ = ( + "WebhookCodeScanningAlertClosedByUser", + "WebhookCodeScanningAlertClosedByUserPropAlert", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedBy", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRule", + "WebhookCodeScanningAlertClosedByUserPropAlertPropTool", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0442.py b/githubkit/versions/v2022_11_28/models/group_0442.py index 32969c41b..b9b41bd6b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0442.py +++ b/githubkit/versions/v2022_11_28/models/group_0442.py @@ -9,7 +9,9 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import Annotated from pydantic import Field @@ -17,20 +19,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0092 import OrgCustomProperty -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookCustomPropertyCreated(GitHubModel): - """custom property created event""" +class WebhookCodeScanningAlertCreated(GitHubModel): + """code_scanning_alert created event""" action: Literal["created"] = Field() - definition: OrgCustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + alert: WebhookCodeScanningAlertCreatedPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -42,17 +46,161 @@ class WebhookCustomPropertyCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCustomPropertyCreated) +class WebhookCodeScanningAlertCreatedPropAlert(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: Union[datetime, None] = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: None = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: None = Field() + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) + dismissed_reason: None = Field( + description="The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`." + ) + fixed_at: Missing[None] = Field(default=UNSET) + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: Missing[str] = Field(default=UNSET) + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertCreatedPropAlertPropRule = Field() + state: Literal["open", "dismissed"] = Field( + description="State of a code scanning alert." + ) + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropTool, None] = Field() + updated_at: Missing[Union[str, None]] = Field(default=UNSET) + url: str = Field() + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[List[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertCreatedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[List[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertCreatedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertCreated) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlert) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation +) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertCreatedPropAlertPropTool) -__all__ = ("WebhookCustomPropertyCreated",) +__all__ = ( + "WebhookCodeScanningAlertCreated", + "WebhookCodeScanningAlertCreatedPropAlert", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertCreatedPropAlertPropRule", + "WebhookCodeScanningAlertCreatedPropAlertPropTool", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0443.py b/githubkit/versions/v2022_11_28/models/group_0443.py index ad7dadda3..1491fb037 100644 --- a/githubkit/versions/v2022_11_28/models/group_0443.py +++ b/githubkit/versions/v2022_11_28/models/group_0443.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,17 +18,23 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookCustomPropertyDeleted(GitHubModel): - """custom property deleted event""" +class WebhookCodeScanningAlertFixed(GitHubModel): + """code_scanning_alert fixed event""" - action: Literal["deleted"] = Field() - definition: WebhookCustomPropertyDeletedPropDefinition = Field() + action: Literal["fixed"] = Field() + alert: WebhookCodeScanningAlertFixedPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -38,27 +45,179 @@ 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)."', ) - 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[SimpleUserWebhooks] = Field( - default=UNSET, + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookCustomPropertyDeletedPropDefinition(GitHubModel): - """WebhookCustomPropertyDeletedPropDefinition""" +class WebhookCodeScanningAlertFixedPropAlert(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: Union[datetime, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedBy, None] = ( + Field(title="User") + ) + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] = Field(description="The reason for dismissing or closing the alert.") + html_url: str = Field(description="The GitHub URL of the alert resource.") + instances_url: Missing[str] = Field(default=UNSET) + most_recent_instance: Missing[ + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance, None] + ] = Field(default=UNSET, title="Alert Instance") + number: int = Field(description="The code scanning alert number.") + rule: WebhookCodeScanningAlertFixedPropAlertPropRule = Field() + state: Literal["fixed"] = Field(description="State of a code scanning alert.") + tool: WebhookCodeScanningAlertFixedPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertFixedPropAlertPropDismissedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[List[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + - property_name: str = Field(description="The name of the property that was deleted.") +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[List[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertFixedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertFixedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) -model_rebuild(WebhookCustomPropertyDeleted) -model_rebuild(WebhookCustomPropertyDeletedPropDefinition) +model_rebuild(WebhookCodeScanningAlertFixed) +model_rebuild(WebhookCodeScanningAlertFixedPropAlert) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertFixedPropAlertPropTool) __all__ = ( - "WebhookCustomPropertyDeleted", - "WebhookCustomPropertyDeletedPropDefinition", + "WebhookCodeScanningAlertFixed", + "WebhookCodeScanningAlertFixedPropAlert", + "WebhookCodeScanningAlertFixedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertFixedPropAlertPropRule", + "WebhookCodeScanningAlertFixedPropAlertPropTool", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0444.py b/githubkit/versions/v2022_11_28/models/group_0444.py index 6f102df25..1260b4939 100644 --- a/githubkit/versions/v2022_11_28/models/group_0444.py +++ b/githubkit/versions/v2022_11_28/models/group_0444.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,20 +18,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0092 import OrgCustomProperty -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookCustomPropertyUpdated(GitHubModel): - """custom property updated event""" +class WebhookCodeScanningAlertReopened(GitHubModel): + """code_scanning_alert reopened event""" - action: Literal["updated"] = Field() - definition: OrgCustomProperty = Field( - title="Organization Custom Property", - description="Custom property defined on an organization", + action: Literal["reopened"] = Field() + alert: Union[WebhookCodeScanningAlertReopenedPropAlert, None] = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: Union[str, None] = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -42,17 +45,162 @@ class WebhookCustomPropertyUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + ref: Union[str, None] = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookCustomPropertyUpdated) +class WebhookCodeScanningAlertReopenedPropAlert(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime = Field( + description="The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ.`" + ) + dismissed_at: Union[str, None] = Field( + description="The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`." + ) + dismissed_by: Union[ + WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy, None + ] = Field() + dismissed_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`." + ) + 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: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + tool: WebhookCodeScanningAlertReopenedPropAlertPropTool = Field() + url: str = Field() + + +class WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance(GitHubModel): + """Alert Instance""" + + analysis_key: str = Field( + description="Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + ) + category: Missing[str] = Field( + default=UNSET, + description="Identifies the configuration under which the analysis was executed.", + ) + classifications: Missing[List[str]] = Field(default=UNSET) + commit_sha: Missing[str] = Field(default=UNSET) + environment: str = Field( + description="Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + ) + location: Missing[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation + ] = Field(default=UNSET) + message: Missing[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage + ] = Field(default=UNSET) + ref: str = Field( + description="The full Git reference, formatted as `refs/heads/`." + ) + state: Literal["open", "dismissed", "fixed"] = Field( + description="State of a code scanning alert." + ) + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation( + GitHubModel +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + + end_column: Missing[int] = Field(default=UNSET) + end_line: Missing[int] = Field(default=UNSET) + path: Missing[str] = Field(default=UNSET) + start_column: Missing[int] = Field(default=UNSET) + start_line: Missing[int] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage( + GitHubModel +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + + text: Missing[str] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropRule(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropRule""" + + description: str = Field( + description="A short description of the rule used to detect the alert." + ) + full_description: Missing[str] = Field(default=UNSET) + help_: Missing[Union[str, None]] = Field(default=UNSET, alias="help") + help_uri: Missing[Union[str, None]] = Field( + default=UNSET, + description="A link to the documentation for the rule used to detect the alert.", + ) + id: str = Field( + description="A unique identifier for the rule used to detect the alert." + ) + name: Missing[str] = Field(default=UNSET) + severity: Union[None, Literal["none", "note", "warning", "error"]] = Field( + description="The severity of the alert." + ) + tags: Missing[Union[List[str], None]] = Field(default=UNSET) + + +class WebhookCodeScanningAlertReopenedPropAlertPropTool(GitHubModel): + """WebhookCodeScanningAlertReopenedPropAlertPropTool""" + + guid: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field( + description="The name of the tool used to generate the code scanning analysis alert." + ) + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." + ) + + +model_rebuild(WebhookCodeScanningAlertReopened) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlert) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertReopenedPropAlertPropTool) -__all__ = ("WebhookCustomPropertyUpdated",) +__all__ = ( + "WebhookCodeScanningAlertReopened", + "WebhookCodeScanningAlertReopenedPropAlert", + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedPropAlertPropRule", + "WebhookCodeScanningAlertReopenedPropAlertPropTool", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0445.py b/githubkit/versions/v2022_11_28/models/group_0445.py index d0be2f5de..66f2a04d7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0445.py +++ b/githubkit/versions/v2022_11_28/models/group_0445.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,18 +18,23 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0093 import CustomPropertyValue -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookCustomPropertyValuesUpdated(GitHubModel): - """Custom property values updated event""" +class WebhookCodeScanningAlertReopenedByUser(GitHubModel): + """code_scanning_alert reopened_by_user event""" - action: Literal["updated"] = Field() + action: Literal["reopened_by_user"] = Field() + alert: WebhookCodeScanningAlertReopenedByUserPropAlert = Field( + description="The code scanning alert involved in the event." + ) + commit_oid: str = Field( + description="The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,27 +45,151 @@ class WebhookCustomPropertyValuesUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + ref: str = Field( + description="The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty." + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - new_property_values: List[CustomPropertyValue] = Field( - description="The new custom property values for the repository." + + +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_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`." + ) + 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: Literal["open", "fixed"] = Field( + description="State of a code scanning alert." + ) + 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." ) - old_property_values: List[CustomPropertyValue] = Field( - description="The old custom property values for the repository." + version: Union[str, None] = Field( + description="The version of the tool used to detect the alert." ) -model_rebuild(WebhookCustomPropertyValuesUpdated) +model_rebuild(WebhookCodeScanningAlertReopenedByUser) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlert) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance) +model_rebuild( + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation +) +model_rebuild( + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage +) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropRule) +model_rebuild(WebhookCodeScanningAlertReopenedByUserPropAlertPropTool) -__all__ = ("WebhookCustomPropertyValuesUpdated",) +__all__ = ( + "WebhookCodeScanningAlertReopenedByUser", + "WebhookCodeScanningAlertReopenedByUserPropAlert", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstance", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocation", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropRule", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropTool", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0446.py b/githubkit/versions/v2022_11_28/models/group_0446.py index bb7532535..d001457e5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0446.py +++ b/githubkit/versions/v2022_11_28/models/group_0446.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,16 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDelete(GitHubModel): - """delete event""" +class WebhookCommitCommentCreated(GitHubModel): + """commit_comment created event""" + action: Literal["created"] = Field( + description="The action performed. Can be `created`." + ) + comment: WebhookCommitCommentCreatedPropComment = Field( + description="The [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit-comment) resource." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,15 +48,6 @@ class WebhookDelete(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pusher_type: str = Field( - description="The pusher type for the event. Can be either `user` or a deploy key." - ) - ref: str = Field( - description="The [`git ref`](https://docs.github.com/rest/git/refs#get-a-reference) resource." - ) - ref_type: Literal["tag", "branch"] = Field( - description="The type of Git ref object deleted in the repository." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -61,6 +58,102 @@ class WebhookDelete(GitHubModel): ) -model_rebuild(WebhookDelete) +class WebhookCommitCommentCreatedPropComment(GitHubModel): + """WebhookCommitCommentCreatedPropComment + + The [commit comment](https://docs.github.com/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) + + +model_rebuild(WebhookCommitCommentCreated) +model_rebuild(WebhookCommitCommentCreatedPropComment) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookCommitCommentCreatedPropCommentPropUser) -__all__ = ("WebhookDelete",) +__all__ = ( + "WebhookCommitCommentCreated", + "WebhookCommitCommentCreatedPropComment", + "WebhookCommitCommentCreatedPropCommentPropReactions", + "WebhookCommitCommentCreatedPropCommentPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0447.py b/githubkit/versions/v2022_11_28/models/group_0447.py index 9eb340e64..1d7bd9844 100644 --- a/githubkit/versions/v2022_11_28/models/group_0447.py +++ b/githubkit/versions/v2022_11_28/models/group_0447.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,33 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0234 import DependabotAlert -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDependabotAlertAutoDismissed(GitHubModel): - """Dependabot alert auto-dismissed event""" +class WebhookCreate(GitHubModel): + """create event""" - action: Literal["auto_dismissed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + description: Union[str, None] = Field( + description="The repository's current description." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + master_branch: str = Field( + description="The name of the repository's default branch (usually `main`)." + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + 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", @@ -55,6 +67,6 @@ class WebhookDependabotAlertAutoDismissed(GitHubModel): ) -model_rebuild(WebhookDependabotAlertAutoDismissed) +model_rebuild(WebhookCreate) -__all__ = ("WebhookDependabotAlertAutoDismissed",) +__all__ = ("WebhookCreate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0448.py b/githubkit/versions/v2022_11_28/models/group_0448.py index a5f431596..b88840593 100644 --- a/githubkit/versions/v2022_11_28/models/group_0448.py +++ b/githubkit/versions/v2022_11_28/models/group_0448.py @@ -17,44 +17,42 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0234 import DependabotAlert -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0097 import OrgCustomProperty +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDependabotAlertAutoReopened(GitHubModel): - """Dependabot alert auto-reopened event""" +class WebhookCustomPropertyCreated(GitHubModel): + """custom property created event""" - action: Literal["auto_reopened"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["created"] = Field() + definition: OrgCustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookDependabotAlertAutoReopened) +model_rebuild(WebhookCustomPropertyCreated) -__all__ = ("WebhookDependabotAlertAutoReopened",) +__all__ = ("WebhookCustomPropertyCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0449.py b/githubkit/versions/v2022_11_28/models/group_0449.py index a14f1356e..a39e68c92 100644 --- a/githubkit/versions/v2022_11_28/models/group_0449.py +++ b/githubkit/versions/v2022_11_28/models/group_0449.py @@ -17,44 +17,48 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0234 import DependabotAlert -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDependabotAlertCreated(GitHubModel): - """Dependabot alert created event""" +class WebhookCustomPropertyDeleted(GitHubModel): + """custom property deleted event""" - action: Literal["created"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["deleted"] = Field() + definition: WebhookCustomPropertyDeletedPropDefinition = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookDependabotAlertCreated) +class WebhookCustomPropertyDeletedPropDefinition(GitHubModel): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str = Field(description="The name of the property that was deleted.") + + +model_rebuild(WebhookCustomPropertyDeleted) +model_rebuild(WebhookCustomPropertyDeletedPropDefinition) -__all__ = ("WebhookDependabotAlertCreated",) +__all__ = ( + "WebhookCustomPropertyDeleted", + "WebhookCustomPropertyDeletedPropDefinition", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0450.py b/githubkit/versions/v2022_11_28/models/group_0450.py index 6b06179c1..e838155f7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0450.py +++ b/githubkit/versions/v2022_11_28/models/group_0450.py @@ -17,44 +17,42 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0234 import DependabotAlert -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0097 import OrgCustomProperty +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDependabotAlertDismissed(GitHubModel): - """Dependabot alert dismissed event""" +class WebhookCustomPropertyUpdated(GitHubModel): + """custom property updated event""" - action: Literal["dismissed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + action: Literal["updated"] = Field() + definition: OrgCustomProperty = Field( + title="Organization Custom Property", + description="Custom property defined on an organization", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookDependabotAlertDismissed) +model_rebuild(WebhookCustomPropertyUpdated) -__all__ = ("WebhookDependabotAlertDismissed",) +__all__ = ("WebhookCustomPropertyUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0451.py b/githubkit/versions/v2022_11_28/models/group_0451.py index 4dccb8ea7..1f8c3b98d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0451.py +++ b/githubkit/versions/v2022_11_28/models/group_0451.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field @@ -17,44 +17,49 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0234 import DependabotAlert -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0098 import CustomPropertyValue +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDependabotAlertFixed(GitHubModel): - """Dependabot alert fixed event""" +class WebhookCustomPropertyValuesUpdated(GitHubModel): + """Custom property values updated event""" - action: Literal["fixed"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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.", - ) + 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)."\n', ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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.", ) - sender: SimpleUserWebhooks = Field( + 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: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + 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(WebhookDependabotAlertFixed) +model_rebuild(WebhookCustomPropertyValuesUpdated) -__all__ = ("WebhookDependabotAlertFixed",) +__all__ = ("WebhookCustomPropertyValuesUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0452.py b/githubkit/versions/v2022_11_28/models/group_0452.py index f780af681..c26404bc0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0452.py +++ b/githubkit/versions/v2022_11_28/models/group_0452.py @@ -17,19 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0234 import DependabotAlert -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDependabotAlertReintroduced(GitHubModel): - """Dependabot alert reintroduced event""" +class WebhookDelete(GitHubModel): + """delete event""" - action: Literal["reintroduced"] = Field() - alert: DependabotAlert = Field(description="A Dependabot alert.") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -40,10 +42,14 @@ class WebhookDependabotAlertReintroduced(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + 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", @@ -55,6 +61,6 @@ class WebhookDependabotAlertReintroduced(GitHubModel): ) -model_rebuild(WebhookDependabotAlertReintroduced) +model_rebuild(WebhookDelete) -__all__ = ("WebhookDependabotAlertReintroduced",) +__all__ = ("WebhookDelete",) diff --git a/githubkit/versions/v2022_11_28/models/group_0453.py b/githubkit/versions/v2022_11_28/models/group_0453.py index 0db68161b..ff00b22f7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0453.py +++ b/githubkit/versions/v2022_11_28/models/group_0453.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0234 import DependabotAlert -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0239 import DependabotAlert +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDependabotAlertReopened(GitHubModel): - """Dependabot alert reopened event""" +class WebhookDependabotAlertAutoDismissed(GitHubModel): + """Dependabot alert auto-dismissed event""" - action: Literal["reopened"] = Field() + action: Literal["auto_dismissed"] = Field() alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -55,6 +55,6 @@ class WebhookDependabotAlertReopened(GitHubModel): ) -model_rebuild(WebhookDependabotAlertReopened) +model_rebuild(WebhookDependabotAlertAutoDismissed) -__all__ = ("WebhookDependabotAlertReopened",) +__all__ = ("WebhookDependabotAlertAutoDismissed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0454.py b/githubkit/versions/v2022_11_28/models/group_0454.py index 71cc84291..4b02fb285 100644 --- a/githubkit/versions/v2022_11_28/models/group_0454.py +++ b/githubkit/versions/v2022_11_28/models/group_0454.py @@ -17,36 +17,34 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0375 import WebhooksDeployKey -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0239 import DependabotAlert +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDeployKeyCreated(GitHubModel): - """deploy_key created event""" +class WebhookDependabotAlertAutoReopened(GitHubModel): + """Dependabot alert auto-reopened event""" - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["auto_reopened"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - key: WebhooksDeployKey = Field( - description="The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) repository: RepositoryWebhooks = Field( title="Repository", 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,6 +55,6 @@ class WebhookDeployKeyCreated(GitHubModel): ) -model_rebuild(WebhookDeployKeyCreated) +model_rebuild(WebhookDependabotAlertAutoReopened) -__all__ = ("WebhookDeployKeyCreated",) +__all__ = ("WebhookDependabotAlertAutoReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0455.py b/githubkit/versions/v2022_11_28/models/group_0455.py index 68cbf1b96..5c46189cc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0455.py +++ b/githubkit/versions/v2022_11_28/models/group_0455.py @@ -17,36 +17,34 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0375 import WebhooksDeployKey -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0239 import DependabotAlert +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDeployKeyDeleted(GitHubModel): - """deploy_key deleted event""" +class WebhookDependabotAlertCreated(GitHubModel): + """Dependabot alert created event""" - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["created"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - key: WebhooksDeployKey = Field( - description="The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." - ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) repository: RepositoryWebhooks = Field( title="Repository", 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,6 +55,6 @@ class WebhookDeployKeyDeleted(GitHubModel): ) -model_rebuild(WebhookDeployKeyDeleted) +model_rebuild(WebhookDependabotAlertCreated) -__all__ = ("WebhookDeployKeyDeleted",) +__all__ = ("WebhookDependabotAlertCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0456.py b/githubkit/versions/v2022_11_28/models/group_0456.py index a60747cb0..f4a4a3065 100644 --- a/githubkit/versions/v2022_11_28/models/group_0456.py +++ b/githubkit/versions/v2022_11_28/models/group_0456.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,27 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0376 import WebhooksWorkflow -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0239 import DependabotAlert +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDeploymentCreated(GitHubModel): - """deployment created event""" +class WebhookDependabotAlertDismissed(GitHubModel): + """Dependabot alert dismissed event""" - action: Literal["created"] = Field() - deployment: WebhookDeploymentCreatedPropDeployment = Field( - title="Deployment", - description="The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments).", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["dismissed"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -49,6 +40,11 @@ class WebhookDeploymentCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) repository: RepositoryWebhooks = Field( title="Repository", 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,616 +53,8 @@ class WebhookDeploymentCreated(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - 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[WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0, str] = ( - 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) - - -class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0(GitHubModel): - """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0""" - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "workflow_job", - "pull_request_review_thread", - "merge_queue_entry", - "secret_scanning_alert_location", - "merge_group", - ] - ] - ] = 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) - - -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) - - -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) - - -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(WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp) -model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRun) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDependabotAlertDismissed) -__all__ = ( - "WebhookDeploymentCreated", - "WebhookDeploymentCreatedPropDeployment", - "WebhookDeploymentCreatedPropDeploymentPropCreator", - "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentCreatedPropWorkflowRun", - "WebhookDeploymentCreatedPropWorkflowRunPropActor", - "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropRepository", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookDependabotAlertDismissed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0457.py b/githubkit/versions/v2022_11_28/models/group_0457.py index 2c729a2c1..dc3f48651 100644 --- a/githubkit/versions/v2022_11_28/models/group_0457.py +++ b/githubkit/versions/v2022_11_28/models/group_0457.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field @@ -17,57 +17,44 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0171 import Deployment -from .group_0298 import PullRequest -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0239 import DependabotAlert +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDeploymentProtectionRuleRequested(GitHubModel): - """deployment protection rule requested event""" +class WebhookDependabotAlertFixed(GitHubModel): + """Dependabot alert fixed event""" - action: Literal["requested"] = Field() - environment: Missing[str] = Field( - default=UNSET, - description="The name of the environment that has the deployment protection rule.", - ) - event: Missing[str] = Field( - default=UNSET, - description="The event that triggered the deployment protection rule.", - ) - deployment_callback_url: Missing[str] = Field( - default=UNSET, description="The URL to review the deployment protection rule." - ) - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - pull_requests: Missing[List[PullRequest]] = Field(default=UNSET) - repository: Missing[RepositoryWebhooks] = Field( + action: Literal["fixed"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - installation: Missing[SimpleInstallation] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - sender: Missing[SimpleUserWebhooks] = 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: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookDeploymentProtectionRuleRequested) +model_rebuild(WebhookDependabotAlertFixed) -__all__ = ("WebhookDeploymentProtectionRuleRequested",) +__all__ = ("WebhookDependabotAlertFixed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0458.py b/githubkit/versions/v2022_11_28/models/group_0458.py index cf4a65bc3..6cf3ef880 100644 --- a/githubkit/versions/v2022_11_28/models/group_0458.py +++ b/githubkit/versions/v2022_11_28/models/group_0458.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,457 +17,44 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0378 import WebhooksWorkflowJobRun -from .group_0369 import OrganizationSimpleWebhooks -from .group_0377 import WebhooksApprover, WebhooksReviewersItems +from .group_0239 import DependabotAlert +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDeploymentReviewApproved(GitHubModel): - """WebhookDeploymentReviewApproved""" +class WebhookDependabotAlertReintroduced(GitHubModel): + """Dependabot alert reintroduced event""" - action: Literal["approved"] = Field() - approver: Missing[WebhooksApprover] = Field(default=UNSET) - comment: Missing[str] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["reintroduced"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) repository: RepositoryWebhooks = Field( title="Repository", 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: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - since: str = Field() - workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) - workflow_job_runs: Missing[ - List[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems] - ] = Field(default=UNSET) - workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - - conclusion: Missing[None] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - environment: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - display_title: str = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: List[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewApproved) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDependabotAlertReintroduced) -__all__ = ( - "WebhookDeploymentReviewApproved", - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRun", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActor", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookDependabotAlertReintroduced",) diff --git a/githubkit/versions/v2022_11_28/models/group_0459.py b/githubkit/versions/v2022_11_28/models/group_0459.py index 82c756dfc..d125946ed 100644 --- a/githubkit/versions/v2022_11_28/models/group_0459.py +++ b/githubkit/versions/v2022_11_28/models/group_0459.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,457 +17,44 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0378 import WebhooksWorkflowJobRun -from .group_0369 import OrganizationSimpleWebhooks -from .group_0377 import WebhooksApprover, WebhooksReviewersItems +from .group_0239 import DependabotAlert +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDeploymentReviewRejected(GitHubModel): - """WebhookDeploymentReviewRejected""" +class WebhookDependabotAlertReopened(GitHubModel): + """Dependabot alert reopened event""" - action: Literal["rejected"] = Field() - approver: Missing[WebhooksApprover] = Field(default=UNSET) - comment: Missing[str] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["reopened"] = Field() + alert: DependabotAlert = Field(description="A Dependabot alert.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) repository: RepositoryWebhooks = Field( title="Repository", 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: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - since: str = Field() - workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) - workflow_job_runs: Missing[ - List[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems] - ] = Field(default=UNSET) - workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRun, None] = Field( - title="Deployment Workflow Run" - ) - - -class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems(GitHubModel): - """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - - conclusion: Missing[Union[str, None]] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - environment: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - name: Missing[Union[str, None]] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[ - Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, None] - ] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) - pull_requests: List[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository - ] = Field(default=UNSET) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal["requested", "in_progress", "completed", "queued", "waiting"] = ( - Field() - ) - triggering_actor: Union[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - display_title: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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) - - -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) - - -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) - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewRejected) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDependabotAlertReopened) -__all__ = ( - "WebhookDeploymentReviewRejected", - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRun", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookDependabotAlertReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0460.py b/githubkit/versions/v2022_11_28/models/group_0460.py index 6f8051896..c37394e32 100644 --- a/githubkit/versions/v2022_11_28/models/group_0460.py +++ b/githubkit/versions/v2022_11_28/models/group_0460.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,30 +17,33 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0379 import WebhooksUser -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0380 import WebhooksDeployKey +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDeploymentReviewRequested(GitHubModel): - """WebhookDeploymentReviewRequested""" +class WebhookDeployKeyCreated(GitHubModel): + """deploy_key created event""" - action: Literal["requested"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - environment: str = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + key: WebhooksDeployKey = Field( + description="The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -49,463 +51,12 @@ class WebhookDeploymentReviewRequested(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requestor: Union[WebhooksUser, None] = Field(title="User") - reviewers: List[WebhookDeploymentReviewRequestedPropReviewersItems] = Field() sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - 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) - - -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) - - -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) - - -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) - - -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) - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase = Field() - head: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead = Field() - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentReviewRequested) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowJobRun) -model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItems) -model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRun) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems -) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner -) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDeployKeyCreated) -__all__ = ( - "WebhookDeploymentReviewRequested", - "WebhookDeploymentReviewRequestedPropWorkflowJobRun", - "WebhookDeploymentReviewRequestedPropReviewersItems", - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer", - "WebhookDeploymentReviewRequestedPropWorkflowRun", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActor", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookDeployKeyCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0461.py b/githubkit/versions/v2022_11_28/models/group_0461.py index 2041e661b..1e3e543d0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0461.py +++ b/githubkit/versions/v2022_11_28/models/group_0461.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,28 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0376 import WebhooksWorkflow -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0380 import WebhooksDeployKey +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDeploymentStatusCreated(GitHubModel): - """deployment_status created event""" +class WebhookDeployKeyDeleted(GitHubModel): + """deploy_key deleted event""" - action: Literal["created"] = Field() - check_run: Missing[Union[WebhookDeploymentStatusCreatedPropCheckRun, None]] = Field( - default=UNSET - ) - deployment: WebhookDeploymentStatusCreatedPropDeployment = Field( - title="Deployment", - description="The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments).", - ) - deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatus = Field( - description="The [deployment status](https://docs.github.com/rest/deployments/statuses#list-deployment-statuses)." - ) + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -50,6 +39,9 @@ class WebhookDeploymentStatusCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + key: WebhooksDeployKey = Field( + description="The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource." + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -63,926 +55,8 @@ class WebhookDeploymentStatusCreated(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - 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) - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1(GitHubModel): - """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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "merge_queue_entry", - "workflow_job", - "pull_request_review_thread", - "secret_scanning_alert_location", - "merge_group", - ] - ] - ] = 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) - - -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) - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "merge_queue_entry", - "workflow_job", - "merge_group", - "secret_scanning_alert_location", - ] - ] - ] = 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) - - -class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP - ermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: Missing[str] = Field(default=UNSET) - cancel_url: Missing[str] = Field(default=UNSET) - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: Missing[str] = Field(default=UNSET) - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "startup_failure", - ], - ] = Field() - created_at: datetime = Field() - display_title: str = Field() - event: str = Field() - head_branch: str = Field() - head_commit: Missing[None] = Field(default=UNSET) - head_repository: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository - ] = Field(default=UNSET) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: Missing[str] = Field(default=UNSET) - logs_url: Missing[str] = Field(default=UNSET) - name: str = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Missing[None] = Field(default=UNSET) - pull_requests: List[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: Missing[WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository] = ( - Field(default=UNSET) - ) - rerun_url: Missing[str] = Field(default=UNSET) - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] = Field() - triggering_actor: Union[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" - - archive_url: Missing[str] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[None] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[bool] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - owner: Missing[ - WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner - ] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """Check Run Pull Request""" - - base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() - ) - id: int = Field() - number: int = Field() - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() -model_rebuild(WebhookDeploymentStatusCreated) -model_rebuild(WebhookDeploymentStatusCreatedPropCheckRun) -model_rebuild(WebhookDeploymentStatusCreatedPropDeployment) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropCreator) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatus) -model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRun) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropActor) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems) -model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase -) -model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead -) -model_rebuild( - WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookDeployKeyDeleted) -__all__ = ( - "WebhookDeploymentStatusCreated", - "WebhookDeploymentStatusCreatedPropCheckRun", - "WebhookDeploymentStatusCreatedPropDeployment", - "WebhookDeploymentStatusCreatedPropDeploymentPropCreator", - "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentStatusCreatedPropDeploymentStatus", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions", - "WebhookDeploymentStatusCreatedPropWorkflowRun", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropActor", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", -) +__all__ = ("WebhookDeployKeyDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0462.py b/githubkit/versions/v2022_11_28/models/group_0462.py index 43c34aeb4..1de94c97b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0462.py +++ b/githubkit/versions/v2022_11_28/models/group_0462.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,22 +18,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0381 import Discussion -from .group_0380 import WebhooksAnswer -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0381 import WebhooksWorkflow +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDiscussionAnswered(GitHubModel): - """discussion answered event""" +class WebhookDeploymentCreated(GitHubModel): + """deployment created event""" - action: Literal["answered"] = Field() - answer: WebhooksAnswer = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." + action: Literal["created"] = Field() + deployment: WebhookDeploymentCreatedPropDeployment = Field( + title="Deployment", + description="The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments).", ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -57,8 +57,616 @@ class WebhookDiscussionAnswered(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + 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[WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0, str] = ( + 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) + + +class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0(GitHubModel): + """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0""" + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "workflow_job", + "pull_request_review_thread", + "merge_queue_entry", + "secret_scanning_alert_location", + "merge_group", + ] + ] + ] = 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) + + +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) + + +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) + + +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner] = ( + Field(default=UNSET) + ) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead(GitHubModel): + """WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionAnswered) +model_rebuild(WebhookDeploymentCreated) +model_rebuild(WebhookDeploymentCreatedPropDeployment) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropCreator) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp) +model_rebuild(WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner) +model_rebuild( + WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRun) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionAnswered",) +__all__ = ( + "WebhookDeploymentCreated", + "WebhookDeploymentCreatedPropDeployment", + "WebhookDeploymentCreatedPropDeploymentPropCreator", + "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubApp", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentCreatedPropWorkflowRun", + "WebhookDeploymentCreatedPropWorkflowRunPropActor", + "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentCreatedPropWorkflowRunPropRepository", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0463.py b/githubkit/versions/v2022_11_28/models/group_0463.py index 5c23a20aa..dd7e58419 100644 --- a/githubkit/versions/v2022_11_28/models/group_0463.py +++ b/githubkit/versions/v2022_11_28/models/group_0463.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime +from typing import List, Literal from pydantic import Field @@ -18,84 +17,57 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0381 import Discussion -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0176 import Deployment +from .group_0303 import PullRequest +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDiscussionCategoryChanged(GitHubModel): - """discussion category changed event""" +class WebhookDeploymentProtectionRuleRequested(GitHubModel): + """deployment protection rule requested event""" - action: Literal["category_changed"] = Field() - changes: WebhookDiscussionCategoryChangedPropChanges = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." + action: Literal["requested"] = Field() + environment: Missing[str] = Field( + default=UNSET, + description="The name of the environment that has the deployment protection rule.", ) - enterprise: Missing[EnterpriseWebhooks] = Field( + event: Missing[str] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + description="The event that triggered the deployment protection rule.", ) - installation: Missing[SimpleInstallation] = Field( + deployment_callback_url: Missing[str] = Field( + default=UNSET, description="The URL to review the deployment protection rule." + ) + deployment: Missing[Deployment] = Field( default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + pull_requests: Missing[List[PullRequest]] = Field(default=UNSET) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookDiscussionCategoryChangedPropChanges(GitHubModel): - """WebhookDiscussionCategoryChangedPropChanges""" - - 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) +model_rebuild(WebhookDeploymentProtectionRuleRequested) -__all__ = ( - "WebhookDiscussionCategoryChanged", - "WebhookDiscussionCategoryChangedPropChanges", - "WebhookDiscussionCategoryChangedPropChangesPropCategory", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", -) +__all__ = ("WebhookDeploymentProtectionRuleRequested",) diff --git a/githubkit/versions/v2022_11_28/models/group_0464.py b/githubkit/versions/v2022_11_28/models/group_0464.py index c3dd47caf..8f53adad1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0464.py +++ b/githubkit/versions/v2022_11_28/models/group_0464.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,21 +18,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0381 import Discussion -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0383 import WebhooksWorkflowJobRun +from .group_0374 import OrganizationSimpleWebhooks +from .group_0382 import WebhooksApprover, WebhooksReviewersItems -class WebhookDiscussionClosed(GitHubModel): - """discussion closed event""" +class WebhookDeploymentReviewApproved(GitHubModel): + """WebhookDeploymentReviewApproved""" - action: Literal["closed"] = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["approved"] = Field() + approver: Missing[WebhooksApprover] = Field(default=UNSET) + comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,8 +43,7 @@ class WebhookDiscussionClosed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -51,12 +51,424 @@ class WebhookDiscussionClosed(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + reviewers: Missing[List[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + since: str = Field() + workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) + workflow_job_runs: Missing[ + List[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems] + ] = Field(default=UNSET) + workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) + + +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" + + conclusion: Missing[None] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + environment: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() + created_at: datetime = Field() + display_title: str = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: List[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionClosed) +model_rebuild(WebhookDeploymentReviewApproved) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionClosed",) +__all__ = ( + "WebhookDeploymentReviewApproved", + "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRun", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropActor", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0465.py b/githubkit/versions/v2022_11_28/models/group_0465.py index be2deb742..70ece96cb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0465.py +++ b/githubkit/versions/v2022_11_28/models/group_0465.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,23 +18,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0381 import Discussion -from .group_0382 import WebhooksComment -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0383 import WebhooksWorkflowJobRun +from .group_0374 import OrganizationSimpleWebhooks +from .group_0382 import WebhooksApprover, WebhooksReviewersItems -class WebhookDiscussionCommentCreated(GitHubModel): - """discussion_comment created event""" +class WebhookDeploymentReviewRejected(GitHubModel): + """WebhookDeploymentReviewRejected""" - action: Literal["created"] = Field() - comment: WebhooksComment = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["rejected"] = Field() + approver: Missing[WebhooksApprover] = Field(default=UNSET) + comment: Missing[str] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,8 +43,7 @@ class WebhookDiscussionCommentCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) @@ -53,12 +51,424 @@ class WebhookDiscussionCommentCreated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + reviewers: Missing[List[WebhooksReviewersItems]] = Field(default=UNSET) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + since: str = Field() + workflow_job_run: Missing[WebhooksWorkflowJobRun] = Field(default=UNSET) + workflow_job_runs: Missing[ + List[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems] + ] = Field(default=UNSET) + workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRun, None] = Field( + title="Deployment Workflow Run" + ) + + +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems(GitHubModel): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" + + conclusion: Missing[Union[str, None]] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + environment: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + name: Missing[Union[str, None]] = Field(default=UNSET) + status: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentReviewRejectedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit, None] + ] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[Union[str, None]] = Field(default=UNSET) + pull_requests: List[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository + ] = Field(default=UNSET) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] = ( + Field() + ) + triggering_actor: Union[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + display_title: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +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) + + +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) + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionCommentCreated) +model_rebuild(WebhookDeploymentReviewRejected) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionCommentCreated",) +__all__ = ( + "WebhookDeploymentReviewRejected", + "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRun", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropActor", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0466.py b/githubkit/versions/v2022_11_28/models/group_0466.py index 44170c831..bab2a76e4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0466.py +++ b/githubkit/versions/v2022_11_28/models/group_0466.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,35 +18,30 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0381 import Discussion -from .group_0382 import WebhooksComment -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0384 import WebhooksUser +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDiscussionCommentDeleted(GitHubModel): - """discussion_comment deleted event""" +class WebhookDeploymentReviewRequested(GitHubModel): + """WebhookDeploymentReviewRequested""" - action: Literal["deleted"] = Field() - comment: WebhooksComment = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." - ) + action: Literal["requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) + 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,12 +49,463 @@ class WebhookDiscussionCommentDeleted(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requestor: Union[WebhooksUser, None] = Field(title="User") + reviewers: List[WebhookDeploymentReviewRequestedPropReviewersItems] = Field() sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + 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) + + +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) + + +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) + + +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) + + +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) + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase = Field() + head: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead = Field() + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(WebhookDiscussionCommentDeleted) +model_rebuild(WebhookDeploymentReviewRequested) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowJobRun) +model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItems) +model_rebuild(WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRun) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems +) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner +) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("WebhookDiscussionCommentDeleted",) +__all__ = ( + "WebhookDeploymentReviewRequested", + "WebhookDeploymentReviewRequestedPropWorkflowJobRun", + "WebhookDeploymentReviewRequestedPropReviewersItems", + "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewer", + "WebhookDeploymentReviewRequestedPropWorkflowRun", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropActor", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommit", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepository", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0467.py b/githubkit/versions/v2022_11_28/models/group_0467.py index d96735926..d626e6101 100644 --- a/githubkit/versions/v2022_11_28/models/group_0467.py +++ b/githubkit/versions/v2022_11_28/models/group_0467.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,23 +18,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0381 import Discussion -from .group_0382 import WebhooksComment -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0381 import WebhooksWorkflow +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDiscussionCommentEdited(GitHubModel): - """discussion_comment edited event""" +class WebhookDeploymentStatusCreated(GitHubModel): + """deployment_status created event""" - action: Literal["edited"] = Field() - changes: WebhookDiscussionCommentEditedPropChanges = Field() - comment: WebhooksComment = Field() - discussion: Discussion = Field( - title="Discussion", description="A Discussion in a repository." + action: Literal["created"] = Field() + check_run: Missing[Union[WebhookDeploymentStatusCreatedPropCheckRun, None]] = Field( + default=UNSET + ) + deployment: WebhookDeploymentStatusCreatedPropDeployment = Field( + title="Deployment", + description="The [deployment](https://docs.github.com/rest/deployments/deployments#list-deployments).", + ) + deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatus = Field( + description="The [deployment status](https://docs.github.com/rest/deployments/statuses#list-deployment-statuses)." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -58,26 +63,926 @@ class WebhookDiscussionCommentEdited(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + 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) + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1(GitHubModel): + """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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "merge_queue_entry", + "workflow_job", + "pull_request_review_thread", + "secret_scanning_alert_location", + "merge_group", + ] + ] + ] = 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) + + +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 WebhookDiscussionCommentEditedPropChanges(GitHubModel): - """WebhookDiscussionCommentEditedPropChanges""" +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() + - body: WebhookDiscussionCommentEditedPropChangesPropBody = 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) -class WebhookDiscussionCommentEditedPropChangesPropBody(GitHubModel): - """WebhookDiscussionCommentEditedPropChangesPropBody""" - from_: str = Field(alias="from") +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "merge_queue_entry", + "workflow_job", + "merge_group", + "secret_scanning_alert_location", + ] + ] + ] = 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) + + +class WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropP + ermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + +class WebhookDeploymentStatusCreatedPropWorkflowRun(GitHubModel): + """Deployment Workflow Run""" -model_rebuild(WebhookDiscussionCommentEdited) -model_rebuild(WebhookDiscussionCommentEditedPropChanges) -model_rebuild(WebhookDiscussionCommentEditedPropChangesPropBody) + actor: Union[WebhookDeploymentStatusCreatedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: Missing[str] = Field(default=UNSET) + cancel_url: Missing[str] = Field(default=UNSET) + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: Missing[str] = Field(default=UNSET) + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] = Field() + created_at: datetime = Field() + display_title: str = Field() + event: str = Field() + head_branch: str = Field() + head_commit: Missing[None] = Field(default=UNSET) + head_repository: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository + ] = Field(default=UNSET) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: Missing[str] = Field(default=UNSET) + logs_url: Missing[str] = Field(default=UNSET) + name: str = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Missing[None] = Field(default=UNSET) + pull_requests: List[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: Missing[WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository] = ( + Field(default=UNSET) + ) + rerun_url: Missing[str] = Field(default=UNSET) + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] = Field() + triggering_actor: Union[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository""" + + archive_url: Missing[str] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[bool] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) + full_name: Missing[str] = Field(default=UNSET) + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + notifications_url: Missing[str] = Field(default=UNSET) + owner: Missing[ + WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner + ] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """Check Run Pull Request""" + + base: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: int = Field() + number: int = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +model_rebuild(WebhookDeploymentStatusCreated) +model_rebuild(WebhookDeploymentStatusCreatedPropCheckRun) +model_rebuild(WebhookDeploymentStatusCreatedPropDeployment) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropCreator) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatus) +model_rebuild(WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRun) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropActor) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead +) +model_rebuild( + WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) __all__ = ( - "WebhookDiscussionCommentEdited", - "WebhookDiscussionCommentEditedPropChanges", - "WebhookDiscussionCommentEditedPropChangesPropBody", + "WebhookDeploymentStatusCreated", + "WebhookDeploymentStatusCreatedPropCheckRun", + "WebhookDeploymentStatusCreatedPropDeployment", + "WebhookDeploymentStatusCreatedPropDeploymentPropCreator", + "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubApp", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentStatusCreatedPropDeploymentStatus", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreator", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubApp", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwner", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissions", + "WebhookDeploymentStatusCreatedPropWorkflowRun", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropActor", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActor", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepository", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepository", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwner", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItems", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0468.py b/githubkit/versions/v2022_11_28/models/group_0468.py index eb4eabbde..ef5e837f3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0468.py +++ b/githubkit/versions/v2022_11_28/models/group_0468.py @@ -17,18 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0381 import Discussion -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0386 import Discussion +from .group_0385 import WebhooksAnswer +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDiscussionCreated(GitHubModel): - """discussion created event""" +class WebhookDiscussionAnswered(GitHubModel): + """discussion answered event""" - action: Literal["created"] = Field() + action: Literal["answered"] = Field() + answer: WebhooksAnswer = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +59,6 @@ class WebhookDiscussionCreated(GitHubModel): ) -model_rebuild(WebhookDiscussionCreated) +model_rebuild(WebhookDiscussionAnswered) -__all__ = ("WebhookDiscussionCreated",) +__all__ = ("WebhookDiscussionAnswered",) diff --git a/githubkit/versions/v2022_11_28/models/group_0469.py b/githubkit/versions/v2022_11_28/models/group_0469.py index e1661098e..7c49988ed 100644 --- a/githubkit/versions/v2022_11_28/models/group_0469.py +++ b/githubkit/versions/v2022_11_28/models/group_0469.py @@ -10,6 +10,7 @@ from __future__ import annotations from typing import Literal +from datetime import datetime from pydantic import Field @@ -17,18 +18,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0381 import Discussion -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0386 import Discussion +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDiscussionDeleted(GitHubModel): - """discussion deleted event""" +class WebhookDiscussionCategoryChanged(GitHubModel): + """discussion category changed event""" - action: Literal["deleted"] = Field() + action: Literal["category_changed"] = Field() + changes: WebhookDiscussionCategoryChangedPropChanges = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +59,43 @@ class WebhookDiscussionDeleted(GitHubModel): ) -model_rebuild(WebhookDiscussionDeleted) +class WebhookDiscussionCategoryChangedPropChanges(GitHubModel): + """WebhookDiscussionCategoryChangedPropChanges""" -__all__ = ("WebhookDiscussionDeleted",) + category: WebhookDiscussionCategoryChangedPropChangesPropCategory = Field() + + +class WebhookDiscussionCategoryChangedPropChangesPropCategory(GitHubModel): + """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + + from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom = Field( + alias="from" + ) + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom(GitHubModel): + """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + + created_at: datetime = Field() + description: str = Field() + emoji: str = Field() + id: int = Field() + is_answerable: bool = Field() + name: str = Field() + node_id: Missing[str] = Field(default=UNSET) + repository_id: int = Field() + slug: str = Field() + updated_at: str = Field() + + +model_rebuild(WebhookDiscussionCategoryChanged) +model_rebuild(WebhookDiscussionCategoryChangedPropChanges) +model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategory) +model_rebuild(WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom) + +__all__ = ( + "WebhookDiscussionCategoryChanged", + "WebhookDiscussionCategoryChangedPropChanges", + "WebhookDiscussionCategoryChangedPropChangesPropCategory", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0470.py b/githubkit/versions/v2022_11_28/models/group_0470.py index 55e3809de..1eab08ee7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0470.py +++ b/githubkit/versions/v2022_11_28/models/group_0470.py @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0381 import Discussion -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0386 import Discussion +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDiscussionEdited(GitHubModel): - """discussion edited event""" +class WebhookDiscussionClosed(GitHubModel): + """discussion closed event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) + action: Literal["closed"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -58,33 +57,6 @@ class WebhookDiscussionEdited(GitHubModel): ) -class WebhookDiscussionEditedPropChanges(GitHubModel): - """WebhookDiscussionEditedPropChanges""" +model_rebuild(WebhookDiscussionClosed) - body: Missing[WebhookDiscussionEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookDiscussionEditedPropChangesPropTitle] = Field(default=UNSET) - - -class WebhookDiscussionEditedPropChangesPropBody(GitHubModel): - """WebhookDiscussionEditedPropChangesPropBody""" - - from_: str = Field(alias="from") - - -class WebhookDiscussionEditedPropChangesPropTitle(GitHubModel): - """WebhookDiscussionEditedPropChangesPropTitle""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookDiscussionEdited) -model_rebuild(WebhookDiscussionEditedPropChanges) -model_rebuild(WebhookDiscussionEditedPropChangesPropBody) -model_rebuild(WebhookDiscussionEditedPropChangesPropTitle) - -__all__ = ( - "WebhookDiscussionEdited", - "WebhookDiscussionEditedPropChanges", - "WebhookDiscussionEditedPropChangesPropBody", - "WebhookDiscussionEditedPropChangesPropTitle", -) +__all__ = ("WebhookDiscussionClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0471.py b/githubkit/versions/v2022_11_28/models/group_0471.py index 966a6686b..bc6e6fdbc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0471.py +++ b/githubkit/versions/v2022_11_28/models/group_0471.py @@ -17,19 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0381 import Discussion -from .group_0383 import WebhooksLabel -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0386 import Discussion +from .group_0387 import WebhooksComment +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDiscussionLabeled(GitHubModel): - """discussion labeled event""" +class WebhookDiscussionCommentCreated(GitHubModel): + """discussion_comment created event""" - action: Literal["labeled"] = Field() + action: Literal["created"] = Field() + comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -43,7 +44,6 @@ class WebhookDiscussionLabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -59,6 +59,6 @@ class WebhookDiscussionLabeled(GitHubModel): ) -model_rebuild(WebhookDiscussionLabeled) +model_rebuild(WebhookDiscussionCommentCreated) -__all__ = ("WebhookDiscussionLabeled",) +__all__ = ("WebhookDiscussionCommentCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0472.py b/githubkit/versions/v2022_11_28/models/group_0472.py index f2bbd09ec..7f3a35ea2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0472.py +++ b/githubkit/versions/v2022_11_28/models/group_0472.py @@ -17,18 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0381 import Discussion -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0386 import Discussion +from .group_0387 import WebhooksComment +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDiscussionLocked(GitHubModel): - """discussion locked event""" +class WebhookDiscussionCommentDeleted(GitHubModel): + """discussion_comment deleted event""" - action: Literal["locked"] = Field() + action: Literal["deleted"] = Field() + comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +59,6 @@ class WebhookDiscussionLocked(GitHubModel): ) -model_rebuild(WebhookDiscussionLocked) +model_rebuild(WebhookDiscussionCommentDeleted) -__all__ = ("WebhookDiscussionLocked",) +__all__ = ("WebhookDiscussionCommentDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0473.py b/githubkit/versions/v2022_11_28/models/group_0473.py index 93ea16976..4fb4837e8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0473.py +++ b/githubkit/versions/v2022_11_28/models/group_0473.py @@ -17,18 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0381 import Discussion -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0386 import Discussion +from .group_0387 import WebhooksComment +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDiscussionPinned(GitHubModel): - """discussion pinned event""" +class WebhookDiscussionCommentEdited(GitHubModel): + """discussion_comment edited event""" - action: Literal["pinned"] = Field() + action: Literal["edited"] = Field() + changes: WebhookDiscussionCommentEditedPropChanges = Field() + comment: WebhooksComment = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +60,24 @@ class WebhookDiscussionPinned(GitHubModel): ) -model_rebuild(WebhookDiscussionPinned) +class WebhookDiscussionCommentEditedPropChanges(GitHubModel): + """WebhookDiscussionCommentEditedPropChanges""" -__all__ = ("WebhookDiscussionPinned",) + body: WebhookDiscussionCommentEditedPropChangesPropBody = Field() + + +class WebhookDiscussionCommentEditedPropChangesPropBody(GitHubModel): + """WebhookDiscussionCommentEditedPropChangesPropBody""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookDiscussionCommentEdited) +model_rebuild(WebhookDiscussionCommentEditedPropChanges) +model_rebuild(WebhookDiscussionCommentEditedPropChangesPropBody) + +__all__ = ( + "WebhookDiscussionCommentEdited", + "WebhookDiscussionCommentEditedPropChanges", + "WebhookDiscussionCommentEditedPropChangesPropBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0474.py b/githubkit/versions/v2022_11_28/models/group_0474.py index b456a8036..146e2410b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0474.py +++ b/githubkit/versions/v2022_11_28/models/group_0474.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0381 import Discussion -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0386 import Discussion +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDiscussionReopened(GitHubModel): - """discussion reopened event""" +class WebhookDiscussionCreated(GitHubModel): + """discussion created event""" - action: Literal["reopened"] = Field() + action: Literal["created"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +57,6 @@ class WebhookDiscussionReopened(GitHubModel): ) -model_rebuild(WebhookDiscussionReopened) +model_rebuild(WebhookDiscussionCreated) -__all__ = ("WebhookDiscussionReopened",) +__all__ = ("WebhookDiscussionCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0475.py b/githubkit/versions/v2022_11_28/models/group_0475.py index 40ed33491..bd4390ac5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0475.py +++ b/githubkit/versions/v2022_11_28/models/group_0475.py @@ -17,20 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0381 import Discussion -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0476 import WebhookDiscussionTransferredPropChanges +from .group_0386 import Discussion +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDiscussionTransferred(GitHubModel): - """discussion transferred event""" +class WebhookDiscussionDeleted(GitHubModel): + """discussion deleted event""" - action: Literal["transferred"] = Field() - changes: WebhookDiscussionTransferredPropChanges = Field() + action: Literal["deleted"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -59,6 +57,6 @@ class WebhookDiscussionTransferred(GitHubModel): ) -model_rebuild(WebhookDiscussionTransferred) +model_rebuild(WebhookDiscussionDeleted) -__all__ = ("WebhookDiscussionTransferred",) +__all__ = ("WebhookDiscussionDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0476.py b/githubkit/versions/v2022_11_28/models/group_0476.py index ed7ecfb42..1ad051aef 100644 --- a/githubkit/versions/v2022_11_28/models/group_0476.py +++ b/githubkit/versions/v2022_11_28/models/group_0476.py @@ -9,26 +9,82 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0381 import Discussion -from .group_0370 import RepositoryWebhooks +from .group_0386 import Discussion +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDiscussionTransferredPropChanges(GitHubModel): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionEdited(GitHubModel): + """discussion edited event""" - new_discussion: Discussion = Field( + action: Literal["edited"] = Field() + changes: Missing[WebhookDiscussionEditedPropChanges] = Field(default=UNSET) + discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - new_repository: RepositoryWebhooks = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookDiscussionEditedPropChanges(GitHubModel): + """WebhookDiscussionEditedPropChanges""" + + body: Missing[WebhookDiscussionEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookDiscussionEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookDiscussionEditedPropChangesPropBody(GitHubModel): + """WebhookDiscussionEditedPropChangesPropBody""" + + from_: str = Field(alias="from") + + +class WebhookDiscussionEditedPropChangesPropTitle(GitHubModel): + """WebhookDiscussionEditedPropChangesPropTitle""" + + from_: str = Field(alias="from") -model_rebuild(WebhookDiscussionTransferredPropChanges) +model_rebuild(WebhookDiscussionEdited) +model_rebuild(WebhookDiscussionEditedPropChanges) +model_rebuild(WebhookDiscussionEditedPropChangesPropBody) +model_rebuild(WebhookDiscussionEditedPropChangesPropTitle) -__all__ = ("WebhookDiscussionTransferredPropChanges",) +__all__ = ( + "WebhookDiscussionEdited", + "WebhookDiscussionEditedPropChanges", + "WebhookDiscussionEditedPropChangesPropBody", + "WebhookDiscussionEditedPropChangesPropTitle", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0477.py b/githubkit/versions/v2022_11_28/models/group_0477.py index 8802b30a6..229172177 100644 --- a/githubkit/versions/v2022_11_28/models/group_0477.py +++ b/githubkit/versions/v2022_11_28/models/group_0477.py @@ -17,21 +17,33 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0381 import Discussion -from .group_0380 import WebhooksAnswer -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0386 import Discussion +from .group_0388 import WebhooksLabel +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDiscussionUnanswered(GitHubModel): - """discussion unanswered event""" +class WebhookDiscussionLabeled(GitHubModel): + """discussion labeled event""" - action: Literal["unanswered"] = Field() + action: Literal["labeled"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) - old_answer: WebhooksAnswer = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -41,13 +53,12 @@ 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[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookDiscussionUnanswered) +model_rebuild(WebhookDiscussionLabeled) -__all__ = ("WebhookDiscussionUnanswered",) +__all__ = ("WebhookDiscussionLabeled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0478.py b/githubkit/versions/v2022_11_28/models/group_0478.py index 662f334c9..4819376ed 100644 --- a/githubkit/versions/v2022_11_28/models/group_0478.py +++ b/githubkit/versions/v2022_11_28/models/group_0478.py @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0381 import Discussion -from .group_0383 import WebhooksLabel -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0386 import Discussion +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDiscussionUnlabeled(GitHubModel): - """discussion unlabeled event""" +class WebhookDiscussionLocked(GitHubModel): + """discussion locked event""" - action: Literal["unlabeled"] = Field() + action: Literal["locked"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -43,7 +42,6 @@ class WebhookDiscussionUnlabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -59,6 +57,6 @@ class WebhookDiscussionUnlabeled(GitHubModel): ) -model_rebuild(WebhookDiscussionUnlabeled) +model_rebuild(WebhookDiscussionLocked) -__all__ = ("WebhookDiscussionUnlabeled",) +__all__ = ("WebhookDiscussionLocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0479.py b/githubkit/versions/v2022_11_28/models/group_0479.py index 2c2aae501..6f420d2c8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0479.py +++ b/githubkit/versions/v2022_11_28/models/group_0479.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0381 import Discussion -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0386 import Discussion +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDiscussionUnlocked(GitHubModel): - """discussion unlocked event""" +class WebhookDiscussionPinned(GitHubModel): + """discussion pinned event""" - action: Literal["unlocked"] = Field() + action: Literal["pinned"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +57,6 @@ class WebhookDiscussionUnlocked(GitHubModel): ) -model_rebuild(WebhookDiscussionUnlocked) +model_rebuild(WebhookDiscussionPinned) -__all__ = ("WebhookDiscussionUnlocked",) +__all__ = ("WebhookDiscussionPinned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0480.py b/githubkit/versions/v2022_11_28/models/group_0480.py index df9ea597a..53e5d4bb8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0480.py +++ b/githubkit/versions/v2022_11_28/models/group_0480.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0381 import Discussion -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0386 import Discussion +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookDiscussionUnpinned(GitHubModel): - """discussion unpinned event""" +class WebhookDiscussionReopened(GitHubModel): + """discussion reopened event""" - action: Literal["unpinned"] = Field() + action: Literal["reopened"] = Field() discussion: Discussion = Field( title="Discussion", description="A Discussion in a repository." ) @@ -57,6 +57,6 @@ class WebhookDiscussionUnpinned(GitHubModel): ) -model_rebuild(WebhookDiscussionUnpinned) +model_rebuild(WebhookDiscussionReopened) -__all__ = ("WebhookDiscussionUnpinned",) +__all__ = ("WebhookDiscussionReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0481.py b/githubkit/versions/v2022_11_28/models/group_0481.py index 3ca0af679..0329c72de 100644 --- a/githubkit/versions/v2022_11_28/models/group_0481.py +++ b/githubkit/versions/v2022_11_28/models/group_0481.py @@ -9,34 +9,36 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0482 import WebhookForkPropForkee -from .group_0369 import OrganizationSimpleWebhooks - +from .group_0386 import Discussion +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0482 import WebhookDiscussionTransferredPropChanges -class WebhookFork(GitHubModel): - """fork event - A user forks a repository. - """ +class WebhookDiscussionTransferred(GitHubModel): + """discussion transferred event""" + action: Literal["transferred"] = Field() + changes: WebhookDiscussionTransferredPropChanges = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - 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", @@ -57,6 +59,6 @@ class WebhookFork(GitHubModel): ) -model_rebuild(WebhookFork) +model_rebuild(WebhookDiscussionTransferred) -__all__ = ("WebhookFork",) +__all__ = ("WebhookDiscussionTransferred",) diff --git a/githubkit/versions/v2022_11_28/models/group_0482.py b/githubkit/versions/v2022_11_28/models/group_0482.py index 6c1b14c61..e1989d97a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0482.py +++ b/githubkit/versions/v2022_11_28/models/group_0482.py @@ -9,185 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0484 import WebhookForkPropForkeeAllof0PropPermissions - +from .group_0386 import Discussion +from .group_0375 import RepositoryWebhooks -class WebhookForkPropForkee(GitHubModel): - """WebhookForkPropForkee - The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- - repository) resource. - """ +class WebhookDiscussionTransferredPropChanges(GitHubModel): + """WebhookDiscussionTransferredPropChanges""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: datetime = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[Union[str, None], None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." + new_discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." ) - downloads_url: str = Field() - events_url: str = Field() - fork: Literal[True] = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." + new_repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[Union[str, None], None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[None, None] = Field() - languages_url: str = Field() - license_: Union[WebhookForkPropForkeeMergedLicense, None] = Field(alias="license") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[None, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: WebhookForkPropForkeeMergedOwner = Field() - permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: datetime = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookForkPropForkeeMergedLicense(GitHubModel): - """WebhookForkPropForkeeMergedLicense""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookForkPropForkeeMergedOwner(GitHubModel): - """WebhookForkPropForkeeMergedOwner""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookForkPropForkee) -model_rebuild(WebhookForkPropForkeeMergedLicense) -model_rebuild(WebhookForkPropForkeeMergedOwner) +model_rebuild(WebhookDiscussionTransferredPropChanges) -__all__ = ( - "WebhookForkPropForkee", - "WebhookForkPropForkeeMergedLicense", - "WebhookForkPropForkeeMergedOwner", -) +__all__ = ("WebhookDiscussionTransferredPropChanges",) diff --git a/githubkit/versions/v2022_11_28/models/group_0483.py b/githubkit/versions/v2022_11_28/models/group_0483.py index 60dafc3c9..658d7a794 100644 --- a/githubkit/versions/v2022_11_28/models/group_0483.py +++ b/githubkit/versions/v2022_11_28/models/group_0483.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,177 +17,37 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0484 import WebhookForkPropForkeeAllof0PropPermissions +from .group_0386 import Discussion +from .group_0385 import WebhooksAnswer +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookForkPropForkeeAllof0(GitHubModel): - """Repository +class WebhookDiscussionUnanswered(GitHubModel): + """discussion unanswered event""" - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." + action: Literal["unanswered"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( + old_answer: WebhooksAnswer = Field() + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookForkPropForkeeAllof0PropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookForkPropForkeeAllof0PropOwner, None] = Field(title="User") - permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - description="Whether to require contributors to sign off on web-based commits", + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -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) - - -model_rebuild(WebhookForkPropForkeeAllof0) -model_rebuild(WebhookForkPropForkeeAllof0PropLicense) -model_rebuild(WebhookForkPropForkeeAllof0PropOwner) +model_rebuild(WebhookDiscussionUnanswered) -__all__ = ( - "WebhookForkPropForkeeAllof0", - "WebhookForkPropForkeeAllof0PropLicense", - "WebhookForkPropForkeeAllof0PropOwner", -) +__all__ = ("WebhookDiscussionUnanswered",) diff --git a/githubkit/versions/v2022_11_28/models/group_0484.py b/githubkit/versions/v2022_11_28/models/group_0484.py index 3eb52973b..bd3b03c96 100644 --- a/githubkit/versions/v2022_11_28/models/group_0484.py +++ b/githubkit/versions/v2022_11_28/models/group_0484.py @@ -9,23 +9,56 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0386 import Discussion +from .group_0388 import WebhooksLabel +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks + -class WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): - """WebhookForkPropForkeeAllof0PropPermissions""" +class WebhookDiscussionUnlabeled(GitHubModel): + """discussion unlabeled event""" - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) + action: Literal["unlabeled"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + label: WebhooksLabel = Field(title="Label") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) +model_rebuild(WebhookDiscussionUnlabeled) -__all__ = ("WebhookForkPropForkeeAllof0PropPermissions",) +__all__ = ("WebhookDiscussionUnlabeled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0485.py b/githubkit/versions/v2022_11_28/models/group_0485.py index 14ecf8b8e..ffe905909 100644 --- a/githubkit/versions/v2022_11_28/models/group_0485.py +++ b/githubkit/versions/v2022_11_28/models/group_0485.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,125 +17,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0386 import Discussion +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookForkPropForkeeAllof1(GitHubModel): - """WebhookForkPropForkeeAllof1""" - allow_forking: Missing[bool] = Field(default=UNSET) - archive_url: Missing[str] = Field(default=UNSET) - archived: Missing[bool] = Field(default=UNSET) - assignees_url: Missing[str] = Field(default=UNSET) - blobs_url: Missing[str] = Field(default=UNSET) - branches_url: Missing[str] = Field(default=UNSET) - clone_url: Missing[str] = Field(default=UNSET) - collaborators_url: Missing[str] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - commits_url: Missing[str] = Field(default=UNSET) - compare_url: Missing[str] = Field(default=UNSET) - contents_url: Missing[str] = Field(default=UNSET) - contributors_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - default_branch: Missing[str] = Field(default=UNSET) - deployments_url: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - disabled: Missing[bool] = Field(default=UNSET) - downloads_url: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - fork: Missing[Literal[True]] = Field(default=UNSET) - forks: Missing[int] = Field(default=UNSET) - forks_count: Missing[int] = Field(default=UNSET) - forks_url: Missing[str] = Field(default=UNSET) - full_name: Missing[str] = Field(default=UNSET) - git_commits_url: Missing[str] = Field(default=UNSET) - git_refs_url: Missing[str] = Field(default=UNSET) - git_tags_url: Missing[str] = Field(default=UNSET) - git_url: Missing[str] = Field(default=UNSET) - has_downloads: Missing[bool] = Field(default=UNSET) - has_issues: Missing[bool] = Field(default=UNSET) - has_pages: Missing[bool] = Field(default=UNSET) - has_projects: Missing[bool] = Field(default=UNSET) - has_wiki: Missing[bool] = Field(default=UNSET) - homepage: Missing[Union[str, None]] = Field(default=UNSET) - hooks_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: Missing[str] = Field(default=UNSET) - issue_events_url: Missing[str] = Field(default=UNSET) - issues_url: Missing[str] = Field(default=UNSET) - keys_url: Missing[str] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) - language: Missing[None] = Field(default=UNSET) - languages_url: Missing[str] = Field(default=UNSET) - license_: Missing[Union[WebhookForkPropForkeeAllof1PropLicense, None]] = Field( - default=UNSET, alias="license" - ) - merges_url: Missing[str] = Field(default=UNSET) - milestones_url: Missing[str] = Field(default=UNSET) - mirror_url: Missing[None] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - notifications_url: Missing[str] = Field(default=UNSET) - open_issues: Missing[int] = Field(default=UNSET) - open_issues_count: Missing[int] = Field(default=UNSET) - owner: Missing[WebhookForkPropForkeeAllof1PropOwner] = Field(default=UNSET) - private: Missing[bool] = Field(default=UNSET) - public: Missing[bool] = Field(default=UNSET) - pulls_url: Missing[str] = Field(default=UNSET) - pushed_at: Missing[str] = Field(default=UNSET) - releases_url: Missing[str] = Field(default=UNSET) - size: Missing[int] = Field(default=UNSET) - ssh_url: Missing[str] = Field(default=UNSET) - stargazers_count: Missing[int] = Field(default=UNSET) - stargazers_url: Missing[str] = Field(default=UNSET) - statuses_url: Missing[str] = Field(default=UNSET) - subscribers_url: Missing[str] = Field(default=UNSET) - subscription_url: Missing[str] = Field(default=UNSET) - svn_url: Missing[str] = Field(default=UNSET) - tags_url: Missing[str] = Field(default=UNSET) - teams_url: Missing[str] = Field(default=UNSET) - topics: Missing[List[Union[str, None]]] = Field(default=UNSET) - trees_url: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - visibility: Missing[str] = Field(default=UNSET) - watchers: Missing[int] = Field(default=UNSET) - watchers_count: Missing[int] = Field(default=UNSET) - - -class WebhookForkPropForkeeAllof1PropLicense(GitHubModel): - """WebhookForkPropForkeeAllof1PropLicense""" +class WebhookDiscussionUnlocked(GitHubModel): + """discussion unlocked event""" - -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) + 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)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -model_rebuild(WebhookForkPropForkeeAllof1) -model_rebuild(WebhookForkPropForkeeAllof1PropLicense) -model_rebuild(WebhookForkPropForkeeAllof1PropOwner) +model_rebuild(WebhookDiscussionUnlocked) -__all__ = ( - "WebhookForkPropForkeeAllof1", - "WebhookForkPropForkeeAllof1PropLicense", - "WebhookForkPropForkeeAllof1PropOwner", -) +__all__ = ("WebhookDiscussionUnlocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0486.py b/githubkit/versions/v2022_11_28/models/group_0486.py index a964ffa73..7654f7fd8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0486.py +++ b/githubkit/versions/v2022_11_28/models/group_0486.py @@ -13,21 +13,50 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0371 import SimpleUserWebhooks +from .group_0386 import Discussion +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookGithubAppAuthorizationRevoked(GitHubModel): - """github_app_authorization revoked event""" +class WebhookDiscussionUnpinned(GitHubModel): + """discussion unpinned event""" - action: Literal["revoked"] = Field() + action: Literal["unpinned"] = Field() + discussion: Discussion = Field( + title="Discussion", description="A Discussion in a repository." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookGithubAppAuthorizationRevoked) +model_rebuild(WebhookDiscussionUnpinned) -__all__ = ("WebhookGithubAppAuthorizationRevoked",) +__all__ = ("WebhookDiscussionUnpinned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0487.py b/githubkit/versions/v2022_11_28/models/group_0487.py index d529b858a..525454199 100644 --- a/githubkit/versions/v2022_11_28/models/group_0487.py +++ b/githubkit/versions/v2022_11_28/models/group_0487.py @@ -9,29 +9,34 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0488 import WebhookForkPropForkee +from .group_0374 import OrganizationSimpleWebhooks + +class WebhookFork(GitHubModel): + """fork event -class WebhookGollum(GitHubModel): - """gollum event""" + A user forks a repository. + """ enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) + forkee: WebhookForkPropForkee = Field( + description="The created [`repository`](https://docs.github.com/rest/repos/repos#get-a-repository) resource." + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -42,9 +47,6 @@ class WebhookGollum(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pages: List[WebhookGollumPropPagesItems] = Field( - description="The pages that were updated." - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -55,23 +57,6 @@ class WebhookGollum(GitHubModel): ) -class WebhookGollumPropPagesItems(GitHubModel): - """WebhookGollumPropPagesItems""" - - action: Literal["created", "edited"] = Field( - description="The action that was performed on the page. Can be `created` or `edited`." - ) - html_url: str = Field(description="Points to the HTML wiki page.") - page_name: str = Field(description="The name of the page.") - sha: str = Field(description="The latest commit SHA of the page.") - summary: Union[str, None] = Field() - title: str = Field(description="The current page title.") - - -model_rebuild(WebhookGollum) -model_rebuild(WebhookGollumPropPagesItems) +model_rebuild(WebhookFork) -__all__ = ( - "WebhookGollum", - "WebhookGollumPropPagesItems", -) +__all__ = ("WebhookFork",) diff --git a/githubkit/versions/v2022_11_28/models/group_0488.py b/githubkit/versions/v2022_11_28/models/group_0488.py index 7c0e576a7..e2db04a0e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0488.py +++ b/githubkit/versions/v2022_11_28/models/group_0488.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -17,46 +18,176 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation -from .group_0379 import WebhooksUser -from .group_0367 import EnterpriseWebhooks -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0384 import WebhooksRepositoriesItems -from .group_0369 import OrganizationSimpleWebhooks +from .group_0490 import WebhookForkPropForkeeAllof0PropPermissions -class WebhookInstallationCreated(GitHubModel): - """installation created event""" +class WebhookForkPropForkee(GitHubModel): + """WebhookForkPropForkee - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- + repository) resource. + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" ) - repositories: Missing[List[WebhooksRepositoriesItems]] = Field( - default=UNSET, - description="An array of repository objects that the installation can access.", + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) - repository: Missing[RepositoryWebhooks] = Field( + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: datetime = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + description="Whether to 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." ) - requester: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[Union[str, None], None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[None, None] = Field() + languages_url: str = Field() + license_: Union[WebhookForkPropForkeeMergedLicense, None] = Field(alias="license") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[None, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: WebhookForkPropForkeeMergedOwner = Field() + permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: datetime = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookForkPropForkeeMergedLicense(GitHubModel): + """WebhookForkPropForkeeMergedLicense""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookForkPropForkeeMergedOwner(GitHubModel): + """WebhookForkPropForkeeMergedOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookInstallationCreated) +model_rebuild(WebhookForkPropForkee) +model_rebuild(WebhookForkPropForkeeMergedLicense) +model_rebuild(WebhookForkPropForkeeMergedOwner) -__all__ = ("WebhookInstallationCreated",) +__all__ = ( + "WebhookForkPropForkee", + "WebhookForkPropForkeeMergedLicense", + "WebhookForkPropForkeeMergedOwner", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0489.py b/githubkit/versions/v2022_11_28/models/group_0489.py index 0fdca7619..5f49ae6da 100644 --- a/githubkit/versions/v2022_11_28/models/group_0489.py +++ b/githubkit/versions/v2022_11_28/models/group_0489.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,45 +18,177 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation -from .group_0367 import EnterpriseWebhooks -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0384 import WebhooksRepositoriesItems -from .group_0369 import OrganizationSimpleWebhooks +from .group_0490 import WebhookForkPropForkeeAllof0PropPermissions -class WebhookInstallationDeleted(GitHubModel): - """installation deleted event""" +class WebhookForkPropForkeeAllof0(GitHubModel): + """Repository - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" ) - repositories: Missing[List[WebhooksRepositoriesItems]] = Field( - default=UNSET, - description="An array of repository objects that the installation can access.", + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) - repository: Missing[RepositoryWebhooks] = Field( + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + 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." ) - requester: Missing[None] = Field(default=UNSET) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookForkPropForkeeAllof0PropLicense, None] = Field( + alias="license", title="License" ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookForkPropForkeeAllof0PropOwner, None] = Field(title="User") + permissions: Missing[WebhookForkPropForkeeAllof0PropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookForkPropForkeeAllof0PropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookForkPropForkeeAllof0PropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookInstallationDeleted) +model_rebuild(WebhookForkPropForkeeAllof0) +model_rebuild(WebhookForkPropForkeeAllof0PropLicense) +model_rebuild(WebhookForkPropForkeeAllof0PropOwner) -__all__ = ("WebhookInstallationDeleted",) +__all__ = ( + "WebhookForkPropForkeeAllof0", + "WebhookForkPropForkeeAllof0PropLicense", + "WebhookForkPropForkeeAllof0PropOwner", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0490.py b/githubkit/versions/v2022_11_28/models/group_0490.py index db2348e36..3eb52973b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0490.py +++ b/githubkit/versions/v2022_11_28/models/group_0490.py @@ -9,53 +9,23 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation -from .group_0367 import EnterpriseWebhooks -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0384 import WebhooksRepositoriesItems -from .group_0369 import OrganizationSimpleWebhooks - - -class WebhookInstallationNewPermissionsAccepted(GitHubModel): - """installation new_permissions_accepted event""" - - action: Literal["new_permissions_accepted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repositories: Missing[List[WebhooksRepositoriesItems]] = Field( - default=UNSET, - description="An array of repository objects that the installation can access.", - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - requester: Missing[None] = Field(default=UNSET) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookInstallationNewPermissionsAccepted) - -__all__ = ("WebhookInstallationNewPermissionsAccepted",) + +class WebhookForkPropForkeeAllof0PropPermissions(GitHubModel): + """WebhookForkPropForkeeAllof0PropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookForkPropForkeeAllof0PropPermissions) + +__all__ = ("WebhookForkPropForkeeAllof0PropPermissions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0491.py b/githubkit/versions/v2022_11_28/models/group_0491.py index afbc63e92..14ecf8b8e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0491.py +++ b/githubkit/versions/v2022_11_28/models/group_0491.py @@ -17,71 +17,125 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation -from .group_0379 import WebhooksUser -from .group_0367 import EnterpriseWebhooks -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0385 import WebhooksRepositoriesAddedItems - - -class WebhookInstallationRepositoriesAdded(GitHubModel): - """installation_repositories added event""" - - action: Literal["added"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repositories_added: List[WebhooksRepositoriesAddedItems] = Field( - description="An array of repository objects, which were added to the installation." - ) - repositories_removed: List[ - WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems - ] = Field( - description="An array of repository objects, which were removed from the installation." - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - repository_selection: Literal["all", "selected"] = Field( - description="Describe whether all repositories have been selected or there's a selection involved" - ) - requester: Union[WebhooksUser, None] = Field(title="User") - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems(GitHubModel): - """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" +class WebhookForkPropForkeeAllof1(GitHubModel): + """WebhookForkPropForkeeAllof1""" + + allow_forking: Missing[bool] = Field(default=UNSET) + archive_url: Missing[str] = Field(default=UNSET) + archived: Missing[bool] = Field(default=UNSET) + assignees_url: Missing[str] = Field(default=UNSET) + blobs_url: Missing[str] = Field(default=UNSET) + branches_url: Missing[str] = Field(default=UNSET) + clone_url: Missing[str] = Field(default=UNSET) + collaborators_url: Missing[str] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + commits_url: Missing[str] = Field(default=UNSET) + compare_url: Missing[str] = Field(default=UNSET) + contents_url: Missing[str] = Field(default=UNSET) + contributors_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + default_branch: Missing[str] = Field(default=UNSET) + deployments_url: Missing[str] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) + disabled: Missing[bool] = Field(default=UNSET) + downloads_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + fork: Missing[Literal[True]] = Field(default=UNSET) + forks: Missing[int] = Field(default=UNSET) + forks_count: Missing[int] = Field(default=UNSET) + forks_url: Missing[str] = Field(default=UNSET) full_name: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field( - default=UNSET, description="Unique identifier of the repository" + git_commits_url: Missing[str] = Field(default=UNSET) + git_refs_url: Missing[str] = Field(default=UNSET) + git_tags_url: Missing[str] = Field(default=UNSET) + git_url: Missing[str] = Field(default=UNSET) + has_downloads: Missing[bool] = Field(default=UNSET) + has_issues: Missing[bool] = Field(default=UNSET) + has_pages: Missing[bool] = Field(default=UNSET) + has_projects: Missing[bool] = Field(default=UNSET) + has_wiki: Missing[bool] = Field(default=UNSET) + homepage: Missing[Union[str, None]] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: Missing[str] = Field(default=UNSET) + issue_events_url: Missing[str] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + keys_url: Missing[str] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + language: Missing[None] = Field(default=UNSET) + languages_url: Missing[str] = Field(default=UNSET) + license_: Missing[Union[WebhookForkPropForkeeAllof1PropLicense, None]] = Field( + default=UNSET, alias="license" ) - name: Missing[str] = Field(default=UNSET, description="The name of the repository.") + merges_url: Missing[str] = Field(default=UNSET) + milestones_url: Missing[str] = Field(default=UNSET) + mirror_url: Missing[None] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - private: Missing[bool] = Field( - default=UNSET, description="Whether the repository is private or public." - ) + notifications_url: Missing[str] = Field(default=UNSET) + open_issues: Missing[int] = Field(default=UNSET) + open_issues_count: Missing[int] = Field(default=UNSET) + owner: Missing[WebhookForkPropForkeeAllof1PropOwner] = Field(default=UNSET) + private: Missing[bool] = Field(default=UNSET) + public: Missing[bool] = Field(default=UNSET) + pulls_url: Missing[str] = Field(default=UNSET) + pushed_at: Missing[str] = Field(default=UNSET) + releases_url: Missing[str] = Field(default=UNSET) + size: Missing[int] = Field(default=UNSET) + ssh_url: Missing[str] = Field(default=UNSET) + stargazers_count: Missing[int] = Field(default=UNSET) + stargazers_url: Missing[str] = Field(default=UNSET) + statuses_url: Missing[str] = Field(default=UNSET) + subscribers_url: Missing[str] = Field(default=UNSET) + subscription_url: Missing[str] = Field(default=UNSET) + svn_url: Missing[str] = Field(default=UNSET) + tags_url: Missing[str] = Field(default=UNSET) + teams_url: Missing[str] = Field(default=UNSET) + topics: Missing[List[Union[str, None]]] = Field(default=UNSET) + trees_url: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + visibility: Missing[str] = Field(default=UNSET) + watchers: Missing[int] = Field(default=UNSET) + watchers_count: Missing[int] = Field(default=UNSET) + + +class WebhookForkPropForkeeAllof1PropLicense(GitHubModel): + """WebhookForkPropForkeeAllof1PropLicense""" + + +class WebhookForkPropForkeeAllof1PropOwner(GitHubModel): + """WebhookForkPropForkeeAllof1PropOwner""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookInstallationRepositoriesAdded) -model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems) +model_rebuild(WebhookForkPropForkeeAllof1) +model_rebuild(WebhookForkPropForkeeAllof1PropLicense) +model_rebuild(WebhookForkPropForkeeAllof1PropOwner) __all__ = ( - "WebhookInstallationRepositoriesAdded", - "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", + "WebhookForkPropForkeeAllof1", + "WebhookForkPropForkeeAllof1PropLicense", + "WebhookForkPropForkeeAllof1PropOwner", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0492.py b/githubkit/versions/v2022_11_28/models/group_0492.py index 54a53b151..5d64c276e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0492.py +++ b/githubkit/versions/v2022_11_28/models/group_0492.py @@ -9,75 +9,25 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation -from .group_0379 import WebhooksUser -from .group_0367 import EnterpriseWebhooks -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0385 import WebhooksRepositoriesAddedItems +from .group_0376 import SimpleUserWebhooks -class WebhookInstallationRepositoriesRemoved(GitHubModel): - """installation_repositories removed event""" +class WebhookGithubAppAuthorizationRevoked(GitHubModel): + """github_app_authorization revoked event""" - action: Literal["removed"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Installation = Field(title="Installation", description="Installation") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repositories_added: List[WebhooksRepositoriesAddedItems] = Field( - description="An array of repository objects, which were added to the installation." - ) - repositories_removed: List[ - WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems - ] = Field( - description="An array of repository objects, which were removed from the installation." - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - repository_selection: Literal["all", "selected"] = Field( - description="Describe whether all repositories have been selected or there's a selection involved" - ) - requester: Union[WebhooksUser, None] = Field(title="User") + action: Literal["revoked"] = Field() sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -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(WebhookGithubAppAuthorizationRevoked) -__all__ = ( - "WebhookInstallationRepositoriesRemoved", - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", -) +__all__ = ("WebhookGithubAppAuthorizationRevoked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0493.py b/githubkit/versions/v2022_11_28/models/group_0493.py index 84d83667b..1b8eeadc3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0493.py +++ b/githubkit/versions/v2022_11_28/models/group_0493.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,45 +17,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation -from .group_0367 import EnterpriseWebhooks -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0384 import WebhooksRepositoriesItems -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookInstallationSuspend(GitHubModel): - """installation suspend event""" +class WebhookGollum(GitHubModel): + """gollum event""" - action: Literal["suspend"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - 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: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookInstallationSuspend) +class WebhookGollumPropPagesItems(GitHubModel): + """WebhookGollumPropPagesItems""" + + action: Literal["created", "edited"] = Field( + description="The action that was performed on the page. Can be `created` or `edited`." + ) + html_url: str = Field(description="Points to the HTML wiki page.") + page_name: str = Field(description="The name of the page.") + sha: str = Field(description="The latest commit SHA of the page.") + summary: Union[str, None] = Field() + title: str = Field(description="The current page title.") + + +model_rebuild(WebhookGollum) +model_rebuild(WebhookGollumPropPagesItems) -__all__ = ("WebhookInstallationSuspend",) +__all__ = ( + "WebhookGollum", + "WebhookGollumPropPagesItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0494.py b/githubkit/versions/v2022_11_28/models/group_0494.py index ad81fc329..550f1782d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0494.py +++ b/githubkit/versions/v2022_11_28/models/group_0494.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,120 +17,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0015 import Installation +from .group_0384 import WebhooksUser +from .group_0372 import EnterpriseWebhooks +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0389 import WebhooksRepositoriesItems +from .group_0374 import OrganizationSimpleWebhooks -class WebhookInstallationTargetRenamed(GitHubModel): - """WebhookInstallationTargetRenamed""" +class WebhookInstallationCreated(GitHubModel): + """installation created event""" - account: WebhookInstallationTargetRenamedPropAccount = Field() - action: Literal["renamed"] = Field() - changes: WebhookInstallationTargetRenamedPropChanges = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) + installation: Installation = Field(title="Installation", description="Installation") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + repositories: Missing[List[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + requester: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - 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) - - -class WebhookInstallationTargetRenamedPropChanges(GitHubModel): - """WebhookInstallationTargetRenamedPropChanges""" - - login: Missing[WebhookInstallationTargetRenamedPropChangesPropLogin] = Field( - default=UNSET - ) - slug: Missing[WebhookInstallationTargetRenamedPropChangesPropSlug] = Field( - default=UNSET - ) - - -class WebhookInstallationTargetRenamedPropChangesPropLogin(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropLogin""" - - from_: str = Field(alias="from") - - -class WebhookInstallationTargetRenamedPropChangesPropSlug(GitHubModel): - """WebhookInstallationTargetRenamedPropChangesPropSlug""" - - from_: str = Field(alias="from") -model_rebuild(WebhookInstallationTargetRenamed) -model_rebuild(WebhookInstallationTargetRenamedPropAccount) -model_rebuild(WebhookInstallationTargetRenamedPropChanges) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) -model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) +model_rebuild(WebhookInstallationCreated) -__all__ = ( - "WebhookInstallationTargetRenamed", - "WebhookInstallationTargetRenamedPropAccount", - "WebhookInstallationTargetRenamedPropChanges", - "WebhookInstallationTargetRenamedPropChangesPropLogin", - "WebhookInstallationTargetRenamedPropChangesPropSlug", -) +__all__ = ("WebhookInstallationCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0495.py b/githubkit/versions/v2022_11_28/models/group_0495.py index a02d4e623..7dacc5e70 100644 --- a/githubkit/versions/v2022_11_28/models/group_0495.py +++ b/githubkit/versions/v2022_11_28/models/group_0495.py @@ -18,17 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild from .group_0015 import Installation -from .group_0367 import EnterpriseWebhooks -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0384 import WebhooksRepositoriesItems -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0389 import WebhooksRepositoriesItems +from .group_0374 import OrganizationSimpleWebhooks -class WebhookInstallationUnsuspend(GitHubModel): - """installation unsuspend event""" +class WebhookInstallationDeleted(GitHubModel): + """installation deleted event""" - action: Literal["unsuspend"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -56,6 +56,6 @@ class WebhookInstallationUnsuspend(GitHubModel): ) -model_rebuild(WebhookInstallationUnsuspend) +model_rebuild(WebhookInstallationDeleted) -__all__ = ("WebhookInstallationUnsuspend",) +__all__ = ("WebhookInstallationDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0496.py b/githubkit/versions/v2022_11_28/models/group_0496.py index ac0bd0f9e..15ec2984d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0496.py +++ b/githubkit/versions/v2022_11_28/models/group_0496.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field @@ -17,51 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0498 import WebhookIssueCommentCreatedPropIssue -from .group_0497 import WebhookIssueCommentCreatedPropComment +from .group_0015 import Installation +from .group_0372 import EnterpriseWebhooks +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0389 import WebhooksRepositoriesItems +from .group_0374 import OrganizationSimpleWebhooks -class WebhookIssueCommentCreated(GitHubModel): - """issue_comment created event""" +class WebhookInstallationNewPermissionsAccepted(GitHubModel): + """installation new_permissions_accepted event""" - action: Literal["created"] = Field() - comment: WebhookIssueCommentCreatedPropComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", - ) + action: Literal["new_permissions_accepted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentCreatedPropIssue = Field( - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." - ) + installation: Installation = Field(title="Installation", description="Installation") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repositories: Missing[List[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requester: Missing[None] = Field(default=UNSET) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookIssueCommentCreated) +model_rebuild(WebhookInstallationNewPermissionsAccepted) -__all__ = ("WebhookIssueCommentCreated",) +__all__ = ("WebhookInstallationNewPermissionsAccepted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0497.py b/githubkit/versions/v2022_11_28/models/group_0497.py index 311e96ce9..a9c2f888b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0497.py +++ b/githubkit/versions/v2022_11_28/models/group_0497.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,93 +17,71 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0006 import Integration +from .group_0015 import Installation +from .group_0384 import WebhooksUser +from .group_0372 import EnterpriseWebhooks +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0390 import WebhooksRepositoriesAddedItems -class WebhookIssueCommentCreatedPropComment(GitHubModel): - """issue comment +class WebhookInstallationRepositoriesAdded(GitHubModel): + """installation_repositories added event""" - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. - """ - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + action: Literal["added"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repositories_added: List[WebhooksRepositoriesAddedItems] = Field( + description="An array of repository objects, which were added to the installation." + ) + repositories_removed: List[ + WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", + description="An array of repository objects, which were removed from the installation." ) - body: str = Field(description="Contents of the issue comment") - created_at: datetime = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the issue comment") - issue_url: str = Field() - node_id: str = Field() - performed_via_github_app: Union[None, Integration, None] = Field() - reactions: WebhookIssueCommentCreatedPropCommentPropReactions = Field( - title="Reactions" + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - updated_at: datetime = Field() - url: str = Field(description="URL for the issue comment") - user: Union[WebhookIssueCommentCreatedPropCommentPropUser, None] = Field( - title="User" + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" ) + requester: Union[WebhooksUser, None] = Field(title="User") + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" -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) + full_name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field( + default=UNSET, description="Unique identifier of the repository" + ) + name: Missing[str] = Field(default=UNSET, description="The name of the repository.") node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private or public." + ) -model_rebuild(WebhookIssueCommentCreatedPropComment) -model_rebuild(WebhookIssueCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookIssueCommentCreatedPropCommentPropUser) +model_rebuild(WebhookInstallationRepositoriesAdded) +model_rebuild(WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems) __all__ = ( - "WebhookIssueCommentCreatedPropComment", - "WebhookIssueCommentCreatedPropCommentPropReactions", - "WebhookIssueCommentCreatedPropCommentPropUser", + "WebhookInstallationRepositoriesAdded", + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0498.py b/githubkit/versions/v2022_11_28/models/group_0498.py index f7500e517..42e2bcc61 100644 --- a/githubkit/versions/v2022_11_28/models/group_0498.py +++ b/githubkit/versions/v2022_11_28/models/group_0498.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,155 +17,67 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0506 import WebhookIssueCommentCreatedPropIssueMergedMilestone -from .group_0507 import WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp -from .group_0500 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, -) +from .group_0015 import Installation +from .group_0384 import WebhooksUser +from .group_0372 import EnterpriseWebhooks +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0390 import WebhooksRepositoriesAddedItems -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.", +class WebhookInstallationRepositoriesRemoved(GitHubModel): + """installation_repositories removed event""" + + action: Literal["removed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repositories_added: List[WebhooksRepositoriesAddedItems] = Field( + description="An array of repository objects, which were added to the installation." ) - reactions: WebhookIssueCommentCreatedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + repositories_removed: List[ + WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems + ] = Field( + description="An array of repository objects, which were removed from the installation." ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentCreatedPropIssueMergedUser = Field() - - -class WebhookIssueCommentCreatedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + 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 WebhookIssueCommentCreatedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentCreatedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + repository_selection: Literal["all", "selected"] = Field( + description="Describe whether all repositories have been selected or there's a selection involved" ) - url: Missing[str] = Field(default=UNSET) + requester: Union[WebhooksUser, None] = Field(title="User") + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems(GitHubModel): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" + + full_name: str = Field() + id: int = Field(description="Unique identifier of the repository") + name: str = Field(description="The name of the repository.") + node_id: str = Field() + private: bool = Field(description="Whether the repository is private or public.") -model_rebuild(WebhookIssueCommentCreatedPropIssue) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) +model_rebuild(WebhookInstallationRepositoriesRemoved) +model_rebuild(WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems) __all__ = ( - "WebhookIssueCommentCreatedPropIssue", - "WebhookIssueCommentCreatedPropIssueMergedAssignees", - "WebhookIssueCommentCreatedPropIssueMergedReactions", - "WebhookIssueCommentCreatedPropIssueMergedUser", + "WebhookInstallationRepositoriesRemoved", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0499.py b/githubkit/versions/v2022_11_28/models/group_0499.py index 31fa133fc..34d5a5996 100644 --- a/githubkit/versions/v2022_11_28/models/group_0499.py +++ b/githubkit/versions/v2022_11_28/models/group_0499.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,173 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0502 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone -from .group_0504 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0500 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, -) +from .group_0015 import Installation +from .group_0372 import EnterpriseWebhooks +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0389 import WebhooksRepositoriesItems +from .group_0374 import OrganizationSimpleWebhooks -class WebhookIssueCommentCreatedPropIssueAllof0(GitHubModel): - """Issue +class WebhookInstallationSuspend(GitHubModel): + """installation suspend event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( + action: Literal["suspend"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + 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.", ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( - title="User" + repositories: Missing[List[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", ) - - -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 + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + 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 WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + requester: Missing[None] = Field(default=UNSET) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) +model_rebuild(WebhookInstallationSuspend) -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0", - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof0PropUser", -) +__all__ = ("WebhookInstallationSuspend",) diff --git a/githubkit/versions/v2022_11_28/models/group_0500.py b/githubkit/versions/v2022_11_28/models/group_0500.py index 6171043ad..fc69d9f68 100644 --- a/githubkit/versions/v2022_11_28/models/group_0500.py +++ b/githubkit/versions/v2022_11_28/models/group_0500.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -18,65 +17,120 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookIssueCommentCreatedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) +class WebhookInstallationTargetRenamed(GitHubModel): + """WebhookInstallationTargetRenamed""" + + account: WebhookInstallationTargetRenamedPropAccount = Field() + action: Literal["renamed"] = Field() + changes: WebhookInstallationTargetRenamedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + target_type: str = Field() + + +class WebhookInstallationTargetRenamedPropAccount(GitHubModel): + """WebhookInstallationTargetRenamedPropAccount""" + + archived_at: Missing[Union[str, None]] = Field(default=UNSET) + avatar_url: str = Field() + created_at: Missing[str] = Field(default=UNSET) + description: Missing[None] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) + followers: Missing[int] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) + following: Missing[int] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) + has_organization_projects: Missing[bool] = Field(default=UNSET) + has_repository_projects: Missing[bool] = Field(default=UNSET) + hooks_url: Missing[str] = Field(default=UNSET) + html_url: str = Field() id: int = Field() - login: str = Field() + is_verified: Missing[bool] = Field(default=UNSET) + issues_url: Missing[str] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + members_url: Missing[str] = Field(default=UNSET) name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() organizations_url: Missing[str] = Field(default=UNSET) + public_gists: Missing[int] = Field(default=UNSET) + public_members_url: Missing[str] = Field(default=UNSET) + public_repos: Missing[int] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) repos_url: Missing[str] = Field(default=UNSET) site_admin: Missing[bool] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + website_url: Missing[None] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems(GitHubModel): - """Label""" +class WebhookInstallationTargetRenamedPropChanges(GitHubModel): + """WebhookInstallationTargetRenamedPropChanges""" - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" + login: Missing[WebhookInstallationTargetRenamedPropChangesPropLogin] = Field( + default=UNSET + ) + slug: Missing[WebhookInstallationTargetRenamedPropChangesPropSlug] = Field( + default=UNSET ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") -class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" +class WebhookInstallationTargetRenamedPropChangesPropLogin(GitHubModel): + """WebhookInstallationTargetRenamedPropChangesPropLogin""" - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + from_: str = Field(alias="from") + + +class WebhookInstallationTargetRenamedPropChangesPropSlug(GitHubModel): + """WebhookInstallationTargetRenamedPropChangesPropSlug""" + + from_: str = Field(alias="from") -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookInstallationTargetRenamed) +model_rebuild(WebhookInstallationTargetRenamedPropAccount) +model_rebuild(WebhookInstallationTargetRenamedPropChanges) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropLogin) +model_rebuild(WebhookInstallationTargetRenamedPropChangesPropSlug) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", + "WebhookInstallationTargetRenamed", + "WebhookInstallationTargetRenamedPropAccount", + "WebhookInstallationTargetRenamedPropChanges", + "WebhookInstallationTargetRenamedPropChangesPropLogin", + "WebhookInstallationTargetRenamedPropChangesPropSlug", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0501.py b/githubkit/versions/v2022_11_28/models/group_0501.py index dc932bbb6..430c952cb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0501.py +++ b/githubkit/versions/v2022_11_28/models/group_0501.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from pydantic import Field @@ -17,35 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0015 import Installation +from .group_0372 import EnterpriseWebhooks +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0389 import WebhooksRepositoriesItems +from .group_0374 import OrganizationSimpleWebhooks -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + +class WebhookInstallationUnsuspend(GitHubModel): + """installation unsuspend event""" + + action: Literal["unsuspend"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Installation = Field(title="Installation", description="Installation") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repositories: Missing[List[WebhooksRepositoriesItems]] = Field( + default=UNSET, + description="An array of repository objects that the installation can access.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + requester: Missing[None] = Field(default=UNSET) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) +model_rebuild(WebhookInstallationUnsuspend) -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) +__all__ = ("WebhookInstallationUnsuspend",) diff --git a/githubkit/versions/v2022_11_28/models/group_0502.py b/githubkit/versions/v2022_11_28/models/group_0502.py index efc12c34a..cd83699df 100644 --- a/githubkit/versions/v2022_11_28/models/group_0502.py +++ b/githubkit/versions/v2022_11_28/models/group_0502.py @@ -9,44 +9,59 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0501 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, -) +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0504 import WebhookIssueCommentCreatedPropIssue +from .group_0503 import WebhookIssueCommentCreatedPropComment -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookIssueCommentCreated(GitHubModel): + """issue_comment created event""" - A collection of related issues and pull requests. - """ + action: Literal["created"] = Field() + comment: WebhookIssueCommentCreatedPropComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssueCommentCreatedPropIssue = Field( + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() +model_rebuild(WebhookIssueCommentCreated) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) - -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssueCommentCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0503.py b/githubkit/versions/v2022_11_28/models/group_0503.py index 0cf598b48..311e96ce9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0503.py +++ b/githubkit/versions/v2022_11_28/models/group_0503.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field @@ -17,10 +18,62 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0006 import Integration -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): + +class WebhookIssueCommentCreatedPropComment(GitHubModel): + """issue comment + + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + itself. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="Contents of the issue comment") + created_at: datetime = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the issue comment") + issue_url: str = Field() + node_id: str = Field() + performed_via_github_app: Union[None, Integration, None] = Field() + reactions: WebhookIssueCommentCreatedPropCommentPropReactions = Field( + title="Reactions" + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the issue comment") + user: Union[WebhookIssueCommentCreatedPropCommentPropUser, None] = Field( + title="User" + ) + + +class WebhookIssueCommentCreatedPropCommentPropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssueCommentCreatedPropCommentPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -46,68 +99,12 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwne url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentCreatedPropComment) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropReactions) +model_rebuild(WebhookIssueCommentCreatedPropCommentPropUser) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", + "WebhookIssueCommentCreatedPropComment", + "WebhookIssueCommentCreatedPropCommentPropReactions", + "WebhookIssueCommentCreatedPropCommentPropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0504.py b/githubkit/versions/v2022_11_28/models/group_0504.py index c242ba3d6..666e6042d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0504.py +++ b/githubkit/versions/v2022_11_28/models/group_0504.py @@ -18,94 +18,155 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0503 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0512 import WebhookIssueCommentCreatedPropIssueMergedMilestone +from .group_0513 import WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp +from .group_0506 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, ) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentCreatedPropIssue(GitHubModel): + """WebhookIssueCommentCreatedPropIssue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + 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: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels: List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems] = Field() + labels_url: str = Field() + locked: bool = Field() + milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestone, None] = Field() node_id: str = Field() - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentCreatedPropIssueMergedReactions = Field() + repository_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentCreatedPropIssueMergedUser = Field() + + +class WebhookIssueCommentCreatedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) +class WebhookIssueCommentCreatedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssueCommentCreatedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropIssue) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedUser) + +__all__ = ( + "WebhookIssueCommentCreatedPropIssue", + "WebhookIssueCommentCreatedPropIssueMergedAssignees", + "WebhookIssueCommentCreatedPropIssueMergedReactions", + "WebhookIssueCommentCreatedPropIssueMergedUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0505.py b/githubkit/versions/v2022_11_28/models/group_0505.py index 6da98bf11..a31a6024a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0505.py +++ b/githubkit/versions/v2022_11_28/models/group_0505.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -17,54 +18,95 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0508 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestone +from .group_0510 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0506 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssignee, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest, +) -class WebhookIssueCommentCreatedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1""" - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, None] = ( - Field(title="User") +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.", ) - assignees: Missing[ - List[Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: List[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropReactions] = Field( - default=UNSET + Union[WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactions = Field( + title="Reactions" ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropUser] = Field( - default=UNSET + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUser, None] = Field( + title="User" ) -class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -92,59 +134,36 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentCreatedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" - +class WebhookIssueCommentCreatedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" -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) + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssueCommentCreatedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" +class WebhookIssueCommentCreatedPropIssueAllof0PropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -152,26 +171,20 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", - "WebhookIssueCommentCreatedPropIssueAllof1PropUser", + "WebhookIssueCommentCreatedPropIssueAllof0", + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof0PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0506.py b/githubkit/versions/v2022_11_28/models/group_0506.py index 66b104677..6171043ad 100644 --- a/githubkit/versions/v2022_11_28/models/group_0506.py +++ b/githubkit/versions/v2022_11_28/models/group_0506.py @@ -14,36 +14,69 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0501 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) -class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedMilestone""" +class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() id: int = Field() - labels_url: str = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + url: str = Field(description="URL for the label") -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedMilestone) +class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest) + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0507.py b/githubkit/versions/v2022_11_28/models/group_0507.py index 9494fdc8b..dc932bbb6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0507.py +++ b/githubkit/versions/v2022_11_28/models/group_0507.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,88 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0503 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) - -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator) -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/v2022_11_28/models/group_0508.py b/githubkit/versions/v2022_11_28/models/group_0508.py index 3861ff992..84a278397 100644 --- a/githubkit/versions/v2022_11_28/models/group_0508.py +++ b/githubkit/versions/v2022_11_28/models/group_0508.py @@ -9,59 +9,44 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0386 import WebhooksIssueComment -from .group_0369 import OrganizationSimpleWebhooks -from .group_0509 import WebhookIssueCommentDeletedPropIssue +from .group_0507 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, +) -class WebhookIssueCommentDeleted(GitHubModel): - """issue_comment deleted event""" +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - action: Literal["deleted"] = Field() - comment: WebhooksIssueComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) + A collection of related issues and pull requests. + """ + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssueCommentDeleted) -__all__ = ("WebhookIssueCommentDeleted",) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropMilestone) + +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0509.py b/githubkit/versions/v2022_11_28/models/group_0509.py index 8833294f7..0cf598b48 100644 --- a/githubkit/versions/v2022_11_28/models/group_0509.py +++ b/githubkit/versions/v2022_11_28/models/group_0509.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,78 +17,11 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0517 import WebhookIssueCommentDeletedPropIssueMergedMilestone -from .group_0518 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp -from .group_0511 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, -) - - -class WebhookIssueCommentDeletedPropIssue(GitHubModel): - """WebhookIssueCommentDeletedPropIssue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: List[WebhookIssueCommentDeletedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentDeletedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentDeletedPropIssueMergedUser = Field() - -class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedAssignees""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -110,63 +42,72 @@ class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s -class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedUser""" + The set of permissions for the GitHub app + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( default=UNSET ) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentDeletedPropIssue) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) __all__ = ( - "WebhookIssueCommentDeletedPropIssue", - "WebhookIssueCommentDeletedPropIssueMergedAssignees", - "WebhookIssueCommentDeletedPropIssueMergedReactions", - "WebhookIssueCommentDeletedPropIssueMergedUser", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0510.py b/githubkit/versions/v2022_11_28/models/group_0510.py index 0454680e9..aa4349368 100644 --- a/githubkit/versions/v2022_11_28/models/group_0510.py +++ b/githubkit/versions/v2022_11_28/models/group_0510.py @@ -18,173 +18,94 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0513 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone -from .group_0515 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0511 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, +from .group_0509 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) -class WebhookIssueCommentDeletedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - 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() + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = 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: Missing[List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( - title="User" - ) - - -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - url: Missing[str] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0", - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", - "WebhookIssueCommentDeletedPropIssueAllof0PropUser", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0511.py b/githubkit/versions/v2022_11_28/models/group_0511.py index 1accd904c..6da98bf11 100644 --- a/githubkit/versions/v2022_11_28/models/group_0511.py +++ b/githubkit/versions/v2022_11_28/models/group_0511.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -19,7 +18,53 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1""" + + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssignee, None] = ( + Field(title="User") + ) + assignees: Missing[ + List[Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: List[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropReactions] = Field( + default=UNSET + ) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentCreatedPropIssueAllof1PropUser] = Field( + default=UNSET + ) + + +class WebhookIssueCommentCreatedPropIssueAllof1PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -47,7 +92,11 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -61,22 +110,68 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentCreatedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" + - diff_url: Missing[str] = Field(default=UNSET) +class WebhookIssueCommentCreatedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentCreatedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentCreatedPropIssueAllof1PropUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", + "WebhookIssueCommentCreatedPropIssueAllof1", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssignee", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentCreatedPropIssueAllof1PropMilestone", + "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentCreatedPropIssueAllof1PropReactions", + "WebhookIssueCommentCreatedPropIssueAllof1PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0512.py b/githubkit/versions/v2022_11_28/models/group_0512.py index 011ca8ea7..ed06ca679 100644 --- a/githubkit/versions/v2022_11_28/models/group_0512.py +++ b/githubkit/versions/v2022_11_28/models/group_0512.py @@ -9,43 +9,41 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0507 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, +) -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) +class WebhookIssueCommentCreatedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator) - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator",) + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedMilestone) + +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0513.py b/githubkit/versions/v2022_11_28/models/group_0513.py index 1992b3eb5..16c3bd620 100644 --- a/githubkit/versions/v2022_11_28/models/group_0513.py +++ b/githubkit/versions/v2022_11_28/models/group_0513.py @@ -10,43 +10,96 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0512 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, +from .group_0509 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") + created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() html_url: str = Field() - id: int = Field() - labels_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) +model_rebuild(WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0514.py b/githubkit/versions/v2022_11_28/models/group_0514.py index b527e3f15..c1c61e37b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0514.py +++ b/githubkit/versions/v2022_11_28/models/group_0514.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,93 +17,51 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0391 import WebhooksIssueComment +from .group_0374 import OrganizationSimpleWebhooks +from .group_0515 import WebhookIssueCommentDeletedPropIssue -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookIssueCommentDeleted(GitHubModel): + """issue_comment deleted event""" - -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + action: Literal["deleted"] = Field() + comment: WebhooksIssueComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentDeleted) -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssueCommentDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0515.py b/githubkit/versions/v2022_11_28/models/group_0515.py index 8f99f601c..c46f91e93 100644 --- a/githubkit/versions/v2022_11_28/models/group_0515.py +++ b/githubkit/versions/v2022_11_28/models/group_0515.py @@ -18,92 +18,155 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0514 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0523 import WebhookIssueCommentDeletedPropIssueMergedMilestone +from .group_0524 import WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp +from .group_0517 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, ) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentDeletedPropIssue(GitHubModel): + """WebhookIssueCommentDeletedPropIssue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Union[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: List[WebhookIssueCommentDeletedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels: List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems] = Field() + labels_url: str = Field() + locked: bool = Field() + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestone, None] = Field() node_id: str = Field() - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentDeletedPropIssueMergedReactions = Field() + repository_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentDeletedPropIssueMergedUser = Field() + + +class WebhookIssueCommentDeletedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) +class WebhookIssueCommentDeletedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssueCommentDeletedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentDeletedPropIssue) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedUser) + +__all__ = ( + "WebhookIssueCommentDeletedPropIssue", + "WebhookIssueCommentDeletedPropIssueMergedAssignees", + "WebhookIssueCommentDeletedPropIssueMergedReactions", + "WebhookIssueCommentDeletedPropIssueMergedUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0516.py b/githubkit/versions/v2022_11_28/models/group_0516.py index 3e9e40f0f..2e68c1511 100644 --- a/githubkit/versions/v2022_11_28/models/group_0516.py +++ b/githubkit/versions/v2022_11_28/models/group_0516.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -17,54 +18,95 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0519 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestone +from .group_0521 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0517 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssignee, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest, +) -class WebhookIssueCommentDeletedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1""" - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, None] = ( - Field(title="User") +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.", ) - assignees: Missing[ - List[Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: List[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropReactions] = Field( - default=UNSET + Union[WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactions = Field( + title="Reactions" ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropUser] = Field( - default=UNSET + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUser, None] = Field( + title="User" ) -class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -92,59 +134,36 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssueCommentDeletedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" - +class WebhookIssueCommentDeletedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" -class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" - - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssueCommentDeletedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" +class WebhookIssueCommentDeletedPropIssueAllof0PropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -152,26 +171,20 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof1", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentDeletedPropIssueAllof1PropMilestone", - "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", - "WebhookIssueCommentDeletedPropIssueAllof1PropUser", + "WebhookIssueCommentDeletedPropIssueAllof0", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactions", + "WebhookIssueCommentDeletedPropIssueAllof0PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0517.py b/githubkit/versions/v2022_11_28/models/group_0517.py index 651ffb09e..1accd904c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0517.py +++ b/githubkit/versions/v2022_11_28/models/group_0517.py @@ -14,36 +14,69 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0512 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, -) + +class WebhookIssueCommentDeletedPropIssueAllof0PropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentDeletedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedMilestone""" +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() id: int = Field() - labels_url: str = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + url: str = Field(description="URL for the label") -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedMilestone) +class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestone",) + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest) + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropAssignee", + "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0518.py b/githubkit/versions/v2022_11_28/models/group_0518.py index 9f4a943f4..011ca8ea7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0518.py +++ b/githubkit/versions/v2022_11_28/models/group_0518.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,86 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0514 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) - -class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator) -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/v2022_11_28/models/group_0519.py b/githubkit/versions/v2022_11_28/models/group_0519.py index 05725b2fe..515604ad0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0519.py +++ b/githubkit/versions/v2022_11_28/models/group_0519.py @@ -9,61 +9,44 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0387 import WebhooksChanges -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0386 import WebhooksIssueComment -from .group_0369 import OrganizationSimpleWebhooks -from .group_0520 import WebhookIssueCommentEditedPropIssue +from .group_0518 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, +) -class WebhookIssueCommentEdited(GitHubModel): - """issue_comment edited event""" +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - action: Literal["edited"] = Field() - changes: WebhooksChanges = Field(description="The changes to the comment.") - comment: WebhooksIssueComment = Field( - title="issue comment", - description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssueCommentEditedPropIssue = Field( - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) + A collection of related issues and pull requests. + """ + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssueCommentEdited) -__all__ = ("WebhookIssueCommentEdited",) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropMilestone) + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0520.py b/githubkit/versions/v2022_11_28/models/group_0520.py index bf0beac02..b527e3f15 100644 --- a/githubkit/versions/v2022_11_28/models/group_0520.py +++ b/githubkit/versions/v2022_11_28/models/group_0520.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,78 +17,11 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0528 import WebhookIssueCommentEditedPropIssueMergedMilestone -from .group_0529 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp -from .group_0522 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssignee, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, -) - - -class WebhookIssueCommentEditedPropIssue(GitHubModel): - """WebhookIssueCommentEditedPropIssue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Union[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None], None - ] = Field(title="User") - assignees: List[WebhookIssueCommentEditedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[Union[str, None], None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems] = Field() - labels_url: str = Field() - locked: bool = Field() - milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestone, None] = Field() - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, None] - ] = Field(default=UNSET) - pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentEditedPropIssueMergedReactions = Field() - repository_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssueCommentEditedPropIssueMergedUser = Field() - -class WebhookIssueCommentEditedPropIssueMergedAssignees(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedAssignees""" +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" avatar_url: Missing[str] = Field(default=UNSET) deleted: Missing[bool] = Field(default=UNSET) @@ -110,63 +42,68 @@ class WebhookIssueCommentEditedPropIssueMergedAssignees(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueMergedReactions(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s + The set of permissions for the GitHub app + """ -class WebhookIssueCommentEditedPropIssueMergedUser(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( default=UNSET ) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentEditedPropIssue) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedAssignees) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedUser) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) __all__ = ( - "WebhookIssueCommentEditedPropIssue", - "WebhookIssueCommentEditedPropIssueMergedAssignees", - "WebhookIssueCommentEditedPropIssueMergedReactions", - "WebhookIssueCommentEditedPropIssueMergedUser", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0521.py b/githubkit/versions/v2022_11_28/models/group_0521.py index 5ea7237c1..23d0a34ad 100644 --- a/githubkit/versions/v2022_11_28/models/group_0521.py +++ b/githubkit/versions/v2022_11_28/models/group_0521.py @@ -18,173 +18,92 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0524 import WebhookIssueCommentEditedPropIssueAllof0PropMilestone -from .group_0526 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, -) -from .group_0522 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssignee, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, +from .group_0520 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, ) -class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): - """Issue +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - 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() + created_at: Union[datetime, None] = Field() + description: Union[str, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = 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: Missing[List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUser, None] = Field( - title="User" - ) - - -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssueCommentEditedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - url: Missing[str] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0", - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", - "WebhookIssueCommentEditedPropIssueAllof0PropReactions", - "WebhookIssueCommentEditedPropIssueAllof0PropUser", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0522.py b/githubkit/versions/v2022_11_28/models/group_0522.py index 65b348d39..3e9e40f0f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0522.py +++ b/githubkit/versions/v2022_11_28/models/group_0522.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -19,7 +18,53 @@ from githubkit.compat import GitHubModel, model_rebuild -class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1""" + + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssignee, None] = ( + Field(title="User") + ) + assignees: Missing[ + List[Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: List[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropReactions] = Field( + default=UNSET + ) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentDeletedPropIssueAllof1PropUser] = Field( + default=UNSET + ) + + +class WebhookIssueCommentDeletedPropIssueAllof1PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -47,7 +92,11 @@ class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems(GitHubModel): +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -61,22 +110,68 @@ class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssueCommentEditedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentDeletedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" + - diff_url: Missing[str] = Field(default=UNSET) +class WebhookIssueCommentDeletedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentDeletedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentDeletedPropIssueAllof1PropUser) __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", - "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", - "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", + "WebhookIssueCommentDeletedPropIssueAllof1", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssignee", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentDeletedPropIssueAllof1PropMilestone", + "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentDeletedPropIssueAllof1PropReactions", + "WebhookIssueCommentDeletedPropIssueAllof1PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0523.py b/githubkit/versions/v2022_11_28/models/group_0523.py index 265267a2d..490a4985c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0523.py +++ b/githubkit/versions/v2022_11_28/models/group_0523.py @@ -9,43 +9,41 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0518 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, +) -class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator(GitHubModel): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) +class WebhookIssueCommentDeletedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedMilestone""" + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator) - -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator",) + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedMilestone) + +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0524.py b/githubkit/versions/v2022_11_28/models/group_0524.py index 5e85c432c..16d132fe7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0524.py +++ b/githubkit/versions/v2022_11_28/models/group_0524.py @@ -10,41 +10,94 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0523 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator +from .group_0520 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssueCommentEditedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") + created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() html_url: str = Field() - id: int = Field() - labels_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestone) +model_rebuild(WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0525.py b/githubkit/versions/v2022_11_28/models/group_0525.py index 0a173e32e..0db68824a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0525.py +++ b/githubkit/versions/v2022_11_28/models/group_0525.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,94 +17,53 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0392 import WebhooksChanges +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0391 import WebhooksIssueComment +from .group_0374 import OrganizationSimpleWebhooks +from .group_0526 import WebhookIssueCommentEditedPropIssue -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner( - GitHubModel -): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookIssueCommentEdited(GitHubModel): + """issue_comment edited event""" - -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET + action: Literal["edited"] = Field() + changes: WebhooksChanges = Field(description="The changes to the comment.") + comment: WebhooksIssueComment = Field( + title="issue comment", + description="The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssueCommentEditedPropIssue = Field( + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -model_rebuild( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssueCommentEdited) -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssueCommentEdited",) diff --git a/githubkit/versions/v2022_11_28/models/group_0526.py b/githubkit/versions/v2022_11_28/models/group_0526.py index 493abd1d8..4f38e77f7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0526.py +++ b/githubkit/versions/v2022_11_28/models/group_0526.py @@ -18,93 +18,155 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0525 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +from .group_0534 import WebhookIssueCommentEditedPropIssueMergedMilestone +from .group_0535 import WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp +from .group_0528 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssignee, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, ) -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssueCommentEditedPropIssue(GitHubModel): + """WebhookIssueCommentEditedPropIssue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Union[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None], None + ] = Field(title="User") + assignees: List[WebhookIssueCommentEditedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") + id: int = Field() + labels: List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems] = Field() + labels_url: str = Field() + locked: bool = Field() + milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestone, None] = Field() node_id: str = Field() - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentEditedPropIssueMergedReactions = Field() + repository_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssueCommentEditedPropIssueMergedUser = Field() + + +class WebhookIssueCommentEditedPropIssueMergedAssignees(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedAssignees""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp) +class WebhookIssueCommentEditedPropIssueMergedReactions(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedReactions""" -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp",) + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssueCommentEditedPropIssueMergedUser(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookIssueCommentEditedPropIssue) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedAssignees) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedUser) + +__all__ = ( + "WebhookIssueCommentEditedPropIssue", + "WebhookIssueCommentEditedPropIssueMergedAssignees", + "WebhookIssueCommentEditedPropIssueMergedReactions", + "WebhookIssueCommentEditedPropIssueMergedUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0527.py b/githubkit/versions/v2022_11_28/models/group_0527.py index 61298c7a7..9fb602b45 100644 --- a/githubkit/versions/v2022_11_28/models/group_0527.py +++ b/githubkit/versions/v2022_11_28/models/group_0527.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -17,54 +18,95 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0530 import WebhookIssueCommentEditedPropIssueAllof0PropMilestone +from .group_0532 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, +) +from .group_0528 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssignee, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequest, +) -class WebhookIssueCommentEditedPropIssueAllof1(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1""" - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssignee, None] = Field( - title="User" +class WebhookIssueCommentEditedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: List[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", ) - assignees: Missing[ - List[Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Missing[Union[str, None]] = Field(default=UNSET) - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: List[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems] = Field() - labels_url: Missing[str] = Field(default=UNSET) - locked: bool = Field() - milestone: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestone, None] - ] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssueCommentEditedPropIssueAllof1PropReactions] = Field( - default=UNSET + Union[WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssueCommentEditedPropIssueAllof0PropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactions = Field( + title="Reactions" ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssueCommentEditedPropIssueAllof1PropUser] = Field( - default=UNSET + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUser, None] = Field( + title="User" ) -class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -92,59 +134,36 @@ class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): url: 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 WebhookIssueCommentEditedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" - -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) + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssueCommentEditedPropIssueAllof1PropUser""" +class WebhookIssueCommentEditedPropIssueAllof0PropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -152,26 +171,20 @@ class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropUser) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1", - "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssueCommentEditedPropIssueAllof1PropReactions", - "WebhookIssueCommentEditedPropIssueAllof1PropUser", + "WebhookIssueCommentEditedPropIssueAllof0", + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItems", + "WebhookIssueCommentEditedPropIssueAllof0PropReactions", + "WebhookIssueCommentEditedPropIssueAllof0PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0528.py b/githubkit/versions/v2022_11_28/models/group_0528.py index b7cb4848a..65b348d39 100644 --- a/githubkit/versions/v2022_11_28/models/group_0528.py +++ b/githubkit/versions/v2022_11_28/models/group_0528.py @@ -14,34 +14,69 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0523 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator +class WebhookIssueCommentEditedPropIssueAllof0PropAssignee(GitHubModel): + """User""" -class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None - ] = Field(title="User") + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() id: int = Field() - labels_url: str = Field() + name: str = Field(description="The name of the label.") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssueCommentEditedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedMilestone) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPullRequest) -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropAssignee", + "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItems", + "WebhookIssueCommentEditedPropIssueAllof0PropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0529.py b/githubkit/versions/v2022_11_28/models/group_0529.py index 941ad9d4b..265267a2d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0529.py +++ b/githubkit/versions/v2022_11_28/models/group_0529.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,87 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0525 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) - -class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" +class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - updated_at: Union[datetime, None] = Field() + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator) -__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/v2022_11_28/models/group_0530.py b/githubkit/versions/v2022_11_28/models/group_0530.py index ed20d768a..3a6ebbaf3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0530.py +++ b/githubkit/versions/v2022_11_28/models/group_0530.py @@ -9,57 +9,42 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0379 import WebhooksUser -from .group_0388 import WebhooksIssue -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0529 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesAssigned(GitHubModel): - """issues assigned event""" +class WebhookIssueCommentEditedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - 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)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhooksIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) + A collection of related issues and pull requests. + """ + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssuesAssigned) -__all__ = ("WebhookIssuesAssigned",) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropMilestone) + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0531.py b/githubkit/versions/v2022_11_28/models/group_0531.py index ca9d42a19..0a173e32e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0531.py +++ b/githubkit/versions/v2022_11_28/models/group_0531.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,46 +17,94 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0532 import WebhookIssuesClosedPropIssue +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" -class WebhookIssuesClosed(GitHubModel): - """issues closed event""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) - 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)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesClosedPropIssue = Field( - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + 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(WebhookIssuesClosed) +model_rebuild( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) -__all__ = ("WebhookIssuesClosed",) +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0532.py b/githubkit/versions/v2022_11_28/models/group_0532.py index b99073a6b..c8e94c549 100644 --- a/githubkit/versions/v2022_11_28/models/group_0532.py +++ b/githubkit/versions/v2022_11_28/models/group_0532.py @@ -18,198 +18,93 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0540 import WebhookIssuesClosedPropIssueMergedMilestone -from .group_0538 import WebhookIssuesClosedPropIssueAllof0PropPullRequest -from .group_0541 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp +from .group_0531 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesClosedPropIssue(GitHubModel): - """WebhookIssuesClosedPropIssue +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): + """App - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] = Field() - assignee: Missing[Union[WebhookIssuesClosedPropIssueMergedAssignee, None]] = Field( - default=UNSET - ) - assignees: List[WebhookIssuesClosedPropIssueMergedAssignees] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - 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() - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: WebhookIssuesClosedPropIssueMergedUser = Field() - - -class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): - """WebhookIssuesClosedPropIssueMergedAssignee""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): - """WebhookIssuesClosedPropIssueMergedAssignees""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): - """WebhookIssuesClosedPropIssueMergedLabels""" - - 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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = 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 WebhookIssuesClosedPropIssueMergedReactions(GitHubModel): - """WebhookIssuesClosedPropIssueMergedReactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): - """WebhookIssuesClosedPropIssueMergedUser""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - url: Missing[str] = Field(default=UNSET) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesClosedPropIssue) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) -model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) -model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) -model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) -model_rebuild(WebhookIssuesClosedPropIssueMergedUser) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp) -__all__ = ( - "WebhookIssuesClosedPropIssue", - "WebhookIssuesClosedPropIssueMergedAssignee", - "WebhookIssuesClosedPropIssueMergedAssignees", - "WebhookIssuesClosedPropIssueMergedLabels", - "WebhookIssuesClosedPropIssueMergedReactions", - "WebhookIssuesClosedPropIssueMergedUser", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0533.py b/githubkit/versions/v2022_11_28/models/group_0533.py index 2ff258215..61298c7a7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0533.py +++ b/githubkit/versions/v2022_11_28/models/group_0533.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,113 +17,54 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0535 import WebhookIssuesClosedPropIssueAllof0PropMilestone -from .group_0538 import WebhookIssuesClosedPropIssueAllof0PropPullRequest -from .group_0537 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp +class WebhookIssueCommentEditedPropIssueAllof1(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1""" -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.", + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssignee, None] = Field( + title="User" ) - node_id: str = Field() - number: int = Field() + assignees: Missing[ + List[Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Missing[Union[str, None]] = Field(default=UNSET) + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: List[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems] = Field() + labels_url: Missing[str] = Field(default=UNSET) + locked: bool = Field() + milestone: Missing[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestone, None] + ] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + number: Missing[int] = Field(default=UNSET) performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( + Union[WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssueCommentEditedPropIssueAllof1PropReactions] = Field( default=UNSET ) - reactions: WebhookIssuesClosedPropIssueAllof0PropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") - - -class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssueCommentEditedPropIssueAllof1PropUser] = Field( default=UNSET ) - url: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): +class WebhookIssueCommentEditedPropIssueAllof1PropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -152,7 +92,11 @@ class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -166,36 +110,41 @@ class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): - """Reactions""" +class WebhookIssueCommentEditedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() +class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" -class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): - """User""" + +class WebhookIssueCommentEditedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" + + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssueCommentEditedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -203,24 +152,26 @@ class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof0) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssignee) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssigneesItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropLabelsItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropReactions) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropUser) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssueCommentEditedPropIssueAllof1PropUser) __all__ = ( - "WebhookIssuesClosedPropIssueAllof0", - "WebhookIssuesClosedPropIssueAllof0PropAssignee", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof0PropReactions", - "WebhookIssuesClosedPropIssueAllof0PropUser", + "WebhookIssueCommentEditedPropIssueAllof1", + "WebhookIssueCommentEditedPropIssueAllof1PropAssignee", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItems", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestone", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssueCommentEditedPropIssueAllof1PropReactions", + "WebhookIssueCommentEditedPropIssueAllof1PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0534.py b/githubkit/versions/v2022_11_28/models/group_0534.py index 67637d8b2..ee635b550 100644 --- a/githubkit/versions/v2022_11_28/models/group_0534.py +++ b/githubkit/versions/v2022_11_28/models/group_0534.py @@ -9,43 +9,39 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0529 import WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator -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) +class WebhookIssueCommentEditedPropIssueMergedMilestone(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +model_rebuild(WebhookIssueCommentEditedPropIssueMergedMilestone) + +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0535.py b/githubkit/versions/v2022_11_28/models/group_0535.py index fb6a27efb..f2b0cfb22 100644 --- a/githubkit/versions/v2022_11_28/models/group_0535.py +++ b/githubkit/versions/v2022_11_28/models/group_0535.py @@ -10,41 +10,95 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0534 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator +from .group_0531 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesClosedPropIssueAllof0PropMilestone(GitHubModel): - """Milestone +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( - Field(title="User") - ) + created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() + events: Missing[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() html_url: str = Field() - id: int = Field() - labels_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) +model_rebuild(WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0536.py b/githubkit/versions/v2022_11_28/models/group_0536.py index 0f1382f9f..221bd5f8a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0536.py +++ b/githubkit/versions/v2022_11_28/models/group_0536.py @@ -17,90 +17,49 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -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) - - -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET +from .group_0384 import WebhooksUser +from .group_0393 import WebhooksIssue +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks + + +class WebhookIssuesAssigned(GitHubModel): + """issues assigned event""" + + action: Literal["assigned"] = Field(description="The action that was performed.") + assignee: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - 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(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner) -model_rebuild( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -) +model_rebuild(WebhookIssuesAssigned) -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", -) +__all__ = ("WebhookIssuesAssigned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0537.py b/githubkit/versions/v2022_11_28/models/group_0537.py index 339bc5dca..3a7207fbd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0537.py +++ b/githubkit/versions/v2022_11_28/models/group_0537.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,94 +17,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0536 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0538 import WebhookIssuesClosedPropIssue -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssuesClosed(GitHubModel): + """issues closed event""" - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "reminder", - "pull_request_review_thread", - ] - ] - ] = 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" + 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)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + issue: WebhookIssuesClosedPropIssue = Field( + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself." + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - updated_at: Union[datetime, None] = Field() -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosed) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) +__all__ = ("WebhookIssuesClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0538.py b/githubkit/versions/v2022_11_28/models/group_0538.py index dbed44f7e..59fa69631 100644 --- a/githubkit/versions/v2022_11_28/models/group_0538.py +++ b/githubkit/versions/v2022_11_28/models/group_0538.py @@ -9,8 +9,8 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -18,17 +18,198 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0546 import WebhookIssuesClosedPropIssueMergedMilestone +from .group_0544 import WebhookIssuesClosedPropIssueAllof0PropPullRequest +from .group_0547 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp -class WebhookIssuesClosedPropIssueAllof0PropPullRequest(GitHubModel): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - diff_url: Missing[str] = Field(default=UNSET) +class WebhookIssuesClosedPropIssue(GitHubModel): + """WebhookIssuesClosedPropIssue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] = Field() + assignee: Missing[Union[WebhookIssuesClosedPropIssueMergedAssignee, None]] = Field( + default=UNSET + ) + assignees: List[WebhookIssuesClosedPropIssueMergedAssignees] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[Union[str, None], None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesClosedPropIssueMergedLabels]] = Field( + default=UNSET + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesClosedPropIssueMergedMilestone, None] = Field() + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp, None] + ] = Field(default=UNSET) + pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesClosedPropIssueMergedReactions = Field() + repository_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: WebhookIssuesClosedPropIssueMergedUser = Field() + + +class WebhookIssuesClosedPropIssueMergedAssignee(GitHubModel): + """WebhookIssuesClosedPropIssueMergedAssignee""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueMergedAssignees(GitHubModel): + """WebhookIssuesClosedPropIssueMergedAssignees""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesClosedPropIssueMergedLabels(GitHubModel): + """WebhookIssuesClosedPropIssueMergedLabels""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesClosedPropIssueMergedReactions(GitHubModel): + """WebhookIssuesClosedPropIssueMergedReactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookIssuesClosedPropIssueMergedUser(GitHubModel): + """WebhookIssuesClosedPropIssueMergedUser""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - 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) -model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) +model_rebuild(WebhookIssuesClosedPropIssue) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignee) +model_rebuild(WebhookIssuesClosedPropIssueMergedAssignees) +model_rebuild(WebhookIssuesClosedPropIssueMergedLabels) +model_rebuild(WebhookIssuesClosedPropIssueMergedReactions) +model_rebuild(WebhookIssuesClosedPropIssueMergedUser) -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",) +__all__ = ( + "WebhookIssuesClosedPropIssue", + "WebhookIssuesClosedPropIssueMergedAssignee", + "WebhookIssuesClosedPropIssueMergedAssignees", + "WebhookIssuesClosedPropIssueMergedLabels", + "WebhookIssuesClosedPropIssueMergedReactions", + "WebhookIssuesClosedPropIssueMergedUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0539.py b/githubkit/versions/v2022_11_28/models/group_0539.py index 61782b677..84bea6262 100644 --- a/githubkit/versions/v2022_11_28/models/group_0539.py +++ b/githubkit/versions/v2022_11_28/models/group_0539.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -17,98 +18,184 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0541 import WebhookIssuesClosedPropIssueAllof0PropMilestone +from .group_0544 import WebhookIssuesClosedPropIssueAllof0PropPullRequest +from .group_0543 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp -class WebhookIssuesClosedPropIssueAllof1(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1""" - active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) - assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( - Field(default=UNSET) +class WebhookIssuesClosedPropIssueAllof0(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof0PropAssignee, None]] = ( + Field(default=UNSET, title="User") ) - assignees: Missing[ - List[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] - ] = Field(default=UNSET) - author_association: Missing[str] = Field(default=UNSET) - body: Missing[Union[str, None]] = Field(default=UNSET) - closed_at: Union[str, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[ - List[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: Missing[str] = Field(default=UNSET) + assignees: List[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesClosedPropIssueAllof0PropLabelsItems]] = Field( + default=UNSET + ) + labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( - Field(default=UNSET) + milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - node_id: Missing[str] = Field(default=UNSET) - number: Missing[int] = Field(default=UNSET) + node_id: str = Field() + number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, None] - ] = Field(default=UNSET) - reactions: Missing[WebhookIssuesClosedPropIssueAllof1PropReactions] = Field( + Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesClosedPropIssueAllof0PropPullRequest] = Field( default=UNSET ) - repository_url: Missing[str] = Field(default=UNSET) - state: Literal["closed", "open"] = Field() + reactions: WebhookIssuesClosedPropIssueAllof0PropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) - title: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - user: Missing[WebhookIssuesClosedPropIssueAllof1PropUser] = Field(default=UNSET) - + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesClosedPropIssueAllof0PropUser, None] = Field(title="User") -class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" +class WebhookIssuesClosedPropIssueAllof0PropAssignee(GitHubModel): + """User""" -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" +class WebhookIssuesClosedPropIssueAllof0PropAssigneesItems(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" +class WebhookIssuesClosedPropIssueAllof0PropLabelsItems(GitHubModel): + """Label""" -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") -class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" +class WebhookIssuesClosedPropIssueAllof0PropReactions(GitHubModel): + """Reactions""" - plus_one: Missing[int] = Field(default=UNSET, alias="+1") - minus_one: Missing[int] = Field(default=UNSET, alias="-1") - confused: Missing[int] = Field(default=UNSET) - eyes: Missing[int] = Field(default=UNSET) - heart: Missing[int] = Field(default=UNSET) - hooray: Missing[int] = Field(default=UNSET) - laugh: Missing[int] = Field(default=UNSET) - rocket: Missing[int] = Field(default=UNSET) - total_count: Missing[int] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() -class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): - """WebhookIssuesClosedPropIssueAllof1PropUser""" +class WebhookIssuesClosedPropIssueAllof0PropUser(GitHubModel): + """User""" avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - login: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -116,26 +203,24 @@ class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueAllof1) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssignee) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssigneesItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropLabelsItems) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropMilestone) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropReactions) -model_rebuild(WebhookIssuesClosedPropIssueAllof1PropUser) +model_rebuild(WebhookIssuesClosedPropIssueAllof0) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssignee) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropAssigneesItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropLabelsItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropReactions) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropUser) __all__ = ( - "WebhookIssuesClosedPropIssueAllof1", - "WebhookIssuesClosedPropIssueAllof1PropAssignee", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", - "WebhookIssuesClosedPropIssueAllof1PropMilestone", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", - "WebhookIssuesClosedPropIssueAllof1PropReactions", - "WebhookIssuesClosedPropIssueAllof1PropUser", + "WebhookIssuesClosedPropIssueAllof0", + "WebhookIssuesClosedPropIssueAllof0PropAssignee", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof0PropReactions", + "WebhookIssuesClosedPropIssueAllof0PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0540.py b/githubkit/versions/v2022_11_28/models/group_0540.py index 93bc6591c..67637d8b2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0540.py +++ b/githubkit/versions/v2022_11_28/models/group_0540.py @@ -9,39 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0534 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator(GitHubModel): + """User""" -class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): - """WebhookIssuesClosedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator) -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator",) diff --git a/githubkit/versions/v2022_11_28/models/group_0541.py b/githubkit/versions/v2022_11_28/models/group_0541.py index d1088097f..08d37008c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0541.py +++ b/githubkit/versions/v2022_11_28/models/group_0541.py @@ -10,96 +10,41 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0536 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, -) +from .group_0540 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): - """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssuesClosedPropIssueAllof0PropMilestone(GitHubModel): + """Milestone - created_at: Union[datetime, None] = Field() + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( + Field(title="User") + ) description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "reminder", - "pull_request_review_thread", - ] - ] - ] = 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[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -model_rebuild(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropMilestone) -__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0542.py b/githubkit/versions/v2022_11_28/models/group_0542.py index e18fc871f..0f1382f9f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0542.py +++ b/githubkit/versions/v2022_11_28/models/group_0542.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,144 +17,8 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks - -class WebhookIssuesDeleted(GitHubModel): - """issues deleted event""" - - action: Literal["deleted"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesDeletedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookIssuesDeletedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesDeletedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesDeletedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -181,182 +44,10 @@ class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( - title="User" - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - ] - ] - ] = 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) - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -380,7 +71,9 @@ class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( default=UNSET @@ -402,83 +95,12 @@ class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesDeletedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesDeletedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDeletedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class 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) - - -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) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner) +model_rebuild( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions +) __all__ = ( - "WebhookIssuesDeleted", - "WebhookIssuesDeletedPropIssue", - "WebhookIssuesDeletedPropIssuePropAssignee", - "WebhookIssuesDeletedPropIssuePropAssigneesItems", - "WebhookIssuesDeletedPropIssuePropLabelsItems", - "WebhookIssuesDeletedPropIssuePropMilestone", - "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDeletedPropIssuePropPullRequest", - "WebhookIssuesDeletedPropIssuePropReactions", - "WebhookIssuesDeletedPropIssuePropUser", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0543.py b/githubkit/versions/v2022_11_28/models/group_0543.py index 39dca4577..f94c86d36 100644 --- a/githubkit/versions/v2022_11_28/models/group_0543.py +++ b/githubkit/versions/v2022_11_28/models/group_0543.py @@ -18,250 +18,13 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0389 import WebhooksMilestone -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks - - -class WebhookIssuesDemilestoned(GitHubModel): - """issues demilestoned event""" - - action: Literal["demilestoned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesDemilestonedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - milestone: Missing[WebhooksMilestone] = Field( - default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookIssuesDemilestonedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesDemilestonedPropIssuePropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: List[ - Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - List[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesDemilestonedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesDemilestonedPropIssuePropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesDemilestonedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesDemilestonedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesDemilestonedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) +from .group_0542 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -320,6 +83,9 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "security_and_analysis", + "reminder", + "pull_request_review_thread", ] ] ] = Field(default=UNSET, description="The list of events for the GitHub app") @@ -329,10 +95,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -340,164 +106,6 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp) - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesDemilestonedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesDemilestonedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class 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) - - -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", - "WebhookIssuesDemilestonedPropIssue", - "WebhookIssuesDemilestonedPropIssuePropAssignee", - "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", - "WebhookIssuesDemilestonedPropIssuePropLabelsItems", - "WebhookIssuesDemilestonedPropIssuePropMilestone", - "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesDemilestonedPropIssuePropPullRequest", - "WebhookIssuesDemilestonedPropIssuePropReactions", - "WebhookIssuesDemilestonedPropIssuePropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0544.py b/githubkit/versions/v2022_11_28/models/group_0544.py index a57e92704..dbed44f7e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0544.py +++ b/githubkit/versions/v2022_11_28/models/group_0544.py @@ -9,8 +9,8 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from pydantic import Field @@ -18,427 +18,9 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0383 import WebhooksLabel -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks - -class WebhookIssuesEdited(GitHubModel): - """issues edited event""" - - action: Literal["edited"] = Field() - changes: WebhookIssuesEditedPropChanges = Field( - description="The changes to the issue." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesEditedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookIssuesEditedPropChanges(GitHubModel): - """WebhookIssuesEditedPropChanges - - The changes to the issue. - """ - - body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) - - -class WebhookIssuesEditedPropChangesPropBody(GitHubModel): - """WebhookIssuesEditedPropChangesPropBody""" - - from_: str = Field(alias="from", description="The previous version of the body.") - - -class WebhookIssuesEditedPropChangesPropTitle(GitHubModel): - """WebhookIssuesEditedPropChangesPropTitle""" - - from_: str = Field(alias="from", description="The previous version of the title.") - - -class WebhookIssuesEditedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesEditedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( - default=UNSET - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesEditedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -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) - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "pull_request_review_thread", - "reminder", - ] - ] - ] = 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) - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesEditedPropIssuePropPullRequest""" +class WebhookIssuesClosedPropIssueAllof0PropPullRequest(GitHubModel): + """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -447,81 +29,6 @@ class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class 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) - - -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) +model_rebuild(WebhookIssuesClosedPropIssueAllof0PropPullRequest) -__all__ = ( - "WebhookIssuesEdited", - "WebhookIssuesEditedPropChanges", - "WebhookIssuesEditedPropChangesPropBody", - "WebhookIssuesEditedPropChangesPropTitle", - "WebhookIssuesEditedPropIssue", - "WebhookIssuesEditedPropIssuePropAssignee", - "WebhookIssuesEditedPropIssuePropAssigneesItems", - "WebhookIssuesEditedPropIssuePropLabelsItems", - "WebhookIssuesEditedPropIssuePropMilestone", - "WebhookIssuesEditedPropIssuePropMilestonePropCreator", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesEditedPropIssuePropPullRequest", - "WebhookIssuesEditedPropIssuePropReactions", - "WebhookIssuesEditedPropIssuePropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequest",) diff --git a/githubkit/versions/v2022_11_28/models/group_0545.py b/githubkit/versions/v2022_11_28/models/group_0545.py index 1aadc71d3..61782b677 100644 --- a/githubkit/versions/v2022_11_28/models/group_0545.py +++ b/githubkit/versions/v2022_11_28/models/group_0545.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,441 +17,98 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0383 import WebhooksLabel -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +class WebhookIssuesClosedPropIssueAllof1(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1""" -class WebhookIssuesLabeled(GitHubModel): - """issues labeled event""" - - action: Literal["labeled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesLabeledPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookIssuesLabeledPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesLabeledPropIssuePropLabelsItems]] = Field( - default=UNSET + active_lock_reason: Missing[Union[str, None]] = Field(default=UNSET) + assignee: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropAssignee, None]] = ( + Field(default=UNSET) ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesLabeledPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) + assignees: Missing[ + List[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItems, None]] + ] = Field(default=UNSET) + author_association: Missing[str] = Field(default=UNSET) + body: Missing[Union[str, None]] = Field(default=UNSET) + closed_at: Union[str, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class 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" + id: Missing[int] = Field(default=UNSET) + labels: Missing[ + List[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: Missing[str] = Field(default=UNSET) + locked: Missing[bool] = Field(default=UNSET) + milestone: Missing[Union[WebhookIssuesClosedPropIssueAllof1PropMilestone, None]] = ( + Field(default=UNSET) ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesLabeledPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + number: Missing[int] = Field(default=UNSET) + performed_via_github_app: Missing[ + Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp, None] + ] = Field(default=UNSET) + reactions: Missing[WebhookIssuesClosedPropIssueAllof1PropReactions] = Field( default=UNSET ) + repository_url: Missing[str] = Field(default=UNSET) + state: Literal["closed", "open"] = Field() + timeline_url: Missing[str] = Field(default=UNSET) + title: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) + user: Missing[WebhookIssuesClosedPropIssueAllof1PropUser] = Field(default=UNSET) -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp(GitHubModel): - """App +class WebhookIssuesClosedPropIssueAllof1PropAssignee(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - created_at: Union[datetime, None] = Field() - description: Union[str, None] = Field() - events: Missing[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "reminder", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() +class WebhookIssuesClosedPropIssueAllof1PropAssigneesItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookIssuesClosedPropIssueAllof1PropLabelsItems(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" -class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions +class WebhookIssuesClosedPropIssueAllof1PropMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" - The set of permissions for the GitHub app - """ - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) +class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" -class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesLabeledPropIssuePropPullRequest""" +class WebhookIssuesClosedPropIssueAllof1PropReactions(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) + plus_one: Missing[int] = Field(default=UNSET, alias="+1") + minus_one: Missing[int] = Field(default=UNSET, alias="-1") + confused: Missing[int] = Field(default=UNSET) + eyes: Missing[int] = Field(default=UNSET) + heart: Missing[int] = Field(default=UNSET) + hooray: Missing[int] = Field(default=UNSET) + laugh: Missing[int] = Field(default=UNSET) + rocket: Missing[int] = Field(default=UNSET) + total_count: Missing[int] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesLabeledPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): - """User""" +class WebhookIssuesClosedPropIssueAllof1PropUser(GitHubModel): + """WebhookIssuesClosedPropIssueAllof1PropUser""" avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) events_url: Missing[str] = Field(default=UNSET) followers_url: Missing[str] = Field(default=UNSET) following_url: Missing[str] = Field(default=UNSET) gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) organizations_url: Missing[str] = Field(default=UNSET) received_events_url: Missing[str] = Field(default=UNSET) @@ -460,38 +116,26 @@ class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[str] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -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) +model_rebuild(WebhookIssuesClosedPropIssueAllof1) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssignee) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropAssigneesItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropLabelsItems) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropMilestone) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropReactions) +model_rebuild(WebhookIssuesClosedPropIssueAllof1PropUser) __all__ = ( - "WebhookIssuesLabeled", - "WebhookIssuesLabeledPropIssue", - "WebhookIssuesLabeledPropIssuePropAssignee", - "WebhookIssuesLabeledPropIssuePropAssigneesItems", - "WebhookIssuesLabeledPropIssuePropLabelsItems", - "WebhookIssuesLabeledPropIssuePropMilestone", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLabeledPropIssuePropPullRequest", - "WebhookIssuesLabeledPropIssuePropReactions", - "WebhookIssuesLabeledPropIssuePropUser", + "WebhookIssuesClosedPropIssueAllof1", + "WebhookIssuesClosedPropIssueAllof1PropAssignee", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItems", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItems", + "WebhookIssuesClosedPropIssueAllof1PropMilestone", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp", + "WebhookIssuesClosedPropIssueAllof1PropReactions", + "WebhookIssuesClosedPropIssueAllof1PropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0546.py b/githubkit/versions/v2022_11_28/models/group_0546.py index 494405ada..bc506dc90 100644 --- a/githubkit/versions/v2022_11_28/models/group_0546.py +++ b/githubkit/versions/v2022_11_28/models/group_0546.py @@ -10,202 +10,23 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0540 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator -class WebhookIssuesLocked(GitHubModel): - """issues locked event""" - - action: Literal["locked"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesLockedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookIssuesLockedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesLockedPropIssuePropAssignee, None]] = Field( - default=UNSET, title="User" - ) - assignees: List[Union[WebhookIssuesLockedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[Union[WebhookIssuesLockedPropIssuePropLabelsItems, None]]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Literal[True] = Field() - milestone: Union[WebhookIssuesLockedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesLockedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesLockedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesLockedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesLockedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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) - - -class WebhookIssuesLockedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesLockedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookIssuesClosedPropIssueMergedMilestone(GitHubModel): + """WebhookIssuesClosedPropIssueMergedMilestone""" closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreator, None] = Field( - title="User" + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreator, None] = ( + Field(title="User") ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -221,263 +42,6 @@ class WebhookIssuesLockedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesLockedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "security_and_analysis", - ] - ] - ] = 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) - - -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) - - -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) +model_rebuild(WebhookIssuesClosedPropIssueMergedMilestone) -__all__ = ( - "WebhookIssuesLocked", - "WebhookIssuesLockedPropIssue", - "WebhookIssuesLockedPropIssuePropAssignee", - "WebhookIssuesLockedPropIssuePropAssigneesItems", - "WebhookIssuesLockedPropIssuePropLabelsItems", - "WebhookIssuesLockedPropIssuePropMilestone", - "WebhookIssuesLockedPropIssuePropMilestonePropCreator", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesLockedPropIssuePropPullRequest", - "WebhookIssuesLockedPropIssuePropReactions", - "WebhookIssuesLockedPropIssuePropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestone",) diff --git a/githubkit/versions/v2022_11_28/models/group_0547.py b/githubkit/versions/v2022_11_28/models/group_0547.py index 98f3d44f1..9a410e852 100644 --- a/githubkit/versions/v2022_11_28/models/group_0547.py +++ b/githubkit/versions/v2022_11_28/models/group_0547.py @@ -18,250 +18,14 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0389 import WebhooksMilestone -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks - - -class WebhookIssuesMilestoned(GitHubModel): - """issues milestoned event""" - - action: Literal["milestoned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - issue: WebhookIssuesMilestonedPropIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -class WebhookIssuesMilestonedPropIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[Union[WebhookIssuesMilestonedPropIssuePropAssignee, None]] = ( - Field(default=UNSET, title="User") - ) - assignees: List[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItems, None]] = ( - Field() - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[ - List[Union[WebhookIssuesMilestonedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestone, None] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesMilestonedPropIssuePropPullRequest] = Field( - default=UNSET - ) - reactions: WebhookIssuesMilestonedPropIssuePropReactions = Field(title="Reactions") - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesMilestonedPropIssuePropUser, None] = Field(title="User") - - -class WebhookIssuesMilestonedPropIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") - ) - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesMilestonedPropIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - +from .group_0542 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions, +) -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp(GitHubModel): - """App - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp(GitHubModel): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" created_at: Union[datetime, None] = Field() description: Union[str, None] = Field() @@ -313,7 +77,9 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "security_and_analysis", "reminder", + "pull_request_review_thread", ] ] ] = Field(default=UNSET, description="The list of events for the GitHub app") @@ -323,10 +89,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -334,160 +100,6 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions +model_rebuild(WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp) - 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) - - -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", - "WebhookIssuesMilestonedPropIssue", - "WebhookIssuesMilestonedPropIssuePropAssignee", - "WebhookIssuesMilestonedPropIssuePropAssigneesItems", - "WebhookIssuesMilestonedPropIssuePropLabelsItems", - "WebhookIssuesMilestonedPropIssuePropMilestone", - "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesMilestonedPropIssuePropPullRequest", - "WebhookIssuesMilestonedPropIssuePropReactions", - "WebhookIssuesMilestonedPropIssuePropUser", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp",) diff --git a/githubkit/versions/v2022_11_28/models/group_0548.py b/githubkit/versions/v2022_11_28/models/group_0548.py index 810ee6548..3731d7224 100644 --- a/githubkit/versions/v2022_11_28/models/group_0548.py +++ b/githubkit/versions/v2022_11_28/models/group_0548.py @@ -16,20 +16,19 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookIssuesOpened(GitHubModel): - """issues opened event""" +class WebhookIssuesDeleted(GitHubModel): + """issues deleted event""" - action: Literal["opened"] = Field() - changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,7 +39,7 @@ class WebhookIssuesOpened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesOpenedPropIssue = Field( + issue: WebhookIssuesDeletedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) @@ -59,7 +58,7 @@ class WebhookIssuesOpened(GitHubModel): ) -class WebhookIssuesOpenedPropIssue(GitHubModel): +class WebhookIssuesDeletedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -68,10 +67,10 @@ class WebhookIssuesOpenedPropIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesOpenedPropIssuePropAssignee, None]] = Field( + assignee: Missing[Union[WebhookIssuesDeletedPropIssuePropAssignee, None]] = Field( default=UNSET, title="User" ) - assignees: List[Union[WebhookIssuesOpenedPropIssuePropAssigneesItems, None]] = ( + assignees: List[Union[WebhookIssuesDeletedPropIssuePropAssigneesItems, None]] = ( Field() ) author_association: Literal[ @@ -96,28 +95,28 @@ class WebhookIssuesOpenedPropIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[List[WebhookIssuesOpenedPropIssuePropLabelsItems]] = Field( + labels: Missing[List[WebhookIssuesDeletedPropIssuePropLabelsItems]] = Field( default=UNSET ) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesOpenedPropIssuePropMilestone, None] = Field( + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, None] + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( + pull_request: Missing[WebhookIssuesDeletedPropIssuePropPullRequest] = Field( default=UNSET ) - reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") + reactions: WebhookIssuesDeletedPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" @@ -127,10 +126,10 @@ class WebhookIssuesOpenedPropIssue(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") + user: Union[WebhookIssuesDeletedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): +class WebhookIssuesDeletedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -156,7 +155,7 @@ class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesDeletedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -182,7 +181,7 @@ class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): +class WebhookIssuesDeletedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -196,7 +195,7 @@ class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): +class WebhookIssuesDeletedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -205,7 +204,7 @@ class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreator, None] = Field( title="User" ) description: Union[str, None] = Field() @@ -222,358 +221,7 @@ class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): 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) - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "pull_request_review_thread", - "reminder", - ] - ] - ] = Field(default=UNSET, description="The list of events for the GitHub app") - external_url: Union[str, None] = Field() - html_url: str = Field() - id: Union[int, None] = Field(description="Unique identifier of the GitHub app") - name: str = Field(description="The name of the GitHub app") - node_id: str = Field() - owner: Union[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - ] = Field(default=UNSET, description="The set of permissions for the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" - ) - updated_at: Union[datetime, None] = Field() - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): - """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: Missing[Literal["read", "write"]] = Field(default=UNSET) - administration: Missing[Literal["read", "write"]] = Field(default=UNSET) - checks: Missing[Literal["read", "write"]] = Field(default=UNSET) - content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) - contents: Missing[Literal["read", "write"]] = Field(default=UNSET) - deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) - discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - emails: Missing[Literal["read", "write"]] = Field(default=UNSET) - environments: Missing[Literal["read", "write"]] = Field(default=UNSET) - issues: Missing[Literal["read", "write"]] = Field(default=UNSET) - keys: Missing[Literal["read", "write"]] = Field(default=UNSET) - members: Missing[Literal["read", "write"]] = Field(default=UNSET) - metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_administration: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) - organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( - default=UNSET - ) - organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) - packages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pages: Missing[Literal["read", "write"]] = Field(default=UNSET) - pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) - secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) - security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) - single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) - statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) - team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) - vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) - workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropIssuePropPullRequest""" - - diff_url: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) - patch_url: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class 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) - - -class WebhookIssuesOpenedPropChanges(GitHubModel): - """WebhookIssuesOpenedPropChanges""" - - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( - title="Repository", description="A git repository" - ) - - -class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: Union[str, None] = Field(description="Contents of the issue") - closed_at: Union[datetime, None] = Field() - comments: int = Field() - comments_url: str = Field() - created_at: datetime = Field() - draft: Missing[bool] = Field(default=UNSET) - events_url: str = Field() - html_url: str = Field() - id: int = Field() - labels: Missing[List[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( - Field(default=UNSET) - ) - labels_url: str = Field() - locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - ) - node_id: str = Field() - number: int = Field() - performed_via_github_app: Missing[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] - ] = Field( - default=UNSET, - title="App", - description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", - ) - pull_request: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( - Field(default=UNSET) - ) - reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactions = Field( - title="Reactions" - ) - repository_url: str = Field() - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="State of the issue; either 'open' or 'closed'" - ) - state_reason: Missing[Union[str, None]] = Field(default=UNSET) - timeline_url: Missing[str] = Field(default=UNSET) - title: str = Field(description="Title of the issue") - updated_at: datetime = Field() - url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None] = Field( - title="User" - ) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesDeletedPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -599,73 +247,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -724,6 +306,7 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "reminder", ] ] ] = Field(default=UNSET, description="The list of events for the GitHub app") @@ -733,11 +316,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, - None, + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -745,9 +327,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -773,11 +353,10 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwn url: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions( +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio - ns + """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -823,8 +402,8 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPer workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" +class WebhookIssuesDeletedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesDeletedPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -833,7 +412,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): +class WebhookIssuesDeletedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -848,7 +427,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): +class WebhookIssuesDeletedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -874,265 +453,32 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_discussions: Missing[bool] = Field( - default=UNSET, description="Whether the repository has discussions enabled." - ) - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, None] = ( - Field(title="User") - ) - permissions: Missing[ - WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, description="Whether to require commit signoff." - ) - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesOpened) -model_rebuild(WebhookIssuesOpenedPropIssue) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner) -model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions) -model_rebuild(WebhookIssuesOpenedPropIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropIssuePropUser) -model_rebuild(WebhookIssuesOpenedPropChanges) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssue) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropReactions) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) -model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) +model_rebuild(WebhookIssuesDeleted) +model_rebuild(WebhookIssuesDeletedPropIssue) +model_rebuild(WebhookIssuesDeletedPropIssuePropAssignee) +model_rebuild(WebhookIssuesDeletedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesDeletedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesDeletedPropIssuePropMilestone) +model_rebuild(WebhookIssuesDeletedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesDeletedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesDeletedPropIssuePropReactions) +model_rebuild(WebhookIssuesDeletedPropIssuePropUser) __all__ = ( - "WebhookIssuesOpened", - "WebhookIssuesOpenedPropIssue", - "WebhookIssuesOpenedPropIssuePropAssignee", - "WebhookIssuesOpenedPropIssuePropAssigneesItems", - "WebhookIssuesOpenedPropIssuePropLabelsItems", - "WebhookIssuesOpenedPropIssuePropMilestone", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropIssuePropPullRequest", - "WebhookIssuesOpenedPropIssuePropReactions", - "WebhookIssuesOpenedPropIssuePropUser", - "WebhookIssuesOpenedPropChanges", - "WebhookIssuesOpenedPropChangesPropOldIssue", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", - "WebhookIssuesOpenedPropChangesPropOldRepository", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", + "WebhookIssuesDeleted", + "WebhookIssuesDeletedPropIssue", + "WebhookIssuesDeletedPropIssuePropAssignee", + "WebhookIssuesDeletedPropIssuePropAssigneesItems", + "WebhookIssuesDeletedPropIssuePropLabelsItems", + "WebhookIssuesDeletedPropIssuePropMilestone", + "WebhookIssuesDeletedPropIssuePropMilestonePropCreator", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDeletedPropIssuePropPullRequest", + "WebhookIssuesDeletedPropIssuePropReactions", + "WebhookIssuesDeletedPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0549.py b/githubkit/versions/v2022_11_28/models/group_0549.py index d585fa1eb..ecc4171b1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0549.py +++ b/githubkit/versions/v2022_11_28/models/group_0549.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,18 +18,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import WebhooksIssue2 -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0394 import WebhooksMilestone +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookIssuesPinned(GitHubModel): - """issues pinned event""" +class WebhookIssuesDemilestoned(GitHubModel): + """issues demilestoned event""" - action: Literal["pinned"] = Field() + action: Literal["demilestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +40,15 @@ class WebhookIssuesPinned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue2 = Field( + issue: WebhookIssuesDemilestonedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) + milestone: Missing[WebhooksMilestone] = Field( + default=UNSET, + title="Milestone", + description="A collection of related issues and pull requests.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -58,6 +64,440 @@ class WebhookIssuesPinned(GitHubModel): ) -model_rebuild(WebhookIssuesPinned) +class WebhookIssuesDemilestonedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesDemilestonedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") + ) + assignees: List[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + List[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesDemilestonedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesDemilestonedPropIssuePropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesDemilestonedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesDemilestonedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesDemilestonedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = 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) + + +class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesDemilestonedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesDemilestonedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class 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) + + +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__ = ("WebhookIssuesPinned",) +__all__ = ( + "WebhookIssuesDemilestoned", + "WebhookIssuesDemilestonedPropIssue", + "WebhookIssuesDemilestonedPropIssuePropAssignee", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItems", + "WebhookIssuesDemilestonedPropIssuePropLabelsItems", + "WebhookIssuesDemilestonedPropIssuePropMilestone", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesDemilestonedPropIssuePropPullRequest", + "WebhookIssuesDemilestonedPropIssuePropReactions", + "WebhookIssuesDemilestonedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0550.py b/githubkit/versions/v2022_11_28/models/group_0550.py index 11ae8389b..08eb8eb3b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0550.py +++ b/githubkit/versions/v2022_11_28/models/group_0550.py @@ -18,17 +18,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0388 import WebhooksLabel +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookIssuesReopened(GitHubModel): - """issues reopened event""" +class WebhookIssuesEdited(GitHubModel): + """issues edited event""" - action: Literal["reopened"] = Field() + action: Literal["edited"] = Field() + changes: WebhookIssuesEditedPropChanges = Field( + description="The changes to the issue." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +43,11 @@ class WebhookIssuesReopened(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesReopenedPropIssue = Field( + issue: WebhookIssuesEditedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -58,7 +63,29 @@ class WebhookIssuesReopened(GitHubModel): ) -class WebhookIssuesReopenedPropIssue(GitHubModel): +class WebhookIssuesEditedPropChanges(GitHubModel): + """WebhookIssuesEditedPropChanges + + The changes to the issue. + """ + + body: Missing[WebhookIssuesEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookIssuesEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookIssuesEditedPropChangesPropBody(GitHubModel): + """WebhookIssuesEditedPropChangesPropBody""" + + from_: str = Field(alias="from", description="The previous version of the body.") + + +class WebhookIssuesEditedPropChangesPropTitle(GitHubModel): + """WebhookIssuesEditedPropChangesPropTitle""" + + from_: str = Field(alias="from", description="The previous version of the title.") + + +class WebhookIssuesEditedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -67,10 +94,10 @@ class WebhookIssuesReopenedPropIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesReopenedPropIssuePropAssignee, None]] = Field( + assignee: Missing[Union[WebhookIssuesEditedPropIssuePropAssignee, None]] = Field( default=UNSET, title="User" ) - assignees: List[Union[WebhookIssuesReopenedPropIssuePropAssigneesItems, None]] = ( + assignees: List[Union[WebhookIssuesEditedPropIssuePropAssigneesItems, None]] = ( Field() ) author_association: Literal[ @@ -95,41 +122,41 @@ class WebhookIssuesReopenedPropIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[ - List[Union[WebhookIssuesReopenedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) + labels: Missing[List[WebhookIssuesEditedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[WebhookIssuesReopenedPropIssuePropMilestone, None] = Field( + milestone: Union[WebhookIssuesEditedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, None] + Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - pull_request: Missing[WebhookIssuesReopenedPropIssuePropPullRequest] = Field( + pull_request: Missing[WebhookIssuesEditedPropIssuePropPullRequest] = Field( default=UNSET ) - reactions: WebhookIssuesReopenedPropIssuePropReactions = Field(title="Reactions") + reactions: WebhookIssuesEditedPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of the issue; either 'open' or 'closed'" + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" ) state_reason: Missing[Union[str, None]] = Field(default=UNSET) timeline_url: Missing[str] = Field(default=UNSET) title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesReopenedPropIssuePropUser, None] = Field(title="User") + user: Union[WebhookIssuesEditedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): +class WebhookIssuesEditedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -151,11 +178,13 @@ class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesEditedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -183,7 +212,7 @@ class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): +class WebhookIssuesEditedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -197,7 +226,7 @@ class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): +class WebhookIssuesEditedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -206,8 +235,8 @@ class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") + creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreator, None] = Field( + title="User" ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -223,7 +252,7 @@ class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesEditedPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -251,7 +280,7 @@ class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesEditedPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -310,6 +339,7 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "security_and_analysis", "pull_request_review_thread", "reminder", ] @@ -321,10 +351,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -332,7 +362,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -358,10 +388,8 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( - GitHubModel -): - """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -397,9 +425,7 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( pages: Missing[Literal["read", "write"]] = Field(default=UNSET) pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) - repository_projects: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET - ) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) @@ -411,8 +437,8 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions( workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesReopenedPropIssuePropPullRequest""" +class WebhookIssuesEditedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesEditedPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -421,7 +447,7 @@ class WebhookIssuesReopenedPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesReopenedPropIssuePropReactions(GitHubModel): +class WebhookIssuesEditedPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -436,7 +462,7 @@ class WebhookIssuesReopenedPropIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesReopenedPropIssuePropUser(GitHubModel): +class WebhookIssuesEditedPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -464,32 +490,38 @@ class WebhookIssuesReopenedPropIssuePropUser(GitHubModel): url: 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) +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__ = ( - "WebhookIssuesReopened", - "WebhookIssuesReopenedPropIssue", - "WebhookIssuesReopenedPropIssuePropAssignee", - "WebhookIssuesReopenedPropIssuePropAssigneesItems", - "WebhookIssuesReopenedPropIssuePropLabelsItems", - "WebhookIssuesReopenedPropIssuePropMilestone", - "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesReopenedPropIssuePropPullRequest", - "WebhookIssuesReopenedPropIssuePropReactions", - "WebhookIssuesReopenedPropIssuePropUser", + "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_0551.py b/githubkit/versions/v2022_11_28/models/group_0551.py index 8e4efb173..17e89bdd3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0551.py +++ b/githubkit/versions/v2022_11_28/models/group_0551.py @@ -16,21 +16,20 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import WebhooksIssue2 -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0388 import WebhooksLabel +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookIssuesTransferred(GitHubModel): - """issues transferred event""" +class WebhookIssuesLabeled(GitHubModel): + """issues labeled event""" - action: Literal["transferred"] = Field() - changes: WebhookIssuesTransferredPropChanges = Field() + action: Literal["labeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,10 +40,11 @@ class WebhookIssuesTransferred(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue2 = Field( + issue: WebhookIssuesLabeledPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -60,19 +60,7 @@ class WebhookIssuesTransferred(GitHubModel): ) -class WebhookIssuesTransferredPropChanges(GitHubModel): - """WebhookIssuesTransferredPropChanges""" - - new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( - title="Issue", - description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", - ) - new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( - title="Repository", description="A git repository" - ) - - -class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): +class WebhookIssuesLabeledPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -81,12 +69,12 @@ class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, None] - ] = Field(default=UNSET, title="User") - assignees: List[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, None] - ] = Field() + assignee: Missing[Union[WebhookIssuesLabeledPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesLabeledPropIssuePropAssigneesItems, None]] = ( + Field() + ) author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -109,35 +97,28 @@ class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[ - List[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems] - ] = Field(default=UNSET) + labels: Missing[List[WebhookIssuesLabeledPropIssuePropLabelsItems]] = Field( + default=UNSET + ) labels_url: str = Field() locked: Missing[bool] = Field(default=UNSET) - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, None - ] = Field( + milestone: Union[WebhookIssuesLabeledPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, - None, - ] + Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - pull_request: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest - ] = Field(default=UNSET) - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( - title="Reactions" + pull_request: Missing[WebhookIssuesLabeledPropIssuePropPullRequest] = Field( + default=UNSET ) + reactions: WebhookIssuesLabeledPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" @@ -147,12 +128,10 @@ class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUser, None] = Field( - title="User" - ) + user: Union[WebhookIssuesLabeledPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): +class WebhookIssuesLabeledPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -174,11 +153,13 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesLabeledPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -200,11 +181,13 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems(GitHubMo site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel): +class WebhookIssuesLabeledPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -218,7 +201,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel url: str = Field(description="URL for the label") -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): +class WebhookIssuesLabeledPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -227,9 +210,9 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, None - ] = Field(title="User") + creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -244,9 +227,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( - GitHubModel -): +class WebhookIssuesLabeledPropIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -268,13 +249,13 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp( - GitHubModel -): +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -333,6 +314,8 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "pull_request_review_thread", + "reminder", ] ] ] = Field(default=UNSET, description="The list of events for the GitHub app") @@ -342,11 +325,10 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, - None, + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -354,9 +336,7 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( - GitHubModel -): +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -382,11 +362,10 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr url: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions( +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions + """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -410,7 +389,9 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) - organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( default=UNSET @@ -432,8 +413,8 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" +class WebhookIssuesLabeledPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesLabeledPropIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -442,7 +423,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel url: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): +class WebhookIssuesLabeledPropIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -457,7 +438,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): +class WebhookIssuesLabeledPropIssuePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -479,246 +460,38 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropUser(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( - ExtraGitHubModel -): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -model_rebuild(WebhookIssuesTransferred) -model_rebuild(WebhookIssuesTransferredPropChanges) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssue) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner -) -model_rebuild( - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions -) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropReactions) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) -model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) +model_rebuild(WebhookIssuesLabeled) +model_rebuild(WebhookIssuesLabeledPropIssue) +model_rebuild(WebhookIssuesLabeledPropIssuePropAssignee) +model_rebuild(WebhookIssuesLabeledPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesLabeledPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesLabeledPropIssuePropMilestone) +model_rebuild(WebhookIssuesLabeledPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesLabeledPropIssuePropPullRequest) +model_rebuild(WebhookIssuesLabeledPropIssuePropReactions) +model_rebuild(WebhookIssuesLabeledPropIssuePropUser) __all__ = ( - "WebhookIssuesTransferred", - "WebhookIssuesTransferredPropChanges", - "WebhookIssuesTransferredPropChangesPropNewIssue", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", - "WebhookIssuesTransferredPropChangesPropNewRepository", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", + "WebhookIssuesLabeled", + "WebhookIssuesLabeledPropIssue", + "WebhookIssuesLabeledPropIssuePropAssignee", + "WebhookIssuesLabeledPropIssuePropAssigneesItems", + "WebhookIssuesLabeledPropIssuePropLabelsItems", + "WebhookIssuesLabeledPropIssuePropMilestone", + "WebhookIssuesLabeledPropIssuePropMilestonePropCreator", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLabeledPropIssuePropPullRequest", + "WebhookIssuesLabeledPropIssuePropReactions", + "WebhookIssuesLabeledPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0552.py b/githubkit/versions/v2022_11_28/models/group_0552.py index 99c7831d2..19c487978 100644 --- a/githubkit/versions/v2022_11_28/models/group_0552.py +++ b/githubkit/versions/v2022_11_28/models/group_0552.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,22 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0388 import WebhooksIssue -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0391 import WebhooksUserMannequin -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookIssuesUnassigned(GitHubModel): - """issues unassigned event""" +class WebhookIssuesLocked(GitHubModel): + """issues locked event""" - action: Literal["unassigned"] = Field(description="The action that was performed.") - assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( - default=UNSET, title="User" - ) + action: Literal["locked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,7 +39,7 @@ class WebhookIssuesUnassigned(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue = Field( + issue: WebhookIssuesLockedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) @@ -62,6 +58,426 @@ class WebhookIssuesUnassigned(GitHubModel): ) -model_rebuild(WebhookIssuesUnassigned) +class WebhookIssuesLockedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesLockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesLockedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[Union[WebhookIssuesLockedPropIssuePropLabelsItems, None]]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Literal[True] = Field() + milestone: Union[WebhookIssuesLockedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesLockedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesLockedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesLockedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesLockedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +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) + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "security_and_analysis", + ] + ] + ] = 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) + + +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) + + +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__ = ("WebhookIssuesUnassigned",) +__all__ = ( + "WebhookIssuesLocked", + "WebhookIssuesLockedPropIssue", + "WebhookIssuesLockedPropIssuePropAssignee", + "WebhookIssuesLockedPropIssuePropAssigneesItems", + "WebhookIssuesLockedPropIssuePropLabelsItems", + "WebhookIssuesLockedPropIssuePropMilestone", + "WebhookIssuesLockedPropIssuePropMilestonePropCreator", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesLockedPropIssuePropPullRequest", + "WebhookIssuesLockedPropIssuePropReactions", + "WebhookIssuesLockedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0553.py b/githubkit/versions/v2022_11_28/models/group_0553.py index ff9bd5d48..31018eb3d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0553.py +++ b/githubkit/versions/v2022_11_28/models/group_0553.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,19 +18,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0383 import WebhooksLabel -from .group_0388 import WebhooksIssue -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0394 import WebhooksMilestone +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookIssuesUnlabeled(GitHubModel): - """issues unlabeled event""" +class WebhookIssuesMilestoned(GitHubModel): + """issues milestoned event""" - action: Literal["unlabeled"] = Field() + action: Literal["milestoned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,11 +40,14 @@ class WebhookIssuesUnlabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhooksIssue = Field( + issue: WebhookIssuesMilestonedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) - label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -60,6 +63,431 @@ class WebhookIssuesUnlabeled(GitHubModel): ) -model_rebuild(WebhookIssuesUnlabeled) +class WebhookIssuesMilestonedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesMilestonedPropIssuePropAssignee, None]] = ( + Field(default=UNSET, title="User") + ) + assignees: List[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + List[Union[WebhookIssuesMilestonedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesMilestonedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesMilestonedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesMilestonedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesMilestonedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesMilestonedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesMilestonedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesMilestonedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +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__ = ("WebhookIssuesUnlabeled",) +__all__ = ( + "WebhookIssuesMilestoned", + "WebhookIssuesMilestonedPropIssue", + "WebhookIssuesMilestonedPropIssuePropAssignee", + "WebhookIssuesMilestonedPropIssuePropAssigneesItems", + "WebhookIssuesMilestonedPropIssuePropLabelsItems", + "WebhookIssuesMilestonedPropIssuePropMilestone", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreator", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesMilestonedPropIssuePropPullRequest", + "WebhookIssuesMilestonedPropIssuePropReactions", + "WebhookIssuesMilestonedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0554.py b/githubkit/versions/v2022_11_28/models/group_0554.py index fa2f2c81f..9bb093f6b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0554.py +++ b/githubkit/versions/v2022_11_28/models/group_0554.py @@ -16,19 +16,20 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookIssuesUnlocked(GitHubModel): - """issues unlocked event""" +class WebhookIssuesOpened(GitHubModel): + """issues opened event""" - action: Literal["unlocked"] = Field() + action: Literal["opened"] = Field() + changes: Missing[WebhookIssuesOpenedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +40,7 @@ class WebhookIssuesUnlocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - issue: WebhookIssuesUnlockedPropIssue = Field( + issue: WebhookIssuesOpenedPropIssue = Field( title="Issue", description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) @@ -58,7 +59,7 @@ class WebhookIssuesUnlocked(GitHubModel): ) -class WebhookIssuesUnlockedPropIssue(GitHubModel): +class WebhookIssuesOpenedPropIssue(GitHubModel): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -67,10 +68,10 @@ class WebhookIssuesUnlockedPropIssue(GitHubModel): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Missing[Union[WebhookIssuesUnlockedPropIssuePropAssignee, None]] = Field( + assignee: Missing[Union[WebhookIssuesOpenedPropIssuePropAssignee, None]] = Field( default=UNSET, title="User" ) - assignees: List[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItems, None]] = ( + assignees: List[Union[WebhookIssuesOpenedPropIssuePropAssigneesItems, None]] = ( Field() ) author_association: Literal[ @@ -95,28 +96,28 @@ class WebhookIssuesUnlockedPropIssue(GitHubModel): events_url: str = Field() html_url: str = Field() id: int = Field() - labels: Missing[ - List[Union[WebhookIssuesUnlockedPropIssuePropLabelsItems, None]] - ] = Field(default=UNSET) + labels: Missing[List[WebhookIssuesOpenedPropIssuePropLabelsItems]] = Field( + default=UNSET + ) labels_url: str = Field() - locked: Literal[False] = Field() - milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestone, None] = Field( + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestone, None] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field() performed_via_github_app: Missing[ - Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, None] + Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp, None] ] = Field( default=UNSET, title="App", description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", ) - pull_request: Missing[WebhookIssuesUnlockedPropIssuePropPullRequest] = Field( + pull_request: Missing[WebhookIssuesOpenedPropIssuePropPullRequest] = Field( default=UNSET ) - reactions: WebhookIssuesUnlockedPropIssuePropReactions = Field(title="Reactions") + reactions: WebhookIssuesOpenedPropIssuePropReactions = Field(title="Reactions") repository_url: str = Field() state: Missing[Literal["open", "closed"]] = Field( default=UNSET, description="State of the issue; either 'open' or 'closed'" @@ -126,10 +127,10 @@ class WebhookIssuesUnlockedPropIssue(GitHubModel): title: str = Field(description="Title of the issue") updated_at: datetime = Field() url: str = Field(description="URL for the issue") - user: Union[WebhookIssuesUnlockedPropIssuePropUser, None] = Field(title="User") + user: Union[WebhookIssuesOpenedPropIssuePropUser, None] = Field(title="User") -class WebhookIssuesUnlockedPropIssuePropAssignee(GitHubModel): +class WebhookIssuesOpenedPropIssuePropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -155,7 +156,7 @@ class WebhookIssuesUnlockedPropIssuePropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropAssigneesItems(GitHubModel): +class WebhookIssuesOpenedPropIssuePropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -181,7 +182,7 @@ class WebhookIssuesUnlockedPropIssuePropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropLabelsItems(GitHubModel): +class WebhookIssuesOpenedPropIssuePropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -195,7 +196,7 @@ class WebhookIssuesUnlockedPropIssuePropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): +class WebhookIssuesOpenedPropIssuePropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -204,9 +205,426 @@ class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): closed_at: Union[datetime, None] = Field() closed_issues: int = Field() created_at: datetime = Field() - creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreator, None] = ( - Field(title="User") + creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreator, None] = Field( + title="User" + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + 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) + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "security_and_analysis", + "pull_request_review_thread", + "reminder", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET + ) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesOpenedPropIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class 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) + + +class WebhookIssuesOpenedPropChanges(GitHubModel): + """WebhookIssuesOpenedPropChanges""" + + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssue, None] = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + old_repository: WebhookIssuesOpenedPropChangesPropOldRepository = Field( + title="Repository", description="A git repository" + ) + + +class WebhookIssuesOpenedPropChangesPropOldIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: List[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[List[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems]] = ( + Field(default=UNSET) + ) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest] = ( + Field(default=UNSET) + ) + reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUser, None] = Field( + title="User" + ) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator, None + ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() html_url: str = Field() @@ -221,7 +639,7 @@ class WebhookIssuesUnlockedPropIssuePropMilestone(GitHubModel): url: str = Field() -class WebhookIssuesUnlockedPropIssuePropMilestonePropCreator(GitHubModel): +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -247,7 +665,7 @@ class WebhookIssuesUnlockedPropIssuePropMilestonePropCreator(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp(GitHubModel): +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp(GitHubModel): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -315,10 +733,11 @@ class actors within GitHub. name: str = Field(description="The name of the GitHub app") node_id: str = Field() owner: Union[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, None + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions ] = Field(default=UNSET, description="The set of permissions for the GitHub app") slug: Missing[str] = Field( default=UNSET, description="The slug name of the GitHub app" @@ -326,7 +745,9 @@ class actors within GitHub. updated_at: Union[datetime, None] = Field() -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubModel): +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -352,10 +773,11 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions( +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio + ns The set of permissions for the GitHub app """ @@ -401,8 +823,8 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions( workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): - """WebhookIssuesUnlockedPropIssuePropPullRequest""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" diff_url: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) @@ -411,7 +833,7 @@ class WebhookIssuesUnlockedPropIssuePropPullRequest(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): +class WebhookIssuesOpenedPropChangesPropOldIssuePropReactions(GitHubModel): """Reactions""" plus_one: int = Field(alias="+1") @@ -426,7 +848,190 @@ class WebhookIssuesUnlockedPropIssuePropReactions(GitHubModel): url: str = Field() -class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): +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) + + +class WebhookIssuesOpenedPropChangesPropOldRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether the repository has discussions enabled." + ) + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner, None] = ( + Field(title="User") + ) + permissions: Missing[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, description="Whether to require commit signoff." + ) + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -452,32 +1057,82 @@ class WebhookIssuesUnlockedPropIssuePropUser(GitHubModel): url: 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) +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions(GitHubModel): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesOpened) +model_rebuild(WebhookIssuesOpenedPropIssue) +model_rebuild(WebhookIssuesOpenedPropIssuePropAssignee) +model_rebuild(WebhookIssuesOpenedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesOpenedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesOpenedPropIssuePropMilestone) +model_rebuild(WebhookIssuesOpenedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesOpenedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesOpenedPropIssuePropReactions) +model_rebuild(WebhookIssuesOpenedPropIssuePropUser) +model_rebuild(WebhookIssuesOpenedPropChanges) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssue) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp) +model_rebuild( + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropReactions) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldIssuePropUser) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepository) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner) +model_rebuild(WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions) __all__ = ( - "WebhookIssuesUnlocked", - "WebhookIssuesUnlockedPropIssue", - "WebhookIssuesUnlockedPropIssuePropAssignee", - "WebhookIssuesUnlockedPropIssuePropAssigneesItems", - "WebhookIssuesUnlockedPropIssuePropLabelsItems", - "WebhookIssuesUnlockedPropIssuePropMilestone", - "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", - "WebhookIssuesUnlockedPropIssuePropPullRequest", - "WebhookIssuesUnlockedPropIssuePropReactions", - "WebhookIssuesUnlockedPropIssuePropUser", + "WebhookIssuesOpened", + "WebhookIssuesOpenedPropIssue", + "WebhookIssuesOpenedPropIssuePropAssignee", + "WebhookIssuesOpenedPropIssuePropAssigneesItems", + "WebhookIssuesOpenedPropIssuePropLabelsItems", + "WebhookIssuesOpenedPropIssuePropMilestone", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropIssuePropPullRequest", + "WebhookIssuesOpenedPropIssuePropReactions", + "WebhookIssuesOpenedPropIssuePropUser", + "WebhookIssuesOpenedPropChanges", + "WebhookIssuesOpenedPropChangesPropOldIssue", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssignee", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItems", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestone", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreator", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubApp", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactions", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUser", + "WebhookIssuesOpenedPropChangesPropOldRepository", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomProperties", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicense", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwner", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0555.py b/githubkit/versions/v2022_11_28/models/group_0555.py index d710b4080..8c0dd2df8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0555.py +++ b/githubkit/versions/v2022_11_28/models/group_0555.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0390 import WebhooksIssue2 -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0395 import WebhooksIssue2 +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookIssuesUnpinned(GitHubModel): - """issues unpinned event""" +class WebhookIssuesPinned(GitHubModel): + """issues pinned event""" - action: Literal["unpinned"] = Field() + action: Literal["pinned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -58,6 +58,6 @@ class WebhookIssuesUnpinned(GitHubModel): ) -model_rebuild(WebhookIssuesUnpinned) +model_rebuild(WebhookIssuesPinned) -__all__ = ("WebhookIssuesUnpinned",) +__all__ = ("WebhookIssuesPinned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0556.py b/githubkit/versions/v2022_11_28/models/group_0556.py index 0212c23ee..0076a09fb 100644 --- a/githubkit/versions/v2022_11_28/models/group_0556.py +++ b/githubkit/versions/v2022_11_28/models/group_0556.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,18 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0383 import WebhooksLabel -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookLabelCreated(GitHubModel): - """label created event""" +class WebhookIssuesReopened(GitHubModel): + """issues reopened event""" - action: Literal["created"] = Field() + action: Literal["reopened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +39,10 @@ class WebhookLabelCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") + issue: WebhookIssuesReopenedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -49,13 +52,444 @@ 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[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookLabelCreated) +class WebhookIssuesReopenedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesReopenedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesReopenedPropIssuePropAssigneesItems, None]] = ( + Field() + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + List[Union[WebhookIssuesReopenedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesReopenedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesReopenedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesReopenedPropIssuePropUser, None] = Field(title="User") + + +class WebhookIssuesReopenedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesReopenedPropIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesReopenedPropIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreator, None] = ( + Field(title="User") + ) + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesReopenedPropIssuePropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "reminder", + ] + ] + ] = 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) + + +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 + ) + url: 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__ = ("WebhookLabelCreated",) +__all__ = ( + "WebhookIssuesReopened", + "WebhookIssuesReopenedPropIssue", + "WebhookIssuesReopenedPropIssuePropAssignee", + "WebhookIssuesReopenedPropIssuePropAssigneesItems", + "WebhookIssuesReopenedPropIssuePropLabelsItems", + "WebhookIssuesReopenedPropIssuePropMilestone", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreator", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesReopenedPropIssuePropPullRequest", + "WebhookIssuesReopenedPropIssuePropReactions", + "WebhookIssuesReopenedPropIssuePropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0557.py b/githubkit/versions/v2022_11_28/models/group_0557.py index e664649be..60bc9dc47 100644 --- a/githubkit/versions/v2022_11_28/models/group_0557.py +++ b/githubkit/versions/v2022_11_28/models/group_0557.py @@ -9,26 +9,28 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0383 import WebhooksLabel -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0395 import WebhooksIssue2 +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookLabelDeleted(GitHubModel): - """label deleted event""" +class WebhookIssuesTransferred(GitHubModel): + """issues transferred event""" - action: Literal["deleted"] = Field() + action: Literal["transferred"] = Field() + changes: WebhookIssuesTransferredPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,7 +41,10 @@ class WebhookLabelDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") + issue: WebhooksIssue2 = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -55,6 +60,665 @@ class WebhookLabelDeleted(GitHubModel): ) -model_rebuild(WebhookLabelDeleted) +class WebhookIssuesTransferredPropChanges(GitHubModel): + """WebhookIssuesTransferredPropChanges""" + + new_issue: WebhookIssuesTransferredPropChangesPropNewIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) + new_repository: WebhookIssuesTransferredPropChangesPropNewRepository = Field( + title="Repository", description="A git repository" + ) + + +class WebhookIssuesTransferredPropChangesPropNewIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee, None] + ] = Field(default=UNSET, title="User") + assignees: List[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + List[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Missing[bool] = Field(default=UNSET) + milestone: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp, + None, + ] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest + ] = Field(default=UNSET) + reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactions = Field( + title="Reactions" + ) + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUser, None] = Field( + title="User" + ) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") + node_id: str = Field() + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions( + GitHubModel +): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm + issions + + The set of permissions for the GitHub app + """ + + actions: Missing[Literal["read", "write"]] = Field(default=UNSET) + administration: Missing[Literal["read", "write"]] = Field(default=UNSET) + checks: Missing[Literal["read", "write"]] = Field(default=UNSET) + content_references: Missing[Literal["read", "write"]] = Field(default=UNSET) + contents: Missing[Literal["read", "write"]] = Field(default=UNSET) + deployments: Missing[Literal["read", "write"]] = Field(default=UNSET) + discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + emails: Missing[Literal["read", "write"]] = Field(default=UNSET) + environments: Missing[Literal["read", "write"]] = Field(default=UNSET) + issues: Missing[Literal["read", "write"]] = Field(default=UNSET) + keys: Missing[Literal["read", "write"]] = Field(default=UNSET) + members: Missing[Literal["read", "write"]] = Field(default=UNSET) + metadata: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_administration: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_plan: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + organization_self_hosted_runners: Missing[Literal["read", "write"]] = Field( + default=UNSET + ) + organization_user_blocking: Missing[Literal["read", "write"]] = Field(default=UNSET) + packages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pages: Missing[Literal["read", "write"]] = Field(default=UNSET) + pull_requests: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_hooks: Missing[Literal["read", "write"]] = Field(default=UNSET) + repository_projects: Missing[Literal["read", "write"]] = Field(default=UNSET) + secret_scanning_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + secrets: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_events: Missing[Literal["read", "write"]] = Field(default=UNSET) + security_scanning_alert: Missing[Literal["read", "write"]] = Field(default=UNSET) + single_file: Missing[Literal["read", "write"]] = Field(default=UNSET) + statuses: Missing[Literal["read", "write"]] = Field(default=UNSET) + team_discussions: Missing[Literal["read", "write"]] = Field(default=UNSET) + vulnerability_alerts: Missing[Literal["read", "write"]] = Field(default=UNSET) + workflows: Missing[Literal["read", "write"]] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest(GitHubModel): + """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" + + diff_url: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + merged_at: Missing[Union[datetime, None]] = Field(default=UNSET) + patch_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropReactions(GitHubModel): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class 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) + + +class WebhookIssuesTransferredPropChangesPropNewRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions(GitHubModel): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +model_rebuild(WebhookIssuesTransferred) +model_rebuild(WebhookIssuesTransferredPropChanges) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssue) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp) +model_rebuild( + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner +) +model_rebuild( + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions +) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropReactions) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewIssuePropUser) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepository) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner) +model_rebuild(WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions) -__all__ = ("WebhookLabelDeleted",) +__all__ = ( + "WebhookIssuesTransferred", + "WebhookIssuesTransferredPropChanges", + "WebhookIssuesTransferredPropChangesPropNewIssue", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssignee", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItems", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestone", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreator", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubApp", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactions", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUser", + "WebhookIssuesTransferredPropChangesPropNewRepository", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicense", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwner", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0558.py b/githubkit/versions/v2022_11_28/models/group_0558.py index 12f5070b8..aa36f22e9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0558.py +++ b/githubkit/versions/v2022_11_28/models/group_0558.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,21 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0383 import WebhooksLabel -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0393 import WebhooksIssue +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0396 import WebhooksUserMannequin +from .group_0374 import OrganizationSimpleWebhooks -class WebhookLabelEdited(GitHubModel): - """label edited event""" +class WebhookIssuesUnassigned(GitHubModel): + """issues unassigned event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookLabelEditedPropChanges] = Field( - default=UNSET, - description="The changes to the label if the action was `edited`.", + action: Literal["unassigned"] = Field(description="The action that was performed.") + assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( + default=UNSET, title="User" ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -43,7 +43,10 @@ class WebhookLabelEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - label: WebhooksLabel = Field(title="Label") + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -59,56 +62,6 @@ class WebhookLabelEdited(GitHubModel): ) -class WebhookLabelEditedPropChanges(GitHubModel): - """WebhookLabelEditedPropChanges - - The changes to the label if the action was `edited`. - """ - - color: Missing[WebhookLabelEditedPropChangesPropColor] = Field(default=UNSET) - description: Missing[WebhookLabelEditedPropChangesPropDescription] = Field( - default=UNSET - ) - name: Missing[WebhookLabelEditedPropChangesPropName] = Field(default=UNSET) - - -class WebhookLabelEditedPropChangesPropColor(GitHubModel): - """WebhookLabelEditedPropChangesPropColor""" - - from_: str = Field( - alias="from", - description="The previous version of the color if the action was `edited`.", - ) - - -class WebhookLabelEditedPropChangesPropDescription(GitHubModel): - """WebhookLabelEditedPropChangesPropDescription""" - - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", - ) - - -class WebhookLabelEditedPropChangesPropName(GitHubModel): - """WebhookLabelEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", - ) - - -model_rebuild(WebhookLabelEdited) -model_rebuild(WebhookLabelEditedPropChanges) -model_rebuild(WebhookLabelEditedPropChangesPropColor) -model_rebuild(WebhookLabelEditedPropChangesPropDescription) -model_rebuild(WebhookLabelEditedPropChangesPropName) +model_rebuild(WebhookIssuesUnassigned) -__all__ = ( - "WebhookLabelEdited", - "WebhookLabelEditedPropChanges", - "WebhookLabelEditedPropChangesPropColor", - "WebhookLabelEditedPropChangesPropDescription", - "WebhookLabelEditedPropChangesPropName", -) +__all__ = ("WebhookIssuesUnassigned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0559.py b/githubkit/versions/v2022_11_28/models/group_0559.py index a53e7a32e..8f83efe04 100644 --- a/githubkit/versions/v2022_11_28/models/group_0559.py +++ b/githubkit/versions/v2022_11_28/models/group_0559.py @@ -17,20 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0392 import WebhooksMarketplacePurchase -from .group_0393 import WebhooksPreviousMarketplacePurchase +from .group_0388 import WebhooksLabel +from .group_0393 import WebhooksIssue +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchaseCancelled(GitHubModel): - """marketplace_purchase cancelled event""" +class WebhookIssuesUnlabeled(GitHubModel): + """issues unlabeled event""" - action: Literal["cancelled"] = Field() - effective_date: str = Field() + action: Literal["unlabeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,19 +40,17 @@ class WebhookMarketplacePurchaseCancelled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" + issue: WebhooksIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) + label: Missing[WebhooksLabel] = Field(default=UNSET, title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -63,6 +60,6 @@ class WebhookMarketplacePurchaseCancelled(GitHubModel): ) -model_rebuild(WebhookMarketplacePurchaseCancelled) +model_rebuild(WebhookIssuesUnlabeled) -__all__ = ("WebhookMarketplacePurchaseCancelled",) +__all__ = ("WebhookIssuesUnlabeled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0560.py b/githubkit/versions/v2022_11_28/models/group_0560.py index fce20d7d3..b09fe21d7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0560.py +++ b/githubkit/versions/v2022_11_28/models/group_0560.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -17,19 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0392 import WebhooksMarketplacePurchase +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchaseChanged(GitHubModel): - """marketplace_purchase changed event""" +class WebhookIssuesUnlocked(GitHubModel): + """issues unlocked event""" - action: Literal["changed"] = Field() - effective_date: str = Field() + action: Literal["unlocked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,19 +39,16 @@ class WebhookMarketplacePurchaseChanged(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" + issue: WebhookIssuesUnlockedPropIssue = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -62,58 +58,426 @@ class WebhookMarketplacePurchaseChanged(GitHubModel): ) -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase(GitHubModel): - """Marketplace Purchase""" +class WebhookIssuesUnlockedPropIssue(GitHubModel): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ - account: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: Union[bool, None] = Field() - plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan = ( + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Missing[Union[WebhookIssuesUnlockedPropIssuePropAssignee, None]] = Field( + default=UNSET, title="User" + ) + assignees: List[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItems, None]] = ( Field() ) - unit_count: int = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: Union[str, None] = Field(description="Contents of the issue") + closed_at: Union[datetime, None] = Field() + comments: int = Field() + comments_url: str = Field() + created_at: datetime = Field() + draft: Missing[bool] = Field(default=UNSET) + events_url: str = Field() + html_url: str = Field() + id: int = Field() + labels: Missing[ + List[Union[WebhookIssuesUnlockedPropIssuePropLabelsItems, None]] + ] = Field(default=UNSET) + labels_url: str = Field() + locked: Literal[False] = Field() + milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestone, None] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + performed_via_github_app: Missing[ + Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp, None] + ] = Field( + default=UNSET, + title="App", + description="GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + ) + pull_request: Missing[WebhookIssuesUnlockedPropIssuePropPullRequest] = Field( + default=UNSET + ) + reactions: WebhookIssuesUnlockedPropIssuePropReactions = Field(title="Reactions") + repository_url: str = Field() + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="State of the issue; either 'open' or 'closed'" + ) + state_reason: Missing[Union[str, None]] = Field(default=UNSET) + timeline_url: Missing[str] = Field(default=UNSET) + title: str = Field(description="Title of the issue") + updated_at: datetime = Field() + url: str = Field(description="URL for the issue") + user: Union[WebhookIssuesUnlockedPropIssuePropUser, None] = Field(title="User") -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" +class WebhookIssuesUnlockedPropIssuePropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +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) + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] = Field(default=UNSET, description="The list of events for the GitHub app") + external_url: Union[str, None] = Field() + html_url: str = Field() + id: Union[int, None] = Field(description="Unique identifier of the GitHub app") + name: str = Field(description="The name of the GitHub app") node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() + owner: Union[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + ] = Field(default=UNSET, description="The set of permissions for the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" + ) + updated_at: Union[datetime, None] = Field() + + +class 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) -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions( GitHubModel ): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" + """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) - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() + +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() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookMarketplacePurchaseChanged) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount -) -model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan) +model_rebuild(WebhookIssuesUnlocked) +model_rebuild(WebhookIssuesUnlockedPropIssue) +model_rebuild(WebhookIssuesUnlockedPropIssuePropAssignee) +model_rebuild(WebhookIssuesUnlockedPropIssuePropAssigneesItems) +model_rebuild(WebhookIssuesUnlockedPropIssuePropLabelsItems) +model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestone) +model_rebuild(WebhookIssuesUnlockedPropIssuePropMilestonePropCreator) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions) +model_rebuild(WebhookIssuesUnlockedPropIssuePropPullRequest) +model_rebuild(WebhookIssuesUnlockedPropIssuePropReactions) +model_rebuild(WebhookIssuesUnlockedPropIssuePropUser) __all__ = ( - "WebhookMarketplacePurchaseChanged", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", + "WebhookIssuesUnlocked", + "WebhookIssuesUnlockedPropIssue", + "WebhookIssuesUnlockedPropIssuePropAssignee", + "WebhookIssuesUnlockedPropIssuePropAssigneesItems", + "WebhookIssuesUnlockedPropIssuePropLabelsItems", + "WebhookIssuesUnlockedPropIssuePropMilestone", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreator", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubApp", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwner", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions", + "WebhookIssuesUnlockedPropIssuePropPullRequest", + "WebhookIssuesUnlockedPropIssuePropReactions", + "WebhookIssuesUnlockedPropIssuePropUser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0561.py b/githubkit/versions/v2022_11_28/models/group_0561.py index 092f15af8..a9c68ed91 100644 --- a/githubkit/versions/v2022_11_28/models/group_0561.py +++ b/githubkit/versions/v2022_11_28/models/group_0561.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0392 import WebhooksMarketplacePurchase +from .group_0395 import WebhooksIssue2 +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePendingChange(GitHubModel): - """marketplace_purchase pending_change event""" +class WebhookIssuesUnpinned(GitHubModel): + """issues unpinned event""" - action: Literal["pending_change"] = Field() - effective_date: str = Field() + action: Literal["unpinned"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,19 +39,16 @@ class WebhookMarketplacePurchasePendingChange(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" + issue: WebhooksIssue2 = Field( + title="Issue", + description="The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself.", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase - ] = Field(default=UNSET, title="Marketplace Purchase") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -62,62 +58,6 @@ class WebhookMarketplacePurchasePendingChange(GitHubModel): ) -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( - GitHubModel -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: Union[str, None] = Field() - next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t - """ - - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchasePendingChange) -model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan -) +model_rebuild(WebhookIssuesUnpinned) -__all__ = ( - "WebhookMarketplacePurchasePendingChange", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", -) +__all__ = ("WebhookIssuesUnpinned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0562.py b/githubkit/versions/v2022_11_28/models/group_0562.py index a20dcf522..7187b32e1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0562.py +++ b/githubkit/versions/v2022_11_28/models/group_0562.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0393 import WebhooksPreviousMarketplacePurchase +from .group_0388 import WebhooksLabel +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): - """marketplace_purchase pending_change_cancelled event""" +class WebhookLabelCreated(GitHubModel): + """label created event""" - action: Literal["pending_change_cancelled"] = Field() - effective_date: str = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,84 +39,23 @@ class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase = Field( - title="Marketplace Purchase" - ) + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( - GitHubModel -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount = Field() - billing_cycle: str = Field() - free_trial_ends_on: None = Field() - next_billing_date: Union[str, None] = Field() - on_free_trial: bool = Field() - plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan = Field() - unit_count: int = Field() - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou - nt - """ - - id: int = Field() - login: str = Field() - node_id: str = Field() - organization_billing_email: Union[str, None] = Field() - type: str = Field() - - -class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan( - GitHubModel -): - """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" - - bullets: List[str] = Field() - description: str = Field() - has_free_trial: bool = Field() - id: int = Field() - monthly_price_in_cents: int = Field() - name: str = Field() - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() - unit_name: Union[str, None] = Field() - yearly_price_in_cents: int = Field() - - -model_rebuild(WebhookMarketplacePurchasePendingChangeCancelled) -model_rebuild(WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount -) -model_rebuild( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan -) +model_rebuild(WebhookLabelCreated) -__all__ = ( - "WebhookMarketplacePurchasePendingChangeCancelled", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", -) +__all__ = ("WebhookLabelCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0563.py b/githubkit/versions/v2022_11_28/models/group_0563.py index ae41a5af1..a9994f692 100644 --- a/githubkit/versions/v2022_11_28/models/group_0563.py +++ b/githubkit/versions/v2022_11_28/models/group_0563.py @@ -17,20 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0392 import WebhooksMarketplacePurchase -from .group_0393 import WebhooksPreviousMarketplacePurchase +from .group_0388 import WebhooksLabel +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookMarketplacePurchasePurchased(GitHubModel): - """marketplace_purchase purchased event""" +class WebhookLabelDeleted(GitHubModel): + """label deleted event""" - action: Literal["purchased"] = Field() - effective_date: str = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,19 +39,13 @@ class WebhookMarketplacePurchasePurchased(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - marketplace_purchase: WebhooksMarketplacePurchase = Field( - title="Marketplace Purchase" - ) + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( - default=UNSET, title="Marketplace Purchase" - ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -63,6 +55,6 @@ class WebhookMarketplacePurchasePurchased(GitHubModel): ) -model_rebuild(WebhookMarketplacePurchasePurchased) +model_rebuild(WebhookLabelDeleted) -__all__ = ("WebhookMarketplacePurchasePurchased",) +__all__ = ("WebhookLabelDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0564.py b/githubkit/versions/v2022_11_28/models/group_0564.py index c7d84a193..d3c2de379 100644 --- a/githubkit/versions/v2022_11_28/models/group_0564.py +++ b/githubkit/versions/v2022_11_28/models/group_0564.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,19 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0379 import WebhooksUser -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0388 import WebhooksLabel +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookMemberAdded(GitHubModel): - """member added event""" +class WebhookLabelEdited(GitHubModel): + """label edited event""" - action: Literal["added"] = Field() - changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) + action: Literal["edited"] = Field() + changes: Missing[WebhookLabelEditedPropChanges] = Field( + default=UNSET, + description="The changes to the label if the action was `edited`.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,7 +43,7 @@ class WebhookMemberAdded(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") + label: WebhooksLabel = Field(title="Label") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -56,50 +59,56 @@ class WebhookMemberAdded(GitHubModel): ) -class WebhookMemberAddedPropChanges(GitHubModel): - """WebhookMemberAddedPropChanges""" +class WebhookLabelEditedPropChanges(GitHubModel): + """WebhookLabelEditedPropChanges - permission: Missing[WebhookMemberAddedPropChangesPropPermission] = Field( - default=UNSET, - description="This field is included for legacy purposes; use the `role_name` field instead. The `maintain`\nrole is mapped to `write` and the `triage` role is mapped to `read`. To determine the role\nassigned to the collaborator, use the `role_name` field instead, which will provide the full\nrole name, including custom roles.", - ) - role_name: Missing[WebhookMemberAddedPropChangesPropRoleName] = Field( - default=UNSET, description="The role assigned to the collaborator." + The changes to the label if the action was `edited`. + """ + + color: Missing[WebhookLabelEditedPropChangesPropColor] = Field(default=UNSET) + description: Missing[WebhookLabelEditedPropChangesPropDescription] = Field( + default=UNSET ) + name: Missing[WebhookLabelEditedPropChangesPropName] = Field(default=UNSET) -class WebhookMemberAddedPropChangesPropPermission(GitHubModel): - """WebhookMemberAddedPropChangesPropPermission +class WebhookLabelEditedPropChangesPropColor(GitHubModel): + """WebhookLabelEditedPropChangesPropColor""" + + from_: str = Field( + alias="from", + description="The previous version of the color if the action was `edited`.", + ) - This field is included for legacy purposes; use the `role_name` field instead. - The `maintain` - role is mapped to `write` and the `triage` role is mapped to `read`. To - determine the role - assigned to the collaborator, use the `role_name` field instead, which will - provide the full - role name, including custom roles. - """ - to: Literal["write", "admin", "read"] = Field() +class WebhookLabelEditedPropChangesPropDescription(GitHubModel): + """WebhookLabelEditedPropChangesPropDescription""" + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", + ) -class WebhookMemberAddedPropChangesPropRoleName(GitHubModel): - """WebhookMemberAddedPropChangesPropRoleName - The role assigned to the collaborator. - """ +class WebhookLabelEditedPropChangesPropName(GitHubModel): + """WebhookLabelEditedPropChangesPropName""" - to: str = Field() + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) -model_rebuild(WebhookMemberAdded) -model_rebuild(WebhookMemberAddedPropChanges) -model_rebuild(WebhookMemberAddedPropChangesPropPermission) -model_rebuild(WebhookMemberAddedPropChangesPropRoleName) +model_rebuild(WebhookLabelEdited) +model_rebuild(WebhookLabelEditedPropChanges) +model_rebuild(WebhookLabelEditedPropChangesPropColor) +model_rebuild(WebhookLabelEditedPropChangesPropDescription) +model_rebuild(WebhookLabelEditedPropChangesPropName) __all__ = ( - "WebhookMemberAdded", - "WebhookMemberAddedPropChanges", - "WebhookMemberAddedPropChangesPropPermission", - "WebhookMemberAddedPropChangesPropRoleName", + "WebhookLabelEdited", + "WebhookLabelEditedPropChanges", + "WebhookLabelEditedPropChangesPropColor", + "WebhookLabelEditedPropChangesPropDescription", + "WebhookLabelEditedPropChangesPropName", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0565.py b/githubkit/versions/v2022_11_28/models/group_0565.py index 6a692c447..b79993bcc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0565.py +++ b/githubkit/versions/v2022_11_28/models/group_0565.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,21 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0379 import WebhooksUser -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0397 import WebhooksMarketplacePurchase +from .group_0398 import WebhooksPreviousMarketplacePurchase -class WebhookMemberEdited(GitHubModel): - """member edited event""" +class WebhookMarketplacePurchaseCancelled(GitHubModel): + """marketplace_purchase cancelled event""" - action: Literal["edited"] = Field() - changes: WebhookMemberEditedPropChanges = Field( - description="The changes to the collaborator permissions" - ) + action: Literal["cancelled"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,13 +41,19 @@ class WebhookMemberEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -58,44 +63,6 @@ class WebhookMemberEdited(GitHubModel): ) -class WebhookMemberEditedPropChanges(GitHubModel): - """WebhookMemberEditedPropChanges - - The changes to the collaborator permissions - """ - - old_permission: Missing[WebhookMemberEditedPropChangesPropOldPermission] = Field( - default=UNSET - ) - permission: Missing[WebhookMemberEditedPropChangesPropPermission] = Field( - default=UNSET - ) - - -class WebhookMemberEditedPropChangesPropOldPermission(GitHubModel): - """WebhookMemberEditedPropChangesPropOldPermission""" - - from_: str = Field( - alias="from", - description="The previous permissions of the collaborator if the action was edited.", - ) - - -class WebhookMemberEditedPropChangesPropPermission(GitHubModel): - """WebhookMemberEditedPropChangesPropPermission""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(WebhookMemberEdited) -model_rebuild(WebhookMemberEditedPropChanges) -model_rebuild(WebhookMemberEditedPropChangesPropOldPermission) -model_rebuild(WebhookMemberEditedPropChangesPropPermission) +model_rebuild(WebhookMarketplacePurchaseCancelled) -__all__ = ( - "WebhookMemberEdited", - "WebhookMemberEditedPropChanges", - "WebhookMemberEditedPropChangesPropOldPermission", - "WebhookMemberEditedPropChangesPropPermission", -) +__all__ = ("WebhookMarketplacePurchaseCancelled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0566.py b/githubkit/versions/v2022_11_28/models/group_0566.py index 7c075b74e..8c3510bd2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0566.py +++ b/githubkit/versions/v2022_11_28/models/group_0566.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0379 import WebhooksUser -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0397 import WebhooksMarketplacePurchase -class WebhookMemberRemoved(GitHubModel): - """member removed event""" +class WebhookMarketplacePurchaseChanged(GitHubModel): + """marketplace_purchase changed event""" - action: Literal["removed"] = Field() + action: Literal["changed"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,13 +40,19 @@ class WebhookMemberRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -55,6 +62,58 @@ class WebhookMemberRemoved(GitHubModel): ) -model_rebuild(WebhookMemberRemoved) +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase(GitHubModel): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: Union[bool, None] = Field() + plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan = ( + Field() + ) + unit_count: int = Field() + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" + + id: int = Field() + login: str = Field() + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchaseChanged) +model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount +) +model_rebuild(WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan) -__all__ = ("WebhookMemberRemoved",) +__all__ = ( + "WebhookMarketplacePurchaseChanged", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchase", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0567.py b/githubkit/versions/v2022_11_28/models/group_0567.py index fb73d492d..13c891dfd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0567.py +++ b/githubkit/versions/v2022_11_28/models/group_0567.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0379 import WebhooksUser -from .group_0394 import WebhooksTeam -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0397 import WebhooksMarketplacePurchase -class WebhookMembershipAdded(GitHubModel): - """membership added event""" +class WebhookMarketplacePurchasePendingChange(GitHubModel): + """marketplace_purchase pending_change event""" - action: Literal["added"] = Field() + action: Literal["pending_change"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,56 +40,84 @@ class WebhookMembershipAdded(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") - organization: OrganizationSimpleWebhooks = Field( + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + previous_marketplace_purchase: Missing[ + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase + ] = Field(default=UNSET, title="Marketplace Purchase") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - scope: Literal["team"] = Field( - description="The scope of the membership. Currently, can only be `team`." - ) - sender: Union[WebhookMembershipAddedPropSender, None] = Field(title="User") - team: WebhooksTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookMembershipAddedPropSender(GitHubModel): - """User""" +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase( + GitHubModel +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: Union[str, None] = Field() + next_billing_date: Missing[Union[str, None]] = Field(default=UNSET) + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() -model_rebuild(WebhookMembershipAdded) -model_rebuild(WebhookMembershipAddedPropSender) +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchasePendingChange) +model_rebuild(WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan +) __all__ = ( - "WebhookMembershipAdded", - "WebhookMembershipAddedPropSender", + "WebhookMarketplacePurchasePendingChange", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0568.py b/githubkit/versions/v2022_11_28/models/group_0568.py index 0ae2680a5..814385dc7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0568.py +++ b/githubkit/versions/v2022_11_28/models/group_0568.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0379 import WebhooksUser -from .group_0394 import WebhooksTeam -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0398 import WebhooksPreviousMarketplacePurchase -class WebhookMembershipRemoved(GitHubModel): - """membership removed event""" +class WebhookMarketplacePurchasePendingChangeCancelled(GitHubModel): + """marketplace_purchase pending_change_cancelled event""" - action: Literal["removed"] = Field() + action: Literal["pending_change_cancelled"] = Field() + effective_date: str = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,56 +40,84 @@ class WebhookMembershipRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - member: Union[WebhooksUser, None] = Field(title="User") - organization: OrganizationSimpleWebhooks = Field( + marketplace_purchase: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase = Field( + title="Marketplace Purchase" + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - scope: Literal["team", "organization"] = Field( - description="The scope of the membership. Currently, can only be `team`." - ) - sender: Union[WebhookMembershipRemovedPropSender, None] = Field(title="User") - team: WebhooksTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookMembershipRemovedPropSender(GitHubModel): - """User""" +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase( + GitHubModel +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount = Field() + billing_cycle: str = Field() + free_trial_ends_on: None = Field() + next_billing_date: Union[str, None] = Field() + on_free_trial: bool = Field() + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan = Field() + unit_count: int = Field() + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + node_id: str = Field() + organization_billing_email: Union[str, None] = Field() + type: str = Field() -model_rebuild(WebhookMembershipRemoved) -model_rebuild(WebhookMembershipRemovedPropSender) +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan( + GitHubModel +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan""" + + bullets: List[str] = Field() + description: str = Field() + has_free_trial: bool = Field() + id: int = Field() + monthly_price_in_cents: int = Field() + name: str = Field() + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] = Field() + unit_name: Union[str, None] = Field() + yearly_price_in_cents: int = Field() + + +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelled) +model_rebuild(WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount +) +model_rebuild( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan +) __all__ = ( - "WebhookMembershipRemoved", - "WebhookMembershipRemovedPropSender", + "WebhookMarketplacePurchasePendingChangeCancelled", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchase", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccount", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlan", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0569.py b/githubkit/versions/v2022_11_28/models/group_0569.py index e3243671b..489a0d386 100644 --- a/githubkit/versions/v2022_11_28/models/group_0569.py +++ b/githubkit/versions/v2022_11_28/models/group_0569.py @@ -17,43 +17,52 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0395 import MergeGroup -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0397 import WebhooksMarketplacePurchase +from .group_0398 import WebhooksPreviousMarketplacePurchase -class WebhookMergeGroupChecksRequested(GitHubModel): - """WebhookMergeGroupChecksRequested""" +class WebhookMarketplacePurchasePurchased(GitHubModel): + """marketplace_purchase purchased event""" - action: Literal["checks_requested"] = Field() + action: Literal["purchased"] = Field() + effective_date: str = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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.\n", + marketplace_purchase: WebhooksMarketplacePurchase = Field( + title="Marketplace Purchase" ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + previous_marketplace_purchase: Missing[WebhooksPreviousMarketplacePurchase] = Field( + default=UNSET, title="Marketplace Purchase" + ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookMergeGroupChecksRequested) +model_rebuild(WebhookMarketplacePurchasePurchased) -__all__ = ("WebhookMergeGroupChecksRequested",) +__all__ = ("WebhookMarketplacePurchasePurchased",) diff --git a/githubkit/versions/v2022_11_28/models/group_0570.py b/githubkit/versions/v2022_11_28/models/group_0570.py index 267a1a21b..45c07e42f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0570.py +++ b/githubkit/versions/v2022_11_28/models/group_0570.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,47 +17,89 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0395 import MergeGroup -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0384 import WebhooksUser +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookMergeGroupDestroyed(GitHubModel): - """WebhookMergeGroupDestroyed""" +class WebhookMemberAdded(GitHubModel): + """member added event""" - action: Literal["destroyed"] = Field() - reason: Missing[Literal["merged", "invalidated", "dequeued"]] = Field( + action: Literal["added"] = Field() + changes: Missing[WebhookMemberAddedPropChanges] = Field(default=UNSET) + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated).", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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.\n", - ) + member: Union[WebhooksUser, None] = Field(title="User") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookMergeGroupDestroyed) +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__ = ("WebhookMergeGroupDestroyed",) +__all__ = ( + "WebhookMemberAdded", + "WebhookMemberAddedPropChanges", + "WebhookMemberAddedPropChangesPropPermission", + "WebhookMemberAddedPropChangesPropRoleName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0571.py b/githubkit/versions/v2022_11_28/models/group_0571.py index 0cb2b8a64..fb3ede426 100644 --- a/githubkit/versions/v2022_11_28/models/group_0571.py +++ b/githubkit/versions/v2022_11_28/models/group_0571.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -17,131 +17,85 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0384 import WebhooksUser +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookMetaDeleted(GitHubModel): - """meta deleted event""" +class WebhookMemberEdited(GitHubModel): + """member edited event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: WebhookMemberEditedPropChanges = Field( + description="The changes to the collaborator permissions" + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - hook: WebhookMetaDeletedPropHook = Field( - description="The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace." - ) - hook_id: int = Field(description="The id of the modified webhook.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + member: Union[WebhooksUser, None] = Field(title="User") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUserWebhooks] = 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: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookMetaDeletedPropHook(GitHubModel): - """WebhookMetaDeletedPropHook +class WebhookMemberEditedPropChanges(GitHubModel): + """WebhookMemberEditedPropChanges - The modified webhook. This will contain different keys based on the type of - webhook it is: repository, organization, business, app, or GitHub Marketplace. + The changes to the collaborator permissions """ - active: bool = Field() - config: WebhookMetaDeletedPropHookPropConfig = Field() - created_at: str = Field() - events: List[ - Literal[ - "*", - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "create", - "delete", - "deployment", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "meta", - "milestone", - "organization", - "org_block", - "package", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "pull_request_review_thread", - "push", - "registry_package", - "release", - "repository", - "repository_import", - "repository_vulnerability_alert", - "secret_scanning_alert", - "secret_scanning_alert_location", - "security_and_analysis", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_job", - "workflow_run", - "repository_dispatch", - "projects_v2_item", - ] - ] = Field() - id: int = Field() - name: str = Field() - type: str = Field() - updated_at: str = Field() - - -class WebhookMetaDeletedPropHookPropConfig(GitHubModel): - """WebhookMetaDeletedPropHookPropConfig""" - - content_type: Literal["json", "form"] = Field() - insecure_ssl: str = Field() - secret: Missing[str] = Field(default=UNSET) - url: str = Field() - - -model_rebuild(WebhookMetaDeleted) -model_rebuild(WebhookMetaDeletedPropHook) -model_rebuild(WebhookMetaDeletedPropHookPropConfig) + old_permission: Missing[WebhookMemberEditedPropChangesPropOldPermission] = Field( + default=UNSET + ) + permission: Missing[WebhookMemberEditedPropChangesPropPermission] = Field( + default=UNSET + ) + + +class WebhookMemberEditedPropChangesPropOldPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropOldPermission""" + + from_: str = Field( + alias="from", + description="The previous permissions of the collaborator if the action was edited.", + ) + + +class WebhookMemberEditedPropChangesPropPermission(GitHubModel): + """WebhookMemberEditedPropChangesPropPermission""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(WebhookMemberEdited) +model_rebuild(WebhookMemberEditedPropChanges) +model_rebuild(WebhookMemberEditedPropChangesPropOldPermission) +model_rebuild(WebhookMemberEditedPropChangesPropPermission) __all__ = ( - "WebhookMetaDeleted", - "WebhookMetaDeletedPropHook", - "WebhookMetaDeletedPropHookPropConfig", + "WebhookMemberEdited", + "WebhookMemberEditedPropChanges", + "WebhookMemberEditedPropChangesPropOldPermission", + "WebhookMemberEditedPropChangesPropPermission", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0572.py b/githubkit/versions/v2022_11_28/models/group_0572.py index a3274c8e0..7e837c90b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0572.py +++ b/githubkit/versions/v2022_11_28/models/group_0572.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0389 import WebhooksMilestone -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0384 import WebhooksUser +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookMilestoneClosed(GitHubModel): - """milestone closed event""" +class WebhookMemberRemoved(GitHubModel): + """member removed event""" - action: Literal["closed"] = Field() + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,10 +39,7 @@ class WebhookMilestoneClosed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + member: Union[WebhooksUser, None] = Field(title="User") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", @@ -58,6 +55,6 @@ class WebhookMilestoneClosed(GitHubModel): ) -model_rebuild(WebhookMilestoneClosed) +model_rebuild(WebhookMemberRemoved) -__all__ = ("WebhookMilestoneClosed",) +__all__ = ("WebhookMemberRemoved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0573.py b/githubkit/versions/v2022_11_28/models/group_0573.py index 314493383..352f54cfa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0573.py +++ b/githubkit/versions/v2022_11_28/models/group_0573.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0396 import WebhooksMilestone3 -from .group_0369 import OrganizationSimpleWebhooks +from .group_0384 import WebhooksUser +from .group_0399 import WebhooksTeam +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookMilestoneCreated(GitHubModel): - """milestone created event""" +class WebhookMembershipAdded(GitHubModel): + """membership added event""" - action: Literal["created"] = Field() + action: Literal["added"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,25 +39,56 @@ class WebhookMilestoneCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone3 = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + member: Union[WebhooksUser, None] = Field(title="User") + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + 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.", ) -model_rebuild(WebhookMilestoneCreated) +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) + + +model_rebuild(WebhookMembershipAdded) +model_rebuild(WebhookMembershipAddedPropSender) -__all__ = ("WebhookMilestoneCreated",) +__all__ = ( + "WebhookMembershipAdded", + "WebhookMembershipAddedPropSender", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0574.py b/githubkit/versions/v2022_11_28/models/group_0574.py index 54901d180..210797a25 100644 --- a/githubkit/versions/v2022_11_28/models/group_0574.py +++ b/githubkit/versions/v2022_11_28/models/group_0574.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0389 import WebhooksMilestone -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0384 import WebhooksUser +from .group_0399 import WebhooksTeam +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookMilestoneDeleted(GitHubModel): - """milestone deleted event""" +class WebhookMembershipRemoved(GitHubModel): + """membership removed event""" - action: Literal["deleted"] = Field() + action: Literal["removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,25 +39,56 @@ class WebhookMilestoneDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + member: Union[WebhooksUser, None] = Field(title="User") + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + scope: Literal["team", "organization"] = Field( + description="The scope of the membership. Currently, can only be `team`." + ) + sender: Union[WebhookMembershipRemovedPropSender, None] = Field(title="User") + team: WebhooksTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", ) -model_rebuild(WebhookMilestoneDeleted) +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) + + +model_rebuild(WebhookMembershipRemoved) +model_rebuild(WebhookMembershipRemovedPropSender) -__all__ = ("WebhookMilestoneDeleted",) +__all__ = ( + "WebhookMembershipRemoved", + "WebhookMembershipRemovedPropSender", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0575.py b/githubkit/versions/v2022_11_28/models/group_0575.py index 86238dfc0..23fe0e549 100644 --- a/githubkit/versions/v2022_11_28/models/group_0575.py +++ b/githubkit/versions/v2022_11_28/models/group_0575.py @@ -17,100 +17,43 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0389 import WebhooksMilestone -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0400 import MergeGroup +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookMilestoneEdited(GitHubModel): - """milestone edited event""" +class WebhookMergeGroupChecksRequested(GitHubModel): + """WebhookMergeGroupChecksRequested""" - action: Literal["edited"] = Field() - changes: WebhookMilestoneEditedPropChanges = Field( - description="The changes to the milestone if the action was `edited`." - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["checks_requested"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + merge_group: MergeGroup = Field( + title="Merge Group", + description="A group of pull requests that the merge queue has grouped together to be merged.\n", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when 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: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -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(WebhookMergeGroupChecksRequested) -__all__ = ( - "WebhookMilestoneEdited", - "WebhookMilestoneEditedPropChanges", - "WebhookMilestoneEditedPropChangesPropDescription", - "WebhookMilestoneEditedPropChangesPropDueOn", - "WebhookMilestoneEditedPropChangesPropTitle", -) +__all__ = ("WebhookMergeGroupChecksRequested",) diff --git a/githubkit/versions/v2022_11_28/models/group_0576.py b/githubkit/versions/v2022_11_28/models/group_0576.py index ad1ff1605..2d43c7c1b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0576.py +++ b/githubkit/versions/v2022_11_28/models/group_0576.py @@ -17,47 +17,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0396 import WebhooksMilestone3 -from .group_0369 import OrganizationSimpleWebhooks +from .group_0400 import MergeGroup +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookMilestoneOpened(GitHubModel): - """milestone opened event""" +class WebhookMergeGroupDestroyed(GitHubModel): + """WebhookMergeGroupDestroyed""" - action: Literal["opened"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + action: Literal["destroyed"] = Field() + reason: Missing[Literal["merged", "invalidated", "dequeued"]] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + description="Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated).", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - milestone: WebhooksMilestone3 = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + merge_group: MergeGroup = Field( + title="Merge Group", + description="A group of pull requests that the merge queue has grouped together to be merged.\n", ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when 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: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookMilestoneOpened) +model_rebuild(WebhookMergeGroupDestroyed) -__all__ = ("WebhookMilestoneOpened",) +__all__ = ("WebhookMergeGroupDestroyed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0577.py b/githubkit/versions/v2022_11_28/models/group_0577.py index b561a41c6..e92979ee3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0577.py +++ b/githubkit/versions/v2022_11_28/models/group_0577.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,44 +17,131 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0379 import WebhooksUser -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookOrgBlockBlocked(GitHubModel): - """org_block blocked event""" +class WebhookMetaDeleted(GitHubModel): + """meta deleted event""" - action: Literal["blocked"] = Field() - blocked_user: Union[WebhooksUser, None] = Field(title="User") + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) + hook: WebhookMetaDeletedPropHook = Field( + description="The modified webhook. This will contain different keys based on the type of webhook it is: repository, organization, business, app, or GitHub Marketplace." + ) + hook_id: int = Field(description="The id of the modified webhook.") installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookOrgBlockBlocked) +class WebhookMetaDeletedPropHook(GitHubModel): + """WebhookMetaDeletedPropHook + + The modified webhook. This will contain different keys based on the type of + webhook it is: repository, organization, business, app, or GitHub Marketplace. + """ + + active: bool = Field() + config: WebhookMetaDeletedPropHookPropConfig = Field() + created_at: str = Field() + events: List[ + Literal[ + "*", + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "create", + "delete", + "deployment", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "meta", + "milestone", + "organization", + "org_block", + "package", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "pull_request_review_thread", + "push", + "registry_package", + "release", + "repository", + "repository_import", + "repository_vulnerability_alert", + "secret_scanning_alert", + "secret_scanning_alert_location", + "security_and_analysis", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_job", + "workflow_run", + "repository_dispatch", + "projects_v2_item", + ] + ] = Field() + id: int = Field() + name: str = Field() + type: str = Field() + updated_at: str = Field() + + +class WebhookMetaDeletedPropHookPropConfig(GitHubModel): + """WebhookMetaDeletedPropHookPropConfig""" + + content_type: Literal["json", "form"] = Field() + insecure_ssl: str = Field() + secret: Missing[str] = Field(default=UNSET) + url: str = Field() + + +model_rebuild(WebhookMetaDeleted) +model_rebuild(WebhookMetaDeletedPropHook) +model_rebuild(WebhookMetaDeletedPropHookPropConfig) -__all__ = ("WebhookOrgBlockBlocked",) +__all__ = ( + "WebhookMetaDeleted", + "WebhookMetaDeletedPropHook", + "WebhookMetaDeletedPropHookPropConfig", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0578.py b/githubkit/versions/v2022_11_28/models/group_0578.py index e9e847d2b..76127823f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0578.py +++ b/githubkit/versions/v2022_11_28/models/group_0578.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0379 import WebhooksUser -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0394 import WebhooksMilestone +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookOrgBlockUnblocked(GitHubModel): - """org_block unblocked event""" +class WebhookMilestoneClosed(GitHubModel): + """milestone closed event""" - action: Literal["unblocked"] = Field() - blocked_user: Union[WebhooksUser, None] = Field(title="User") + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,12 +39,16 @@ class WebhookOrgBlockUnblocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -55,6 +58,6 @@ class WebhookOrgBlockUnblocked(GitHubModel): ) -model_rebuild(WebhookOrgBlockUnblocked) +model_rebuild(WebhookMilestoneClosed) -__all__ = ("WebhookOrgBlockUnblocked",) +__all__ = ("WebhookMilestoneClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0579.py b/githubkit/versions/v2022_11_28/models/group_0579.py index 9566d87a9..f51260a14 100644 --- a/githubkit/versions/v2022_11_28/models/group_0579.py +++ b/githubkit/versions/v2022_11_28/models/group_0579.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0397 import WebhooksMembership -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0401 import WebhooksMilestone3 +from .group_0374 import OrganizationSimpleWebhooks -class WebhookOrganizationDeleted(GitHubModel): - """organization deleted event""" +class WebhookMilestoneCreated(GitHubModel): + """milestone created event""" - action: Literal["deleted"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,17 +39,16 @@ class WebhookOrganizationDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: Missing[WebhooksMembership] = Field( - default=UNSET, - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", + milestone: WebhooksMilestone3 = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -59,6 +58,6 @@ class WebhookOrganizationDeleted(GitHubModel): ) -model_rebuild(WebhookOrganizationDeleted) +model_rebuild(WebhookMilestoneCreated) -__all__ = ("WebhookOrganizationDeleted",) +__all__ = ("WebhookMilestoneCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0580.py b/githubkit/versions/v2022_11_28/models/group_0580.py index 2d12e541b..5c3a539c6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0580.py +++ b/githubkit/versions/v2022_11_28/models/group_0580.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0397 import WebhooksMembership -from .group_0369 import OrganizationSimpleWebhooks +from .group_0394 import WebhooksMilestone +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookOrganizationMemberAdded(GitHubModel): - """organization member_added event""" +class WebhookMilestoneDeleted(GitHubModel): + """milestone deleted event""" - action: Literal["member_added"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,16 +39,16 @@ class WebhookOrganizationMemberAdded(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: WebhooksMembership = Field( - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -58,6 +58,6 @@ class WebhookOrganizationMemberAdded(GitHubModel): ) -model_rebuild(WebhookOrganizationMemberAdded) +model_rebuild(WebhookMilestoneDeleted) -__all__ = ("WebhookOrganizationMemberAdded",) +__all__ = ("WebhookMilestoneDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0581.py b/githubkit/versions/v2022_11_28/models/group_0581.py index cf02f692e..c5cb81305 100644 --- a/githubkit/versions/v2022_11_28/models/group_0581.py +++ b/githubkit/versions/v2022_11_28/models/group_0581.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,18 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0379 import WebhooksUser -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0394 import WebhooksMilestone +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookOrganizationMemberInvited(GitHubModel): - """organization member_invited event""" +class WebhookMilestoneEdited(GitHubModel): + """milestone edited event""" - action: Literal["member_invited"] = Field() + action: Literal["edited"] = Field() + changes: WebhookMilestoneEditedPropChanges = Field( + description="The changes to the milestone if the action was `edited`." + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,15 +42,16 @@ class WebhookOrganizationMemberInvited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - invitation: WebhookOrganizationMemberInvitedPropInvitation = Field( - description="The invitation for the user or email if the action is `member_invited`." + milestone: WebhooksMilestone = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -56,63 +59,58 @@ class WebhookOrganizationMemberInvited(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - user: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") -class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): - """WebhookOrganizationMemberInvitedPropInvitation +class WebhookMilestoneEditedPropChanges(GitHubModel): + """WebhookMilestoneEditedPropChanges - The invitation for the user or email if the action is `member_invited`. + The changes to the milestone if the action was `edited`. """ - created_at: datetime = Field() - email: Union[str, None] = Field() - failed_at: Union[datetime, None] = Field() - failed_reason: Union[str, None] = Field() - id: float = Field() - invitation_teams_url: str = Field() - inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviter, None] = ( - Field(title="User") + description: Missing[WebhookMilestoneEditedPropChangesPropDescription] = Field( + default=UNSET ) - login: Union[str, None] = Field() - node_id: str = Field() - role: str = Field() - team_count: float = Field() - invitation_source: Missing[str] = Field(default=UNSET) - - -class WebhookOrganizationMemberInvitedPropInvitationPropInviter(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookOrganizationMemberInvited) -model_rebuild(WebhookOrganizationMemberInvitedPropInvitation) -model_rebuild(WebhookOrganizationMemberInvitedPropInvitationPropInviter) + due_on: Missing[WebhookMilestoneEditedPropChangesPropDueOn] = Field(default=UNSET) + title: Missing[WebhookMilestoneEditedPropChangesPropTitle] = Field(default=UNSET) + + +class WebhookMilestoneEditedPropChangesPropDescription(GitHubModel): + """WebhookMilestoneEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", + ) + + +class WebhookMilestoneEditedPropChangesPropDueOn(GitHubModel): + """WebhookMilestoneEditedPropChangesPropDueOn""" + + from_: str = Field( + alias="from", + description="The previous version of the due date if the action was `edited`.", + ) + + +class WebhookMilestoneEditedPropChangesPropTitle(GitHubModel): + """WebhookMilestoneEditedPropChangesPropTitle""" + + from_: str = Field( + alias="from", + description="The previous version of the title if the action was `edited`.", + ) + + +model_rebuild(WebhookMilestoneEdited) +model_rebuild(WebhookMilestoneEditedPropChanges) +model_rebuild(WebhookMilestoneEditedPropChangesPropDescription) +model_rebuild(WebhookMilestoneEditedPropChangesPropDueOn) +model_rebuild(WebhookMilestoneEditedPropChangesPropTitle) __all__ = ( - "WebhookOrganizationMemberInvited", - "WebhookOrganizationMemberInvitedPropInvitation", - "WebhookOrganizationMemberInvitedPropInvitationPropInviter", + "WebhookMilestoneEdited", + "WebhookMilestoneEditedPropChanges", + "WebhookMilestoneEditedPropChangesPropDescription", + "WebhookMilestoneEditedPropChangesPropDueOn", + "WebhookMilestoneEditedPropChangesPropTitle", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0582.py b/githubkit/versions/v2022_11_28/models/group_0582.py index deffc32ef..75a09f2ae 100644 --- a/githubkit/versions/v2022_11_28/models/group_0582.py +++ b/githubkit/versions/v2022_11_28/models/group_0582.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0397 import WebhooksMembership -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0401 import WebhooksMilestone3 +from .group_0374 import OrganizationSimpleWebhooks -class WebhookOrganizationMemberRemoved(GitHubModel): - """organization member_removed event""" +class WebhookMilestoneOpened(GitHubModel): + """milestone opened event""" - action: Literal["member_removed"] = Field() + action: Literal["opened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,16 +39,16 @@ class WebhookOrganizationMemberRemoved(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: WebhooksMembership = Field( - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", + milestone: WebhooksMilestone3 = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -58,6 +58,6 @@ class WebhookOrganizationMemberRemoved(GitHubModel): ) -model_rebuild(WebhookOrganizationMemberRemoved) +model_rebuild(WebhookMilestoneOpened) -__all__ = ("WebhookOrganizationMemberRemoved",) +__all__ = ("WebhookMilestoneOpened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0583.py b/githubkit/versions/v2022_11_28/models/group_0583.py index f169ab34a..d4cfaf3f0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0583.py +++ b/githubkit/versions/v2022_11_28/models/group_0583.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,19 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0397 import WebhooksMembership -from .group_0369 import OrganizationSimpleWebhooks +from .group_0384 import WebhooksUser +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookOrganizationRenamed(GitHubModel): - """organization renamed event""" +class WebhookOrgBlockBlocked(GitHubModel): + """org_block blocked event""" - action: Literal["renamed"] = Field() - changes: Missing[WebhookOrganizationRenamedPropChanges] = Field(default=UNSET) + action: Literal["blocked"] = Field() + blocked_user: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,11 +40,6 @@ class WebhookOrganizationRenamed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - membership: Missing[WebhooksMembership] = Field( - default=UNSET, - title="Membership", - description="The membership between the user and the organization. Not present when the action is `member_invited`.", - ) organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", @@ -60,26 +55,6 @@ class WebhookOrganizationRenamed(GitHubModel): ) -class WebhookOrganizationRenamedPropChanges(GitHubModel): - """WebhookOrganizationRenamedPropChanges""" - - login: Missing[WebhookOrganizationRenamedPropChangesPropLogin] = Field( - default=UNSET - ) - - -class WebhookOrganizationRenamedPropChangesPropLogin(GitHubModel): - """WebhookOrganizationRenamedPropChangesPropLogin""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -model_rebuild(WebhookOrganizationRenamed) -model_rebuild(WebhookOrganizationRenamedPropChanges) -model_rebuild(WebhookOrganizationRenamedPropChangesPropLogin) +model_rebuild(WebhookOrgBlockBlocked) -__all__ = ( - "WebhookOrganizationRenamed", - "WebhookOrganizationRenamedPropChanges", - "WebhookOrganizationRenamedPropChangesPropLogin", -) +__all__ = ("WebhookOrgBlockBlocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0584.py b/githubkit/versions/v2022_11_28/models/group_0584.py index 5e0345a0d..4bd705b77 100644 --- a/githubkit/versions/v2022_11_28/models/group_0584.py +++ b/githubkit/versions/v2022_11_28/models/group_0584.py @@ -9,54 +9,52 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - - -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""" +from githubkit.compat import GitHubModel, model_rebuild - version: Missing[str] = Field(default=UNSET) +from .group_0384 import WebhooksUser +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): - """WebhookRubygemsMetadataPropMetadata""" +class WebhookOrgBlockUnblocked(GitHubModel): + """org_block unblocked event""" - -class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): - """WebhookRubygemsMetadataPropDependenciesItems""" + action: Literal["unblocked"] = Field() + blocked_user: Union[WebhooksUser, None] = Field(title="User") + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -model_rebuild(WebhookRubygemsMetadata) -model_rebuild(WebhookRubygemsMetadataPropVersionInfo) -model_rebuild(WebhookRubygemsMetadataPropMetadata) -model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) +model_rebuild(WebhookOrgBlockUnblocked) -__all__ = ( - "WebhookRubygemsMetadata", - "WebhookRubygemsMetadataPropVersionInfo", - "WebhookRubygemsMetadataPropMetadata", - "WebhookRubygemsMetadataPropDependenciesItems", -) +__all__ = ("WebhookOrgBlockUnblocked",) diff --git a/githubkit/versions/v2022_11_28/models/group_0585.py b/githubkit/versions/v2022_11_28/models/group_0585.py index baec2b0dd..ad26b687e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0585.py +++ b/githubkit/versions/v2022_11_28/models/group_0585.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0586 import WebhookPackagePublishedPropPackage +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0402 import WebhooksMembership +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPackagePublished(GitHubModel): - """package published event""" +class WebhookOrganizationDeleted(GitHubModel): + """organization deleted event""" - action: Literal["published"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,14 +39,15 @@ class WebhookPackagePublished(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + membership: Missing[WebhooksMembership] = Field( default=UNSET, + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - package: WebhookPackagePublishedPropPackage = Field( - description="Information about the package." - ) repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -58,6 +59,6 @@ class WebhookPackagePublished(GitHubModel): ) -model_rebuild(WebhookPackagePublished) +model_rebuild(WebhookOrganizationDeleted) -__all__ = ("WebhookPackagePublished",) +__all__ = ("WebhookOrganizationDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0586.py b/githubkit/versions/v2022_11_28/models/group_0586.py index c9adcb47e..7e21dc919 100644 --- a/githubkit/versions/v2022_11_28/models/group_0586.py +++ b/githubkit/versions/v2022_11_28/models/group_0586.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,75 +17,47 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0587 import WebhookPackagePublishedPropPackagePropPackageVersion +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0402 import WebhooksMembership +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPackagePublishedPropPackage(GitHubModel): - """WebhookPackagePublishedPropPackage +class WebhookOrganizationMemberAdded(GitHubModel): + """organization member_added event""" - Information about the package. - """ - - created_at: Union[str, None] = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - namespace: str = Field() - owner: Union[WebhookPackagePublishedPropPackagePropOwner, None] = Field( - title="User" + action: Literal["member_added"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: WebhooksMembership = Field( + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - 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) - - -class WebhookPackagePublishedPropPackagePropRegistry(GitHubModel): - """WebhookPackagePublishedPropPackagePropRegistry""" - - about_url: str = Field() - name: str = Field() - type: str = Field() - url: str = Field() - vendor: str = Field() -model_rebuild(WebhookPackagePublishedPropPackage) -model_rebuild(WebhookPackagePublishedPropPackagePropOwner) -model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) +model_rebuild(WebhookOrganizationMemberAdded) -__all__ = ( - "WebhookPackagePublishedPropPackage", - "WebhookPackagePublishedPropPackagePropOwner", - "WebhookPackagePublishedPropPackagePropRegistry", -) +__all__ = ("WebhookOrganizationMemberAdded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0587.py b/githubkit/versions/v2022_11_28/models/group_0587.py index 045080bfd..9fb6437ef 100644 --- a/githubkit/versions/v2022_11_28/models/group_0587.py +++ b/githubkit/versions/v2022_11_28/models/group_0587.py @@ -9,435 +9,79 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - -from .group_0584 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) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata""" - - labels: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels, - None, - ] - ] = Field(default=UNSET) - manifest: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest, - None, - ] - ] = Field(default=UNSET) - tag: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag - ] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLab - els - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropMan - ifest - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag""" - - digest: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: Missing[List[str]] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata""" - - name: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - npm_user: Missing[str] = Field(default=UNSET) - author: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor, - None, - ] - ] = Field(default=UNSET) - bugs: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs, - None, - ] - ] = Field(default=UNSET) - dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies - ] = Field(default=UNSET) - dev_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies - ] = Field(default=UNSET) - peer_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies - ] = Field(default=UNSET) - optional_dependencies: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies - ] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - dist: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist, - None, - ] - ] = Field(default=UNSET) - git_head: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - main: Missing[str] = Field(default=UNSET) - repository: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository, - None, - ] - ] = Field(default=UNSET) - scripts: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_version: Missing[str] = Field(default=UNSET) - npm_version: Missing[str] = Field(default=UNSET) - has_shrinkwrap: Missing[bool] = Field(default=UNSET) - maintainers: Missing[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems - ] - ] = Field(default=UNSET) - contributors: Missing[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems - ] - ] = Field(default=UNSET) - engines: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines - ] = Field(default=UNSET) - keywords: Missing[List[str]] = Field(default=UNSET) - files: Missing[List[str]] = Field(default=UNSET) - bin_: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin - ] = Field(default=UNSET, alias="bin") - man: Missing[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan - ] = Field(default=UNSET) - directories: Missing[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories, - None, - ] - ] = Field(default=UNSET) - os: Missing[List[str]] = Field(default=UNSET) - cpu: Missing[List[str]] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - installation_command: Missing[str] = Field(default=UNSET) - release_id: Missing[int] = Field(default=UNSET) - commit_oid: Missing[str] = Field(default=UNSET) - published_via_actions: Missing[bool] = Field(default=UNSET) - deleted_by_id: Missing[int] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenc - ies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDepend - encies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDepen - dencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalD - ependencies - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositor - y - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine - rsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut - orsItems +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0384 import WebhooksUser +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks + + +class WebhookOrganizationMemberInvited(GitHubModel): + """organization member_invited event""" + + action: Literal["member_invited"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + invitation: WebhookOrganizationMemberInvitedPropInvitation = Field( + description="The invitation for the user or email if the action is `member_invited`." + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + user: Missing[Union[WebhooksUser, None]] = Field(default=UNSET, title="User") + + +class WebhookOrganizationMemberInvitedPropInvitation(GitHubModel): + """WebhookOrganizationMemberInvitedPropInvitation + + The invitation for the user or email if the action is `member_invited`. """ - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori - es - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: Union[str, None] = Field() - size: int = Field() - state: Union[str, None] = Field() - updated_at: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" - - id: Missing[Union[int, str]] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - bool, - str, - int, - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, - ] - ] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( - GitHubModel -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa - lueOneof3 - """ - - url: Missing[str] = Field(default=UNSET) - branch: Missing[str] = Field(default=UNSET) - commit: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropRelease(GitHubModel): - """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor, None - ] = Field(title="User") - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): + created_at: datetime = Field() + email: Union[str, None] = Field() + failed_at: Union[datetime, None] = Field() + failed_reason: Union[str, None] = Field() + id: float = Field() + invitation_teams_url: str = Field() + inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviter, None] = ( + Field(title="User") + ) + login: Union[str, None] = Field() + node_id: str = Field() + role: str = Field() + team_count: float = Field() + invitation_source: Missing[str] = Field(default=UNSET) + + +class WebhookOrganizationMemberInvitedPropInvitationPropInviter(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -463,108 +107,12 @@ class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor( url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersion) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems -) -model_rebuild( - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 -) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropRelease) -model_rebuild(WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor) +model_rebuild(WebhookOrganizationMemberInvited) +model_rebuild(WebhookOrganizationMemberInvitedPropInvitation) +model_rebuild(WebhookOrganizationMemberInvitedPropInvitationPropInviter) __all__ = ( - "WebhookPackagePublishedPropPackagePropPackageVersion", - "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthor", - "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadata", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabels", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifest", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTag", - "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadata", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories", - "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", - "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", + "WebhookOrganizationMemberInvited", + "WebhookOrganizationMemberInvitedPropInvitation", + "WebhookOrganizationMemberInvitedPropInvitationPropInviter", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0588.py b/githubkit/versions/v2022_11_28/models/group_0588.py index e44c0884c..66fb645de 100644 --- a/githubkit/versions/v2022_11_28/models/group_0588.py +++ b/githubkit/versions/v2022_11_28/models/group_0588.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0589 import WebhookPackageUpdatedPropPackage +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0402 import WebhooksMembership +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPackageUpdated(GitHubModel): - """package updated event""" +class WebhookOrganizationMemberRemoved(GitHubModel): + """organization member_removed event""" - action: Literal["updated"] = Field() + action: Literal["member_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,15 +39,16 @@ class WebhookPackageUpdated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + membership: WebhooksMembership = Field( + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - package: WebhookPackageUpdatedPropPackage = Field( - description="Information about the package." - ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -57,6 +58,6 @@ class WebhookPackageUpdated(GitHubModel): ) -model_rebuild(WebhookPackageUpdated) +model_rebuild(WebhookOrganizationMemberRemoved) -__all__ = ("WebhookPackageUpdated",) +__all__ = ("WebhookOrganizationMemberRemoved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0589.py b/githubkit/versions/v2022_11_28/models/group_0589.py index 088d4527d..5b9a57f87 100644 --- a/githubkit/versions/v2022_11_28/models/group_0589.py +++ b/githubkit/versions/v2022_11_28/models/group_0589.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,71 +17,69 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0590 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) - - -class WebhookPackageUpdatedPropPackagePropRegistry(GitHubModel): - """WebhookPackageUpdatedPropPackagePropRegistry""" - - about_url: str = Field() - name: str = Field() - type: str = Field() - url: str = Field() - vendor: str = Field() - - -model_rebuild(WebhookPackageUpdatedPropPackage) -model_rebuild(WebhookPackageUpdatedPropPackagePropOwner) -model_rebuild(WebhookPackageUpdatedPropPackagePropRegistry) +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0402 import WebhooksMembership +from .group_0374 import OrganizationSimpleWebhooks + + +class WebhookOrganizationRenamed(GitHubModel): + """organization renamed event""" + + action: Literal["renamed"] = Field() + changes: Missing[WebhookOrganizationRenamedPropChanges] = Field(default=UNSET) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + membership: Missing[WebhooksMembership] = Field( + default=UNSET, + title="Membership", + description="The membership between the user and the organization. Not present when the action is `member_invited`.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookOrganizationRenamedPropChanges(GitHubModel): + """WebhookOrganizationRenamedPropChanges""" + + login: Missing[WebhookOrganizationRenamedPropChangesPropLogin] = Field( + default=UNSET + ) + + +class WebhookOrganizationRenamedPropChangesPropLogin(GitHubModel): + """WebhookOrganizationRenamedPropChangesPropLogin""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +model_rebuild(WebhookOrganizationRenamed) +model_rebuild(WebhookOrganizationRenamedPropChanges) +model_rebuild(WebhookOrganizationRenamedPropChangesPropLogin) __all__ = ( - "WebhookPackageUpdatedPropPackage", - "WebhookPackageUpdatedPropPackagePropOwner", - "WebhookPackageUpdatedPropPackagePropRegistry", + "WebhookOrganizationRenamed", + "WebhookOrganizationRenamedPropChanges", + "WebhookOrganizationRenamedPropChangesPropLogin", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0590.py b/githubkit/versions/v2022_11_28/models/group_0590.py index 91ff8eb93..5e0345a0d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0590.py +++ b/githubkit/versions/v2022_11_28/models/group_0590.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List from pydantic import Field @@ -17,167 +17,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0584 import WebhookRubygemsMetadata - - -class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" - - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None - ] = Field(title="User") - body: str = Field() - body_html: str = Field() - created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - List[WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) - html_url: str = Field() - id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems - ] = Field() - name: str = Field() - package_files: List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems - ] = Field() - package_url: Missing[str] = Field(default=UNSET) - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease] = ( - Field(default=UNSET) - ) - rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) - source_url: Missing[str] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: str = Field() - target_oid: str = Field() - updated_at: str = Field() - version: str = Field() - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems( - GitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: Missing[List[str]] = Field(default=UNSET) - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( - GitHubModel -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str = Field() - created_at: str = Field() - download_url: str = Field() - id: int = Field() - md5: Union[str, None] = Field() - name: str = Field() - sha1: Union[str, None] = Field() - sha256: str = Field() - size: int = Field() - state: str = Field() - updated_at: str = Field() - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease(GitHubModel): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, None - ] = Field(title="User") - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() - name: str = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + +class WebhookRubygemsMetadata(GitHubModel): + """Ruby Gems metadata""" + name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersion) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease) -model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor) + description: Missing[str] = Field(default=UNSET) + readme: Missing[str] = Field(default=UNSET) + homepage: Missing[str] = Field(default=UNSET) + version_info: Missing[WebhookRubygemsMetadataPropVersionInfo] = Field(default=UNSET) + platform: Missing[str] = Field(default=UNSET) + metadata: Missing[WebhookRubygemsMetadataPropMetadata] = Field(default=UNSET) + repo: Missing[str] = Field(default=UNSET) + dependencies: Missing[List[WebhookRubygemsMetadataPropDependenciesItems]] = Field( + default=UNSET + ) + commit_oid: Missing[str] = Field(default=UNSET) + + +class WebhookRubygemsMetadataPropVersionInfo(GitHubModel): + """WebhookRubygemsMetadataPropVersionInfo""" + + version: Missing[str] = Field(default=UNSET) + + +class WebhookRubygemsMetadataPropMetadata(ExtraGitHubModel): + """WebhookRubygemsMetadataPropMetadata""" + + +class WebhookRubygemsMetadataPropDependenciesItems(ExtraGitHubModel): + """WebhookRubygemsMetadataPropDependenciesItems""" + + +model_rebuild(WebhookRubygemsMetadata) +model_rebuild(WebhookRubygemsMetadataPropVersionInfo) +model_rebuild(WebhookRubygemsMetadataPropMetadata) +model_rebuild(WebhookRubygemsMetadataPropDependenciesItems) __all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersion", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", + "WebhookRubygemsMetadata", + "WebhookRubygemsMetadataPropVersionInfo", + "WebhookRubygemsMetadataPropMetadata", + "WebhookRubygemsMetadataPropDependenciesItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0591.py b/githubkit/versions/v2022_11_28/models/group_0591.py index 2a6219e80..a3bb3bdaf 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 Union, Literal +from typing import Literal from pydantic import Field @@ -17,25 +17,23 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0592 import WebhookPackagePublishedPropPackage -class WebhookPageBuild(GitHubModel): - """page_build event""" +class WebhookPackagePublished(GitHubModel): + """package published event""" - build: WebhookPageBuildPropBuild = Field( - description="The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list-github-pages-builds) itself." - ) + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - id: int = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -46,7 +44,11 @@ class WebhookPageBuild(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + package: WebhookPackagePublishedPropPackage = Field( + description="Information about the package." + ) + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) @@ -56,63 +58,6 @@ class WebhookPageBuild(GitHubModel): ) -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) - - -model_rebuild(WebhookPageBuild) -model_rebuild(WebhookPageBuildPropBuild) -model_rebuild(WebhookPageBuildPropBuildPropError) -model_rebuild(WebhookPageBuildPropBuildPropPusher) +model_rebuild(WebhookPackagePublished) -__all__ = ( - "WebhookPageBuild", - "WebhookPageBuildPropBuild", - "WebhookPageBuildPropBuildPropError", - "WebhookPageBuildPropBuildPropPusher", -) +__all__ = ("WebhookPackagePublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0592.py b/githubkit/versions/v2022_11_28/models/group_0592.py index 73e1db0e7..add28f6a2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0592.py +++ b/githubkit/versions/v2022_11_28/models/group_0592.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,40 +17,75 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0398 import PersonalAccessTokenRequest +from .group_0593 import WebhookPackagePublishedPropPackagePropPackageVersion -class WebhookPersonalAccessTokenRequestApproved(GitHubModel): - """personal_access_token_request approved event""" +class WebhookPackagePublishedPropPackage(GitHubModel): + """WebhookPackagePublishedPropPackage - action: Literal["approved"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + Information about the package. + """ + + created_at: Union[str, None] = Field() + description: Union[str, None] = Field() + ecosystem: str = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + namespace: str = Field() + owner: Union[WebhookPackagePublishedPropPackagePropOwner, None] = Field( + title="User" ) + package_type: str = Field() + package_version: Union[ + WebhookPackagePublishedPropPackagePropPackageVersion, None + ] = Field() + registry: Union[WebhookPackagePublishedPropPackagePropRegistry, None] = Field() + updated_at: Union[str, None] = Field() + + +class WebhookPackagePublishedPropPackagePropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPackagePublishedPropPackagePropRegistry(GitHubModel): + """WebhookPackagePublishedPropPackagePropRegistry""" + + about_url: str = Field() + name: str = Field() + type: str = Field() + url: str = Field() + vendor: str = Field() -model_rebuild(WebhookPersonalAccessTokenRequestApproved) +model_rebuild(WebhookPackagePublishedPropPackage) +model_rebuild(WebhookPackagePublishedPropPackagePropOwner) +model_rebuild(WebhookPackagePublishedPropPackagePropRegistry) -__all__ = ("WebhookPersonalAccessTokenRequestApproved",) +__all__ = ( + "WebhookPackagePublishedPropPackage", + "WebhookPackagePublishedPropPackagePropOwner", + "WebhookPackagePublishedPropPackagePropRegistry", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0593.py b/githubkit/versions/v2022_11_28/models/group_0593.py index 9750acc5f..a8f276777 100644 --- a/githubkit/versions/v2022_11_28/models/group_0593.py +++ b/githubkit/versions/v2022_11_28/models/group_0593.py @@ -9,48 +9,562 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0398 import PersonalAccessTokenRequest - - -class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): - """personal_access_token_request cancelled event""" - - action: Literal["cancelled"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - - -model_rebuild(WebhookPersonalAccessTokenRequestCancelled) - -__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + +from .group_0590 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) + + +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) + + +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", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugs", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDist", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepository", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectories", + "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", + "WebhookPackagePublishedPropPackagePropPackageVersionPropRelease", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0594.py b/githubkit/versions/v2022_11_28/models/group_0594.py index 805299d9b..d0f5ea435 100644 --- a/githubkit/versions/v2022_11_28/models/group_0594.py +++ b/githubkit/versions/v2022_11_28/models/group_0594.py @@ -17,41 +17,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0398 import PersonalAccessTokenRequest +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0595 import WebhookPackageUpdatedPropPackage -class WebhookPersonalAccessTokenRequestCreated(GitHubModel): - """personal_access_token_request created event""" +class WebhookPackageUpdated(GitHubModel): + """package updated event""" - action: Literal["created"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - organization: OrganizationSimpleWebhooks = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + 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: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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(WebhookPackageUpdated) -__all__ = ("WebhookPersonalAccessTokenRequestCreated",) +__all__ = ("WebhookPackageUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0595.py b/githubkit/versions/v2022_11_28/models/group_0595.py index 7bacdb114..e08d2e0c2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0595.py +++ b/githubkit/versions/v2022_11_28/models/group_0595.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,40 +17,71 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0398 import PersonalAccessTokenRequest - - -class WebhookPersonalAccessTokenRequestDenied(GitHubModel): - """personal_access_token_request denied event""" - - action: Literal["denied"] = Field() - personal_access_token_request: PersonalAccessTokenRequest = Field( - title="Personal Access Token Request", - description="Details of a Personal Access Token Request.", - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - installation: SimpleInstallation = Field( - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - - -model_rebuild(WebhookPersonalAccessTokenRequestDenied) - -__all__ = ("WebhookPersonalAccessTokenRequestDenied",) +from .group_0596 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) + + +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_0596.py b/githubkit/versions/v2022_11_28/models/group_0596.py index cebaaf3de..1bc8b791c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0596.py +++ b/githubkit/versions/v2022_11_28/models/group_0596.py @@ -9,45 +9,175 @@ from __future__ import annotations +from typing import List, Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0597 import WebhookPingPropHook -from .group_0369 import OrganizationSimpleWebhooks +from .group_0590 import WebhookRubygemsMetadata -class WebhookPing(GitHubModel): - """WebhookPing""" +class WebhookPackageUpdatedPropPackagePropPackageVersion(GitHubModel): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" - hook: Missing[WebhookPingPropHook] = Field( - default=UNSET, title="Webhook", description="The webhook that is being pinged" - ) - hook_id: Missing[int] = Field( - default=UNSET, description="The ID of the webhook that triggered the ping." - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor, None + ] = Field(title="User") + body: str = Field() + body_html: str = Field() + created_at: str = Field() + description: str = Field() + docker_metadata: Missing[ + List[WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems] + ] = Field(default=UNSET) + draft: Missing[bool] = Field(default=UNSET) + html_url: str = Field() + id: int = Field() + installation_command: str = Field() + manifest: Missing[str] = Field(default=UNSET) + metadata: List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems + ] = Field() + name: str = Field() + package_files: List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems + ] = Field() + package_url: Missing[str] = Field(default=UNSET) + prerelease: Missing[bool] = Field(default=UNSET) + release: Missing[WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease] = ( + Field(default=UNSET) ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - zen: Missing[str] = Field(default=UNSET, description="Random string of GitHub zen.") + rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) + source_url: Missing[str] = Field(default=UNSET) + summary: str = Field() + tag_name: Missing[str] = Field(default=UNSET) + target_commitish: str = Field() + target_oid: str = Field() + updated_at: str = Field() + version: str = Field() + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems( + GitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: Missing[List[str]] = Field(default=UNSET) + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems( + ExtraGitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems( + GitHubModel +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str = Field() + created_at: str = Field() + download_url: str = Field() + id: int = Field() + md5: Union[str, None] = Field() + name: str = Field() + sha1: Union[str, None] = Field() + sha256: str = Field() + size: int = Field() + state: str = Field() + updated_at: str = Field() + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease(GitHubModel): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor, None + ] = Field(title="User") + created_at: str = Field() + draft: bool = Field() + html_url: str = Field() + id: int = Field() + name: str = Field() + prerelease: bool = Field() + published_at: str = Field() + tag_name: str = Field() + target_commitish: str = Field() + url: str = Field() + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookPing) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersion) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease) +model_rebuild(WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor) -__all__ = ("WebhookPing",) +__all__ = ( + "WebhookPackageUpdatedPropPackagePropPackageVersion", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthor", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0597.py b/githubkit/versions/v2022_11_28/models/group_0597.py index 6a17d6048..2ffd95a2d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0597.py +++ b/githubkit/versions/v2022_11_28/models/group_0597.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,61 +17,102 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0257 import HookResponse +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPingPropHook(GitHubModel): - """Webhook +class WebhookPageBuild(GitHubModel): + """page_build event""" - The webhook that is being pinged - """ - - active: bool = Field( - description="Determines whether the hook is actually triggered for the events it subscribes to." + build: WebhookPageBuildPropBuild = Field( + description="The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list-github-pages-builds) itself." ) - app_id: Missing[int] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="Only included for GitHub Apps. When you register a new GitHub App, GitHub sends a ping event to the webhook URL you specified during registration. The GitHub App ID sent in this field is required for authenticating an app.", - ) - config: WebhookPingPropHookPropConfig = Field() - created_at: datetime = Field() - deliveries_url: Missing[str] = Field(default=UNSET) - events: List[str] = Field( - description="Determines what events the hook is triggered for. Default: ['push']." - ) - id: int = Field(description="Unique identifier of the webhook.") - last_response: Missing[HookResponse] = Field(default=UNSET, title="Hook Response") - name: Literal["web"] = Field( - description="The type of webhook. The only valid value is 'web'." + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - ping_url: Missing[str] = Field(default=UNSET) - test_url: Missing[str] = Field(default=UNSET) - type: str = Field() - updated_at: datetime = Field() - url: Missing[str] = Field(default=UNSET) - - -class WebhookPingPropHookPropConfig(GitHubModel): - """WebhookPingPropHookPropConfig""" - - content_type: Missing[str] = Field( + id: int = Field() + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) - secret: Missing[str] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +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) -model_rebuild(WebhookPingPropHook) -model_rebuild(WebhookPingPropHookPropConfig) +model_rebuild(WebhookPageBuild) +model_rebuild(WebhookPageBuildPropBuild) +model_rebuild(WebhookPageBuildPropBuildPropError) +model_rebuild(WebhookPageBuildPropBuildPropPusher) __all__ = ( - "WebhookPingPropHook", - "WebhookPingPropHookPropConfig", + "WebhookPageBuild", + "WebhookPageBuildPropBuild", + "WebhookPageBuildPropBuildPropError", + "WebhookPageBuildPropBuildPropPusher", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0598.py b/githubkit/versions/v2022_11_28/models/group_0598.py index fac71cc70..bed7291aa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0598.py +++ b/githubkit/versions/v2022_11_28/models/group_0598.py @@ -9,22 +9,48 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0403 import PersonalAccessTokenRequest -class WebhookPingFormEncoded(GitHubModel): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. - """ +class WebhookPersonalAccessTokenRequestApproved(GitHubModel): + """personal_access_token_request approved event""" - payload: str = Field( - description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." + action: Literal["approved"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) -model_rebuild(WebhookPingFormEncoded) +model_rebuild(WebhookPersonalAccessTokenRequestApproved) -__all__ = ("WebhookPingFormEncoded",) +__all__ = ("WebhookPersonalAccessTokenRequestApproved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0599.py b/githubkit/versions/v2022_11_28/models/group_0599.py index 9bd2ad2da..cf447c281 100644 --- a/githubkit/versions/v2022_11_28/models/group_0599.py +++ b/githubkit/versions/v2022_11_28/models/group_0599.py @@ -17,64 +17,40 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0399 import WebhooksProjectCard -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0403 import PersonalAccessTokenRequest -class WebhookProjectCardConverted(GitHubModel): - """project_card converted event""" +class WebhookPersonalAccessTokenRequestCancelled(GitHubModel): + """personal_access_token_request cancelled event""" - action: Literal["converted"] = Field() - changes: WebhookProjectCardConvertedPropChanges = Field() + action: Literal["cancelled"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhooksProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + installation: SimpleInstallation = Field( + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) -class WebhookProjectCardConvertedPropChanges(GitHubModel): - """WebhookProjectCardConvertedPropChanges""" - - note: WebhookProjectCardConvertedPropChangesPropNote = Field() - - -class WebhookProjectCardConvertedPropChangesPropNote(GitHubModel): - """WebhookProjectCardConvertedPropChangesPropNote""" - - from_: str = Field(alias="from") - - -model_rebuild(WebhookProjectCardConverted) -model_rebuild(WebhookProjectCardConvertedPropChanges) -model_rebuild(WebhookProjectCardConvertedPropChangesPropNote) +model_rebuild(WebhookPersonalAccessTokenRequestCancelled) -__all__ = ( - "WebhookProjectCardConverted", - "WebhookProjectCardConvertedPropChanges", - "WebhookProjectCardConvertedPropChangesPropNote", -) +__all__ = ("WebhookPersonalAccessTokenRequestCancelled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0600.py b/githubkit/versions/v2022_11_28/models/group_0600.py index 0bf176304..6bd94df50 100644 --- a/githubkit/versions/v2022_11_28/models/group_0600.py +++ b/githubkit/versions/v2022_11_28/models/group_0600.py @@ -17,45 +17,41 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0399 import WebhooksProjectCard -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0403 import PersonalAccessTokenRequest -class WebhookProjectCardCreated(GitHubModel): - """project_card created event""" +class WebhookPersonalAccessTokenRequestCreated(GitHubModel): + """personal_access_token_request created event""" action: Literal["created"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhooksProjectCard = Field(title="Project Card") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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(WebhookProjectCardCreated) +model_rebuild(WebhookPersonalAccessTokenRequestCreated) -__all__ = ("WebhookProjectCardCreated",) +__all__ = ("WebhookPersonalAccessTokenRequestCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0601.py b/githubkit/versions/v2022_11_28/models/group_0601.py index f8c634eb3..0dea7bd3c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0601.py +++ b/githubkit/versions/v2022_11_28/models/group_0601.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,94 +17,40 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0403 import PersonalAccessTokenRequest -class WebhookProjectCardDeleted(GitHubModel): - """project_card deleted event""" +class WebhookPersonalAccessTokenRequestDenied(GitHubModel): + """personal_access_token_request denied event""" - action: Literal["deleted"] = Field() + action: Literal["denied"] = Field() + personal_access_token_request: PersonalAccessTokenRequest = Field( + title="Personal Access Token Request", + description="Details of a Personal Access Token Request.", + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - - -class WebhookProjectCardDeletedPropProjectCard(GitHubModel): - """Project Card""" - - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: Union[int, None] = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreator, None] = Field( - title="User" - ) - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhookProjectCardDeletedPropProjectCardPropCreator(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + installation: 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)."', ) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardDeleted) -model_rebuild(WebhookProjectCardDeletedPropProjectCard) -model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) +model_rebuild(WebhookPersonalAccessTokenRequestDenied) -__all__ = ( - "WebhookProjectCardDeleted", - "WebhookProjectCardDeletedPropProjectCard", - "WebhookProjectCardDeletedPropProjectCardPropCreator", -) +__all__ = ("WebhookPersonalAccessTokenRequestDenied",) diff --git a/githubkit/versions/v2022_11_28/models/group_0602.py b/githubkit/versions/v2022_11_28/models/group_0602.py index c14c14652..e05261059 100644 --- a/githubkit/versions/v2022_11_28/models/group_0602.py +++ b/githubkit/versions/v2022_11_28/models/group_0602.py @@ -9,72 +9,45 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0399 import WebhooksProjectCard -from .group_0369 import OrganizationSimpleWebhooks +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0603 import WebhookPingPropHook +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectCardEdited(GitHubModel): - """project_card edited event""" +class WebhookPing(GitHubModel): + """WebhookPing""" - action: Literal["edited"] = Field() - changes: WebhookProjectCardEditedPropChanges = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + hook: Missing[WebhookPingPropHook] = Field( + default=UNSET, title="Webhook", description="The webhook that is being pinged" ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + hook_id: Missing[int] = Field( + default=UNSET, description="The ID of the webhook that triggered the ping." ) organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_card: WebhooksProjectCard = Field(title="Project Card") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + zen: Missing[str] = Field(default=UNSET, description="Random string of GitHub zen.") -class WebhookProjectCardEditedPropChanges(GitHubModel): - """WebhookProjectCardEditedPropChanges""" - - note: WebhookProjectCardEditedPropChangesPropNote = Field() - - -class WebhookProjectCardEditedPropChangesPropNote(GitHubModel): - """WebhookProjectCardEditedPropChangesPropNote""" - - from_: Union[str, None] = Field(alias="from") - - -model_rebuild(WebhookProjectCardEdited) -model_rebuild(WebhookProjectCardEditedPropChanges) -model_rebuild(WebhookProjectCardEditedPropChangesPropNote) +model_rebuild(WebhookPing) -__all__ = ( - "WebhookProjectCardEdited", - "WebhookProjectCardEditedPropChanges", - "WebhookProjectCardEditedPropChangesPropNote", -) +__all__ = ("WebhookPing",) diff --git a/githubkit/versions/v2022_11_28/models/group_0603.py b/githubkit/versions/v2022_11_28/models/group_0603.py index 4de6ddafd..71453f360 100644 --- a/githubkit/versions/v2022_11_28/models/group_0603.py +++ b/githubkit/versions/v2022_11_28/models/group_0603.py @@ -10,7 +10,7 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from pydantic import Field @@ -18,113 +18,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0262 import HookResponse -class WebhookProjectCardMoved(GitHubModel): - """project_card moved event""" +class WebhookPingPropHook(GitHubModel): + """Webhook - action: Literal["moved"] = Field() - changes: Missing[WebhookProjectCardMovedPropChanges] = Field(default=UNSET) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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 webhook that is being pinged + """ + + active: bool = Field( + description="Determines whether the hook is actually triggered for the events it subscribes to." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + app_id: Missing[int] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `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="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.", ) - 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.", + 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']." ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + 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 WebhookProjectCardMovedPropChanges(GitHubModel): - """WebhookProjectCardMovedPropChanges""" - - column_id: WebhookProjectCardMovedPropChangesPropColumnId = Field() - - -class WebhookProjectCardMovedPropChangesPropColumnId(GitHubModel): - """WebhookProjectCardMovedPropChangesPropColumnId""" - - from_: int = Field(alias="from") - - -class WebhookProjectCardMovedPropProjectCard(GitHubModel): - """WebhookProjectCardMovedPropProjectCard""" +class WebhookPingPropHookPropConfig(GitHubModel): + """WebhookPingPropHookPropConfig""" - after_id: Union[Union[int, None], None] = Field() - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreator, None] = Field() - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[Union[str, None], None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - - -class WebhookProjectCardMovedPropProjectCardMergedCreator(GitHubModel): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + ) + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." ) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardMoved) -model_rebuild(WebhookProjectCardMovedPropChanges) -model_rebuild(WebhookProjectCardMovedPropChangesPropColumnId) -model_rebuild(WebhookProjectCardMovedPropProjectCard) -model_rebuild(WebhookProjectCardMovedPropProjectCardMergedCreator) +model_rebuild(WebhookPingPropHook) +model_rebuild(WebhookPingPropHookPropConfig) __all__ = ( - "WebhookProjectCardMoved", - "WebhookProjectCardMovedPropChanges", - "WebhookProjectCardMovedPropChangesPropColumnId", - "WebhookProjectCardMovedPropProjectCard", - "WebhookProjectCardMovedPropProjectCardMergedCreator", + "WebhookPingPropHook", + "WebhookPingPropHookPropConfig", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0604.py b/githubkit/versions/v2022_11_28/models/group_0604.py index 8df8ef190..fac71cc70 100644 --- a/githubkit/versions/v2022_11_28/models/group_0604.py +++ b/githubkit/versions/v2022_11_28/models/group_0604.py @@ -9,68 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): - """Project Card""" - - after_id: Missing[Union[int, None]] = Field(default=UNSET) - archived: bool = Field(description="Whether or not the card is archived") - column_id: int = Field() - column_url: str = Field() - content_url: Missing[str] = Field(default=UNSET) - created_at: datetime = Field() - creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreator, None] = ( - Field(title="User") - ) - id: int = Field(description="The project card's ID") - node_id: str = Field() - note: Union[str, None] = Field() - project_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - +class WebhookPingFormEncoded(GitHubModel): + """WebhookPingFormEncoded -class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): - """User""" + The webhooks ping payload encoded with URL encoding. + """ - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET + payload: str = Field( + description="A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object." ) - url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0) -model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) +model_rebuild(WebhookPingFormEncoded) -__all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0", - "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", -) +__all__ = ("WebhookPingFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0605.py b/githubkit/versions/v2022_11_28/models/group_0605.py index aeb9c0e62..2b91622ba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0605.py +++ b/githubkit/versions/v2022_11_28/models/group_0605.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,53 +17,64 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -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) +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0404 import WebhooksProjectCard +from .group_0374 import OrganizationSimpleWebhooks + + +class WebhookProjectCardConverted(GitHubModel): + """project_card converted event""" + + action: Literal["converted"] = Field() + changes: WebhookProjectCardConvertedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookProjectCardConvertedPropChanges(GitHubModel): + """WebhookProjectCardConvertedPropChanges""" + + note: WebhookProjectCardConvertedPropChangesPropNote = Field() + + +class WebhookProjectCardConvertedPropChangesPropNote(GitHubModel): + """WebhookProjectCardConvertedPropChangesPropNote""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookProjectCardConverted) +model_rebuild(WebhookProjectCardConvertedPropChanges) +model_rebuild(WebhookProjectCardConvertedPropChangesPropNote) __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof1", - "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", + "WebhookProjectCardConverted", + "WebhookProjectCardConvertedPropChanges", + "WebhookProjectCardConvertedPropChangesPropNote", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0606.py b/githubkit/versions/v2022_11_28/models/group_0606.py index 32fd5a0ea..a0fd5dad7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0606.py +++ b/githubkit/versions/v2022_11_28/models/group_0606.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0400 import WebhooksProject -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0404 import WebhooksProjectCard +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectClosed(GitHubModel): - """project closed event""" +class WebhookProjectCardCreated(GitHubModel): + """project_card created event""" - action: Literal["closed"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,7 +44,7 @@ class WebhookProjectClosed(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") + project_card: WebhooksProjectCard = Field(title="Project Card") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -56,6 +56,6 @@ class WebhookProjectClosed(GitHubModel): ) -model_rebuild(WebhookProjectClosed) +model_rebuild(WebhookProjectCardCreated) -__all__ = ("WebhookProjectClosed",) +__all__ = ("WebhookProjectCardCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0607.py b/githubkit/versions/v2022_11_28/models/group_0607.py index f246aa4db..21e64c7ee 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 Union, Literal from pydantic import Field @@ -17,18 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0401 import WebhooksProjectColumn -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectColumnCreated(GitHubModel): - """project_column created event""" +class WebhookProjectCardDeleted(GitHubModel): + """project_card deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,19 +44,68 @@ class WebhookProjectColumnCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhooksProjectColumn = Field(title="Project Column") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + project_card: WebhookProjectCardDeletedPropProjectCard = Field(title="Project Card") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookProjectColumnCreated) +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) + + +model_rebuild(WebhookProjectCardDeleted) +model_rebuild(WebhookProjectCardDeletedPropProjectCard) +model_rebuild(WebhookProjectCardDeletedPropProjectCardPropCreator) -__all__ = ("WebhookProjectColumnCreated",) +__all__ = ( + "WebhookProjectCardDeleted", + "WebhookProjectCardDeletedPropProjectCard", + "WebhookProjectCardDeletedPropProjectCardPropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0608.py b/githubkit/versions/v2022_11_28/models/group_0608.py index 17fb26ca1..8987d54f5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0608.py +++ b/githubkit/versions/v2022_11_28/models/group_0608.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0401 import WebhooksProjectColumn -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0404 import WebhooksProjectCard +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectColumnDeleted(GitHubModel): - """project_column deleted event""" +class WebhookProjectCardEdited(GitHubModel): + """project_card edited event""" - action: Literal["deleted"] = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectCardEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,15 +45,36 @@ class WebhookProjectColumnDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhooksProjectColumn = Field(title="Project Column") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUserWebhooks] = Field( + 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: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookProjectColumnDeleted) +class WebhookProjectCardEditedPropChanges(GitHubModel): + """WebhookProjectCardEditedPropChanges""" + + note: WebhookProjectCardEditedPropChangesPropNote = Field() + + +class WebhookProjectCardEditedPropChangesPropNote(GitHubModel): + """WebhookProjectCardEditedPropChangesPropNote""" + + from_: Union[str, None] = Field(alias="from") + + +model_rebuild(WebhookProjectCardEdited) +model_rebuild(WebhookProjectCardEditedPropChanges) +model_rebuild(WebhookProjectCardEditedPropChangesPropNote) -__all__ = ("WebhookProjectColumnDeleted",) +__all__ = ( + "WebhookProjectCardEdited", + "WebhookProjectCardEditedPropChanges", + "WebhookProjectCardEditedPropChangesPropNote", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0609.py b/githubkit/versions/v2022_11_28/models/group_0609.py index f5309a2b4..57674a36c 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 Union, Literal from pydantic import Field @@ -17,19 +18,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0401 import WebhooksProjectColumn -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectColumnEdited(GitHubModel): - """project_column edited event""" +class WebhookProjectCardMoved(GitHubModel): + """project_card moved event""" - action: Literal["edited"] = Field() - changes: WebhookProjectColumnEditedPropChanges = Field() + action: Literal["moved"] = Field() + changes: Missing[WebhookProjectCardMovedPropChanges] = Field(default=UNSET) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,37 +45,86 @@ class WebhookProjectColumnEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project_column: WebhooksProjectColumn = Field(title="Project Column") + project_card: WebhookProjectCardMovedPropProjectCard = Field() repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookProjectColumnEditedPropChanges(GitHubModel): - """WebhookProjectColumnEditedPropChanges""" - - name: Missing[WebhookProjectColumnEditedPropChangesPropName] = Field(default=UNSET) - - -class WebhookProjectColumnEditedPropChangesPropName(GitHubModel): - """WebhookProjectColumnEditedPropChangesPropName""" - - from_: str = 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) -model_rebuild(WebhookProjectColumnEdited) -model_rebuild(WebhookProjectColumnEditedPropChanges) -model_rebuild(WebhookProjectColumnEditedPropChangesPropName) +model_rebuild(WebhookProjectCardMoved) +model_rebuild(WebhookProjectCardMovedPropChanges) +model_rebuild(WebhookProjectCardMovedPropChangesPropColumnId) +model_rebuild(WebhookProjectCardMovedPropProjectCard) +model_rebuild(WebhookProjectCardMovedPropProjectCardMergedCreator) __all__ = ( - "WebhookProjectColumnEdited", - "WebhookProjectColumnEditedPropChanges", - "WebhookProjectColumnEditedPropChangesPropName", + "WebhookProjectCardMoved", + "WebhookProjectCardMovedPropChanges", + "WebhookProjectCardMovedPropChangesPropColumnId", + "WebhookProjectCardMovedPropProjectCard", + "WebhookProjectCardMovedPropProjectCardMergedCreator", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0610.py b/githubkit/versions/v2022_11_28/models/group_0610.py index 6c53bafe5..8df8ef190 100644 --- a/githubkit/versions/v2022_11_28/models/group_0610.py +++ b/githubkit/versions/v2022_11_28/models/group_0610.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,45 +18,59 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0401 import WebhooksProjectColumn -from .group_0369 import OrganizationSimpleWebhooks +class WebhookProjectCardMovedPropProjectCardAllof0(GitHubModel): + """Project Card""" -class WebhookProjectColumnMoved(GitHubModel): - """project_column moved event""" - - action: Literal["moved"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - project_column: WebhooksProjectColumn = Field(title="Project Column") - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + 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") ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + id: int = Field(description="The project card's ID") + node_id: str = Field() + note: Union[str, None] = Field() + project_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + + +class WebhookProjectCardMovedPropProjectCardAllof0PropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET ) + url: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookProjectColumnMoved) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof0PropCreator) -__all__ = ("WebhookProjectColumnMoved",) +__all__ = ( + "WebhookProjectCardMovedPropProjectCardAllof0", + "WebhookProjectCardMovedPropProjectCardAllof0PropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0611.py b/githubkit/versions/v2022_11_28/models/group_0611.py index c6e824146..aeb9c0e62 100644 --- a/githubkit/versions/v2022_11_28/models/group_0611.py +++ b/githubkit/versions/v2022_11_28/models/group_0611.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,45 +17,53 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0400 import WebhooksProject -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks - - -class WebhookProjectCreated(GitHubModel): - """project created event""" - - action: Literal["created"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookProjectCreated) - -__all__ = ("WebhookProjectCreated",) + +class WebhookProjectCardMovedPropProjectCardAllof1(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1""" + + after_id: Union[int, None] = Field() + archived: Missing[bool] = Field(default=UNSET) + column_id: Missing[int] = Field(default=UNSET) + column_url: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + creator: Missing[ + Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreator, None] + ] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + note: Missing[Union[str, None]] = Field(default=UNSET) + project_url: Missing[str] = Field(default=UNSET) + updated_at: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookProjectCardMovedPropProjectCardAllof1PropCreator(GitHubModel): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" + + avatar_url: Missing[str] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + login: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1) +model_rebuild(WebhookProjectCardMovedPropProjectCardAllof1PropCreator) + +__all__ = ( + "WebhookProjectCardMovedPropProjectCardAllof1", + "WebhookProjectCardMovedPropProjectCardAllof1PropCreator", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0612.py b/githubkit/versions/v2022_11_28/models/group_0612.py index 2c8b65ce0..f4be4f6c7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0612.py +++ b/githubkit/versions/v2022_11_28/models/group_0612.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0400 import WebhooksProject -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0405 import WebhooksProject +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectDeleted(GitHubModel): - """project deleted event""" +class WebhookProjectClosed(GitHubModel): + """project closed event""" - action: Literal["deleted"] = Field() + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,14 +45,17 @@ class WebhookProjectDeleted(GitHubModel): description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) project: WebhooksProject = Field(title="Project") - repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) - sender: Missing[SimpleUserWebhooks] = 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: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookProjectDeleted) +model_rebuild(WebhookProjectClosed) -__all__ = ("WebhookProjectDeleted",) +__all__ = ("WebhookProjectClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0613.py b/githubkit/versions/v2022_11_28/models/group_0613.py index b65d9a310..78776f220 100644 --- a/githubkit/versions/v2022_11_28/models/group_0613.py +++ b/githubkit/versions/v2022_11_28/models/group_0613.py @@ -17,22 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0400 import WebhooksProject -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0406 import WebhooksProjectColumn +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectEdited(GitHubModel): - """project edited event""" +class WebhookProjectColumnCreated(GitHubModel): + """project_column created event""" - action: Literal["edited"] = Field() - changes: Missing[WebhookProjectEditedPropChanges] = Field( - default=UNSET, - description="The changes to the project if the action was `edited`.", - ) + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,7 +44,7 @@ class WebhookProjectEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") + project_column: WebhooksProjectColumn = Field(title="Project Column") repository: Missing[RepositoryWebhooks] = Field( default=UNSET, title="Repository", @@ -61,42 +57,6 @@ class WebhookProjectEdited(GitHubModel): ) -class WebhookProjectEditedPropChanges(GitHubModel): - """WebhookProjectEditedPropChanges - - The changes to the project if the action was `edited`. - """ - - body: Missing[WebhookProjectEditedPropChangesPropBody] = Field(default=UNSET) - name: Missing[WebhookProjectEditedPropChangesPropName] = Field(default=UNSET) - - -class WebhookProjectEditedPropChangesPropBody(GitHubModel): - """WebhookProjectEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) - - -class WebhookProjectEditedPropChangesPropName(GitHubModel): - """WebhookProjectEditedPropChangesPropName""" - - from_: str = Field( - alias="from", - description="The changes to the project if the action was `edited`.", - ) - - -model_rebuild(WebhookProjectEdited) -model_rebuild(WebhookProjectEditedPropChanges) -model_rebuild(WebhookProjectEditedPropChangesPropBody) -model_rebuild(WebhookProjectEditedPropChangesPropName) +model_rebuild(WebhookProjectColumnCreated) -__all__ = ( - "WebhookProjectEdited", - "WebhookProjectEditedPropChanges", - "WebhookProjectEditedPropChangesPropBody", - "WebhookProjectEditedPropChangesPropName", -) +__all__ = ("WebhookProjectColumnCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0614.py b/githubkit/versions/v2022_11_28/models/group_0614.py index 9afbb7c34..750ad35c3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0614.py +++ b/githubkit/versions/v2022_11_28/models/group_0614.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0400 import WebhooksProject -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0406 import WebhooksProjectColumn +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectReopened(GitHubModel): - """project reopened event""" +class WebhookProjectColumnDeleted(GitHubModel): + """project_column deleted event""" - action: Literal["reopened"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +44,15 @@ class WebhookProjectReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - project: WebhooksProject = Field(title="Project") - repository: Missing[RepositoryWebhooks] = Field( + project_column: WebhooksProjectColumn = Field(title="Project Column") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookProjectReopened) +model_rebuild(WebhookProjectColumnDeleted) -__all__ = ("WebhookProjectReopened",) +__all__ = ("WebhookProjectColumnDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0615.py b/githubkit/versions/v2022_11_28/models/group_0615.py index 664769065..7534b2c90 100644 --- a/githubkit/versions/v2022_11_28/models/group_0615.py +++ b/githubkit/versions/v2022_11_28/models/group_0615.py @@ -17,34 +17,65 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import ProjectsV2 -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0406 import WebhooksProjectColumn +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectClosed(GitHubModel): - """Projects v2 Project Closed Event""" +class WebhookProjectColumnEdited(GitHubModel): + """project_column edited event""" - action: Literal["closed"] = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectColumnEditedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project_column: WebhooksProjectColumn = Field(title="Project Column") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookProjectsV2ProjectClosed) +class WebhookProjectColumnEditedPropChanges(GitHubModel): + """WebhookProjectColumnEditedPropChanges""" + + name: Missing[WebhookProjectColumnEditedPropChangesPropName] = Field(default=UNSET) + + +class WebhookProjectColumnEditedPropChangesPropName(GitHubModel): + """WebhookProjectColumnEditedPropChangesPropName""" + + from_: str = Field(alias="from") + + +model_rebuild(WebhookProjectColumnEdited) +model_rebuild(WebhookProjectColumnEditedPropChanges) +model_rebuild(WebhookProjectColumnEditedPropChangesPropName) -__all__ = ("WebhookProjectsV2ProjectClosed",) +__all__ = ( + "WebhookProjectColumnEdited", + "WebhookProjectColumnEditedPropChanges", + "WebhookProjectColumnEditedPropChangesPropName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0616.py b/githubkit/versions/v2022_11_28/models/group_0616.py index b6aca4316..e68f72087 100644 --- a/githubkit/versions/v2022_11_28/models/group_0616.py +++ b/githubkit/versions/v2022_11_28/models/group_0616.py @@ -17,30 +17,38 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import ProjectsV2 -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0406 import WebhooksProjectColumn +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectCreated(GitHubModel): - """WebhookProjectsV2ProjectCreated +class WebhookProjectColumnMoved(GitHubModel): + """project_column moved event""" - A project was created - """ - - action: Literal["created"] = Field() + action: Literal["moved"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project_column: WebhooksProjectColumn = Field(title="Project Column") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -48,6 +56,6 @@ class WebhookProjectsV2ProjectCreated(GitHubModel): ) -model_rebuild(WebhookProjectsV2ProjectCreated) +model_rebuild(WebhookProjectColumnMoved) -__all__ = ("WebhookProjectsV2ProjectCreated",) +__all__ = ("WebhookProjectColumnMoved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0617.py b/githubkit/versions/v2022_11_28/models/group_0617.py index 809f91ead..df6265658 100644 --- a/githubkit/versions/v2022_11_28/models/group_0617.py +++ b/githubkit/versions/v2022_11_28/models/group_0617.py @@ -17,27 +17,38 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import ProjectsV2 -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0405 import WebhooksProject +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectDeleted(GitHubModel): - """Projects v2 Project Deleted Event""" +class WebhookProjectCreated(GitHubModel): + """project created event""" - action: Literal["deleted"] = Field() + action: Literal["created"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + project: WebhooksProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -45,6 +56,6 @@ class WebhookProjectsV2ProjectDeleted(GitHubModel): ) -model_rebuild(WebhookProjectsV2ProjectDeleted) +model_rebuild(WebhookProjectCreated) -__all__ = ("WebhookProjectsV2ProjectDeleted",) +__all__ = ("WebhookProjectCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0618.py b/githubkit/versions/v2022_11_28/models/group_0618.py index 1b2a5274d..ea9ecfd96 100644 --- a/githubkit/versions/v2022_11_28/models/group_0618.py +++ b/githubkit/versions/v2022_11_28/models/group_0618.py @@ -17,92 +17,42 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import ProjectsV2 -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0405 import WebhooksProject +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectEdited(GitHubModel): - """Projects v2 Project Edited Event""" +class WebhookProjectDeleted(GitHubModel): + """project deleted event""" - action: Literal["edited"] = Field() - changes: WebhookProjectsV2ProjectEditedPropChanges = Field() + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" - ) - sender: SimpleUserWebhooks = Field( + project: WebhooksProject = Field(title="Project") + repository: Missing[Union[None, RepositoryWebhooks]] = Field(default=UNSET) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChanges""" - - description: Missing[WebhookProjectsV2ProjectEditedPropChangesPropDescription] = ( - Field(default=UNSET) - ) - public: Missing[WebhookProjectsV2ProjectEditedPropChangesPropPublic] = Field( - default=UNSET - ) - short_description: Missing[ - WebhookProjectsV2ProjectEditedPropChangesPropShortDescription - ] = Field(default=UNSET) - title: Missing[WebhookProjectsV2ProjectEditedPropChangesPropTitle] = Field( - default=UNSET - ) - - -class WebhookProjectsV2ProjectEditedPropChangesPropDescription(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -class WebhookProjectsV2ProjectEditedPropChangesPropPublic(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" - - from_: Missing[bool] = Field(default=UNSET, alias="from") - to: Missing[bool] = Field(default=UNSET) - - -class WebhookProjectsV2ProjectEditedPropChangesPropShortDescription(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[Union[str, None]] = Field(default=UNSET) - - -class WebhookProjectsV2ProjectEditedPropChangesPropTitle(GitHubModel): - """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - to: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ProjectEdited) -model_rebuild(WebhookProjectsV2ProjectEditedPropChanges) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropDescription) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropPublic) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropShortDescription) -model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropTitle) +model_rebuild(WebhookProjectDeleted) -__all__ = ( - "WebhookProjectsV2ProjectEdited", - "WebhookProjectsV2ProjectEditedPropChanges", - "WebhookProjectsV2ProjectEditedPropChangesPropDescription", - "WebhookProjectsV2ProjectEditedPropChangesPropPublic", - "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", - "WebhookProjectsV2ProjectEditedPropChangesPropTitle", -) +__all__ = ("WebhookProjectDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0619.py b/githubkit/versions/v2022_11_28/models/group_0619.py index be66db0e1..6176ff973 100644 --- a/githubkit/versions/v2022_11_28/models/group_0619.py +++ b/githubkit/versions/v2022_11_28/models/group_0619.py @@ -17,36 +17,86 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0404 import ProjectsV2Item -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0403 import WebhooksProjectChanges -from .group_0369 import OrganizationSimpleWebhooks +from .group_0405 import WebhooksProject +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemArchived(GitHubModel): - """Projects v2 Item Archived Event""" +class WebhookProjectEdited(GitHubModel): + """project edited event""" - action: Literal["archived"] = Field() - changes: WebhooksProjectChanges = Field() + action: Literal["edited"] = Field() + changes: Missing[WebhookProjectEditedPropChanges] = Field( + default=UNSET, + description="The changes to the project if the action was `edited`.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + project: WebhooksProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookProjectsV2ItemArchived) +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__ = ("WebhookProjectsV2ItemArchived",) +__all__ = ( + "WebhookProjectEdited", + "WebhookProjectEditedPropChanges", + "WebhookProjectEditedPropChangesPropBody", + "WebhookProjectEditedPropChangesPropName", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0620.py b/githubkit/versions/v2022_11_28/models/group_0620.py index 45867efe7..11e8c7ef8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0620.py +++ b/githubkit/versions/v2022_11_28/models/group_0620.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,28 +17,38 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0404 import ProjectsV2Item -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0405 import WebhooksProject +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemConverted(GitHubModel): - """Projects v2 Item Converted Event""" +class WebhookProjectReopened(GitHubModel): + """project reopened event""" - action: Literal["converted"] = Field() - changes: WebhookProjectsV2ItemConvertedPropChanges = Field() + action: Literal["reopened"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + project: WebhooksProject = Field(title="Project") + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -46,27 +56,6 @@ class WebhookProjectsV2ItemConverted(GitHubModel): ) -class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChanges""" - - content_type: Missing[WebhookProjectsV2ItemConvertedPropChangesPropContentType] = ( - Field(default=UNSET) - ) - - -class WebhookProjectsV2ItemConvertedPropChangesPropContentType(GitHubModel): - """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" - - from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") - to: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookProjectsV2ItemConverted) -model_rebuild(WebhookProjectsV2ItemConvertedPropChanges) -model_rebuild(WebhookProjectsV2ItemConvertedPropChangesPropContentType) +model_rebuild(WebhookProjectReopened) -__all__ = ( - "WebhookProjectsV2ItemConverted", - "WebhookProjectsV2ItemConvertedPropChanges", - "WebhookProjectsV2ItemConvertedPropChangesPropContentType", -) +__all__ = ("WebhookProjectReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0621.py b/githubkit/versions/v2022_11_28/models/group_0621.py index 83e869dc8..e624a1b43 100644 --- a/githubkit/versions/v2022_11_28/models/group_0621.py +++ b/githubkit/versions/v2022_11_28/models/group_0621.py @@ -17,16 +17,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0404 import ProjectsV2Item -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0407 import ProjectsV2 +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemCreated(GitHubModel): - """Projects v2 Item Created Event""" +class WebhookProjectsV2ProjectClosed(GitHubModel): + """Projects v2 Project Closed Event""" - action: Literal["created"] = Field() + action: Literal["closed"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -36,8 +36,8 @@ class WebhookProjectsV2ItemCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -45,6 +45,6 @@ class WebhookProjectsV2ItemCreated(GitHubModel): ) -model_rebuild(WebhookProjectsV2ItemCreated) +model_rebuild(WebhookProjectsV2ProjectClosed) -__all__ = ("WebhookProjectsV2ItemCreated",) +__all__ = ("WebhookProjectsV2ProjectClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0622.py b/githubkit/versions/v2022_11_28/models/group_0622.py index ae6faff8e..6217cc16c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0622.py +++ b/githubkit/versions/v2022_11_28/models/group_0622.py @@ -17,16 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0404 import ProjectsV2Item -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0407 import ProjectsV2 +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemDeleted(GitHubModel): - """Projects v2 Item Deleted Event""" +class WebhookProjectsV2ProjectCreated(GitHubModel): + """WebhookProjectsV2ProjectCreated - action: Literal["deleted"] = Field() + A project was created + """ + + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -36,8 +39,8 @@ class WebhookProjectsV2ItemDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -45,6 +48,6 @@ class WebhookProjectsV2ItemDeleted(GitHubModel): ) -model_rebuild(WebhookProjectsV2ItemDeleted) +model_rebuild(WebhookProjectsV2ProjectCreated) -__all__ = ("WebhookProjectsV2ItemDeleted",) +__all__ = ("WebhookProjectsV2ProjectCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0623.py b/githubkit/versions/v2022_11_28/models/group_0623.py index 833b114ee..f3994945e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0623.py +++ b/githubkit/versions/v2022_11_28/models/group_0623.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,22 +17,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0404 import ProjectsV2Item -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0407 import ProjectsV2 +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemEdited(GitHubModel): - """Projects v2 Item Edited Event""" +class WebhookProjectsV2ProjectDeleted(GitHubModel): + """Projects v2 Project Deleted Event""" - action: Literal["edited"] = Field() - changes: Missing[ - Union[ - WebhookProjectsV2ItemEditedPropChangesOneof0, - WebhookProjectsV2ItemEditedPropChangesOneof1, - ] - ] = Field(default=UNSET) + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -42,8 +36,8 @@ class WebhookProjectsV2ItemEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -51,42 +45,6 @@ class WebhookProjectsV2ItemEdited(GitHubModel): ) -class WebhookProjectsV2ItemEditedPropChangesOneof0(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" +model_rebuild(WebhookProjectsV2ProjectDeleted) - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue = Field() - - -class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue(GitHubModel): - """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" - - field_node_id: Missing[str] = Field(default=UNSET) - field_type: Missing[str] = 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(WebhookProjectsV2ItemEditedPropChangesOneof1) -model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1PropBody) - -__all__ = ( - "WebhookProjectsV2ItemEdited", - "WebhookProjectsV2ItemEditedPropChangesOneof0", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", - "WebhookProjectsV2ItemEditedPropChangesOneof1", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", -) +__all__ = ("WebhookProjectsV2ProjectDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0624.py b/githubkit/versions/v2022_11_28/models/group_0624.py index 2691720d3..556161005 100644 --- a/githubkit/versions/v2022_11_28/models/group_0624.py +++ b/githubkit/versions/v2022_11_28/models/group_0624.py @@ -17,17 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0404 import ProjectsV2Item -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0407 import ProjectsV2 +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemReordered(GitHubModel): - """Projects v2 Item Reordered Event""" +class WebhookProjectsV2ProjectEdited(GitHubModel): + """Projects v2 Project Edited Event""" - action: Literal["reordered"] = Field() - changes: WebhookProjectsV2ItemReorderedPropChanges = Field() + action: Literal["edited"] = Field() + changes: WebhookProjectsV2ProjectEditedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -37,8 +37,8 @@ class WebhookProjectsV2ItemReordered(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2_item: ProjectsV2Item = Field( - title="Projects v2 Item", description="An item belonging to a project" + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -46,29 +46,63 @@ class WebhookProjectsV2ItemReordered(GitHubModel): ) -class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): - """WebhookProjectsV2ItemReorderedPropChanges""" +class WebhookProjectsV2ProjectEditedPropChanges(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChanges""" - previous_projects_v2_item_node_id: Missing[ - WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId + description: Missing[WebhookProjectsV2ProjectEditedPropChangesPropDescription] = ( + Field(default=UNSET) + ) + public: Missing[WebhookProjectsV2ProjectEditedPropChangesPropPublic] = Field( + default=UNSET + ) + short_description: Missing[ + WebhookProjectsV2ProjectEditedPropChangesPropShortDescription ] = Field(default=UNSET) + title: Missing[WebhookProjectsV2ProjectEditedPropChangesPropTitle] = Field( + default=UNSET + ) + + +class WebhookProjectsV2ProjectEditedPropChangesPropDescription(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) + + +class WebhookProjectsV2ProjectEditedPropChangesPropPublic(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" + + from_: Missing[bool] = Field(default=UNSET, alias="from") + to: Missing[bool] = Field(default=UNSET) -class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId( - GitHubModel -): - """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" +class WebhookProjectsV2ProjectEditedPropChangesPropShortDescription(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") to: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(WebhookProjectsV2ItemReordered) -model_rebuild(WebhookProjectsV2ItemReorderedPropChanges) -model_rebuild(WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId) +class WebhookProjectsV2ProjectEditedPropChangesPropTitle(GitHubModel): + """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" + + from_: Missing[str] = Field(default=UNSET, alias="from") + to: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ProjectEdited) +model_rebuild(WebhookProjectsV2ProjectEditedPropChanges) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropDescription) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropPublic) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropShortDescription) +model_rebuild(WebhookProjectsV2ProjectEditedPropChangesPropTitle) __all__ = ( - "WebhookProjectsV2ItemReordered", - "WebhookProjectsV2ItemReorderedPropChanges", - "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", + "WebhookProjectsV2ProjectEdited", + "WebhookProjectsV2ProjectEditedPropChanges", + "WebhookProjectsV2ProjectEditedPropChangesPropDescription", + "WebhookProjectsV2ProjectEditedPropChangesPropPublic", + "WebhookProjectsV2ProjectEditedPropChangesPropShortDescription", + "WebhookProjectsV2ProjectEditedPropChangesPropTitle", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0625.py b/githubkit/versions/v2022_11_28/models/group_0625.py index 6d9daad90..29c38938e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0625.py +++ b/githubkit/versions/v2022_11_28/models/group_0625.py @@ -17,17 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0404 import ProjectsV2Item -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0403 import WebhooksProjectChanges -from .group_0369 import OrganizationSimpleWebhooks +from .group_0409 import ProjectsV2Item +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0408 import WebhooksProjectChanges +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectsV2ItemRestored(GitHubModel): - """Projects v2 Item Restored Event""" +class WebhookProjectsV2ItemArchived(GitHubModel): + """Projects v2 Item Archived Event""" - action: Literal["restored"] = Field() + action: Literal["archived"] = Field() changes: WebhooksProjectChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, @@ -47,6 +47,6 @@ class WebhookProjectsV2ItemRestored(GitHubModel): ) -model_rebuild(WebhookProjectsV2ItemRestored) +model_rebuild(WebhookProjectsV2ItemArchived) -__all__ = ("WebhookProjectsV2ItemRestored",) +__all__ = ("WebhookProjectsV2ItemArchived",) diff --git a/githubkit/versions/v2022_11_28/models/group_0626.py b/githubkit/versions/v2022_11_28/models/group_0626.py index 910df1158..c9618c079 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 +from typing import Union, Literal from pydantic import Field @@ -17,16 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0402 import ProjectsV2 -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0409 import ProjectsV2Item +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookProjectsV2ProjectReopened(GitHubModel): - """Projects v2 Project Reopened Event""" +class WebhookProjectsV2ItemConverted(GitHubModel): + """Projects v2 Item Converted Event""" - action: Literal["reopened"] = Field() + action: Literal["converted"] = Field() + changes: WebhookProjectsV2ItemConvertedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -36,8 +37,8 @@ class WebhookProjectsV2ProjectReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - projects_v2: ProjectsV2 = Field( - title="Projects v2 Project", description="A projects v2 project" + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -45,6 +46,27 @@ class WebhookProjectsV2ProjectReopened(GitHubModel): ) -model_rebuild(WebhookProjectsV2ProjectReopened) +class WebhookProjectsV2ItemConvertedPropChanges(GitHubModel): + """WebhookProjectsV2ItemConvertedPropChanges""" -__all__ = ("WebhookProjectsV2ProjectReopened",) + content_type: Missing[WebhookProjectsV2ItemConvertedPropChangesPropContentType] = ( + Field(default=UNSET) + ) + + +class WebhookProjectsV2ItemConvertedPropChangesPropContentType(GitHubModel): + """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" + + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookProjectsV2ItemConverted) +model_rebuild(WebhookProjectsV2ItemConvertedPropChanges) +model_rebuild(WebhookProjectsV2ItemConvertedPropChangesPropContentType) + +__all__ = ( + "WebhookProjectsV2ItemConverted", + "WebhookProjectsV2ItemConvertedPropChanges", + "WebhookProjectsV2ItemConvertedPropChangesPropContentType", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0627.py b/githubkit/versions/v2022_11_28/models/group_0627.py index dff902923..0da4ff851 100644 --- a/githubkit/versions/v2022_11_28/models/group_0627.py +++ b/githubkit/versions/v2022_11_28/models/group_0627.py @@ -9,40 +9,35 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0409 import ProjectsV2Item +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPublic(GitHubModel): - """public event""" +class WebhookProjectsV2ItemCreated(GitHubModel): + """Projects v2 Item Created 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)."\n', - ) + action: Literal["created"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -50,6 +45,6 @@ class WebhookPublic(GitHubModel): ) -model_rebuild(WebhookPublic) +model_rebuild(WebhookProjectsV2ItemCreated) -__all__ = ("WebhookPublic",) +__all__ = ("WebhookProjectsV2ItemCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0628.py b/githubkit/versions/v2022_11_28/models/group_0628.py index 70ccab947..a984ac8ba 100644 --- a/githubkit/versions/v2022_11_28/models/group_0628.py +++ b/githubkit/versions/v2022_11_28/models/group_0628.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,41 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0379 import WebhooksUser -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0409 import ProjectsV2Item +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestAssigned(GitHubModel): - """pull_request assigned event""" +class WebhookProjectsV2ItemDeleted(GitHubModel): + """Projects v2 Item Deleted Event""" - action: Literal["assigned"] = Field() - assignee: Union[WebhooksUser, None] = Field(title="User") - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAssignedPropPullRequest = Field( - title="Pull Request" - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -60,1110 +45,6 @@ class WebhookPullRequestAssigned(GitHubModel): ) -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) - - -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) - - -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) - - -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) - - -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) - - -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) - - -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) - - -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) - - -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 has been deprecated. 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) - - -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 has been deprecated. 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) - - -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) - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestAssigned) -model_rebuild(WebhookPullRequestAssignedPropPullRequest) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookProjectsV2ItemDeleted) -__all__ = ( - "WebhookPullRequestAssigned", - "WebhookPullRequestAssignedPropPullRequest", - "WebhookPullRequestAssignedPropPullRequestPropAssignee", - "WebhookPullRequestAssignedPropPullRequestPropAssigneesItems", - "WebhookPullRequestAssignedPropPullRequestPropAutoMerge", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAssignedPropPullRequestPropLabelsItems", - "WebhookPullRequestAssignedPropPullRequestPropMergedBy", - "WebhookPullRequestAssignedPropPullRequestPropMilestone", - "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAssignedPropPullRequestPropUser", - "WebhookPullRequestAssignedPropPullRequestPropLinks", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropComments", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAssignedPropPullRequestPropBase", - "WebhookPullRequestAssignedPropPullRequestPropBasePropUser", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepo", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAssignedPropPullRequestPropHead", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropUser", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookProjectsV2ItemDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0629.py b/githubkit/versions/v2022_11_28/models/group_0629.py index c4c322bfc..c7b8ccf11 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 List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,40 +17,36 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0409 import ProjectsV2Item +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestAutoMergeDisabled(GitHubModel): - """pull_request auto_merge_disabled event""" +class WebhookProjectsV2ItemEdited(GitHubModel): + """Projects v2 Item Edited Event""" - action: Literal["auto_merge_disabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + action: Literal["edited"] = Field() + changes: Missing[ + Union[ + WebhookProjectsV2ItemEditedPropChangesOneof0, + WebhookProjectsV2ItemEditedPropChangesOneof1, + ] + ] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + description="The changes made to the item may involve modifications in the item's fields and draft issue body.\nIt includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field.", ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequest = Field( - title="Pull Request" - ) - reason: str = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -59,1165 +54,78 @@ class WebhookPullRequestAutoMergeDisabled(GitHubModel): ) -class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( - Field() - ) - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" +class WebhookProjectsV2ItemEditedPropChangesOneof0(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof0""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" +class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=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 WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - - comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( - Field(title="Link") - ) - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions + field_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) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = 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 has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class ProjectsV2SingleSelectOption(GitHubModel): + """Projects v2 Single Select Option - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubModel): - """Repository - - A git repository + An option for a single select 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[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() + id: str = Field() name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() + color: Missing[Union[str, None]] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - +class ProjectsV2IterationSetting(GitHubModel): + """Projects v2 Iteration Setting -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent + An iteration setting for an iteration field """ - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: 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") + id: str = Field() + title: str = Field() + duration: Missing[Union[float, None]] = Field(default=UNSET) + start_date: Missing[Union[str, None]] = Field(default=UNSET) -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team +class WebhookProjectsV2ItemEditedPropChangesOneof1(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof1""" - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBody = Field() -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent - """ +class WebhookProjectsV2ItemEditedPropChangesOneof1PropBody(GitHubModel): + """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) -model_rebuild(WebhookPullRequestAutoMergeDisabled) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequest) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookProjectsV2ItemEdited) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue) +model_rebuild(ProjectsV2SingleSelectOption) +model_rebuild(ProjectsV2IterationSetting) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1) +model_rebuild(WebhookProjectsV2ItemEditedPropChangesOneof1PropBody) __all__ = ( - "WebhookPullRequestAutoMergeDisabled", - "WebhookPullRequestAutoMergeDisabledPropPullRequest", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookProjectsV2ItemEdited", + "WebhookProjectsV2ItemEditedPropChangesOneof0", + "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue", + "ProjectsV2SingleSelectOption", + "ProjectsV2IterationSetting", + "WebhookProjectsV2ItemEditedPropChangesOneof1", + "WebhookProjectsV2ItemEditedPropChangesOneof1PropBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0630.py b/githubkit/versions/v2022_11_28/models/group_0630.py index 7c720d9a5..67df8e93a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0630.py +++ b/githubkit/versions/v2022_11_28/models/group_0630.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field @@ -18,40 +17,28 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0409 import ProjectsV2Item +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestAutoMergeEnabled(GitHubModel): - """pull_request auto_merge_enabled event""" +class WebhookProjectsV2ItemReordered(GitHubModel): + """Projects v2 Item Reordered Event""" - action: Literal["auto_merge_enabled"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["reordered"] = Field() + changes: WebhookProjectsV2ItemReorderedPropChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( - title="Pull Request" - ) - reason: Missing[str] = Field(default=UNSET) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -59,1157 +46,29 @@ class WebhookPullRequestAutoMergeEnabled(GitHubModel): ) -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) - - -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) - - -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) - - -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) - - -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) - - -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) - - -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) - - -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 has been deprecated. 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) - +class WebhookProjectsV2ItemReorderedPropChanges(GitHubModel): + """WebhookProjectsV2ItemReorderedPropChanges""" -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) - - -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 + previous_projects_v2_item_node_id: Missing[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = 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 has been deprecated. 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) - - -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( +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId( GitHubModel ): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneo - f1PropParent - """ + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -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") + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) -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(WebhookProjectsV2ItemReordered) +model_rebuild(WebhookProjectsV2ItemReorderedPropChanges) +model_rebuild(WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId) __all__ = ( - "WebhookPullRequestAutoMergeEnabled", - "WebhookPullRequestAutoMergeEnabledPropPullRequest", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookProjectsV2ItemReordered", + "WebhookProjectsV2ItemReorderedPropChanges", + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0631.py b/githubkit/versions/v2022_11_28/models/group_0631.py index 171676b79..5229b096c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0631.py +++ b/githubkit/versions/v2022_11_28/models/group_0631.py @@ -17,38 +17,29 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0405 import PullRequestWebhook -from .group_0369 import OrganizationSimpleWebhooks +from .group_0409 import ProjectsV2Item +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0408 import WebhooksProjectChanges +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestClosed(GitHubModel): - """pull_request closed event""" +class WebhookProjectsV2ItemRestored(GitHubModel): + """Projects v2 Item Restored 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)."\n', - ) + action: Literal["restored"] = Field() + changes: WebhooksProjectChanges = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_item: ProjectsV2Item = Field( + title="Projects v2 Item", description="An item belonging to a project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -56,6 +47,6 @@ class WebhookPullRequestClosed(GitHubModel): ) -model_rebuild(WebhookPullRequestClosed) +model_rebuild(WebhookProjectsV2ItemRestored) -__all__ = ("WebhookPullRequestClosed",) +__all__ = ("WebhookProjectsV2ItemRestored",) diff --git a/githubkit/versions/v2022_11_28/models/group_0632.py b/githubkit/versions/v2022_11_28/models/group_0632.py index 0e09f293a..370310856 100644 --- a/githubkit/versions/v2022_11_28/models/group_0632.py +++ b/githubkit/versions/v2022_11_28/models/group_0632.py @@ -17,38 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0405 import PullRequestWebhook -from .group_0369 import OrganizationSimpleWebhooks +from .group_0407 import ProjectsV2 +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestConvertedToDraft(GitHubModel): - """pull_request converted_to_draft event""" +class WebhookProjectsV2ProjectReopened(GitHubModel): + """Projects v2 Project Reopened Event""" - action: Literal["converted_to_draft"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) + action: Literal["reopened"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2: ProjectsV2 = Field( + title="Projects v2 Project", description="A projects v2 project" ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -56,6 +45,6 @@ class WebhookPullRequestConvertedToDraft(GitHubModel): ) -model_rebuild(WebhookPullRequestConvertedToDraft) +model_rebuild(WebhookProjectsV2ProjectReopened) -__all__ = ("WebhookPullRequestConvertedToDraft",) +__all__ = ("WebhookProjectsV2ProjectReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0633.py b/githubkit/versions/v2022_11_28/models/group_0633.py index bce2ad715..8defe91a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0633.py +++ b/githubkit/versions/v2022_11_28/models/group_0633.py @@ -17,46 +17,35 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0033 import Milestone -from .group_0367 import EnterpriseWebhooks -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0407 import WebhooksPullRequest5 -from .group_0369 import OrganizationSimpleWebhooks +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0410 import ProjectsV2StatusUpdate +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestDemilestoned(GitHubModel): - """pull_request demilestoned event""" +class WebhookProjectsV2StatusUpdateCreated(GitHubModel): + """Projects v2 Status Update Created Event""" - action: Literal["demilestoned"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + action: Literal["created"] = Field() + installation: Missing[SimpleInstallation] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: Missing[Milestone] = Field( - default=UNSET, - title="Milestone", - description="A collection of related issues and pull requests.", - ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhooksPullRequest5 = Field(title="Pull Request") - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_status_update: ProjectsV2StatusUpdate = Field( + title="Projects v2 Status Update", + description="An status update belonging to a project", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestDemilestoned) +model_rebuild(WebhookProjectsV2StatusUpdateCreated) -__all__ = ("WebhookPullRequestDemilestoned",) +__all__ = ("WebhookProjectsV2StatusUpdateCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0634.py b/githubkit/versions/v2022_11_28/models/group_0634.py index d750d49aa..935dbf70b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0634.py +++ b/githubkit/versions/v2022_11_28/models/group_0634.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,40 +17,28 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0410 import ProjectsV2StatusUpdate +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestDequeued(GitHubModel): - """pull_request dequeued event""" +class WebhookProjectsV2StatusUpdateDeleted(GitHubModel): + """Projects v2 Status Update Deleted Event""" - 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)."\n', - ) + action: Literal["deleted"] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field() - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestDequeuedPropPullRequest = Field( - title="Pull Request" - ) - reason: str = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_status_update: ProjectsV2StatusUpdate = Field( + title="Projects v2 Status Update", + description="An status update belonging to a project", ) sender: SimpleUserWebhooks = Field( title="Simple User", @@ -59,1107 +46,6 @@ class WebhookPullRequestDequeued(GitHubModel): ) -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) - - -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) - - -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) - - -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) - - -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) - - -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) - - -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) - - -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 has been deprecated. 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) - - -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) - - -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 has been deprecated. 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) - - -class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestDequeued) -model_rebuild(WebhookPullRequestDequeuedPropPullRequest) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookProjectsV2StatusUpdateDeleted) -__all__ = ( - "WebhookPullRequestDequeued", - "WebhookPullRequestDequeuedPropPullRequest", - "WebhookPullRequestDequeuedPropPullRequestPropAssignee", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMerge", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestDequeuedPropPullRequestPropLabelsItems", - "WebhookPullRequestDequeuedPropPullRequestPropMergedBy", - "WebhookPullRequestDequeuedPropPullRequestPropMilestone", - "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestDequeuedPropPullRequestPropUser", - "WebhookPullRequestDequeuedPropPullRequestPropLinks", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestDequeuedPropPullRequestPropBase", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropUser", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestDequeuedPropPullRequestPropHead", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookProjectsV2StatusUpdateDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0635.py b/githubkit/versions/v2022_11_28/models/group_0635.py index 0428c7350..acd3ebf30 100644 --- a/githubkit/versions/v2022_11_28/models/group_0635.py +++ b/githubkit/versions/v2022_11_28/models/group_0635.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import date +from typing import Union, Literal from pydantic import Field @@ -17,111 +18,99 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0405 import PullRequestWebhook -from .group_0369 import OrganizationSimpleWebhooks +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0410 import ProjectsV2StatusUpdate +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestEdited(GitHubModel): - """pull_request edited event""" +class WebhookProjectsV2StatusUpdateEdited(GitHubModel): + """Projects v2 Status Update Edited Event""" 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", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + changes: Missing[WebhookProjectsV2StatusUpdateEditedPropChanges] = Field( + default=UNSET ) installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: PullRequestWebhook = Field() - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + projects_v2_status_update: ProjectsV2StatusUpdate = Field( + title="Projects v2 Status Update", + description="An status update belonging to a project", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestEditedPropChanges(GitHubModel): - """WebhookPullRequestEditedPropChanges - - The changes to the comment if the action was `edited`. - """ - - base: Missing[WebhookPullRequestEditedPropChangesPropBase] = Field(default=UNSET) - body: Missing[WebhookPullRequestEditedPropChangesPropBody] = Field(default=UNSET) - title: Missing[WebhookPullRequestEditedPropChangesPropTitle] = Field(default=UNSET) +class WebhookProjectsV2StatusUpdateEditedPropChanges(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChanges""" - -class WebhookPullRequestEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", + 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 WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): - """WebhookPullRequestEditedPropChangesPropTitle""" +class WebhookProjectsV2StatusUpdateEditedPropChangesPropBody(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" - from_: str = Field( - alias="from", - description="The previous version of the title if the action was `edited`.", - ) + from_: Missing[Union[str, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[str, None]] = Field(default=UNSET) -class WebhookPullRequestEditedPropChangesPropBase(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBase""" +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" - ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() - sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() + 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 WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" - from_: str = Field(alias="from") + from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[date, None]] = Field(default=UNSET) -class WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): - """WebhookPullRequestEditedPropChangesPropBasePropSha""" +class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate(GitHubModel): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" - from_: str = Field(alias="from") + from_: Missing[Union[date, None]] = Field(default=UNSET, alias="from") + to: Missing[Union[date, None]] = Field(default=UNSET) -model_rebuild(WebhookPullRequestEdited) -model_rebuild(WebhookPullRequestEditedPropChanges) -model_rebuild(WebhookPullRequestEditedPropChangesPropBody) -model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) -model_rebuild(WebhookPullRequestEditedPropChangesPropBase) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) -model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) +model_rebuild(WebhookProjectsV2StatusUpdateEdited) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChanges) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropBody) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate) +model_rebuild(WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate) __all__ = ( - "WebhookPullRequestEdited", - "WebhookPullRequestEditedPropChanges", - "WebhookPullRequestEditedPropChangesPropBody", - "WebhookPullRequestEditedPropChangesPropTitle", - "WebhookPullRequestEditedPropChangesPropBase", - "WebhookPullRequestEditedPropChangesPropBasePropRef", - "WebhookPullRequestEditedPropChangesPropBasePropSha", + "WebhookProjectsV2StatusUpdateEdited", + "WebhookProjectsV2StatusUpdateEditedPropChanges", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBody", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0636.py b/githubkit/versions/v2022_11_28/models/group_0636.py index 44dc7b238..925e39559 100644 --- a/githubkit/versions/v2022_11_28/models/group_0636.py +++ b/githubkit/versions/v2022_11_28/models/group_0636.py @@ -9,26 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestEnqueued(GitHubModel): - """pull_request enqueued event""" +class WebhookPublic(GitHubModel): + """public event""" - action: Literal["enqueued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,15 +35,11 @@ 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() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `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" - ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -58,1107 +50,6 @@ class WebhookPullRequestEnqueued(GitHubModel): ) -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) - - -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) - - -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) - - -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) - - -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) - - -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) - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" - - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, None - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, None - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. 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) - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestEnqueuedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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 has been deprecated. 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) - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestEnqueued) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequest) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems) -model_rebuild( - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPublic) -__all__ = ( - "WebhookPullRequestEnqueued", - "WebhookPullRequestEnqueuedPropPullRequest", - "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems", - "WebhookPullRequestEnqueuedPropPullRequestPropMergedBy", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestone", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestEnqueuedPropPullRequestPropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropLinks", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestEnqueuedPropPullRequestPropBase", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestEnqueuedPropPullRequestPropHead", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookPublic",) diff --git a/githubkit/versions/v2022_11_28/models/group_0637.py b/githubkit/versions/v2022_11_28/models/group_0637.py index c83428c94..82341fb01 100644 --- a/githubkit/versions/v2022_11_28/models/group_0637.py +++ b/githubkit/versions/v2022_11_28/models/group_0637.py @@ -18,18 +18,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0383 import WebhooksLabel -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0384 import WebhooksUser +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestLabeled(GitHubModel): - """pull_request labeled event""" +class WebhookPullRequestAssigned(GitHubModel): + """pull_request assigned event""" - action: Literal["labeled"] = Field() + action: Literal["assigned"] = Field() + assignee: Union[WebhooksUser, None] = Field(title="User") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,14 +41,15 @@ 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: 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.", @@ -58,19 +60,19 @@ class WebhookPullRequestLabeled(GitHubModel): ) -class WebhookPullRequestLabeledPropPullRequest(GitHubModel): +class WebhookPullRequestAssignedPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestLabeledPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestAssignedPropPullRequestPropLinks = Field(alias="_links") active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( - title="User" + assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssignee, None] = ( + Field(title="User") ) assignees: List[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -85,13 +87,13 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( + auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMerge, None] = ( Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) ) - base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() + base: WebhookPullRequestAssignedPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -105,11 +107,11 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() + head: WebhookPullRequestAssignedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: List[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() + labels: List[WebhookPullRequestAssignedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -121,9 +123,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[WebhookPullRequestAssignedPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, None] = ( + milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestone, None] = ( Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -137,13 +139,13 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: List[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -155,12 +157,12 @@ class WebhookPullRequestLabeledPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropUser, None] = Field( + user: Union[WebhookPullRequestAssignedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -188,7 +190,7 @@ class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -216,7 +218,7 @@ class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -229,14 +231,14 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -262,7 +264,7 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -276,7 +278,7 @@ class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -298,13 +300,11 @@ class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -314,7 +314,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -330,7 +330,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -358,7 +358,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -388,7 +388,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -416,98 +416,98 @@ class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" +class WebhookPullRequestAssignedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropLinks""" - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropBase""" +class WebhookPullRequestAssignedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( - title="User" + user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -533,7 +533,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -616,7 +616,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -637,10 +637,10 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -688,7 +688,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -698,7 +698,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHub url: Union[str, None] = Field() -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -724,10 +724,10 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubMo url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -736,21 +736,21 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLabeledPropPullRequestPropHead""" +class WebhookPullRequestAssignedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAssignedPropPullRequestPropHead""" label: Union[str, None] = Field() ref: str = Field() - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( - title="Repository", description="A git repository" + repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, None] = Field( - title="User" + user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -833,7 +833,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -854,10 +854,10 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -905,7 +905,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -915,7 +915,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHub url: Union[str, None] = Field() -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -941,10 +941,10 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubMo url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -953,7 +953,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -979,7 +979,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -996,7 +996,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1009,11 +1009,11 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( url: str = Field(description="URL for the team") -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent + """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent """ description: Union[str, None] = Field(description="Description of the team") @@ -1031,7 +1031,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1P url: str = Field(description="URL for the team") -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1048,7 +1048,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubMode node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1062,10 +1062,10 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubMode url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1082,82 +1082,88 @@ 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(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( - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent ) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) __all__ = ( - "WebhookPullRequestLabeled", - "WebhookPullRequestLabeledPropPullRequest", - "WebhookPullRequestLabeledPropPullRequestPropAssignee", - "WebhookPullRequestLabeledPropPullRequestPropAssigneesItems", - "WebhookPullRequestLabeledPropPullRequestPropAutoMerge", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestLabeledPropPullRequestPropLabelsItems", - "WebhookPullRequestLabeledPropPullRequestPropMergedBy", - "WebhookPullRequestLabeledPropPullRequestPropMilestone", - "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestLabeledPropPullRequestPropUser", - "WebhookPullRequestLabeledPropPullRequestPropLinks", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropComments", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestLabeledPropPullRequestPropBase", - "WebhookPullRequestLabeledPropPullRequestPropBasePropUser", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepo", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestLabeledPropPullRequestPropHead", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropUser", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestAssigned", + "WebhookPullRequestAssignedPropPullRequest", + "WebhookPullRequestAssignedPropPullRequestPropAssignee", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItems", + "WebhookPullRequestAssignedPropPullRequestPropAutoMerge", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItems", + "WebhookPullRequestAssignedPropPullRequestPropMergedBy", + "WebhookPullRequestAssignedPropPullRequestPropMilestone", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAssignedPropPullRequestPropUser", + "WebhookPullRequestAssignedPropPullRequestPropLinks", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAssignedPropPullRequestPropBase", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUser", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepo", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropHead", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUser", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0638.py b/githubkit/versions/v2022_11_28/models/group_0638.py index af05b04e5..627ace40e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0638.py +++ b/githubkit/versions/v2022_11_28/models/group_0638.py @@ -18,17 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestLocked(GitHubModel): - """pull_request locked event""" +class WebhookPullRequestAutoMergeDisabled(GitHubModel): + """pull_request auto_merge_disabled event""" - action: Literal["locked"] = Field() + action: Literal["auto_merge_disabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,13 +39,16 @@ class WebhookPullRequestLocked(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: WebhookPullRequestLockedPropPullRequest = Field(title="Pull Request") + 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.", @@ -56,19 +59,23 @@ class WebhookPullRequestLocked(GitHubModel): ) -class WebhookPullRequestLockedPropPullRequest(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestLockedPropPullRequestPropLinks = 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[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( - title="User" - ) + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee, None + ] = Field(title="User") assignees: List[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems, None + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -83,13 +90,13 @@ class WebhookPullRequestLockedPropPullRequest(GitHubModel): 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.", - ) + auto_merge: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestLockedPropPullRequestPropBase = Field() + base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -103,11 +110,13 @@ class WebhookPullRequestLockedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestLockedPropPullRequestPropHead = Field() + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: List[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() + labels: List[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems] = ( + Field() + ) locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -119,13 +128,13 @@ class WebhookPullRequestLockedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy, None] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, 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( @@ -135,13 +144,13 @@ class WebhookPullRequestLockedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: List[ Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -153,12 +162,12 @@ class WebhookPullRequestLockedPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( - title="User" + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -184,7 +193,7 @@ class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -206,13 +215,11 @@ class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(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 WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -225,14 +232,17 @@ class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -258,7 +268,7 @@ class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubMo url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -272,7 +282,7 @@ class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -294,13 +304,11 @@ class WebhookPullRequestLockedPropPullRequestPropMergedBy(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 WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -310,7 +318,7 @@ class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -326,7 +334,9 @@ class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -352,7 +362,7 @@ class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubMode url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -382,7 +392,7 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -410,96 +420,108 @@ class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits = ( + Field(title="Link") + ) + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml = Field( title="Link" ) - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -525,7 +547,7 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -587,14 +609,14 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(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() @@ -608,7 +630,8 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense, 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( @@ -629,10 +652,11 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -680,7 +704,9 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -690,7 +716,9 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubM url: Union[str, None] = Field() -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -716,10 +744,12 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -728,21 +758,47 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestLockedPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -825,7 +881,8 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense, 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( @@ -846,10 +903,11 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -897,7 +955,9 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -907,7 +967,9 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubM url: Union[str, None] = Field() -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -933,10 +995,12 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -945,33 +1009,7 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( 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) - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -988,7 +1026,7 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1001,11 +1039,11 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( url: str = Field(description="URL for the team") -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1023,7 +1061,9 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Pr url: str = Field(description="URL for the team") -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1040,7 +1080,7 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1054,10 +1094,12 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1074,82 +1116,108 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( 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(WebhookPullRequestAutoMergeDisabled) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequest) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent ) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) -model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) __all__ = ( - "WebhookPullRequestLocked", - "WebhookPullRequestLockedPropPullRequest", - "WebhookPullRequestLockedPropPullRequestPropAssignee", - "WebhookPullRequestLockedPropPullRequestPropAssigneesItems", - "WebhookPullRequestLockedPropPullRequestPropAutoMerge", - "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestLockedPropPullRequestPropLabelsItems", - "WebhookPullRequestLockedPropPullRequestPropMergedBy", - "WebhookPullRequestLockedPropPullRequestPropMilestone", - "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestLockedPropPullRequestPropUser", - "WebhookPullRequestLockedPropPullRequestPropLinks", - "WebhookPullRequestLockedPropPullRequestPropLinksPropComments", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestLockedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestLockedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestLockedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestLockedPropPullRequestPropBase", - "WebhookPullRequestLockedPropPullRequestPropBasePropUser", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepo", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestLockedPropPullRequestPropHead", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestLockedPropPullRequestPropHeadPropUser", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestAutoMergeDisabled", + "WebhookPullRequestAutoMergeDisabledPropPullRequest", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssignee", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMerge", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedBy", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestone", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropComments", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepo", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUser", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0639.py b/githubkit/versions/v2022_11_28/models/group_0639.py index e58b26531..7f0f77c0a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0639.py +++ b/githubkit/versions/v2022_11_28/models/group_0639.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,46 +18,1198 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0033 import Milestone -from .group_0367 import EnterpriseWebhooks -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0407 import WebhooksPullRequest5 -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestMilestoned(GitHubModel): - """pull_request milestoned event""" +class WebhookPullRequestAutoMergeEnabled(GitHubModel): + """pull_request auto_merge_enabled event""" - action: Literal["milestoned"] = Field() + action: Literal["auto_merge_enabled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - 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: WebhookPullRequestAutoMergeEnabledPropPullRequest = Field( + title="Pull Request" + ) + reason: Missing[str] = Field(default=UNSET) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestMilestoned) +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) + + +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) + + +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) + + +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) + + +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) + + +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) + + +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) + + +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 has been deprecated. 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) + + +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) + + +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 has been deprecated. 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) + + +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 +) -__all__ = ("WebhookPullRequestMilestoned",) +__all__ = ( + "WebhookPullRequestAutoMergeEnabled", + "WebhookPullRequestAutoMergeEnabledPropPullRequest", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssignee", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMerge", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedBy", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestone", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinks", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropComments", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBase", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepo", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHead", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUser", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0640.py b/githubkit/versions/v2022_11_28/models/group_0640.py index eac2b2101..ffe905887 100644 --- a/githubkit/versions/v2022_11_28/models/group_0640.py +++ b/githubkit/versions/v2022_11_28/models/group_0640.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0405 import PullRequestWebhook -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0411 import PullRequestWebhook +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestOpened(GitHubModel): - """pull_request opened event""" +class WebhookPullRequestClosed(GitHubModel): + """pull_request closed event""" - action: Literal["opened"] = Field() + action: Literal["closed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -56,6 +56,6 @@ class WebhookPullRequestOpened(GitHubModel): ) -model_rebuild(WebhookPullRequestOpened) +model_rebuild(WebhookPullRequestClosed) -__all__ = ("WebhookPullRequestOpened",) +__all__ = ("WebhookPullRequestClosed",) diff --git a/githubkit/versions/v2022_11_28/models/group_0641.py b/githubkit/versions/v2022_11_28/models/group_0641.py index ad0fdffb8..7c544dee2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0641.py +++ b/githubkit/versions/v2022_11_28/models/group_0641.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0405 import PullRequestWebhook -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0411 import PullRequestWebhook +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestReadyForReview(GitHubModel): - """pull_request ready_for_review event""" +class WebhookPullRequestConvertedToDraft(GitHubModel): + """pull_request converted_to_draft event""" - action: Literal["ready_for_review"] = Field() + action: Literal["converted_to_draft"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -56,6 +56,6 @@ class WebhookPullRequestReadyForReview(GitHubModel): ) -model_rebuild(WebhookPullRequestReadyForReview) +model_rebuild(WebhookPullRequestConvertedToDraft) -__all__ = ("WebhookPullRequestReadyForReview",) +__all__ = ("WebhookPullRequestConvertedToDraft",) diff --git a/githubkit/versions/v2022_11_28/models/group_0642.py b/githubkit/versions/v2022_11_28/models/group_0642.py index 9106be931..79d30c744 100644 --- a/githubkit/versions/v2022_11_28/models/group_0642.py +++ b/githubkit/versions/v2022_11_28/models/group_0642.py @@ -17,27 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0405 import PullRequestWebhook -from .group_0369 import OrganizationSimpleWebhooks +from .group_0037 import Milestone +from .group_0372 import EnterpriseWebhooks +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0413 import WebhooksPullRequest5 +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestReopened(GitHubModel): - """pull_request reopened event""" +class WebhookPullRequestDemilestoned(GitHubModel): + """pull_request demilestoned event""" - action: Literal["reopened"] = 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)."\n', ) - 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,17 +45,18 @@ class WebhookPullRequestReopened(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `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: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookPullRequestReopened) +model_rebuild(WebhookPullRequestDemilestoned) -__all__ = ("WebhookPullRequestReopened",) +__all__ = ("WebhookPullRequestDemilestoned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0643.py b/githubkit/versions/v2022_11_28/models/group_0643.py index 964e1390f..1bffb33bf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0643.py +++ b/githubkit/versions/v2022_11_28/models/group_0643.py @@ -18,21 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewCommentCreated(GitHubModel): - """pull_request_review_comment created event""" +class WebhookPullRequestDequeued(GitHubModel): + """pull_request dequeued event""" - action: Literal["created"] = Field() - comment: WebhookPullRequestReviewCommentCreatedPropComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", - ) + action: Literal["dequeued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,12 +39,16 @@ class WebhookPullRequestReviewCommentCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `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: WebhookPullRequestDequeuedPropPullRequest = 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.", @@ -59,186 +59,19 @@ class WebhookPullRequestReviewCommentCreated(GitHubModel): ) -class WebhookPullRequestReviewCommentCreatedPropComment(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: WebhookPullRequestReviewCommentCreatedPropCommentPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewCommentCreatedPropCommentPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[WebhookPullRequestReviewCommentCreatedPropCommentPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(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 WebhookPullRequestReviewCommentCreatedPropCommentPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf = Field( - alias="self", title="Link" - ) - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequest""" +class WebhookPullRequestDequeuedPropPullRequest(GitHubModel): + """Pull Request""" - links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks = Field( - alias="_links" - ) + links: WebhookPullRequestDequeuedPropPullRequestPropLinks = Field(alias="_links") active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, None - ] = Field(title="User") + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) assignees: List[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, - None, - ] + Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -253,63 +86,82 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", + auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) ) - base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase = Field() + base: WebhookPullRequestDequeuedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestDequeuedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems - ] = 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() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[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() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: List[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestDequeuedPropPullRequestPropUser, None] = Field( + title="User" ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestDequeuedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -331,15 +183,11 @@ 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) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -361,13 +209,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 WebhookPullRequestDequeuedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -380,17 +226,14 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubM description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -416,7 +259,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnab url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestDequeuedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -430,7 +273,33 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubModel): +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) + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -440,8 +309,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -457,9 +325,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator( - GitHubModel -): +class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -487,7 +353,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCrea url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -511,13 +377,11 @@ 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) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestDequeuedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -545,116 +409,98 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" +class WebhookPullRequestDequeuedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" +class WebhookPullRequestDequeuedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestDequeuedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -680,9 +526,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -765,8 +609,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, - None, + 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( @@ -787,11 +630,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -839,9 +681,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -851,9 +691,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -879,12 +717,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropO url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -893,23 +729,47 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" +class WebhookPullRequestDequeuedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestDequeuedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( - GitHubModel -): +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) + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -976,8 +836,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() @@ -992,8 +852,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, - None, + 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( @@ -1014,11 +873,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -1066,9 +924,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -1078,9 +934,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -1106,12 +960,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropO url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -1120,35 +972,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1157,32 +981,35 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer """ deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) id: int = Field(description="Unique identifier of the team") - members_url: str = Field() + members_url: Missing[str] = Field(default=UNSET) name: str = Field(description="Name of the team") - node_id: str = Field() + node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, 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 WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent """ description: Union[str, None] = Field(description="Description of the team") @@ -1200,9 +1027,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1219,7 +1044,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1233,12 +1058,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ + """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1255,126 +1078,88 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewCommentCreated) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropComment) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropReactions) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinks) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser) +model_rebuild(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( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 + 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( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewCommentCreated", - "WebhookPullRequestReviewCommentCreatedPropComment", - "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", - "WebhookPullRequestReviewCommentCreatedPropCommentPropUser", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinks", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf", - "WebhookPullRequestReviewCommentCreatedPropPullRequest", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestDequeued", + "WebhookPullRequestDequeuedPropPullRequest", + "WebhookPullRequestDequeuedPropPullRequestPropAssignee", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItems", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMerge", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestDequeuedPropPullRequestPropLabelsItems", + "WebhookPullRequestDequeuedPropPullRequestPropMergedBy", + "WebhookPullRequestDequeuedPropPullRequestPropMilestone", + "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestDequeuedPropPullRequestPropUser", + "WebhookPullRequestDequeuedPropPullRequestPropLinks", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropComments", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestDequeuedPropPullRequestPropBase", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropUser", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepo", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestDequeuedPropPullRequestPropHead", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUser", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0644.py b/githubkit/versions/v2022_11_28/models/group_0644.py index 465df1eb9..85e16d84f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0644.py +++ b/githubkit/versions/v2022_11_28/models/group_0644.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,21 +17,20 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0408 import WebhooksReviewComment -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0411 import PullRequestWebhook +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewCommentDeleted(GitHubModel): - """pull_request_review_comment deleted event""" +class WebhookPullRequestEdited(GitHubModel): + """pull_request edited event""" - action: Literal["deleted"] = Field() - comment: WebhooksReviewComment = Field( - title="Pull Request Review Comment", - description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + action: Literal["edited"] = Field() + changes: WebhookPullRequestEditedPropChanges = Field( + description="The changes to the comment if the action was `edited`." ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, @@ -44,1156 +42,86 @@ class WebhookPullRequestReviewCommentDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequest = Field() + pull_request: 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: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() - body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() - comments_url: str = Field() - commits_url: str = Field() - created_at: str = Field() - diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field() - patch_url: str = Field() - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() - statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() - url: str = Field() - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" +class WebhookPullRequestEditedPropChanges(GitHubModel): + """WebhookPullRequestEditedPropChanges - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): - """Milestone - - A collection of related issues and pull requests. + The changes to the comment if the action was `edited`. """ - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" + base: Missing[WebhookPullRequestEditedPropChangesPropBase] = Field(default=UNSET) + body: Missing[WebhookPullRequestEditedPropChangesPropBody] = Field(default=UNSET) + title: Missing[WebhookPullRequestEditedPropChangesPropTitle] = Field(default=UNSET) - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) +class WebhookPullRequestEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBody""" -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( - title="Link" + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", ) -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" +class WebhookPullRequestEditedPropChangesPropTitle(GitHubModel): + """WebhookPullRequestEditedPropChangesPropTitle""" - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" + from_: str = Field( + alias="from", + description="The previous version of the title if the action was `edited`.", ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None - ] = Field(title="User") -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( - GitHubModel -): - """User""" +class WebhookPullRequestEditedPropChangesPropBase(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBase""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + ref: WebhookPullRequestEditedPropChangesPropBasePropRef = Field() + sha: WebhookPullRequestEditedPropChangesPropBasePropSha = Field() -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository +class WebhookPullRequestEditedPropChangesPropBasePropRef(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropRef""" - A git repository - """ + from_: str = Field(alias="from") - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. 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 WebhookPullRequestEditedPropChangesPropBasePropSha(GitHubModel): + """WebhookPullRequestEditedPropChangesPropBasePropSha""" -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" + from_: str = Field(alias="from") - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") - sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewCommentDeleted) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestEdited) +model_rebuild(WebhookPullRequestEditedPropChanges) +model_rebuild(WebhookPullRequestEditedPropChangesPropBody) +model_rebuild(WebhookPullRequestEditedPropChangesPropTitle) +model_rebuild(WebhookPullRequestEditedPropChangesPropBase) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropRef) +model_rebuild(WebhookPullRequestEditedPropChangesPropBasePropSha) __all__ = ( - "WebhookPullRequestReviewCommentDeleted", - "WebhookPullRequestReviewCommentDeletedPropPullRequest", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestEdited", + "WebhookPullRequestEditedPropChanges", + "WebhookPullRequestEditedPropChangesPropBody", + "WebhookPullRequestEditedPropChangesPropTitle", + "WebhookPullRequestEditedPropChangesPropBase", + "WebhookPullRequestEditedPropChangesPropBasePropRef", + "WebhookPullRequestEditedPropChangesPropBasePropSha", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0645.py b/githubkit/versions/v2022_11_28/models/group_0645.py index 0a10bcdd0..bc901f09a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0645.py +++ b/githubkit/versions/v2022_11_28/models/group_0645.py @@ -18,24 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0387 import WebhooksChanges -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0408 import WebhooksReviewComment -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewCommentEdited(GitHubModel): - """pull_request_review_comment edited event""" +class WebhookPullRequestEnqueued(GitHubModel): + """pull_request enqueued 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["enqueued"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -46,12 +39,15 @@ class WebhookPullRequestReviewCommentEdited(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field() organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `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: 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.", @@ -62,22 +58,19 @@ class WebhookPullRequestReviewCommentEdited(GitHubModel): ) -class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" +class WebhookPullRequestEnqueuedPropPullRequest(GitHubModel): + """Pull Request""" - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( - alias="_links" - ) + links: WebhookPullRequestEnqueuedPropPullRequestPropLinks = Field(alias="_links") active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None - ] = Field(title="User") + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) assignees: List[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None - ] + Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -92,63 +85,82 @@ class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Missing[ - Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] - ] = Field( - default=UNSET, - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", + auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) ) - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() + base: WebhookPullRequestEnqueuedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) diff_url: str = Field() - draft: Missing[bool] = Field(default=UNSET) - head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = 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[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems - ] = Field() + labels: List[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) ) node_id: str = Field() - number: int = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: List[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUser, None] = Field( + title="User" ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -174,9 +186,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -202,7 +212,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -215,17 +225,14 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubMo description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, - None, + WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -251,7 +258,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabl url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -265,7 +272,33 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHub url: str = Field(description="URL for the label") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -275,8 +308,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubMo closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, - None, + WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -292,9 +324,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubMo url: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -322,7 +352,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreat url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -350,7 +380,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -378,114 +408,98 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" +class WebhookPullRequestEnqueuedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( - Field(title="Link") + issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue = Field( + title="Link" ) - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") + self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" ) - statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" +class WebhookPullRequestEnqueuedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -511,7 +525,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHu url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -594,8 +608,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHu language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, - None, + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -616,11 +629,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHu open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, - None, + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -668,9 +680,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHu ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -680,9 +690,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLi url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -708,12 +716,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOw url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ + """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -722,21 +728,47 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPe triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" +class WebhookPullRequestEnqueuedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestEnqueuedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + 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) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -819,8 +851,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHu language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, - None, + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense, None ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -841,11 +872,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHu open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, - None, + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -893,9 +923,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHu ) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -905,9 +933,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLi url: Union[str, None] = Field() -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -933,12 +959,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOw url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ + """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -947,33 +971,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPe triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -992,7 +990,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1006,11 +1004,11 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent """ description: Union[str, None] = Field(description="Description of the team") @@ -1028,9 +1026,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers url: str = Field(description="URL for the team") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1047,7 +1043,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1061,12 +1057,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent - """ + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1083,108 +1077,88 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewCommentEdited) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequest) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) +model_rebuild(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( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 + 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( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewCommentEdited", - "WebhookPullRequestReviewCommentEditedPropPullRequest", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBase", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHead", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestEnqueued", + "WebhookPullRequestEnqueuedPropPullRequest", + "WebhookPullRequestEnqueuedPropPullRequestPropAssignee", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItems", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMerge", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItems", + "WebhookPullRequestEnqueuedPropPullRequestPropMergedBy", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestone", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestEnqueuedPropPullRequestPropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropLinks", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropComments", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestEnqueuedPropPullRequestPropBase", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepo", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestEnqueuedPropPullRequestPropHead", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUser", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0646.py b/githubkit/versions/v2022_11_28/models/group_0646.py index 0006c168d..959b3a6ce 100644 --- a/githubkit/versions/v2022_11_28/models/group_0646.py +++ b/githubkit/versions/v2022_11_28/models/group_0646.py @@ -18,17 +18,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0388 import WebhooksLabel +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewDismissed(GitHubModel): - """pull_request_review dismissed event""" +class WebhookPullRequestLabeled(GitHubModel): + """pull_request labeled event""" - action: Literal["dismissed"] = Field() + action: Literal["labeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,125 +40,37 @@ class WebhookPullRequestReviewDismissed(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + 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: WebhookPullRequestReviewDismissedPropPullRequest = Field( - title="Simple 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.", ) - review: WebhookPullRequestReviewDismissedPropReview = Field( - description="The review that was affected." - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -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""" +class WebhookPullRequestLabeledPropPullRequest(GitHubModel): + """Pull Request""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewDismissedPropReviewPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropReviewPropLinks""" - - html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml = Field( - title="Link" - ) - pull_request: WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest = Field( - title="Link" - ) - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest(GitHubModel): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinks = Field( - alias="_links" - ) + links: WebhookPullRequestLabeledPropPullRequestPropLinks = Field(alias="_links") active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None - ] = Field(title="User") + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssignee, None] = Field( + title="User" + ) assignees: List[ - Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -172,62 +85,82 @@ class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) ) - base: WebhookPullRequestReviewDismissedPropPullRequestPropBase = Field() + base: WebhookPullRequestLabeledPropPullRequestPropBase = Field() body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestLabeledPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: List[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( - Field() - ) + labels: List[WebhookPullRequestLabeledPropPullRequestPropLabelsItems] = Field() locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestLabeledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) ) node_id: str = Field() - number: int = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: List[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( + user: Union[WebhookPullRequestLabeledPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -255,7 +188,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -283,7 +216,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -296,16 +229,14 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel) description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -331,7 +262,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -345,7 +276,35 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubMode url: str = Field(description="URL for the label") -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLabeledPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -355,7 +314,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel) closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -371,9 +330,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel) url: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -395,11 +352,13 @@ 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) -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -429,7 +388,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -457,106 +416,98 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" +class WebhookPullRequestLabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( - Field(title="Link") + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropComments = Field( + title="Link" ) - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( - Field(title="Link") + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits = Field( + title="Link" ) - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses = Field( + title="Link" ) -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" +class WebhookPullRequestLabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -582,7 +533,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -665,8 +616,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, - 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( @@ -687,10 +637,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -738,9 +688,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubMod ) -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -750,9 +698,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -778,10 +724,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -790,21 +736,21 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" +class WebhookPullRequestLabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLabeledPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None - ] = Field(title="Repository", description="A git repository") + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo, None] = Field( + title="Repository", description="A git repository" + ) sha: str = Field() - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUser, None] = Field( + title="User" + ) -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -887,8 +833,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, - 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( @@ -909,10 +854,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -960,9 +905,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubMod ) -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -972,9 +915,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -1000,10 +941,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -1012,7 +953,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -1038,7 +979,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1055,7 +996,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1068,11 +1009,11 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent """ description: Union[str, None] = Field(description="Description of the team") @@ -1090,9 +1031,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( - GitHubModel -): +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1109,7 +1048,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1123,12 +1062,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1145,110 +1082,82 @@ 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( - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) +model_rebuild(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( - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent) __all__ = ( - "WebhookPullRequestReviewDismissed", - "WebhookPullRequestReviewDismissedPropReview", - "WebhookPullRequestReviewDismissedPropReviewPropUser", - "WebhookPullRequestReviewDismissedPropReviewPropLinks", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest", - "WebhookPullRequestReviewDismissedPropPullRequest", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssignee", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestone", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewDismissedPropPullRequestPropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinks", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewDismissedPropPullRequestPropBase", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewDismissedPropPullRequestPropHead", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestLabeled", + "WebhookPullRequestLabeledPropPullRequest", + "WebhookPullRequestLabeledPropPullRequestPropAssignee", + "WebhookPullRequestLabeledPropPullRequestPropAssigneesItems", + "WebhookPullRequestLabeledPropPullRequestPropAutoMerge", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestLabeledPropPullRequestPropLabelsItems", + "WebhookPullRequestLabeledPropPullRequestPropMergedBy", + "WebhookPullRequestLabeledPropPullRequestPropMilestone", + "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestLabeledPropPullRequestPropUser", + "WebhookPullRequestLabeledPropPullRequestPropLinks", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropComments", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestLabeledPropPullRequestPropBase", + "WebhookPullRequestLabeledPropPullRequestPropBasePropUser", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepo", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestLabeledPropPullRequestPropHead", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropUser", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0647.py b/githubkit/versions/v2022_11_28/models/group_0647.py index ce0ae3e5c..8c4ba3058 100644 --- a/githubkit/versions/v2022_11_28/models/group_0647.py +++ b/githubkit/versions/v2022_11_28/models/group_0647.py @@ -18,19 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0409 import WebhooksReview -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewEdited(GitHubModel): - """pull_request_review edited event""" +class WebhookPullRequestLocked(GitHubModel): + """pull_request locked event""" - action: Literal["edited"] = Field() - changes: WebhookPullRequestReviewEditedPropChanges = Field() + action: Literal["locked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,56 +39,36 @@ 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: 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.", ) - review: WebhooksReview = Field(description="The review that was affected.") sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestReviewEditedPropChanges(GitHubModel): - """WebhookPullRequestReviewEditedPropChanges""" - - body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( - default=UNSET - ) - - -class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): - """WebhookPullRequestReviewEditedPropChangesPropBody""" - - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) +class WebhookPullRequestLockedPropPullRequest(GitHubModel): + """Pull Request""" - -class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): - """Simple Pull Request""" - - links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = Field( - alias="_links" - ) + links: WebhookPullRequestLockedPropPullRequestPropLinks = 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[WebhookPullRequestLockedPropPullRequestPropAssignee, None] = Field( + title="User" ) assignees: List[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -105,60 +83,82 @@ class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) ) - base: WebhookPullRequestReviewEditedPropPullRequestPropBase = Field() + base: WebhookPullRequestLockedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - closed_at: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewEditedPropPullRequestPropHead = 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[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = Field() + labels: List[WebhookPullRequestLockedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) merge_commit_sha: Union[str, None] = Field() - merged_at: Union[str, None] = Field() - milestone: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestLockedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) ) node_id: str = Field() - number: int = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: List[ Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) statuses_url: str = Field() - title: str = Field() - updated_at: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( + user: Union[WebhookPullRequestLockedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -180,13 +180,11 @@ 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) -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -214,7 +212,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubMode url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -227,16 +225,14 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -262,7 +258,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -276,7 +272,35 @@ class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestLockedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -286,7 +310,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -302,9 +326,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -326,13 +348,11 @@ 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) -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -362,7 +382,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -390,102 +410,96 @@ class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" +class WebhookPullRequestLockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( - Field(title="Link") - ) - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropComments = Field( title="Link" ) - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtml = Field(title="Link") + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses = Field( + title="Link" ) -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" +class WebhookPullRequestLockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUser, None] = Field( + title="User" ) -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -511,7 +525,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -578,6 +592,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() @@ -591,9 +608,17 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel) language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense, 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( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default 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() @@ -604,10 +629,10 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel) open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -616,6 +641,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:\n\n- `PR_BODY` - default 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() @@ -630,14 +667,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 has been deprecated. 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( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -647,9 +690,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -675,10 +716,10 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -687,21 +728,21 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissio triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" +class WebhookPullRequestLockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestLockedPropPullRequestPropHead""" - label: str = Field() + label: Union[str, None] = Field() ref: str = Field() - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepo, None] = Field( + title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUser, None] = Field( + title="User" ) -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -768,6 +809,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() @@ -781,9 +825,17 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel) language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense, 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( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default 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() @@ -794,10 +846,10 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel) open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -806,6 +858,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() @@ -820,14 +884,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 has been deprecated. 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( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): """License""" key: str = Field() @@ -837,9 +907,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -865,10 +933,10 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -877,7 +945,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissio triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -903,7 +971,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser(GitHubModel) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -920,7 +988,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -933,11 +1001,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn url: str = Field(description="URL for the team") -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt """ description: Union[str, None] = Field(description="Description of the team") @@ -955,7 +1023,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn url: str = Field(description="URL for the team") -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -972,7 +1040,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHu node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -986,10 +1054,10 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHu url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1006,94 +1074,82 @@ 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( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) +model_rebuild(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( - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent) __all__ = ( - "WebhookPullRequestReviewEdited", - "WebhookPullRequestReviewEditedPropChanges", - "WebhookPullRequestReviewEditedPropChangesPropBody", - "WebhookPullRequestReviewEditedPropPullRequest", - "WebhookPullRequestReviewEditedPropPullRequestPropAssignee", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestone", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewEditedPropPullRequestPropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropLinks", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewEditedPropPullRequestPropBase", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewEditedPropPullRequestPropHead", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestLocked", + "WebhookPullRequestLockedPropPullRequest", + "WebhookPullRequestLockedPropPullRequestPropAssignee", + "WebhookPullRequestLockedPropPullRequestPropAssigneesItems", + "WebhookPullRequestLockedPropPullRequestPropAutoMerge", + "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestLockedPropPullRequestPropLabelsItems", + "WebhookPullRequestLockedPropPullRequestPropMergedBy", + "WebhookPullRequestLockedPropPullRequestPropMilestone", + "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestLockedPropPullRequestPropUser", + "WebhookPullRequestLockedPropPullRequestPropLinks", + "WebhookPullRequestLockedPropPullRequestPropLinksPropComments", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestLockedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestLockedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestLockedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestLockedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestLockedPropPullRequestPropBase", + "WebhookPullRequestLockedPropPullRequestPropBasePropUser", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepo", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestLockedPropPullRequestPropHead", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestLockedPropPullRequestPropHeadPropUser", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0648.py b/githubkit/versions/v2022_11_28/models/group_0648.py index bf0d54473..1a269027f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0648.py +++ b/githubkit/versions/v2022_11_28/models/group_0648.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,26 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0037 import Milestone +from .group_0372 import EnterpriseWebhooks +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0413 import WebhooksPullRequest5 +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookPullRequestMilestoned(GitHubModel): + """pull_request milestoned event""" - action: Literal["review_request_removed"] = 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)."\n', ) - 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,1261 +45,18 @@ class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest = Field( - title="Pull Request" - ) + pull_request: 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.", ) - requested_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None - ] = Field(title="User") - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, - None, - ] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( - GitHubModel -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( - GitHubModel -): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( - GitHubModel -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title.", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestMilestoned) -__all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof0", - "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookPullRequestMilestoned",) diff --git a/githubkit/versions/v2022_11_28/models/group_0649.py b/githubkit/versions/v2022_11_28/models/group_0649.py index 0a1088569..15b75b67d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0649.py +++ b/githubkit/versions/v2022_11_28/models/group_0649.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,17 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0411 import PullRequestWebhook +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookPullRequestOpened(GitHubModel): + """pull_request opened event""" - action: Literal["review_request_removed"] = Field() + action: Literal["opened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,1286 +45,17 @@ class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest = Field( - title="Pull Request" - ) + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, - None, - ] - ] = Field() - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() - body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) - comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) - commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) - diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, - None, - ] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None - ] = Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) - node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) - patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems - ] = Field() - review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) - review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) - statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() - url: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( - GitHubModel -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] = Field( - description="Commit message for the merge commit." - ) - commit_title: Union[str, None] = Field( - description="Title for the merge commit message." - ) - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( - GitHubModel -): - """Label""" - - color: str = Field( - description="6-character hex code, without the leading #, identifying the color" - ) - default: bool = Field() - description: Union[str, None] = Field() - id: int = Field() - name: str = Field(description="The name of the label.") - node_id: str = Field() - url: str = Field(description="URL for the label") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( - GitHubModel -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] = Field() - closed_issues: int = Field() - created_at: datetime = Field() - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, - None, - ] = Field(title="User") - description: Union[str, None] = Field() - due_on: Union[datetime, None] = Field() - html_url: str = Field() - id: int = Field() - labels_url: str = Field() - node_id: str = Field() - number: int = Field(description="The number of the milestone.") - open_issues: int = Field() - state: Literal["open", "closed"] = Field(description="The state of the milestone.") - title: str = Field(description="The title of the milestone.") - updated_at: datetime = Field() - url: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( - title="Link" - ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( - title="Link" - ) - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, - None, - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( - GitHubModel -): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." - ) - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( - GitHubModel -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - parent: Missing[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, - None, - ] - ] = Field(default=UNSET) - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestOpened) -__all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof1", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookPullRequestOpened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0650.py b/githubkit/versions/v2022_11_28/models/group_0650.py index a2572257d..5d913396a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0650.py +++ b/githubkit/versions/v2022_11_28/models/group_0650.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,17 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0411 import PullRequestWebhook +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewRequestedOneof0(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookPullRequestReadyForReview(GitHubModel): + """pull_request ready_for_review event""" - action: Literal["review_requested"] = Field() + action: Literal["ready_for_review"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,1243 +45,17 @@ 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( - title="Pull Request" - ) + pull_request: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None - ] = Field(title="User") sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = 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: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() - html_url: str = Field() - id: int = Field() - issue_url: str = Field() - labels: List[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems - ] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) - merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems - ] = 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( - 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, - 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = 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 has been deprecated. 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis - sions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = 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 has been deprecated. 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis - sions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, - 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem - sOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, - 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro - pParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewRequestedOneof0) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestReadyForReview) -__all__ = ( - "WebhookPullRequestReviewRequestedOneof0", - "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", - "WebhookPullRequestReviewRequestedOneof0PropPullRequest", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookPullRequestReadyForReview",) diff --git a/githubkit/versions/v2022_11_28/models/group_0651.py b/githubkit/versions/v2022_11_28/models/group_0651.py index 181e70c63..6c706133f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0651.py +++ b/githubkit/versions/v2022_11_28/models/group_0651.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,17 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0411 import PullRequestWebhook +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewRequestedOneof1(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookPullRequestReopened(GitHubModel): + """pull_request reopened event""" - action: Literal["review_requested"] = Field() + action: Literal["reopened"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,1267 +45,17 @@ class WebhookPullRequestReviewRequestedOneof1(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `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: PullRequestWebhook = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeam(GitHubModel): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) - name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) - parent: Missing[ - Union[WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, None] - ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", - ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") - - -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): - """Pull Request""" - - links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks = Field( - alias="_links" - ) - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None - ] = Field(title="User") - assignees: List[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, - 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None - ] = Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = 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: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = 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.", - ) - 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") - milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, - None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, - ] - ] = Field() - requested_teams: List[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems - ] = 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, - None, - ] = Field(title="User") - merge_method: Literal["merge", "squash", "rebase"] = Field( - description="The merge method to use." - ) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( - 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 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) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, - 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( - title="Link" - ) - commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( - title="Link" - ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( - Field(title="Link") - ) - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( - Field(title="Link") - ) - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( - title="Link" - ) - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( - title="Link" - ) - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( - Field(alias="self", title="Link") - ) - statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( - title="Link" - ) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( - GitHubModel -): - """Link""" - - href: str = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( - 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = 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 has been deprecated. 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" - - label: str = Field() - ref: str = Field() - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") - ) - sha: str = Field() - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( - 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, - None, - ] = Field(alias="license", title="License") - master_branch: Missing[str] = Field(default=UNSET) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, - None, - ] = Field(title="User") - permissions: Missing[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions - ] = Field(default=UNSET) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = 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 has been deprecated. 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( - GitHubModel -): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions - """ - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( - 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, - 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( - 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, - 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( - GitHubModel -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent - """ - - description: Union[str, None] = Field(description="Description of the team") - html_url: str = Field() - id: int = Field(description="Unique identifier of the team") - members_url: str = Field() - name: str = Field(description="Name of the team") - node_id: str = Field() - permission: str = Field( - description="Permission that the team will have for its repositories" - ) - privacy: Literal["open", "closed", "secret"] = Field() - repositories_url: str = Field() - slug: str = Field() - url: str = Field(description="URL for the team") - - -model_rebuild(WebhookPullRequestReviewRequestedOneof1) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeam) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequest) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions -) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems -) -model_rebuild( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent -) +model_rebuild(WebhookPullRequestReopened) -__all__ = ( - "WebhookPullRequestReviewRequestedOneof1", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", - "WebhookPullRequestReviewRequestedOneof1PropPullRequest", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", -) +__all__ = ("WebhookPullRequestReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0652.py b/githubkit/versions/v2022_11_28/models/group_0652.py index c2a48db60..6c297ae0a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0652.py +++ b/githubkit/versions/v2022_11_28/models/group_0652.py @@ -18,18 +18,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0409 import WebhooksReview -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewSubmitted(GitHubModel): - """pull_request_review submitted event""" +class WebhookPullRequestReviewCommentCreated(GitHubModel): + """pull_request_review_comment created event""" - action: Literal["submitted"] = 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", @@ -45,34 +48,197 @@ class WebhookPullRequestReviewSubmitted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewSubmittedPropPullRequest = Field( - title="Simple Pull Request" - ) + pull_request: 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.", ) - review: WebhooksReview = Field(description="The review that was affected.") sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): - """Simple Pull Request""" +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) + + +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: WebhookPullRequestReviewSubmittedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() assignee: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: List[ - Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -87,32 +253,33 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge, None] ] = Field( + default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBase = Field() + 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: bool = Field() - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: List[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems] = ( - Field() - ) + labels: List[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -122,13 +289,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: List[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -137,12 +304,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( - title="User" + user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser, None] = ( + Field(title="User") ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -170,7 +337,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -198,7 +367,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -211,14 +380,15 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel) description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -246,7 +416,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -260,7 +430,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(GitHubMode url: str = Field(description="URL for the label") -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -270,7 +440,8 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel) closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -286,7 +457,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(GitHubModel) url: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -316,7 +487,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -346,7 +517,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -374,36 +545,36 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( + comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml = ( Field(title="Link") ) - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( - title="Link" + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") ) - review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( + statuses: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( - alias="self", title="Link" - ) - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( - Field(title="Link") - ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -411,25 +582,31 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -437,7 +614,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -445,13 +622,15 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -459,21 +638,23 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( href: str = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -499,7 +680,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -582,7 +765,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -604,10 +787,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -655,7 +839,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubMod ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -667,7 +851,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -695,10 +879,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -707,21 +893,23 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo, None ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -788,8 +976,8 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod default=True, description="Whether projects are enabled." ) has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - has_discussions: bool = Field( - default=False, description="Whether discussions are enabled." + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." ) homepage: Union[str, None] = Field() hooks_url: str = Field() @@ -804,7 +992,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) @@ -826,10 +1014,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -877,7 +1066,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubMod ) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -889,7 +1078,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] = Field() -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -917,10 +1106,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -929,7 +1120,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermis triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -955,7 +1148,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser(GitHubMod url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -972,7 +1165,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -985,11 +1178,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1007,7 +1200,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str = Field(description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1026,7 +1219,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1040,11 +1233,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen - t + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] = Field(description="Description of the team") @@ -1062,100 +1255,126 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPro url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestReviewSubmitted) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequest) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge) +model_rebuild(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( - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1 ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewSubmitted", - "WebhookPullRequestReviewSubmittedPropPullRequest", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewSubmittedPropPullRequestPropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinks", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBase", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHead", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewCommentCreated", + "WebhookPullRequestReviewCommentCreatedPropComment", + "WebhookPullRequestReviewCommentCreatedPropCommentPropReactions", + "WebhookPullRequestReviewCommentCreatedPropCommentPropUser", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinks", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtml", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequest", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelf", + "WebhookPullRequestReviewCommentCreatedPropPullRequest", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0653.py b/githubkit/versions/v2022_11_28/models/group_0653.py index 231c0bb4f..8306a84b3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0653.py +++ b/githubkit/versions/v2022_11_28/models/group_0653.py @@ -18,17 +18,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0414 import WebhooksReviewComment +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewThreadResolved(GitHubModel): - """pull_request_review_thread resolved event""" +class WebhookPullRequestReviewCommentDeleted(GitHubModel): + """pull_request_review_comment deleted event""" - action: Literal["resolved"] = Field() + action: Literal["deleted"] = Field() + comment: WebhooksReviewComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,36 +49,32 @@ 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( - title="Simple Pull Request" - ) + pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - thread: WebhookPullRequestReviewThreadResolvedPropThread = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): - """Simple Pull Request""" +class WebhookPullRequestReviewCommentDeletedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: List[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems, None, ] ] = Field() @@ -90,32 +91,33 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge, None] ] = Field( + default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() commits_url: str = Field() created_at: str = Field() diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: List[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -125,13 +127,13 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: List[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -140,12 +142,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser, None] = ( Field(title="User") ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -171,7 +173,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubMo url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -199,7 +201,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -212,7 +214,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubM description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -220,7 +222,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubM ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -248,7 +250,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnab url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -262,7 +264,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHu url: str = Field(description="URL for the label") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -272,7 +274,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubM closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -289,7 +291,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubM url: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -317,7 +319,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCrea url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -341,13 +343,11 @@ 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) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -375,36 +375,36 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml = ( Field(title="Link") ) - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf = ( Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -412,7 +412,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -420,7 +420,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -428,7 +428,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -436,7 +436,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -444,7 +444,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -452,7 +452,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -460,7 +460,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -468,21 +468,21 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses href: str = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser( GitHubModel ): """User""" @@ -510,7 +510,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo( GitHubModel ): """Repository @@ -595,10 +595,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -609,11 +617,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -622,6 +630,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -636,6 +656,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -645,7 +669,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -657,7 +681,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -685,10 +709,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropO url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss ions """ @@ -699,21 +723,21 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo, None ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo( GitHubModel ): """Repository @@ -798,10 +822,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -812,11 +844,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -825,6 +857,18 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -839,6 +883,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -848,7 +896,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -860,7 +908,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -888,10 +936,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropO url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss ions """ @@ -902,7 +950,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropP triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser( GitHubModel ): """User""" @@ -930,7 +978,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -939,31 +987,34 @@ 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, + 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 WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems Oneof1PropParent """ @@ -982,7 +1033,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1001,7 +1052,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1015,10 +1066,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp Parent """ @@ -1037,322 +1088,112 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadResolvedPropThread(GitHubModel): - """WebhookPullRequestReviewThreadResolvedPropThread""" - - comments: List[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems - ] = Field() - node_id: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems(GitHubModel): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks = Field( - alias="_links" - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] = Field( - title="AuthorAssociation", - description="How the author is associated with the repository.", - ) - body: str = Field(description="The text of the comment.") - commit_id: str = Field( - description="The SHA of the commit to which the comment applies." - ) - created_at: datetime = Field() - diff_hunk: str = Field( - description="The diff of the line that the comment refers to." - ) - html_url: str = Field(description="HTML URL for the pull request review comment.") - id: int = Field(description="The ID of the pull request review comment.") - in_reply_to_id: Missing[int] = Field( - default=UNSET, description="The comment ID to reply to." - ) - line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - node_id: str = Field(description="The node ID of the pull request review comment.") - original_commit_id: str = Field( - description="The SHA of the original commit to which the comment applies." - ) - original_line: Union[int, None] = Field( - description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" - ) - original_position: int = Field( - description="The index of the original line in the diff to which the comment applies." - ) - original_start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - path: str = Field( - description="The relative path of the file to which the comment applies." - ) - position: Union[int, None] = Field( - description="The line index in the diff to which the comment applies." - ) - pull_request_review_id: Union[int, None] = Field( - description="The ID of the pull request review to which the comment belongs." - ) - pull_request_url: str = Field( - description="URL for the pull request that the review comment belongs to." - ) - reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions = Field( - title="Reactions" - ) - side: Literal["LEFT", "RIGHT"] = Field( - description="The side of the first line of the range for a multi-line comment." - ) - start_line: Union[int, None] = Field( - description="The first line of the range for a multi-line comment." - ) - start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( - default="RIGHT", - description="The side of the first line of the range for a multi-line comment.", - ) - subject_type: Missing[Literal["line", "file"]] = Field( - default=UNSET, - description="The level at which the comment is targeted, can be a diff line or a file.", - ) - updated_at: datetime = Field() - url: str = Field(description="URL for the pull request review comment") - user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser, None - ] = Field(title="User") - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions( - GitHubModel -): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -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(WebhookPullRequestReviewCommentDeleted) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) +model_rebuild(WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewThreadResolved", - "WebhookPullRequestReviewThreadResolvedPropPullRequest", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewThreadResolvedPropThread", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", + "WebhookPullRequestReviewCommentDeleted", + "WebhookPullRequestReviewCommentDeletedPropPullRequest", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0654.py b/githubkit/versions/v2022_11_28/models/group_0654.py index 30b8f038e..7d5833440 100644 --- a/githubkit/versions/v2022_11_28/models/group_0654.py +++ b/githubkit/versions/v2022_11_28/models/group_0654.py @@ -18,17 +18,24 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0392 import WebhooksChanges +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0414 import WebhooksReviewComment +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestReviewThreadUnresolved(GitHubModel): - """pull_request_review_thread unresolved event""" +class WebhookPullRequestReviewCommentEdited(GitHubModel): + """pull_request_review_comment edited event""" - action: Literal["unresolved"] = Field() + action: Literal["edited"] = Field() + changes: WebhooksChanges = Field(description="The changes to the comment.") + comment: WebhooksReviewComment = Field( + title="Pull Request Review Comment", + description="The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,37 +51,32 @@ class WebhookPullRequestReviewThreadUnresolved(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequest = Field( - title="Simple Pull Request" - ) + pull_request: WebhookPullRequestReviewCommentEditedPropPullRequest = Field() repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): - """Simple Pull Request""" +class WebhookPullRequestReviewCommentEditedPropPullRequest(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" - links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks = Field( alias="_links" ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee, None ] = Field(title="User") assignees: List[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, - None, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems, None ] ] = Field() author_association: Literal[ @@ -90,32 +92,33 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None + auto_merge: Missing[ + Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge, None] ] = Field( + default=UNSET, title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBase = Field() body: Union[str, None] = Field() closed_at: Union[str, None] = Field() comments_url: str = Field() commits_url: str = Field() created_at: str = Field() diff_url: str = Field() - draft: bool = Field() - head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead = Field() + draft: Missing[bool] = Field(default=UNSET) + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() labels: List[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems ] = Field() locked: bool = Field() merge_commit_sha: Union[str, None] = Field() merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", @@ -125,13 +128,13 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): patch_url: str = Field() requested_reviewers: List[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments_url: str = Field() @@ -140,12 +143,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): title: str = Field() updated_at: str = Field() url: str = Field() - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, None - ] = Field(title="User") + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUser, None] = ( + Field(title="User") + ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -171,7 +174,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHub url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems( GitHubModel ): """User""" @@ -199,7 +202,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -208,9 +211,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHu commit_message: Union[str, None] = Field( description="Commit message for the merge commit." ) - commit_title: str = Field(description="Title for the merge commit message.") + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) enabled_by: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy, None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( @@ -218,7 +223,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHu ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -246,9 +251,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEn url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -262,7 +265,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( url: str = Field(description="URL for the label") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -272,7 +275,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHu closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator, None, ] = Field(title="User") description: Union[str, None] = Field() @@ -289,7 +292,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHu url: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator( GitHubModel ): """User""" @@ -313,11 +316,13 @@ 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) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -345,7 +350,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -367,40 +372,42 @@ 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) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( - Field(title="Link") + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml = Field( + title="Link" ) - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue = ( Field(title="Link") ) - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf = ( Field(alias="self", title="Link") ) - statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments( GitHubModel ): """Link""" @@ -408,7 +415,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommen href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits( GitHubModel ): """Link""" @@ -416,7 +423,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommit href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml( GitHubModel ): """Link""" @@ -424,7 +431,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue( GitHubModel ): """Link""" @@ -432,7 +439,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -440,7 +447,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -448,7 +455,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf( GitHubModel ): """Link""" @@ -456,7 +463,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses( GitHubModel ): """Link""" @@ -464,23 +471,21 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatus href: str = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser, None ] = Field(title="User") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -506,9 +511,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -591,10 +594,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -605,11 +616,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -618,6 +629,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() @@ -632,6 +655,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 has been deprecated. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -641,7 +668,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -653,7 +680,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -681,11 +708,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons """ admin: bool = Field() @@ -695,51 +722,21 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( - Field(title="Repository", description="A git repository") - ) + repo: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser, None ] = Field(title="User") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( - GitHubModel -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -822,10 +819,18 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense, None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) merges_url: str = Field() milestones_url: str = Field() mirror_url: Union[str, None] = Field() @@ -836,11 +841,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner, None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -849,6 +854,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() @@ -863,6 +880,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 has been deprecated. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -872,7 +893,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -884,7 +905,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: Union[str, None] = Field() -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -912,11 +933,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons """ admin: bool = Field() @@ -926,7 +947,33 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -945,7 +992,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -959,11 +1006,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -981,7 +1028,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: str = Field(description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems( GitHubModel ): """Team @@ -1000,7 +1047,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1014,11 +1061,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent """ description: Union[str, None] = Field(description="Description of the team") @@ -1036,325 +1083,108 @@ 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) - - -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(WebhookPullRequestReviewCommentEdited) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequest) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments ) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense ) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThread) -model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestReviewThreadUnresolved", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent", - "WebhookPullRequestReviewThreadUnresolvedPropThread", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", + "WebhookPullRequestReviewCommentEdited", + "WebhookPullRequestReviewCommentEditedPropPullRequest", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssignee", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestone", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBase", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHead", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0655.py b/githubkit/versions/v2022_11_28/models/group_0655.py index e0a0a7444..02e0d3df8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0655.py +++ b/githubkit/versions/v2022_11_28/models/group_0655.py @@ -18,19 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestSynchronize(GitHubModel): - """pull_request synchronize event""" +class WebhookPullRequestReviewDismissed(GitHubModel): + """pull_request_review dismissed event""" - action: Literal["synchronize"] = Field() - after: str = Field() - before: str = Field() + action: Literal["dismissed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,38 +39,125 @@ class WebhookPullRequestSynchronize(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestSynchronizePropPullRequest = Field( - title="Pull Request" + 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: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): - """Pull Request""" +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) - links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") + +class WebhookPullRequestReviewDismissedPropReviewPropLinks(GitHubModel): + """WebhookPullRequestReviewDismissedPropReviewPropLinks""" + + html: WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml = Field( + title="Link" + ) + pull_request: WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest = Field( + title="Link" + ) + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewDismissedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewDismissedPropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() - additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAssignee, None + ] = Field(title="User") assignees: List[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -88,81 +173,61 @@ class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestSynchronizePropPullRequestPropBase = Field() + base: WebhookPullRequestReviewDismissedPropPullRequestPropBase = Field() body: Union[str, None] = Field() - changed_files: Missing[int] = Field(default=UNSET) - closed_at: Union[datetime, None] = Field() - comments: Missing[int] = Field(default=UNSET) + closed_at: Union[str, None] = Field() comments_url: str = Field() - commits: Missing[int] = Field(default=UNSET) commits_url: str = Field() - created_at: datetime = Field() - deletions: Missing[int] = Field(default=UNSET) + created_at: str = Field() diff_url: str = Field() - draft: bool = Field( - description="Indicates whether or not the pull request is a draft." - ) - head: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() + draft: bool = Field() + head: WebhookPullRequestReviewDismissedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: List[WebhookPullRequestSynchronizePropPullRequestPropLabelsItems] = Field() - locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", + labels: List[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems] = ( + Field() ) + locked: bool = Field() merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestSynchronizePropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") + merged_at: Union[str, None] = Field() milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestone, None + WebhookPullRequestReviewDismissedPropPullRequestPropMilestone, None ] = Field( title="Milestone", description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - description="Number uniquely identifying the pull request within its repository." - ) + number: int = Field() patch_url: str = Field() - rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: List[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() - review_comments: Missing[int] = Field(default=UNSET) review_comments_url: str = Field() - state: Literal["open", "closed"] = Field( - description="State of this Pull Request. Either `open` or `closed`." - ) + state: Literal["open", "closed"] = Field() statuses_url: str = Field() - title: str = Field(description="The title of the pull request.") - updated_at: datetime = Field() + title: str = Field() + updated_at: str = Field() url: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -190,7 +255,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -218,7 +283,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -231,14 +296,14 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -266,7 +331,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -280,33 +345,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -316,7 +355,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -332,7 +371,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -354,13 +395,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHu site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -390,7 +429,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -418,60 +457,62 @@ class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" +class WebhookPullRequestReviewDismissedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( - title="Link" + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments = ( + Field(title="Link") ) - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( - title="Link" + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits = ( + Field(title="Link") ) - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( - title="Link" + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") ) -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -479,7 +520,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -487,33 +528,35 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" +class WebhookPullRequestReviewDismissedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -539,7 +582,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -622,7 +665,8 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -643,10 +687,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -694,7 +738,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -706,7 +750,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): """User""" @@ -734,10 +778,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -746,47 +790,21 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermission triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" +class WebhookPullRequestReviewDismissedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( - title="Repository", description="A git repository" - ) + repo: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") sha: str = Field() - user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) - - -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + user: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -869,14 +887,17 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, description="The default value for a merge commit message." + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default 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() @@ -888,10 +909,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -939,7 +960,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -951,7 +972,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): """User""" @@ -979,10 +1000,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -991,7 +1012,33 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermission triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1008,7 +1055,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1021,11 +1068,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str = Field(description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1043,7 +1090,9 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str = Field(description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. @@ -1060,7 +1109,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHub node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1074,10 +1123,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHub url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1094,92 +1145,110 @@ 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(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( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions ) -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(WebhookPullRequestReviewDismissedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestSynchronize", - "WebhookPullRequestSynchronizePropPullRequest", - "WebhookPullRequestSynchronizePropPullRequestPropAssignee", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMerge", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestSynchronizePropPullRequestPropLabelsItems", - "WebhookPullRequestSynchronizePropPullRequestPropMergedBy", - "WebhookPullRequestSynchronizePropPullRequestPropMilestone", - "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestSynchronizePropPullRequestPropUser", - "WebhookPullRequestSynchronizePropPullRequestPropLinks", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses", - "WebhookPullRequestSynchronizePropPullRequestPropBase", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropUser", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestSynchronizePropPullRequestPropHead", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewDismissed", + "WebhookPullRequestReviewDismissedPropReview", + "WebhookPullRequestReviewDismissedPropReviewPropUser", + "WebhookPullRequestReviewDismissedPropReviewPropLinks", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtml", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequest", + "WebhookPullRequestReviewDismissedPropPullRequest", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssignee", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestone", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewDismissedPropPullRequestPropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinks", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewDismissedPropPullRequestPropBase", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewDismissedPropPullRequestPropHead", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0656.py b/githubkit/versions/v2022_11_28/models/group_0656.py index 4bc10a91a..4b4e85585 100644 --- a/githubkit/versions/v2022_11_28/models/group_0656.py +++ b/githubkit/versions/v2022_11_28/models/group_0656.py @@ -18,21 +18,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0391 import WebhooksUserMannequin -from .group_0369 import OrganizationSimpleWebhooks +from .group_0415 import WebhooksReview +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestUnassigned(GitHubModel): - """pull_request unassigned event""" +class WebhookPullRequestReviewEdited(GitHubModel): + """pull_request_review edited event""" - action: Literal["unassigned"] = Field() - assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( - default=UNSET, title="User" - ) + action: Literal["edited"] = Field() + changes: WebhookPullRequestReviewEditedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,39 +41,56 @@ 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)."', ) - number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestUnassignedPropPullRequest = Field( - title="Pull Request" + pull_request: WebhookPullRequestReviewEditedPropPullRequest = Field( + title="Simple Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + review: WebhooksReview = Field(description="The review that was affected.") + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): - """Pull Request""" +class WebhookPullRequestReviewEditedPropChanges(GitHubModel): + """WebhookPullRequestReviewEditedPropChanges""" + + body: Missing[WebhookPullRequestReviewEditedPropChangesPropBody] = Field( + default=UNSET + ) + + +class WebhookPullRequestReviewEditedPropChangesPropBody(GitHubModel): + """WebhookPullRequestReviewEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookPullRequestReviewEditedPropPullRequest(GitHubModel): + """Simple Pull Request""" - links: WebhookPullRequestUnassignedPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewEditedPropPullRequestPropLinks = 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[WebhookPullRequestReviewEditedPropPullRequestPropAssignee, None] = ( Field(title="User") ) assignees: List[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems, None] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -91,81 +106,59 @@ class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): description="How the author is associated with the repository.", ) auto_merge: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge, None ] = Field( title="PullRequestAutoMerge", description="The status of auto merging a pull request.", ) - base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewEditedPropPullRequestPropBase = 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: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() + draft: bool = Field() + head: WebhookPullRequestReviewEditedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: List[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() + labels: List[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems] = Field() locked: bool = Field() - maintainer_can_modify: Missing[bool] = Field( - default=UNSET, - description="Indicates whether maintainers can modify the pull request.", - ) merge_commit_sha: Union[str, None] = Field() - mergeable: Missing[Union[bool, None]] = Field(default=UNSET) - mergeable_state: Missing[str] = Field(default=UNSET) - merged: Missing[Union[bool, None]] = Field(default=UNSET) - merged_at: Union[datetime, None] = Field() - merged_by: Missing[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] - ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() - number: int = Field( - 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[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems ] = 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[WebhookPullRequestUnassignedPropPullRequestPropUser, None] = Field( + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUser, None] = Field( title="User" ) -class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAssignee(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -193,7 +186,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -221,7 +214,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel) url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge(GitHubModel): """PullRequestAutoMerge The status of auto merging a pull request. @@ -234,14 +227,14 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy, None ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): """User""" @@ -269,7 +262,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems(GitHubModel): """Label""" color: str = Field( @@ -283,35 +276,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( - default=UNSET - ) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropMilestone(GitHubModel): """Milestone A collection of related issues and pull requests. @@ -321,7 +286,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator, None ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -337,7 +302,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -365,7 +332,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHub url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -395,7 +362,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -423,60 +390,60 @@ class WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" +class WebhookPullRequestReviewEditedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( - title="Link" + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments = ( + Field(title="Link") ) - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( - title="Link" + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") ) -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment( GitHubModel ): """Link""" @@ -484,7 +451,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -492,33 +459,33 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses(GitHubModel): """Link""" href: str = Field() -class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" +class WebhookPullRequestReviewEditedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser, None] = ( Field(title="User") ) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -544,7 +511,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo(GitHubModel): """Repository A git repository @@ -611,9 +578,6 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(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() @@ -627,17 +591,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, 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() @@ -648,10 +604,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -660,18 +616,6 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(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() @@ -686,20 +630,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(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 has been deprecated. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -711,7 +647,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -737,10 +675,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHu url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -749,21 +687,21 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" +class WebhookPullRequestReviewEditedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo, None] = ( Field(title="Repository", description="A git repository") ) sha: str = Field() - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser, None] = ( Field(title="User") ) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo(GitHubModel): """Repository A git repository @@ -830,9 +768,6 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(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() @@ -846,17 +781,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, 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() @@ -867,10 +794,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner, None ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -879,18 +806,6 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(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() @@ -905,20 +820,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(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 has been deprecated. Please use `squash_merge_commit_title` instead.", - ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Whether to require contributors to sign off on web-based commits", - ) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -930,7 +837,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -956,10 +865,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHu url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -968,7 +877,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -994,7 +903,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1011,7 +920,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1024,11 +933,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str = Field(description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1046,7 +955,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str = Field(description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems(GitHubModel): """Team Groups of organization members that gives permissions on specified repositories. @@ -1063,7 +972,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubM node_id: Missing[str] = Field(default=UNSET) parent: Missing[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) @@ -1077,10 +986,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubM url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1097,92 +1006,94 @@ 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(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( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0 ) -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(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( - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) -model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) +model_rebuild(WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestUnassigned", - "WebhookPullRequestUnassignedPropPullRequest", - "WebhookPullRequestUnassignedPropPullRequestPropAssignee", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMerge", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnassignedPropPullRequestPropLabelsItems", - "WebhookPullRequestUnassignedPropPullRequestPropMergedBy", - "WebhookPullRequestUnassignedPropPullRequestPropMilestone", - "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnassignedPropPullRequestPropUser", - "WebhookPullRequestUnassignedPropPullRequestPropLinks", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnassignedPropPullRequestPropBase", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropUser", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnassignedPropPullRequestPropHead", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewEdited", + "WebhookPullRequestReviewEditedPropChanges", + "WebhookPullRequestReviewEditedPropChangesPropBody", + "WebhookPullRequestReviewEditedPropPullRequest", + "WebhookPullRequestReviewEditedPropPullRequestPropAssignee", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestone", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewEditedPropPullRequestPropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropLinks", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewEditedPropPullRequestPropBase", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewEditedPropPullRequestPropHead", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0657.py b/githubkit/versions/v2022_11_28/models/group_0657.py index fdaa175d1..567365482 100644 --- a/githubkit/versions/v2022_11_28/models/group_0657.py +++ b/githubkit/versions/v2022_11_28/models/group_0657.py @@ -18,18 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0383 import WebhooksLabel -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestUnlabeled(GitHubModel): - """pull_request unlabeled event""" +class WebhookPullRequestReviewRequestRemovedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["unlabeled"] = Field() + action: Literal["review_request_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,39 +39,72 @@ class WebhookPullRequestUnlabeled(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/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: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest = Field( title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer, None + ] = Field(title="User") sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestUnlabeledPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee, None + ] = Field(title="User") assignees: List[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -87,13 +119,13 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) + auto_merge: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -107,11 +139,13 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: List[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() + labels: List[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -123,13 +157,16 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy, + None, + ] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field( @@ -139,13 +176,13 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: List[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -157,12 +194,14 @@ class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -184,13 +223,13 @@ 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) -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -212,13 +251,13 @@ 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 WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge( + GitHubModel +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -231,14 +270,17 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): description="Title for the merge commit message." ) enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -264,7 +306,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHu url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -278,7 +322,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -304,7 +350,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone( + GitHubModel +): """Milestone A collection of related issues and pull requests. @@ -314,7 +362,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -330,7 +379,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -352,13 +403,11 @@ 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) -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -382,13 +431,11 @@ 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) -class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -410,72 +457,80 @@ 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) -class WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments( GitHubModel ): """Link""" @@ -483,33 +538,40 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser, + None, + ] = Field(title="User") -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -535,7 +597,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -618,7 +682,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, 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( @@ -639,10 +704,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -655,12 +721,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] = Field( default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + description="The default value for a squash merge commit message.", ) squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( Field( default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + description="The default value for a squash merge commit title.", ) ) ssh_url: str = Field() @@ -690,7 +756,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense( GitHubModel ): """License""" @@ -702,7 +768,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -728,10 +796,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHub url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -740,21 +810,52 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - label: Union[str, None] = Field() + label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser, + None, + ] = Field(title="User") -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(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) + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -837,14 +938,17 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, description="The default value for a merge commit message." + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, description="The default value for a merge commit message title." + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", ) merges_url: str = Field() milestones_url: str = Field() @@ -856,10 +960,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -907,7 +1012,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): """License""" @@ -919,7 +1024,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( url: Union[str, None] = Field() -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -945,10 +1052,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHub url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -957,33 +1066,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -1000,7 +1083,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) @@ -1013,11 +1096,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str = Field(description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1035,41 +1118,42 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str = Field(description="URL for the team") -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(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[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, + 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 WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1086,88 +1170,136 @@ 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(WebhookPullRequestReviewRequestRemovedOneof0) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions +) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 ) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropUser) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinks) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBase) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHead) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestUnlabeled", - "WebhookPullRequestUnlabeledPropPullRequest", - "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems", - "WebhookPullRequestUnlabeledPropPullRequestPropMergedBy", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestone", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnlabeledPropPullRequestPropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropLinks", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnlabeledPropPullRequestPropBase", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnlabeledPropPullRequestPropHead", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestRemovedOneof0", + "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewer", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequest", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0658.py b/githubkit/versions/v2022_11_28/models/group_0658.py index cdee94fc1..48b09d32d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0658.py +++ b/githubkit/versions/v2022_11_28/models/group_0658.py @@ -18,17 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPullRequestUnlocked(GitHubModel): - """pull_request unlocked event""" +class WebhookPullRequestReviewRequestRemovedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1""" - action: Literal["unlocked"] = Field() + action: Literal["review_request_removed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,32 +45,89 @@ class WebhookPullRequestUnlocked(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - pull_request: WebhookPullRequestUnlockedPropPullRequest = Field( + pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest = Field( title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest(GitHubModel): """Pull Request""" - links: WebhookPullRequestUnlockedPropPullRequestPropLinks = Field(alias="_links") + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks = Field( + alias="_links" + ) active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] = Field() additions: Missing[int] = Field(default=UNSET) - assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssignee, None] = ( - Field(title="User") - ) + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee, None + ] = Field(title="User") assignees: List[ - Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems, + None, + ] ] = Field() author_association: Literal[ "COLLABORATOR", @@ -85,13 +142,13 @@ class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): title="AuthorAssociation", description="How the author is associated with the repository.", ) - auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMerge, None] = ( - Field( - title="PullRequestAutoMerge", - description="The status of auto merging a pull request.", - ) + auto_merge: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", ) - base: WebhookPullRequestUnlockedPropPullRequestPropBase = Field() + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase = Field() body: Union[str, None] = Field() changed_files: Missing[int] = Field(default=UNSET) closed_at: Union[datetime, None] = Field() @@ -105,11 +162,13 @@ class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): draft: bool = Field( description="Indicates whether or not the pull request is a draft." ) - head: WebhookPullRequestUnlockedPropPullRequestPropHead = Field() + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() issue_url: str = Field() - labels: List[WebhookPullRequestUnlockedPropPullRequestPropLabelsItems] = Field() + labels: List[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems + ] = Field() locked: bool = Field() maintainer_can_modify: Missing[bool] = Field( default=UNSET, @@ -121,13 +180,16 @@ class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): merged: Missing[Union[bool, None]] = Field(default=UNSET) merged_at: Union[datetime, None] = Field() merged_by: Missing[ - Union[WebhookPullRequestUnlockedPropPullRequestPropMergedBy, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy, + None, + ] ] = Field(default=UNSET, title="User") - milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestone, None] = ( - Field( - title="Milestone", - description="A collection of related issues and pull requests.", - ) + milestone: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", ) node_id: str = Field() number: int = Field( @@ -137,13 +199,13 @@ class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) requested_reviewers: List[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, None, - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, ] ] = Field() requested_teams: List[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems ] = Field() review_comment_url: str = Field() review_comments: Missing[int] = Field(default=UNSET) @@ -155,12 +217,14 @@ class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): title: str = Field(description="The title of the pull request.") updated_at: datetime = Field() url: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropUser, None] = Field( - title="User" - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser, None + ] = Field(title="User") -class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -186,7 +250,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssignee(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -212,7 +278,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge( + GitHubModel +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -221,16 +289,21 @@ class WebhookPullRequestUnlockedPropPullRequestPropAutoMerge(GitHubModel): commit_message: Union[str, None] = Field( description="Commit message for the merge commit." ) - commit_title: str = Field(description="Title for the merge commit message.") + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) enabled_by: Union[ - WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy, + None, ] = Field(title="User") merge_method: Literal["merge", "squash", "rebase"] = Field( description="The merge method to use." ) -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -256,7 +329,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy(GitHub url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems( + GitHubModel +): """Label""" color: str = Field( @@ -270,7 +345,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropLabelsItems(GitHubModel): url: str = Field(description="URL for the label") -class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -296,7 +373,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropMergedBy(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone( + GitHubModel +): """Milestone A collection of related issues and pull requests. @@ -306,7 +385,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): closed_issues: int = Field() created_at: datetime = Field() creator: Union[ - WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator, + None, ] = Field(title="User") description: Union[str, None] = Field() due_on: Union[datetime, None] = Field() @@ -322,7 +402,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestone(GitHubModel): url: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -348,7 +430,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator(GitHubMo url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): """User""" @@ -376,7 +458,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -402,98 +484,117 @@ class WebhookPullRequestUnlockedPropPullRequestPropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments = Field( title="Link" ) - commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits = Field( title="Link" ) - html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( + html: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml = Field( title="Link" ) - issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue = Field( title="Link" ) - review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment = Field( title="Link" ) - review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments = Field( title="Link" ) - self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf = Field( + self_: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf = Field( alias="self", title="Link" ) - statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses = Field( + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses = Field( title="Link" ) -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses( + GitHubModel +): """Link""" href: str = Field() -class WebhookPullRequestUnlockedPropPullRequestPropBase(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" label: str = Field() ref: str = Field() - repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo = Field( + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo = Field( title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser, + None, + ] = Field(title="User") -class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -519,7 +620,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo( + GitHubModel +): """Repository A git repository @@ -602,7 +705,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -623,10 +727,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -674,7 +779,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): ) -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -684,7 +791,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -710,10 +819,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP + ermissions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -722,21 +833,52 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" label: str = Field() ref: str = Field() - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( - Field(title="Repository", description="A git repository") + repo: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" ) sha: str = Field() - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( - Field(title="User") - ) + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser, + None, + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -819,7 +961,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): language: Union[str, None] = Field() languages_url: str = Field() license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense, + None, ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( @@ -840,10 +983,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner, + None, ] = Field(title="User") permissions: Missing[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) @@ -891,7 +1035,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): ) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -901,7 +1047,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHu url: Union[str, None] = Field() -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -927,10 +1075,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubM url: Missing[str] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP + ermissions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -939,33 +1089,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( triage: Missing[bool] = Field(default=UNSET) -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): """Team @@ -974,35 +1098,32 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] = Field(description="Description of the team") @@ -1020,41 +1141,42 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 url: str = Field(description="URL for the team") -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems( + GitHubModel +): """Team Groups of organization members that gives permissions on specified repositories. """ deleted: Missing[bool] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Description of the team" - ) - html_url: Missing[str] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() id: int = Field(description="Unique identifier of the team") - members_url: Missing[str] = Field(default=UNSET) + members_url: str = Field() name: str = Field(description="Name of the team") - node_id: Missing[str] = Field(default=UNSET) + node_id: str = Field() parent: Missing[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, None, ] ] = Field(default=UNSET) - permission: Missing[str] = Field( - default=UNSET, - description="Permission that the team will have for its repositories", + permission: str = Field( + description="Permission that the team will have for its repositories" ) - privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) - repositories_url: Missing[str] = Field(default=UNSET) - slug: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET, description="URL for the team") + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte + msPropParent + """ description: Union[str, None] = Field(description="Description of the team") html_url: str = Field() @@ -1071,88 +1193,138 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent url: str = Field(description="URL for the team") -model_rebuild(WebhookPullRequestUnlocked) -model_rebuild(WebhookPullRequestUnlockedPropPullRequest) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssignee) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMerge) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLabelsItems) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMergedBy) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestone) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions +) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 ) -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 + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems ) -model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookPullRequestUnlocked", - "WebhookPullRequestUnlockedPropPullRequest", - "WebhookPullRequestUnlockedPropPullRequestPropAssignee", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMerge", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy", - "WebhookPullRequestUnlockedPropPullRequestPropLabelsItems", - "WebhookPullRequestUnlockedPropPullRequestPropMergedBy", - "WebhookPullRequestUnlockedPropPullRequestPropMilestone", - "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0", - "WebhookPullRequestUnlockedPropPullRequestPropUser", - "WebhookPullRequestUnlockedPropPullRequestPropLinks", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses", - "WebhookPullRequestUnlockedPropPullRequestPropBase", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropUser", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions", - "WebhookPullRequestUnlockedPropPullRequestPropHead", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewRequestRemovedOneof1", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeam", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequest", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0659.py b/githubkit/versions/v2022_11_28/models/group_0659.py index 3264ee03b..add774681 100644 --- a/githubkit/versions/v2022_11_28/models/group_0659.py +++ b/githubkit/versions/v2022_11_28/models/group_0659.py @@ -16,190 +16,843 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookPush(GitHubModel): - """push event""" +class WebhookPullRequestReviewRequestedOneof0(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0""" - after: str = Field( - description="The SHA of the most recent commit on `ref` after the push." + action: Literal["review_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)."\n', ) - base_ref: Union[str, None] = Field() - before: str = Field( - description="The SHA of the most recent commit on `ref` before the push." + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - 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." + 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.", ) - 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." + pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequest = Field( + title="Pull Request" ) - created: bool = Field(description="Whether this push created the `ref`.") - deleted: bool = Field(description="Whether this push deleted the `ref`.") - enterprise: Missing[EnterpriseWebhooks] = Field( + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer, None + ] = Field(title="User") + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems, + 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[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase = 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: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone, 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[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems + ] = 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[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge(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[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems( + 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone(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[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator, + 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo( + 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." ) - 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)."', + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." ) - organization: Missing[OrganizationSimpleWebhooks] = Field( + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + description="Whether to delete head branches when pull requests are merged", ) - pusher: WebhookPushPropPusher = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - ref: str = Field( - description="The full git ref that was pushed. Example: `refs/heads/main` or `refs/tags/v3.14.1`." + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_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: WebhookPushPropRepository = Field( - title="Repository", description="A git repository" + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." ) - - -class WebhookPushPropHeadCommit(GitHubModel): - """Commit""" - - added: Missing[List[str]] = Field( - default=UNSET, description="An array of files added in the commit." + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", ) - author: WebhookPushPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", ) - committer: WebhookPushPropHeadCommitPropCommitter = 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[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = 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.", ) - distinct: bool = Field( - description="Whether this commit is distinct from any that have been pushed before." + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) ) - 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." + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = 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 has been deprecated. Please use `squash_merge_commit_title` instead.", ) - removed: Missing[List[str]] = Field( - default=UNSET, description="An array of files removed in 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", ) - 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" -class WebhookPushPropHeadCommitPropCommitter(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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookPushPropPusher(GitHubModel): - """Committer - Metaproperties for Git author/committer information. +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions """ - 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) + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -class WebhookPushPropCommitsItems(GitHubModel): - """Commit""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" - 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." + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") ) - 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. - """ + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser, None + ] = Field(title="User") - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" -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) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookPushPropRepository(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo( + GitHubModel +): """Repository A git repository @@ -236,10 +889,6 @@ class WebhookPushPropRepository(GitHubModel): contents_url: str = Field() contributors_url: str = Field() created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookPushPropRepositoryPropCustomProperties] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) default_branch: str = Field(description="The default branch of the repository.") delete_branch_on_merge: Missing[bool] = Field( default=UNSET, @@ -285,10 +934,19 @@ class WebhookPushPropRepository(GitHubModel): labels_url: str = Field() language: Union[str, None] = Field() languages_url: str = Field() - license_: Union[WebhookPushPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) + license_: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default 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() @@ -298,10 +956,13 @@ class WebhookPushPropRepository(GitHubModel): open_issues: int = Field() open_issues_count: int = Field() organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookPushPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookPushPropRepositoryPropPermissions] = Field( - default=UNSET - ) + owner: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) private: bool = Field(description="Whether the repository is private or public.") public: Missing[bool] = Field(default=UNSET) pulls_url: str = Field() @@ -309,6 +970,18 @@ class WebhookPushPropRepository(GitHubModel): releases_url: str = Field() role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) ssh_url: str = Field() stargazers: Missing[int] = Field(default=UNSET) stargazers_count: int = Field() @@ -323,6 +996,10 @@ class WebhookPushPropRepository(GitHubModel): trees_url: str = Field() updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) visibility: Literal["public", "private", "internal"] = Field() watchers: int = Field() watchers_count: int = Field() @@ -332,16 +1009,9 @@ class WebhookPushPropRepository(GitHubModel): ) -class WebhookPushPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookPushPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookPushPropRepositoryPropLicense(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): """License""" key: str = Field() @@ -351,7 +1021,9 @@ class WebhookPushPropRepositoryPropLicense(GitHubModel): url: Union[str, None] = Field() -class WebhookPushPropRepositoryPropOwner(GitHubModel): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -377,8 +1049,12 @@ class WebhookPushPropRepositoryPropOwner(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookPushPropRepositoryPropPermissions(GitHubModel): - """WebhookPushPropRepositoryPropPermissions""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool = Field() maintain: Missing[bool] = Field(default=UNSET) @@ -387,32 +1063,225 @@ class WebhookPushPropRepositoryPropPermissions(GitHubModel): triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookPush) -model_rebuild(WebhookPushPropHeadCommit) -model_rebuild(WebhookPushPropHeadCommitPropAuthor) -model_rebuild(WebhookPushPropHeadCommitPropCommitter) -model_rebuild(WebhookPushPropPusher) -model_rebuild(WebhookPushPropCommitsItems) -model_rebuild(WebhookPushPropCommitsItemsPropAuthor) -model_rebuild(WebhookPushPropCommitsItemsPropCommitter) -model_rebuild(WebhookPushPropRepository) -model_rebuild(WebhookPushPropRepositoryPropCustomProperties) -model_rebuild(WebhookPushPropRepositoryPropLicense) -model_rebuild(WebhookPushPropRepositoryPropOwner) -model_rebuild(WebhookPushPropRepositoryPropPermissions) +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1( + 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[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems( + 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[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent, + 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestReviewRequestedOneof0) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookPush", - "WebhookPushPropHeadCommit", - "WebhookPushPropHeadCommitPropAuthor", - "WebhookPushPropHeadCommitPropCommitter", - "WebhookPushPropPusher", - "WebhookPushPropCommitsItems", - "WebhookPushPropCommitsItemsPropAuthor", - "WebhookPushPropCommitsItemsPropCommitter", - "WebhookPushPropRepository", - "WebhookPushPropRepositoryPropCustomProperties", - "WebhookPushPropRepositoryPropLicense", - "WebhookPushPropRepositoryPropOwner", - "WebhookPushPropRepositoryPropPermissions", + "WebhookPullRequestReviewRequestedOneof0", + "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewer", + "WebhookPullRequestReviewRequestedOneof0PropPullRequest", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0660.py b/githubkit/versions/v2022_11_28/models/group_0660.py index 8bd83c8e5..8d4dfd496 100644 --- a/githubkit/versions/v2022_11_28/models/group_0660.py +++ b/githubkit/versions/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 List, Union, Literal from pydantic import Field @@ -17,18 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0661 import WebhookRegistryPackagePublishedPropRegistryPackage +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRegistryPackagePublished(GitHubModel): - """WebhookRegistryPackagePublished""" +class WebhookPullRequestReviewRequestedOneof1(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1""" - action: Literal["published"] = Field() + action: Literal["review_requested"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,23 +39,1273 @@ class WebhookRegistryPackagePublished(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) + number: int = Field(description="The pull request number.") organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - registry_package: WebhookRegistryPackagePublishedPropRegistryPackage = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeam = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRegistryPackagePublished) +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeam(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent, None] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems, + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase = 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: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead = 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.", + ) + 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") + milestone: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone, 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems + ] = 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge(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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems( + 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 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) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone(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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator, + 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo( + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = 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 has been deprecated. 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis + sions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo( + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = 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 has been deprecated. 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis + sions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1( + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent, + 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem + sOneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems( + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent, + 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro + pParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestReviewRequestedOneof1) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeam) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequest) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent +) -__all__ = ("WebhookRegistryPackagePublished",) +__all__ = ( + "WebhookPullRequestReviewRequestedOneof1", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeam", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent", + "WebhookPullRequestReviewRequestedOneof1PropPullRequest", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssignee", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMerge", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedBy", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestone", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0661.py b/githubkit/versions/v2022_11_28/models/group_0661.py index fdd4f3978..844579181 100644 --- a/githubkit/versions/v2022_11_28/models/group_0661.py +++ b/githubkit/versions/v2022_11_28/models/group_0661.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,71 +18,1144 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0662 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, -) +from .group_0415 import WebhooksReview +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRegistryPackagePublishedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackage""" +class WebhookPullRequestReviewSubmitted(GitHubModel): + """pull_request_review submitted event""" - created_at: Union[str, None] = Field() - description: Union[str, None] = Field() - ecosystem: str = Field() + action: Literal["submitted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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.", + ) + pull_request: WebhookPullRequestReviewSubmittedPropPullRequest = Field( + title="Simple Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + review: WebhooksReview = Field(description="The review that was affected.") + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPullRequestReviewSubmittedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewSubmittedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - name: str = Field() - namespace: str = Field() - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion, None + issue_url: str = Field() + labels: List[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems] = ( + Field() + ) + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1, + ] ] = Field() - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry, None + requested_teams: List[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems ] = Field() - updated_at: Union[str, None] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems(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 WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone(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[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewSubmittedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments = ( + Field(title="Link") + ) + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits = ( + Field(title="Link") + ) + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses = ( + Field(title="Link") + ) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" - avatar_url: str = Field() + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + 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 has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() - about_url: Missing[str] = Field(default=UNSET) + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) - vendor: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackage) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry) +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +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) + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestReviewSubmitted) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequest) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackage", - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwner", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry", + "WebhookPullRequestReviewSubmitted", + "WebhookPullRequestReviewSubmittedPropPullRequest", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssignee", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestone", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewSubmittedPropPullRequestPropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinks", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBase", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHead", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0662.py b/githubkit/versions/v2022_11_28/models/group_0662.py index 09bc77732..42805b017 100644 --- a/githubkit/versions/v2022_11_28/models/group_0662.py +++ b/githubkit/versions/v2022_11_28/models/group_0662.py @@ -9,481 +9,1165 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild - -from .group_0584 import WebhookRubygemsMetadata - - -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - - author: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor - ] = Field(default=UNSET) - body: Missing[ +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks + + +class WebhookPullRequestReviewThreadResolved(GitHubModel): + """pull_request_review_thread resolved event""" + + action: Literal["resolved"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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.", + ) + pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequest = Field( + title="Simple Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + thread: WebhookPullRequestReviewThreadResolvedPropThread = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ Union[ - 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 + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems, + None, ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems ] = Field() - name: str = Field() - npm_metadata: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata, - None, - ] - ] = Field(default=UNSET) - nuget_metadata: Missing[ + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ Union[ - List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems - ], + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0, None, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1, ] - ] = Field(default=UNSET) - package_files: List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: Missing[str] = Field(default=UNSET) - target_oid: Missing[str] = Field(default=UNSET) - updated_at: Missing[str] = Field(default=UNSET) - version: str = Field() + requested_teams: List[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser, None] = ( + Field(title="User") + ) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor( - GitHubModel -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee(GitHubModel): + """User""" - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() - node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() - url: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 - """ + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. """ - tags: Missing[List[str]] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator( + GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata - Items - """ + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata - """ + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - version: Missing[str] = Field(default=UNSET) - npm_user: Missing[str] = Field(default=UNSET) - author: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1, - None, - ] - ] = Field(default=UNSET) - bugs: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1, - None, - ] - ] = Field(default=UNSET) - dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies - ] = Field(default=UNSET) - dev_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies - ] = Field(default=UNSET) - peer_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies - ] = Field(default=UNSET) - optional_dependencies: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies - ] = Field(default=UNSET) - description: Missing[str] = Field(default=UNSET) - dist: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1, - None, - ] - ] = Field(default=UNSET) - git_head: Missing[str] = Field(default=UNSET) - homepage: Missing[str] = Field(default=UNSET) - license_: Missing[str] = Field(default=UNSET, alias="license") - main: Missing[str] = Field(default=UNSET) - repository: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1, - None, - ] - ] = Field(default=UNSET) - scripts: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts - ] = Field(default=UNSET) - id: Missing[str] = Field(default=UNSET) - node_version: Missing[str] = Field(default=UNSET) - npm_version: Missing[str] = Field(default=UNSET) - has_shrinkwrap: Missing[bool] = Field(default=UNSET) - maintainers: Missing[List[str]] = Field(default=UNSET) - contributors: Missing[List[str]] = Field(default=UNSET) - engines: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines - ] = Field(default=UNSET) - keywords: Missing[List[str]] = Field(default=UNSET) - files: Missing[List[str]] = Field(default=UNSET) - bin_: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin - ] = Field(default=UNSET, alias="bin") - man: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan - ] = Field(default=UNSET) - directories: Missing[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1, - None, - ] - ] = Field(default=UNSET) - os: Missing[List[str]] = Field(default=UNSET) - cpu: Missing[List[str]] = Field(default=UNSET) - readme: Missing[str] = Field(default=UNSET) - installation_command: Missing[str] = Field(default=UNSET) - release_id: Missing[int] = Field(default=UNSET) - commit_oid: Missing[str] = Field(default=UNSET) - published_via_actions: Missing[bool] = Field(default=UNSET) - deleted_by_id: Missing[int] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser(GitHubModel): + """User""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1( + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 - """ + """Link""" + + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ + """Link""" + + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ + """Link""" + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies( + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ + """Link""" + + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ + """Link""" + + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ + """Link""" + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1( + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 - """ + """Link""" + href: str = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1( + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser, None + ] = Field(title="User") -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts( + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines + """Repository + + A git repository """ + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin( + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan - """ + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions """ + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo, None + ] = Field(title="Repository", description="A git repository") + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems( + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems + """Repository + + A git repository """ - 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() + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) size: int = Field() - state: Union[str, None] = Field() - updated_at: str = 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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata - """ + """License""" - labels: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels, - None, - ] - ] = Field(default=UNSET) - manifest: Missing[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest, - None, - ] - ] = Field(default=UNSET) - tag: Missing[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag - ] = Field(default=UNSET) + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions """ + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag( + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag - """ + """User""" - digest: Missing[str] = Field(default=UNSET) + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems + """Team + + Groups of organization members that gives permissions on specified repositories. """ - id: Missing[ + 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[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1, - int, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, None, ] ] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - value: Missing[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3, - ] - ] = 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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 + """Team + + Groups of organization members that gives permissions on specified repositories. """ - url: Missing[str] = Field(default=UNSET) - branch: Missing[str] = Field(default=UNSET) - commit: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent( GitHubModel ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ - 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) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: 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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( +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 ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor - """ + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = 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: 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) @@ -491,124 +1175,184 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRe site_admin: Missing[bool] = Field(default=UNSET) starred_url: Missing[str] = Field(default=UNSET) subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) url: 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 -) +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( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1 + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy ) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0 ) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments ) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1 + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments ) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1 + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses ) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1 + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent ) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions ) +model_rebuild(WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1 + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3 + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest ) model_rebuild( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf ) __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", + "WebhookPullRequestReviewThreadResolved", + "WebhookPullRequestReviewThreadResolvedPropPullRequest", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssignee", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestone", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewThreadResolvedPropThread", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItems", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactions", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUser", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinks", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtml", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelf", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0663.py b/githubkit/versions/v2022_11_28/models/group_0663.py index 62a24a0ba..69a40e774 100644 --- a/githubkit/versions/v2022_11_28/models/group_0663.py +++ b/githubkit/versions/v2022_11_28/models/group_0663.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,18 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0664 import WebhookRegistryPackageUpdatedPropRegistryPackage +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRegistryPackageUpdated(GitHubModel): - """WebhookRegistryPackageUpdated""" +class WebhookPullRequestReviewThreadUnresolved(GitHubModel): + """pull_request_review_thread unresolved event""" - action: Literal["updated"] = Field() + action: Literal["unresolved"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +44,1317 @@ class WebhookRegistryPackageUpdated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - registry_package: WebhookRegistryPackageUpdatedPropRegistryPackage = Field() - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequest = Field( + title="Simple Pull Request" + ) + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) + thread: WebhookPullRequestReviewThreadUnresolvedPropThread = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequest(GitHubModel): + """Simple Pull Request""" + + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks = Field( + alias="_links" + ) + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + assignee: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee, None + ] = Field(title="User") + assignees: List[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems, + None, + ] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + closed_at: Union[str, None] = Field() + comments_url: str = Field() + commits_url: str = Field() + created_at: str = Field() + diff_url: str = Field() + draft: bool = Field() + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems + ] = Field() + locked: bool = Field() + merge_commit_sha: Union[str, None] = Field() + merged_at: Union[str, None] = Field() + milestone: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field() + patch_url: str = Field() + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field() + statuses_url: str = Field() + title: str = Field() + updated_at: str = Field() + url: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: str = Field(description="Title for the merge commit message.") + enabled_by: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy, + None, + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems( + GitHubModel +): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator, + None, + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml = ( + Field(title="Link") + ) + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue = ( + Field(title="Link") + ) + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf = ( + Field(alias="self", title="Link") + ) + statuses: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser, None + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo( + GitHubModel +): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense, + None, + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner, + None, + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions + """ + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestReviewThreadUnresolvedPropThread(GitHubModel): + """WebhookPullRequestReviewThreadUnresolvedPropThread""" + + comments: List[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems + ] = Field() + node_id: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems(GitHubModel): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks = Field( + alias="_links" + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + body: str = Field(description="The text of the comment.") + commit_id: str = Field( + description="The SHA of the commit to which the comment applies." + ) + created_at: datetime = Field() + diff_hunk: str = Field( + description="The diff of the line that the comment refers to." + ) + html_url: str = Field(description="HTML URL for the pull request review comment.") + id: int = Field(description="The ID of the pull request review comment.") + in_reply_to_id: Missing[int] = Field( + default=UNSET, description="The comment ID to reply to." + ) + line: Union[int, None] = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + node_id: str = Field(description="The node ID of the pull request review comment.") + original_commit_id: str = Field( + description="The SHA of the original commit to which the comment applies." + ) + original_line: int = Field( + description="The line of the blob to which the comment applies. The last line of the range for a multi-line comment" + ) + original_position: int = Field( + description="The index of the original line in the diff to which the comment applies." + ) + original_start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + path: str = Field( + description="The relative path of the file to which the comment applies." + ) + position: Union[int, None] = Field( + description="The line index in the diff to which the comment applies." + ) + pull_request_review_id: Union[int, None] = Field( + description="The ID of the pull request review to which the comment belongs." + ) + pull_request_url: str = Field( + description="URL for the pull request that the review comment belongs to." + ) + reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions = Field( + title="Reactions" + ) + side: Literal["LEFT", "RIGHT"] = Field( + description="The side of the first line of the range for a multi-line comment." + ) + start_line: Union[int, None] = Field( + description="The first line of the range for a multi-line comment." + ) + start_side: Union[None, Literal["LEFT", "RIGHT"]] = Field( + default="RIGHT", + description="The side of the first line of the range for a multi-line comment.", + ) + subject_type: Missing[Literal["line", "file"]] = Field( + default=UNSET, + description="The level at which the comment is targeted, can be a diff line or a file.", + ) + updated_at: datetime = Field() + url: str = Field(description="URL for the pull request review comment") + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser, + None, + ] = Field(title="User") + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions( + GitHubModel +): + """Reactions""" + + plus_one: int = Field(alias="+1") + minus_one: int = Field(alias="-1") + confused: int = Field() + eyes: int = Field() + heart: int = Field() + hooray: int = Field() + laugh: int = Field() + rocket: int = Field() + total_count: int = Field() + url: str = Field() + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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(WebhookRegistryPackageUpdated) +model_rebuild(WebhookPullRequestReviewThreadUnresolved) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequest) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent +) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThread) +model_rebuild(WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest +) +model_rebuild( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf +) -__all__ = ("WebhookRegistryPackageUpdated",) +__all__ = ( + "WebhookPullRequestReviewThreadUnresolved", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequest", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssignee", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMerge", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestone", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropComments", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepo", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParent", + "WebhookPullRequestReviewThreadUnresolvedPropThread", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItems", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactions", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUser", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinks", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtml", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequest", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelf", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0664.py b/githubkit/versions/v2022_11_28/models/group_0664.py index 886e72f1a..7f6f6aa9a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0664.py +++ b/githubkit/versions/v2022_11_28/models/group_0664.py @@ -9,69 +9,1177 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0665 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion, -) +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks + + +class WebhookPullRequestSynchronize(GitHubModel): + """pull_request synchronize event""" + action: Literal["synchronize"] = Field() + after: str = Field() + before: str = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestSynchronizePropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) -class WebhookRegistryPackageUpdatedPropRegistryPackage(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" - created_at: str = Field() - description: None = Field() - ecosystem: str = Field() +class WebhookPullRequestSynchronizePropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestSynchronizePropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestSynchronizePropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestSynchronizePropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - name: str = Field() - namespace: str = Field() - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner = Field() - package_type: str = Field() - package_version: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion = Field() - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry, None + issue_url: str = Field() + labels: List[WebhookPullRequestSynchronizePropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestSynchronizePropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestone, None + ] = Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems ] = Field() - updated_at: str = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestSynchronizePropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" + + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment( + GitHubModel +): + """Link""" + + href: str = Field() + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" -class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" + href: str = Field() - avatar_url: str = Field() + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropBase(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHead(GitHubModel): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, description="The default value for a merge commit message." + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, description="The default value for a merge commit message title." + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") node_id: str = Field() - organizations_url: str = Field() - received_events_url: str = Field() - repos_url: str = Field() - site_admin: bool = Field() - starred_url: str = Field() - subscriptions_url: str = Field() - type: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") -class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackage) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner) -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestSynchronize) +model_rebuild(WebhookPullRequestSynchronizePropPullRequest) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinks) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBase) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHead) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions +) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent +) __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackage", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry", + "WebhookPullRequestSynchronize", + "WebhookPullRequestSynchronizePropPullRequest", + "WebhookPullRequestSynchronizePropPullRequestPropAssignee", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItems", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMerge", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestSynchronizePropPullRequestPropLabelsItems", + "WebhookPullRequestSynchronizePropPullRequestPropMergedBy", + "WebhookPullRequestSynchronizePropPullRequestPropMilestone", + "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreator", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestSynchronizePropPullRequestPropUser", + "WebhookPullRequestSynchronizePropPullRequestPropLinks", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropComments", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommits", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtml", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssue", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelf", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatuses", + "WebhookPullRequestSynchronizePropPullRequestPropBase", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropUser", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepo", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestSynchronizePropPullRequestPropHead", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUser", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepo", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0665.py b/githubkit/versions/v2022_11_28/models/group_0665.py index 1a3a1268c..a0140bc62 100644 --- a/githubkit/versions/v2022_11_28/models/group_0665.py +++ b/githubkit/versions/v2022_11_28/models/group_0665.py @@ -9,193 +9,1180 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0584 import WebhookRubygemsMetadata +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0396 import WebhooksUserMannequin +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion(GitHubModel): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" +class WebhookPullRequestUnassigned(GitHubModel): + """pull_request unassigned event""" - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor = Field() - body: str = Field() - body_html: str = Field() - created_at: str = Field() - description: str = Field() - docker_metadata: Missing[ - List[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems, - None, - ] - ] - ] = Field(default=UNSET) - draft: Missing[bool] = Field(default=UNSET) + action: Literal["unassigned"] = Field() + assignee: Missing[Union[WebhooksUserMannequin, None]] = Field( + default=UNSET, title="User" + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + number: int = Field(description="The pull request number.") + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + pull_request: WebhookPullRequestUnassignedPropPullRequest = Field( + title="Pull Request" + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class WebhookPullRequestUnassignedPropPullRequest(GitHubModel): + """Pull Request""" + + links: WebhookPullRequestUnassignedPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMerge, None + ] = Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + base: WebhookPullRequestUnassignedPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnassignedPropPullRequestPropHead = Field() html_url: str = Field() id: int = Field() - installation_command: str = Field() - manifest: Missing[str] = Field(default=UNSET) - metadata: List[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems + issue_url: str = Field() + labels: List[WebhookPullRequestUnassignedPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnassignedPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1, + ] ] = Field() - name: str = Field() - package_files: List[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems + requested_teams: List[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems ] = Field() - package_url: str = Field() - prerelease: Missing[bool] = Field(default=UNSET) - release: Missing[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease - ] = Field(default=UNSET) - rubygems_metadata: Missing[List[WebhookRubygemsMetadata]] = Field(default=UNSET) - summary: str = Field() - tag_name: Missing[str] = Field(default=UNSET) - target_commitish: str = Field() - target_oid: str = Field() - updated_at: str = Field() - version: str = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor( +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy( GitHubModel ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" + """User""" - avatar_url: str = Field() - events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() - html_url: str = Field() + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnassignedPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() node_id: str = Field() - 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() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "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 WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems( +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0( GitHubModel ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems - """ + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=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 WebhookPullRequestUnassignedPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" - tags: Missing[List[str]] = Field(default=UNSET) + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems( - ExtraGitHubModel +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment( + GitHubModel ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt - ems - """ + """Link""" + + href: str = Field() -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems( +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments( GitHubModel ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems - """ + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() - 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) + +class WebhookPullRequestUnassignedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) - 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) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + A git repository + """ -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease( + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense( GitHubModel ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" + """License""" - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor = Field() - created_at: str = Field() - draft: bool = Field() - html_url: str = Field() - id: int = Field() + key: str = Field() name: str = Field() - prerelease: bool = Field() - published_at: str = Field() - tag_name: str = Field() - target_commitish: str = Field() - url: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor( + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions( GitHubModel ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository """ - avatar_url: str = Field() + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() events_url: str = Field() - followers_url: str = Field() - following_url: str = Field() - gists_url: str = Field() - gravatar_id: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) id: int = Field() login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") node_id: str = Field() - 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() + parent: Missing[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") -model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) +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( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor + 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( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions ) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner) model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions ) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser) model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1 ) model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent ) +model_rebuild(WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems) model_rebuild( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent ) __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", + "WebhookPullRequestUnassigned", + "WebhookPullRequestUnassignedPropPullRequest", + "WebhookPullRequestUnassignedPropPullRequestPropAssignee", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMerge", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnassignedPropPullRequestPropLabelsItems", + "WebhookPullRequestUnassignedPropPullRequestPropMergedBy", + "WebhookPullRequestUnassignedPropPullRequestPropMilestone", + "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnassignedPropPullRequestPropUser", + "WebhookPullRequestUnassignedPropPullRequestPropLinks", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnassignedPropPullRequestPropBase", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropUser", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnassignedPropPullRequestPropHead", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0666.py b/githubkit/versions/v2022_11_28/models/group_0666.py index 35c3f0122..54e5b78bc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0666.py +++ b/githubkit/versions/v2022_11_28/models/group_0666.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,18 +18,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0410 import WebhooksRelease -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0388 import WebhooksLabel +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookReleaseCreated(GitHubModel): - """release created event""" +class WebhookPullRequestUnlabeled(GitHubModel): + """pull_request unlabeled event""" - action: Literal["created"] = Field() + action: Literal["unlabeled"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,14 +40,15 @@ class WebhookReleaseCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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.", ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + pull_request: WebhookPullRequestUnlabeledPropPullRequest = Field( + title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", @@ -58,6 +60,1114 @@ class WebhookReleaseCreated(GitHubModel): ) -model_rebuild(WebhookReleaseCreated) +class WebhookPullRequestUnlabeledPropPullRequest(GitHubModel): + """Pull Request""" -__all__ = ("WebhookReleaseCreated",) + links: WebhookPullRequestUnlabeledPropPullRequestPropLinks = Field(alias="_links") + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] = Field() + additions: Missing[int] = Field(default=UNSET) + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssignee, None] = ( + Field(title="User") + ) + assignees: List[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems, None] + ] = Field() + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] = Field( + title="AuthorAssociation", + description="How the author is associated with the repository.", + ) + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge, None] = ( + Field( + title="PullRequestAutoMerge", + description="The status of auto merging a pull request.", + ) + ) + base: WebhookPullRequestUnlabeledPropPullRequestPropBase = Field() + body: Union[str, None] = Field() + changed_files: Missing[int] = Field(default=UNSET) + closed_at: Union[datetime, None] = Field() + comments: Missing[int] = Field(default=UNSET) + comments_url: str = Field() + commits: Missing[int] = Field(default=UNSET) + commits_url: str = Field() + created_at: datetime = Field() + deletions: Missing[int] = Field(default=UNSET) + diff_url: str = Field() + draft: bool = Field( + description="Indicates whether or not the pull request is a draft." + ) + head: WebhookPullRequestUnlabeledPropPullRequestPropHead = Field() + html_url: str = Field() + id: int = Field() + issue_url: str = Field() + labels: List[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems] = Field() + locked: bool = Field() + maintainer_can_modify: Missing[bool] = Field( + default=UNSET, + description="Indicates whether maintainers can modify the pull request.", + ) + merge_commit_sha: Union[str, None] = Field() + mergeable: Missing[Union[bool, None]] = Field(default=UNSET) + mergeable_state: Missing[str] = Field(default=UNSET) + merged: Missing[Union[bool, None]] = Field(default=UNSET) + merged_at: Union[datetime, None] = Field() + merged_by: Missing[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedBy, None] + ] = Field(default=UNSET, title="User") + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestone, None] = ( + Field( + title="Milestone", + description="A collection of related issues and pull requests.", + ) + ) + node_id: str = Field() + number: int = Field( + description="Number uniquely identifying the pull request within its repository." + ) + patch_url: str = Field() + rebaseable: Missing[Union[bool, None]] = Field(default=UNSET) + requested_reviewers: List[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0, + None, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1, + ] + ] = Field() + requested_teams: List[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems + ] = Field() + review_comment_url: str = Field() + review_comments: Missing[int] = Field(default=UNSET) + review_comments_url: str = Field() + state: Literal["open", "closed"] = Field( + description="State of this Pull Request. Either `open` or `closed`." + ) + statuses_url: str = Field() + title: str = Field(description="The title of the pull request.") + updated_at: datetime = Field() + url: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUser, None] = Field( + title="User" + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssignee(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge(GitHubModel): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] = Field( + description="Commit message for the merge commit." + ) + commit_title: Union[str, None] = Field( + description="Title for the merge commit message." + ) + enabled_by: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy, None + ] = Field(title="User") + merge_method: Literal["merge", "squash", "rebase"] = Field( + description="The merge method to use." + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems(GitHubModel): + """Label""" + + color: str = Field( + description="6-character hex code, without the leading #, identifying the color" + ) + default: bool = Field() + description: Union[str, None] = Field() + id: int = Field() + name: str = Field(description="The name of the label.") + node_id: str = Field() + url: str = Field(description="URL for the label") + + +class WebhookPullRequestUnlabeledPropPullRequestPropMergedBy(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestone(GitHubModel): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] = Field() + closed_issues: int = Field() + created_at: datetime = Field() + creator: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator, None + ] = Field(title="User") + description: Union[str, None] = Field() + due_on: Union[datetime, None] = Field() + html_url: str = Field() + id: int = Field() + labels_url: str = Field() + node_id: str = Field() + number: int = Field(description="The number of the milestone.") + open_issues: int = Field() + state: Literal["open", "closed"] = Field(description="The state of the milestone.") + title: str = Field(description="The title of the milestone.") + updated_at: datetime = Field() + url: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization", "Mannequin"]] = Field( + default=UNSET + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments( + GitHubModel +): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" + + label: Union[str, None] = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, description="The default value for a merge commit message." + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, description="The default value for a merge commit message title." + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense( + GitHubModel +): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + parent: Missing[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnlabeled) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequest) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent +) + +__all__ = ( + "WebhookPullRequestUnlabeled", + "WebhookPullRequestUnlabeledPropPullRequest", + "WebhookPullRequestUnlabeledPropPullRequestPropAssignee", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMerge", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItems", + "WebhookPullRequestUnlabeledPropPullRequestPropMergedBy", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestone", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnlabeledPropPullRequestPropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropLinks", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnlabeledPropPullRequestPropBase", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnlabeledPropPullRequestPropHead", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0667.py b/githubkit/versions/v2022_11_28/models/group_0667.py index 26a5d1e87..dd134f095 100644 --- a/githubkit/versions/v2022_11_28/models/group_0667.py +++ b/githubkit/versions/v2022_11_28/models/group_0667.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,18 +18,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0410 import WebhooksRelease -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookReleaseDeleted(GitHubModel): - """release deleted event""" +class WebhookPullRequestUnlocked(GitHubModel): + """pull_request unlocked event""" - action: Literal["deleted"] = Field() + action: Literal["unlocked"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,14 +39,14 @@ class WebhookReleaseDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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.", ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + pull_request: WebhookPullRequestUnlockedPropPullRequest = Field( + title="Pull Request" ) repository: RepositoryWebhooks = Field( title="Repository", @@ -58,6 +58,1101 @@ class WebhookReleaseDeleted(GitHubModel): ) -model_rebuild(WebhookReleaseDeleted) +class WebhookPullRequestUnlockedPropPullRequest(GitHubModel): + """Pull Request""" -__all__ = ("WebhookReleaseDeleted",) + 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) + + +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) + + +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) + + +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) + + +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) + + +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) + + +class WebhookPullRequestUnlockedPropPullRequestPropLinks(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments = Field( + title="Link" + ) + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits = Field( + title="Link" + ) + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml = Field( + title="Link" + ) + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue = Field( + title="Link" + ) + review_comment: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment = Field( + title="Link" + ) + review_comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments = Field( + title="Link" + ) + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf = Field( + alias="self", title="Link" + ) + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses = Field( + title="Link" + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses(GitHubModel): + """Link""" + + href: str = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropBase(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" + + label: str = Field() + ref: str = Field() + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo = Field( + title="Repository", description="A git repository" + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHead(GitHubModel): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" + + label: str = Field() + ref: str = Field() + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo, None] = ( + Field(title="Repository", description="A git repository") + ) + sha: str = Field() + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser, None] = ( + Field(title="User") + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + has_discussions: bool = Field( + default=False, description="Whether discussions are enabled." + ) + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense, None + ] = Field(alias="license", title="License") + master_branch: Missing[str] = Field(default=UNSET) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner, None + ] = Field(title="User") + permissions: Missing[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions + ] = Field(default=UNSET) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Whether to require contributors to sign off on web-based commits", + ) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1( + GitHubModel +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent + """ + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems(GitHubModel): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: Missing[bool] = Field(default=UNSET) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Description of the team" + ) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field(description="Unique identifier of the team") + members_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="Name of the team") + node_id: Missing[str] = Field(default=UNSET) + parent: Missing[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent, + None, + ] + ] = Field(default=UNSET) + permission: Missing[str] = Field( + default=UNSET, + description="Permission that the team will have for its repositories", + ) + privacy: Missing[Literal["open", "closed", "secret"]] = Field(default=UNSET) + repositories_url: Missing[str] = Field(default=UNSET) + slug: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET, description="URL for the team") + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent( + GitHubModel +): + """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] = Field(description="Description of the team") + html_url: str = Field() + id: int = Field(description="Unique identifier of the team") + members_url: str = Field() + name: str = Field(description="Name of the team") + node_id: str = Field() + permission: str = Field( + description="Permission that the team will have for its repositories" + ) + privacy: Literal["open", "closed", "secret"] = Field() + repositories_url: str = Field() + slug: str = Field() + url: str = Field(description="URL for the team") + + +model_rebuild(WebhookPullRequestUnlocked) +model_rebuild(WebhookPullRequestUnlockedPropPullRequest) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssignee) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMerge) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLabelsItems) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMergedBy) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestone) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 +) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropUser) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinks) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBase) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropUser) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHead) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 +) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent +) +model_rebuild(WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems) +model_rebuild( + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent +) + +__all__ = ( + "WebhookPullRequestUnlocked", + "WebhookPullRequestUnlockedPropPullRequest", + "WebhookPullRequestUnlockedPropPullRequestPropAssignee", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItems", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMerge", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledBy", + "WebhookPullRequestUnlockedPropPullRequestPropLabelsItems", + "WebhookPullRequestUnlockedPropPullRequestPropMergedBy", + "WebhookPullRequestUnlockedPropPullRequestPropMilestone", + "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreator", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0", + "WebhookPullRequestUnlockedPropPullRequestPropUser", + "WebhookPullRequestUnlockedPropPullRequestPropLinks", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropComments", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommits", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtml", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssue", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComment", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewComments", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelf", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatuses", + "WebhookPullRequestUnlockedPropPullRequestPropBase", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropUser", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepo", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicense", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwner", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions", + "WebhookPullRequestUnlockedPropPullRequestPropHead", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepo", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicense", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwner", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUser", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParent", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItems", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0668.py b/githubkit/versions/v2022_11_28/models/group_0668.py index ceb93c75c..e911b7898 100644 --- a/githubkit/versions/v2022_11_28/models/group_0668.py +++ b/githubkit/versions/v2022_11_28/models/group_0668.py @@ -9,32 +9,46 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0410 import WebhooksRelease -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookReleaseEdited(GitHubModel): - """release edited event""" +class WebhookPush(GitHubModel): + """push event""" - action: Literal["edited"] = Field() - changes: WebhookReleaseEditedPropChanges = Field() + after: str = Field( + description="The SHA of the most recent commit on `ref` after the push." + ) + base_ref: Union[str, None] = Field() + before: str = Field( + description="The SHA of the most recent commit on `ref` before the push." + ) + commits: List[WebhookPushPropCommitsItems] = Field( + description="An array of commit objects describing the pushed commits. (Pushed commits are all commits that are included in the `compare` between the `before` commit and the `after` commit.) The array includes a maximum of 2048 commits. If necessary, you can use the [Commits API](https://docs.github.com/rest/commits) to fetch additional commits." + ) + compare: str = Field( + description="URL that shows the changes in this `ref` update, from the `before` commit to the `after` commit. For a newly created `ref` that is directly based on the default branch, this is the comparison between the head of the default branch and the `after` commit. Otherwise, this shows all commits until the `after` commit." + ) + created: bool = Field(description="Whether this push created the `ref`.") + deleted: bool = Field(description="Whether this push deleted the `ref`.") enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) + 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", @@ -45,13 +59,15 @@ class WebhookReleaseEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + 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: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: WebhookPushPropRepository = Field( + title="Repository", description="A git repository" ) sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, @@ -60,52 +76,343 @@ class WebhookReleaseEdited(GitHubModel): ) -class WebhookReleaseEditedPropChanges(GitHubModel): - """WebhookReleaseEditedPropChanges""" +class WebhookPushPropHeadCommit(GitHubModel): + """Commit""" - body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) - name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) - make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( - default=UNSET + 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 WebhookReleaseEditedPropChangesPropBody(GitHubModel): - """WebhookReleaseEditedPropChangesPropBody""" +class WebhookPushPropHeadCommitPropAuthor(GitHubModel): + """Committer - from_: str = Field( - alias="from", - description="The previous version of the body if the action was `edited`.", - ) + 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 WebhookReleaseEditedPropChangesPropName(GitHubModel): - """WebhookReleaseEditedPropChangesPropName""" +class WebhookPushPropPusher(GitHubModel): + """Committer - from_: str = Field( - alias="from", - description="The previous version of the name if the action was `edited`.", + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookPushPropCommitsItems(GitHubModel): + """Commit""" + + added: Missing[List[str]] = Field( + default=UNSET, + description="An array of files added in the commit. A maximum of 3000 changed files will be reported per commit.", ) + author: WebhookPushPropCommitsItemsPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookPushPropCommitsItemsPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + distinct: bool = Field( + description="Whether this commit is distinct from any that have been pushed before." + ) + id: str = Field() + message: str = Field(description="The commit message.") + modified: Missing[List[str]] = Field( + default=UNSET, + description="An array of files modified by the commit. A maximum of 3000 changed files will be reported per commit.", + ) + removed: Missing[List[str]] = Field( + default=UNSET, + description="An array of files removed in the commit. A maximum of 3000 changed files will be reported per commit.", + ) + timestamp: datetime = Field(description="The ISO 8601 timestamp of the commit.") + tree_id: str = Field() + url: str = Field(description="URL that points to the commit API resource.") + + +class WebhookPushPropCommitsItemsPropAuthor(GitHubModel): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + +class WebhookPushPropCommitsItemsPropCommitter(GitHubModel): + """Committer -class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): - """WebhookReleaseEditedPropChangesPropMakeLatest""" + Metaproperties for Git author/committer information. + """ - to: bool = Field( - description="Whether this release was explicitly `edited` to be the latest." + 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) + + +class WebhookPushPropRepositoryPropPermissions(GitHubModel): + """WebhookPushPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookReleaseEdited) -model_rebuild(WebhookReleaseEditedPropChanges) -model_rebuild(WebhookReleaseEditedPropChangesPropBody) -model_rebuild(WebhookReleaseEditedPropChangesPropName) -model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) +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__ = ( - "WebhookReleaseEdited", - "WebhookReleaseEditedPropChanges", - "WebhookReleaseEditedPropChangesPropBody", - "WebhookReleaseEditedPropChangesPropName", - "WebhookReleaseEditedPropChangesPropMakeLatest", + "WebhookPush", + "WebhookPushPropHeadCommit", + "WebhookPushPropHeadCommitPropAuthor", + "WebhookPushPropHeadCommitPropCommitter", + "WebhookPushPropPusher", + "WebhookPushPropCommitsItems", + "WebhookPushPropCommitsItemsPropAuthor", + "WebhookPushPropCommitsItemsPropCommitter", + "WebhookPushPropRepository", + "WebhookPushPropRepositoryPropCustomProperties", + "WebhookPushPropRepositoryPropLicense", + "WebhookPushPropRepositoryPropOwner", + "WebhookPushPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0669.py b/githubkit/versions/v2022_11_28/models/group_0669.py index c831527fd..1a07064b3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0669.py +++ b/githubkit/versions/v2022_11_28/models/group_0669.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,17 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0670 import WebhookRegistryPackagePublishedPropRegistryPackage -class WebhookReleasePrereleased(GitHubModel): - """release prereleased event""" +class WebhookRegistryPackagePublished(GitHubModel): + """WebhookRegistryPackagePublished""" - action: Literal["prereleased"] = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,162 +44,18 @@ class WebhookReleasePrereleased(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - release: WebhookReleasePrereleasedPropRelease = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( + registry_package: 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: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookReleasePrereleasedPropRelease(GitHubModel): - """Release - - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ - - assets: List[Union[WebhookReleasePrereleasedPropReleasePropAssetsItems, None]] = ( - Field() - ) - assets_url: str = Field() - author: Union[WebhookReleasePrereleasedPropReleasePropAuthor, None] = Field( - title="User" - ) - body: Union[str, None] = Field() - created_at: Union[datetime, None] = Field() - discussion_url: Missing[str] = Field(default=UNSET) - draft: bool = Field(description="Whether the release is a draft or published") - html_url: str = Field() - id: int = Field() - name: Union[str, None] = Field() - node_id: str = Field() - prerelease: Literal[True] = Field( - description="Whether the release is identified as a prerelease or a full release." - ) - published_at: Union[datetime, None] = Field() - reactions: Missing[WebhookReleasePrereleasedPropReleasePropReactions] = Field( - default=UNSET, title="Reactions" - ) - tag_name: str = Field(description="The name of the tag.") - tarball_url: Union[str, None] = Field() - target_commitish: str = Field( - description="Specifies the commitish value that determines where the Git tag is created from." - ) - upload_url: str = Field() - url: str = Field() - zipball_url: Union[str, None] = Field() - - -class WebhookReleasePrereleasedPropReleasePropAssetsItems(GitHubModel): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str = Field() - content_type: str = Field() - created_at: datetime = Field() - download_count: int = Field() - id: int = Field() - label: Union[str, None] = Field() - name: str = Field(description="The file name of the asset.") - node_id: str = Field() - size: int = Field() - state: Literal["uploaded"] = Field(description="State of the release asset.") - updated_at: datetime = Field() - uploader: Missing[ - Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, None] - ] = Field(default=UNSET, title="User") - url: str = Field() - - -class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookReleasePrereleasedPropReleasePropAuthor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookReleasePrereleasedPropReleasePropReactions(GitHubModel): - """Reactions""" - - plus_one: int = Field(alias="+1") - minus_one: int = Field(alias="-1") - confused: int = Field() - eyes: int = Field() - heart: int = Field() - hooray: int = Field() - laugh: int = Field() - rocket: int = Field() - total_count: int = Field() - url: str = Field() - - -model_rebuild(WebhookReleasePrereleased) -model_rebuild(WebhookReleasePrereleasedPropRelease) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItems) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader) -model_rebuild(WebhookReleasePrereleasedPropReleasePropAuthor) -model_rebuild(WebhookReleasePrereleasedPropReleasePropReactions) +model_rebuild(WebhookRegistryPackagePublished) -__all__ = ( - "WebhookReleasePrereleased", - "WebhookReleasePrereleasedPropRelease", - "WebhookReleasePrereleasedPropReleasePropAssetsItems", - "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", - "WebhookReleasePrereleasedPropReleasePropAuthor", - "WebhookReleasePrereleasedPropReleasePropReactions", -) +__all__ = ("WebhookRegistryPackagePublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0670.py b/githubkit/versions/v2022_11_28/models/group_0670.py index f254365c8..c1674926d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0670.py +++ b/githubkit/versions/v2022_11_28/models/group_0670.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -17,48 +17,71 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0411 import WebhooksRelease1 -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks - - -class WebhookReleasePublished(GitHubModel): - """release published event""" - - action: Literal["published"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhooksRelease1 = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookReleasePublished) - -__all__ = ("WebhookReleasePublished",) +from .group_0671 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() + + +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_0671.py b/githubkit/versions/v2022_11_28/models/group_0671.py index 8ae57d8d2..bdff23737 100644 --- a/githubkit/versions/v2022_11_28/models/group_0671.py +++ b/githubkit/versions/v2022_11_28/models/group_0671.py @@ -9,56 +9,606 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0410 import WebhooksRelease -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks - - -class WebhookReleaseReleased(GitHubModel): - """release released event""" - - action: Literal["released"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - release: WebhooksRelease = Field( - title="Release", - description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", - ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookReleaseReleased) - -__all__ = ("WebhookReleaseReleased",) +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + +from .group_0590 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() + + +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) + + +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", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadata", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependencies", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScripts", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEngines", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBin", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropMan", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadata", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabels", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifest", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTag", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItems", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0672.py b/githubkit/versions/v2022_11_28/models/group_0672.py index 831051b57..c6eee4310 100644 --- a/githubkit/versions/v2022_11_28/models/group_0672.py +++ b/githubkit/versions/v2022_11_28/models/group_0672.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0411 import WebhooksRelease1 -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0673 import WebhookRegistryPackageUpdatedPropRegistryPackage -class WebhookReleaseUnpublished(GitHubModel): - """release unpublished event""" +class WebhookRegistryPackageUpdated(GitHubModel): + """WebhookRegistryPackageUpdated""" - action: Literal["unpublished"] = Field() + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,21 +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( + registry_package: WebhookRegistryPackageUpdatedPropRegistryPackage = Field() + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookReleaseUnpublished) +model_rebuild(WebhookRegistryPackageUpdated) -__all__ = ("WebhookReleaseUnpublished",) +__all__ = ("WebhookRegistryPackageUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0673.py b/githubkit/versions/v2022_11_28/models/group_0673.py index a6106caf9..aa0eda962 100644 --- a/githubkit/versions/v2022_11_28/models/group_0673.py +++ b/githubkit/versions/v2022_11_28/models/group_0673.py @@ -9,55 +9,69 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0139 import RepositoryAdvisory -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks - - -class WebhookRepositoryAdvisoryPublished(GitHubModel): - """Repository advisory published event""" - - action: Literal["published"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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.", - ) - repository_advisory: RepositoryAdvisory = Field( - description="A repository security advisory." - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookRepositoryAdvisoryPublished) - -__all__ = ("WebhookRepositoryAdvisoryPublished",) +from .group_0674 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() + + +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_0674.py b/githubkit/versions/v2022_11_28/models/group_0674.py index 695e9cd29..c7fdace9f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0674.py +++ b/githubkit/versions/v2022_11_28/models/group_0674.py @@ -9,55 +9,193 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - -from .group_0139 import RepositoryAdvisory -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks - - -class WebhookRepositoryAdvisoryReported(GitHubModel): - """Repository advisory reported event""" - - action: Literal["reported"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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.", - ) - repository_advisory: RepositoryAdvisory = Field( - description="A repository security advisory." - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookRepositoryAdvisoryReported) - -__all__ = ("WebhookRepositoryAdvisoryReported",) +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + +from .group_0590 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() + + +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() + + +model_rebuild(WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease +) +model_rebuild( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor +) + +__all__ = ( + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItems", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0675.py b/githubkit/versions/v2022_11_28/models/group_0675.py index 858b31796..853986d88 100644 --- a/githubkit/versions/v2022_11_28/models/group_0675.py +++ b/githubkit/versions/v2022_11_28/models/group_0675.py @@ -17,17 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0416 import WebhooksRelease +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRepositoryArchived(GitHubModel): - """repository archived event""" +class WebhookReleaseCreated(GitHubModel): + """release created event""" - action: Literal["archived"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,6 +44,10 @@ class WebhookRepositoryArchived(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease = Field( + title="Release", + description="The [release](https://docs.github.com/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.", @@ -53,6 +58,6 @@ class WebhookRepositoryArchived(GitHubModel): ) -model_rebuild(WebhookRepositoryArchived) +model_rebuild(WebhookReleaseCreated) -__all__ = ("WebhookRepositoryArchived",) +__all__ = ("WebhookReleaseCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0676.py b/githubkit/versions/v2022_11_28/models/group_0676.py index 372fb5c67..1d817c6d6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0676.py +++ b/githubkit/versions/v2022_11_28/models/group_0676.py @@ -17,17 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0416 import WebhooksRelease +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRepositoryCreated(GitHubModel): - """repository created event""" +class WebhookReleaseDeleted(GitHubModel): + """release deleted event""" - action: Literal["created"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,6 +44,10 @@ class WebhookRepositoryCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", @@ -53,6 +58,6 @@ class WebhookRepositoryCreated(GitHubModel): ) -model_rebuild(WebhookRepositoryCreated) +model_rebuild(WebhookReleaseDeleted) -__all__ = ("WebhookRepositoryCreated",) +__all__ = ("WebhookReleaseDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0677.py b/githubkit/versions/v2022_11_28/models/group_0677.py index 85c3c0886..18fe50e48 100644 --- a/githubkit/versions/v2022_11_28/models/group_0677.py +++ b/githubkit/versions/v2022_11_28/models/group_0677.py @@ -17,17 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0416 import WebhooksRelease +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRepositoryDeleted(GitHubModel): - """repository 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", @@ -43,16 +45,67 @@ class WebhookRepositoryDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRepositoryDeleted) +class WebhookReleaseEditedPropChanges(GitHubModel): + """WebhookReleaseEditedPropChanges""" + + body: Missing[WebhookReleaseEditedPropChangesPropBody] = Field(default=UNSET) + name: Missing[WebhookReleaseEditedPropChangesPropName] = Field(default=UNSET) + make_latest: Missing[WebhookReleaseEditedPropChangesPropMakeLatest] = Field( + default=UNSET + ) + + +class WebhookReleaseEditedPropChangesPropBody(GitHubModel): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str = Field( + alias="from", + description="The previous version of the body if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropName(GitHubModel): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) + + +class WebhookReleaseEditedPropChangesPropMakeLatest(GitHubModel): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool = Field( + description="Whether this release was explicitly `edited` to be the latest." + ) + + +model_rebuild(WebhookReleaseEdited) +model_rebuild(WebhookReleaseEditedPropChanges) +model_rebuild(WebhookReleaseEditedPropChangesPropBody) +model_rebuild(WebhookReleaseEditedPropChangesPropName) +model_rebuild(WebhookReleaseEditedPropChangesPropMakeLatest) -__all__ = ("WebhookRepositoryDeleted",) +__all__ = ( + "WebhookReleaseEdited", + "WebhookReleaseEditedPropChanges", + "WebhookReleaseEditedPropChangesPropBody", + "WebhookReleaseEditedPropChangesPropName", + "WebhookReleaseEditedPropChangesPropMakeLatest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0678.py b/githubkit/versions/v2022_11_28/models/group_0678.py index 561bac739..eda77ba53 100644 --- a/githubkit/versions/v2022_11_28/models/group_0678.py +++ b/githubkit/versions/v2022_11_28/models/group_0678.py @@ -9,39 +9,33 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRepositoryDispatchSample(GitHubModel): - """repository_dispatch event""" +class WebhookReleasePrereleased(GitHubModel): + """release prereleased 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["prereleased"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - installation: SimpleInstallation = Field( + installation: Missing[SimpleInstallation] = Field( + default=UNSET, title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) @@ -50,28 +44,162 @@ class WebhookRepositoryDispatchSample(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhookReleasePrereleasedPropRelease = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookRepositoryDispatchSamplePropClientPayload(ExtraGitHubModel): - """WebhookRepositoryDispatchSamplePropClientPayload +class WebhookReleasePrereleasedPropRelease(GitHubModel): + """Release - The `client_payload` that was specified in the `POST - /repos/{owner}/{repo}/dispatches` request body. + 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. + """ -model_rebuild(WebhookRepositoryDispatchSample) -model_rebuild(WebhookRepositoryDispatchSamplePropClientPayload) + browser_download_url: str = Field() + content_type: str = Field() + created_at: datetime = Field() + download_count: int = Field() + id: int = Field() + label: Union[str, None] = Field() + name: str = Field(description="The file name of the asset.") + node_id: str = Field() + size: int = Field() + state: Literal["uploaded"] = Field(description="State of the release asset.") + updated_at: datetime = Field() + uploader: Missing[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader, None] + ] = Field(default=UNSET, title="User") + url: str = Field() + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookReleasePrereleasedPropReleasePropAuthor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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__ = ( - "WebhookRepositoryDispatchSample", - "WebhookRepositoryDispatchSamplePropClientPayload", + "WebhookReleasePrereleased", + "WebhookReleasePrereleasedPropRelease", + "WebhookReleasePrereleasedPropReleasePropAssetsItems", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploader", + "WebhookReleasePrereleasedPropReleasePropAuthor", + "WebhookReleasePrereleasedPropReleasePropReactions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0679.py b/githubkit/versions/v2022_11_28/models/group_0679.py index 15e66953a..5bb58fc8b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0679.py +++ b/githubkit/versions/v2022_11_28/models/group_0679.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0417 import WebhooksRelease1 +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRepositoryEdited(GitHubModel): - """repository edited event""" +class WebhookReleasePublished(GitHubModel): + """release published event""" - action: Literal["edited"] = Field() - changes: WebhookRepositoryEditedPropChanges = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,67 +44,21 @@ class WebhookRepositoryEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease1 = Field( + title="Release", + description="The [release](https://docs.github.com/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: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookRepositoryEditedPropChanges(GitHubModel): - """WebhookRepositoryEditedPropChanges""" - - default_branch: Missing[WebhookRepositoryEditedPropChangesPropDefaultBranch] = ( - Field(default=UNSET) - ) - description: Missing[WebhookRepositoryEditedPropChangesPropDescription] = Field( - default=UNSET - ) - homepage: Missing[WebhookRepositoryEditedPropChangesPropHomepage] = Field( - default=UNSET - ) - topics: Missing[WebhookRepositoryEditedPropChangesPropTopics] = Field(default=UNSET) - - -class WebhookRepositoryEditedPropChangesPropDefaultBranch(GitHubModel): - """WebhookRepositoryEditedPropChangesPropDefaultBranch""" - - from_: str = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropDescription(GitHubModel): - """WebhookRepositoryEditedPropChangesPropDescription""" - - from_: Union[str, None] = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropHomepage(GitHubModel): - """WebhookRepositoryEditedPropChangesPropHomepage""" - - from_: Union[str, None] = Field(alias="from") - - -class WebhookRepositoryEditedPropChangesPropTopics(GitHubModel): - """WebhookRepositoryEditedPropChangesPropTopics""" - - from_: Missing[Union[List[str], None]] = Field(default=UNSET, alias="from") - - -model_rebuild(WebhookRepositoryEdited) -model_rebuild(WebhookRepositoryEditedPropChanges) -model_rebuild(WebhookRepositoryEditedPropChangesPropDefaultBranch) -model_rebuild(WebhookRepositoryEditedPropChangesPropDescription) -model_rebuild(WebhookRepositoryEditedPropChangesPropHomepage) -model_rebuild(WebhookRepositoryEditedPropChangesPropTopics) +model_rebuild(WebhookReleasePublished) -__all__ = ( - "WebhookRepositoryEdited", - "WebhookRepositoryEditedPropChanges", - "WebhookRepositoryEditedPropChangesPropDefaultBranch", - "WebhookRepositoryEditedPropChangesPropDescription", - "WebhookRepositoryEditedPropChangesPropHomepage", - "WebhookRepositoryEditedPropChangesPropTopics", -) +__all__ = ("WebhookReleasePublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0680.py b/githubkit/versions/v2022_11_28/models/group_0680.py index afeab25a7..4659c1646 100644 --- a/githubkit/versions/v2022_11_28/models/group_0680.py +++ b/githubkit/versions/v2022_11_28/models/group_0680.py @@ -17,16 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0416 import WebhooksRelease +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRepositoryImport(GitHubModel): - """repository_import event""" +class WebhookReleaseReleased(GitHubModel): + """release released event""" + action: Literal["released"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,17 +44,21 @@ class WebhookRepositoryImport(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `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: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - status: Literal["success", "cancelled", "failure"] = Field() -model_rebuild(WebhookRepositoryImport) +model_rebuild(WebhookReleaseReleased) -__all__ = ("WebhookRepositoryImport",) +__all__ = ("WebhookReleaseReleased",) diff --git a/githubkit/versions/v2022_11_28/models/group_0681.py b/githubkit/versions/v2022_11_28/models/group_0681.py index 12ae20616..acdc2519c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0681.py +++ b/githubkit/versions/v2022_11_28/models/group_0681.py @@ -17,17 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0417 import WebhooksRelease1 +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRepositoryPrivatized(GitHubModel): - """repository privatized event""" +class WebhookReleaseUnpublished(GitHubModel): + """release unpublished event""" - action: Literal["privatized"] = Field() + action: Literal["unpublished"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,16 +44,21 @@ class WebhookRepositoryPrivatized(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + release: WebhooksRelease1 = Field( + title="Release", + description="The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object.", + ) repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRepositoryPrivatized) +model_rebuild(WebhookReleaseUnpublished) -__all__ = ("WebhookRepositoryPrivatized",) +__all__ = ("WebhookReleaseUnpublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0682.py b/githubkit/versions/v2022_11_28/models/group_0682.py index e1dce249e..98b041c53 100644 --- a/githubkit/versions/v2022_11_28/models/group_0682.py +++ b/githubkit/versions/v2022_11_28/models/group_0682.py @@ -17,17 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0144 import RepositoryAdvisory +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRepositoryPublicized(GitHubModel): - """repository publicized event""" +class WebhookRepositoryAdvisoryPublished(GitHubModel): + """Repository advisory published event""" - action: Literal["publicized"] = Field() + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -47,12 +48,16 @@ class WebhookRepositoryPublicized(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: SimpleUserWebhooks = Field( + repository_advisory: RepositoryAdvisory = Field( + description="A repository security advisory." + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRepositoryPublicized) +model_rebuild(WebhookRepositoryAdvisoryPublished) -__all__ = ("WebhookRepositoryPublicized",) +__all__ = ("WebhookRepositoryAdvisoryPublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0683.py b/githubkit/versions/v2022_11_28/models/group_0683.py index 67e2bf291..785295f18 100644 --- a/githubkit/versions/v2022_11_28/models/group_0683.py +++ b/githubkit/versions/v2022_11_28/models/group_0683.py @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0144 import RepositoryAdvisory +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRepositoryRenamed(GitHubModel): - """repository renamed event""" +class WebhookRepositoryAdvisoryReported(GitHubModel): + """Repository advisory reported event""" - action: Literal["renamed"] = Field() - changes: WebhookRepositoryRenamedPropChanges = Field() + action: Literal["reported"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,38 +48,16 @@ class WebhookRepositoryRenamed(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: SimpleUserWebhooks = Field( + repository_advisory: RepositoryAdvisory = Field( + description="A repository security advisory." + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -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(WebhookRepositoryAdvisoryReported) -__all__ = ( - "WebhookRepositoryRenamed", - "WebhookRepositoryRenamedPropChanges", - "WebhookRepositoryRenamedPropChangesPropRepository", - "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", -) +__all__ = ("WebhookRepositoryAdvisoryReported",) diff --git a/githubkit/versions/v2022_11_28/models/group_0684.py b/githubkit/versions/v2022_11_28/models/group_0684.py index f1da51c2d..05c48dbfa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0684.py +++ b/githubkit/versions/v2022_11_28/models/group_0684.py @@ -17,18 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0135 import RepositoryRuleset -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRepositoryRulesetCreated(GitHubModel): - """repository ruleset created event""" +class WebhookRepositoryArchived(GitHubModel): + """repository archived event""" - action: Literal["created"] = Field() + action: Literal["archived"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,21 +43,16 @@ class WebhookRepositoryRulesetCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRepositoryRulesetCreated) +model_rebuild(WebhookRepositoryArchived) -__all__ = ("WebhookRepositoryRulesetCreated",) +__all__ = ("WebhookRepositoryArchived",) diff --git a/githubkit/versions/v2022_11_28/models/group_0685.py b/githubkit/versions/v2022_11_28/models/group_0685.py index 3f1852bb9..f6fcacef5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0685.py +++ b/githubkit/versions/v2022_11_28/models/group_0685.py @@ -17,18 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0135 import RepositoryRuleset -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRepositoryRulesetDeleted(GitHubModel): - """repository ruleset deleted event""" +class WebhookRepositoryCreated(GitHubModel): + """repository created event""" - action: Literal["deleted"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,21 +43,16 @@ class WebhookRepositoryRulesetDeleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRepositoryRulesetDeleted) +model_rebuild(WebhookRepositoryCreated) -__all__ = ("WebhookRepositoryRulesetDeleted",) +__all__ = ("WebhookRepositoryCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0686.py b/githubkit/versions/v2022_11_28/models/group_0686.py index b71bfcb26..cd4a8ba1c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0686.py +++ b/githubkit/versions/v2022_11_28/models/group_0686.py @@ -17,19 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0135 import RepositoryRuleset -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0687 import WebhookRepositoryRulesetEditedPropChanges +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRepositoryRulesetEdited(GitHubModel): - """repository ruleset edited event""" +class WebhookRepositoryDeleted(GitHubModel): + """repository deleted event""" - action: Literal["edited"] = Field() + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,22 +43,16 @@ class WebhookRepositoryRulesetEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - repository_ruleset: RepositoryRuleset = Field( - title="Repository ruleset", - description="A set of rules to apply when specified conditions are met.", - ) - changes: Missing[WebhookRepositoryRulesetEditedPropChanges] = Field(default=UNSET) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRepositoryRulesetEdited) +model_rebuild(WebhookRepositoryDeleted) -__all__ = ("WebhookRepositoryRulesetEdited",) +__all__ = ("WebhookRepositoryDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0687.py b/githubkit/versions/v2022_11_28/models/group_0687.py index 938e28f3f..840266534 100644 --- a/githubkit/versions/v2022_11_28/models/group_0687.py +++ b/githubkit/versions/v2022_11_28/models/group_0687.py @@ -9,51 +9,69 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0690 import WebhookRepositoryRulesetEditedPropChangesPropRules -from .group_0688 import WebhookRepositoryRulesetEditedPropChangesPropConditions +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): - """WebhookRepositoryRulesetEditedPropChanges""" +class WebhookRepositoryDispatchSample(GitHubModel): + """repository_dispatch event""" - name: Missing[WebhookRepositoryRulesetEditedPropChangesPropName] = Field( - default=UNSET + action: str = Field( + description="The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body." ) - enforcement: Missing[WebhookRepositoryRulesetEditedPropChangesPropEnforcement] = ( - Field(default=UNSET) + 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." + ) ) - conditions: Missing[WebhookRepositoryRulesetEditedPropChangesPropConditions] = ( - 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)."\n', ) - rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = 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)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookRepositoryRulesetEditedPropChangesPropName(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropName""" - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropEnforcement(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" +class WebhookRepositoryDispatchSamplePropClientPayload(ExtraGitHubModel): + """WebhookRepositoryDispatchSamplePropClientPayload - from_: Missing[str] = Field(default=UNSET, alias="from") + The `client_payload` that was specified in the `POST + /repos/{owner}/{repo}/dispatches` request body. + """ -model_rebuild(WebhookRepositoryRulesetEditedPropChanges) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropName) -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropEnforcement) +model_rebuild(WebhookRepositoryDispatchSample) +model_rebuild(WebhookRepositoryDispatchSamplePropClientPayload) __all__ = ( - "WebhookRepositoryRulesetEditedPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropName", - "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", + "WebhookRepositoryDispatchSample", + "WebhookRepositoryDispatchSamplePropClientPayload", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0688.py b/githubkit/versions/v2022_11_28/models/group_0688.py index b85f6e29c..5a2899e9b 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 List +from typing import List, Union, Literal from pydantic import Field @@ -17,22 +17,94 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0098 import RepositoryRulesetConditions -from .group_0689 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, -) +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks + + +class WebhookRepositoryEdited(GitHubModel): + """repository edited event""" + + 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)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +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 WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - added: Missing[List[RepositoryRulesetConditions]] = Field(default=UNSET) - deleted: Missing[List[RepositoryRulesetConditions]] = Field(default=UNSET) - updated: Missing[ - List[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] - ] = Field(default=UNSET) +class WebhookRepositoryEditedPropChangesPropDescription(GitHubModel): + """WebhookRepositoryEditedPropChangesPropDescription""" + from_: Union[str, None] = Field(alias="from") -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) +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", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0689.py b/githubkit/versions/v2022_11_28/models/group_0689.py index 0ac07408b..add67e138 100644 --- a/githubkit/versions/v2022_11_28/models/group_0689.py +++ b/githubkit/versions/v2022_11_28/models/group_0689.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -17,107 +17,42 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0098 import RepositoryRulesetConditions +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" +class WebhookRepositoryImport(GitHubModel): + """repository_import event""" - condition: Missing[RepositoryRulesetConditions] = Field( + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ - - condition_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType - ] = Field(default=UNSET) - target: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget - ] = Field(default=UNSET) - include: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude - ] = Field(default=UNSET) - exclude: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropConditionType - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropTarget - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropInclude - """ - - from_: Missing[List[str]] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropExclude - """ - - from_: Missing[List[str]] = Field(default=UNSET, alias="from") + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + status: Literal["success", "cancelled", "failure"] = Field() -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude -) +model_rebuild(WebhookRepositoryImport) -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", -) +__all__ = ("WebhookRepositoryImport",) diff --git a/githubkit/versions/v2022_11_28/models/group_0690.py b/githubkit/versions/v2022_11_28/models/group_0690.py index 43315c9de..8ca484dbd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0690.py +++ b/githubkit/versions/v2022_11_28/models/group_0690.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from pydantic import Field @@ -17,92 +17,42 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0110 import RepositoryRuleUpdate -from .group_0134 import RepositoryRuleOneof17 -from .group_0130 import RepositoryRuleWorkflows -from .group_0115 import RepositoryRulePullRequest -from .group_0132 import RepositoryRuleCodeScanning -from .group_0127 import RepositoryRuleTagNamePattern -from .group_0125 import RepositoryRuleBranchNamePattern -from .group_0113 import RepositoryRuleRequiredDeployments -from .group_0117 import RepositoryRuleRequiredStatusChecks -from .group_0119 import RepositoryRuleCommitMessagePattern -from .group_0123 import RepositoryRuleCommitterEmailPattern -from .group_0121 import RepositoryRuleCommitAuthorEmailPattern -from .group_0112 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory -from .group_0691 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, -) -from .group_0109 import ( - RepositoryRuleOneof14, - RepositoryRuleOneof16, - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) - - -class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" - - added: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET) - deleted: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET) - updated: Missing[ - List[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] - ] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) - -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks + + +class WebhookRepositoryPrivatized(GitHubModel): + """repository privatized event""" + + action: Literal["privatized"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +model_rebuild(WebhookRepositoryPrivatized) + +__all__ = ("WebhookRepositoryPrivatized",) diff --git a/githubkit/versions/v2022_11_28/models/group_0691.py b/githubkit/versions/v2022_11_28/models/group_0691.py index 6b784f83a..6392cb48c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0691.py +++ b/githubkit/versions/v2022_11_28/models/group_0691.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -17,125 +17,42 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0110 import RepositoryRuleUpdate -from .group_0134 import RepositoryRuleOneof17 -from .group_0130 import RepositoryRuleWorkflows -from .group_0115 import RepositoryRulePullRequest -from .group_0132 import RepositoryRuleCodeScanning -from .group_0127 import RepositoryRuleTagNamePattern -from .group_0125 import RepositoryRuleBranchNamePattern -from .group_0113 import RepositoryRuleRequiredDeployments -from .group_0117 import RepositoryRuleRequiredStatusChecks -from .group_0119 import RepositoryRuleCommitMessagePattern -from .group_0123 import RepositoryRuleCommitterEmailPattern -from .group_0121 import RepositoryRuleCommitAuthorEmailPattern -from .group_0112 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory -from .group_0109 import ( - RepositoryRuleOneof14, - RepositoryRuleOneof16, - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" - - rule: Missing[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") - changes: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - - configuration: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration - ] = Field(default=UNSET) - rule_type: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType - ] = Field(default=UNSET) - pattern: Missing[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern - ] = Field(default=UNSET) - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern( - GitHubModel -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ - - from_: Missing[str] = Field(default=UNSET, alias="from") - - -model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType -) -model_rebuild( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern -) - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", -) +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks + + +class WebhookRepositoryPublicized(GitHubModel): + """repository publicized event""" + + action: Literal["publicized"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +model_rebuild(WebhookRepositoryPublicized) + +__all__ = ("WebhookRepositoryPublicized",) diff --git a/githubkit/versions/v2022_11_28/models/group_0692.py b/githubkit/versions/v2022_11_28/models/group_0692.py index e254e74ed..1fad1e1ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0692.py +++ b/githubkit/versions/v2022_11_28/models/group_0692.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -17,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRepositoryTransferred(GitHubModel): - """repository transferred event""" +class WebhookRepositoryRenamed(GitHubModel): + """repository renamed event""" - action: Literal["transferred"] = Field() - changes: WebhookRepositoryTransferredPropChanges = Field() + action: Literal["renamed"] = Field() + changes: WebhookRepositoryRenamedPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -54,89 +54,32 @@ class WebhookRepositoryTransferred(GitHubModel): ) -class WebhookRepositoryTransferredPropChanges(GitHubModel): - """WebhookRepositoryTransferredPropChanges""" +class WebhookRepositoryRenamedPropChanges(GitHubModel): + """WebhookRepositoryRenamedPropChanges""" - owner: WebhookRepositoryTransferredPropChangesPropOwner = Field() + repository: WebhookRepositoryRenamedPropChangesPropRepository = Field() -class WebhookRepositoryTransferredPropChangesPropOwner(GitHubModel): - """WebhookRepositoryTransferredPropChangesPropOwner""" +class WebhookRepositoryRenamedPropChangesPropRepository(GitHubModel): + """WebhookRepositoryRenamedPropChangesPropRepository""" - from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFrom = Field( - alias="from" - ) + name: WebhookRepositoryRenamedPropChangesPropRepositoryPropName = Field() + + +class WebhookRepositoryRenamedPropChangesPropRepositoryPropName(GitHubModel): + """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" + + from_: str = 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) - - -model_rebuild(WebhookRepositoryTransferred) -model_rebuild(WebhookRepositoryTransferredPropChanges) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwner) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFrom) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization) -model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser) +model_rebuild(WebhookRepositoryRenamed) +model_rebuild(WebhookRepositoryRenamedPropChanges) +model_rebuild(WebhookRepositoryRenamedPropChangesPropRepository) +model_rebuild(WebhookRepositoryRenamedPropChangesPropRepositoryPropName) __all__ = ( - "WebhookRepositoryTransferred", - "WebhookRepositoryTransferredPropChanges", - "WebhookRepositoryTransferredPropChangesPropOwner", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", + "WebhookRepositoryRenamed", + "WebhookRepositoryRenamedPropChanges", + "WebhookRepositoryRenamedPropChangesPropRepository", + "WebhookRepositoryRenamedPropChangesPropRepositoryPropName", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0693.py b/githubkit/versions/v2022_11_28/models/group_0693.py index dd5f9f911..82f03b9f4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0693.py +++ b/githubkit/versions/v2022_11_28/models/group_0693.py @@ -17,17 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0140 import RepositoryRuleset +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRepositoryUnarchived(GitHubModel): - """repository unarchived event""" +class WebhookRepositoryRulesetCreated(GitHubModel): + """repository ruleset created event""" - action: Literal["unarchived"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,16 +44,21 @@ class WebhookRepositoryUnarchived(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", + ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRepositoryUnarchived) +model_rebuild(WebhookRepositoryRulesetCreated) -__all__ = ("WebhookRepositoryUnarchived",) +__all__ = ("WebhookRepositoryRulesetCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0694.py b/githubkit/versions/v2022_11_28/models/group_0694.py index dbc75d322..93bdffbfe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0694.py +++ b/githubkit/versions/v2022_11_28/models/group_0694.py @@ -17,22 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0412 import WebhooksAlert -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0140 import RepositoryRuleset +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): - """repository_vulnerability_alert create event""" +class WebhookRepositoryRulesetDeleted(GitHubModel): + """repository ruleset deleted event""" - action: Literal["create"] = Field() - alert: WebhooksAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) + action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,16 +44,21 @@ class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when 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: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) +model_rebuild(WebhookRepositoryRulesetDeleted) -__all__ = ("WebhookRepositoryVulnerabilityAlertCreate",) +__all__ = ("WebhookRepositoryRulesetDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0695.py b/githubkit/versions/v2022_11_28/models/group_0695.py index 70a257693..cd1ed198d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0695.py +++ b/githubkit/versions/v2022_11_28/models/group_0695.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,21 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0140 import RepositoryRuleset +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0696 import WebhookRepositoryRulesetEditedPropChanges -class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): - """repository_vulnerability_alert dismiss event""" +class WebhookRepositoryRulesetEdited(GitHubModel): + """repository ruleset edited event""" - action: Literal["dismiss"] = Field() - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) + action: Literal["edited"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -48,76 +45,22 @@ class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( + repository: Missing[RepositoryWebhooks] = Field( + default=UNSET, title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) + repository_ruleset: RepositoryRuleset = Field( + title="Repository ruleset", + description="A set of rules to apply when specified conditions are met.", + ) + changes: Missing[WebhookRepositoryRulesetEditedPropChanges] = Field(default=UNSET) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): - """Repository Vulnerability Alert Alert - - The security alert of the vulnerable dependency. - """ - - affected_package_name: str = Field() - affected_range: str = Field() - created_at: str = Field() - dismiss_comment: Missing[Union[str, None]] = Field(default=UNSET) - dismiss_reason: str = Field() - dismissed_at: str = Field() - dismisser: Union[ - WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, None - ] = Field(title="User") - external_identifier: str = Field() - external_reference: Union[str, None] = Field() - fix_reason: Missing[str] = Field(default=UNSET) - fixed_at: Missing[datetime] = Field(default=UNSET) - fixed_in: Missing[str] = Field(default=UNSET) - ghsa_id: str = Field() - id: int = Field() - node_id: str = Field() - number: int = Field() - severity: str = Field() - state: Literal["dismissed"] = Field() - - -class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookRepositoryVulnerabilityAlertDismiss) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) -model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser) +model_rebuild(WebhookRepositoryRulesetEdited) -__all__ = ( - "WebhookRepositoryVulnerabilityAlertDismiss", - "WebhookRepositoryVulnerabilityAlertDismissPropAlert", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", -) +__all__ = ("WebhookRepositoryRulesetEdited",) diff --git a/githubkit/versions/v2022_11_28/models/group_0696.py b/githubkit/versions/v2022_11_28/models/group_0696.py index 14443e2e7..60c0a3c65 100644 --- a/githubkit/versions/v2022_11_28/models/group_0696.py +++ b/githubkit/versions/v2022_11_28/models/group_0696.py @@ -9,55 +9,51 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0412 import WebhooksAlert -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0699 import WebhookRepositoryRulesetEditedPropChangesPropRules +from .group_0697 import WebhookRepositoryRulesetEditedPropChangesPropConditions -class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): - """repository_vulnerability_alert reopen event""" +class WebhookRepositoryRulesetEditedPropChanges(GitHubModel): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["reopen"] = Field() - alert: WebhooksAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: RepositoryWebhooks = Field( - title="Repository", - 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) ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + rules: Missing[WebhookRepositoryRulesetEditedPropChangesPropRules] = Field( + default=UNSET ) -model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) +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__ = ("WebhookRepositoryVulnerabilityAlertReopen",) +__all__ = ( + "WebhookRepositoryRulesetEditedPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropName", + "WebhookRepositoryRulesetEditedPropChangesPropEnforcement", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0697.py b/githubkit/versions/v2022_11_28/models/group_0697.py index 17b3e34a0..65d26d75a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0697.py +++ b/githubkit/versions/v2022_11_28/models/group_0697.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from pydantic import Field @@ -18,105 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks - - -class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): - """repository_vulnerability_alert resolve event""" - - action: Literal["resolve"] = Field() - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field( - title="Repository Vulnerability Alert Alert", - description="The security alert of the vulnerable dependency.", - ) - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -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() +from .group_0103 import RepositoryRulesetConditions +from .group_0698 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems, +) -class WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser(GitHubModel): - """User""" +class WebhookRepositoryRulesetEditedPropChangesPropConditions(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + added: Missing[List[RepositoryRulesetConditions]] = Field(default=UNSET) + deleted: Missing[List[RepositoryRulesetConditions]] = Field(default=UNSET) + updated: Missing[ + List[WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems] + ] = Field(default=UNSET) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolve) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlert) -model_rebuild(WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditions) -__all__ = ( - "WebhookRepositoryVulnerabilityAlertResolve", - "WebhookRepositoryVulnerabilityAlertResolvePropAlert", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", -) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditions",) diff --git a/githubkit/versions/v2022_11_28/models/group_0698.py b/githubkit/versions/v2022_11_28/models/group_0698.py index 546a3089b..a4581486e 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 List from pydantic import Field @@ -17,45 +17,107 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0413 import SecretScanningAlertWebhook +from .group_0103 import RepositoryRulesetConditions -class WebhookSecretScanningAlertCreated(GitHubModel): - """secret_scanning_alert created event""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" - action: Literal["created"] = Field() - alert: SecretScanningAlertWebhook = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( + condition: Missing[RepositoryRulesetConditions] = Field( default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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[SimpleUserWebhooks] = Field( - default=UNSET, - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", + title="Repository ruleset conditions for ref names", + description="Parameters for a repository ruleset ref name condition", ) + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + es + """ + + condition_type: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType + ] = Field(default=UNSET) + target: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget + ] = Field(default=UNSET) + include: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude + ] = Field(default=UNSET) + exclude: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropConditionType + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropTarget + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropInclude + """ + + from_: Missing[List[str]] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropExclude + """ + + from_: Missing[List[str]] = Field(default=UNSET, alias="from") -model_rebuild(WebhookSecretScanningAlertCreated) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude +) -__all__ = ("WebhookSecretScanningAlertCreated",) +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTarget", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropInclude", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExclude", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0699.py b/githubkit/versions/v2022_11_28/models/group_0699.py index 04e1de776..28e8b645f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0699.py +++ b/githubkit/versions/v2022_11_28/models/group_0699.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union from pydantic import Field @@ -17,300 +17,92 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0413 import SecretScanningAlertWebhook - - -class WebhookSecretScanningAlertLocationCreated(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.", - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - +from .group_0115 import RepositoryRuleUpdate +from .group_0139 import RepositoryRuleOneof17 +from .group_0135 import RepositoryRuleWorkflows +from .group_0120 import RepositoryRulePullRequest +from .group_0137 import RepositoryRuleCodeScanning +from .group_0132 import RepositoryRuleTagNamePattern +from .group_0130 import RepositoryRuleBranchNamePattern +from .group_0118 import RepositoryRuleRequiredDeployments +from .group_0122 import RepositoryRuleRequiredStatusChecks +from .group_0124 import RepositoryRuleCommitMessagePattern +from .group_0128 import RepositoryRuleCommitterEmailPattern +from .group_0126 import RepositoryRuleCommitAuthorEmailPattern +from .group_0117 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory +from .group_0700 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems, +) +from .group_0114 import ( + RepositoryRuleOneof14, + RepositoryRuleOneof16, + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -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", +class WebhookRepositoryRulesetEditedPropChangesPropRules(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" + + added: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] ] - ] = Field( - default=UNSET, - description="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) + deleted: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] ] ] = Field(default=UNSET) + updated: Missing[ + List[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems] + ] = Field(default=UNSET) -class SecretScanningLocationCommit(GitHubModel): - """SecretScanningLocationCommit - - Represents a 'commit' secret scanning location type. This location type shows - that a secret was detected inside a commit to a repository. - """ - - path: str = Field(description="The file path in the repository") - start_line: float = Field( - description="Line number at which the secret starts in the file" - ) - end_line: float = Field( - description="Line number at which the secret ends in the file" - ) - start_column: float = Field( - description="The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII" - ) - end_column: float = Field( - description="The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII" - ) - blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") - blob_url: str = Field(description="The API URL to get the associated blob resource") - commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") - commit_url: str = Field( - description="The API URL to get the associated commit resource" - ) - - -class SecretScanningLocationWikiCommit(GitHubModel): - """SecretScanningLocationWikiCommit - - Represents a 'wiki_commit' secret scanning location type. This location type - shows that a secret was detected inside a commit to a repository wiki. - """ - - path: str = Field(description="The file path of the wiki page") - start_line: float = Field( - description="Line number at which the secret starts in the file" - ) - end_line: float = Field( - description="Line number at which the secret ends in the file" - ) - start_column: float = Field( - description="The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII." - ) - end_column: float = Field( - description="The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII." - ) - blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") - page_url: str = Field(description="The GitHub URL to get the associated wiki page") - commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") - commit_url: str = Field( - description="The GitHub URL to get the associated wiki commit" - ) - - -class SecretScanningLocationIssueTitle(GitHubModel): - """SecretScanningLocationIssueTitle - - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. - """ - - issue_title_url: str = Field( - description="The API URL to get the issue where the secret was detected." - ) - - -class SecretScanningLocationIssueBody(GitHubModel): - """SecretScanningLocationIssueBody - - Represents an 'issue_body' secret scanning location type. This location type - shows that a secret was detected in the body of an issue. - """ - - issue_body_url: str = Field( - description="The API URL to get the issue where the secret was detected." - ) - - -class SecretScanningLocationIssueComment(GitHubModel): - """SecretScanningLocationIssueComment - - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. - """ - - issue_comment_url: str = Field( - description="The API URL to get the issue comment where the secret was detected." - ) - - -class SecretScanningLocationDiscussionTitle(GitHubModel): - """SecretScanningLocationDiscussionTitle - - Represents a 'discussion_title' secret scanning location type. This location - type shows that a secret was detected in the title of a discussion. - """ - - discussion_title_url: str = Field( - description="The URL to the discussion where the secret was detected." - ) - - -class SecretScanningLocationDiscussionBody(GitHubModel): - """SecretScanningLocationDiscussionBody - - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. - """ - - discussion_body_url: str = Field( - description="The URL to the discussion where the secret was detected." - ) - - -class SecretScanningLocationDiscussionComment(GitHubModel): - """SecretScanningLocationDiscussionComment - - Represents a 'discussion_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a discussion. - """ - - discussion_comment_url: str = Field( - description="The API URL to get the discussion comment where the secret was detected." - ) - - -class SecretScanningLocationPullRequestTitle(GitHubModel): - """SecretScanningLocationPullRequestTitle - - Represents a 'pull_request_title' secret scanning location type. This location - type shows that a secret was detected in the title of a pull request. - """ - - pull_request_title_url: str = Field( - description="The API URL to get the pull request where the secret was detected." - ) - - -class SecretScanningLocationPullRequestBody(GitHubModel): - """SecretScanningLocationPullRequestBody - - Represents a 'pull_request_body' secret scanning location type. This location - type shows that a secret was detected in the body of a pull request. - """ - - pull_request_body_url: str = Field( - description="The API URL to get the pull request where the secret was detected." - ) - - -class SecretScanningLocationPullRequestComment(GitHubModel): - """SecretScanningLocationPullRequestComment - - Represents a 'pull_request_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a pull request. - """ - - pull_request_comment_url: str = Field( - description="The API URL to get the pull request comment where the secret was detected." - ) - - -class SecretScanningLocationPullRequestReview(GitHubModel): - """SecretScanningLocationPullRequestReview - - Represents a 'pull_request_review' secret scanning location type. This location - type shows that a secret was detected in a review on a pull request. - """ - - pull_request_review_url: str = Field( - description="The API URL to get the pull request review where the secret was detected." - ) - - -class SecretScanningLocationPullRequestReviewComment(GitHubModel): - """SecretScanningLocationPullRequestReviewComment - - Represents a 'pull_request_review_comment' secret scanning location type. This - location type shows that a secret was detected in a review comment on a pull - request. - """ - - pull_request_review_comment_url: str = Field( - description="The API URL to get the pull request review comment where the secret was detected." - ) - - -model_rebuild(WebhookSecretScanningAlertLocationCreated) -model_rebuild(SecretScanningLocation) -model_rebuild(SecretScanningLocationCommit) -model_rebuild(SecretScanningLocationWikiCommit) -model_rebuild(SecretScanningLocationIssueTitle) -model_rebuild(SecretScanningLocationIssueBody) -model_rebuild(SecretScanningLocationIssueComment) -model_rebuild(SecretScanningLocationDiscussionTitle) -model_rebuild(SecretScanningLocationDiscussionBody) -model_rebuild(SecretScanningLocationDiscussionComment) -model_rebuild(SecretScanningLocationPullRequestTitle) -model_rebuild(SecretScanningLocationPullRequestBody) -model_rebuild(SecretScanningLocationPullRequestComment) -model_rebuild(SecretScanningLocationPullRequestReview) -model_rebuild(SecretScanningLocationPullRequestReviewComment) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRules) -__all__ = ( - "WebhookSecretScanningAlertLocationCreated", - "SecretScanningLocation", - "SecretScanningLocationCommit", - "SecretScanningLocationWikiCommit", - "SecretScanningLocationIssueTitle", - "SecretScanningLocationIssueBody", - "SecretScanningLocationIssueComment", - "SecretScanningLocationDiscussionTitle", - "SecretScanningLocationDiscussionBody", - "SecretScanningLocationDiscussionComment", - "SecretScanningLocationPullRequestTitle", - "SecretScanningLocationPullRequestBody", - "SecretScanningLocationPullRequestComment", - "SecretScanningLocationPullRequestReview", - "SecretScanningLocationPullRequestReviewComment", -) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRules",) diff --git a/githubkit/versions/v2022_11_28/models/group_0700.py b/githubkit/versions/v2022_11_28/models/group_0700.py index 875448bf5..62e51f23b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0700.py +++ b/githubkit/versions/v2022_11_28/models/group_0700.py @@ -9,19 +9,133 @@ from __future__ import annotations +from typing import Union + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0115 import RepositoryRuleUpdate +from .group_0139 import RepositoryRuleOneof17 +from .group_0135 import RepositoryRuleWorkflows +from .group_0120 import RepositoryRulePullRequest +from .group_0137 import RepositoryRuleCodeScanning +from .group_0132 import RepositoryRuleTagNamePattern +from .group_0130 import RepositoryRuleBranchNamePattern +from .group_0118 import RepositoryRuleRequiredDeployments +from .group_0122 import RepositoryRuleRequiredStatusChecks +from .group_0124 import RepositoryRuleCommitMessagePattern +from .group_0128 import RepositoryRuleCommitterEmailPattern +from .group_0126 import RepositoryRuleCommitAuthorEmailPattern +from .group_0117 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory +from .group_0114 import ( + RepositoryRuleOneof14, + RepositoryRuleOneof16, + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems(GitHubModel): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" + + rule: Missing[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] = Field(default=UNSET, title="Repository Rule", description="A repository rule.") + changes: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" + + configuration: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration + ] = Field(default=UNSET) + rule_type: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType + ] = Field(default=UNSET) + pattern: Missing[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern + ] = Field(default=UNSET) + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pConfiguration + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pRuleType + """ + + from_: Missing[str] = Field(default=UNSET, alias="from") + -class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): - """Secret Scanning Alert Location Created Event""" +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern( + GitHubModel +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pPattern + """ - 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_: Missing[str] = Field(default=UNSET, alias="from") -model_rebuild(WebhookSecretScanningAlertLocationCreatedFormEncoded) +model_rebuild(WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType +) +model_rebuild( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern +) -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfiguration", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPattern", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0701.py b/githubkit/versions/v2022_11_28/models/group_0701.py index bed875907..2fc2fa2f0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0701.py +++ b/githubkit/versions/v2022_11_28/models/group_0701.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -17,19 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0413 import SecretScanningAlertWebhook +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookSecretScanningAlertReopened(GitHubModel): - """secret_scanning_alert reopened event""" +class WebhookRepositoryTransferred(GitHubModel): + """repository transferred event""" - action: Literal["reopened"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["transferred"] = Field() + changes: WebhookRepositoryTransferredPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,13 +48,95 @@ class WebhookSecretScanningAlertReopened(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookSecretScanningAlertReopened) +class WebhookRepositoryTransferredPropChanges(GitHubModel): + """WebhookRepositoryTransferredPropChanges""" + + owner: WebhookRepositoryTransferredPropChangesPropOwner = Field() + + +class WebhookRepositoryTransferredPropChangesPropOwner(GitHubModel): + """WebhookRepositoryTransferredPropChangesPropOwner""" + + from_: WebhookRepositoryTransferredPropChangesPropOwnerPropFrom = Field( + alias="from" + ) + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFrom(GitHubModel): + """WebhookRepositoryTransferredPropChangesPropOwnerPropFrom""" + + organization: Missing[ + WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization + ] = Field(default=UNSET, title="Organization") + user: Missing[ + Union[WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser, None] + ] = Field(default=UNSET, title="User") + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization( + GitHubModel +): + """Organization""" + + avatar_url: str = Field() + description: Union[str, None] = Field() + events_url: str = Field() + hooks_url: str = Field() + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + issues_url: str = Field() + login: str = Field() + members_url: str = Field() + node_id: str = Field() + public_members_url: str = Field() + repos_url: str = Field() + url: str = Field() + + +class WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRepositoryTransferred) +model_rebuild(WebhookRepositoryTransferredPropChanges) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwner) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFrom) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization) +model_rebuild(WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser) -__all__ = ("WebhookSecretScanningAlertReopened",) +__all__ = ( + "WebhookRepositoryTransferred", + "WebhookRepositoryTransferredPropChanges", + "WebhookRepositoryTransferredPropChangesPropOwner", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFrom", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganization", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0702.py b/githubkit/versions/v2022_11_28/models/group_0702.py index 5e40a2253..1859bc92f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0702.py +++ b/githubkit/versions/v2022_11_28/models/group_0702.py @@ -17,19 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0413 import SecretScanningAlertWebhook +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookSecretScanningAlertResolved(GitHubModel): - """secret_scanning_alert resolved event""" +class WebhookRepositoryUnarchived(GitHubModel): + """repository unarchived event""" - action: Literal["resolved"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["unarchived"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,13 +47,12 @@ class WebhookSecretScanningAlertResolved(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookSecretScanningAlertResolved) +model_rebuild(WebhookRepositoryUnarchived) -__all__ = ("WebhookSecretScanningAlertResolved",) +__all__ = ("WebhookRepositoryUnarchived",) diff --git a/githubkit/versions/v2022_11_28/models/group_0703.py b/githubkit/versions/v2022_11_28/models/group_0703.py index 7531972cc..8151a500a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0703.py +++ b/githubkit/versions/v2022_11_28/models/group_0703.py @@ -17,19 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0413 import SecretScanningAlertWebhook +from .group_0418 import WebhooksAlert +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookSecretScanningAlertValidated(GitHubModel): - """secret_scanning_alert validated event""" +class WebhookRepositoryVulnerabilityAlertCreate(GitHubModel): + """repository_vulnerability_alert create event""" - action: Literal["validated"] = Field() - alert: SecretScanningAlertWebhook = Field() + action: Literal["create"] = Field() + alert: WebhooksAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -49,13 +52,12 @@ class WebhookSecretScanningAlertValidated(GitHubModel): title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookSecretScanningAlertValidated) +model_rebuild(WebhookRepositoryVulnerabilityAlertCreate) -__all__ = ("WebhookSecretScanningAlertValidated",) +__all__ = ("WebhookRepositoryVulnerabilityAlertCreate",) diff --git a/githubkit/versions/v2022_11_28/models/group_0704.py b/githubkit/versions/v2022_11_28/models/group_0704.py index 80154aa91..e765cc6ac 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 datetime +from typing import Union, Literal from pydantic import Field @@ -17,18 +18,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0414 import WebhooksSecurityAdvisory -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookSecurityAdvisoryPublished(GitHubModel): - """security_advisory published event""" +class WebhookRepositoryVulnerabilityAlertDismiss(GitHubModel): + """repository_vulnerability_alert dismiss event""" - action: Literal["published"] = Field() + action: Literal["dismiss"] = Field() + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,21 +48,76 @@ class WebhookSecurityAdvisoryPublished(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - security_advisory: WebhooksSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookSecurityAdvisoryPublished) +class WebhookRepositoryVulnerabilityAlertDismissPropAlert(GitHubModel): + """Repository Vulnerability Alert Alert + + The security alert of the vulnerable dependency. + """ + + affected_package_name: str = Field() + affected_range: str = Field() + created_at: str = Field() + dismiss_comment: Missing[Union[str, None]] = Field(default=UNSET) + dismiss_reason: str = Field() + dismissed_at: str = Field() + dismisser: Union[ + WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser, None + ] = Field(title="User") + external_identifier: str = Field() + external_reference: Union[str, None] = Field() + fix_reason: Missing[str] = Field(default=UNSET) + fixed_at: Missing[datetime] = Field(default=UNSET) + fixed_in: Missing[str] = Field(default=UNSET) + ghsa_id: str = Field() + id: int = Field() + node_id: str = Field() + number: int = Field() + severity: str = Field() + state: Literal["dismissed"] = Field() + + +class WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookRepositoryVulnerabilityAlertDismiss) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlert) +model_rebuild(WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser) -__all__ = ("WebhookSecurityAdvisoryPublished",) +__all__ = ( + "WebhookRepositoryVulnerabilityAlertDismiss", + "WebhookRepositoryVulnerabilityAlertDismissPropAlert", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisser", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0705.py b/githubkit/versions/v2022_11_28/models/group_0705.py index b2cca29b0..e17fad80c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0705.py +++ b/githubkit/versions/v2022_11_28/models/group_0705.py @@ -17,18 +17,22 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0414 import WebhooksSecurityAdvisory -from .group_0369 import OrganizationSimpleWebhooks +from .group_0418 import WebhooksAlert +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookSecurityAdvisoryUpdated(GitHubModel): - """security_advisory updated event""" +class WebhookRepositoryVulnerabilityAlertReopen(GitHubModel): + """repository_vulnerability_alert reopen event""" - action: Literal["updated"] = Field() + action: Literal["reopen"] = Field() + alert: WebhooksAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,21 +48,16 @@ class WebhookSecurityAdvisoryUpdated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - security_advisory: WebhooksSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -model_rebuild(WebhookSecurityAdvisoryUpdated) +model_rebuild(WebhookRepositoryVulnerabilityAlertReopen) -__all__ = ("WebhookSecurityAdvisoryUpdated",) +__all__ = ("WebhookRepositoryVulnerabilityAlertReopen",) diff --git a/githubkit/versions/v2022_11_28/models/group_0706.py b/githubkit/versions/v2022_11_28/models/group_0706.py index d952f237a..3ba480833 100644 --- a/githubkit/versions/v2022_11_28/models/group_0706.py +++ b/githubkit/versions/v2022_11_28/models/group_0706.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from pydantic import Field @@ -17,17 +18,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookSecurityAdvisoryWithdrawn(GitHubModel): - """security_advisory withdrawn event""" +class WebhookRepositoryVulnerabilityAlertResolve(GitHubModel): + """repository_vulnerability_alert resolve event""" - action: Literal["withdrawn"] = Field() + action: Literal["resolve"] = Field() + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlert = Field( + title="Repository Vulnerability Alert Alert", + description="The security alert of the vulnerable dependency.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,140 +48,75 @@ class WebhookSecurityAdvisoryWithdrawn(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory = Field( - description="The details of the security advisory, including summary, description, and severity." - ) - sender: Missing[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory +class WebhookRepositoryVulnerabilityAlertResolvePropAlert(GitHubModel): + """Repository Vulnerability Alert Alert - The details of the security advisory, including summary, description, and - severity. + The security alert of the vulnerable dependency. """ - cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss = Field() - cwes: List[WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems] = ( - 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[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() - 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() + id: int = Field() + node_id: str = Field() + number: int = 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 -) + 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__ = ( - "WebhookSecurityAdvisoryWithdrawn", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", + "WebhookRepositoryVulnerabilityAlertResolve", + "WebhookRepositoryVulnerabilityAlertResolvePropAlert", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisser", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0707.py b/githubkit/versions/v2022_11_28/models/group_0707.py index 873aa971a..3ec071f9f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0707.py +++ b/githubkit/versions/v2022_11_28/models/group_0707.py @@ -9,24 +9,27 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0096 import FullRepository -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks -from .group_0708 import WebhookSecurityAndAnalysisPropChanges +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0419 import SecretScanningAlertWebhook -class WebhookSecurityAndAnalysis(GitHubModel): - """security_and_analysis event""" +class WebhookSecretScanningAlertCreated(GitHubModel): + """secret_scanning_alert created event""" - changes: WebhookSecurityAndAnalysisPropChanges = Field() + action: Literal["created"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -42,8 +45,9 @@ class WebhookSecurityAndAnalysis(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: FullRepository = Field( - title="Full Repository", description="Full Repository" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: Missing[SimpleUserWebhooks] = Field( default=UNSET, @@ -52,6 +56,6 @@ class WebhookSecurityAndAnalysis(GitHubModel): ) -model_rebuild(WebhookSecurityAndAnalysis) +model_rebuild(WebhookSecretScanningAlertCreated) -__all__ = ("WebhookSecurityAndAnalysis",) +__all__ = ("WebhookSecretScanningAlertCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0708.py b/githubkit/versions/v2022_11_28/models/group_0708.py index 9caa13897..d341d85a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0708.py +++ b/githubkit/versions/v2022_11_28/models/group_0708.py @@ -9,23 +9,308 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0709 import WebhookSecurityAndAnalysisPropChangesPropFrom +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0419 import SecretScanningAlertWebhook + + +class WebhookSecretScanningAlertLocationCreated(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.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + + +class SecretScanningLocation(GitHubModel): + """SecretScanningLocation""" + + type: Missing[ + Literal[ + "commit", + "wiki_commit", + "issue_title", + "issue_body", + "issue_comment", + "discussion_title", + "discussion_body", + "discussion_comment", + "pull_request_title", + "pull_request_body", + "pull_request_comment", + "pull_request_review", + "pull_request_review_comment", + ] + ] = Field( + default=UNSET, + description="The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found.", + ) + details: Missing[ + Union[ + SecretScanningLocationCommit, + SecretScanningLocationWikiCommit, + SecretScanningLocationIssueTitle, + SecretScanningLocationIssueBody, + SecretScanningLocationIssueComment, + SecretScanningLocationDiscussionTitle, + SecretScanningLocationDiscussionBody, + SecretScanningLocationDiscussionComment, + SecretScanningLocationPullRequestTitle, + SecretScanningLocationPullRequestBody, + SecretScanningLocationPullRequestComment, + SecretScanningLocationPullRequestReview, + SecretScanningLocationPullRequestReviewComment, + ] + ] = Field(default=UNSET) + + +class SecretScanningLocationCommit(GitHubModel): + """SecretScanningLocationCommit + + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. + """ + + path: str = Field(description="The file path in the repository") + start_line: float = Field( + description="Line number at which the secret starts in the file" + ) + end_line: float = Field( + description="Line number at which the secret ends in the file" + ) + start_column: float = Field( + description="The column at which the secret starts within the start line when the file is interpreted as 8BIT ASCII" + ) + end_column: float = Field( + description="The column at which the secret ends within the end line when the file is interpreted as 8BIT ASCII" + ) + blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") + blob_url: str = Field(description="The API URL to get the associated blob resource") + commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") + commit_url: str = Field( + description="The API URL to get the associated commit resource" + ) + + +class SecretScanningLocationWikiCommit(GitHubModel): + """SecretScanningLocationWikiCommit + + Represents a 'wiki_commit' secret scanning location type. This location type + shows that a secret was detected inside a commit to a repository wiki. + """ + + path: str = Field(description="The file path of the wiki page") + start_line: float = Field( + description="Line number at which the secret starts in the file" + ) + end_line: float = Field( + description="Line number at which the secret ends in the file" + ) + start_column: float = Field( + description="The column at which the secret starts within the start line when the file is interpreted as 8-bit ASCII." + ) + end_column: float = Field( + description="The column at which the secret ends within the end line when the file is interpreted as 8-bit ASCII." + ) + blob_sha: str = Field(description="SHA-1 hash ID of the associated blob") + page_url: str = Field(description="The GitHub URL to get the associated wiki page") + commit_sha: str = Field(description="SHA-1 hash ID of the associated commit") + commit_url: str = Field( + description="The GitHub URL to get the associated wiki commit" + ) + + +class SecretScanningLocationIssueTitle(GitHubModel): + """SecretScanningLocationIssueTitle + + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. + """ + + issue_title_url: str = Field( + description="The API URL to get the issue where the secret was detected." + ) + + +class SecretScanningLocationIssueBody(GitHubModel): + """SecretScanningLocationIssueBody + + Represents an 'issue_body' secret scanning location type. This location type + shows that a secret was detected in the body of an issue. + """ + + issue_body_url: str = Field( + description="The API URL to get the issue where the secret was detected." + ) + + +class SecretScanningLocationIssueComment(GitHubModel): + """SecretScanningLocationIssueComment + + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. + """ + + issue_comment_url: str = Field( + description="The API URL to get the issue comment where the secret was detected." + ) + + +class SecretScanningLocationDiscussionTitle(GitHubModel): + """SecretScanningLocationDiscussionTitle + + Represents a 'discussion_title' secret scanning location type. This location + type shows that a secret was detected in the title of a discussion. + """ + + discussion_title_url: str = Field( + description="The URL to the discussion where the secret was detected." + ) + + +class SecretScanningLocationDiscussionBody(GitHubModel): + """SecretScanningLocationDiscussionBody + + Represents a 'discussion_body' secret scanning location type. This location type + shows that a secret was detected in the body of a discussion. + """ + + discussion_body_url: str = Field( + description="The URL to the discussion where the secret was detected." + ) + + +class SecretScanningLocationDiscussionComment(GitHubModel): + """SecretScanningLocationDiscussionComment + + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. + """ + + discussion_comment_url: str = Field( + description="The API URL to get the discussion comment where the secret was detected." + ) + + +class SecretScanningLocationPullRequestTitle(GitHubModel): + """SecretScanningLocationPullRequestTitle + + Represents a 'pull_request_title' secret scanning location type. This location + type shows that a secret was detected in the title of a pull request. + """ + + pull_request_title_url: str = Field( + description="The API URL to get the pull request where the secret was detected." + ) + + +class SecretScanningLocationPullRequestBody(GitHubModel): + """SecretScanningLocationPullRequestBody + + Represents a 'pull_request_body' secret scanning location type. This location + type shows that a secret was detected in the body of a pull request. + """ + + pull_request_body_url: str = Field( + description="The API URL to get the pull request where the secret was detected." + ) + + +class SecretScanningLocationPullRequestComment(GitHubModel): + """SecretScanningLocationPullRequestComment + + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ + + pull_request_comment_url: str = Field( + description="The API URL to get the pull request comment where the secret was detected." + ) + + +class SecretScanningLocationPullRequestReview(GitHubModel): + """SecretScanningLocationPullRequestReview + + Represents a 'pull_request_review' secret scanning location type. This location + type shows that a secret was detected in a review on a pull request. + """ + + pull_request_review_url: str = Field( + description="The API URL to get the pull request review where the secret was detected." + ) + +class SecretScanningLocationPullRequestReviewComment(GitHubModel): + """SecretScanningLocationPullRequestReviewComment -class WebhookSecurityAndAnalysisPropChanges(GitHubModel): - """WebhookSecurityAndAnalysisPropChanges""" + 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. + """ - from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( - default=UNSET, alias="from" + 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(WebhookSecurityAndAnalysisPropChanges) +model_rebuild(WebhookSecretScanningAlertLocationCreated) +model_rebuild(SecretScanningLocation) +model_rebuild(SecretScanningLocationCommit) +model_rebuild(SecretScanningLocationWikiCommit) +model_rebuild(SecretScanningLocationIssueTitle) +model_rebuild(SecretScanningLocationIssueBody) +model_rebuild(SecretScanningLocationIssueComment) +model_rebuild(SecretScanningLocationDiscussionTitle) +model_rebuild(SecretScanningLocationDiscussionBody) +model_rebuild(SecretScanningLocationDiscussionComment) +model_rebuild(SecretScanningLocationPullRequestTitle) +model_rebuild(SecretScanningLocationPullRequestBody) +model_rebuild(SecretScanningLocationPullRequestComment) +model_rebuild(SecretScanningLocationPullRequestReview) +model_rebuild(SecretScanningLocationPullRequestReviewComment) -__all__ = ("WebhookSecurityAndAnalysisPropChanges",) +__all__ = ( + "WebhookSecretScanningAlertLocationCreated", + "SecretScanningLocation", + "SecretScanningLocationCommit", + "SecretScanningLocationWikiCommit", + "SecretScanningLocationIssueTitle", + "SecretScanningLocationIssueBody", + "SecretScanningLocationIssueComment", + "SecretScanningLocationDiscussionTitle", + "SecretScanningLocationDiscussionBody", + "SecretScanningLocationDiscussionComment", + "SecretScanningLocationPullRequestTitle", + "SecretScanningLocationPullRequestBody", + "SecretScanningLocationPullRequestComment", + "SecretScanningLocationPullRequestReview", + "SecretScanningLocationPullRequestReviewComment", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0709.py b/githubkit/versions/v2022_11_28/models/group_0709.py index 767987190..875448bf5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0709.py +++ b/githubkit/versions/v2022_11_28/models/group_0709.py @@ -9,25 +9,19 @@ from __future__ import annotations -from typing import Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0050 import SecurityAndAnalysis - -class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" +class WebhookSecretScanningAlertLocationCreatedFormEncoded(GitHubModel): + """Secret Scanning Alert Location Created Event""" - security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( - default=UNSET + payload: str = Field( + description="A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object." ) -model_rebuild(WebhookSecurityAndAnalysisPropChangesPropFrom) +model_rebuild(WebhookSecretScanningAlertLocationCreatedFormEncoded) -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncoded",) diff --git a/githubkit/versions/v2022_11_28/models/group_0710.py b/githubkit/versions/v2022_11_28/models/group_0710.py index edee0f196..1ad72d3c3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0710.py +++ b/githubkit/versions/v2022_11_28/models/group_0710.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0415 import WebhooksSponsorship -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0419 import SecretScanningAlertWebhook -class WebhookSponsorshipCancelled(GitHubModel): - """sponsorship cancelled event""" +class WebhookSecretScanningAlertReopened(GitHubModel): + """secret_scanning_alert reopened event""" - action: Literal["cancelled"] = Field() + action: Literal["reopened"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +45,17 @@ class WebhookSponsorshipCancelled(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` 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: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipCancelled) +model_rebuild(WebhookSecretScanningAlertReopened) -__all__ = ("WebhookSponsorshipCancelled",) +__all__ = ("WebhookSecretScanningAlertReopened",) diff --git a/githubkit/versions/v2022_11_28/models/group_0711.py b/githubkit/versions/v2022_11_28/models/group_0711.py index 469928fb5..9d3af40b0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0711.py +++ b/githubkit/versions/v2022_11_28/models/group_0711.py @@ -17,18 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0415 import WebhooksSponsorship -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0419 import SecretScanningAlertWebhook -class WebhookSponsorshipCreated(GitHubModel): - """sponsorship created event""" +class WebhookSecretScanningAlertResolved(GitHubModel): + """secret_scanning_alert resolved event""" - action: Literal["created"] = Field() + action: Literal["resolved"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -44,18 +45,17 @@ class WebhookSponsorshipCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` 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: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipCreated) +model_rebuild(WebhookSecretScanningAlertResolved) -__all__ = ("WebhookSponsorshipCreated",) +__all__ = ("WebhookSecretScanningAlertResolved",) diff --git a/githubkit/versions/v2022_11_28/models/group_0712.py b/githubkit/versions/v2022_11_28/models/group_0712.py index 05d216421..7cec75878 100644 --- a/githubkit/versions/v2022_11_28/models/group_0712.py +++ b/githubkit/versions/v2022_11_28/models/group_0712.py @@ -17,19 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0415 import WebhooksSponsorship -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0419 import SecretScanningAlertWebhook -class WebhookSponsorshipEdited(GitHubModel): - """sponsorship edited event""" +class WebhookSecretScanningAlertValidated(GitHubModel): + """secret_scanning_alert validated event""" - action: Literal["edited"] = Field() - changes: WebhookSponsorshipEditedPropChanges = Field() + action: Literal["validated"] = Field() + alert: SecretScanningAlertWebhook = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -45,41 +45,17 @@ class WebhookSponsorshipEdited(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[RepositoryWebhooks] = Field( - default=UNSET, + repository: RepositoryWebhooks = Field( title="Repository", description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - 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(WebhookSecretScanningAlertValidated) -__all__ = ( - "WebhookSponsorshipEdited", - "WebhookSponsorshipEditedPropChanges", - "WebhookSponsorshipEditedPropChangesPropPrivacyLevel", -) +__all__ = ("WebhookSecretScanningAlertValidated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0713.py b/githubkit/versions/v2022_11_28/models/group_0713.py index e65e5b9c1..ea327e914 100644 --- a/githubkit/versions/v2022_11_28/models/group_0713.py +++ b/githubkit/versions/v2022_11_28/models/group_0713.py @@ -17,22 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0415 import WebhooksSponsorship -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0420 import WebhooksSecurityAdvisory +from .group_0374 import OrganizationSimpleWebhooks -class WebhookSponsorshipPendingCancellation(GitHubModel): - """sponsorship pending_cancellation event""" +class WebhookSecurityAdvisoryPublished(GitHubModel): + """security_advisory published event""" - action: Literal["pending_cancellation"] = Field() - effective_date: Missing[str] = Field( - default=UNSET, - description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", - ) + action: Literal["published"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,13 +49,16 @@ class WebhookSponsorshipPendingCancellation(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: SimpleUserWebhooks = Field( + security_advisory: WebhooksSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipPendingCancellation) +model_rebuild(WebhookSecurityAdvisoryPublished) -__all__ = ("WebhookSponsorshipPendingCancellation",) +__all__ = ("WebhookSecurityAdvisoryPublished",) diff --git a/githubkit/versions/v2022_11_28/models/group_0714.py b/githubkit/versions/v2022_11_28/models/group_0714.py index 9c836e83b..245022b9b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0714.py +++ b/githubkit/versions/v2022_11_28/models/group_0714.py @@ -17,24 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0416 import WebhooksChanges8 -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0415 import WebhooksSponsorship -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0420 import WebhooksSecurityAdvisory +from .group_0374 import OrganizationSimpleWebhooks -class WebhookSponsorshipPendingTierChange(GitHubModel): - """sponsorship pending_tier_change event""" +class WebhookSecurityAdvisoryUpdated(GitHubModel): + """security_advisory updated event""" - action: Literal["pending_tier_change"] = Field() - changes: WebhooksChanges8 = Field() - effective_date: Missing[str] = Field( - default=UNSET, - description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", - ) + action: Literal["updated"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -55,13 +49,16 @@ class WebhookSponsorshipPendingTierChange(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: SimpleUserWebhooks = Field( + security_advisory: WebhooksSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipPendingTierChange) +model_rebuild(WebhookSecurityAdvisoryUpdated) -__all__ = ("WebhookSponsorshipPendingTierChange",) +__all__ = ("WebhookSecurityAdvisoryUpdated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0715.py b/githubkit/versions/v2022_11_28/models/group_0715.py index 6c7561723..8d8c9b4fe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0715.py +++ b/githubkit/versions/v2022_11_28/models/group_0715.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,20 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0416 import WebhooksChanges8 -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0415 import WebhooksSponsorship -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookSponsorshipTierChanged(GitHubModel): - """sponsorship tier_changed event""" +class WebhookSecurityAdvisoryWithdrawn(GitHubModel): + """security_advisory withdrawn event""" - action: Literal["tier_changed"] = Field() - changes: WebhooksChanges8 = Field() + action: Literal["withdrawn"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -51,13 +48,135 @@ class WebhookSponsorshipTierChanged(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: SimpleUserWebhooks = Field( + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory = Field( + description="The details of the security advisory, including summary, description, and severity." + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookSponsorshipTierChanged) +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory(GitHubModel): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss = Field() + 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__ = ("WebhookSponsorshipTierChanged",) +__all__ = ( + "WebhookSecurityAdvisoryWithdrawn", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvss", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItems", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackage", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0716.py b/githubkit/versions/v2022_11_28/models/group_0716.py index 154be561b..464852b1b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0716.py +++ b/githubkit/versions/v2022_11_28/models/group_0716.py @@ -9,25 +9,24 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0101 import FullRepository +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks +from .group_0717 import WebhookSecurityAndAnalysisPropChanges -class WebhookStarCreated(GitHubModel): - """star created event""" +class WebhookSecurityAndAnalysis(GitHubModel): + """security_and_analysis event""" - action: Literal["created"] = Field() + changes: WebhookSecurityAndAnalysisPropChanges = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -43,19 +42,16 @@ class WebhookStarCreated(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: FullRepository = Field( + title="Full Repository", description="Full Repository" ) - sender: SimpleUserWebhooks = Field( + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - starred_at: Union[str, None] = Field( - description="The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." - ) -model_rebuild(WebhookStarCreated) +model_rebuild(WebhookSecurityAndAnalysis) -__all__ = ("WebhookStarCreated",) +__all__ = ("WebhookSecurityAndAnalysis",) diff --git a/githubkit/versions/v2022_11_28/models/group_0717.py b/githubkit/versions/v2022_11_28/models/group_0717.py index 8d6759ff4..d98e9d70d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0717.py +++ b/githubkit/versions/v2022_11_28/models/group_0717.py @@ -9,53 +9,23 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0718 import WebhookSecurityAndAnalysisPropChangesPropFrom -class WebhookStarDeleted(GitHubModel): - """star deleted event""" +class WebhookSecurityAndAnalysisPropChanges(GitHubModel): + """WebhookSecurityAndAnalysisPropChanges""" - 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)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - 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." + from_: Missing[WebhookSecurityAndAnalysisPropChangesPropFrom] = Field( + default=UNSET, alias="from" ) -model_rebuild(WebhookStarDeleted) +model_rebuild(WebhookSecurityAndAnalysisPropChanges) -__all__ = ("WebhookStarDeleted",) +__all__ = ("WebhookSecurityAndAnalysisPropChanges",) diff --git a/githubkit/versions/v2022_11_28/models/group_0718.py b/githubkit/versions/v2022_11_28/models/group_0718.py index 3b5f547c8..578512a10 100644 --- a/githubkit/versions/v2022_11_28/models/group_0718.py +++ b/githubkit/versions/v2022_11_28/models/group_0718.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field @@ -18,236 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0054 import SecurityAndAnalysis -class WebhookStatus(GitHubModel): - """status event""" +class WebhookSecurityAndAnalysisPropChangesPropFrom(GitHubModel): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - 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." + security_and_analysis: Missing[Union[SecurityAndAnalysis, None]] = Field( + default=UNSET ) - 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)."\n', - ) - 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - 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() -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(WebhookSecurityAndAnalysisPropChangesPropFrom) -__all__ = ( - "WebhookStatus", - "WebhookStatusPropBranchesItems", - "WebhookStatusPropBranchesItemsPropCommit", - "WebhookStatusPropCommit", - "WebhookStatusPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommitter", - "WebhookStatusPropCommitPropParentsItems", - "WebhookStatusPropCommitPropCommit", - "WebhookStatusPropCommitPropCommitPropAuthor", - "WebhookStatusPropCommitPropCommitPropCommitter", - "WebhookStatusPropCommitPropCommitPropTree", - "WebhookStatusPropCommitPropCommitPropVerification", -) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFrom",) diff --git a/githubkit/versions/v2022_11_28/models/group_0719.py b/githubkit/versions/v2022_11_28/models/group_0719.py index 0c6cb9758..bc6fbd886 100644 --- a/githubkit/versions/v2022_11_28/models/group_0719.py +++ b/githubkit/versions/v2022_11_28/models/group_0719.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Literal from pydantic import Field @@ -18,19 +17,45 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof0) - -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0421 import WebhooksSponsorship +from .group_0374 import OrganizationSimpleWebhooks + + +class WebhookSponsorshipCancelled(GitHubModel): + """sponsorship cancelled event""" + + 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)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + sponsorship: WebhooksSponsorship = Field() + + +model_rebuild(WebhookSponsorshipCancelled) + +__all__ = ("WebhookSponsorshipCancelled",) diff --git a/githubkit/versions/v2022_11_28/models/group_0720.py b/githubkit/versions/v2022_11_28/models/group_0720.py index bae400dac..5f21cd464 100644 --- a/githubkit/versions/v2022_11_28/models/group_0720.py +++ b/githubkit/versions/v2022_11_28/models/group_0720.py @@ -9,21 +9,53 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" - - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - - -model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof1) - -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0421 import WebhooksSponsorship +from .group_0374 import OrganizationSimpleWebhooks + + +class WebhookSponsorshipCreated(GitHubModel): + """sponsorship 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)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + sponsorship: WebhooksSponsorship = Field() + + +model_rebuild(WebhookSponsorshipCreated) + +__all__ = ("WebhookSponsorshipCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0721.py b/githubkit/versions/v2022_11_28/models/group_0721.py index 16064411f..cc1f7fd52 100644 --- a/githubkit/versions/v2022_11_28/models/group_0721.py +++ b/githubkit/versions/v2022_11_28/models/group_0721.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Literal from pydantic import Field @@ -18,19 +17,69 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0421 import WebhooksSponsorship +from .group_0374 import OrganizationSimpleWebhooks -class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookSponsorshipEdited(GitHubModel): + """sponsorship edited event""" - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) + action: Literal["edited"] = Field() + changes: WebhookSponsorshipEditedPropChanges = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) +class WebhookSponsorshipEditedPropChanges(GitHubModel): + """WebhookSponsorshipEditedPropChanges""" -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) + 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_0722.py b/githubkit/versions/v2022_11_28/models/group_0722.py index 01ba88f8b..4c57d89bd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0722.py +++ b/githubkit/versions/v2022_11_28/models/group_0722.py @@ -9,21 +9,57 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0421 import WebhooksSponsorship +from .group_0374 import OrganizationSimpleWebhooks + -class WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" +class WebhookSponsorshipPendingCancellation(GitHubModel): + """sponsorship pending_cancellation event""" - date: str = Field() - email: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) + action: Literal["pending_cancellation"] = Field() + effective_date: Missing[str] = Field( + default=UNSET, + description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) +model_rebuild(WebhookSponsorshipPendingCancellation) -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) +__all__ = ("WebhookSponsorshipPendingCancellation",) diff --git a/githubkit/versions/v2022_11_28/models/group_0723.py b/githubkit/versions/v2022_11_28/models/group_0723.py index 46b7a27c7..097a9182c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0723.py +++ b/githubkit/versions/v2022_11_28/models/group_0723.py @@ -9,23 +9,32 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0417 import WebhooksTeam1 -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0422 import WebhooksChanges8 +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0421 import WebhooksSponsorship +from .group_0374 import OrganizationSimpleWebhooks -class WebhookTeamAdd(GitHubModel): - """team_add event""" +class WebhookSponsorshipPendingTierChange(GitHubModel): + """sponsorship pending_tier_change event""" + action: Literal["pending_tier_change"] = Field() + changes: WebhooksChanges8 = Field() + effective_date: Missing[str] = Field( + default=UNSET, + description="The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect.", + ) enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -41,7 +50,8 @@ class WebhookTeamAdd(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when 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.", ) @@ -49,12 +59,9 @@ class WebhookTeamAdd(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookTeamAdd) +model_rebuild(WebhookSponsorshipPendingTierChange) -__all__ = ("WebhookTeamAdd",) +__all__ = ("WebhookSponsorshipPendingTierChange",) diff --git a/githubkit/versions/v2022_11_28/models/group_0724.py b/githubkit/versions/v2022_11_28/models/group_0724.py index 7069809c7..7d96133d5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0724.py +++ b/githubkit/versions/v2022_11_28/models/group_0724.py @@ -9,26 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0417 import WebhooksTeam1 -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0422 import WebhooksChanges8 +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0421 import WebhooksSponsorship +from .group_0374 import OrganizationSimpleWebhooks -class WebhookTeamAddedToRepository(GitHubModel): - """team added_to_repository event""" +class WebhookSponsorshipTierChanged(GitHubModel): + """sponsorship tier_changed event""" - action: Literal["added_to_repository"] = Field() + action: Literal["tier_changed"] = Field() + changes: WebhooksChanges8 = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,221 +41,23 @@ class WebhookTeamAddedToRepository(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamAddedToRepositoryPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: Missing[SimpleUserWebhooks] = 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: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[ - WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - ] = Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicense, None] = ( - Field(alias="license", title="License") - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwner, None] = Field( - title="User" - ) - permissions: Missing[WebhookTeamAddedToRepositoryPropRepositoryPropPermissions] = ( - Field(default=UNSET) - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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) + sponsorship: WebhooksSponsorship = Field() -model_rebuild(WebhookTeamAddedToRepository) -model_rebuild(WebhookTeamAddedToRepositoryPropRepository) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropLicense) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropOwner) -model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropPermissions) +model_rebuild(WebhookSponsorshipTierChanged) -__all__ = ( - "WebhookTeamAddedToRepository", - "WebhookTeamAddedToRepositoryPropRepository", - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", -) +__all__ = ("WebhookSponsorshipTierChanged",) diff --git a/githubkit/versions/v2022_11_28/models/group_0725.py b/githubkit/versions/v2022_11_28/models/group_0725.py index ee4b62aa9..e4ea1b598 100644 --- a/githubkit/versions/v2022_11_28/models/group_0725.py +++ b/githubkit/versions/v2022_11_28/models/group_0725.py @@ -9,24 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0417 import WebhooksTeam1 -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookTeamCreated(GitHubModel): - """team created event""" +class WebhookStarCreated(GitHubModel): + """star created event""" action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( @@ -39,218 +38,24 @@ class WebhookTeamCreated(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamCreatedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamCreatedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamCreatedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." + 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." ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamCreatedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamCreatedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamCreatedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamCreatedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookTeamCreated) -model_rebuild(WebhookTeamCreatedPropRepository) -model_rebuild(WebhookTeamCreatedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamCreatedPropRepositoryPropLicense) -model_rebuild(WebhookTeamCreatedPropRepositoryPropOwner) -model_rebuild(WebhookTeamCreatedPropRepositoryPropPermissions) +model_rebuild(WebhookStarCreated) -__all__ = ( - "WebhookTeamCreated", - "WebhookTeamCreatedPropRepository", - "WebhookTeamCreatedPropRepositoryPropCustomProperties", - "WebhookTeamCreatedPropRepositoryPropLicense", - "WebhookTeamCreatedPropRepositoryPropOwner", - "WebhookTeamCreatedPropRepositoryPropPermissions", -) +__all__ = ("WebhookStarCreated",) diff --git a/githubkit/versions/v2022_11_28/models/group_0726.py b/githubkit/versions/v2022_11_28/models/group_0726.py index 87bcab603..7c98cc24c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0726.py +++ b/githubkit/versions/v2022_11_28/models/group_0726.py @@ -9,24 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0417 import WebhooksTeam1 -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookTeamDeleted(GitHubModel): - """team deleted event""" +class WebhookStarDeleted(GitHubModel): + """star deleted event""" action: Literal["deleted"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( @@ -39,219 +38,24 @@ class WebhookTeamDeleted(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: OrganizationSimpleWebhooks = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamDeletedPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" + repository: RepositoryWebhooks = Field( + title="Repository", + description="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[SimpleUserWebhooks] = Field( - default=UNSET, + sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", - ) - - -class WebhookTeamDeletedPropRepository(GitHubModel): - """Repository - - A git repository - """ - - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamDeletedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." + 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." ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamDeletedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamDeletedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() - - -class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamDeletedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): - """License""" - - key: str = Field() - name: str = Field() - node_id: str = Field() - spdx_id: str = Field() - url: Union[str, None] = Field() - - -class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamDeletedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookTeamDeleted) -model_rebuild(WebhookTeamDeletedPropRepository) -model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) -model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) -model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) +model_rebuild(WebhookStarDeleted) -__all__ = ( - "WebhookTeamDeleted", - "WebhookTeamDeletedPropRepository", - "WebhookTeamDeletedPropRepositoryPropCustomProperties", - "WebhookTeamDeletedPropRepositoryPropLicense", - "WebhookTeamDeletedPropRepositoryPropOwner", - "WebhookTeamDeletedPropRepositoryPropPermissions", -) +__all__ = ("WebhookStarDeleted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0727.py b/githubkit/versions/v2022_11_28/models/group_0727.py index f278dc53a..c61597b7d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0727.py +++ b/githubkit/versions/v2022_11_28/models/group_0727.py @@ -16,197 +16,93 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0417 import WebhooksTeam1 -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookTeamEdited(GitHubModel): - """team edited event""" +class WebhookStatus(GitHubModel): + """status event""" - action: Literal["edited"] = Field() - changes: WebhookTeamEditedPropChanges = Field( - description="The changes to the team if the action was `edited`." + 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)."\n', ) + 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)."', ) - organization: OrganizationSimpleWebhooks = Field( + name: str = Field() + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: Missing[WebhookTeamEditedPropRepository] = 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: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - team: WebhooksTeam1 = Field( - title="Team", - description="Groups of organization members that gives permissions on specified repositories.", + 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 WebhookTeamEditedPropRepository(GitHubModel): - """Repository - - A git repository - """ +class WebhookStatusPropBranchesItems(GitHubModel): + """WebhookStatusPropBranchesItems""" - allow_auto_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow auto-merge for pull requests." - ) - allow_forking: Missing[bool] = Field( - default=UNSET, description="Whether to allow private forks" - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to allow merge commits for pull requests." - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow rebase merges for pull requests." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." - ) - allow_update_branch: Missing[bool] = Field(default=UNSET) - archive_url: str = Field() - archived: bool = Field( - default=False, description="Whether the repository is archived." - ) - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - clone_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - created_at: Union[int, datetime] = Field() - custom_properties: Missing[WebhookTeamEditedPropRepositoryPropCustomProperties] = ( - Field( - default=UNSET, - description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - ) - default_branch: str = Field(description="The default branch of the repository.") - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - deployments_url: str = Field() - description: Union[str, None] = Field() - disabled: Missing[bool] = Field( - default=UNSET, description="Returns whether or not this repository is disabled." - ) - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks: int = Field() - forks_count: int = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - git_url: str = Field() - has_downloads: bool = Field( - default=True, description="Whether downloads are enabled." - ) - has_issues: bool = Field(default=True, description="Whether issues are enabled.") - has_pages: bool = Field() - has_projects: bool = Field( - default=True, description="Whether projects are enabled." - ) - has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") - homepage: Union[str, None] = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - is_template: Missing[bool] = Field(default=UNSET) - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - language: Union[str, None] = Field() - languages_url: str = Field() - license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( - alias="license", title="License" - ) - master_branch: Missing[str] = Field(default=UNSET) - merges_url: str = Field() - milestones_url: str = Field() - mirror_url: Union[str, None] = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - open_issues: int = Field() - open_issues_count: int = Field() - organization: Missing[str] = Field(default=UNSET) - owner: Union[WebhookTeamEditedPropRepositoryPropOwner, None] = Field(title="User") - permissions: Missing[WebhookTeamEditedPropRepositoryPropPermissions] = Field( - default=UNSET - ) - private: bool = Field(description="Whether the repository is private or public.") - public: Missing[bool] = Field(default=UNSET) - pulls_url: str = Field() - pushed_at: Union[int, datetime, None] = Field() - releases_url: str = Field() - role_name: Missing[Union[str, None]] = Field(default=UNSET) - size: int = Field() - ssh_url: str = Field() - stargazers: Missing[int] = Field(default=UNSET) - stargazers_count: int = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - svn_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - topics: List[str] = Field() - trees_url: str = Field() - updated_at: datetime = Field() - url: str = Field() - visibility: Literal["public", "private", "internal"] = Field() - watchers: int = Field() - watchers_count: int = Field() + commit: WebhookStatusPropBranchesItemsPropCommit = Field() + name: str = Field() + protected: bool = Field() -class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): - """WebhookTeamEditedPropRepositoryPropCustomProperties +class WebhookStatusPropBranchesItemsPropCommit(GitHubModel): + """WebhookStatusPropBranchesItemsPropCommit""" - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ + sha: Union[str, None] = Field() + url: Union[str, None] = Field() -class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): - """License""" +class WebhookStatusPropCommit(GitHubModel): + """WebhookStatusPropCommit""" - key: str = Field() - name: str = Field() + 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() - spdx_id: str = Field() - url: Union[str, None] = Field() + parents: List[WebhookStatusPropCommitPropParentsItems] = Field() + sha: str = Field() + url: str = Field() -class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): +class WebhookStatusPropCommitPropAuthor(GitHubModel): """User""" avatar_url: Missing[str] = Field(default=UNSET) @@ -218,8 +114,8 @@ class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): gists_url: Missing[str] = Field(default=UNSET) gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() + 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) @@ -232,130 +128,126 @@ class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): url: Missing[str] = Field(default=UNSET) -class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamEditedPropRepositoryPropPermissions""" - - admin: bool = Field() - maintain: Missing[bool] = Field(default=UNSET) - pull: bool = Field() - push: bool = Field() - triage: Missing[bool] = Field(default=UNSET) - - -class WebhookTeamEditedPropChanges(GitHubModel): - """WebhookTeamEditedPropChanges - - The changes to the team if the action was `edited`. - """ - - description: Missing[WebhookTeamEditedPropChangesPropDescription] = Field( - default=UNSET - ) - name: Missing[WebhookTeamEditedPropChangesPropName] = Field(default=UNSET) - privacy: Missing[WebhookTeamEditedPropChangesPropPrivacy] = Field(default=UNSET) - notification_setting: Missing[ - WebhookTeamEditedPropChangesPropNotificationSetting - ] = Field(default=UNSET) - repository: Missing[WebhookTeamEditedPropChangesPropRepository] = Field( - default=UNSET - ) - - -class WebhookTeamEditedPropChangesPropDescription(GitHubModel): - """WebhookTeamEditedPropChangesPropDescription""" - - from_: str = Field( - alias="from", - description="The previous version of the description if the action was `edited`.", - ) - - -class WebhookTeamEditedPropChangesPropName(GitHubModel): - """WebhookTeamEditedPropChangesPropName""" +class WebhookStatusPropCommitPropCommitter(GitHubModel): + """User""" - from_: str = Field( - alias="from", - description="The previous version of the name 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: 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 WebhookTeamEditedPropChangesPropPrivacy(GitHubModel): - """WebhookTeamEditedPropChangesPropPrivacy""" +class WebhookStatusPropCommitPropParentsItems(GitHubModel): + """WebhookStatusPropCommitPropParentsItems""" - from_: str = Field( - alias="from", - description="The previous version of the team's privacy if the action was `edited`.", - ) + html_url: str = Field() + sha: str = Field() + url: str = Field() -class WebhookTeamEditedPropChangesPropNotificationSetting(GitHubModel): - """WebhookTeamEditedPropChangesPropNotificationSetting""" +class WebhookStatusPropCommitPropCommit(GitHubModel): + """WebhookStatusPropCommitPropCommit""" - from_: str = Field( - alias="from", - description="The previous version of the team's notification setting if the action was `edited`.", - ) + author: WebhookStatusPropCommitPropCommitPropAuthor = Field() + comment_count: int = Field() + committer: WebhookStatusPropCommitPropCommitPropCommitter = Field() + message: str = Field() + tree: WebhookStatusPropCommitPropCommitPropTree = Field() + url: str = Field() + verification: WebhookStatusPropCommitPropCommitPropVerification = Field() -class WebhookTeamEditedPropChangesPropRepository(GitHubModel): - """WebhookTeamEditedPropChangesPropRepository""" +class WebhookStatusPropCommitPropCommitPropAuthor(GitHubModel): + """WebhookStatusPropCommitPropCommitPropAuthor""" - permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissions = Field() + date: datetime = Field() + email: str = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookTeamEditedPropChangesPropRepositoryPropPermissions(GitHubModel): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" +class WebhookStatusPropCommitPropCommitPropCommitter(GitHubModel): + """WebhookStatusPropCommitPropCommitPropCommitter""" - from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom = Field( - alias="from" - ) + date: datetime = Field() + email: str = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom(GitHubModel): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" +class WebhookStatusPropCommitPropCommitPropTree(GitHubModel): + """WebhookStatusPropCommitPropCommitPropTree""" - 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`.", - ) + sha: str = Field() + url: str = Field() -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) +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() + + +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__ = ( - "WebhookTeamEdited", - "WebhookTeamEditedPropRepository", - "WebhookTeamEditedPropRepositoryPropCustomProperties", - "WebhookTeamEditedPropRepositoryPropLicense", - "WebhookTeamEditedPropRepositoryPropOwner", - "WebhookTeamEditedPropRepositoryPropPermissions", - "WebhookTeamEditedPropChanges", - "WebhookTeamEditedPropChangesPropDescription", - "WebhookTeamEditedPropChangesPropName", - "WebhookTeamEditedPropChangesPropPrivacy", - "WebhookTeamEditedPropChangesPropNotificationSetting", - "WebhookTeamEditedPropChangesPropRepository", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", + "WebhookStatus", + "WebhookStatusPropBranchesItems", + "WebhookStatusPropBranchesItemsPropCommit", + "WebhookStatusPropCommit", + "WebhookStatusPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommitter", + "WebhookStatusPropCommitPropParentsItems", + "WebhookStatusPropCommitPropCommit", + "WebhookStatusPropCommitPropCommitPropAuthor", + "WebhookStatusPropCommitPropCommitPropCommitter", + "WebhookStatusPropCommitPropCommitPropTree", + "WebhookStatusPropCommitPropCommitPropVerification", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0728.py b/githubkit/versions/v2022_11_28/models/group_0728.py index c1844004a..0c6cb9758 100644 --- a/githubkit/versions/v2022_11_28/models/group_0728.py +++ b/githubkit/versions/v2022_11_28/models/group_0728.py @@ -9,252 +9,28 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0417 import WebhooksTeam1 -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +class WebhookStatusPropCommitPropCommitPropAuthorAllof0(GitHubModel): + """Committer -class WebhookTeamRemovedFromRepository(GitHubModel): - """team removed_from_repository event""" - - action: Literal["removed_from_repository"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: OrganizationSimpleWebhooks = Field( - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", - ) - repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( - default=UNSET, title="Repository", description="A git repository" - ) - sender: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - 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. + Metaproperties for Git author/committer information. """ - -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) - - -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) + 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(WebhookTeamRemovedFromRepository) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepository) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner) -model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions) +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof0) -__all__ = ( - "WebhookTeamRemovedFromRepository", - "WebhookTeamRemovedFromRepositoryPropRepository", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0729.py b/githubkit/versions/v2022_11_28/models/group_0729.py index 0c5b2abf0..bae400dac 100644 --- a/githubkit/versions/v2022_11_28/models/group_0729.py +++ b/githubkit/versions/v2022_11_28/models/group_0729.py @@ -9,50 +9,21 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks - - -class WebhookWatchStarted(GitHubModel): - """watch started event""" - - action: Literal["started"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - - -model_rebuild(WebhookWatchStarted) - -__all__ = ("WebhookWatchStarted",) + +class WebhookStatusPropCommitPropCommitPropAuthorAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" + + date: str = Field() + email: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + + +model_rebuild(WebhookStatusPropCommitPropCommitPropAuthorAllof1) + +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0730.py b/githubkit/versions/v2022_11_28/models/group_0730.py index e04ef1a4b..16064411f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0730.py +++ b/githubkit/versions/v2022_11_28/models/group_0730.py @@ -10,59 +10,27 @@ from __future__ import annotations from typing import Union +from datetime import datetime from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +class WebhookStatusPropCommitPropCommitPropCommitterAllof0(GitHubModel): + """Committer -class WebhookWorkflowDispatch(GitHubModel): - """workflow_dispatch event""" + Metaproperties for Git author/committer information. + """ - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', - ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, - title="Organization Simple", - description="A GitHub organization. Webhook payloads contain the `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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - workflow: 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 WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): - """WebhookWorkflowDispatchPropInputs""" +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof0) - -model_rebuild(WebhookWorkflowDispatch) -model_rebuild(WebhookWorkflowDispatchPropInputs) - -__all__ = ( - "WebhookWorkflowDispatch", - "WebhookWorkflowDispatchPropInputs", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0731.py b/githubkit/versions/v2022_11_28/models/group_0731.py index 871c9e6d5..01ba88f8b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0731.py +++ b/githubkit/versions/v2022_11_28/models/group_0731.py @@ -9,128 +9,21 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0171 import Deployment -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks - - -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)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - 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 WebhookStatusPropCommitPropCommitPropCommitterAllof1(GitHubModel): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - 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() + date: str = Field() + email: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) -model_rebuild(WebhookWorkflowJobCompleted) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) +model_rebuild(WebhookStatusPropCommitPropCommitPropCommitterAllof1) -__all__ = ( - "WebhookWorkflowJobCompleted", - "WebhookWorkflowJobCompletedPropWorkflowJob", - "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0732.py b/githubkit/versions/v2022_11_28/models/group_0732.py index 7b539ff6d..a4beceecc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0732.py +++ b/githubkit/versions/v2022_11_28/models/group_0732.py @@ -9,87 +9,52 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0423 import WebhooksTeam1 +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0(GitHubModel): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. - """ +class WebhookTeamAdd(GitHubModel): + """team_add event""" - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], - ] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' - ) - 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`." + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - 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`." + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - 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`." + organization: Missing[OrganizationSimpleWebhooks] = Field( + default=UNSET, + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - 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`." + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", ) - 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() + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - url: str = Field() - - -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel): - """Workflow Step""" - - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued"] = Field() -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) +model_rebuild(WebhookTeamAdd) -__all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", -) +__all__ = ("WebhookTeamAdd",) diff --git a/githubkit/versions/v2022_11_28/models/group_0733.py b/githubkit/versions/v2022_11_28/models/group_0733.py index b2813755e..f7de6ee7c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0733.py +++ b/githubkit/versions/v2022_11_28/models/group_0733.py @@ -9,69 +9,251 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - - -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" - - check_run_url: Missing[str] = Field(default=UNSET) - completed_at: Missing[str] = Field(default=UNSET) - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] = Field() - created_at: Missing[str] = Field( - default=UNSET, description="The time that the job created." - ) - head_sha: Missing[str] = Field(default=UNSET) +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + +from .group_0423 import WebhooksTeam1 +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks + + +class WebhookTeamAddedToRepository(GitHubModel): + """team added_to_repository event""" + + action: Literal["added_to_repository"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamAddedToRepositoryPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamAddedToRepositoryPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[ + WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + ] = Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamAddedToRepositoryPropRepositoryPropLicense, None] = ( + Field(alias="license", title="License") + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamAddedToRepositoryPropRepositoryPropOwner, None] = Field( + title="User" + ) + permissions: Missing[WebhookTeamAddedToRepositoryPropRepositoryPropPermissions] = ( + Field(default=UNSET) + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamAddedToRepositoryPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamAddedToRepositoryPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[List[Union[str, None]]] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_id: Missing[int] = Field(default=UNSET) - run_url: Missing[str] = Field(default=UNSET) - runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) - runner_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_name: Missing[Union[str, None]] = Field(default=UNSET) - started_at: Missing[str] = Field(default=UNSET) - status: Missing[str] = Field(default=UNSET) - head_branch: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the current branch." - ) - workflow_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow." - ) - steps: Missing[ - List[ - Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] - ] - ] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) url: Missing[str] = Field(default=UNSET) -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" +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(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) +model_rebuild(WebhookTeamAddedToRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepository) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamAddedToRepositoryPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", + "WebhookTeamAddedToRepository", + "WebhookTeamAddedToRepositoryPropRepository", + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicense", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwner", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0734.py b/githubkit/versions/v2022_11_28/models/group_0734.py index b520675b5..5fc9fdb08 100644 --- a/githubkit/versions/v2022_11_28/models/group_0734.py +++ b/githubkit/versions/v2022_11_28/models/group_0734.py @@ -9,26 +9,26 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0171 import Deployment -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0423 import WebhooksTeam1 +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookWorkflowJobInProgress(GitHubModel): - """workflow_job in_progress event""" +class WebhookTeamCreated(GitHubModel): + """team created event""" - action: Literal["in_progress"] = Field() + action: Literal["created"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -39,92 +39,218 @@ class WebhookWorkflowJobInProgress(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[WebhookTeamCreatedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - workflow_job: WebhookWorkflowJobInProgressPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", ) -class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJob""" +class WebhookTeamCreatedPropRepository(GitHubModel): + """Repository - check_run_url: str = Field() - completed_at: Union[Union[str, None], None] = Field() - conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( - Field() + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[Union[int, None], None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." ) - runner_group_name: Union[Union[str, None], None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." ) - runner_id: Union[Union[int, None], None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." ) - runner_name: Union[Union[str, None], None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamCreatedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) ) - head_branch: Union[Union[str, None], None] = Field( - description="The name of the current branch." + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamCreatedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" ) - workflow_name: Union[Union[str, None], None] = Field( - description="The name of the workflow." + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamCreatedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamCreatedPropRepositoryPropPermissions] = Field( + default=UNSET ) - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps] = Field() + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() -class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" +class WebhookTeamCreatedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamCreatedPropRepositoryPropCustomProperties - completed_at: Union[Union[str, None], None] = Field() - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( - Field() - ) + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamCreatedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() name: str = Field() - number: int = Field() - started_at: Union[Union[str, None], None] = Field() - status: Literal["in_progress", "completed", "queued", "pending"] = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamCreatedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookTeamCreatedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamCreatedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookWorkflowJobInProgress) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) +model_rebuild(WebhookTeamCreated) +model_rebuild(WebhookTeamCreatedPropRepository) +model_rebuild(WebhookTeamCreatedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamCreatedPropRepositoryPropLicense) +model_rebuild(WebhookTeamCreatedPropRepositoryPropOwner) +model_rebuild(WebhookTeamCreatedPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowJobInProgress", - "WebhookWorkflowJobInProgressPropWorkflowJob", - "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", + "WebhookTeamCreated", + "WebhookTeamCreatedPropRepository", + "WebhookTeamCreatedPropRepositoryPropCustomProperties", + "WebhookTeamCreatedPropRepositoryPropLicense", + "WebhookTeamCreatedPropRepositoryPropOwner", + "WebhookTeamCreatedPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0735.py b/githubkit/versions/v2022_11_28/models/group_0735.py index 07bdbfbc8..3d301bc4d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0735.py +++ b/githubkit/versions/v2022_11_28/models/group_0735.py @@ -9,78 +9,249 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from .group_0423 import WebhooksTeam1 +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. +class WebhookTeamDeleted(GitHubModel): + """team deleted event""" + + action: Literal["deleted"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamDeletedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: Missing[SimpleUserWebhooks] = Field( + default=UNSET, + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamDeletedPropRepository(GitHubModel): + """Repository + + A git repository """ - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] = ( - Field() + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." ) - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field( - description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" ) - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field( - description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." ) - runner_group_name: Union[str, None] = Field( - description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamDeletedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) ) - runner_id: Union[int, None] = Field( - description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", ) - runner_name: Union[str, None] = Field( - description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." ) - started_at: str = Field() - status: Literal["queued", "in_progress", "completed"] = Field( - description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." ) - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems] = ( - Field() + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamDeletedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamDeletedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamDeletedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): - """Workflow Step""" +class WebhookTeamDeletedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamDeletedPropRepositoryPropCustomProperties - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamDeletedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "queued", "pending"] = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamDeletedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookTeamDeletedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamDeletedPropRepositoryPropPermissions""" + + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) +model_rebuild(WebhookTeamDeleted) +model_rebuild(WebhookTeamDeletedPropRepository) +model_rebuild(WebhookTeamDeletedPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamDeletedPropRepositoryPropLicense) +model_rebuild(WebhookTeamDeletedPropRepositoryPropOwner) +model_rebuild(WebhookTeamDeletedPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", + "WebhookTeamDeleted", + "WebhookTeamDeletedPropRepository", + "WebhookTeamDeletedPropRepositoryPropCustomProperties", + "WebhookTeamDeletedPropRepositoryPropLicense", + "WebhookTeamDeletedPropRepositoryPropOwner", + "WebhookTeamDeletedPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0736.py b/githubkit/versions/v2022_11_28/models/group_0736.py index c968cd99f..b7d287d77 100644 --- a/githubkit/versions/v2022_11_28/models/group_0736.py +++ b/githubkit/versions/v2022_11_28/models/group_0736.py @@ -9,66 +9,353 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from .group_0423 import WebhooksTeam1 +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -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 WebhookTeamEdited(GitHubModel): + """team edited event""" + + action: Literal["edited"] = Field() + changes: WebhookTeamEditedPropChanges = Field( + description="The changes to the team if the action was `edited`." + ) + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', + ) + organization: OrganizationSimpleWebhooks = Field( + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", + ) + repository: Missing[WebhookTeamEditedPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", + ) + + +class WebhookTeamEditedPropRepository(GitHubModel): + """Repository + + A git repository + """ + + allow_auto_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow auto-merge for pull requests." + ) + allow_forking: Missing[bool] = Field( + default=UNSET, description="Whether to allow private forks" + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_update_branch: Missing[bool] = Field(default=UNSET) + archive_url: str = Field() + archived: bool = Field( + default=False, description="Whether the repository is archived." + ) + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + clone_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + created_at: Union[int, datetime] = Field() + custom_properties: Missing[WebhookTeamEditedPropRepositoryPropCustomProperties] = ( + Field( + default=UNSET, + description="The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + ) ) - head_sha: Missing[str] = Field(default=UNSET) + default_branch: str = Field(description="The default branch of the repository.") + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + deployments_url: str = Field() + description: Union[str, None] = Field() + disabled: Missing[bool] = Field( + default=UNSET, description="Returns whether or not this repository is disabled." + ) + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks: int = Field() + forks_count: int = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + git_url: str = Field() + has_downloads: bool = Field( + default=True, description="Whether downloads are enabled." + ) + has_issues: bool = Field(default=True, description="Whether issues are enabled.") + has_pages: bool = Field() + has_projects: bool = Field( + default=True, description="Whether projects are enabled." + ) + has_wiki: bool = Field(default=True, description="Whether the wiki is enabled.") + homepage: Union[str, None] = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + language: Union[str, None] = Field() + languages_url: str = Field() + license_: Union[WebhookTeamEditedPropRepositoryPropLicense, None] = Field( + alias="license", title="License" + ) + master_branch: Missing[str] = Field(default=UNSET) + merges_url: str = Field() + milestones_url: str = Field() + mirror_url: Union[str, None] = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + open_issues: int = Field() + open_issues_count: int = Field() + organization: Missing[str] = Field(default=UNSET) + owner: Union[WebhookTeamEditedPropRepositoryPropOwner, None] = Field(title="User") + permissions: Missing[WebhookTeamEditedPropRepositoryPropPermissions] = Field( + default=UNSET + ) + private: bool = Field(description="Whether the repository is private or public.") + public: Missing[bool] = Field(default=UNSET) + pulls_url: str = Field() + pushed_at: Union[int, datetime, None] = Field() + releases_url: str = Field() + role_name: Missing[Union[str, None]] = Field(default=UNSET) + size: int = Field() + ssh_url: str = Field() + stargazers: Missing[int] = Field(default=UNSET) + stargazers_count: int = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + svn_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + topics: List[str] = Field() + trees_url: str = Field() + updated_at: datetime = Field() + url: str = Field() + visibility: Literal["public", "private", "internal"] = Field() + watchers: int = Field() + watchers_count: int = Field() + + +class WebhookTeamEditedPropRepositoryPropCustomProperties(ExtraGitHubModel): + """WebhookTeamEditedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamEditedPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() + name: str = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamEditedPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) html_url: Missing[str] = Field(default=UNSET) - id: Missing[int] = Field(default=UNSET) - labels: Missing[List[str]] = Field(default=UNSET) + id: int = Field() + login: str = Field() name: Missing[str] = Field(default=UNSET) node_id: Missing[str] = Field(default=UNSET) - run_attempt: Missing[int] = Field(default=UNSET) - run_id: Missing[int] = Field(default=UNSET) - run_url: Missing[str] = Field(default=UNSET) - runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) - runner_id: Missing[Union[int, None]] = Field(default=UNSET) - runner_name: Missing[Union[str, None]] = Field(default=UNSET) - started_at: Missing[str] = Field(default=UNSET) - status: Literal["in_progress", "completed", "queued"] = Field() - head_branch: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the current branch." - ) - workflow_name: Missing[Union[str, None]] = Field( - default=UNSET, description="The name of the workflow." - ) - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems] = ( - Field() - ) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(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 WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): - """Workflow Step""" +class WebhookTeamEditedPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamEditedPropRepositoryPropPermissions""" - completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["in_progress", "completed", "pending", "queued"] = Field() + admin: bool = Field() + maintain: Missing[bool] = Field(default=UNSET) + pull: bool = Field() + push: bool = Field() + triage: Missing[bool] = Field(default=UNSET) + + +class WebhookTeamEditedPropChanges(GitHubModel): + """WebhookTeamEditedPropChanges + + The changes to the team if the action was `edited`. + """ + + description: Missing[WebhookTeamEditedPropChangesPropDescription] = Field( + default=UNSET + ) + name: Missing[WebhookTeamEditedPropChangesPropName] = Field(default=UNSET) + privacy: Missing[WebhookTeamEditedPropChangesPropPrivacy] = Field(default=UNSET) + notification_setting: Missing[ + WebhookTeamEditedPropChangesPropNotificationSetting + ] = Field(default=UNSET) + repository: Missing[WebhookTeamEditedPropChangesPropRepository] = Field( + default=UNSET + ) + + +class WebhookTeamEditedPropChangesPropDescription(GitHubModel): + """WebhookTeamEditedPropChangesPropDescription""" + + from_: str = Field( + alias="from", + description="The previous version of the description if the action was `edited`.", + ) + + +class WebhookTeamEditedPropChangesPropName(GitHubModel): + """WebhookTeamEditedPropChangesPropName""" + + from_: str = Field( + alias="from", + description="The previous version of the name if the action was `edited`.", + ) + + +class WebhookTeamEditedPropChangesPropPrivacy(GitHubModel): + """WebhookTeamEditedPropChangesPropPrivacy""" + + from_: str = Field( + alias="from", + description="The previous version of the team's privacy if the action was `edited`.", + ) + + +class WebhookTeamEditedPropChangesPropNotificationSetting(GitHubModel): + """WebhookTeamEditedPropChangesPropNotificationSetting""" + + from_: str = Field( + alias="from", + description="The previous version of the team's notification setting if the action was `edited`.", + ) + + +class WebhookTeamEditedPropChangesPropRepository(GitHubModel): + """WebhookTeamEditedPropChangesPropRepository""" + + permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissions = Field() + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissions(GitHubModel): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" + + from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom = Field( + alias="from" + ) + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom(GitHubModel): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" + + admin: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `admin` permission on a repository, if the action was `edited`.", + ) + pull: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `pull` permission on a repository, if the action was `edited`.", + ) + push: Missing[bool] = Field( + default=UNSET, + description="The previous version of the team member's `push` permission on a repository, if the action was `edited`.", + ) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) -model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) +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__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", + "WebhookTeamEdited", + "WebhookTeamEditedPropRepository", + "WebhookTeamEditedPropRepositoryPropCustomProperties", + "WebhookTeamEditedPropRepositoryPropLicense", + "WebhookTeamEditedPropRepositoryPropOwner", + "WebhookTeamEditedPropRepositoryPropPermissions", + "WebhookTeamEditedPropChanges", + "WebhookTeamEditedPropChangesPropDescription", + "WebhookTeamEditedPropChangesPropName", + "WebhookTeamEditedPropChangesPropPrivacy", + "WebhookTeamEditedPropChangesPropNotificationSetting", + "WebhookTeamEditedPropChangesPropRepository", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissions", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0737.py b/githubkit/versions/v2022_11_28/models/group_0737.py index 854042ee5..817c9470c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0737.py +++ b/githubkit/versions/v2022_11_28/models/group_0737.py @@ -16,20 +16,19 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0171 import Deployment -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0423 import WebhooksTeam1 +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookWorkflowJobQueued(GitHubModel): - """workflow_job queued event""" +class WebhookTeamRemovedFromRepository(GitHubModel): + """team removed_from_repository event""" - action: Literal["queued"] = Field() + action: Literal["removed_from_repository"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -40,74 +39,222 @@ class WebhookWorkflowJobQueued(GitHubModel): title="Simple Installation", description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - organization: Missing[OrganizationSimpleWebhooks] = Field( - default=UNSET, + organization: OrganizationSimpleWebhooks = Field( title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) - repository: RepositoryWebhooks = Field( - title="Repository", - description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + repository: Missing[WebhookTeamRemovedFromRepositoryPropRepository] = Field( + default=UNSET, title="Repository", description="A git repository" ) sender: SimpleUserWebhooks = Field( title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - 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", + team: WebhooksTeam1 = Field( + title="Team", + description="Groups of organization members that gives permissions on specified repositories.", ) -class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobQueuedPropWorkflowJob""" +class WebhookTeamRemovedFromRepositoryPropRepository(GitHubModel): + """Repository - 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() + 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() - labels: List[str] = Field() - name: str = Field() + id: int = Field(description="Unique identifier of the repository") + is_template: Missing[bool] = Field(default=UNSET) + issue_comment_url: str = Field() + issue_events_url: str = 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() - 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() + 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 WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): - """Workflow Step""" +class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties( + ExtraGitHubModel +): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense(GitHubModel): + """License""" + + key: str = Field() name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["completed", "in_progress", "queued", "pending"] = Field() + node_id: str = Field() + spdx_id: str = Field() + url: Union[str, None] = Field() + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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(WebhookWorkflowJobQueued) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) -model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) +model_rebuild(WebhookTeamRemovedFromRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepository) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner) +model_rebuild(WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions) __all__ = ( - "WebhookWorkflowJobQueued", - "WebhookWorkflowJobQueuedPropWorkflowJob", - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", + "WebhookTeamRemovedFromRepository", + "WebhookTeamRemovedFromRepositoryPropRepository", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomProperties", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicense", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwner", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0738.py b/githubkit/versions/v2022_11_28/models/group_0738.py index 8e9e8b441..fe9e86d51 100644 --- a/githubkit/versions/v2022_11_28/models/group_0738.py +++ b/githubkit/versions/v2022_11_28/models/group_0738.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -18,18 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0171 import Deployment -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookWorkflowJobWaiting(GitHubModel): - """workflow_job waiting event""" +class WebhookWatchStarted(GitHubModel): + """watch started event""" - action: Literal["waiting"] = Field() + action: Literal["started"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,63 +51,8 @@ class WebhookWorkflowJobWaiting(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - workflow_job: WebhookWorkflowJobWaitingPropWorkflowJob = Field() - deployment: Missing[Deployment] = Field( - default=UNSET, - title="Deployment", - description="A request for a specific ref(branch,sha,tag) to be deployed", - ) - - -class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): - """WebhookWorkflowJobWaitingPropWorkflowJob""" - - check_run_url: str = Field() - completed_at: Union[str, None] = Field() - conclusion: Union[str, None] = Field() - created_at: str = Field(description="The time that the job created.") - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - labels: List[str] = Field() - name: str = Field() - node_id: str = Field() - run_attempt: int = Field() - run_id: int = Field() - run_url: str = Field() - runner_group_id: Union[int, None] = Field() - runner_group_name: Union[str, None] = Field() - runner_id: Union[int, None] = Field() - runner_name: Union[str, None] = Field() - started_at: datetime = Field() - head_branch: Union[str, None] = Field(description="The name of the current branch.") - workflow_name: Union[str, None] = Field(description="The name of the workflow.") - status: Literal["queued", "in_progress", "completed", "waiting"] = Field() - steps: List[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems] = Field() - url: str = Field() - - -class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): - """Workflow Step""" - - completed_at: Union[str, None] = Field() - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( - Field() - ) - name: str = Field() - number: int = Field() - started_at: Union[str, None] = Field() - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] = ( - Field() - ) -model_rebuild(WebhookWorkflowJobWaiting) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) -model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) +model_rebuild(WebhookWatchStarted) -__all__ = ( - "WebhookWorkflowJobWaiting", - "WebhookWorkflowJobWaitingPropWorkflowJob", - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", -) +__all__ = ("WebhookWatchStarted",) diff --git a/githubkit/versions/v2022_11_28/models/group_0739.py b/githubkit/versions/v2022_11_28/models/group_0739.py index 8ec4b86fc..c447a445c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0739.py +++ b/githubkit/versions/v2022_11_28/models/group_0739.py @@ -9,32 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0376 import WebhooksWorkflow -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookWorkflowRunCompleted(GitHubModel): - """workflow_run completed event""" +class WebhookWorkflowDispatch(GitHubModel): + """workflow_dispatch 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)."\n', ) + inputs: Union[WebhookWorkflowDispatchPropInputs, None] = Field() installation: Missing[SimpleInstallation] = Field( default=UNSET, title="Simple Installation", @@ -45,6 +43,7 @@ class WebhookWorkflowRunCompleted(GitHubModel): title="Organization Simple", description="A GitHub organization. Webhook payloads contain the `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.", @@ -53,451 +52,17 @@ class WebhookWorkflowRunCompleted(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field( - title="Workflow Run" - ) - - -class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "skipped", - "stale", - "success", - "timed_out", - ], - ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") - ) - head_sha: str = Field() - html_url: str = Field() - id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: List[ - Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, None] - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepository = Field( - title="Repository Lite" - ) - rerun_url: str = Field() - run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] = Field() - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - display_title: Missing[str] = Field( - default=UNSET, - description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow.", - ) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) - ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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) - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() - ) - head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() - ) - id: float = Field() - number: float = Field() - url: str = Field() + workflow: str = Field() -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" +class WebhookWorkflowDispatchPropInputs(ExtraGitHubModel): + """WebhookWorkflowDispatchPropInputs""" - ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() - url: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str = Field() - repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" - ) - sha: str = Field() - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - id: int = Field() - name: str = Field() - url: str = Field() - - -model_rebuild(WebhookWorkflowRunCompleted) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRun) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepository) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookWorkflowDispatch) +model_rebuild(WebhookWorkflowDispatchPropInputs) __all__ = ( - "WebhookWorkflowRunCompleted", - "WebhookWorkflowRunCompletedPropWorkflowRun", - "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", - "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookWorkflowDispatch", + "WebhookWorkflowDispatchPropInputs", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0740.py b/githubkit/versions/v2022_11_28/models/group_0740.py index fbaa104fc..ef15ec271 100644 --- a/githubkit/versions/v2022_11_28/models/group_0740.py +++ b/githubkit/versions/v2022_11_28/models/group_0740.py @@ -9,7 +9,6 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field @@ -18,18 +17,18 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0376 import WebhooksWorkflow -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +from .group_0176 import Deployment +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class WebhookWorkflowRunInProgress(GitHubModel): - """workflow_run in_progress event""" +class WebhookWorkflowJobCompleted(GitHubModel): + """workflow_job completed event""" - action: Literal["in_progress"] = Field() + action: Literal["completed"] = Field() enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, title="Enterprise", @@ -53,445 +52,85 @@ class WebhookWorkflowRunInProgress(GitHubModel): title="Simple User", description="The GitHub user that triggered the event. This property is included in every webhook payload.", ) - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field( - title="Workflow Run" + 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 WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): - """Workflow Run""" +class WebhookWorkflowJobCompletedPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJob""" - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() - conclusion: Union[ - None, - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "skipped", - "stale", - "success", - "timed_out", - ], + check_run_url: str = Field() + completed_at: str = Field() + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", ] = Field() - created_at: datetime = Field() - event: str = Field() - head_branch: Union[str, None] = Field() - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit = Field( - title="SimpleCommit" - ) - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository = ( - Field(title="Repository Lite") - ) + created_at: str = Field(description="The time that the job created.") head_sha: str = Field() html_url: str = Field() id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: List[ - Union[WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, None] - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepository = Field( - title="Repository Lite" + labels: List[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' ) - rerun_url: str = Field() + name: str = Field() + node_id: str = Field() run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( - Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str = Field() - ref: Missing[str] = Field(default=UNSET) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - committer: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: Union[str, None] = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() + runner_name: Union[Union[str, None], None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() + started_at: str = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, `waiting`, or `completed`." ) - id: float = Field() - number: float = Field() - url: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" + head_branch: Union[Union[str, None], None] = Field( + description="The name of the current branch." ) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() + workflow_name: Union[Union[str, None], None] = Field( + description="The name of the workflow." + ) + steps: List[WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps] = Field() url: str = Field() -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" - ref: str = Field() - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() ) - sha: str = Field() - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() name: str = Field() - url: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "queued"] = Field() -model_rebuild(WebhookWorkflowRunInProgress) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRun) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepository) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo -) -model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead) -model_rebuild( - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo -) +model_rebuild(WebhookWorkflowJobCompleted) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps) __all__ = ( - "WebhookWorkflowRunInProgress", - "WebhookWorkflowRunInProgressPropWorkflowRun", - "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", - "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookWorkflowJobCompleted", + "WebhookWorkflowJobCompletedPropWorkflowJob", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0741.py b/githubkit/versions/v2022_11_28/models/group_0741.py index b879c53ed..7b539ff6d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0741.py +++ b/githubkit/versions/v2022_11_28/models/group_0741.py @@ -9,493 +9,87 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0376 import WebhooksWorkflow -from .group_0367 import EnterpriseWebhooks -from .group_0368 import SimpleInstallation -from .group_0370 import RepositoryWebhooks -from .group_0371 import SimpleUserWebhooks -from .group_0369 import OrganizationSimpleWebhooks +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0(GitHubModel): + """Workflow Job -class WebhookWorkflowRunRequested(GitHubModel): - """workflow_run requested event""" - - action: Literal["requested"] = Field() - enterprise: Missing[EnterpriseWebhooks] = Field( - default=UNSET, - title="Enterprise", - description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', - ) - installation: Missing[SimpleInstallation] = Field( - default=UNSET, - title="Simple Installation", - description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( - title="Simple User", - description="The GitHub user that triggered the event. This property is included in every webhook payload.", - ) - workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") - workflow_run: WebhookWorkflowRunRequestedPropWorkflowRun = Field( - title="Workflow Run" - ) - - -class WebhookWorkflowRunRequestedPropWorkflowRun(GitHubModel): - """Workflow Run""" + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ - actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActor, None] = Field( - title="User" - ) - artifacts_url: str = Field() - cancel_url: str = Field() - check_suite_id: int = Field() - check_suite_node_id: str = Field() - check_suite_url: str = Field() + check_run_url: str = Field() + completed_at: Union[str, None] = Field() conclusion: Union[ None, Literal[ "success", "failure", - "neutral", + "skipped", "cancelled", - "timed_out", "action_required", - "stale", - "skipped", - "startup_failure", + "neutral", + "timed_out", ], ] = 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") - ) + created_at: str = Field(description="The time that the job created.") head_sha: str = Field() html_url: str = Field() id: int = Field() - jobs_url: str = Field() - logs_url: str = Field() - name: Union[str, None] = Field() - node_id: str = Field() - path: str = Field() - previous_attempt_url: Union[str, None] = Field() - pull_requests: List[ - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems - ] = Field() - referenced_workflows: Missing[ - Union[ - List[ - WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems - ], - None, - ] - ] = Field(default=UNSET) - repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepository = Field( - title="Repository Lite" + labels: List[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' ) - rerun_url: str = Field() + name: str = Field() + node_id: str = Field() run_attempt: int = Field() - run_number: int = Field() - run_started_at: datetime = Field() - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] = Field() - triggering_actor: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor, None - ] = Field(title="User") - updated_at: datetime = Field() - url: str = Field() - workflow_id: int = Field() - workflow_url: str = Field() - display_title: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropActor(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -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) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit(GitHubModel): - """SimpleCommit""" - - author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor = Field( - title="Committer", - description="Metaproperties for Git author/committer information.", + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter = ( - Field( - title="Committer", - description="Metaproperties for Git author/committer information.", - ) + runner_group_name: Union[str, None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - id: str = Field() - message: str = Field() - timestamp: str = Field() - tree_id: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter( - GitHubModel -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: Missing[datetime] = Field(default=UNSET) - email: Union[str, None] = Field() - name: str = Field(description="The git author's name.") - username: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner( - GitHubModel -): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): - """Repository Lite""" - - archive_url: str = Field() - assignees_url: str = Field() - blobs_url: str = Field() - branches_url: str = Field() - collaborators_url: str = Field() - comments_url: str = Field() - commits_url: str = Field() - compare_url: str = Field() - contents_url: str = Field() - contributors_url: str = Field() - deployments_url: str = Field() - description: Union[str, None] = Field() - downloads_url: str = Field() - events_url: str = Field() - fork: bool = Field() - forks_url: str = Field() - full_name: str = Field() - git_commits_url: str = Field() - git_refs_url: str = Field() - git_tags_url: str = Field() - hooks_url: str = Field() - html_url: str = Field() - id: int = Field(description="Unique identifier of the repository") - issue_comment_url: str = Field() - issue_events_url: str = Field() - issues_url: str = Field() - keys_url: str = Field() - labels_url: str = Field() - languages_url: str = Field() - merges_url: str = Field() - milestones_url: str = Field() - name: str = Field(description="The name of the repository.") - node_id: str = Field() - notifications_url: str = Field() - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, None - ] = Field(title="User") - private: bool = Field(description="Whether the repository is private or public.") - pulls_url: str = Field() - releases_url: str = Field() - stargazers_url: str = Field() - statuses_url: str = Field() - subscribers_url: str = Field() - subscription_url: str = Field() - tags_url: str = Field() - teams_url: str = Field() - trees_url: str = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): - """User""" - - avatar_url: Missing[str] = Field(default=UNSET) - deleted: Missing[bool] = Field(default=UNSET) - email: Missing[Union[str, None]] = Field(default=UNSET) - events_url: Missing[str] = Field(default=UNSET) - followers_url: Missing[str] = Field(default=UNSET) - following_url: Missing[str] = Field(default=UNSET) - gists_url: Missing[str] = Field(default=UNSET) - gravatar_id: Missing[str] = Field(default=UNSET) - html_url: Missing[str] = Field(default=UNSET) - id: int = Field() - login: str = Field() - name: Missing[str] = Field(default=UNSET) - node_id: Missing[str] = Field(default=UNSET) - organizations_url: Missing[str] = Field(default=UNSET) - received_events_url: Missing[str] = Field(default=UNSET) - repos_url: Missing[str] = Field(default=UNSET) - site_admin: Missing[bool] = Field(default=UNSET) - starred_url: Missing[str] = Field(default=UNSET) - subscriptions_url: Missing[str] = Field(default=UNSET) - type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase = ( - Field() + runner_id: Union[int, None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( - Field() + runner_name: Union[str, None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." ) - id: float = Field() - number: float = Field() - url: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str = Field() - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( - title="Repo Ref" + started_at: str = Field() + status: Literal["queued", "in_progress", "completed", "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() ) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() - name: str = Field() url: str = Field() -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead( - GitHubModel -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems(GitHubModel): + """Workflow Step""" - ref: str = Field() - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( - title="Repo Ref" + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() ) - sha: str = Field() - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( - GitHubModel -): - """Repo Ref""" - - id: int = Field() name: str = Field() - url: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "queued"] = 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(WebhookWorkflowJobCompletedPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems) __all__ = ( - "WebhookWorkflowRunRequested", - "WebhookWorkflowRunRequestedPropWorkflowRun", - "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepository", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0742.py b/githubkit/versions/v2022_11_28/models/group_0742.py index 6c72ba99e..b2813755e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0742.py +++ b/githubkit/versions/v2022_11_28/models/group_0742.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import List, Union, Literal from pydantic import Field @@ -18,39 +17,61 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser -from .group_0005 import IntegrationPropPermissions +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" -class AppManifestsCodeConversionsPostResponse201(GitHubModel): - """AppManifestsCodeConversionsPostResponse201""" - - id: int = Field(description="Unique identifier of the GitHub app") - slug: Missing[str] = Field( - default=UNSET, description="The slug name of the GitHub app" + check_run_url: Missing[str] = Field(default=UNSET) + completed_at: Missing[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." ) - node_id: str = Field() - owner: Union[None, SimpleUser] = Field() - name: str = Field(description="The name of the GitHub app") - description: Union[str, None] = Field() - external_url: str = Field() - html_url: str = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - permissions: IntegrationPropPermissions = Field( - description="The set of permissions for the GitHub app" + 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." ) - events: List[str] = Field(description="The list of events for the GitHub app") - installations_count: Missing[int] = Field( - default=UNSET, - description="The number of installations associated with the GitHub app", + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." ) - client_id: str = Field() - client_secret: str = Field() - webhook_secret: Union[Union[str, None], None] = Field() - pem: str = Field() + steps: Missing[ + List[ + Union[WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems, None] + ] + ] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems(GitHubModel): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" -model_rebuild(AppManifestsCodeConversionsPostResponse201) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems) -__all__ = ("AppManifestsCodeConversionsPostResponse201",) +__all__ = ( + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0743.py b/githubkit/versions/v2022_11_28/models/group_0743.py index d16ddbf37..6593b9f5d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0743.py +++ b/githubkit/versions/v2022_11_28/models/group_0743.py @@ -9,22 +9,122 @@ from __future__ import annotations -from typing import Union +from typing import List, Union, Literal from pydantic import Field -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild +from .group_0176 import Deployment +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class AppManifestsCodeConversionsPostResponse201Allof1(ExtraGitHubModel): - """AppManifestsCodeConversionsPostResponse201Allof1""" - client_id: str = Field() - client_secret: str = Field() - webhook_secret: Union[str, None] = Field() - pem: str = Field() +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)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + 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", + ) -model_rebuild(AppManifestsCodeConversionsPostResponse201Allof1) -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) +class WebhookWorkflowJobInProgressPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] = ( + Field() + ) + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: List[str] = Field( + description='Custom labels for the job. Specified by the [`"runs-on"` attribute](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML.' + ) + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[Union[int, None], None] = Field( + description="The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_group_name: Union[Union[str, None], None] = Field( + description="The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_id: Union[Union[int, None], None] = Field( + description="The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + runner_name: Union[Union[str, None], None] = Field( + description="The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." + ) + started_at: str = Field() + status: Literal["queued", "in_progress", "completed"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." + ) + head_branch: Union[Union[str, None], None] = Field( + description="The name of the current branch." + ) + workflow_name: Union[Union[str, None], None] = Field( + description="The name of the workflow." + ) + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps] = Field() + url: str = Field() + + +class WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps(GitHubModel): + """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" + + completed_at: Union[Union[str, None], None] = Field() + conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[Union[str, None], None] = Field() + status: Literal["in_progress", "completed", "queued", "pending"] = Field() + + +model_rebuild(WebhookWorkflowJobInProgress) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJob) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps) + +__all__ = ( + "WebhookWorkflowJobInProgress", + "WebhookWorkflowJobInProgressPropWorkflowJob", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0744.py b/githubkit/versions/v2022_11_28/models/group_0744.py index 97751730b..07bdbfbc8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0744.py +++ b/githubkit/versions/v2022_11_28/models/group_0744.py @@ -9,32 +9,78 @@ from __future__ import annotations -from typing import Union +from typing import List, Union, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class AppHookConfigPatchBody(GitHubModel): - """AppHookConfigPatchBody""" +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0(GitHubModel): + """Workflow Job - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + 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`." ) - 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`.", + 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`." ) - 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).", + started_at: str = Field() + status: Literal["queued", "in_progress", "completed"] = Field( + description="The current status of the job. Can be `queued`, `in_progress`, or `completed`." + ) + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems] = ( + Field() + ) + url: str = Field() + + +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "queued", "pending"] = Field() -model_rebuild(AppHookConfigPatchBody) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems) -__all__ = ("AppHookConfigPatchBody",) +__all__ = ( + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0745.py b/githubkit/versions/v2022_11_28/models/group_0745.py index 406984575..c968cd99f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0745.py +++ b/githubkit/versions/v2022_11_28/models/group_0745.py @@ -9,13 +9,66 @@ from __future__ import annotations +from typing import List, Union, Literal + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" +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." + ) + head_sha: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: Missing[int] = Field(default=UNSET) + labels: Missing[List[str]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + run_attempt: Missing[int] = Field(default=UNSET) + run_id: Missing[int] = Field(default=UNSET) + run_url: Missing[str] = Field(default=UNSET) + runner_group_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_group_name: Missing[Union[str, None]] = Field(default=UNSET) + runner_id: Missing[Union[int, None]] = Field(default=UNSET) + runner_name: Missing[Union[str, None]] = Field(default=UNSET) + started_at: Missing[str] = Field(default=UNSET) + status: Literal["in_progress", "completed", "queued"] = Field() + head_branch: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the current branch." + ) + workflow_name: Missing[Union[str, None]] = Field( + default=UNSET, description="The name of the workflow." + ) + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems] = ( + Field() + ) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["in_progress", "completed", "pending", "queued"] = Field() -model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1) +model_rebuild(WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems) -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) +__all__ = ( + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0746.py b/githubkit/versions/v2022_11_28/models/group_0746.py index dc85ce165..a5d72403f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0746.py +++ b/githubkit/versions/v2022_11_28/models/group_0746.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Union, Literal from pydantic import Field @@ -17,27 +18,96 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0014 import AppPermissions +from .group_0176 import Deployment +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks -class AppInstallationsInstallationIdAccessTokensPostBody(GitHubModel): - """AppInstallationsInstallationIdAccessTokensPostBody""" +class WebhookWorkflowJobQueued(GitHubModel): + """workflow_job queued event""" - repositories: Missing[List[str]] = Field( + action: Literal["queued"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( default=UNSET, - description="List of repository names that the token should have access to", + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', ) - repository_ids: Missing[List[int]] = Field( + installation: Missing[SimpleInstallation] = Field( default=UNSET, - description="List of repository IDs that the token should have access to", + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more information,\nsee "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)."', ) - permissions: Missing[AppPermissions] = Field( + organization: Missing[OrganizationSimpleWebhooks] = Field( default=UNSET, - title="App Permissions", - description="The permissions granted to the user access token.", + title="Organization Simple", + description="A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an\norganization, or when the event occurs from activity in a repository owned by an organization.", ) + repository: RepositoryWebhooks = Field( + title="Repository", + description="The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property\nwhen the event occurs from activity in a repository.", + ) + sender: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + workflow_job: WebhookWorkflowJobQueuedPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + + +class WebhookWorkflowJobQueuedPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobQueuedPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: List[str] = Field() + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field() + runner_group_name: Union[str, None] = Field() + runner_id: Union[int, None] = Field() + runner_name: Union[str, None] = Field() + started_at: datetime = Field() + status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + steps: List[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems] = Field() + url: str = Field() + + +class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["completed", "in_progress", "queued", "pending"] = Field() -model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) +model_rebuild(WebhookWorkflowJobQueued) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJob) +model_rebuild(WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems) -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) +__all__ = ( + "WebhookWorkflowJobQueued", + "WebhookWorkflowJobQueuedPropWorkflowJob", + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0747.py b/githubkit/versions/v2022_11_28/models/group_0747.py index 33e9e3dcc..8e59fda16 100644 --- a/githubkit/versions/v2022_11_28/models/group_0747.py +++ b/githubkit/versions/v2022_11_28/models/group_0747.py @@ -9,19 +9,107 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0176 import Deployment +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks + -class ApplicationsClientIdGrantDeleteBody(GitHubModel): - """ApplicationsClientIdGrantDeleteBody""" +class WebhookWorkflowJobWaiting(GitHubModel): + """workflow_job waiting event""" - access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." + action: Literal["waiting"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + workflow_job: WebhookWorkflowJobWaitingPropWorkflowJob = Field() + deployment: Missing[Deployment] = Field( + default=UNSET, + title="Deployment", + description="A request for a specific ref(branch,sha,tag) to be deployed", + ) + + +class WebhookWorkflowJobWaitingPropWorkflowJob(GitHubModel): + """WebhookWorkflowJobWaitingPropWorkflowJob""" + + check_run_url: str = Field() + completed_at: Union[str, None] = Field() + conclusion: Union[str, None] = Field() + created_at: str = Field(description="The time that the job created.") + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + labels: List[str] = Field() + name: str = Field() + node_id: str = Field() + run_attempt: int = Field() + run_id: int = Field() + run_url: str = Field() + runner_group_id: Union[int, None] = Field() + runner_group_name: Union[str, None] = Field() + runner_id: Union[int, None] = Field() + runner_name: Union[str, None] = Field() + started_at: datetime = Field() + head_branch: Union[str, None] = Field(description="The name of the current branch.") + workflow_name: Union[str, None] = Field(description="The name of the workflow.") + status: Literal["queued", "in_progress", "completed", "waiting"] = Field() + steps: List[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems] = Field() + url: str = Field() + + +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems(GitHubModel): + """Workflow Step""" + + completed_at: Union[str, None] = Field() + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] = ( + Field() + ) + name: str = Field() + number: int = Field() + started_at: Union[str, None] = Field() + status: Literal["completed", "in_progress", "queued", "pending", "waiting"] = ( + Field() ) -model_rebuild(ApplicationsClientIdGrantDeleteBody) +model_rebuild(WebhookWorkflowJobWaiting) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJob) +model_rebuild(WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems) -__all__ = ("ApplicationsClientIdGrantDeleteBody",) +__all__ = ( + "WebhookWorkflowJobWaiting", + "WebhookWorkflowJobWaitingPropWorkflowJob", + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0748.py b/githubkit/versions/v2022_11_28/models/group_0748.py index 13773092a..c0b9260f0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0748.py +++ b/githubkit/versions/v2022_11_28/models/group_0748.py @@ -9,19 +9,495 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0381 import WebhooksWorkflow +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks + + +class WebhookWorkflowRunCompleted(GitHubModel): + """workflow_run completed event""" + + action: Literal["completed"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunCompletedPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: List[ + Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems, None] + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] = Field() + triggering_actor: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + display_title: Missing[str] = Field( + default=UNSET, + description="The event-specific title associated with the run or the run-name if set, or the value of `run-name` if it is set in the workflow.", + ) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +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 -class ApplicationsClientIdTokenPostBody(GitHubModel): - """ApplicationsClientIdTokenPostBody""" + Metaproperties for Git author/committer information. + """ - access_token: str = Field( - description="The access_token of the OAuth or GitHub application." + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +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) + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() ) + id: float = Field() + number: float = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(ApplicationsClientIdTokenPostBody) +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__ = ("ApplicationsClientIdTokenPostBody",) +__all__ = ( + "WebhookWorkflowRunCompleted", + "WebhookWorkflowRunCompletedPropWorkflowRun", + "WebhookWorkflowRunCompletedPropWorkflowRunPropActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepository", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0749.py b/githubkit/versions/v2022_11_28/models/group_0749.py index 585475cf4..11f6a5d17 100644 --- a/githubkit/versions/v2022_11_28/models/group_0749.py +++ b/githubkit/versions/v2022_11_28/models/group_0749.py @@ -9,19 +9,489 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0381 import WebhooksWorkflow +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks + + +class WebhookWorkflowRunInProgress(GitHubModel): + """workflow_run in_progress event""" + + action: Literal["in_progress"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + workflow: Union[WebhooksWorkflow, None] = Field(title="Workflow") + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRun = Field( + title="Workflow Run" + ) + + +class WebhookWorkflowRunInProgressPropWorkflowRun(GitHubModel): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActor, None] = Field( + title="User" + ) + artifacts_url: str = Field() + cancel_url: str = Field() + check_suite_id: int = Field() + check_suite_node_id: str = Field() + check_suite_url: str = Field() + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] = Field() + created_at: datetime = Field() + event: str = Field() + head_branch: Union[str, None] = Field() + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit = Field( + title="SimpleCommit" + ) + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository = ( + Field(title="Repository Lite") + ) + head_sha: str = Field() + html_url: str = Field() + id: int = Field() + jobs_url: str = Field() + logs_url: str = Field() + name: Union[str, None] = Field() + node_id: str = Field() + path: str = Field() + previous_attempt_url: Union[str, None] = Field() + pull_requests: List[ + Union[WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems, None] + ] = Field() + referenced_workflows: Missing[ + Union[ + List[ + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems + ], + None, + ] + ] = Field(default=UNSET) + repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepository = Field( + title="Repository Lite" + ) + rerun_url: str = Field() + run_attempt: int = Field() + run_number: int = Field() + run_started_at: datetime = Field() + status: Literal["requested", "in_progress", "completed", "queued", "pending"] = ( + Field() + ) + triggering_actor: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor, None + ] = Field(title="User") + updated_at: datetime = Field() + url: str = Field() + workflow_id: int = Field() + workflow_url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str = Field() + ref: Missing[str] = Field(default=UNSET) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit(GitHubModel): + """SimpleCommit""" + + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + committer: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter = Field( + title="Committer", + description="Metaproperties for Git author/committer information.", + ) + id: str = Field() + message: str = Field() + timestamp: str = Field() + tree_id: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor(GitHubModel): + """Committer -class ApplicationsClientIdTokenDeleteBody(GitHubModel): - """ApplicationsClientIdTokenDeleteBody""" + Metaproperties for Git author/committer information. + """ - access_token: str = Field( - description="The OAuth access token used to authenticate to the GitHub API." + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter( + GitHubModel +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: Missing[datetime] = Field(default=UNSET) + email: Union[str, None] = Field() + name: str = Field(description="The git author's name.") + username: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: Union[str, None] = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner( + GitHubModel +): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() ) + id: float = Field() + number: float = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(ApplicationsClientIdTokenDeleteBody) +model_rebuild(WebhookWorkflowRunInProgress) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRun) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("ApplicationsClientIdTokenDeleteBody",) +__all__ = ( + "WebhookWorkflowRunInProgress", + "WebhookWorkflowRunInProgressPropWorkflowRun", + "WebhookWorkflowRunInProgressPropWorkflowRunPropActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepository", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0750.py b/githubkit/versions/v2022_11_28/models/group_0750.py index a2c5766c1..f892ccb8c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0750.py +++ b/githubkit/versions/v2022_11_28/models/group_0750.py @@ -9,19 +9,493 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0381 import WebhooksWorkflow +from .group_0372 import EnterpriseWebhooks +from .group_0373 import SimpleInstallation +from .group_0375 import RepositoryWebhooks +from .group_0376 import SimpleUserWebhooks +from .group_0374 import OrganizationSimpleWebhooks + + +class WebhookWorkflowRunRequested(GitHubModel): + """workflow_run requested event""" + + action: Literal["requested"] = Field() + enterprise: Missing[EnterpriseWebhooks] = Field( + default=UNSET, + title="Enterprise", + description='An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured\non an enterprise account or an organization that\'s part of an enterprise account. For more information,\nsee "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)."\n', + ) + installation: Missing[SimpleInstallation] = Field( + default=UNSET, + title="Simple Installation", + description='The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured\nfor and sent to a GitHub App. For more 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: SimpleUserWebhooks = Field( + title="Simple User", + description="The GitHub user that triggered the event. This property is included in every webhook payload.", + ) + 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) + + +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) -class ApplicationsClientIdTokenPatchBody(GitHubModel): - """ApplicationsClientIdTokenPatchBody""" - access_token: str = Field( - description="The access_token of the OAuth or GitHub application." +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) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepository(GitHubModel): + """Repository Lite""" + + archive_url: str = Field() + assignees_url: str = Field() + blobs_url: str = Field() + branches_url: str = Field() + collaborators_url: str = Field() + comments_url: str = Field() + commits_url: str = Field() + compare_url: str = Field() + contents_url: str = Field() + contributors_url: str = Field() + deployments_url: str = Field() + description: Union[str, None] = Field() + downloads_url: str = Field() + events_url: str = Field() + fork: bool = Field() + forks_url: str = Field() + full_name: str = Field() + git_commits_url: str = Field() + git_refs_url: str = Field() + git_tags_url: str = Field() + hooks_url: str = Field() + html_url: str = Field() + id: int = Field(description="Unique identifier of the repository") + issue_comment_url: str = Field() + issue_events_url: str = Field() + issues_url: str = Field() + keys_url: str = Field() + labels_url: str = Field() + languages_url: str = Field() + merges_url: str = Field() + milestones_url: str = Field() + name: str = Field(description="The name of the repository.") + node_id: str = Field() + notifications_url: str = Field() + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner, None + ] = Field(title="User") + private: bool = Field(description="Whether the repository is private or public.") + pulls_url: str = Field() + releases_url: str = Field() + stargazers_url: str = Field() + statuses_url: str = Field() + subscribers_url: str = Field() + subscription_url: str = Field() + tags_url: str = Field() + teams_url: str = Field() + trees_url: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner(GitHubModel): + """User""" + + avatar_url: Missing[str] = Field(default=UNSET) + deleted: Missing[bool] = Field(default=UNSET) + email: Missing[Union[str, None]] = Field(default=UNSET) + events_url: Missing[str] = Field(default=UNSET) + followers_url: Missing[str] = Field(default=UNSET) + following_url: Missing[str] = Field(default=UNSET) + gists_url: Missing[str] = Field(default=UNSET) + gravatar_id: Missing[str] = Field(default=UNSET) + html_url: Missing[str] = Field(default=UNSET) + id: int = Field() + login: str = Field() + name: Missing[str] = Field(default=UNSET) + node_id: Missing[str] = Field(default=UNSET) + organizations_url: Missing[str] = Field(default=UNSET) + received_events_url: Missing[str] = Field(default=UNSET) + repos_url: Missing[str] = Field(default=UNSET) + site_admin: Missing[bool] = Field(default=UNSET) + starred_url: Missing[str] = Field(default=UNSET) + subscriptions_url: Missing[str] = Field(default=UNSET) + type: Missing[Literal["Bot", "User", "Organization"]] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems(GitHubModel): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase = ( + Field() + ) + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead = ( + Field() + ) + id: float = Field() + number: float = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str = Field() + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead( + GitHubModel +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str = Field() + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo = Field( + title="Repo Ref" + ) + sha: str = Field() + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo( + GitHubModel +): + """Repo Ref""" + + id: int = Field() + name: str = Field() + url: str = Field() -model_rebuild(ApplicationsClientIdTokenPatchBody) +model_rebuild(WebhookWorkflowRunRequested) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRun) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropActor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepository) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase) +model_rebuild( + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo +) +model_rebuild(WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead) +model_rebuild( + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo +) -__all__ = ("ApplicationsClientIdTokenPatchBody",) +__all__ = ( + "WebhookWorkflowRunRequested", + "WebhookWorkflowRunRequestedPropWorkflowRun", + "WebhookWorkflowRunRequestedPropWorkflowRunPropActor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItems", + "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommit", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthor", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitter", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepository", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwner", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepository", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwner", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepo", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepo", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0751.py b/githubkit/versions/v2022_11_28/models/group_0751.py index 1d891acfc..6c72ba99e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0751.py +++ b/githubkit/versions/v2022_11_28/models/group_0751.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Union from pydantic import Field @@ -17,38 +18,39 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0014 import AppPermissions +from .group_0001 import SimpleUser +from .group_0005 import IntegrationPropPermissions -class ApplicationsClientIdTokenScopedPostBody(GitHubModel): - """ApplicationsClientIdTokenScopedPostBody""" +class AppManifestsCodeConversionsPostResponse201(GitHubModel): + """AppManifestsCodeConversionsPostResponse201""" - access_token: str = Field( - description="The access token used to authenticate to the GitHub API." + id: int = Field(description="Unique identifier of the GitHub app") + slug: Missing[str] = Field( + default=UNSET, description="The slug name of the GitHub app" ) - 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.", + node_id: str = Field() + owner: Union[None, SimpleUser] = Field() + name: str = Field(description="The name of the GitHub app") + description: Union[str, None] = Field() + external_url: str = Field() + html_url: str = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + permissions: IntegrationPropPermissions = Field( + description="The set of permissions for the GitHub app" ) - permissions: Missing[AppPermissions] = Field( + events: List[str] = Field(description="The list of events for the GitHub app") + installations_count: Missing[int] = Field( default=UNSET, - title="App Permissions", - description="The permissions granted to the user access token.", + description="The number of installations associated with the GitHub app", ) + client_id: str = Field() + client_secret: str = Field() + webhook_secret: Union[Union[str, None], None] = Field() + pem: str = Field() -model_rebuild(ApplicationsClientIdTokenScopedPostBody) +model_rebuild(AppManifestsCodeConversionsPostResponse201) -__all__ = ("ApplicationsClientIdTokenScopedPostBody",) +__all__ = ("AppManifestsCodeConversionsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0752.py b/githubkit/versions/v2022_11_28/models/group_0752.py index 152fcb757..d16ddbf37 100644 --- a/githubkit/versions/v2022_11_28/models/group_0752.py +++ b/githubkit/versions/v2022_11_28/models/group_0752.py @@ -9,13 +9,22 @@ from __future__ import annotations +from typing import Union + +from pydantic import Field + from githubkit.compat import ExtraGitHubModel, model_rebuild -class EmojisGetResponse200(ExtraGitHubModel): - """EmojisGetResponse200""" +class AppManifestsCodeConversionsPostResponse201Allof1(ExtraGitHubModel): + """AppManifestsCodeConversionsPostResponse201Allof1""" + + client_id: str = Field() + client_secret: str = Field() + webhook_secret: Union[str, None] = Field() + pem: str = Field() -model_rebuild(EmojisGetResponse200) +model_rebuild(AppManifestsCodeConversionsPostResponse201Allof1) -__all__ = ("EmojisGetResponse200",) +__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0753.py b/githubkit/versions/v2022_11_28/models/group_0753.py index 42e1c20e8..97751730b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0753.py +++ b/githubkit/versions/v2022_11_28/models/group_0753.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.utils import UNSET @@ -16,14 +18,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class EnterprisesEnterpriseSecretScanningAlertsGetResponse503(GitHubModel): - """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" +class AppHookConfigPatchBody(GitHubModel): + """AppHookConfigPatchBody""" - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(EnterprisesEnterpriseSecretScanningAlertsGetResponse503) +model_rebuild(AppHookConfigPatchBody) -__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",) +__all__ = ("AppHookConfigPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0754.py b/githubkit/versions/v2022_11_28/models/group_0754.py index 8cbcddfe6..406984575 100644 --- a/githubkit/versions/v2022_11_28/models/group_0754.py +++ b/githubkit/versions/v2022_11_28/models/group_0754.py @@ -9,41 +9,13 @@ from __future__ import annotations -from typing import Union, Literal +from githubkit.compat import GitHubModel, model_rebuild -from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202(GitHubModel): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" -class GistsPostBody(GitHubModel): - """GistsPostBody""" +model_rebuild(AppHookDeliveriesDeliveryIdAttemptsPostResponse202) - description: Missing[str] = Field( - default=UNSET, description="Description of the gist" - ) - files: GistsPostBodyPropFiles = Field( - description="Names and content for the files that make up the gist" - ) - public: Missing[Union[bool, Literal["true", "false"]]] = Field(default=UNSET) - - -class GistsPostBodyPropFiles(ExtraGitHubModel): - """GistsPostBodyPropFiles - - Names and content for the files that make up the gist - - Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} - """ - - -model_rebuild(GistsPostBody) -model_rebuild(GistsPostBodyPropFiles) - -__all__ = ( - "GistsPostBody", - "GistsPostBodyPropFiles", -) +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0755.py b/githubkit/versions/v2022_11_28/models/group_0755.py index aed3fa1a8..dc85ce165 100644 --- a/githubkit/versions/v2022_11_28/models/group_0755.py +++ b/githubkit/versions/v2022_11_28/models/group_0755.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field @@ -17,27 +17,27 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0014 import AppPermissions -class GistsGistIdGetResponse403(GitHubModel): - """GistsGistIdGetResponse403""" - block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) +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.", + ) -class GistsGistIdGetResponse403PropBlock(GitHubModel): - """GistsGistIdGetResponse403PropBlock""" - reason: Missing[str] = Field(default=UNSET) - created_at: Missing[str] = Field(default=UNSET) - html_url: Missing[Union[str, None]] = Field(default=UNSET) +model_rebuild(AppInstallationsInstallationIdAccessTokensPostBody) - -model_rebuild(GistsGistIdGetResponse403) -model_rebuild(GistsGistIdGetResponse403PropBlock) - -__all__ = ( - "GistsGistIdGetResponse403", - "GistsGistIdGetResponse403PropBlock", -) +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0756.py b/githubkit/versions/v2022_11_28/models/group_0756.py index 351ebec68..33e9e3dcc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0756.py +++ b/githubkit/versions/v2022_11_28/models/group_0756.py @@ -11,44 +11,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class GistsGistIdPatchBody(GitHubModel): - """GistsGistIdPatchBody""" +class ApplicationsClientIdGrantDeleteBody(GitHubModel): + """ApplicationsClientIdGrantDeleteBody""" - description: Missing[str] = Field( - default=UNSET, description="The description of the gist." + access_token: str = Field( + description="The OAuth access token used to authenticate to the GitHub API." ) - 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`.", - ) - - -class GistsGistIdPatchBodyPropFiles(ExtraGitHubModel): - """GistsGistIdPatchBodyPropFiles - - The gist files to be updated, renamed, or deleted. Each `key` must match the - current filename - (including extension) of the targeted gist file. For example: `hello.py`. - - To delete a file, set the whole file to null. For example: `hello.py : null`. - The file will also be - deleted if the specified object does not contain at least one of `content` or - `filename`. - - Examples: - {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} - """ -model_rebuild(GistsGistIdPatchBody) -model_rebuild(GistsGistIdPatchBodyPropFiles) +model_rebuild(ApplicationsClientIdGrantDeleteBody) -__all__ = ( - "GistsGistIdPatchBody", - "GistsGistIdPatchBodyPropFiles", -) +__all__ = ("ApplicationsClientIdGrantDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0757.py b/githubkit/versions/v2022_11_28/models/group_0757.py index 4da522baf..13773092a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0757.py +++ b/githubkit/versions/v2022_11_28/models/group_0757.py @@ -14,12 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class GistsGistIdCommentsPostBody(GitHubModel): - """GistsGistIdCommentsPostBody""" +class ApplicationsClientIdTokenPostBody(GitHubModel): + """ApplicationsClientIdTokenPostBody""" - body: str = Field(max_length=65535, description="The comment text.") + access_token: str = Field( + description="The access_token of the OAuth or GitHub application." + ) -model_rebuild(GistsGistIdCommentsPostBody) +model_rebuild(ApplicationsClientIdTokenPostBody) -__all__ = ("GistsGistIdCommentsPostBody",) +__all__ = ("ApplicationsClientIdTokenPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0758.py b/githubkit/versions/v2022_11_28/models/group_0758.py index 6b63828a9..585475cf4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0758.py +++ b/githubkit/versions/v2022_11_28/models/group_0758.py @@ -14,12 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): - """GistsGistIdCommentsCommentIdPatchBody""" +class ApplicationsClientIdTokenDeleteBody(GitHubModel): + """ApplicationsClientIdTokenDeleteBody""" - body: str = Field(max_length=65535, description="The comment text.") + access_token: str = Field( + description="The OAuth access token used to authenticate to the GitHub API." + ) -model_rebuild(GistsGistIdCommentsCommentIdPatchBody) +model_rebuild(ApplicationsClientIdTokenDeleteBody) -__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) +__all__ = ("ApplicationsClientIdTokenDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0759.py b/githubkit/versions/v2022_11_28/models/group_0759.py index c642ead3b..a2c5766c1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0759.py +++ b/githubkit/versions/v2022_11_28/models/group_0759.py @@ -9,13 +9,19 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild -class GistsGistIdStarGetResponse404(GitHubModel): - """GistsGistIdStarGetResponse404""" +class ApplicationsClientIdTokenPatchBody(GitHubModel): + """ApplicationsClientIdTokenPatchBody""" + + access_token: str = Field( + description="The access_token of the OAuth or GitHub application." + ) -model_rebuild(GistsGistIdStarGetResponse404) +model_rebuild(ApplicationsClientIdTokenPatchBody) -__all__ = ("GistsGistIdStarGetResponse404",) +__all__ = ("ApplicationsClientIdTokenPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0760.py b/githubkit/versions/v2022_11_28/models/group_0760.py index 34e7a41a1..1d891acfc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0760.py +++ b/githubkit/versions/v2022_11_28/models/group_0760.py @@ -17,17 +17,38 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0017 import Repository - - -class InstallationRepositoriesGetResponse200(GitHubModel): - """InstallationRepositoriesGetResponse200""" - - total_count: int = Field() - repositories: List[Repository] = Field() - repository_selection: Missing[str] = Field(default=UNSET) - - -model_rebuild(InstallationRepositoriesGetResponse200) - -__all__ = ("InstallationRepositoriesGetResponse200",) +from .group_0014 import AppPermissions + + +class ApplicationsClientIdTokenScopedPostBody(GitHubModel): + """ApplicationsClientIdTokenScopedPostBody""" + + access_token: str = Field( + description="The access token used to authenticate to the GitHub API." + ) + target: Missing[str] = Field( + default=UNSET, + description="The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified.", + ) + target_id: Missing[int] = Field( + default=UNSET, + description="The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified.", + ) + repositories: Missing[List[str]] = Field( + default=UNSET, + description="The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified.", + ) + repository_ids: Missing[List[int]] = Field( + default=UNSET, + description="The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified.", + ) + permissions: Missing[AppPermissions] = Field( + default=UNSET, + title="App Permissions", + description="The permissions granted to the user access token.", + ) + + +model_rebuild(ApplicationsClientIdTokenScopedPostBody) + +__all__ = ("ApplicationsClientIdTokenScopedPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0761.py b/githubkit/versions/v2022_11_28/models/group_0761.py index 08c16e9ea..152fcb757 100644 --- a/githubkit/versions/v2022_11_28/models/group_0761.py +++ b/githubkit/versions/v2022_11_28/models/group_0761.py @@ -9,28 +9,13 @@ from __future__ import annotations -from typing import Literal +from githubkit.compat import ExtraGitHubModel, model_rebuild -from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +class EmojisGetResponse200(ExtraGitHubModel): + """EmojisGetResponse200""" -class MarkdownPostBody(GitHubModel): - """MarkdownPostBody""" +model_rebuild(EmojisGetResponse200) - 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(MarkdownPostBody) - -__all__ = ("MarkdownPostBody",) +__all__ = ("EmojisGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0762.py b/githubkit/versions/v2022_11_28/models/group_0762.py index 2b6c200b5..85bd9ae5b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0762.py +++ b/githubkit/versions/v2022_11_28/models/group_0762.py @@ -9,7 +9,7 @@ from __future__ import annotations -from datetime import datetime +from typing import List from pydantic import Field @@ -17,19 +17,19 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0028 import CopilotSeatDetails -class NotificationsPutBody(GitHubModel): - """NotificationsPutBody""" - last_read_at: Missing[datetime] = Field( +class EnterprisesEnterpriseCopilotBillingSeatsGetResponse200(GitHubModel): + """EnterprisesEnterpriseCopilotBillingSeatsGetResponse200""" + + total_seats: Missing[int] = 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." + 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(NotificationsPutBody) +model_rebuild(EnterprisesEnterpriseCopilotBillingSeatsGetResponse200) -__all__ = ("NotificationsPutBody",) +__all__ = ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0763.py b/githubkit/versions/v2022_11_28/models/group_0763.py index d8ee0a92c..42e1c20e8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0763.py +++ b/githubkit/versions/v2022_11_28/models/group_0763.py @@ -16,12 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class NotificationsPutResponse202(GitHubModel): - """NotificationsPutResponse202""" +class EnterprisesEnterpriseSecretScanningAlertsGetResponse503(GitHubModel): + """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" + code: Missing[str] = Field(default=UNSET) message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(NotificationsPutResponse202) +model_rebuild(EnterprisesEnterpriseSecretScanningAlertsGetResponse503) -__all__ = ("NotificationsPutResponse202",) +__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503",) diff --git a/githubkit/versions/v2022_11_28/models/group_0764.py b/githubkit/versions/v2022_11_28/models/group_0764.py index 9751ae0a5..8cbcddfe6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0764.py +++ b/githubkit/versions/v2022_11_28/models/group_0764.py @@ -9,21 +9,41 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): - """NotificationsThreadsThreadIdSubscriptionPutBody""" +class GistsPostBody(GitHubModel): + """GistsPostBody""" - ignored: Missing[bool] = Field( - default=UNSET, description="Whether to block all notifications from a thread." + description: Missing[str] = Field( + default=UNSET, description="Description of the gist" + ) + files: GistsPostBodyPropFiles = Field( + description="Names and content for the files that make up the gist" ) + public: Missing[Union[bool, Literal["true", "false"]]] = Field(default=UNSET) + + +class GistsPostBodyPropFiles(ExtraGitHubModel): + """GistsPostBodyPropFiles + + Names and content for the files that make up the gist + + Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} + """ -model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) +model_rebuild(GistsPostBody) +model_rebuild(GistsPostBodyPropFiles) -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) +__all__ = ( + "GistsPostBody", + "GistsPostBodyPropFiles", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0765.py b/githubkit/versions/v2022_11_28/models/group_0765.py index bd7d8df68..aed3fa1a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0765.py +++ b/githubkit/versions/v2022_11_28/models/group_0765.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -18,119 +18,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPatchBody(GitHubModel): - """OrgsOrgPatchBody""" - - billing_email: Missing[str] = Field( - default=UNSET, - description="Billing email address. This address is not publicized.", - ) - company: Missing[str] = Field(default=UNSET, description="The company name.") - email: Missing[str] = Field( - default=UNSET, description="The publicly visible email address." - ) - twitter_username: Missing[str] = Field( - default=UNSET, description="The Twitter username of the company." - ) - location: Missing[str] = Field(default=UNSET, description="The location.") - name: Missing[str] = Field( - default=UNSET, description="The shorthand name of the company." - ) - description: Missing[str] = Field( - default=UNSET, - description="The description of the company. The maximum size is 160 characters.", - ) - has_organization_projects: Missing[bool] = Field( - default=UNSET, - description="Whether an organization can use organization projects.", - ) - has_repository_projects: Missing[bool] = Field( - default=UNSET, - description="Whether repositories that belong to the organization can use repository projects.", - ) - default_repository_permission: Missing[ - Literal["read", "write", "admin", "none"] - ] = Field( - default=UNSET, - description="Default permission level members have for organization repositories.", - ) - members_can_create_repositories: Missing[bool] = Field( - default=UNSET, - description="Whether of non-admin organization members can create repositories. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.", - ) - members_can_create_internal_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_can_create_private_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_can_create_public_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether organization members can create public repositories, which are visible to anyone. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation.', - ) - members_allowed_repository_creation_type: Missing[ - Literal["all", "private", "none"] - ] = Field( - default=UNSET, - description="Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n**Note:** This parameter is deprecated 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='Whether GitHub Advanced Security is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether Dependabot alerts is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether Dependabot security updates is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether dependency graph is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether secret scanning is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( - default=UNSET, - description='Whether secret scanning push protection is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', - ) - 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.", - ) - - -model_rebuild(OrgsOrgPatchBody) - -__all__ = ("OrgsOrgPatchBody",) +class GistsGistIdGetResponse403(GitHubModel): + """GistsGistIdGetResponse403""" + + block: Missing[GistsGistIdGetResponse403PropBlock] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + + +class GistsGistIdGetResponse403PropBlock(GitHubModel): + """GistsGistIdGetResponse403PropBlock""" + + reason: Missing[str] = Field(default=UNSET) + created_at: Missing[str] = Field(default=UNSET) + html_url: Missing[Union[str, None]] = Field(default=UNSET) + + +model_rebuild(GistsGistIdGetResponse403) +model_rebuild(GistsGistIdGetResponse403PropBlock) + +__all__ = ( + "GistsGistIdGetResponse403", + "GistsGistIdGetResponse403PropBlock", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0766.py b/githubkit/versions/v2022_11_28/models/group_0766.py index 007f29b18..351ebec68 100644 --- a/githubkit/versions/v2022_11_28/models/group_0766.py +++ b/githubkit/versions/v2022_11_28/models/group_0766.py @@ -9,41 +9,46 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" +class GistsGistIdPatchBody(GitHubModel): + """GistsGistIdPatchBody""" - total_count: int = Field() - repository_cache_usages: List[ActionsCacheUsageByRepository] = Field() + 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`.", + ) -class ActionsCacheUsageByRepository(GitHubModel): - """Actions Cache Usage by repository +class GistsGistIdPatchBodyPropFiles(ExtraGitHubModel): + """GistsGistIdPatchBodyPropFiles - GitHub Actions Cache Usage by repository. - """ + 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`. - 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." - ) + 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(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) -model_rebuild(ActionsCacheUsageByRepository) +model_rebuild(GistsGistIdPatchBody) +model_rebuild(GistsGistIdPatchBodyPropFiles) __all__ = ( - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", - "ActionsCacheUsageByRepository", + "GistsGistIdPatchBody", + "GistsGistIdPatchBodyPropFiles", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0767.py b/githubkit/versions/v2022_11_28/models/group_0767.py index f52322c46..4da522baf 100644 --- a/githubkit/versions/v2022_11_28/models/group_0767.py +++ b/githubkit/versions/v2022_11_28/models/group_0767.py @@ -9,27 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsPermissionsPutBody(GitHubModel): - """OrgsOrgActionsPermissionsPutBody""" +class GistsGistIdCommentsPostBody(GitHubModel): + """GistsGistIdCommentsPostBody""" - 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.", - ) + body: str = Field(max_length=65535, description="The comment text.") -model_rebuild(OrgsOrgActionsPermissionsPutBody) +model_rebuild(GistsGistIdCommentsPostBody) -__all__ = ("OrgsOrgActionsPermissionsPutBody",) +__all__ = ("GistsGistIdCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0768.py b/githubkit/versions/v2022_11_28/models/group_0768.py index 882706ed7..6b63828a9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0768.py +++ b/githubkit/versions/v2022_11_28/models/group_0768.py @@ -9,22 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0017 import Repository - -class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" +class GistsGistIdCommentsCommentIdPatchBody(GitHubModel): + """GistsGistIdCommentsCommentIdPatchBody""" - total_count: float = Field() - repositories: List[Repository] = Field() + body: str = Field(max_length=65535, description="The comment text.") -model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) +model_rebuild(GistsGistIdCommentsCommentIdPatchBody) -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) +__all__ = ("GistsGistIdCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0769.py b/githubkit/versions/v2022_11_28/models/group_0769.py index f85a05eb9..c642ead3b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0769.py +++ b/githubkit/versions/v2022_11_28/models/group_0769.py @@ -9,21 +9,13 @@ from __future__ import annotations -from typing import List - -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" - - selected_repository_ids: List[int] = Field( - description="List of repository IDs to enable for GitHub Actions." - ) +class GistsGistIdStarGetResponse404(GitHubModel): + """GistsGistIdStarGetResponse404""" -model_rebuild(OrgsOrgActionsPermissionsRepositoriesPutBody) +model_rebuild(GistsGistIdStarGetResponse404) -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) +__all__ = ("GistsGistIdStarGetResponse404",) diff --git a/githubkit/versions/v2022_11_28/models/group_0770.py b/githubkit/versions/v2022_11_28/models/group_0770.py index 7306fb66e..34e7a41a1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0770.py +++ b/githubkit/versions/v2022_11_28/models/group_0770.py @@ -13,18 +13,21 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0063 import Runner +from .group_0017 import Repository -class OrgsOrgActionsRunnersGetResponse200(GitHubModel): - """OrgsOrgActionsRunnersGetResponse200""" +class InstallationRepositoriesGetResponse200(GitHubModel): + """InstallationRepositoriesGetResponse200""" total_count: int = Field() - runners: List[Runner] = Field() + repositories: List[Repository] = Field() + repository_selection: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsRunnersGetResponse200) +model_rebuild(InstallationRepositoriesGetResponse200) -__all__ = ("OrgsOrgActionsRunnersGetResponse200",) +__all__ = ("InstallationRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0771.py b/githubkit/versions/v2022_11_28/models/group_0771.py index 232c59473..08c16e9ea 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 List +from typing import Literal from pydantic import Field @@ -18,24 +18,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" +class MarkdownPostBody(GitHubModel): + """MarkdownPostBody""" - 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." + text: str = Field(description="The Markdown text to render in HTML.") + mode: Missing[Literal["markdown", "gfm"]] = Field( + default=UNSET, description="The rendering mode." ) - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", - ) - work_folder: Missing[str] = Field( + context: Missing[str] = Field( default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", + 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(OrgsOrgActionsRunnersGenerateJitconfigPostBody) +model_rebuild(MarkdownPostBody) -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) +__all__ = ("MarkdownPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0772.py b/githubkit/versions/v2022_11_28/models/group_0772.py index 53702396a..2b6c200b5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0772.py +++ b/githubkit/versions/v2022_11_28/models/group_0772.py @@ -9,24 +9,27 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0063 import Runner - -class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): - """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" +class NotificationsPutBody(GitHubModel): + """NotificationsPutBody""" - runner: Runner = Field( - title="Self hosted runners", description="A self hosted runner" + 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.", ) - encoded_jit_config: str = Field( - description="The base64 encoded runner configuration." + read: Missing[bool] = Field( + default=UNSET, description="Whether the notification has been read." ) -model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostResponse201) +model_rebuild(NotificationsPutBody) -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",) +__all__ = ("NotificationsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0773.py b/githubkit/versions/v2022_11_28/models/group_0773.py index f7352a792..d8ee0a92c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0773.py +++ b/githubkit/versions/v2022_11_28/models/group_0773.py @@ -9,22 +9,19 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0062 import RunnerLabel - -class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" +class NotificationsPutResponse202(GitHubModel): + """NotificationsPutResponse202""" - total_count: int = Field() - labels: List[RunnerLabel] = Field() + message: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200) +model_rebuild(NotificationsPutResponse202) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",) +__all__ = ("NotificationsPutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0774.py b/githubkit/versions/v2022_11_28/models/group_0774.py index 2ffeafd63..9751ae0a5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0774.py +++ b/githubkit/versions/v2022_11_28/models/group_0774.py @@ -9,22 +9,21 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" +class NotificationsThreadsThreadIdSubscriptionPutBody(GitHubModel): + """NotificationsThreadsThreadIdSubscriptionPutBody""" - labels: List[str] = Field( - max_length=100, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + ignored: Missing[bool] = Field( + default=UNSET, description="Whether to block all notifications from a thread." ) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(NotificationsThreadsThreadIdSubscriptionPutBody) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0775.py b/githubkit/versions/v2022_11_28/models/group_0775.py index b155361d8..bd7d8df68 100644 --- a/githubkit/versions/v2022_11_28/models/group_0775.py +++ b/githubkit/versions/v2022_11_28/models/group_0775.py @@ -9,23 +9,128 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" +class OrgsOrgPatchBody(GitHubModel): + """OrgsOrgPatchBody""" - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner.", + 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 deprecated 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='Whether GitHub Advanced Security is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_alerts_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether Dependabot alerts is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependabot_security_updates_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether Dependabot security updates is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + dependency_graph_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether dependency graph is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether secret scanning is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + secret_scanning_push_protection_enabled_for_new_repositories: Missing[bool] = Field( + default=UNSET, + description='Whether secret scanning push protection is automatically enabled for new repositories.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nYou can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request.', + ) + 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.", ) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) +model_rebuild(OrgsOrgPatchBody) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) +__all__ = ("OrgsOrgPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0776.py b/githubkit/versions/v2022_11_28/models/group_0776.py index 93444c647..007f29b18 100644 --- a/githubkit/versions/v2022_11_28/models/group_0776.py +++ b/githubkit/versions/v2022_11_28/models/group_0776.py @@ -15,16 +15,35 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0062 import RunnerLabel - -class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): - """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" +class OrgsOrgActionsCacheUsageByRepositoryGetResponse200(GitHubModel): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" total_count: int = Field() - labels: List[RunnerLabel] = Field() + repository_cache_usages: List[ActionsCacheUsageByRepository] = Field() + + +class ActionsCacheUsageByRepository(GitHubModel): + """Actions Cache Usage by repository + + GitHub Actions Cache Usage by repository. + """ + + full_name: str = Field( + description="The repository owner and name for the cache usage being shown." + ) + active_caches_size_in_bytes: int = Field( + description="The sum of the size in bytes of all the active cache items in the repository." + ) + active_caches_count: int = Field( + description="The number of active caches in the repository." + ) -model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200) +model_rebuild(OrgsOrgActionsCacheUsageByRepositoryGetResponse200) +model_rebuild(ActionsCacheUsageByRepository) -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",) +__all__ = ( + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200", + "ActionsCacheUsageByRepository", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0777.py b/githubkit/versions/v2022_11_28/models/group_0777.py index 0c04cf7c5..f52322c46 100644 --- a/githubkit/versions/v2022_11_28/models/group_0777.py +++ b/githubkit/versions/v2022_11_28/models/group_0777.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Literal from pydantic import Field @@ -19,32 +18,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsSecretsGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsGetResponse200""" +class OrgsOrgActionsPermissionsPutBody(GitHubModel): + """OrgsOrgActionsPermissionsPutBody""" - total_count: int = Field() - secrets: List[OrganizationActionsSecret] = Field() - - -class OrganizationActionsSecret(GitHubModel): - """Actions Secret for an Organization - - Secrets for GitHub Actions for an organization. - """ - - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a secret" + 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.", ) - selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsSecretsGetResponse200) -model_rebuild(OrganizationActionsSecret) +model_rebuild(OrgsOrgActionsPermissionsPutBody) -__all__ = ( - "OrgsOrgActionsSecretsGetResponse200", - "OrganizationActionsSecret", -) +__all__ = ("OrgsOrgActionsPermissionsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0778.py b/githubkit/versions/v2022_11_28/models/group_0778.py index f021cd928..882706ed7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0778.py +++ b/githubkit/versions/v2022_11_28/models/group_0778.py @@ -9,35 +9,22 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0017 import Repository -class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNamePutBody""" - 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/actions/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[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.", - ) +class OrgsOrgActionsPermissionsRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + total_count: float = Field() + repositories: List[Repository] = Field() -model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) +model_rebuild(OrgsOrgActionsPermissionsRepositoriesGetResponse200) + +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0779.py b/githubkit/versions/v2022_11_28/models/group_0779.py index 357d5fb22..f85a05eb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0779.py +++ b/githubkit/versions/v2022_11_28/models/group_0779.py @@ -15,16 +15,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0051 import MinimalRepository +class OrgsOrgActionsPermissionsRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + selected_repository_ids: List[int] = Field( + description="List of repository IDs to enable for GitHub Actions." + ) - total_count: int = Field() - repositories: List[MinimalRepository] = Field() +model_rebuild(OrgsOrgActionsPermissionsRepositoriesPutBody) -model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0780.py b/githubkit/versions/v2022_11_28/models/group_0780.py index e6e21ec0d..a6aa84729 100644 --- a/githubkit/versions/v2022_11_28/models/group_0780.py +++ b/githubkit/versions/v2022_11_28/models/group_0780.py @@ -15,15 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0066 import Runner -class OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: List[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints." - ) +class OrgsOrgActionsRunnersGetResponse200(GitHubModel): + """OrgsOrgActionsRunnersGetResponse200""" + total_count: int = Field() + runners: List[Runner] = Field() -model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) +model_rebuild(OrgsOrgActionsRunnersGetResponse200) + +__all__ = ("OrgsOrgActionsRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0781.py b/githubkit/versions/v2022_11_28/models/group_0781.py index 0b346bd1e..232c59473 100644 --- a/githubkit/versions/v2022_11_28/models/group_0781.py +++ b/githubkit/versions/v2022_11_28/models/group_0781.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field @@ -19,37 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsVariablesGetResponse200(GitHubModel): - """OrgsOrgActionsVariablesGetResponse200""" +class OrgsOrgActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" - total_count: int = Field() - variables: List[OrganizationActionsVariable] = Field() - - -class OrganizationActionsVariable(GitHubModel): - """Actions Variable for an Organization - - Organization variable for GitHub Actions. - """ - - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") - created_at: datetime = Field( - description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." + 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." ) - 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." + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", ) - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a variable" + work_folder: Missing[str] = Field( + default=UNSET, + description="The working directory to be used for job execution, relative to the runner install directory.", ) - selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgActionsVariablesGetResponse200) -model_rebuild(OrganizationActionsVariable) +model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostBody) -__all__ = ( - "OrgsOrgActionsVariablesGetResponse200", - "OrganizationActionsVariable", -) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0782.py b/githubkit/versions/v2022_11_28/models/group_0782.py index de3c22c09..7ce5e521e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0782.py +++ b/githubkit/versions/v2022_11_28/models/group_0782.py @@ -9,29 +9,24 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0066 import Runner + -class OrgsOrgActionsVariablesPostBody(GitHubModel): - """OrgsOrgActionsVariablesPostBody""" +class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201(GitHubModel): + """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" - 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." + runner: Runner = Field( + title="Self hosted runners", description="A self hosted runner" ) - 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`.", + encoded_jit_config: str = Field( + description="The base64 encoded runner configuration." ) -model_rebuild(OrgsOrgActionsVariablesPostBody) +model_rebuild(OrgsOrgActionsRunnersGenerateJitconfigPostResponse201) -__all__ = ("OrgsOrgActionsVariablesPostBody",) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0783.py b/githubkit/versions/v2022_11_28/models/group_0783.py index be657ea20..b8071292e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0783.py +++ b/githubkit/versions/v2022_11_28/models/group_0783.py @@ -9,30 +9,22 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0065 import RunnerLabel -class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): - """OrgsOrgActionsVariablesNamePatchBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") - visibility: Missing[Literal["all", "private", "selected"]] = Field( - default=UNSET, - description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable.", - ) - selected_repository_ids: Missing[List[int]] = Field( - default=UNSET, - description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", - ) +class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" + total_count: int = Field() + labels: List[RunnerLabel] = Field() -model_rebuild(OrgsOrgActionsVariablesNamePatchBody) -__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200) + +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0784.py b/githubkit/versions/v2022_11_28/models/group_0784.py index 4975c0ea5..2ffeafd63 100644 --- a/githubkit/versions/v2022_11_28/models/group_0784.py +++ b/githubkit/versions/v2022_11_28/models/group_0784.py @@ -15,16 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0051 import MinimalRepository +class OrgsOrgActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + labels: List[str] = Field( + max_length=100, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + ) - total_count: int = Field() - repositories: List[MinimalRepository] = Field() +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPutBody) -model_rebuild(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0785.py b/githubkit/versions/v2022_11_28/models/group_0785.py index 4658506c5..b155361d8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0785.py +++ b/githubkit/versions/v2022_11_28/models/group_0785.py @@ -16,14 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgActionsVariablesNameRepositoriesPutBody(GitHubModel): - """OrgsOrgActionsVariablesNameRepositoriesPutBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" - selected_repository_ids: List[int] = Field( - description="The IDs of the repositories that can access the organization variable." + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner.", ) -model_rebuild(OrgsOrgActionsVariablesNameRepositoriesPutBody) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsPostBody) -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0786.py b/githubkit/versions/v2022_11_28/models/group_0786.py index 4acc1473f..1444c0972 100644 --- a/githubkit/versions/v2022_11_28/models/group_0786.py +++ b/githubkit/versions/v2022_11_28/models/group_0786.py @@ -15,16 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0072 import Codespace +from .group_0065 import RunnerLabel -class OrgsOrgCodespacesGetResponse200(GitHubModel): - """OrgsOrgCodespacesGetResponse200""" +class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200(GitHubModel): + """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" total_count: int = Field() - codespaces: List[Codespace] = Field() + labels: List[RunnerLabel] = Field() -model_rebuild(OrgsOrgCodespacesGetResponse200) +model_rebuild(OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200) -__all__ = ("OrgsOrgCodespacesGetResponse200",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0787.py b/githubkit/versions/v2022_11_28/models/group_0787.py index cd24940ff..0c04cf7c5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0787.py +++ b/githubkit/versions/v2022_11_28/models/group_0787.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Literal from pydantic import Field @@ -18,24 +19,32 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesAccessPutBody(GitHubModel): - """OrgsOrgCodespacesAccessPutBody""" +class OrgsOrgActionsSecretsGetResponse200(GitHubModel): + """OrgsOrgActionsSecretsGetResponse200""" - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", - ] = Field( - description="Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization." - ) - selected_usernames: Missing[List[str]] = Field( - max_length=100, - default=UNSET, - description="The usernames of the organization members who should have access to codespaces in the organization. Required when `visibility` is `selected_members`. The provided list of usernames will replace any existing value.", + total_count: int = Field() + secrets: List[OrganizationActionsSecret] = Field() + + +class OrganizationActionsSecret(GitHubModel): + """Actions Secret for an Organization + + Secrets for GitHub Actions for an organization. + """ + + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() + visibility: Literal["all", "private", "selected"] = Field( + description="Visibility of a secret" ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgCodespacesAccessPutBody) +model_rebuild(OrgsOrgActionsSecretsGetResponse200) +model_rebuild(OrganizationActionsSecret) -__all__ = ("OrgsOrgCodespacesAccessPutBody",) +__all__ = ( + "OrgsOrgActionsSecretsGetResponse200", + "OrganizationActionsSecret", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0788.py b/githubkit/versions/v2022_11_28/models/group_0788.py index 9c21960a6..f021cd928 100644 --- a/githubkit/versions/v2022_11_28/models/group_0788.py +++ b/githubkit/versions/v2022_11_28/models/group_0788.py @@ -9,22 +9,35 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class OrgsOrgActionsSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNamePutBody""" - selected_usernames: List[str] = Field( - max_length=100, - description="The usernames of the organization members whose codespaces be billed to the organization.", + 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/actions/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[int]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/actions/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) +model_rebuild(OrgsOrgActionsSecretsSecretNamePutBody) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0789.py b/githubkit/versions/v2022_11_28/models/group_0789.py index 83b1c7887..10746eda0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0789.py +++ b/githubkit/versions/v2022_11_28/models/group_0789.py @@ -15,16 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0055 import MinimalRepository -class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" - selected_usernames: List[str] = Field( - max_length=100, - description="The usernames of the organization members whose codespaces should not be billed to the organization.", - ) +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0790.py b/githubkit/versions/v2022_11_28/models/group_0790.py index 05a3214de..e6e21ec0d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0790.py +++ b/githubkit/versions/v2022_11_28/models/group_0790.py @@ -9,49 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsGetResponse200""" +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - total_count: int = Field() - secrets: List[CodespacesOrgSecret] = Field() - - -class CodespacesOrgSecret(GitHubModel): - """Codespaces Secret - - Secrets for a GitHub Codespace. - """ - - name: str = Field(description="The name of the secret") - created_at: datetime = Field( - description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - updated_at: datetime = Field( - description="The date and time at which the secret was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." - ) - visibility: Literal["all", "private", "selected"] = Field( - description="The type of repositories in the organization that the secret is visible to" - ) - selected_repositories_url: Missing[str] = Field( - default=UNSET, - description="The API URL at which the list of repositories this secret is visible to can be retrieved", + selected_repository_ids: List[int] = Field( + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Add selected repository to an organization secret](https://docs.github.com/rest/actions/secrets#add-selected-repository-to-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/actions/secrets#remove-selected-repository-from-an-organization-secret) endpoints." ) -model_rebuild(OrgsOrgCodespacesSecretsGetResponse200) -model_rebuild(CodespacesOrgSecret) +model_rebuild(OrgsOrgActionsSecretsSecretNameRepositoriesPutBody) -__all__ = ( - "OrgsOrgCodespacesSecretsGetResponse200", - "CodespacesOrgSecret", -) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0791.py b/githubkit/versions/v2022_11_28/models/group_0791.py index ee76d8e8a..0b346bd1e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0791.py +++ b/githubkit/versions/v2022_11_28/models/group_0791.py @@ -9,6 +9,7 @@ from __future__ import annotations +from datetime import datetime from typing import List, Literal from pydantic import Field @@ -18,26 +19,37 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" +class OrgsOrgActionsVariablesGetResponse200(GitHubModel): + """OrgsOrgActionsVariablesGetResponse200""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/codespaces/organization-secrets#get-an-organization-public-key) endpoint.", + total_count: int = Field() + variables: List[OrganizationActionsVariable] = Field() + + +class OrganizationActionsVariable(GitHubModel): + """Actions Variable for an Organization + + Organization variable for GitHub Actions. + """ + + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + created_at: datetime = Field( + description="The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) - key_id: Missing[str] = Field( - default=UNSET, description="The ID of the key you used to encrypt the secret." + updated_at: datetime = Field( + description="The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ." ) visibility: Literal["all", "private", "selected"] = Field( - description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." - ) - 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.", + description="Visibility of a variable" ) + selected_repositories_url: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) +model_rebuild(OrgsOrgActionsVariablesGetResponse200) +model_rebuild(OrganizationActionsVariable) -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) +__all__ = ( + "OrgsOrgActionsVariablesGetResponse200", + "OrganizationActionsVariable", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0792.py b/githubkit/versions/v2022_11_28/models/group_0792.py index 3ca4a7e52..de3c22c09 100644 --- a/githubkit/versions/v2022_11_28/models/group_0792.py +++ b/githubkit/versions/v2022_11_28/models/group_0792.py @@ -9,22 +9,29 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0051 import MinimalRepository +class OrgsOrgActionsVariablesPostBody(GitHubModel): + """OrgsOrgActionsVariablesPostBody""" -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") + visibility: Literal["all", "private", "selected"] = Field( + description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable." + ) + selected_repository_ids: Missing[List[int]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", + ) - total_count: int = Field() - repositories: List[MinimalRepository] = Field() +model_rebuild(OrgsOrgActionsVariablesPostBody) -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgActionsVariablesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0793.py b/githubkit/versions/v2022_11_28/models/group_0793.py index 83e351b74..be657ea20 100644 --- a/githubkit/versions/v2022_11_28/models/group_0793.py +++ b/githubkit/versions/v2022_11_28/models/group_0793.py @@ -9,21 +9,30 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgActionsVariablesNamePatchBody(GitHubModel): + """OrgsOrgActionsVariablesNamePatchBody""" - 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." + name: Missing[str] = Field(default=UNSET, description="The name of the variable.") + value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + visibility: Missing[Literal["all", "private", "selected"]] = Field( + default=UNSET, + description="The type of repositories in the organization that can access the variable. `selected` means only the repositories specified by `selected_repository_ids` can access the variable.", + ) + selected_repository_ids: Missing[List[int]] = Field( + default=UNSET, + description="An array of repository ids that can access the organization variable. You can only provide a list of repository ids when the `visibility` is set to `selected`.", ) -model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) +model_rebuild(OrgsOrgActionsVariablesNamePatchBody) -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) +__all__ = ("OrgsOrgActionsVariablesNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0794.py b/githubkit/versions/v2022_11_28/models/group_0794.py index 022333c11..96b0c6689 100644 --- a/githubkit/versions/v2022_11_28/models/group_0794.py +++ b/githubkit/versions/v2022_11_28/models/group_0794.py @@ -15,16 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0055 import MinimalRepository -class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - selected_teams: List[str] = Field( - min_length=1, - description="List of team names within the organization to which to grant access to GitHub Copilot.", - ) +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) +model_rebuild(OrgsOrgActionsVariablesNameRepositoriesGetResponse200) + +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0795.py b/githubkit/versions/v2022_11_28/models/group_0795.py index 584db74a2..4658506c5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0795.py +++ b/githubkit/versions/v2022_11_28/models/group_0795.py @@ -9,20 +9,21 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 - - The total number of seat assignments created. - """ +class OrgsOrgActionsVariablesNameRepositoriesPutBody(GitHubModel): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" - seats_created: int = Field() + selected_repository_ids: List[int] = Field( + description="The IDs of the repositories that can access the organization variable." + ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) +model_rebuild(OrgsOrgActionsVariablesNameRepositoriesPutBody) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0796.py b/githubkit/versions/v2022_11_28/models/group_0796.py index e5bd04750..068280536 100644 --- a/githubkit/versions/v2022_11_28/models/group_0796.py +++ b/githubkit/versions/v2022_11_28/models/group_0796.py @@ -13,18 +13,83 @@ from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" +class OrgsOrgAttestationsSubjectDigestGetResponse200(GitHubModel): + """OrgsOrgAttestationsSubjectDigestGetResponse200""" - selected_teams: List[str] = Field( - min_length=1, - description="The names of teams from which to revoke access to GitHub Copilot.", + 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) + + +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(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) +model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200) +model_rebuild(OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle +) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial +) +model_rebuild( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope +) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) +__all__ = ( + "OrgsOrgAttestationsSubjectDigestGetResponse200", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0797.py b/githubkit/versions/v2022_11_28/models/group_0797.py index e6a322116..2da6058bd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0797.py +++ b/githubkit/versions/v2022_11_28/models/group_0797.py @@ -9,20 +9,68 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - - The total number of seat assignments cancelled. - """ +class OrgsOrgCodeSecurityConfigurationsPostBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsPostBody""" - seats_cancelled: int = Field() + name: str = Field( + description="The name of the code security configuration. Must be unique within the organization." + ) + description: str = Field( + max_length=255, description="A description of the code security configuration" + ) + advanced_security: Missing[Literal["enabled", "disabled"]] = Field( + default=UNSET, description="The enablement status of GitHub Advanced Security" + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", + ) -model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) +model_rebuild(OrgsOrgCodeSecurityConfigurationsPostBody) -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0798.py b/githubkit/versions/v2022_11_28/models/group_0798.py index 184351fa2..1072146d2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0798.py +++ b/githubkit/versions/v2022_11_28/models/group_0798.py @@ -9,22 +9,71 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" - selected_usernames: List[str] = Field( - min_length=1, - description="The usernames of the organization members to be granted access to GitHub Copilot.", + name: Missing[str] = Field( + default=UNSET, + description="The name of the code security configuration. Must be unique within the organization.", + ) + description: Missing[str] = Field( + max_length=255, + default=UNSET, + description="A description of the code security configuration", + ) + advanced_security: Missing[Literal["enabled", "disabled"]] = Field( + default=UNSET, description="The enablement status of GitHub Advanced Security" + ) + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependency Graph" + ) + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of Dependabot alerts" + ) + dependabot_security_updates: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of Dependabot security updates", + ) + ) + code_scanning_default_setup: Missing[Literal["enabled", "disabled", "not_set"]] = ( + Field( + default=UNSET, + description="The enablement status of code scanning default setup", + ) + ) + secret_scanning: Missing[Literal["enabled", "disabled", "not_set"]] = Field( + default=UNSET, description="The enablement status of secret scanning" + ) + secret_scanning_push_protection: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning push protection", + ) + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of secret scanning validity checks", + ) + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = Field( + default=UNSET, + description="The enablement status of private vulnerability reporting", ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0799.py b/githubkit/versions/v2022_11_28/models/group_0799.py index 6e2dccf88..e88386374 100644 --- a/githubkit/versions/v2022_11_28/models/group_0799.py +++ b/githubkit/versions/v2022_11_28/models/group_0799.py @@ -9,20 +9,27 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - - The total number of seat assignments created. - """ +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - seats_created: int = Field() + scope: Literal["all", "public", "private_or_internal", "selected"] = Field( + description="The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids`" + ) + selected_repository_ids: Missing[List[int]] = Field( + default=UNSET, + description="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(OrgsOrgCopilotBillingSelectedUsersPostResponse201) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0800.py b/githubkit/versions/v2022_11_28/models/group_0800.py index 291c94f37..0a1d8ab6e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0800.py +++ b/githubkit/versions/v2022_11_28/models/group_0800.py @@ -9,22 +9,26 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody(GitHubModel): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - selected_usernames: List[str] = Field( - min_length=1, - description="The usernames of the organization members for which to revoke access to GitHub Copilot.", + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = Field( + default=UNSET, + description="Specify which types of repository this security configuration should be applied to by default.", ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0801.py b/githubkit/versions/v2022_11_28/models/group_0801.py index 803b279ed..be2cf271f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0801.py +++ b/githubkit/versions/v2022_11_28/models/group_0801.py @@ -9,20 +9,33 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0074 import CodeSecurityConfiguration -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - The total number of seat assignments cancelled. - """ +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200( + GitHubModel +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" - seats_cancelled: int = Field() + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = Field( + default=UNSET, + description="Specifies which types of repository this security configuration is applied to by default.", + ) + configuration: Missing[CodeSecurityConfiguration] = Field( + default=UNSET, description="A code security configuration" + ) -model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) +model_rebuild(OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200) -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0802.py b/githubkit/versions/v2022_11_28/models/group_0802.py index e04c76aa7..8998f5014 100644 --- a/githubkit/versions/v2022_11_28/models/group_0802.py +++ b/githubkit/versions/v2022_11_28/models/group_0802.py @@ -9,42 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0078 import Codespace -class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsGetResponse200""" - total_count: int = Field() - secrets: List[OrganizationDependabotSecret] = Field() - - -class OrganizationDependabotSecret(GitHubModel): - """Dependabot Secret for an Organization +class OrgsOrgCodespacesGetResponse200(GitHubModel): + """OrgsOrgCodespacesGetResponse200""" - Secrets for GitHub Dependabot for an organization. - """ - - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - visibility: Literal["all", "private", "selected"] = Field( - description="Visibility of a secret" - ) - selected_repositories_url: Missing[str] = Field(default=UNSET) + total_count: int = Field() + codespaces: List[Codespace] = Field() -model_rebuild(OrgsOrgDependabotSecretsGetResponse200) -model_rebuild(OrganizationDependabotSecret) +model_rebuild(OrgsOrgCodespacesGetResponse200) -__all__ = ( - "OrgsOrgDependabotSecretsGetResponse200", - "OrganizationDependabotSecret", -) +__all__ = ("OrgsOrgCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0803.py b/githubkit/versions/v2022_11_28/models/group_0803.py index 084ce1eb4..cd24940ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_0803.py +++ b/githubkit/versions/v2022_11_28/models/group_0803.py @@ -18,26 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNamePutBody""" - - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - 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." +class OrgsOrgCodespacesAccessPutBody(GitHubModel): + """OrgsOrgCodespacesAccessPutBody""" + + visibility: Literal[ + "disabled", + "selected_members", + "all_members", + "all_members_and_outside_collaborators", + ] = Field( + description="Which users can access codespaces in the organization. `disabled` means that no users can access codespaces in the organization." ) - selected_repository_ids: Missing[List[str]] = Field( + selected_usernames: Missing[List[str]] = Field( + max_length=100, default=UNSET, - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", + description="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(OrgsOrgDependabotSecretsSecretNamePutBody) +model_rebuild(OrgsOrgCodespacesAccessPutBody) -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) +__all__ = ("OrgsOrgCodespacesAccessPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0804.py b/githubkit/versions/v2022_11_28/models/group_0804.py index fc6a1268f..9c21960a6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0804.py +++ b/githubkit/versions/v2022_11_28/models/group_0804.py @@ -15,16 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0051 import MinimalRepository +class OrgsOrgCodespacesAccessSelectedUsersPostBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + selected_usernames: List[str] = Field( + max_length=100, + description="The usernames of the organization members whose codespaces be billed to the organization.", + ) - total_count: int = Field() - repositories: List[MinimalRepository] = Field() +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersPostBody) -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0805.py b/githubkit/versions/v2022_11_28/models/group_0805.py index e5211c456..83b1c7887 100644 --- a/githubkit/versions/v2022_11_28/models/group_0805.py +++ b/githubkit/versions/v2022_11_28/models/group_0805.py @@ -16,14 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgCodespacesAccessSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" - selected_repository_ids: List[int] = Field( - description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints." + selected_usernames: List[str] = Field( + max_length=100, + description="The usernames of the organization members whose codespaces should not be billed to the organization.", ) -model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) +model_rebuild(OrgsOrgCodespacesAccessSelectedUsersDeleteBody) -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0806.py b/githubkit/versions/v2022_11_28/models/group_0806.py index f6ae240a3..05a3214de 100644 --- a/githubkit/versions/v2022_11_28/models/group_0806.py +++ b/githubkit/versions/v2022_11_28/models/group_0806.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import List, Literal from pydantic import Field @@ -18,47 +19,39 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgHooksPostBody(GitHubModel): - """OrgsOrgHooksPostBody""" +class OrgsOrgCodespacesSecretsGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsGetResponse200""" - 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.", - ) + total_count: int = Field() + secrets: List[CodespacesOrgSecret] = Field() -class OrgsOrgHooksPostBodyPropConfig(GitHubModel): - """OrgsOrgHooksPostBodyPropConfig +class CodespacesOrgSecret(GitHubModel): + """Codespaces Secret - Key/value pairs to provide settings for this webhook. + Secrets for a GitHub Codespace. """ - 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`.", + 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" ) - secret: Missing[str] = Field( + selected_repositories_url: Missing[str] = Field( default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + description="The API URL at which the list of repositories this secret is visible to can be retrieved", ) - 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(OrgsOrgCodespacesSecretsGetResponse200) +model_rebuild(CodespacesOrgSecret) __all__ = ( - "OrgsOrgHooksPostBody", - "OrgsOrgHooksPostBodyPropConfig", + "OrgsOrgCodespacesSecretsGetResponse200", + "CodespacesOrgSecret", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0807.py b/githubkit/versions/v2022_11_28/models/group_0807.py index f00f0e8da..ee76d8e8a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0807.py +++ b/githubkit/versions/v2022_11_28/models/group_0807.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union +from typing import List, Literal from pydantic import Field @@ -18,46 +18,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgHooksHookIdPatchBody(GitHubModel): - """OrgsOrgHooksHookIdPatchBody""" +class OrgsOrgCodespacesSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" - config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = 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="Key/value pairs to provide settings for this webhook.", + 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.", ) - 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.", + key_id: Missing[str] = Field( + default=UNSET, description="The ID of the key you used to encrypt the secret." ) - 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`.", + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." ) - secret: Missing[str] = Field( + selected_repository_ids: Missing[List[int]] = Field( default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + 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.", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgHooksHookIdPatchBody) -model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) +model_rebuild(OrgsOrgCodespacesSecretsSecretNamePutBody) -__all__ = ( - "OrgsOrgHooksHookIdPatchBody", - "OrgsOrgHooksHookIdPatchBodyPropConfig", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0808.py b/githubkit/versions/v2022_11_28/models/group_0808.py index 27cb339f6..90f5f61a7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0808.py +++ b/githubkit/versions/v2022_11_28/models/group_0808.py @@ -9,32 +9,22 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0055 import MinimalRepository -class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): - """OrgsOrgHooksHookIdConfigPatchBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." - ) - content_type: Missing[str] = Field( - 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 OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) -__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0809.py b/githubkit/versions/v2022_11_28/models/group_0809.py index 82b58fb44..83e351b74 100644 --- a/githubkit/versions/v2022_11_28/models/group_0809.py +++ b/githubkit/versions/v2022_11_28/models/group_0809.py @@ -15,16 +15,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgInstallationsGetResponse200(GitHubModel): - """OrgsOrgInstallationsGetResponse200""" + 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() - installations: List[Installation] = Field() +model_rebuild(OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody) -model_rebuild(OrgsOrgInstallationsGetResponse200) - -__all__ = ("OrgsOrgInstallationsGetResponse200",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0810.py b/githubkit/versions/v2022_11_28/models/group_0810.py index 17fac965f..0610a1af7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0810.py +++ b/githubkit/versions/v2022_11_28/models/group_0810.py @@ -9,13 +9,27 @@ from __future__ import annotations +from typing import List + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0028 import CopilotSeatDetails + + +class OrgsOrgCopilotBillingSeatsGetResponse200(GitHubModel): + """OrgsOrgCopilotBillingSeatsGetResponse200""" -class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" + 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(OrgsOrgInteractionLimitsGetResponse200Anyof1) +model_rebuild(OrgsOrgCopilotBillingSeatsGetResponse200) -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) +__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0811.py b/githubkit/versions/v2022_11_28/models/group_0811.py index 22b6534f0..022333c11 100644 --- a/githubkit/versions/v2022_11_28/models/group_0811.py +++ b/githubkit/versions/v2022_11_28/models/group_0811.py @@ -9,38 +9,22 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgInvitationsPostBody(GitHubModel): - """OrgsOrgInvitationsPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - invitee_id: Missing[int] = Field( - default=UNSET, - description="**Required unless you provide `email`**. GitHub user ID for the person you are inviting.", - ) - email: Missing[str] = Field( - default=UNSET, - description="**Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user.", - ) - role: Missing[Literal["admin", "direct_member", "billing_manager", "reinstate"]] = ( - Field( - default=UNSET, - description="The role for the new member. \n * `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. \n * `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. \n * `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. \n * `reinstate` - The previous role assigned to the invitee before they were removed from your organization. Can be one of the roles listed above. Only works if the invitee was previously part of your organization.", - ) - ) - team_ids: Missing[List[int]] = Field( - default=UNSET, - description="Specify IDs for the teams you want to invite new members to.", + selected_teams: List[str] = Field( + min_length=1, + description="List of team names within the organization to which to grant access to GitHub Copilot.", ) -model_rebuild(OrgsOrgInvitationsPostBody) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostBody) -__all__ = ("OrgsOrgInvitationsPostBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0812.py b/githubkit/versions/v2022_11_28/models/group_0812.py index 6074cc3a5..584db74a2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0812.py +++ b/githubkit/versions/v2022_11_28/models/group_0812.py @@ -9,22 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0072 import Codespace +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 -class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" + The total number of seat assignments created. + """ - total_count: int = Field() - codespaces: List[Codespace] = Field() + seats_created: int = Field() -model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsPostResponse201) -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0813.py b/githubkit/versions/v2022_11_28/models/group_0813.py index 0fda1e440..e5bd04750 100644 --- a/githubkit/versions/v2022_11_28/models/group_0813.py +++ b/githubkit/versions/v2022_11_28/models/group_0813.py @@ -9,24 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgMembershipsUsernamePutBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - 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.", + selected_teams: List[str] = Field( + min_length=1, + description="The names of teams from which to revoke access to GitHub Copilot.", ) -model_rebuild(OrgsOrgMembershipsUsernamePutBody) +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteBody) -__all__ = ("OrgsOrgMembershipsUsernamePutBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0814.py b/githubkit/versions/v2022_11_28/models/group_0814.py index 7a28ea6f2..e6a322116 100644 --- a/githubkit/versions/v2022_11_28/models/group_0814.py +++ b/githubkit/versions/v2022_11_28/models/group_0814.py @@ -9,55 +9,20 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgMigrationsPostBody(GitHubModel): - """OrgsOrgMigrationsPostBody""" - - repositories: List[str] = Field( - description="A list of arrays indicating which repositories should be migrated." - ) - lock_repositories: Missing[bool] = Field( - default=UNSET, - description="Indicates whether repositories should be locked (to prevent manipulation) while migrating data.", - ) - exclude_metadata: Missing[bool] = Field( - default=UNSET, - description="Indicates whether metadata should be excluded and only git source should be included for the migration.", - ) - exclude_git_data: Missing[bool] = Field( - default=UNSET, - description="Indicates whether the repository git data should be excluded from the migration.", - ) - exclude_attachments: Missing[bool] = Field( - default=UNSET, - description="Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).", - ) - exclude_releases: Missing[bool] = Field( - default=UNSET, - description="Indicates whether releases should be excluded from the migration (to reduce migration archive file size).", - ) - exclude_owner_projects: Missing[bool] = Field( - default=UNSET, - description="Indicates whether projects owned by the organization or users should be excluded. from the migration.", - ) - org_metadata_only: Missing[bool] = Field( - default=UNSET, - description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", - ) - exclude: Missing[List[Literal["repositories"]]] = Field( - default=UNSET, - description="Exclude related items from being returned in the response in order to improve performance of the request.", - ) - - -model_rebuild(OrgsOrgMigrationsPostBody) - -__all__ = ("OrgsOrgMigrationsPostBody",) +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 + + The total number of seat assignments cancelled. + """ + + seats_cancelled: int = Field() + + +model_rebuild(OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0815.py b/githubkit/versions/v2022_11_28/models/group_0815.py index 442fd0c33..184351fa2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0815.py +++ b/githubkit/versions/v2022_11_28/models/group_0815.py @@ -13,24 +13,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOrganizationRolesPostBody(GitHubModel): - """OrgsOrgOrganizationRolesPostBody""" +class OrgsOrgCopilotBillingSelectedUsersPostBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - 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." + selected_usernames: List[str] = Field( + min_length=1, + description="The usernames of the organization members to be granted access to GitHub Copilot.", ) -model_rebuild(OrgsOrgOrganizationRolesPostBody) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostBody) -__all__ = ("OrgsOrgOrganizationRolesPostBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0816.py b/githubkit/versions/v2022_11_28/models/group_0816.py index 36fea21d7..6e2dccf88 100644 --- a/githubkit/versions/v2022_11_28/models/group_0816.py +++ b/githubkit/versions/v2022_11_28/models/group_0816.py @@ -9,31 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOrganizationRolesRoleIdPatchBody(GitHubModel): - """OrgsOrgOrganizationRolesRoleIdPatchBody""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 + + The total number of seat assignments created. + """ - name: Missing[str] = Field( - default=UNSET, description="The name of the custom role." - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description about the intended usage of this role or what permissions it grants.", - ) - permissions: Missing[List[str]] = Field( - default=UNSET, - description="A list of additional permissions included in this role.", - ) + seats_created: int = Field() -model_rebuild(OrgsOrgOrganizationRolesRoleIdPatchBody) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersPostResponse201) -__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0817.py b/githubkit/versions/v2022_11_28/models/group_0817.py index 793575830..291c94f37 100644 --- a/githubkit/versions/v2022_11_28/models/group_0817.py +++ b/githubkit/versions/v2022_11_28/models/group_0817.py @@ -9,23 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" +class OrgsOrgCopilotBillingSelectedUsersDeleteBody(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - async_: Missing[bool] = Field( - default=UNSET, - alias="async", - description="When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued.", + selected_usernames: List[str] = Field( + min_length=1, + description="The usernames of the organization members for which to revoke access to GitHub Copilot.", ) -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteBody) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0818.py b/githubkit/versions/v2022_11_28/models/group_0818.py index dc2469b07..803b279ed 100644 --- a/githubkit/versions/v2022_11_28/models/group_0818.py +++ b/githubkit/versions/v2022_11_28/models/group_0818.py @@ -9,13 +9,20 @@ from __future__ import annotations +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200(GitHubModel): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 + + The total number of seat assignments cancelled. + """ + + seats_cancelled: int = Field() -model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) +model_rebuild(OrgsOrgCopilotBillingSelectedUsersDeleteResponse200) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0819.py b/githubkit/versions/v2022_11_28/models/group_0819.py index 343f287e2..e04c76aa7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0819.py +++ b/githubkit/versions/v2022_11_28/models/group_0819.py @@ -9,6 +9,9 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +19,32 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" +class OrgsOrgDependabotSecretsGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsGetResponse200""" + + total_count: int = Field() + secrets: List[OrganizationDependabotSecret] = Field() + + +class OrganizationDependabotSecret(GitHubModel): + """Dependabot Secret for an Organization + + Secrets for GitHub Dependabot for an organization. + """ - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + 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(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) +model_rebuild(OrgsOrgDependabotSecretsGetResponse200) +model_rebuild(OrganizationDependabotSecret) -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) +__all__ = ( + "OrgsOrgDependabotSecretsGetResponse200", + "OrganizationDependabotSecret", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0820.py b/githubkit/versions/v2022_11_28/models/group_0820.py index 79ab5caf5..084ce1eb4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0820.py +++ b/githubkit/versions/v2022_11_28/models/group_0820.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import Annotated +from typing import List, Literal from pydantic import Field @@ -19,24 +18,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class OrgsOrgDependabotSecretsSecretNamePutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNamePutBody""" - pat_request_ids: Missing[List[int]] = Field( - max_length=100, - min_length=1, + 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="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.", + 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.", ) - action: Literal["approve", "deny"] = Field( - description="Action to apply to the requests." + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." ) - reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( + visibility: Literal["all", "private", "selected"] = Field( + description="Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret." + ) + selected_repository_ids: Missing[List[str]] = Field( default=UNSET, - description="Reason for approving or denying the requests. Max 1024 characters.", + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints.", ) -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) +model_rebuild(OrgsOrgDependabotSecretsSecretNamePutBody) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0821.py b/githubkit/versions/v2022_11_28/models/group_0821.py index eb9596a93..67d14484d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0821.py +++ b/githubkit/versions/v2022_11_28/models/group_0821.py @@ -9,28 +9,22 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import Annotated +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0055 import MinimalRepository -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - action: Literal["approve", "deny"] = Field( - description="Action to apply to the request." - ) - reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( - default=UNSET, - description="Reason for approving or denying the request. Max 1024 characters.", - ) +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + total_count: int = Field() + repositories: List[MinimalRepository] = Field() -model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0822.py b/githubkit/versions/v2022_11_28/models/group_0822.py index 297f764b9..e5211c456 100644 --- a/githubkit/versions/v2022_11_28/models/group_0822.py +++ b/githubkit/versions/v2022_11_28/models/group_0822.py @@ -9,26 +9,21 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPostBody""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody(GitHubModel): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." - ) - pat_ids: List[int] = Field( - max_length=100, - min_length=1, - description="The IDs of the fine-grained personal access tokens.", + selected_repository_ids: List[int] = Field( + description="An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/dependabot/secrets#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/dependabot/secrets#remove-selected-repository-from-an-organization-secret) endpoints." ) -model_rebuild(OrgsOrgPersonalAccessTokensPostBody) +model_rebuild(OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody) -__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0823.py b/githubkit/versions/v2022_11_28/models/group_0823.py index 53f6146e3..f6ae240a3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0823.py +++ b/githubkit/versions/v2022_11_28/models/group_0823.py @@ -9,21 +9,56 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class OrgsOrgHooksPostBody(GitHubModel): + """OrgsOrgHooksPostBody""" - action: Literal["revoke"] = Field( - description="Action to apply to the fine-grained personal access token." + name: str = Field(description='Must be passed as "web".') + config: OrgsOrgHooksPostBodyPropConfig = Field( + description="Key/value pairs to provide settings for this webhook." ) + events: Missing[List[str]] = Field( + default=UNSET, + description='Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. Set to `["*"]` to receive all possible events.', + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) + + +class OrgsOrgHooksPostBodyPropConfig(GitHubModel): + """OrgsOrgHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str = Field(description="The URL to which the payloads will be delivered.") + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + username: Missing[str] = Field(default=UNSET) + password: Missing[str] = Field(default=UNSET) -model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) +model_rebuild(OrgsOrgHooksPostBody) +model_rebuild(OrgsOrgHooksPostBodyPropConfig) -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) +__all__ = ( + "OrgsOrgHooksPostBody", + "OrgsOrgHooksPostBodyPropConfig", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0824.py b/githubkit/versions/v2022_11_28/models/group_0824.py index bc57fa609..f00f0e8da 100644 --- a/githubkit/versions/v2022_11_28/models/group_0824.py +++ b/githubkit/versions/v2022_11_28/models/group_0824.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List, Union + from pydantic import Field from githubkit.utils import UNSET @@ -16,15 +18,46 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgProjectsPostBody(GitHubModel): - """OrgsOrgProjectsPostBody""" +class OrgsOrgHooksHookIdPatchBody(GitHubModel): + """OrgsOrgHooksHookIdPatchBody""" + + config: Missing[OrgsOrgHooksHookIdPatchBodyPropConfig] = Field( + default=UNSET, + description="Key/value pairs to provide settings for this webhook.", + ) + events: Missing[List[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.", + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) + name: Missing[str] = Field(default=UNSET) - name: str = Field(description="The name of the project.") - body: Missing[str] = Field( - default=UNSET, description="The description of the project." + +class OrgsOrgHooksHookIdPatchBodyPropConfig(GitHubModel): + """OrgsOrgHooksHookIdPatchBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str = Field(description="The URL to which the payloads will be delivered.") + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(OrgsOrgProjectsPostBody) +model_rebuild(OrgsOrgHooksHookIdPatchBody) +model_rebuild(OrgsOrgHooksHookIdPatchBodyPropConfig) -__all__ = ("OrgsOrgProjectsPostBody",) +__all__ = ( + "OrgsOrgHooksHookIdPatchBody", + "OrgsOrgHooksHookIdPatchBodyPropConfig", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0825.py b/githubkit/versions/v2022_11_28/models/group_0825.py index e29e7e4d1..27cb339f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0825.py +++ b/githubkit/versions/v2022_11_28/models/group_0825.py @@ -9,25 +9,32 @@ from __future__ import annotations -from typing import List +from typing import Union from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0092 import OrgCustomProperty +class OrgsOrgHooksHookIdConfigPatchBody(GitHubModel): + """OrgsOrgHooksHookIdConfigPatchBody""" -class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): - """OrgsOrgPropertiesSchemaPatchBody""" - - properties: List[OrgCustomProperty] = Field( - max_length=100, - min_length=1, - description="The array of custom properties to create or update.", + 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(OrgsOrgPropertiesSchemaPatchBody) +model_rebuild(OrgsOrgHooksHookIdConfigPatchBody) -__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0826.py b/githubkit/versions/v2022_11_28/models/group_0826.py index 7ac7e92c2..82b58fb44 100644 --- a/githubkit/versions/v2022_11_28/models/group_0826.py +++ b/githubkit/versions/v2022_11_28/models/group_0826.py @@ -9,44 +9,22 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import Annotated +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0015 import Installation -class OrgsOrgPropertiesSchemaCustomPropertyNamePutBody(GitHubModel): - """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" - - value_type: Literal["string", "single_select"] = Field( - description="The type of the value for the property" - ) - required: Missing[bool] = Field( - default=UNSET, description="Whether the property is required." - ) - default_value: Missing[Union[str, List[str], None]] = Field( - default=UNSET, description="Default value of the property" - ) - description: Missing[Union[str, None]] = Field( - default=UNSET, description="Short description of the property" - ) - allowed_values: Missing[ - Union[ - Annotated[ - List[Annotated[str, Field(max_length=75)]], Field(max_length=200) - ], - None, - ] - ] = Field( - default=UNSET, - description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", - ) - - -model_rebuild(OrgsOrgPropertiesSchemaCustomPropertyNamePutBody) - -__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",) + +class OrgsOrgInstallationsGetResponse200(GitHubModel): + """OrgsOrgInstallationsGetResponse200""" + + total_count: int = Field() + installations: List[Installation] = Field() + + +model_rebuild(OrgsOrgInstallationsGetResponse200) + +__all__ = ("OrgsOrgInstallationsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0827.py b/githubkit/versions/v2022_11_28/models/group_0827.py index 7cb31bcd8..17fac965f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0827.py +++ b/githubkit/versions/v2022_11_28/models/group_0827.py @@ -9,28 +9,13 @@ from __future__ import annotations -from typing import List - -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -from .group_0093 import CustomPropertyValue - - -class OrgsOrgPropertiesValuesPatchBody(GitHubModel): - """OrgsOrgPropertiesValuesPatchBody""" - repository_names: List[str] = Field( - max_length=30, - min_length=1, - description="The names of repositories that the custom property values will be applied to.", - ) - properties: List[CustomPropertyValue] = Field( - description="List of custom property names and associated values to apply to the repositories." - ) +class OrgsOrgInteractionLimitsGetResponse200Anyof1(GitHubModel): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" -model_rebuild(OrgsOrgPropertiesValuesPatchBody) +model_rebuild(OrgsOrgInteractionLimitsGetResponse200Anyof1) -__all__ = ("OrgsOrgPropertiesValuesPatchBody",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0828.py b/githubkit/versions/v2022_11_28/models/group_0828.py index e5d84aa24..22b6534f0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0828.py +++ b/githubkit/versions/v2022_11_28/models/group_0828.py @@ -9,128 +9,38 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgReposPostBody(GitHubModel): - """OrgsOrgReposPostBody""" +class OrgsOrgInvitationsPostBody(GitHubModel): + """OrgsOrgInvitationsPostBody""" - 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( + invitee_id: Missing[int] = 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".', + description="**Required unless you provide `email`**. GitHub user ID for the person you are inviting.", ) - allow_squash_merge: Missing[bool] = Field( + email: Missing[str] = Field( default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", + description="**Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user.", ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + role: Missing[Literal["admin", "direct_member", "billing_manager", "reinstate"]] = ( Field( default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_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 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.", ) ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( + team_ids: Missing[List[int]] = Field( default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default 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="Specify IDs for the teams you want to invite new members to.", ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", - ) - custom_properties: Missing[OrgsOrgReposPostBodyPropCustomProperties] = Field( - default=UNSET, - description="The custom properties for the new repository. The keys are the custom property names, and the values are the corresponding custom property values.", - ) - - -class OrgsOrgReposPostBodyPropCustomProperties(ExtraGitHubModel): - """OrgsOrgReposPostBodyPropCustomProperties - - The custom properties for the new repository. The keys are the custom property - names, and the values are the corresponding custom property values. - """ -model_rebuild(OrgsOrgReposPostBody) -model_rebuild(OrgsOrgReposPostBodyPropCustomProperties) +model_rebuild(OrgsOrgInvitationsPostBody) -__all__ = ( - "OrgsOrgReposPostBody", - "OrgsOrgReposPostBodyPropCustomProperties", -) +__all__ = ("OrgsOrgInvitationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0829.py b/githubkit/versions/v2022_11_28/models/group_0829.py index 1fbe16b32..ef89486c8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0829.py +++ b/githubkit/versions/v2022_11_28/models/group_0829.py @@ -9,95 +9,22 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0110 import RepositoryRuleUpdate -from .group_0134 import RepositoryRuleOneof17 -from .group_0130 import RepositoryRuleWorkflows -from .group_0115 import RepositoryRulePullRequest -from .group_0106 import OrgRulesetConditionsOneof0 -from .group_0107 import OrgRulesetConditionsOneof1 -from .group_0108 import OrgRulesetConditionsOneof2 -from .group_0132 import RepositoryRuleCodeScanning -from .group_0097 import RepositoryRulesetBypassActor -from .group_0127 import RepositoryRuleTagNamePattern -from .group_0125 import RepositoryRuleBranchNamePattern -from .group_0113 import RepositoryRuleRequiredDeployments -from .group_0117 import RepositoryRuleRequiredStatusChecks -from .group_0119 import RepositoryRuleCommitMessagePattern -from .group_0123 import RepositoryRuleCommitterEmailPattern -from .group_0121 import RepositoryRuleCommitAuthorEmailPattern -from .group_0112 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory -from .group_0109 import ( - RepositoryRuleOneof14, - RepositoryRuleOneof16, - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) +from .group_0078 import Codespace -class OrgsOrgRulesetsPostBody(GitHubModel): - """OrgsOrgRulesetsPostBody""" +class OrgsOrgMembersUsernameCodespacesGetResponse200(GitHubModel): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" - name: str = Field(description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push"]] = Field( - default=UNSET, - description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", - ) - enforcement: Literal["disabled", "active", "evaluate"] = Field( - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)." - ) - bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( - default=UNSET, - description="The actors that can bypass the rules in this ruleset", - ) - conditions: Missing[ - Union[ - OrgRulesetConditionsOneof0, - OrgRulesetConditionsOneof1, - OrgRulesetConditionsOneof2, - ] - ] = Field( - default=UNSET, - title="Organization ruleset conditions", - description="Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", - ) - rules: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") + total_count: int = Field() + codespaces: List[Codespace] = Field() -model_rebuild(OrgsOrgRulesetsPostBody) +model_rebuild(OrgsOrgMembersUsernameCodespacesGetResponse200) -__all__ = ("OrgsOrgRulesetsPostBody",) +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0830.py b/githubkit/versions/v2022_11_28/models/group_0830.py index 841ac7452..0fda1e440 100644 --- a/githubkit/versions/v2022_11_28/models/group_0830.py +++ b/githubkit/versions/v2022_11_28/models/group_0830.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,88 +17,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0110 import RepositoryRuleUpdate -from .group_0134 import RepositoryRuleOneof17 -from .group_0130 import RepositoryRuleWorkflows -from .group_0115 import RepositoryRulePullRequest -from .group_0106 import OrgRulesetConditionsOneof0 -from .group_0107 import OrgRulesetConditionsOneof1 -from .group_0108 import OrgRulesetConditionsOneof2 -from .group_0132 import RepositoryRuleCodeScanning -from .group_0097 import RepositoryRulesetBypassActor -from .group_0127 import RepositoryRuleTagNamePattern -from .group_0125 import RepositoryRuleBranchNamePattern -from .group_0113 import RepositoryRuleRequiredDeployments -from .group_0117 import RepositoryRuleRequiredStatusChecks -from .group_0119 import RepositoryRuleCommitMessagePattern -from .group_0123 import RepositoryRuleCommitterEmailPattern -from .group_0121 import RepositoryRuleCommitAuthorEmailPattern -from .group_0112 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory -from .group_0109 import ( - RepositoryRuleOneof14, - RepositoryRuleOneof16, - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) +class OrgsOrgMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgMembershipsUsernamePutBody""" -class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): - """OrgsOrgRulesetsRulesetIdPutBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push"]] = Field( - default=UNSET, - description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", - ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( - default=UNSET, - description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).", - ) - 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( + role: Missing[Literal["admin", "member"]] = Field( default=UNSET, - title="Organization ruleset conditions", - description="Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", + 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.", ) - rules: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) +model_rebuild(OrgsOrgMembershipsUsernamePutBody) -__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) +__all__ = ("OrgsOrgMembershipsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0831.py b/githubkit/versions/v2022_11_28/models/group_0831.py index f75a38dbc..7a28ea6f2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0831.py +++ b/githubkit/versions/v2022_11_28/models/group_0831.py @@ -18,40 +18,46 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsPostBody(GitHubModel): - """OrgsOrgTeamsPostBody""" +class OrgsOrgMigrationsPostBody(GitHubModel): + """OrgsOrgMigrationsPostBody""" - name: str = Field(description="The name of the team.") - description: Missing[str] = Field( - default=UNSET, description="The description of the team." + repositories: List[str] = Field( + description="A list of arrays indicating which repositories should be migrated." ) - maintainers: Missing[List[str]] = Field( + lock_repositories: Missing[bool] = Field( default=UNSET, - description="List GitHub IDs for organization members who will become team maintainers.", + description="Indicates whether repositories should be locked (to prevent manipulation) while migrating data.", ) - repo_names: Missing[List[str]] = Field( + exclude_metadata: Missing[bool] = Field( default=UNSET, - description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', + description="Indicates whether metadata should be excluded and only git source should be included for the migration.", ) - privacy: Missing[Literal["secret", "closed"]] = Field( + exclude_git_data: Missing[bool] = Field( default=UNSET, - description="The level of privacy this team should have. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n * `closed` - visible to all members of this organization. \nDefault for child team: `closed`", + description="Indicates whether the repository git data should be excluded from the migration.", ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( + exclude_attachments: Missing[bool] = 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="Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).", ) - permission: Missing[Literal["pull", "push"]] = Field( + exclude_releases: Missing[bool] = Field( default=UNSET, - description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", + description="Indicates whether releases should be excluded from the migration (to reduce migration archive file size).", ) - parent_team_id: Missing[int] = Field( - default=UNSET, description="The ID of a team to set as the parent team." + exclude_owner_projects: Missing[bool] = Field( + default=UNSET, + description="Indicates whether projects owned by the organization or users should be excluded. from the migration.", + ) + org_metadata_only: Missing[bool] = Field( + default=UNSET, + description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", + ) + exclude: Missing[List[Literal["repositories"]]] = Field( + default=UNSET, + description="Exclude related items from being returned in the response in order to improve performance of the request.", ) -model_rebuild(OrgsOrgTeamsPostBody) +model_rebuild(OrgsOrgMigrationsPostBody) -__all__ = ("OrgsOrgTeamsPostBody",) +__all__ = ("OrgsOrgMigrationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0832.py b/githubkit/versions/v2022_11_28/models/group_0832.py index f3835d246..442fd0c33 100644 --- a/githubkit/versions/v2022_11_28/models/group_0832.py +++ b/githubkit/versions/v2022_11_28/models/group_0832.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field @@ -18,32 +18,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugPatchBody""" +class OrgsOrgOrganizationRolesPostBody(GitHubModel): + """OrgsOrgOrganizationRolesPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the team.") + name: str = Field(description="The name of the custom role.") description: Missing[str] = Field( - default=UNSET, description="The description of the team." - ) - privacy: Missing[Literal["secret", "closed"]] = Field( - default=UNSET, - description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", - ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( - default=UNSET, - description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", - ) - permission: Missing[Literal["pull", "push", "admin"]] = Field( default=UNSET, - description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", + description="A short description about the intended usage of this role or what permissions it grants.", ) - parent_team_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of a team to set as the parent team." + permissions: List[str] = Field( + description="A list of additional permissions included in this role." ) -model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) +model_rebuild(OrgsOrgOrganizationRolesPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) +__all__ = ("OrgsOrgOrganizationRolesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0833.py b/githubkit/versions/v2022_11_28/models/group_0833.py index 02ba3ccdd..36fea21d7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0833.py +++ b/githubkit/versions/v2022_11_28/models/group_0833.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET @@ -16,17 +18,22 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" +class OrgsOrgOrganizationRolesRoleIdPatchBody(GitHubModel): + """OrgsOrgOrganizationRolesRoleIdPatchBody""" - title: str = Field(description="The discussion post's title.") - body: str = Field(description="The discussion post's body text.") - private: Missing[bool] = Field( + name: Missing[str] = Field( + default=UNSET, description="The name of the custom role." + ) + description: Missing[str] = Field( + default=UNSET, + description="A short description about the intended usage of this role or what permissions it grants.", + ) + permissions: Missing[List[str]] = Field( default=UNSET, - description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", + description="A list of additional permissions included in this role.", ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) +model_rebuild(OrgsOrgOrganizationRolesRoleIdPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) +__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0834.py b/githubkit/versions/v2022_11_28/models/group_0834.py index f19071c10..793575830 100644 --- a/githubkit/versions/v2022_11_28/models/group_0834.py +++ b/githubkit/versions/v2022_11_28/models/group_0834.py @@ -16,17 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutBody(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" - 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." + async_: Missing[bool] = Field( + default=UNSET, + alias="async", + description="When set to `true`, the request will be performed asynchronously. Returns a 202 status code when the job is successfully queued.", ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0835.py b/githubkit/versions/v2022_11_28/models/group_0835.py index d8f084a3e..dc2469b07 100644 --- a/githubkit/versions/v2022_11_28/models/group_0835.py +++ b/githubkit/versions/v2022_11_28/models/group_0835.py @@ -9,17 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - - body: str = Field(description="The discussion comment's body text.") +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernamePutResponse202) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0836.py b/githubkit/versions/v2022_11_28/models/group_0836.py index f9ed8041d..343f287e2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0836.py +++ b/githubkit/versions/v2022_11_28/models/group_0836.py @@ -11,21 +11,18 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422(GitHubModel): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" - body: str = Field(description="The discussion comment's body text.") + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody -) +model_rebuild(OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422) -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", -) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422",) diff --git a/githubkit/versions/v2022_11_28/models/group_0837.py b/githubkit/versions/v2022_11_28/models/group_0837.py index 7155a8c95..79ab5caf5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0837.py +++ b/githubkit/versions/v2022_11_28/models/group_0837.py @@ -9,31 +9,34 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal +from typing_extensions import Annotated from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ +class OrgsOrgPersonalAccessTokenRequestsPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" - 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." + pat_request_ids: Missing[List[int]] = Field( + max_length=100, + min_length=1, + default=UNSET, + description="Unique identifiers of the requests for access via fine-grained personal access token. Must be formed of between 1 and 100 `pat_request_id` values.", + ) + action: Literal["approve", "deny"] = Field( + description="Action to apply to the requests." + ) + reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( + default=UNSET, + description="Reason for approving or denying the requests. Max 1024 characters.", ) -model_rebuild( - OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPostBody) -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0838.py b/githubkit/versions/v2022_11_28/models/group_0838.py index 09a55856c..eb9596a93 100644 --- a/githubkit/versions/v2022_11_28/models/group_0838.py +++ b/githubkit/versions/v2022_11_28/models/group_0838.py @@ -9,23 +9,28 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal +from typing_extensions import Annotated from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - 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." + action: Literal["approve", "deny"] = Field( + description="Action to apply to the request." + ) + reason: Missing[Union[Annotated[str, Field(max_length=1024)], None]] = Field( + default=UNSET, + description="Reason for approving or denying the request. Max 1024 characters.", ) -model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild(OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0839.py b/githubkit/versions/v2022_11_28/models/group_0839.py index 6b6e99580..297f764b9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0839.py +++ b/githubkit/versions/v2022_11_28/models/group_0839.py @@ -9,23 +9,26 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class OrgsOrgPersonalAccessTokensPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPostBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." + ) + pat_ids: List[int] = Field( + max_length=100, + min_length=1, + description="The IDs of the fine-grained personal access tokens.", ) -model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) +model_rebuild(OrgsOrgPersonalAccessTokensPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) +__all__ = ("OrgsOrgPersonalAccessTokensPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0840.py b/githubkit/versions/v2022_11_28/models/group_0840.py index 2243159ab..53f6146e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0840.py +++ b/githubkit/versions/v2022_11_28/models/group_0840.py @@ -13,20 +13,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" +class OrgsOrgPersonalAccessTokensPatIdPostBody(GitHubModel): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" - 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).\"", + action: Literal["revoke"] = Field( + description="Action to apply to the fine-grained personal access token." ) -model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) +model_rebuild(OrgsOrgPersonalAccessTokensPatIdPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0841.py b/githubkit/versions/v2022_11_28/models/group_0841.py index 3603ad202..bc57fa609 100644 --- a/githubkit/versions/v2022_11_28/models/group_0841.py +++ b/githubkit/versions/v2022_11_28/models/group_0841.py @@ -16,13 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" +class OrgsOrgProjectsPostBody(GitHubModel): + """OrgsOrgProjectsPostBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." + ) -model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) +model_rebuild(OrgsOrgProjectsPostBody) -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) +__all__ = ("OrgsOrgProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0842.py b/githubkit/versions/v2022_11_28/models/group_0842.py index cb788d669..aa843cc53 100644 --- a/githubkit/versions/v2022_11_28/models/group_0842.py +++ b/githubkit/versions/v2022_11_28/models/group_0842.py @@ -9,22 +9,25 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0097 import OrgCustomProperty + -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" +class OrgsOrgPropertiesSchemaPatchBody(GitHubModel): + """OrgsOrgPropertiesSchemaPatchBody""" - 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.", + properties: List[OrgCustomProperty] = Field( + max_length=100, + min_length=1, + description="The array of custom properties to create or update.", ) -model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) +model_rebuild(OrgsOrgPropertiesSchemaPatchBody) -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) +__all__ = ("OrgsOrgPropertiesSchemaPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0843.py b/githubkit/versions/v2022_11_28/models/group_0843.py index 0164cc723..469f3c50f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0843.py +++ b/githubkit/versions/v2022_11_28/models/group_0843.py @@ -9,7 +9,8 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal +from typing_extensions import Annotated from pydantic import Field @@ -18,15 +19,34 @@ from githubkit.compat import GitHubModel, model_rebuild -class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): - """OrgsOrgSecurityProductEnablementPostBody""" +class OrgsOrgPropertiesSchemaCustomPropertyNamePutBody(GitHubModel): + """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" - query_suite: Missing[Literal["default", "extended"]] = Field( + value_type: Literal["string", "single_select", "multi_select", "true_false"] = ( + Field(description="The type of the value for the property") + ) + required: Missing[bool] = Field( + default=UNSET, description="Whether the property is required." + ) + default_value: Missing[Union[str, List[str], None]] = Field( + default=UNSET, description="Default value of the property" + ) + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Short description of the property" + ) + allowed_values: Missing[ + Union[ + Annotated[ + List[Annotated[str, Field(max_length=75)]], Field(max_length=200) + ], + None, + ] + ] = Field( default=UNSET, - description="CodeQL query suite to be used. If you specify the `query_suite` parameter, the default setup will be configured with this query suite only on all repositories that didn't have default setup already configured. It will not change the query suite on repositories that already have default setup configured.\nIf you don't specify any `query_suite` in your request, the preferred query suite of the organization will be applied.", + description="An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.", ) -model_rebuild(OrgsOrgSecurityProductEnablementPostBody) +model_rebuild(OrgsOrgPropertiesSchemaCustomPropertyNamePutBody) -__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) +__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0844.py b/githubkit/versions/v2022_11_28/models/group_0844.py index 8e85c1489..c5f0b94a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0844.py +++ b/githubkit/versions/v2022_11_28/models/group_0844.py @@ -13,19 +13,24 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0098 import CustomPropertyValue -class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdDeleteResponse403""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[List[str]] = Field(default=UNSET) +class OrgsOrgPropertiesValuesPatchBody(GitHubModel): + """OrgsOrgPropertiesValuesPatchBody""" + repository_names: List[str] = Field( + max_length=30, + min_length=1, + description="The names of repositories that the custom property values will be applied to.", + ) + properties: List[CustomPropertyValue] = Field( + description="List of custom property names and associated values to apply to the repositories." + ) -model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) +model_rebuild(OrgsOrgPropertiesValuesPatchBody) + +__all__ = ("OrgsOrgPropertiesValuesPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0845.py b/githubkit/versions/v2022_11_28/models/group_0845.py index 6ff9e974c..e5d84aa24 100644 --- a/githubkit/versions/v2022_11_28/models/group_0845.py +++ b/githubkit/versions/v2022_11_28/models/group_0845.py @@ -9,26 +9,128 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): - """ProjectsColumnsCardsCardIdPatchBody""" +class OrgsOrgReposPostBody(GitHubModel): + """OrgsOrgReposPostBody""" - note: Missing[Union[str, None]] = Field( - default=UNSET, description="The project card's note" + name: str = Field(description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." ) - archived: Missing[bool] = Field( - default=UNSET, description="Whether or not the card is archived" + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private." + ) + visibility: Missing[Literal["public", "private"]] = Field( + default=UNSET, description="The visibility of the repository." + ) + has_issues: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable issues for this repository or `false` to disable them.", + ) + has_projects: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", + ) + has_wiki: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable the wiki for this repository or `false` to disable it.", + ) + has_downloads: Missing[bool] = Field( + default=UNSET, description="Whether downloads are enabled." + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make this repo available as a template repository or `false` to prevent it.", + ) + team_id: Missing[int] = Field( + default=UNSET, + description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", + ) + auto_init: Missing[bool] = Field( + default=UNSET, + description="Pass `true` to create an initial commit with empty README.", + ) + gitignore_template: Missing[str] = Field( + default=UNSET, + description='Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell".', + ) + license_template: Missing[str] = Field( + default=UNSET, + description='Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0".', + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.**", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + 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(ProjectsColumnsCardsCardIdPatchBody) +model_rebuild(OrgsOrgReposPostBody) +model_rebuild(OrgsOrgReposPostBodyPropCustomProperties) -__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) +__all__ = ( + "OrgsOrgReposPostBody", + "OrgsOrgReposPostBodyPropCustomProperties", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0846.py b/githubkit/versions/v2022_11_28/models/group_0846.py index d9c5ebe68..a535d1b5c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0846.py +++ b/githubkit/versions/v2022_11_28/models/group_0846.py @@ -9,26 +9,95 @@ from __future__ import annotations +from typing import List, Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0115 import RepositoryRuleUpdate +from .group_0139 import RepositoryRuleOneof17 +from .group_0135 import RepositoryRuleWorkflows +from .group_0120 import RepositoryRulePullRequest +from .group_0111 import OrgRulesetConditionsOneof0 +from .group_0112 import OrgRulesetConditionsOneof1 +from .group_0113 import OrgRulesetConditionsOneof2 +from .group_0137 import RepositoryRuleCodeScanning +from .group_0102 import RepositoryRulesetBypassActor +from .group_0132 import RepositoryRuleTagNamePattern +from .group_0130 import RepositoryRuleBranchNamePattern +from .group_0118 import RepositoryRuleRequiredDeployments +from .group_0122 import RepositoryRuleRequiredStatusChecks +from .group_0124 import RepositoryRuleCommitMessagePattern +from .group_0128 import RepositoryRuleCommitterEmailPattern +from .group_0126 import RepositoryRuleCommitAuthorEmailPattern +from .group_0117 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory +from .group_0114 import ( + RepositoryRuleOneof14, + RepositoryRuleOneof16, + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) + -class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostBody""" +class OrgsOrgRulesetsPostBody(GitHubModel): + """OrgsOrgRulesetsPostBody""" - position: str = Field( - pattern="^(?:top|bottom|after:\\d+)$", - description="The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.", + name: str = Field(description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push"]] = Field( + default=UNSET, + description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", + ) + enforcement: Literal["disabled", "active", "evaluate"] = Field( + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise)." + ) + bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", ) - column_id: Missing[int] = Field( + conditions: Missing[ + Union[ + OrgRulesetConditionsOneof0, + OrgRulesetConditionsOneof1, + OrgRulesetConditionsOneof2, + ] + ] = Field( default=UNSET, - description="The unique identifier of the column the card should be moved to", + title="Organization ruleset conditions", + description="Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", ) + rules: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) +model_rebuild(OrgsOrgRulesetsPostBody) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) +__all__ = ("OrgsOrgRulesetsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0847.py b/githubkit/versions/v2022_11_28/models/group_0847.py index 7d3245c63..b927dd556 100644 --- a/githubkit/versions/v2022_11_28/models/group_0847.py +++ b/githubkit/versions/v2022_11_28/models/group_0847.py @@ -9,13 +9,96 @@ from __future__ import annotations +from typing import List, Union, Literal + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0115 import RepositoryRuleUpdate +from .group_0139 import RepositoryRuleOneof17 +from .group_0135 import RepositoryRuleWorkflows +from .group_0120 import RepositoryRulePullRequest +from .group_0111 import OrgRulesetConditionsOneof0 +from .group_0112 import OrgRulesetConditionsOneof1 +from .group_0113 import OrgRulesetConditionsOneof2 +from .group_0137 import RepositoryRuleCodeScanning +from .group_0102 import RepositoryRulesetBypassActor +from .group_0132 import RepositoryRuleTagNamePattern +from .group_0130 import RepositoryRuleBranchNamePattern +from .group_0118 import RepositoryRuleRequiredDeployments +from .group_0122 import RepositoryRuleRequiredStatusChecks +from .group_0124 import RepositoryRuleCommitMessagePattern +from .group_0128 import RepositoryRuleCommitterEmailPattern +from .group_0126 import RepositoryRuleCommitAuthorEmailPattern +from .group_0117 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory +from .group_0114 import ( + RepositoryRuleOneof14, + RepositoryRuleOneof16, + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) + + +class OrgsOrgRulesetsRulesetIdPutBody(GitHubModel): + """OrgsOrgRulesetsRulesetIdPutBody""" -class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" + name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push"]] = Field( + default=UNSET, + description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", + ) + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( + default=UNSET, + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).", + ) + 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. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\n", + ) + rules: Missing[ + List[ + Union[ + RepositoryRuleCreation, + RepositoryRuleUpdate, + RepositoryRuleDeletion, + RepositoryRuleRequiredLinearHistory, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) +model_rebuild(OrgsOrgRulesetsRulesetIdPutBody) -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) +__all__ = ("OrgsOrgRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0848.py b/githubkit/versions/v2022_11_28/models/group_0848.py index 97fe55aa9..f75a38dbc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0848.py +++ b/githubkit/versions/v2022_11_28/models/group_0848.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field @@ -18,29 +18,40 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] - ] = Field(default=UNSET) - - -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" - - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - resource: Missing[str] = Field(default=UNSET) - field: Missing[str] = Field(default=UNSET) - - -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403", - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", -) +class OrgsOrgTeamsPostBody(GitHubModel): + """OrgsOrgTeamsPostBody""" + + name: str = Field(description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." + ) + maintainers: Missing[List[str]] = Field( + default=UNSET, + description="List GitHub IDs for organization members who will become team maintainers.", + ) + repo_names: Missing[List[str]] = Field( + default=UNSET, + description='The full name (e.g., "organization-name/repository-name") of repositories to add the team to.', + ) + privacy: Missing[Literal["secret", "closed"]] = Field( + default=UNSET, + description="The level of privacy this team should have. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n * `closed` - visible to all members of this organization. \nDefault for child team: `closed`", + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications. \nDefault: `notifications_enabled`", + ) + permission: Missing[Literal["pull", "push"]] = Field( + default=UNSET, + description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[int] = Field( + default=UNSET, description="The ID of a team to set as the parent team." + ) + + +model_rebuild(OrgsOrgTeamsPostBody) + +__all__ = ("OrgsOrgTeamsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0849.py b/githubkit/versions/v2022_11_28/models/group_0849.py index 2a0dcefa7..f3835d246 100644 --- a/githubkit/versions/v2022_11_28/models/group_0849.py +++ b/githubkit/versions/v2022_11_28/models/group_0849.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field @@ -18,28 +18,32 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsCardsCardIdMovesPostResponse503(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" - - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems] - ] = Field(default=UNSET) - - -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" - - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - - -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) -model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503", - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", -) +class OrgsOrgTeamsTeamSlugPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugPatchBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." + ) + privacy: Missing[Literal["secret", "closed"]] = Field( + default=UNSET, + description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + ) + permission: Missing[Literal["pull", "push", "admin"]] = Field( + default=UNSET, + description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of a team to set as the parent team." + ) + + +model_rebuild(OrgsOrgTeamsTeamSlugPatchBody) + +__all__ = ("OrgsOrgTeamsTeamSlugPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0850.py b/githubkit/versions/v2022_11_28/models/group_0850.py index e6f9395a8..02ba3ccdd 100644 --- a/githubkit/versions/v2022_11_28/models/group_0850.py +++ b/githubkit/versions/v2022_11_28/models/group_0850.py @@ -11,15 +11,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdPatchBody(GitHubModel): - """ProjectsColumnsColumnIdPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - name: str = Field(description="Name of the project column") + title: str = Field(description="The discussion post's title.") + body: str = Field(description="The discussion post's body text.") + private: Missing[bool] = Field( + default=UNSET, + description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", + ) -model_rebuild(ProjectsColumnsColumnIdPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsPostBody) -__all__ = ("ProjectsColumnsColumnIdPatchBody",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0851.py b/githubkit/versions/v2022_11_28/models/group_0851.py index 17db0e859..f19071c10 100644 --- a/githubkit/versions/v2022_11_28/models/group_0851.py +++ b/githubkit/versions/v2022_11_28/models/group_0851.py @@ -9,19 +9,24 @@ from __future__ import annotations -from typing import Union - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - note: Union[str, None] = Field(description="The project card's note") + title: Missing[str] = Field( + default=UNSET, description="The discussion post's title." + ) + body: Missing[str] = Field( + default=UNSET, description="The discussion post's body text." + ) -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0852.py b/githubkit/versions/v2022_11_28/models/group_0852.py index 78dbfee00..d8f084a3e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0852.py +++ b/githubkit/versions/v2022_11_28/models/group_0852.py @@ -14,17 +14,12 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - content_id: int = Field( - description="The unique identifier of the content associated with the card" - ) - content_type: str = Field( - description="The piece of content associated with the card" - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0853.py b/githubkit/versions/v2022_11_28/models/group_0853.py index 090a030ce..f9ed8041d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0853.py +++ b/githubkit/versions/v2022_11_28/models/group_0853.py @@ -9,37 +9,23 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdCardsPostResponse503(GitHubModel): - """ProjectsColumnsColumnIdCardsPostResponse503""" - - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[ - List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems] - ] = Field(default=UNSET) - +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody( + GitHubModel +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" + body: str = Field(description="The discussion comment's body text.") - code: Missing[str] = Field(default=UNSET) - message: Missing[str] = Field(default=UNSET) - -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503) -model_rebuild(ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems) +model_rebuild( + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody +) __all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503", - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems", + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0854.py b/githubkit/versions/v2022_11_28/models/group_0854.py index 003392298..7155a8c95 100644 --- a/githubkit/versions/v2022_11_28/models/group_0854.py +++ b/githubkit/versions/v2022_11_28/models/group_0854.py @@ -9,20 +9,31 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdMovesPostBody(GitHubModel): - """ProjectsColumnsColumnIdMovesPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ - position: str = Field( - pattern="^(?:first|last|after:\\d+)$", - description="The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.", + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment." ) -model_rebuild(ProjectsColumnsColumnIdMovesPostBody) +model_rebuild( + OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) -__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0855.py b/githubkit/versions/v2022_11_28/models/group_0855.py index 6009bdb4e..09a55856c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0855.py +++ b/githubkit/versions/v2022_11_28/models/group_0855.py @@ -9,13 +9,23 @@ from __future__ import annotations +from typing import Literal + +from pydantic import Field + from githubkit.compat import GitHubModel, model_rebuild -class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): - """ProjectsColumnsColumnIdMovesPostResponse201""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" + + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion." + ) -model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) +model_rebuild(OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody) -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0856.py b/githubkit/versions/v2022_11_28/models/group_0856.py index 8185d7ede..6b6e99580 100644 --- a/githubkit/versions/v2022_11_28/models/group_0856.py +++ b/githubkit/versions/v2022_11_28/models/group_0856.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -18,14 +18,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdDeleteResponse403(GitHubModel): - """ProjectsProjectIdDeleteResponse403""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[List[str]] = Field(default=UNSET) + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." + ) -model_rebuild(ProjectsProjectIdDeleteResponse403) +model_rebuild(OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody) -__all__ = ("ProjectsProjectIdDeleteResponse403",) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0857.py b/githubkit/versions/v2022_11_28/models/group_0857.py index b66b14460..2243159ab 100644 --- a/githubkit/versions/v2022_11_28/models/group_0857.py +++ b/githubkit/versions/v2022_11_28/models/group_0857.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,26 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdPatchBody(GitHubModel): - """ProjectsProjectIdPatchBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - name: Missing[str] = Field(default=UNSET, description="Name of the project") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the project" - ) - state: Missing[str] = Field( - default=UNSET, description="State of the project; either 'open' or 'closed'" - ) - organization_permission: Missing[Literal["read", "write", "admin", "none"]] = Field( - default=UNSET, - description="The baseline permission that all organization members have on this project", - ) - private: Missing[bool] = Field( + permission: Missing[Literal["read", "write", "admin"]] = Field( default=UNSET, - description="Whether or not this project can be seen by everyone.", + description="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method).\"", ) -model_rebuild(ProjectsProjectIdPatchBody) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody) -__all__ = ("ProjectsProjectIdPatchBody",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0858.py b/githubkit/versions/v2022_11_28/models/group_0858.py index 5a474d68b..3603ad202 100644 --- a/githubkit/versions/v2022_11_28/models/group_0858.py +++ b/githubkit/versions/v2022_11_28/models/group_0858.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,14 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdPatchResponse403(GitHubModel): - """ProjectsProjectIdPatchResponse403""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403(GitHubModel): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" message: Missing[str] = Field(default=UNSET) documentation_url: Missing[str] = Field(default=UNSET) - errors: Missing[List[str]] = Field(default=UNSET) -model_rebuild(ProjectsProjectIdPatchResponse403) +model_rebuild(OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403) -__all__ = ("ProjectsProjectIdPatchResponse403",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0859.py b/githubkit/versions/v2022_11_28/models/group_0859.py index a5695c5c0..cb788d669 100644 --- a/githubkit/versions/v2022_11_28/models/group_0859.py +++ b/githubkit/versions/v2022_11_28/models/group_0859.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,14 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody(GitHubModel): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - permission: Missing[Literal["read", "write", "admin"]] = Field( - default=UNSET, description="The permission to grant the collaborator." + permission: Missing[str] = Field( + default=UNSET, + description="The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", ) -model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) +model_rebuild(OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody) -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0860.py b/githubkit/versions/v2022_11_28/models/group_0860.py index e33e0910d..0164cc723 100644 --- a/githubkit/versions/v2022_11_28/models/group_0860.py +++ b/githubkit/versions/v2022_11_28/models/group_0860.py @@ -9,17 +9,24 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ProjectsProjectIdColumnsPostBody(GitHubModel): - """ProjectsProjectIdColumnsPostBody""" +class OrgsOrgSecurityProductEnablementPostBody(GitHubModel): + """OrgsOrgSecurityProductEnablementPostBody""" - name: str = Field(description="Name of the project column") + query_suite: Missing[Literal["default", "extended"]] = Field( + default=UNSET, + description="CodeQL query suite to be used. If you specify the `query_suite` parameter, the default setup will be configured with this query suite only on all repositories that didn't have default setup already configured. It will not change the query suite on repositories that already have default setup configured.\nIf you don't specify any `query_suite` in your request, the preferred query suite of the organization will be applied.", + ) -model_rebuild(ProjectsProjectIdColumnsPostBody) +model_rebuild(OrgsOrgSecurityProductEnablementPostBody) -__all__ = ("ProjectsProjectIdColumnsPostBody",) +__all__ = ("OrgsOrgSecurityProductEnablementPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0861.py b/githubkit/versions/v2022_11_28/models/group_0861.py index f4e118c4e..8e85c1489 100644 --- a/githubkit/versions/v2022_11_28/models/group_0861.py +++ b/githubkit/versions/v2022_11_28/models/group_0861.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDeleteResponse403(GitHubModel): - """ReposOwnerRepoDeleteResponse403""" +class ProjectsColumnsCardsCardIdDeleteResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdDeleteResponse403""" message: Missing[str] = Field(default=UNSET) documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[List[str]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoDeleteResponse403) +model_rebuild(ProjectsColumnsCardsCardIdDeleteResponse403) -__all__ = ("ReposOwnerRepoDeleteResponse403",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0862.py b/githubkit/versions/v2022_11_28/models/group_0862.py index f54e4c466..6ff9e974c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0862.py +++ b/githubkit/versions/v2022_11_28/models/group_0862.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union from pydantic import Field @@ -18,205 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPatchBody(GitHubModel): - """ReposOwnerRepoPatchBody""" +class ProjectsColumnsCardsCardIdPatchBody(GitHubModel): + """ProjectsColumnsCardsCardIdPatchBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the repository." - ) - homepage: Missing[str] = Field( - default=UNSET, description="A URL with more information about the repository." - ) - private: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", - ) - visibility: Missing[Literal["public", "private"]] = Field( - default=UNSET, description="The visibility of the repository." - ) - security_and_analysis: Missing[ - Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, None] - ] = Field( - default=UNSET, - description='Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.', - ) - has_issues: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable issues for this repository or `false` to disable them.", - ) - has_projects: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", - ) - has_wiki: Missing[bool] = Field( - default=UNSET, - description="Either `true` to enable the wiki for this repository or `false` to disable it.", - ) - is_template: Missing[bool] = Field( - default=UNSET, - description="Either `true` to make this repo available as a template repository or `false` to prevent it.", - ) - default_branch: Missing[str] = Field( - default=UNSET, description="Updates the default branch for this repository." - ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", - ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", - ) - allow_rebase_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", - ) - allow_auto_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", - ) - delete_branch_on_merge: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", - ) - allow_update_branch: Missing[bool] = Field( - default=UNSET, - description="Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.", - ) - use_squash_pr_title_as_default: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) - ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( - default=UNSET, - description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", - ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", - ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( - default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + note: Missing[Union[str, None]] = Field( + default=UNSET, description="The project card's note" ) archived: Missing[bool] = Field( - default=UNSET, - description="Whether to archive this repository. `false` will unarchive a previously archived repository.", - ) - allow_forking: Missing[bool] = Field( - default=UNSET, - description="Either `true` to allow private forks, or `false` to prevent private forks.", - ) - web_commit_signoff_required: Missing[bool] = Field( - default=UNSET, - description="Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.", - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysis(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis - - Specify which security and analysis features to enable or disable for the - repository. - - To use this parameter, you must have admin permissions for the repository or be - an owner or security manager for the organization that owns the repository. For - more information, see "[Managing security managers in your - organization](https://docs.github.com/organizations/managing-peoples-access-to- - your-organization-with-roles/managing-security-managers-in-your-organization)." - - For example, to enable GitHub Advanced Security, use this data in the body of - the `PATCH` request: - `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. - - You can check which security and analysis features are currently enabled by - using a `GET /repos/{owner}/{repo}` request. - """ - - advanced_security: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)."', - ) - secret_scanning: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)."', - ) - secret_scanning_push_protection: Missing[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - ] = Field( - default=UNSET, - description='Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning(GitHubModel): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - - Use the `status` property to enable or disable secret scanning for this - repository. For more information, see "[About secret scanning](/code- - security/secret-security/about-secret-scanning)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." - ) - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection( - GitHubModel -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: Missing[str] = Field( - default=UNSET, description="Can be `enabled` or `disabled`." + default=UNSET, description="Whether or not the card is archived" ) -model_rebuild(ReposOwnerRepoPatchBody) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) -model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) -model_rebuild( - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection -) +model_rebuild(ProjectsColumnsCardsCardIdPatchBody) -__all__ = ( - "ReposOwnerRepoPatchBody", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", -) +__all__ = ("ProjectsColumnsCardsCardIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0863.py b/githubkit/versions/v2022_11_28/models/group_0863.py index 63afda541..d9c5ebe68 100644 --- a/githubkit/versions/v2022_11_28/models/group_0863.py +++ b/githubkit/versions/v2022_11_28/models/group_0863.py @@ -9,22 +9,26 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0156 import Artifact - -class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsArtifactsGetResponse200""" +class ProjectsColumnsCardsCardIdMovesPostBody(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostBody""" - total_count: int = Field() - artifacts: List[Artifact] = Field() + position: str = Field( + pattern="^(?:top|bottom|after:\\d+)$", + description="The position of the card in a column. Can be one of: `top`, `bottom`, or `after:` to place after the specified card.", + ) + column_id: Missing[int] = Field( + default=UNSET, + description="The unique identifier of the column the card should be moved to", + ) -model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostBody) -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0864.py b/githubkit/versions/v2022_11_28/models/group_0864.py index 4b45f9286..7d3245c63 100644 --- a/githubkit/versions/v2022_11_28/models/group_0864.py +++ b/githubkit/versions/v2022_11_28/models/group_0864.py @@ -9,21 +9,13 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." - ) +class ProjectsColumnsCardsCardIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" -model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse201) -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0865.py b/githubkit/versions/v2022_11_28/models/group_0865.py index 7f44831d4..97fe55aa9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0865.py +++ b/githubkit/versions/v2022_11_28/models/group_0865.py @@ -18,21 +18,29 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): - """Actions OIDC subject customization for a repository +class ProjectsColumnsCardsCardIdMovesPostResponse403(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" - Actions OIDC subject customization for a repository - """ + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[ + List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems] + ] = Field(default=UNSET) - use_default: bool = Field( - description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." - ) - include_claim_keys: Missing[List[str]] = Field( - default=UNSET, - description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", - ) +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" -model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + resource: Missing[str] = Field(default=UNSET) + field: Missing[str] = Field(default=UNSET) -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) + +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems) + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403", + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0866.py b/githubkit/versions/v2022_11_28/models/group_0866.py index 76b11fbf6..2a0dcefa7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0866.py +++ b/githubkit/versions/v2022_11_28/models/group_0866.py @@ -13,18 +13,33 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0160 import ActionsSecret +class ProjectsColumnsCardsCardIdMovesPostResponse503(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse503""" -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[ + List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems] + ] = Field(default=UNSET) - total_count: int = Field() - secrets: List[ActionsSecret] = Field() +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" -model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) + +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503) +model_rebuild(ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems) + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse503", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0867.py b/githubkit/versions/v2022_11_28/models/group_0867.py index 5102fedda..e6f9395a8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0867.py +++ b/githubkit/versions/v2022_11_28/models/group_0867.py @@ -9,22 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0161 import ActionsVariable - -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" +class ProjectsColumnsColumnIdPatchBody(GitHubModel): + """ProjectsColumnsColumnIdPatchBody""" - total_count: int = Field() - variables: List[ActionsVariable] = Field() + name: str = Field(description="Name of the project column") -model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) +model_rebuild(ProjectsColumnsColumnIdPatchBody) -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) +__all__ = ("ProjectsColumnsColumnIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0868.py b/githubkit/versions/v2022_11_28/models/group_0868.py index cd92079a4..17db0e859 100644 --- a/githubkit/versions/v2022_11_28/models/group_0868.py +++ b/githubkit/versions/v2022_11_28/models/group_0868.py @@ -9,27 +9,19 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): - """ReposOwnerRepoActionsPermissionsPutBody""" +class ProjectsColumnsColumnIdCardsPostBodyOneof0(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" - enabled: bool = Field( - description="Whether GitHub Actions is enabled on the repository." - ) - allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( - default=UNSET, - description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", - ) + note: Union[str, None] = Field(description="The project card's note") -model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof0) -__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0869.py b/githubkit/versions/v2022_11_28/models/group_0869.py index fdc224b4c..78dbfee00 100644 --- a/githubkit/versions/v2022_11_28/models/group_0869.py +++ b/githubkit/versions/v2022_11_28/models/group_0869.py @@ -9,22 +9,22 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0063 import Runner - -class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunnersGetResponse200""" +class ProjectsColumnsColumnIdCardsPostBodyOneof1(GitHubModel): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" - total_count: int = Field() - runners: List[Runner] = Field() + 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(ReposOwnerRepoActionsRunnersGetResponse200) +model_rebuild(ProjectsColumnsColumnIdCardsPostBodyOneof1) -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0870.py b/githubkit/versions/v2022_11_28/models/group_0870.py index c091701cc..090a030ce 100644 --- a/githubkit/versions/v2022_11_28/models/group_0870.py +++ b/githubkit/versions/v2022_11_28/models/group_0870.py @@ -18,24 +18,28 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" - - name: str = Field(description="The name of the new runner.") - runner_group_id: int = Field( - description="The ID of the runner group to register the runner to." - ) - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", - ) - work_folder: Missing[str] = Field( - default=UNSET, - description="The working directory to be used for job execution, relative to the runner install directory.", - ) - - -model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) - -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) +class ProjectsColumnsColumnIdCardsPostResponse503(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503""" + + code: Missing[str] = Field(default=UNSET) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[ + List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems] + ] = Field(default=UNSET) + + +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems(GitHubModel): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" + + 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_0871.py b/githubkit/versions/v2022_11_28/models/group_0871.py index 47ec574ee..003392298 100644 --- a/githubkit/versions/v2022_11_28/models/group_0871.py +++ b/githubkit/versions/v2022_11_28/models/group_0871.py @@ -9,22 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ProjectsColumnsColumnIdMovesPostBody(GitHubModel): + """ProjectsColumnsColumnIdMovesPostBody""" - labels: List[str] = Field( - max_length=100, - description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", + position: str = Field( + pattern="^(?:first|last|after:\\d+)$", + description="The position of the column in a project. Can be one of: `first`, `last`, or `after:` to place after the specified column.", ) -model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) +model_rebuild(ProjectsColumnsColumnIdMovesPostBody) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) +__all__ = ("ProjectsColumnsColumnIdMovesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0872.py b/githubkit/versions/v2022_11_28/models/group_0872.py index f0573dca7..6009bdb4e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0872.py +++ b/githubkit/versions/v2022_11_28/models/group_0872.py @@ -9,23 +9,13 @@ from __future__ import annotations -from typing import List - -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - - labels: List[str] = Field( - max_length=100, - min_length=1, - description="The names of the custom labels to add to the runner.", - ) +class ProjectsColumnsColumnIdMovesPostResponse201(GitHubModel): + """ProjectsColumnsColumnIdMovesPostResponse201""" -model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) +model_rebuild(ProjectsColumnsColumnIdMovesPostResponse201) -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0873.py b/githubkit/versions/v2022_11_28/models/group_0873.py index 66c3e86b0..8185d7ede 100644 --- a/githubkit/versions/v2022_11_28/models/group_0873.py +++ b/githubkit/versions/v2022_11_28/models/group_0873.py @@ -13,18 +13,19 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0166 import WorkflowRun +class ProjectsProjectIdDeleteResponse403(GitHubModel): + """ProjectsProjectIdDeleteResponse403""" -class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsGetResponse200""" + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[List[str]] = Field(default=UNSET) - total_count: int = Field() - workflow_runs: List[WorkflowRun] = Field() +model_rebuild(ProjectsProjectIdDeleteResponse403) -model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) +__all__ = ("ProjectsProjectIdDeleteResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0874.py b/githubkit/versions/v2022_11_28/models/group_0874.py index 3636ec3bd..b66b14460 100644 --- a/githubkit/versions/v2022_11_28/models/group_0874.py +++ b/githubkit/versions/v2022_11_28/models/group_0874.py @@ -9,22 +9,35 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0156 import Artifact +class ProjectsProjectIdPatchBody(GitHubModel): + """ProjectsProjectIdPatchBody""" -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + 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.", + ) - total_count: int = Field() - artifacts: List[Artifact] = Field() +model_rebuild(ProjectsProjectIdPatchBody) -model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) +__all__ = ("ProjectsProjectIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0875.py b/githubkit/versions/v2022_11_28/models/group_0875.py index f3fb9ec95..5a474d68b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0875.py +++ b/githubkit/versions/v2022_11_28/models/group_0875.py @@ -13,20 +13,19 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0158 import Job +class ProjectsProjectIdPatchResponse403(GitHubModel): + """ProjectsProjectIdPatchResponse403""" -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( - GitHubModel -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) + errors: Missing[List[str]] = Field(default=UNSET) - total_count: int = Field() - jobs: List[Job] = Field() +model_rebuild(ProjectsProjectIdPatchResponse403) -model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) +__all__ = ("ProjectsProjectIdPatchResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0876.py b/githubkit/versions/v2022_11_28/models/group_0876.py index 26ab69541..a5695c5c0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0876.py +++ b/githubkit/versions/v2022_11_28/models/group_0876.py @@ -9,22 +9,23 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0158 import Job +class ProjectsProjectIdCollaboratorsUsernamePutBody(GitHubModel): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" + permission: Missing[Literal["read", "write", "admin"]] = Field( + default=UNSET, description="The permission to grant the collaborator." + ) - total_count: int = Field() - jobs: List[Job] = Field() +model_rebuild(ProjectsProjectIdCollaboratorsUsernamePutBody) -model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0877.py b/githubkit/versions/v2022_11_28/models/group_0877.py index d62931f9a..e33e0910d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0877.py +++ b/githubkit/versions/v2022_11_28/models/group_0877.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" +class ProjectsProjectIdColumnsPostBody(GitHubModel): + """ProjectsProjectIdColumnsPostBody""" - environment_ids: List[int] = Field( - description="The list of environment ids to approve or reject" - ) - state: Literal["approved", "rejected"] = Field( - description="Whether to approve or reject deployment to the specified environments." - ) - comment: str = Field(description="A comment to accompany the deployment review") + name: str = Field(description="Name of the project column") -model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) +model_rebuild(ProjectsProjectIdColumnsPostBody) -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) +__all__ = ("ProjectsProjectIdColumnsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0878.py b/githubkit/versions/v2022_11_28/models/group_0878.py index 28385e889..f4e118c4e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0878.py +++ b/githubkit/versions/v2022_11_28/models/group_0878.py @@ -16,14 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ReposOwnerRepoDeleteResponse403(GitHubModel): + """ReposOwnerRepoDeleteResponse403""" - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) +model_rebuild(ReposOwnerRepoDeleteResponse403) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) +__all__ = ("ReposOwnerRepoDeleteResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_0879.py b/githubkit/versions/v2022_11_28/models/group_0879.py index c79dac58f..af35beb3a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0879.py +++ b/githubkit/versions/v2022_11_28/models/group_0879.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,14 +18,232 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" +class ReposOwnerRepoPatchBody(GitHubModel): + """ReposOwnerRepoPatchBody""" + + name: Missing[str] = Field(default=UNSET, description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://docs.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", + ) + visibility: Missing[Literal["public", "private"]] = Field( + default=UNSET, description="The visibility of the repository." + ) + security_and_analysis: Missing[ + Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysis, None] + ] = Field( + default=UNSET, + description='Specify which security and analysis features to enable or disable for the repository.\n\nTo use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."\n\nFor example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request:\n`{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`.\n\nYou can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request.', + ) + has_issues: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable issues for this repository or `false` to disable them.", + ) + has_projects: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", + ) + has_wiki: Missing[bool] = Field( + default=UNSET, + description="Either `true` to enable the wiki for this repository or `false` to disable it.", + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Either `true` to make this repo available as a template repository or `false` to prevent it.", + ) + default_branch: Missing[str] = Field( + default=UNSET, description="Updates the default branch for this repository." + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", + ) + allow_update_branch: Missing[bool] = Field( + default=UNSET, + description="Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.", + ) + use_squash_pr_title_as_default: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead.", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + archived: Missing[bool] = Field( + default=UNSET, + description="Whether to archive this repository. `false` will unarchive a previously archived repository.", + ) + allow_forking: Missing[bool] = Field( + default=UNSET, + description="Either `true` to allow private forks, or `false` to prevent private forks.", + ) + web_commit_signoff_required: Missing[bool] = Field( + default=UNSET, + description="Either `true` to require contributors to sign off on web-based commits, or `false` to not require contributors to sign off on web-based commits.", + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysis(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis + + Specify which security and analysis features to enable or disable for the + repository. + + To use this parameter, you must have admin permissions for the repository or be + an owner or security manager for the organization that owns the repository. For + more information, see "[Managing security managers in your + organization](https://docs.github.com/organizations/managing-peoples-access-to- + your-organization-with-roles/managing-security-managers-in-your-organization)." + + For example, to enable GitHub Advanced Security, use this data in the body of + the `PATCH` request: + `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. + + You can check which security and analysis features are currently enabled by + using a `GET /repos/{owner}/{repo}` request. + """ + + advanced_security: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)."', + ) + secret_scanning: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)."', + ) + secret_scanning_push_protection: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)."', + ) + secret_scanning_non_provider_patterns: Missing[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns + ] = Field( + default=UNSET, + description='Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Secret scanning supported secrets](/code-security/secret-scanning/secret-scanning-patterns#supported-secrets)."', + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + + Use the `status` property to enable or disable GitHub Advanced Security for this + repository. For more information, see "[About GitHub Advanced + Security](/github/getting-started-with-github/learning-about-github/about- + github-advanced-security)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning(GitHubModel): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + + Use the `status` property to enable or disable secret scanning for this + repository. For more information, see "[About secret scanning](/code- + security/secret-security/about-secret-scanning)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + + Use the `status` property to enable or disable secret scanning push protection + for this repository. For more information, see "[Protecting pushes with secret + scanning](/code-security/secret-scanning/protecting-pushes-with-secret- + scanning)." + """ + + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." + ) + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns( + GitHubModel +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns + + Use the `status` property to enable or disable secret scanning non-provider + patterns for this repository. For more information, see "[Secret scanning + supported secrets](/code-security/secret-scanning/secret-scanning- + patterns#supported-secrets)." + """ - enable_debug_logging: Missing[bool] = Field( - default=UNSET, description="Whether to enable debug logging for the re-run." + status: Missing[str] = Field( + default=UNSET, description="Can be `enabled` or `disabled`." ) -model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) +model_rebuild(ReposOwnerRepoPatchBody) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysis) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity) +model_rebuild(ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection +) +model_rebuild( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns +) -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) +__all__ = ( + "ReposOwnerRepoPatchBody", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysis", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatterns", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0880.py b/githubkit/versions/v2022_11_28/models/group_0880.py index 57b188bfc..d27bad694 100644 --- a/githubkit/versions/v2022_11_28/models/group_0880.py +++ b/githubkit/versions/v2022_11_28/models/group_0880.py @@ -15,16 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0160 import ActionsSecret +from .group_0161 import Artifact -class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsSecretsGetResponse200""" +class ReposOwnerRepoActionsArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsArtifactsGetResponse200""" total_count: int = Field() - secrets: List[ActionsSecret] = Field() + artifacts: List[Artifact] = Field() -model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) +model_rebuild(ReposOwnerRepoActionsArtifactsGetResponse200) -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0881.py b/githubkit/versions/v2022_11_28/models/group_0881.py index 64d6674c7..4b45f9286 100644 --- a/githubkit/versions/v2022_11_28/models/group_0881.py +++ b/githubkit/versions/v2022_11_28/models/group_0881.py @@ -16,19 +16,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoActionsJobsJobIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", - default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/actions/secrets#get-a-repository-public-key) endpoint.", - ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." ) -model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoActionsJobsJobIdRerunPostBody) -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0882.py b/githubkit/versions/v2022_11_28/models/group_0882.py index 0106ee997..7f44831d4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0882.py +++ b/githubkit/versions/v2022_11_28/models/group_0882.py @@ -13,18 +13,26 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0161 import ActionsVariable +class ReposOwnerRepoActionsOidcCustomizationSubPutBody(GitHubModel): + """Actions OIDC subject customization for a repository -class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoActionsVariablesGetResponse200""" + Actions OIDC subject customization for a repository + """ - total_count: int = Field() - variables: List[ActionsVariable] = Field() + use_default: bool = Field( + description="Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored." + ) + include_claim_keys: Missing[List[str]] = Field( + default=UNSET, + description="Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.", + ) -model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) +model_rebuild(ReposOwnerRepoActionsOidcCustomizationSubPutBody) -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0883.py b/githubkit/versions/v2022_11_28/models/group_0883.py index bf9209ee5..d4cbbf7c7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0883.py +++ b/githubkit/versions/v2022_11_28/models/group_0883.py @@ -9,18 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0165 import ActionsSecret + -class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): - """ReposOwnerRepoActionsVariablesPostBody""" +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") + total_count: int = Field() + secrets: List[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoActionsVariablesPostBody) +model_rebuild(ReposOwnerRepoActionsOrganizationSecretsGetResponse200) -__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0884.py b/githubkit/versions/v2022_11_28/models/group_0884.py index f0b922c41..a1066b434 100644 --- a/githubkit/versions/v2022_11_28/models/group_0884.py +++ b/githubkit/versions/v2022_11_28/models/group_0884.py @@ -9,20 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0166 import ActionsVariable + -class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoActionsVariablesNamePatchBody""" +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + total_count: int = Field() + variables: List[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) +model_rebuild(ReposOwnerRepoActionsOrganizationVariablesGetResponse200) -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0885.py b/githubkit/versions/v2022_11_28/models/group_0885.py index d5193e37e..cd92079a4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0885.py +++ b/githubkit/versions/v2022_11_28/models/group_0885.py @@ -9,8 +9,7 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Literal from pydantic import Field @@ -19,38 +18,18 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" +class ReposOwnerRepoActionsPermissionsPutBody(GitHubModel): + """ReposOwnerRepoActionsPermissionsPutBody""" - total_count: int = Field() - workflows: List[Workflow] = Field() + enabled: bool = Field( + description="Whether GitHub Actions is enabled on the repository." + ) + allowed_actions: Missing[Literal["all", "local_only", "selected"]] = Field( + default=UNSET, + description="The permissions policy that controls the actions and reusable workflows that are allowed to run.", + ) -class Workflow(GitHubModel): - """Workflow +model_rebuild(ReposOwnerRepoActionsPermissionsPutBody) - A GitHub Actions workflow - """ - - id: int = Field() - node_id: str = Field() - name: str = Field() - path: str = Field() - state: Literal[ - "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" - ] = Field() - created_at: datetime = Field() - updated_at: datetime = Field() - url: str = Field() - html_url: str = Field() - badge_url: str = Field() - deleted_at: Missing[datetime] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoActionsWorkflowsGetResponse200) -model_rebuild(Workflow) - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200", - "Workflow", -) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0886.py b/githubkit/versions/v2022_11_28/models/group_0886.py index 506702767..4053c22f0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0886.py +++ b/githubkit/versions/v2022_11_28/models/group_0886.py @@ -9,42 +9,22 @@ from __future__ import annotations -from pydantic import Field - -from githubkit.utils import UNSET -from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from typing import List +from pydantic import Field -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" +from githubkit.compat import GitHubModel, model_rebuild - 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.", - ) +from .group_0066 import Runner -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( - ExtraGitHubModel -): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs +class ReposOwnerRepoActionsRunnersGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunnersGetResponse200""" - Input keys and values configured in the workflow file. The maximum number of - properties is 10. Any default properties configured in the workflow file will be - used when `inputs` are omitted. - """ + total_count: int = Field() + runners: List[Runner] = Field() -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) +model_rebuild(ReposOwnerRepoActionsRunnersGetResponse200) -__all__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", -) +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0887.py b/githubkit/versions/v2022_11_28/models/group_0887.py index 461487c9f..c091701cc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0887.py +++ b/githubkit/versions/v2022_11_28/models/group_0887.py @@ -13,18 +13,29 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0166 import WorkflowRun +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + name: str = Field(description="The name of the new runner.") + runner_group_id: int = Field( + description="The ID of the runner group to register the runner to." + ) + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner. **Minimum items**: 1. **Maximum items**: 100.", + ) + work_folder: Missing[str] = Field( + default=UNSET, + description="The working directory to be used for job execution, relative to the runner install directory.", + ) - total_count: int = Field() - workflow_runs: List[WorkflowRun] = Field() +model_rebuild(ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody) -model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) - -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0888.py b/githubkit/versions/v2022_11_28/models/group_0888.py index 171e026b6..47ec574ee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0888.py +++ b/githubkit/versions/v2022_11_28/models/group_0888.py @@ -9,28 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoAutolinksPostBody(GitHubModel): - """ReposOwnerRepoAutolinksPostBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" - key_prefix: str = Field( - description="This prefix appended by certain characters will generate a link any time it is found in an issue, pull request, or commit." - ) - url_template: str = Field( - description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." - ) - is_alphanumeric: Missing[bool] = Field( - default=UNSET, - description="Whether this autolink reference matches alphanumeric characters. If true, the `` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters.", + labels: List[str] = Field( + max_length=100, + description="The names of the custom labels to set for the runner. You can pass an empty array to remove all custom labels.", ) -model_rebuild(ReposOwnerRepoAutolinksPostBody) +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody) -__all__ = ("ReposOwnerRepoAutolinksPostBody",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0889.py b/githubkit/versions/v2022_11_28/models/group_0889.py index 4e5e649d4..f0573dca7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0889.py +++ b/githubkit/versions/v2022_11_28/models/group_0889.py @@ -9,227 +9,23 @@ from __future__ import annotations -from typing import List, Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionPutBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionPutBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - required_status_checks: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks, None - ] = Field( - description="Require status checks to pass before merging. Set to `null` to disable." - ) - enforce_admins: Union[bool, None] = Field( - description="Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable." - ) - required_pull_request_reviews: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews, - None, - ] = Field( - description="Require at least one approving review on a pull request, before merging. Set to `null` to disable." - ) - restrictions: Union[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions, None - ] = Field( - description="Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable." - ) - required_linear_history: Missing[bool] = Field( - default=UNSET, - description='Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see "[Requiring a linear commit history](https://docs.github.com/github/administering-a-repository/requiring-a-linear-commit-history)" in the GitHub Help documentation.', - ) - allow_force_pushes: Missing[Union[bool, None]] = Field( - default=UNSET, - description='Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation."', - ) - allow_deletions: Missing[bool] = Field( - default=UNSET, - description='Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://docs.github.com/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation.', - ) - block_creations: Missing[bool] = Field( - default=UNSET, - description="If set to `true`, the `restrictions` branch protection settings which limits who can push will also block pushes which create new branches, unless the push is initiated by a user, team, or app which has the ability to push. Set to `true` to restrict new branch creation. Default: `false`.", - ) - required_conversation_resolution: Missing[bool] = Field( - default=UNSET, - description="Requires all conversations on code to be resolved before a pull request can be merged into a branch that matches this rule. Set to `false` to disable. Default: `false`.", - ) - lock_branch: Missing[bool] = Field( - default=UNSET, - description="Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. Default: `false`.", - ) - allow_fork_syncing: Missing[bool] = Field( - default=UNSET, - description="Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. Default: `false`.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks - - Require status checks to pass before merging. Set to `null` to disable. - """ - - strict: bool = Field( - description="Require branches to be up to date before merging." - ) - contexts: List[str] = Field( - description="**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n" - ) - checks: Missing[ - List[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems - ] - ] = Field( - default=UNSET, - description="The list of status checks to require in order to merge into this branch.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI - tems - """ - - context: str = Field(description="The name of the required check") - app_id: Missing[int] = Field( - default=UNSET, - description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews - - Require at least one approving review on a pull request, before merging. Set to - `null` to disable. - """ - - dismissal_restrictions: Missing[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions - ] = Field( - default=UNSET, - description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", - ) - dismiss_stale_reviews: Missing[bool] = Field( - default=UNSET, - description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", - ) - require_code_owner_reviews: Missing[bool] = Field( - default=UNSET, - description="Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) review them.", - ) - required_approving_review_count: Missing[int] = Field( - default=UNSET, - description="Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", - ) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`.", - ) - bypass_pull_request_allowances: Missing[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD - ismissalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: Missing[List[str]] = Field( - default=UNSET, description="The list of user `login`s with dismissal access" - ) - teams: Missing[List[str]] = Field( - default=UNSET, description="The list of team `slug`s with dismissal access" - ) - apps: Missing[List[str]] = Field( - default=UNSET, description="The list of app `slug`s with dismissal access" - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB - ypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: Missing[List[str]] = Field( - default=UNSET, - description="The list of user `login`s allowed to bypass pull request requirements.", - ) - teams: Missing[List[str]] = Field( - default=UNSET, - description="The list of team `slug`s allowed to bypass pull request requirements.", - ) - apps: Missing[List[str]] = Field( - default=UNSET, - description="The list of app `slug`s allowed to bypass pull request requirements.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - - Restrict who can push to the protected branch. User, app, and team - `restrictions` are only available for organization-owned repositories. Set to - `null` to disable. - """ - - 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" + labels: List[str] = Field( + max_length=100, + min_length=1, + description="The names of the custom labels to add to the runner.", ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBody) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances -) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) +model_rebuild(ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBody", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", -) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0890.py b/githubkit/versions/v2022_11_28/models/group_0890.py index 2e8746f19..b4378cfbe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0890.py +++ b/githubkit/versions/v2022_11_28/models/group_0890.py @@ -13,102 +13,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0171 import WorkflowRun -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - dismissal_restrictions: Missing[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions - ] = Field( - default=UNSET, - description="Specify which users, teams, and apps can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", - ) - dismiss_stale_reviews: Missing[bool] = Field( - default=UNSET, - description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", - ) - require_code_owner_reviews: Missing[bool] = Field( - default=UNSET, - description="Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) have reviewed.", - ) - required_approving_review_count: Missing[int] = Field( - default=UNSET, - description="Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", - ) - require_last_push_approval: Missing[bool] = Field( - default=UNSET, - description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`", - ) - bypass_pull_request_allowances: Missing[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances - ] = Field( - default=UNSET, - description="Allow specific users, teams, or apps to bypass pull request requirements.", - ) +class ReposOwnerRepoActionsRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsGetResponse200""" + total_count: int = Field() + workflow_runs: List[WorkflowRun] = Field() -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ +model_rebuild(ReposOwnerRepoActionsRunsGetResponse200) - users: Missing[List[str]] = Field( - default=UNSET, description="The list of user `login`s with dismissal access" - ) - teams: Missing[List[str]] = Field( - default=UNSET, description="The list of team `slug`s with dismissal access" - ) - apps: Missing[List[str]] = Field( - default=UNSET, description="The list of app `slug`s with dismissal access" - ) - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: Missing[List[str]] = Field( - default=UNSET, - description="The list of user `login`s allowed to bypass pull request requirements.", - ) - teams: Missing[List[str]] = Field( - default=UNSET, - description="The list of team `slug`s allowed to bypass pull request requirements.", - ) - apps: Missing[List[str]] = Field( - default=UNSET, - description="The list of app `slug`s allowed to bypass pull request requirements.", - ) - - -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions -) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances -) - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", -) +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0891.py b/githubkit/versions/v2022_11_28/models/group_0891.py index 2c40acb3b..2fc7e2914 100644 --- a/githubkit/versions/v2022_11_28/models/group_0891.py +++ b/githubkit/versions/v2022_11_28/models/group_0891.py @@ -13,51 +13,18 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0161 import Artifact -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - - strict: Missing[bool] = Field( - default=UNSET, description="Require branches to be up to date before merging." - ) - contexts: Missing[List[str]] = Field( - default=UNSET, - description="**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n", - ) - checks: Missing[ - List[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems - ] - ] = Field( - default=UNSET, - description="The list of status checks to require in order to merge into this branch.", - ) - - -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms - """ - - context: str = Field(description="The name of the required check") - app_id: Missing[int] = Field( - default=UNSET, - description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", - ) - - -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems -) - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", -) + +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + + total_count: int = Field() + artifacts: List[Artifact] = Field() + + +model_rebuild(ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200) + +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0892.py b/githubkit/versions/v2022_11_28/models/group_0892.py index 39635099b..e03595d33 100644 --- a/githubkit/versions/v2022_11_28/models/group_0892.py +++ b/githubkit/versions/v2022_11_28/models/group_0892.py @@ -15,23 +15,18 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0163 import Job -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( + +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200( GitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 - - Examples: - {'contexts': ['contexts']} - """ + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" - contexts: List[str] = Field(description="The name of the status checks") + total_count: int = Field() + jobs: List[Job] = Field() -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 -) +model_rebuild(ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0893.py b/githubkit/versions/v2022_11_28/models/group_0893.py index f699ea725..748b724c9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0893.py +++ b/githubkit/versions/v2022_11_28/models/group_0893.py @@ -15,23 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0163 import Job -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" - contexts: List[str] = Field(description="The name of the status checks") + total_count: int = Field() + jobs: List[Job] = Field() -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 -) +model_rebuild(ReposOwnerRepoActionsRunsRunIdJobsGetResponse200) -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0894.py b/githubkit/versions/v2022_11_28/models/group_0894.py index 0a6816433..d62931f9a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0894.py +++ b/githubkit/versions/v2022_11_28/models/group_0894.py @@ -9,30 +9,25 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - Examples: - {'contexts': ['contexts']} - """ + 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") - contexts: List[str] = Field(description="The name of the status checks") +model_rebuild(ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody) -model_rebuild( - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 -) - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0895.py b/githubkit/versions/v2022_11_28/models/group_0895.py index 661488f46..28385e889 100644 --- a/githubkit/versions/v2022_11_28/models/group_0895.py +++ b/githubkit/versions/v2022_11_28/models/group_0895.py @@ -9,25 +9,21 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 - - Examples: - {'apps': ['my-app']} - """ +class ReposOwnerRepoActionsRunsRunIdRerunPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - 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." + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0) +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunPostBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0896.py b/githubkit/versions/v2022_11_28/models/group_0896.py index 04feeadfe..c79dac58f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0896.py +++ b/githubkit/versions/v2022_11_28/models/group_0896.py @@ -9,25 +9,21 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 - - Examples: - {'apps': ['my-app']} - """ +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody(GitHubModel): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - 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." + enable_debug_logging: Missing[bool] = Field( + default=UNSET, description="Whether to enable debug logging for the re-run." ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0) +model_rebuild(ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0897.py b/githubkit/versions/v2022_11_28/models/group_0897.py index f44772a3b..761190bc2 100644 --- a/githubkit/versions/v2022_11_28/models/group_0897.py +++ b/githubkit/versions/v2022_11_28/models/group_0897.py @@ -15,21 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0165 import ActionsSecret -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 - Examples: - {'apps': ['my-app']} - """ +class ReposOwnerRepoActionsSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsSecretsGetResponse200""" - apps: List[str] = Field( - description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." - ) + total_count: int = Field() + secrets: List[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoActionsSecretsGetResponse200) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0",) +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0898.py b/githubkit/versions/v2022_11_28/models/group_0898.py index 1f7be7c63..64d6674c7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0898.py +++ b/githubkit/versions/v2022_11_28/models/group_0898.py @@ -9,23 +9,26 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 - - Examples: - {'teams': ['justice-league']} - """ +class ReposOwnerRepoActionsSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - teams: List[str] = Field(description="The slug values for teams") + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/actions/secrets#get-a-repository-public-key) endpoint.", + ) + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." + ) -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) +model_rebuild(ReposOwnerRepoActionsSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0899.py b/githubkit/versions/v2022_11_28/models/group_0899.py index cad6d2023..b3aa342e3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0899.py +++ b/githubkit/versions/v2022_11_28/models/group_0899.py @@ -15,19 +15,16 @@ from githubkit.compat import GitHubModel, model_rebuild +from .group_0166 import ActionsVariable -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 - Examples: - {'teams': ['my-team']} - """ +class ReposOwnerRepoActionsVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoActionsVariablesGetResponse200""" - teams: List[str] = Field(description="The slug values for teams") + total_count: int = Field() + variables: List[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) +model_rebuild(ReposOwnerRepoActionsVariablesGetResponse200) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0900.py b/githubkit/versions/v2022_11_28/models/group_0900.py index a92d25c56..bf9209ee5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0900.py +++ b/githubkit/versions/v2022_11_28/models/group_0900.py @@ -9,25 +9,18 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 - - Examples: - {'teams': ['my-team']} - """ +class ReposOwnerRepoActionsVariablesPostBody(GitHubModel): + """ReposOwnerRepoActionsVariablesPostBody""" - teams: List[str] = Field(description="The slug values for teams") + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoActionsVariablesPostBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) +__all__ = ("ReposOwnerRepoActionsVariablesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0901.py b/githubkit/versions/v2022_11_28/models/group_0901.py index 1c399dbec..f0b922c41 100644 --- a/githubkit/versions/v2022_11_28/models/group_0901.py +++ b/githubkit/versions/v2022_11_28/models/group_0901.py @@ -9,23 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0(GitHubModel): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 - - Examples: - {'users': ['mona']} - """ +class ReposOwnerRepoActionsVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoActionsVariablesNamePatchBody""" - users: List[str] = Field(description="The username for users") + 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(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0) +model_rebuild(ReposOwnerRepoActionsVariablesNamePatchBody) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0",) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0902.py b/githubkit/versions/v2022_11_28/models/group_0902.py index 669ca7afa..d5193e37e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0902.py +++ b/githubkit/versions/v2022_11_28/models/group_0902.py @@ -9,25 +9,48 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0( - GitHubModel -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 +class ReposOwnerRepoActionsWorkflowsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" - Examples: - {'users': ['mona']} - """ + total_count: int = Field() + workflows: List[Workflow] = Field() - users: List[str] = Field(description="The username for users") +class Workflow(GitHubModel): + """Workflow -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0) + A GitHub Actions workflow + """ -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0",) + id: int = Field() + node_id: str = Field() + name: str = Field() + path: str = Field() + state: Literal[ + "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" + ] = Field() + created_at: datetime = Field() + updated_at: datetime = Field() + url: str = Field() + html_url: str = Field() + badge_url: str = Field() + deleted_at: Missing[datetime] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoActionsWorkflowsGetResponse200) +model_rebuild(Workflow) + +__all__ = ( + "ReposOwnerRepoActionsWorkflowsGetResponse200", + "Workflow", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0903.py b/githubkit/versions/v2022_11_28/models/group_0903.py index 4fc86a736..506702767 100644 --- a/githubkit/versions/v2022_11_28/models/group_0903.py +++ b/githubkit/versions/v2022_11_28/models/group_0903.py @@ -9,25 +9,42 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild + + +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" + 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 ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0( - GitHubModel + +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs( + ExtraGitHubModel ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - Examples: - {'users': ['mona']} + 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. """ - users: List[str] = Field(description="The username for users") - -model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs) -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0",) +__all__ = ( + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0904.py b/githubkit/versions/v2022_11_28/models/group_0904.py index 5fcd45c02..b4703d938 100644 --- a/githubkit/versions/v2022_11_28/models/group_0904.py +++ b/githubkit/versions/v2022_11_28/models/group_0904.py @@ -9,17 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0171 import WorkflowRun + -class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): - """ReposOwnerRepoBranchesBranchRenamePostBody""" +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200(GitHubModel): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" - new_name: str = Field(description="The new name of the branch.") + total_count: int = Field() + workflow_runs: List[WorkflowRun] = Field() -model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) +model_rebuild(ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200) -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0905.py b/githubkit/versions/v2022_11_28/models/group_0905.py index 95365e73c..d40211dee 100644 --- a/githubkit/versions/v2022_11_28/models/group_0905.py +++ b/githubkit/versions/v2022_11_28/models/group_0905.py @@ -9,117 +9,57 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild - +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsPostBodyPropOutput(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutput - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ +class ReposOwnerRepoAttestationsPostBody(GitHubModel): + """ReposOwnerRepoAttestationsPostBody""" - title: str = Field(description="The title of the check run.") - summary: str = Field( - max_length=65535, - description="The summary of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", - ) - text: Missing[str] = Field( - max_length=65535, - default=UNSET, - description="The details of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", - ) - annotations: Missing[ - List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems] - ] = Field( - max_length=50, - default=UNSET, - description='Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about how you can view annotations on GitHub, see "[About status checks](https://docs.github.com/articles/about-status-checks#checks)".', + 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." ) - 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 ReposOwnerRepoAttestationsPostBodyPropBundle(GitHubModel): + """ReposOwnerRepoAttestationsPostBodyPropBundle + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" + 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") - 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 ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial( + ExtraGitHubModel +): + """ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial""" -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.", - ) +class ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope(ExtraGitHubModel): + """ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope""" -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) +model_rebuild(ReposOwnerRepoAttestationsPostBody) +model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundle) +model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial) +model_rebuild(ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope) __all__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropOutput", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", - "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", + "ReposOwnerRepoAttestationsPostBody", + "ReposOwnerRepoAttestationsPostBodyPropBundle", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0906.py b/githubkit/versions/v2022_11_28/models/group_0906.py index deb408cfe..2a363197c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0906.py +++ b/githubkit/versions/v2022_11_28/models/group_0906.py @@ -9,67 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild - -from .group_0905 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutput, - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, -) +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" +class ReposOwnerRepoAttestationsPostResponse201(GitHubModel): + """ReposOwnerRepoAttestationsPostResponse201""" - name: str = Field( - description='The name of the check. For example, "code-coverage".' - ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - status: Literal["completed"] = Field() - started_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] = Field( - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3, - 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)."', - ) + id: Missing[int] = Field(default=UNSET, description="The ID of the attestation.") -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) +model_rebuild(ReposOwnerRepoAttestationsPostResponse201) -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) +__all__ = ("ReposOwnerRepoAttestationsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0907.py b/githubkit/versions/v2022_11_28/models/group_0907.py index e6864338e..3159f56c1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0907.py +++ b/githubkit/versions/v2022_11_28/models/group_0907.py @@ -9,70 +9,92 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -from .group_0905 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutput, - ReposOwnerRepoCheckRunsPostBodyPropActionsItems, -) +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200(GitHubModel): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" -class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" + attestations: Missing[ + List[ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) - name: str = Field( - description='The name of the check. For example, "code-coverage".' - ) - head_sha: str = Field(description="The SHA of the commit.") - details_url: Missing[str] = Field( - default=UNSET, - description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", - ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." - ) - status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) - started_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - conclusion: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems( + GitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: Missing[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle ] = Field( default=UNSET, - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", - ) - completed_at: Missing[datetime] = Field( - default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( - default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", - ) - actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( - max_length=3, - default=UNSET, - description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + description="The attestation's Sigstore Bundle.\nRefer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information.", ) + repository_id: Missing[int] = Field(default=UNSET) + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle( + GitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial + ] = Field(default=UNSET, alias="verificationMaterial") + dsse_envelope: Missing[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope + ] = Field(default=UNSET, alias="dsseEnvelope") + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial( + ExtraGitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndlePropVerificationMaterial + """ -model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope( + ExtraGitHubModel +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndlePropDsseEnvelope + """ -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) + +model_rebuild(ReposOwnerRepoAttestationsSubjectDigestGetResponse200) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial +) +model_rebuild( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope +) + +__all__ = ( + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundle", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterial", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelope", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0908.py b/githubkit/versions/v2022_11_28/models/group_0908.py index bb4c2fc60..171e026b6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0908.py +++ b/githubkit/versions/v2022_11_28/models/group_0908.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,105 +16,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ - - title: Missing[str] = Field(default=UNSET, description="**Required**.") - summary: str = Field(max_length=65535, description="Can contain Markdown.") - text: Missing[str] = Field( - max_length=65535, default=UNSET, description="Can contain Markdown." - ) - annotations: Missing[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems] - ] = Field( - max_length=50, - default=UNSET, - description="Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/articles/about-status-checks#checks)\".", - ) - images: Missing[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] - ] = Field( - default=UNSET, - description="Adds images to the output displayed in the GitHub pull request UI.", - ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( - GitHubModel -): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" +class ReposOwnerRepoAutolinksPostBody(GitHubModel): + """ReposOwnerRepoAutolinksPostBody""" - 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." + 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." ) - 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.", + url_template: str = Field( + description="The URL must contain `` for the reference number. `` matches different characters depending on the value of `is_alphanumeric`." ) - raw_details: Missing[str] = Field( + is_alphanumeric: Missing[bool] = Field( default=UNSET, - description="Details about this annotation. The maximum size is 64 KB.", - ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" - - alt: str = Field(description="The alternative text for the image.") - image_url: str = Field(description="The full URL of the image.") - caption: Missing[str] = Field( - default=UNSET, description="A short image description." - ) - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems(GitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" - - label: str = Field( - max_length=20, - description="The text to be displayed on a button in the web UI. The maximum size is 20 characters.", - ) - description: str = Field( - max_length=40, - description="A short explanation of what this action would do. The maximum size is 40 characters.", - ) - identifier: str = Field( - max_length=20, - description="A reference for the action on the integrator's system. The maximum size is 20 characters.", + description="Whether this autolink reference matches alphanumeric characters. If true, the `` parameter of the `url_template` matches alphanumeric characters `A-Z` (case insensitive), `0-9`, and `-`. If false, this autolink reference only matches numeric characters.", ) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) +model_rebuild(ReposOwnerRepoAutolinksPostBody) -__all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", -) +__all__ = ("ReposOwnerRepoAutolinksPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0909.py b/githubkit/versions/v2022_11_28/models/group_0909.py index 512c53586..4e5e649d4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0909.py +++ b/githubkit/versions/v2022_11_28/models/group_0909.py @@ -9,69 +9,227 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List, Union from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild - -from .group_0908 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, -) +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" +class ReposOwnerRepoBranchesBranchProtectionPutBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionPutBody""" - name: Missing[str] = Field( + 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='The name of the check. For example, "code-coverage".', + 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.', ) - details_url: Missing[str] = Field( + allow_force_pushes: Missing[Union[bool, None]] = Field( default=UNSET, - description="The URL of the integrator's site that has the full details of the check.", + 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."', ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." + 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`.", ) - started_at: Missing[datetime] = Field( + allow_fork_syncing: Missing[bool] = Field( default=UNSET, - description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + 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`.", ) - status: Missing[Literal["completed"]] = Field(default=UNSET) - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks + + Require status checks to pass before merging. Set to `null` to disable. + """ + + strict: bool = Field( + description="Require branches to be up to date before merging." + ) + contexts: List[str] = Field( + description="**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n" + ) + checks: Missing[ + List[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems + ] + ] = Field( + default=UNSET, + description="The list of status checks to require in order to merge into this branch.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI + tems + """ + + context: str = Field(description="The name of the required check") + app_id: Missing[int] = Field( + default=UNSET, + description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews + + Require at least one approving review on a pull request, before merging. Set to + `null` to disable. + """ + + dismissal_restrictions: Missing[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions ] = 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="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.", ) - completed_at: Missing[datetime] = Field( + dismiss_stale_reviews: Missing[bool] = 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="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", ) - output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( + require_code_owner_reviews: Missing[bool] = 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="Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) review them.", ) - actions: Missing[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] + required_approving_review_count: Missing[int] = Field( + default=UNSET, + description="Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6 or 0 to not require reviewers.", + ) + require_last_push_approval: Missing[bool] = Field( + default=UNSET, + description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`.", + ) + bypass_pull_request_allowances: Missing[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances ] = Field( - max_length=3, default=UNSET, - description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + description="Allow specific users, teams, or apps to bypass pull request requirements.", ) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) +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. + """ -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) + 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(ReposOwnerRepoBranchesBranchProtectionPutBody) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances +) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionPutBody", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItems", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowances", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0910.py b/githubkit/versions/v2022_11_28/models/group_0910.py index 66f1ea5b0..2e8746f19 100644 --- a/githubkit/versions/v2022_11_28/models/group_0910.py +++ b/githubkit/versions/v2022_11_28/models/group_0910.py @@ -9,72 +9,106 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import ExtraGitHubModel, model_rebuild - -from .group_0908 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, -) +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - name: Missing[str] = Field( + dismissal_restrictions: Missing[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions + ] = Field( default=UNSET, - description='The name of the check. For example, "code-coverage".', + 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.", ) - details_url: Missing[str] = Field( + dismiss_stale_reviews: Missing[bool] = Field( default=UNSET, - description="The URL of the integrator's site that has the full details of the check.", + description="Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", ) - external_id: Missing[str] = Field( - default=UNSET, description="A reference for the run on the integrator's system." + require_code_owner_reviews: Missing[bool] = Field( + default=UNSET, + description="Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) have reviewed.", + ) + 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.", ) - started_at: Missing[datetime] = Field( + require_last_push_approval: Missing[bool] = Field( default=UNSET, - description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="Whether the most recent push must be approved by someone other than the person who pushed it. Default: `false`", ) - status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) - conclusion: Missing[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] + bypass_pull_request_allowances: Missing[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances ] = Field( default=UNSET, - description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", + description="Allow specific users, teams, or apps to bypass pull request requirements.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: Missing[List[str]] = Field( + default=UNSET, description="The list of user `login`s with dismissal access" ) - completed_at: Missing[datetime] = Field( + teams: Missing[List[str]] = Field( + default=UNSET, description="The list of team `slug`s with dismissal access" + ) + apps: Missing[List[str]] = Field( + default=UNSET, description="The list of app `slug`s with dismissal access" + ) + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: Missing[List[str]] = Field( default=UNSET, - description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The list of user `login`s allowed to bypass pull request requirements.", ) - output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( + teams: Missing[List[str]] = Field( default=UNSET, - description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + description="The list of team `slug`s allowed to bypass pull request requirements.", ) - actions: Missing[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] - ] = Field( - max_length=3, + apps: Missing[List[str]] = Field( default=UNSET, - description='Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + description="The list of app `slug`s allowed to bypass pull request requirements.", ) -model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions +) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances +) -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictions", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowances", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0911.py b/githubkit/versions/v2022_11_28/models/group_0911.py index 2a8e7cd54..2c40acb3b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0911.py +++ b/githubkit/versions/v2022_11_28/models/group_0911.py @@ -9,17 +9,55 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPostBody""" - - head_sha: str = Field(description="The sha of the head commit.") - - -model_rebuild(ReposOwnerRepoCheckSuitesPostBody) - -__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" + + strict: Missing[bool] = Field( + default=UNSET, description="Require branches to be up to date before merging." + ) + contexts: Missing[List[str]] = Field( + default=UNSET, + description="**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\n", + ) + checks: Missing[ + List[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems + ] + ] = Field( + default=UNSET, + description="The list of status checks to require in order to merge into this branch.", + ) + + +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms + """ + + context: str = Field(description="The name of the required check") + app_id: Missing[int] = Field( + default=UNSET, + description="The ID of the GitHub App that must provide this check. Omit this field to automatically select the GitHub App that has recently provided this check, or any app if it was not set by a GitHub App. Pass -1 to explicitly allow any app to set the status.", + ) + + +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems +) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0912.py b/githubkit/versions/v2022_11_28/models/group_0912.py index e31b287e9..39635099b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0912.py +++ b/githubkit/versions/v2022_11_28/models/group_0912.py @@ -13,38 +13,25 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - - auto_trigger_checks: Missing[ - List[ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems] - ] = Field( - default=UNSET, - description="Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default.", - ) - - -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0( GitHubModel ): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 - 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.", - ) + Examples: + {'contexts': ['contexts']} + """ + contexts: List[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) -model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) + +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 +) __all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBody", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0913.py b/githubkit/versions/v2022_11_28/models/group_0913.py index d0b14ce58..f699ea725 100644 --- a/githubkit/versions/v2022_11_28/models/group_0913.py +++ b/githubkit/versions/v2022_11_28/models/group_0913.py @@ -15,16 +15,23 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0192 import CheckRun +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + Examples: + {'contexts': ['contexts']} + """ - total_count: int = Field() - check_runs: List[CheckRun] = Field() + contexts: List[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 +) -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0914.py b/githubkit/versions/v2022_11_28/models/group_0914.py index 14e8507cc..0a6816433 100644 --- a/githubkit/versions/v2022_11_28/models/group_0914.py +++ b/githubkit/versions/v2022_11_28/models/group_0914.py @@ -9,36 +9,30 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import Annotated +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 - state: Literal["open", "dismissed"] = Field( - description="Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`." - ) - dismissed_reason: Missing[ - Union[None, Literal["false positive", "won't fix", "used in tests"]] - ] = Field( - default=UNSET, - description="**Required when the state is dismissed.** The reason for dismissing or closing the alert.", - ) - dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( - Field( - default=UNSET, - description="The dismissal comment associated with the dismissal of the alert.", - ) - ) + Examples: + {'contexts': ['contexts']} + """ + contexts: List[str] = Field(description="The name of the status checks") -model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) +model_rebuild( + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0 +) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0915.py b/githubkit/versions/v2022_11_28/models/group_0915.py index e03cf7d53..661488f46 100644 --- a/githubkit/versions/v2022_11_28/models/group_0915.py +++ b/githubkit/versions/v2022_11_28/models/group_0915.py @@ -9,39 +9,25 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack: str = Field( - description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" - ) - repositories: List[str] = Field( - description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required." - ) - repository_lists: Missing[List[str]] = Field( - max_length=1, - default=UNSET, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", - ) - repository_owners: Missing[List[str]] = Field( - max_length=1, - 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.", + Examples: + {'apps': ['my-app']} + """ + + apps: List[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." ) -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0916.py b/githubkit/versions/v2022_11_28/models/group_0916.py index 7716f42e6..04feeadfe 100644 --- a/githubkit/versions/v2022_11_28/models/group_0916.py +++ b/githubkit/versions/v2022_11_28/models/group_0916.py @@ -9,39 +9,25 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack: str = Field( - description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" - ) - repositories: Missing[List[str]] = Field( - default=UNSET, - description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", - ) - repository_lists: List[str] = Field( - max_length=1, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", - ) - repository_owners: Missing[List[str]] = Field( - max_length=1, - 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.", + Examples: + {'apps': ['my-app']} + """ + + apps: List[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." ) -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0917.py b/githubkit/versions/v2022_11_28/models/group_0917.py index 42a935203..f44772a3b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0917.py +++ b/githubkit/versions/v2022_11_28/models/group_0917.py @@ -9,39 +9,27 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] = Field(description="The language targeted by the CodeQL query") - query_pack: str = Field( - description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" - ) - repositories: Missing[List[str]] = Field( - default=UNSET, - description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", - ) - repository_lists: Missing[List[str]] = Field( - max_length=1, - default=UNSET, - description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", - ) - repository_owners: List[str] = Field( - max_length=1, - 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.", + Examples: + {'apps': ['my-app']} + """ + + apps: List[str] = Field( + description="The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items." ) -model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0) -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0918.py b/githubkit/versions/v2022_11_28/models/group_0918.py index 97149be5e..1f7be7c63 100644 --- a/githubkit/versions/v2022_11_28/models/group_0918.py +++ b/githubkit/versions/v2022_11_28/models/group_0918.py @@ -9,50 +9,23 @@ from __future__ import annotations -from datetime import datetime +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodeScanningSarifsPostBody(GitHubModel): - """ReposOwnerRepoCodeScanningSarifsPostBody""" - - commit_sha: str = Field( - min_length=40, - max_length=40, - pattern="^[0-9a-fA-F]+$", - description="The SHA of the commit to which the analysis you are uploading relates.", - ) - ref: str = Field( - pattern="^refs/(heads|tags|pull)/.*$", - description="The full Git reference, formatted as `refs/heads/`,\n`refs/tags/`, `refs/pull//merge`, or `refs/pull//head`.", - ) - sarif: str = Field( - description='A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see "[SARIF support for code scanning](https://docs.github.com/code-security/secure-coding/sarif-support-for-code-scanning)."' - ) - checkout_uri: Missing[str] = Field( - default=UNSET, - description="The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.", - ) - started_at: Missing[datetime] = Field( - default=UNSET, - description="The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) - tool_name: Missing[str] = Field( - default=UNSET, - description='The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`.', - ) - validate_: Missing[bool] = Field( - default=UNSET, - alias="validate", - description="Whether the SARIF file will be validated according to the code scanning specifications.\nThis parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning.", - ) - - -model_rebuild(ReposOwnerRepoCodeScanningSarifsPostBody) - -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 + + Examples: + {'teams': ['justice-league']} + """ + + teams: List[str] = Field(description="The slug values for teams") + + +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0919.py b/githubkit/versions/v2022_11_28/models/group_0919.py index bb6e76a27..cad6d2023 100644 --- a/githubkit/versions/v2022_11_28/models/group_0919.py +++ b/githubkit/versions/v2022_11_28/models/group_0919.py @@ -15,16 +15,19 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0072 import Codespace +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 -class ReposOwnerRepoCodespacesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesGetResponse200""" + Examples: + {'teams': ['my-team']} + """ - total_count: int = Field() - codespaces: List[Codespace] = Field() + teams: List[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoCodespacesGetResponse200) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0) -__all__ = ("ReposOwnerRepoCodespacesGetResponse200",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0920.py b/githubkit/versions/v2022_11_28/models/group_0920.py index fcbf9ab7e..a92d25c56 100644 --- a/githubkit/versions/v2022_11_28/models/group_0920.py +++ b/githubkit/versions/v2022_11_28/models/group_0920.py @@ -9,61 +9,25 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesPostBody(GitHubModel): - """ReposOwnerRepoCodespacesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 - ref: Missing[str] = Field( - default=UNSET, - description="Git ref (typically a branch name) for this codespace", - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" - ) - retention_period_minutes: Missing[int] = Field( - default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", - ) + Examples: + {'teams': ['my-team']} + """ + teams: List[str] = Field(description="The slug values for teams") -model_rebuild(ReposOwnerRepoCodespacesPostBody) -__all__ = ("ReposOwnerRepoCodespacesPostBody",) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0921.py b/githubkit/versions/v2022_11_28/models/group_0921.py index 94896c110..1c399dbec 100644 --- a/githubkit/versions/v2022_11_28/models/group_0921.py +++ b/githubkit/versions/v2022_11_28/models/group_0921.py @@ -13,34 +13,19 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0(GitHubModel): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 - total_count: int = Field() - devcontainers: List[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems - ] = Field() + Examples: + {'users': ['mona']} + """ + users: List[str] = Field(description="The username for users") -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( - GitHubModel -): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" - path: str = Field() - name: Missing[str] = Field(default=UNSET) - display_name: Missing[str] = Field(default=UNSET) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0) - -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) - -__all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0922.py b/githubkit/versions/v2022_11_28/models/group_0922.py index cb74b64bd..669ca7afa 100644 --- a/githubkit/versions/v2022_11_28/models/group_0922.py +++ b/githubkit/versions/v2022_11_28/models/group_0922.py @@ -15,16 +15,19 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0071 import CodespaceMachine +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 -class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" + Examples: + {'users': ['mona']} + """ - total_count: int = Field() - machines: List[CodespaceMachine] = Field() + users: List[str] = Field(description="The username for users") -model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0) -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0923.py b/githubkit/versions/v2022_11_28/models/group_0923.py index cbb5b1e1b..4fc86a736 100644 --- a/githubkit/versions/v2022_11_28/models/group_0923.py +++ b/githubkit/versions/v2022_11_28/models/group_0923.py @@ -9,39 +9,25 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0001 import SimpleUser +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0( + GitHubModel +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 -class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200""" + Examples: + {'users': ['mona']} + """ - billable_owner: Missing[SimpleUser] = Field( - default=UNSET, title="Simple User", description="A GitHub user." - ) - defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( - default=UNSET - ) + users: List[str] = Field(description="The username for users") -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" +model_rebuild(ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0) - location: str = Field() - devcontainer_path: Union[str, None] = Field() - - -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) -model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) - -__all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200", - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0924.py b/githubkit/versions/v2022_11_28/models/group_0924.py index e99811a75..5fcd45c02 100644 --- a/githubkit/versions/v2022_11_28/models/group_0924.py +++ b/githubkit/versions/v2022_11_28/models/group_0924.py @@ -9,36 +9,17 @@ from __future__ import annotations -from typing import List -from datetime import datetime - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" - - total_count: int = Field() - secrets: List[RepoCodespacesSecret] = Field() - - -class RepoCodespacesSecret(GitHubModel): - """Codespaces Secret - - Set repository secrets for GitHub Codespaces. - """ +class ReposOwnerRepoBranchesBranchRenamePostBody(GitHubModel): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() + new_name: str = Field(description="The new name of the branch.") -model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) -model_rebuild(RepoCodespacesSecret) +model_rebuild(ReposOwnerRepoBranchesBranchRenamePostBody) -__all__ = ( - "ReposOwnerRepoCodespacesSecretsGetResponse200", - "RepoCodespacesSecret", -) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0925.py b/githubkit/versions/v2022_11_28/models/group_0925.py index ceb4366fc..95365e73c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0925.py +++ b/githubkit/versions/v2022_11_28/models/group_0925.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,19 +18,108 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +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. + """ - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + title: str = Field(description="The title of the check run.") + summary: str = Field( + max_length=65535, + description="The summary of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", + ) + text: Missing[str] = Field( + max_length=65535, + default=UNSET, + description="The details of the check run. This parameter supports Markdown. **Maximum length**: 65535 characters.", + ) + annotations: Missing[ + List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems] + ] = Field( + max_length=50, + default=UNSET, + description='Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about how you can view annotations on GitHub, see "[About status checks](https://docs.github.com/articles/about-status-checks#checks)".', + ) + images: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems]] = ( + Field( + default=UNSET, + description="Adds images to the output displayed in the GitHub pull request UI.", + ) + ) + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems(GitHubModel): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" + + path: str = Field( + description="The path of the file to add an annotation to. For example, `assets/css/main.css`." + ) + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." + ) + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = Field( + default=UNSET, + description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", + ) + end_column: Missing[int] = Field( default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/codespaces/repository-secrets#get-a-repository-public-key) endpoint.", + description="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.", ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + identifier: str = Field( + max_length=20, + description="A reference for the action on the integrator's system. The maximum size is 20 characters.", ) -model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyPropActionsItems) -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) +__all__ = ( + "ReposOwnerRepoCheckRunsPostBodyPropOutput", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems", + "ReposOwnerRepoCheckRunsPostBodyPropActionsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0926.py b/githubkit/versions/v2022_11_28/models/group_0926.py index e02fc904b..90ae33c42 100644 --- a/githubkit/versions/v2022_11_28/models/group_0926.py +++ b/githubkit/versions/v2022_11_28/models/group_0926.py @@ -9,22 +9,67 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, model_rebuild + +from .group_0925 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutput, + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, +) -class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" +class ReposOwnerRepoCheckRunsPostBodyOneof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" - permission: Missing[str] = Field( + name: str = Field( + description='The name of the check. For example, "code-coverage".' + ) + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + status: Literal["completed"] = Field() + started_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] = Field( + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3, default=UNSET, - description="The permission to grant the collaborator. **Only valid on organization-owned repositories.** We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any.", + description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', ) -model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof0) -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0927.py b/githubkit/versions/v2022_11_28/models/group_0927.py index 75effd211..4b213b46a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0927.py +++ b/githubkit/versions/v2022_11_28/models/group_0927.py @@ -9,17 +9,70 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal + from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import ExtraGitHubModel, model_rebuild + +from .group_0925 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutput, + ReposOwnerRepoCheckRunsPostBodyPropActionsItems, +) -class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdPatchBody""" +class ReposOwnerRepoCheckRunsPostBodyOneof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" - body: str = Field(description="The contents of the comment") + name: str = Field( + description='The name of the check. For example, "code-coverage".' + ) + head_sha: str = Field(description="The SHA of the commit.") + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check. If the integrator does not provide this, then the homepage of the GitHub app is used.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) + started_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + conclusion: Missing[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] = Field( + default=UNSET, + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsPostBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItems]] = Field( + max_length=3, + default=UNSET, + description='Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://docs.github.com/rest/guides/using-the-rest-api-to-interact-with-checks#check-runs-and-requested-actions)."', + ) -model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoCheckRunsPostBodyOneof1) -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0928.py b/githubkit/versions/v2022_11_28/models/group_0928.py index 496e2b84a..bb4c2fc60 100644 --- a/githubkit/versions/v2022_11_28/models/group_0928.py +++ b/githubkit/versions/v2022_11_28/models/group_0928.py @@ -9,23 +9,114 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ + + title: Missing[str] = Field(default=UNSET, description="**Required**.") + summary: str = Field(max_length=65535, description="Can contain Markdown.") + text: Missing[str] = Field( + max_length=65535, default=UNSET, description="Can contain Markdown." + ) + annotations: Missing[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems] + ] = Field( + max_length=50, + default=UNSET, + description="Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/checks/runs#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. GitHub Actions are limited to 10 warning annotations and 10 error annotations per step. For details about annotations in the UI, see \"[About status checks](https://docs.github.com/articles/about-status-checks#checks)\".", + ) + images: Missing[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems] ] = Field( - description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the commit comment." + default=UNSET, + description="Adds images to the output displayed in the GitHub pull request UI.", + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems( + GitHubModel +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + + path: str = Field( + description="The path of the file to add an annotation to. For example, `assets/css/main.css`." + ) + start_line: int = Field( + description="The start line of the annotation. Line numbers start at 1." + ) + end_line: int = Field(description="The end line of the annotation.") + start_column: Missing[int] = Field( + default=UNSET, + description="The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. Column numbers start at 1.", + ) + end_column: Missing[int] = Field( + default=UNSET, + description="The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + ) + annotation_level: Literal["notice", "warning", "failure"] = Field( + description="The level of the annotation." + ) + message: str = Field( + description="A short description of the feedback for these lines of code. The maximum size is 64 KB." + ) + title: Missing[str] = Field( + default=UNSET, + description="The title that represents the annotation. The maximum size is 255 characters.", + ) + raw_details: Missing[str] = Field( + default=UNSET, + description="Details about this annotation. The maximum size is 64 KB.", + ) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems(GitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" + + alt: str = Field(description="The alternative text for the image.") + image_url: str = Field(description="The full URL of the image.") + caption: Missing[str] = Field( + default=UNSET, description="A short image description." + ) + + +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(ReposOwnerRepoCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems) -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0929.py b/githubkit/versions/v2022_11_28/models/group_0929.py index 7a8745468..03a9dcce6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0929.py +++ b/githubkit/versions/v2022_11_28/models/group_0929.py @@ -9,29 +9,69 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import ExtraGitHubModel, model_rebuild + +from .group_0928 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, +) -class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" - body: str = Field(description="The contents of the comment.") - path: Missing[str] = Field( - default=UNSET, description="Relative path of the file to comment on." + 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." ) - position: Missing[int] = Field( - default=UNSET, description="Line index in the diff to comment on." + started_at: Missing[datetime] = Field( + default=UNSET, + description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + status: Missing[Literal["completed"]] = Field(default=UNSET) + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] = Field( + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this." + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", ) - line: Missing[int] = Field( + actions: Missing[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] + ] = Field( + max_length=3, default=UNSET, - description="**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.", + 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(ReposOwnerRepoCommitsCommitShaCommentsPostBody) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0) -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0930.py b/githubkit/versions/v2022_11_28/models/group_0930.py index da3db8c7f..b2f459d33 100644 --- a/githubkit/versions/v2022_11_28/models/group_0930.py +++ b/githubkit/versions/v2022_11_28/models/group_0930.py @@ -9,22 +9,72 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Literal from pydantic import Field -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import ExtraGitHubModel, model_rebuild -from .group_0192 import CheckRun +from .group_0928 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems, +) -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1(ExtraGitHubModel): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" - total_count: int = Field() - check_runs: List[CheckRun] = Field() + name: Missing[str] = Field( + default=UNSET, + description='The name of the check. For example, "code-coverage".', + ) + details_url: Missing[str] = Field( + default=UNSET, + description="The URL of the integrator's site that has the full details of the check.", + ) + external_id: Missing[str] = Field( + default=UNSET, description="A reference for the run on the integrator's system." + ) + started_at: Missing[datetime] = Field( + default=UNSET, + description="This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + status: Missing[Literal["queued", "in_progress"]] = Field(default=UNSET) + conclusion: Missing[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] = Field( + default=UNSET, + description="**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. You cannot change a check run conclusion to `stale`, only GitHub can set this.", + ) + completed_at: Missing[datetime] = Field( + default=UNSET, + description="The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + output: Missing[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput] = Field( + default=UNSET, + description="Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run.", + ) + actions: Missing[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems] + ] = Field( + max_length=3, + 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(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) +model_rebuild(ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1) -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0931.py b/githubkit/versions/v2022_11_28/models/group_0931.py index ed215f98b..2a8e7cd54 100644 --- a/githubkit/versions/v2022_11_28/models/group_0931.py +++ b/githubkit/versions/v2022_11_28/models/group_0931.py @@ -11,71 +11,15 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoContentsPathPutBody(GitHubModel): - """ReposOwnerRepoContentsPathPutBody""" +class ReposOwnerRepoCheckSuitesPostBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPostBody""" - 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`.", - ) + head_sha: str = Field(description="The sha of the head commit.") -class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathPutBodyPropCommitter +model_rebuild(ReposOwnerRepoCheckSuitesPostBody) - The person that committed the file. Default: the authenticated user. - """ - - name: str = Field( - description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." - ) - email: str = Field( - description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." - ) - date: Missing[str] = Field(default=UNSET) - - -class ReposOwnerRepoContentsPathPutBodyPropAuthor(GitHubModel): - """ReposOwnerRepoContentsPathPutBodyPropAuthor - - The author of the file. Default: The `committer` or the authenticated user if - you omit `committer`. - """ - - name: str = Field( - description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." - ) - email: str = Field( - description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." - ) - date: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoContentsPathPutBody) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) - -__all__ = ( - "ReposOwnerRepoContentsPathPutBody", - "ReposOwnerRepoContentsPathPutBodyPropCommitter", - "ReposOwnerRepoContentsPathPutBodyPropAuthor", -) +__all__ = ("ReposOwnerRepoCheckSuitesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0932.py b/githubkit/versions/v2022_11_28/models/group_0932.py index 887992d4b..e31b287e9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0932.py +++ b/githubkit/versions/v2022_11_28/models/group_0932.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET @@ -16,59 +18,33 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBody""" +class ReposOwnerRepoCheckSuitesPreferencesPatchBody(GitHubModel): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - message: str = Field(description="The commit message.") - sha: str = Field(description="The blob SHA of the file being deleted.") - branch: Missing[str] = Field( + auto_trigger_checks: Missing[ + List[ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems] + ] = 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." + description="Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default.", ) - author: Missing[ReposOwnerRepoContentsPathDeleteBodyPropAuthor] = Field( - default=UNSET, description="object containing information about the author." - ) - -class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - object containing information about the committer. - """ +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems( + GitHubModel +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" - ) - email: Missing[str] = Field( - default=UNSET, - description="The email of the author (or committer) of the commit", - ) - - -class ReposOwnerRepoContentsPathDeleteBodyPropAuthor(GitHubModel): - """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - - object containing information about the author. - """ - - name: Missing[str] = Field( - default=UNSET, description="The name of the author (or committer) of the commit" - ) - email: Missing[str] = Field( - default=UNSET, - description="The email of the author (or committer) of the commit", + 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(ReposOwnerRepoContentsPathDeleteBody) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) -model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBody) +model_rebuild(ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems) __all__ = ( - "ReposOwnerRepoContentsPathDeleteBody", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", - "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", + "ReposOwnerRepoCheckSuitesPreferencesPatchBody", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0933.py b/githubkit/versions/v2022_11_28/models/group_0933.py index d872bec34..69aeb49a5 100644 --- a/githubkit/versions/v2022_11_28/models/group_0933.py +++ b/githubkit/versions/v2022_11_28/models/group_0933.py @@ -9,36 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0197 import CheckRun -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.", - ) +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + total_count: int = Field() + check_runs: List[CheckRun] = Field() -model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) +model_rebuild(ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200) + +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0934.py b/githubkit/versions/v2022_11_28/models/group_0934.py index 6b696bdc7..14e8507cc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0934.py +++ b/githubkit/versions/v2022_11_28/models/group_0934.py @@ -9,36 +9,36 @@ from __future__ import annotations -from typing import List -from datetime import datetime +from typing import Union, Literal +from typing_extensions import Annotated from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoDependabotSecretsGetResponse200""" +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" - total_count: int = Field() - secrets: List[DependabotSecret] = Field() + state: Literal["open", "dismissed"] = Field( + description="Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`." + ) + dismissed_reason: Missing[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] + ] = Field( + default=UNSET, + description="**Required when the state is dismissed.** The reason for dismissing or closing the alert.", + ) + dismissed_comment: Missing[Union[Annotated[str, Field(max_length=280)], None]] = ( + Field( + default=UNSET, + description="The dismissal comment associated with the dismissal of the alert.", + ) + ) -class DependabotSecret(GitHubModel): - """Dependabot Secret +model_rebuild(ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody) - Set secrets for Dependabot. - """ - - name: str = Field(description="The name of the secret.") - created_at: datetime = Field() - updated_at: datetime = Field() - - -model_rebuild(ReposOwnerRepoDependabotSecretsGetResponse200) -model_rebuild(DependabotSecret) - -__all__ = ( - "ReposOwnerRepoDependabotSecretsGetResponse200", - "DependabotSecret", -) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0935.py b/githubkit/versions/v2022_11_28/models/group_0935.py index 438319910..e03cf7d53 100644 --- a/githubkit/versions/v2022_11_28/models/group_0935.py +++ b/githubkit/versions/v2022_11_28/models/group_0935.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,19 +18,30 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" - encrypted_value: Missing[str] = Field( - pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack: str = Field( + description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" + ) + repositories: List[str] = Field( + description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required." + ) + repository_lists: Missing[List[str]] = Field( + max_length=1, default=UNSET, - description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/dependabot/secrets#get-a-repository-public-key) endpoint.", + description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", ) - key_id: Missing[str] = Field( - default=UNSET, description="ID of the key you used to encrypt the secret." + repository_owners: Missing[List[str]] = Field( + max_length=1, + 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(ReposOwnerRepoDependabotSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0) -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0936.py b/githubkit/versions/v2022_11_28/models/group_0936.py index d8abaeb32..7716f42e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0936.py +++ b/githubkit/versions/v2022_11_28/models/group_0936.py @@ -9,24 +9,39 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" - 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.' + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack: str = Field( + description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" + ) + repositories: Missing[List[str]] = Field( + default=UNSET, + description="List of repository names (in the form `owner/repo-name`) to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", + ) + repository_lists: List[str] = Field( + max_length=1, + description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", ) - message: str = Field( - description="A message providing further details about the result, such as why the dependencies were not updated." + repository_owners: Missing[List[str]] = Field( + max_length=1, + default=UNSET, + description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", ) -model_rebuild(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1) -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0937.py b/githubkit/versions/v2022_11_28/models/group_0937.py index 6b4363613..42a935203 100644 --- a/githubkit/versions/v2022_11_28/models/group_0937.py +++ b/githubkit/versions/v2022_11_28/models/group_0937.py @@ -9,61 +9,39 @@ from __future__ import annotations -from typing import List, Union +from typing import List, Literal from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsPostBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2(GitHubModel): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" - ref: str = Field( - description="The ref to deploy. This can be a branch, tag, or SHA." + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] = Field(description="The language targeted by the CodeQL query") + query_pack: str = Field( + description="A Base64-encoded tarball containing a CodeQL query and all its dependencies" ) - task: Missing[str] = Field( + repositories: Missing[List[str]] = Field( default=UNSET, - description="Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).", + 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.", ) - auto_merge: Missing[bool] = Field( + repository_lists: Missing[List[str]] = Field( + max_length=1, default=UNSET, - description="Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.", + description="List of repository lists to run the query against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", ) - 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." + repository_owners: List[str] = Field( + max_length=1, + description="List of organization or user names whose repositories the query should be run against. Precisely one property from `repositories`, `repository_lists` and `repository_owners` is required.", ) - transient_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`", - ) - production_environment: Missing[bool] = Field( - default=UNSET, - description="Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.", - ) - - -class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0(ExtraGitHubModel): - """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" -model_rebuild(ReposOwnerRepoDeploymentsPostBody) -model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) +model_rebuild(ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2) -__all__ = ( - "ReposOwnerRepoDeploymentsPostBody", - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", -) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_0938.py b/githubkit/versions/v2022_11_28/models/group_0938.py index 8fe47fba1..97149be5e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0938.py +++ b/githubkit/versions/v2022_11_28/models/group_0938.py @@ -9,6 +9,8 @@ from __future__ import annotations +from datetime import datetime + from pydantic import Field from githubkit.utils import UNSET @@ -16,12 +18,41 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): - """ReposOwnerRepoDeploymentsPostResponse202""" - - message: Missing[str] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) - -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) +class ReposOwnerRepoCodeScanningSarifsPostBody(GitHubModel): + """ReposOwnerRepoCodeScanningSarifsPostBody""" + + commit_sha: str = Field( + min_length=40, + max_length=40, + pattern="^[0-9a-fA-F]+$", + description="The SHA of the commit to which the analysis you are uploading relates.", + ) + ref: str = Field( + pattern="^refs/(heads|tags|pull)/.*$", + description="The full Git reference, formatted as `refs/heads/`,\n`refs/tags/`, `refs/pull//merge`, or `refs/pull//head`.", + ) + sarif: str = Field( + description='A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see "[SARIF support for code scanning](https://docs.github.com/code-security/secure-coding/sarif-support-for-code-scanning)."' + ) + checkout_uri: Missing[str] = Field( + default=UNSET, + description="The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.", + ) + started_at: Missing[datetime] = Field( + default=UNSET, + description="The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) + tool_name: Missing[str] = Field( + default=UNSET, + description='The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`.', + ) + validate_: Missing[bool] = Field( + default=UNSET, + alias="validate", + description="Whether the SARIF file will be validated according to the code scanning specifications.\nThis parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning.", + ) + + +model_rebuild(ReposOwnerRepoCodeScanningSarifsPostBody) + +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0939.py b/githubkit/versions/v2022_11_28/models/group_0939.py index b51ea5c18..4f6d70305 100644 --- a/githubkit/versions/v2022_11_28/models/group_0939.py +++ b/githubkit/versions/v2022_11_28/models/group_0939.py @@ -9,49 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0078 import Codespace -class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - - state: Literal[ - "error", "failure", "inactive", "in_progress", "queued", "pending", "success" - ] = Field( - description="The state of the status. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub." - ) - target_url: Missing[str] = Field( - default=UNSET, - description="The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.", - ) - log_url: Missing[str] = Field( - default=UNSET, - description='The full URL of the deployment\'s output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `""`', - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description of the status. The maximum description length is 140 characters.", - ) - environment: Missing[str] = Field( - default=UNSET, - description="Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. If not defined, the environment of the previous status on the deployment will be used, if it exists. Otherwise, the environment of the deployment will be used.", - ) - environment_url: Missing[str] = Field( - default=UNSET, - description='Sets the URL for accessing your environment. Default: `""`', - ) - auto_inactive: Missing[bool] = Field( - default=UNSET, - description="Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true`", - ) - - -model_rebuild(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) - -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) + +class 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_0940.py b/githubkit/versions/v2022_11_28/models/group_0940.py index 019ffdc28..fcbf9ab7e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0940.py +++ b/githubkit/versions/v2022_11_28/models/group_0940.py @@ -9,39 +9,61 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild +from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoDispatchesPostBody(GitHubModel): - """ReposOwnerRepoDispatchesPostBody""" +class ReposOwnerRepoCodespacesPostBody(GitHubModel): + """ReposOwnerRepoCodespacesPostBody""" - event_type: str = Field( - min_length=1, - max_length=100, - description="A custom webhook event name. Must be 100 characters or fewer.", + ref: Missing[str] = Field( + default=UNSET, + description="Git ref (typically a branch name) for this codespace", ) - client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = Field( + location: Missing[str] = Field( default=UNSET, - description="JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10.", + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", + ) + client_ip: Missing[str] = Field( + default=UNSET, + description="IP for location auto-detection when proxying a request", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + multi_repo_permissions_opt_out: Missing[bool] = Field( + default=UNSET, + description="Whether to authorize requested permissions from devcontainer.json", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + retention_period_minutes: Missing[int] = Field( + default=UNSET, + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", ) -class ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): - """ReposOwnerRepoDispatchesPostBodyPropClientPayload - - JSON payload with extra information about the webhook event that your action or - workflow may use. The maximum number of top-level properties is 10. - """ - - -model_rebuild(ReposOwnerRepoDispatchesPostBody) -model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) +model_rebuild(ReposOwnerRepoCodespacesPostBody) -__all__ = ( - "ReposOwnerRepoDispatchesPostBody", - "ReposOwnerRepoDispatchesPostBodyPropClientPayload", -) +__all__ = ("ReposOwnerRepoCodespacesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0941.py b/githubkit/versions/v2022_11_28/models/group_0941.py index d17d4e337..94896c110 100644 --- a/githubkit/versions/v2022_11_28/models/group_0941.py +++ b/githubkit/versions/v2022_11_28/models/group_0941.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List from pydantic import Field @@ -17,53 +17,30 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0243 import DeploymentBranchPolicySettings - - -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" - - wait_timer: Missing[int] = Field( - default=UNSET, - description="The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).", - ) - prevent_self_review: Missing[bool] = Field( - default=UNSET, - description="Whether or not a user who created the job is prevented from approving their own job.", - ) - reviewers: Missing[ - Union[ - List[ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems], - None, - ] - ] = Field( - default=UNSET, - description="The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", - ) - deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( - Field( - default=UNSET, - description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", - ) - ) - - -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" - - type: Missing[Literal["User", "Team"]] = Field( - default=UNSET, description="The type of reviewer." - ) - id: Missing[int] = Field( - default=UNSET, - description="The id of the user or team who can review the deployment", - ) - - -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) + +class ReposOwnerRepoCodespacesDevcontainersGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" + + total_count: int = Field() + devcontainers: List[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems + ] = Field() + + +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems( + GitHubModel +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" + + path: str = Field() + name: Missing[str] = Field(default=UNSET) + display_name: Missing[str] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0942.py b/githubkit/versions/v2022_11_28/models/group_0942.py index 164fcd76f..962138324 100644 --- a/githubkit/versions/v2022_11_28/models/group_0942.py +++ b/githubkit/versions/v2022_11_28/models/group_0942.py @@ -9,51 +9,22 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0077 import CodespaceMachine -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - total_count: int = Field( - description="The number of deployment branch policies for the environment." - ) - branch_policies: List[DeploymentBranchPolicy] = Field() +class ReposOwnerRepoCodespacesMachinesGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" + total_count: int = Field() + machines: List[CodespaceMachine] = Field() -class DeploymentBranchPolicy(GitHubModel): - """Deployment branch policy - Details of a deployment branch or tag policy. - """ +model_rebuild(ReposOwnerRepoCodespacesMachinesGetResponse200) - id: Missing[int] = Field( - default=UNSET, description="The unique identifier of the branch or tag policy." - ) - node_id: Missing[str] = Field(default=UNSET) - name: Missing[str] = Field( - default=UNSET, - description="The name pattern that branches or tags must match in order to deploy to the environment.", - ) - type: Missing[Literal["branch", "tag"]] = Field( - default=UNSET, description="Whether this rule targets a branch or tag." - ) - - -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 -) -model_rebuild(DeploymentBranchPolicy) - -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", - "DeploymentBranchPolicy", -) +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0943.py b/githubkit/versions/v2022_11_28/models/group_0943.py index b159fbf0c..cbb5b1e1b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0943.py +++ b/githubkit/versions/v2022_11_28/models/group_0943.py @@ -9,28 +9,39 @@ from __future__ import annotations +from typing import Union + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0001 import SimpleUser + -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" +class ReposOwnerRepoCodespacesNewGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200""" - integration_id: Missing[int] = Field( - default=UNSET, - description="The ID of the custom app that will be enabled on the environment.", + billable_owner: Missing[SimpleUser] = Field( + default=UNSET, title="Simple User", description="A GitHub user." + ) + defaults: Missing[ReposOwnerRepoCodespacesNewGetResponse200PropDefaults] = Field( + default=UNSET ) -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody -) +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaults(GitHubModel): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" + + location: str = Field() + devcontainer_path: Union[str, None] = Field() + + +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesNewGetResponse200PropDefaults) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", + "ReposOwnerRepoCodespacesNewGetResponse200", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaults", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0944.py b/githubkit/versions/v2022_11_28/models/group_0944.py index 45d9971a7..e99811a75 100644 --- a/githubkit/versions/v2022_11_28/models/group_0944.py +++ b/githubkit/versions/v2022_11_28/models/group_0944.py @@ -10,36 +10,35 @@ from __future__ import annotations from typing import List +from datetime import datetime from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0249 import CustomDeploymentRuleApp +class ReposOwnerRepoCodespacesSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( - GitHubModel -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 + total_count: int = Field() + secrets: List[RepoCodespacesSecret] = Field() + + +class RepoCodespacesSecret(GitHubModel): + """Codespaces Secret + + Set repository secrets for GitHub Codespaces. """ - 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) + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild( - ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 -) +model_rebuild(ReposOwnerRepoCodespacesSecretsGetResponse200) +model_rebuild(RepoCodespacesSecret) __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", + "ReposOwnerRepoCodespacesSecretsGetResponse200", + "RepoCodespacesSecret", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0945.py b/githubkit/versions/v2022_11_28/models/group_0945.py index 62dbd17f1..ceb4366fc 100644 --- a/githubkit/versions/v2022_11_28/models/group_0945.py +++ b/githubkit/versions/v2022_11_28/models/group_0945.py @@ -9,22 +9,26 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0160 import ActionsSecret - -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" +class ReposOwnerRepoCodespacesSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" - total_count: int = Field() - secrets: List[ActionsSecret] = 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(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) +model_rebuild(ReposOwnerRepoCodespacesSecretsSecretNamePutBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0946.py b/githubkit/versions/v2022_11_28/models/group_0946.py index aec8c7a15..e02fc904b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0946.py +++ b/githubkit/versions/v2022_11_28/models/group_0946.py @@ -11,19 +11,20 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" +class ReposOwnerRepoCollaboratorsUsernamePutBody(GitHubModel): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - 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.", + 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.", ) - key_id: str = Field(description="ID of the key you used to encrypt the secret.") -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoCollaboratorsUsernamePutBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0947.py b/githubkit/versions/v2022_11_28/models/group_0947.py index 645f4f00c..75effd211 100644 --- a/githubkit/versions/v2022_11_28/models/group_0947.py +++ b/githubkit/versions/v2022_11_28/models/group_0947.py @@ -9,22 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0161 import ActionsVariable - -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" +class ReposOwnerRepoCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdPatchBody""" - total_count: int = Field() - variables: List[ActionsVariable] = Field() + body: str = Field(description="The contents of the comment") -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) +model_rebuild(ReposOwnerRepoCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0948.py b/githubkit/versions/v2022_11_28/models/group_0948.py index 376060834..496e2b84a 100644 --- a/githubkit/versions/v2022_11_28/models/group_0948.py +++ b/githubkit/versions/v2022_11_28/models/group_0948.py @@ -9,18 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" +class ReposOwnerRepoCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - name: str = Field(description="The name of the variable.") - value: str = Field(description="The value of the variable.") + 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(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) +model_rebuild(ReposOwnerRepoCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0949.py b/githubkit/versions/v2022_11_28/models/group_0949.py index 4bf82006d..7a8745468 100644 --- a/githubkit/versions/v2022_11_28/models/group_0949.py +++ b/githubkit/versions/v2022_11_28/models/group_0949.py @@ -16,13 +16,22 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody(GitHubModel): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBody(GitHubModel): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - name: Missing[str] = Field(default=UNSET, description="The name of the variable.") - value: Missing[str] = Field(default=UNSET, description="The value of the variable.") + body: str = Field(description="The contents of the comment.") + path: Missing[str] = Field( + default=UNSET, description="Relative path of the file to comment on." + ) + position: Missing[int] = Field( + default=UNSET, description="Line index in the diff to comment on." + ) + line: Missing[int] = Field( + default=UNSET, + description="**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.", + ) -model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody) +model_rebuild(ReposOwnerRepoCommitsCommitShaCommentsPostBody) -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0950.py b/githubkit/versions/v2022_11_28/models/group_0950.py index 0fe1a32f9..4aa5ba73b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0950.py +++ b/githubkit/versions/v2022_11_28/models/group_0950.py @@ -9,30 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0197 import CheckRun + -class ReposOwnerRepoForksPostBody(GitHubModel): - """ReposOwnerRepoForksPostBody""" +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200(GitHubModel): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" - 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.", - ) + total_count: int = Field() + check_runs: List[CheckRun] = Field() -model_rebuild(ReposOwnerRepoForksPostBody) +model_rebuild(ReposOwnerRepoCommitsRefCheckRunsGetResponse200) -__all__ = ("ReposOwnerRepoForksPostBody",) +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0951.py b/githubkit/versions/v2022_11_28/models/group_0951.py index 5ef2b62bc..ed215f98b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0951.py +++ b/githubkit/versions/v2022_11_28/models/group_0951.py @@ -16,16 +16,66 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitBlobsPostBody(GitHubModel): - """ReposOwnerRepoGitBlobsPostBody""" +class ReposOwnerRepoContentsPathPutBody(GitHubModel): + """ReposOwnerRepoContentsPathPutBody""" - content: str = Field(description="The new blob's content.") - encoding: Missing[str] = Field( + 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='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', + description="**Required if you are updating a file**. The blob SHA of the file being replaced.", ) + branch: Missing[str] = Field( + default=UNSET, + description="The branch name. Default: the repository’s default branch.", + ) + committer: Missing[ReposOwnerRepoContentsPathPutBodyPropCommitter] = Field( + default=UNSET, + description="The person that committed the file. Default: the authenticated user.", + ) + author: Missing[ReposOwnerRepoContentsPathPutBodyPropAuthor] = Field( + default=UNSET, + description="The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", + ) + + +class ReposOwnerRepoContentsPathPutBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropCommitter + + The person that committed the file. Default: the authenticated user. + """ + + name: str = Field( + description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + ) + email: str = Field( + description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + ) + date: Missing[str] = Field(default=UNSET) + + +class ReposOwnerRepoContentsPathPutBodyPropAuthor(GitHubModel): + """ReposOwnerRepoContentsPathPutBodyPropAuthor + + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. + """ + + name: str = Field( + description="The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + ) + email: str = Field( + description="The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + ) + date: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoGitBlobsPostBody) +model_rebuild(ReposOwnerRepoContentsPathPutBody) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathPutBodyPropAuthor) -__all__ = ("ReposOwnerRepoGitBlobsPostBody",) +__all__ = ( + "ReposOwnerRepoContentsPathPutBody", + "ReposOwnerRepoContentsPathPutBodyPropCommitter", + "ReposOwnerRepoContentsPathPutBodyPropAuthor", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0952.py b/githubkit/versions/v2022_11_28/models/group_0952.py index 56b388fb9..887992d4b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0952.py +++ b/githubkit/versions/v2022_11_28/models/group_0952.py @@ -9,9 +9,6 @@ from __future__ import annotations -from typing import List -from datetime import datetime - from pydantic import Field from githubkit.utils import UNSET @@ -19,53 +16,42 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitCommitsPostBody(GitHubModel): - """ReposOwnerRepoGitCommitsPostBody""" +class ReposOwnerRepoContentsPathDeleteBody(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBody""" - message: str = Field(description="The commit message") - tree: str = Field(description="The SHA of the tree object this commit points to") - parents: Missing[List[str]] = Field( - default=UNSET, - description="The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.", - ) - author: Missing[ReposOwnerRepoGitCommitsPostBodyPropAuthor] = Field( + 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="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.", + description="The branch name. Default: the repository’s default branch", ) - 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.", + committer: Missing[ReposOwnerRepoContentsPathDeleteBodyPropCommitter] = Field( + default=UNSET, description="object containing information about the committer." ) - 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.", + author: Missing[ReposOwnerRepoContentsPathDeleteBodyPropAuthor] = Field( + default=UNSET, description="object containing information about the author." ) -class ReposOwnerRepoGitCommitsPostBodyPropAuthor(GitHubModel): - """ReposOwnerRepoGitCommitsPostBodyPropAuthor +class ReposOwnerRepoContentsPathDeleteBodyPropCommitter(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - 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. + object containing information about the committer. """ - 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" + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" ) - date: Missing[datetime] = Field( + email: Missing[str] = Field( default=UNSET, - description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="The email of the author (or committer) of the commit", ) -class ReposOwnerRepoGitCommitsPostBodyPropCommitter(GitHubModel): - """ReposOwnerRepoGitCommitsPostBodyPropCommitter +class ReposOwnerRepoContentsPathDeleteBodyPropAuthor(GitHubModel): + """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - 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. + object containing information about the author. """ name: Missing[str] = Field( @@ -75,18 +61,14 @@ class ReposOwnerRepoGitCommitsPostBodyPropCommitter(GitHubModel): default=UNSET, description="The email of the author (or committer) of the commit", ) - date: Missing[datetime] = Field( - default=UNSET, - description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) -model_rebuild(ReposOwnerRepoGitCommitsPostBody) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) -model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathDeleteBody) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropCommitter) +model_rebuild(ReposOwnerRepoContentsPathDeleteBodyPropAuthor) __all__ = ( - "ReposOwnerRepoGitCommitsPostBody", - "ReposOwnerRepoGitCommitsPostBodyPropAuthor", - "ReposOwnerRepoGitCommitsPostBodyPropCommitter", + "ReposOwnerRepoContentsPathDeleteBody", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitter", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthor", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0953.py b/githubkit/versions/v2022_11_28/models/group_0953.py index e02988ad3..d872bec34 100644 --- a/githubkit/versions/v2022_11_28/models/group_0953.py +++ b/githubkit/versions/v2022_11_28/models/group_0953.py @@ -9,20 +9,36 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitRefsPostBody(GitHubModel): - """ReposOwnerRepoGitRefsPostBody""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - 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." + 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.", ) - sha: str = Field(description="The SHA1 value for this reference.") -model_rebuild(ReposOwnerRepoGitRefsPostBody) +model_rebuild(ReposOwnerRepoDependabotAlertsAlertNumberPatchBody) -__all__ = ("ReposOwnerRepoGitRefsPostBody",) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0954.py b/githubkit/versions/v2022_11_28/models/group_0954.py index 457380b7b..6b696bdc7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0954.py +++ b/githubkit/versions/v2022_11_28/models/group_0954.py @@ -9,23 +9,36 @@ from __future__ import annotations +from typing import List +from datetime import datetime + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): - """ReposOwnerRepoGitRefsRefPatchBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoDependabotSecretsGetResponse200""" + + total_count: int = Field() + secrets: List[DependabotSecret] = Field() + + +class DependabotSecret(GitHubModel): + """Dependabot Secret + + Set secrets for Dependabot. + """ - 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.", - ) + name: str = Field(description="The name of the secret.") + created_at: datetime = Field() + updated_at: datetime = Field() -model_rebuild(ReposOwnerRepoGitRefsRefPatchBody) +model_rebuild(ReposOwnerRepoDependabotSecretsGetResponse200) +model_rebuild(DependabotSecret) -__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) +__all__ = ( + "ReposOwnerRepoDependabotSecretsGetResponse200", + "DependabotSecret", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0955.py b/githubkit/versions/v2022_11_28/models/group_0955.py index 74d3527c4..438319910 100644 --- a/githubkit/versions/v2022_11_28/models/group_0955.py +++ b/githubkit/versions/v2022_11_28/models/group_0955.py @@ -9,9 +9,6 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime - from pydantic import Field from githubkit.utils import UNSET @@ -19,43 +16,19 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitTagsPostBody(GitHubModel): - """ReposOwnerRepoGitTagsPostBody""" +class ReposOwnerRepoDependabotSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - 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( + 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="An object with information about the individual creating the tag.", + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/dependabot/secrets#get-a-repository-public-key) endpoint.", ) - - -class ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): - """ReposOwnerRepoGitTagsPostBodyPropTagger - - An object with information about the individual creating the tag. - """ - - name: str = Field(description="The name of the author of the tag") - email: str = Field(description="The email of the author of the tag") - date: Missing[datetime] = Field( - default=UNSET, - description="When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + key_id: Missing[str] = Field( + default=UNSET, description="ID of the key you used to encrypt the secret." ) -model_rebuild(ReposOwnerRepoGitTagsPostBody) -model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) +model_rebuild(ReposOwnerRepoDependabotSecretsSecretNamePutBody) -__all__ = ( - "ReposOwnerRepoGitTagsPostBody", - "ReposOwnerRepoGitTagsPostBodyPropTagger", -) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0956.py b/githubkit/versions/v2022_11_28/models/group_0956.py index 43ce478ab..d8abaeb32 100644 --- a/githubkit/versions/v2022_11_28/models/group_0956.py +++ b/githubkit/versions/v2022_11_28/models/group_0956.py @@ -9,54 +9,24 @@ from __future__ import annotations -from typing import List, Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoGitTreesPostBody(GitHubModel): - """ReposOwnerRepoGitTreesPostBody""" - - tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( - description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." - ) - base_tree: Missing[str] = Field( - default=UNSET, - description="The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.\n", - ) - +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201(GitHubModel): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" -class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - - path: Missing[str] = Field( - default=UNSET, description="The file referenced in the tree." - ) - mode: Missing[Literal["100644", "100755", "040000", "160000", "120000"]] = Field( - default=UNSET, - description="The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.", - ) - type: Missing[Literal["blob", "tree", "commit"]] = Field( - default=UNSET, description="Either `blob`, `tree`, or `commit`." - ) - sha: Missing[Union[str, None]] = Field( - default=UNSET, - description="The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + 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.' ) - content: Missing[str] = Field( - default=UNSET, - description="The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + message: str = Field( + description="A message providing further details about the result, such as why the dependencies were not updated." ) -model_rebuild(ReposOwnerRepoGitTreesPostBody) -model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) +model_rebuild(ReposOwnerRepoDependencyGraphSnapshotsPostResponse201) -__all__ = ( - "ReposOwnerRepoGitTreesPostBody", - "ReposOwnerRepoGitTreesPostBodyPropTreeItems", -) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201",) diff --git a/githubkit/versions/v2022_11_28/models/group_0957.py b/githubkit/versions/v2022_11_28/models/group_0957.py index b31d4a3e7..6b4363613 100644 --- a/githubkit/versions/v2022_11_28/models/group_0957.py +++ b/githubkit/versions/v2022_11_28/models/group_0957.py @@ -15,54 +15,55 @@ from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class ReposOwnerRepoHooksPostBody(GitHubModel): - """ReposOwnerRepoHooksPostBody""" +class ReposOwnerRepoDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsPostBody""" - name: Missing[str] = Field( + ref: str = Field( + description="The ref to deploy. This can be a branch, tag, or SHA." + ) + task: Missing[str] = Field( default=UNSET, - description="Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.", + description="Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).", ) - config: Missing[ReposOwnerRepoHooksPostBodyPropConfig] = Field( + auto_merge: Missing[bool] = Field( default=UNSET, - description="Key/value pairs to provide settings for this webhook.", + description="Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.", ) - events: Missing[List[str]] = Field( + required_contexts: Missing[List[str]] = Field( default=UNSET, - description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.", + 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) ) - active: Missing[bool] = Field( + environment: Missing[str] = Field( default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + description="Name for the target deployment environment (e.g., `production`, `staging`, `qa`).", ) - - -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." + description: Missing[Union[str, None]] = Field( + default=UNSET, description="Short description of the deployment." ) - content_type: Missing[str] = Field( + transient_environment: Missing[bool] = Field( default=UNSET, - description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + description="Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`", ) - secret: Missing[str] = Field( + production_environment: 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="Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksPostBody) -model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) +class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0(ExtraGitHubModel): + """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" + + +model_rebuild(ReposOwnerRepoDeploymentsPostBody) +model_rebuild(ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0) __all__ = ( - "ReposOwnerRepoHooksPostBody", - "ReposOwnerRepoHooksPostBodyPropConfig", + "ReposOwnerRepoDeploymentsPostBody", + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0958.py b/githubkit/versions/v2022_11_28/models/group_0958.py index 0a1447fc8..8fe47fba1 100644 --- a/githubkit/versions/v2022_11_28/models/group_0958.py +++ b/githubkit/versions/v2022_11_28/models/group_0958.py @@ -9,43 +9,19 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0007 import WebhookConfig - - -class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdPatchBody""" - - config: Missing[WebhookConfig] = Field( - default=UNSET, - title="Webhook Configuration", - description="Configuration object of the webhook", - ) - events: Missing[List[str]] = Field( - default=UNSET, - description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.", - ) - add_events: Missing[List[str]] = Field( - default=UNSET, - description="Determines a list of events to be added to the list of events that the Hook triggers for.", - ) - remove_events: Missing[List[str]] = Field( - default=UNSET, - description="Determines a list of events to be removed from the list of events that the Hook triggers for.", - ) - active: Missing[bool] = Field( - default=UNSET, - description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - ) - - -model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) - -__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) + +class ReposOwnerRepoDeploymentsPostResponse202(GitHubModel): + """ReposOwnerRepoDeploymentsPostResponse202""" + + message: Missing[str] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoDeploymentsPostResponse202) + +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_0959.py b/githubkit/versions/v2022_11_28/models/group_0959.py index b307ef298..b51ea5c18 100644 --- a/githubkit/versions/v2022_11_28/models/group_0959.py +++ b/githubkit/versions/v2022_11_28/models/group_0959.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import Literal from pydantic import Field @@ -18,23 +18,40 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody(GitHubModel): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - url: Missing[str] = Field( - default=UNSET, description="The URL to which the payloads will be delivered." + 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." ) - content_type: Missing[str] = Field( + target_url: 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="The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.", ) - secret: Missing[str] = Field( + log_url: Missing[str] = Field( default=UNSET, - description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + description='The 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`", ) - insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) +model_rebuild(ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody) -__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0960.py b/githubkit/versions/v2022_11_28/models/group_0960.py index 9ec5ec399..019ffdc28 100644 --- a/githubkit/versions/v2022_11_28/models/group_0960.py +++ b/githubkit/versions/v2022_11_28/models/group_0960.py @@ -9,37 +9,39 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing -from githubkit.compat import GitHubModel, model_rebuild +from githubkit.compat import GitHubModel, ExtraGitHubModel, model_rebuild -class ReposOwnerRepoImportPutBody(GitHubModel): - """ReposOwnerRepoImportPutBody""" +class ReposOwnerRepoDispatchesPostBody(GitHubModel): + """ReposOwnerRepoDispatchesPostBody""" - 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.", + event_type: str = Field( + min_length=1, + max_length=100, + description="A custom webhook event name. Must be 100 characters or fewer.", ) - vcs_username: Missing[str] = Field( + client_payload: Missing[ReposOwnerRepoDispatchesPostBodyPropClientPayload] = Field( default=UNSET, - description="If authentication is required, the username to provide to `vcs_url`.", - ) - vcs_password: Missing[str] = Field( - default=UNSET, - description="If authentication is required, the password to provide to `vcs_url`.", - ) - tfvc_project: Missing[str] = Field( - default=UNSET, - description="For a tfvc import, the name of the project that is being imported.", + 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.", ) -model_rebuild(ReposOwnerRepoImportPutBody) +class ReposOwnerRepoDispatchesPostBodyPropClientPayload(ExtraGitHubModel): + """ReposOwnerRepoDispatchesPostBodyPropClientPayload + + JSON payload with extra information about the webhook event that your action or + workflow may use. The maximum number of top-level properties is 10. + """ + + +model_rebuild(ReposOwnerRepoDispatchesPostBody) +model_rebuild(ReposOwnerRepoDispatchesPostBodyPropClientPayload) -__all__ = ("ReposOwnerRepoImportPutBody",) +__all__ = ( + "ReposOwnerRepoDispatchesPostBody", + "ReposOwnerRepoDispatchesPostBodyPropClientPayload", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0961.py b/githubkit/versions/v2022_11_28/models/group_0961.py index c2aa14687..645c9cbd8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0961.py +++ b/githubkit/versions/v2022_11_28/models/group_0961.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from pydantic import Field @@ -17,28 +17,53 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0248 import DeploymentBranchPolicySettings -class ReposOwnerRepoImportPatchBody(GitHubModel): - """ReposOwnerRepoImportPatchBody""" - vcs_username: Missing[str] = Field( +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + + wait_timer: Missing[int] = Field( default=UNSET, - description="The username to provide to the originating repository.", + 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).", ) - vcs_password: Missing[str] = Field( + prevent_self_review: Missing[bool] = Field( default=UNSET, - description="The password to provide to the originating repository.", + description="Whether or not a user who created the job is prevented from approving their own job.", ) - vcs: Missing[Literal["subversion", "tfvc", "git", "mercurial"]] = Field( + reviewers: Missing[ + Union[ + List[ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems], + None, + ] + ] = Field( default=UNSET, - description="The type of version control system you are migrating from.", + description="The people or teams that may review jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.", + ) + deployment_branch_policy: Missing[Union[DeploymentBranchPolicySettings, None]] = ( + Field( + default=UNSET, + description="The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.", + ) + ) + + +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + + type: Missing[Literal["User", "Team"]] = Field( + default=UNSET, description="The type of reviewer." ) - tfvc_project: Missing[str] = Field( + id: Missing[int] = Field( default=UNSET, - description="For a tfvc import, the name of the project that is being imported.", + description="The id of the user or team who can review the deployment", ) -model_rebuild(ReposOwnerRepoImportPatchBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems) -__all__ = ("ReposOwnerRepoImportPatchBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBody", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0962.py b/githubkit/versions/v2022_11_28/models/group_0962.py index c5a5b2258..164fcd76f 100644 --- a/githubkit/versions/v2022_11_28/models/group_0962.py +++ b/githubkit/versions/v2022_11_28/models/group_0962.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,42 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" + + total_count: int = Field( + description="The number of deployment branch policies for the environment." + ) + branch_policies: List[DeploymentBranchPolicy] = Field() + + +class DeploymentBranchPolicy(GitHubModel): + """Deployment branch policy + + Details of a deployment branch or tag policy. + """ - email: Missing[str] = Field(default=UNSET, description="The new Git author email.") - name: Missing[str] = Field(default=UNSET, description="The new Git author name.") + id: Missing[int] = Field( + default=UNSET, description="The unique identifier of the branch or tag policy." + ) + node_id: Missing[str] = Field(default=UNSET) + name: Missing[str] = Field( + default=UNSET, + description="The name pattern that branches or tags must match in order to deploy to the environment.", + ) + type: Missing[Literal["branch", "tag"]] = Field( + default=UNSET, description="Whether this rule targets a branch or tag." + ) -model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200 +) +model_rebuild(DeploymentBranchPolicy) -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200", + "DeploymentBranchPolicy", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0963.py b/githubkit/versions/v2022_11_28/models/group_0963.py index 7727d20f6..b159fbf0c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0963.py +++ b/githubkit/versions/v2022_11_28/models/group_0963.py @@ -9,21 +9,28 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoImportLfsPatchBody(GitHubModel): - """ReposOwnerRepoImportLfsPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - 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." + integration_id: Missing[int] = Field( + default=UNSET, + description="The ID of the custom app that will be enabled on the environment.", ) -model_rebuild(ReposOwnerRepoImportLfsPatchBody) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody +) -__all__ = ("ReposOwnerRepoImportLfsPatchBody",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0964.py b/githubkit/versions/v2022_11_28/models/group_0964.py index 759975570..134b41b74 100644 --- a/githubkit/versions/v2022_11_28/models/group_0964.py +++ b/githubkit/versions/v2022_11_28/models/group_0964.py @@ -9,13 +9,37 @@ from __future__ import annotations +from typing import List + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0254 import CustomDeploymentRuleApp + + +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200( + GitHubModel +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" + total_count: Missing[int] = Field( + default=UNSET, + description="The total number of custom deployment protection rule integrations available for this environment.", + ) + available_custom_deployment_protection_rule_integrations: Missing[ + List[CustomDeploymentRuleApp] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) +model_rebuild( + ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200 +) -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0965.py b/githubkit/versions/v2022_11_28/models/group_0965.py index d06271828..03ddf4d4d 100644 --- a/githubkit/versions/v2022_11_28/models/group_0965.py +++ b/githubkit/versions/v2022_11_28/models/group_0965.py @@ -9,26 +9,22 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0165 import ActionsSecret -class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - permissions: Missing[Literal["read", "write", "maintain", "triage", "admin"]] = ( - Field( - default=UNSET, - description="The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.", - ) - ) +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + total_count: int = Field() + secrets: List[ActionsSecret] = Field() -model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0966.py b/githubkit/versions/v2022_11_28/models/group_0966.py index e40165dc9..aec8c7a15 100644 --- a/githubkit/versions/v2022_11_28/models/group_0966.py +++ b/githubkit/versions/v2022_11_28/models/group_0966.py @@ -9,50 +9,21 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesPostBody(GitHubModel): - """ReposOwnerRepoIssuesPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - title: Union[str, int] = Field(description="The title of the issue.") - body: Missing[str] = Field(default=UNSET, description="The contents of the issue.") - assignee: Missing[Union[str, None]] = Field( - default=UNSET, - description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_", - ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - List[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1]] - ] = Field( - default=UNSET, - description="Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", - ) - assignees: Missing[List[str]] = Field( - default=UNSET, - description="Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", + 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 ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1(GitHubModel): - """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" - - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) - - -model_rebuild(ReposOwnerRepoIssuesPostBody) -model_rebuild(ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody) -__all__ = ( - "ReposOwnerRepoIssuesPostBody", - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0967.py b/githubkit/versions/v2022_11_28/models/group_0967.py index 2e91230e7..02bd96dc7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0967.py +++ b/githubkit/versions/v2022_11_28/models/group_0967.py @@ -9,17 +9,22 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild +from .group_0166 import ActionsVariable + -class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" - body: str = Field(description="The contents of the comment.") + total_count: int = Field() + variables: List[ActionsVariable] = Field() -model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200) -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_0968.py b/githubkit/versions/v2022_11_28/models/group_0968.py index 429ace692..376060834 100644 --- a/githubkit/versions/v2022_11_28/models/group_0968.py +++ b/githubkit/versions/v2022_11_28/models/group_0968.py @@ -9,23 +9,18 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" - 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." - ) + name: str = Field(description="The name of the variable.") + value: str = Field(description="The value of the variable.") -model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody) -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0969.py b/githubkit/versions/v2022_11_28/models/group_0969.py index f4cf48489..4bf82006d 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 List, Union, Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,54 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" - - title: Missing[Union[str, int, None]] = Field( - default=UNSET, description="The title of the issue." - ) - body: Missing[Union[str, None]] = Field( - default=UNSET, description="The contents of the issue." - ) - assignee: Missing[Union[str, None]] = Field( - default=UNSET, - description="Username to assign to this issue. **This field is deprecated.**", - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, description="The open or closed state of the issue." - ) - state_reason: Missing[ - Union[None, Literal["completed", "not_planned", "reopened"]] - ] = Field( - default=UNSET, - description="The reason for the state change. Ignored unless `state` is changed.", - ) - milestone: Missing[Union[str, int, None]] = Field(default=UNSET) - labels: Missing[ - List[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] - ] = Field( - default=UNSET, - description="Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped.", - ) - assignees: Missing[List[str]] = Field( - default=UNSET, - description="Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped.", - ) - - -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody(GitHubModel): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" - id: Missing[int] = Field(default=UNSET) - name: Missing[str] = Field(default=UNSET) - description: Missing[Union[str, None]] = Field(default=UNSET) - color: Missing[Union[str, None]] = Field(default=UNSET) + name: Missing[str] = Field(default=UNSET, description="The name of the variable.") + value: Missing[str] = Field(default=UNSET, description="The value of the variable.") -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBody) -model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1) +model_rebuild(ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody) -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBody", - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0970.py b/githubkit/versions/v2022_11_28/models/group_0970.py index e809e4006..0fe1a32f9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0970.py +++ b/githubkit/versions/v2022_11_28/models/group_0970.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,15 +16,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" +class ReposOwnerRepoForksPostBody(GitHubModel): + """ReposOwnerRepoForksPostBody""" - assignees: Missing[List[str]] = Field( + organization: Missing[str] = Field( + default=UNSET, + description="Optional parameter to specify the organization name if forking into an organization.", + ) + name: Missing[str] = Field( + default=UNSET, + description="When forking from an existing repository, a new name for the fork.", + ) + default_branch_only: Missing[bool] = Field( default=UNSET, - description="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="When forking from an existing repository, fork with only the default branch.", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) +model_rebuild(ReposOwnerRepoForksPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) +__all__ = ("ReposOwnerRepoForksPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0971.py b/githubkit/versions/v2022_11_28/models/group_0971.py index 5d857cf8c..5ef2b62bc 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 List - from pydantic import Field from githubkit.utils import UNSET @@ -18,15 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoGitBlobsPostBody(GitHubModel): + """ReposOwnerRepoGitBlobsPostBody""" - assignees: Missing[List[str]] = Field( + content: str = Field(description="The new blob's content.") + encoding: Missing[str] = Field( default=UNSET, - description="Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", + description='The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported.', ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) +model_rebuild(ReposOwnerRepoGitBlobsPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) +__all__ = ("ReposOwnerRepoGitBlobsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0972.py b/githubkit/versions/v2022_11_28/models/group_0972.py index 49a6d6da0..56b388fb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0972.py +++ b/githubkit/versions/v2022_11_28/models/group_0972.py @@ -9,17 +9,84 @@ from __future__ import annotations +from typing import List +from datetime import datetime + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" +class ReposOwnerRepoGitCommitsPostBody(GitHubModel): + """ReposOwnerRepoGitCommitsPostBody""" + + message: str = Field(description="The commit message") + tree: str = Field(description="The SHA of the tree object this commit points to") + parents: Missing[List[str]] = Field( + default=UNSET, + description="The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.", + ) + author: Missing[ReposOwnerRepoGitCommitsPostBodyPropAuthor] = Field( + default=UNSET, + description="Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.", + ) + committer: Missing[ReposOwnerRepoGitCommitsPostBodyPropCommitter] = Field( + default=UNSET, + description="Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.", + ) + signature: Missing[str] = Field( + default=UNSET, + description="The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.", + ) + + +class ReposOwnerRepoGitCommitsPostBodyPropAuthor(GitHubModel): + """ReposOwnerRepoGitCommitsPostBodyPropAuthor + + Information about the author of the commit. By default, the `author` will be the + authenticated user and the current date. See the `author` and `committer` object + below for details. + """ + + 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. + """ - body: str = Field(description="The contents of the comment.") + name: Missing[str] = Field( + default=UNSET, description="The name of the author (or committer) of the commit" + ) + email: Missing[str] = Field( + default=UNSET, + description="The email of the author (or committer) of the commit", + ) + date: Missing[datetime] = Field( + default=UNSET, + description="Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBody) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropAuthor) +model_rebuild(ReposOwnerRepoGitCommitsPostBodyPropCommitter) -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) +__all__ = ( + "ReposOwnerRepoGitCommitsPostBody", + "ReposOwnerRepoGitCommitsPostBodyPropAuthor", + "ReposOwnerRepoGitCommitsPostBodyPropCommitter", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0973.py b/githubkit/versions/v2022_11_28/models/group_0973.py index bb9a1cd53..e02988ad3 100644 --- a/githubkit/versions/v2022_11_28/models/group_0973.py +++ b/githubkit/versions/v2022_11_28/models/group_0973.py @@ -9,25 +9,20 @@ from __future__ import annotations -from typing import List - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" +class ReposOwnerRepoGitRefsPostBody(GitHubModel): + """ReposOwnerRepoGitRefsPostBody""" - labels: Missing[List[str]] = Field( - min_length=1, - default=UNSET, - description='The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also add labels to the existing labels for an issue. For more information, see "[Add labels to an issue](https://docs.github.com/rest/issues/labels#add-labels-to-an-issue)."', + 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(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) +model_rebuild(ReposOwnerRepoGitRefsPostBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) +__all__ = ("ReposOwnerRepoGitRefsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0974.py b/githubkit/versions/v2022_11_28/models/group_0974.py index 0ed7e108e..457380b7b 100644 --- a/githubkit/versions/v2022_11_28/models/group_0974.py +++ b/githubkit/versions/v2022_11_28/models/group_0974.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,24 +16,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" - - labels: Missing[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] - ] = Field(min_length=1, default=UNSET) - - -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" +class ReposOwnerRepoGitRefsRefPatchBody(GitHubModel): + """ReposOwnerRepoGitRefsRefPatchBody""" - name: str = Field() + sha: str = Field(description="The SHA1 value to set this reference to") + force: Missing[bool] = Field( + default=UNSET, + description="Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.", + ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) +model_rebuild(ReposOwnerRepoGitRefsRefPatchBody) -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", -) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0975.py b/githubkit/versions/v2022_11_28/models/group_0975.py index d59513ace..74d3527c4 100644 --- a/githubkit/versions/v2022_11_28/models/group_0975.py +++ b/githubkit/versions/v2022_11_28/models/group_0975.py @@ -9,17 +9,53 @@ from __future__ import annotations +from typing import Literal +from datetime import datetime + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" +class ReposOwnerRepoGitTagsPostBody(GitHubModel): + """ReposOwnerRepoGitTagsPostBody""" + + tag: str = Field( + description='The tag\'s name. This is typically a version (e.g., "v0.0.1").' + ) + message: str = Field(description="The tag message.") + object_: str = Field( + alias="object", description="The SHA of the git object this is tagging." + ) + type: Literal["commit", "tree", "blob"] = Field( + description="The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`." + ) + tagger: Missing[ReposOwnerRepoGitTagsPostBodyPropTagger] = Field( + default=UNSET, + description="An object with information about the individual creating the tag.", + ) + + +class ReposOwnerRepoGitTagsPostBodyPropTagger(GitHubModel): + """ReposOwnerRepoGitTagsPostBodyPropTagger + + An object with information about the individual creating the tag. + """ - name: str = Field() + name: str = Field(description="The name of the author of the tag") + email: str = Field(description="The email of the author of the tag") + date: Missing[datetime] = Field( + default=UNSET, + description="When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) +model_rebuild(ReposOwnerRepoGitTagsPostBody) +model_rebuild(ReposOwnerRepoGitTagsPostBodyPropTagger) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) +__all__ = ( + "ReposOwnerRepoGitTagsPostBody", + "ReposOwnerRepoGitTagsPostBodyPropTagger", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0976.py b/githubkit/versions/v2022_11_28/models/group_0976.py index 36033eda7..43ce478ab 100644 --- a/githubkit/versions/v2022_11_28/models/group_0976.py +++ b/githubkit/versions/v2022_11_28/models/group_0976.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import List, Union, Literal from pydantic import Field @@ -18,16 +18,45 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoGitTreesPostBody(GitHubModel): + """ReposOwnerRepoGitTreesPostBody""" - labels: Missing[List[str]] = Field( - min_length=1, + tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItems] = Field( + description="Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure." + ) + base_tree: Missing[str] = Field( + default=UNSET, + description="The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by `base_tree` and entries defined in the `tree` parameter. Entries defined in the `tree` parameter will overwrite items from `base_tree` with the same `path`. If you're creating new changes on a branch, then normally you'd set `base_tree` to the SHA1 of the Git tree object of the current latest commit on the branch you're working on.\nIf not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit.\n", + ) + + +class ReposOwnerRepoGitTreesPostBodyPropTreeItems(GitHubModel): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" + + path: Missing[str] = Field( + default=UNSET, description="The file referenced in the tree." + ) + mode: Missing[Literal["100644", "100755", "040000", "160000", "120000"]] = Field( + default=UNSET, + description="The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.", + ) + type: Missing[Literal["blob", "tree", "commit"]] = Field( + default=UNSET, description="Either `blob`, `tree`, or `commit`." + ) + sha: Missing[Union[str, None]] = Field( + default=UNSET, + description="The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + ) + content: Missing[str] = Field( default=UNSET, - description='The names of the labels to add to the issue\'s existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. You can also replace all of the labels for an issue. For more information, see "[Set labels for an issue](https://docs.github.com/rest/issues/labels#set-labels-for-an-issue)."', + description="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(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) +model_rebuild(ReposOwnerRepoGitTreesPostBody) +model_rebuild(ReposOwnerRepoGitTreesPostBodyPropTreeItems) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) +__all__ = ( + "ReposOwnerRepoGitTreesPostBody", + "ReposOwnerRepoGitTreesPostBodyPropTreeItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0977.py b/githubkit/versions/v2022_11_28/models/group_0977.py index 0d0e29232..b31d4a3e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0977.py +++ b/githubkit/versions/v2022_11_28/models/group_0977.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import List, Union from pydantic import Field @@ -18,24 +18,51 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" - - labels: Missing[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] - ] = Field(min_length=1, default=UNSET) - - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" - - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) +class ReposOwnerRepoHooksPostBody(GitHubModel): + """ReposOwnerRepoHooksPostBody""" + + name: Missing[str] = Field( + default=UNSET, + description="Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.", + ) + config: Missing[ReposOwnerRepoHooksPostBodyPropConfig] = Field( + default=UNSET, + description="Key/value pairs to provide settings for this webhook.", + ) + events: Missing[List[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.", + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) + + +class ReposOwnerRepoHooksPostBodyPropConfig(GitHubModel): + """ReposOwnerRepoHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: Missing[str] = Field( + default=UNSET, description="The URL to which the payloads will be delivered." + ) + content_type: Missing[str] = Field( + default=UNSET, + description="The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + ) + secret: Missing[str] = Field( + default=UNSET, + description="If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + ) + insecure_ssl: Missing[Union[str, float]] = Field(default=UNSET) + + +model_rebuild(ReposOwnerRepoHooksPostBody) +model_rebuild(ReposOwnerRepoHooksPostBodyPropConfig) __all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", + "ReposOwnerRepoHooksPostBody", + "ReposOwnerRepoHooksPostBodyPropConfig", ) diff --git a/githubkit/versions/v2022_11_28/models/group_0978.py b/githubkit/versions/v2022_11_28/models/group_0978.py index dfb903bb9..0a1447fc8 100644 --- a/githubkit/versions/v2022_11_28/models/group_0978.py +++ b/githubkit/versions/v2022_11_28/models/group_0978.py @@ -9,17 +9,43 @@ from __future__ import annotations +from typing import List + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild - -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - - name: str = Field() - - -model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) - -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) +from .group_0007 import WebhookConfig + + +class ReposOwnerRepoHooksHookIdPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdPatchBody""" + + config: Missing[WebhookConfig] = Field( + default=UNSET, + title="Webhook Configuration", + description="Configuration object of the webhook", + ) + events: Missing[List[str]] = Field( + default=UNSET, + description="Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.", + ) + add_events: Missing[List[str]] = Field( + default=UNSET, + description="Determines a list of events to be added to the list of events that the Hook triggers for.", + ) + remove_events: Missing[List[str]] = Field( + default=UNSET, + description="Determines a list of events to be removed from the list of events that the Hook triggers for.", + ) + active: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + ) + + +model_rebuild(ReposOwnerRepoHooksHookIdPatchBody) + +__all__ = ("ReposOwnerRepoHooksHookIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0979.py b/githubkit/versions/v2022_11_28/models/group_0979.py index 5769fdef9..b307ef298 100644 --- a/githubkit/versions/v2022_11_28/models/group_0979.py +++ b/githubkit/versions/v2022_11_28/models/group_0979.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union from pydantic import Field @@ -18,17 +18,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" +class ReposOwnerRepoHooksHookIdConfigPatchBody(GitHubModel): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - 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`", - ) + 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(ReposOwnerRepoIssuesIssueNumberLockPutBody) +model_rebuild(ReposOwnerRepoHooksHookIdConfigPatchBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0980.py b/githubkit/versions/v2022_11_28/models/group_0980.py index 4d12ca0e6..9ec5ec399 100644 --- a/githubkit/versions/v2022_11_28/models/group_0980.py +++ b/githubkit/versions/v2022_11_28/models/group_0980.py @@ -13,19 +13,33 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoImportPutBody(GitHubModel): + """ReposOwnerRepoImportPutBody""" - 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." + vcs_url: str = Field(description="The URL of the originating repository.") + vcs: Missing[Literal["subversion", "git", "mercurial", "tfvc"]] = Field( + default=UNSET, + description="The originating VCS type. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response.", + ) + vcs_username: Missing[str] = Field( + default=UNSET, + description="If authentication is required, the username to provide to `vcs_url`.", + ) + vcs_password: Missing[str] = Field( + default=UNSET, + description="If authentication is required, the password to provide to `vcs_url`.", + ) + tfvc_project: Missing[str] = Field( + default=UNSET, + description="For a tfvc import, the name of the project that is being imported.", ) -model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) +model_rebuild(ReposOwnerRepoImportPutBody) -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) +__all__ = ("ReposOwnerRepoImportPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0981.py b/githubkit/versions/v2022_11_28/models/group_0981.py index 22c941a84..c2aa14687 100644 --- a/githubkit/versions/v2022_11_28/models/group_0981.py +++ b/githubkit/versions/v2022_11_28/models/group_0981.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,17 +18,27 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoKeysPostBody(GitHubModel): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoImportPatchBody(GitHubModel): + """ReposOwnerRepoImportPatchBody""" - 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( + 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='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="For a tfvc import, the name of the project that is being imported.", ) -model_rebuild(ReposOwnerRepoKeysPostBody) +model_rebuild(ReposOwnerRepoImportPatchBody) -__all__ = ("ReposOwnerRepoKeysPostBody",) +__all__ = ("ReposOwnerRepoImportPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0982.py b/githubkit/versions/v2022_11_28/models/group_0982.py index c9c52cd3c..c5a5b2258 100644 --- a/githubkit/versions/v2022_11_28/models/group_0982.py +++ b/githubkit/versions/v2022_11_28/models/group_0982.py @@ -16,22 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoLabelsPostBody(GitHubModel): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBody(GitHubModel): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - name: str = Field( - description='The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."' - ) - color: Missing[str] = Field( - default=UNSET, - description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", - ) - description: Missing[str] = Field( - default=UNSET, - description="A short description of the label. Must be 100 characters or fewer.", - ) + 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(ReposOwnerRepoLabelsPostBody) +model_rebuild(ReposOwnerRepoImportAuthorsAuthorIdPatchBody) -__all__ = ("ReposOwnerRepoLabelsPostBody",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0983.py b/githubkit/versions/v2022_11_28/models/group_0983.py index 99482c11e..7727d20f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_0983.py +++ b/githubkit/versions/v2022_11_28/models/group_0983.py @@ -9,30 +9,21 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): - """ReposOwnerRepoLabelsNamePatchBody""" +class ReposOwnerRepoImportLfsPatchBody(GitHubModel): + """ReposOwnerRepoImportLfsPatchBody""" - 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.", + 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(ReposOwnerRepoLabelsNamePatchBody) +model_rebuild(ReposOwnerRepoImportLfsPatchBody) -__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) +__all__ = ("ReposOwnerRepoImportLfsPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0984.py b/githubkit/versions/v2022_11_28/models/group_0984.py index 7be32859a..759975570 100644 --- a/githubkit/versions/v2022_11_28/models/group_0984.py +++ b/githubkit/versions/v2022_11_28/models/group_0984.py @@ -9,19 +9,13 @@ from __future__ import annotations -from pydantic import Field - from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): - """ReposOwnerRepoMergeUpstreamPostBody""" - - branch: str = Field( - description="The name of the branch which should be updated to match upstream." - ) +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1(GitHubModel): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" -model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) +model_rebuild(ReposOwnerRepoInteractionLimitsGetResponse200Anyof1) -__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_0985.py b/githubkit/versions/v2022_11_28/models/group_0985.py index 052d6bba0..d06271828 100644 --- a/githubkit/versions/v2022_11_28/models/group_0985.py +++ b/githubkit/versions/v2022_11_28/models/group_0985.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,21 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoMergesPostBody(GitHubModel): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoInvitationsInvitationIdPatchBody(GitHubModel): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - 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.", + 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(ReposOwnerRepoMergesPostBody) +model_rebuild(ReposOwnerRepoInvitationsInvitationIdPatchBody) -__all__ = ("ReposOwnerRepoMergesPostBody",) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0986.py b/githubkit/versions/v2022_11_28/models/group_0986.py index 4db27f8af..e40165dc9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0986.py +++ b/githubkit/versions/v2022_11_28/models/group_0986.py @@ -9,8 +9,7 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime +from typing import List, Union from pydantic import Field @@ -19,23 +18,41 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoMilestonesPostBody(GitHubModel): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoIssuesPostBody(GitHubModel): + """ReposOwnerRepoIssuesPostBody""" - title: str = Field(description="The title of the milestone.") - state: Missing[Literal["open", "closed"]] = Field( + title: Union[str, int] = Field(description="The title of the issue.") + body: Missing[str] = Field(default=UNSET, description="The contents of the issue.") + assignee: Missing[Union[str, None]] = Field( default=UNSET, - description="The state of the milestone. Either `open` or `closed`.", + description="Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_", ) - description: Missing[str] = Field( - default=UNSET, description="A description of the milestone." + 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._", ) - due_on: Missing[datetime] = Field( + assignees: Missing[List[str]] = Field( default=UNSET, - description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + description="Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", ) -model_rebuild(ReposOwnerRepoMilestonesPostBody) +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__ = ("ReposOwnerRepoMilestonesPostBody",) +__all__ = ( + "ReposOwnerRepoIssuesPostBody", + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0987.py b/githubkit/versions/v2022_11_28/models/group_0987.py index 66f746617..2e91230e7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0987.py +++ b/githubkit/versions/v2022_11_28/models/group_0987.py @@ -9,35 +9,17 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - title: Missing[str] = Field( - default=UNSET, description="The title of the milestone." - ) - state: Missing[Literal["open", "closed"]] = Field( - default=UNSET, - description="The state of the milestone. Either `open` or `closed`.", - ) - description: Missing[str] = Field( - default=UNSET, description="A description of the milestone." - ) - due_on: Missing[datetime] = Field( - default=UNSET, - description="The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - ) + body: str = Field(description="The contents of the comment.") -model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0988.py b/githubkit/versions/v2022_11_28/models/group_0988.py index ee1af04ff..429ace692 100644 --- a/githubkit/versions/v2022_11_28/models/group_0988.py +++ b/githubkit/versions/v2022_11_28/models/group_0988.py @@ -9,24 +9,23 @@ from __future__ import annotations -from datetime import datetime +from typing import Literal from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoNotificationsPutBody(GitHubModel): - """ReposOwnerRepoNotificationsPutBody""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - 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.", + 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(ReposOwnerRepoNotificationsPutBody) +model_rebuild(ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoNotificationsPutBody",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0989.py b/githubkit/versions/v2022_11_28/models/group_0989.py index 2b5b85a37..f4cf48489 100644 --- a/githubkit/versions/v2022_11_28/models/group_0989.py +++ b/githubkit/versions/v2022_11_28/models/group_0989.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List, Union, Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,54 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): - """ReposOwnerRepoNotificationsPutResponse202""" +class ReposOwnerRepoIssuesIssueNumberPatchBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberPatchBody""" + + title: Missing[Union[str, int, None]] = Field( + default=UNSET, description="The title of the issue." + ) + body: Missing[Union[str, None]] = Field( + default=UNSET, description="The contents of the issue." + ) + assignee: Missing[Union[str, None]] = Field( + default=UNSET, + description="Username to assign to this issue. **This field is deprecated.**", + ) + state: Missing[Literal["open", "closed"]] = Field( + default=UNSET, description="The open or closed state of the issue." + ) + state_reason: Missing[ + Union[None, Literal["completed", "not_planned", "reopened"]] + ] = Field( + default=UNSET, + description="The reason for the state change. Ignored unless `state` is changed.", + ) + milestone: Missing[Union[str, int, None]] = Field(default=UNSET) + labels: Missing[ + List[Union[str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1]] + ] = Field( + default=UNSET, + description="Labels to associate with this issue. Pass one or more labels to _replace_ the set of labels on this issue. Send an empty array (`[]`) to clear all labels from the issue. Only users with push access can set labels for issues. Without push access to the repository, label changes are silently dropped.", + ) + assignees: Missing[List[str]] = Field( + default=UNSET, + description="Usernames to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this issue. Send an empty array (`[]`) to clear all assignees from the issue. Only users with push access can set assignees for new issues. Without push access to the repository, assignee changes are silently dropped.", + ) + + +class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + 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(ReposOwnerRepoNotificationsPutResponse202) +model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1) -__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBody", + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0990.py b/githubkit/versions/v2022_11_28/models/group_0990.py index aaa502a31..e809e4006 100644 --- a/githubkit/versions/v2022_11_28/models/group_0990.py +++ b/githubkit/versions/v2022_11_28/models/group_0990.py @@ -9,27 +9,24 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - Update the source for the repository. Must include the branch name and path. - """ - - branch: str = Field( - description="The repository branch used to publish your site's source files." - ) - path: Literal["/", "/docs"] = Field( - description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`." + assignees: Missing[List[str]] = Field( + default=UNSET, + description="Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._", ) -model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesPostBody) -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0991.py b/githubkit/versions/v2022_11_28/models/group_0991.py index fbe991935..5d857cf8c 100644 --- a/githubkit/versions/v2022_11_28/models/group_0991.py +++ b/githubkit/versions/v2022_11_28/models/group_0991.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field @@ -17,31 +17,16 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0990 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" -class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof0""" - - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', - ) - https_enforced: Missing[bool] = Field( + assignees: Missing[List[str]] = Field( default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Literal["legacy", "workflow"] = Field( - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch." + description="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._", ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) +model_rebuild(ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0992.py b/githubkit/versions/v2022_11_28/models/group_0992.py index b1eb61d0f..49a6d6da0 100644 --- a/githubkit/versions/v2022_11_28/models/group_0992.py +++ b/githubkit/versions/v2022_11_28/models/group_0992.py @@ -9,38 +9,17 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0990 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - -class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof1""" +class ReposOwnerRepoIssuesIssueNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] = Field() + body: str = Field(description="The contents of the comment.") -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) +model_rebuild(ReposOwnerRepoIssuesIssueNumberCommentsPostBody) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_0993.py b/githubkit/versions/v2022_11_28/models/group_0993.py index c91ad73c5..bb9a1cd53 100644 --- a/githubkit/versions/v2022_11_28/models/group_0993.py +++ b/githubkit/versions/v2022_11_28/models/group_0993.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field @@ -17,31 +17,17 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0990 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" -class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof2""" - - cname: Union[str, None] = Field( - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."' - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( + labels: Missing[List[str]] = Field( + min_length=1, 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 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)."', ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0994.py b/githubkit/versions/v2022_11_28/models/group_0994.py index 0a2c99617..0ed7e108e 100644 --- a/githubkit/versions/v2022_11_28/models/group_0994.py +++ b/githubkit/versions/v2022_11_28/models/group_0994.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from pydantic import Field @@ -17,32 +17,25 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0990 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" -class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof3""" + labels: Missing[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems] + ] = Field(min_length=1, default=UNSET) - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', - ) - https_enforced: Missing[bool] = Field( - default=UNSET, - description="Specify whether HTTPS should be enforced for the repository.", - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) + name: str = Field() -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) + +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems) + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0995.py b/githubkit/versions/v2022_11_28/models/group_0995.py index bc03af5be..d59513ace 100644 --- a/githubkit/versions/v2022_11_28/models/group_0995.py +++ b/githubkit/versions/v2022_11_28/models/group_0995.py @@ -9,39 +9,17 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0990 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - -class ReposOwnerRepoPagesPutBodyAnyof4(GitHubModel): - """ReposOwnerRepoPagesPutBodyAnyof4""" +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" - cname: Missing[Union[str, None]] = Field( - default=UNSET, - description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', - ) - https_enforced: bool = Field( - description="Specify whether HTTPS should be enforced for the repository." - ) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", - ) - source: Missing[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1, - ] - ] = Field(default=UNSET) + name: str = Field() -model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items) -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items",) diff --git a/githubkit/versions/v2022_11_28/models/group_0996.py b/githubkit/versions/v2022_11_28/models/group_0996.py index a34439e2e..36033eda7 100644 --- a/githubkit/versions/v2022_11_28/models/group_0996.py +++ b/githubkit/versions/v2022_11_28/models/group_0996.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -18,21 +18,16 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): - """ReposOwnerRepoPagesPostBodyPropSource +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - The source branch and directory used to publish your Pages site. - """ - - branch: str = Field( - description="The repository branch used to publish your site's source files." - ) - path: Missing[Literal["/", "/docs"]] = Field( + labels: Missing[List[str]] = Field( + min_length=1, default=UNSET, - description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", + 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(ReposOwnerRepoPagesPostBodyPropSource) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0) -__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_0997.py b/githubkit/versions/v2022_11_28/models/group_0997.py index 72f3ce4ff..0d0e29232 100644 --- a/githubkit/versions/v2022_11_28/models/group_0997.py +++ b/githubkit/versions/v2022_11_28/models/group_0997.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field @@ -17,21 +17,25 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0996 import ReposOwnerRepoPagesPostBodyPropSource +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" -class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof0""" + labels: Missing[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems] + ] = Field(min_length=1, default=UNSET) - build_type: Missing[Literal["legacy", "workflow"]] = Field( - default=UNSET, - description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.', - ) - source: ReposOwnerRepoPagesPostBodyPropSource = Field( - description="The source branch and directory used to publish your Pages site." - ) +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" -model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) + name: str = Field() -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) + +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems) + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_0998.py b/githubkit/versions/v2022_11_28/models/group_0998.py index 65713d40e..dfb903bb9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0998.py +++ b/githubkit/versions/v2022_11_28/models/group_0998.py @@ -9,29 +9,17 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0996 import ReposOwnerRepoPagesPostBodyPropSource - -class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPagesPostBodyAnyof1""" +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - build_type: Literal["legacy", "workflow"] = Field( - description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.' - ) - source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = Field( - default=UNSET, - description="The source branch and directory used to publish your Pages site.", - ) + name: str = Field() -model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items) -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items",) diff --git a/githubkit/versions/v2022_11_28/models/group_0999.py b/githubkit/versions/v2022_11_28/models/group_0999.py index 983710249..5769fdef9 100644 --- a/githubkit/versions/v2022_11_28/models/group_0999.py +++ b/githubkit/versions/v2022_11_28/models/group_0999.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,33 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): - """ReposOwnerRepoPagesDeploymentsPostBody - - The object used to create GitHub Pages deployment - """ +class ReposOwnerRepoIssuesIssueNumberLockPutBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - 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." + 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(ReposOwnerRepoPagesDeploymentsPostBody) +model_rebuild(ReposOwnerRepoIssuesIssueNumberLockPutBody) -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1000.py b/githubkit/versions/v2022_11_28/models/group_1000.py index c70eda7b0..4d12ca0e6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1000.py +++ b/githubkit/versions/v2022_11_28/models/group_1000.py @@ -9,19 +9,23 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBody(GitHubModel): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - enabled: bool = Field( - description="Whether or not private vulnerability reporting is enabled for the repository." + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the issue." ) -model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) +model_rebuild(ReposOwnerRepoIssuesIssueNumberReactionsPostBody) -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1001.py b/githubkit/versions/v2022_11_28/models/group_1001.py index 64fb2be93..22c941a84 100644 --- a/githubkit/versions/v2022_11_28/models/group_1001.py +++ b/githubkit/versions/v2022_11_28/models/group_1001.py @@ -16,15 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -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 ReposOwnerRepoKeysPostBody(GitHubModel): + """ReposOwnerRepoKeysPostBody""" + + title: Missing[str] = Field(default=UNSET, description="A name for the key.") + key: str = Field(description="The contents of the key.") + read_only: Missing[bool] = Field( + default=UNSET, + description='If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)."', ) -model_rebuild(ReposOwnerRepoProjectsPostBody) +model_rebuild(ReposOwnerRepoKeysPostBody) -__all__ = ("ReposOwnerRepoProjectsPostBody",) +__all__ = ("ReposOwnerRepoKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1002.py b/githubkit/versions/v2022_11_28/models/group_1002.py index 07ed9b6e3..c9c52cd3c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1002.py +++ b/githubkit/versions/v2022_11_28/models/group_1002.py @@ -9,23 +9,29 @@ from __future__ import annotations -from typing import List - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0093 import CustomPropertyValue - -class ReposOwnerRepoPropertiesValuesPatchBody(GitHubModel): - """ReposOwnerRepoPropertiesValuesPatchBody""" +class ReposOwnerRepoLabelsPostBody(GitHubModel): + """ReposOwnerRepoLabelsPostBody""" - properties: List[CustomPropertyValue] = Field( - description="A list of custom property names and associated values to apply to the repositories." + name: str = Field( + description='The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see "[Emoji cheat sheet](https://github.com/ikatyang/emoji-cheat-sheet)."' + ) + color: Missing[str] = Field( + default=UNSET, + description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", + ) + description: Missing[str] = Field( + default=UNSET, + description="A short description of the label. Must be 100 characters or fewer.", ) -model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) +model_rebuild(ReposOwnerRepoLabelsPostBody) -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) +__all__ = ("ReposOwnerRepoLabelsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1003.py b/githubkit/versions/v2022_11_28/models/group_1003.py index 3acd4d021..99482c11e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1003.py +++ b/githubkit/versions/v2022_11_28/models/group_1003.py @@ -16,40 +16,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPostBody(GitHubModel): - """ReposOwnerRepoPullsPostBody""" +class ReposOwnerRepoLabelsNamePatchBody(GitHubModel): + """ReposOwnerRepoLabelsNamePatchBody""" - title: Missing[str] = Field( + new_name: Missing[str] = Field( default=UNSET, - description="The title of the new pull request. Required unless `issue` is specified.", + 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)."', ) - 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( + color: Missing[str] = Field( default=UNSET, - description='Indicates whether the pull request is a draft. See "[Draft Pull Requests](https://docs.github.com/articles/about-pull-requests#draft-pull-requests)" in the GitHub Help documentation to learn more.', + description="The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", ) - issue: Missing[int] = Field( + description: Missing[str] = Field( default=UNSET, - description="An issue in the repository to convert to a pull request. The issue title, body, and comments will become the title, body, and comments on the new pull request. Required unless `title` is specified.", + description="A short description of the label. Must be 100 characters or fewer.", ) -model_rebuild(ReposOwnerRepoPullsPostBody) +model_rebuild(ReposOwnerRepoLabelsNamePatchBody) -__all__ = ("ReposOwnerRepoPullsPostBody",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1004.py b/githubkit/versions/v2022_11_28/models/group_1004.py index b48ea50a0..7be32859a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1004.py +++ b/githubkit/versions/v2022_11_28/models/group_1004.py @@ -14,12 +14,14 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" +class ReposOwnerRepoMergeUpstreamPostBody(GitHubModel): + """ReposOwnerRepoMergeUpstreamPostBody""" - body: str = Field(description="The text of the reply to the review comment.") + branch: str = Field( + description="The name of the branch which should be updated to match upstream." + ) -model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) +model_rebuild(ReposOwnerRepoMergeUpstreamPostBody) -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1005.py b/githubkit/versions/v2022_11_28/models/group_1005.py index 21b71134d..052d6bba0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1005.py +++ b/githubkit/versions/v2022_11_28/models/group_1005.py @@ -9,23 +9,28 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoMergesPostBody(GitHubModel): + """ReposOwnerRepoMergesPostBody""" - 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." + 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(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) +model_rebuild(ReposOwnerRepoMergesPostBody) -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoMergesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1006.py b/githubkit/versions/v2022_11_28/models/group_1006.py index 1c64cabce..4db27f8af 100644 --- a/githubkit/versions/v2022_11_28/models/group_1006.py +++ b/githubkit/versions/v2022_11_28/models/group_1006.py @@ -10,6 +10,7 @@ from __future__ import annotations from typing import Literal +from datetime import datetime from pydantic import Field @@ -18,29 +19,23 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberPatchBody""" +class ReposOwnerRepoMilestonesPostBody(GitHubModel): + """ReposOwnerRepoMilestonesPostBody""" - 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." - ) + title: str = Field(description="The title of the milestone.") state: Missing[Literal["open", "closed"]] = Field( default=UNSET, - description="State of this Pull Request. Either `open` or `closed`.", + description="The state of the milestone. 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.", + description: Missing[str] = Field( + default=UNSET, description="A description of the milestone." ) - maintainer_can_modify: Missing[bool] = Field( + due_on: Missing[datetime] = 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="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(ReposOwnerRepoPullsPullNumberPatchBody) +model_rebuild(ReposOwnerRepoMilestonesPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) +__all__ = ("ReposOwnerRepoMilestonesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1007.py b/githubkit/versions/v2022_11_28/models/group_1007.py index a1c5168af..66f746617 100644 --- a/githubkit/versions/v2022_11_28/models/group_1007.py +++ b/githubkit/versions/v2022_11_28/models/group_1007.py @@ -10,6 +10,7 @@ from __future__ import annotations from typing import Literal +from datetime import datetime from pydantic import Field @@ -18,48 +19,25 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBody(GitHubModel): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - multi_repo_permissions_opt_out: Missing[bool] = Field( - default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" + title: Missing[str] = Field( + default=UNSET, description="The title of the milestone." ) - idle_timeout_minutes: Missing[int] = Field( + state: Missing[Literal["open", "closed"]] = Field( default=UNSET, - description="Time in minutes before codespace stops from inactivity", + description="The state of the milestone. Either `open` or `closed`.", ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" + description: Missing[str] = Field( + default=UNSET, description="A description of the milestone." ) - retention_period_minutes: Missing[int] = Field( + due_on: Missing[datetime] = 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 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(ReposOwnerRepoPullsPullNumberCodespacesPostBody) +model_rebuild(ReposOwnerRepoMilestonesMilestoneNumberPatchBody) -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1008.py b/githubkit/versions/v2022_11_28/models/group_1008.py index 00908b602..ee1af04ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_1008.py +++ b/githubkit/versions/v2022_11_28/models/group_1008.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from pydantic import Field @@ -18,45 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" +class ReposOwnerRepoNotificationsPutBody(GitHubModel): + """ReposOwnerRepoNotificationsPutBody""" - 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 deprecated. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', - ) - side: Missing[Literal["LEFT", "RIGHT"]] = Field( + last_read_at: Missing[datetime] = 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." + 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(ReposOwnerRepoPullsPullNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoNotificationsPutBody) -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoNotificationsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1009.py b/githubkit/versions/v2022_11_28/models/group_1009.py index 19ce96346..2b5b85a37 100644 --- a/githubkit/versions/v2022_11_28/models/group_1009.py +++ b/githubkit/versions/v2022_11_28/models/group_1009.py @@ -11,15 +11,18 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" +class ReposOwnerRepoNotificationsPutResponse202(GitHubModel): + """ReposOwnerRepoNotificationsPutResponse202""" - body: str = Field(description="The text of the review comment.") + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) +model_rebuild(ReposOwnerRepoNotificationsPutResponse202) -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_1010.py b/githubkit/versions/v2022_11_28/models/group_1010.py index bc574dd95..aaa502a31 100644 --- a/githubkit/versions/v2022_11_28/models/group_1010.py +++ b/githubkit/versions/v2022_11_28/models/group_1010.py @@ -13,29 +13,23 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutBody""" +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - 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.", + Update the source for the repository. Must include the branch name and path. + """ + + branch: str = Field( + description="The repository branch used to publish your site's source files." ) - merge_method: Missing[Literal["merge", "squash", "rebase"]] = Field( - default=UNSET, description="The merge method to use." + path: Literal["/", "/docs"] = Field( + description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`." ) -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) +model_rebuild(ReposOwnerRepoPagesPutBodyPropSourceAnyof1) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1011.py b/githubkit/versions/v2022_11_28/models/group_1011.py index eaa87fc99..ac79ead04 100644 --- a/githubkit/versions/v2022_11_28/models/group_1011.py +++ b/githubkit/versions/v2022_11_28/models/group_1011.py @@ -9,20 +9,39 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + -class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" +class ReposOwnerRepoPagesPutBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof0""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: 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(ReposOwnerRepoPullsPullNumberMergePutResponse405) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof0) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1012.py b/githubkit/versions/v2022_11_28/models/group_1012.py index ff106781d..c0e601b6f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1012.py +++ b/githubkit/versions/v2022_11_28/models/group_1012.py @@ -9,20 +9,38 @@ from __future__ import annotations +from typing import Union, Literal + from pydantic import Field from githubkit.utils import UNSET from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 + -class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" +class ReposOwnerRepoPagesPutBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof1""" - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", + ) + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", + ) + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] = Field() -model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof1) -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1013.py b/githubkit/versions/v2022_11_28/models/group_1013.py index 1fa538765..a3af5ed33 100644 --- a/githubkit/versions/v2022_11_28/models/group_1013.py +++ b/githubkit/versions/v2022_11_28/models/group_1013.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field @@ -17,18 +17,31 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - reviewers: List[str] = Field( - description="An array of user `login`s that will be requested." +class ReposOwnerRepoPagesPutBodyAnyof2(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof2""" + + cname: Union[str, None] = Field( + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."' + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", ) - team_reviewers: Missing[List[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be requested." + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof2) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2",) diff --git a/githubkit/versions/v2022_11_28/models/group_1014.py b/githubkit/versions/v2022_11_28/models/group_1014.py index 6f77dbb5a..c63807895 100644 --- a/githubkit/versions/v2022_11_28/models/group_1014.py +++ b/githubkit/versions/v2022_11_28/models/group_1014.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field @@ -17,18 +17,32 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - reviewers: Missing[List[str]] = Field( - default=UNSET, description="An array of user `login`s that will be requested." +class ReposOwnerRepoPagesPutBodyAnyof3(GitHubModel): + """ReposOwnerRepoPagesPutBodyAnyof3""" + + cname: Missing[Union[str, None]] = Field( + default=UNSET, + description='Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site)."', + ) + https_enforced: Missing[bool] = Field( + default=UNSET, + description="Specify whether HTTPS should be enforced for the repository.", ) - team_reviewers: List[str] = Field( - description="An array of team `slug`s that will be requested." + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof3) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3",) diff --git a/githubkit/versions/v2022_11_28/models/group_1015.py b/githubkit/versions/v2022_11_28/models/group_1015.py index 0adaf0241..f112c3414 100644 --- a/githubkit/versions/v2022_11_28/models/group_1015.py +++ b/githubkit/versions/v2022_11_28/models/group_1015.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field @@ -17,18 +17,31 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1 -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - reviewers: List[str] = Field( - description="An array of user `login`s that will be removed." +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: bool = Field( + description="Specify whether HTTPS should be enforced for the repository." ) - team_reviewers: Missing[List[str]] = Field( - default=UNSET, description="An array of team `slug`s that will be removed." + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description="The process by which the GitHub Pages site will be built. `workflow` means that the site is built by a custom GitHub Actions workflow. `legacy` means that the site is built by GitHub when changes are pushed to a specific branch.", ) + source: Missing[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1, + ] + ] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) +model_rebuild(ReposOwnerRepoPagesPutBodyAnyof4) -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4",) diff --git a/githubkit/versions/v2022_11_28/models/group_1016.py b/githubkit/versions/v2022_11_28/models/group_1016.py index 85f6e83b1..a34439e2e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1016.py +++ b/githubkit/versions/v2022_11_28/models/group_1016.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from pydantic import Field @@ -18,50 +18,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" +class ReposOwnerRepoPagesPostBodyPropSource(GitHubModel): + """ReposOwnerRepoPagesPostBodyPropSource - 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""" + The source branch and directory used to publish your Pages site. + """ - path: str = Field( - description="The relative path to the file that necessitates a review comment." + branch: str = Field( + description="The repository branch used to publish your site's source files." ) - position: Missing[int] = Field( + path: Missing[Literal["/", "/docs"]] = Field( default=UNSET, - description='The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', + description="The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", ) - body: str = Field(description="Text of the review comment.") - line: Missing[int] = Field(default=UNSET) - side: Missing[str] = Field(default=UNSET) - start_line: Missing[int] = Field(default=UNSET) - start_side: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) +model_rebuild(ReposOwnerRepoPagesPostBodyPropSource) -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBody", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", -) +__all__ = ("ReposOwnerRepoPagesPostBodyPropSource",) diff --git a/githubkit/versions/v2022_11_28/models/group_1017.py b/githubkit/versions/v2022_11_28/models/group_1017.py index 60600e7a7..84e2797eb 100644 --- a/githubkit/versions/v2022_11_28/models/group_1017.py +++ b/githubkit/versions/v2022_11_28/models/group_1017.py @@ -9,17 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_1016 import ReposOwnerRepoPagesPostBodyPropSource + -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" +class ReposOwnerRepoPagesPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof0""" - body: str = Field(description="The body text of the pull request review.") + build_type: Missing[Literal["legacy", "workflow"]] = Field( + default=UNSET, + description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.', + ) + source: ReposOwnerRepoPagesPostBodyPropSource = Field( + description="The source branch and directory used to publish your Pages site." + ) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof0) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1018.py b/githubkit/versions/v2022_11_28/models/group_1018.py index 857baf92a..510bba10d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1018.py +++ b/githubkit/versions/v2022_11_28/models/group_1018.py @@ -17,16 +17,21 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_1016 import ReposOwnerRepoPagesPostBodyPropSource -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - message: str = Field( - description="The message for the pull request review dismissal" +class ReposOwnerRepoPagesPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPagesPostBodyAnyof1""" + + build_type: Literal["legacy", "workflow"] = Field( + description='The process in which the Page will be built. Possible values are `"legacy"` and `"workflow"`.' + ) + source: Missing[ReposOwnerRepoPagesPostBodyPropSource] = Field( + default=UNSET, + description="The source branch and directory used to publish your Pages site.", ) - event: Missing[Literal["DISMISS"]] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) +model_rebuild(ReposOwnerRepoPagesPostBodyAnyof1) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1019.py b/githubkit/versions/v2022_11_28/models/group_1019.py index 63a7f87ba..983710249 100644 --- a/githubkit/versions/v2022_11_28/models/group_1019.py +++ b/githubkit/versions/v2022_11_28/models/group_1019.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,17 +16,33 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" +class ReposOwnerRepoPagesDeploymentsPostBody(GitHubModel): + """ReposOwnerRepoPagesDeploymentsPostBody + + The object used to create GitHub Pages deployment + """ - body: Missing[str] = Field( - default=UNSET, description="The body text of the pull request review" + 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.", ) - 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." + oidc_token: str = Field( + description="The OIDC token issued by GitHub Actions certifying the origin of the deployment." ) -model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) +model_rebuild(ReposOwnerRepoPagesDeploymentsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1020.py b/githubkit/versions/v2022_11_28/models/group_1020.py index 34c70f7f9..c70eda7b0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1020.py +++ b/githubkit/versions/v2022_11_28/models/group_1020.py @@ -11,20 +11,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200(GitHubModel): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - 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.", + enabled: bool = Field( + description="Whether or not private vulnerability reporting is enabled for the repository." ) -model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) +model_rebuild(ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200) -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1021.py b/githubkit/versions/v2022_11_28/models/group_1021.py index 862b6ba8f..64fb2be93 100644 --- a/githubkit/versions/v2022_11_28/models/group_1021.py +++ b/githubkit/versions/v2022_11_28/models/group_1021.py @@ -16,13 +16,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" +class ReposOwnerRepoProjectsPostBody(GitHubModel): + """ReposOwnerRepoProjectsPostBody""" - message: Missing[str] = Field(default=UNSET) - url: Missing[str] = Field(default=UNSET) + name: str = Field(description="The name of the project.") + body: Missing[str] = Field( + default=UNSET, description="The description of the project." + ) -model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) +model_rebuild(ReposOwnerRepoProjectsPostBody) -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) +__all__ = ("ReposOwnerRepoProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1022.py b/githubkit/versions/v2022_11_28/models/group_1022.py index 333f37ec9..edc2a9d3f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1022.py +++ b/githubkit/versions/v2022_11_28/models/group_1022.py @@ -9,49 +9,23 @@ from __future__ import annotations -from typing import Literal +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0098 import CustomPropertyValue -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.", +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(ReposOwnerRepoReleasesPostBody) +model_rebuild(ReposOwnerRepoPropertiesValuesPatchBody) -__all__ = ("ReposOwnerRepoReleasesPostBody",) +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1023.py b/githubkit/versions/v2022_11_28/models/group_1023.py index f49d56bca..3acd4d021 100644 --- a/githubkit/versions/v2022_11_28/models/group_1023.py +++ b/githubkit/versions/v2022_11_28/models/group_1023.py @@ -16,17 +16,40 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" +class ReposOwnerRepoPullsPostBody(GitHubModel): + """ReposOwnerRepoPullsPostBody""" - name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") - label: Missing[str] = Field( + title: Missing[str] = Field( default=UNSET, - description="An alternate short description of the asset. Used in place of the filename.", + 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.", ) - state: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) +model_rebuild(ReposOwnerRepoPullsPostBody) -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) +__all__ = ("ReposOwnerRepoPullsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1024.py b/githubkit/versions/v2022_11_28/models/group_1024.py index 3944a35e1..b48ea50a0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1024.py +++ b/githubkit/versions/v2022_11_28/models/group_1024.py @@ -11,31 +11,15 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoPullsCommentsCommentIdPatchBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - tag_name: str = Field( - description="The tag name for the release. This can be an existing tag or a new one." - ) - target_commitish: Missing[str] = Field( - default=UNSET, - description="Specifies the commitish value that will be the target for the release's tag. Required if the supplied tag_name does not reference an existing tag. Ignored if the tag_name already exists.", - ) - previous_tag_name: Missing[str] = Field( - default=UNSET, - description="The name of the previous tag to use as the starting point for the release notes. Use to manually specify the range for the set of changes considered as part this release.", - ) - configuration_file_path: Missing[str] = Field( - default=UNSET, - description="Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.", - ) + body: str = Field(description="The text of the reply to the review comment.") -model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdPatchBody) -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1025.py b/githubkit/versions/v2022_11_28/models/group_1025.py index 297752b28..21b71134d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1025.py +++ b/githubkit/versions/v2022_11_28/models/group_1025.py @@ -13,41 +13,19 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - 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", "-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(ReposOwnerRepoReleasesReleaseIdPatchBody) +model_rebuild(ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody) -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1026.py b/githubkit/versions/v2022_11_28/models/group_1026.py index 8f99969f6..1c64cabce 100644 --- a/githubkit/versions/v2022_11_28/models/group_1026.py +++ b/githubkit/versions/v2022_11_28/models/group_1026.py @@ -13,17 +13,34 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" +class ReposOwnerRepoPullsPullNumberPatchBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberPatchBody""" - 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." + 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(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberPatchBody) -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1027.py b/githubkit/versions/v2022_11_28/models/group_1027.py index 11e2eb013..a1c5168af 100644 --- a/githubkit/versions/v2022_11_28/models/group_1027.py +++ b/githubkit/versions/v2022_11_28/models/group_1027.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,79 +17,49 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0110 import RepositoryRuleUpdate -from .group_0134 import RepositoryRuleOneof17 -from .group_0130 import RepositoryRuleWorkflows -from .group_0115 import RepositoryRulePullRequest -from .group_0132 import RepositoryRuleCodeScanning -from .group_0098 import RepositoryRulesetConditions -from .group_0097 import RepositoryRulesetBypassActor -from .group_0127 import RepositoryRuleTagNamePattern -from .group_0125 import RepositoryRuleBranchNamePattern -from .group_0113 import RepositoryRuleRequiredDeployments -from .group_0117 import RepositoryRuleRequiredStatusChecks -from .group_0119 import RepositoryRuleCommitMessagePattern -from .group_0123 import RepositoryRuleCommitterEmailPattern -from .group_0121 import RepositoryRuleCommitAuthorEmailPattern -from .group_0112 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory -from .group_0109 import ( - RepositoryRuleOneof14, - RepositoryRuleOneof16, - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) +class ReposOwnerRepoPullsPullNumberCodespacesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" -class ReposOwnerRepoRulesetsPostBody(GitHubModel): - """ReposOwnerRepoRulesetsPostBody""" - - name: str = Field(description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push"]] = Field( + 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 target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", ) - 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)." + 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" ) - bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( + devcontainer_path: Missing[str] = Field( default=UNSET, - description="The actors that can bypass the rules in this ruleset", + 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" ) - conditions: Missing[RepositoryRulesetConditions] = Field( + retention_period_minutes: Missing[int] = Field( default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", + 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).", ) - rules: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoRulesetsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCodespacesPostBody) -__all__ = ("ReposOwnerRepoRulesetsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1028.py b/githubkit/versions/v2022_11_28/models/group_1028.py index 3e7fe8e69..00908b602 100644 --- a/githubkit/versions/v2022_11_28/models/group_1028.py +++ b/githubkit/versions/v2022_11_28/models/group_1028.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from pydantic import Field @@ -17,80 +17,46 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0110 import RepositoryRuleUpdate -from .group_0134 import RepositoryRuleOneof17 -from .group_0130 import RepositoryRuleWorkflows -from .group_0115 import RepositoryRulePullRequest -from .group_0132 import RepositoryRuleCodeScanning -from .group_0098 import RepositoryRulesetConditions -from .group_0097 import RepositoryRulesetBypassActor -from .group_0127 import RepositoryRuleTagNamePattern -from .group_0125 import RepositoryRuleBranchNamePattern -from .group_0113 import RepositoryRuleRequiredDeployments -from .group_0117 import RepositoryRuleRequiredStatusChecks -from .group_0119 import RepositoryRuleCommitMessagePattern -from .group_0123 import RepositoryRuleCommitterEmailPattern -from .group_0121 import RepositoryRuleCommitAuthorEmailPattern -from .group_0112 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory -from .group_0109 import ( - RepositoryRuleOneof14, - RepositoryRuleOneof16, - RepositoryRuleCreation, - RepositoryRuleDeletion, - RepositoryRuleNonFastForward, - RepositoryRuleRequiredSignatures, -) +class ReposOwnerRepoPullsPullNumberCommentsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" -class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" - - name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") - target: Missing[Literal["branch", "tag", "push"]] = Field( + body: str = Field(description="The text of the review comment.") + commit_id: str = Field( + description="The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`." + ) + path: str = Field( + description="The relative path to the file that necessitates a comment." + ) + position: Missing[int] = Field( + default=UNSET, + description='**This parameter is deprecated. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.', + ) + side: Missing[Literal["LEFT", "RIGHT"]] = Field( + default=UNSET, + description='In a split diff view, the side of the diff that the pull request\'s changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation.', + ) + line: Missing[int] = Field( default=UNSET, - description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", + 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.", ) - enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( + start_line: Missing[int] = 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='**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.', ) - bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( + start_side: Missing[Literal["LEFT", "RIGHT", "side"]] = Field( default=UNSET, - description="The actors that can bypass the rules in this ruleset", + 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.', ) - conditions: Missing[RepositoryRulesetConditions] = Field( + in_reply_to: Missing[int] = Field( default=UNSET, - title="Repository ruleset conditions for ref names", - description="Parameters for a repository ruleset ref name condition", + 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." ) - rules: Missing[ - List[ - Union[ - RepositoryRuleCreation, - RepositoryRuleUpdate, - RepositoryRuleDeletion, - RepositoryRuleRequiredLinearHistory, - RepositoryRuleRequiredDeployments, - RepositoryRuleRequiredSignatures, - RepositoryRulePullRequest, - RepositoryRuleRequiredStatusChecks, - RepositoryRuleNonFastForward, - RepositoryRuleCommitMessagePattern, - RepositoryRuleCommitAuthorEmailPattern, - RepositoryRuleCommitterEmailPattern, - RepositoryRuleBranchNamePattern, - RepositoryRuleTagNamePattern, - RepositoryRuleOneof14, - RepositoryRuleOneof15, - RepositoryRuleOneof16, - RepositoryRuleOneof17, - RepositoryRuleWorkflows, - RepositoryRuleCodeScanning, - ] - ] - ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsPostBody) -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1029.py b/githubkit/versions/v2022_11_28/models/group_1029.py index e2b827b1b..19ce96346 100644 --- a/githubkit/versions/v2022_11_28/models/group_1029.py +++ b/githubkit/versions/v2022_11_28/models/group_1029.py @@ -9,33 +9,17 @@ from __future__ import annotations -from typing import Union, Literal - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - state: Literal["open", "resolved"] = Field( - description="Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`." - ) - resolution: Missing[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] = Field( - default=UNSET, - description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", - ) - resolution_comment: Missing[Union[str, None]] = Field( - default=UNSET, - description="An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.", - ) + body: str = Field(description="The text of the review comment.") -model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody) -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1030.py b/githubkit/versions/v2022_11_28/models/group_1030.py index c68c08211..bc574dd95 100644 --- a/githubkit/versions/v2022_11_28/models/group_1030.py +++ b/githubkit/versions/v2022_11_28/models/group_1030.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from pydantic import Field @@ -18,25 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoStatusesShaPostBody(GitHubModel): - """ReposOwnerRepoStatusesShaPostBody""" +class ReposOwnerRepoPullsPullNumberMergePutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - state: Literal["error", "failure", "pending", "success"] = Field( - description="The state of the status." + commit_title: Missing[str] = Field( + default=UNSET, description="Title for the automatic commit message." ) - 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." + commit_message: Missing[str] = Field( + default=UNSET, description="Extra detail to append to automatic commit message." ) - context: Missing[str] = Field( + sha: Missing[str] = Field( default=UNSET, - description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", + 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(ReposOwnerRepoStatusesShaPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutBody) -__all__ = ("ReposOwnerRepoStatusesShaPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1031.py b/githubkit/versions/v2022_11_28/models/group_1031.py index 140c5808c..eaa87fc99 100644 --- a/githubkit/versions/v2022_11_28/models/group_1031.py +++ b/githubkit/versions/v2022_11_28/models/group_1031.py @@ -16,19 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoSubscriptionPutBody(GitHubModel): - """ReposOwnerRepoSubscriptionPutBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse405(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - 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.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoSubscriptionPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse405) -__all__ = ("ReposOwnerRepoSubscriptionPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405",) diff --git a/githubkit/versions/v2022_11_28/models/group_1032.py b/githubkit/versions/v2022_11_28/models/group_1032.py index 59aae89ec..ff106781d 100644 --- a/githubkit/versions/v2022_11_28/models/group_1032.py +++ b/githubkit/versions/v2022_11_28/models/group_1032.py @@ -11,17 +11,18 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse409(GitHubModel): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - pattern: str = Field( - description="An optional glob pattern to match against when enforcing tag protection." - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(ReposOwnerRepoTagsProtectionPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberMergePutResponse409) -__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409",) diff --git a/githubkit/versions/v2022_11_28/models/group_1033.py b/githubkit/versions/v2022_11_28/models/group_1033.py index e248ddcbd..1fa538765 100644 --- a/githubkit/versions/v2022_11_28/models/group_1033.py +++ b/githubkit/versions/v2022_11_28/models/group_1033.py @@ -13,17 +13,22 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoTopicsPutBody(GitHubModel): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - names: List[str] = Field( - description="An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters." + 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(ReposOwnerRepoTopicsPutBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0) -__all__ = ("ReposOwnerRepoTopicsPutBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1034.py b/githubkit/versions/v2022_11_28/models/group_1034.py index 8e53926f6..6f77dbb5a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1034.py +++ b/githubkit/versions/v2022_11_28/models/group_1034.py @@ -18,21 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposOwnerRepoTransferPostBody(GitHubModel): - """ReposOwnerRepoTransferPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - new_owner: str = Field( - description="The username or organization name the repository will be transferred to." + reviewers: Missing[List[str]] = Field( + default=UNSET, description="An array of user `login`s that will be requested." ) - 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.", + team_reviewers: List[str] = Field( + description="An array of team `slug`s that will be requested." ) -model_rebuild(ReposOwnerRepoTransferPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1) -__all__ = ("ReposOwnerRepoTransferPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1035.py b/githubkit/versions/v2022_11_28/models/group_1035.py index a7818cc81..0adaf0241 100644 --- a/githubkit/versions/v2022_11_28/models/group_1035.py +++ b/githubkit/versions/v2022_11_28/models/group_1035.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List + from pydantic import Field from githubkit.utils import UNSET @@ -16,27 +18,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - owner: Missing[str] = Field( - default=UNSET, - description="The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.", - ) - name: str = Field(description="The name of the new repository.") - description: Missing[str] = Field( - default=UNSET, description="A short description of the new repository." - ) - include_all_branches: Missing[bool] = Field( - default=UNSET, - description="Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.", + reviewers: List[str] = Field( + description="An array of user `login`s that will be removed." ) - private: Missing[bool] = Field( - default=UNSET, - description="Either `true` to create a new private repository or `false` to create a new public one.", + team_reviewers: Missing[List[str]] = Field( + default=UNSET, description="An array of team `slug`s that will be removed." ) -model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody) -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1036.py b/githubkit/versions/v2022_11_28/models/group_1036.py index ff25ca816..85f6e83b1 100644 --- a/githubkit/versions/v2022_11_28/models/group_1036.py +++ b/githubkit/versions/v2022_11_28/models/group_1036.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from pydantic import Field @@ -18,32 +18,50 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdPatchBody(GitHubModel): - """TeamsTeamIdPatchBody""" +class ReposOwnerRepoPullsPullNumberReviewsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - name: str = Field(description="The name of the team.") - description: Missing[str] = Field( - default=UNSET, description="The description of the team." + 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.", ) - privacy: Missing[Literal["secret", "closed"]] = Field( + body: Missing[str] = Field( default=UNSET, - description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", + description="**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.", ) - notification_setting: Missing[ - Literal["notifications_enabled", "notifications_disabled"] - ] = Field( + event: Missing[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] = Field( default=UNSET, - description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + description="The 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.", ) - permission: Missing[Literal["pull", "push", "admin"]] = Field( + comments: Missing[ + List[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems] + ] = Field( default=UNSET, - description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", + description="Use the following table to specify the location, destination, and contents of the draft review comment.", + ) + + +class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" + + path: str = Field( + description="The relative path to the file that necessitates a review comment." ) - parent_team_id: Missing[Union[int, None]] = Field( - default=UNSET, description="The ID of a team to set as the parent team." + 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(TeamsTeamIdPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems) -__all__ = ("TeamsTeamIdPatchBody",) +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBody", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1037.py b/githubkit/versions/v2022_11_28/models/group_1037.py index 9e0151a61..60600e7a7 100644 --- a/githubkit/versions/v2022_11_28/models/group_1037.py +++ b/githubkit/versions/v2022_11_28/models/group_1037.py @@ -11,22 +11,15 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - 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.", - ) + body: str = Field(description="The body text of the pull request review.") -model_rebuild(TeamsTeamIdDiscussionsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody) -__all__ = ("TeamsTeamIdDiscussionsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1038.py b/githubkit/versions/v2022_11_28/models/group_1038.py index 8c9998ba6..857baf92a 100644 --- a/githubkit/versions/v2022_11_28/models/group_1038.py +++ b/githubkit/versions/v2022_11_28/models/group_1038.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,17 +18,15 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - 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." + message: str = Field( + description="The message for the pull request review dismissal" ) + event: Missing[Literal["DISMISS"]] = Field(default=UNSET) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1039.py b/githubkit/versions/v2022_11_28/models/group_1039.py index 2333d1363..63a7f87ba 100644 --- a/githubkit/versions/v2022_11_28/models/group_1039.py +++ b/githubkit/versions/v2022_11_28/models/group_1039.py @@ -9,17 +9,26 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - body: str = Field(description="The discussion comment's body text.") + body: Missing[str] = Field( + default=UNSET, description="The body text of the pull request review" + ) + event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] = Field( + description="The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action." + ) -model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) +model_rebuild(ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1040.py b/githubkit/versions/v2022_11_28/models/group_1040.py index a44a260ff..34c70f7f9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1040.py +++ b/githubkit/versions/v2022_11_28/models/group_1040.py @@ -11,15 +11,20 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBody(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - body: str = Field(description="The discussion comment's body text.") + 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(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1041.py b/githubkit/versions/v2022_11_28/models/group_1041.py index df888d74e..862b6ba8f 100644 --- a/githubkit/versions/v2022_11_28/models/group_1041.py +++ b/githubkit/versions/v2022_11_28/models/group_1041.py @@ -9,29 +9,20 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( - GitHubModel -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202(GitHubModel): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - 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." - ) + message: Missing[str] = Field(default=UNSET) + url: Missing[str] = Field(default=UNSET) -model_rebuild( - TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody -) +model_rebuild(ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202) -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", -) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202",) diff --git a/githubkit/versions/v2022_11_28/models/group_1042.py b/githubkit/versions/v2022_11_28/models/group_1042.py index 1657765ee..333f37ec9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1042.py +++ b/githubkit/versions/v2022_11_28/models/group_1042.py @@ -13,19 +13,45 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" +class ReposOwnerRepoReleasesPostBody(GitHubModel): + """ReposOwnerRepoReleasesPostBody""" - 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." + 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(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) +model_rebuild(ReposOwnerRepoReleasesPostBody) -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) +__all__ = ("ReposOwnerRepoReleasesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1043.py b/githubkit/versions/v2022_11_28/models/group_1043.py index 913551bc8..f49d56bca 100644 --- a/githubkit/versions/v2022_11_28/models/group_1043.py +++ b/githubkit/versions/v2022_11_28/models/group_1043.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,14 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): - """TeamsTeamIdMembershipsUsernamePutBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - role: Missing[Literal["member", "maintainer"]] = Field( - default=UNSET, description="The role that this user should have in the team." + name: Missing[str] = Field(default=UNSET, description="The file name of the asset.") + label: Missing[str] = Field( + default=UNSET, + description="An alternate short description of the asset. Used in place of the filename.", ) + state: Missing[str] = Field(default=UNSET) -model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) +model_rebuild(ReposOwnerRepoReleasesAssetsAssetIdPatchBody) -__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1044.py b/githubkit/versions/v2022_11_28/models/group_1044.py index 7e46c7317..3944a35e1 100644 --- a/githubkit/versions/v2022_11_28/models/group_1044.py +++ b/githubkit/versions/v2022_11_28/models/group_1044.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field from githubkit.utils import UNSET @@ -18,15 +16,26 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBody(GitHubModel): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - permission: Missing[Literal["read", "write", "admin"]] = 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="The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#http-method).\"", + description="Specifies a path to a file in the repository containing configuration settings used for generating the release notes. If unspecified, the configuration file located in the repository at '.github/release.yml' or '.github/release.yaml' will be used. If that is not present, the default configuration will be used.", ) -model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) +model_rebuild(ReposOwnerRepoReleasesGenerateNotesPostBody) -__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1045.py b/githubkit/versions/v2022_11_28/models/group_1045.py index 6162fd16b..297752b28 100644 --- a/githubkit/versions/v2022_11_28/models/group_1045.py +++ b/githubkit/versions/v2022_11_28/models/group_1045.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field from githubkit.utils import UNSET @@ -16,13 +18,36 @@ from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): - """TeamsTeamIdProjectsProjectIdPutResponse403""" - - message: Missing[str] = Field(default=UNSET) - documentation_url: Missing[str] = Field(default=UNSET) - - -model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) - -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) +class ReposOwnerRepoReleasesReleaseIdPatchBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" + + tag_name: Missing[str] = Field(default=UNSET, description="The name of the tag.") + target_commitish: Missing[str] = Field( + default=UNSET, + description="Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch.", + ) + name: Missing[str] = Field(default=UNSET, description="The name of the release.") + body: Missing[str] = Field( + default=UNSET, description="Text describing the contents of the tag." + ) + draft: Missing[bool] = Field( + default=UNSET, + description="`true` makes the release a draft, and `false` publishes the release.", + ) + prerelease: Missing[bool] = Field( + default=UNSET, + description="`true` to identify the release as a prerelease, `false` to identify the release as a full release.", + ) + make_latest: Missing[Literal["true", "false", "legacy"]] = Field( + default=UNSET, + description="Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version.", + ) + discussion_category_name: Missing[str] = Field( + default=UNSET, + description='If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)."', + ) + + +model_rebuild(ReposOwnerRepoReleasesReleaseIdPatchBody) + +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1046.py b/githubkit/versions/v2022_11_28/models/group_1046.py index 90c3c572e..8f99969f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1046.py +++ b/githubkit/versions/v2022_11_28/models/group_1046.py @@ -13,20 +13,17 @@ from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): - """TeamsTeamIdReposOwnerRepoPutBody""" +class ReposOwnerRepoReleasesReleaseIdReactionsPostBody(GitHubModel): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - 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.", + 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(TeamsTeamIdReposOwnerRepoPutBody) +model_rebuild(ReposOwnerRepoReleasesReleaseIdReactionsPostBody) -__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1047.py b/githubkit/versions/v2022_11_28/models/group_1047.py index db0d2249c..6f918765e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1047.py +++ b/githubkit/versions/v2022_11_28/models/group_1047.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Union +from typing import List, Union, Literal from pydantic import Field @@ -17,34 +17,79 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0115 import RepositoryRuleUpdate +from .group_0139 import RepositoryRuleOneof17 +from .group_0135 import RepositoryRuleWorkflows +from .group_0120 import RepositoryRulePullRequest +from .group_0137 import RepositoryRuleCodeScanning +from .group_0103 import RepositoryRulesetConditions +from .group_0102 import RepositoryRulesetBypassActor +from .group_0132 import RepositoryRuleTagNamePattern +from .group_0130 import RepositoryRuleBranchNamePattern +from .group_0118 import RepositoryRuleRequiredDeployments +from .group_0122 import RepositoryRuleRequiredStatusChecks +from .group_0124 import RepositoryRuleCommitMessagePattern +from .group_0128 import RepositoryRuleCommitterEmailPattern +from .group_0126 import RepositoryRuleCommitAuthorEmailPattern +from .group_0117 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory +from .group_0114 import ( + RepositoryRuleOneof14, + RepositoryRuleOneof16, + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class 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." +class ReposOwnerRepoRulesetsPostBody(GitHubModel): + """ReposOwnerRepoRulesetsPostBody""" + + name: str = Field(description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push"]] = Field( + default=UNSET, + description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", ) - location: Missing[str] = Field( - default=UNSET, description="The new location of the user." + 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)." ) - hireable: Missing[bool] = Field( - default=UNSET, description="The new hiring availability of the user." + bypass_actors: Missing[List[RepositoryRulesetBypassActor]] = Field( + default=UNSET, + description="The actors that can bypass the rules in this ruleset", ) - bio: Missing[str] = Field( - default=UNSET, description="The new short biography of the user." + 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, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(UserPatchBody) +model_rebuild(ReposOwnerRepoRulesetsPostBody) -__all__ = ("UserPatchBody",) +__all__ = ("ReposOwnerRepoRulesetsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1048.py b/githubkit/versions/v2022_11_28/models/group_1048.py index cc3ea3823..4d828c114 100644 --- a/githubkit/versions/v2022_11_28/models/group_1048.py +++ b/githubkit/versions/v2022_11_28/models/group_1048.py @@ -9,22 +9,88 @@ from __future__ import annotations -from typing import List +from typing import List, Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0072 import Codespace +from .group_0115 import RepositoryRuleUpdate +from .group_0139 import RepositoryRuleOneof17 +from .group_0135 import RepositoryRuleWorkflows +from .group_0120 import RepositoryRulePullRequest +from .group_0137 import RepositoryRuleCodeScanning +from .group_0103 import RepositoryRulesetConditions +from .group_0102 import RepositoryRulesetBypassActor +from .group_0132 import RepositoryRuleTagNamePattern +from .group_0130 import RepositoryRuleBranchNamePattern +from .group_0118 import RepositoryRuleRequiredDeployments +from .group_0122 import RepositoryRuleRequiredStatusChecks +from .group_0124 import RepositoryRuleCommitMessagePattern +from .group_0128 import RepositoryRuleCommitterEmailPattern +from .group_0126 import RepositoryRuleCommitAuthorEmailPattern +from .group_0117 import RepositoryRuleOneof15, RepositoryRuleRequiredLinearHistory +from .group_0114 import ( + RepositoryRuleOneof14, + RepositoryRuleOneof16, + RepositoryRuleCreation, + RepositoryRuleDeletion, + RepositoryRuleNonFastForward, + RepositoryRuleRequiredSignatures, +) -class UserCodespacesGetResponse200(GitHubModel): - """UserCodespacesGetResponse200""" +class ReposOwnerRepoRulesetsRulesetIdPutBody(GitHubModel): + """ReposOwnerRepoRulesetsRulesetIdPutBody""" - total_count: int = Field() - codespaces: List[Codespace] = Field() + name: Missing[str] = Field(default=UNSET, description="The name of the ruleset.") + target: Missing[Literal["branch", "tag", "push"]] = Field( + default=UNSET, + description="The target of the ruleset\n\n**Note**: The `push` target is in beta and is subject to change.", + ) + enforcement: Missing[Literal["disabled", "active", "evaluate"]] = Field( + default=UNSET, + description="The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).", + ) + 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, + RepositoryRuleRequiredDeployments, + RepositoryRuleRequiredSignatures, + RepositoryRulePullRequest, + RepositoryRuleRequiredStatusChecks, + RepositoryRuleNonFastForward, + RepositoryRuleCommitMessagePattern, + RepositoryRuleCommitAuthorEmailPattern, + RepositoryRuleCommitterEmailPattern, + RepositoryRuleBranchNamePattern, + RepositoryRuleTagNamePattern, + RepositoryRuleOneof14, + RepositoryRuleOneof15, + RepositoryRuleOneof16, + RepositoryRuleOneof17, + RepositoryRuleWorkflows, + RepositoryRuleCodeScanning, + ] + ] + ] = Field(default=UNSET, description="An array of rules within the ruleset.") -model_rebuild(UserCodespacesGetResponse200) +model_rebuild(ReposOwnerRepoRulesetsRulesetIdPutBody) -__all__ = ("UserCodespacesGetResponse200",) +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1049.py b/githubkit/versions/v2022_11_28/models/group_1049.py index a33f8e1b9..e2b827b1b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1049.py +++ b/githubkit/versions/v2022_11_28/models/group_1049.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -18,53 +18,24 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesPostBodyOneof0(GitHubModel): - """UserCodespacesPostBodyOneof0""" +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody(GitHubModel): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - repository_id: int = Field(description="Repository id for this codespace") - ref: Missing[str] = Field( - default=UNSET, - description="Git ref (typically a branch name) for this codespace", - ) - location: Missing[str] = Field( - default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", - ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", - ) - client_ip: Missing[str] = Field( - default=UNSET, - description="IP for location auto-detection when proxying a request", + 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`." ) - 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( + resolution: Missing[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] = Field( default=UNSET, - description="Whether to authorize requested permissions from devcontainer.json", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" - ) - idle_timeout_minutes: Missing[int] = Field( - default=UNSET, - description="Time in minutes before codespace stops from inactivity", - ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" + description="**Required when the `state` is `resolved`.** The reason for resolving the alert.", ) - retention_period_minutes: Missing[int] = Field( + resolution_comment: Missing[Union[str, None]] = Field( default=UNSET, - description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", + description="An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`.", ) -model_rebuild(UserCodespacesPostBodyOneof0) +model_rebuild(ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody) -__all__ = ("UserCodespacesPostBodyOneof0",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1050.py b/githubkit/versions/v2022_11_28/models/group_1050.py index b9b4defa0..c68c08211 100644 --- a/githubkit/versions/v2022_11_28/models/group_1050.py +++ b/githubkit/versions/v2022_11_28/models/group_1050.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from pydantic import Field @@ -18,50 +18,25 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesPostBodyOneof1(GitHubModel): - """UserCodespacesPostBodyOneof1""" +class ReposOwnerRepoStatusesShaPostBody(GitHubModel): + """ReposOwnerRepoStatusesShaPostBody""" - pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( - description="Pull request number for this codespace" + state: Literal["error", "failure", "pending", "success"] = Field( + description="The state of the status." ) - location: Missing[str] = Field( + target_url: Missing[Union[str, None]] = Field( default=UNSET, - description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + description="The 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`", ) - geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( - default=UNSET, - description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", - ) - machine: Missing[str] = Field( - default=UNSET, description="Machine type to use for this codespace" - ) - devcontainer_path: Missing[str] = Field( - default=UNSET, - description="Path to devcontainer.json config to use for this codespace", - ) - working_directory: Missing[str] = Field( - default=UNSET, description="Working directory for this codespace" + description: Missing[Union[str, None]] = Field( + default=UNSET, description="A short description of the status." ) - idle_timeout_minutes: Missing[int] = Field( + context: Missing[str] = Field( default=UNSET, - description="Time in minutes before codespace stops from inactivity", + description="A string label to differentiate this status from the status of other systems. This field is case-insensitive.", ) -class UserCodespacesPostBodyOneof1PropPullRequest(GitHubModel): - """UserCodespacesPostBodyOneof1PropPullRequest - - Pull request number for this codespace - """ - - pull_request_number: int = Field(description="Pull request number") - repository_id: int = Field(description="Repository id for this codespace") - - -model_rebuild(UserCodespacesPostBodyOneof1) -model_rebuild(UserCodespacesPostBodyOneof1PropPullRequest) +model_rebuild(ReposOwnerRepoStatusesShaPostBody) -__all__ = ( - "UserCodespacesPostBodyOneof1", - "UserCodespacesPostBodyOneof1PropPullRequest", -) +__all__ = ("ReposOwnerRepoStatusesShaPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1051.py b/githubkit/versions/v2022_11_28/models/group_1051.py index 5d7718128..140c5808c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1051.py +++ b/githubkit/versions/v2022_11_28/models/group_1051.py @@ -9,46 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesSecretsGetResponse200(GitHubModel): - """UserCodespacesSecretsGetResponse200""" - - total_count: int = Field() - secrets: List[CodespacesSecret] = Field() - - -class CodespacesSecret(GitHubModel): - """Codespaces Secret +class ReposOwnerRepoSubscriptionPutBody(GitHubModel): + """ReposOwnerRepoSubscriptionPutBody""" - 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" + subscribed: Missing[bool] = Field( + default=UNSET, + description="Determines if notifications should be received from this repository.", ) - selected_repositories_url: str = Field( - description="The API URL at which the list of repositories this secret is visible to can be retrieved" + ignored: Missing[bool] = Field( + default=UNSET, + description="Determines if all notifications should be blocked from this repository.", ) -model_rebuild(UserCodespacesSecretsGetResponse200) -model_rebuild(CodespacesSecret) +model_rebuild(ReposOwnerRepoSubscriptionPutBody) -__all__ = ( - "UserCodespacesSecretsGetResponse200", - "CodespacesSecret", -) +__all__ = ("ReposOwnerRepoSubscriptionPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1052.py b/githubkit/versions/v2022_11_28/models/group_1052.py index 9fb8ed282..59aae89ec 100644 --- a/githubkit/versions/v2022_11_28/models/group_1052.py +++ b/githubkit/versions/v2022_11_28/models/group_1052.py @@ -9,30 +9,19 @@ from __future__ import annotations -from typing import List, Union - from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesSecretsSecretNamePutBody(GitHubModel): - """UserCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoTagsProtectionPostBody(GitHubModel): + """ReposOwnerRepoTagsProtectionPostBody""" - 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.", + pattern: str = Field( + description="An optional glob pattern to match against when enforcing tag protection." ) -model_rebuild(UserCodespacesSecretsSecretNamePutBody) +model_rebuild(ReposOwnerRepoTagsProtectionPostBody) -__all__ = ("UserCodespacesSecretsSecretNamePutBody",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1053.py b/githubkit/versions/v2022_11_28/models/group_1053.py index 1fdbc5ca7..e248ddcbd 100644 --- a/githubkit/versions/v2022_11_28/models/group_1053.py +++ b/githubkit/versions/v2022_11_28/models/group_1053.py @@ -15,16 +15,15 @@ from githubkit.compat import GitHubModel, model_rebuild -from .group_0051 import MinimalRepository +class ReposOwnerRepoTopicsPutBody(GitHubModel): + """ReposOwnerRepoTopicsPutBody""" -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + names: List[str] = Field( + description="An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters." + ) - total_count: int = Field() - repositories: List[MinimalRepository] = Field() +model_rebuild(ReposOwnerRepoTopicsPutBody) -model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) +__all__ = ("ReposOwnerRepoTopicsPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1054.py b/githubkit/versions/v2022_11_28/models/group_1054.py index f81f21b85..8e53926f6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1054.py +++ b/githubkit/versions/v2022_11_28/models/group_1054.py @@ -13,17 +13,26 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" +class ReposOwnerRepoTransferPostBody(GitHubModel): + """ReposOwnerRepoTransferPostBody""" - 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." + 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(UserCodespacesSecretsSecretNameRepositoriesPutBody) +model_rebuild(ReposOwnerRepoTransferPostBody) -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) +__all__ = ("ReposOwnerRepoTransferPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1055.py b/githubkit/versions/v2022_11_28/models/group_1055.py index 5edeb55cb..a7818cc81 100644 --- a/githubkit/versions/v2022_11_28/models/group_1055.py +++ b/githubkit/versions/v2022_11_28/models/group_1055.py @@ -9,8 +9,6 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.utils import UNSET @@ -18,21 +16,27 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesCodespaceNamePatchBody(GitHubModel): - """UserCodespacesCodespaceNamePatchBody""" +class ReposTemplateOwnerTemplateRepoGeneratePostBody(GitHubModel): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - machine: Missing[str] = Field( - default=UNSET, description="A valid machine to transition this codespace 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.", ) - display_name: Missing[str] = Field( - default=UNSET, description="Display name for this codespace" + name: str = Field(description="The name of the new repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the new repository." + ) + include_all_branches: Missing[bool] = Field( + default=UNSET, + description="Set to `true` to include the directory structure and files from all branches in the template repository, and not just the default branch. Default: `false`.", ) - recent_folders: Missing[List[str]] = Field( + private: Missing[bool] = Field( default=UNSET, - description="Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in.", + description="Either `true` to create a new private repository or `false` to create a new public one.", ) -model_rebuild(UserCodespacesCodespaceNamePatchBody) +model_rebuild(ReposTemplateOwnerTemplateRepoGeneratePostBody) -__all__ = ("UserCodespacesCodespaceNamePatchBody",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1056.py b/githubkit/versions/v2022_11_28/models/group_1056.py index 0dcd65de2..ff25ca816 100644 --- a/githubkit/versions/v2022_11_28/models/group_1056.py +++ b/githubkit/versions/v2022_11_28/models/group_1056.py @@ -9,22 +9,41 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0071 import CodespaceMachine - -class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): - """UserCodespacesCodespaceNameMachinesGetResponse200""" - - total_count: int = Field() - machines: List[CodespaceMachine] = Field() - - -model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) +class TeamsTeamIdPatchBody(GitHubModel): + """TeamsTeamIdPatchBody""" + + name: str = Field(description="The name of the team.") + description: Missing[str] = Field( + default=UNSET, description="The description of the team." + ) + privacy: Missing[Literal["secret", "closed"]] = Field( + default=UNSET, + description="The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n * `secret` - only visible to organization owners and members of this team. \n * `closed` - visible to all members of this organization. \n**For a parent or child team:** \n * `closed` - visible to all members of this organization.", + ) + notification_setting: Missing[ + Literal["notifications_enabled", "notifications_disabled"] + ] = Field( + default=UNSET, + description="The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + ) + permission: Missing[Literal["pull", "push", "admin"]] = Field( + default=UNSET, + description="**Deprecated**. The permission that new repositories will be added to the team with when none is specified.", + ) + parent_team_id: Missing[Union[int, None]] = Field( + default=UNSET, description="The ID of a team to set as the parent team." + ) + + +model_rebuild(TeamsTeamIdPatchBody) + +__all__ = ("TeamsTeamIdPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1057.py b/githubkit/versions/v2022_11_28/models/group_1057.py index 574036b59..9e0151a61 100644 --- a/githubkit/versions/v2022_11_28/models/group_1057.py +++ b/githubkit/versions/v2022_11_28/models/group_1057.py @@ -16,17 +16,17 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): - """UserCodespacesCodespaceNamePublishPostBody""" +class TeamsTeamIdDiscussionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsPostBody""" - name: Missing[str] = Field( - default=UNSET, description="A name for the new repository." - ) + 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="Whether the new repository should be private." + default=UNSET, + description="Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", ) -model_rebuild(UserCodespacesCodespaceNamePublishPostBody) +model_rebuild(TeamsTeamIdDiscussionsPostBody) -__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) +__all__ = ("TeamsTeamIdDiscussionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1058.py b/githubkit/versions/v2022_11_28/models/group_1058.py index 04c6a0578..8c9998ba6 100644 --- a/githubkit/versions/v2022_11_28/models/group_1058.py +++ b/githubkit/versions/v2022_11_28/models/group_1058.py @@ -9,21 +9,24 @@ from __future__ import annotations -from typing import Literal - from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserEmailVisibilityPatchBody(GitHubModel): - """UserEmailVisibilityPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - visibility: Literal["public", "private"] = Field( - description="Denotes whether an email is publicly visible." + 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(UserEmailVisibilityPatchBody) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberPatchBody) -__all__ = ("UserEmailVisibilityPatchBody",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1059.py b/githubkit/versions/v2022_11_28/models/group_1059.py index 40687cc1f..2333d1363 100644 --- a/githubkit/versions/v2022_11_28/models/group_1059.py +++ b/githubkit/versions/v2022_11_28/models/group_1059.py @@ -9,25 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class UserEmailsPostBodyOneof0(GitHubModel): - """UserEmailsPostBodyOneof0 - - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" - emails: List[str] = Field( - description="Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key." - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(UserEmailsPostBodyOneof0) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody) -__all__ = ("UserEmailsPostBodyOneof0",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1060.py b/githubkit/versions/v2022_11_28/models/group_1060.py index c2aace7bb..a44a260ff 100644 --- a/githubkit/versions/v2022_11_28/models/group_1060.py +++ b/githubkit/versions/v2022_11_28/models/group_1060.py @@ -9,30 +9,17 @@ from __future__ import annotations -from typing import List - from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class UserEmailsDeleteBodyOneof0(GitHubModel): - """UserEmailsDeleteBodyOneof0 - - Deletes one or more email addresses from your GitHub account. Must contain at - least one email address. **Note:** Alternatively, you can pass a single email - address or an `array` of emails addresses directly, but we recommend that you - pass an object using the `emails` key. - - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - emails: List[str] = Field( - description="Email addresses associated with the GitHub user account." - ) + body: str = Field(description="The discussion comment's body text.") -model_rebuild(UserEmailsDeleteBodyOneof0) +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody) -__all__ = ("UserEmailsDeleteBodyOneof0",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1061.py b/githubkit/versions/v2022_11_28/models/group_1061.py index f6a483044..df888d74e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1061.py +++ b/githubkit/versions/v2022_11_28/models/group_1061.py @@ -9,22 +9,29 @@ from __future__ import annotations +from typing import Literal + from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserGpgKeysPostBody(GitHubModel): - """UserGpgKeysPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody( + GitHubModel +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - name: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] = Field( + description="The [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions) to add to the team discussion comment." ) - armored_public_key: str = Field(description="A GPG key in ASCII-armored format.") -model_rebuild(UserGpgKeysPostBody) +model_rebuild( + TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody +) -__all__ = ("UserGpgKeysPostBody",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1062.py b/githubkit/versions/v2022_11_28/models/group_1062.py index 50efae3c7..1657765ee 100644 --- a/githubkit/versions/v2022_11_28/models/group_1062.py +++ b/githubkit/versions/v2022_11_28/models/group_1062.py @@ -9,22 +9,23 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -from .group_0015 import Installation +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody(GitHubModel): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" -class UserInstallationsGetResponse200(GitHubModel): - """UserInstallationsGetResponse200""" + 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." + ) - total_count: int = Field() - installations: List[Installation] = Field() +model_rebuild(TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody) -model_rebuild(UserInstallationsGetResponse200) - -__all__ = ("UserInstallationsGetResponse200",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1063.py b/githubkit/versions/v2022_11_28/models/group_1063.py index 462d4423d..913551bc8 100644 --- a/githubkit/versions/v2022_11_28/models/group_1063.py +++ b/githubkit/versions/v2022_11_28/models/group_1063.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field @@ -17,17 +17,15 @@ from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -from .group_0017 import Repository +class TeamsTeamIdMembershipsUsernamePutBody(GitHubModel): + """TeamsTeamIdMembershipsUsernamePutBody""" -class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" + role: Missing[Literal["member", "maintainer"]] = Field( + default=UNSET, description="The role that this user should have in the team." + ) - total_count: int = Field() - repository_selection: Missing[str] = Field(default=UNSET) - repositories: List[Repository] = Field() +model_rebuild(TeamsTeamIdMembershipsUsernamePutBody) -model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) - -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1064.py b/githubkit/versions/v2022_11_28/models/group_1064.py index 09cbf54e3..7e46c7317 100644 --- a/githubkit/versions/v2022_11_28/models/group_1064.py +++ b/githubkit/versions/v2022_11_28/models/group_1064.py @@ -9,13 +9,24 @@ from __future__ import annotations +from typing import Literal + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): - """UserInteractionLimitsGetResponse200Anyof1""" +class TeamsTeamIdProjectsProjectIdPutBody(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutBody""" + + 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(UserInteractionLimitsGetResponse200Anyof1) +model_rebuild(TeamsTeamIdProjectsProjectIdPutBody) -__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1065.py b/githubkit/versions/v2022_11_28/models/group_1065.py index c2167fcac..6162fd16b 100644 --- a/githubkit/versions/v2022_11_28/models/group_1065.py +++ b/githubkit/versions/v2022_11_28/models/group_1065.py @@ -16,18 +16,13 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserKeysPostBody(GitHubModel): - """UserKeysPostBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403(GitHubModel): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - title: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." - ) - key: str = Field( - pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ", - description="The public SSH key to add to your GitHub account.", - ) + message: Missing[str] = Field(default=UNSET) + documentation_url: Missing[str] = Field(default=UNSET) -model_rebuild(UserKeysPostBody) +model_rebuild(TeamsTeamIdProjectsProjectIdPutResponse403) -__all__ = ("UserKeysPostBody",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403",) diff --git a/githubkit/versions/v2022_11_28/models/group_1066.py b/githubkit/versions/v2022_11_28/models/group_1066.py index 9b771b5c3..90c3c572e 100644 --- a/githubkit/versions/v2022_11_28/models/group_1066.py +++ b/githubkit/versions/v2022_11_28/models/group_1066.py @@ -13,17 +13,20 @@ from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserMembershipsOrgsOrgPatchBody(GitHubModel): - """UserMembershipsOrgsOrgPatchBody""" +class TeamsTeamIdReposOwnerRepoPutBody(GitHubModel): + """TeamsTeamIdReposOwnerRepoPutBody""" - state: Literal["active"] = Field( - description='The state that the membership should be in. Only `"active"` will be accepted.' + 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(UserMembershipsOrgsOrgPatchBody) +model_rebuild(TeamsTeamIdReposOwnerRepoPutBody) -__all__ = ("UserMembershipsOrgsOrgPatchBody",) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1067.py b/githubkit/versions/v2022_11_28/models/group_1067.py index 994900d2d..db0d2249c 100644 --- a/githubkit/versions/v2022_11_28/models/group_1067.py +++ b/githubkit/versions/v2022_11_28/models/group_1067.py @@ -9,7 +9,7 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union from pydantic import Field @@ -18,42 +18,33 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserMigrationsPostBody(GitHubModel): - """UserMigrationsPostBody""" +class UserPatchBody(GitHubModel): + """UserPatchBody""" - lock_repositories: Missing[bool] = Field( - default=UNSET, - description="Lock the repositories being migrated at the start of the migration", + 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." ) - exclude_metadata: Missing[bool] = Field( - default=UNSET, - description="Indicates whether metadata should be excluded and only git source should be included for the migration.", + blog: Missing[str] = Field( + default=UNSET, description="The new blog URL of the user." ) - exclude_git_data: Missing[bool] = Field( - default=UNSET, - description="Indicates whether the repository git data should be excluded from the migration.", + twitter_username: Missing[Union[str, None]] = Field( + default=UNSET, description="The new Twitter username of the user." ) - exclude_attachments: Missing[bool] = Field( - default=UNSET, description="Do not include attachments in the migration" + company: Missing[str] = Field( + default=UNSET, description="The new company of the user." ) - exclude_releases: Missing[bool] = Field( - default=UNSET, description="Do not include releases in the migration" + location: Missing[str] = Field( + default=UNSET, description="The new location of the user." ) - exclude_owner_projects: Missing[bool] = Field( - default=UNSET, - description="Indicates whether projects owned by the organization or users should be excluded.", + hireable: Missing[bool] = Field( + default=UNSET, description="The new hiring availability of the user." ) - 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).", + bio: Missing[str] = Field( + default=UNSET, description="The new short biography of the user." ) - 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(UserPatchBody) -__all__ = ("UserMigrationsPostBody",) +__all__ = ("UserPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1068.py b/githubkit/versions/v2022_11_28/models/group_1068.py index e16a36610..d94c6a295 100644 --- a/githubkit/versions/v2022_11_28/models/group_1068.py +++ b/githubkit/versions/v2022_11_28/models/group_1068.py @@ -9,24 +9,22 @@ from __future__ import annotations -from typing import Union +from typing import List from pydantic import Field -from githubkit.utils import UNSET -from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild +from .group_0078 import Codespace -class UserProjectsPostBody(GitHubModel): - """UserProjectsPostBody""" - name: str = Field(description="Name of the project") - body: Missing[Union[str, None]] = Field( - default=UNSET, description="Body of the project" - ) +class UserCodespacesGetResponse200(GitHubModel): + """UserCodespacesGetResponse200""" + total_count: int = Field() + codespaces: List[Codespace] = Field() -model_rebuild(UserProjectsPostBody) -__all__ = ("UserProjectsPostBody",) +model_rebuild(UserCodespacesGetResponse200) + +__all__ = ("UserCodespacesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1069.py b/githubkit/versions/v2022_11_28/models/group_1069.py index e0fe3d9d9..a33f8e1b9 100644 --- a/githubkit/versions/v2022_11_28/models/group_1069.py +++ b/githubkit/versions/v2022_11_28/models/group_1069.py @@ -18,93 +18,53 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserReposPostBody(GitHubModel): - """UserReposPostBody""" +class UserCodespacesPostBodyOneof0(GitHubModel): + """UserCodespacesPostBodyOneof0""" - 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( + repository_id: int = Field(description="Repository id for this codespace") + ref: Missing[str] = 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.", + description="Git ref (typically a branch name) for this codespace", ) - auto_init: Missing[bool] = Field( + location: Missing[str] = Field( default=UNSET, - description="Whether the repository is initialized with a minimal README.", + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", ) - gitignore_template: Missing[str] = Field( + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( default=UNSET, - description="The desired language or platform to apply to the .gitignore.", + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", ) - license_template: Missing[str] = Field( + client_ip: Missing[str] = Field( default=UNSET, - description="The license keyword of the open source license for this repository.", + description="IP for location auto-detection when proxying a request", ) - allow_squash_merge: Missing[bool] = Field( - default=UNSET, description="Whether to allow squash merges for pull requests." + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" ) - allow_merge_commit: Missing[bool] = Field( - default=UNSET, description="Whether to 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( + devcontainer_path: Missing[str] = Field( default=UNSET, - description="Whether to delete head branches when pull requests are merged", - ) - squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( - Field( - default=UNSET, - description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", - ) + description="Path to devcontainer.json config to use for this codespace", ) - squash_merge_commit_message: Missing[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] = Field( + multi_repo_permissions_opt_out: 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.", + description="Whether to authorize requested permissions from devcontainer.json", ) - merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( - default=UNSET, - description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" ) - merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + idle_timeout_minutes: Missing[int] = Field( default=UNSET, - description="The default value for a merge commit message.\n\n- `PR_TITLE` - default 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="Time in minutes before codespace stops from inactivity", ) - has_downloads: Missing[bool] = Field( - default=UNSET, description="Whether downloads are enabled." + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" ) - is_template: Missing[bool] = Field( + retention_period_minutes: Missing[int] = Field( default=UNSET, - description="Whether this repository acts as a template that can be used to generate new repositories.", + description="Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).", ) -model_rebuild(UserReposPostBody) +model_rebuild(UserCodespacesPostBodyOneof0) -__all__ = ("UserReposPostBody",) +__all__ = ("UserCodespacesPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1070.py b/githubkit/versions/v2022_11_28/models/group_1070.py index 3f7092ec4..b9b4defa0 100644 --- a/githubkit/versions/v2022_11_28/models/group_1070.py +++ b/githubkit/versions/v2022_11_28/models/group_1070.py @@ -9,26 +9,59 @@ from __future__ import annotations -from typing import List +from typing import Literal from pydantic import Field +from githubkit.utils import UNSET +from githubkit.typing import Missing from githubkit.compat import GitHubModel, model_rebuild -class UserSocialAccountsPostBody(GitHubModel): - """UserSocialAccountsPostBody +class UserCodespacesPostBodyOneof1(GitHubModel): + """UserCodespacesPostBodyOneof1""" - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} + pull_request: UserCodespacesPostBodyOneof1PropPullRequest = Field( + description="Pull request number for this codespace" + ) + location: Missing[str] = Field( + default=UNSET, + description="The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided.", + ) + geo: Missing[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] = Field( + default=UNSET, + description="The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated.", + ) + machine: Missing[str] = Field( + default=UNSET, description="Machine type to use for this codespace" + ) + devcontainer_path: Missing[str] = Field( + default=UNSET, + description="Path to devcontainer.json config to use for this codespace", + ) + working_directory: Missing[str] = Field( + default=UNSET, description="Working directory for this codespace" + ) + idle_timeout_minutes: Missing[int] = Field( + default=UNSET, + description="Time in minutes before codespace stops from inactivity", + ) + + +class UserCodespacesPostBodyOneof1PropPullRequest(GitHubModel): + """UserCodespacesPostBodyOneof1PropPullRequest + + Pull request number for this codespace """ - account_urls: List[str] = Field( - description="Full URLs for the social media profiles to add." - ) + pull_request_number: int = Field(description="Pull request number") + repository_id: int = Field(description="Repository id for this codespace") -model_rebuild(UserSocialAccountsPostBody) +model_rebuild(UserCodespacesPostBodyOneof1) +model_rebuild(UserCodespacesPostBodyOneof1PropPullRequest) -__all__ = ("UserSocialAccountsPostBody",) +__all__ = ( + "UserCodespacesPostBodyOneof1", + "UserCodespacesPostBodyOneof1PropPullRequest", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1071.py b/githubkit/versions/v2022_11_28/models/group_1071.py index a8664c5d3..5d7718128 100644 --- a/githubkit/versions/v2022_11_28/models/group_1071.py +++ b/githubkit/versions/v2022_11_28/models/group_1071.py @@ -9,26 +9,46 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Literal from pydantic import Field from githubkit.compat import GitHubModel, model_rebuild -class UserSocialAccountsDeleteBody(GitHubModel): - """UserSocialAccountsDeleteBody +class UserCodespacesSecretsGetResponse200(GitHubModel): + """UserCodespacesSecretsGetResponse200""" - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} + total_count: int = Field() + secrets: List[CodespacesSecret] = Field() + + +class CodespacesSecret(GitHubModel): + """Codespaces Secret + + Secrets for a GitHub Codespace. """ - account_urls: List[str] = Field( - description="Full URLs for the social media profiles to delete." + 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(UserSocialAccountsDeleteBody) +model_rebuild(UserCodespacesSecretsGetResponse200) +model_rebuild(CodespacesSecret) -__all__ = ("UserSocialAccountsDeleteBody",) +__all__ = ( + "UserCodespacesSecretsGetResponse200", + "CodespacesSecret", +) diff --git a/githubkit/versions/v2022_11_28/models/group_1072.py b/githubkit/versions/v2022_11_28/models/group_1072.py index 4ac5db45a..9fb8ed282 100644 --- a/githubkit/versions/v2022_11_28/models/group_1072.py +++ b/githubkit/versions/v2022_11_28/models/group_1072.py @@ -9,6 +9,8 @@ from __future__ import annotations +from typing import List, Union + from pydantic import Field from githubkit.utils import UNSET @@ -16,18 +18,21 @@ from githubkit.compat import GitHubModel, model_rebuild -class UserSshSigningKeysPostBody(GitHubModel): - """UserSshSigningKeysPostBody""" +class UserCodespacesSecretsSecretNamePutBody(GitHubModel): + """UserCodespacesSecretsSecretNamePutBody""" - title: Missing[str] = Field( - default=UNSET, description="A descriptive name for the new key." + encrypted_value: Missing[str] = Field( + pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$", + default=UNSET, + description="Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get the public key for the authenticated user](https://docs.github.com/rest/codespaces/secrets#get-public-key-for-the-authenticated-user) endpoint.", ) - key: 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)."', + 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(UserSshSigningKeysPostBody) +model_rebuild(UserCodespacesSecretsSecretNamePutBody) -__all__ = ("UserSshSigningKeysPostBody",) +__all__ = ("UserCodespacesSecretsSecretNamePutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1073.py b/githubkit/versions/v2022_11_28/models/group_1073.py new file mode 100644 index 000000000..b37a1df50 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1073.py @@ -0,0 +1,30 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0055 import MinimalRepository + + +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + + total_count: int = Field() + repositories: List[MinimalRepository] = Field() + + +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesGetResponse200) + +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1074.py b/githubkit/versions/v2022_11_28/models/group_1074.py new file mode 100644 index 000000000..f81f21b85 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1074.py @@ -0,0 +1,29 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserCodespacesSecretsSecretNameRepositoriesPutBody(GitHubModel): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" + + selected_repository_ids: List[int] = Field( + description="An array of repository ids for which a codespace can access the secret. You can manage the list of selected repositories using the [List selected repositories for a user secret](https://docs.github.com/rest/codespaces/secrets#list-selected-repositories-for-a-user-secret), [Add a selected repository to a user secret](https://docs.github.com/rest/codespaces/secrets#add-a-selected-repository-to-a-user-secret), and [Remove a selected repository from a user secret](https://docs.github.com/rest/codespaces/secrets#remove-a-selected-repository-from-a-user-secret) endpoints." + ) + + +model_rebuild(UserCodespacesSecretsSecretNameRepositoriesPutBody) + +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1075.py b/githubkit/versions/v2022_11_28/models/group_1075.py new file mode 100644 index 000000000..5edeb55cb --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1075.py @@ -0,0 +1,38 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UserCodespacesCodespaceNamePatchBody(GitHubModel): + """UserCodespacesCodespaceNamePatchBody""" + + machine: Missing[str] = Field( + default=UNSET, description="A valid machine to transition this codespace to." + ) + display_name: Missing[str] = Field( + default=UNSET, description="Display name for this codespace" + ) + recent_folders: Missing[List[str]] = Field( + default=UNSET, + description="Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in.", + ) + + +model_rebuild(UserCodespacesCodespaceNamePatchBody) + +__all__ = ("UserCodespacesCodespaceNamePatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1076.py b/githubkit/versions/v2022_11_28/models/group_1076.py new file mode 100644 index 000000000..d3bdc9f71 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1076.py @@ -0,0 +1,30 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0077 import CodespaceMachine + + +class UserCodespacesCodespaceNameMachinesGetResponse200(GitHubModel): + """UserCodespacesCodespaceNameMachinesGetResponse200""" + + total_count: int = Field() + machines: List[CodespaceMachine] = Field() + + +model_rebuild(UserCodespacesCodespaceNameMachinesGetResponse200) + +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1077.py b/githubkit/versions/v2022_11_28/models/group_1077.py new file mode 100644 index 000000000..574036b59 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1077.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UserCodespacesCodespaceNamePublishPostBody(GitHubModel): + """UserCodespacesCodespaceNamePublishPostBody""" + + name: Missing[str] = Field( + default=UNSET, description="A name for the new repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the new repository should be private." + ) + + +model_rebuild(UserCodespacesCodespaceNamePublishPostBody) + +__all__ = ("UserCodespacesCodespaceNamePublishPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1078.py b/githubkit/versions/v2022_11_28/models/group_1078.py new file mode 100644 index 000000000..04c6a0578 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1078.py @@ -0,0 +1,29 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserEmailVisibilityPatchBody(GitHubModel): + """UserEmailVisibilityPatchBody""" + + visibility: Literal["public", "private"] = Field( + description="Denotes whether an email is publicly visible." + ) + + +model_rebuild(UserEmailVisibilityPatchBody) + +__all__ = ("UserEmailVisibilityPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1079.py b/githubkit/versions/v2022_11_28/models/group_1079.py new file mode 100644 index 000000000..40687cc1f --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1079.py @@ -0,0 +1,33 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserEmailsPostBodyOneof0(GitHubModel): + """UserEmailsPostBodyOneof0 + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + + emails: List[str] = Field( + description="Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key." + ) + + +model_rebuild(UserEmailsPostBodyOneof0) + +__all__ = ("UserEmailsPostBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1080.py b/githubkit/versions/v2022_11_28/models/group_1080.py new file mode 100644 index 000000000..c2aace7bb --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1080.py @@ -0,0 +1,38 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserEmailsDeleteBodyOneof0(GitHubModel): + """UserEmailsDeleteBodyOneof0 + + Deletes one or more email addresses from your GitHub account. Must contain at + least one email address. **Note:** Alternatively, you can pass a single email + address or an `array` of emails addresses directly, but we recommend that you + pass an object using the `emails` key. + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + + emails: List[str] = Field( + description="Email addresses associated with the GitHub user account." + ) + + +model_rebuild(UserEmailsDeleteBodyOneof0) + +__all__ = ("UserEmailsDeleteBodyOneof0",) diff --git a/githubkit/versions/v2022_11_28/models/group_1081.py b/githubkit/versions/v2022_11_28/models/group_1081.py new file mode 100644 index 000000000..f6a483044 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1081.py @@ -0,0 +1,30 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UserGpgKeysPostBody(GitHubModel): + """UserGpgKeysPostBody""" + + name: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." + ) + armored_public_key: str = Field(description="A GPG key in ASCII-armored format.") + + +model_rebuild(UserGpgKeysPostBody) + +__all__ = ("UserGpgKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1082.py b/githubkit/versions/v2022_11_28/models/group_1082.py new file mode 100644 index 000000000..50efae3c7 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1082.py @@ -0,0 +1,30 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0015 import Installation + + +class UserInstallationsGetResponse200(GitHubModel): + """UserInstallationsGetResponse200""" + + total_count: int = Field() + installations: List[Installation] = Field() + + +model_rebuild(UserInstallationsGetResponse200) + +__all__ = ("UserInstallationsGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1083.py b/githubkit/versions/v2022_11_28/models/group_1083.py new file mode 100644 index 000000000..462d4423d --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1083.py @@ -0,0 +1,33 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + +from .group_0017 import Repository + + +class UserInstallationsInstallationIdRepositoriesGetResponse200(GitHubModel): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" + + total_count: int = Field() + repository_selection: Missing[str] = Field(default=UNSET) + repositories: List[Repository] = Field() + + +model_rebuild(UserInstallationsInstallationIdRepositoriesGetResponse200) + +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200",) diff --git a/githubkit/versions/v2022_11_28/models/group_1084.py b/githubkit/versions/v2022_11_28/models/group_1084.py new file mode 100644 index 000000000..09cbf54e3 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1084.py @@ -0,0 +1,21 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserInteractionLimitsGetResponse200Anyof1(GitHubModel): + """UserInteractionLimitsGetResponse200Anyof1""" + + +model_rebuild(UserInteractionLimitsGetResponse200Anyof1) + +__all__ = ("UserInteractionLimitsGetResponse200Anyof1",) diff --git a/githubkit/versions/v2022_11_28/models/group_1085.py b/githubkit/versions/v2022_11_28/models/group_1085.py new file mode 100644 index 000000000..c2167fcac --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1085.py @@ -0,0 +1,33 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UserKeysPostBody(GitHubModel): + """UserKeysPostBody""" + + title: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." + ) + key: str = Field( + pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) ", + description="The public SSH key to add to your GitHub account.", + ) + + +model_rebuild(UserKeysPostBody) + +__all__ = ("UserKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1086.py b/githubkit/versions/v2022_11_28/models/group_1086.py new file mode 100644 index 000000000..9b771b5c3 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1086.py @@ -0,0 +1,29 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserMembershipsOrgsOrgPatchBody(GitHubModel): + """UserMembershipsOrgsOrgPatchBody""" + + state: Literal["active"] = Field( + description='The state that the membership should be in. Only `"active"` will be accepted.' + ) + + +model_rebuild(UserMembershipsOrgsOrgPatchBody) + +__all__ = ("UserMembershipsOrgsOrgPatchBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1087.py b/githubkit/versions/v2022_11_28/models/group_1087.py new file mode 100644 index 000000000..994900d2d --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1087.py @@ -0,0 +1,59 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List, Literal + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UserMigrationsPostBody(GitHubModel): + """UserMigrationsPostBody""" + + lock_repositories: Missing[bool] = Field( + default=UNSET, + description="Lock the repositories being migrated at the start of the migration", + ) + exclude_metadata: Missing[bool] = Field( + default=UNSET, + description="Indicates whether metadata should be excluded and only git source should be included for the migration.", + ) + exclude_git_data: Missing[bool] = Field( + default=UNSET, + description="Indicates whether the repository git data should be excluded from the migration.", + ) + exclude_attachments: Missing[bool] = Field( + default=UNSET, description="Do not include attachments in the migration" + ) + exclude_releases: Missing[bool] = Field( + default=UNSET, description="Do not include releases in the migration" + ) + exclude_owner_projects: Missing[bool] = Field( + default=UNSET, + description="Indicates whether projects owned by the organization or users should be excluded.", + ) + org_metadata_only: Missing[bool] = Field( + default=UNSET, + description="Indicates whether this should only include organization metadata (repositories array should be empty and will ignore other flags).", + ) + exclude: Missing[List[Literal["repositories"]]] = Field( + default=UNSET, + description="Exclude attributes from the API response to improve performance", + ) + repositories: List[str] = Field() + + +model_rebuild(UserMigrationsPostBody) + +__all__ = ("UserMigrationsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1088.py b/githubkit/versions/v2022_11_28/models/group_1088.py new file mode 100644 index 000000000..e16a36610 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1088.py @@ -0,0 +1,32 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UserProjectsPostBody(GitHubModel): + """UserProjectsPostBody""" + + name: str = Field(description="Name of the project") + body: Missing[Union[str, None]] = Field( + default=UNSET, description="Body of the project" + ) + + +model_rebuild(UserProjectsPostBody) + +__all__ = ("UserProjectsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1089.py b/githubkit/versions/v2022_11_28/models/group_1089.py new file mode 100644 index 000000000..e0fe3d9d9 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1089.py @@ -0,0 +1,110 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UserReposPostBody(GitHubModel): + """UserReposPostBody""" + + name: str = Field(description="The name of the repository.") + description: Missing[str] = Field( + default=UNSET, description="A short description of the repository." + ) + homepage: Missing[str] = Field( + default=UNSET, description="A URL with more information about the repository." + ) + private: Missing[bool] = Field( + default=UNSET, description="Whether the repository is private." + ) + has_issues: Missing[bool] = Field( + default=UNSET, description="Whether issues are enabled." + ) + has_projects: Missing[bool] = Field( + default=UNSET, description="Whether projects are enabled." + ) + has_wiki: Missing[bool] = Field( + default=UNSET, description="Whether the wiki is enabled." + ) + has_discussions: Missing[bool] = Field( + default=UNSET, description="Whether discussions are enabled." + ) + team_id: Missing[int] = Field( + default=UNSET, + description="The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", + ) + auto_init: Missing[bool] = Field( + default=UNSET, + description="Whether the repository is initialized with a minimal README.", + ) + gitignore_template: Missing[str] = Field( + default=UNSET, + description="The desired language or platform to apply to the .gitignore.", + ) + license_template: Missing[str] = Field( + default=UNSET, + description="The license keyword of the open source license for this repository.", + ) + allow_squash_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow squash merges for pull requests." + ) + allow_merge_commit: Missing[bool] = Field( + default=UNSET, description="Whether to allow merge commits for pull requests." + ) + allow_rebase_merge: Missing[bool] = Field( + default=UNSET, description="Whether to allow rebase merges for pull requests." + ) + allow_auto_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to allow Auto-merge to be used on pull requests.", + ) + delete_branch_on_merge: Missing[bool] = Field( + default=UNSET, + description="Whether to delete head branches when pull requests are merged", + ) + squash_merge_commit_title: Missing[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] = ( + Field( + default=UNSET, + description="The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit).", + ) + ) + squash_merge_commit_message: Missing[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] = Field( + default=UNSET, + description="The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message.", + ) + merge_commit_title: Missing[Literal["PR_TITLE", "MERGE_MESSAGE"]] = Field( + default=UNSET, + description="The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).", + ) + merge_commit_message: Missing[Literal["PR_BODY", "PR_TITLE", "BLANK"]] = Field( + default=UNSET, + description="The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message.", + ) + has_downloads: Missing[bool] = Field( + default=UNSET, description="Whether downloads are enabled." + ) + is_template: Missing[bool] = Field( + default=UNSET, + description="Whether this repository acts as a template that can be used to generate new repositories.", + ) + + +model_rebuild(UserReposPostBody) + +__all__ = ("UserReposPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1090.py b/githubkit/versions/v2022_11_28/models/group_1090.py new file mode 100644 index 000000000..3f7092ec4 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1090.py @@ -0,0 +1,34 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserSocialAccountsPostBody(GitHubModel): + """UserSocialAccountsPostBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: List[str] = Field( + description="Full URLs for the social media profiles to add." + ) + + +model_rebuild(UserSocialAccountsPostBody) + +__all__ = ("UserSocialAccountsPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1091.py b/githubkit/versions/v2022_11_28/models/group_1091.py new file mode 100644 index 000000000..a8664c5d3 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1091.py @@ -0,0 +1,34 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List + +from pydantic import Field + +from githubkit.compat import GitHubModel, model_rebuild + + +class UserSocialAccountsDeleteBody(GitHubModel): + """UserSocialAccountsDeleteBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: List[str] = Field( + description="Full URLs for the social media profiles to delete." + ) + + +model_rebuild(UserSocialAccountsDeleteBody) + +__all__ = ("UserSocialAccountsDeleteBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1092.py b/githubkit/versions/v2022_11_28/models/group_1092.py new file mode 100644 index 000000000..4ac5db45a --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1092.py @@ -0,0 +1,33 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UserSshSigningKeysPostBody(GitHubModel): + """UserSshSigningKeysPostBody""" + + title: Missing[str] = Field( + default=UNSET, description="A descriptive name for the new key." + ) + key: str = Field( + pattern="^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) |^(sk-ssh-ed25519|sk-ecdsa-sha2-nistp256)@openssh.com ", + description='The public SSH key to add to your GitHub account. For more information, see "[Checking for existing SSH keys](https://docs.github.com/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)."', + ) + + +model_rebuild(UserSshSigningKeysPostBody) + +__all__ = ("UserSshSigningKeysPostBody",) diff --git a/githubkit/versions/v2022_11_28/models/group_1093.py b/githubkit/versions/v2022_11_28/models/group_1093.py new file mode 100644 index 000000000..669461bb2 --- /dev/null +++ b/githubkit/versions/v2022_11_28/models/group_1093.py @@ -0,0 +1,183 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List, Union + +from pydantic import Field + +from githubkit.utils import UNSET +from githubkit.typing import Missing +from githubkit.compat import GitHubModel, model_rebuild + + +class UsersUsernameAttestationsSubjectDigestGetResponse200(GitHubModel): + """UsersUsernameAttestationsSubjectDigestGetResponse200""" + + attestations: Missing[ + List[UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems] + ] = Field(default=UNSET) + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems( + GitHubModel +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: Missing[SigstoreBundle0] = Field( + default=UNSET, title="Sigstore Bundle v0.1", description="Sigstore Bundle v0.1" + ) + repository_id: Missing[int] = Field(default=UNSET) + + +class SigstoreBundle0(GitHubModel): + """Sigstore Bundle v0.1 + + Sigstore Bundle v0.1 + """ + + media_type: Missing[str] = Field(default=UNSET, alias="mediaType") + verification_material: Missing[SigstoreBundle0PropVerificationMaterial] = Field( + default=UNSET, alias="verificationMaterial" + ) + dsse_envelope: Missing[SigstoreBundle0PropDsseEnvelope] = Field( + default=UNSET, alias="dsseEnvelope" + ) + + +class SigstoreBundle0PropDsseEnvelope(GitHubModel): + """SigstoreBundle0PropDsseEnvelope""" + + payload: Missing[str] = Field(default=UNSET) + payload_type: Missing[str] = Field(default=UNSET, alias="payloadType") + signatures: Missing[List[SigstoreBundle0PropDsseEnvelopePropSignaturesItems]] = ( + Field(default=UNSET) + ) + + +class SigstoreBundle0PropDsseEnvelopePropSignaturesItems(GitHubModel): + """SigstoreBundle0PropDsseEnvelopePropSignaturesItems""" + + sig: Missing[str] = Field(default=UNSET) + keyid: Missing[str] = Field(default=UNSET) + + +class SigstoreBundle0PropVerificationMaterial(GitHubModel): + """SigstoreBundle0PropVerificationMaterial""" + + x_509_certificate_chain: Missing[ + SigstoreBundle0PropVerificationMaterialPropX509CertificateChain + ] = Field(default=UNSET, alias="x509CertificateChain") + tlog_entries: Missing[ + List[SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems] + ] = Field(default=UNSET, alias="tlogEntries") + timestamp_verification_data: Missing[Union[str, None]] = Field( + default=UNSET, alias="timestampVerificationData" + ) + + +class SigstoreBundle0PropVerificationMaterialPropX509CertificateChain(GitHubModel): + """SigstoreBundle0PropVerificationMaterialPropX509CertificateChain""" + + certificates: Missing[ + List[ + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems + ] + ] = Field(default=UNSET) + + +class SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems( + GitHubModel +): + """SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesI + tems + """ + + raw_bytes: Missing[str] = Field(default=UNSET, alias="rawBytes") + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems(GitHubModel): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems""" + + log_index: Missing[str] = Field(default=UNSET, alias="logIndex") + log_id: Missing[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId + ] = Field(default=UNSET, alias="logId") + kind_version: Missing[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion + ] = Field(default=UNSET, alias="kindVersion") + integrated_time: Missing[str] = Field(default=UNSET, alias="integratedTime") + inclusion_promise: Missing[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise + ] = Field(default=UNSET, alias="inclusionPromise") + inclusion_proof: Missing[Union[str, None]] = Field( + default=UNSET, alias="inclusionProof" + ) + canonicalized_body: Missing[str] = Field(default=UNSET, alias="canonicalizedBody") + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId(GitHubModel): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId""" + + key_id: Missing[str] = Field(default=UNSET, alias="keyId") + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion( + GitHubModel +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion""" + + kind: Missing[str] = Field(default=UNSET) + version: Missing[str] = Field(default=UNSET) + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise( + GitHubModel +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise""" + + signed_entry_timestamp: Missing[str] = Field( + default=UNSET, alias="signedEntryTimestamp" + ) + + +model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200) +model_rebuild(UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems) +model_rebuild(SigstoreBundle0) +model_rebuild(SigstoreBundle0PropDsseEnvelope) +model_rebuild(SigstoreBundle0PropDsseEnvelopePropSignaturesItems) +model_rebuild(SigstoreBundle0PropVerificationMaterial) +model_rebuild(SigstoreBundle0PropVerificationMaterialPropX509CertificateChain) +model_rebuild( + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems +) +model_rebuild(SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems) +model_rebuild(SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId) +model_rebuild( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion +) +model_rebuild( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise +) + +__all__ = ( + "UsersUsernameAttestationsSubjectDigestGetResponse200", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems", + "SigstoreBundle0", + "SigstoreBundle0PropDsseEnvelope", + "SigstoreBundle0PropDsseEnvelopePropSignaturesItems", + "SigstoreBundle0PropVerificationMaterial", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChain", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItems", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise", +) diff --git a/githubkit/versions/v2022_11_28/rest/__init__.py b/githubkit/versions/v2022_11_28/rest/__init__.py index a242b4a10..b71c51dd4 100644 --- a/githubkit/versions/v2022_11_28/rest/__init__.py +++ b/githubkit/versions/v2022_11_28/rest/__init__.py @@ -45,6 +45,7 @@ from .migrations import MigrationsClient from .interactions import InteractionsClient from .code_scanning import CodeScanningClient + from .code_security import CodeSecurityClient from .secret_scanning import SecretScanningClient from .codes_of_conduct import CodesOfConductClient from .dependency_graph import DependencyGraphClient @@ -178,6 +179,12 @@ def code_scanning(self) -> "CodeScanningClient": return CodeScanningClient(self._github) + @cached_property + def code_security(self) -> "CodeSecurityClient": + from .code_security import CodeSecurityClient + + return CodeSecurityClient(self._github) + @cached_property def codespaces(self) -> "CodespacesClient": from .codespaces import CodespacesClient diff --git a/githubkit/versions/v2022_11_28/rest/code_security.py b/githubkit/versions/v2022_11_28/rest/code_security.py new file mode 100644 index 000000000..fb9e63459 --- /dev/null +++ b/githubkit/versions/v2022_11_28/rest/code_security.py @@ -0,0 +1,953 @@ +"""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 weakref import ref +from typing import TYPE_CHECKING, Dict, Literal, Optional, overload + +from pydantic import BaseModel + +from githubkit.typing import Missing +from githubkit.utils import UNSET, exclude_unset +from githubkit.compat import model_dump, type_validate_python + +if TYPE_CHECKING: + from typing import List, Literal + + from githubkit import GitHubCore + from githubkit.utils import UNSET + from githubkit.typing import Missing + from githubkit.response import Response + + from ..models import ( + CodeSecurityConfiguration, + CodeSecurityConfigurationRepositories, + CodeSecurityDefaultConfigurationsItems, + AppHookDeliveriesDeliveryIdAttemptsPostResponse202, + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, + ) + from ..types import ( + OrgsOrgCodeSecurityConfigurationsPostBodyType, + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType, + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, + ) + + +class CodeSecurityClient: + _REST_API_VERSION = "2022-11-28" + + def __init__(self, github: GitHubCore): + self._github_ref = ref(github) + + @property + def _github(self) -> GitHubCore: + if g := self._github_ref(): + return g + raise RuntimeError( + "GitHub client has already been collected. " + "Do not use this client after the client has been collected." + ) + + def get_configurations_for_org( + self, + org: str, + target_type: Missing[Literal["global", "all"]] = UNSET, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[List[CodeSecurityConfiguration]]: + """See also: https://docs.github.com/rest/code-security/configurations#get-code-security-configurations-for-an-organization""" + + from typing import List + + from ..models import BasicError, CodeSecurityConfiguration + + url = f"/orgs/{org}/code-security/configurations" + + params = { + "target_type": target_type, + "per_page": per_page, + "before": before, + "after": after, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=List[CodeSecurityConfiguration], + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + async def async_get_configurations_for_org( + self, + org: str, + target_type: Missing[Literal["global", "all"]] = UNSET, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[List[CodeSecurityConfiguration]]: + """See also: https://docs.github.com/rest/code-security/configurations#get-code-security-configurations-for-an-organization""" + + from typing import List + + from ..models import BasicError, CodeSecurityConfiguration + + url = f"/orgs/{org}/code-security/configurations" + + params = { + "target_type": target_type, + "per_page": per_page, + "before": before, + "after": after, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=List[CodeSecurityConfiguration], + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + @overload + def create_configuration( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsPostBodyType, + ) -> Response[CodeSecurityConfiguration]: ... + + @overload + def create_configuration( + self, + org: str, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + name: str, + description: str, + advanced_security: Missing[Literal["enabled", "disabled"]] = UNSET, + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, + dependabot_security_updates: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + code_scanning_default_setup: 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"] + ] = UNSET, + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + ) -> Response[CodeSecurityConfiguration]: ... + + def create_configuration( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[OrgsOrgCodeSecurityConfigurationsPostBodyType] = UNSET, + **kwargs, + ) -> Response[CodeSecurityConfiguration]: + """See also: https://docs.github.com/rest/code-security/configurations#create-a-code-security-configuration""" + + from ..models import ( + CodeSecurityConfiguration, + OrgsOrgCodeSecurityConfigurationsPostBody, + ) + + url = f"/orgs/{org}/code-security/configurations" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python(OrgsOrgCodeSecurityConfigurationsPostBody, json) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=CodeSecurityConfiguration, + ) + + @overload + async def async_create_configuration( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsPostBodyType, + ) -> Response[CodeSecurityConfiguration]: ... + + @overload + async def async_create_configuration( + self, + org: str, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + name: str, + description: str, + advanced_security: Missing[Literal["enabled", "disabled"]] = UNSET, + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, + dependabot_security_updates: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + code_scanning_default_setup: 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"] + ] = UNSET, + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + ) -> Response[CodeSecurityConfiguration]: ... + + async def async_create_configuration( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[OrgsOrgCodeSecurityConfigurationsPostBodyType] = UNSET, + **kwargs, + ) -> Response[CodeSecurityConfiguration]: + """See also: https://docs.github.com/rest/code-security/configurations#create-a-code-security-configuration""" + + from ..models import ( + CodeSecurityConfiguration, + OrgsOrgCodeSecurityConfigurationsPostBody, + ) + + url = f"/orgs/{org}/code-security/configurations" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python(OrgsOrgCodeSecurityConfigurationsPostBody, json) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=CodeSecurityConfiguration, + ) + + def get_default_configurations( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[List[CodeSecurityDefaultConfigurationsItems]]: + """See also: https://docs.github.com/rest/code-security/configurations#get-default-code-security-configurations""" + + from typing import List + + from ..models import BasicError, CodeSecurityDefaultConfigurationsItems + + url = f"/orgs/{org}/code-security/configurations/defaults" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=List[CodeSecurityDefaultConfigurationsItems], + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + async def async_get_default_configurations( + self, + org: str, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[List[CodeSecurityDefaultConfigurationsItems]]: + """See also: https://docs.github.com/rest/code-security/configurations#get-default-code-security-configurations""" + + from typing import List + + from ..models import BasicError, CodeSecurityDefaultConfigurationsItems + + url = f"/orgs/{org}/code-security/configurations/defaults" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=List[CodeSecurityDefaultConfigurationsItems], + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + def get_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[CodeSecurityConfiguration]: + """See also: https://docs.github.com/rest/code-security/configurations#get-a-code-security-configuration""" + + from ..models import BasicError, CodeSecurityConfiguration + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=CodeSecurityConfiguration, + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + async def async_get_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[CodeSecurityConfiguration]: + """See also: https://docs.github.com/rest/code-security/configurations#get-a-code-security-configuration""" + + from ..models import BasicError, CodeSecurityConfiguration + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=CodeSecurityConfiguration, + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + def delete_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response: + """See also: https://docs.github.com/rest/code-security/configurations#delete-a-code-security-configuration""" + + from ..models import BasicError + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "DELETE", + url, + headers=exclude_unset(headers), + error_models={ + "400": BasicError, + "403": BasicError, + "404": BasicError, + "409": BasicError, + }, + ) + + async def async_delete_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response: + """See also: https://docs.github.com/rest/code-security/configurations#delete-a-code-security-configuration""" + + from ..models import BasicError + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "DELETE", + url, + headers=exclude_unset(headers), + error_models={ + "400": BasicError, + "403": BasicError, + "404": BasicError, + "409": BasicError, + }, + ) + + @overload + def update_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType, + ) -> Response[CodeSecurityConfiguration]: ... + + @overload + def update_configuration( + self, + org: str, + configuration_id: int, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + name: Missing[str] = UNSET, + description: Missing[str] = UNSET, + advanced_security: Missing[Literal["enabled", "disabled"]] = UNSET, + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, + dependabot_security_updates: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + code_scanning_default_setup: 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"] + ] = UNSET, + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + ) -> Response[CodeSecurityConfiguration]: ... + + def update_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType + ] = UNSET, + **kwargs, + ) -> Response[CodeSecurityConfiguration]: + """See also: https://docs.github.com/rest/code-security/configurations#update-a-code-security-configuration""" + + from ..models import ( + CodeSecurityConfiguration, + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, + ) + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "PATCH", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=CodeSecurityConfiguration, + ) + + @overload + async def async_update_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType, + ) -> Response[CodeSecurityConfiguration]: ... + + @overload + async def async_update_configuration( + self, + org: str, + configuration_id: int, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + name: Missing[str] = UNSET, + description: Missing[str] = UNSET, + advanced_security: Missing[Literal["enabled", "disabled"]] = UNSET, + dependency_graph: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, + dependabot_alerts: Missing[Literal["enabled", "disabled", "not_set"]] = UNSET, + dependabot_security_updates: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + code_scanning_default_setup: 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"] + ] = UNSET, + secret_scanning_validity_checks: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + private_vulnerability_reporting: Missing[ + Literal["enabled", "disabled", "not_set"] + ] = UNSET, + ) -> Response[CodeSecurityConfiguration]: ... + + async def async_update_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType + ] = UNSET, + **kwargs, + ) -> Response[CodeSecurityConfiguration]: + """See also: https://docs.github.com/rest/code-security/configurations#update-a-code-security-configuration""" + + from ..models import ( + CodeSecurityConfiguration, + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, + ) + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "PATCH", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=CodeSecurityConfiguration, + ) + + @overload + def attach_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, + ) -> Response[AppHookDeliveriesDeliveryIdAttemptsPostResponse202]: ... + + @overload + def attach_configuration( + self, + org: str, + configuration_id: int, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + scope: Literal["all", "public", "private_or_internal", "selected"], + selected_repository_ids: Missing[List[int]] = UNSET, + ) -> Response[AppHookDeliveriesDeliveryIdAttemptsPostResponse202]: ... + + def attach_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType + ] = UNSET, + **kwargs, + ) -> Response[AppHookDeliveriesDeliveryIdAttemptsPostResponse202]: + """See also: https://docs.github.com/rest/code-security/configurations#attach-a-configuration-to-repositories""" + + from ..models import ( + AppHookDeliveriesDeliveryIdAttemptsPostResponse202, + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, + ) + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}/attach" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python( + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=AppHookDeliveriesDeliveryIdAttemptsPostResponse202, + ) + + @overload + async def async_attach_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, + ) -> Response[AppHookDeliveriesDeliveryIdAttemptsPostResponse202]: ... + + @overload + async def async_attach_configuration( + self, + org: str, + configuration_id: int, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + scope: Literal["all", "public", "private_or_internal", "selected"], + selected_repository_ids: Missing[List[int]] = UNSET, + ) -> Response[AppHookDeliveriesDeliveryIdAttemptsPostResponse202]: ... + + async def async_attach_configuration( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType + ] = UNSET, + **kwargs, + ) -> Response[AppHookDeliveriesDeliveryIdAttemptsPostResponse202]: + """See also: https://docs.github.com/rest/code-security/configurations#attach-a-configuration-to-repositories""" + + from ..models import ( + AppHookDeliveriesDeliveryIdAttemptsPostResponse202, + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, + ) + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}/attach" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python( + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=AppHookDeliveriesDeliveryIdAttemptsPostResponse202, + ) + + @overload + def set_configuration_as_default( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, + ) -> Response[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 + ]: ... + + @overload + def set_configuration_as_default( + self, + org: str, + configuration_id: int, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = UNSET, + ) -> Response[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 + ]: ... + + def set_configuration_as_default( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType + ] = UNSET, + **kwargs, + ) -> Response[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 + ]: + """See also: https://docs.github.com/rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-organization""" + + from ..models import ( + BasicError, + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, + ) + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}/defaults" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python( + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "PUT", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + @overload + async def async_set_configuration_as_default( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, + ) -> Response[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 + ]: ... + + @overload + async def async_set_configuration_as_default( + self, + org: str, + configuration_id: int, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + default_for_new_repos: Missing[ + Literal["all", "none", "private_and_internal", "public"] + ] = UNSET, + ) -> Response[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 + ]: ... + + async def async_set_configuration_as_default( + self, + org: str, + configuration_id: int, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType + ] = UNSET, + **kwargs, + ) -> Response[ + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200 + ]: + """See also: https://docs.github.com/rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-organization""" + + from ..models import ( + BasicError, + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, + ) + + url = f"/orgs/{org}/code-security/configurations/{configuration_id}/defaults" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python( + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody, json + ) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "PUT", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200, + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + def get_repositories_for_configuration( + self, + org: str, + configuration_id: int, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + status: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[List[CodeSecurityConfigurationRepositories]]: + """See also: https://docs.github.com/rest/code-security/configurations#get-repositories-associated-with-a-code-security-configuration""" + + from typing import List + + from ..models import BasicError, CodeSecurityConfigurationRepositories + + url = ( + f"/orgs/{org}/code-security/configurations/{configuration_id}/repositories" + ) + + params = { + "per_page": per_page, + "before": before, + "after": after, + "status": status, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=List[CodeSecurityConfigurationRepositories], + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) + + async def async_get_repositories_for_configuration( + self, + org: str, + configuration_id: int, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + status: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[List[CodeSecurityConfigurationRepositories]]: + """See also: https://docs.github.com/rest/code-security/configurations#get-repositories-associated-with-a-code-security-configuration""" + + from typing import List + + from ..models import BasicError, CodeSecurityConfigurationRepositories + + url = ( + f"/orgs/{org}/code-security/configurations/{configuration_id}/repositories" + ) + + params = { + "per_page": per_page, + "before": before, + "after": after, + "status": status, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=List[CodeSecurityConfigurationRepositories], + error_models={ + "403": BasicError, + "404": BasicError, + }, + ) diff --git a/githubkit/versions/v2022_11_28/rest/copilot.py b/githubkit/versions/v2022_11_28/rest/copilot.py index 1457ee1d9..ca0881303 100644 --- a/githubkit/versions/v2022_11_28/rest/copilot.py +++ b/githubkit/versions/v2022_11_28/rest/copilot.py @@ -41,6 +41,7 @@ OrgsOrgCopilotBillingSelectedUsersPostResponse201, OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200, OrgsOrgCopilotBillingSelectedUsersDeleteResponse200, + EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, ) @@ -59,6 +60,82 @@ def _github(self) -> GitHubCore: "Do not use this client after the client has been collected." ) + def list_copilot_seats_for_enterprise( + self, + enterprise: str, + page: Missing[int] = UNSET, + per_page: Missing[int] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[EnterprisesEnterpriseCopilotBillingSeatsGetResponse200]: + """See also: https://docs.github.com/rest/copilot/copilot-user-management#list-all-copilot-seat-assignments-for-an-enterprise""" + + from ..models import ( + BasicError, + EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, + ) + + url = f"/enterprises/{enterprise}/copilot/billing/seats" + + params = { + "page": page, + "per_page": per_page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, + error_models={ + "500": BasicError, + "401": BasicError, + "403": BasicError, + "404": BasicError, + }, + ) + + async def async_list_copilot_seats_for_enterprise( + self, + enterprise: str, + page: Missing[int] = UNSET, + per_page: Missing[int] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[EnterprisesEnterpriseCopilotBillingSeatsGetResponse200]: + """See also: https://docs.github.com/rest/copilot/copilot-user-management#list-all-copilot-seat-assignments-for-an-enterprise""" + + from ..models import ( + BasicError, + EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, + ) + + url = f"/enterprises/{enterprise}/copilot/billing/seats" + + params = { + "page": page, + "per_page": per_page, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=EnterprisesEnterpriseCopilotBillingSeatsGetResponse200, + error_models={ + "500": BasicError, + "401": BasicError, + "403": BasicError, + "404": BasicError, + }, + ) + def usage_metrics_for_enterprise( self, enterprise: str, diff --git a/githubkit/versions/v2022_11_28/rest/orgs.py b/githubkit/versions/v2022_11_28/rest/orgs.py index 0bce9a568..dba39edc6 100644 --- a/githubkit/versions/v2022_11_28/rest/orgs.py +++ b/githubkit/versions/v2022_11_28/rest/orgs.py @@ -41,6 +41,8 @@ MinimalRepository, OrgCustomProperty, OrganizationSimple, + TeamRoleAssignment, + UserRoleAssignment, OrganizationInvitation, OrgRepoCustomPropertyValues, OrganizationFineGrainedPermission, @@ -48,6 +50,7 @@ OrganizationProgrammaticAccessGrant, OrgsOrgOrganizationRolesGetResponse200, OrganizationProgrammaticAccessGrantRequest, + OrgsOrgAttestationsSubjectDigestGetResponse200, OrgsOrgOutsideCollaboratorsUsernamePutResponse202, AppHookDeliveriesDeliveryIdAttemptsPostResponse202, ) @@ -448,6 +451,70 @@ async def async_update( }, ) + def list_attestations( + self, + org: str, + subject_digest: str, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[OrgsOrgAttestationsSubjectDigestGetResponse200]: + """See also: https://docs.github.com/rest/orgs/orgs#list-attestations""" + + from ..models import OrgsOrgAttestationsSubjectDigestGetResponse200 + + url = f"/orgs/{org}/attestations/{subject_digest}" + + params = { + "per_page": per_page, + "before": before, + "after": after, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=OrgsOrgAttestationsSubjectDigestGetResponse200, + ) + + async def async_list_attestations( + self, + org: str, + subject_digest: str, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[OrgsOrgAttestationsSubjectDigestGetResponse200]: + """See also: https://docs.github.com/rest/orgs/orgs#list-attestations""" + + from ..models import OrgsOrgAttestationsSubjectDigestGetResponse200 + + url = f"/orgs/{org}/attestations/{subject_digest}" + + params = { + "per_page": per_page, + "before": before, + "after": after, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=OrgsOrgAttestationsSubjectDigestGetResponse200, + ) + def list_blocked_users( self, org: str, @@ -3010,12 +3077,12 @@ def list_org_role_teams( page: Missing[int] = UNSET, *, headers: Optional[Dict[str, str]] = None, - ) -> Response[List[Team]]: + ) -> Response[List[TeamRoleAssignment]]: """See also: https://docs.github.com/rest/orgs/organization-roles#list-teams-that-are-assigned-to-an-organization-role""" from typing import List - from ..models import Team + from ..models import TeamRoleAssignment url = f"/orgs/{org}/organization-roles/{role_id}/teams" @@ -3031,7 +3098,7 @@ def list_org_role_teams( url, params=exclude_unset(params), headers=exclude_unset(headers), - response_model=List[Team], + response_model=List[TeamRoleAssignment], error_models={}, ) @@ -3043,12 +3110,12 @@ async def async_list_org_role_teams( page: Missing[int] = UNSET, *, headers: Optional[Dict[str, str]] = None, - ) -> Response[List[Team]]: + ) -> Response[List[TeamRoleAssignment]]: """See also: https://docs.github.com/rest/orgs/organization-roles#list-teams-that-are-assigned-to-an-organization-role""" from typing import List - from ..models import Team + from ..models import TeamRoleAssignment url = f"/orgs/{org}/organization-roles/{role_id}/teams" @@ -3064,7 +3131,7 @@ async def async_list_org_role_teams( url, params=exclude_unset(params), headers=exclude_unset(headers), - response_model=List[Team], + response_model=List[TeamRoleAssignment], error_models={}, ) @@ -3076,12 +3143,12 @@ def list_org_role_users( page: Missing[int] = UNSET, *, headers: Optional[Dict[str, str]] = None, - ) -> Response[List[SimpleUser]]: + ) -> Response[List[UserRoleAssignment]]: """See also: https://docs.github.com/rest/orgs/organization-roles#list-users-that-are-assigned-to-an-organization-role""" from typing import List - from ..models import SimpleUser + from ..models import UserRoleAssignment url = f"/orgs/{org}/organization-roles/{role_id}/users" @@ -3097,7 +3164,7 @@ def list_org_role_users( url, params=exclude_unset(params), headers=exclude_unset(headers), - response_model=List[SimpleUser], + response_model=List[UserRoleAssignment], error_models={}, ) @@ -3109,12 +3176,12 @@ async def async_list_org_role_users( page: Missing[int] = UNSET, *, headers: Optional[Dict[str, str]] = None, - ) -> Response[List[SimpleUser]]: + ) -> Response[List[UserRoleAssignment]]: """See also: https://docs.github.com/rest/orgs/organization-roles#list-users-that-are-assigned-to-an-organization-role""" from typing import List - from ..models import SimpleUser + from ..models import UserRoleAssignment url = f"/orgs/{org}/organization-roles/{role_id}/users" @@ -3130,7 +3197,7 @@ async def async_list_org_role_users( url, params=exclude_unset(params), headers=exclude_unset(headers), - response_model=List[SimpleUser], + response_model=List[UserRoleAssignment], error_models={}, ) @@ -4492,7 +4559,7 @@ def create_or_update_custom_property( *, data: Literal[UNSET] = UNSET, headers: Optional[Dict[str, str]] = None, - value_type: Literal["string", "single_select"], + value_type: Literal["string", "single_select", "multi_select", "true_false"], required: Missing[bool] = UNSET, default_value: Missing[Union[str, List[str], None]] = UNSET, description: Missing[Union[str, None]] = UNSET, @@ -4559,7 +4626,7 @@ async def async_create_or_update_custom_property( *, data: Literal[UNSET] = UNSET, headers: Optional[Dict[str, str]] = None, - value_type: Literal["string", "single_select"], + value_type: Literal["string", "single_select", "multi_select", "true_false"], required: Missing[bool] = UNSET, default_value: Missing[Union[str, List[str], None]] = UNSET, description: Missing[Union[str, None]] = UNSET, @@ -5101,7 +5168,6 @@ def add_security_manager_team( "PUT", url, headers=exclude_unset(headers), - error_models={}, ) async def async_add_security_manager_team( @@ -5121,7 +5187,6 @@ async def async_add_security_manager_team( "PUT", url, headers=exclude_unset(headers), - error_models={}, ) def remove_security_manager_team( diff --git a/githubkit/versions/v2022_11_28/rest/repos.py b/githubkit/versions/v2022_11_28/rest/repos.py index 5934d0aaa..bc02d2ff4 100644 --- a/githubkit/versions/v2022_11_28/rest/repos.py +++ b/githubkit/versions/v2022_11_28/rest/repos.py @@ -115,7 +115,9 @@ ProtectedBranchPullRequestReview, RepositoryCollaboratorPermission, ReposOwnerRepoEnvironmentsGetResponse200, + ReposOwnerRepoAttestationsPostResponse201, AppHookDeliveriesDeliveryIdAttemptsPostResponse202, + ReposOwnerRepoAttestationsSubjectDigestGetResponse200, ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200, ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200, ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200, @@ -173,6 +175,7 @@ ReposOwnerRepoStatusesShaPostBodyType, RepositoryRuleCommitMessagePatternType, RepositoryRuleRequiredStatusChecksType, + ReposOwnerRepoAttestationsPostBodyType, ReposOwnerRepoHooksHookIdPatchBodyType, RepositoryRuleCommitterEmailPatternType, RepositoryRuleRequiredLinearHistoryType, @@ -195,6 +198,7 @@ ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ReposOwnerRepoContentsPathPutBodyPropAuthorType, ReposOwnerRepoReleasesGenerateNotesPostBodyType, + ReposOwnerRepoAttestationsPostBodyPropBundleType, ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType, ReposOwnerRepoBranchesBranchProtectionPutBodyType, ReposOwnerRepoCommitsCommitShaCommentsPostBodyType, @@ -1592,6 +1596,196 @@ async def async_list_activities( }, ) + @overload + def create_attestation( + self, + owner: str, + repo: str, + *, + headers: Optional[Dict[str, str]] = None, + data: ReposOwnerRepoAttestationsPostBodyType, + ) -> Response[ReposOwnerRepoAttestationsPostResponse201]: ... + + @overload + def create_attestation( + self, + owner: str, + repo: str, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType, + ) -> Response[ReposOwnerRepoAttestationsPostResponse201]: ... + + def create_attestation( + self, + owner: str, + repo: str, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[ReposOwnerRepoAttestationsPostBodyType] = UNSET, + **kwargs, + ) -> Response[ReposOwnerRepoAttestationsPostResponse201]: + """See also: https://docs.github.com/rest/repos/repos#create-an-attestation""" + + from ..models import ( + BasicError, + ValidationError, + ReposOwnerRepoAttestationsPostBody, + ReposOwnerRepoAttestationsPostResponse201, + ) + + url = f"/repos/{owner}/{repo}/attestations" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python(ReposOwnerRepoAttestationsPostBody, json) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return self._github.request( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=ReposOwnerRepoAttestationsPostResponse201, + error_models={ + "403": BasicError, + "422": ValidationError, + }, + ) + + @overload + async def async_create_attestation( + self, + owner: str, + repo: str, + *, + headers: Optional[Dict[str, str]] = None, + data: ReposOwnerRepoAttestationsPostBodyType, + ) -> Response[ReposOwnerRepoAttestationsPostResponse201]: ... + + @overload + async def async_create_attestation( + self, + owner: str, + repo: str, + *, + data: Literal[UNSET] = UNSET, + headers: Optional[Dict[str, str]] = None, + bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType, + ) -> Response[ReposOwnerRepoAttestationsPostResponse201]: ... + + async def async_create_attestation( + self, + owner: str, + repo: str, + *, + headers: Optional[Dict[str, str]] = None, + data: Missing[ReposOwnerRepoAttestationsPostBodyType] = UNSET, + **kwargs, + ) -> Response[ReposOwnerRepoAttestationsPostResponse201]: + """See also: https://docs.github.com/rest/repos/repos#create-an-attestation""" + + from ..models import ( + BasicError, + ValidationError, + ReposOwnerRepoAttestationsPostBody, + ReposOwnerRepoAttestationsPostResponse201, + ) + + url = f"/repos/{owner}/{repo}/attestations" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + if not kwargs: + kwargs = UNSET + + json = kwargs if data is UNSET else data + json = type_validate_python(ReposOwnerRepoAttestationsPostBody, json) + json = model_dump(json) if isinstance(json, BaseModel) else json + + return await self._github.arequest( + "POST", + url, + json=exclude_unset(json), + headers=exclude_unset(headers), + response_model=ReposOwnerRepoAttestationsPostResponse201, + error_models={ + "403": BasicError, + "422": ValidationError, + }, + ) + + def list_attestations( + self, + owner: str, + repo: str, + subject_digest: str, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[ReposOwnerRepoAttestationsSubjectDigestGetResponse200]: + """See also: https://docs.github.com/rest/repos/repos#list-attestations""" + + from ..models import ReposOwnerRepoAttestationsSubjectDigestGetResponse200 + + url = f"/repos/{owner}/{repo}/attestations/{subject_digest}" + + params = { + "per_page": per_page, + "before": before, + "after": after, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=ReposOwnerRepoAttestationsSubjectDigestGetResponse200, + ) + + async def async_list_attestations( + self, + owner: str, + repo: str, + subject_digest: str, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[ReposOwnerRepoAttestationsSubjectDigestGetResponse200]: + """See also: https://docs.github.com/rest/repos/repos#list-attestations""" + + from ..models import ReposOwnerRepoAttestationsSubjectDigestGetResponse200 + + url = f"/repos/{owner}/{repo}/attestations/{subject_digest}" + + params = { + "per_page": per_page, + "before": before, + "after": after, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=ReposOwnerRepoAttestationsSubjectDigestGetResponse200, + ) + def list_autolinks( self, owner: str, diff --git a/githubkit/versions/v2022_11_28/rest/users.py b/githubkit/versions/v2022_11_28/rest/users.py index d484a07b0..47206db5d 100644 --- a/githubkit/versions/v2022_11_28/rest/users.py +++ b/githubkit/versions/v2022_11_28/rest/users.py @@ -37,6 +37,7 @@ PrivateUser, SocialAccount, SshSigningKey, + UsersUsernameAttestationsSubjectDigestGetResponse200, ) from ..types import ( UserPatchBodyType, @@ -2376,6 +2377,58 @@ async def async_delete_ssh_signing_key_for_authenticated_user( }, ) + def get_by_id( + self, + account_id: int, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[Union[PrivateUser, PublicUser]]: + """See also: https://docs.github.com/rest/users/users#get-a-user-using-their-id""" + + from typing import Union + + from ..models import BasicError, PublicUser, PrivateUser + + url = f"/user/{account_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + headers=exclude_unset(headers), + response_model=Union[PrivateUser, PublicUser], + error_models={ + "404": BasicError, + }, + ) + + async def async_get_by_id( + self, + account_id: int, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[Union[PrivateUser, PublicUser]]: + """See also: https://docs.github.com/rest/users/users#get-a-user-using-their-id""" + + from typing import Union + + from ..models import BasicError, PublicUser, PrivateUser + + url = f"/user/{account_id}" + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + headers=exclude_unset(headers), + response_model=Union[PrivateUser, PublicUser], + error_models={ + "404": BasicError, + }, + ) + def list( self, since: Missing[int] = UNSET, @@ -2488,6 +2541,82 @@ async def async_get_by_username( }, ) + def list_attestations( + self, + username: str, + subject_digest: str, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[UsersUsernameAttestationsSubjectDigestGetResponse200]: + """See also: https://docs.github.com/rest/users/attestations#list-attestations""" + + from ..models import ( + BasicError, + UsersUsernameAttestationsSubjectDigestGetResponse200, + ) + + url = f"/users/{username}/attestations/{subject_digest}" + + params = { + "per_page": per_page, + "before": before, + "after": after, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return self._github.request( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=UsersUsernameAttestationsSubjectDigestGetResponse200, + error_models={ + "404": BasicError, + }, + ) + + async def async_list_attestations( + self, + username: str, + subject_digest: str, + per_page: Missing[int] = UNSET, + before: Missing[str] = UNSET, + after: Missing[str] = UNSET, + *, + headers: Optional[Dict[str, str]] = None, + ) -> Response[UsersUsernameAttestationsSubjectDigestGetResponse200]: + """See also: https://docs.github.com/rest/users/attestations#list-attestations""" + + from ..models import ( + BasicError, + UsersUsernameAttestationsSubjectDigestGetResponse200, + ) + + url = f"/users/{username}/attestations/{subject_digest}" + + params = { + "per_page": per_page, + "before": before, + "after": after, + } + + headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})} + + return await self._github.arequest( + "GET", + url, + params=exclude_unset(params), + headers=exclude_unset(headers), + response_model=UsersUsernameAttestationsSubjectDigestGetResponse200, + error_models={ + "404": BasicError, + }, + ) + def list_followers_for_user( self, username: str, diff --git a/githubkit/versions/v2022_11_28/types/__init__.py b/githubkit/versions/v2022_11_28/types/__init__.py index 626bdbed9..326606bc3 100644 --- a/githubkit/versions/v2022_11_28/types/__init__.py +++ b/githubkit/versions/v2022_11_28/types/__init__.py @@ -10,515 +10,520 @@ from typing import TYPE_CHECKING if TYPE_CHECKING: - from .group_0158 import JobType as JobType - from .group_0337 import TagType as TagType - from .group_0360 import KeyType as KeyType + from .group_0163 import JobType as JobType + from .group_0342 import TagType as TagType + from .group_0365 import KeyType as KeyType from .group_0000 import RootType as RootType - from .group_0038 import FeedType as FeedType - from .group_0076 import TeamType as TeamType - from .group_0218 import LinkType as LinkType - from .group_0252 import BlobType as BlobType - from .group_0258 import HookType as HookType - from .group_0292 import PageType as PageType - from .group_0035 import IssueType as IssueType - from .group_0037 import ActorType as ActorType - from .group_0037 import EventType as EventType - from .group_0278 import LabelType as LabelType - from .group_0339 import TopicType as TopicType - from .group_0358 import EmailType as EmailType - from .group_0052 import ThreadType as ThreadType - from .group_0063 import RunnerType as RunnerType - from .group_0185 import CommitType as CommitType - from .group_0224 import StatusType as StatusType - from .group_0254 import GitRefType as GitRefType - from .group_0255 import GitTagType as GitTagType - from .group_0259 import ImportType as ImportType - from .group_0359 import GpgKeyType as GpgKeyType - from .group_0045 import LicenseType as LicenseType - from .group_0079 import PackageType as PackageType - from .group_0081 import OrgHookType as OrgHookType - from .group_0091 import ProjectType as ProjectType - from .group_0182 import GitUserType as GitUserType - from .group_0256 import GitTreeType as GitTreeType - from .group_0309 import ReleaseType as ReleaseType - from .group_0340 import TrafficType as TrafficType - from .group_0039 import BaseGistType as BaseGistType - from .group_0143 import TeamFullType as TeamFullType - from .group_0146 import ReactionType as ReactionType - from .group_0156 import ArtifactType as ArtifactType - from .group_0174 import ActivityType as ActivityType - from .group_0175 import AutolinkType as AutolinkType - from .group_0192 import CheckRunType as CheckRunType - from .group_0238 import MetadataType as MetadataType - from .group_0240 import ManifestType as ManifestType - from .group_0241 import SnapshotType as SnapshotType - from .group_0289 import LanguageType as LanguageType - from .group_0885 import WorkflowType as WorkflowType + from .group_0026 import TeamType as TeamType + from .group_0042 import FeedType as FeedType + from .group_0223 import LinkType as LinkType + from .group_0257 import BlobType as BlobType + from .group_0263 import HookType as HookType + from .group_0297 import PageType as PageType + from .group_0039 import IssueType as IssueType + from .group_0041 import ActorType as ActorType + from .group_0041 import EventType as EventType + from .group_0283 import LabelType as LabelType + from .group_0344 import TopicType as TopicType + from .group_0363 import EmailType as EmailType + from .group_0056 import ThreadType as ThreadType + from .group_0066 import RunnerType as RunnerType + from .group_0190 import CommitType as CommitType + from .group_0229 import StatusType as StatusType + from .group_0259 import GitRefType as GitRefType + from .group_0260 import GitTagType as GitTagType + from .group_0264 import ImportType as ImportType + from .group_0364 import GpgKeyType as GpgKeyType + from .group_0049 import LicenseType as LicenseType + from .group_0082 import PackageType as PackageType + from .group_0084 import OrgHookType as OrgHookType + from .group_0096 import ProjectType as ProjectType + from .group_0187 import GitUserType as GitUserType + from .group_0261 import GitTreeType as GitTreeType + from .group_0314 import ReleaseType as ReleaseType + from .group_0345 import TrafficType as TrafficType + from .group_0043 import BaseGistType as BaseGistType + from .group_0148 import TeamFullType as TeamFullType + from .group_0151 import ReactionType as ReactionType + from .group_0161 import ArtifactType as ArtifactType + from .group_0179 import ActivityType as ActivityType + from .group_0180 import AutolinkType as AutolinkType + from .group_0197 import CheckRunType as CheckRunType + from .group_0243 import MetadataType as MetadataType + from .group_0245 import ManifestType as ManifestType + from .group_0246 import SnapshotType as SnapshotType + from .group_0294 import LanguageType as LanguageType + from .group_0902 import WorkflowType as WorkflowType from .group_0009 import ScimErrorType as ScimErrorType from .group_0022 import ClassroomType as ClassroomType - from .group_0033 import MilestoneType as MilestoneType - from .group_0072 import CodespaceType as CodespaceType - from .group_0085 import MigrationType as MigrationType - from .group_0137 import RuleSuiteType as RuleSuiteType - from .group_0153 import RateLimitType as RateLimitType - from .group_0184 import DiffEntryType as DiffEntryType - from .group_0219 import AutoMergeType as AutoMergeType - from .group_0251 import ShortBlobType as ShortBlobType - from .group_0253 import GitCommitType as GitCommitType - from .group_0288 import DeployKeyType as DeployKeyType - from .group_0293 import PageBuildType as PageBuildType - from .group_0332 import StargazerType as StargazerType - from .group_0365 import HovercardType as HovercardType - from .group_0366 import KeySimpleType as KeySimpleType + from .group_0037 import MilestoneType as MilestoneType + from .group_0078 import CodespaceType as CodespaceType + from .group_0088 import MigrationType as MigrationType + from .group_0142 import RuleSuiteType as RuleSuiteType + from .group_0158 import RateLimitType as RateLimitType + from .group_0189 import DiffEntryType as DiffEntryType + from .group_0224 import AutoMergeType as AutoMergeType + from .group_0256 import ShortBlobType as ShortBlobType + from .group_0258 import GitCommitType as GitCommitType + from .group_0293 import DeployKeyType as DeployKeyType + from .group_0298 import PageBuildType as PageBuildType + from .group_0337 import StargazerType as StargazerType + from .group_0370 import HovercardType as HovercardType + from .group_0371 import KeySimpleType as KeySimpleType from .group_0001 import SimpleUserType as SimpleUserType from .group_0003 import BasicErrorType as BasicErrorType from .group_0012 import EnterpriseType as EnterpriseType from .group_0017 import RepositoryType as RepositoryType - from .group_0041 import GistSimpleType as GistSimpleType - from .group_0041 import PublicUserType as PublicUserType - from .group_0043 import GistCommitType as GistCommitType - from .group_0075 import TeamSimpleType as TeamSimpleType - from .group_0171 import DeploymentType as DeploymentType - from .group_0194 import CheckSuiteType as CheckSuiteType - from .group_0232 import FileCommitType as FileCommitType - from .group_0239 import DependencyType as DependencyType - from .group_0262 import IssueEventType as IssueEventType - from .group_0381 import DiscussionType as DiscussionType - from .group_0395 import MergeGroupType as MergeGroupType - from .group_0402 import ProjectsV2Type as ProjectsV2Type + from .group_0025 import TeamSimpleType as TeamSimpleType + from .group_0045 import GistSimpleType as GistSimpleType + from .group_0045 import PublicUserType as PublicUserType + from .group_0047 import GistCommitType as GistCommitType + from .group_0176 import DeploymentType as DeploymentType + from .group_0199 import CheckSuiteType as CheckSuiteType + from .group_0237 import FileCommitType as FileCommitType + from .group_0244 import DependencyType as DependencyType + from .group_0267 import IssueEventType as IssueEventType + from .group_0386 import DiscussionType as DiscussionType + from .group_0400 import MergeGroupType as MergeGroupType + from .group_0407 import ProjectsV2Type as ProjectsV2Type from .group_0006 import IntegrationType as IntegrationType - from .group_0040 import GistHistoryType as GistHistoryType - from .group_0042 import GistCommentType as GistCommentType - from .group_0049 import ApiOverviewType as ApiOverviewType - from .group_0057 import EmptyObjectType as EmptyObjectType - from .group_0062 import RunnerLabelType as RunnerLabelType - from .group_0148 import TeamProjectType as TeamProjectType - from .group_0150 import ProjectCardType as ProjectCardType - from .group_0166 import WorkflowRunType as WorkflowRunType - from .group_0181 import ShortBranchType as ShortBranchType - from .group_0217 import BranchShortType as BranchShortType - from .group_0227 import ContentTreeType as ContentTreeType - from .group_0229 import ContentFileType as ContentFileType - from .group_0233 import ContributorType as ContributorType - from .group_0244 import EnvironmentType as EnvironmentType - from .group_0298 import PullRequestType as PullRequestType - from .group_0344 import ViewTrafficType as ViewTrafficType - from .group_0354 import PrivateUserType as PrivateUserType - from .group_0481 import WebhookForkType as WebhookForkType - from .group_0596 import WebhookPingType as WebhookPingType - from .group_0659 import WebhookPushType as WebhookPushType + from .group_0044 import GistHistoryType as GistHistoryType + from .group_0046 import GistCommentType as GistCommentType + from .group_0053 import ApiOverviewType as ApiOverviewType + from .group_0065 import RunnerLabelType as RunnerLabelType + from .group_0153 import TeamProjectType as TeamProjectType + from .group_0155 import ProjectCardType as ProjectCardType + from .group_0171 import WorkflowRunType as WorkflowRunType + from .group_0186 import ShortBranchType as ShortBranchType + from .group_0190 import EmptyObjectType as EmptyObjectType + from .group_0222 import BranchShortType as BranchShortType + from .group_0232 import ContentTreeType as ContentTreeType + from .group_0234 import ContentFileType as ContentFileType + from .group_0238 import ContributorType as ContributorType + from .group_0249 import EnvironmentType as EnvironmentType + from .group_0303 import PullRequestType as PullRequestType + from .group_0349 import ViewTrafficType as ViewTrafficType + from .group_0359 import PrivateUserType as PrivateUserType + from .group_0487 import WebhookForkType as WebhookForkType + from .group_0602 import WebhookPingType as WebhookPingType + from .group_0668 import WebhookPushType as WebhookPushType from .group_0011 import HookDeliveryType as HookDeliveryType from .group_0015 import InstallationType as InstallationType - from .group_0036 import IssueCommentType as IssueCommentType - from .group_0038 import LinkWithTypeType as LinkWithTypeType - from .group_0077 import OrganizationType as OrganizationType - from .group_0165 import SimpleCommitType as SimpleCommitType - from .group_0183 import VerificationType as VerificationType - from .group_0215 import CollaboratorType as CollaboratorType - from .group_0257 import HookResponseType as HookResponseType - from .group_0260 import PorterAuthorType as PorterAuthorType - from .group_0308 import ReleaseAssetType as ReleaseAssetType - from .group_0341 import CloneTrafficType as CloneTrafficType - from .group_0372 import WebhooksRuleType as WebhooksRuleType - from .group_0379 import WebhooksUserType as WebhooksUserType - from .group_0394 import WebhooksTeamType as WebhooksTeamType + from .group_0028 import OrganizationType as OrganizationType + from .group_0040 import IssueCommentType as IssueCommentType + from .group_0042 import LinkWithTypeType as LinkWithTypeType + from .group_0170 import SimpleCommitType as SimpleCommitType + from .group_0188 import VerificationType as VerificationType + from .group_0220 import CollaboratorType as CollaboratorType + from .group_0262 import HookResponseType as HookResponseType + from .group_0265 import PorterAuthorType as PorterAuthorType + from .group_0313 import ReleaseAssetType as ReleaseAssetType + from .group_0346 import CloneTrafficType as CloneTrafficType + from .group_0377 import WebhooksRuleType as WebhooksRuleType + from .group_0384 import WebhooksUserType as WebhooksUserType + from .group_0399 import WebhooksTeamType as WebhooksTeamType from .group_0002 import VulnerabilityType as VulnerabilityType from .group_0007 import WebhookConfigType as WebhookConfigType from .group_0016 import LicenseSimpleType as LicenseSimpleType from .group_0020 import AuthorizationType as AuthorizationType - from .group_0037 import EventPropRepoType as EventPropRepoType - from .group_0038 import FeedPropLinksType as FeedPropLinksType - from .group_0051 import CodeOfConductType as CodeOfConductType - from .group_0056 import OidcCustomSubType as OidcCustomSubType - from .group_0084 import OrgMembershipType as OrgMembershipType - from .group_0151 import ProjectColumnType as ProjectColumnType - from .group_0160 import ActionsSecretType as ActionsSecretType - from .group_0173 import WorkflowUsageType as WorkflowUsageType - from .group_0216 import CommitCommentType as CommitCommentType - from .group_0306 import ReviewCommentType as ReviewCommentType - from .group_0337 import TagPropCommitType as TagPropCommitType - from .group_0338 import TagProtectionType as TagProtectionType - from .group_0362 import SocialAccountType as SocialAccountType - from .group_0363 import SshSigningKeyType as SshSigningKeyType - from .group_0383 import WebhooksLabelType as WebhooksLabelType - from .group_0388 import WebhooksIssueType as WebhooksIssueType - from .group_0412 import WebhooksAlertType as WebhooksAlertType - from .group_0417 import WebhooksTeam1Type as WebhooksTeam1Type - from .group_0441 import WebhookCreateType as WebhookCreateType - from .group_0446 import WebhookDeleteType as WebhookDeleteType - from .group_0487 import WebhookGollumType as WebhookGollumType - from .group_0627 import WebhookPublicType as WebhookPublicType - from .group_0718 import WebhookStatusType as WebhookStatusType - from .group_0754 import GistsPostBodyType as GistsPostBodyType - from .group_1047 import UserPatchBodyType as UserPatchBodyType + from .group_0041 import EventPropRepoType as EventPropRepoType + from .group_0042 import FeedPropLinksType as FeedPropLinksType + from .group_0055 import CodeOfConductType as CodeOfConductType + from .group_0060 import OidcCustomSubType as OidcCustomSubType + from .group_0087 import OrgMembershipType as OrgMembershipType + from .group_0156 import ProjectColumnType as ProjectColumnType + from .group_0165 import ActionsSecretType as ActionsSecretType + from .group_0178 import WorkflowUsageType as WorkflowUsageType + from .group_0221 import CommitCommentType as CommitCommentType + from .group_0311 import ReviewCommentType as ReviewCommentType + from .group_0342 import TagPropCommitType as TagPropCommitType + from .group_0343 import TagProtectionType as TagProtectionType + from .group_0367 import SocialAccountType as SocialAccountType + from .group_0368 import SshSigningKeyType as SshSigningKeyType + from .group_0388 import WebhooksLabelType as WebhooksLabelType + from .group_0393 import WebhooksIssueType as WebhooksIssueType + from .group_0418 import WebhooksAlertType as WebhooksAlertType + from .group_0423 import WebhooksTeam1Type as WebhooksTeam1Type + from .group_0447 import WebhookCreateType as WebhookCreateType + from .group_0452 import WebhookDeleteType as WebhookDeleteType + from .group_0493 import WebhookGollumType as WebhookGollumType + from .group_0636 import WebhookPublicType as WebhookPublicType + from .group_0727 import WebhookStatusType as WebhookStatusType + from .group_0764 import GistsPostBodyType as GistsPostBodyType + from .group_1067 import UserPatchBodyType as UserPatchBodyType from .group_0002 import GlobalAdvisoryType as GlobalAdvisoryType from .group_0014 import AppPermissionsType as AppPermissionsType - from .group_0034 import ReactionRollupType as ReactionRollupType - from .group_0088 import PackageVersionType as PackageVersionType - from .group_0096 import FullRepositoryType as FullRepositoryType - from .group_0144 import TeamDiscussionType as TeamDiscussionType - from .group_0147 import TeamMembershipType as TeamMembershipType - from .group_0149 import TeamRepositoryType as TeamRepositoryType - from .group_0230 import ContentSymlinkType as ContentSymlinkType - from .group_0290 import LicenseContentType as LicenseContentType - from .group_0291 import MergedUpstreamType as MergedUpstreamType - from .group_0295 import PageDeploymentType as PageDeploymentType - from .group_0333 import CommitActivityType as CommitActivityType - from .group_0342 import ContentTrafficType as ContentTrafficType - from .group_0380 import WebhooksAnswerType as WebhooksAnswerType - from .group_0390 import WebhooksIssue2Type as WebhooksIssue2Type - from .group_0404 import ProjectsV2ItemType as ProjectsV2ItemType - from .group_0409 import WebhooksReviewType as WebhooksReviewType - from .group_0723 import WebhookTeamAddType as WebhookTeamAddType + from .group_0028 import EnterpriseTeamType as EnterpriseTeamType + from .group_0038 import ReactionRollupType as ReactionRollupType + from .group_0093 import PackageVersionType as PackageVersionType + from .group_0101 import FullRepositoryType as FullRepositoryType + from .group_0149 import TeamDiscussionType as TeamDiscussionType + from .group_0152 import TeamMembershipType as TeamMembershipType + from .group_0154 import TeamRepositoryType as TeamRepositoryType + from .group_0235 import ContentSymlinkType as ContentSymlinkType + from .group_0295 import LicenseContentType as LicenseContentType + from .group_0296 import MergedUpstreamType as MergedUpstreamType + from .group_0300 import PageDeploymentType as PageDeploymentType + from .group_0338 import CommitActivityType as CommitActivityType + from .group_0347 import ContentTrafficType as ContentTrafficType + from .group_0385 import WebhooksAnswerType as WebhooksAnswerType + from .group_0395 import WebhooksIssue2Type as WebhooksIssue2Type + from .group_0409 import ProjectsV2ItemType as ProjectsV2ItemType + from .group_0415 import WebhooksReviewType as WebhooksReviewType + from .group_0732 import WebhookTeamAddType as WebhookTeamAddType from .group_0010 import ValidationErrorType as ValidationErrorType from .group_0023 import SimpleClassroomType as SimpleClassroomType - from .group_0059 import SelectedActionsType as SelectedActionsType - from .group_0136 import RuleSuitesItemsType as RuleSuitesItemsType - from .group_0161 import ActionsVariableType as ActionsVariableType - from .group_0185 import CommitPropStatsType as CommitPropStatsType - from .group_0188 import ProtectedBranchType as ProtectedBranchType - from .group_0193 import CheckAnnotationType as CheckAnnotationType - from .group_0234 import DependabotAlertType as DependabotAlertType - from .group_0241 import SnapshotPropJobType as SnapshotPropJobType - from .group_0261 import PorterLargeFileType as PorterLargeFileType - from .group_0262 import IssueEventLabelType as IssueEventLabelType - from .group_0292 import PagesSourceHashType as PagesSourceHashType - from .group_0294 import PageBuildStatusType as PageBuildStatusType - from .group_0343 import ReferrerTrafficType as ReferrerTrafficType - from .group_0382 import WebhooksCommentType as WebhooksCommentType - from .group_0387 import WebhooksChangesType as WebhooksChangesType - from .group_0400 import WebhooksProjectType as WebhooksProjectType - from .group_0410 import WebhooksReleaseType as WebhooksReleaseType + from .group_0062 import SelectedActionsType as SelectedActionsType + from .group_0141 import RuleSuitesItemsType as RuleSuitesItemsType + from .group_0166 import ActionsVariableType as ActionsVariableType + from .group_0190 import CommitPropStatsType as CommitPropStatsType + from .group_0193 import ProtectedBranchType as ProtectedBranchType + from .group_0198 import CheckAnnotationType as CheckAnnotationType + from .group_0239 import DependabotAlertType as DependabotAlertType + from .group_0246 import SnapshotPropJobType as SnapshotPropJobType + from .group_0266 import PorterLargeFileType as PorterLargeFileType + from .group_0267 import IssueEventLabelType as IssueEventLabelType + from .group_0297 import PagesSourceHashType as PagesSourceHashType + from .group_0299 import PageBuildStatusType as PageBuildStatusType + from .group_0348 import ReferrerTrafficType as ReferrerTrafficType + from .group_0387 import WebhooksCommentType as WebhooksCommentType + from .group_0392 import WebhooksChangesType as WebhooksChangesType + from .group_0405 import WebhooksProjectType as WebhooksProjectType + from .group_0416 import WebhooksReleaseType as WebhooksReleaseType + from .group_1093 import SigstoreBundle0Type as SigstoreBundle0Type from .group_0008 import HookDeliveryItemType as HookDeliveryItemType - from .group_0029 import SimpleRepositoryType as SimpleRepositoryType - from .group_0037 import EventPropPayloadType as EventPropPayloadType - from .group_0054 import OrganizationFullType as OrganizationFullType - from .group_0066 import ActionsPublicKeyType as ActionsPublicKeyType - from .group_0071 import CodespaceMachineType as CodespaceMachineType - from .group_0083 import InteractionLimitType as InteractionLimitType - from .group_0087 import OrganizationRoleType as OrganizationRoleType - from .group_0143 import TeamOrganizationType as TeamOrganizationType - from .group_0157 import ActionsCacheListType as ActionsCacheListType - from .group_0172 import WorkflowRunUsageType as WorkflowRunUsageType - from .group_0180 import BranchProtectionType as BranchProtectionType - from .group_0186 import CommitPropCommitType as CommitPropCommitType - from .group_0191 import DeploymentSimpleType as DeploymentSimpleType - from .group_0212 import CodeownersErrorsType as CodeownersErrorsType - from .group_0225 import CommunityProfileType as CommunityProfileType - from .group_0226 import CommitComparisonType as CommitComparisonType - from .group_0231 import ContentSubmoduleType as ContentSubmoduleType - from .group_0240 import ManifestPropFileType as ManifestPropFileType - from .group_0242 import DeploymentStatusType as DeploymentStatusType - from .group_0254 import GitRefPropObjectType as GitRefPropObjectType - from .group_0255 import GitTagPropObjectType as GitTagPropObjectType - from .group_0255 import GitTagPropTaggerType as GitTagPropTaggerType - from .group_0262 import IssueEventRenameType as IssueEventRenameType - from .group_0273 import LockedIssueEventType as LockedIssueEventType - from .group_0297 import PagesHealthCheckType as PagesHealthCheckType - from .group_0373 import SimpleCheckSuiteType as SimpleCheckSuiteType - from .group_0376 import WebhooksWorkflowType as WebhooksWorkflowType - from .group_0377 import WebhooksApproverType as WebhooksApproverType - from .group_0411 import WebhooksRelease1Type as WebhooksRelease1Type - from .group_0416 import WebhooksChanges8Type as WebhooksChanges8Type - from .group_0591 import WebhookPageBuildType as WebhookPageBuildType - from .group_0761 import MarkdownPostBodyType as MarkdownPostBodyType - from .group_0765 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType - from .group_0934 import DependabotSecretType as DependabotSecretType - from .group_1051 import CodespacesSecretType as CodespacesSecretType - from .group_1065 import UserKeysPostBodyType as UserKeysPostBodyType + from .group_0033 import SimpleRepositoryType as SimpleRepositoryType + from .group_0041 import EventPropPayloadType as EventPropPayloadType + from .group_0058 import OrganizationFullType as OrganizationFullType + from .group_0069 import ActionsPublicKeyType as ActionsPublicKeyType + from .group_0077 import CodespaceMachineType as CodespaceMachineType + from .group_0086 import InteractionLimitType as InteractionLimitType + from .group_0090 import OrganizationRoleType as OrganizationRoleType + from .group_0148 import TeamOrganizationType as TeamOrganizationType + from .group_0162 import ActionsCacheListType as ActionsCacheListType + from .group_0177 import WorkflowRunUsageType as WorkflowRunUsageType + from .group_0185 import BranchProtectionType as BranchProtectionType + from .group_0191 import CommitPropCommitType as CommitPropCommitType + from .group_0196 import DeploymentSimpleType as DeploymentSimpleType + from .group_0217 import CodeownersErrorsType as CodeownersErrorsType + from .group_0230 import CommunityProfileType as CommunityProfileType + from .group_0231 import CommitComparisonType as CommitComparisonType + from .group_0236 import ContentSubmoduleType as ContentSubmoduleType + from .group_0245 import ManifestPropFileType as ManifestPropFileType + from .group_0247 import DeploymentStatusType as DeploymentStatusType + from .group_0259 import GitRefPropObjectType as GitRefPropObjectType + from .group_0260 import GitTagPropObjectType as GitTagPropObjectType + from .group_0260 import GitTagPropTaggerType as GitTagPropTaggerType + from .group_0267 import IssueEventRenameType as IssueEventRenameType + from .group_0278 import LockedIssueEventType as LockedIssueEventType + from .group_0302 import PagesHealthCheckType as PagesHealthCheckType + from .group_0378 import SimpleCheckSuiteType as SimpleCheckSuiteType + from .group_0381 import WebhooksWorkflowType as WebhooksWorkflowType + from .group_0382 import WebhooksApproverType as WebhooksApproverType + from .group_0417 import WebhooksRelease1Type as WebhooksRelease1Type + from .group_0422 import WebhooksChanges8Type as WebhooksChanges8Type + from .group_0597 import WebhookPageBuildType as WebhookPageBuildType + from .group_0771 import MarkdownPostBodyType as MarkdownPostBodyType + from .group_0775 import OrgsOrgPatchBodyType as OrgsOrgPatchBodyType + from .group_0954 import DependabotSecretType as DependabotSecretType + from .group_1071 import CodespacesSecretType as CodespacesSecretType + from .group_1085 import UserKeysPostBodyType as UserKeysPostBodyType from .group_0018 import InstallationTokenType as InstallationTokenType - from .group_0039 import BaseGistPropFilesType as BaseGistPropFilesType - from .group_0044 import GitignoreTemplateType as GitignoreTemplateType - from .group_0051 import MinimalRepositoryType as MinimalRepositoryType - from .group_0052 import ThreadPropSubjectType as ThreadPropSubjectType - from .group_0064 import RunnerApplicationType as RunnerApplicationType - from .group_0081 import OrgHookPropConfigType as OrgHookPropConfigType - from .group_0092 import OrgCustomPropertyType as OrgCustomPropertyType - from .group_0135 import RepositoryRulesetType as RepositoryRulesetType - from .group_0154 import RateLimitOverviewType as RateLimitOverviewType - from .group_0158 import JobPropStepsItemsType as JobPropStepsItemsType - from .group_0159 import OidcCustomSubRepoType as OidcCustomSubRepoType - from .group_0170 import PendingDeploymentType as PendingDeploymentType - from .group_0188 import StatusCheckPolicyType as StatusCheckPolicyType - from .group_0197 import CodeScanningAlertType as CodeScanningAlertType - from .group_0220 import PullRequestSimpleType as PullRequestSimpleType - from .group_0253 import GitCommitPropTreeType as GitCommitPropTreeType - from .group_0263 import LabeledIssueEventType as LabeledIssueEventType - from .group_0269 import RenamedIssueEventType as RenamedIssueEventType - from .group_0305 import PullRequestReviewType as PullRequestReviewType - from .group_0364 import StarredRepositoryType as StarredRepositoryType - from .group_0375 import WebhooksDeployKeyType as WebhooksDeployKeyType - from .group_0389 import WebhooksMilestoneType as WebhooksMilestoneType - from .group_0727 import WebhookTeamEditedType as WebhookTeamEditedType - from .group_1069 import UserReposPostBodyType as UserReposPostBodyType + from .group_0043 import BaseGistPropFilesType as BaseGistPropFilesType + from .group_0048 import GitignoreTemplateType as GitignoreTemplateType + from .group_0055 import MinimalRepositoryType as MinimalRepositoryType + from .group_0056 import ThreadPropSubjectType as ThreadPropSubjectType + from .group_0067 import RunnerApplicationType as RunnerApplicationType + from .group_0084 import OrgHookPropConfigType as OrgHookPropConfigType + from .group_0097 import OrgCustomPropertyType as OrgCustomPropertyType + from .group_0140 import RepositoryRulesetType as RepositoryRulesetType + from .group_0159 import RateLimitOverviewType as RateLimitOverviewType + from .group_0163 import JobPropStepsItemsType as JobPropStepsItemsType + from .group_0164 import OidcCustomSubRepoType as OidcCustomSubRepoType + from .group_0175 import PendingDeploymentType as PendingDeploymentType + from .group_0193 import StatusCheckPolicyType as StatusCheckPolicyType + from .group_0202 import CodeScanningAlertType as CodeScanningAlertType + from .group_0225 import PullRequestSimpleType as PullRequestSimpleType + from .group_0258 import GitCommitPropTreeType as GitCommitPropTreeType + from .group_0268 import LabeledIssueEventType as LabeledIssueEventType + from .group_0274 import RenamedIssueEventType as RenamedIssueEventType + from .group_0310 import PullRequestReviewType as PullRequestReviewType + from .group_0369 import StarredRepositoryType as StarredRepositoryType + from .group_0380 import WebhooksDeployKeyType as WebhooksDeployKeyType + from .group_0394 import WebhooksMilestoneType as WebhooksMilestoneType + from .group_0736 import WebhookTeamEditedType as WebhookTeamEditedType + from .group_1089 import UserReposPostBodyType as UserReposPostBodyType from .group_0019 import ScopedInstallationType as ScopedInstallationType - from .group_0041 import PublicUserPropPlanType as PublicUserPropPlanType - from .group_0053 import ThreadSubscriptionType as ThreadSubscriptionType - from .group_0077 import CopilotSeatDetailsType as CopilotSeatDetailsType - from .group_0084 import OrganizationSimpleType as OrganizationSimpleType - from .group_0139 import RepositoryAdvisoryType as RepositoryAdvisoryType - from .group_0164 import PullRequestMinimalType as PullRequestMinimalType - from .group_0166 import ReferencedWorkflowType as ReferencedWorkflowType - from .group_0192 import CheckRunPropOutputType as CheckRunPropOutputType - from .group_0223 import SimpleCommitStatusType as SimpleCommitStatusType - from .group_0265 import AssignedIssueEventType as AssignedIssueEventType - from .group_0293 import PageBuildPropErrorType as PageBuildPropErrorType - from .group_0335 import ParticipationStatsType as ParticipationStatsType - from .group_0361 import MarketplaceAccountType as MarketplaceAccountType - from .group_0367 import EnterpriseWebhooksType as EnterpriseWebhooksType - from .group_0368 import SimpleInstallationType as SimpleInstallationType - from .group_0370 import RepositoryWebhooksType as RepositoryWebhooksType - from .group_0371 import SimpleUserWebhooksType as SimpleUserWebhooksType - from .group_0381 import DiscussionPropUserType as DiscussionPropUserType - from .group_0396 import WebhooksMilestone3Type as WebhooksMilestone3Type - from .group_0397 import WebhooksMembershipType as WebhooksMembershipType - from .group_0405 import PullRequestWebhookType as PullRequestWebhookType - from .group_0558 import WebhookLabelEditedType as WebhookLabelEditedType - from .group_0564 import WebhookMemberAddedType as WebhookMemberAddedType - from .group_0571 import WebhookMetaDeletedType as WebhookMetaDeletedType - from .group_0716 import WebhookStarCreatedType as WebhookStarCreatedType - from .group_0717 import WebhookStarDeletedType as WebhookStarDeletedType - from .group_0725 import WebhookTeamCreatedType as WebhookTeamCreatedType - from .group_0726 import WebhookTeamDeletedType as WebhookTeamDeletedType + from .group_0027 import OrganizationSimpleType as OrganizationSimpleType + from .group_0028 import CopilotSeatDetailsType as CopilotSeatDetailsType + from .group_0045 import PublicUserPropPlanType as PublicUserPropPlanType + from .group_0057 import ThreadSubscriptionType as ThreadSubscriptionType + from .group_0091 import TeamRoleAssignmentType as TeamRoleAssignmentType + from .group_0092 import UserRoleAssignmentType as UserRoleAssignmentType + from .group_0144 import RepositoryAdvisoryType as RepositoryAdvisoryType + from .group_0169 import PullRequestMinimalType as PullRequestMinimalType + from .group_0171 import ReferencedWorkflowType as ReferencedWorkflowType + from .group_0197 import CheckRunPropOutputType as CheckRunPropOutputType + from .group_0228 import SimpleCommitStatusType as SimpleCommitStatusType + from .group_0270 import AssignedIssueEventType as AssignedIssueEventType + from .group_0298 import PageBuildPropErrorType as PageBuildPropErrorType + from .group_0340 import ParticipationStatsType as ParticipationStatsType + from .group_0366 import MarketplaceAccountType as MarketplaceAccountType + from .group_0372 import EnterpriseWebhooksType as EnterpriseWebhooksType + from .group_0373 import SimpleInstallationType as SimpleInstallationType + from .group_0375 import RepositoryWebhooksType as RepositoryWebhooksType + from .group_0376 import SimpleUserWebhooksType as SimpleUserWebhooksType + from .group_0386 import DiscussionPropUserType as DiscussionPropUserType + from .group_0401 import WebhooksMilestone3Type as WebhooksMilestone3Type + from .group_0402 import WebhooksMembershipType as WebhooksMembershipType + from .group_0411 import PullRequestWebhookType as PullRequestWebhookType + from .group_0564 import WebhookLabelEditedType as WebhookLabelEditedType + from .group_0570 import WebhookMemberAddedType as WebhookMemberAddedType + from .group_0577 import WebhookMetaDeletedType as WebhookMetaDeletedType + from .group_0725 import WebhookStarCreatedType as WebhookStarCreatedType + from .group_0726 import WebhookStarDeletedType as WebhookStarDeletedType + from .group_0734 import WebhookTeamCreatedType as WebhookTeamCreatedType + from .group_0735 import WebhookTeamDeletedType as WebhookTeamDeletedType from .group_0022 import ClassroomAssignmentType as ClassroomAssignmentType from .group_0023 import SimpleClassroomUserType as SimpleClassroomUserType - from .group_0025 import CopilotUsageMetricsType as CopilotUsageMetricsType - from .group_0041 import GistSimplePropFilesType as GistSimplePropFilesType - from .group_0047 import MarketplacePurchaseType as MarketplacePurchaseType - from .group_0050 import SecurityAndAnalysisType as SecurityAndAnalysisType - from .group_0065 import AuthenticationTokenType as AuthenticationTokenType - from .group_0073 import CodespacesPublicKeyType as CodespacesPublicKeyType - from .group_0076 import TeamPropPermissionsType as TeamPropPermissionsType - from .group_0078 import DependabotPublicKeyType as DependabotPublicKeyType - from .group_0093 import CustomPropertyValueType as CustomPropertyValueType - from .group_0095 import CodeOfConductSimpleType as CodeOfConductSimpleType - from .group_0140 import ActionsBillingUsageType as ActionsBillingUsageType - from .group_0225 import CommunityHealthFileType as CommunityHealthFileType - from .group_0253 import GitCommitPropAuthorType as GitCommitPropAuthorType - from .group_0262 import IssueEventMilestoneType as IssueEventMilestoneType - from .group_0264 import UnlabeledIssueEventType as UnlabeledIssueEventType - from .group_0299 import PullRequestPropHeadType as PullRequestPropHeadType - from .group_0300 import PullRequestPropBaseType as PullRequestPropBaseType - from .group_0310 import ReleaseNotesContentType as ReleaseNotesContentType - from .group_0328 import SecretScanningAlertType as SecretScanningAlertType - from .group_0334 import ContributorActivityType as ContributorActivityType - from .group_0354 import PrivateUserPropPlanType as PrivateUserPropPlanType - from .group_0399 import WebhooksProjectCardType as WebhooksProjectCardType - from .group_0415 import WebhooksSponsorshipType as WebhooksSponsorshipType - from .group_0531 import WebhookIssuesClosedType as WebhookIssuesClosedType - from .group_0544 import WebhookIssuesEditedType as WebhookIssuesEditedType - from .group_0546 import WebhookIssuesLockedType as WebhookIssuesLockedType - from .group_0548 import WebhookIssuesOpenedType as WebhookIssuesOpenedType - from .group_0549 import WebhookIssuesPinnedType as WebhookIssuesPinnedType - from .group_0556 import WebhookLabelCreatedType as WebhookLabelCreatedType - from .group_0557 import WebhookLabelDeletedType as WebhookLabelDeletedType - from .group_0565 import WebhookMemberEditedType as WebhookMemberEditedType - from .group_0597 import WebhookPingPropHookType as WebhookPingPropHookType - from .group_0729 import WebhookWatchStartedType as WebhookWatchStartedType - from .group_0790 import CodespacesOrgSecretType as CodespacesOrgSecretType - from .group_1061 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType + from .group_0026 import TeamPropPermissionsType as TeamPropPermissionsType + from .group_0029 import CopilotUsageMetricsType as CopilotUsageMetricsType + from .group_0045 import GistSimplePropFilesType as GistSimplePropFilesType + from .group_0051 import MarketplacePurchaseType as MarketplacePurchaseType + from .group_0054 import SecurityAndAnalysisType as SecurityAndAnalysisType + from .group_0068 import AuthenticationTokenType as AuthenticationTokenType + from .group_0079 import CodespacesPublicKeyType as CodespacesPublicKeyType + from .group_0081 import DependabotPublicKeyType as DependabotPublicKeyType + from .group_0098 import CustomPropertyValueType as CustomPropertyValueType + from .group_0100 import CodeOfConductSimpleType as CodeOfConductSimpleType + from .group_0145 import ActionsBillingUsageType as ActionsBillingUsageType + from .group_0230 import CommunityHealthFileType as CommunityHealthFileType + from .group_0258 import GitCommitPropAuthorType as GitCommitPropAuthorType + from .group_0267 import IssueEventMilestoneType as IssueEventMilestoneType + from .group_0269 import UnlabeledIssueEventType as UnlabeledIssueEventType + from .group_0304 import PullRequestPropHeadType as PullRequestPropHeadType + from .group_0305 import PullRequestPropBaseType as PullRequestPropBaseType + from .group_0315 import ReleaseNotesContentType as ReleaseNotesContentType + from .group_0333 import SecretScanningAlertType as SecretScanningAlertType + from .group_0339 import ContributorActivityType as ContributorActivityType + from .group_0359 import PrivateUserPropPlanType as PrivateUserPropPlanType + from .group_0404 import WebhooksProjectCardType as WebhooksProjectCardType + from .group_0421 import WebhooksSponsorshipType as WebhooksSponsorshipType + from .group_0537 import WebhookIssuesClosedType as WebhookIssuesClosedType + from .group_0550 import WebhookIssuesEditedType as WebhookIssuesEditedType + from .group_0552 import WebhookIssuesLockedType as WebhookIssuesLockedType + from .group_0554 import WebhookIssuesOpenedType as WebhookIssuesOpenedType + from .group_0555 import WebhookIssuesPinnedType as WebhookIssuesPinnedType + from .group_0562 import WebhookLabelCreatedType as WebhookLabelCreatedType + from .group_0563 import WebhookLabelDeletedType as WebhookLabelDeletedType + from .group_0571 import WebhookMemberEditedType as WebhookMemberEditedType + from .group_0603 import WebhookPingPropHookType as WebhookPingPropHookType + from .group_0738 import WebhookWatchStartedType as WebhookWatchStartedType + from .group_0806 import CodespacesOrgSecretType as CodespacesOrgSecretType + from .group_1081 import UserGpgKeysPostBodyType as UserGpgKeysPostBodyType from .group_0020 import AuthorizationPropAppType as AuthorizationPropAppType - from .group_0035 import IssuePropPullRequestType as IssuePropPullRequestType - from .group_0040 import GistSimplePropForkOfType as GistSimplePropForkOfType - from .group_0074 import CopilotSeatBreakdownType as CopilotSeatBreakdownType - from .group_0077 import OrganizationPropPlanType as OrganizationPropPlanType - from .group_0110 import RepositoryRuleUpdateType as RepositoryRuleUpdateType - from .group_0141 import PackagesBillingUsageType as PackagesBillingUsageType - from .group_0142 import CombinedBillingUsageType as CombinedBillingUsageType - from .group_0167 import EnvironmentApprovalsType as EnvironmentApprovalsType - from .group_0187 import BranchWithProtectionType as BranchWithProtectionType - from .group_0195 import CheckSuitePreferenceType as CheckSuitePreferenceType - from .group_0198 import CodeScanningAnalysisType as CodeScanningAnalysisType - from .group_0214 import RepositoryInvitationType as RepositoryInvitationType - from .group_0223 import CombinedCommitStatusType as CombinedCommitStatusType - from .group_0227 import ContentTreePropLinksType as ContentTreePropLinksType - from .group_0229 import ContentFilePropLinksType as ContentFilePropLinksType - from .group_0232 import FileCommitPropCommitType as FileCommitPropCommitType - from .group_0240 import ManifestPropResolvedType as ManifestPropResolvedType - from .group_0241 import SnapshotPropDetectorType as SnapshotPropDetectorType - from .group_0256 import GitTreePropTreeItemsType as GitTreePropTreeItemsType - from .group_0266 import UnassignedIssueEventType as UnassignedIssueEventType - from .group_0267 import MilestonedIssueEventType as MilestonedIssueEventType - from .group_0279 import TimelineCommentEventType as TimelineCommentEventType - from .group_0302 import PullRequestPropLinksType as PullRequestPropLinksType - from .group_0346 import CodeSearchResultItemType as CodeSearchResultItemType - from .group_0351 import RepoSearchResultItemType as RepoSearchResultItemType - from .group_0353 import UserSearchResultItemType as UserSearchResultItemType - from .group_0386 import WebhooksIssueCommentType as WebhooksIssueCommentType - from .group_0407 import WebhooksPullRequest5Type as WebhooksPullRequest5Type - from .group_0542 import WebhookIssuesDeletedType as WebhookIssuesDeletedType - from .group_0545 import WebhookIssuesLabeledType as WebhookIssuesLabeledType - from .group_0566 import WebhookMemberRemovedType as WebhookMemberRemovedType - from .group_0606 import WebhookProjectClosedType as WebhookProjectClosedType - from .group_0613 import WebhookProjectEditedType as WebhookProjectEditedType - from .group_0668 import WebhookReleaseEditedType as WebhookReleaseEditedType - from .group_0752 import EmojisGetResponse200Type as EmojisGetResponse200Type - from .group_0756 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType - from .group_0762 import NotificationsPutBodyType as NotificationsPutBodyType - from .group_0806 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType - from .group_0828 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType - from .group_0831 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType - from .group_0924 import RepoCodespacesSecretType as RepoCodespacesSecretType - from .group_1036 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType - from .group_1068 import UserProjectsPostBodyType as UserProjectsPostBodyType + from .group_0028 import OrganizationPropPlanType as OrganizationPropPlanType + from .group_0039 import IssuePropPullRequestType as IssuePropPullRequestType + from .group_0044 import GistSimplePropForkOfType as GistSimplePropForkOfType + from .group_0080 import CopilotSeatBreakdownType as CopilotSeatBreakdownType + from .group_0115 import RepositoryRuleUpdateType as RepositoryRuleUpdateType + from .group_0146 import PackagesBillingUsageType as PackagesBillingUsageType + from .group_0147 import CombinedBillingUsageType as CombinedBillingUsageType + from .group_0172 import EnvironmentApprovalsType as EnvironmentApprovalsType + from .group_0192 import BranchWithProtectionType as BranchWithProtectionType + from .group_0200 import CheckSuitePreferenceType as CheckSuitePreferenceType + from .group_0203 import CodeScanningAnalysisType as CodeScanningAnalysisType + from .group_0219 import RepositoryInvitationType as RepositoryInvitationType + from .group_0228 import CombinedCommitStatusType as CombinedCommitStatusType + from .group_0232 import ContentTreePropLinksType as ContentTreePropLinksType + from .group_0234 import ContentFilePropLinksType as ContentFilePropLinksType + from .group_0237 import FileCommitPropCommitType as FileCommitPropCommitType + from .group_0245 import ManifestPropResolvedType as ManifestPropResolvedType + from .group_0246 import SnapshotPropDetectorType as SnapshotPropDetectorType + from .group_0261 import GitTreePropTreeItemsType as GitTreePropTreeItemsType + from .group_0271 import UnassignedIssueEventType as UnassignedIssueEventType + from .group_0272 import MilestonedIssueEventType as MilestonedIssueEventType + from .group_0284 import TimelineCommentEventType as TimelineCommentEventType + from .group_0307 import PullRequestPropLinksType as PullRequestPropLinksType + from .group_0351 import CodeSearchResultItemType as CodeSearchResultItemType + from .group_0356 import RepoSearchResultItemType as RepoSearchResultItemType + from .group_0358 import UserSearchResultItemType as UserSearchResultItemType + from .group_0391 import WebhooksIssueCommentType as WebhooksIssueCommentType + from .group_0413 import WebhooksPullRequest5Type as WebhooksPullRequest5Type + from .group_0548 import WebhookIssuesDeletedType as WebhookIssuesDeletedType + from .group_0551 import WebhookIssuesLabeledType as WebhookIssuesLabeledType + from .group_0572 import WebhookMemberRemovedType as WebhookMemberRemovedType + from .group_0612 import WebhookProjectClosedType as WebhookProjectClosedType + from .group_0619 import WebhookProjectEditedType as WebhookProjectEditedType + from .group_0677 import WebhookReleaseEditedType as WebhookReleaseEditedType + from .group_0761 import EmojisGetResponse200Type as EmojisGetResponse200Type + from .group_0766 import GistsGistIdPatchBodyType as GistsGistIdPatchBodyType + from .group_0772 import NotificationsPutBodyType as NotificationsPutBodyType + from .group_0823 import OrgsOrgHooksPostBodyType as OrgsOrgHooksPostBodyType + from .group_0845 import OrgsOrgReposPostBodyType as OrgsOrgReposPostBodyType + from .group_0848 import OrgsOrgTeamsPostBodyType as OrgsOrgTeamsPostBodyType + from .group_0944 import RepoCodespacesSecretType as RepoCodespacesSecretType + from .group_1056 import TeamsTeamIdPatchBodyType as TeamsTeamIdPatchBodyType + from .group_1088 import UserProjectsPostBodyType as UserProjectsPostBodyType from .group_0004 import ValidationErrorSimpleType as ValidationErrorSimpleType - from .group_0109 import RepositoryRuleOneof14Type as RepositoryRuleOneof14Type - from .group_0109 import RepositoryRuleOneof16Type as RepositoryRuleOneof16Type - from .group_0112 import RepositoryRuleOneof15Type as RepositoryRuleOneof15Type - from .group_0134 import RepositoryRuleOneof17Type as RepositoryRuleOneof17Type - from .group_0145 import TeamDiscussionCommentType as TeamDiscussionCommentType - from .group_0181 import ShortBranchPropCommitType as ShortBranchPropCommitType - from .group_0197 import CodeScanningAlertRuleType as CodeScanningAlertRuleType - from .group_0217 import BranchShortPropCommitType as BranchShortPropCommitType - from .group_0228 import ContentDirectoryItemsType as ContentDirectoryItemsType - from .group_0232 import FileCommitPropContentType as FileCommitPropContentType - from .group_0241 import SnapshotPropManifestsType as SnapshotPropManifestsType - from .group_0262 import IssueEventProjectCardType as IssueEventProjectCardType - from .group_0283 import TimelineReviewedEventType as TimelineReviewedEventType - from .group_0287 import StateChangeIssueEventType as StateChangeIssueEventType - from .group_0292 import PagesHttpsCertificateType as PagesHttpsCertificateType - from .group_0296 import PagesDeploymentStatusType as PagesDeploymentStatusType - from .group_0349 import IssueSearchResultItemType as IssueSearchResultItemType - from .group_0350 import LabelSearchResultItemType as LabelSearchResultItemType - from .group_0352 import TopicSearchResultItemType as TopicSearchResultItemType - from .group_0359 import GpgKeyPropEmailsItemsType as GpgKeyPropEmailsItemsType - from .group_0388 import WebhooksIssuePropUserType as WebhooksIssuePropUserType - from .group_0391 import WebhooksUserMannequinType as WebhooksUserMannequinType - from .group_0401 import WebhooksProjectColumnType as WebhooksProjectColumnType - from .group_0408 import WebhooksReviewCommentType as WebhooksReviewCommentType - from .group_0482 import WebhookForkPropForkeeType as WebhookForkPropForkeeType - from .group_0530 import WebhookIssuesAssignedType as WebhookIssuesAssignedType - from .group_0550 import WebhookIssuesReopenedType as WebhookIssuesReopenedType - from .group_0554 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType - from .group_0555 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType - from .group_0588 import WebhookPackageUpdatedType as WebhookPackageUpdatedType - from .group_0611 import WebhookProjectCreatedType as WebhookProjectCreatedType - from .group_0612 import WebhookProjectDeletedType as WebhookProjectDeletedType - from .group_0659 import WebhookPushPropPusherType as WebhookPushPropPusherType - from .group_0666 import WebhookReleaseCreatedType as WebhookReleaseCreatedType - from .group_0667 import WebhookReleaseDeletedType as WebhookReleaseDeletedType + from .group_0114 import RepositoryRuleOneof14Type as RepositoryRuleOneof14Type + from .group_0114 import RepositoryRuleOneof16Type as RepositoryRuleOneof16Type + from .group_0117 import RepositoryRuleOneof15Type as RepositoryRuleOneof15Type + from .group_0139 import RepositoryRuleOneof17Type as RepositoryRuleOneof17Type + from .group_0150 import TeamDiscussionCommentType as TeamDiscussionCommentType + from .group_0186 import ShortBranchPropCommitType as ShortBranchPropCommitType + from .group_0202 import CodeScanningAlertRuleType as CodeScanningAlertRuleType + from .group_0222 import BranchShortPropCommitType as BranchShortPropCommitType + from .group_0233 import ContentDirectoryItemsType as ContentDirectoryItemsType + from .group_0237 import FileCommitPropContentType as FileCommitPropContentType + from .group_0246 import SnapshotPropManifestsType as SnapshotPropManifestsType + from .group_0267 import IssueEventProjectCardType as IssueEventProjectCardType + from .group_0288 import TimelineReviewedEventType as TimelineReviewedEventType + from .group_0292 import StateChangeIssueEventType as StateChangeIssueEventType + from .group_0297 import PagesHttpsCertificateType as PagesHttpsCertificateType + from .group_0301 import PagesDeploymentStatusType as PagesDeploymentStatusType + from .group_0354 import IssueSearchResultItemType as IssueSearchResultItemType + from .group_0355 import LabelSearchResultItemType as LabelSearchResultItemType + from .group_0357 import TopicSearchResultItemType as TopicSearchResultItemType + from .group_0364 import GpgKeyPropEmailsItemsType as GpgKeyPropEmailsItemsType + from .group_0393 import WebhooksIssuePropUserType as WebhooksIssuePropUserType + from .group_0396 import WebhooksUserMannequinType as WebhooksUserMannequinType + from .group_0406 import WebhooksProjectColumnType as WebhooksProjectColumnType + from .group_0414 import WebhooksReviewCommentType as WebhooksReviewCommentType + from .group_0488 import WebhookForkPropForkeeType as WebhookForkPropForkeeType + from .group_0536 import WebhookIssuesAssignedType as WebhookIssuesAssignedType + from .group_0556 import WebhookIssuesReopenedType as WebhookIssuesReopenedType + from .group_0560 import WebhookIssuesUnlockedType as WebhookIssuesUnlockedType + from .group_0561 import WebhookIssuesUnpinnedType as WebhookIssuesUnpinnedType + from .group_0594 import WebhookPackageUpdatedType as WebhookPackageUpdatedType + from .group_0617 import WebhookProjectCreatedType as WebhookProjectCreatedType + from .group_0618 import WebhookProjectDeletedType as WebhookProjectDeletedType + from .group_0668 import WebhookPushPropPusherType as WebhookPushPropPusherType + from .group_0675 import WebhookReleaseCreatedType as WebhookReleaseCreatedType + from .group_0676 import WebhookReleaseDeletedType as WebhookReleaseDeletedType from .group_0002 import GlobalAdvisoryPropCvssType as GlobalAdvisoryPropCvssType - from .group_0026 import DependabotAlertPackageType as DependabotAlertPackageType - from .group_0046 import MarketplaceListingPlanType as MarketplaceListingPlanType - from .group_0049 import ApiOverviewPropDomainsType as ApiOverviewPropDomainsType - from .group_0072 import CodespacePropGitStatusType as CodespacePropGitStatusType - from .group_0080 import OrganizationInvitationType as OrganizationInvitationType - from .group_0109 import RepositoryRuleCreationType as RepositoryRuleCreationType - from .group_0109 import RepositoryRuleDeletionType as RepositoryRuleDeletionType - from .group_0165 import SimpleCommitPropAuthorType as SimpleCommitPropAuthorType - from .group_0185 import CommitPropParentsItemsType as CommitPropParentsItemsType - from .group_0192 import CheckRunPropCheckSuiteType as CheckRunPropCheckSuiteType - from .group_0196 import CodeScanningAlertItemsType as CodeScanningAlertItemsType - from .group_0253 import GitCommitPropCommitterType as GitCommitPropCommitterType - from .group_0268 import DemilestonedIssueEventType as DemilestonedIssueEventType - from .group_0282 import TimelineCommittedEventType as TimelineCommittedEventType - from .group_0303 import PullRequestMergeResultType as PullRequestMergeResultType - from .group_0307 import ReviewCommentPropLinksType as ReviewCommentPropLinksType - from .group_0336 import RepositorySubscriptionType as RepositorySubscriptionType - from .group_0347 import CommitSearchResultItemType as CommitSearchResultItemType - from .group_0356 import CodespaceExportDetailsType as CodespaceExportDetailsType - from .group_0359 import GpgKeyPropSubkeysItemsType as GpgKeyPropSubkeysItemsType - from .group_0377 import WebhooksReviewersItemsType as WebhooksReviewersItemsType - from .group_0378 import WebhooksWorkflowJobRunType as WebhooksWorkflowJobRunType - from .group_0380 import WebhooksAnswerPropUserType as WebhooksAnswerPropUserType - from .group_0381 import DiscussionPropCategoryType as DiscussionPropCategoryType - from .group_0390 import WebhooksIssue2PropUserType as WebhooksIssue2PropUserType - from .group_0394 import WebhooksTeamPropParentType as WebhooksTeamPropParentType - from .group_0403 import WebhooksProjectChangesType as WebhooksProjectChangesType - from .group_0409 import WebhooksReviewPropUserType as WebhooksReviewPropUserType - from .group_0425 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType - from .group_0553 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType - from .group_0567 import WebhookMembershipAddedType as WebhookMembershipAddedType - from .group_0572 import WebhookMilestoneClosedType as WebhookMilestoneClosedType - from .group_0575 import WebhookMilestoneEditedType as WebhookMilestoneEditedType - from .group_0576 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType - from .group_0577 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType - from .group_0598 import WebhookPingFormEncodedType as WebhookPingFormEncodedType - from .group_0614 import WebhookProjectReopenedType as WebhookProjectReopenedType - from .group_0671 import WebhookReleaseReleasedType as WebhookReleaseReleasedType - from .group_0699 import SecretScanningLocationType as SecretScanningLocationType - from .group_0744 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType - from .group_0754 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType - from .group_0942 import DeploymentBranchPolicyType as DeploymentBranchPolicyType - from .group_1067 import UserMigrationsPostBodyType as UserMigrationsPostBodyType + from .group_0030 import DependabotAlertPackageType as DependabotAlertPackageType + from .group_0050 import MarketplaceListingPlanType as MarketplaceListingPlanType + from .group_0053 import ApiOverviewPropDomainsType as ApiOverviewPropDomainsType + from .group_0078 import CodespacePropGitStatusType as CodespacePropGitStatusType + from .group_0083 import OrganizationInvitationType as OrganizationInvitationType + from .group_0114 import RepositoryRuleCreationType as RepositoryRuleCreationType + from .group_0114 import RepositoryRuleDeletionType as RepositoryRuleDeletionType + from .group_0170 import SimpleCommitPropAuthorType as SimpleCommitPropAuthorType + from .group_0190 import CommitPropParentsItemsType as CommitPropParentsItemsType + from .group_0197 import CheckRunPropCheckSuiteType as CheckRunPropCheckSuiteType + from .group_0201 import CodeScanningAlertItemsType as CodeScanningAlertItemsType + from .group_0258 import GitCommitPropCommitterType as GitCommitPropCommitterType + from .group_0273 import DemilestonedIssueEventType as DemilestonedIssueEventType + from .group_0287 import TimelineCommittedEventType as TimelineCommittedEventType + from .group_0308 import PullRequestMergeResultType as PullRequestMergeResultType + from .group_0312 import ReviewCommentPropLinksType as ReviewCommentPropLinksType + from .group_0341 import RepositorySubscriptionType as RepositorySubscriptionType + from .group_0352 import CommitSearchResultItemType as CommitSearchResultItemType + from .group_0361 import CodespaceExportDetailsType as CodespaceExportDetailsType + from .group_0364 import GpgKeyPropSubkeysItemsType as GpgKeyPropSubkeysItemsType + from .group_0382 import WebhooksReviewersItemsType as WebhooksReviewersItemsType + from .group_0383 import WebhooksWorkflowJobRunType as WebhooksWorkflowJobRunType + from .group_0385 import WebhooksAnswerPropUserType as WebhooksAnswerPropUserType + from .group_0386 import DiscussionPropCategoryType as DiscussionPropCategoryType + from .group_0395 import WebhooksIssue2PropUserType as WebhooksIssue2PropUserType + from .group_0399 import WebhooksTeamPropParentType as WebhooksTeamPropParentType + from .group_0408 import WebhooksProjectChangesType as WebhooksProjectChangesType + from .group_0410 import ProjectsV2StatusUpdateType as ProjectsV2StatusUpdateType + from .group_0415 import WebhooksReviewPropUserType as WebhooksReviewPropUserType + from .group_0431 import WebhookCheckRunCreatedType as WebhookCheckRunCreatedType + from .group_0559 import WebhookIssuesUnlabeledType as WebhookIssuesUnlabeledType + from .group_0573 import WebhookMembershipAddedType as WebhookMembershipAddedType + from .group_0578 import WebhookMilestoneClosedType as WebhookMilestoneClosedType + from .group_0581 import WebhookMilestoneEditedType as WebhookMilestoneEditedType + from .group_0582 import WebhookMilestoneOpenedType as WebhookMilestoneOpenedType + from .group_0583 import WebhookOrgBlockBlockedType as WebhookOrgBlockBlockedType + from .group_0604 import WebhookPingFormEncodedType as WebhookPingFormEncodedType + from .group_0620 import WebhookProjectReopenedType as WebhookProjectReopenedType + from .group_0680 import WebhookReleaseReleasedType as WebhookReleaseReleasedType + from .group_0708 import SecretScanningLocationType as SecretScanningLocationType + from .group_0753 import AppHookConfigPatchBodyType as AppHookConfigPatchBodyType + from .group_0764 import GistsPostBodyPropFilesType as GistsPostBodyPropFilesType + from .group_0962 import DeploymentBranchPolicyType as DeploymentBranchPolicyType + from .group_1087 import UserMigrationsPostBodyType as UserMigrationsPostBodyType from .group_0011 import HookDeliveryPropRequestType as HookDeliveryPropRequestType - from .group_0130 import RepositoryRuleWorkflowsType as RepositoryRuleWorkflowsType - from .group_0156 import ArtifactPropWorkflowRunType as ArtifactPropWorkflowRunType - from .group_0179 import BranchRestrictionPolicyType as BranchRestrictionPolicyType - from .group_0230 import ContentSymlinkPropLinksType as ContentSymlinkPropLinksType - from .group_0237 import DependencyGraphSpdxSbomType as DependencyGraphSpdxSbomType - from .group_0249 import CustomDeploymentRuleAppType as CustomDeploymentRuleAppType - from .group_0290 import LicenseContentPropLinksType as LicenseContentPropLinksType - from .group_0355 import CodespacesUserPublicKeyType as CodespacesUserPublicKeyType - from .group_0361 import UserMarketplacePurchaseType as UserMarketplacePurchaseType - from .group_0381 import DiscussionPropReactionsType as DiscussionPropReactionsType - from .group_0382 import WebhooksCommentPropUserType as WebhooksCommentPropUserType - from .group_0387 import WebhooksChangesPropBodyType as WebhooksChangesPropBodyType - from .group_0409 import WebhooksReviewPropLinksType as WebhooksReviewPropLinksType - from .group_0417 import WebhooksTeam1PropParentType as WebhooksTeam1PropParentType - from .group_0454 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType - from .group_0455 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType - from .group_0464 import WebhookDiscussionClosedType as WebhookDiscussionClosedType - from .group_0470 import WebhookDiscussionEditedType as WebhookDiscussionEditedType - from .group_0472 import WebhookDiscussionLockedType as WebhookDiscussionLockedType - from .group_0473 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType - from .group_0547 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType - from .group_0552 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType - from .group_0573 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType - from .group_0574 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType - from .group_0584 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType - from .group_0585 import WebhookPackagePublishedType as WebhookPackagePublishedType - from .group_0603 import WebhookProjectCardMovedType as WebhookProjectCardMovedType - from .group_0670 import WebhookReleasePublishedType as WebhookReleasePublishedType - from .group_0679 import WebhookRepositoryEditedType as WebhookRepositoryEditedType - from .group_0680 import WebhookRepositoryImportType as WebhookRepositoryImportType - from .group_0718 import WebhookStatusPropCommitType as WebhookStatusPropCommitType - from .group_0730 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType - from .group_0824 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType - from .group_0829 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType - from .group_0862 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType + from .group_0135 import RepositoryRuleWorkflowsType as RepositoryRuleWorkflowsType + from .group_0161 import ArtifactPropWorkflowRunType as ArtifactPropWorkflowRunType + from .group_0184 import BranchRestrictionPolicyType as BranchRestrictionPolicyType + from .group_0235 import ContentSymlinkPropLinksType as ContentSymlinkPropLinksType + from .group_0242 import DependencyGraphSpdxSbomType as DependencyGraphSpdxSbomType + from .group_0254 import CustomDeploymentRuleAppType as CustomDeploymentRuleAppType + from .group_0295 import LicenseContentPropLinksType as LicenseContentPropLinksType + from .group_0360 import CodespacesUserPublicKeyType as CodespacesUserPublicKeyType + from .group_0366 import UserMarketplacePurchaseType as UserMarketplacePurchaseType + from .group_0386 import DiscussionPropReactionsType as DiscussionPropReactionsType + from .group_0387 import WebhooksCommentPropUserType as WebhooksCommentPropUserType + from .group_0392 import WebhooksChangesPropBodyType as WebhooksChangesPropBodyType + from .group_0415 import WebhooksReviewPropLinksType as WebhooksReviewPropLinksType + from .group_0423 import WebhooksTeam1PropParentType as WebhooksTeam1PropParentType + from .group_0460 import WebhookDeployKeyCreatedType as WebhookDeployKeyCreatedType + from .group_0461 import WebhookDeployKeyDeletedType as WebhookDeployKeyDeletedType + from .group_0470 import WebhookDiscussionClosedType as WebhookDiscussionClosedType + from .group_0476 import WebhookDiscussionEditedType as WebhookDiscussionEditedType + from .group_0478 import WebhookDiscussionLockedType as WebhookDiscussionLockedType + from .group_0479 import WebhookDiscussionPinnedType as WebhookDiscussionPinnedType + from .group_0553 import WebhookIssuesMilestonedType as WebhookIssuesMilestonedType + from .group_0558 import WebhookIssuesUnassignedType as WebhookIssuesUnassignedType + from .group_0579 import WebhookMilestoneCreatedType as WebhookMilestoneCreatedType + from .group_0580 import WebhookMilestoneDeletedType as WebhookMilestoneDeletedType + from .group_0590 import WebhookRubygemsMetadataType as WebhookRubygemsMetadataType + from .group_0591 import WebhookPackagePublishedType as WebhookPackagePublishedType + from .group_0609 import WebhookProjectCardMovedType as WebhookProjectCardMovedType + from .group_0679 import WebhookReleasePublishedType as WebhookReleasePublishedType + from .group_0688 import WebhookRepositoryEditedType as WebhookRepositoryEditedType + from .group_0689 import WebhookRepositoryImportType as WebhookRepositoryImportType + from .group_0727 import WebhookStatusPropCommitType as WebhookStatusPropCommitType + from .group_0739 import WebhookWorkflowDispatchType as WebhookWorkflowDispatchType + from .group_0841 import OrgsOrgProjectsPostBodyType as OrgsOrgProjectsPostBodyType + from .group_0846 import OrgsOrgRulesetsPostBodyType as OrgsOrgRulesetsPostBodyType + from .group_0879 import ReposOwnerRepoPatchBodyType as ReposOwnerRepoPatchBodyType from .group_0002 import VulnerabilityPropPackageType as VulnerabilityPropPackageType from .group_0011 import HookDeliveryPropResponseType as HookDeliveryPropResponseType from .group_0024 import ClassroomAssignmentGradeType as ClassroomAssignmentGradeType - from .group_0041 import GistSimplePropForksItemsType as GistSimplePropForksItemsType - from .group_0054 import OrganizationFullPropPlanType as OrganizationFullPropPlanType - from .group_0068 import CodeScanningAnalysisToolType as CodeScanningAnalysisToolType - from .group_0082 import InteractionLimitResponseType as InteractionLimitResponseType - from .group_0138 import RepositoryAdvisoryCreditType as RepositoryAdvisoryCreditType - from .group_0143 import TeamOrganizationPropPlanType as TeamOrganizationPropPlanType - from .group_0186 import CommitPropCommitPropTreeType as CommitPropCommitPropTreeType - from .group_0207 import CodeScanningDefaultSetupType as CodeScanningDefaultSetupType - from .group_0211 import CodeScanningSarifsStatusType as CodeScanningSarifsStatusType - from .group_0236 import DependencyGraphDiffItemsType as DependencyGraphDiffItemsType - from .group_0250 import DeploymentProtectionRuleType as DeploymentProtectionRuleType - from .group_0274 import AddedToProjectIssueEventType as AddedToProjectIssueEventType - from .group_0284 import PullRequestReviewCommentType as PullRequestReviewCommentType - from .group_0304 import PullRequestReviewRequestType as PullRequestReviewRequestType - from .group_0329 import RepositoryAdvisoryCreateType as RepositoryAdvisoryCreateType - from .group_0331 import RepositoryAdvisoryUpdateType as RepositoryAdvisoryUpdateType - from .group_0346 import SearchCodeGetResponse200Type as SearchCodeGetResponse200Type - from .group_0406 import PullRequestWebhookAllof1Type as PullRequestWebhookAllof1Type - from .group_0414 import WebhooksSecurityAdvisoryType as WebhooksSecurityAdvisoryType - from .group_0416 import WebhooksChanges8PropTierType as WebhooksChanges8PropTierType - from .group_0423 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType - from .group_0456 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType - from .group_0468 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType - from .group_0469 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType - from .group_0471 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType - from .group_0551 import WebhookIssuesTransferredType as WebhookIssuesTransferredType - from .group_0568 import WebhookMembershipRemovedType as WebhookMembershipRemovedType - from .group_0578 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType - from .group_0602 import WebhookProjectCardEditedType as WebhookProjectCardEditedType - from .group_0631 import WebhookPullRequestClosedType as WebhookPullRequestClosedType - from .group_0635 import WebhookPullRequestEditedType as WebhookPullRequestEditedType - from .group_0638 import WebhookPullRequestLockedType as WebhookPullRequestLockedType - from .group_0640 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType - from .group_0676 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType - from .group_0677 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType - from .group_0683 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType - from .group_0712 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType - from .group_0737 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType - from .group_1059 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type + from .group_0045 import GistSimplePropForksItemsType as GistSimplePropForksItemsType + from .group_0058 import OrganizationFullPropPlanType as OrganizationFullPropPlanType + from .group_0071 import CodeScanningAnalysisToolType as CodeScanningAnalysisToolType + from .group_0085 import InteractionLimitResponseType as InteractionLimitResponseType + from .group_0143 import RepositoryAdvisoryCreditType as RepositoryAdvisoryCreditType + from .group_0148 import TeamOrganizationPropPlanType as TeamOrganizationPropPlanType + from .group_0191 import CommitPropCommitPropTreeType as CommitPropCommitPropTreeType + from .group_0212 import CodeScanningDefaultSetupType as CodeScanningDefaultSetupType + from .group_0216 import CodeScanningSarifsStatusType as CodeScanningSarifsStatusType + from .group_0241 import DependencyGraphDiffItemsType as DependencyGraphDiffItemsType + from .group_0255 import DeploymentProtectionRuleType as DeploymentProtectionRuleType + from .group_0279 import AddedToProjectIssueEventType as AddedToProjectIssueEventType + from .group_0289 import PullRequestReviewCommentType as PullRequestReviewCommentType + from .group_0309 import PullRequestReviewRequestType as PullRequestReviewRequestType + from .group_0334 import RepositoryAdvisoryCreateType as RepositoryAdvisoryCreateType + from .group_0336 import RepositoryAdvisoryUpdateType as RepositoryAdvisoryUpdateType + from .group_0351 import SearchCodeGetResponse200Type as SearchCodeGetResponse200Type + from .group_0412 import PullRequestWebhookAllof1Type as PullRequestWebhookAllof1Type + from .group_0420 import WebhooksSecurityAdvisoryType as WebhooksSecurityAdvisoryType + from .group_0422 import WebhooksChanges8PropTierType as WebhooksChanges8PropTierType + from .group_0429 import WebhookCheckRunCompletedType as WebhookCheckRunCompletedType + from .group_0462 import WebhookDeploymentCreatedType as WebhookDeploymentCreatedType + from .group_0474 import WebhookDiscussionCreatedType as WebhookDiscussionCreatedType + from .group_0475 import WebhookDiscussionDeletedType as WebhookDiscussionDeletedType + from .group_0477 import WebhookDiscussionLabeledType as WebhookDiscussionLabeledType + from .group_0557 import WebhookIssuesTransferredType as WebhookIssuesTransferredType + from .group_0574 import WebhookMembershipRemovedType as WebhookMembershipRemovedType + from .group_0584 import WebhookOrgBlockUnblockedType as WebhookOrgBlockUnblockedType + from .group_0608 import WebhookProjectCardEditedType as WebhookProjectCardEditedType + from .group_0640 import WebhookPullRequestClosedType as WebhookPullRequestClosedType + from .group_0644 import WebhookPullRequestEditedType as WebhookPullRequestEditedType + from .group_0647 import WebhookPullRequestLockedType as WebhookPullRequestLockedType + from .group_0649 import WebhookPullRequestOpenedType as WebhookPullRequestOpenedType + from .group_0685 import WebhookRepositoryCreatedType as WebhookRepositoryCreatedType + from .group_0686 import WebhookRepositoryDeletedType as WebhookRepositoryDeletedType + from .group_0692 import WebhookRepositoryRenamedType as WebhookRepositoryRenamedType + from .group_0721 import WebhookSponsorshipEditedType as WebhookSponsorshipEditedType + from .group_0746 import WebhookWorkflowJobQueuedType as WebhookWorkflowJobQueuedType + from .group_1079 import UserEmailsPostBodyOneof0Type as UserEmailsPostBodyOneof0Type from .group_0017 import ( RepositoryPropPermissionsType as RepositoryPropPermissionsType, ) @@ -528,313 +533,319 @@ from .group_0023 import ( SimpleClassroomAssignmentType as SimpleClassroomAssignmentType, ) - from .group_0069 import ( + from .group_0072 import ( CodeScanningAlertInstanceType as CodeScanningAlertInstanceType, ) - from .group_0069 import ( + from .group_0072 import ( CodeScanningAlertLocationType as CodeScanningAlertLocationType, ) - from .group_0115 import ( + from .group_0074 import ( + CodeSecurityConfigurationType as CodeSecurityConfigurationType, + ) + from .group_0120 import ( RepositoryRulePullRequestType as RepositoryRulePullRequestType, ) - from .group_0165 import ( + from .group_0170 import ( SimpleCommitPropCommitterType as SimpleCommitPropCommitterType, ) - from .group_0173 import ( + from .group_0178 import ( WorkflowUsagePropBillableType as WorkflowUsagePropBillableType, ) - from .group_0210 import ( + from .group_0215 import ( CodeScanningSarifsReceiptType as CodeScanningSarifsReceiptType, ) - from .group_0221 import ( + from .group_0226 import ( PullRequestSimplePropBaseType as PullRequestSimplePropBaseType, ) - from .group_0221 import ( + from .group_0226 import ( PullRequestSimplePropHeadType as PullRequestSimplePropHeadType, ) - from .group_0225 import ( + from .group_0230 import ( CommunityProfilePropFilesType as CommunityProfilePropFilesType, ) - from .group_0231 import ( + from .group_0236 import ( ContentSubmodulePropLinksType as ContentSubmodulePropLinksType, ) - from .group_0253 import ( + from .group_0258 import ( GitCommitPropParentsItemsType as GitCommitPropParentsItemsType, ) - from .group_0253 import ( + from .group_0258 import ( GitCommitPropVerificationType as GitCommitPropVerificationType, ) - from .group_0262 import ( + from .group_0267 import ( IssueEventDismissedReviewType as IssueEventDismissedReviewType, ) - from .group_0270 import ( + from .group_0275 import ( ReviewRequestedIssueEventType as ReviewRequestedIssueEventType, ) - from .group_0272 import ( + from .group_0277 import ( ReviewDismissedIssueEventType as ReviewDismissedIssueEventType, ) - from .group_0311 import ( + from .group_0316 import ( RepositoryRuleRulesetInfoType as RepositoryRuleRulesetInfoType, ) - from .group_0353 import ( + from .group_0358 import ( SearchUsersGetResponse200Type as SearchUsersGetResponse200Type, ) - from .group_0384 import ( + from .group_0389 import ( WebhooksRepositoriesItemsType as WebhooksRepositoriesItemsType, ) - from .group_0388 import ( + from .group_0393 import ( WebhooksIssuePropAssigneeType as WebhooksIssuePropAssigneeType, ) - from .group_0410 import ( + from .group_0416 import ( WebhooksReleasePropAuthorType as WebhooksReleasePropAuthorType, ) - from .group_0462 import ( + from .group_0468 import ( WebhookDiscussionAnsweredType as WebhookDiscussionAnsweredType, ) - from .group_0474 import ( + from .group_0480 import ( WebhookDiscussionReopenedType as WebhookDiscussionReopenedType, ) - from .group_0479 import ( + from .group_0485 import ( WebhookDiscussionUnlockedType as WebhookDiscussionUnlockedType, ) - from .group_0480 import ( + from .group_0486 import ( WebhookDiscussionUnpinnedType as WebhookDiscussionUnpinnedType, ) - from .group_0519 import ( + from .group_0525 import ( WebhookIssueCommentEditedType as WebhookIssueCommentEditedType, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedType as WebhookIssuesDemilestonedType, ) - from .group_0591 import ( + from .group_0597 import ( WebhookPageBuildPropBuildType as WebhookPageBuildPropBuildType, ) - from .group_0600 import ( + from .group_0606 import ( WebhookProjectCardCreatedType as WebhookProjectCardCreatedType, ) - from .group_0601 import ( + from .group_0607 import ( WebhookProjectCardDeletedType as WebhookProjectCardDeletedType, ) - from .group_0610 import ( + from .group_0616 import ( WebhookProjectColumnMovedType as WebhookProjectColumnMovedType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledType as WebhookPullRequestLabeledType, ) - from .group_0659 import ( + from .group_0668 import ( WebhookPushPropHeadCommitType as WebhookPushPropHeadCommitType, ) - from .group_0659 import ( + from .group_0668 import ( WebhookPushPropRepositoryType as WebhookPushPropRepositoryType, ) - from .group_0669 import ( + from .group_0678 import ( WebhookReleasePrereleasedType as WebhookReleasePrereleasedType, ) - from .group_0672 import ( + from .group_0681 import ( WebhookReleaseUnpublishedType as WebhookReleaseUnpublishedType, ) - from .group_0675 import ( + from .group_0684 import ( WebhookRepositoryArchivedType as WebhookRepositoryArchivedType, ) - from .group_0711 import ( + from .group_0720 import ( WebhookSponsorshipCreatedType as WebhookSponsorshipCreatedType, ) - from .group_0738 import ( + from .group_0747 import ( WebhookWorkflowJobWaitingType as WebhookWorkflowJobWaitingType, ) - from .group_0755 import ( + from .group_0765 import ( GistsGistIdGetResponse403Type as GistsGistIdGetResponse403Type, ) - from .group_0777 import ( + from .group_0787 import ( OrganizationActionsSecretType as OrganizationActionsSecretType, ) - from .group_0814 import ( + from .group_0831 import ( OrgsOrgMigrationsPostBodyType as OrgsOrgMigrationsPostBodyType, ) from .group_0005 import ( IntegrationPropPermissionsType as IntegrationPropPermissionsType, ) - from .group_0035 import ( + from .group_0039 import ( IssuePropLabelsItemsOneof1Type as IssuePropLabelsItemsOneof1Type, ) - from .group_0043 import ( + from .group_0047 import ( GistCommitPropChangeStatusType as GistCommitPropChangeStatusType, ) - from .group_0074 import ( + from .group_0080 import ( CopilotOrganizationDetailsType as CopilotOrganizationDetailsType, ) - from .group_0088 import ( + from .group_0093 import ( PackageVersionPropMetadataType as PackageVersionPropMetadataType, ) - from .group_0106 import ( + from .group_0111 import ( OrgRulesetConditionsOneof0Type as OrgRulesetConditionsOneof0Type, ) - from .group_0107 import ( + from .group_0112 import ( OrgRulesetConditionsOneof1Type as OrgRulesetConditionsOneof1Type, ) - from .group_0108 import ( + from .group_0113 import ( OrgRulesetConditionsOneof2Type as OrgRulesetConditionsOneof2Type, ) - from .group_0132 import ( + from .group_0137 import ( RepositoryRuleCodeScanningType as RepositoryRuleCodeScanningType, ) - from .group_0135 import ( + from .group_0140 import ( RepositoryRulesetPropLinksType as RepositoryRulesetPropLinksType, ) - from .group_0139 import ( + from .group_0144 import ( RepositoryAdvisoryPropCvssType as RepositoryAdvisoryPropCvssType, ) - from .group_0148 import ( + from .group_0153 import ( TeamProjectPropPermissionsType as TeamProjectPropPermissionsType, ) - from .group_0164 import ( + from .group_0169 import ( PullRequestMinimalPropBaseType as PullRequestMinimalPropBaseType, ) - from .group_0164 import ( + from .group_0169 import ( PullRequestMinimalPropHeadType as PullRequestMinimalPropHeadType, ) - from .group_0200 import ( + from .group_0205 import ( CodeScanningCodeqlDatabaseType as CodeScanningCodeqlDatabaseType, ) - from .group_0222 import ( + from .group_0227 import ( PullRequestSimplePropLinksType as PullRequestSimplePropLinksType, ) - from .group_0263 import ( + from .group_0268 import ( LabeledIssueEventPropLabelType as LabeledIssueEventPropLabelType, ) - from .group_0284 import ( + from .group_0289 import ( TimelineLineCommentedEventType as TimelineLineCommentedEventType, ) - from .group_0285 import ( + from .group_0290 import ( TimelineAssignedIssueEventType as TimelineAssignedIssueEventType, ) - from .group_0297 import ( + from .group_0302 import ( PagesHealthCheckPropDomainType as PagesHealthCheckPropDomainType, ) - from .group_0299 import ( + from .group_0304 import ( PullRequestPropLabelsItemsType as PullRequestPropLabelsItemsType, ) - from .group_0305 import ( + from .group_0310 import ( PullRequestReviewPropLinksType as PullRequestReviewPropLinksType, ) - from .group_0349 import ( + from .group_0354 import ( SearchIssuesGetResponse200Type as SearchIssuesGetResponse200Type, ) - from .group_0350 import ( + from .group_0355 import ( SearchLabelsGetResponse200Type as SearchLabelsGetResponse200Type, ) - from .group_0352 import ( + from .group_0357 import ( SearchTopicsGetResponse200Type as SearchTopicsGetResponse200Type, ) - from .group_0365 import ( + from .group_0370 import ( HovercardPropContextsItemsType as HovercardPropContextsItemsType, ) - from .group_0369 import ( + from .group_0374 import ( OrganizationSimpleWebhooksType as OrganizationSimpleWebhooksType, ) - from .group_0388 import ( + from .group_0393 import ( WebhooksIssuePropMilestoneType as WebhooksIssuePropMilestoneType, ) - from .group_0388 import ( + from .group_0393 import ( WebhooksIssuePropReactionsType as WebhooksIssuePropReactionsType, ) - from .group_0390 import ( + from .group_0395 import ( WebhooksIssue2PropAssigneeType as WebhooksIssue2PropAssigneeType, ) - from .group_0397 import ( + from .group_0402 import ( WebhooksMembershipPropUserType as WebhooksMembershipPropUserType, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestType as PersonalAccessTokenRequestType, ) - from .group_0400 import ( + from .group_0405 import ( WebhooksProjectPropCreatorType as WebhooksProjectPropCreatorType, ) - from .group_0411 import ( + from .group_0417 import ( WebhooksRelease1PropAuthorType as WebhooksRelease1PropAuthorType, ) - from .group_0412 import ( + from .group_0418 import ( WebhooksAlertPropDismisserType as WebhooksAlertPropDismisserType, ) - from .group_0413 import ( + from .group_0419 import ( SecretScanningAlertWebhookType as SecretScanningAlertWebhookType, ) - from .group_0429 import ( + from .group_0435 import ( WebhookCheckRunRerequestedType as WebhookCheckRunRerequestedType, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedType as WebhookCheckSuiteCompletedType, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedType as WebhookCheckSuiteRequestedType, ) - from .group_0478 import ( + from .group_0484 import ( WebhookDiscussionUnlabeledType as WebhookDiscussionUnlabeledType, ) - from .group_0488 import ( + from .group_0494 import ( WebhookInstallationCreatedType as WebhookInstallationCreatedType, ) - from .group_0489 import ( + from .group_0495 import ( WebhookInstallationDeletedType as WebhookInstallationDeletedType, ) - from .group_0493 import ( + from .group_0499 import ( WebhookInstallationSuspendType as WebhookInstallationSuspendType, ) - from .group_0496 import ( + from .group_0502 import ( WebhookIssueCommentCreatedType as WebhookIssueCommentCreatedType, ) - from .group_0508 import ( + from .group_0514 import ( WebhookIssueCommentDeletedType as WebhookIssueCommentDeletedType, ) - from .group_0570 import ( + from .group_0576 import ( WebhookMergeGroupDestroyedType as WebhookMergeGroupDestroyedType, ) - from .group_0571 import ( + from .group_0577 import ( WebhookMetaDeletedPropHookType as WebhookMetaDeletedPropHookType, ) - from .group_0579 import ( + from .group_0585 import ( WebhookOrganizationDeletedType as WebhookOrganizationDeletedType, ) - from .group_0583 import ( + from .group_0589 import ( WebhookOrganizationRenamedType as WebhookOrganizationRenamedType, ) - from .group_0609 import ( + from .group_0615 import ( WebhookProjectColumnEditedType as WebhookProjectColumnEditedType, ) - from .group_0628 import ( + from .group_0629 import ( + ProjectsV2IterationSettingType as ProjectsV2IterationSettingType, + ) + from .group_0637 import ( WebhookPullRequestAssignedType as WebhookPullRequestAssignedType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedType as WebhookPullRequestDequeuedType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedType as WebhookPullRequestEnqueuedType, ) - from .group_0642 import ( + from .group_0651 import ( WebhookPullRequestReopenedType as WebhookPullRequestReopenedType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedType as WebhookPullRequestUnlockedType, ) - from .group_0707 import ( + from .group_0716 import ( WebhookSecurityAndAnalysisType as WebhookSecurityAndAnalysisType, ) - from .group_0811 import ( + from .group_0828 import ( OrgsOrgInvitationsPostBodyType as OrgsOrgInvitationsPostBodyType, ) - from .group_0857 import ( + from .group_0874 import ( ProjectsProjectIdPatchBodyType as ProjectsProjectIdPatchBodyType, ) - from .group_0981 import ( + from .group_1001 import ( ReposOwnerRepoKeysPostBodyType as ReposOwnerRepoKeysPostBodyType, ) - from .group_1060 import ( + from .group_1080 import ( UserEmailsDeleteBodyOneof0Type as UserEmailsDeleteBodyOneof0Type, ) - from .group_1070 import ( + from .group_1090 import ( UserSocialAccountsPostBodyType as UserSocialAccountsPostBodyType, ) - from .group_1072 import ( + from .group_1092 import ( UserSshSigningKeysPostBodyType as UserSshSigningKeysPostBodyType, ) from .group_0002 import ( @@ -846,472 +857,475 @@ from .group_0023 import ( ClassroomAcceptedAssignmentType as ClassroomAcceptedAssignmentType, ) - from .group_0040 import ( + from .group_0044 import ( GistHistoryPropChangeStatusType as GistHistoryPropChangeStatusType, ) - from .group_0094 import ( + from .group_0099 import ( OrgRepoCustomPropertyValuesType as OrgRepoCustomPropertyValuesType, ) - from .group_0098 import ( + from .group_0103 import ( RepositoryRulesetConditionsType as RepositoryRulesetConditionsType, ) - from .group_0171 import ( + from .group_0176 import ( DeploymentPropPayloadOneof0Type as DeploymentPropPayloadOneof0Type, ) - from .group_0176 import ( + from .group_0181 import ( CheckAutomatedSecurityFixesType as CheckAutomatedSecurityFixesType, ) - from .group_0203 import ( + from .group_0208 import ( CodeScanningVariantAnalysisType as CodeScanningVariantAnalysisType, ) - from .group_0215 import ( + from .group_0220 import ( CollaboratorPropPermissionsType as CollaboratorPropPermissionsType, ) - from .group_0227 import ( + from .group_0232 import ( ContentTreePropEntriesItemsType as ContentTreePropEntriesItemsType, ) - from .group_0269 import ( + from .group_0274 import ( RenamedIssueEventPropRenameType as RenamedIssueEventPropRenameType, ) - from .group_0299 import ( + from .group_0304 import ( PullRequestPropHeadPropRepoType as PullRequestPropHeadPropRepoType, ) - from .group_0299 import ( + from .group_0304 import ( PullRequestPropHeadPropUserType as PullRequestPropHeadPropUserType, ) - from .group_0300 import ( + from .group_0305 import ( PullRequestPropBasePropUserType as PullRequestPropBasePropUserType, ) - from .group_0301 import ( + from .group_0306 import ( PullRequestPropBasePropRepoType as PullRequestPropBasePropRepoType, ) - from .group_0347 import ( + from .group_0352 import ( SearchCommitsGetResponse200Type as SearchCommitsGetResponse200Type, ) - from .group_0357 import ( + from .group_0362 import ( CodespaceWithFullRepositoryType as CodespaceWithFullRepositoryType, ) - from .group_0380 import ( + from .group_0385 import ( WebhooksAnswerPropReactionsType as WebhooksAnswerPropReactionsType, ) - from .group_0390 import ( + from .group_0395 import ( WebhooksIssue2PropMilestoneType as WebhooksIssue2PropMilestoneType, ) - from .group_0390 import ( + from .group_0395 import ( WebhooksIssue2PropReactionsType as WebhooksIssue2PropReactionsType, ) - from .group_0392 import ( + from .group_0397 import ( WebhooksMarketplacePurchaseType as WebhooksMarketplacePurchaseType, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksSponsorshipPropTierType as WebhooksSponsorshipPropTierType, ) - from .group_0440 import ( + from .group_0446 import ( WebhookCommitCommentCreatedType as WebhookCommitCommentCreatedType, ) - from .group_0451 import ( + from .group_0457 import ( WebhookDependabotAlertFixedType as WebhookDependabotAlertFixedType, ) - from .group_0477 import ( + from .group_0483 import ( WebhookDiscussionUnansweredType as WebhookDiscussionUnansweredType, ) - from .group_0483 import ( + from .group_0489 import ( WebhookForkPropForkeeAllof0Type as WebhookForkPropForkeeAllof0Type, ) - from .group_0485 import ( + from .group_0491 import ( WebhookForkPropForkeeAllof1Type as WebhookForkPropForkeeAllof1Type, ) - from .group_0487 import ( + from .group_0493 import ( WebhookGollumPropPagesItemsType as WebhookGollumPropPagesItemsType, ) - from .group_0599 import ( + from .group_0605 import ( WebhookProjectCardConvertedType as WebhookProjectCardConvertedType, ) - from .group_0607 import ( + from .group_0613 import ( WebhookProjectColumnCreatedType as WebhookProjectColumnCreatedType, ) - from .group_0608 import ( + from .group_0614 import ( WebhookProjectColumnDeletedType as WebhookProjectColumnDeletedType, ) - from .group_0623 import ( + from .group_0629 import ( WebhookProjectsV2ItemEditedType as WebhookProjectsV2ItemEditedType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledType as WebhookPullRequestUnlabeledType, ) - from .group_0659 import ( + from .group_0668 import ( WebhookPushPropCommitsItemsType as WebhookPushPropCommitsItemsType, ) - from .group_0681 import ( + from .group_0690 import ( WebhookRepositoryPrivatizedType as WebhookRepositoryPrivatizedType, ) - from .group_0682 import ( + from .group_0691 import ( WebhookRepositoryPublicizedType as WebhookRepositoryPublicizedType, ) - from .group_0693 import ( + from .group_0702 import ( WebhookRepositoryUnarchivedType as WebhookRepositoryUnarchivedType, ) - from .group_0710 import ( + from .group_0719 import ( WebhookSponsorshipCancelledType as WebhookSponsorshipCancelledType, ) - from .group_0731 import ( + from .group_0740 import ( WebhookWorkflowJobCompletedType as WebhookWorkflowJobCompletedType, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedType as WebhookWorkflowRunCompletedType, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedType as WebhookWorkflowRunRequestedType, ) - from .group_0757 import ( + from .group_0767 import ( GistsGistIdCommentsPostBodyType as GistsGistIdCommentsPostBodyType, ) - from .group_0763 import ( + from .group_0773 import ( NotificationsPutResponse202Type as NotificationsPutResponse202Type, ) - from .group_0781 import ( + from .group_0791 import ( OrganizationActionsVariableType as OrganizationActionsVariableType, ) - from .group_0807 import ( + from .group_0824 import ( OrgsOrgHooksHookIdPatchBodyType as OrgsOrgHooksHookIdPatchBodyType, ) - from .group_0950 import ( + from .group_0970 import ( ReposOwnerRepoForksPostBodyType as ReposOwnerRepoForksPostBodyType, ) - from .group_0957 import ( + from .group_0977 import ( ReposOwnerRepoHooksPostBodyType as ReposOwnerRepoHooksPostBodyType, ) - from .group_0960 import ( + from .group_0980 import ( ReposOwnerRepoImportPutBodyType as ReposOwnerRepoImportPutBodyType, ) - from .group_1003 import ( + from .group_1023 import ( ReposOwnerRepoPullsPostBodyType as ReposOwnerRepoPullsPostBodyType, ) - from .group_1033 import ( + from .group_1053 import ( ReposOwnerRepoTopicsPutBodyType as ReposOwnerRepoTopicsPutBodyType, ) - from .group_0051 import ( + from .group_0055 import ( MinimalRepositoryPropLicenseType as MinimalRepositoryPropLicenseType, ) - from .group_0067 import ( + from .group_0070 import ( CodeScanningAlertRuleSummaryType as CodeScanningAlertRuleSummaryType, ) - from .group_0084 import ( + from .group_0087 import ( OrgMembershipPropPermissionsType as OrgMembershipPropPermissionsType, ) - from .group_0097 import ( + from .group_0102 import ( RepositoryRulesetBypassActorType as RepositoryRulesetBypassActorType, ) - from .group_0109 import ( + from .group_0114 import ( RepositoryRuleNonFastForwardType as RepositoryRuleNonFastForwardType, ) - from .group_0127 import ( + from .group_0132 import ( RepositoryRuleTagNamePatternType as RepositoryRuleTagNamePatternType, ) - from .group_0162 import ( + from .group_0167 import ( ActionsRepositoryPermissionsType as ActionsRepositoryPermissionsType, ) - from .group_0172 import ( + from .group_0177 import ( WorkflowRunUsagePropBillableType as WorkflowRunUsagePropBillableType, ) - from .group_0180 import ( + from .group_0185 import ( ProtectedBranchAdminEnforcedType as ProtectedBranchAdminEnforcedType, ) - from .group_0199 import ( + from .group_0204 import ( CodeScanningAnalysisDeletionType as CodeScanningAnalysisDeletionType, ) - from .group_0216 import ( + from .group_0221 import ( TimelineCommitCommentedEventType as TimelineCommitCommentedEventType, ) - from .group_0232 import ( + from .group_0237 import ( FileCommitPropCommitPropTreeType as FileCommitPropCommitPropTreeType, ) - from .group_0264 import ( + from .group_0269 import ( UnlabeledIssueEventPropLabelType as UnlabeledIssueEventPropLabelType, ) - from .group_0276 import ( + from .group_0281 import ( RemovedFromProjectIssueEventType as RemovedFromProjectIssueEventType, ) - from .group_0280 import ( + from .group_0285 import ( TimelineCrossReferencedEventType as TimelineCrossReferencedEventType, ) - from .group_0286 import ( + from .group_0291 import ( TimelineUnassignedIssueEventType as TimelineUnassignedIssueEventType, ) - from .group_0312 import ( + from .group_0317 import ( RepositoryRuleDetailedOneof0Type as RepositoryRuleDetailedOneof0Type, ) - from .group_0313 import ( + from .group_0318 import ( RepositoryRuleDetailedOneof1Type as RepositoryRuleDetailedOneof1Type, ) - from .group_0314 import ( + from .group_0319 import ( RepositoryRuleDetailedOneof2Type as RepositoryRuleDetailedOneof2Type, ) - from .group_0315 import ( + from .group_0320 import ( RepositoryRuleDetailedOneof3Type as RepositoryRuleDetailedOneof3Type, ) - from .group_0316 import ( + from .group_0321 import ( RepositoryRuleDetailedOneof4Type as RepositoryRuleDetailedOneof4Type, ) - from .group_0317 import ( + from .group_0322 import ( RepositoryRuleDetailedOneof5Type as RepositoryRuleDetailedOneof5Type, ) - from .group_0318 import ( + from .group_0323 import ( RepositoryRuleDetailedOneof6Type as RepositoryRuleDetailedOneof6Type, ) - from .group_0319 import ( + from .group_0324 import ( RepositoryRuleDetailedOneof7Type as RepositoryRuleDetailedOneof7Type, ) - from .group_0320 import ( + from .group_0325 import ( RepositoryRuleDetailedOneof8Type as RepositoryRuleDetailedOneof8Type, ) - from .group_0321 import ( + from .group_0326 import ( RepositoryRuleDetailedOneof9Type as RepositoryRuleDetailedOneof9Type, ) - from .group_0345 import ( + from .group_0350 import ( SearchResultTextMatchesItemsType as SearchResultTextMatchesItemsType, ) - from .group_0374 import ( + from .group_0379 import ( CheckRunWithSimpleCheckSuiteType as CheckRunWithSimpleCheckSuiteType, ) - from .group_0381 import ( + from .group_0386 import ( DiscussionPropAnswerChosenByType as DiscussionPropAnswerChosenByType, ) - from .group_0382 import ( + from .group_0387 import ( WebhooksCommentPropReactionsType as WebhooksCommentPropReactionsType, ) - from .group_0386 import ( + from .group_0391 import ( WebhooksIssueCommentPropUserType as WebhooksIssueCommentPropUserType, ) - from .group_0388 import ( + from .group_0393 import ( WebhooksIssuePropLabelsItemsType as WebhooksIssuePropLabelsItemsType, ) - from .group_0388 import ( + from .group_0393 import ( WebhooksIssuePropPullRequestType as WebhooksIssuePropPullRequestType, ) - from .group_0389 import ( + from .group_0394 import ( WebhooksMilestonePropCreatorType as WebhooksMilestonePropCreatorType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropBaseType as WebhooksPullRequest5PropBaseType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropHeadType as WebhooksPullRequest5PropHeadType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropUserType as WebhooksPullRequest5PropUserType, ) - from .group_0410 import ( + from .group_0416 import ( WebhooksReleasePropReactionsType as WebhooksReleasePropReactionsType, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedType as WebhookCheckSuiteRerequestedType, ) - from .group_0442 import ( + from .group_0448 import ( WebhookCustomPropertyCreatedType as WebhookCustomPropertyCreatedType, ) - from .group_0443 import ( + from .group_0449 import ( WebhookCustomPropertyDeletedType as WebhookCustomPropertyDeletedType, ) - from .group_0444 import ( + from .group_0450 import ( WebhookCustomPropertyUpdatedType as WebhookCustomPropertyUpdatedType, ) - from .group_0475 import ( + from .group_0481 import ( WebhookDiscussionTransferredType as WebhookDiscussionTransferredType, ) - from .group_0495 import ( + from .group_0501 import ( WebhookInstallationUnsuspendType as WebhookInstallationUnsuspendType, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssuesClosedPropIssueType as WebhookIssuesClosedPropIssueType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssueType as WebhookIssuesEditedPropIssueType, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssueType as WebhookIssuesLockedPropIssueType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssueType as WebhookIssuesOpenedPropIssueType, ) - from .group_0621 import ( + from .group_0627 import ( WebhookProjectsV2ItemCreatedType as WebhookProjectsV2ItemCreatedType, ) - from .group_0622 import ( + from .group_0628 import ( WebhookProjectsV2ItemDeletedType as WebhookProjectsV2ItemDeletedType, ) - from .group_0639 import ( + from .group_0629 import ( + ProjectsV2SingleSelectOptionType as ProjectsV2SingleSelectOptionType, + ) + from .group_0648 import ( WebhookPullRequestMilestonedType as WebhookPullRequestMilestonedType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedType as WebhookPullRequestUnassignedType, ) - from .group_0692 import ( + from .group_0701 import ( WebhookRepositoryTransferredType as WebhookRepositoryTransferredType, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationCommitType as SecretScanningLocationCommitType, ) - from .group_0724 import ( + from .group_0733 import ( WebhookTeamAddedToRepositoryType as WebhookTeamAddedToRepositoryType, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropChangesType as WebhookTeamEditedPropChangesType, ) - from .group_0734 import ( + from .group_0743 import ( WebhookWorkflowJobInProgressType as WebhookWorkflowJobInProgressType, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressType as WebhookWorkflowRunInProgressType, ) - from .group_0802 import ( + from .group_0819 import ( OrganizationDependabotSecretType as OrganizationDependabotSecretType, ) - from .group_0966 import ( + from .group_0986 import ( ReposOwnerRepoIssuesPostBodyType as ReposOwnerRepoIssuesPostBodyType, ) - from .group_0982 import ( + from .group_1002 import ( ReposOwnerRepoLabelsPostBodyType as ReposOwnerRepoLabelsPostBodyType, ) - from .group_0985 import ( + from .group_1005 import ( ReposOwnerRepoMergesPostBodyType as ReposOwnerRepoMergesPostBodyType, ) - from .group_1048 import ( + from .group_1068 import ( UserCodespacesGetResponse200Type as UserCodespacesGetResponse200Type, ) - from .group_1049 import ( + from .group_1069 import ( UserCodespacesPostBodyOneof0Type as UserCodespacesPostBodyOneof0Type, ) - from .group_1050 import ( + from .group_1070 import ( UserCodespacesPostBodyOneof1Type as UserCodespacesPostBodyOneof1Type, ) - from .group_1058 import ( + from .group_1078 import ( UserEmailVisibilityPatchBodyType as UserEmailVisibilityPatchBodyType, ) - from .group_1071 import ( + from .group_1091 import ( UserSocialAccountsDeleteBodyType as UserSocialAccountsDeleteBodyType, ) - from .group_0030 import ( + from .group_0034 import ( DependabotAlertWithRepositoryType as DependabotAlertWithRepositoryType, ) - from .group_0040 import ( + from .group_0044 import ( GistSimplePropForkOfPropFilesType as GistSimplePropForkOfPropFilesType, ) - from .group_0096 import ( + from .group_0101 import ( FullRepositoryPropPermissionsType as FullRepositoryPropPermissionsType, ) - from .group_0149 import ( + from .group_0154 import ( TeamRepositoryPropPermissionsType as TeamRepositoryPropPermissionsType, ) - from .group_0152 import ( + from .group_0157 import ( ProjectCollaboratorPermissionType as ProjectCollaboratorPermissionType, ) - from .group_0187 import ( + from .group_0192 import ( BranchWithProtectionPropLinksType as BranchWithProtectionPropLinksType, ) - from .group_0188 import ( + from .group_0193 import ( ProtectedBranchPropLockBranchType as ProtectedBranchPropLockBranchType, ) - from .group_0235 import ( + from .group_0240 import ( DependabotAlertPropDependencyType as DependabotAlertPropDependencyType, ) - from .group_0259 import ( + from .group_0264 import ( ImportPropProjectChoicesItemsType as ImportPropProjectChoicesItemsType, ) - from .group_0297 import ( + from .group_0302 import ( PagesHealthCheckPropAltDomainType as PagesHealthCheckPropAltDomainType, ) - from .group_0322 import ( + from .group_0327 import ( RepositoryRuleDetailedOneof10Type as RepositoryRuleDetailedOneof10Type, ) - from .group_0323 import ( + from .group_0328 import ( RepositoryRuleDetailedOneof11Type as RepositoryRuleDetailedOneof11Type, ) - from .group_0324 import ( + from .group_0329 import ( RepositoryRuleDetailedOneof12Type as RepositoryRuleDetailedOneof12Type, ) - from .group_0325 import ( + from .group_0330 import ( RepositoryRuleDetailedOneof13Type as RepositoryRuleDetailedOneof13Type, ) - from .group_0326 import ( + from .group_0331 import ( RepositoryRuleDetailedOneof14Type as RepositoryRuleDetailedOneof14Type, ) - from .group_0327 import ( + from .group_0332 import ( RepositoryRuleDetailedOneof15Type as RepositoryRuleDetailedOneof15Type, ) - from .group_0390 import ( + from .group_0395 import ( WebhooksIssue2PropLabelsItemsType as WebhooksIssue2PropLabelsItemsType, ) - from .group_0390 import ( + from .group_0395 import ( WebhooksIssue2PropPullRequestType as WebhooksIssue2PropPullRequestType, ) - from .group_0396 import ( + from .group_0401 import ( WebhooksMilestone3PropCreatorType as WebhooksMilestone3PropCreatorType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLinksType as WebhooksPullRequest5PropLinksType, ) - from .group_0408 import ( + from .group_0414 import ( WebhooksReviewCommentPropUserType as WebhooksReviewCommentPropUserType, ) - from .group_0411 import ( + from .group_0417 import ( WebhooksRelease1PropReactionsType as WebhooksRelease1PropReactionsType, ) - from .group_0437 import ( + from .group_0443 import ( WebhookCodeScanningAlertFixedType as WebhookCodeScanningAlertFixedType, ) - from .group_0449 import ( + from .group_0455 import ( WebhookDependabotAlertCreatedType as WebhookDependabotAlertCreatedType, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssueType as WebhookIssuesDeletedPropIssueType, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssueType as WebhookIssuesLabeledPropIssueType, ) - from .group_0558 import ( + from .group_0564 import ( WebhookLabelEditedPropChangesType as WebhookLabelEditedPropChangesType, ) - from .group_0564 import ( + from .group_0570 import ( WebhookMemberAddedPropChangesType as WebhookMemberAddedPropChangesType, ) - from .group_0597 import ( + from .group_0603 import ( WebhookPingPropHookPropConfigType as WebhookPingPropHookPropConfigType, ) - from .group_0619 import ( + from .group_0625 import ( WebhookProjectsV2ItemArchivedType as WebhookProjectsV2ItemArchivedType, ) - from .group_0625 import ( + from .group_0631 import ( WebhookProjectsV2ItemRestoredType as WebhookProjectsV2ItemRestoredType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizeType as WebhookPullRequestSynchronizeType, ) - from .group_0663 import ( + from .group_0672 import ( WebhookRegistryPackageUpdatedType as WebhookRegistryPackageUpdatedType, ) - from .group_0715 import ( + from .group_0724 import ( WebhookSponsorshipTierChangedType as WebhookSponsorshipTierChangedType, ) - from .group_0756 import ( + from .group_0766 import ( GistsGistIdPatchBodyPropFilesType as GistsGistIdPatchBodyPropFilesType, ) - from .group_0759 import ( + from .group_0769 import ( GistsGistIdStarGetResponse404Type as GistsGistIdStarGetResponse404Type, ) - from .group_0766 import ( + from .group_0776 import ( ActionsCacheUsageByRepositoryType as ActionsCacheUsageByRepositoryType, ) - from .group_0832 import ( + from .group_0849 import ( OrgsOrgTeamsTeamSlugPatchBodyType as OrgsOrgTeamsTeamSlugPatchBodyType, ) - from .group_0953 import ( + from .group_0973 import ( ReposOwnerRepoGitRefsPostBodyType as ReposOwnerRepoGitRefsPostBodyType, ) - from .group_0955 import ( + from .group_0975 import ( ReposOwnerRepoGitTagsPostBodyType as ReposOwnerRepoGitTagsPostBodyType, ) - from .group_0961 import ( + from .group_0981 import ( ReposOwnerRepoImportPatchBodyType as ReposOwnerRepoImportPatchBodyType, ) from .group_0002 import ( @@ -1323,544 +1337,550 @@ from .group_0013 import ( IntegrationInstallationRequestType as IntegrationInstallationRequestType, ) - from .group_0037 import ( + from .group_0041 import ( EventPropPayloadPropPagesItemsType as EventPropPayloadPropPagesItemsType, ) - from .group_0055 import ( + from .group_0059 import ( ActionsCacheUsageOrgEnterpriseType as ActionsCacheUsageOrgEnterpriseType, ) - from .group_0058 import ( + from .group_0061 import ( ActionsOrganizationPermissionsType as ActionsOrganizationPermissionsType, ) - from .group_0155 import ( + from .group_0160 import ( RateLimitOverviewPropResourcesType as RateLimitOverviewPropResourcesType, ) - from .group_0169 import ( + from .group_0174 import ( ReviewCustomGatesStateRequiredType as ReviewCustomGatesStateRequiredType, ) - from .group_0180 import ( + from .group_0185 import ( BranchProtectionPropLockBranchType as BranchProtectionPropLockBranchType, ) - from .group_0208 import ( + from .group_0213 import ( CodeScanningDefaultSetupUpdateType as CodeScanningDefaultSetupUpdateType, ) - from .group_0228 import ( + from .group_0233 import ( ContentDirectoryItemsPropLinksType as ContentDirectoryItemsPropLinksType, ) - from .group_0232 import ( + from .group_0237 import ( FileCommitPropCommitPropAuthorType as FileCommitPropCommitPropAuthorType, ) - from .group_0232 import ( + from .group_0237 import ( FileCommitPropContentPropLinksType as FileCommitPropContentPropLinksType, ) - from .group_0243 import ( + from .group_0248 import ( DeploymentBranchPolicySettingsType as DeploymentBranchPolicySettingsType, ) - from .group_0271 import ( + from .group_0276 import ( ReviewRequestRemovedIssueEventType as ReviewRequestRemovedIssueEventType, ) - from .group_0275 import ( + from .group_0280 import ( MovedColumnInProjectIssueEventType as MovedColumnInProjectIssueEventType, ) - from .group_0277 import ( + from .group_0282 import ( ConvertedNoteToIssueIssueEventType as ConvertedNoteToIssueIssueEventType, ) - from .group_0282 import ( + from .group_0287 import ( TimelineCommittedEventPropTreeType as TimelineCommittedEventPropTreeType, ) - from .group_0283 import ( + from .group_0288 import ( TimelineReviewedEventPropLinksType as TimelineReviewedEventPropLinksType, ) - from .group_0385 import ( + from .group_0390 import ( WebhooksRepositoriesAddedItemsType as WebhooksRepositoriesAddedItemsType, ) - from .group_0399 import ( + from .group_0404 import ( WebhooksProjectCardPropCreatorType as WebhooksProjectCardPropCreatorType, ) - from .group_0408 import ( + from .group_0414 import ( WebhooksReviewCommentPropLinksType as WebhooksReviewCommentPropLinksType, ) - from .group_0410 import ( + from .group_0416 import ( WebhooksReleasePropAssetsItemsType as WebhooksReleasePropAssetsItemsType, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksSponsorshipPropSponsorType as WebhooksSponsorshipPropSponsorType, ) - from .group_0427 import ( + from .group_0433 import ( WebhookCheckRunRequestedActionType as WebhookCheckRunRequestedActionType, ) - from .group_0453 import ( + from .group_0459 import ( WebhookDependabotAlertReopenedType as WebhookDependabotAlertReopenedType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedType as WebhookDeploymentStatusCreatedType, ) - from .group_0467 import ( + from .group_0473 import ( WebhookDiscussionCommentEditedType as WebhookDiscussionCommentEditedType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropChangesType as WebhookIssuesEditedPropChangesType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesType as WebhookIssuesOpenedPropChangesType, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssueType as WebhookIssuesReopenedPropIssueType, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssueType as WebhookIssuesUnlockedPropIssueType, ) - from .group_0565 import ( + from .group_0571 import ( WebhookMemberEditedPropChangesType as WebhookMemberEditedPropChangesType, ) - from .group_0580 import ( + from .group_0586 import ( WebhookOrganizationMemberAddedType as WebhookOrganizationMemberAddedType, ) - from .group_0615 import ( + from .group_0621 import ( WebhookProjectsV2ProjectClosedType as WebhookProjectsV2ProjectClosedType, ) - from .group_0618 import ( + from .group_0624 import ( WebhookProjectsV2ProjectEditedType as WebhookProjectsV2ProjectEditedType, ) - from .group_0620 import ( + from .group_0626 import ( WebhookProjectsV2ItemConvertedType as WebhookProjectsV2ItemConvertedType, ) - from .group_0624 import ( + from .group_0630 import ( WebhookProjectsV2ItemReorderedType as WebhookProjectsV2ItemReorderedType, ) - from .group_0633 import ( + from .group_0642 import ( WebhookPullRequestDemilestonedType as WebhookPullRequestDemilestonedType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedType as WebhookPullRequestReviewEditedType, ) - from .group_0686 import ( + from .group_0695 import ( WebhookRepositoryRulesetEditedType as WebhookRepositoryRulesetEditedType, ) - from .group_0705 import ( + from .group_0714 import ( WebhookSecurityAdvisoryUpdatedType as WebhookSecurityAdvisoryUpdatedType, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropBranchesItemsType as WebhookStatusPropBranchesItemsType, ) - from .group_0787 import ( + from .group_0803 import ( OrgsOrgCodespacesAccessPutBodyType as OrgsOrgCodespacesAccessPutBodyType, ) - from .group_0806 import ( + from .group_0823 import ( OrgsOrgHooksPostBodyPropConfigType as OrgsOrgHooksPostBodyPropConfigType, ) - from .group_0951 import ( + from .group_0971 import ( ReposOwnerRepoGitBlobsPostBodyType as ReposOwnerRepoGitBlobsPostBodyType, ) - from .group_0956 import ( + from .group_0976 import ( ReposOwnerRepoGitTreesPostBodyType as ReposOwnerRepoGitTreesPostBodyType, ) - from .group_1001 import ( + from .group_1021 import ( ReposOwnerRepoProjectsPostBodyType as ReposOwnerRepoProjectsPostBodyType, ) - from .group_1022 import ( + from .group_1042 import ( ReposOwnerRepoReleasesPostBodyType as ReposOwnerRepoReleasesPostBodyType, ) - from .group_1027 import ( + from .group_1047 import ( ReposOwnerRepoRulesetsPostBodyType as ReposOwnerRepoRulesetsPostBodyType, ) - from .group_1034 import ( + from .group_1054 import ( ReposOwnerRepoTransferPostBodyType as ReposOwnerRepoTransferPostBodyType, ) - from .group_1037 import ( + from .group_1057 import ( TeamsTeamIdDiscussionsPostBodyType as TeamsTeamIdDiscussionsPostBodyType, ) - from .group_0028 import ( + from .group_0032 import ( DependabotAlertSecurityAdvisoryType as DependabotAlertSecurityAdvisoryType, ) - from .group_0032 import ( + from .group_0036 import ( OrganizationSecretScanningAlertType as OrganizationSecretScanningAlertType, ) - from .group_0072 import ( + from .group_0078 import ( CodespacePropRuntimeConstraintsType as CodespacePropRuntimeConstraintsType, ) - from .group_0125 import ( + from .group_0130 import ( RepositoryRuleBranchNamePatternType as RepositoryRuleBranchNamePatternType, ) - from .group_0139 import ( + from .group_0144 import ( RepositoryAdvisoryPropCwesItemsType as RepositoryAdvisoryPropCwesItemsType, ) - from .group_0139 import ( + from .group_0144 import ( RepositoryAdvisoryVulnerabilityType as RepositoryAdvisoryVulnerabilityType, ) - from .group_0212 import ( + from .group_0217 import ( CodeownersErrorsPropErrorsItemsType as CodeownersErrorsPropErrorsItemsType, ) - from .group_0237 import ( + from .group_0242 import ( DependencyGraphSpdxSbomPropSbomType as DependencyGraphSpdxSbomPropSbomType, ) - from .group_0388 import ( + from .group_0393 import ( WebhooksIssuePropAssigneesItemsType as WebhooksIssuePropAssigneesItemsType, ) - from .group_0409 import ( + from .group_0415 import ( WebhooksReviewPropLinksPropHtmlType as WebhooksReviewPropLinksPropHtmlType, ) - from .group_0411 import ( + from .group_0417 import ( WebhooksRelease1PropAssetsItemsType as WebhooksRelease1PropAssetsItemsType, ) - from .group_0436 import ( + from .group_0442 import ( WebhookCodeScanningAlertCreatedType as WebhookCodeScanningAlertCreatedType, ) - from .group_0450 import ( + from .group_0456 import ( WebhookDependabotAlertDismissedType as WebhookDependabotAlertDismissedType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedType as WebhookDeploymentReviewApprovedType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedType as WebhookDeploymentReviewRejectedType, ) - from .group_0465 import ( + from .group_0471 import ( WebhookDiscussionCommentCreatedType as WebhookDiscussionCommentCreatedType, ) - from .group_0466 import ( + from .group_0472 import ( WebhookDiscussionCommentDeletedType as WebhookDiscussionCommentDeletedType, ) - from .group_0613 import ( + from .group_0619 import ( WebhookProjectEditedPropChangesType as WebhookProjectEditedPropChangesType, ) - from .group_0616 import ( + from .group_0622 import ( WebhookProjectsV2ProjectCreatedType as WebhookProjectsV2ProjectCreatedType, ) - from .group_0617 import ( + from .group_0623 import ( WebhookProjectsV2ProjectDeletedType as WebhookProjectsV2ProjectDeletedType, ) - from .group_0660 import ( + from .group_0669 import ( WebhookRegistryPackagePublishedType as WebhookRegistryPackagePublishedType, ) - from .group_0668 import ( + from .group_0677 import ( WebhookReleaseEditedPropChangesType as WebhookReleaseEditedPropChangesType, ) - from .group_0678 import ( + from .group_0687 import ( WebhookRepositoryDispatchSampleType as WebhookRepositoryDispatchSampleType, ) - from .group_0684 import ( + from .group_0693 import ( WebhookRepositoryRulesetCreatedType as WebhookRepositoryRulesetCreatedType, ) - from .group_0685 import ( + from .group_0694 import ( WebhookRepositoryRulesetDeletedType as WebhookRepositoryRulesetDeletedType, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationIssueBodyType as SecretScanningLocationIssueBodyType, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropRepositoryType as WebhookTeamEditedPropRepositoryType, ) - from .group_0782 import ( + from .group_0792 import ( OrgsOrgActionsVariablesPostBodyType as OrgsOrgActionsVariablesPostBodyType, ) - from .group_0786 import ( + from .group_0802 import ( OrgsOrgCodespacesGetResponse200Type as OrgsOrgCodespacesGetResponse200Type, ) - from .group_0830 import ( + from .group_0847 import ( OrgsOrgRulesetsRulesetIdPutBodyType as OrgsOrgRulesetsRulesetIdPutBodyType, ) - from .group_0861 import ( + from .group_0878 import ( ReposOwnerRepoDeleteResponse403Type as ReposOwnerRepoDeleteResponse403Type, ) - from .group_0888 import ( + from .group_0908 import ( ReposOwnerRepoAutolinksPostBodyType as ReposOwnerRepoAutolinksPostBodyType, ) - from .group_1062 import ( + from .group_1082 import ( UserInstallationsGetResponse200Type as UserInstallationsGetResponse200Type, ) - from .group_1066 import ( + from .group_1086 import ( UserMembershipsOrgsOrgPatchBodyType as UserMembershipsOrgsOrgPatchBodyType, ) - from .group_0051 import ( + from .group_1093 import ( + SigstoreBundle0PropDsseEnvelopeType as SigstoreBundle0PropDsseEnvelopeType, + ) + from .group_0055 import ( MinimalRepositoryPropPermissionsType as MinimalRepositoryPropPermissionsType, ) - from .group_0109 import ( + from .group_0114 import ( RepositoryRuleRequiredSignaturesType as RepositoryRuleRequiredSignaturesType, ) - from .group_0139 import ( + from .group_0144 import ( RepositoryAdvisoryPropSubmissionType as RepositoryAdvisoryPropSubmissionType, ) - from .group_0168 import ( + from .group_0173 import ( ReviewCustomGatesCommentRequiredType as ReviewCustomGatesCommentRequiredType, ) - from .group_0170 import ( + from .group_0175 import ( PendingDeploymentPropEnvironmentType as PendingDeploymentPropEnvironmentType, ) - from .group_0177 import ( + from .group_0182 import ( ProtectedBranchPullRequestReviewType as ProtectedBranchPullRequestReviewType, ) - from .group_0188 import ( + from .group_0193 import ( ProtectedBranchPropEnforceAdminsType as ProtectedBranchPropEnforceAdminsType, ) - from .group_0188 import ( + from .group_0193 import ( StatusCheckPolicyPropChecksItemsType as StatusCheckPolicyPropChecksItemsType, ) - from .group_0215 import ( + from .group_0220 import ( RepositoryCollaboratorPermissionType as RepositoryCollaboratorPermissionType, ) - from .group_0220 import ( + from .group_0225 import ( PullRequestSimplePropLabelsItemsType as PullRequestSimplePropLabelsItemsType, ) - from .group_0282 import ( + from .group_0287 import ( TimelineCommittedEventPropAuthorType as TimelineCommittedEventPropAuthorType, ) - from .group_0330 import ( + from .group_0335 import ( PrivateVulnerabilityReportCreateType as PrivateVulnerabilityReportCreateType, ) - from .group_0348 import ( + from .group_0353 import ( CommitSearchResultItemPropCommitType as CommitSearchResultItemPropCommitType, ) - from .group_0351 import ( + from .group_0356 import ( SearchRepositoriesGetResponse200Type as SearchRepositoriesGetResponse200Type, ) - from .group_0390 import ( + from .group_0395 import ( WebhooksIssue2PropAssigneesItemsType as WebhooksIssue2PropAssigneesItemsType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropAssigneeType as WebhooksPullRequest5PropAssigneeType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropMergedByType as WebhooksPullRequest5PropMergedByType, ) - from .group_0414 import ( + from .group_0420 import ( WebhooksSecurityAdvisoryPropCvssType as WebhooksSecurityAdvisoryPropCvssType, ) - from .group_0416 import ( + from .group_0422 import ( WebhooksChanges8PropTierPropFromType as WebhooksChanges8PropTierPropFromType, ) - from .group_0438 import ( + from .group_0444 import ( WebhookCodeScanningAlertReopenedType as WebhookCodeScanningAlertReopenedType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedType as WebhookDeploymentReviewRequestedType, ) - from .group_0463 import ( + from .group_0469 import ( WebhookDiscussionCategoryChangedType as WebhookDiscussionCategoryChangedType, ) - from .group_0482 import ( + from .group_0488 import ( WebhookForkPropForkeeMergedOwnerType as WebhookForkPropForkeeMergedOwnerType, ) - from .group_0494 import ( + from .group_0500 import ( WebhookInstallationTargetRenamedType as WebhookInstallationTargetRenamedType, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssueType as WebhookIssuesMilestonedPropIssueType, ) - from .group_0567 import ( + from .group_0573 import ( WebhookMembershipAddedPropSenderType as WebhookMembershipAddedPropSenderType, ) - from .group_0569 import ( + from .group_0575 import ( WebhookMergeGroupChecksRequestedType as WebhookMergeGroupChecksRequestedType, ) - from .group_0581 import ( + from .group_0587 import ( WebhookOrganizationMemberInvitedType as WebhookOrganizationMemberInvitedType, ) - from .group_0582 import ( + from .group_0588 import ( WebhookOrganizationMemberRemovedType as WebhookOrganizationMemberRemovedType, ) - from .group_0589 import ( + from .group_0595 import ( WebhookPackageUpdatedPropPackageType as WebhookPackageUpdatedPropPackageType, ) - from .group_0626 import ( + from .group_0632 import ( WebhookProjectsV2ProjectReopenedType as WebhookProjectsV2ProjectReopenedType, ) - from .group_0641 import ( + from .group_0650 import ( WebhookPullRequestReadyForReviewType as WebhookPullRequestReadyForReviewType, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationIssueTitleType as SecretScanningLocationIssueTitleType, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationWikiCommitType as SecretScanningLocationWikiCommitType, ) - from .group_0704 import ( + from .group_0713 import ( WebhookSecurityAdvisoryPublishedType as WebhookSecurityAdvisoryPublishedType, ) - from .group_0706 import ( + from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnType as WebhookSecurityAdvisoryWithdrawnType, ) - from .group_0725 import ( + from .group_0734 import ( WebhookTeamCreatedPropRepositoryType as WebhookTeamCreatedPropRepositoryType, ) - from .group_0726 import ( + from .group_0735 import ( WebhookTeamDeletedPropRepositoryType as WebhookTeamDeletedPropRepositoryType, ) - from .group_0728 import ( + from .group_0737 import ( WebhookTeamRemovedFromRepositoryType as WebhookTeamRemovedFromRepositoryType, ) - from .group_0767 import ( + from .group_0777 import ( OrgsOrgActionsPermissionsPutBodyType as OrgsOrgActionsPermissionsPutBodyType, ) - from .group_0815 import ( + from .group_0832 import ( OrgsOrgOrganizationRolesPostBodyType as OrgsOrgOrganizationRolesPostBodyType, ) - from .group_0825 import ( + from .group_0842 import ( OrgsOrgPropertiesSchemaPatchBodyType as OrgsOrgPropertiesSchemaPatchBodyType, ) - from .group_0827 import ( + from .group_0844 import ( OrgsOrgPropertiesValuesPatchBodyType as OrgsOrgPropertiesValuesPatchBodyType, ) - from .group_0850 import ( + from .group_0867 import ( ProjectsColumnsColumnIdPatchBodyType as ProjectsColumnsColumnIdPatchBodyType, ) - from .group_0860 import ( + from .group_0877 import ( ProjectsProjectIdColumnsPostBodyType as ProjectsProjectIdColumnsPostBodyType, ) - from .group_0920 import ( + from .group_0940 import ( ReposOwnerRepoCodespacesPostBodyType as ReposOwnerRepoCodespacesPostBodyType, ) - from .group_0940 import ( + from .group_0960 import ( ReposOwnerRepoDispatchesPostBodyType as ReposOwnerRepoDispatchesPostBodyType, ) - from .group_0952 import ( + from .group_0972 import ( ReposOwnerRepoGitCommitsPostBodyType as ReposOwnerRepoGitCommitsPostBodyType, ) - from .group_0963 import ( + from .group_0983 import ( ReposOwnerRepoImportLfsPatchBodyType as ReposOwnerRepoImportLfsPatchBodyType, ) - from .group_0986 import ( + from .group_1006 import ( ReposOwnerRepoMilestonesPostBodyType as ReposOwnerRepoMilestonesPostBodyType, ) - from .group_0991 import ( + from .group_1011 import ( ReposOwnerRepoPagesPutBodyAnyof0Type as ReposOwnerRepoPagesPutBodyAnyof0Type, ) - from .group_0992 import ( + from .group_1012 import ( ReposOwnerRepoPagesPutBodyAnyof1Type as ReposOwnerRepoPagesPutBodyAnyof1Type, ) - from .group_0993 import ( + from .group_1013 import ( ReposOwnerRepoPagesPutBodyAnyof2Type as ReposOwnerRepoPagesPutBodyAnyof2Type, ) - from .group_0994 import ( + from .group_1014 import ( ReposOwnerRepoPagesPutBodyAnyof3Type as ReposOwnerRepoPagesPutBodyAnyof3Type, ) - from .group_0995 import ( + from .group_1015 import ( ReposOwnerRepoPagesPutBodyAnyof4Type as ReposOwnerRepoPagesPutBodyAnyof4Type, ) - from .group_1046 import ( + from .group_1066 import ( TeamsTeamIdReposOwnerRepoPutBodyType as TeamsTeamIdReposOwnerRepoPutBodyType, ) - from .group_0049 import ( + from .group_0053 import ( ApiOverviewPropSshKeyFingerprintsType as ApiOverviewPropSshKeyFingerprintsType, ) - from .group_0086 import ( + from .group_0089 import ( OrganizationFineGrainedPermissionType as OrganizationFineGrainedPermissionType, ) - from .group_0113 import ( + from .group_0091 import ( + TeamRoleAssignmentPropPermissionsType as TeamRoleAssignmentPropPermissionsType, + ) + from .group_0118 import ( RepositoryRuleRequiredDeploymentsType as RepositoryRuleRequiredDeploymentsType, ) - from .group_0137 import ( + from .group_0142 import ( RuleSuitePropRuleEvaluationsItemsType as RuleSuitePropRuleEvaluationsItemsType, ) - from .group_0163 import ( + from .group_0168 import ( ActionsWorkflowAccessToRepositoryType as ActionsWorkflowAccessToRepositoryType, ) - from .group_0188 import ( + from .group_0193 import ( ProtectedBranchPropAllowDeletionsType as ProtectedBranchPropAllowDeletionsType, ) - from .group_0188 import ( + from .group_0193 import ( ProtectedBranchPropBlockCreationsType as ProtectedBranchPropBlockCreationsType, ) - from .group_0232 import ( + from .group_0237 import ( FileCommitPropCommitPropCommitterType as FileCommitPropCommitPropCommitterType, ) - from .group_0248 import ( + from .group_0253 import ( DeploymentBranchPolicyNamePatternType as DeploymentBranchPolicyNamePatternType, ) - from .group_0267 import ( + from .group_0272 import ( MilestonedIssueEventPropMilestoneType as MilestonedIssueEventPropMilestoneType, ) - from .group_0284 import ( + from .group_0289 import ( PullRequestReviewCommentPropLinksType as PullRequestReviewCommentPropLinksType, ) - from .group_0334 import ( + from .group_0339 import ( ContributorActivityPropWeeksItemsType as ContributorActivityPropWeeksItemsType, ) - from .group_0370 import ( + from .group_0375 import ( RepositoryWebhooksPropPermissionsType as RepositoryWebhooksPropPermissionsType, ) - from .group_0386 import ( + from .group_0391 import ( WebhooksIssueCommentPropReactionsType as WebhooksIssueCommentPropReactionsType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropAutoMergeType as WebhooksPullRequest5PropAutoMergeType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropMilestoneType as WebhooksPullRequest5PropMilestoneType, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksSponsorshipPropMaintainerType as WebhooksSponsorshipPropMaintainerType, ) - from .group_0422 import ( + from .group_0428 import ( WebhookBranchProtectionRuleEditedType as WebhookBranchProtectionRuleEditedType, ) - from .group_0426 import ( + from .group_0432 import ( WebhookCheckRunCreatedFormEncodedType as WebhookCheckRunCreatedFormEncodedType, ) - from .group_0560 import ( + from .group_0566 import ( WebhookMarketplacePurchaseChangedType as WebhookMarketplacePurchaseChangedType, ) - from .group_0575 import ( + from .group_0581 import ( WebhookMilestoneEditedPropChangesType as WebhookMilestoneEditedPropChangesType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedType as WebhookPullRequestReviewDismissedType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedType as WebhookPullRequestReviewSubmittedType, ) - from .group_0674 import ( + from .group_0683 import ( WebhookRepositoryAdvisoryReportedType as WebhookRepositoryAdvisoryReportedType, ) - from .group_0698 import ( + from .group_0707 import ( WebhookSecretScanningAlertCreatedType as WebhookSecretScanningAlertCreatedType, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropCommitPropAuthorType as WebhookStatusPropCommitPropAuthorType, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropCommitPropCommitType as WebhookStatusPropCommitPropCommitType, ) - from .group_0730 import ( + from .group_0739 import ( WebhookWorkflowDispatchPropInputsType as WebhookWorkflowDispatchPropInputsType, ) - from .group_0748 import ( + from .group_0757 import ( ApplicationsClientIdTokenPostBodyType as ApplicationsClientIdTokenPostBodyType, ) - from .group_0808 import ( + from .group_0825 import ( OrgsOrgHooksHookIdConfigPatchBodyType as OrgsOrgHooksHookIdConfigPatchBodyType, ) - from .group_0813 import ( + from .group_0830 import ( OrgsOrgMembershipsUsernamePutBodyType as OrgsOrgMembershipsUsernamePutBodyType, ) - from .group_0858 import ( + from .group_0875 import ( ProjectsProjectIdPatchResponse403Type as ProjectsProjectIdPatchResponse403Type, ) - from .group_0911 import ( + from .group_0931 import ( ReposOwnerRepoCheckSuitesPostBodyType as ReposOwnerRepoCheckSuitesPostBodyType, ) - from .group_0931 import ( + from .group_0951 import ( ReposOwnerRepoContentsPathPutBodyType as ReposOwnerRepoContentsPathPutBodyType, ) - from .group_0937 import ( + from .group_0957 import ( ReposOwnerRepoDeploymentsPostBodyType as ReposOwnerRepoDeploymentsPostBodyType, ) - from .group_0954 import ( + from .group_0974 import ( ReposOwnerRepoGitRefsRefPatchBodyType as ReposOwnerRepoGitRefsRefPatchBodyType, ) - from .group_0983 import ( + from .group_1003 import ( ReposOwnerRepoLabelsNamePatchBodyType as ReposOwnerRepoLabelsNamePatchBodyType, ) - from .group_0997 import ( + from .group_1017 import ( ReposOwnerRepoPagesPostBodyAnyof0Type as ReposOwnerRepoPagesPostBodyAnyof0Type, ) - from .group_0998 import ( + from .group_1018 import ( ReposOwnerRepoPagesPostBodyAnyof1Type as ReposOwnerRepoPagesPostBodyAnyof1Type, ) - from .group_1030 import ( + from .group_1050 import ( ReposOwnerRepoStatusesShaPostBodyType as ReposOwnerRepoStatusesShaPostBodyType, ) - from .group_1031 import ( + from .group_1051 import ( ReposOwnerRepoSubscriptionPutBodyType as ReposOwnerRepoSubscriptionPutBodyType, ) from .group_0002 import ( @@ -1872,6657 +1892,6798 @@ from .group_0011 import ( HookDeliveryPropRequestPropPayloadType as HookDeliveryPropRequestPropPayloadType, ) - from .group_0065 import ( + from .group_0068 import ( AuthenticationTokenPropPermissionsType as AuthenticationTokenPropPermissionsType, ) - from .group_0070 import ( + from .group_0073 import ( CodeScanningOrganizationAlertItemsType as CodeScanningOrganizationAlertItemsType, ) - from .group_0096 import ( + from .group_0101 import ( FullRepositoryPropCustomPropertiesType as FullRepositoryPropCustomPropertiesType, ) - from .group_0111 import ( + from .group_0116 import ( RepositoryRuleUpdatePropParametersType as RepositoryRuleUpdatePropParametersType, ) - from .group_0117 import ( + from .group_0122 import ( RepositoryRuleRequiredStatusChecksType as RepositoryRuleRequiredStatusChecksType, ) - from .group_0119 import ( + from .group_0124 import ( RepositoryRuleCommitMessagePatternType as RepositoryRuleCommitMessagePatternType, ) - from .group_0135 import ( + from .group_0140 import ( RepositoryRulesetPropLinksPropHtmlType as RepositoryRulesetPropLinksPropHtmlType, ) - from .group_0135 import ( + from .group_0140 import ( RepositoryRulesetPropLinksPropSelfType as RepositoryRulesetPropLinksPropSelfType, ) - from .group_0139 import ( + from .group_0144 import ( RepositoryAdvisoryPropCreditsItemsType as RepositoryAdvisoryPropCreditsItemsType, ) - from .group_0164 import ( + from .group_0169 import ( PullRequestMinimalPropBasePropRepoType as PullRequestMinimalPropBasePropRepoType, ) - from .group_0164 import ( + from .group_0169 import ( PullRequestMinimalPropHeadPropRepoType as PullRequestMinimalPropHeadPropRepoType, ) - from .group_0173 import ( + from .group_0178 import ( WorkflowUsagePropBillablePropMacosType as WorkflowUsagePropBillablePropMacosType, ) - from .group_0180 import ( + from .group_0185 import ( BranchProtectionPropAllowDeletionsType as BranchProtectionPropAllowDeletionsType, ) - from .group_0180 import ( + from .group_0185 import ( BranchProtectionPropBlockCreationsType as BranchProtectionPropBlockCreationsType, ) - from .group_0180 import ( + from .group_0185 import ( ProtectedBranchRequiredStatusCheckType as ProtectedBranchRequiredStatusCheckType, ) - from .group_0305 import ( + from .group_0310 import ( PullRequestReviewPropLinksPropHtmlType as PullRequestReviewPropLinksPropHtmlType, ) - from .group_0377 import ( + from .group_0382 import ( WebhooksReviewersItemsPropReviewerType as WebhooksReviewersItemsPropReviewerType, ) - from .group_0408 import ( + from .group_0414 import ( WebhooksReviewCommentPropReactionsType as WebhooksReviewCommentPropReactionsType, ) - from .group_0415 import ( + from .group_0421 import ( WebhooksSponsorshipPropSponsorableType as WebhooksSponsorshipPropSponsorableType, ) - from .group_0420 import ( + from .group_0426 import ( WebhookBranchProtectionRuleCreatedType as WebhookBranchProtectionRuleCreatedType, ) - from .group_0421 import ( + from .group_0427 import ( WebhookBranchProtectionRuleDeletedType as WebhookBranchProtectionRuleDeletedType, ) - from .group_0445 import ( + from .group_0451 import ( WebhookCustomPropertyValuesUpdatedType as WebhookCustomPropertyValuesUpdatedType, ) - from .group_0448 import ( + from .group_0454 import ( WebhookDependabotAlertAutoReopenedType as WebhookDependabotAlertAutoReopenedType, ) - from .group_0452 import ( + from .group_0458 import ( WebhookDependabotAlertReintroducedType as WebhookDependabotAlertReintroducedType, ) - from .group_0470 import ( + from .group_0476 import ( WebhookDiscussionEditedPropChangesType as WebhookDiscussionEditedPropChangesType, ) - from .group_0482 import ( + from .group_0488 import ( WebhookForkPropForkeeMergedLicenseType as WebhookForkPropForkeeMergedLicenseType, ) - from .group_0520 import ( + from .group_0526 import ( WebhookIssueCommentEditedPropIssueType as WebhookIssueCommentEditedPropIssueType, ) - from .group_0533 import ( + from .group_0539 import ( WebhookIssuesClosedPropIssueAllof0Type as WebhookIssuesClosedPropIssueAllof0Type, ) - from .group_0539 import ( + from .group_0545 import ( WebhookIssuesClosedPropIssueAllof1Type as WebhookIssuesClosedPropIssueAllof1Type, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssueType as WebhookIssuesDemilestonedPropIssueType, ) - from .group_0568 import ( + from .group_0574 import ( WebhookMembershipRemovedPropSenderType as WebhookMembershipRemovedPropSenderType, ) - from .group_0586 import ( + from .group_0592 import ( WebhookPackagePublishedPropPackageType as WebhookPackagePublishedPropPackageType, ) - from .group_0591 import ( + from .group_0597 import ( WebhookPageBuildPropBuildPropErrorType as WebhookPageBuildPropBuildPropErrorType, ) - from .group_0603 import ( + from .group_0609 import ( WebhookProjectCardMovedPropChangesType as WebhookProjectCardMovedPropChangesType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledType as WebhookPullRequestAutoMergeEnabledType, ) - from .group_0632 import ( + from .group_0641 import ( WebhookPullRequestConvertedToDraftType as WebhookPullRequestConvertedToDraftType, ) - from .group_0659 import ( + from .group_0668 import ( WebhookPushPropRepositoryPropOwnerType as WebhookPushPropRepositoryPropOwnerType, ) - from .group_0673 import ( + from .group_0682 import ( WebhookRepositoryAdvisoryPublishedType as WebhookRepositoryAdvisoryPublishedType, ) - from .group_0679 import ( + from .group_0688 import ( WebhookRepositoryEditedPropChangesType as WebhookRepositoryEditedPropChangesType, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationIssueCommentType as SecretScanningLocationIssueCommentType, ) - from .group_0701 import ( + from .group_0710 import ( WebhookSecretScanningAlertReopenedType as WebhookSecretScanningAlertReopenedType, ) - from .group_0702 import ( + from .group_0711 import ( WebhookSecretScanningAlertResolvedType as WebhookSecretScanningAlertResolvedType, ) - from .group_0750 import ( + from .group_0759 import ( ApplicationsClientIdTokenPatchBodyType as ApplicationsClientIdTokenPatchBodyType, ) - from .group_0755 import ( + from .group_0765 import ( GistsGistIdGetResponse403PropBlockType as GistsGistIdGetResponse403PropBlockType, ) - from .group_0809 import ( + from .group_0826 import ( OrgsOrgInstallationsGetResponse200Type as OrgsOrgInstallationsGetResponse200Type, ) - from .group_0856 import ( + from .group_0873 import ( ProjectsProjectIdDeleteResponse403Type as ProjectsProjectIdDeleteResponse403Type, ) - from .group_0958 import ( + from .group_0905 import ( + ReposOwnerRepoAttestationsPostBodyType as ReposOwnerRepoAttestationsPostBodyType, + ) + from .group_0978 import ( ReposOwnerRepoHooksHookIdPatchBodyType as ReposOwnerRepoHooksHookIdPatchBodyType, ) - from .group_0988 import ( + from .group_1008 import ( ReposOwnerRepoNotificationsPutBodyType as ReposOwnerRepoNotificationsPutBodyType, ) from .group_0011 import ( HookDeliveryPropResponsePropHeadersType as HookDeliveryPropResponsePropHeadersType, ) - from .group_0090 import ( + from .group_0095 import ( OrganizationProgrammaticAccessGrantType as OrganizationProgrammaticAccessGrantType, ) - from .group_0109 import ( + from .group_0114 import ( RepositoryRuleOneof14PropParametersType as RepositoryRuleOneof14PropParametersType, ) - from .group_0109 import ( + from .group_0114 import ( RepositoryRuleOneof16PropParametersType as RepositoryRuleOneof16PropParametersType, ) - from .group_0112 import ( + from .group_0117 import ( RepositoryRuleOneof15PropParametersType as RepositoryRuleOneof15PropParametersType, ) - from .group_0112 import ( + from .group_0117 import ( RepositoryRuleRequiredLinearHistoryType as RepositoryRuleRequiredLinearHistoryType, ) - from .group_0123 import ( + from .group_0128 import ( RepositoryRuleCommitterEmailPatternType as RepositoryRuleCommitterEmailPatternType, ) - from .group_0134 import ( + from .group_0139 import ( RepositoryRuleOneof17PropParametersType as RepositoryRuleOneof17PropParametersType, ) - from .group_0170 import ( + from .group_0175 import ( PendingDeploymentPropReviewersItemsType as PendingDeploymentPropReviewersItemsType, ) - from .group_0173 import ( + from .group_0178 import ( WorkflowUsagePropBillablePropUbuntuType as WorkflowUsagePropBillablePropUbuntuType, ) - from .group_0188 import ( + from .group_0193 import ( ProtectedBranchPropAllowForcePushesType as ProtectedBranchPropAllowForcePushesType, ) - from .group_0188 import ( + from .group_0193 import ( ProtectedBranchPropAllowForkSyncingType as ProtectedBranchPropAllowForkSyncingType, ) - from .group_0195 import ( + from .group_0200 import ( CheckSuitePreferencePropPreferencesType as CheckSuitePreferencePropPreferencesType, ) - from .group_0206 import ( + from .group_0211 import ( CodeScanningVariantAnalysisRepoTaskType as CodeScanningVariantAnalysisRepoTaskType, ) - from .group_0268 import ( + from .group_0273 import ( DemilestonedIssueEventPropMilestoneType as DemilestonedIssueEventPropMilestoneType, ) - from .group_0282 import ( + from .group_0287 import ( TimelineCommittedEventPropCommitterType as TimelineCommittedEventPropCommitterType, ) - from .group_0351 import ( + from .group_0356 import ( RepoSearchResultItemPropPermissionsType as RepoSearchResultItemPropPermissionsType, ) - from .group_0392 import ( + from .group_0397 import ( WebhooksMarketplacePurchasePropPlanType as WebhooksMarketplacePurchasePropPlanType, ) - from .group_0393 import ( + from .group_0398 import ( WebhooksPreviousMarketplacePurchaseType as WebhooksPreviousMarketplacePurchaseType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLabelsItemsType as WebhooksPullRequest5PropLabelsItemsType, ) - from .group_0424 import ( + from .group_0430 import ( WebhookCheckRunCompletedFormEncodedType as WebhookCheckRunCompletedFormEncodedType, ) - from .group_0447 import ( + from .group_0453 import ( WebhookDependabotAlertAutoDismissedType as WebhookDependabotAlertAutoDismissedType, ) - from .group_0498 import ( + from .group_0504 import ( WebhookIssueCommentCreatedPropIssueType as WebhookIssueCommentCreatedPropIssueType, ) - from .group_0509 import ( + from .group_0515 import ( WebhookIssueCommentDeletedPropIssueType as WebhookIssueCommentDeletedPropIssueType, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesType as WebhookIssuesTransferredPropChangesType, ) - from .group_0559 import ( + from .group_0565 import ( WebhookMarketplacePurchaseCancelledType as WebhookMarketplacePurchaseCancelledType, ) - from .group_0563 import ( + from .group_0569 import ( WebhookMarketplacePurchasePurchasedType as WebhookMarketplacePurchasePurchasedType, ) - from .group_0584 import ( + from .group_0590 import ( WebhookRubygemsMetadataPropMetadataType as WebhookRubygemsMetadataPropMetadataType, ) - from .group_0591 import ( + from .group_0597 import ( WebhookPageBuildPropBuildPropPusherType as WebhookPageBuildPropBuildPropPusherType, ) - from .group_0602 import ( + from .group_0608 import ( WebhookProjectCardEditedPropChangesType as WebhookProjectCardEditedPropChangesType, ) - from .group_0629 import ( + from .group_0635 import ( + WebhookProjectsV2StatusUpdateEditedType as WebhookProjectsV2StatusUpdateEditedType, + ) + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledType as WebhookPullRequestAutoMergeDisabledType, ) - from .group_0635 import ( + from .group_0644 import ( WebhookPullRequestEditedPropChangesType as WebhookPullRequestEditedPropChangesType, ) - from .group_0659 import ( + from .group_0668 import ( WebhookPushPropHeadCommitPropAuthorType as WebhookPushPropHeadCommitPropAuthorType, ) - from .group_0683 import ( + from .group_0692 import ( WebhookRepositoryRenamedPropChangesType as WebhookRepositoryRenamedPropChangesType, ) - from .group_0703 import ( + from .group_0712 import ( WebhookSecretScanningAlertValidatedType as WebhookSecretScanningAlertValidatedType, ) - from .group_0712 import ( + from .group_0721 import ( WebhookSponsorshipEditedPropChangesType as WebhookSponsorshipEditedPropChangesType, ) - from .group_0714 import ( + from .group_0723 import ( WebhookSponsorshipPendingTierChangeType as WebhookSponsorshipPendingTierChangeType, ) - from .group_0747 import ( + from .group_0756 import ( ApplicationsClientIdGrantDeleteBodyType as ApplicationsClientIdGrantDeleteBodyType, ) - from .group_0749 import ( + from .group_0758 import ( ApplicationsClientIdTokenDeleteBodyType as ApplicationsClientIdTokenDeleteBodyType, ) - from .group_0770 import ( + from .group_0780 import ( OrgsOrgActionsRunnersGetResponse200Type as OrgsOrgActionsRunnersGetResponse200Type, ) - from .group_0777 import ( + from .group_0787 import ( OrgsOrgActionsSecretsGetResponse200Type as OrgsOrgActionsSecretsGetResponse200Type, ) - from .group_0822 import ( + from .group_0839 import ( OrgsOrgPersonalAccessTokensPostBodyType as OrgsOrgPersonalAccessTokensPostBodyType, ) - from .group_0845 import ( + from .group_0862 import ( ProjectsColumnsCardsCardIdPatchBodyType as ProjectsColumnsCardsCardIdPatchBodyType, ) - from .group_0984 import ( + from .group_1004 import ( ReposOwnerRepoMergeUpstreamPostBodyType as ReposOwnerRepoMergeUpstreamPostBodyType, ) - from .group_1044 import ( + from .group_1064 import ( TeamsTeamIdProjectsProjectIdPutBodyType as TeamsTeamIdProjectsProjectIdPutBodyType, ) - from .group_1051 import ( + from .group_1071 import ( UserCodespacesSecretsGetResponse200Type as UserCodespacesSecretsGetResponse200Type, ) - from .group_0027 import ( + from .group_0031 import ( DependabotAlertSecurityVulnerabilityType as DependabotAlertSecurityVulnerabilityType, ) - from .group_0060 import ( + from .group_0063 import ( ActionsGetDefaultWorkflowPermissionsType as ActionsGetDefaultWorkflowPermissionsType, ) - from .group_0061 import ( + from .group_0064 import ( ActionsSetDefaultWorkflowPermissionsType as ActionsSetDefaultWorkflowPermissionsType, ) - from .group_0069 import ( + from .group_0072 import ( CodeScanningAlertInstancePropMessageType as CodeScanningAlertInstancePropMessageType, ) - from .group_0088 import ( + from .group_0093 import ( PackageVersionPropMetadataPropDockerType as PackageVersionPropMetadataPropDockerType, ) - from .group_0133 import ( + from .group_0138 import ( RepositoryRuleParamsCodeScanningToolType as RepositoryRuleParamsCodeScanningToolType, ) - from .group_0173 import ( + from .group_0178 import ( WorkflowUsagePropBillablePropWindowsType as WorkflowUsagePropBillablePropWindowsType, ) - from .group_0179 import ( + from .group_0184 import ( BranchRestrictionPolicyPropAppsItemsType as BranchRestrictionPolicyPropAppsItemsType, ) - from .group_0180 import ( + from .group_0185 import ( BranchProtectionPropAllowForcePushesType as BranchProtectionPropAllowForcePushesType, ) - from .group_0180 import ( + from .group_0185 import ( BranchProtectionPropAllowForkSyncingType as BranchProtectionPropAllowForkSyncingType, ) - from .group_0227 import ( + from .group_0232 import ( ContentTreePropEntriesItemsPropLinksType as ContentTreePropEntriesItemsPropLinksType, ) - from .group_0232 import ( + from .group_0237 import ( FileCommitPropCommitPropParentsItemsType as FileCommitPropCommitPropParentsItemsType, ) - from .group_0232 import ( + from .group_0237 import ( FileCommitPropCommitPropVerificationType as FileCommitPropCommitPropVerificationType, ) - from .group_0299 import ( + from .group_0304 import ( PullRequestPropHeadPropRepoPropOwnerType as PullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0301 import ( + from .group_0306 import ( PullRequestPropBasePropRepoPropOwnerType as PullRequestPropBasePropRepoPropOwnerType, ) - from .group_0349 import ( + from .group_0354 import ( IssueSearchResultItemPropLabelsItemsType as IssueSearchResultItemPropLabelsItemsType, ) - from .group_0349 import ( + from .group_0354 import ( IssueSearchResultItemPropPullRequestType as IssueSearchResultItemPropPullRequestType, ) - from .group_0403 import ( + from .group_0408 import ( WebhooksProjectChangesPropArchivedAtType as WebhooksProjectChangesPropArchivedAtType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropBasePropRepoType as WebhooksPullRequest5PropBasePropRepoType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropBasePropUserType as WebhooksPullRequest5PropBasePropUserType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropHeadPropRepoType as WebhooksPullRequest5PropHeadPropRepoType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropHeadPropUserType as WebhooksPullRequest5PropHeadPropUserType, ) - from .group_0435 import ( + from .group_0441 import ( WebhookCodeScanningAlertClosedByUserType as WebhookCodeScanningAlertClosedByUserType, ) - from .group_0483 import ( + from .group_0489 import ( WebhookForkPropForkeeAllof0PropOwnerType as WebhookForkPropForkeeAllof0PropOwnerType, ) - from .group_0485 import ( + from .group_0491 import ( WebhookForkPropForkeeAllof1PropOwnerType as WebhookForkPropForkeeAllof1PropOwnerType, ) - from .group_0486 import ( + from .group_0492 import ( WebhookGithubAppAuthorizationRevokedType as WebhookGithubAppAuthorizationRevokedType, ) - from .group_0491 import ( + from .group_0497 import ( WebhookInstallationRepositoriesAddedType as WebhookInstallationRepositoriesAddedType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropUserType as WebhookIssuesEditedPropIssuePropUserType, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropUserType as WebhookIssuesLockedPropIssuePropUserType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropUserType as WebhookIssuesOpenedPropIssuePropUserType, ) - from .group_0571 import ( + from .group_0577 import ( WebhookMetaDeletedPropHookPropConfigType as WebhookMetaDeletedPropHookPropConfigType, ) - from .group_0659 import ( + from .group_0633 import ( + WebhookProjectsV2StatusUpdateCreatedType as WebhookProjectsV2StatusUpdateCreatedType, + ) + from .group_0634 import ( + WebhookProjectsV2StatusUpdateDeletedType as WebhookProjectsV2StatusUpdateDeletedType, + ) + from .group_0668 import ( WebhookPushPropRepositoryPropLicenseType as WebhookPushPropRepositoryPropLicenseType, ) - from .group_0669 import ( + from .group_0678 import ( WebhookReleasePrereleasedPropReleaseType as WebhookReleasePrereleasedPropReleaseType, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationDiscussionBodyType as SecretScanningLocationDiscussionBodyType, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitterType, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropChangesPropNameType as WebhookTeamEditedPropChangesPropNameType, ) - from .group_0783 import ( + from .group_0793 import ( OrgsOrgActionsVariablesNamePatchBodyType as OrgsOrgActionsVariablesNamePatchBodyType, ) - from .group_0854 import ( + from .group_0871 import ( ProjectsColumnsColumnIdMovesPostBodyType as ProjectsColumnsColumnIdMovesPostBodyType, ) - from .group_0932 import ( + from .group_0952 import ( ReposOwnerRepoContentsPathDeleteBodyType as ReposOwnerRepoContentsPathDeleteBodyType, ) - from .group_1032 import ( + from .group_1052 import ( ReposOwnerRepoTagsProtectionPostBodyType as ReposOwnerRepoTagsProtectionPostBodyType, ) - from .group_1055 import ( + from .group_1075 import ( UserCodespacesCodespaceNamePatchBodyType as UserCodespacesCodespaceNamePatchBodyType, ) - from .group_0025 import ( + from .group_0029 import ( CopilotUsageMetricsPropBreakdownItemsType as CopilotUsageMetricsPropBreakdownItemsType, ) - from .group_0050 import ( + from .group_0054 import ( SecurityAndAnalysisPropSecretScanningType as SecurityAndAnalysisPropSecretScanningType, ) - from .group_0129 import ( + from .group_0076 import ( + CodeSecurityConfigurationRepositoriesType as CodeSecurityConfigurationRepositoriesType, + ) + from .group_0134 import ( RepositoryRuleParamsRestrictedCommitsType as RepositoryRuleParamsRestrictedCommitsType, ) - from .group_0131 import ( + from .group_0136 import ( RepositoryRuleWorkflowsPropParametersType as RepositoryRuleWorkflowsPropParametersType, ) - from .group_0172 import ( + from .group_0177 import ( WorkflowRunUsagePropBillablePropMacosType as WorkflowRunUsagePropBillablePropMacosType, ) - from .group_0179 import ( + from .group_0184 import ( BranchRestrictionPolicyPropTeamsItemsType as BranchRestrictionPolicyPropTeamsItemsType, ) - from .group_0179 import ( + from .group_0184 import ( BranchRestrictionPolicyPropUsersItemsType as BranchRestrictionPolicyPropUsersItemsType, ) - from .group_0188 import ( + from .group_0193 import ( ProtectedBranchPropRequiredSignaturesType as ProtectedBranchPropRequiredSignaturesType, ) - from .group_0201 import ( + from .group_0206 import ( CodeScanningVariantAnalysisRepositoryType as CodeScanningVariantAnalysisRepositoryType, ) - from .group_0352 import ( + from .group_0357 import ( TopicSearchResultItemPropAliasesItemsType as TopicSearchResultItemPropAliasesItemsType, ) - from .group_0352 import ( + from .group_0357 import ( TopicSearchResultItemPropRelatedItemsType as TopicSearchResultItemPropRelatedItemsType, ) - from .group_0359 import ( + from .group_0364 import ( GpgKeyPropSubkeysItemsPropEmailsItemsType as GpgKeyPropSubkeysItemsPropEmailsItemsType, ) - from .group_0388 import ( + from .group_0393 import ( WebhooksIssuePropMilestonePropCreatorType as WebhooksIssuePropMilestonePropCreatorType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLinksPropHtmlType as WebhooksPullRequest5PropLinksPropHtmlType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLinksPropSelfType as WebhooksPullRequest5PropLinksPropSelfType, ) - from .group_0414 import ( + from .group_0420 import ( WebhooksSecurityAdvisoryPropCwesItemsType as WebhooksSecurityAdvisoryPropCwesItemsType, ) - from .group_0430 import ( + from .group_0436 import ( WebhookCheckRunRerequestedFormEncodedType as WebhookCheckRunRerequestedFormEncodedType, ) - from .group_0497 import ( + from .group_0503 import ( WebhookIssueCommentCreatedPropCommentType as WebhookIssueCommentCreatedPropCommentType, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropUserType as WebhookIssuesDeletedPropIssuePropUserType, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropUserType as WebhookIssuesLabeledPropIssuePropUserType, ) - from .group_0558 import ( + from .group_0564 import ( WebhookLabelEditedPropChangesPropNameType as WebhookLabelEditedPropChangesPropNameType, ) - from .group_0583 import ( + from .group_0589 import ( WebhookOrganizationRenamedPropChangesType as WebhookOrganizationRenamedPropChangesType, ) - from .group_0609 import ( + from .group_0615 import ( WebhookProjectColumnEditedPropChangesType as WebhookProjectColumnEditedPropChangesType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedType as WebhookPullRequestReviewCommentEditedType, ) - from .group_0659 import ( + from .group_0668 import ( WebhookPushPropCommitsItemsPropAuthorType as WebhookPushPropCommitsItemsPropAuthorType, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationDiscussionTitleType as SecretScanningLocationDiscussionTitleType, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationPullRequestBodyType as SecretScanningLocationPullRequestBodyType, ) - from .group_0708 import ( + from .group_0717 import ( WebhookSecurityAndAnalysisPropChangesType as WebhookSecurityAndAnalysisPropChangesType, ) - from .group_0713 import ( + from .group_0722 import ( WebhookSponsorshipPendingCancellationType as WebhookSponsorshipPendingCancellationType, ) - from .group_0758 import ( + from .group_0768 import ( GistsGistIdCommentsCommentIdPatchBodyType as GistsGistIdCommentsCommentIdPatchBodyType, ) - from .group_0781 import ( + from .group_0791 import ( OrgsOrgActionsVariablesGetResponse200Type as OrgsOrgActionsVariablesGetResponse200Type, ) - from .group_0807 import ( + from .group_0824 import ( OrgsOrgHooksHookIdPatchBodyPropConfigType as OrgsOrgHooksHookIdPatchBodyPropConfigType, ) - from .group_0906 import ( + from .group_0926 import ( ReposOwnerRepoCheckRunsPostBodyOneof0Type as ReposOwnerRepoCheckRunsPostBodyOneof0Type, ) - from .group_0907 import ( + from .group_0927 import ( ReposOwnerRepoCheckRunsPostBodyOneof1Type as ReposOwnerRepoCheckRunsPostBodyOneof1Type, ) - from .group_0957 import ( + from .group_0977 import ( ReposOwnerRepoHooksPostBodyPropConfigType as ReposOwnerRepoHooksPostBodyPropConfigType, ) - from .group_0996 import ( + from .group_1016 import ( ReposOwnerRepoPagesPostBodyPropSourceType as ReposOwnerRepoPagesPostBodyPropSourceType, ) - from .group_1043 import ( + from .group_1063 import ( TeamsTeamIdMembershipsUsernamePutBodyType as TeamsTeamIdMembershipsUsernamePutBodyType, ) - from .group_0087 import ( + from .group_0075 import ( + CodeSecurityDefaultConfigurationsItemsType as CodeSecurityDefaultConfigurationsItemsType, + ) + from .group_0090 import ( OrgsOrgOrganizationRolesGetResponse200Type as OrgsOrgOrganizationRolesGetResponse200Type, ) - from .group_0099 import ( + from .group_0104 import ( RepositoryRulesetConditionsPropRefNameType as RepositoryRulesetConditionsPropRefNameType, ) - from .group_0121 import ( + from .group_0126 import ( RepositoryRuleCommitAuthorEmailPatternType as RepositoryRuleCommitAuthorEmailPatternType, ) - from .group_0139 import ( + from .group_0144 import ( RepositoryAdvisoryPropIdentifiersItemsType as RepositoryAdvisoryPropIdentifiersItemsType, ) - from .group_0157 import ( + from .group_0162 import ( ActionsCacheListPropActionsCachesItemsType as ActionsCacheListPropActionsCachesItemsType, ) - from .group_0172 import ( + from .group_0177 import ( WorkflowRunUsagePropBillablePropUbuntuType as WorkflowRunUsagePropBillablePropUbuntuType, ) - from .group_0180 import ( + from .group_0185 import ( BranchProtectionPropRequiredSignaturesType as BranchProtectionPropRequiredSignaturesType, ) - from .group_0209 import ( + from .group_0214 import ( CodeScanningDefaultSetupUpdateResponseType as CodeScanningDefaultSetupUpdateResponseType, ) - from .group_0281 import ( + from .group_0286 import ( TimelineCrossReferencedEventPropSourceType as TimelineCrossReferencedEventPropSourceType, ) - from .group_0282 import ( + from .group_0287 import ( TimelineCommittedEventPropParentsItemsType as TimelineCommittedEventPropParentsItemsType, ) - from .group_0282 import ( + from .group_0287 import ( TimelineCommittedEventPropVerificationType as TimelineCommittedEventPropVerificationType, ) - from .group_0283 import ( + from .group_0288 import ( TimelineReviewedEventPropLinksPropHtmlType as TimelineReviewedEventPropLinksPropHtmlType, ) - from .group_0299 import ( + from .group_0304 import ( PullRequestPropHeadPropRepoPropLicenseType as PullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0347 import ( + from .group_0352 import ( CommitSearchResultItemPropParentsItemsType as CommitSearchResultItemPropParentsItemsType, ) - from .group_0370 import ( + from .group_0375 import ( RepositoryWebhooksPropCustomPropertiesType as RepositoryWebhooksPropCustomPropertiesType, ) - from .group_0374 import ( + from .group_0379 import ( CheckRunWithSimpleCheckSuitePropOutputType as CheckRunWithSimpleCheckSuitePropOutputType, ) - from .group_0388 import ( + from .group_0393 import ( WebhooksIssuePropPerformedViaGithubAppType as WebhooksIssuePropPerformedViaGithubAppType, ) - from .group_0390 import ( + from .group_0395 import ( WebhooksIssue2PropMilestonePropCreatorType as WebhooksIssue2PropMilestonePropCreatorType, ) - from .group_0392 import ( + from .group_0397 import ( WebhooksMarketplacePurchasePropAccountType as WebhooksMarketplacePurchasePropAccountType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropAssigneesItemsType as WebhooksPullRequest5PropAssigneesItemsType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLinksPropIssueType as WebhooksPullRequest5PropLinksPropIssueType, ) - from .group_0408 import ( + from .group_0414 import ( WebhooksReviewCommentPropLinksPropHtmlType as WebhooksReviewCommentPropLinksPropHtmlType, ) - from .group_0408 import ( + from .group_0414 import ( WebhooksReviewCommentPropLinksPropSelfType as WebhooksReviewCommentPropLinksPropSelfType, ) - from .group_0409 import ( + from .group_0415 import ( WebhooksReviewPropLinksPropPullRequestType as WebhooksReviewPropLinksPropPullRequestType, ) - from .group_0437 import ( + from .group_0443 import ( WebhookCodeScanningAlertFixedPropAlertType as WebhookCodeScanningAlertFixedPropAlertType, ) - from .group_0439 import ( + from .group_0445 import ( WebhookCodeScanningAlertReopenedByUserType as WebhookCodeScanningAlertReopenedByUserType, ) - from .group_0440 import ( + from .group_0446 import ( WebhookCommitCommentCreatedPropCommentType as WebhookCommitCommentCreatedPropCommentType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropDeploymentType as WebhookDeploymentCreatedPropDeploymentType, ) - from .group_0483 import ( + from .group_0489 import ( WebhookForkPropForkeeAllof0PropLicenseType as WebhookForkPropForkeeAllof0PropLicenseType, ) - from .group_0485 import ( + from .group_0491 import ( WebhookForkPropForkeeAllof1PropLicenseType as WebhookForkPropForkeeAllof1PropLicenseType, ) - from .group_0492 import ( + from .group_0498 import ( WebhookInstallationRepositoriesRemovedType as WebhookInstallationRepositoriesRemovedType, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssuesClosedPropIssueMergedUserType as WebhookIssuesClosedPropIssueMergedUserType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropChangesPropBodyType as WebhookIssuesEditedPropChangesPropBodyType, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropUserType as WebhookIssuesReopenedPropIssuePropUserType, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropUserType as WebhookIssuesUnlockedPropIssuePropUserType, ) - from .group_0558 import ( + from .group_0564 import ( WebhookLabelEditedPropChangesPropColorType as WebhookLabelEditedPropChangesPropColorType, ) - from .group_0584 import ( + from .group_0590 import ( WebhookRubygemsMetadataPropVersionInfoType as WebhookRubygemsMetadataPropVersionInfoType, ) - from .group_0599 import ( + from .group_0605 import ( WebhookProjectCardConvertedPropChangesType as WebhookProjectCardConvertedPropChangesType, ) - from .group_0603 import ( + from .group_0609 import ( WebhookProjectCardMovedPropProjectCardType as WebhookProjectCardMovedPropProjectCardType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedType as WebhookPullRequestReviewCommentCreatedType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedType as WebhookPullRequestReviewCommentDeletedType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedType as WebhookPullRequestReviewThreadResolvedType, ) - from .group_0659 import ( + from .group_0668 import ( WebhookPushPropHeadCommitPropCommitterType as WebhookPushPropHeadCommitPropCommitterType, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationPullRequestTitleType as SecretScanningLocationPullRequestTitleType, ) - from .group_0760 import ( + from .group_0770 import ( InstallationRepositoriesGetResponse200Type as InstallationRepositoriesGetResponse200Type, ) - from .group_0778 import ( + from .group_0788 import ( OrgsOrgActionsSecretsSecretNamePutBodyType as OrgsOrgActionsSecretsSecretNamePutBodyType, ) - from .group_0790 import ( + from .group_0806 import ( OrgsOrgCodespacesSecretsGetResponse200Type as OrgsOrgCodespacesSecretsGetResponse200Type, ) - from .group_0802 import ( + from .group_0819 import ( OrgsOrgDependabotSecretsGetResponse200Type as OrgsOrgDependabotSecretsGetResponse200Type, ) - from .group_0883 import ( + from .group_0900 import ( ReposOwnerRepoActionsVariablesPostBodyType as ReposOwnerRepoActionsVariablesPostBodyType, ) - from .group_0919 import ( + from .group_0939 import ( ReposOwnerRepoCodespacesGetResponse200Type as ReposOwnerRepoCodespacesGetResponse200Type, ) - from .group_0999 import ( + from .group_1019 import ( ReposOwnerRepoPagesDeploymentsPostBodyType as ReposOwnerRepoPagesDeploymentsPostBodyType, ) - from .group_1006 import ( + from .group_1026 import ( ReposOwnerRepoPullsPullNumberPatchBodyType as ReposOwnerRepoPullsPullNumberPatchBodyType, ) - from .group_1028 import ( + from .group_1048 import ( ReposOwnerRepoRulesetsRulesetIdPutBodyType as ReposOwnerRepoRulesetsRulesetIdPutBodyType, ) - from .group_1052 import ( + from .group_1072 import ( UserCodespacesSecretsSecretNamePutBodyType as UserCodespacesSecretsSecretNamePutBodyType, ) - from .group_0028 import ( + from .group_0032 import ( DependabotAlertSecurityAdvisoryPropCvssType as DependabotAlertSecurityAdvisoryPropCvssType, ) - from .group_0050 import ( + from .group_0054 import ( SecurityAndAnalysisPropAdvancedSecurityType as SecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_0088 import ( + from .group_0093 import ( PackageVersionPropMetadataPropContainerType as PackageVersionPropMetadataPropContainerType, ) - from .group_0116 import ( + from .group_0121 import ( RepositoryRulePullRequestPropParametersType as RepositoryRulePullRequestPropParametersType, ) - from .group_0172 import ( + from .group_0177 import ( WorkflowRunUsagePropBillablePropWindowsType as WorkflowRunUsagePropBillablePropWindowsType, ) - from .group_0274 import ( + from .group_0279 import ( AddedToProjectIssueEventPropProjectCardType as AddedToProjectIssueEventPropProjectCardType, ) - from .group_0390 import ( + from .group_0395 import ( WebhooksIssue2PropPerformedViaGithubAppType as WebhooksIssue2PropPerformedViaGithubAppType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunType as WebhookDeploymentCreatedPropWorkflowRunType, ) - from .group_0476 import ( + from .group_0482 import ( WebhookDiscussionTransferredPropChangesType as WebhookDiscussionTransferredPropChangesType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropChangesPropTitleType as WebhookIssuesEditedPropChangesPropTitleType, ) - from .group_0561 import ( + from .group_0567 import ( WebhookMarketplacePurchasePendingChangeType as WebhookMarketplacePurchasePendingChangeType, ) - from .group_0595 import ( + from .group_0601 import ( WebhookPersonalAccessTokenRequestDeniedType as WebhookPersonalAccessTokenRequestDeniedType, ) - from .group_0613 import ( + from .group_0619 import ( WebhookProjectEditedPropChangesPropBodyType as WebhookProjectEditedPropChangesPropBodyType, ) - from .group_0613 import ( + from .group_0619 import ( WebhookProjectEditedPropChangesPropNameType as WebhookProjectEditedPropChangesPropNameType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestType as WebhookPullRequestLockedPropPullRequestType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0Type as WebhookPullRequestReviewRequestedOneof0Type, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1Type as WebhookPullRequestReviewRequestedOneof1Type, ) - from .group_0668 import ( + from .group_0677 import ( WebhookReleaseEditedPropChangesPropBodyType as WebhookReleaseEditedPropChangesPropBodyType, ) - from .group_0668 import ( + from .group_0677 import ( WebhookReleaseEditedPropChangesPropNameType as WebhookReleaseEditedPropChangesPropNameType, ) - from .group_0692 import ( + from .group_0701 import ( WebhookRepositoryTransferredPropChangesType as WebhookRepositoryTransferredPropChangesType, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationDiscussionCommentType as SecretScanningLocationDiscussionCommentType, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationPullRequestReviewType as SecretScanningLocationPullRequestReviewType, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropCommitPropParentsItemsType as WebhookStatusPropCommitPropParentsItemsType, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropChangesPropPrivacyType as WebhookTeamEditedPropChangesPropPrivacyType, ) - from .group_0737 import ( + from .group_0746 import ( WebhookWorkflowJobQueuedPropWorkflowJobType as WebhookWorkflowJobQueuedPropWorkflowJobType, ) - from .group_0751 import ( + from .group_0760 import ( ApplicationsClientIdTokenScopedPostBodyType as ApplicationsClientIdTokenScopedPostBodyType, ) - from .group_0816 import ( + from .group_0833 import ( OrgsOrgOrganizationRolesRoleIdPatchBodyType as OrgsOrgOrganizationRolesRoleIdPatchBodyType, ) - from .group_0833 import ( + from .group_0850 import ( OrgsOrgTeamsTeamSlugDiscussionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsPostBodyType, ) - from .group_0846 import ( + from .group_0863 import ( ProjectsColumnsCardsCardIdMovesPostBodyType as ProjectsColumnsCardsCardIdMovesPostBodyType, ) - from .group_0868 import ( + from .group_0885 import ( ReposOwnerRepoActionsPermissionsPutBodyType as ReposOwnerRepoActionsPermissionsPutBodyType, ) - from .group_0873 import ( + from .group_0890 import ( ReposOwnerRepoActionsRunsGetResponse200Type as ReposOwnerRepoActionsRunsGetResponse200Type, ) - from .group_0955 import ( + from .group_0975 import ( ReposOwnerRepoGitTagsPostBodyPropTaggerType as ReposOwnerRepoGitTagsPostBodyPropTaggerType, ) - from .group_1002 import ( + from .group_1022 import ( ReposOwnerRepoPropertiesValuesPatchBodyType as ReposOwnerRepoPropertiesValuesPatchBodyType, ) - from .group_0077 import ( - OrgsOrgCopilotBillingSeatsGetResponse200Type as OrgsOrgCopilotBillingSeatsGetResponse200Type, + from .group_1093 import ( + SigstoreBundle0PropVerificationMaterialType as SigstoreBundle0PropVerificationMaterialType, ) - from .group_0133 import ( + from .group_0138 import ( RepositoryRuleCodeScanningPropParametersType as RepositoryRuleCodeScanningPropParametersType, ) - from .group_0188 import ( + from .group_0193 import ( ProtectedBranchPropRequiredLinearHistoryType as ProtectedBranchPropRequiredLinearHistoryType, ) - from .group_0244 import ( + from .group_0249 import ( ReposOwnerRepoEnvironmentsGetResponse200Type as ReposOwnerRepoEnvironmentsGetResponse200Type, ) - from .group_0329 import ( + from .group_0334 import ( RepositoryAdvisoryCreatePropCreditsItemsType as RepositoryAdvisoryCreatePropCreditsItemsType, ) - from .group_0331 import ( + from .group_0336 import ( RepositoryAdvisoryUpdatePropCreditsItemsType as RepositoryAdvisoryUpdatePropCreditsItemsType, ) - from .group_0348 import ( + from .group_0353 import ( CommitSearchResultItemPropCommitPropTreeType as CommitSearchResultItemPropCommitPropTreeType, ) - from .group_0357 import ( + from .group_0362 import ( CodespaceWithFullRepositoryPropGitStatusType as CodespaceWithFullRepositoryPropGitStatusType, ) - from .group_0370 import ( + from .group_0375 import ( RepositoryWebhooksPropTemplateRepositoryType as RepositoryWebhooksPropTemplateRepositoryType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLinksPropCommitsType as WebhooksPullRequest5PropLinksPropCommitsType, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuiteType as WebhookCheckSuiteCompletedPropCheckSuiteType, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuiteType as WebhookCheckSuiteRequestedPropCheckSuiteType, ) - from .group_0434 import ( + from .group_0440 import ( WebhookCodeScanningAlertAppearedInBranchType as WebhookCodeScanningAlertAppearedInBranchType, ) - from .group_0436 import ( + from .group_0442 import ( WebhookCodeScanningAlertCreatedPropAlertType as WebhookCodeScanningAlertCreatedPropAlertType, ) - from .group_0457 import ( + from .group_0463 import ( WebhookDeploymentProtectionRuleRequestedType as WebhookDeploymentProtectionRuleRequestedType, ) - from .group_0521 import ( + from .group_0527 import ( WebhookIssueCommentEditedPropIssueAllof0Type as WebhookIssueCommentEditedPropIssueAllof0Type, ) - from .group_0527 import ( + from .group_0533 import ( WebhookIssueCommentEditedPropIssueAllof1Type as WebhookIssueCommentEditedPropIssueAllof1Type, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssuesClosedPropIssueMergedLabelsType as WebhookIssuesClosedPropIssueMergedLabelsType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropAssigneeType as WebhookIssuesEditedPropIssuePropAssigneeType, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropAssigneeType as WebhookIssuesLockedPropIssuePropAssigneeType, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropUserType as WebhookIssuesMilestonedPropIssuePropUserType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropAssigneeType as WebhookIssuesOpenedPropIssuePropAssigneeType, ) - from .group_0594 import ( + from .group_0600 import ( WebhookPersonalAccessTokenRequestCreatedType as WebhookPersonalAccessTokenRequestCreatedType, ) - from .group_0601 import ( + from .group_0607 import ( WebhookProjectCardDeletedPropProjectCardType as WebhookProjectCardDeletedPropProjectCardType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestType as WebhookPullRequestLabeledPropPullRequestType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedType as WebhookPullRequestReviewThreadUnresolvedType, ) - from .group_0659 import ( + from .group_0668 import ( WebhookPushPropCommitsItemsPropCommitterType as WebhookPushPropCommitsItemsPropCommitterType, ) - from .group_0659 import ( + from .group_0668 import ( WebhookPushPropRepositoryPropPermissionsType as WebhookPushPropRepositoryPropPermissionsType, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationPullRequestCommentType as SecretScanningLocationPullRequestCommentType, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropBranchesItemsPropCommitType as WebhookStatusPropBranchesItemsPropCommitType, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropRepositoryPropOwnerType as WebhookTeamEditedPropRepositoryPropOwnerType, ) - from .group_0738 import ( + from .group_0747 import ( WebhookWorkflowJobWaitingPropWorkflowJobType as WebhookWorkflowJobWaitingPropWorkflowJobType, ) - from .group_0823 import ( + from .group_0810 import ( + OrgsOrgCopilotBillingSeatsGetResponse200Type as OrgsOrgCopilotBillingSeatsGetResponse200Type, + ) + from .group_0840 import ( OrgsOrgPersonalAccessTokensPatIdPostBodyType as OrgsOrgPersonalAccessTokensPatIdPostBodyType, ) - from .group_0828 import ( + from .group_0845 import ( OrgsOrgReposPostBodyPropCustomPropertiesType as OrgsOrgReposPostBodyPropCustomPropertiesType, ) - from .group_0843 import ( + from .group_0860 import ( OrgsOrgSecurityProductEnablementPostBodyType as OrgsOrgSecurityProductEnablementPostBodyType, ) - from .group_0918 import ( + from .group_0938 import ( ReposOwnerRepoCodeScanningSarifsPostBodyType as ReposOwnerRepoCodeScanningSarifsPostBodyType, ) - from .group_0927 import ( + from .group_0947 import ( ReposOwnerRepoCommentsCommentIdPatchBodyType as ReposOwnerRepoCommentsCommentIdPatchBodyType, ) - from .group_0938 import ( + from .group_0958 import ( ReposOwnerRepoDeploymentsPostResponse202Type as ReposOwnerRepoDeploymentsPostResponse202Type, ) - from .group_0959 import ( + from .group_0979 import ( ReposOwnerRepoHooksHookIdConfigPatchBodyType as ReposOwnerRepoHooksHookIdConfigPatchBodyType, ) - from .group_0969 import ( + from .group_0989 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyType as ReposOwnerRepoIssuesIssueNumberPatchBodyType, ) - from .group_1025 import ( + from .group_1045 import ( ReposOwnerRepoReleasesReleaseIdPatchBodyType as ReposOwnerRepoReleasesReleaseIdPatchBodyType, ) - from .group_0131 import ( + from .group_0136 import ( RepositoryRuleParamsWorkflowFileReferenceType as RepositoryRuleParamsWorkflowFileReferenceType, ) - from .group_0167 import ( + from .group_0172 import ( EnvironmentApprovalsPropEnvironmentsItemsType as EnvironmentApprovalsPropEnvironmentsItemsType, ) - from .group_0180 import ( + from .group_0185 import ( BranchProtectionPropRequiredLinearHistoryType as BranchProtectionPropRequiredLinearHistoryType, ) - from .group_0213 import ( + from .group_0218 import ( CodespacesPermissionsCheckForDevcontainerType as CodespacesPermissionsCheckForDevcontainerType, ) - from .group_0244 import ( + from .group_0249 import ( EnvironmentPropProtectionRulesItemsAnyof0Type as EnvironmentPropProtectionRulesItemsAnyof0Type, ) - from .group_0244 import ( + from .group_0249 import ( EnvironmentPropProtectionRulesItemsAnyof2Type as EnvironmentPropProtectionRulesItemsAnyof2Type, ) - from .group_0245 import ( + from .group_0250 import ( EnvironmentPropProtectionRulesItemsAnyof1Type as EnvironmentPropProtectionRulesItemsAnyof1Type, ) - from .group_0247 import ( + from .group_0252 import ( DeploymentBranchPolicyNamePatternWithTypeType as DeploymentBranchPolicyNamePatternWithTypeType, ) - from .group_0284 import ( + from .group_0289 import ( PullRequestReviewCommentPropLinksPropHtmlType as PullRequestReviewCommentPropLinksPropHtmlType, ) - from .group_0284 import ( + from .group_0289 import ( PullRequestReviewCommentPropLinksPropSelfType as PullRequestReviewCommentPropLinksPropSelfType, ) - from .group_0305 import ( + from .group_0310 import ( PullRequestReviewPropLinksPropPullRequestType as PullRequestReviewPropLinksPropPullRequestType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLinksPropCommentsType as WebhooksPullRequest5PropLinksPropCommentsType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLinksPropStatusesType as WebhooksPullRequest5PropLinksPropStatusesType, ) - from .group_0428 import ( + from .group_0434 import ( WebhookCheckRunRequestedActionFormEncodedType as WebhookCheckRunRequestedActionFormEncodedType, ) - from .group_0438 import ( + from .group_0444 import ( WebhookCodeScanningAlertReopenedPropAlertType as WebhookCodeScanningAlertReopenedPropAlertType, ) - from .group_0467 import ( + from .group_0473 import ( WebhookDiscussionCommentEditedPropChangesType as WebhookDiscussionCommentEditedPropChangesType, ) - from .group_0490 import ( + from .group_0496 import ( WebhookInstallationNewPermissionsAcceptedType as WebhookInstallationNewPermissionsAcceptedType, ) - from .group_0499 import ( + from .group_0505 import ( WebhookIssueCommentCreatedPropIssueAllof0Type as WebhookIssueCommentCreatedPropIssueAllof0Type, ) - from .group_0505 import ( + from .group_0511 import ( WebhookIssueCommentCreatedPropIssueAllof1Type as WebhookIssueCommentCreatedPropIssueAllof1Type, ) - from .group_0510 import ( + from .group_0516 import ( WebhookIssueCommentDeletedPropIssueAllof0Type as WebhookIssueCommentDeletedPropIssueAllof0Type, ) - from .group_0516 import ( + from .group_0522 import ( WebhookIssueCommentDeletedPropIssueAllof1Type as WebhookIssueCommentDeletedPropIssueAllof1Type, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropAssigneeType as WebhookIssuesDeletedPropIssuePropAssigneeType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropMilestoneType as WebhookIssuesEditedPropIssuePropMilestoneType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropReactionsType as WebhookIssuesEditedPropIssuePropReactionsType, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropAssigneeType as WebhookIssuesLabeledPropIssuePropAssigneeType, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropMilestoneType as WebhookIssuesLockedPropIssuePropMilestoneType, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropReactionsType as WebhookIssuesLockedPropIssuePropReactionsType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropMilestoneType as WebhookIssuesOpenedPropIssuePropMilestoneType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropReactionsType as WebhookIssuesOpenedPropIssuePropReactionsType, ) - from .group_0564 import ( + from .group_0570 import ( WebhookMemberAddedPropChangesPropRoleNameType as WebhookMemberAddedPropChangesPropRoleNameType, ) - from .group_0589 import ( + from .group_0595 import ( WebhookPackageUpdatedPropPackagePropOwnerType as WebhookPackageUpdatedPropPackagePropOwnerType, ) - from .group_0592 import ( + from .group_0598 import ( WebhookPersonalAccessTokenRequestApprovedType as WebhookPersonalAccessTokenRequestApprovedType, ) - from .group_0618 import ( + from .group_0624 import ( WebhookProjectsV2ProjectEditedPropChangesType as WebhookProjectsV2ProjectEditedPropChangesType, ) - from .group_0620 import ( + from .group_0626 import ( WebhookProjectsV2ItemConvertedPropChangesType as WebhookProjectsV2ItemConvertedPropChangesType, ) - from .group_0624 import ( + from .group_0630 import ( WebhookProjectsV2ItemReorderedPropChangesType as WebhookProjectsV2ItemReorderedPropChangesType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestType as WebhookPullRequestAssignedPropPullRequestType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestType as WebhookPullRequestDequeuedPropPullRequestType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestType as WebhookPullRequestEnqueuedPropPullRequestType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropChangesType as WebhookPullRequestReviewEditedPropChangesType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestType as WebhookPullRequestUnlockedPropPullRequestType, ) - from .group_0687 import ( + from .group_0696 import ( WebhookRepositoryRulesetEditedPropChangesType as WebhookRepositoryRulesetEditedPropChangesType, ) - from .group_0694 import ( + from .group_0703 import ( WebhookRepositoryVulnerabilityAlertCreateType as WebhookRepositoryVulnerabilityAlertCreateType, ) - from .group_0696 import ( + from .group_0705 import ( WebhookRepositoryVulnerabilityAlertReopenType as WebhookRepositoryVulnerabilityAlertReopenType, ) - from .group_0699 import ( + from .group_0708 import ( WebhookSecretScanningAlertLocationCreatedType as WebhookSecretScanningAlertLocationCreatedType, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropCommitPropCommitPropTreeType as WebhookStatusPropCommitPropCommitPropTreeType, ) - from .group_0725 import ( + from .group_0734 import ( WebhookTeamCreatedPropRepositoryPropOwnerType as WebhookTeamCreatedPropRepositoryPropOwnerType, ) - from .group_0726 import ( + from .group_0735 import ( WebhookTeamDeletedPropRepositoryPropOwnerType as WebhookTeamDeletedPropRepositoryPropOwnerType, ) - from .group_0791 import ( + from .group_0797 import ( + OrgsOrgCodeSecurityConfigurationsPostBodyType as OrgsOrgCodeSecurityConfigurationsPostBodyType, + ) + from .group_0807 import ( OrgsOrgCodespacesSecretsSecretNamePutBodyType as OrgsOrgCodespacesSecretsSecretNamePutBodyType, ) - from .group_0803 import ( + from .group_0820 import ( OrgsOrgDependabotSecretsSecretNamePutBodyType as OrgsOrgDependabotSecretsSecretNamePutBodyType, ) - from .group_0842 import ( + from .group_0859 import ( OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType as OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType, ) - from .group_0905 import ( + from .group_0906 import ( + ReposOwnerRepoAttestationsPostResponse201Type as ReposOwnerRepoAttestationsPostResponse201Type, + ) + from .group_0925 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputType as ReposOwnerRepoCheckRunsPostBodyPropOutputType, ) - from .group_0923 import ( + from .group_0943 import ( ReposOwnerRepoCodespacesNewGetResponse200Type as ReposOwnerRepoCodespacesNewGetResponse200Type, ) - from .group_0989 import ( + from .group_1009 import ( ReposOwnerRepoNotificationsPutResponse202Type as ReposOwnerRepoNotificationsPutResponse202Type, ) - from .group_1010 import ( + from .group_1030 import ( ReposOwnerRepoPullsPullNumberMergePutBodyType as ReposOwnerRepoPullsPullNumberMergePutBodyType, ) - from .group_1064 import ( + from .group_1084 import ( UserInteractionLimitsGetResponse200Anyof1Type as UserInteractionLimitsGetResponse200Anyof1Type, ) - from .group_0048 import ( + from .group_0052 import ( MarketplacePurchasePropMarketplacePurchaseType as MarketplacePurchasePropMarketplacePurchaseType, ) - from .group_0089 import ( + from .group_0094 import ( OrganizationProgrammaticAccessGrantRequestType as OrganizationProgrammaticAccessGrantRequestType, ) - from .group_0128 import ( + from .group_0133 import ( RepositoryRuleTagNamePatternPropParametersType as RepositoryRuleTagNamePatternPropParametersType, ) - from .group_0139 import ( + from .group_0144 import ( RepositoryAdvisoryVulnerabilityPropPackageType as RepositoryAdvisoryVulnerabilityPropPackageType, ) - from .group_0299 import ( + from .group_0304 import ( PullRequestPropHeadPropRepoPropPermissionsType as PullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0301 import ( + from .group_0306 import ( PullRequestPropBasePropRepoPropPermissionsType as PullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0348 import ( + from .group_0353 import ( CommitSearchResultItemPropCommitPropAuthorType as CommitSearchResultItemPropCommitPropAuthorType, ) - from .group_0410 import ( + from .group_0416 import ( WebhooksReleasePropAssetsItemsPropUploaderType as WebhooksReleasePropAssetsItemsPropUploaderType, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuiteType as WebhookCheckSuiteRerequestedPropCheckSuiteType, ) - from .group_0443 import ( + from .group_0449 import ( WebhookCustomPropertyDeletedPropDefinitionType as WebhookCustomPropertyDeletedPropDefinitionType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropCheckRunType as WebhookDeploymentStatusCreatedPropCheckRunType, ) - from .group_0470 import ( + from .group_0476 import ( WebhookDiscussionEditedPropChangesPropBodyType as WebhookDiscussionEditedPropChangesPropBodyType, ) - from .group_0484 import ( + from .group_0490 import ( WebhookForkPropForkeeAllof0PropPermissionsType as WebhookForkPropForkeeAllof0PropPermissionsType, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssuesClosedPropIssueMergedAssigneeType as WebhookIssuesClosedPropIssueMergedAssigneeType, ) - from .group_0533 import ( + from .group_0539 import ( WebhookIssuesClosedPropIssueAllof0PropUserType as WebhookIssuesClosedPropIssueAllof0PropUserType, ) - from .group_0539 import ( + from .group_0545 import ( WebhookIssuesClosedPropIssueAllof1PropUserType as WebhookIssuesClosedPropIssueAllof1PropUserType, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropMilestoneType as WebhookIssuesDeletedPropIssuePropMilestoneType, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropReactionsType as WebhookIssuesDeletedPropIssuePropReactionsType, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropUserType as WebhookIssuesDemilestonedPropIssuePropUserType, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropMilestoneType as WebhookIssuesLabeledPropIssuePropMilestoneType, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropReactionsType as WebhookIssuesLabeledPropIssuePropReactionsType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssueType as WebhookIssuesOpenedPropChangesPropOldIssueType, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropAssigneeType as WebhookIssuesReopenedPropIssuePropAssigneeType, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropAssigneeType as WebhookIssuesUnlockedPropIssuePropAssigneeType, ) - from .group_0575 import ( + from .group_0581 import ( WebhookMilestoneEditedPropChangesPropDueOnType as WebhookMilestoneEditedPropChangesPropDueOnType, ) - from .group_0575 import ( + from .group_0581 import ( WebhookMilestoneEditedPropChangesPropTitleType as WebhookMilestoneEditedPropChangesPropTitleType, ) - from .group_0593 import ( + from .group_0599 import ( WebhookPersonalAccessTokenRequestCancelledType as WebhookPersonalAccessTokenRequestCancelledType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestType as WebhookPullRequestUnlabeledPropPullRequestType, ) - from .group_0695 import ( + from .group_0704 import ( WebhookRepositoryVulnerabilityAlertDismissType as WebhookRepositoryVulnerabilityAlertDismissType, ) - from .group_0697 import ( + from .group_0706 import ( WebhookRepositoryVulnerabilityAlertResolveType as WebhookRepositoryVulnerabilityAlertResolveType, ) - from .group_0724 import ( + from .group_0733 import ( WebhookTeamAddedToRepositoryPropRepositoryType as WebhookTeamAddedToRepositoryPropRepositoryType, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropChangesPropRepositoryType as WebhookTeamEditedPropChangesPropRepositoryType, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropRepositoryPropLicenseType as WebhookTeamEditedPropRepositoryPropLicenseType, ) - from .group_0731 import ( + from .group_0740 import ( WebhookWorkflowJobCompletedPropWorkflowJobType as WebhookWorkflowJobCompletedPropWorkflowJobType, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunType as WebhookWorkflowRunCompletedPropWorkflowRunType, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunType as WebhookWorkflowRunRequestedPropWorkflowRunType, ) - from .group_0742 import ( + from .group_0751 import ( AppManifestsCodeConversionsPostResponse201Type as AppManifestsCodeConversionsPostResponse201Type, ) - from .group_0774 import ( + from .group_0784 import ( OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0794 import ( + from .group_0811 import ( OrgsOrgCopilotBillingSelectedTeamsPostBodyType as OrgsOrgCopilotBillingSelectedTeamsPostBodyType, ) - from .group_0798 import ( + from .group_0815 import ( OrgsOrgCopilotBillingSelectedUsersPostBodyType as OrgsOrgCopilotBillingSelectedUsersPostBodyType, ) - from .group_0817 import ( + from .group_0834 import ( OrgsOrgOutsideCollaboratorsUsernamePutBodyType as OrgsOrgOutsideCollaboratorsUsernamePutBodyType, ) - from .group_0820 import ( + from .group_0837 import ( OrgsOrgPersonalAccessTokenRequestsPostBodyType as OrgsOrgPersonalAccessTokenRequestsPostBodyType, ) - from .group_0851 import ( + from .group_0868 import ( ProjectsColumnsColumnIdCardsPostBodyOneof0Type as ProjectsColumnsColumnIdCardsPostBodyOneof0Type, ) - from .group_0852 import ( + from .group_0869 import ( ProjectsColumnsColumnIdCardsPostBodyOneof1Type as ProjectsColumnsColumnIdCardsPostBodyOneof1Type, ) - from .group_0869 import ( + from .group_0886 import ( ReposOwnerRepoActionsRunnersGetResponse200Type as ReposOwnerRepoActionsRunnersGetResponse200Type, ) - from .group_0880 import ( + from .group_0897 import ( ReposOwnerRepoActionsSecretsGetResponse200Type as ReposOwnerRepoActionsSecretsGetResponse200Type, ) - from .group_0904 import ( + from .group_0924 import ( ReposOwnerRepoBranchesBranchRenamePostBodyType as ReposOwnerRepoBranchesBranchRenamePostBodyType, ) - from .group_0926 import ( + from .group_0946 import ( ReposOwnerRepoCollaboratorsUsernamePutBodyType as ReposOwnerRepoCollaboratorsUsernamePutBodyType, ) - from .group_0952 import ( + from .group_0972 import ( ReposOwnerRepoGitCommitsPostBodyPropAuthorType as ReposOwnerRepoGitCommitsPostBodyPropAuthorType, ) - from .group_0979 import ( + from .group_0999 import ( ReposOwnerRepoIssuesIssueNumberLockPutBodyType as ReposOwnerRepoIssuesIssueNumberLockPutBodyType, ) - from .group_0990 import ( + from .group_1010 import ( ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type as ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, ) - from .group_1045 import ( + from .group_1065 import ( TeamsTeamIdProjectsProjectIdPutResponse403Type as TeamsTeamIdProjectsProjectIdPutResponse403Type, ) - from .group_1057 import ( + from .group_1077 import ( UserCodespacesCodespaceNamePublishPostBodyType as UserCodespacesCodespaceNamePublishPostBodyType, ) - from .group_0031 import ( + from .group_0035 import ( DependabotAlertWithRepositoryPropDependencyType as DependabotAlertWithRepositoryPropDependencyType, ) - from .group_0140 import ( + from .group_0145 import ( ActionsBillingUsagePropMinutesUsedBreakdownType as ActionsBillingUsagePropMinutesUsedBreakdownType, ) - from .group_0202 import ( + from .group_0207 import ( CodeScanningVariantAnalysisSkippedRepoGroupType as CodeScanningVariantAnalysisSkippedRepoGroupType, ) - from .group_0276 import ( + from .group_0281 import ( RemovedFromProjectIssueEventPropProjectCardType as RemovedFromProjectIssueEventPropProjectCardType, ) - from .group_0393 import ( + from .group_0398 import ( WebhooksPreviousMarketplacePurchasePropPlanType as WebhooksPreviousMarketplacePurchasePropPlanType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropRequestedTeamsItemsType as WebhooksPullRequest5PropRequestedTeamsItemsType, ) - from .group_0411 import ( + from .group_0417 import ( WebhooksRelease1PropAssetsItemsPropUploaderType as WebhooksRelease1PropAssetsItemsPropUploaderType, ) - from .group_0414 import ( + from .group_0420 import ( WebhooksSecurityAdvisoryPropReferencesItemsType as WebhooksSecurityAdvisoryPropReferencesItemsType, ) - from .group_0419 import ( + from .group_0425 import ( WebhookBranchProtectionConfigurationEnabledType as WebhookBranchProtectionConfigurationEnabledType, ) - from .group_0463 import ( + from .group_0469 import ( WebhookDiscussionCategoryChangedPropChangesType as WebhookDiscussionCategoryChangedPropChangesType, ) - from .group_0470 import ( + from .group_0476 import ( WebhookDiscussionEditedPropChangesPropTitleType as WebhookDiscussionEditedPropChangesPropTitleType, ) - from .group_0494 import ( + from .group_0500 import ( WebhookInstallationTargetRenamedPropAccountType as WebhookInstallationTargetRenamedPropAccountType, ) - from .group_0494 import ( + from .group_0500 import ( WebhookInstallationTargetRenamedPropChangesType as WebhookInstallationTargetRenamedPropChangesType, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssuesClosedPropIssueMergedAssigneesType as WebhookIssuesClosedPropIssueMergedAssigneesType, ) - from .group_0532 import ( + from .group_0538 import ( WebhookIssuesClosedPropIssueMergedReactionsType as WebhookIssuesClosedPropIssueMergedReactionsType, ) - from .group_0540 import ( + from .group_0546 import ( WebhookIssuesClosedPropIssueMergedMilestoneType as WebhookIssuesClosedPropIssueMergedMilestoneType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropLabelsItemsType as WebhookIssuesEditedPropIssuePropLabelsItemsType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropPullRequestType as WebhookIssuesEditedPropIssuePropPullRequestType, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropLabelsItemsType as WebhookIssuesLockedPropIssuePropLabelsItemsType, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropPullRequestType as WebhookIssuesLockedPropIssuePropPullRequestType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropLabelsItemsType as WebhookIssuesOpenedPropIssuePropLabelsItemsType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropPullRequestType as WebhookIssuesOpenedPropIssuePropPullRequestType, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropMilestoneType as WebhookIssuesReopenedPropIssuePropMilestoneType, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropReactionsType as WebhookIssuesReopenedPropIssuePropReactionsType, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropMilestoneType as WebhookIssuesUnlockedPropIssuePropMilestoneType, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropReactionsType as WebhookIssuesUnlockedPropIssuePropReactionsType, ) - from .group_0564 import ( + from .group_0570 import ( WebhookMemberAddedPropChangesPropPermissionType as WebhookMemberAddedPropChangesPropPermissionType, ) - from .group_0586 import ( + from .group_0592 import ( WebhookPackagePublishedPropPackagePropOwnerType as WebhookPackagePublishedPropPackagePropOwnerType, ) - from .group_0602 import ( + from .group_0608 import ( WebhookProjectCardEditedPropChangesPropNoteType as WebhookProjectCardEditedPropChangesPropNoteType, ) - from .group_0635 import ( + from .group_0644 import ( WebhookPullRequestEditedPropChangesPropBaseType as WebhookPullRequestEditedPropChangesPropBaseType, ) - from .group_0635 import ( + from .group_0644 import ( WebhookPullRequestEditedPropChangesPropBodyType as WebhookPullRequestEditedPropChangesPropBodyType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropReviewType as WebhookPullRequestReviewDismissedPropReviewType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestType as WebhookPullRequestUnassignedPropPullRequestType, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropCommitPropCommitPropAuthorType as WebhookStatusPropCommitPropCommitPropAuthorType, ) - from .group_0725 import ( + from .group_0734 import ( WebhookTeamCreatedPropRepositoryPropLicenseType as WebhookTeamCreatedPropRepositoryPropLicenseType, ) - from .group_0726 import ( + from .group_0735 import ( WebhookTeamDeletedPropRepositoryPropLicenseType as WebhookTeamDeletedPropRepositoryPropLicenseType, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropChangesPropDescriptionType as WebhookTeamEditedPropChangesPropDescriptionType, ) - from .group_0734 import ( + from .group_0743 import ( WebhookWorkflowJobInProgressPropWorkflowJobType as WebhookWorkflowJobInProgressPropWorkflowJobType, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunType as WebhookWorkflowRunInProgressPropWorkflowRunType, ) - from .group_0775 import ( + from .group_0785 import ( OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType as OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0844 import ( + from .group_0861 import ( ProjectsColumnsCardsCardIdDeleteResponse403Type as ProjectsColumnsCardsCardIdDeleteResponse403Type, ) - from .group_0853 import ( + from .group_0870 import ( ProjectsColumnsColumnIdCardsPostResponse503Type as ProjectsColumnsColumnIdCardsPostResponse503Type, ) - from .group_0855 import ( + from .group_0872 import ( ProjectsColumnsColumnIdMovesPostResponse201Type as ProjectsColumnsColumnIdMovesPostResponse201Type, ) - from .group_0864 import ( + from .group_0881 import ( ReposOwnerRepoActionsJobsJobIdRerunPostBodyType as ReposOwnerRepoActionsJobsJobIdRerunPostBodyType, ) - from .group_0878 import ( + from .group_0895 import ( ReposOwnerRepoActionsRunsRunIdRerunPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunPostBodyType, ) - from .group_0884 import ( + from .group_0901 import ( ReposOwnerRepoActionsVariablesNamePatchBodyType as ReposOwnerRepoActionsVariablesNamePatchBodyType, ) - from .group_0931 import ( + from .group_0951 import ( ReposOwnerRepoContentsPathPutBodyPropAuthorType as ReposOwnerRepoContentsPathPutBodyPropAuthorType, ) - from .group_0956 import ( + from .group_0976 import ( ReposOwnerRepoGitTreesPostBodyPropTreeItemsType as ReposOwnerRepoGitTreesPostBodyPropTreeItemsType, ) - from .group_1024 import ( + from .group_1044 import ( ReposOwnerRepoReleasesGenerateNotesPostBodyType as ReposOwnerRepoReleasesGenerateNotesPostBodyType, ) - from .group_1050 import ( + from .group_1070 import ( UserCodespacesPostBodyOneof1PropPullRequestType as UserCodespacesPostBodyOneof1PropPullRequestType, ) - from .group_0028 import ( + from .group_0032 import ( DependabotAlertSecurityAdvisoryPropCwesItemsType as DependabotAlertSecurityAdvisoryPropCwesItemsType, ) - from .group_0118 import ( + from .group_0123 import ( RepositoryRuleParamsStatusCheckConfigurationType as RepositoryRuleParamsStatusCheckConfigurationType, ) - from .group_0272 import ( + from .group_0277 import ( ReviewDismissedIssueEventPropDismissedReviewType as ReviewDismissedIssueEventPropDismissedReviewType, ) - from .group_0345 import ( + from .group_0350 import ( SearchResultTextMatchesItemsPropMatchesItemsType as SearchResultTextMatchesItemsPropMatchesItemsType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropMilestonePropCreatorType as WebhooksPullRequest5PropMilestonePropCreatorType, ) - from .group_0414 import ( + from .group_0420 import ( WebhooksSecurityAdvisoryPropIdentifiersItemsType as WebhooksSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0418 import ( + from .group_0424 import ( WebhookBranchProtectionConfigurationDisabledType as WebhookBranchProtectionConfigurationDisabledType, ) - from .group_0422 import ( + from .group_0428 import ( WebhookBranchProtectionRuleEditedPropChangesType as WebhookBranchProtectionRuleEditedPropChangesType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentType as WebhookDeploymentStatusCreatedPropDeploymentType, ) - from .group_0520 import ( + from .group_0526 import ( WebhookIssueCommentEditedPropIssueMergedUserType as WebhookIssueCommentEditedPropIssueMergedUserType, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropLabelsItemsType as WebhookIssuesDeletedPropIssuePropLabelsItemsType, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropPullRequestType as WebhookIssuesDeletedPropIssuePropPullRequestType, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropLabelsItemsType as WebhookIssuesLabeledPropIssuePropLabelsItemsType, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropPullRequestType as WebhookIssuesLabeledPropIssuePropPullRequestType, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropAssigneeType as WebhookIssuesMilestonedPropIssuePropAssigneeType, ) - from .group_0558 import ( + from .group_0564 import ( WebhookLabelEditedPropChangesPropDescriptionType as WebhookLabelEditedPropChangesPropDescriptionType, ) - from .group_0565 import ( + from .group_0571 import ( WebhookMemberEditedPropChangesPropPermissionType as WebhookMemberEditedPropChangesPropPermissionType, ) - from .group_0584 import ( + from .group_0590 import ( WebhookRubygemsMetadataPropDependenciesItemsType as WebhookRubygemsMetadataPropDependenciesItemsType, ) - from .group_0589 import ( + from .group_0595 import ( WebhookPackageUpdatedPropPackagePropRegistryType as WebhookPackageUpdatedPropPackagePropRegistryType, ) - from .group_0604 import ( + from .group_0610 import ( WebhookProjectCardMovedPropProjectCardAllof0Type as WebhookProjectCardMovedPropProjectCardAllof0Type, ) - from .group_0605 import ( + from .group_0611 import ( WebhookProjectCardMovedPropProjectCardAllof1Type as WebhookProjectCardMovedPropProjectCardAllof1Type, ) - from .group_0623 import ( + from .group_0629 import ( WebhookProjectsV2ItemEditedPropChangesOneof0Type as WebhookProjectsV2ItemEditedPropChangesOneof0Type, ) - from .group_0623 import ( + from .group_0629 import ( WebhookProjectsV2ItemEditedPropChangesOneof1Type as WebhookProjectsV2ItemEditedPropChangesOneof1Type, ) - from .group_0635 import ( + from .group_0644 import ( WebhookPullRequestEditedPropChangesPropTitleType as WebhookPullRequestEditedPropChangesPropTitleType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0Type, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1Type, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestType as WebhookPullRequestSynchronizePropPullRequestType, ) - from .group_0679 import ( + from .group_0688 import ( WebhookRepositoryEditedPropChangesPropTopicsType as WebhookRepositoryEditedPropChangesPropTopicsType, ) - from .group_0769 import ( + from .group_0779 import ( OrgsOrgActionsPermissionsRepositoriesPutBodyType as OrgsOrgActionsPermissionsRepositoriesPutBodyType, ) - from .group_0788 import ( + from .group_0804 import ( OrgsOrgCodespacesAccessSelectedUsersPostBodyType as OrgsOrgCodespacesAccessSelectedUsersPostBodyType, ) - from .group_0796 import ( + from .group_0813 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType as OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType, ) - from .group_0800 import ( + from .group_0817 import ( OrgsOrgCopilotBillingSelectedUsersDeleteBodyType as OrgsOrgCopilotBillingSelectedUsersDeleteBodyType, ) - from .group_0810 import ( + from .group_0827 import ( OrgsOrgInteractionLimitsGetResponse200Anyof1Type as OrgsOrgInteractionLimitsGetResponse200Anyof1Type, ) - from .group_0840 import ( + from .group_0857 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType as OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType, ) - from .group_0863 import ( + from .group_0880 import ( ReposOwnerRepoActionsArtifactsGetResponse200Type as ReposOwnerRepoActionsArtifactsGetResponse200Type, ) - from .group_0882 import ( + from .group_0899 import ( ReposOwnerRepoActionsVariablesGetResponse200Type as ReposOwnerRepoActionsVariablesGetResponse200Type, ) - from .group_0885 import ( + from .group_0902 import ( ReposOwnerRepoActionsWorkflowsGetResponse200Type as ReposOwnerRepoActionsWorkflowsGetResponse200Type, ) - from .group_0962 import ( + from .group_0905 import ( + ReposOwnerRepoAttestationsPostBodyPropBundleType as ReposOwnerRepoAttestationsPostBodyPropBundleType, + ) + from .group_0982 import ( ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType as ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType, ) - from .group_1016 import ( + from .group_1036 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsPostBodyType, ) - from .group_1023 import ( + from .group_1043 import ( ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType as ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType, ) - from .group_0102 import ( + from .group_0107 import ( RepositoryRulesetConditionsRepositoryIdTargetType as RepositoryRulesetConditionsRepositoryIdTargetType, ) - from .group_0126 import ( + from .group_0131 import ( RepositoryRuleBranchNamePatternPropParametersType as RepositoryRuleBranchNamePatternPropParametersType, ) - from .group_0179 import ( + from .group_0184 import ( BranchRestrictionPolicyPropAppsItemsPropOwnerType as BranchRestrictionPolicyPropAppsItemsPropOwnerType, ) - from .group_0189 import ( + from .group_0194 import ( ProtectedBranchPropRequiredPullRequestReviewsType as ProtectedBranchPropRequiredPullRequestReviewsType, ) - from .group_0275 import ( + from .group_0280 import ( MovedColumnInProjectIssueEventPropProjectCardType as MovedColumnInProjectIssueEventPropProjectCardType, ) - from .group_0277 import ( + from .group_0282 import ( ConvertedNoteToIssueIssueEventPropProjectCardType as ConvertedNoteToIssueIssueEventPropProjectCardType, ) - from .group_0283 import ( + from .group_0288 import ( TimelineReviewedEventPropLinksPropPullRequestType as TimelineReviewedEventPropLinksPropPullRequestType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropBasePropRepoPropOwnerType as WebhooksPullRequest5PropBasePropRepoPropOwnerType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropHeadPropRepoPropOwnerType as WebhooksPullRequest5PropHeadPropRepoPropOwnerType, ) - from .group_0408 import ( + from .group_0414 import ( WebhooksReviewCommentPropLinksPropPullRequestType as WebhooksReviewCommentPropLinksPropPullRequestType, ) - from .group_0435 import ( + from .group_0441 import ( WebhookCodeScanningAlertClosedByUserPropAlertType as WebhookCodeScanningAlertClosedByUserPropAlertType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunType as WebhookDeploymentStatusCreatedPropWorkflowRunType, ) - from .group_0497 import ( + from .group_0503 import ( WebhookIssueCommentCreatedPropCommentPropUserType as WebhookIssueCommentCreatedPropCommentPropUserType, ) - from .group_0498 import ( + from .group_0504 import ( WebhookIssueCommentCreatedPropIssueMergedUserType as WebhookIssueCommentCreatedPropIssueMergedUserType, ) - from .group_0509 import ( + from .group_0515 import ( WebhookIssueCommentDeletedPropIssueMergedUserType as WebhookIssueCommentDeletedPropIssueMergedUserType, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropMilestoneType as WebhookIssuesMilestonedPropIssuePropMilestoneType, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropReactionsType as WebhookIssuesMilestonedPropIssuePropReactionsType, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropLabelsItemsType as WebhookIssuesReopenedPropIssuePropLabelsItemsType, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropPullRequestType as WebhookIssuesReopenedPropIssuePropPullRequestType, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropLabelsItemsType as WebhookIssuesUnlockedPropIssuePropLabelsItemsType, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropPullRequestType as WebhookIssuesUnlockedPropIssuePropPullRequestType, ) - from .group_0609 import ( + from .group_0615 import ( WebhookProjectColumnEditedPropChangesPropNameType as WebhookProjectColumnEditedPropChangesPropNameType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestType as WebhookPullRequestReviewEditedPropPullRequestType, ) - from .group_0659 import ( + from .group_0668 import ( WebhookPushPropRepositoryPropCustomPropertiesType as WebhookPushPropRepositoryPropCustomPropertiesType, ) - from .group_0668 import ( + from .group_0677 import ( WebhookReleaseEditedPropChangesPropMakeLatestType as WebhookReleaseEditedPropChangesPropMakeLatestType, ) - from .group_0709 import ( + from .group_0718 import ( WebhookSecurityAndAnalysisPropChangesPropFromType as WebhookSecurityAndAnalysisPropChangesPropFromType, ) - from .group_0859 import ( + from .group_0876 import ( ProjectsProjectIdCollaboratorsUsernamePutBodyType as ProjectsProjectIdCollaboratorsUsernamePutBodyType, ) - from .group_0881 import ( + from .group_0898 import ( ReposOwnerRepoActionsSecretsSecretNamePutBodyType as ReposOwnerRepoActionsSecretsSecretNamePutBodyType, ) - from .group_0889 import ( + from .group_0909 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyType as ReposOwnerRepoBranchesBranchProtectionPutBodyType, ) - from .group_0912 import ( + from .group_0932 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyType, ) - from .group_0924 import ( + from .group_0944 import ( ReposOwnerRepoCodespacesSecretsGetResponse200Type as ReposOwnerRepoCodespacesSecretsGetResponse200Type, ) - from .group_0934 import ( + from .group_0954 import ( ReposOwnerRepoDependabotSecretsGetResponse200Type as ReposOwnerRepoDependabotSecretsGetResponse200Type, ) - from .group_0952 import ( + from .group_0972 import ( ReposOwnerRepoGitCommitsPostBodyPropCommitterType as ReposOwnerRepoGitCommitsPostBodyPropCommitterType, ) - from .group_1004 import ( + from .group_1024 import ( ReposOwnerRepoPullsCommentsCommentIdPatchBodyType as ReposOwnerRepoPullsCommentsCommentIdPatchBodyType, ) - from .group_1008 import ( + from .group_1028 import ( ReposOwnerRepoPullsPullNumberCommentsPostBodyType as ReposOwnerRepoPullsPullNumberCommentsPostBodyType, ) - from .group_0393 import ( + from .group_0398 import ( WebhooksPreviousMarketplacePurchasePropAccountType as WebhooksPreviousMarketplacePurchasePropAccountType, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsAddedType as PersonalAccessTokenRequestPropPermissionsAddedType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropAutoMergePropEnabledByType as WebhooksPullRequest5PropAutoMergePropEnabledByType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLinksPropReviewCommentType as WebhooksPullRequest5PropLinksPropReviewCommentType, ) - from .group_0437 import ( + from .group_0443 import ( WebhookCodeScanningAlertFixedPropAlertPropRuleType as WebhookCodeScanningAlertFixedPropAlertPropRuleType, ) - from .group_0437 import ( + from .group_0443 import ( WebhookCodeScanningAlertFixedPropAlertPropToolType as WebhookCodeScanningAlertFixedPropAlertPropToolType, ) - from .group_0440 import ( + from .group_0446 import ( WebhookCommitCommentCreatedPropCommentPropUserType as WebhookCommitCommentCreatedPropCommentPropUserType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunType as WebhookDeploymentReviewApprovedPropWorkflowRunType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunType as WebhookDeploymentReviewRejectedPropWorkflowRunType, ) - from .group_0533 import ( + from .group_0539 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneeType as WebhookIssuesClosedPropIssueAllof0PropAssigneeType, ) - from .group_0539 import ( + from .group_0545 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneeType as WebhookIssuesClosedPropIssueAllof1PropAssigneeType, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropAssigneeType as WebhookIssuesDemilestonedPropIssuePropAssigneeType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropAssigneesItemsType as WebhookIssuesEditedPropIssuePropAssigneesItemsType, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropAssigneesItemsType as WebhookIssuesLockedPropIssuePropAssigneesItemsType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropAssigneesItemsType as WebhookIssuesOpenedPropIssuePropAssigneesItemsType, ) - from .group_0581 import ( + from .group_0587 import ( WebhookOrganizationMemberInvitedPropInvitationType as WebhookOrganizationMemberInvitedPropInvitationType, ) - from .group_0583 import ( + from .group_0589 import ( WebhookOrganizationRenamedPropChangesPropLoginType as WebhookOrganizationRenamedPropChangesPropLoginType, ) - from .group_0586 import ( + from .group_0592 import ( WebhookPackagePublishedPropPackagePropRegistryType as WebhookPackagePublishedPropPackagePropRegistryType, ) - from .group_0599 import ( + from .group_0605 import ( WebhookProjectCardConvertedPropChangesPropNoteType as WebhookProjectCardConvertedPropChangesPropNoteType, ) - from .group_0603 import ( + from .group_0609 import ( WebhookProjectCardMovedPropChangesPropColumnIdType as WebhookProjectCardMovedPropChangesPropColumnIdType, ) - from .group_0669 import ( + from .group_0635 import ( + WebhookProjectsV2StatusUpdateEditedPropChangesType as WebhookProjectsV2StatusUpdateEditedPropChangesType, + ) + from .group_0678 import ( WebhookReleasePrereleasedPropReleasePropAuthorType as WebhookReleasePrereleasedPropReleasePropAuthorType, ) - from .group_0679 import ( + from .group_0688 import ( WebhookRepositoryEditedPropChangesPropHomepageType as WebhookRepositoryEditedPropChangesPropHomepageType, ) - from .group_0699 import ( + from .group_0708 import ( SecretScanningLocationPullRequestReviewCommentType as SecretScanningLocationPullRequestReviewCommentType, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropCommitPropCommitPropCommitterType as WebhookStatusPropCommitPropCommitPropCommitterType, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropRepositoryPropPermissionsType as WebhookTeamEditedPropRepositoryPropPermissionsType, ) - from .group_0728 import ( + from .group_0737 import ( WebhookTeamRemovedFromRepositoryPropRepositoryType as WebhookTeamRemovedFromRepositoryPropRepositoryType, ) - from .group_0771 import ( + from .group_0781 import ( OrgsOrgActionsRunnersGenerateJitconfigPostBodyType as OrgsOrgActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0785 import ( + from .group_0795 import ( OrgsOrgActionsVariablesNameRepositoriesPutBodyType as OrgsOrgActionsVariablesNameRepositoriesPutBodyType, ) - from .group_0789 import ( + from .group_0796 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200Type as OrgsOrgAttestationsSubjectDigestGetResponse200Type, + ) + from .group_0805 import ( OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType as OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType, ) - from .group_0812 import ( + from .group_0829 import ( OrgsOrgMembersUsernameCodespacesGetResponse200Type as OrgsOrgMembersUsernameCodespacesGetResponse200Type, ) - from .group_0839 import ( + from .group_0856 import ( OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType as OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType, ) - from .group_0847 import ( + from .group_0864 import ( ProjectsColumnsCardsCardIdMovesPostResponse201Type as ProjectsColumnsCardsCardIdMovesPostResponse201Type, ) - from .group_0848 import ( + from .group_0865 import ( ProjectsColumnsCardsCardIdMovesPostResponse403Type as ProjectsColumnsCardsCardIdMovesPostResponse403Type, ) - from .group_0849 import ( + from .group_0866 import ( ProjectsColumnsCardsCardIdMovesPostResponse503Type as ProjectsColumnsCardsCardIdMovesPostResponse503Type, ) - from .group_0862 import ( + from .group_0879 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, ) - from .group_0922 import ( + from .group_0942 import ( ReposOwnerRepoCodespacesMachinesGetResponse200Type as ReposOwnerRepoCodespacesMachinesGetResponse200Type, ) - from .group_0929 import ( + from .group_0949 import ( ReposOwnerRepoCommitsCommitShaCommentsPostBodyType as ReposOwnerRepoCommitsCommitShaCommentsPostBodyType, ) - from .group_0931 import ( + from .group_0951 import ( ReposOwnerRepoContentsPathPutBodyPropCommitterType as ReposOwnerRepoContentsPathPutBodyPropCommitterType, ) - from .group_0932 import ( + from .group_0952 import ( ReposOwnerRepoContentsPathDeleteBodyPropAuthorType as ReposOwnerRepoContentsPathDeleteBodyPropAuthorType, ) - from .group_0965 import ( + from .group_0985 import ( ReposOwnerRepoInvitationsInvitationIdPatchBodyType as ReposOwnerRepoInvitationsInvitationIdPatchBodyType, ) - from .group_0967 import ( + from .group_0987 import ( ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType as ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType, ) - from .group_1035 import ( + from .group_1055 import ( ReposTemplateOwnerTemplateRepoGeneratePostBodyType as ReposTemplateOwnerTemplateRepoGeneratePostBodyType, ) - from .group_0048 import ( + from .group_0052 import ( MarketplacePurchasePropMarketplacePendingChangeType as MarketplacePurchasePropMarketplacePendingChangeType, ) - from .group_0100 import ( + from .group_0105 import ( RepositoryRulesetConditionsRepositoryNameTargetType as RepositoryRulesetConditionsRepositoryNameTargetType, ) - from .group_0114 import ( + from .group_0119 import ( RepositoryRuleRequiredDeploymentsPropParametersType as RepositoryRuleRequiredDeploymentsPropParametersType, ) - from .group_0137 import ( + from .group_0142 import ( RuleSuitePropRuleEvaluationsItemsPropRuleSourceType as RuleSuitePropRuleEvaluationsItemsPropRuleSourceType, ) - from .group_0237 import ( + from .group_0242 import ( DependencyGraphSpdxSbomPropSbomPropCreationInfoType as DependencyGraphSpdxSbomPropSbomPropCreationInfoType, ) - from .group_0388 import ( + from .group_0393 import ( WebhooksIssuePropPerformedViaGithubAppPropOwnerType as WebhooksIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsResultType as PersonalAccessTokenRequestPropPermissionsResultType, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropRepositoriesItemsType as PersonalAccessTokenRequestPropRepositoriesItemsType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropBasePropRepoPropLicenseType as WebhooksPullRequest5PropBasePropRepoPropLicenseType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropHeadPropRepoPropLicenseType as WebhooksPullRequest5PropHeadPropRepoPropLicenseType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropLinksPropReviewCommentsType as WebhooksPullRequest5PropLinksPropReviewCommentsType, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppType as WebhookCheckSuiteCompletedPropCheckSuitePropAppType, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppType as WebhookCheckSuiteRequestedPropCheckSuitePropAppType, ) - from .group_0439 import ( + from .group_0445 import ( WebhookCodeScanningAlertReopenedByUserPropAlertType as WebhookCodeScanningAlertReopenedByUserPropAlertType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunType as WebhookDeploymentReviewRequestedPropWorkflowRunType, ) - from .group_0533 import ( + from .group_0539 import ( WebhookIssuesClosedPropIssueAllof0PropReactionsType as WebhookIssuesClosedPropIssueAllof0PropReactionsType, ) - from .group_0535 import ( + from .group_0541 import ( WebhookIssuesClosedPropIssueAllof0PropMilestoneType as WebhookIssuesClosedPropIssueAllof0PropMilestoneType, ) - from .group_0539 import ( + from .group_0545 import ( WebhookIssuesClosedPropIssueAllof1PropMilestoneType as WebhookIssuesClosedPropIssueAllof1PropMilestoneType, ) - from .group_0539 import ( + from .group_0545 import ( WebhookIssuesClosedPropIssueAllof1PropReactionsType as WebhookIssuesClosedPropIssueAllof1PropReactionsType, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropAssigneesItemsType as WebhookIssuesDeletedPropIssuePropAssigneesItemsType, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropMilestoneType as WebhookIssuesDemilestonedPropIssuePropMilestoneType, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropReactionsType as WebhookIssuesDemilestonedPropIssuePropReactionsType, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropAssigneesItemsType as WebhookIssuesLabeledPropIssuePropAssigneesItemsType, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropLabelsItemsType as WebhookIssuesMilestonedPropIssuePropLabelsItemsType, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropPullRequestType as WebhookIssuesMilestonedPropIssuePropPullRequestType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryType as WebhookIssuesOpenedPropChangesPropOldRepositoryType, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssueType as WebhookIssuesTransferredPropChangesPropNewIssueType, ) - from .group_0565 import ( + from .group_0571 import ( WebhookMemberEditedPropChangesPropOldPermissionType as WebhookMemberEditedPropChangesPropOldPermissionType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropBaseType as WebhookPullRequestLockedPropPullRequestPropBaseType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropHeadType as WebhookPullRequestLockedPropPullRequestPropHeadType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropUserType as WebhookPullRequestLockedPropPullRequestPropUserType, ) - from .group_0725 import ( + from .group_0734 import ( WebhookTeamCreatedPropRepositoryPropPermissionsType as WebhookTeamCreatedPropRepositoryPropPermissionsType, ) - from .group_0726 import ( + from .group_0735 import ( WebhookTeamDeletedPropRepositoryPropPermissionsType as WebhookTeamDeletedPropRepositoryPropPermissionsType, ) - from .group_0764 import ( + from .group_0774 import ( NotificationsThreadsThreadIdSubscriptionPutBodyType as NotificationsThreadsThreadIdSubscriptionPutBodyType, ) - from .group_0905 import ( + from .group_0925 import ( ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType as ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, ) - from .group_0930 import ( + from .group_0950 import ( ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type as ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type, ) - from .group_0972 import ( + from .group_0992 import ( ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType as ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType, ) - from .group_1007 import ( + from .group_1027 import ( ReposOwnerRepoPullsPullNumberCodespacesPostBodyType as ReposOwnerRepoPullsPullNumberCodespacesPostBodyType, ) - from .group_1038 import ( + from .group_1058 import ( TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType, ) - from .group_0050 import ( + from .group_0054 import ( SecurityAndAnalysisPropDependabotSecurityUpdatesType as SecurityAndAnalysisPropDependabotSecurityUpdatesType, ) - from .group_0118 import ( + from .group_0123 import ( RepositoryRuleRequiredStatusChecksPropParametersType as RepositoryRuleRequiredStatusChecksPropParametersType, ) - from .group_0120 import ( + from .group_0125 import ( RepositoryRuleCommitMessagePatternPropParametersType as RepositoryRuleCommitMessagePatternPropParametersType, ) - from .group_0236 import ( + from .group_0241 import ( DependencyGraphDiffItemsPropVulnerabilitiesItemsType as DependencyGraphDiffItemsPropVulnerabilitiesItemsType, ) - from .group_0237 import ( + from .group_0242 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsType as DependencyGraphSpdxSbomPropSbomPropPackagesItemsType, ) - from .group_0284 import ( + from .group_0289 import ( PullRequestReviewCommentPropLinksPropPullRequestType as PullRequestReviewCommentPropLinksPropPullRequestType, ) - from .group_0329 import ( + from .group_0334 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsType as RepositoryAdvisoryCreatePropVulnerabilitiesItemsType, ) - from .group_0331 import ( + from .group_0336 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType, ) - from .group_0390 import ( + from .group_0395 import ( WebhooksIssue2PropPerformedViaGithubAppPropOwnerType as WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, ) - from .group_0414 import ( + from .group_0420 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_0436 import ( + from .group_0442 import ( WebhookCodeScanningAlertCreatedPropAlertPropRuleType as WebhookCodeScanningAlertCreatedPropAlertPropRuleType, ) - from .group_0436 import ( + from .group_0442 import ( WebhookCodeScanningAlertCreatedPropAlertPropToolType as WebhookCodeScanningAlertCreatedPropAlertPropToolType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropActorType as WebhookDeploymentCreatedPropWorkflowRunPropActorType, ) - from .group_0521 import ( + from .group_0527 import ( WebhookIssueCommentEditedPropIssueAllof0PropUserType as WebhookIssueCommentEditedPropIssueAllof0PropUserType, ) - from .group_0527 import ( + from .group_0533 import ( WebhookIssueCommentEditedPropIssueAllof1PropUserType as WebhookIssueCommentEditedPropIssueAllof1PropUserType, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropAssigneesItemsType as WebhookIssuesReopenedPropIssuePropAssigneesItemsType, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropAssigneesItemsType as WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, ) - from .group_0562 import ( + from .group_0568 import ( WebhookMarketplacePurchasePendingChangeCancelledType as WebhookMarketplacePurchasePendingChangeCancelledType, ) - from .group_0575 import ( + from .group_0581 import ( WebhookMilestoneEditedPropChangesPropDescriptionType as WebhookMilestoneEditedPropChangesPropDescriptionType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropBaseType as WebhookPullRequestLabeledPropPullRequestPropBaseType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropHeadType as WebhookPullRequestLabeledPropPullRequestPropHeadType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropUserType as WebhookPullRequestLabeledPropPullRequestPropUserType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLinksType as WebhookPullRequestLockedPropPullRequestPropLinksType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestType as WebhookPullRequestReviewDismissedPropPullRequestType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestType as WebhookPullRequestReviewSubmittedPropPullRequestType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropThreadType as WebhookPullRequestReviewThreadResolvedPropThreadType, ) - from .group_0664 import ( + from .group_0673 import ( WebhookRegistryPackageUpdatedPropRegistryPackageType as WebhookRegistryPackageUpdatedPropRegistryPackageType, ) - from .group_0678 import ( + from .group_0687 import ( WebhookRepositoryDispatchSamplePropClientPayloadType as WebhookRepositoryDispatchSamplePropClientPayloadType, ) - from .group_0692 import ( + from .group_0701 import ( WebhookRepositoryTransferredPropChangesPropOwnerType as WebhookRepositoryTransferredPropChangesPropOwnerType, ) - from .group_0732 import ( + from .group_0741 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type, ) - from .group_0733 import ( + from .group_0742 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type as WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type, ) - from .group_0743 import ( + from .group_0752 import ( AppManifestsCodeConversionsPostResponse201Allof1Type as AppManifestsCodeConversionsPostResponse201Allof1Type, ) - from .group_0826 import ( + from .group_0843 import ( OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType as OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType, ) - from .group_0865 import ( + from .group_0882 import ( ReposOwnerRepoActionsOidcCustomizationSubPutBodyType as ReposOwnerRepoActionsOidcCustomizationSubPutBodyType, ) - from .group_0876 import ( + from .group_0893 import ( ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type, ) - from .group_0909 import ( + from .group_0929 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type, ) - from .group_0910 import ( + from .group_0930 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type, ) - from .group_0925 import ( + from .group_0945 import ( ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType as ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType, ) - from .group_0928 import ( + from .group_0948 import ( ReposOwnerRepoCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoCommentsCommentIdReactionsPostBodyType, ) - from .group_0935 import ( + from .group_0955 import ( ReposOwnerRepoDependabotSecretsSecretNamePutBodyType as ReposOwnerRepoDependabotSecretsSecretNamePutBodyType, ) - from .group_0941 import ( + from .group_0961 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType, ) - from .group_0970 import ( + from .group_0990 import ( ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType, ) - from .group_0980 import ( + from .group_1000 import ( ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType as ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType, ) - from .group_0987 import ( + from .group_1007 import ( ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType as ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType, ) - from .group_1011 import ( + from .group_1031 import ( ReposOwnerRepoPullsPullNumberMergePutResponse405Type as ReposOwnerRepoPullsPullNumberMergePutResponse405Type, ) - from .group_1012 import ( + from .group_1032 import ( ReposOwnerRepoPullsPullNumberMergePutResponse409Type as ReposOwnerRepoPullsPullNumberMergePutResponse409Type, ) - from .group_1020 import ( + from .group_1040 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType as ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType, ) - from .group_1026 import ( + from .group_1046 import ( ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType as ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType, ) - from .group_0105 import ( + from .group_0110 import ( RepositoryRulesetConditionsRepositoryPropertySpecType as RepositoryRulesetConditionsRepositoryPropertySpecType, ) - from .group_0124 import ( + from .group_0129 import ( RepositoryRuleCommitterEmailPatternPropParametersType as RepositoryRuleCommitterEmailPatternPropParametersType, ) - from .group_0180 import ( + from .group_0185 import ( ProtectedBranchRequiredStatusCheckPropChecksItemsType as ProtectedBranchRequiredStatusCheckPropChecksItemsType, ) - from .group_0188 import ( + from .group_0193 import ( ProtectedBranchPropRequiredConversationResolutionType as ProtectedBranchPropRequiredConversationResolutionType, ) - from .group_0194 import ( + from .group_0199 import ( ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type as ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type, ) - from .group_0357 import ( + from .group_0362 import ( CodespaceWithFullRepositoryPropRuntimeConstraintsType as CodespaceWithFullRepositoryPropRuntimeConstraintsType, ) - from .group_0370 import ( + from .group_0375 import ( RepositoryWebhooksPropTemplateRepositoryPropOwnerType as RepositoryWebhooksPropTemplateRepositoryPropOwnerType, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsUpgradedType as PersonalAccessTokenRequestPropPermissionsUpgradedType, ) - from .group_0427 import ( + from .group_0433 import ( WebhookCheckRunRequestedActionPropRequestedActionType as WebhookCheckRunRequestedActionPropRequestedActionType, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppType, ) - from .group_0434 import ( + from .group_0440 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertType as WebhookCodeScanningAlertAppearedInBranchPropAlertType, ) - from .group_0438 import ( + from .group_0444 import ( WebhookCodeScanningAlertReopenedPropAlertPropRuleType as WebhookCodeScanningAlertReopenedPropAlertPropRuleType, ) - from .group_0438 import ( + from .group_0444 import ( WebhookCodeScanningAlertReopenedPropAlertPropToolType as WebhookCodeScanningAlertReopenedPropAlertPropToolType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropDeploymentPropCreatorType as WebhookDeploymentCreatedPropDeploymentPropCreatorType, ) - from .group_0467 import ( + from .group_0473 import ( WebhookDiscussionCommentEditedPropChangesPropBodyType as WebhookDiscussionCommentEditedPropChangesPropBodyType, ) - from .group_0499 import ( + from .group_0505 import ( WebhookIssueCommentCreatedPropIssueAllof0PropUserType as WebhookIssueCommentCreatedPropIssueAllof0PropUserType, ) - from .group_0505 import ( + from .group_0511 import ( WebhookIssueCommentCreatedPropIssueAllof1PropUserType as WebhookIssueCommentCreatedPropIssueAllof1PropUserType, ) - from .group_0510 import ( + from .group_0516 import ( WebhookIssueCommentDeletedPropIssueAllof0PropUserType as WebhookIssueCommentDeletedPropIssueAllof0PropUserType, ) - from .group_0516 import ( + from .group_0522 import ( WebhookIssueCommentDeletedPropIssueAllof1PropUserType as WebhookIssueCommentDeletedPropIssueAllof1PropUserType, ) - from .group_0520 import ( + from .group_0526 import ( WebhookIssueCommentEditedPropIssueMergedAssigneesType as WebhookIssueCommentEditedPropIssueMergedAssigneesType, ) - from .group_0520 import ( + from .group_0526 import ( WebhookIssueCommentEditedPropIssueMergedReactionsType as WebhookIssueCommentEditedPropIssueMergedReactionsType, ) - from .group_0528 import ( + from .group_0534 import ( WebhookIssueCommentEditedPropIssueMergedMilestoneType as WebhookIssueCommentEditedPropIssueMergedMilestoneType, ) - from .group_0533 import ( + from .group_0539 import ( WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType, ) - from .group_0538 import ( + from .group_0544 import ( WebhookIssuesClosedPropIssueAllof0PropPullRequestType as WebhookIssuesClosedPropIssueAllof0PropPullRequestType, ) - from .group_0539 import ( + from .group_0545 import ( WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType as WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropLabelsItemsType as WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropPullRequestType as WebhookIssuesDemilestonedPropIssuePropPullRequestType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropBaseType as WebhookPullRequestAssignedPropPullRequestPropBaseType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropHeadType as WebhookPullRequestAssignedPropPullRequestPropHeadType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropUserType as WebhookPullRequestAssignedPropPullRequestPropUserType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestType as WebhookPullRequestAutoMergeEnabledPropPullRequestType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropBaseType as WebhookPullRequestDequeuedPropPullRequestPropBaseType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadType as WebhookPullRequestDequeuedPropPullRequestPropHeadType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropUserType as WebhookPullRequestDequeuedPropPullRequestPropUserType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropBaseType as WebhookPullRequestEnqueuedPropPullRequestPropBaseType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadType as WebhookPullRequestEnqueuedPropPullRequestPropHeadType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropUserType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLinksType as WebhookPullRequestLabeledPropPullRequestPropLinksType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropCommentType as WebhookPullRequestReviewCommentCreatedPropCommentType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropChangesPropBodyType as WebhookPullRequestReviewEditedPropChangesPropBodyType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropBaseType as WebhookPullRequestUnlockedPropPullRequestPropBaseType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadType as WebhookPullRequestUnlockedPropPullRequestPropHeadType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropUserType as WebhookPullRequestUnlockedPropPullRequestPropUserType, ) - from .group_0669 import ( + from .group_0678 import ( WebhookReleasePrereleasedPropReleasePropReactionsType as WebhookReleasePrereleasedPropReleasePropReactionsType, ) - from .group_0679 import ( + from .group_0688 import ( WebhookRepositoryEditedPropChangesPropDescriptionType as WebhookRepositoryEditedPropChangesPropDescriptionType, ) - from .group_0683 import ( + from .group_0692 import ( WebhookRepositoryRenamedPropChangesPropRepositoryType as WebhookRepositoryRenamedPropChangesPropRepositoryType, ) - from .group_0687 import ( + from .group_0696 import ( WebhookRepositoryRulesetEditedPropChangesPropNameType as WebhookRepositoryRulesetEditedPropChangesPropNameType, ) - from .group_0718 import ( + from .group_0727 import ( WebhookStatusPropCommitPropCommitPropVerificationType as WebhookStatusPropCommitPropCommitPropVerificationType, ) - from .group_0719 import ( + from .group_0728 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof0Type as WebhookStatusPropCommitPropCommitPropAuthorAllof0Type, ) - from .group_0720 import ( + from .group_0729 import ( WebhookStatusPropCommitPropCommitPropAuthorAllof1Type as WebhookStatusPropCommitPropCommitPropAuthorAllof1Type, ) - from .group_0735 import ( + from .group_0744 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type, ) - from .group_0736 import ( + from .group_0745 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type as WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type, ) - from .group_0773 import ( + from .group_0783 import ( OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type as OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type, ) - from .group_0795 import ( + from .group_0812 import ( OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type as OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type, ) - from .group_0799 import ( + from .group_0816 import ( OrgsOrgCopilotBillingSelectedUsersPostResponse201Type as OrgsOrgCopilotBillingSelectedUsersPostResponse201Type, ) - from .group_0818 import ( + from .group_0835 import ( OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type as OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type, ) - from .group_0871 import ( + from .group_0888 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType, ) - from .group_0932 import ( + from .group_0952 import ( ReposOwnerRepoContentsPathDeleteBodyPropCommitterType as ReposOwnerRepoContentsPathDeleteBodyPropCommitterType, ) - from .group_0940 import ( + from .group_0960 import ( ReposOwnerRepoDispatchesPostBodyPropClientPayloadType as ReposOwnerRepoDispatchesPostBodyPropClientPayloadType, ) - from .group_0966 import ( + from .group_0986 import ( ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type, ) - from .group_1056 import ( + from .group_1076 import ( UserCodespacesCodespaceNameMachinesGetResponse200Type as UserCodespacesCodespaceNameMachinesGetResponse200Type, ) - from .group_0028 import ( + from .group_0032 import ( DependabotAlertSecurityAdvisoryPropReferencesItemsType as DependabotAlertSecurityAdvisoryPropReferencesItemsType, ) - from .group_0090 import ( + from .group_0095 import ( OrganizationProgrammaticAccessGrantPropPermissionsType as OrganizationProgrammaticAccessGrantPropPermissionsType, ) - from .group_0180 import ( + from .group_0185 import ( BranchProtectionPropRequiredConversationResolutionType as BranchProtectionPropRequiredConversationResolutionType, ) - from .group_0205 import ( + from .group_0210 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesType as CodeScanningVariantAnalysisPropSkippedRepositoriesType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropReviewersItemsType as WebhookDeploymentReviewRequestedPropReviewersItemsType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowJobRunType as WebhookDeploymentReviewRequestedPropWorkflowJobRunType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusType as WebhookDeploymentStatusCreatedPropDeploymentStatusType, ) - from .group_0497 import ( + from .group_0503 import ( WebhookIssueCommentCreatedPropCommentPropReactionsType as WebhookIssueCommentCreatedPropCommentPropReactionsType, ) - from .group_0498 import ( + from .group_0504 import ( WebhookIssueCommentCreatedPropIssueMergedAssigneesType as WebhookIssueCommentCreatedPropIssueMergedAssigneesType, ) - from .group_0498 import ( + from .group_0504 import ( WebhookIssueCommentCreatedPropIssueMergedReactionsType as WebhookIssueCommentCreatedPropIssueMergedReactionsType, ) - from .group_0506 import ( + from .group_0512 import ( WebhookIssueCommentCreatedPropIssueMergedMilestoneType as WebhookIssueCommentCreatedPropIssueMergedMilestoneType, ) - from .group_0509 import ( + from .group_0515 import ( WebhookIssueCommentDeletedPropIssueMergedAssigneesType as WebhookIssueCommentDeletedPropIssueMergedAssigneesType, ) - from .group_0509 import ( + from .group_0515 import ( WebhookIssueCommentDeletedPropIssueMergedReactionsType as WebhookIssueCommentDeletedPropIssueMergedReactionsType, ) - from .group_0517 import ( + from .group_0523 import ( WebhookIssueCommentDeletedPropIssueMergedMilestoneType as WebhookIssueCommentDeletedPropIssueMergedMilestoneType, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropAssigneesItemsType as WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropUserType as WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, ) - from .group_0590 import ( + from .group_0596 import ( WebhookPackageUpdatedPropPackagePropPackageVersionType as WebhookPackageUpdatedPropPackagePropPackageVersionType, ) - from .group_0618 import ( + from .group_0624 import ( WebhookProjectsV2ProjectEditedPropChangesPropTitleType as WebhookProjectsV2ProjectEditedPropChangesPropTitleType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLinksType as WebhookPullRequestAssignedPropPullRequestPropLinksType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestType as WebhookPullRequestAutoMergeDisabledPropPullRequestType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksType as WebhookPullRequestDequeuedPropPullRequestPropLinksType, ) - from .group_0635 import ( + from .group_0644 import ( WebhookPullRequestEditedPropChangesPropBasePropRefType as WebhookPullRequestEditedPropChangesPropBasePropRefType, ) - from .group_0635 import ( + from .group_0644 import ( WebhookPullRequestEditedPropChangesPropBasePropShaType as WebhookPullRequestEditedPropChangesPropBasePropShaType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksType as WebhookPullRequestEnqueuedPropPullRequestPropLinksType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadType as WebhookPullRequestReviewThreadUnresolvedPropThreadType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropBaseType as WebhookPullRequestUnlabeledPropPullRequestPropBaseType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadType as WebhookPullRequestUnlabeledPropPullRequestPropHeadType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropUserType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksType as WebhookPullRequestUnlockedPropPullRequestPropLinksType, ) - from .group_0661 import ( + from .group_0670 import ( WebhookRegistryPackagePublishedPropRegistryPackageType as WebhookRegistryPackagePublishedPropRegistryPackageType, ) - from .group_0690 import ( + from .group_0699 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesType as WebhookRepositoryRulesetEditedPropChangesPropRulesType, ) - from .group_0745 import ( + from .group_0754 import ( AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type as AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type, ) - from .group_0746 import ( + from .group_0755 import ( AppInstallationsInstallationIdAccessTokensPostBodyType as AppInstallationsInstallationIdAccessTokensPostBodyType, ) - from .group_0766 import ( + from .group_0776 import ( OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type as OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type, ) - from .group_0780 import ( + from .group_0790 import ( OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType as OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0872 import ( + from .group_0889 import ( ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType as ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType, ) - from .group_0933 import ( + from .group_0953 import ( ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType as ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType, ) - from .group_0937 import ( + from .group_0957 import ( ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type as ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, ) - from .group_0971 import ( + from .group_0991 import ( ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType as ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType, ) - from .group_0973 import ( + from .group_0993 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type, ) - from .group_0974 import ( + from .group_0994 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type, ) - from .group_1054 import ( + from .group_1074 import ( UserCodespacesSecretsSecretNameRepositoriesPutBodyType as UserCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0028 import ( + from .group_1093 import ( + SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType as SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType, + ) + from .group_0032 import ( DependabotAlertSecurityAdvisoryPropIdentifiersItemsType as DependabotAlertSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0050 import ( + from .group_0054 import ( SecurityAndAnalysisPropSecretScanningPushProtectionType as SecurityAndAnalysisPropSecretScanningPushProtectionType, ) - from .group_0104 import ( + from .group_0109 import ( RepositoryRulesetConditionsRepositoryPropertyTargetType as RepositoryRulesetConditionsRepositoryPropertyTargetType, ) - from .group_0179 import ( + from .group_0184 import ( BranchRestrictionPolicyPropAppsItemsPropPermissionsType as BranchRestrictionPolicyPropAppsItemsPropPermissionsType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropBasePropRepoPropPermissionsType as WebhooksPullRequest5PropBasePropRepoPropPermissionsType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropHeadPropRepoPropPermissionsType as WebhooksPullRequest5PropHeadPropRepoPropPermissionsType, ) - from .group_0440 import ( + from .group_0446 import ( WebhookCommitCommentCreatedPropCommentPropReactionsType as WebhookCommitCommentCreatedPropCommentPropReactionsType, ) - from .group_0494 import ( + from .group_0500 import ( WebhookInstallationTargetRenamedPropChangesPropSlugType as WebhookInstallationTargetRenamedPropChangesPropSlugType, ) - from .group_0601 import ( + from .group_0607 import ( WebhookProjectCardDeletedPropProjectCardPropCreatorType as WebhookProjectCardDeletedPropProjectCardPropCreatorType, ) - from .group_0603 import ( + from .group_0609 import ( WebhookProjectCardMovedPropProjectCardMergedCreatorType as WebhookProjectCardMovedPropProjectCardMergedCreatorType, ) - from .group_0618 import ( + from .group_0624 import ( WebhookProjectsV2ProjectEditedPropChangesPropPublicType as WebhookProjectsV2ProjectEditedPropChangesPropPublicType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropAssigneeType as WebhookPullRequestLockedPropPullRequestPropAssigneeType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropMergedByType as WebhookPullRequestLockedPropPullRequestPropMergedByType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropReviewPropUserType as WebhookPullRequestReviewDismissedPropReviewPropUserType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropBaseType as WebhookPullRequestUnassignedPropPullRequestPropBaseType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadType as WebhookPullRequestUnassignedPropPullRequestPropHeadType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropUserType as WebhookPullRequestUnassignedPropPullRequestPropUserType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksType as WebhookPullRequestUnlabeledPropPullRequestPropLinksType, ) - from .group_0669 import ( + from .group_0678 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsType as WebhookReleasePrereleasedPropReleasePropAssetsItemsType, ) - from .group_0679 import ( + from .group_0688 import ( WebhookRepositoryEditedPropChangesPropDefaultBranchType as WebhookRepositoryEditedPropChangesPropDefaultBranchType, ) - from .group_0695 import ( + from .group_0704 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertType as WebhookRepositoryVulnerabilityAlertDismissPropAlertType, ) - from .group_0697 import ( + from .group_0706 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertType as WebhookRepositoryVulnerabilityAlertResolvePropAlertType, ) - from .group_0712 import ( + from .group_0721 import ( WebhookSponsorshipEditedPropChangesPropPrivacyLevelType as WebhookSponsorshipEditedPropChangesPropPrivacyLevelType, ) - from .group_0724 import ( + from .group_0733 import ( WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType as WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropChangesPropNotificationSettingType as WebhookTeamEditedPropChangesPropNotificationSettingType, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropRepositoryPropCustomPropertiesType as WebhookTeamEditedPropRepositoryPropCustomPropertiesType, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, ) - from .group_0768 import ( + from .group_0778 import ( OrgsOrgActionsPermissionsRepositoriesGetResponse200Type as OrgsOrgActionsPermissionsRepositoriesGetResponse200Type, ) - from .group_0797 import ( + from .group_0814 import ( OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type as OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type, ) - from .group_0801 import ( + from .group_0818 import ( OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type as OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type, ) - from .group_0841 import ( + from .group_0858 import ( OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type as OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type, ) - from .group_0921 import ( + from .group_0941 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200Type as ReposOwnerRepoCodespacesDevcontainersGetResponse200Type, ) - from .group_0964 import ( + from .group_0984 import ( ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type as ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type, ) - from .group_0976 import ( + from .group_0996 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type, ) - from .group_0977 import ( + from .group_0997 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type, ) - from .group_1017 import ( + from .group_1037 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType, ) - from .group_0122 import ( + from .group_0127 import ( RepositoryRuleCommitAuthorEmailPatternPropParametersType as RepositoryRuleCommitAuthorEmailPatternPropParametersType, ) - from .group_0494 import ( + from .group_0500 import ( WebhookInstallationTargetRenamedPropChangesPropLoginType as WebhookInstallationTargetRenamedPropChangesPropLoginType, ) - from .group_0522 import ( + from .group_0528 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType as WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, ) - from .group_0527 import ( + from .group_0533 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, ) - from .group_0533 import ( + from .group_0539 import ( WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0539 import ( + from .group_0545 import ( WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType as WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType as WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropMilestonePropCreatorType as WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropMilestonePropCreatorType as WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryType as WebhookIssuesTransferredPropChangesPropNewRepositoryType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionType as WebhookPackagePublishedPropPackagePropPackageVersionType, ) - from .group_0623 import ( + from .group_0629 import ( WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType as WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneeType as WebhookPullRequestLabeledPropPullRequestPropAssigneeType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropMergedByType as WebhookPullRequestLabeledPropPullRequestPropMergedByType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergeType as WebhookPullRequestLockedPropPullRequestPropAutoMergeType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropMilestoneType as WebhookPullRequestLockedPropPullRequestPropMilestoneType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestType as WebhookPullRequestReviewCommentEditedPropPullRequestType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksType as WebhookPullRequestReviewDismissedPropReviewPropLinksType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropBaseType as WebhookPullRequestSynchronizePropPullRequestPropBaseType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadType as WebhookPullRequestSynchronizePropPullRequestPropHeadType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropUserType as WebhookPullRequestSynchronizePropPullRequestPropUserType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksType as WebhookPullRequestUnassignedPropPullRequestPropLinksType, ) - from .group_0700 import ( + from .group_0709 import ( WebhookSecretScanningAlertLocationCreatedFormEncodedType as WebhookSecretScanningAlertLocationCreatedFormEncodedType, ) - from .group_0706 import ( + from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType, ) - from .group_0721 import ( + from .group_0730 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof0Type as WebhookStatusPropCommitPropCommitPropCommitterAllof0Type, ) - from .group_0722 import ( + from .group_0731 import ( WebhookStatusPropCommitPropCommitPropCommitterAllof1Type as WebhookStatusPropCommitPropCommitPropCommitterAllof1Type, ) - from .group_0725 import ( + from .group_0734 import ( WebhookTeamCreatedPropRepositoryPropCustomPropertiesType as WebhookTeamCreatedPropRepositoryPropCustomPropertiesType, ) - from .group_0726 import ( + from .group_0735 import ( WebhookTeamDeletedPropRepositoryPropCustomPropertiesType as WebhookTeamDeletedPropRepositoryPropCustomPropertiesType, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, ) - from .group_0776 import ( + from .group_0786 import ( OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type as OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type, ) - from .group_0819 import ( + from .group_0836 import ( OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type as OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type, ) - from .group_0908 import ( + from .group_0928 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, ) - from .group_0914 import ( + from .group_0934 import ( ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType, ) - from .group_0172 import ( + from .group_1093 import ( + UsersUsernameAttestationsSubjectDigestGetResponse200Type as UsersUsernameAttestationsSubjectDigestGetResponse200Type, + ) + from .group_0177 import ( WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType as WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType, ) - from .group_0388 import ( + from .group_0393 import ( WebhooksIssuePropPerformedViaGithubAppPropPermissionsType as WebhooksIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type as WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type as WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropRequestedTeamsItemsPropParentType as WebhooksPullRequest5PropRequestedTeamsItemsPropParentType, ) - from .group_0435 import ( + from .group_0441 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType as WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType, ) - from .group_0435 import ( + from .group_0441 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropToolType as WebhookCodeScanningAlertClosedByUserPropAlertPropToolType, ) - from .group_0437 import ( + from .group_0443 import ( WebhookCodeScanningAlertFixedPropAlertPropDismissedByType as WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0500 import ( + from .group_0506 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, ) - from .group_0505 import ( + from .group_0511 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, ) - from .group_0511 import ( + from .group_0517 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, ) - from .group_0516 import ( + from .group_0522 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, ) - from .group_0521 import ( + from .group_0527 import ( WebhookIssueCommentEditedPropIssueAllof0PropReactionsType as WebhookIssueCommentEditedPropIssueAllof0PropReactionsType, ) - from .group_0524 import ( + from .group_0530 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType as WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, ) - from .group_0527 import ( + from .group_0533 import ( WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType as WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, ) - from .group_0527 import ( + from .group_0533 import ( WebhookIssueCommentEditedPropIssueAllof1PropReactionsType as WebhookIssueCommentEditedPropIssueAllof1PropReactionsType, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType as WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType as WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneeType as WebhookPullRequestAssignedPropPullRequestPropAssigneeType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropMergedByType as WebhookPullRequestAssignedPropPullRequestPropMergedByType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneeType as WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropMergedByType as WebhookPullRequestDequeuedPropPullRequestPropMergedByType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropMergedByType as WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergeType as WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropMilestoneType as WebhookPullRequestLabeledPropPullRequestPropMilestoneType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropPullRequestType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestType as WebhookPullRequestReviewCommentDeletedPropPullRequestType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropBaseType as WebhookPullRequestReviewEditedPropPullRequestPropBaseType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadType as WebhookPullRequestReviewEditedPropPullRequestPropHeadType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropUserType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropPullRequestType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksType as WebhookPullRequestSynchronizePropPullRequestPropLinksType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneeType as WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropMergedByType as WebhookPullRequestUnlockedPropPullRequestPropMergedByType, ) - from .group_0724 import ( + from .group_0733 import ( WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType as WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType, ) - from .group_0731 import ( + from .group_0740 import ( WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType as WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType, ) - from .group_0737 import ( + from .group_0746 import ( WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType, ) - from .group_0772 import ( + from .group_0782 import ( OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type as OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type, ) - from .group_0784 import ( + from .group_0794 import ( OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type as OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type, ) - from .group_0793 import ( + from .group_0809 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType as OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0805 import ( + from .group_0822 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType as OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType, ) - from .group_0870 import ( + from .group_0887 import ( ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType as ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType, ) - from .group_0874 import ( + from .group_0891 import ( ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type, ) - from .group_0879 import ( + from .group_0896 import ( ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType as ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType, ) - from .group_0923 import ( + from .group_0907 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type as ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type, + ) + from .group_0943 import ( ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType as ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType, ) - from .group_0936 import ( + from .group_0956 import ( ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type as ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type, ) - from .group_0939 import ( + from .group_0959 import ( ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType as ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType, ) - from .group_1005 import ( + from .group_1025 import ( ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType, ) - from .group_0172 import ( + from .group_0177 import ( WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType as WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType, ) - from .group_0352 import ( + from .group_0357 import ( TopicSearchResultItemPropAliasesItemsPropTopicRelationType as TopicSearchResultItemPropAliasesItemsPropTopicRelationType, ) - from .group_0352 import ( + from .group_0357 import ( TopicSearchResultItemPropRelatedItemsPropTopicRelationType as TopicSearchResultItemPropRelatedItemsPropTopicRelationType, ) - from .group_0390 import ( + from .group_0395 import ( WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType as WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType, ) - from .group_0499 import ( + from .group_0505 import ( WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType, ) - from .group_0502 import ( + from .group_0508 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, ) - from .group_0505 import ( + from .group_0511 import ( WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType as WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, ) - from .group_0505 import ( + from .group_0511 import ( WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType as WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType, ) - from .group_0510 import ( + from .group_0516 import ( WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType as WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType, ) - from .group_0513 import ( + from .group_0519 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, ) - from .group_0516 import ( + from .group_0522 import ( WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType as WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, ) - from .group_0516 import ( + from .group_0522 import ( WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType as WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType as WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType as WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, ) - from .group_0628 import ( + from .group_0635 import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType as WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType, + ) + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergeType as WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropMilestoneType as WebhookPullRequestAssignedPropPullRequestPropMilestoneType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestoneType as WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType as WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLabelsItemsType as WebhookPullRequestLockedPropPullRequestPropLabelsItemsType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksType as WebhookPullRequestReviewEditedPropPullRequestPropLinksType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestType as WebhookPullRequestReviewRequestedOneof0PropPullRequestType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestType as WebhookPullRequestReviewRequestedOneof1PropPullRequestType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropMergedByType as WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestoneType as WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, ) - from .group_0734 import ( + from .group_0743 import ( WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType as WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType, ) - from .group_0738 import ( + from .group_0747 import ( WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType as WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType, ) - from .group_0821 import ( + from .group_0762 import ( + EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type as EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type, + ) + from .group_0838 import ( OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType as OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType, ) - from .group_0866 import ( + from .group_0883 import ( ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type as ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type, ) - from .group_0968 import ( + from .group_0988 import ( ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType as ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType, ) - from .group_1029 import ( + from .group_1049 import ( ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType as ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType, ) - from .group_1039 import ( + from .group_1059 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_0172 import ( + from .group_0177 import ( WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType as WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType, ) - from .group_0204 import ( + from .group_0209 import ( CodeScanningVariantAnalysisPropScannedRepositoriesItemsType as CodeScanningVariantAnalysisPropScannedRepositoriesItemsType, ) - from .group_0370 import ( + from .group_0375 import ( RepositoryWebhooksPropTemplateRepositoryPropPermissionsType as RepositoryWebhooksPropTemplateRepositoryPropPermissionsType, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOtherType as PersonalAccessTokenRequestPropPermissionsAddedPropOtherType, ) - from .group_0439 import ( + from .group_0445 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType as WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType, ) - from .group_0439 import ( + from .group_0445 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType as WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type as WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType as WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, ) - from .group_0463 import ( + from .group_0469 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryType as WebhookDiscussionCategoryChangedPropChangesPropCategoryType, ) - from .group_0522 import ( + from .group_0528 import ( WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, ) - from .group_0522 import ( + from .group_0528 import ( WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType as WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, ) - from .group_0527 import ( + from .group_0533 import ( WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType, ) - from .group_0541 import ( + from .group_0547 import ( WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType as WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropUserType as WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, ) - from .group_0604 import ( + from .group_0610 import ( WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, ) - from .group_0605 import ( + from .group_0611 import ( WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType as WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropBasePropUserType as WebhookPullRequestLockedPropPullRequestPropBasePropUserType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropUserType as WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneeType as WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropMergedByType as WebhookPullRequestUnassignedPropPullRequestPropMergedByType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType as WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, ) - from .group_0688 import ( + from .group_0697 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsType, ) - from .group_0728 import ( + from .group_0737 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType as WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType, ) - from .group_0753 import ( + from .group_0763 import ( EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type as EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type, ) - from .group_0975 import ( + from .group_0995 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType, ) - from .group_1021 import ( + from .group_1041 import ( ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type as ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type, ) - from .group_1042 import ( + from .group_1062 import ( TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_0330 import ( + from .group_0054 import ( + SecurityAndAnalysisPropSecretScanningNonProviderPatternsType as SecurityAndAnalysisPropSecretScanningNonProviderPatternsType, + ) + from .group_0335 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsResultPropOtherType as PersonalAccessTokenRequestPropPermissionsResultPropOtherType, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType, ) - from .group_0438 import ( + from .group_0444 import ( WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType as WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType, ) - from .group_0500 import ( + from .group_0506 import ( WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, ) - from .group_0500 import ( + from .group_0506 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType as WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, ) - from .group_0505 import ( + from .group_0511 import ( WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType, ) - from .group_0511 import ( + from .group_0517 import ( WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, ) - from .group_0511 import ( + from .group_0517 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType as WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, ) - from .group_0516 import ( + from .group_0522 import ( WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType as WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, ) - from .group_0618 import ( + from .group_0624 import ( WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType, ) - from .group_0620 import ( + from .group_0626 import ( WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType as WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType, ) - from .group_0628 import ( + from .group_0635 import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType as WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType, + ) + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType as WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType as WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropUserType as WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBaseType as WebhookPullRequestReviewDismissedPropPullRequestPropBaseType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropUserType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneeType as WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropMergedByType as WebhookPullRequestSynchronizePropPullRequestPropMergedByType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestoneType as WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType, ) - from .group_0687 import ( + from .group_0696 import ( WebhookRepositoryRulesetEditedPropChangesPropEnforcementType as WebhookRepositoryRulesetEditedPropChangesPropEnforcementType, ) - from .group_0692 import ( + from .group_0701 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromType, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0834 import ( + from .group_0851 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType, ) - from .group_0867 import ( + from .group_0884 import ( ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type as ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type, ) - from .group_0877 import ( + from .group_0894 import ( ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType as ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType, ) - from .group_0905 import ( + from .group_0925 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType, ) - from .group_0978 import ( + from .group_0998 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType, ) - from .group_0089 import ( + from .group_0094 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsType as OrganizationProgrammaticAccessGrantRequestPropPermissionsType, ) - from .group_0178 import ( + from .group_0183 import ( ProtectedBranchPullRequestReviewPropDismissalRestrictionsType as ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, ) - from .group_0434 import ( + from .group_0440 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType, ) - from .group_0434 import ( + from .group_0440 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType as WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType, ) - from .group_0581 import ( + from .group_0587 import ( WebhookOrganizationMemberInvitedPropInvitationPropInviterType as WebhookOrganizationMemberInvitedPropInvitationPropInviterType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropUserType as WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType as WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType as WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropUserType as WebhookPullRequestReviewCommentCreatedPropCommentPropUserType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestoneType as WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType as WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, ) - from .group_0664 import ( + from .group_0673 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType as WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType, ) - from .group_0683 import ( + from .group_0692 import ( WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType as WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType, ) - from .group_0724 import ( + from .group_0733 import ( WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType as WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType, ) - from .group_0728 import ( + from .group_0737 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType as WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType, ) - from .group_0779 import ( + from .group_0789 import ( OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1000 import ( + from .group_0798 import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType, + ) + from .group_1020 import ( ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type as ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type, ) - from .group_1015 import ( + from .group_1035 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType as ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType, ) - from .group_1053 import ( + from .group_1073 import ( UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type as UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_1063 import ( + from .group_1083 import ( UserInstallationsInstallationIdRepositoriesGetResponse200Type as UserInstallationsInstallationIdRepositoriesGetResponse200Type, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0521 import ( + from .group_0527 import ( WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0527 import ( + from .group_0533 import ( WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0534 import ( + from .group_0540 import ( WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType as WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, ) - from .group_0623 import ( + from .group_0629 import ( WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType as WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType as WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType, ) - from .group_0853 import ( + from .group_0870 import ( ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType as ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType, ) - from .group_0886 import ( + from .group_0903 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType, ) - from .group_0887 import ( + from .group_0904 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type as ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type, ) - from .group_0908 import ( + from .group_0928 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, ) - from .group_0948 import ( + from .group_0968 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType, ) - from .group_1019 import ( + from .group_1039 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType, ) - from .group_0027 import ( + from .group_0031 import ( DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType as DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType, ) - from .group_0090 import ( + from .group_0095 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType as OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType, ) - from .group_0246 import ( + from .group_0251 import ( EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType as EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType, ) - from .group_0329 import ( + from .group_0334 import ( RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType as RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0331 import ( + from .group_0336 import ( RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType as RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0414 import ( + from .group_0420 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType, ) - from .group_0499 import ( + from .group_0505 import ( WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0505 import ( + from .group_0511 import ( WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0510 import ( + from .group_0516 import ( WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, ) - from .group_0516 import ( + from .group_0522 import ( WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType as WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, ) - from .group_0537 import ( + from .group_0543 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0539 import ( + from .group_0545 import ( WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, ) - from .group_0628 import ( + from .group_0635 import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType as WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType, + ) + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType as WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType as WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType as WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType, ) - from .group_0661 import ( + from .group_0670 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType as WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType, ) - from .group_0398 import ( + from .group_1093 import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType, + ) + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType, ) - from .group_0435 import ( + from .group_0441 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType as WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, ) - from .group_0437 import ( + from .group_0443 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType as WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType, ) - from .group_0590 import ( + from .group_0596 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0637 import ( + from .group_0635 import ( + WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType as WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType, + ) + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType as WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType, ) - from .group_0664 import ( + from .group_0673 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType as WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, ) - from .group_0706 import ( + from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0792 import ( + from .group_0808 import ( OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0804 import ( + from .group_0821 import ( OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type as OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type, ) - from .group_0913 import ( + from .group_0905 import ( + ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType, + ) + from .group_0933 import ( ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type as ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type, ) - from .group_0103 import ( + from .group_0108 import ( RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType as RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, ) - from .group_0195 import ( + from .group_0200 import ( CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType as CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType as PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType, ) - from .group_0422 import ( + from .group_0428 import ( WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType as WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type as WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType, ) - from .group_0529 import ( + from .group_0535 import ( WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType, ) - from .group_0590 import ( + from .group_0596 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0618 import ( + from .group_0624 import ( WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType as WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType as WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType, ) - from .group_0728 import ( + from .group_0737 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType as WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0848 import ( + from .group_0865 import ( ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType, ) - from .group_0849 import ( + from .group_0866 import ( ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType as ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType, ) - from .group_0889 import ( + from .group_0909 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType, ) - from .group_0905 import ( + from .group_0925 import ( ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType, ) - from .group_0915 import ( + from .group_0935 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type, ) - from .group_0916 import ( + from .group_0936 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type, ) - from .group_0917 import ( + from .group_0937 import ( ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type as ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type, ) - from .group_0969 import ( + from .group_0989 import ( ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type as ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type, ) - from .group_1009 import ( + from .group_1029 import ( ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType as ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType, ) - from .group_1013 import ( + from .group_1033 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type, ) - from .group_1014 import ( + from .group_1034 import ( ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type as ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type, ) - from .group_1016 import ( + from .group_1036 import ( ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType as ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType, ) - from .group_1018 import ( + from .group_1038 import ( ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType as ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0436 import ( + from .group_0442 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType as WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, ) - from .group_0507 import ( + from .group_0513 import ( WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0518 import ( + from .group_0524 import ( WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType as WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType as WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType as WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType, ) - from .group_0661 import ( + from .group_0670 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType as WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, ) - from .group_0724 import ( + from .group_0733 import ( WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0732 import ( + from .group_0741 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0733 import ( + from .group_0742 import ( WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType as WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, ) - from .group_0945 import ( + from .group_0799 import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType, + ) + from .group_0965 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type, ) - from .group_0178 import ( + from .group_0183 import ( ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType as ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType as PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType as PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType, ) - from .group_0407 import ( + from .group_0413 import ( WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType as WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType, ) - from .group_0438 import ( + from .group_0444 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0463 import ( + from .group_0469 import ( WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType as WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType, ) - from .group_0669 import ( + from .group_0678 import ( WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType as WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, ) - from .group_0735 import ( + from .group_0744 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType, ) - from .group_0736 import ( + from .group_0745 import ( WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType as WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0835 import ( + from .group_0800 import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType, + ) + from .group_0852 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType, ) - from .group_0949 import ( + from .group_0969 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType, ) - from .group_0090 import ( + from .group_1093 import ( + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType, + ) + from .group_0095 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType as WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType, ) - from .group_0434 import ( + from .group_0440 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType, ) - from .group_0491 import ( + from .group_0497 import ( WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType, ) - from .group_0523 import ( + from .group_0529 import ( WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0560 import ( + from .group_0566 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0692 import ( + from .group_0701 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType, ) - from .group_0695 import ( + from .group_0704 import ( WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType, ) - from .group_0697 import ( + from .group_0706 import ( WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType as WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0838 import ( + from .group_0855 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType, ) - from .group_0862 import ( + from .group_0879 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType, ) - from .group_0947 import ( + from .group_0967 import ( ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type, ) - from .group_0101 import ( + from .group_0106 import ( RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType as RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, ) - from .group_0398 import ( + from .group_0403 import ( PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType as PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType, ) - from .group_0501 import ( + from .group_0507 import ( WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0512 import ( + from .group_0518 import ( WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType as WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, ) - from .group_0526 import ( + from .group_0532 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0527 import ( + from .group_0533 import ( WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType as WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType as WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0706 import ( + from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType, ) - from .group_0727 import ( + from .group_0736 import ( WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType as WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0946 import ( + from .group_0966 import ( ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType, ) - from .group_0974 import ( + from .group_0994 import ( ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType, ) - from .group_0089 import ( + from .group_0094 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType, ) - from .group_0090 import ( + from .group_0095 import ( OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType as OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType, ) - from .group_0433 import ( + from .group_0428 import ( + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType as WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType, + ) + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType as WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0492 import ( + from .group_0498 import ( WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType as WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType, ) - from .group_0504 import ( + from .group_0510 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0505 import ( + from .group_0511 import ( WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0515 import ( + from .group_0521 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, ) - from .group_0516 import ( + from .group_0522 import ( WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType as WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType as WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type as WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0665 import ( + from .group_0674 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, ) - from .group_0691 import ( + from .group_0700 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, ) - from .group_0728 import ( + from .group_0737 import ( WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType as WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0862 import ( + from .group_0879 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType, ) - from .group_0941 import ( + from .group_0961 import ( ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType as ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType, ) - from .group_0977 import ( + from .group_0997 import ( ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType as ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType, ) - from .group_0205 import ( + from .group_0210 import ( CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType as CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType, ) - from .group_0330 import ( + from .group_0335 import ( PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType as PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0435 import ( + from .group_0441 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType as WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0590 import ( + from .group_0596 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType as WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType, ) - from .group_0891 import ( + from .group_0796 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, + ) + from .group_0911 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType, ) - from .group_0895 import ( + from .group_0915 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type, ) - from .group_0908 import ( + from .group_0928 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType, ) - from .group_0422 import ( + from .group_0428 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType, ) - from .group_0422 import ( + from .group_0428 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType, ) - from .group_0422 import ( + from .group_0428 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0536 import ( + from .group_0542 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0544 import ( + from .group_0550 import ( WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0546 import ( + from .group_0552 import ( WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType as WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, ) - from .group_0886 import ( + from .group_0903 import ( ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType as ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType, ) - from .group_0896 import ( + from .group_0905 import ( + ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType, + ) + from .group_0916 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type, ) - from .group_0898 import ( + from .group_0918 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type, ) - from .group_0901 import ( + from .group_0921 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type, ) - from .group_1040 import ( + from .group_1060 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_0237 import ( + from .group_1093 import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType, + ) + from .group_0242 import ( DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType as DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType as WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType, ) - from .group_0439 import ( + from .group_0445 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, ) - from .group_0542 import ( + from .group_0548 import ( WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0545 import ( + from .group_0551 import ( WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0875 import ( + from .group_0892 import ( ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type as ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type, ) - from .group_0889 import ( + from .group_0909 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, ) - from .group_0899 import ( + from .group_0919 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type, ) - from .group_0902 import ( + from .group_0922 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type, ) - from .group_0190 import ( + from .group_0195 import ( ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType, ) - from .group_0550 import ( + from .group_0556 import ( WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0554 import ( + from .group_0560 import ( WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0561 import ( + from .group_0567 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0897 import ( + from .group_0801 import ( + OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type as OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type, + ) + from .group_0917 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type, ) - from .group_0089 import ( + from .group_0094 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType, ) - from .group_0414 import ( + from .group_0420 import ( WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0433 import ( + from .group_0428 import ( + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType as WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType, + ) + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType, ) - from .group_0434 import ( + from .group_0440 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, ) - from .group_0437 import ( + from .group_0443 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType as WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, ) - from .group_0562 import ( + from .group_0568 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType, ) - from .group_0590 import ( + from .group_0596 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0590 import ( + from .group_0596 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0689 import ( + from .group_0698 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, ) - from .group_0706 import ( + from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0900 import ( + from .group_0920 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type, ) - from .group_0903 import ( + from .group_0923 import ( ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type, ) - from .group_0912 import ( + from .group_0932 import ( ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType as ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType, ) - from .group_0437 import ( + from .group_0443 import ( WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0547 import ( + from .group_0553 import ( WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType as WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType, ) - from .group_0560 import ( + from .group_0566 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0692 import ( + from .group_0701 import ( WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType as WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType, ) - from .group_0706 import ( + from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0908 import ( + from .group_0928 import ( ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType as ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType, ) - from .group_0089 import ( + from .group_0094 import ( OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType as OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType, ) - from .group_0105 import ( + from .group_0110 import ( RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType as RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, ) - from .group_0436 import ( + from .group_0442 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0590 import ( + from .group_0596 import ( WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0624 import ( + from .group_0630 import ( WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType as WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType as WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0890 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType, ) - from .group_0921 import ( + from .group_0941 import ( ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType as ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType, ) - from .group_0436 import ( + from .group_1093 import ( + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, + ) + from .group_0428 import ( + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType, + ) + from .group_0442 import ( WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0438 import ( + from .group_0444 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType as WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0525 import ( + from .group_0531 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0536 import ( + from .group_0542 import ( WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0543 import ( + from .group_0549 import ( WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0943 import ( + from .group_0907 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType, + ) + from .group_0963 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType, ) - from .group_0438 import ( + from .group_1093 import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType, + ) + from .group_0444 import ( WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType as WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType, ) - from .group_0503 import ( + from .group_0509 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0514 import ( + from .group_0520 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, ) - from .group_0560 import ( + from .group_0566 import ( WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0889 import ( + from .group_0909 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, ) - from .group_0190 import ( + from .group_0195 import ( ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0665 import ( + from .group_0674 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0706 import ( + from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType, ) - from .group_1041 import ( + from .group_1061 import ( TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_0422 import ( + from .group_0428 import ( WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType as WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0431 import ( + from .group_0437 import ( WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0432 import ( + from .group_0438 import ( WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0665 import ( + from .group_0674 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0691 import ( + from .group_0700 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType, ) - from .group_0836 import ( + from .group_0796 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, + ) + from .group_0853 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType, ) - from .group_0435 import ( + from .group_0441 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0456 import ( + from .group_0462 import ( WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, ) - from .group_0561 import ( + from .group_0567 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType, ) - from .group_0862 import ( + from .group_0879 import ( ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType, ) - from .group_0433 import ( + from .group_0439 import ( WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType as WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0435 import ( + from .group_0441 import ( WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0562 import ( + from .group_0568 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0739 import ( + from .group_0748 import ( WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0741 import ( + from .group_0750 import ( WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0892 import ( + from .group_0912 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type, ) - from .group_0942 import ( + from .group_0962 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type, ) - from .group_0250 import ( + from .group_1093 import ( + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType as SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType, + ) + from .group_0255 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type, ) - from .group_0439 import ( + from .group_0445 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0525 import ( + from .group_0531 import ( WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0740 import ( + from .group_0749 import ( WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0893 import ( + from .group_0913 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type, ) - from .group_0439 import ( + from .group_0445 import ( WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0503 import ( + from .group_0509 import ( WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0514 import ( + from .group_0520 import ( WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType as WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, ) - from .group_0561 import ( + from .group_0567 import ( WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType, ) - from .group_0434 import ( + from .group_0428 import ( + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType, + ) + from .group_0440 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0548 import ( + from .group_0554 import ( WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0562 import ( + from .group_0568 import ( WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType as WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0638 import ( + from .group_0647 import ( WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, ) - from .group_0689 import ( + from .group_0698 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType, ) - from .group_0891 import ( + from .group_0911 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType, ) - from .group_0894 import ( + from .group_0914 import ( ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type as ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type, ) - from .group_0434 import ( + from .group_0440 import ( WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType as WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0458 import ( + from .group_0464 import ( WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0459 import ( + from .group_0465 import ( WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0637 import ( + from .group_0646 import ( WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, ) - from .group_0665 import ( + from .group_0674 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0422 import ( + from .group_0879 import ( + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType as ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType, + ) + from .group_0428 import ( WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType, ) - from .group_0460 import ( + from .group_0466 import ( WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType as WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType, ) - from .group_0628 import ( + from .group_0637 import ( WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0634 import ( + from .group_0643 import ( WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0636 import ( + from .group_0645 import ( WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType, ) - from .group_0658 import ( + from .group_0667 import ( WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0889 import ( + from .group_0907 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType, + ) + from .group_0909 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType, ) - from .group_0944 import ( + from .group_0964 import ( ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type as ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type, ) - from .group_0587 import ( + from .group_1093 import ( + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType as SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType, + ) + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0657 import ( + from .group_0666 import ( WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType, ) - from .group_0837 import ( + from .group_0854 import ( OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType as OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0656 import ( + from .group_0665 import ( WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0551 import ( + from .group_0557 import ( WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType as WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0655 import ( + from .group_0664 import ( WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0665 import ( + from .group_0674 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0665 import ( + from .group_0674 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0706 import ( + from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType, ) - from .group_0422 import ( + from .group_0428 import ( WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType as WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType, ) - from .group_0647 import ( + from .group_0656 import ( WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0691 import ( + from .group_0700 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType, ) - from .group_0665 import ( + from .group_0674 import ( WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0691 import ( + from .group_0700 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType, ) - from .group_0461 import ( + from .group_0467 import ( WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType as WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType, ) - from .group_0587 import ( + from .group_0593 import ( WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) - from .group_0646 import ( + from .group_0655 import ( WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0652 import ( + from .group_0661 import ( WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType as WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, ) - from .group_0630 import ( + from .group_0639 import ( WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0648 import ( + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, ) - from .group_0689 import ( + from .group_0698 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType, ) - from .group_0629 import ( + from .group_0638 import ( WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0689 import ( + from .group_0698 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType, ) - from .group_0689 import ( + from .group_0698 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType, ) - from .group_0662 import ( + from .group_0796 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, + ) + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType, ) - from .group_0691 import ( + from .group_0700 import ( WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType as WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType, ) - from .group_0645 import ( + from .group_0654 import ( WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0643 import ( + from .group_0652 import ( WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0644 import ( + from .group_0653 import ( WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0653 import ( + from .group_0662 import ( WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType, ) - from .group_0650 import ( + from .group_0659 import ( WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0651 import ( + from .group_0660 import ( WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, ) - from .group_0654 import ( + from .group_0663 import ( WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0890 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType, ) - from .group_0689 import ( + from .group_0698 import ( WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType as WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType, ) - from .group_0706 import ( + from .group_0715 import ( WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType as WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, ) - from .group_0889 import ( + from .group_0907 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType, + ) + from .group_0909 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, ) - from .group_0648 import ( + from .group_0796 import ( + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, + ) + from .group_0657 import ( WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0649 import ( + from .group_0658 import ( WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType as WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, ) - from .group_0890 import ( + from .group_0910 import ( ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, ) - from .group_0889 import ( + from .group_0909 import ( ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType as ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, ) - from .group_0662 import ( + from .group_0671 import ( WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType as WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType, ) + from .group_0907 import ( + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType as ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType, + ) else: __lazy_vars__ = { ".group_0000": ("RootType",), @@ -8583,218 +8744,226 @@ "SimpleClassroomType", ), ".group_0024": ("ClassroomAssignmentGradeType",), - ".group_0025": ( + ".group_0025": ("TeamSimpleType",), + ".group_0026": ( + "TeamType", + "TeamPropPermissionsType", + ), + ".group_0027": ("OrganizationSimpleType",), + ".group_0028": ( + "CopilotSeatDetailsType", + "EnterpriseTeamType", + "OrganizationType", + "OrganizationPropPlanType", + ), + ".group_0029": ( "CopilotUsageMetricsType", "CopilotUsageMetricsPropBreakdownItemsType", ), - ".group_0026": ("DependabotAlertPackageType",), - ".group_0027": ( + ".group_0030": ("DependabotAlertPackageType",), + ".group_0031": ( "DependabotAlertSecurityVulnerabilityType", "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType", ), - ".group_0028": ( + ".group_0032": ( "DependabotAlertSecurityAdvisoryType", "DependabotAlertSecurityAdvisoryPropCvssType", "DependabotAlertSecurityAdvisoryPropCwesItemsType", "DependabotAlertSecurityAdvisoryPropIdentifiersItemsType", "DependabotAlertSecurityAdvisoryPropReferencesItemsType", ), - ".group_0029": ("SimpleRepositoryType",), - ".group_0030": ("DependabotAlertWithRepositoryType",), - ".group_0031": ("DependabotAlertWithRepositoryPropDependencyType",), - ".group_0032": ("OrganizationSecretScanningAlertType",), - ".group_0033": ("MilestoneType",), - ".group_0034": ("ReactionRollupType",), - ".group_0035": ( + ".group_0033": ("SimpleRepositoryType",), + ".group_0034": ("DependabotAlertWithRepositoryType",), + ".group_0035": ("DependabotAlertWithRepositoryPropDependencyType",), + ".group_0036": ("OrganizationSecretScanningAlertType",), + ".group_0037": ("MilestoneType",), + ".group_0038": ("ReactionRollupType",), + ".group_0039": ( "IssueType", "IssuePropLabelsItemsOneof1Type", "IssuePropPullRequestType", ), - ".group_0036": ("IssueCommentType",), - ".group_0037": ( + ".group_0040": ("IssueCommentType",), + ".group_0041": ( "EventPropPayloadType", "EventPropPayloadPropPagesItemsType", "EventType", "ActorType", "EventPropRepoType", ), - ".group_0038": ( + ".group_0042": ( "FeedType", "FeedPropLinksType", "LinkWithTypeType", ), - ".group_0039": ( + ".group_0043": ( "BaseGistType", "BaseGistPropFilesType", ), - ".group_0040": ( + ".group_0044": ( "GistHistoryType", "GistHistoryPropChangeStatusType", "GistSimplePropForkOfType", "GistSimplePropForkOfPropFilesType", ), - ".group_0041": ( + ".group_0045": ( "GistSimpleType", "GistSimplePropFilesType", "GistSimplePropForksItemsType", "PublicUserType", "PublicUserPropPlanType", ), - ".group_0042": ("GistCommentType",), - ".group_0043": ( + ".group_0046": ("GistCommentType",), + ".group_0047": ( "GistCommitType", "GistCommitPropChangeStatusType", ), - ".group_0044": ("GitignoreTemplateType",), - ".group_0045": ("LicenseType",), - ".group_0046": ("MarketplaceListingPlanType",), - ".group_0047": ("MarketplacePurchaseType",), - ".group_0048": ( + ".group_0048": ("GitignoreTemplateType",), + ".group_0049": ("LicenseType",), + ".group_0050": ("MarketplaceListingPlanType",), + ".group_0051": ("MarketplacePurchaseType",), + ".group_0052": ( "MarketplacePurchasePropMarketplacePendingChangeType", "MarketplacePurchasePropMarketplacePurchaseType", ), - ".group_0049": ( + ".group_0053": ( "ApiOverviewType", "ApiOverviewPropSshKeyFingerprintsType", "ApiOverviewPropDomainsType", ), - ".group_0050": ( + ".group_0054": ( "SecurityAndAnalysisType", "SecurityAndAnalysisPropAdvancedSecurityType", "SecurityAndAnalysisPropDependabotSecurityUpdatesType", "SecurityAndAnalysisPropSecretScanningType", "SecurityAndAnalysisPropSecretScanningPushProtectionType", + "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", ), - ".group_0051": ( + ".group_0055": ( "MinimalRepositoryType", "CodeOfConductType", "MinimalRepositoryPropPermissionsType", "MinimalRepositoryPropLicenseType", ), - ".group_0052": ( + ".group_0056": ( "ThreadType", "ThreadPropSubjectType", ), - ".group_0053": ("ThreadSubscriptionType",), - ".group_0054": ( + ".group_0057": ("ThreadSubscriptionType",), + ".group_0058": ( "OrganizationFullType", "OrganizationFullPropPlanType", ), - ".group_0055": ("ActionsCacheUsageOrgEnterpriseType",), - ".group_0056": ("OidcCustomSubType",), - ".group_0057": ("EmptyObjectType",), - ".group_0058": ("ActionsOrganizationPermissionsType",), - ".group_0059": ("SelectedActionsType",), - ".group_0060": ("ActionsGetDefaultWorkflowPermissionsType",), - ".group_0061": ("ActionsSetDefaultWorkflowPermissionsType",), - ".group_0062": ("RunnerLabelType",), - ".group_0063": ("RunnerType",), - ".group_0064": ("RunnerApplicationType",), - ".group_0065": ( + ".group_0059": ("ActionsCacheUsageOrgEnterpriseType",), + ".group_0060": ("OidcCustomSubType",), + ".group_0061": ("ActionsOrganizationPermissionsType",), + ".group_0062": ("SelectedActionsType",), + ".group_0063": ("ActionsGetDefaultWorkflowPermissionsType",), + ".group_0064": ("ActionsSetDefaultWorkflowPermissionsType",), + ".group_0065": ("RunnerLabelType",), + ".group_0066": ("RunnerType",), + ".group_0067": ("RunnerApplicationType",), + ".group_0068": ( "AuthenticationTokenType", "AuthenticationTokenPropPermissionsType", ), - ".group_0066": ("ActionsPublicKeyType",), - ".group_0067": ("CodeScanningAlertRuleSummaryType",), - ".group_0068": ("CodeScanningAnalysisToolType",), - ".group_0069": ( + ".group_0069": ("ActionsPublicKeyType",), + ".group_0070": ("CodeScanningAlertRuleSummaryType",), + ".group_0071": ("CodeScanningAnalysisToolType",), + ".group_0072": ( "CodeScanningAlertInstanceType", "CodeScanningAlertLocationType", "CodeScanningAlertInstancePropMessageType", ), - ".group_0070": ("CodeScanningOrganizationAlertItemsType",), - ".group_0071": ("CodespaceMachineType",), - ".group_0072": ( + ".group_0073": ("CodeScanningOrganizationAlertItemsType",), + ".group_0074": ("CodeSecurityConfigurationType",), + ".group_0075": ("CodeSecurityDefaultConfigurationsItemsType",), + ".group_0076": ("CodeSecurityConfigurationRepositoriesType",), + ".group_0077": ("CodespaceMachineType",), + ".group_0078": ( "CodespaceType", "CodespacePropGitStatusType", "CodespacePropRuntimeConstraintsType", ), - ".group_0073": ("CodespacesPublicKeyType",), - ".group_0074": ( + ".group_0079": ("CodespacesPublicKeyType",), + ".group_0080": ( "CopilotOrganizationDetailsType", "CopilotSeatBreakdownType", ), - ".group_0075": ("TeamSimpleType",), - ".group_0076": ( - "TeamType", - "TeamPropPermissionsType", - ), - ".group_0077": ( - "CopilotSeatDetailsType", - "OrganizationType", - "OrganizationPropPlanType", - "OrgsOrgCopilotBillingSeatsGetResponse200Type", - ), - ".group_0078": ("DependabotPublicKeyType",), - ".group_0079": ("PackageType",), - ".group_0080": ("OrganizationInvitationType",), - ".group_0081": ( + ".group_0081": ("DependabotPublicKeyType",), + ".group_0082": ("PackageType",), + ".group_0083": ("OrganizationInvitationType",), + ".group_0084": ( "OrgHookType", "OrgHookPropConfigType", ), - ".group_0082": ("InteractionLimitResponseType",), - ".group_0083": ("InteractionLimitType",), - ".group_0084": ( + ".group_0085": ("InteractionLimitResponseType",), + ".group_0086": ("InteractionLimitType",), + ".group_0087": ( "OrgMembershipType", - "OrganizationSimpleType", "OrgMembershipPropPermissionsType", ), - ".group_0085": ("MigrationType",), - ".group_0086": ("OrganizationFineGrainedPermissionType",), - ".group_0087": ( + ".group_0088": ("MigrationType",), + ".group_0089": ("OrganizationFineGrainedPermissionType",), + ".group_0090": ( "OrganizationRoleType", "OrgsOrgOrganizationRolesGetResponse200Type", ), - ".group_0088": ( + ".group_0091": ( + "TeamRoleAssignmentType", + "TeamRoleAssignmentPropPermissionsType", + ), + ".group_0092": ("UserRoleAssignmentType",), + ".group_0093": ( "PackageVersionType", "PackageVersionPropMetadataType", "PackageVersionPropMetadataPropContainerType", "PackageVersionPropMetadataPropDockerType", ), - ".group_0089": ( + ".group_0094": ( "OrganizationProgrammaticAccessGrantRequestType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", ), - ".group_0090": ( + ".group_0095": ( "OrganizationProgrammaticAccessGrantType", "OrganizationProgrammaticAccessGrantPropPermissionsType", "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", ), - ".group_0091": ("ProjectType",), - ".group_0092": ("OrgCustomPropertyType",), - ".group_0093": ("CustomPropertyValueType",), - ".group_0094": ("OrgRepoCustomPropertyValuesType",), - ".group_0095": ("CodeOfConductSimpleType",), - ".group_0096": ( + ".group_0096": ("ProjectType",), + ".group_0097": ("OrgCustomPropertyType",), + ".group_0098": ("CustomPropertyValueType",), + ".group_0099": ("OrgRepoCustomPropertyValuesType",), + ".group_0100": ("CodeOfConductSimpleType",), + ".group_0101": ( "FullRepositoryType", "FullRepositoryPropPermissionsType", "FullRepositoryPropCustomPropertiesType", ), - ".group_0097": ("RepositoryRulesetBypassActorType",), - ".group_0098": ("RepositoryRulesetConditionsType",), - ".group_0099": ("RepositoryRulesetConditionsPropRefNameType",), - ".group_0100": ("RepositoryRulesetConditionsRepositoryNameTargetType",), - ".group_0101": ( + ".group_0102": ("RepositoryRulesetBypassActorType",), + ".group_0103": ("RepositoryRulesetConditionsType",), + ".group_0104": ("RepositoryRulesetConditionsPropRefNameType",), + ".group_0105": ("RepositoryRulesetConditionsRepositoryNameTargetType",), + ".group_0106": ( "RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType", ), - ".group_0102": ("RepositoryRulesetConditionsRepositoryIdTargetType",), - ".group_0103": ( + ".group_0107": ("RepositoryRulesetConditionsRepositoryIdTargetType",), + ".group_0108": ( "RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType", ), - ".group_0104": ("RepositoryRulesetConditionsRepositoryPropertyTargetType",), - ".group_0105": ( + ".group_0109": ("RepositoryRulesetConditionsRepositoryPropertyTargetType",), + ".group_0110": ( "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", "RepositoryRulesetConditionsRepositoryPropertySpecType", ), - ".group_0106": ("OrgRulesetConditionsOneof0Type",), - ".group_0107": ("OrgRulesetConditionsOneof1Type",), - ".group_0108": ("OrgRulesetConditionsOneof2Type",), - ".group_0109": ( + ".group_0111": ("OrgRulesetConditionsOneof0Type",), + ".group_0112": ("OrgRulesetConditionsOneof1Type",), + ".group_0113": ("OrgRulesetConditionsOneof2Type",), + ".group_0114": ( "RepositoryRuleCreationType", "RepositoryRuleDeletionType", "RepositoryRuleRequiredSignaturesType", @@ -8804,61 +8973,61 @@ "RepositoryRuleOneof16Type", "RepositoryRuleOneof16PropParametersType", ), - ".group_0110": ("RepositoryRuleUpdateType",), - ".group_0111": ("RepositoryRuleUpdatePropParametersType",), - ".group_0112": ( + ".group_0115": ("RepositoryRuleUpdateType",), + ".group_0116": ("RepositoryRuleUpdatePropParametersType",), + ".group_0117": ( "RepositoryRuleRequiredLinearHistoryType", "RepositoryRuleOneof15Type", "RepositoryRuleOneof15PropParametersType", ), - ".group_0113": ("RepositoryRuleRequiredDeploymentsType",), - ".group_0114": ("RepositoryRuleRequiredDeploymentsPropParametersType",), - ".group_0115": ("RepositoryRulePullRequestType",), - ".group_0116": ("RepositoryRulePullRequestPropParametersType",), - ".group_0117": ("RepositoryRuleRequiredStatusChecksType",), - ".group_0118": ( + ".group_0118": ("RepositoryRuleRequiredDeploymentsType",), + ".group_0119": ("RepositoryRuleRequiredDeploymentsPropParametersType",), + ".group_0120": ("RepositoryRulePullRequestType",), + ".group_0121": ("RepositoryRulePullRequestPropParametersType",), + ".group_0122": ("RepositoryRuleRequiredStatusChecksType",), + ".group_0123": ( "RepositoryRuleRequiredStatusChecksPropParametersType", "RepositoryRuleParamsStatusCheckConfigurationType", ), - ".group_0119": ("RepositoryRuleCommitMessagePatternType",), - ".group_0120": ("RepositoryRuleCommitMessagePatternPropParametersType",), - ".group_0121": ("RepositoryRuleCommitAuthorEmailPatternType",), - ".group_0122": ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",), - ".group_0123": ("RepositoryRuleCommitterEmailPatternType",), - ".group_0124": ("RepositoryRuleCommitterEmailPatternPropParametersType",), - ".group_0125": ("RepositoryRuleBranchNamePatternType",), - ".group_0126": ("RepositoryRuleBranchNamePatternPropParametersType",), - ".group_0127": ("RepositoryRuleTagNamePatternType",), - ".group_0128": ("RepositoryRuleTagNamePatternPropParametersType",), - ".group_0129": ("RepositoryRuleParamsRestrictedCommitsType",), - ".group_0130": ("RepositoryRuleWorkflowsType",), - ".group_0131": ( + ".group_0124": ("RepositoryRuleCommitMessagePatternType",), + ".group_0125": ("RepositoryRuleCommitMessagePatternPropParametersType",), + ".group_0126": ("RepositoryRuleCommitAuthorEmailPatternType",), + ".group_0127": ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",), + ".group_0128": ("RepositoryRuleCommitterEmailPatternType",), + ".group_0129": ("RepositoryRuleCommitterEmailPatternPropParametersType",), + ".group_0130": ("RepositoryRuleBranchNamePatternType",), + ".group_0131": ("RepositoryRuleBranchNamePatternPropParametersType",), + ".group_0132": ("RepositoryRuleTagNamePatternType",), + ".group_0133": ("RepositoryRuleTagNamePatternPropParametersType",), + ".group_0134": ("RepositoryRuleParamsRestrictedCommitsType",), + ".group_0135": ("RepositoryRuleWorkflowsType",), + ".group_0136": ( "RepositoryRuleWorkflowsPropParametersType", "RepositoryRuleParamsWorkflowFileReferenceType", ), - ".group_0132": ("RepositoryRuleCodeScanningType",), - ".group_0133": ( + ".group_0137": ("RepositoryRuleCodeScanningType",), + ".group_0138": ( "RepositoryRuleCodeScanningPropParametersType", "RepositoryRuleParamsCodeScanningToolType", ), - ".group_0134": ( + ".group_0139": ( "RepositoryRuleOneof17Type", "RepositoryRuleOneof17PropParametersType", ), - ".group_0135": ( + ".group_0140": ( "RepositoryRulesetType", "RepositoryRulesetPropLinksType", "RepositoryRulesetPropLinksPropSelfType", "RepositoryRulesetPropLinksPropHtmlType", ), - ".group_0136": ("RuleSuitesItemsType",), - ".group_0137": ( + ".group_0141": ("RuleSuitesItemsType",), + ".group_0142": ( "RuleSuiteType", "RuleSuitePropRuleEvaluationsItemsType", "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", ), - ".group_0138": ("RepositoryAdvisoryCreditType",), - ".group_0139": ( + ".group_0143": ("RepositoryAdvisoryCreditType",), + ".group_0144": ( "RepositoryAdvisoryType", "RepositoryAdvisoryPropIdentifiersItemsType", "RepositoryAdvisoryPropSubmissionType", @@ -8868,84 +9037,84 @@ "RepositoryAdvisoryVulnerabilityType", "RepositoryAdvisoryVulnerabilityPropPackageType", ), - ".group_0140": ( + ".group_0145": ( "ActionsBillingUsageType", "ActionsBillingUsagePropMinutesUsedBreakdownType", ), - ".group_0141": ("PackagesBillingUsageType",), - ".group_0142": ("CombinedBillingUsageType",), - ".group_0143": ( + ".group_0146": ("PackagesBillingUsageType",), + ".group_0147": ("CombinedBillingUsageType",), + ".group_0148": ( "TeamFullType", "TeamOrganizationType", "TeamOrganizationPropPlanType", ), - ".group_0144": ("TeamDiscussionType",), - ".group_0145": ("TeamDiscussionCommentType",), - ".group_0146": ("ReactionType",), - ".group_0147": ("TeamMembershipType",), - ".group_0148": ( + ".group_0149": ("TeamDiscussionType",), + ".group_0150": ("TeamDiscussionCommentType",), + ".group_0151": ("ReactionType",), + ".group_0152": ("TeamMembershipType",), + ".group_0153": ( "TeamProjectType", "TeamProjectPropPermissionsType", ), - ".group_0149": ( + ".group_0154": ( "TeamRepositoryType", "TeamRepositoryPropPermissionsType", ), - ".group_0150": ("ProjectCardType",), - ".group_0151": ("ProjectColumnType",), - ".group_0152": ("ProjectCollaboratorPermissionType",), - ".group_0153": ("RateLimitType",), - ".group_0154": ("RateLimitOverviewType",), - ".group_0155": ("RateLimitOverviewPropResourcesType",), - ".group_0156": ( + ".group_0155": ("ProjectCardType",), + ".group_0156": ("ProjectColumnType",), + ".group_0157": ("ProjectCollaboratorPermissionType",), + ".group_0158": ("RateLimitType",), + ".group_0159": ("RateLimitOverviewType",), + ".group_0160": ("RateLimitOverviewPropResourcesType",), + ".group_0161": ( "ArtifactType", "ArtifactPropWorkflowRunType", ), - ".group_0157": ( + ".group_0162": ( "ActionsCacheListType", "ActionsCacheListPropActionsCachesItemsType", ), - ".group_0158": ( + ".group_0163": ( "JobType", "JobPropStepsItemsType", ), - ".group_0159": ("OidcCustomSubRepoType",), - ".group_0160": ("ActionsSecretType",), - ".group_0161": ("ActionsVariableType",), - ".group_0162": ("ActionsRepositoryPermissionsType",), - ".group_0163": ("ActionsWorkflowAccessToRepositoryType",), - ".group_0164": ( + ".group_0164": ("OidcCustomSubRepoType",), + ".group_0165": ("ActionsSecretType",), + ".group_0166": ("ActionsVariableType",), + ".group_0167": ("ActionsRepositoryPermissionsType",), + ".group_0168": ("ActionsWorkflowAccessToRepositoryType",), + ".group_0169": ( "PullRequestMinimalType", "PullRequestMinimalPropHeadType", "PullRequestMinimalPropHeadPropRepoType", "PullRequestMinimalPropBaseType", "PullRequestMinimalPropBasePropRepoType", ), - ".group_0165": ( + ".group_0170": ( "SimpleCommitType", "SimpleCommitPropAuthorType", "SimpleCommitPropCommitterType", ), - ".group_0166": ( + ".group_0171": ( "WorkflowRunType", "ReferencedWorkflowType", ), - ".group_0167": ( + ".group_0172": ( "EnvironmentApprovalsType", "EnvironmentApprovalsPropEnvironmentsItemsType", ), - ".group_0168": ("ReviewCustomGatesCommentRequiredType",), - ".group_0169": ("ReviewCustomGatesStateRequiredType",), - ".group_0170": ( + ".group_0173": ("ReviewCustomGatesCommentRequiredType",), + ".group_0174": ("ReviewCustomGatesStateRequiredType",), + ".group_0175": ( "PendingDeploymentPropReviewersItemsType", "PendingDeploymentType", "PendingDeploymentPropEnvironmentType", ), - ".group_0171": ( + ".group_0176": ( "DeploymentType", "DeploymentPropPayloadOneof0Type", ), - ".group_0172": ( + ".group_0177": ( "WorkflowRunUsageType", "WorkflowRunUsagePropBillableType", "WorkflowRunUsagePropBillablePropUbuntuType", @@ -8955,22 +9124,22 @@ "WorkflowRunUsagePropBillablePropWindowsType", "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", ), - ".group_0173": ( + ".group_0178": ( "WorkflowUsageType", "WorkflowUsagePropBillableType", "WorkflowUsagePropBillablePropUbuntuType", "WorkflowUsagePropBillablePropMacosType", "WorkflowUsagePropBillablePropWindowsType", ), - ".group_0174": ("ActivityType",), - ".group_0175": ("AutolinkType",), - ".group_0176": ("CheckAutomatedSecurityFixesType",), - ".group_0177": ("ProtectedBranchPullRequestReviewType",), - ".group_0178": ( + ".group_0179": ("ActivityType",), + ".group_0180": ("AutolinkType",), + ".group_0181": ("CheckAutomatedSecurityFixesType",), + ".group_0182": ("ProtectedBranchPullRequestReviewType",), + ".group_0183": ( "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", ), - ".group_0179": ( + ".group_0184": ( "BranchRestrictionPolicyType", "BranchRestrictionPolicyPropUsersItemsType", "BranchRestrictionPolicyPropTeamsItemsType", @@ -8978,7 +9147,7 @@ "BranchRestrictionPolicyPropAppsItemsPropOwnerType", "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", ), - ".group_0180": ( + ".group_0185": ( "BranchProtectionType", "ProtectedBranchAdminEnforcedType", "BranchProtectionPropRequiredLinearHistoryType", @@ -8992,27 +9161,28 @@ "ProtectedBranchRequiredStatusCheckType", "ProtectedBranchRequiredStatusCheckPropChecksItemsType", ), - ".group_0181": ( + ".group_0186": ( "ShortBranchType", "ShortBranchPropCommitType", ), - ".group_0182": ("GitUserType",), - ".group_0183": ("VerificationType",), - ".group_0184": ("DiffEntryType",), - ".group_0185": ( + ".group_0187": ("GitUserType",), + ".group_0188": ("VerificationType",), + ".group_0189": ("DiffEntryType",), + ".group_0190": ( "CommitType", + "EmptyObjectType", "CommitPropParentsItemsType", "CommitPropStatsType", ), - ".group_0186": ( + ".group_0191": ( "CommitPropCommitType", "CommitPropCommitPropTreeType", ), - ".group_0187": ( + ".group_0192": ( "BranchWithProtectionType", "BranchWithProtectionPropLinksType", ), - ".group_0188": ( + ".group_0193": ( "ProtectedBranchType", "ProtectedBranchPropRequiredSignaturesType", "ProtectedBranchPropEnforceAdminsType", @@ -9026,113 +9196,113 @@ "StatusCheckPolicyType", "StatusCheckPolicyPropChecksItemsType", ), - ".group_0189": ("ProtectedBranchPropRequiredPullRequestReviewsType",), - ".group_0190": ( + ".group_0194": ("ProtectedBranchPropRequiredPullRequestReviewsType",), + ".group_0195": ( "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", ), - ".group_0191": ("DeploymentSimpleType",), - ".group_0192": ( + ".group_0196": ("DeploymentSimpleType",), + ".group_0197": ( "CheckRunType", "CheckRunPropOutputType", "CheckRunPropCheckSuiteType", ), - ".group_0193": ("CheckAnnotationType",), - ".group_0194": ( + ".group_0198": ("CheckAnnotationType",), + ".group_0199": ( "CheckSuiteType", "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", ), - ".group_0195": ( + ".group_0200": ( "CheckSuitePreferenceType", "CheckSuitePreferencePropPreferencesType", "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", ), - ".group_0196": ("CodeScanningAlertItemsType",), - ".group_0197": ( + ".group_0201": ("CodeScanningAlertItemsType",), + ".group_0202": ( "CodeScanningAlertType", "CodeScanningAlertRuleType", ), - ".group_0198": ("CodeScanningAnalysisType",), - ".group_0199": ("CodeScanningAnalysisDeletionType",), - ".group_0200": ("CodeScanningCodeqlDatabaseType",), - ".group_0201": ("CodeScanningVariantAnalysisRepositoryType",), - ".group_0202": ("CodeScanningVariantAnalysisSkippedRepoGroupType",), - ".group_0203": ("CodeScanningVariantAnalysisType",), - ".group_0204": ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",), - ".group_0205": ( + ".group_0203": ("CodeScanningAnalysisType",), + ".group_0204": ("CodeScanningAnalysisDeletionType",), + ".group_0205": ("CodeScanningCodeqlDatabaseType",), + ".group_0206": ("CodeScanningVariantAnalysisRepositoryType",), + ".group_0207": ("CodeScanningVariantAnalysisSkippedRepoGroupType",), + ".group_0208": ("CodeScanningVariantAnalysisType",), + ".group_0209": ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",), + ".group_0210": ( "CodeScanningVariantAnalysisPropSkippedRepositoriesType", "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", ), - ".group_0206": ("CodeScanningVariantAnalysisRepoTaskType",), - ".group_0207": ("CodeScanningDefaultSetupType",), - ".group_0208": ("CodeScanningDefaultSetupUpdateType",), - ".group_0209": ("CodeScanningDefaultSetupUpdateResponseType",), - ".group_0210": ("CodeScanningSarifsReceiptType",), - ".group_0211": ("CodeScanningSarifsStatusType",), - ".group_0212": ( + ".group_0211": ("CodeScanningVariantAnalysisRepoTaskType",), + ".group_0212": ("CodeScanningDefaultSetupType",), + ".group_0213": ("CodeScanningDefaultSetupUpdateType",), + ".group_0214": ("CodeScanningDefaultSetupUpdateResponseType",), + ".group_0215": ("CodeScanningSarifsReceiptType",), + ".group_0216": ("CodeScanningSarifsStatusType",), + ".group_0217": ( "CodeownersErrorsType", "CodeownersErrorsPropErrorsItemsType", ), - ".group_0213": ("CodespacesPermissionsCheckForDevcontainerType",), - ".group_0214": ("RepositoryInvitationType",), - ".group_0215": ( + ".group_0218": ("CodespacesPermissionsCheckForDevcontainerType",), + ".group_0219": ("RepositoryInvitationType",), + ".group_0220": ( "RepositoryCollaboratorPermissionType", "CollaboratorType", "CollaboratorPropPermissionsType", ), - ".group_0216": ( + ".group_0221": ( "CommitCommentType", "TimelineCommitCommentedEventType", ), - ".group_0217": ( + ".group_0222": ( "BranchShortType", "BranchShortPropCommitType", ), - ".group_0218": ("LinkType",), - ".group_0219": ("AutoMergeType",), - ".group_0220": ( + ".group_0223": ("LinkType",), + ".group_0224": ("AutoMergeType",), + ".group_0225": ( "PullRequestSimpleType", "PullRequestSimplePropLabelsItemsType", ), - ".group_0221": ( + ".group_0226": ( "PullRequestSimplePropHeadType", "PullRequestSimplePropBaseType", ), - ".group_0222": ("PullRequestSimplePropLinksType",), - ".group_0223": ( + ".group_0227": ("PullRequestSimplePropLinksType",), + ".group_0228": ( "CombinedCommitStatusType", "SimpleCommitStatusType", ), - ".group_0224": ("StatusType",), - ".group_0225": ( + ".group_0229": ("StatusType",), + ".group_0230": ( "CommunityProfilePropFilesType", "CommunityHealthFileType", "CommunityProfileType", ), - ".group_0226": ("CommitComparisonType",), - ".group_0227": ( + ".group_0231": ("CommitComparisonType",), + ".group_0232": ( "ContentTreeType", "ContentTreePropLinksType", "ContentTreePropEntriesItemsType", "ContentTreePropEntriesItemsPropLinksType", ), - ".group_0228": ( + ".group_0233": ( "ContentDirectoryItemsType", "ContentDirectoryItemsPropLinksType", ), - ".group_0229": ( + ".group_0234": ( "ContentFileType", "ContentFilePropLinksType", ), - ".group_0230": ( + ".group_0235": ( "ContentSymlinkType", "ContentSymlinkPropLinksType", ), - ".group_0231": ( + ".group_0236": ( "ContentSubmoduleType", "ContentSubmodulePropLinksType", ), - ".group_0232": ( + ".group_0237": ( "FileCommitType", "FileCommitPropContentType", "FileCommitPropContentPropLinksType", @@ -9143,55 +9313,55 @@ "FileCommitPropCommitPropParentsItemsType", "FileCommitPropCommitPropVerificationType", ), - ".group_0233": ("ContributorType",), - ".group_0234": ("DependabotAlertType",), - ".group_0235": ("DependabotAlertPropDependencyType",), - ".group_0236": ( + ".group_0238": ("ContributorType",), + ".group_0239": ("DependabotAlertType",), + ".group_0240": ("DependabotAlertPropDependencyType",), + ".group_0241": ( "DependencyGraphDiffItemsType", "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", ), - ".group_0237": ( + ".group_0242": ( "DependencyGraphSpdxSbomType", "DependencyGraphSpdxSbomPropSbomType", "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", ), - ".group_0238": ("MetadataType",), - ".group_0239": ("DependencyType",), - ".group_0240": ( + ".group_0243": ("MetadataType",), + ".group_0244": ("DependencyType",), + ".group_0245": ( "ManifestType", "ManifestPropFileType", "ManifestPropResolvedType", ), - ".group_0241": ( + ".group_0246": ( "SnapshotType", "SnapshotPropJobType", "SnapshotPropDetectorType", "SnapshotPropManifestsType", ), - ".group_0242": ("DeploymentStatusType",), - ".group_0243": ("DeploymentBranchPolicySettingsType",), - ".group_0244": ( + ".group_0247": ("DeploymentStatusType",), + ".group_0248": ("DeploymentBranchPolicySettingsType",), + ".group_0249": ( "EnvironmentType", "EnvironmentPropProtectionRulesItemsAnyof0Type", "EnvironmentPropProtectionRulesItemsAnyof2Type", "ReposOwnerRepoEnvironmentsGetResponse200Type", ), - ".group_0245": ("EnvironmentPropProtectionRulesItemsAnyof1Type",), - ".group_0246": ( + ".group_0250": ("EnvironmentPropProtectionRulesItemsAnyof1Type",), + ".group_0251": ( "EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType", ), - ".group_0247": ("DeploymentBranchPolicyNamePatternWithTypeType",), - ".group_0248": ("DeploymentBranchPolicyNamePatternType",), - ".group_0249": ("CustomDeploymentRuleAppType",), - ".group_0250": ( + ".group_0252": ("DeploymentBranchPolicyNamePatternWithTypeType",), + ".group_0253": ("DeploymentBranchPolicyNamePatternType",), + ".group_0254": ("CustomDeploymentRuleAppType",), + ".group_0255": ( "DeploymentProtectionRuleType", "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", ), - ".group_0251": ("ShortBlobType",), - ".group_0252": ("BlobType",), - ".group_0253": ( + ".group_0256": ("ShortBlobType",), + ".group_0257": ("BlobType",), + ".group_0258": ( "GitCommitType", "GitCommitPropAuthorType", "GitCommitPropCommitterType", @@ -9199,28 +9369,28 @@ "GitCommitPropParentsItemsType", "GitCommitPropVerificationType", ), - ".group_0254": ( + ".group_0259": ( "GitRefType", "GitRefPropObjectType", ), - ".group_0255": ( + ".group_0260": ( "GitTagType", "GitTagPropTaggerType", "GitTagPropObjectType", ), - ".group_0256": ( + ".group_0261": ( "GitTreeType", "GitTreePropTreeItemsType", ), - ".group_0257": ("HookResponseType",), - ".group_0258": ("HookType",), - ".group_0259": ( + ".group_0262": ("HookResponseType",), + ".group_0263": ("HookType",), + ".group_0264": ( "ImportType", "ImportPropProjectChoicesItemsType", ), - ".group_0260": ("PorterAuthorType",), - ".group_0261": ("PorterLargeFileType",), - ".group_0262": ( + ".group_0265": ("PorterAuthorType",), + ".group_0266": ("PorterLargeFileType",), + ".group_0267": ( "IssueEventType", "IssueEventLabelType", "IssueEventDismissedReviewType", @@ -9228,56 +9398,56 @@ "IssueEventProjectCardType", "IssueEventRenameType", ), - ".group_0263": ( + ".group_0268": ( "LabeledIssueEventType", "LabeledIssueEventPropLabelType", ), - ".group_0264": ( + ".group_0269": ( "UnlabeledIssueEventType", "UnlabeledIssueEventPropLabelType", ), - ".group_0265": ("AssignedIssueEventType",), - ".group_0266": ("UnassignedIssueEventType",), - ".group_0267": ( + ".group_0270": ("AssignedIssueEventType",), + ".group_0271": ("UnassignedIssueEventType",), + ".group_0272": ( "MilestonedIssueEventType", "MilestonedIssueEventPropMilestoneType", ), - ".group_0268": ( + ".group_0273": ( "DemilestonedIssueEventType", "DemilestonedIssueEventPropMilestoneType", ), - ".group_0269": ( + ".group_0274": ( "RenamedIssueEventType", "RenamedIssueEventPropRenameType", ), - ".group_0270": ("ReviewRequestedIssueEventType",), - ".group_0271": ("ReviewRequestRemovedIssueEventType",), - ".group_0272": ( + ".group_0275": ("ReviewRequestedIssueEventType",), + ".group_0276": ("ReviewRequestRemovedIssueEventType",), + ".group_0277": ( "ReviewDismissedIssueEventType", "ReviewDismissedIssueEventPropDismissedReviewType", ), - ".group_0273": ("LockedIssueEventType",), - ".group_0274": ( + ".group_0278": ("LockedIssueEventType",), + ".group_0279": ( "AddedToProjectIssueEventType", "AddedToProjectIssueEventPropProjectCardType", ), - ".group_0275": ( + ".group_0280": ( "MovedColumnInProjectIssueEventType", "MovedColumnInProjectIssueEventPropProjectCardType", ), - ".group_0276": ( + ".group_0281": ( "RemovedFromProjectIssueEventType", "RemovedFromProjectIssueEventPropProjectCardType", ), - ".group_0277": ( + ".group_0282": ( "ConvertedNoteToIssueIssueEventType", "ConvertedNoteToIssueIssueEventPropProjectCardType", ), - ".group_0278": ("LabelType",), - ".group_0279": ("TimelineCommentEventType",), - ".group_0280": ("TimelineCrossReferencedEventType",), - ".group_0281": ("TimelineCrossReferencedEventPropSourceType",), - ".group_0282": ( + ".group_0283": ("LabelType",), + ".group_0284": ("TimelineCommentEventType",), + ".group_0285": ("TimelineCrossReferencedEventType",), + ".group_0286": ("TimelineCrossReferencedEventPropSourceType",), + ".group_0287": ( "TimelineCommittedEventType", "TimelineCommittedEventPropAuthorType", "TimelineCommittedEventPropCommitterType", @@ -9285,13 +9455,13 @@ "TimelineCommittedEventPropParentsItemsType", "TimelineCommittedEventPropVerificationType", ), - ".group_0283": ( + ".group_0288": ( "TimelineReviewedEventType", "TimelineReviewedEventPropLinksType", "TimelineReviewedEventPropLinksPropHtmlType", "TimelineReviewedEventPropLinksPropPullRequestType", ), - ".group_0284": ( + ".group_0289": ( "PullRequestReviewCommentType", "PullRequestReviewCommentPropLinksType", "PullRequestReviewCommentPropLinksPropSelfType", @@ -9299,35 +9469,35 @@ "PullRequestReviewCommentPropLinksPropPullRequestType", "TimelineLineCommentedEventType", ), - ".group_0285": ("TimelineAssignedIssueEventType",), - ".group_0286": ("TimelineUnassignedIssueEventType",), - ".group_0287": ("StateChangeIssueEventType",), - ".group_0288": ("DeployKeyType",), - ".group_0289": ("LanguageType",), - ".group_0290": ( + ".group_0290": ("TimelineAssignedIssueEventType",), + ".group_0291": ("TimelineUnassignedIssueEventType",), + ".group_0292": ("StateChangeIssueEventType",), + ".group_0293": ("DeployKeyType",), + ".group_0294": ("LanguageType",), + ".group_0295": ( "LicenseContentType", "LicenseContentPropLinksType", ), - ".group_0291": ("MergedUpstreamType",), - ".group_0292": ( + ".group_0296": ("MergedUpstreamType",), + ".group_0297": ( "PageType", "PagesSourceHashType", "PagesHttpsCertificateType", ), - ".group_0293": ( + ".group_0298": ( "PageBuildType", "PageBuildPropErrorType", ), - ".group_0294": ("PageBuildStatusType",), - ".group_0295": ("PageDeploymentType",), - ".group_0296": ("PagesDeploymentStatusType",), - ".group_0297": ( + ".group_0299": ("PageBuildStatusType",), + ".group_0300": ("PageDeploymentType",), + ".group_0301": ("PagesDeploymentStatusType",), + ".group_0302": ( "PagesHealthCheckType", "PagesHealthCheckPropDomainType", "PagesHealthCheckPropAltDomainType", ), - ".group_0298": ("PullRequestType",), - ".group_0299": ( + ".group_0303": ("PullRequestType",), + ".group_0304": ( "PullRequestPropLabelsItemsType", "PullRequestPropHeadType", "PullRequestPropHeadPropRepoType", @@ -9336,117 +9506,117 @@ "PullRequestPropHeadPropRepoPropLicenseType", "PullRequestPropHeadPropUserType", ), - ".group_0300": ( + ".group_0305": ( "PullRequestPropBaseType", "PullRequestPropBasePropUserType", ), - ".group_0301": ( + ".group_0306": ( "PullRequestPropBasePropRepoType", "PullRequestPropBasePropRepoPropOwnerType", "PullRequestPropBasePropRepoPropPermissionsType", ), - ".group_0302": ("PullRequestPropLinksType",), - ".group_0303": ("PullRequestMergeResultType",), - ".group_0304": ("PullRequestReviewRequestType",), - ".group_0305": ( + ".group_0307": ("PullRequestPropLinksType",), + ".group_0308": ("PullRequestMergeResultType",), + ".group_0309": ("PullRequestReviewRequestType",), + ".group_0310": ( "PullRequestReviewType", "PullRequestReviewPropLinksType", "PullRequestReviewPropLinksPropHtmlType", "PullRequestReviewPropLinksPropPullRequestType", ), - ".group_0306": ("ReviewCommentType",), - ".group_0307": ("ReviewCommentPropLinksType",), - ".group_0308": ("ReleaseAssetType",), - ".group_0309": ("ReleaseType",), - ".group_0310": ("ReleaseNotesContentType",), - ".group_0311": ("RepositoryRuleRulesetInfoType",), - ".group_0312": ("RepositoryRuleDetailedOneof0Type",), - ".group_0313": ("RepositoryRuleDetailedOneof1Type",), - ".group_0314": ("RepositoryRuleDetailedOneof2Type",), - ".group_0315": ("RepositoryRuleDetailedOneof3Type",), - ".group_0316": ("RepositoryRuleDetailedOneof4Type",), - ".group_0317": ("RepositoryRuleDetailedOneof5Type",), - ".group_0318": ("RepositoryRuleDetailedOneof6Type",), - ".group_0319": ("RepositoryRuleDetailedOneof7Type",), - ".group_0320": ("RepositoryRuleDetailedOneof8Type",), - ".group_0321": ("RepositoryRuleDetailedOneof9Type",), - ".group_0322": ("RepositoryRuleDetailedOneof10Type",), - ".group_0323": ("RepositoryRuleDetailedOneof11Type",), - ".group_0324": ("RepositoryRuleDetailedOneof12Type",), - ".group_0325": ("RepositoryRuleDetailedOneof13Type",), - ".group_0326": ("RepositoryRuleDetailedOneof14Type",), - ".group_0327": ("RepositoryRuleDetailedOneof15Type",), - ".group_0328": ("SecretScanningAlertType",), - ".group_0329": ( + ".group_0311": ("ReviewCommentType",), + ".group_0312": ("ReviewCommentPropLinksType",), + ".group_0313": ("ReleaseAssetType",), + ".group_0314": ("ReleaseType",), + ".group_0315": ("ReleaseNotesContentType",), + ".group_0316": ("RepositoryRuleRulesetInfoType",), + ".group_0317": ("RepositoryRuleDetailedOneof0Type",), + ".group_0318": ("RepositoryRuleDetailedOneof1Type",), + ".group_0319": ("RepositoryRuleDetailedOneof2Type",), + ".group_0320": ("RepositoryRuleDetailedOneof3Type",), + ".group_0321": ("RepositoryRuleDetailedOneof4Type",), + ".group_0322": ("RepositoryRuleDetailedOneof5Type",), + ".group_0323": ("RepositoryRuleDetailedOneof6Type",), + ".group_0324": ("RepositoryRuleDetailedOneof7Type",), + ".group_0325": ("RepositoryRuleDetailedOneof8Type",), + ".group_0326": ("RepositoryRuleDetailedOneof9Type",), + ".group_0327": ("RepositoryRuleDetailedOneof10Type",), + ".group_0328": ("RepositoryRuleDetailedOneof11Type",), + ".group_0329": ("RepositoryRuleDetailedOneof12Type",), + ".group_0330": ("RepositoryRuleDetailedOneof13Type",), + ".group_0331": ("RepositoryRuleDetailedOneof14Type",), + ".group_0332": ("RepositoryRuleDetailedOneof15Type",), + ".group_0333": ("SecretScanningAlertType",), + ".group_0334": ( "RepositoryAdvisoryCreateType", "RepositoryAdvisoryCreatePropCreditsItemsType", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0330": ( + ".group_0335": ( "PrivateVulnerabilityReportCreateType", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0331": ( + ".group_0336": ( "RepositoryAdvisoryUpdateType", "RepositoryAdvisoryUpdatePropCreditsItemsType", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", ), - ".group_0332": ("StargazerType",), - ".group_0333": ("CommitActivityType",), - ".group_0334": ( + ".group_0337": ("StargazerType",), + ".group_0338": ("CommitActivityType",), + ".group_0339": ( "ContributorActivityType", "ContributorActivityPropWeeksItemsType", ), - ".group_0335": ("ParticipationStatsType",), - ".group_0336": ("RepositorySubscriptionType",), - ".group_0337": ( + ".group_0340": ("ParticipationStatsType",), + ".group_0341": ("RepositorySubscriptionType",), + ".group_0342": ( "TagType", "TagPropCommitType", ), - ".group_0338": ("TagProtectionType",), - ".group_0339": ("TopicType",), - ".group_0340": ("TrafficType",), - ".group_0341": ("CloneTrafficType",), - ".group_0342": ("ContentTrafficType",), - ".group_0343": ("ReferrerTrafficType",), - ".group_0344": ("ViewTrafficType",), - ".group_0345": ( + ".group_0343": ("TagProtectionType",), + ".group_0344": ("TopicType",), + ".group_0345": ("TrafficType",), + ".group_0346": ("CloneTrafficType",), + ".group_0347": ("ContentTrafficType",), + ".group_0348": ("ReferrerTrafficType",), + ".group_0349": ("ViewTrafficType",), + ".group_0350": ( "SearchResultTextMatchesItemsType", "SearchResultTextMatchesItemsPropMatchesItemsType", ), - ".group_0346": ( + ".group_0351": ( "CodeSearchResultItemType", "SearchCodeGetResponse200Type", ), - ".group_0347": ( + ".group_0352": ( "CommitSearchResultItemType", "CommitSearchResultItemPropParentsItemsType", "SearchCommitsGetResponse200Type", ), - ".group_0348": ( + ".group_0353": ( "CommitSearchResultItemPropCommitType", "CommitSearchResultItemPropCommitPropAuthorType", "CommitSearchResultItemPropCommitPropTreeType", ), - ".group_0349": ( + ".group_0354": ( "IssueSearchResultItemType", "IssueSearchResultItemPropLabelsItemsType", "IssueSearchResultItemPropPullRequestType", "SearchIssuesGetResponse200Type", ), - ".group_0350": ( + ".group_0355": ( "LabelSearchResultItemType", "SearchLabelsGetResponse200Type", ), - ".group_0351": ( + ".group_0356": ( "RepoSearchResultItemType", "RepoSearchResultItemPropPermissionsType", "SearchRepositoriesGetResponse200Type", ), - ".group_0352": ( + ".group_0357": ( "TopicSearchResultItemType", "TopicSearchResultItemPropRelatedItemsType", "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", @@ -9454,45 +9624,45 @@ "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", "SearchTopicsGetResponse200Type", ), - ".group_0353": ( + ".group_0358": ( "UserSearchResultItemType", "SearchUsersGetResponse200Type", ), - ".group_0354": ( + ".group_0359": ( "PrivateUserType", "PrivateUserPropPlanType", ), - ".group_0355": ("CodespacesUserPublicKeyType",), - ".group_0356": ("CodespaceExportDetailsType",), - ".group_0357": ( + ".group_0360": ("CodespacesUserPublicKeyType",), + ".group_0361": ("CodespaceExportDetailsType",), + ".group_0362": ( "CodespaceWithFullRepositoryType", "CodespaceWithFullRepositoryPropGitStatusType", "CodespaceWithFullRepositoryPropRuntimeConstraintsType", ), - ".group_0358": ("EmailType",), - ".group_0359": ( + ".group_0363": ("EmailType",), + ".group_0364": ( "GpgKeyType", "GpgKeyPropEmailsItemsType", "GpgKeyPropSubkeysItemsType", "GpgKeyPropSubkeysItemsPropEmailsItemsType", ), - ".group_0360": ("KeyType",), - ".group_0361": ( + ".group_0365": ("KeyType",), + ".group_0366": ( "UserMarketplacePurchaseType", "MarketplaceAccountType", ), - ".group_0362": ("SocialAccountType",), - ".group_0363": ("SshSigningKeyType",), - ".group_0364": ("StarredRepositoryType",), - ".group_0365": ( + ".group_0367": ("SocialAccountType",), + ".group_0368": ("SshSigningKeyType",), + ".group_0369": ("StarredRepositoryType",), + ".group_0370": ( "HovercardType", "HovercardPropContextsItemsType", ), - ".group_0366": ("KeySimpleType",), - ".group_0367": ("EnterpriseWebhooksType",), - ".group_0368": ("SimpleInstallationType",), - ".group_0369": ("OrganizationSimpleWebhooksType",), - ".group_0370": ( + ".group_0371": ("KeySimpleType",), + ".group_0372": ("EnterpriseWebhooksType",), + ".group_0373": ("SimpleInstallationType",), + ".group_0374": ("OrganizationSimpleWebhooksType",), + ".group_0375": ( "RepositoryWebhooksType", "RepositoryWebhooksPropPermissionsType", "RepositoryWebhooksPropCustomPropertiesType", @@ -9500,52 +9670,52 @@ "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", ), - ".group_0371": ("SimpleUserWebhooksType",), - ".group_0372": ("WebhooksRuleType",), - ".group_0373": ("SimpleCheckSuiteType",), - ".group_0374": ( + ".group_0376": ("SimpleUserWebhooksType",), + ".group_0377": ("WebhooksRuleType",), + ".group_0378": ("SimpleCheckSuiteType",), + ".group_0379": ( "CheckRunWithSimpleCheckSuiteType", "CheckRunWithSimpleCheckSuitePropOutputType", ), - ".group_0375": ("WebhooksDeployKeyType",), - ".group_0376": ("WebhooksWorkflowType",), - ".group_0377": ( + ".group_0380": ("WebhooksDeployKeyType",), + ".group_0381": ("WebhooksWorkflowType",), + ".group_0382": ( "WebhooksApproverType", "WebhooksReviewersItemsType", "WebhooksReviewersItemsPropReviewerType", ), - ".group_0378": ("WebhooksWorkflowJobRunType",), - ".group_0379": ("WebhooksUserType",), - ".group_0380": ( + ".group_0383": ("WebhooksWorkflowJobRunType",), + ".group_0384": ("WebhooksUserType",), + ".group_0385": ( "WebhooksAnswerType", "WebhooksAnswerPropReactionsType", "WebhooksAnswerPropUserType", ), - ".group_0381": ( + ".group_0386": ( "DiscussionType", "DiscussionPropAnswerChosenByType", "DiscussionPropCategoryType", "DiscussionPropReactionsType", "DiscussionPropUserType", ), - ".group_0382": ( + ".group_0387": ( "WebhooksCommentType", "WebhooksCommentPropReactionsType", "WebhooksCommentPropUserType", ), - ".group_0383": ("WebhooksLabelType",), - ".group_0384": ("WebhooksRepositoriesItemsType",), - ".group_0385": ("WebhooksRepositoriesAddedItemsType",), - ".group_0386": ( + ".group_0388": ("WebhooksLabelType",), + ".group_0389": ("WebhooksRepositoriesItemsType",), + ".group_0390": ("WebhooksRepositoriesAddedItemsType",), + ".group_0391": ( "WebhooksIssueCommentType", "WebhooksIssueCommentPropReactionsType", "WebhooksIssueCommentPropUserType", ), - ".group_0387": ( + ".group_0392": ( "WebhooksChangesType", "WebhooksChangesPropBodyType", ), - ".group_0388": ( + ".group_0393": ( "WebhooksIssueType", "WebhooksIssuePropAssigneeType", "WebhooksIssuePropAssigneesItemsType", @@ -9559,11 +9729,11 @@ "WebhooksIssuePropReactionsType", "WebhooksIssuePropUserType", ), - ".group_0389": ( + ".group_0394": ( "WebhooksMilestoneType", "WebhooksMilestonePropCreatorType", ), - ".group_0390": ( + ".group_0395": ( "WebhooksIssue2Type", "WebhooksIssue2PropAssigneeType", "WebhooksIssue2PropAssigneesItemsType", @@ -9577,31 +9747,31 @@ "WebhooksIssue2PropReactionsType", "WebhooksIssue2PropUserType", ), - ".group_0391": ("WebhooksUserMannequinType",), - ".group_0392": ( + ".group_0396": ("WebhooksUserMannequinType",), + ".group_0397": ( "WebhooksMarketplacePurchaseType", "WebhooksMarketplacePurchasePropAccountType", "WebhooksMarketplacePurchasePropPlanType", ), - ".group_0393": ( + ".group_0398": ( "WebhooksPreviousMarketplacePurchaseType", "WebhooksPreviousMarketplacePurchasePropAccountType", "WebhooksPreviousMarketplacePurchasePropPlanType", ), - ".group_0394": ( + ".group_0399": ( "WebhooksTeamType", "WebhooksTeamPropParentType", ), - ".group_0395": ("MergeGroupType",), - ".group_0396": ( + ".group_0400": ("MergeGroupType",), + ".group_0401": ( "WebhooksMilestone3Type", "WebhooksMilestone3PropCreatorType", ), - ".group_0397": ( + ".group_0402": ( "WebhooksMembershipType", "WebhooksMembershipPropUserType", ), - ".group_0398": ( + ".group_0403": ( "PersonalAccessTokenRequestType", "PersonalAccessTokenRequestPropRepositoriesItemsType", "PersonalAccessTokenRequestPropPermissionsAddedType", @@ -9617,24 +9787,25 @@ "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", ), - ".group_0399": ( + ".group_0404": ( "WebhooksProjectCardType", "WebhooksProjectCardPropCreatorType", ), - ".group_0400": ( + ".group_0405": ( "WebhooksProjectType", "WebhooksProjectPropCreatorType", ), - ".group_0401": ("WebhooksProjectColumnType",), - ".group_0402": ("ProjectsV2Type",), - ".group_0403": ( + ".group_0406": ("WebhooksProjectColumnType",), + ".group_0407": ("ProjectsV2Type",), + ".group_0408": ( "WebhooksProjectChangesType", "WebhooksProjectChangesPropArchivedAtType", ), - ".group_0404": ("ProjectsV2ItemType",), - ".group_0405": ("PullRequestWebhookType",), - ".group_0406": ("PullRequestWebhookAllof1Type",), - ".group_0407": ( + ".group_0409": ("ProjectsV2ItemType",), + ".group_0410": ("ProjectsV2StatusUpdateType",), + ".group_0411": ("PullRequestWebhookType",), + ".group_0412": ("PullRequestWebhookAllof1Type",), + ".group_0413": ( "WebhooksPullRequest5Type", "WebhooksPullRequest5PropAssigneeType", "WebhooksPullRequest5PropAssigneesItemsType", @@ -9672,7 +9843,7 @@ "WebhooksPullRequest5PropRequestedTeamsItemsType", "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", ), - ".group_0408": ( + ".group_0414": ( "WebhooksReviewCommentType", "WebhooksReviewCommentPropReactionsType", "WebhooksReviewCommentPropUserType", @@ -9681,33 +9852,33 @@ "WebhooksReviewCommentPropLinksPropPullRequestType", "WebhooksReviewCommentPropLinksPropSelfType", ), - ".group_0409": ( + ".group_0415": ( "WebhooksReviewType", "WebhooksReviewPropUserType", "WebhooksReviewPropLinksType", "WebhooksReviewPropLinksPropHtmlType", "WebhooksReviewPropLinksPropPullRequestType", ), - ".group_0410": ( + ".group_0416": ( "WebhooksReleaseType", "WebhooksReleasePropAuthorType", "WebhooksReleasePropReactionsType", "WebhooksReleasePropAssetsItemsType", "WebhooksReleasePropAssetsItemsPropUploaderType", ), - ".group_0411": ( + ".group_0417": ( "WebhooksRelease1Type", "WebhooksRelease1PropAssetsItemsType", "WebhooksRelease1PropAssetsItemsPropUploaderType", "WebhooksRelease1PropAuthorType", "WebhooksRelease1PropReactionsType", ), - ".group_0412": ( + ".group_0418": ( "WebhooksAlertType", "WebhooksAlertPropDismisserType", ), - ".group_0413": ("SecretScanningAlertWebhookType",), - ".group_0414": ( + ".group_0419": ("SecretScanningAlertWebhookType",), + ".group_0420": ( "WebhooksSecurityAdvisoryType", "WebhooksSecurityAdvisoryPropCvssType", "WebhooksSecurityAdvisoryPropCwesItemsType", @@ -9717,27 +9888,27 @@ "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0415": ( + ".group_0421": ( "WebhooksSponsorshipType", "WebhooksSponsorshipPropMaintainerType", "WebhooksSponsorshipPropSponsorType", "WebhooksSponsorshipPropSponsorableType", "WebhooksSponsorshipPropTierType", ), - ".group_0416": ( + ".group_0422": ( "WebhooksChanges8Type", "WebhooksChanges8PropTierType", "WebhooksChanges8PropTierPropFromType", ), - ".group_0417": ( + ".group_0423": ( "WebhooksTeam1Type", "WebhooksTeam1PropParentType", ), - ".group_0418": ("WebhookBranchProtectionConfigurationDisabledType",), - ".group_0419": ("WebhookBranchProtectionConfigurationEnabledType",), - ".group_0420": ("WebhookBranchProtectionRuleCreatedType",), - ".group_0421": ("WebhookBranchProtectionRuleDeletedType",), - ".group_0422": ( + ".group_0424": ("WebhookBranchProtectionConfigurationDisabledType",), + ".group_0425": ("WebhookBranchProtectionConfigurationEnabledType",), + ".group_0426": ("WebhookBranchProtectionRuleCreatedType",), + ".group_0427": ("WebhookBranchProtectionRuleDeletedType",), + ".group_0428": ( "WebhookBranchProtectionRuleEditedType", "WebhookBranchProtectionRuleEditedPropChangesType", "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", @@ -9745,21 +9916,25 @@ "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", ), - ".group_0423": ("WebhookCheckRunCompletedType",), - ".group_0424": ("WebhookCheckRunCompletedFormEncodedType",), - ".group_0425": ("WebhookCheckRunCreatedType",), - ".group_0426": ("WebhookCheckRunCreatedFormEncodedType",), - ".group_0427": ( + ".group_0429": ("WebhookCheckRunCompletedType",), + ".group_0430": ("WebhookCheckRunCompletedFormEncodedType",), + ".group_0431": ("WebhookCheckRunCreatedType",), + ".group_0432": ("WebhookCheckRunCreatedFormEncodedType",), + ".group_0433": ( "WebhookCheckRunRequestedActionType", "WebhookCheckRunRequestedActionPropRequestedActionType", ), - ".group_0428": ("WebhookCheckRunRequestedActionFormEncodedType",), - ".group_0429": ("WebhookCheckRunRerequestedType",), - ".group_0430": ("WebhookCheckRunRerequestedFormEncodedType",), - ".group_0431": ( + ".group_0434": ("WebhookCheckRunRequestedActionFormEncodedType",), + ".group_0435": ("WebhookCheckRunRerequestedType",), + ".group_0436": ("WebhookCheckRunRerequestedFormEncodedType",), + ".group_0437": ( "WebhookCheckSuiteCompletedType", "WebhookCheckSuiteCompletedPropCheckSuiteType", "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", @@ -9774,7 +9949,7 @@ "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0432": ( + ".group_0438": ( "WebhookCheckSuiteRequestedType", "WebhookCheckSuiteRequestedPropCheckSuiteType", "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", @@ -9789,7 +9964,7 @@ "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0433": ( + ".group_0439": ( "WebhookCheckSuiteRerequestedType", "WebhookCheckSuiteRerequestedPropCheckSuiteType", "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", @@ -9804,7 +9979,7 @@ "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0434": ( + ".group_0440": ( "WebhookCodeScanningAlertAppearedInBranchType", "WebhookCodeScanningAlertAppearedInBranchPropAlertType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", @@ -9814,7 +9989,7 @@ "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", ), - ".group_0435": ( + ".group_0441": ( "WebhookCodeScanningAlertClosedByUserType", "WebhookCodeScanningAlertClosedByUserPropAlertType", "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", @@ -9824,7 +9999,7 @@ "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", ), - ".group_0436": ( + ".group_0442": ( "WebhookCodeScanningAlertCreatedType", "WebhookCodeScanningAlertCreatedPropAlertType", "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", @@ -9833,7 +10008,7 @@ "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", "WebhookCodeScanningAlertCreatedPropAlertPropToolType", ), - ".group_0437": ( + ".group_0443": ( "WebhookCodeScanningAlertFixedType", "WebhookCodeScanningAlertFixedPropAlertType", "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", @@ -9843,7 +10018,7 @@ "WebhookCodeScanningAlertFixedPropAlertPropRuleType", "WebhookCodeScanningAlertFixedPropAlertPropToolType", ), - ".group_0438": ( + ".group_0444": ( "WebhookCodeScanningAlertReopenedType", "WebhookCodeScanningAlertReopenedPropAlertType", "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", @@ -9853,7 +10028,7 @@ "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedPropAlertPropToolType", ), - ".group_0439": ( + ".group_0445": ( "WebhookCodeScanningAlertReopenedByUserType", "WebhookCodeScanningAlertReopenedByUserPropAlertType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", @@ -9862,31 +10037,31 @@ "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", ), - ".group_0440": ( + ".group_0446": ( "WebhookCommitCommentCreatedType", "WebhookCommitCommentCreatedPropCommentType", "WebhookCommitCommentCreatedPropCommentPropReactionsType", "WebhookCommitCommentCreatedPropCommentPropUserType", ), - ".group_0441": ("WebhookCreateType",), - ".group_0442": ("WebhookCustomPropertyCreatedType",), - ".group_0443": ( + ".group_0447": ("WebhookCreateType",), + ".group_0448": ("WebhookCustomPropertyCreatedType",), + ".group_0449": ( "WebhookCustomPropertyDeletedType", "WebhookCustomPropertyDeletedPropDefinitionType", ), - ".group_0444": ("WebhookCustomPropertyUpdatedType",), - ".group_0445": ("WebhookCustomPropertyValuesUpdatedType",), - ".group_0446": ("WebhookDeleteType",), - ".group_0447": ("WebhookDependabotAlertAutoDismissedType",), - ".group_0448": ("WebhookDependabotAlertAutoReopenedType",), - ".group_0449": ("WebhookDependabotAlertCreatedType",), - ".group_0450": ("WebhookDependabotAlertDismissedType",), - ".group_0451": ("WebhookDependabotAlertFixedType",), - ".group_0452": ("WebhookDependabotAlertReintroducedType",), - ".group_0453": ("WebhookDependabotAlertReopenedType",), - ".group_0454": ("WebhookDeployKeyCreatedType",), - ".group_0455": ("WebhookDeployKeyDeletedType",), - ".group_0456": ( + ".group_0450": ("WebhookCustomPropertyUpdatedType",), + ".group_0451": ("WebhookCustomPropertyValuesUpdatedType",), + ".group_0452": ("WebhookDeleteType",), + ".group_0453": ("WebhookDependabotAlertAutoDismissedType",), + ".group_0454": ("WebhookDependabotAlertAutoReopenedType",), + ".group_0455": ("WebhookDependabotAlertCreatedType",), + ".group_0456": ("WebhookDependabotAlertDismissedType",), + ".group_0457": ("WebhookDependabotAlertFixedType",), + ".group_0458": ("WebhookDependabotAlertReintroducedType",), + ".group_0459": ("WebhookDependabotAlertReopenedType",), + ".group_0460": ("WebhookDeployKeyCreatedType",), + ".group_0461": ("WebhookDeployKeyDeletedType",), + ".group_0462": ( "WebhookDeploymentCreatedType", "WebhookDeploymentCreatedPropDeploymentType", "WebhookDeploymentCreatedPropDeploymentPropCreatorType", @@ -9908,8 +10083,8 @@ "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0457": ("WebhookDeploymentProtectionRuleRequestedType",), - ".group_0458": ( + ".group_0463": ("WebhookDeploymentProtectionRuleRequestedType",), + ".group_0464": ( "WebhookDeploymentReviewApprovedType", "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", "WebhookDeploymentReviewApprovedPropWorkflowRunType", @@ -9927,7 +10102,7 @@ "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0459": ( + ".group_0465": ( "WebhookDeploymentReviewRejectedType", "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", "WebhookDeploymentReviewRejectedPropWorkflowRunType", @@ -9945,7 +10120,7 @@ "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0460": ( + ".group_0466": ( "WebhookDeploymentReviewRequestedType", "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", "WebhookDeploymentReviewRequestedPropReviewersItemsType", @@ -9965,7 +10140,7 @@ "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0461": ( + ".group_0467": ( "WebhookDeploymentStatusCreatedType", "WebhookDeploymentStatusCreatedPropCheckRunType", "WebhookDeploymentStatusCreatedPropDeploymentType", @@ -9993,116 +10168,116 @@ "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0462": ("WebhookDiscussionAnsweredType",), - ".group_0463": ( + ".group_0468": ("WebhookDiscussionAnsweredType",), + ".group_0469": ( "WebhookDiscussionCategoryChangedType", "WebhookDiscussionCategoryChangedPropChangesType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", ), - ".group_0464": ("WebhookDiscussionClosedType",), - ".group_0465": ("WebhookDiscussionCommentCreatedType",), - ".group_0466": ("WebhookDiscussionCommentDeletedType",), - ".group_0467": ( + ".group_0470": ("WebhookDiscussionClosedType",), + ".group_0471": ("WebhookDiscussionCommentCreatedType",), + ".group_0472": ("WebhookDiscussionCommentDeletedType",), + ".group_0473": ( "WebhookDiscussionCommentEditedType", "WebhookDiscussionCommentEditedPropChangesType", "WebhookDiscussionCommentEditedPropChangesPropBodyType", ), - ".group_0468": ("WebhookDiscussionCreatedType",), - ".group_0469": ("WebhookDiscussionDeletedType",), - ".group_0470": ( + ".group_0474": ("WebhookDiscussionCreatedType",), + ".group_0475": ("WebhookDiscussionDeletedType",), + ".group_0476": ( "WebhookDiscussionEditedType", "WebhookDiscussionEditedPropChangesType", "WebhookDiscussionEditedPropChangesPropBodyType", "WebhookDiscussionEditedPropChangesPropTitleType", ), - ".group_0471": ("WebhookDiscussionLabeledType",), - ".group_0472": ("WebhookDiscussionLockedType",), - ".group_0473": ("WebhookDiscussionPinnedType",), - ".group_0474": ("WebhookDiscussionReopenedType",), - ".group_0475": ("WebhookDiscussionTransferredType",), - ".group_0476": ("WebhookDiscussionTransferredPropChangesType",), - ".group_0477": ("WebhookDiscussionUnansweredType",), - ".group_0478": ("WebhookDiscussionUnlabeledType",), - ".group_0479": ("WebhookDiscussionUnlockedType",), - ".group_0480": ("WebhookDiscussionUnpinnedType",), - ".group_0481": ("WebhookForkType",), - ".group_0482": ( + ".group_0477": ("WebhookDiscussionLabeledType",), + ".group_0478": ("WebhookDiscussionLockedType",), + ".group_0479": ("WebhookDiscussionPinnedType",), + ".group_0480": ("WebhookDiscussionReopenedType",), + ".group_0481": ("WebhookDiscussionTransferredType",), + ".group_0482": ("WebhookDiscussionTransferredPropChangesType",), + ".group_0483": ("WebhookDiscussionUnansweredType",), + ".group_0484": ("WebhookDiscussionUnlabeledType",), + ".group_0485": ("WebhookDiscussionUnlockedType",), + ".group_0486": ("WebhookDiscussionUnpinnedType",), + ".group_0487": ("WebhookForkType",), + ".group_0488": ( "WebhookForkPropForkeeType", "WebhookForkPropForkeeMergedLicenseType", "WebhookForkPropForkeeMergedOwnerType", ), - ".group_0483": ( + ".group_0489": ( "WebhookForkPropForkeeAllof0Type", "WebhookForkPropForkeeAllof0PropLicenseType", "WebhookForkPropForkeeAllof0PropOwnerType", ), - ".group_0484": ("WebhookForkPropForkeeAllof0PropPermissionsType",), - ".group_0485": ( + ".group_0490": ("WebhookForkPropForkeeAllof0PropPermissionsType",), + ".group_0491": ( "WebhookForkPropForkeeAllof1Type", "WebhookForkPropForkeeAllof1PropLicenseType", "WebhookForkPropForkeeAllof1PropOwnerType", ), - ".group_0486": ("WebhookGithubAppAuthorizationRevokedType",), - ".group_0487": ( + ".group_0492": ("WebhookGithubAppAuthorizationRevokedType",), + ".group_0493": ( "WebhookGollumType", "WebhookGollumPropPagesItemsType", ), - ".group_0488": ("WebhookInstallationCreatedType",), - ".group_0489": ("WebhookInstallationDeletedType",), - ".group_0490": ("WebhookInstallationNewPermissionsAcceptedType",), - ".group_0491": ( + ".group_0494": ("WebhookInstallationCreatedType",), + ".group_0495": ("WebhookInstallationDeletedType",), + ".group_0496": ("WebhookInstallationNewPermissionsAcceptedType",), + ".group_0497": ( "WebhookInstallationRepositoriesAddedType", "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", ), - ".group_0492": ( + ".group_0498": ( "WebhookInstallationRepositoriesRemovedType", "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", ), - ".group_0493": ("WebhookInstallationSuspendType",), - ".group_0494": ( + ".group_0499": ("WebhookInstallationSuspendType",), + ".group_0500": ( "WebhookInstallationTargetRenamedType", "WebhookInstallationTargetRenamedPropAccountType", "WebhookInstallationTargetRenamedPropChangesType", "WebhookInstallationTargetRenamedPropChangesPropLoginType", "WebhookInstallationTargetRenamedPropChangesPropSlugType", ), - ".group_0495": ("WebhookInstallationUnsuspendType",), - ".group_0496": ("WebhookIssueCommentCreatedType",), - ".group_0497": ( + ".group_0501": ("WebhookInstallationUnsuspendType",), + ".group_0502": ("WebhookIssueCommentCreatedType",), + ".group_0503": ( "WebhookIssueCommentCreatedPropCommentType", "WebhookIssueCommentCreatedPropCommentPropReactionsType", "WebhookIssueCommentCreatedPropCommentPropUserType", ), - ".group_0498": ( + ".group_0504": ( "WebhookIssueCommentCreatedPropIssueType", "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", "WebhookIssueCommentCreatedPropIssueMergedReactionsType", "WebhookIssueCommentCreatedPropIssueMergedUserType", ), - ".group_0499": ( + ".group_0505": ( "WebhookIssueCommentCreatedPropIssueAllof0Type", "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", ), - ".group_0500": ( + ".group_0506": ( "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", ), - ".group_0501": ( + ".group_0507": ( "WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0502": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), - ".group_0503": ( + ".group_0508": ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",), + ".group_0509": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0504": ( + ".group_0510": ( "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0505": ( + ".group_0511": ( "WebhookIssueCommentCreatedPropIssueAllof1Type", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", @@ -10112,40 +10287,40 @@ "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", ), - ".group_0506": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), - ".group_0507": ( + ".group_0512": ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",), + ".group_0513": ( "WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0508": ("WebhookIssueCommentDeletedType",), - ".group_0509": ( + ".group_0514": ("WebhookIssueCommentDeletedType",), + ".group_0515": ( "WebhookIssueCommentDeletedPropIssueType", "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", "WebhookIssueCommentDeletedPropIssueMergedReactionsType", "WebhookIssueCommentDeletedPropIssueMergedUserType", ), - ".group_0510": ( + ".group_0516": ( "WebhookIssueCommentDeletedPropIssueAllof0Type", "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", ), - ".group_0511": ( + ".group_0517": ( "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", ), - ".group_0512": ( + ".group_0518": ( "WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0513": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), - ".group_0514": ( + ".group_0519": ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",), + ".group_0520": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0515": ( + ".group_0521": ( "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0516": ( + ".group_0522": ( "WebhookIssueCommentDeletedPropIssueAllof1Type", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", @@ -10155,40 +10330,40 @@ "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", ), - ".group_0517": ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",), - ".group_0518": ( + ".group_0523": ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",), + ".group_0524": ( "WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0519": ("WebhookIssueCommentEditedType",), - ".group_0520": ( + ".group_0525": ("WebhookIssueCommentEditedType",), + ".group_0526": ( "WebhookIssueCommentEditedPropIssueType", "WebhookIssueCommentEditedPropIssueMergedAssigneesType", "WebhookIssueCommentEditedPropIssueMergedReactionsType", "WebhookIssueCommentEditedPropIssueMergedUserType", ), - ".group_0521": ( + ".group_0527": ( "WebhookIssueCommentEditedPropIssueAllof0Type", "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", "WebhookIssueCommentEditedPropIssueAllof0PropUserType", ), - ".group_0522": ( + ".group_0528": ( "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", ), - ".group_0523": ( + ".group_0529": ( "WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0524": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",), - ".group_0525": ( + ".group_0530": ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",), + ".group_0531": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0526": ( + ".group_0532": ( "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0527": ( + ".group_0533": ( "WebhookIssueCommentEditedPropIssueAllof1Type", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", @@ -10198,13 +10373,13 @@ "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", "WebhookIssueCommentEditedPropIssueAllof1PropUserType", ), - ".group_0528": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), - ".group_0529": ( + ".group_0534": ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",), + ".group_0535": ( "WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType", ), - ".group_0530": ("WebhookIssuesAssignedType",), - ".group_0531": ("WebhookIssuesClosedType",), - ".group_0532": ( + ".group_0536": ("WebhookIssuesAssignedType",), + ".group_0537": ("WebhookIssuesClosedType",), + ".group_0538": ( "WebhookIssuesClosedPropIssueType", "WebhookIssuesClosedPropIssueMergedAssigneeType", "WebhookIssuesClosedPropIssueMergedAssigneesType", @@ -10212,7 +10387,7 @@ "WebhookIssuesClosedPropIssueMergedReactionsType", "WebhookIssuesClosedPropIssueMergedUserType", ), - ".group_0533": ( + ".group_0539": ( "WebhookIssuesClosedPropIssueAllof0Type", "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", @@ -10220,19 +10395,19 @@ "WebhookIssuesClosedPropIssueAllof0PropReactionsType", "WebhookIssuesClosedPropIssueAllof0PropUserType", ), - ".group_0534": ( + ".group_0540": ( "WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType", ), - ".group_0535": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), - ".group_0536": ( + ".group_0541": ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",), + ".group_0542": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ), - ".group_0537": ( + ".group_0543": ( "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType", ), - ".group_0538": ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",), - ".group_0539": ( + ".group_0544": ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",), + ".group_0545": ( "WebhookIssuesClosedPropIssueAllof1Type", "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", @@ -10242,9 +10417,9 @@ "WebhookIssuesClosedPropIssueAllof1PropReactionsType", "WebhookIssuesClosedPropIssueAllof1PropUserType", ), - ".group_0540": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), - ".group_0541": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), - ".group_0542": ( + ".group_0546": ("WebhookIssuesClosedPropIssueMergedMilestoneType",), + ".group_0547": ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",), + ".group_0548": ( "WebhookIssuesDeletedType", "WebhookIssuesDeletedPropIssueType", "WebhookIssuesDeletedPropIssuePropAssigneeType", @@ -10259,7 +10434,7 @@ "WebhookIssuesDeletedPropIssuePropReactionsType", "WebhookIssuesDeletedPropIssuePropUserType", ), - ".group_0543": ( + ".group_0549": ( "WebhookIssuesDemilestonedType", "WebhookIssuesDemilestonedPropIssueType", "WebhookIssuesDemilestonedPropIssuePropAssigneeType", @@ -10274,7 +10449,7 @@ "WebhookIssuesDemilestonedPropIssuePropReactionsType", "WebhookIssuesDemilestonedPropIssuePropUserType", ), - ".group_0544": ( + ".group_0550": ( "WebhookIssuesEditedType", "WebhookIssuesEditedPropChangesType", "WebhookIssuesEditedPropChangesPropBodyType", @@ -10292,7 +10467,7 @@ "WebhookIssuesEditedPropIssuePropReactionsType", "WebhookIssuesEditedPropIssuePropUserType", ), - ".group_0545": ( + ".group_0551": ( "WebhookIssuesLabeledType", "WebhookIssuesLabeledPropIssueType", "WebhookIssuesLabeledPropIssuePropAssigneeType", @@ -10307,7 +10482,7 @@ "WebhookIssuesLabeledPropIssuePropReactionsType", "WebhookIssuesLabeledPropIssuePropUserType", ), - ".group_0546": ( + ".group_0552": ( "WebhookIssuesLockedType", "WebhookIssuesLockedPropIssueType", "WebhookIssuesLockedPropIssuePropAssigneeType", @@ -10322,7 +10497,7 @@ "WebhookIssuesLockedPropIssuePropReactionsType", "WebhookIssuesLockedPropIssuePropUserType", ), - ".group_0547": ( + ".group_0553": ( "WebhookIssuesMilestonedType", "WebhookIssuesMilestonedPropIssueType", "WebhookIssuesMilestonedPropIssuePropAssigneeType", @@ -10337,7 +10512,7 @@ "WebhookIssuesMilestonedPropIssuePropReactionsType", "WebhookIssuesMilestonedPropIssuePropUserType", ), - ".group_0548": ( + ".group_0554": ( "WebhookIssuesOpenedType", "WebhookIssuesOpenedPropIssueType", "WebhookIssuesOpenedPropIssuePropAssigneeType", @@ -10370,8 +10545,8 @@ "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", ), - ".group_0549": ("WebhookIssuesPinnedType",), - ".group_0550": ( + ".group_0555": ("WebhookIssuesPinnedType",), + ".group_0556": ( "WebhookIssuesReopenedType", "WebhookIssuesReopenedPropIssueType", "WebhookIssuesReopenedPropIssuePropAssigneeType", @@ -10386,7 +10561,7 @@ "WebhookIssuesReopenedPropIssuePropReactionsType", "WebhookIssuesReopenedPropIssuePropUserType", ), - ".group_0551": ( + ".group_0557": ( "WebhookIssuesTransferredType", "WebhookIssuesTransferredPropChangesType", "WebhookIssuesTransferredPropChangesPropNewIssueType", @@ -10407,9 +10582,9 @@ "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", ), - ".group_0552": ("WebhookIssuesUnassignedType",), - ".group_0553": ("WebhookIssuesUnlabeledType",), - ".group_0554": ( + ".group_0558": ("WebhookIssuesUnassignedType",), + ".group_0559": ("WebhookIssuesUnlabeledType",), + ".group_0560": ( "WebhookIssuesUnlockedType", "WebhookIssuesUnlockedPropIssueType", "WebhookIssuesUnlockedPropIssuePropAssigneeType", @@ -10424,103 +10599,103 @@ "WebhookIssuesUnlockedPropIssuePropReactionsType", "WebhookIssuesUnlockedPropIssuePropUserType", ), - ".group_0555": ("WebhookIssuesUnpinnedType",), - ".group_0556": ("WebhookLabelCreatedType",), - ".group_0557": ("WebhookLabelDeletedType",), - ".group_0558": ( + ".group_0561": ("WebhookIssuesUnpinnedType",), + ".group_0562": ("WebhookLabelCreatedType",), + ".group_0563": ("WebhookLabelDeletedType",), + ".group_0564": ( "WebhookLabelEditedType", "WebhookLabelEditedPropChangesType", "WebhookLabelEditedPropChangesPropColorType", "WebhookLabelEditedPropChangesPropDescriptionType", "WebhookLabelEditedPropChangesPropNameType", ), - ".group_0559": ("WebhookMarketplacePurchaseCancelledType",), - ".group_0560": ( + ".group_0565": ("WebhookMarketplacePurchaseCancelledType",), + ".group_0566": ( "WebhookMarketplacePurchaseChangedType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", ), - ".group_0561": ( + ".group_0567": ( "WebhookMarketplacePurchasePendingChangeType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", ), - ".group_0562": ( + ".group_0568": ( "WebhookMarketplacePurchasePendingChangeCancelledType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", ), - ".group_0563": ("WebhookMarketplacePurchasePurchasedType",), - ".group_0564": ( + ".group_0569": ("WebhookMarketplacePurchasePurchasedType",), + ".group_0570": ( "WebhookMemberAddedType", "WebhookMemberAddedPropChangesType", "WebhookMemberAddedPropChangesPropPermissionType", "WebhookMemberAddedPropChangesPropRoleNameType", ), - ".group_0565": ( + ".group_0571": ( "WebhookMemberEditedType", "WebhookMemberEditedPropChangesType", "WebhookMemberEditedPropChangesPropOldPermissionType", "WebhookMemberEditedPropChangesPropPermissionType", ), - ".group_0566": ("WebhookMemberRemovedType",), - ".group_0567": ( + ".group_0572": ("WebhookMemberRemovedType",), + ".group_0573": ( "WebhookMembershipAddedType", "WebhookMembershipAddedPropSenderType", ), - ".group_0568": ( + ".group_0574": ( "WebhookMembershipRemovedType", "WebhookMembershipRemovedPropSenderType", ), - ".group_0569": ("WebhookMergeGroupChecksRequestedType",), - ".group_0570": ("WebhookMergeGroupDestroyedType",), - ".group_0571": ( + ".group_0575": ("WebhookMergeGroupChecksRequestedType",), + ".group_0576": ("WebhookMergeGroupDestroyedType",), + ".group_0577": ( "WebhookMetaDeletedType", "WebhookMetaDeletedPropHookType", "WebhookMetaDeletedPropHookPropConfigType", ), - ".group_0572": ("WebhookMilestoneClosedType",), - ".group_0573": ("WebhookMilestoneCreatedType",), - ".group_0574": ("WebhookMilestoneDeletedType",), - ".group_0575": ( + ".group_0578": ("WebhookMilestoneClosedType",), + ".group_0579": ("WebhookMilestoneCreatedType",), + ".group_0580": ("WebhookMilestoneDeletedType",), + ".group_0581": ( "WebhookMilestoneEditedType", "WebhookMilestoneEditedPropChangesType", "WebhookMilestoneEditedPropChangesPropDescriptionType", "WebhookMilestoneEditedPropChangesPropDueOnType", "WebhookMilestoneEditedPropChangesPropTitleType", ), - ".group_0576": ("WebhookMilestoneOpenedType",), - ".group_0577": ("WebhookOrgBlockBlockedType",), - ".group_0578": ("WebhookOrgBlockUnblockedType",), - ".group_0579": ("WebhookOrganizationDeletedType",), - ".group_0580": ("WebhookOrganizationMemberAddedType",), - ".group_0581": ( + ".group_0582": ("WebhookMilestoneOpenedType",), + ".group_0583": ("WebhookOrgBlockBlockedType",), + ".group_0584": ("WebhookOrgBlockUnblockedType",), + ".group_0585": ("WebhookOrganizationDeletedType",), + ".group_0586": ("WebhookOrganizationMemberAddedType",), + ".group_0587": ( "WebhookOrganizationMemberInvitedType", "WebhookOrganizationMemberInvitedPropInvitationType", "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", ), - ".group_0582": ("WebhookOrganizationMemberRemovedType",), - ".group_0583": ( + ".group_0588": ("WebhookOrganizationMemberRemovedType",), + ".group_0589": ( "WebhookOrganizationRenamedType", "WebhookOrganizationRenamedPropChangesType", "WebhookOrganizationRenamedPropChangesPropLoginType", ), - ".group_0584": ( + ".group_0590": ( "WebhookRubygemsMetadataType", "WebhookRubygemsMetadataPropVersionInfoType", "WebhookRubygemsMetadataPropMetadataType", "WebhookRubygemsMetadataPropDependenciesItemsType", ), - ".group_0585": ("WebhookPackagePublishedType",), - ".group_0586": ( + ".group_0591": ("WebhookPackagePublishedType",), + ".group_0592": ( "WebhookPackagePublishedPropPackageType", "WebhookPackagePublishedPropPackagePropOwnerType", "WebhookPackagePublishedPropPackagePropRegistryType", ), - ".group_0587": ( + ".group_0593": ( "WebhookPackagePublishedPropPackagePropPackageVersionType", "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", @@ -10552,13 +10727,13 @@ "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0588": ("WebhookPackageUpdatedType",), - ".group_0589": ( + ".group_0594": ("WebhookPackageUpdatedType",), + ".group_0595": ( "WebhookPackageUpdatedPropPackageType", "WebhookPackageUpdatedPropPackagePropOwnerType", "WebhookPackageUpdatedPropPackagePropRegistryType", ), - ".group_0590": ( + ".group_0596": ( "WebhookPackageUpdatedPropPackagePropPackageVersionType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", @@ -10567,75 +10742,75 @@ "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0591": ( + ".group_0597": ( "WebhookPageBuildType", "WebhookPageBuildPropBuildType", "WebhookPageBuildPropBuildPropErrorType", "WebhookPageBuildPropBuildPropPusherType", ), - ".group_0592": ("WebhookPersonalAccessTokenRequestApprovedType",), - ".group_0593": ("WebhookPersonalAccessTokenRequestCancelledType",), - ".group_0594": ("WebhookPersonalAccessTokenRequestCreatedType",), - ".group_0595": ("WebhookPersonalAccessTokenRequestDeniedType",), - ".group_0596": ("WebhookPingType",), - ".group_0597": ( + ".group_0598": ("WebhookPersonalAccessTokenRequestApprovedType",), + ".group_0599": ("WebhookPersonalAccessTokenRequestCancelledType",), + ".group_0600": ("WebhookPersonalAccessTokenRequestCreatedType",), + ".group_0601": ("WebhookPersonalAccessTokenRequestDeniedType",), + ".group_0602": ("WebhookPingType",), + ".group_0603": ( "WebhookPingPropHookType", "WebhookPingPropHookPropConfigType", ), - ".group_0598": ("WebhookPingFormEncodedType",), - ".group_0599": ( + ".group_0604": ("WebhookPingFormEncodedType",), + ".group_0605": ( "WebhookProjectCardConvertedType", "WebhookProjectCardConvertedPropChangesType", "WebhookProjectCardConvertedPropChangesPropNoteType", ), - ".group_0600": ("WebhookProjectCardCreatedType",), - ".group_0601": ( + ".group_0606": ("WebhookProjectCardCreatedType",), + ".group_0607": ( "WebhookProjectCardDeletedType", "WebhookProjectCardDeletedPropProjectCardType", "WebhookProjectCardDeletedPropProjectCardPropCreatorType", ), - ".group_0602": ( + ".group_0608": ( "WebhookProjectCardEditedType", "WebhookProjectCardEditedPropChangesType", "WebhookProjectCardEditedPropChangesPropNoteType", ), - ".group_0603": ( + ".group_0609": ( "WebhookProjectCardMovedType", "WebhookProjectCardMovedPropChangesType", "WebhookProjectCardMovedPropChangesPropColumnIdType", "WebhookProjectCardMovedPropProjectCardType", "WebhookProjectCardMovedPropProjectCardMergedCreatorType", ), - ".group_0604": ( + ".group_0610": ( "WebhookProjectCardMovedPropProjectCardAllof0Type", "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", ), - ".group_0605": ( + ".group_0611": ( "WebhookProjectCardMovedPropProjectCardAllof1Type", "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", ), - ".group_0606": ("WebhookProjectClosedType",), - ".group_0607": ("WebhookProjectColumnCreatedType",), - ".group_0608": ("WebhookProjectColumnDeletedType",), - ".group_0609": ( + ".group_0612": ("WebhookProjectClosedType",), + ".group_0613": ("WebhookProjectColumnCreatedType",), + ".group_0614": ("WebhookProjectColumnDeletedType",), + ".group_0615": ( "WebhookProjectColumnEditedType", "WebhookProjectColumnEditedPropChangesType", "WebhookProjectColumnEditedPropChangesPropNameType", ), - ".group_0610": ("WebhookProjectColumnMovedType",), - ".group_0611": ("WebhookProjectCreatedType",), - ".group_0612": ("WebhookProjectDeletedType",), - ".group_0613": ( + ".group_0616": ("WebhookProjectColumnMovedType",), + ".group_0617": ("WebhookProjectCreatedType",), + ".group_0618": ("WebhookProjectDeletedType",), + ".group_0619": ( "WebhookProjectEditedType", "WebhookProjectEditedPropChangesType", "WebhookProjectEditedPropChangesPropBodyType", "WebhookProjectEditedPropChangesPropNameType", ), - ".group_0614": ("WebhookProjectReopenedType",), - ".group_0615": ("WebhookProjectsV2ProjectClosedType",), - ".group_0616": ("WebhookProjectsV2ProjectCreatedType",), - ".group_0617": ("WebhookProjectsV2ProjectDeletedType",), - ".group_0618": ( + ".group_0620": ("WebhookProjectReopenedType",), + ".group_0621": ("WebhookProjectsV2ProjectClosedType",), + ".group_0622": ("WebhookProjectsV2ProjectCreatedType",), + ".group_0623": ("WebhookProjectsV2ProjectDeletedType",), + ".group_0624": ( "WebhookProjectsV2ProjectEditedType", "WebhookProjectsV2ProjectEditedPropChangesType", "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", @@ -10643,30 +10818,42 @@ "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", ), - ".group_0619": ("WebhookProjectsV2ItemArchivedType",), - ".group_0620": ( + ".group_0625": ("WebhookProjectsV2ItemArchivedType",), + ".group_0626": ( "WebhookProjectsV2ItemConvertedType", "WebhookProjectsV2ItemConvertedPropChangesType", "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", ), - ".group_0621": ("WebhookProjectsV2ItemCreatedType",), - ".group_0622": ("WebhookProjectsV2ItemDeletedType",), - ".group_0623": ( + ".group_0627": ("WebhookProjectsV2ItemCreatedType",), + ".group_0628": ("WebhookProjectsV2ItemDeletedType",), + ".group_0629": ( "WebhookProjectsV2ItemEditedType", "WebhookProjectsV2ItemEditedPropChangesOneof0Type", "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", + "ProjectsV2SingleSelectOptionType", + "ProjectsV2IterationSettingType", "WebhookProjectsV2ItemEditedPropChangesOneof1Type", "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", ), - ".group_0624": ( + ".group_0630": ( "WebhookProjectsV2ItemReorderedType", "WebhookProjectsV2ItemReorderedPropChangesType", "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", ), - ".group_0625": ("WebhookProjectsV2ItemRestoredType",), - ".group_0626": ("WebhookProjectsV2ProjectReopenedType",), - ".group_0627": ("WebhookPublicType",), - ".group_0628": ( + ".group_0631": ("WebhookProjectsV2ItemRestoredType",), + ".group_0632": ("WebhookProjectsV2ProjectReopenedType",), + ".group_0633": ("WebhookProjectsV2StatusUpdateCreatedType",), + ".group_0634": ("WebhookProjectsV2StatusUpdateDeletedType",), + ".group_0635": ( + "WebhookProjectsV2StatusUpdateEditedType", + "WebhookProjectsV2StatusUpdateEditedPropChangesType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType", + ), + ".group_0636": ("WebhookPublicType",), + ".group_0637": ( "WebhookPullRequestAssignedType", "WebhookPullRequestAssignedPropPullRequestType", "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", @@ -10705,7 +10892,7 @@ "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0629": ( + ".group_0638": ( "WebhookPullRequestAutoMergeDisabledType", "WebhookPullRequestAutoMergeDisabledPropPullRequestType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", @@ -10744,7 +10931,7 @@ "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0630": ( + ".group_0639": ( "WebhookPullRequestAutoMergeEnabledType", "WebhookPullRequestAutoMergeEnabledPropPullRequestType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", @@ -10783,10 +10970,10 @@ "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0631": ("WebhookPullRequestClosedType",), - ".group_0632": ("WebhookPullRequestConvertedToDraftType",), - ".group_0633": ("WebhookPullRequestDemilestonedType",), - ".group_0634": ( + ".group_0640": ("WebhookPullRequestClosedType",), + ".group_0641": ("WebhookPullRequestConvertedToDraftType",), + ".group_0642": ("WebhookPullRequestDemilestonedType",), + ".group_0643": ( "WebhookPullRequestDequeuedType", "WebhookPullRequestDequeuedPropPullRequestType", "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", @@ -10825,7 +11012,7 @@ "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0635": ( + ".group_0644": ( "WebhookPullRequestEditedType", "WebhookPullRequestEditedPropChangesType", "WebhookPullRequestEditedPropChangesPropBodyType", @@ -10834,7 +11021,7 @@ "WebhookPullRequestEditedPropChangesPropBasePropRefType", "WebhookPullRequestEditedPropChangesPropBasePropShaType", ), - ".group_0636": ( + ".group_0645": ( "WebhookPullRequestEnqueuedType", "WebhookPullRequestEnqueuedPropPullRequestType", "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", @@ -10873,7 +11060,7 @@ "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0637": ( + ".group_0646": ( "WebhookPullRequestLabeledType", "WebhookPullRequestLabeledPropPullRequestType", "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", @@ -10912,7 +11099,7 @@ "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0638": ( + ".group_0647": ( "WebhookPullRequestLockedType", "WebhookPullRequestLockedPropPullRequestType", "WebhookPullRequestLockedPropPullRequestPropAssigneeType", @@ -10951,11 +11138,11 @@ "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0639": ("WebhookPullRequestMilestonedType",), - ".group_0640": ("WebhookPullRequestOpenedType",), - ".group_0641": ("WebhookPullRequestReadyForReviewType",), - ".group_0642": ("WebhookPullRequestReopenedType",), - ".group_0643": ( + ".group_0648": ("WebhookPullRequestMilestonedType",), + ".group_0649": ("WebhookPullRequestOpenedType",), + ".group_0650": ("WebhookPullRequestReadyForReviewType",), + ".group_0651": ("WebhookPullRequestReopenedType",), + ".group_0652": ( "WebhookPullRequestReviewCommentCreatedType", "WebhookPullRequestReviewCommentCreatedPropCommentType", "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", @@ -11000,7 +11187,7 @@ "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0644": ( + ".group_0653": ( "WebhookPullRequestReviewCommentDeletedType", "WebhookPullRequestReviewCommentDeletedPropPullRequestType", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", @@ -11038,7 +11225,7 @@ "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0645": ( + ".group_0654": ( "WebhookPullRequestReviewCommentEditedType", "WebhookPullRequestReviewCommentEditedPropPullRequestType", "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", @@ -11076,7 +11263,7 @@ "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0646": ( + ".group_0655": ( "WebhookPullRequestReviewDismissedType", "WebhookPullRequestReviewDismissedPropReviewType", "WebhookPullRequestReviewDismissedPropReviewPropUserType", @@ -11119,7 +11306,7 @@ "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0647": ( + ".group_0656": ( "WebhookPullRequestReviewEditedType", "WebhookPullRequestReviewEditedPropChangesType", "WebhookPullRequestReviewEditedPropChangesPropBodyType", @@ -11159,7 +11346,7 @@ "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0648": ( + ".group_0657": ( "WebhookPullRequestReviewRequestRemovedOneof0Type", "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", @@ -11199,7 +11386,7 @@ "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0649": ( + ".group_0658": ( "WebhookPullRequestReviewRequestRemovedOneof1Type", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", @@ -11240,7 +11427,7 @@ "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0650": ( + ".group_0659": ( "WebhookPullRequestReviewRequestedOneof0Type", "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", @@ -11280,7 +11467,7 @@ "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0651": ( + ".group_0660": ( "WebhookPullRequestReviewRequestedOneof1Type", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", @@ -11321,7 +11508,7 @@ "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0652": ( + ".group_0661": ( "WebhookPullRequestReviewSubmittedType", "WebhookPullRequestReviewSubmittedPropPullRequestType", "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", @@ -11359,7 +11546,7 @@ "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0653": ( + ".group_0662": ( "WebhookPullRequestReviewThreadResolvedType", "WebhookPullRequestReviewThreadResolvedPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", @@ -11405,7 +11592,7 @@ "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0654": ( + ".group_0663": ( "WebhookPullRequestReviewThreadUnresolvedType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", @@ -11451,7 +11638,7 @@ "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ), - ".group_0655": ( + ".group_0664": ( "WebhookPullRequestSynchronizeType", "WebhookPullRequestSynchronizePropPullRequestType", "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", @@ -11490,7 +11677,7 @@ "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0656": ( + ".group_0665": ( "WebhookPullRequestUnassignedType", "WebhookPullRequestUnassignedPropPullRequestType", "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", @@ -11529,7 +11716,7 @@ "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0657": ( + ".group_0666": ( "WebhookPullRequestUnlabeledType", "WebhookPullRequestUnlabeledPropPullRequestType", "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", @@ -11568,7 +11755,7 @@ "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0658": ( + ".group_0667": ( "WebhookPullRequestUnlockedType", "WebhookPullRequestUnlockedPropPullRequestType", "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", @@ -11607,7 +11794,7 @@ "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", ), - ".group_0659": ( + ".group_0668": ( "WebhookPushType", "WebhookPushPropHeadCommitType", "WebhookPushPropHeadCommitPropAuthorType", @@ -11622,13 +11809,13 @@ "WebhookPushPropRepositoryPropOwnerType", "WebhookPushPropRepositoryPropPermissionsType", ), - ".group_0660": ("WebhookRegistryPackagePublishedType",), - ".group_0661": ( + ".group_0669": ("WebhookRegistryPackagePublishedType",), + ".group_0670": ( "WebhookRegistryPackagePublishedPropRegistryPackageType", "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", ), - ".group_0662": ( + ".group_0671": ( "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", @@ -11659,13 +11846,13 @@ "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0663": ("WebhookRegistryPackageUpdatedType",), - ".group_0664": ( + ".group_0672": ("WebhookRegistryPackageUpdatedType",), + ".group_0673": ( "WebhookRegistryPackageUpdatedPropRegistryPackageType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", ), - ".group_0665": ( + ".group_0674": ( "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", @@ -11674,16 +11861,16 @@ "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", ), - ".group_0666": ("WebhookReleaseCreatedType",), - ".group_0667": ("WebhookReleaseDeletedType",), - ".group_0668": ( + ".group_0675": ("WebhookReleaseCreatedType",), + ".group_0676": ("WebhookReleaseDeletedType",), + ".group_0677": ( "WebhookReleaseEditedType", "WebhookReleaseEditedPropChangesType", "WebhookReleaseEditedPropChangesPropBodyType", "WebhookReleaseEditedPropChangesPropNameType", "WebhookReleaseEditedPropChangesPropMakeLatestType", ), - ".group_0669": ( + ".group_0678": ( "WebhookReleasePrereleasedType", "WebhookReleasePrereleasedPropReleaseType", "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", @@ -11691,19 +11878,19 @@ "WebhookReleasePrereleasedPropReleasePropAuthorType", "WebhookReleasePrereleasedPropReleasePropReactionsType", ), - ".group_0670": ("WebhookReleasePublishedType",), - ".group_0671": ("WebhookReleaseReleasedType",), - ".group_0672": ("WebhookReleaseUnpublishedType",), - ".group_0673": ("WebhookRepositoryAdvisoryPublishedType",), - ".group_0674": ("WebhookRepositoryAdvisoryReportedType",), - ".group_0675": ("WebhookRepositoryArchivedType",), - ".group_0676": ("WebhookRepositoryCreatedType",), - ".group_0677": ("WebhookRepositoryDeletedType",), - ".group_0678": ( + ".group_0679": ("WebhookReleasePublishedType",), + ".group_0680": ("WebhookReleaseReleasedType",), + ".group_0681": ("WebhookReleaseUnpublishedType",), + ".group_0682": ("WebhookRepositoryAdvisoryPublishedType",), + ".group_0683": ("WebhookRepositoryAdvisoryReportedType",), + ".group_0684": ("WebhookRepositoryArchivedType",), + ".group_0685": ("WebhookRepositoryCreatedType",), + ".group_0686": ("WebhookRepositoryDeletedType",), + ".group_0687": ( "WebhookRepositoryDispatchSampleType", "WebhookRepositoryDispatchSamplePropClientPayloadType", ), - ".group_0679": ( + ".group_0688": ( "WebhookRepositoryEditedType", "WebhookRepositoryEditedPropChangesType", "WebhookRepositoryEditedPropChangesPropDefaultBranchType", @@ -11711,25 +11898,25 @@ "WebhookRepositoryEditedPropChangesPropHomepageType", "WebhookRepositoryEditedPropChangesPropTopicsType", ), - ".group_0680": ("WebhookRepositoryImportType",), - ".group_0681": ("WebhookRepositoryPrivatizedType",), - ".group_0682": ("WebhookRepositoryPublicizedType",), - ".group_0683": ( + ".group_0689": ("WebhookRepositoryImportType",), + ".group_0690": ("WebhookRepositoryPrivatizedType",), + ".group_0691": ("WebhookRepositoryPublicizedType",), + ".group_0692": ( "WebhookRepositoryRenamedType", "WebhookRepositoryRenamedPropChangesType", "WebhookRepositoryRenamedPropChangesPropRepositoryType", "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", ), - ".group_0684": ("WebhookRepositoryRulesetCreatedType",), - ".group_0685": ("WebhookRepositoryRulesetDeletedType",), - ".group_0686": ("WebhookRepositoryRulesetEditedType",), - ".group_0687": ( + ".group_0693": ("WebhookRepositoryRulesetCreatedType",), + ".group_0694": ("WebhookRepositoryRulesetDeletedType",), + ".group_0695": ("WebhookRepositoryRulesetEditedType",), + ".group_0696": ( "WebhookRepositoryRulesetEditedPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropNameType", "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", ), - ".group_0688": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), - ".group_0689": ( + ".group_0697": ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",), + ".group_0698": ( "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", @@ -11737,15 +11924,15 @@ "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", ), - ".group_0690": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), - ".group_0691": ( + ".group_0699": ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",), + ".group_0700": ( "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", ), - ".group_0692": ( + ".group_0701": ( "WebhookRepositoryTransferredType", "WebhookRepositoryTransferredPropChangesType", "WebhookRepositoryTransferredPropChangesPropOwnerType", @@ -11753,21 +11940,21 @@ "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", ), - ".group_0693": ("WebhookRepositoryUnarchivedType",), - ".group_0694": ("WebhookRepositoryVulnerabilityAlertCreateType",), - ".group_0695": ( + ".group_0702": ("WebhookRepositoryUnarchivedType",), + ".group_0703": ("WebhookRepositoryVulnerabilityAlertCreateType",), + ".group_0704": ( "WebhookRepositoryVulnerabilityAlertDismissType", "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", ), - ".group_0696": ("WebhookRepositoryVulnerabilityAlertReopenType",), - ".group_0697": ( + ".group_0705": ("WebhookRepositoryVulnerabilityAlertReopenType",), + ".group_0706": ( "WebhookRepositoryVulnerabilityAlertResolveType", "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", ), - ".group_0698": ("WebhookSecretScanningAlertCreatedType",), - ".group_0699": ( + ".group_0707": ("WebhookSecretScanningAlertCreatedType",), + ".group_0708": ( "WebhookSecretScanningAlertLocationCreatedType", "SecretScanningLocationType", "SecretScanningLocationCommitType", @@ -11784,13 +11971,13 @@ "SecretScanningLocationPullRequestReviewType", "SecretScanningLocationPullRequestReviewCommentType", ), - ".group_0700": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), - ".group_0701": ("WebhookSecretScanningAlertReopenedType",), - ".group_0702": ("WebhookSecretScanningAlertResolvedType",), - ".group_0703": ("WebhookSecretScanningAlertValidatedType",), - ".group_0704": ("WebhookSecurityAdvisoryPublishedType",), - ".group_0705": ("WebhookSecurityAdvisoryUpdatedType",), - ".group_0706": ( + ".group_0709": ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",), + ".group_0710": ("WebhookSecretScanningAlertReopenedType",), + ".group_0711": ("WebhookSecretScanningAlertResolvedType",), + ".group_0712": ("WebhookSecretScanningAlertValidatedType",), + ".group_0713": ("WebhookSecurityAdvisoryPublishedType",), + ".group_0714": ("WebhookSecurityAdvisoryUpdatedType",), + ".group_0715": ( "WebhookSecurityAdvisoryWithdrawnType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", @@ -11801,22 +11988,22 @@ "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", ), - ".group_0707": ("WebhookSecurityAndAnalysisType",), - ".group_0708": ("WebhookSecurityAndAnalysisPropChangesType",), - ".group_0709": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), - ".group_0710": ("WebhookSponsorshipCancelledType",), - ".group_0711": ("WebhookSponsorshipCreatedType",), - ".group_0712": ( + ".group_0716": ("WebhookSecurityAndAnalysisType",), + ".group_0717": ("WebhookSecurityAndAnalysisPropChangesType",), + ".group_0718": ("WebhookSecurityAndAnalysisPropChangesPropFromType",), + ".group_0719": ("WebhookSponsorshipCancelledType",), + ".group_0720": ("WebhookSponsorshipCreatedType",), + ".group_0721": ( "WebhookSponsorshipEditedType", "WebhookSponsorshipEditedPropChangesType", "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", ), - ".group_0713": ("WebhookSponsorshipPendingCancellationType",), - ".group_0714": ("WebhookSponsorshipPendingTierChangeType",), - ".group_0715": ("WebhookSponsorshipTierChangedType",), - ".group_0716": ("WebhookStarCreatedType",), - ".group_0717": ("WebhookStarDeletedType",), - ".group_0718": ( + ".group_0722": ("WebhookSponsorshipPendingCancellationType",), + ".group_0723": ("WebhookSponsorshipPendingTierChangeType",), + ".group_0724": ("WebhookSponsorshipTierChangedType",), + ".group_0725": ("WebhookStarCreatedType",), + ".group_0726": ("WebhookStarDeletedType",), + ".group_0727": ( "WebhookStatusType", "WebhookStatusPropBranchesItemsType", "WebhookStatusPropBranchesItemsPropCommitType", @@ -11830,12 +12017,12 @@ "WebhookStatusPropCommitPropCommitPropTreeType", "WebhookStatusPropCommitPropCommitPropVerificationType", ), - ".group_0719": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), - ".group_0720": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), - ".group_0721": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), - ".group_0722": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), - ".group_0723": ("WebhookTeamAddType",), - ".group_0724": ( + ".group_0728": ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",), + ".group_0729": ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",), + ".group_0730": ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",), + ".group_0731": ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",), + ".group_0732": ("WebhookTeamAddType",), + ".group_0733": ( "WebhookTeamAddedToRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryType", "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", @@ -11843,7 +12030,7 @@ "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", ), - ".group_0725": ( + ".group_0734": ( "WebhookTeamCreatedType", "WebhookTeamCreatedPropRepositoryType", "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", @@ -11851,7 +12038,7 @@ "WebhookTeamCreatedPropRepositoryPropOwnerType", "WebhookTeamCreatedPropRepositoryPropPermissionsType", ), - ".group_0726": ( + ".group_0735": ( "WebhookTeamDeletedType", "WebhookTeamDeletedPropRepositoryType", "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", @@ -11859,7 +12046,7 @@ "WebhookTeamDeletedPropRepositoryPropOwnerType", "WebhookTeamDeletedPropRepositoryPropPermissionsType", ), - ".group_0727": ( + ".group_0736": ( "WebhookTeamEditedType", "WebhookTeamEditedPropRepositoryType", "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", @@ -11875,7 +12062,7 @@ "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", ), - ".group_0728": ( + ".group_0737": ( "WebhookTeamRemovedFromRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryType", "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", @@ -11883,48 +12070,48 @@ "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", ), - ".group_0729": ("WebhookWatchStartedType",), - ".group_0730": ( + ".group_0738": ("WebhookWatchStartedType",), + ".group_0739": ( "WebhookWorkflowDispatchType", "WebhookWorkflowDispatchPropInputsType", ), - ".group_0731": ( + ".group_0740": ( "WebhookWorkflowJobCompletedType", "WebhookWorkflowJobCompletedPropWorkflowJobType", "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", ), - ".group_0732": ( + ".group_0741": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0733": ( + ".group_0742": ( "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0734": ( + ".group_0743": ( "WebhookWorkflowJobInProgressType", "WebhookWorkflowJobInProgressPropWorkflowJobType", "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", ), - ".group_0735": ( + ".group_0744": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", ), - ".group_0736": ( + ".group_0745": ( "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", ), - ".group_0737": ( + ".group_0746": ( "WebhookWorkflowJobQueuedType", "WebhookWorkflowJobQueuedPropWorkflowJobType", "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", ), - ".group_0738": ( + ".group_0747": ( "WebhookWorkflowJobWaitingType", "WebhookWorkflowJobWaitingPropWorkflowJobType", "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", ), - ".group_0739": ( + ".group_0748": ( "WebhookWorkflowRunCompletedType", "WebhookWorkflowRunCompletedPropWorkflowRunType", "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", @@ -11943,7 +12130,7 @@ "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0740": ( + ".group_0749": ( "WebhookWorkflowRunInProgressType", "WebhookWorkflowRunInProgressPropWorkflowRunType", "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", @@ -11962,7 +12149,7 @@ "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0741": ( + ".group_0750": ( "WebhookWorkflowRunRequestedType", "WebhookWorkflowRunRequestedPropWorkflowRunType", "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", @@ -11981,232 +12168,269 @@ "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ), - ".group_0742": ("AppManifestsCodeConversionsPostResponse201Type",), - ".group_0743": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), - ".group_0744": ("AppHookConfigPatchBodyType",), - ".group_0745": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), - ".group_0746": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), - ".group_0747": ("ApplicationsClientIdGrantDeleteBodyType",), - ".group_0748": ("ApplicationsClientIdTokenPostBodyType",), - ".group_0749": ("ApplicationsClientIdTokenDeleteBodyType",), - ".group_0750": ("ApplicationsClientIdTokenPatchBodyType",), - ".group_0751": ("ApplicationsClientIdTokenScopedPostBodyType",), - ".group_0752": ("EmojisGetResponse200Type",), - ".group_0753": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",), - ".group_0754": ( + ".group_0751": ("AppManifestsCodeConversionsPostResponse201Type",), + ".group_0752": ("AppManifestsCodeConversionsPostResponse201Allof1Type",), + ".group_0753": ("AppHookConfigPatchBodyType",), + ".group_0754": ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",), + ".group_0755": ("AppInstallationsInstallationIdAccessTokensPostBodyType",), + ".group_0756": ("ApplicationsClientIdGrantDeleteBodyType",), + ".group_0757": ("ApplicationsClientIdTokenPostBodyType",), + ".group_0758": ("ApplicationsClientIdTokenDeleteBodyType",), + ".group_0759": ("ApplicationsClientIdTokenPatchBodyType",), + ".group_0760": ("ApplicationsClientIdTokenScopedPostBodyType",), + ".group_0761": ("EmojisGetResponse200Type",), + ".group_0762": ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type",), + ".group_0763": ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",), + ".group_0764": ( "GistsPostBodyType", "GistsPostBodyPropFilesType", ), - ".group_0755": ( + ".group_0765": ( "GistsGistIdGetResponse403Type", "GistsGistIdGetResponse403PropBlockType", ), - ".group_0756": ( + ".group_0766": ( "GistsGistIdPatchBodyType", "GistsGistIdPatchBodyPropFilesType", ), - ".group_0757": ("GistsGistIdCommentsPostBodyType",), - ".group_0758": ("GistsGistIdCommentsCommentIdPatchBodyType",), - ".group_0759": ("GistsGistIdStarGetResponse404Type",), - ".group_0760": ("InstallationRepositoriesGetResponse200Type",), - ".group_0761": ("MarkdownPostBodyType",), - ".group_0762": ("NotificationsPutBodyType",), - ".group_0763": ("NotificationsPutResponse202Type",), - ".group_0764": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), - ".group_0765": ("OrgsOrgPatchBodyType",), - ".group_0766": ( + ".group_0767": ("GistsGistIdCommentsPostBodyType",), + ".group_0768": ("GistsGistIdCommentsCommentIdPatchBodyType",), + ".group_0769": ("GistsGistIdStarGetResponse404Type",), + ".group_0770": ("InstallationRepositoriesGetResponse200Type",), + ".group_0771": ("MarkdownPostBodyType",), + ".group_0772": ("NotificationsPutBodyType",), + ".group_0773": ("NotificationsPutResponse202Type",), + ".group_0774": ("NotificationsThreadsThreadIdSubscriptionPutBodyType",), + ".group_0775": ("OrgsOrgPatchBodyType",), + ".group_0776": ( "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", "ActionsCacheUsageByRepositoryType", ), - ".group_0767": ("OrgsOrgActionsPermissionsPutBodyType",), - ".group_0768": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), - ".group_0769": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), - ".group_0770": ("OrgsOrgActionsRunnersGetResponse200Type",), - ".group_0771": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), - ".group_0772": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",), - ".group_0773": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",), - ".group_0774": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_0775": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_0776": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",), - ".group_0777": ( + ".group_0777": ("OrgsOrgActionsPermissionsPutBodyType",), + ".group_0778": ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",), + ".group_0779": ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",), + ".group_0780": ("OrgsOrgActionsRunnersGetResponse200Type",), + ".group_0781": ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",), + ".group_0782": ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",), + ".group_0783": ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",), + ".group_0784": ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_0785": ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_0786": ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",), + ".group_0787": ( "OrgsOrgActionsSecretsGetResponse200Type", "OrganizationActionsSecretType", ), - ".group_0778": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), - ".group_0779": ( + ".group_0788": ("OrgsOrgActionsSecretsSecretNamePutBodyType",), + ".group_0789": ( "OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0780": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), - ".group_0781": ( + ".group_0790": ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",), + ".group_0791": ( "OrgsOrgActionsVariablesGetResponse200Type", "OrganizationActionsVariableType", ), - ".group_0782": ("OrgsOrgActionsVariablesPostBodyType",), - ".group_0783": ("OrgsOrgActionsVariablesNamePatchBodyType",), - ".group_0784": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), - ".group_0785": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), - ".group_0786": ("OrgsOrgCodespacesGetResponse200Type",), - ".group_0787": ("OrgsOrgCodespacesAccessPutBodyType",), - ".group_0788": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), - ".group_0789": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), - ".group_0790": ( + ".group_0792": ("OrgsOrgActionsVariablesPostBodyType",), + ".group_0793": ("OrgsOrgActionsVariablesNamePatchBodyType",), + ".group_0794": ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",), + ".group_0795": ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",), + ".group_0796": ( + "OrgsOrgAttestationsSubjectDigestGetResponse200Type", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", + ), + ".group_0797": ("OrgsOrgCodeSecurityConfigurationsPostBodyType",), + ".group_0798": ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType", + ), + ".group_0799": ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType", + ), + ".group_0800": ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType", + ), + ".group_0801": ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", + ), + ".group_0802": ("OrgsOrgCodespacesGetResponse200Type",), + ".group_0803": ("OrgsOrgCodespacesAccessPutBodyType",), + ".group_0804": ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",), + ".group_0805": ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",), + ".group_0806": ( "OrgsOrgCodespacesSecretsGetResponse200Type", "CodespacesOrgSecretType", ), - ".group_0791": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), - ".group_0792": ( + ".group_0807": ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",), + ".group_0808": ( "OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0793": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_0794": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), - ".group_0795": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), - ".group_0796": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), - ".group_0797": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), - ".group_0798": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), - ".group_0799": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), - ".group_0800": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), - ".group_0801": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), - ".group_0802": ( + ".group_0809": ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_0810": ("OrgsOrgCopilotBillingSeatsGetResponse200Type",), + ".group_0811": ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",), + ".group_0812": ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",), + ".group_0813": ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",), + ".group_0814": ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",), + ".group_0815": ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",), + ".group_0816": ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",), + ".group_0817": ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",), + ".group_0818": ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",), + ".group_0819": ( "OrgsOrgDependabotSecretsGetResponse200Type", "OrganizationDependabotSecretType", ), - ".group_0803": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), - ".group_0804": ( + ".group_0820": ("OrgsOrgDependabotSecretsSecretNamePutBodyType",), + ".group_0821": ( "OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_0805": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), - ".group_0806": ( + ".group_0822": ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",), + ".group_0823": ( "OrgsOrgHooksPostBodyType", "OrgsOrgHooksPostBodyPropConfigType", ), - ".group_0807": ( + ".group_0824": ( "OrgsOrgHooksHookIdPatchBodyType", "OrgsOrgHooksHookIdPatchBodyPropConfigType", ), - ".group_0808": ("OrgsOrgHooksHookIdConfigPatchBodyType",), - ".group_0809": ("OrgsOrgInstallationsGetResponse200Type",), - ".group_0810": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), - ".group_0811": ("OrgsOrgInvitationsPostBodyType",), - ".group_0812": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), - ".group_0813": ("OrgsOrgMembershipsUsernamePutBodyType",), - ".group_0814": ("OrgsOrgMigrationsPostBodyType",), - ".group_0815": ("OrgsOrgOrganizationRolesPostBodyType",), - ".group_0816": ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",), - ".group_0817": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), - ".group_0818": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), - ".group_0819": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), - ".group_0820": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), - ".group_0821": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), - ".group_0822": ("OrgsOrgPersonalAccessTokensPostBodyType",), - ".group_0823": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), - ".group_0824": ("OrgsOrgProjectsPostBodyType",), - ".group_0825": ("OrgsOrgPropertiesSchemaPatchBodyType",), - ".group_0826": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",), - ".group_0827": ("OrgsOrgPropertiesValuesPatchBodyType",), - ".group_0828": ( + ".group_0825": ("OrgsOrgHooksHookIdConfigPatchBodyType",), + ".group_0826": ("OrgsOrgInstallationsGetResponse200Type",), + ".group_0827": ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",), + ".group_0828": ("OrgsOrgInvitationsPostBodyType",), + ".group_0829": ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",), + ".group_0830": ("OrgsOrgMembershipsUsernamePutBodyType",), + ".group_0831": ("OrgsOrgMigrationsPostBodyType",), + ".group_0832": ("OrgsOrgOrganizationRolesPostBodyType",), + ".group_0833": ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",), + ".group_0834": ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",), + ".group_0835": ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",), + ".group_0836": ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",), + ".group_0837": ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",), + ".group_0838": ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",), + ".group_0839": ("OrgsOrgPersonalAccessTokensPostBodyType",), + ".group_0840": ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",), + ".group_0841": ("OrgsOrgProjectsPostBodyType",), + ".group_0842": ("OrgsOrgPropertiesSchemaPatchBodyType",), + ".group_0843": ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",), + ".group_0844": ("OrgsOrgPropertiesValuesPatchBodyType",), + ".group_0845": ( "OrgsOrgReposPostBodyType", "OrgsOrgReposPostBodyPropCustomPropertiesType", ), - ".group_0829": ("OrgsOrgRulesetsPostBodyType",), - ".group_0830": ("OrgsOrgRulesetsRulesetIdPutBodyType",), - ".group_0831": ("OrgsOrgTeamsPostBodyType",), - ".group_0832": ("OrgsOrgTeamsTeamSlugPatchBodyType",), - ".group_0833": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), - ".group_0834": ( + ".group_0846": ("OrgsOrgRulesetsPostBodyType",), + ".group_0847": ("OrgsOrgRulesetsRulesetIdPutBodyType",), + ".group_0848": ("OrgsOrgTeamsPostBodyType",), + ".group_0849": ("OrgsOrgTeamsTeamSlugPatchBodyType",), + ".group_0850": ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",), + ".group_0851": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType", ), - ".group_0835": ( + ".group_0852": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType", ), - ".group_0836": ( + ".group_0853": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_0837": ( + ".group_0854": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_0838": ( + ".group_0855": ( "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType", ), - ".group_0839": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), - ".group_0840": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), - ".group_0841": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), - ".group_0842": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), - ".group_0843": ("OrgsOrgSecurityProductEnablementPostBodyType",), - ".group_0844": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), - ".group_0845": ("ProjectsColumnsCardsCardIdPatchBodyType",), - ".group_0846": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), - ".group_0847": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), - ".group_0848": ( + ".group_0856": ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",), + ".group_0857": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",), + ".group_0858": ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",), + ".group_0859": ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",), + ".group_0860": ("OrgsOrgSecurityProductEnablementPostBodyType",), + ".group_0861": ("ProjectsColumnsCardsCardIdDeleteResponse403Type",), + ".group_0862": ("ProjectsColumnsCardsCardIdPatchBodyType",), + ".group_0863": ("ProjectsColumnsCardsCardIdMovesPostBodyType",), + ".group_0864": ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",), + ".group_0865": ( "ProjectsColumnsCardsCardIdMovesPostResponse403Type", "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", ), - ".group_0849": ( + ".group_0866": ( "ProjectsColumnsCardsCardIdMovesPostResponse503Type", "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", ), - ".group_0850": ("ProjectsColumnsColumnIdPatchBodyType",), - ".group_0851": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), - ".group_0852": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), - ".group_0853": ( + ".group_0867": ("ProjectsColumnsColumnIdPatchBodyType",), + ".group_0868": ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",), + ".group_0869": ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",), + ".group_0870": ( "ProjectsColumnsColumnIdCardsPostResponse503Type", "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", ), - ".group_0854": ("ProjectsColumnsColumnIdMovesPostBodyType",), - ".group_0855": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), - ".group_0856": ("ProjectsProjectIdDeleteResponse403Type",), - ".group_0857": ("ProjectsProjectIdPatchBodyType",), - ".group_0858": ("ProjectsProjectIdPatchResponse403Type",), - ".group_0859": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), - ".group_0860": ("ProjectsProjectIdColumnsPostBodyType",), - ".group_0861": ("ReposOwnerRepoDeleteResponse403Type",), - ".group_0862": ( + ".group_0871": ("ProjectsColumnsColumnIdMovesPostBodyType",), + ".group_0872": ("ProjectsColumnsColumnIdMovesPostResponse201Type",), + ".group_0873": ("ProjectsProjectIdDeleteResponse403Type",), + ".group_0874": ("ProjectsProjectIdPatchBodyType",), + ".group_0875": ("ProjectsProjectIdPatchResponse403Type",), + ".group_0876": ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",), + ".group_0877": ("ProjectsProjectIdColumnsPostBodyType",), + ".group_0878": ("ReposOwnerRepoDeleteResponse403Type",), + ".group_0879": ( "ReposOwnerRepoPatchBodyType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", ), - ".group_0863": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), - ".group_0864": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), - ".group_0865": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), - ".group_0866": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), - ".group_0867": ( + ".group_0880": ("ReposOwnerRepoActionsArtifactsGetResponse200Type",), + ".group_0881": ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",), + ".group_0882": ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",), + ".group_0883": ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",), + ".group_0884": ( "ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type", ), - ".group_0868": ("ReposOwnerRepoActionsPermissionsPutBodyType",), - ".group_0869": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), - ".group_0870": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), - ".group_0871": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), - ".group_0872": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), - ".group_0873": ("ReposOwnerRepoActionsRunsGetResponse200Type",), - ".group_0874": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), - ".group_0875": ( + ".group_0885": ("ReposOwnerRepoActionsPermissionsPutBodyType",), + ".group_0886": ("ReposOwnerRepoActionsRunnersGetResponse200Type",), + ".group_0887": ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",), + ".group_0888": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",), + ".group_0889": ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",), + ".group_0890": ("ReposOwnerRepoActionsRunsGetResponse200Type",), + ".group_0891": ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",), + ".group_0892": ( "ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type", ), - ".group_0876": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), - ".group_0877": ( + ".group_0893": ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",), + ".group_0894": ( "ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType", ), - ".group_0878": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), - ".group_0879": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), - ".group_0880": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), - ".group_0881": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), - ".group_0882": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), - ".group_0883": ("ReposOwnerRepoActionsVariablesPostBodyType",), - ".group_0884": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), - ".group_0885": ( + ".group_0895": ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",), + ".group_0896": ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",), + ".group_0897": ("ReposOwnerRepoActionsSecretsGetResponse200Type",), + ".group_0898": ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",), + ".group_0899": ("ReposOwnerRepoActionsVariablesGetResponse200Type",), + ".group_0900": ("ReposOwnerRepoActionsVariablesPostBodyType",), + ".group_0901": ("ReposOwnerRepoActionsVariablesNamePatchBodyType",), + ".group_0902": ( "ReposOwnerRepoActionsWorkflowsGetResponse200Type", "WorkflowType", ), - ".group_0886": ( + ".group_0903": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", ), - ".group_0887": ( + ".group_0904": ( "ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type", ), - ".group_0888": ("ReposOwnerRepoAutolinksPostBodyType",), - ".group_0889": ( + ".group_0905": ( + "ReposOwnerRepoAttestationsPostBodyType", + "ReposOwnerRepoAttestationsPostBodyPropBundleType", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", + ), + ".group_0906": ("ReposOwnerRepoAttestationsPostResponse201Type",), + ".group_0907": ( + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", + ), + ".group_0908": ("ReposOwnerRepoAutolinksPostBodyType",), + ".group_0909": ( "ReposOwnerRepoBranchesBranchProtectionPutBodyType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", @@ -12215,343 +12439,357 @@ "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", ), - ".group_0890": ( + ".group_0910": ( "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", ), - ".group_0891": ( + ".group_0911": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", ), - ".group_0892": ( + ".group_0912": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", ), - ".group_0893": ( + ".group_0913": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", ), - ".group_0894": ( + ".group_0914": ( "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", ), - ".group_0895": ( + ".group_0915": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type", ), - ".group_0896": ( + ".group_0916": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type", ), - ".group_0897": ( + ".group_0917": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type", ), - ".group_0898": ( + ".group_0918": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type", ), - ".group_0899": ( + ".group_0919": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type", ), - ".group_0900": ( + ".group_0920": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", ), - ".group_0901": ( + ".group_0921": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type", ), - ".group_0902": ( + ".group_0922": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type", ), - ".group_0903": ( + ".group_0923": ( "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type", ), - ".group_0904": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), - ".group_0905": ( + ".group_0924": ("ReposOwnerRepoBranchesBranchRenamePostBodyType",), + ".group_0925": ( "ReposOwnerRepoCheckRunsPostBodyPropOutputType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", ), - ".group_0906": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), - ".group_0907": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), - ".group_0908": ( + ".group_0926": ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",), + ".group_0927": ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",), + ".group_0928": ( "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", ), - ".group_0909": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), - ".group_0910": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), - ".group_0911": ("ReposOwnerRepoCheckSuitesPostBodyType",), - ".group_0912": ( + ".group_0929": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",), + ".group_0930": ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",), + ".group_0931": ("ReposOwnerRepoCheckSuitesPostBodyType",), + ".group_0932": ( "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", ), - ".group_0913": ( + ".group_0933": ( "ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type", ), - ".group_0914": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), - ".group_0915": ( + ".group_0934": ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",), + ".group_0935": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type", ), - ".group_0916": ( + ".group_0936": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type", ), - ".group_0917": ( + ".group_0937": ( "ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type", ), - ".group_0918": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), - ".group_0919": ("ReposOwnerRepoCodespacesGetResponse200Type",), - ".group_0920": ("ReposOwnerRepoCodespacesPostBodyType",), - ".group_0921": ( + ".group_0938": ("ReposOwnerRepoCodeScanningSarifsPostBodyType",), + ".group_0939": ("ReposOwnerRepoCodespacesGetResponse200Type",), + ".group_0940": ("ReposOwnerRepoCodespacesPostBodyType",), + ".group_0941": ( "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", ), - ".group_0922": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), - ".group_0923": ( + ".group_0942": ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",), + ".group_0943": ( "ReposOwnerRepoCodespacesNewGetResponse200Type", "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", ), - ".group_0924": ( + ".group_0944": ( "ReposOwnerRepoCodespacesSecretsGetResponse200Type", "RepoCodespacesSecretType", ), - ".group_0925": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), - ".group_0926": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), - ".group_0927": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), - ".group_0928": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), - ".group_0929": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), - ".group_0930": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), - ".group_0931": ( + ".group_0945": ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",), + ".group_0946": ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",), + ".group_0947": ("ReposOwnerRepoCommentsCommentIdPatchBodyType",), + ".group_0948": ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",), + ".group_0949": ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",), + ".group_0950": ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",), + ".group_0951": ( "ReposOwnerRepoContentsPathPutBodyType", "ReposOwnerRepoContentsPathPutBodyPropCommitterType", "ReposOwnerRepoContentsPathPutBodyPropAuthorType", ), - ".group_0932": ( + ".group_0952": ( "ReposOwnerRepoContentsPathDeleteBodyType", "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", ), - ".group_0933": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), - ".group_0934": ( + ".group_0953": ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",), + ".group_0954": ( "ReposOwnerRepoDependabotSecretsGetResponse200Type", "DependabotSecretType", ), - ".group_0935": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), - ".group_0936": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), - ".group_0937": ( + ".group_0955": ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",), + ".group_0956": ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",), + ".group_0957": ( "ReposOwnerRepoDeploymentsPostBodyType", "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", ), - ".group_0938": ("ReposOwnerRepoDeploymentsPostResponse202Type",), - ".group_0939": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), - ".group_0940": ( + ".group_0958": ("ReposOwnerRepoDeploymentsPostResponse202Type",), + ".group_0959": ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",), + ".group_0960": ( "ReposOwnerRepoDispatchesPostBodyType", "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", ), - ".group_0941": ( + ".group_0961": ( "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", ), - ".group_0942": ( + ".group_0962": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", "DeploymentBranchPolicyType", ), - ".group_0943": ( + ".group_0963": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", ), - ".group_0944": ( + ".group_0964": ( "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", ), - ".group_0945": ( + ".group_0965": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type", ), - ".group_0946": ( + ".group_0966": ( "ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType", ), - ".group_0947": ( + ".group_0967": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type", ), - ".group_0948": ( + ".group_0968": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType", ), - ".group_0949": ( + ".group_0969": ( "ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType", ), - ".group_0950": ("ReposOwnerRepoForksPostBodyType",), - ".group_0951": ("ReposOwnerRepoGitBlobsPostBodyType",), - ".group_0952": ( + ".group_0970": ("ReposOwnerRepoForksPostBodyType",), + ".group_0971": ("ReposOwnerRepoGitBlobsPostBodyType",), + ".group_0972": ( "ReposOwnerRepoGitCommitsPostBodyType", "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", ), - ".group_0953": ("ReposOwnerRepoGitRefsPostBodyType",), - ".group_0954": ("ReposOwnerRepoGitRefsRefPatchBodyType",), - ".group_0955": ( + ".group_0973": ("ReposOwnerRepoGitRefsPostBodyType",), + ".group_0974": ("ReposOwnerRepoGitRefsRefPatchBodyType",), + ".group_0975": ( "ReposOwnerRepoGitTagsPostBodyType", "ReposOwnerRepoGitTagsPostBodyPropTaggerType", ), - ".group_0956": ( + ".group_0976": ( "ReposOwnerRepoGitTreesPostBodyType", "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", ), - ".group_0957": ( + ".group_0977": ( "ReposOwnerRepoHooksPostBodyType", "ReposOwnerRepoHooksPostBodyPropConfigType", ), - ".group_0958": ("ReposOwnerRepoHooksHookIdPatchBodyType",), - ".group_0959": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), - ".group_0960": ("ReposOwnerRepoImportPutBodyType",), - ".group_0961": ("ReposOwnerRepoImportPatchBodyType",), - ".group_0962": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), - ".group_0963": ("ReposOwnerRepoImportLfsPatchBodyType",), - ".group_0964": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), - ".group_0965": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), - ".group_0966": ( + ".group_0978": ("ReposOwnerRepoHooksHookIdPatchBodyType",), + ".group_0979": ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",), + ".group_0980": ("ReposOwnerRepoImportPutBodyType",), + ".group_0981": ("ReposOwnerRepoImportPatchBodyType",), + ".group_0982": ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",), + ".group_0983": ("ReposOwnerRepoImportLfsPatchBodyType",), + ".group_0984": ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",), + ".group_0985": ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",), + ".group_0986": ( "ReposOwnerRepoIssuesPostBodyType", "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", ), - ".group_0967": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), - ".group_0968": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), - ".group_0969": ( + ".group_0987": ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",), + ".group_0988": ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",), + ".group_0989": ( "ReposOwnerRepoIssuesIssueNumberPatchBodyType", "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", ), - ".group_0970": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), - ".group_0971": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), - ".group_0972": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), - ".group_0973": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), - ".group_0974": ( + ".group_0990": ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",), + ".group_0991": ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",), + ".group_0992": ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",), + ".group_0993": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",), + ".group_0994": ( "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", ), - ".group_0975": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), - ".group_0976": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), - ".group_0977": ( + ".group_0995": ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",), + ".group_0996": ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",), + ".group_0997": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", ), - ".group_0978": ( + ".group_0998": ( "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType", ), - ".group_0979": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), - ".group_0980": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), - ".group_0981": ("ReposOwnerRepoKeysPostBodyType",), - ".group_0982": ("ReposOwnerRepoLabelsPostBodyType",), - ".group_0983": ("ReposOwnerRepoLabelsNamePatchBodyType",), - ".group_0984": ("ReposOwnerRepoMergeUpstreamPostBodyType",), - ".group_0985": ("ReposOwnerRepoMergesPostBodyType",), - ".group_0986": ("ReposOwnerRepoMilestonesPostBodyType",), - ".group_0987": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), - ".group_0988": ("ReposOwnerRepoNotificationsPutBodyType",), - ".group_0989": ("ReposOwnerRepoNotificationsPutResponse202Type",), - ".group_0990": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), - ".group_0991": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), - ".group_0992": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), - ".group_0993": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), - ".group_0994": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), - ".group_0995": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), - ".group_0996": ("ReposOwnerRepoPagesPostBodyPropSourceType",), - ".group_0997": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), - ".group_0998": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), - ".group_0999": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), - ".group_1000": ( + ".group_0999": ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",), + ".group_1000": ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",), + ".group_1001": ("ReposOwnerRepoKeysPostBodyType",), + ".group_1002": ("ReposOwnerRepoLabelsPostBodyType",), + ".group_1003": ("ReposOwnerRepoLabelsNamePatchBodyType",), + ".group_1004": ("ReposOwnerRepoMergeUpstreamPostBodyType",), + ".group_1005": ("ReposOwnerRepoMergesPostBodyType",), + ".group_1006": ("ReposOwnerRepoMilestonesPostBodyType",), + ".group_1007": ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",), + ".group_1008": ("ReposOwnerRepoNotificationsPutBodyType",), + ".group_1009": ("ReposOwnerRepoNotificationsPutResponse202Type",), + ".group_1010": ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",), + ".group_1011": ("ReposOwnerRepoPagesPutBodyAnyof0Type",), + ".group_1012": ("ReposOwnerRepoPagesPutBodyAnyof1Type",), + ".group_1013": ("ReposOwnerRepoPagesPutBodyAnyof2Type",), + ".group_1014": ("ReposOwnerRepoPagesPutBodyAnyof3Type",), + ".group_1015": ("ReposOwnerRepoPagesPutBodyAnyof4Type",), + ".group_1016": ("ReposOwnerRepoPagesPostBodyPropSourceType",), + ".group_1017": ("ReposOwnerRepoPagesPostBodyAnyof0Type",), + ".group_1018": ("ReposOwnerRepoPagesPostBodyAnyof1Type",), + ".group_1019": ("ReposOwnerRepoPagesDeploymentsPostBodyType",), + ".group_1020": ( "ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type", ), - ".group_1001": ("ReposOwnerRepoProjectsPostBodyType",), - ".group_1002": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), - ".group_1003": ("ReposOwnerRepoPullsPostBodyType",), - ".group_1004": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), - ".group_1005": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), - ".group_1006": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), - ".group_1007": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), - ".group_1008": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), - ".group_1009": ( + ".group_1021": ("ReposOwnerRepoProjectsPostBodyType",), + ".group_1022": ("ReposOwnerRepoPropertiesValuesPatchBodyType",), + ".group_1023": ("ReposOwnerRepoPullsPostBodyType",), + ".group_1024": ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",), + ".group_1025": ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",), + ".group_1026": ("ReposOwnerRepoPullsPullNumberPatchBodyType",), + ".group_1027": ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",), + ".group_1028": ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",), + ".group_1029": ( "ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType", ), - ".group_1010": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), - ".group_1011": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), - ".group_1012": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), - ".group_1013": ( + ".group_1030": ("ReposOwnerRepoPullsPullNumberMergePutBodyType",), + ".group_1031": ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",), + ".group_1032": ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",), + ".group_1033": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type", ), - ".group_1014": ( + ".group_1034": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type", ), - ".group_1015": ( + ".group_1035": ( "ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType", ), - ".group_1016": ( + ".group_1036": ( "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", ), - ".group_1017": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), - ".group_1018": ( + ".group_1037": ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",), + ".group_1038": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType", ), - ".group_1019": ( + ".group_1039": ( "ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType", ), - ".group_1020": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), - ".group_1021": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), - ".group_1022": ("ReposOwnerRepoReleasesPostBodyType",), - ".group_1023": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), - ".group_1024": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), - ".group_1025": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), - ".group_1026": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), - ".group_1027": ("ReposOwnerRepoRulesetsPostBodyType",), - ".group_1028": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), - ".group_1029": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), - ".group_1030": ("ReposOwnerRepoStatusesShaPostBodyType",), - ".group_1031": ("ReposOwnerRepoSubscriptionPutBodyType",), - ".group_1032": ("ReposOwnerRepoTagsProtectionPostBodyType",), - ".group_1033": ("ReposOwnerRepoTopicsPutBodyType",), - ".group_1034": ("ReposOwnerRepoTransferPostBodyType",), - ".group_1035": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), - ".group_1036": ("TeamsTeamIdPatchBodyType",), - ".group_1037": ("TeamsTeamIdDiscussionsPostBodyType",), - ".group_1038": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), - ".group_1039": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), - ".group_1040": ( + ".group_1040": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",), + ".group_1041": ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",), + ".group_1042": ("ReposOwnerRepoReleasesPostBodyType",), + ".group_1043": ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",), + ".group_1044": ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",), + ".group_1045": ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",), + ".group_1046": ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",), + ".group_1047": ("ReposOwnerRepoRulesetsPostBodyType",), + ".group_1048": ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",), + ".group_1049": ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",), + ".group_1050": ("ReposOwnerRepoStatusesShaPostBodyType",), + ".group_1051": ("ReposOwnerRepoSubscriptionPutBodyType",), + ".group_1052": ("ReposOwnerRepoTagsProtectionPostBodyType",), + ".group_1053": ("ReposOwnerRepoTopicsPutBodyType",), + ".group_1054": ("ReposOwnerRepoTransferPostBodyType",), + ".group_1055": ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",), + ".group_1056": ("TeamsTeamIdPatchBodyType",), + ".group_1057": ("TeamsTeamIdDiscussionsPostBodyType",), + ".group_1058": ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",), + ".group_1059": ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",), + ".group_1060": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ), - ".group_1041": ( + ".group_1061": ( "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", ), - ".group_1042": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), - ".group_1043": ("TeamsTeamIdMembershipsUsernamePutBodyType",), - ".group_1044": ("TeamsTeamIdProjectsProjectIdPutBodyType",), - ".group_1045": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), - ".group_1046": ("TeamsTeamIdReposOwnerRepoPutBodyType",), - ".group_1047": ("UserPatchBodyType",), - ".group_1048": ("UserCodespacesGetResponse200Type",), - ".group_1049": ("UserCodespacesPostBodyOneof0Type",), - ".group_1050": ( + ".group_1062": ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",), + ".group_1063": ("TeamsTeamIdMembershipsUsernamePutBodyType",), + ".group_1064": ("TeamsTeamIdProjectsProjectIdPutBodyType",), + ".group_1065": ("TeamsTeamIdProjectsProjectIdPutResponse403Type",), + ".group_1066": ("TeamsTeamIdReposOwnerRepoPutBodyType",), + ".group_1067": ("UserPatchBodyType",), + ".group_1068": ("UserCodespacesGetResponse200Type",), + ".group_1069": ("UserCodespacesPostBodyOneof0Type",), + ".group_1070": ( "UserCodespacesPostBodyOneof1Type", "UserCodespacesPostBodyOneof1PropPullRequestType", ), - ".group_1051": ( + ".group_1071": ( "UserCodespacesSecretsGetResponse200Type", "CodespacesSecretType", ), - ".group_1052": ("UserCodespacesSecretsSecretNamePutBodyType",), - ".group_1053": ( + ".group_1072": ("UserCodespacesSecretsSecretNamePutBodyType",), + ".group_1073": ( "UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type", ), - ".group_1054": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), - ".group_1055": ("UserCodespacesCodespaceNamePatchBodyType",), - ".group_1056": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), - ".group_1057": ("UserCodespacesCodespaceNamePublishPostBodyType",), - ".group_1058": ("UserEmailVisibilityPatchBodyType",), - ".group_1059": ("UserEmailsPostBodyOneof0Type",), - ".group_1060": ("UserEmailsDeleteBodyOneof0Type",), - ".group_1061": ("UserGpgKeysPostBodyType",), - ".group_1062": ("UserInstallationsGetResponse200Type",), - ".group_1063": ( + ".group_1074": ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",), + ".group_1075": ("UserCodespacesCodespaceNamePatchBodyType",), + ".group_1076": ("UserCodespacesCodespaceNameMachinesGetResponse200Type",), + ".group_1077": ("UserCodespacesCodespaceNamePublishPostBodyType",), + ".group_1078": ("UserEmailVisibilityPatchBodyType",), + ".group_1079": ("UserEmailsPostBodyOneof0Type",), + ".group_1080": ("UserEmailsDeleteBodyOneof0Type",), + ".group_1081": ("UserGpgKeysPostBodyType",), + ".group_1082": ("UserInstallationsGetResponse200Type",), + ".group_1083": ( "UserInstallationsInstallationIdRepositoriesGetResponse200Type", ), - ".group_1064": ("UserInteractionLimitsGetResponse200Anyof1Type",), - ".group_1065": ("UserKeysPostBodyType",), - ".group_1066": ("UserMembershipsOrgsOrgPatchBodyType",), - ".group_1067": ("UserMigrationsPostBodyType",), - ".group_1068": ("UserProjectsPostBodyType",), - ".group_1069": ("UserReposPostBodyType",), - ".group_1070": ("UserSocialAccountsPostBodyType",), - ".group_1071": ("UserSocialAccountsDeleteBodyType",), - ".group_1072": ("UserSshSigningKeysPostBodyType",), + ".group_1084": ("UserInteractionLimitsGetResponse200Anyof1Type",), + ".group_1085": ("UserKeysPostBodyType",), + ".group_1086": ("UserMembershipsOrgsOrgPatchBodyType",), + ".group_1087": ("UserMigrationsPostBodyType",), + ".group_1088": ("UserProjectsPostBodyType",), + ".group_1089": ("UserReposPostBodyType",), + ".group_1090": ("UserSocialAccountsPostBodyType",), + ".group_1091": ("UserSocialAccountsDeleteBodyType",), + ".group_1092": ("UserSshSigningKeysPostBodyType",), + ".group_1093": ( + "UsersUsernameAttestationsSubjectDigestGetResponse200Type", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "SigstoreBundle0Type", + "SigstoreBundle0PropDsseEnvelopeType", + "SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType", + "SigstoreBundle0PropVerificationMaterialType", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType", + ), } diff --git a/githubkit/versions/v2022_11_28/types/group_0025.py b/githubkit/versions/v2022_11_28/types/group_0025.py index 2a03f60f5..ff50a4403 100644 --- a/githubkit/versions/v2022_11_28/types/group_0025.py +++ b/githubkit/versions/v2022_11_28/types/group_0025.py @@ -9,45 +9,29 @@ from __future__ import annotations -from datetime import date -from typing import List, Union +from typing import Union from typing_extensions import TypedDict, NotRequired -class CopilotUsageMetricsType(TypedDict): - """Copilot Usage Metrics +class TeamSimpleType(TypedDict): + """Team Simple - Summary of Copilot usage. + Groups of organization members that gives permissions on specified repositories. """ - day: date - total_suggestions_count: NotRequired[int] - total_acceptances_count: NotRequired[int] - total_lines_suggested: NotRequired[int] - total_lines_accepted: NotRequired[int] - total_active_users: NotRequired[int] - total_chat_acceptances: NotRequired[int] - total_chat_turns: NotRequired[int] - total_active_chat_users: NotRequired[int] - breakdown: Union[List[CopilotUsageMetricsPropBreakdownItemsType], None] - - -class CopilotUsageMetricsPropBreakdownItemsType(TypedDict): - """CopilotUsageMetricsPropBreakdownItems - - Breakdown of Copilot usage by editor for this language - """ - - language: NotRequired[str] - editor: NotRequired[str] - suggestions_count: NotRequired[int] - acceptances_count: NotRequired[int] - lines_suggested: NotRequired[int] - lines_accepted: NotRequired[int] - active_users: NotRequired[int] - - -__all__ = ( - "CopilotUsageMetricsType", - "CopilotUsageMetricsPropBreakdownItemsType", -) + 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_0026.py b/githubkit/versions/v2022_11_28/types/group_0026.py index 9ef70e81a..09c35fab4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0026.py +++ b/githubkit/versions/v2022_11_28/types/group_0026.py @@ -9,17 +9,45 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired +from .group_0025 import TeamSimpleType -class DependabotAlertPackageType(TypedDict): - """DependabotAlertPackage - Details for the vulnerable package. +class TeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. """ - ecosystem: str + id: int + node_id: str name: str - - -__all__ = ("DependabotAlertPackageType",) + 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__ = ( + "TeamType", + "TeamPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0027.py b/githubkit/versions/v2022_11_28/types/group_0027.py index 54b531faa..4b96a4953 100644 --- a/githubkit/versions/v2022_11_28/types/group_0027.py +++ b/githubkit/versions/v2022_11_28/types/group_0027.py @@ -9,36 +9,28 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union from typing_extensions import TypedDict -from .group_0026 import DependabotAlertPackageType +class OrganizationSimpleType(TypedDict): + """Organization Simple -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. + A GitHub organization. """ - identifier: str - - -__all__ = ( - "DependabotAlertSecurityVulnerabilityType", - "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType", -) + login: str + id: int + node_id: str + url: str + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] + + +__all__ = ("OrganizationSimpleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0028.py b/githubkit/versions/v2022_11_28/types/group_0028.py index 9b449fe55..fdd4fdbe4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0028.py +++ b/githubkit/versions/v2022_11_28/types/group_0028.py @@ -9,77 +9,100 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict +from typing import Union +from datetime import date, datetime +from typing_extensions import TypedDict, NotRequired -from .group_0027 import DependabotAlertSecurityVulnerabilityType +from .group_0026 import TeamType +from .group_0001 import SimpleUserType +from .group_0027 import OrganizationSimpleType -class DependabotAlertSecurityAdvisoryType(TypedDict): - """DependabotAlertSecurityAdvisory +class CopilotSeatDetailsType(TypedDict): + """Copilot Business Seat Detail - Details for the GitHub Security Advisory. + Information about a Copilot Business seat assignment for a user, team, or + organization. """ - ghsa_id: str - cve_id: Union[str, None] - summary: str - description: str - vulnerabilities: List[DependabotAlertSecurityVulnerabilityType] - severity: Literal["low", "medium", "high", "critical"] - cvss: DependabotAlertSecurityAdvisoryPropCvssType - cwes: List[DependabotAlertSecurityAdvisoryPropCwesItemsType] - identifiers: List[DependabotAlertSecurityAdvisoryPropIdentifiersItemsType] - references: List[DependabotAlertSecurityAdvisoryPropReferencesItemsType] - published_at: datetime - updated_at: datetime - withdrawn_at: Union[datetime, None] + assignee: Union[SimpleUserType, TeamType, OrganizationType] + organization: NotRequired[Union[OrganizationSimpleType, None]] + 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] -class DependabotAlertSecurityAdvisoryPropCvssType(TypedDict): - """DependabotAlertSecurityAdvisoryPropCvss +class EnterpriseTeamType(TypedDict): + """Enterprise Team - Details for the advisory pertaining to the Common Vulnerability Scoring System. + Group of enterprise owners and/or members """ - score: float - vector_string: Union[str, None] - - -class DependabotAlertSecurityAdvisoryPropCwesItemsType(TypedDict): - """DependabotAlertSecurityAdvisoryPropCwesItems - - A CWE weakness assigned to the advisory. - """ - - cwe_id: str + id: int name: str + slug: str + url: str + sync_to_organizations: str + group_id: NotRequired[Union[int, None]] + html_url: str + members_url: str + created_at: datetime + updated_at: datetime -class DependabotAlertSecurityAdvisoryPropIdentifiersItemsType(TypedDict): - """DependabotAlertSecurityAdvisoryPropIdentifiersItems +class OrganizationType(TypedDict): + """Organization - An advisory identifier. + GitHub account for managing multiple users, teams, and repositories """ - type: Literal["CVE", "GHSA"] - value: str - + login: str + url: str + id: int + node_id: 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] + blog: NotRequired[str] + html_url: str + name: NotRequired[str] + company: NotRequired[str] + location: NotRequired[str] + email: NotRequired[str] + has_organization_projects: bool + has_repository_projects: bool + is_verified: NotRequired[bool] + public_repos: int + public_gists: int + followers: int + following: int + type: str + created_at: datetime + updated_at: datetime + plan: NotRequired[OrganizationPropPlanType] -class DependabotAlertSecurityAdvisoryPropReferencesItemsType(TypedDict): - """DependabotAlertSecurityAdvisoryPropReferencesItems - A link to additional advisory information. - """ +class OrganizationPropPlanType(TypedDict): + """OrganizationPropPlan""" - url: str + name: NotRequired[str] + space: NotRequired[int] + private_repos: NotRequired[int] + filled_seats: NotRequired[int] + seats: NotRequired[int] __all__ = ( - "DependabotAlertSecurityAdvisoryType", - "DependabotAlertSecurityAdvisoryPropCvssType", - "DependabotAlertSecurityAdvisoryPropCwesItemsType", - "DependabotAlertSecurityAdvisoryPropIdentifiersItemsType", - "DependabotAlertSecurityAdvisoryPropReferencesItemsType", + "CopilotSeatDetailsType", + "EnterpriseTeamType", + "OrganizationType", + "OrganizationPropPlanType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0029.py b/githubkit/versions/v2022_11_28/types/group_0029.py index 27881a3b9..2a03f60f5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0029.py +++ b/githubkit/versions/v2022_11_28/types/group_0029.py @@ -9,64 +9,45 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import date +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class CopilotUsageMetricsType(TypedDict): + """Copilot Usage Metrics -class SimpleRepositoryType(TypedDict): - """Simple Repository + Summary of Copilot usage. + """ + + day: date + total_suggestions_count: NotRequired[int] + total_acceptances_count: NotRequired[int] + total_lines_suggested: NotRequired[int] + total_lines_accepted: NotRequired[int] + total_active_users: NotRequired[int] + total_chat_acceptances: NotRequired[int] + total_chat_turns: NotRequired[int] + total_active_chat_users: NotRequired[int] + breakdown: Union[List[CopilotUsageMetricsPropBreakdownItemsType], None] + + +class CopilotUsageMetricsPropBreakdownItemsType(TypedDict): + """CopilotUsageMetricsPropBreakdownItems - A GitHub repository. + Breakdown of Copilot usage by editor for this language """ - 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 + language: NotRequired[str] + editor: NotRequired[str] + suggestions_count: NotRequired[int] + acceptances_count: NotRequired[int] + lines_suggested: NotRequired[int] + lines_accepted: NotRequired[int] + active_users: NotRequired[int] -__all__ = ("SimpleRepositoryType",) +__all__ = ( + "CopilotUsageMetricsType", + "CopilotUsageMetricsPropBreakdownItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0030.py b/githubkit/versions/v2022_11_28/types/group_0030.py index 0f7f158e4..9ef70e81a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0030.py +++ b/githubkit/versions/v2022_11_28/types/group_0030.py @@ -9,44 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType -from .group_0029 import SimpleRepositoryType -from .group_0028 import DependabotAlertSecurityAdvisoryType -from .group_0027 import DependabotAlertSecurityVulnerabilityType -from .group_0031 import DependabotAlertWithRepositoryPropDependencyType +class DependabotAlertPackageType(TypedDict): + """DependabotAlertPackage -class DependabotAlertWithRepositoryType(TypedDict): - """DependabotAlertWithRepository - - A Dependabot alert. + Details for the vulnerable package. """ - number: int - state: Literal["auto_dismissed", "dismissed", "fixed", "open"] - dependency: DependabotAlertWithRepositoryPropDependencyType - security_advisory: DependabotAlertSecurityAdvisoryType - security_vulnerability: DependabotAlertSecurityVulnerabilityType - url: str - html_url: str - created_at: datetime - updated_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[None, SimpleUserType] - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], - ] - dismissed_comment: Union[str, None] - fixed_at: Union[datetime, None] - auto_dismissed_at: NotRequired[Union[datetime, None]] - repository: SimpleRepositoryType - - -__all__ = ("DependabotAlertWithRepositoryType",) + ecosystem: str + name: str + + +__all__ = ("DependabotAlertPackageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0031.py b/githubkit/versions/v2022_11_28/types/group_0031.py index 9aee4464d..2a804b93c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0031.py +++ b/githubkit/versions/v2022_11_28/types/group_0031.py @@ -10,20 +10,35 @@ from __future__ import annotations from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0026 import DependabotAlertPackageType +from .group_0030 import DependabotAlertPackageType -class DependabotAlertWithRepositoryPropDependencyType(TypedDict): - """DependabotAlertWithRepositoryPropDependency +class DependabotAlertSecurityVulnerabilityType(TypedDict): + """DependabotAlertSecurityVulnerability - Details for the vulnerable dependency. + Details pertaining to one vulnerable version range for the advisory. """ - package: NotRequired[DependabotAlertPackageType] - manifest_path: NotRequired[str] - scope: NotRequired[Union[None, Literal["development", "runtime"]]] + package: DependabotAlertPackageType + severity: Literal["low", "medium", "high", "critical"] + vulnerable_version_range: str + first_patched_version: Union[ + DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType, None + ] -__all__ = ("DependabotAlertWithRepositoryPropDependencyType",) +class DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType(TypedDict): + """DependabotAlertSecurityVulnerabilityPropFirstPatchedVersion + + Details pertaining to the package version that patches this vulnerability. + """ + + identifier: str + + +__all__ = ( + "DependabotAlertSecurityVulnerabilityType", + "DependabotAlertSecurityVulnerabilityPropFirstPatchedVersionType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0032.py b/githubkit/versions/v2022_11_28/types/group_0032.py index 97391f3ae..8b3e5147c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0032.py +++ b/githubkit/versions/v2022_11_28/types/group_0032.py @@ -10,37 +10,76 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0001 import SimpleUserType -from .group_0029 import SimpleRepositoryType - - -class OrganizationSecretScanningAlertType(TypedDict): - """OrganizationSecretScanningAlert""" - - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - state: NotRequired[Literal["open", "resolved"]] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - secret: NotRequired[str] - repository: NotRequired[SimpleRepositoryType] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - resolution_comment: NotRequired[Union[str, None]] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - - -__all__ = ("OrganizationSecretScanningAlertType",) +from typing import List, Union, Literal +from typing_extensions import TypedDict + +from .group_0031 import DependabotAlertSecurityVulnerabilityType + + +class DependabotAlertSecurityAdvisoryType(TypedDict): + """DependabotAlertSecurityAdvisory + + Details for the GitHub Security Advisory. + """ + + ghsa_id: str + cve_id: Union[str, None] + summary: str + description: str + vulnerabilities: List[DependabotAlertSecurityVulnerabilityType] + severity: Literal["low", "medium", "high", "critical"] + cvss: DependabotAlertSecurityAdvisoryPropCvssType + cwes: List[DependabotAlertSecurityAdvisoryPropCwesItemsType] + identifiers: List[DependabotAlertSecurityAdvisoryPropIdentifiersItemsType] + references: List[DependabotAlertSecurityAdvisoryPropReferencesItemsType] + published_at: datetime + updated_at: datetime + withdrawn_at: Union[datetime, None] + + +class DependabotAlertSecurityAdvisoryPropCvssType(TypedDict): + """DependabotAlertSecurityAdvisoryPropCvss + + Details for the advisory pertaining to the Common Vulnerability Scoring System. + """ + + score: float + vector_string: Union[str, None] + + +class DependabotAlertSecurityAdvisoryPropCwesItemsType(TypedDict): + """DependabotAlertSecurityAdvisoryPropCwesItems + + A CWE weakness assigned to the advisory. + """ + + cwe_id: str + name: str + + +class DependabotAlertSecurityAdvisoryPropIdentifiersItemsType(TypedDict): + """DependabotAlertSecurityAdvisoryPropIdentifiersItems + + An advisory identifier. + """ + + type: Literal["CVE", "GHSA"] + value: str + + +class DependabotAlertSecurityAdvisoryPropReferencesItemsType(TypedDict): + """DependabotAlertSecurityAdvisoryPropReferencesItems + + A link to additional advisory information. + """ + + url: str + + +__all__ = ( + "DependabotAlertSecurityAdvisoryType", + "DependabotAlertSecurityAdvisoryPropCvssType", + "DependabotAlertSecurityAdvisoryPropCwesItemsType", + "DependabotAlertSecurityAdvisoryPropIdentifiersItemsType", + "DependabotAlertSecurityAdvisoryPropReferencesItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0033.py b/githubkit/versions/v2022_11_28/types/group_0033.py index b1b68d0be..27881a3b9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0033.py +++ b/githubkit/versions/v2022_11_28/types/group_0033.py @@ -9,35 +9,64 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from typing_extensions import TypedDict from .group_0001 import SimpleUserType -class MilestoneType(TypedDict): - """Milestone +class SimpleRepositoryType(TypedDict): + """Simple Repository - A collection of related issues and pull requests. + A GitHub repository. """ - url: str - html_url: str - labels_url: str id: int node_id: str - number: int - state: Literal["open", "closed"] - title: str + name: str + full_name: str + owner: SimpleUserType + private: bool + html_url: 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] + 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__ = ("MilestoneType",) +__all__ = ("SimpleRepositoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0034.py b/githubkit/versions/v2022_11_28/types/group_0034.py index 8a6080a74..e077c5aaf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0034.py +++ b/githubkit/versions/v2022_11_28/types/group_0034.py @@ -9,22 +9,44 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0033 import SimpleRepositoryType +from .group_0032 import DependabotAlertSecurityAdvisoryType +from .group_0031 import DependabotAlertSecurityVulnerabilityType +from .group_0035 import DependabotAlertWithRepositoryPropDependencyType -class ReactionRollupType(TypedDict): - """Reaction Rollup""" +class DependabotAlertWithRepositoryType(TypedDict): + """DependabotAlertWithRepository + + A Dependabot alert. + """ + + number: int + state: Literal["auto_dismissed", "dismissed", "fixed", "open"] + dependency: DependabotAlertWithRepositoryPropDependencyType + security_advisory: DependabotAlertSecurityAdvisoryType + security_vulnerability: DependabotAlertSecurityVulnerabilityType url: str - total_count: int - plus_one: int - minus_one: int - laugh: int - confused: int - heart: int - hooray: int - eyes: int - rocket: int - - -__all__ = ("ReactionRollupType",) + html_url: str + created_at: datetime + updated_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[None, SimpleUserType] + dismissed_reason: Union[ + None, + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ], + ] + dismissed_comment: Union[str, None] + fixed_at: Union[datetime, None] + auto_dismissed_at: NotRequired[Union[datetime, None]] + repository: SimpleRepositoryType + + +__all__ = ("DependabotAlertWithRepositoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0035.py b/githubkit/versions/v2022_11_28/types/group_0035.py index fccd9e8aa..5be35218d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0035.py +++ b/githubkit/versions/v2022_11_28/types/group_0035.py @@ -9,95 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0033 import MilestoneType -from .group_0001 import SimpleUserType -from .group_0017 import RepositoryType -from .group_0006 import IntegrationType -from .group_0034 import ReactionRollupType +from .group_0030 import DependabotAlertPackageType -class IssueType(TypedDict): - """Issue +class DependabotAlertWithRepositoryPropDependencyType(TypedDict): + """DependabotAlertWithRepositoryPropDependency - Issues are a great way to keep track of tasks, enhancements, and bugs for your - projects. + Details for the vulnerable dependency. """ - id: int - node_id: str - url: str - repository_url: str - labels_url: str - comments_url: str - events_url: str - html_url: str - number: int - state: str - state_reason: NotRequired[ - Union[None, Literal["completed", "reopened", "not_planned"]] - ] - title: str - body: NotRequired[Union[str, None]] - user: Union[None, SimpleUserType] - labels: List[Union[str, IssuePropLabelsItemsOneof1Type]] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[List[SimpleUserType], None]] - milestone: Union[None, MilestoneType] - locked: bool - active_lock_reason: NotRequired[Union[str, None]] - comments: int - pull_request: NotRequired[IssuePropPullRequestType] - closed_at: Union[datetime, None] - created_at: datetime - updated_at: datetime - draft: NotRequired[bool] - closed_by: NotRequired[Union[None, SimpleUserType]] - body_html: NotRequired[Union[str, None]] - body_text: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - repository: NotRequired[RepositoryType] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - reactions: NotRequired[ReactionRollupType] + package: NotRequired[DependabotAlertPackageType] + manifest_path: NotRequired[str] + scope: NotRequired[Union[None, Literal["development", "runtime"]]] -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__ = ( - "IssueType", - "IssuePropLabelsItemsOneof1Type", - "IssuePropPullRequestType", -) +__all__ = ("DependabotAlertWithRepositoryPropDependencyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0036.py b/githubkit/versions/v2022_11_28/types/group_0036.py index 12cacc588..15145f329 100644 --- a/githubkit/versions/v2022_11_28/types/group_0036.py +++ b/githubkit/versions/v2022_11_28/types/group_0036.py @@ -14,39 +14,33 @@ from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType -from .group_0034 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] +from .group_0033 import SimpleRepositoryType + +class OrganizationSecretScanningAlertType(TypedDict): + """OrganizationSecretScanningAlert""" -__all__ = ("IssueCommentType",) + 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]] + resolution_comment: NotRequired[Union[str, None]] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + + +__all__ = ("OrganizationSecretScanningAlertType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0037.py b/githubkit/versions/v2022_11_28/types/group_0037.py index 68c1c5b29..b1b68d0be 100644 --- a/githubkit/versions/v2022_11_28/types/group_0037.py +++ b/githubkit/versions/v2022_11_28/types/group_0037.py @@ -10,75 +10,34 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0035 import IssueType -from .group_0036 import IssueCommentType +from .group_0001 import SimpleUserType -class EventPropPayloadType(TypedDict): - """EventPropPayload""" +class MilestoneType(TypedDict): + """Milestone - 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 + A collection of related issues and pull requests. """ - id: int - login: str - display_login: NotRequired[str] - gravatar_id: Union[str, None] url: str - avatar_url: str - - -class EventPropRepoType(TypedDict): - """EventPropRepo""" - + html_url: str + labels_url: str id: int - name: str - url: str - - -__all__ = ( - "EventPropPayloadType", - "EventPropPayloadPropPagesItemsType", - "EventType", - "ActorType", - "EventPropRepoType", -) + node_id: str + number: int + state: Literal["open", "closed"] + title: str + description: Union[str, None] + creator: Union[None, SimpleUserType] + open_issues: int + closed_issues: int + created_at: datetime + updated_at: datetime + closed_at: Union[datetime, None] + due_on: Union[datetime, None] + + +__all__ = ("MilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0038.py b/githubkit/versions/v2022_11_28/types/group_0038.py index 8a6dba029..8a6080a74 100644 --- a/githubkit/versions/v2022_11_28/types/group_0038.py +++ b/githubkit/versions/v2022_11_28/types/group_0038.py @@ -9,56 +9,22 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class FeedType(TypedDict): - """Feed +class ReactionRollupType(TypedDict): + """Reaction Rollup""" - Feed - """ + url: str + total_count: int + plus_one: int + minus_one: int + laugh: int + confused: int + heart: int + hooray: int + eyes: int + rocket: int - timeline_url: str - user_url: str - current_user_public_url: NotRequired[str] - current_user_url: NotRequired[str] - current_user_actor_url: NotRequired[str] - current_user_organization_url: NotRequired[str] - current_user_organization_urls: NotRequired[List[str]] - security_advisories_url: NotRequired[str] - repository_discussions_url: NotRequired[str] - repository_discussions_category_url: NotRequired[str] - links: FeedPropLinksType - -class FeedPropLinksType(TypedDict): - """FeedPropLinks""" - - timeline: LinkWithTypeType - user: LinkWithTypeType - security_advisories: NotRequired[LinkWithTypeType] - current_user: NotRequired[LinkWithTypeType] - current_user_public: NotRequired[LinkWithTypeType] - current_user_actor: NotRequired[LinkWithTypeType] - current_user_organization: NotRequired[LinkWithTypeType] - current_user_organizations: NotRequired[List[LinkWithTypeType]] - repository_discussions: NotRequired[LinkWithTypeType] - repository_discussions_category: NotRequired[LinkWithTypeType] - - -class LinkWithTypeType(TypedDict): - """Link With Type - - Hypermedia Link with Type - """ - - href: str - type: str - - -__all__ = ( - "FeedType", - "FeedPropLinksType", - "LinkWithTypeType", -) +__all__ = ("ReactionRollupType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0039.py b/githubkit/versions/v2022_11_28/types/group_0039.py index 82b875098..c71a1e0d5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0039.py +++ b/githubkit/versions/v2022_11_28/types/group_0039.py @@ -10,45 +10,94 @@ from __future__ import annotations from datetime import datetime -from typing import Any, List, Union +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0037 import MilestoneType from .group_0001 import SimpleUserType +from .group_0017 import RepositoryType +from .group_0006 import IntegrationType +from .group_0038 import ReactionRollupType -class BaseGistType(TypedDict): - """Base Gist +class IssueType(TypedDict): + """Issue - Base Gist + Issues are a great way to keep track of tasks, enhancements, and bugs for your + projects. """ - url: str - forks_url: str - commits_url: str - id: str + id: int node_id: str - git_pull_url: str - git_push_url: str + url: str + repository_url: str + labels_url: str + comments_url: str + events_url: str html_url: str - files: BaseGistPropFilesType - public: bool + number: int + state: str + state_reason: NotRequired[ + Union[None, Literal["completed", "reopened", "not_planned"]] + ] + title: str + body: NotRequired[Union[str, None]] + user: Union[None, SimpleUserType] + labels: List[Union[str, IssuePropLabelsItemsOneof1Type]] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[List[SimpleUserType], None]] + milestone: Union[None, MilestoneType] + locked: bool + active_lock_reason: NotRequired[Union[str, None]] + comments: int + pull_request: NotRequired[IssuePropPullRequestType] + closed_at: Union[datetime, None] created_at: datetime updated_at: datetime - description: Union[str, None] - comments: int - user: Union[None, SimpleUserType] - comments_url: str - owner: NotRequired[SimpleUserType] - truncated: NotRequired[bool] - forks: NotRequired[List[Any]] - history: NotRequired[List[Any]] + draft: NotRequired[bool] + closed_by: NotRequired[Union[None, SimpleUserType]] + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + repository: NotRequired[RepositoryType] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + reactions: NotRequired[ReactionRollupType] + + +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""" -class BaseGistPropFilesType(TypedDict): - """BaseGistPropFiles""" + 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__ = ( - "BaseGistType", - "BaseGistPropFilesType", + "IssueType", + "IssuePropLabelsItemsOneof1Type", + "IssuePropPullRequestType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0040.py b/githubkit/versions/v2022_11_28/types/group_0040.py index 41c7f4f76..60ce84d75 100644 --- a/githubkit/versions/v2022_11_28/types/group_0040.py +++ b/githubkit/versions/v2022_11_28/types/group_0040.py @@ -10,68 +10,43 @@ from __future__ import annotations from datetime import datetime -from typing import Any, List, Union +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType +from .group_0038 import ReactionRollupType -class GistHistoryType(TypedDict): - """Gist History +class IssueCommentType(TypedDict): + """Issue Comment - Gist History + Comments provide a way for people to collaborate on an issue. """ - user: NotRequired[Union[None, SimpleUserType]] - version: NotRequired[str] - committed_at: NotRequired[datetime] - change_status: NotRequired[GistHistoryPropChangeStatusType] - url: NotRequired[str] - - -class GistHistoryPropChangeStatusType(TypedDict): - """GistHistoryPropChangeStatus""" - - total: NotRequired[int] - additions: NotRequired[int] - deletions: NotRequired[int] - - -class GistSimplePropForkOfType(TypedDict): - """Gist - - Gist - """ - - url: str - forks_url: str - commits_url: str - id: str + id: int node_id: str - git_pull_url: str - git_push_url: str + url: str + body: NotRequired[str] + body_text: NotRequired[str] + body_html: NotRequired[str] html_url: str - files: GistSimplePropForkOfPropFilesType - public: bool + user: Union[None, SimpleUserType] created_at: datetime updated_at: datetime - description: Union[str, None] - comments: int - user: Union[None, SimpleUserType] - comments_url: str - owner: NotRequired[Union[None, SimpleUserType]] - truncated: NotRequired[bool] - forks: NotRequired[List[Any]] - history: NotRequired[List[Any]] - - -class GistSimplePropForkOfPropFilesType(TypedDict): - """GistSimplePropForkOfPropFiles""" - - -__all__ = ( - "GistHistoryType", - "GistHistoryPropChangeStatusType", - "GistSimplePropForkOfType", - "GistSimplePropForkOfPropFilesType", -) + 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_0041.py b/githubkit/versions/v2022_11_28/types/group_0041.py index b19b4b63c..e7a5a4e8a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0041.py +++ b/githubkit/versions/v2022_11_28/types/group_0041.py @@ -13,114 +13,72 @@ from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0040 import GistHistoryType, GistSimplePropForkOfType +from .group_0039 import IssueType +from .group_0040 import IssueCommentType -class GistSimpleType(TypedDict): - """Gist Simple +class EventPropPayloadType(TypedDict): + """EventPropPayload""" - Gist Simple - """ + action: NotRequired[str] + issue: NotRequired[IssueType] + comment: NotRequired[IssueCommentType] + pages: NotRequired[List[EventPropPayloadPropPagesItemsType]] - 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] - user: NotRequired[Union[str, None]] - comments_url: NotRequired[str] - owner: NotRequired[SimpleUserType] - truncated: NotRequired[bool] +class EventPropPayloadPropPagesItemsType(TypedDict): + """EventPropPayloadPropPagesItems""" -class GistSimplePropFilesType(TypedDict): - """GistSimplePropFiles""" + page_name: NotRequired[str] + title: NotRequired[str] + summary: NotRequired[Union[str, None]] + action: NotRequired[str] + sha: NotRequired[str] + html_url: NotRequired[str] -class GistSimplePropForksItemsType(TypedDict): - """GistSimplePropForksItems""" +class EventType(TypedDict): + """Event - id: NotRequired[str] - url: NotRequired[str] - user: NotRequired[PublicUserType] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] + Event + """ + id: str + type: Union[str, None] + actor: ActorType + repo: EventPropRepoType + org: NotRequired[ActorType] + payload: EventPropPayloadType + public: bool + created_at: Union[datetime, None] -class PublicUserType(TypedDict): - """Public User - Public User +class ActorType(TypedDict): + """Actor + + Actor """ - login: str id: int - node_id: str - avatar_url: str + login: str + display_login: NotRequired[str] gravatar_id: Union[str, None] url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str - type: str - site_admin: bool - name: Union[str, None] - company: Union[str, None] - blog: Union[str, None] - location: Union[str, None] - email: Union[str, None] - notification_email: NotRequired[Union[str, None]] - hireable: Union[bool, None] - bio: Union[str, None] - twitter_username: NotRequired[Union[str, None]] - public_repos: int - public_gists: int - followers: int - following: int - created_at: datetime - updated_at: datetime - plan: NotRequired[PublicUserPropPlanType] - suspended_at: NotRequired[Union[datetime, None]] - private_gists: NotRequired[int] - total_private_repos: NotRequired[int] - owned_private_repos: NotRequired[int] - disk_usage: NotRequired[int] - collaborators: NotRequired[int] - - -class PublicUserPropPlanType(TypedDict): - """PublicUserPropPlan""" - - collaborators: int + avatar_url: str + + +class EventPropRepoType(TypedDict): + """EventPropRepo""" + + id: int name: str - space: int - private_repos: int + url: str __all__ = ( - "GistSimpleType", - "GistSimplePropFilesType", - "GistSimplePropForksItemsType", - "PublicUserType", - "PublicUserPropPlanType", + "EventPropPayloadType", + "EventPropPayloadPropPagesItemsType", + "EventType", + "ActorType", + "EventPropRepoType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0042.py b/githubkit/versions/v2022_11_28/types/group_0042.py index 4da3a72b5..8a6dba029 100644 --- a/githubkit/versions/v2022_11_28/types/group_0042.py +++ b/githubkit/versions/v2022_11_28/types/group_0042.py @@ -9,36 +9,56 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class FeedType(TypedDict): + """Feed -class GistCommentType(TypedDict): - """Gist Comment + Feed + """ + + 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] - A comment made to a gist. + +class LinkWithTypeType(TypedDict): + """Link With Type + + Hypermedia Link with Type """ - 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",) + href: str + type: str + + +__all__ = ( + "FeedType", + "FeedPropLinksType", + "LinkWithTypeType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0043.py b/githubkit/versions/v2022_11_28/types/group_0043.py index 9310e581c..82b875098 100644 --- a/githubkit/versions/v2022_11_28/types/group_0043.py +++ b/githubkit/versions/v2022_11_28/types/group_0043.py @@ -9,35 +9,46 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import Any, List, Union from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -class GistCommitType(TypedDict): - """Gist Commit +class BaseGistType(TypedDict): + """Base Gist - Gist Commit + Base Gist """ url: str - version: str + forks_url: str + commits_url: str + id: str + node_id: str + git_pull_url: str + git_push_url: str + html_url: str + files: BaseGistPropFilesType + public: bool + created_at: datetime + updated_at: datetime + description: Union[str, None] + comments: int user: Union[None, SimpleUserType] - change_status: GistCommitPropChangeStatusType - committed_at: datetime + comments_url: str + owner: NotRequired[SimpleUserType] + truncated: NotRequired[bool] + forks: NotRequired[List[Any]] + history: NotRequired[List[Any]] -class GistCommitPropChangeStatusType(TypedDict): - """GistCommitPropChangeStatus""" - - total: NotRequired[int] - additions: NotRequired[int] - deletions: NotRequired[int] +class BaseGistPropFilesType(TypedDict): + """BaseGistPropFiles""" __all__ = ( - "GistCommitType", - "GistCommitPropChangeStatusType", + "BaseGistType", + "BaseGistPropFilesType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0044.py b/githubkit/versions/v2022_11_28/types/group_0044.py index 69bf98302..41c7f4f76 100644 --- a/githubkit/versions/v2022_11_28/types/group_0044.py +++ b/githubkit/versions/v2022_11_28/types/group_0044.py @@ -9,17 +9,69 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Any, List, Union +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class GitignoreTemplateType(TypedDict): - """Gitignore Template - Gitignore Template +class GistHistoryType(TypedDict): + """Gist History + + Gist History """ - name: str - source: str + user: NotRequired[Union[None, SimpleUserType]] + version: NotRequired[str] + committed_at: NotRequired[datetime] + change_status: NotRequired[GistHistoryPropChangeStatusType] + url: NotRequired[str] + + +class GistHistoryPropChangeStatusType(TypedDict): + """GistHistoryPropChangeStatus""" + + total: NotRequired[int] + additions: NotRequired[int] + deletions: NotRequired[int] + + +class GistSimplePropForkOfType(TypedDict): + """Gist + + Gist + """ + + url: str + 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 + user: Union[None, SimpleUserType] + comments_url: str + owner: NotRequired[Union[None, SimpleUserType]] + truncated: NotRequired[bool] + forks: NotRequired[List[Any]] + history: NotRequired[List[Any]] + + +class GistSimplePropForkOfPropFilesType(TypedDict): + """GistSimplePropForkOfPropFiles""" -__all__ = ("GitignoreTemplateType",) +__all__ = ( + "GistHistoryType", + "GistHistoryPropChangeStatusType", + "GistSimplePropForkOfType", + "GistSimplePropForkOfPropFilesType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0045.py b/githubkit/versions/v2022_11_28/types/group_0045.py index 8cbd71cbc..e31100d74 100644 --- a/githubkit/versions/v2022_11_28/types/group_0045.py +++ b/githubkit/versions/v2022_11_28/types/group_0045.py @@ -9,29 +9,118 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0044 import GistHistoryType, GistSimplePropForkOfType -class LicenseType(TypedDict): - """License - License +class GistSimpleType(TypedDict): + """Gist Simple + + Gist Simple """ - key: str - name: str - spdx_id: Union[str, None] - url: Union[str, None] + 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] + user: NotRequired[Union[str, None]] + comments_url: NotRequired[str] + owner: NotRequired[SimpleUserType] + truncated: NotRequired[bool] + + +class GistSimplePropFilesType(TypedDict): + """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 node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str html_url: str - description: str - implementation: str - permissions: List[str] - conditions: List[str] - limitations: List[str] - body: str - featured: bool + 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] + suspended_at: NotRequired[Union[datetime, None]] + private_gists: NotRequired[int] + total_private_repos: NotRequired[int] + owned_private_repos: NotRequired[int] + disk_usage: NotRequired[int] + collaborators: NotRequired[int] + + +class PublicUserPropPlanType(TypedDict): + """PublicUserPropPlan""" + + collaborators: int + name: str + space: int + private_repos: int -__all__ = ("LicenseType",) +__all__ = ( + "GistSimpleType", + "GistSimplePropFilesType", + "GistSimplePropForksItemsType", + "PublicUserType", + "PublicUserPropPlanType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0046.py b/githubkit/versions/v2022_11_28/types/group_0046.py index ffdc9e4da..4da3a72b5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0046.py +++ b/githubkit/versions/v2022_11_28/types/group_0046.py @@ -9,29 +9,36 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict +from .group_0001 import SimpleUserType -class MarketplaceListingPlanType(TypedDict): - """Marketplace Listing Plan - Marketplace Listing Plan +class GistCommentType(TypedDict): + """Gist Comment + + A comment made to a gist. """ - url: str - accounts_url: str id: int - number: int - name: str - description: str - monthly_price_in_cents: int - yearly_price_in_cents: int - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - has_free_trial: bool - unit_name: Union[str, None] - state: str - bullets: List[str] - - -__all__ = ("MarketplaceListingPlanType",) + 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_0047.py b/githubkit/versions/v2022_11_28/types/group_0047.py index 7b745e46c..9310e581c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0047.py +++ b/githubkit/versions/v2022_11_28/types/group_0047.py @@ -10,30 +10,34 @@ from __future__ import annotations from typing import Union +from datetime import datetime from typing_extensions import TypedDict, NotRequired -from .group_0048 import ( - MarketplacePurchasePropMarketplacePurchaseType, - MarketplacePurchasePropMarketplacePendingChangeType, -) +from .group_0001 import SimpleUserType -class MarketplacePurchaseType(TypedDict): - """Marketplace Purchase +class GistCommitType(TypedDict): + """Gist Commit - Marketplace Purchase + Gist Commit """ 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",) + 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__ = ( + "GistCommitType", + "GistCommitPropChangeStatusType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0048.py b/githubkit/versions/v2022_11_28/types/group_0048.py index 9d42c3d48..69bf98302 100644 --- a/githubkit/versions/v2022_11_28/types/group_0048.py +++ b/githubkit/versions/v2022_11_28/types/group_0048.py @@ -9,36 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0046 import MarketplaceListingPlanType +class GitignoreTemplateType(TypedDict): + """Gitignore Template -class MarketplacePurchasePropMarketplacePendingChangeType(TypedDict): - """MarketplacePurchasePropMarketplacePendingChange""" + Gitignore Template + """ - is_installed: NotRequired[bool] - effective_date: NotRequired[str] - unit_count: NotRequired[Union[int, None]] - id: NotRequired[int] - plan: NotRequired[MarketplaceListingPlanType] + name: str + source: 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__ = ("GitignoreTemplateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0049.py b/githubkit/versions/v2022_11_28/types/group_0049.py index 1dde328c2..8cbd71cbc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0049.py +++ b/githubkit/versions/v2022_11_28/types/group_0049.py @@ -9,54 +9,29 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing import List, Union +from typing_extensions import TypedDict -class ApiOverviewType(TypedDict): - """Api Overview +class LicenseType(TypedDict): + """License - Api Overview + License """ - 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]] - dependabot: NotRequired[List[str]] - domains: NotRequired[ApiOverviewPropDomainsType] - - -class ApiOverviewPropSshKeyFingerprintsType(TypedDict): - """ApiOverviewPropSshKeyFingerprints""" - - sha256_rsa: NotRequired[str] - sha256_dsa: NotRequired[str] - sha256_ecdsa: NotRequired[str] - sha256_ed25519: NotRequired[str] - - -class ApiOverviewPropDomainsType(TypedDict): - """ApiOverviewPropDomains""" - - website: NotRequired[List[str]] - codespaces: NotRequired[List[str]] - copilot: NotRequired[List[str]] - packages: NotRequired[List[str]] - actions: NotRequired[List[str]] - - -__all__ = ( - "ApiOverviewType", - "ApiOverviewPropSshKeyFingerprintsType", - "ApiOverviewPropDomainsType", -) + 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_0050.py b/githubkit/versions/v2022_11_28/types/group_0050.py index 5220e6435..ffdc9e4da 100644 --- a/githubkit/versions/v2022_11_28/types/group_0050.py +++ b/githubkit/versions/v2022_11_28/types/group_0050.py @@ -9,54 +9,29 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List, Union, Literal +from typing_extensions import TypedDict -class SecurityAndAnalysisType(TypedDict): - """SecurityAndAnalysis""" +class MarketplaceListingPlanType(TypedDict): + """Marketplace Listing Plan - advanced_security: NotRequired[SecurityAndAnalysisPropAdvancedSecurityType] - dependabot_security_updates: NotRequired[ - SecurityAndAnalysisPropDependabotSecurityUpdatesType - ] - secret_scanning: NotRequired[SecurityAndAnalysisPropSecretScanningType] - secret_scanning_push_protection: NotRequired[ - SecurityAndAnalysisPropSecretScanningPushProtectionType - ] - - -class SecurityAndAnalysisPropAdvancedSecurityType(TypedDict): - """SecurityAndAnalysisPropAdvancedSecurity""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropDependabotSecurityUpdatesType(TypedDict): - """SecurityAndAnalysisPropDependabotSecurityUpdates - - Enable or disable Dependabot security updates for the repository. + Marketplace Listing Plan """ - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningType(TypedDict): - """SecurityAndAnalysisPropSecretScanning""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -class SecurityAndAnalysisPropSecretScanningPushProtectionType(TypedDict): - """SecurityAndAnalysisPropSecretScanningPushProtection""" - - status: NotRequired[Literal["enabled", "disabled"]] - - -__all__ = ( - "SecurityAndAnalysisType", - "SecurityAndAnalysisPropAdvancedSecurityType", - "SecurityAndAnalysisPropDependabotSecurityUpdatesType", - "SecurityAndAnalysisPropSecretScanningType", - "SecurityAndAnalysisPropSecretScanningPushProtectionType", -) + url: str + accounts_url: str + id: int + number: int + name: str + description: str + monthly_price_in_cents: int + yearly_price_in_cents: int + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + has_free_trial: bool + unit_name: Union[str, None] + state: str + bullets: List[str] + + +__all__ = ("MarketplaceListingPlanType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0051.py b/githubkit/versions/v2022_11_28/types/group_0051.py index fbf569922..ef2734ecc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0051.py +++ b/githubkit/versions/v2022_11_28/types/group_0051.py @@ -9,145 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0050 import SecurityAndAnalysisType - - -class MinimalRepositoryType(TypedDict): - """Minimal Repository - - Minimal Repository - """ - - id: int - node_id: str - name: str - full_name: str - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: NotRequired[str] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: NotRequired[str] - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: NotRequired[str] - mirror_url: NotRequired[Union[str, None]] - hooks_url: str - svn_url: NotRequired[str] - homepage: NotRequired[Union[str, None]] - language: NotRequired[Union[str, None]] - forks_count: NotRequired[int] - stargazers_count: NotRequired[int] - watchers_count: NotRequired[int] - size: NotRequired[int] - default_branch: NotRequired[str] - open_issues_count: NotRequired[int] - is_template: NotRequired[bool] - topics: NotRequired[List[str]] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_pages: NotRequired[bool] - has_downloads: NotRequired[bool] - has_discussions: NotRequired[bool] - archived: NotRequired[bool] - disabled: NotRequired[bool] - visibility: NotRequired[str] - pushed_at: NotRequired[Union[datetime, None]] - created_at: NotRequired[Union[datetime, None]] - updated_at: NotRequired[Union[datetime, None]] - permissions: NotRequired[MinimalRepositoryPropPermissionsType] - role_name: NotRequired[str] - temp_clone_token: NotRequired[Union[str, None]] - delete_branch_on_merge: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - code_of_conduct: NotRequired[CodeOfConductType] - license_: NotRequired[Union[MinimalRepositoryPropLicenseType, None]] - forks: NotRequired[int] - open_issues: NotRequired[int] - watchers: NotRequired[int] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] +from .group_0052 import ( + MarketplacePurchasePropMarketplacePurchaseType, + MarketplacePurchasePropMarketplacePendingChangeType, +) -class CodeOfConductType(TypedDict): - """Code Of Conduct +class MarketplacePurchaseType(TypedDict): + """Marketplace Purchase - Code Of Conduct + Marketplace Purchase """ - 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] + 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__ = ( - "MinimalRepositoryType", - "CodeOfConductType", - "MinimalRepositoryPropPermissionsType", - "MinimalRepositoryPropLicenseType", -) +__all__ = ("MarketplacePurchaseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0052.py b/githubkit/versions/v2022_11_28/types/group_0052.py index ad408ff05..054af6971 100644 --- a/githubkit/versions/v2022_11_28/types/group_0052.py +++ b/githubkit/versions/v2022_11_28/types/group_0052.py @@ -10,38 +10,35 @@ from __future__ import annotations from typing import Union -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0051 import MinimalRepositoryType +from .group_0050 import MarketplaceListingPlanType -class ThreadType(TypedDict): - """Thread +class MarketplacePurchasePropMarketplacePendingChangeType(TypedDict): + """MarketplacePurchasePropMarketplacePendingChange""" - Thread - """ + is_installed: NotRequired[bool] + effective_date: NotRequired[str] + unit_count: NotRequired[Union[int, None]] + id: NotRequired[int] + plan: NotRequired[MarketplaceListingPlanType] - 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 MarketplacePurchasePropMarketplacePurchaseType(TypedDict): + """MarketplacePurchasePropMarketplacePurchase""" -class ThreadPropSubjectType(TypedDict): - """ThreadPropSubject""" - - title: str - url: str - latest_comment_url: str - type: str + billing_cycle: NotRequired[str] + next_billing_date: NotRequired[Union[str, None]] + is_installed: NotRequired[bool] + unit_count: NotRequired[Union[int, None]] + on_free_trial: NotRequired[bool] + free_trial_ends_on: NotRequired[Union[str, None]] + updated_at: NotRequired[str] + plan: NotRequired[MarketplaceListingPlanType] __all__ = ( - "ThreadType", - "ThreadPropSubjectType", + "MarketplacePurchasePropMarketplacePendingChangeType", + "MarketplacePurchasePropMarketplacePurchaseType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0053.py b/githubkit/versions/v2022_11_28/types/group_0053.py index 25325d850..1dde328c2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0053.py +++ b/githubkit/versions/v2022_11_28/types/group_0053.py @@ -9,24 +9,54 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import List from typing_extensions import TypedDict, NotRequired -class ThreadSubscriptionType(TypedDict): - """Thread Subscription +class ApiOverviewType(TypedDict): + """Api Overview - Thread Subscription + Api Overview """ - subscribed: bool - ignored: bool - reason: Union[str, None] - created_at: Union[datetime, None] - url: str - thread_url: NotRequired[str] - repository_url: NotRequired[str] - - -__all__ = ("ThreadSubscriptionType",) + 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]] + dependabot: NotRequired[List[str]] + domains: NotRequired[ApiOverviewPropDomainsType] + + +class ApiOverviewPropSshKeyFingerprintsType(TypedDict): + """ApiOverviewPropSshKeyFingerprints""" + + sha256_rsa: NotRequired[str] + sha256_dsa: NotRequired[str] + sha256_ecdsa: NotRequired[str] + sha256_ed25519: NotRequired[str] + + +class ApiOverviewPropDomainsType(TypedDict): + """ApiOverviewPropDomains""" + + website: NotRequired[List[str]] + codespaces: NotRequired[List[str]] + copilot: NotRequired[List[str]] + packages: NotRequired[List[str]] + actions: NotRequired[List[str]] + + +__all__ = ( + "ApiOverviewType", + "ApiOverviewPropSshKeyFingerprintsType", + "ApiOverviewPropDomainsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0054.py b/githubkit/versions/v2022_11_28/types/group_0054.py index 4ee4d69b1..54f4fe541 100644 --- a/githubkit/versions/v2022_11_28/types/group_0054.py +++ b/githubkit/versions/v2022_11_28/types/group_0054.py @@ -9,87 +9,64 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrganizationFullType(TypedDict): - """Organization Full +class SecurityAndAnalysisType(TypedDict): + """SecurityAndAnalysis""" - Organization Full + advanced_security: NotRequired[SecurityAndAnalysisPropAdvancedSecurityType] + dependabot_security_updates: NotRequired[ + SecurityAndAnalysisPropDependabotSecurityUpdatesType + ] + secret_scanning: NotRequired[SecurityAndAnalysisPropSecretScanningType] + secret_scanning_push_protection: NotRequired[ + SecurityAndAnalysisPropSecretScanningPushProtectionType + ] + secret_scanning_non_provider_patterns: NotRequired[ + SecurityAndAnalysisPropSecretScanningNonProviderPatternsType + ] + + +class SecurityAndAnalysisPropAdvancedSecurityType(TypedDict): + """SecurityAndAnalysisPropAdvancedSecurity""" + + status: NotRequired[Literal["enabled", "disabled"]] + + +class SecurityAndAnalysisPropDependabotSecurityUpdatesType(TypedDict): + """SecurityAndAnalysisPropDependabotSecurityUpdates + + Enable or disable Dependabot security updates for the repository. """ - login: str - id: int - node_id: str - url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] - name: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - blog: NotRequired[Union[str, None]] - location: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - twitter_username: NotRequired[Union[str, None]] - is_verified: NotRequired[bool] - has_organization_projects: bool - has_repository_projects: bool - public_repos: int - public_gists: int - followers: int - following: int - html_url: str - type: str - total_private_repos: NotRequired[int] - owned_private_repos: NotRequired[int] - private_gists: NotRequired[Union[int, None]] - disk_usage: NotRequired[Union[int, None]] - collaborators: NotRequired[Union[int, None]] - billing_email: NotRequired[Union[str, None]] - plan: NotRequired[OrganizationFullPropPlanType] - default_repository_permission: NotRequired[Union[str, None]] - members_can_create_repositories: NotRequired[Union[bool, None]] - two_factor_requirement_enabled: NotRequired[Union[bool, None]] - members_allowed_repository_creation_type: NotRequired[str] - members_can_create_public_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[Union[bool, None]] - web_commit_signoff_required: NotRequired[bool] - advanced_security_enabled_for_new_repositories: NotRequired[bool] - dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] - dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] - dependency_graph_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] - secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] - secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] - created_at: datetime - updated_at: datetime - archived_at: Union[datetime, None] - - -class OrganizationFullPropPlanType(TypedDict): - """OrganizationFullPropPlan""" - - name: str - space: int - private_repos: int - filled_seats: NotRequired[int] - seats: NotRequired[int] + 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"]] __all__ = ( - "OrganizationFullType", - "OrganizationFullPropPlanType", + "SecurityAndAnalysisType", + "SecurityAndAnalysisPropAdvancedSecurityType", + "SecurityAndAnalysisPropDependabotSecurityUpdatesType", + "SecurityAndAnalysisPropSecretScanningType", + "SecurityAndAnalysisPropSecretScanningPushProtectionType", + "SecurityAndAnalysisPropSecretScanningNonProviderPatternsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0055.py b/githubkit/versions/v2022_11_28/types/group_0055.py index a41742c81..65892802d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0055.py +++ b/githubkit/versions/v2022_11_28/types/group_0055.py @@ -9,14 +9,145 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0054 import SecurityAndAnalysisType -class ActionsCacheUsageOrgEnterpriseType(TypedDict): - """ActionsCacheUsageOrgEnterprise""" - total_active_caches_count: int - total_active_caches_size_in_bytes: int +class MinimalRepositoryType(TypedDict): + """Minimal Repository + Minimal Repository + """ -__all__ = ("ActionsCacheUsageOrgEnterpriseType",) + id: int + node_id: str + name: str + full_name: str + owner: SimpleUserType + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: NotRequired[str] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: NotRequired[str] + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: NotRequired[str] + mirror_url: NotRequired[Union[str, None]] + hooks_url: str + svn_url: NotRequired[str] + homepage: NotRequired[Union[str, None]] + language: NotRequired[Union[str, None]] + forks_count: NotRequired[int] + stargazers_count: NotRequired[int] + watchers_count: NotRequired[int] + size: NotRequired[int] + default_branch: NotRequired[str] + open_issues_count: NotRequired[int] + is_template: NotRequired[bool] + topics: NotRequired[List[str]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_pages: NotRequired[bool] + has_downloads: NotRequired[bool] + has_discussions: NotRequired[bool] + archived: NotRequired[bool] + disabled: NotRequired[bool] + visibility: NotRequired[str] + pushed_at: NotRequired[Union[datetime, None]] + created_at: NotRequired[Union[datetime, None]] + updated_at: NotRequired[Union[datetime, None]] + permissions: NotRequired[MinimalRepositoryPropPermissionsType] + role_name: NotRequired[str] + temp_clone_token: NotRequired[Union[str, None]] + delete_branch_on_merge: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + code_of_conduct: NotRequired[CodeOfConductType] + license_: NotRequired[Union[MinimalRepositoryPropLicenseType, None]] + forks: NotRequired[int] + open_issues: NotRequired[int] + watchers: NotRequired[int] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] + + +class CodeOfConductType(TypedDict): + """Code Of Conduct + + Code Of Conduct + """ + + key: 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] + + +__all__ = ( + "MinimalRepositoryType", + "CodeOfConductType", + "MinimalRepositoryPropPermissionsType", + "MinimalRepositoryPropLicenseType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0056.py b/githubkit/versions/v2022_11_28/types/group_0056.py index 7eecb9b27..bc97c374a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0056.py +++ b/githubkit/versions/v2022_11_28/types/group_0056.py @@ -9,17 +9,39 @@ from __future__ import annotations -from typing import List +from typing import Union from typing_extensions import TypedDict +from .group_0055 import MinimalRepositoryType -class OidcCustomSubType(TypedDict): - """Actions OIDC Subject customization - Actions OIDC Subject customization +class ThreadType(TypedDict): + """Thread + + Thread """ - include_claim_keys: List[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 + latest_comment_url: str + type: str -__all__ = ("OidcCustomSubType",) +__all__ = ( + "ThreadType", + "ThreadPropSubjectType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0057.py b/githubkit/versions/v2022_11_28/types/group_0057.py index 15df396e9..25325d850 100644 --- a/githubkit/versions/v2022_11_28/types/group_0057.py +++ b/githubkit/versions/v2022_11_28/types/group_0057.py @@ -9,14 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -class EmptyObjectType(TypedDict): - """Empty Object +class ThreadSubscriptionType(TypedDict): + """Thread Subscription - An object without any properties. + Thread Subscription """ + subscribed: bool + ignored: bool + reason: Union[str, None] + created_at: Union[datetime, None] + url: str + thread_url: NotRequired[str] + repository_url: NotRequired[str] -__all__ = ("EmptyObjectType",) + +__all__ = ("ThreadSubscriptionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0058.py b/githubkit/versions/v2022_11_28/types/group_0058.py index dfaea724d..4ee4d69b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0058.py +++ b/githubkit/versions/v2022_11_28/types/group_0058.py @@ -9,17 +9,87 @@ from __future__ import annotations -from typing import Literal +from typing import Union +from datetime import datetime from typing_extensions import TypedDict, NotRequired -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] + Organization Full + """ + login: str + id: int + node_id: str + url: str + repos_url: str + events_url: str + hooks_url: str + issues_url: str + members_url: str + public_members_url: str + avatar_url: str + description: Union[str, None] + name: NotRequired[Union[str, None]] + company: NotRequired[Union[str, None]] + blog: NotRequired[Union[str, None]] + location: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + twitter_username: NotRequired[Union[str, None]] + is_verified: NotRequired[bool] + has_organization_projects: bool + has_repository_projects: bool + public_repos: int + public_gists: int + followers: int + following: int + html_url: str + type: str + total_private_repos: NotRequired[int] + owned_private_repos: NotRequired[int] + private_gists: NotRequired[Union[int, None]] + disk_usage: NotRequired[Union[int, None]] + collaborators: NotRequired[Union[int, None]] + billing_email: NotRequired[Union[str, None]] + plan: NotRequired[OrganizationFullPropPlanType] + default_repository_permission: NotRequired[Union[str, None]] + members_can_create_repositories: NotRequired[Union[bool, None]] + two_factor_requirement_enabled: NotRequired[Union[bool, None]] + members_allowed_repository_creation_type: NotRequired[str] + members_can_create_public_repositories: NotRequired[bool] + members_can_create_private_repositories: NotRequired[bool] + members_can_create_internal_repositories: NotRequired[bool] + members_can_create_pages: NotRequired[bool] + members_can_create_public_pages: NotRequired[bool] + members_can_create_private_pages: NotRequired[bool] + members_can_fork_private_repositories: NotRequired[Union[bool, None]] + web_commit_signoff_required: NotRequired[bool] + advanced_security_enabled_for_new_repositories: NotRequired[bool] + dependabot_alerts_enabled_for_new_repositories: NotRequired[bool] + dependabot_security_updates_enabled_for_new_repositories: NotRequired[bool] + dependency_graph_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_enabled_for_new_repositories: NotRequired[bool] + secret_scanning_push_protection_custom_link_enabled: NotRequired[bool] + secret_scanning_push_protection_custom_link: NotRequired[Union[str, None]] + created_at: datetime + updated_at: datetime + archived_at: Union[datetime, None] -__all__ = ("ActionsOrganizationPermissionsType",) + +class OrganizationFullPropPlanType(TypedDict): + """OrganizationFullPropPlan""" + + name: str + space: int + private_repos: int + filled_seats: NotRequired[int] + seats: NotRequired[int] + + +__all__ = ( + "OrganizationFullType", + "OrganizationFullPropPlanType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0059.py b/githubkit/versions/v2022_11_28/types/group_0059.py index 59dfc4ff1..a41742c81 100644 --- a/githubkit/versions/v2022_11_28/types/group_0059.py +++ b/githubkit/versions/v2022_11_28/types/group_0059.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class SelectedActionsType(TypedDict): - """SelectedActions""" +class ActionsCacheUsageOrgEnterpriseType(TypedDict): + """ActionsCacheUsageOrgEnterprise""" - github_owned_allowed: NotRequired[bool] - verified_allowed: NotRequired[bool] - patterns_allowed: NotRequired[List[str]] + total_active_caches_count: int + total_active_caches_size_in_bytes: int -__all__ = ("SelectedActionsType",) +__all__ = ("ActionsCacheUsageOrgEnterpriseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0060.py b/githubkit/versions/v2022_11_28/types/group_0060.py index 87512f917..7eecb9b27 100644 --- a/githubkit/versions/v2022_11_28/types/group_0060.py +++ b/githubkit/versions/v2022_11_28/types/group_0060.py @@ -9,15 +9,17 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict -class ActionsGetDefaultWorkflowPermissionsType(TypedDict): - """ActionsGetDefaultWorkflowPermissions""" +class OidcCustomSubType(TypedDict): + """Actions OIDC Subject customization - default_workflow_permissions: Literal["read", "write"] - can_approve_pull_request_reviews: bool + Actions OIDC Subject customization + """ + include_claim_keys: List[str] -__all__ = ("ActionsGetDefaultWorkflowPermissionsType",) + +__all__ = ("OidcCustomSubType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0061.py b/githubkit/versions/v2022_11_28/types/group_0061.py index ee668e8e5..dfaea724d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0061.py +++ b/githubkit/versions/v2022_11_28/types/group_0061.py @@ -13,11 +13,13 @@ from typing_extensions import TypedDict, NotRequired -class ActionsSetDefaultWorkflowPermissionsType(TypedDict): - """ActionsSetDefaultWorkflowPermissions""" +class ActionsOrganizationPermissionsType(TypedDict): + """ActionsOrganizationPermissions""" - default_workflow_permissions: NotRequired[Literal["read", "write"]] - can_approve_pull_request_reviews: NotRequired[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__ = ("ActionsSetDefaultWorkflowPermissionsType",) +__all__ = ("ActionsOrganizationPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0062.py b/githubkit/versions/v2022_11_28/types/group_0062.py index c58767cc2..59dfc4ff1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0062.py +++ b/githubkit/versions/v2022_11_28/types/group_0062.py @@ -9,19 +9,16 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class RunnerLabelType(TypedDict): - """Self hosted runner label +class SelectedActionsType(TypedDict): + """SelectedActions""" - A label for a self hosted runner - """ + github_owned_allowed: NotRequired[bool] + verified_allowed: NotRequired[bool] + patterns_allowed: NotRequired[List[str]] - id: NotRequired[int] - name: str - type: NotRequired[Literal["read-only", "custom"]] - -__all__ = ("RunnerLabelType",) +__all__ = ("SelectedActionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0063.py b/githubkit/versions/v2022_11_28/types/group_0063.py index 1436170f0..87512f917 100644 --- a/githubkit/versions/v2022_11_28/types/group_0063.py +++ b/githubkit/versions/v2022_11_28/types/group_0063.py @@ -9,25 +9,15 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -from .group_0062 import RunnerLabelType +class ActionsGetDefaultWorkflowPermissionsType(TypedDict): + """ActionsGetDefaultWorkflowPermissions""" -class RunnerType(TypedDict): - """Self hosted runners + default_workflow_permissions: Literal["read", "write"] + can_approve_pull_request_reviews: bool - A self hosted runner - """ - id: int - runner_group_id: NotRequired[int] - name: str - os: str - status: str - busy: bool - labels: List[RunnerLabelType] - - -__all__ = ("RunnerType",) +__all__ = ("ActionsGetDefaultWorkflowPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0064.py b/githubkit/versions/v2022_11_28/types/group_0064.py index cd3357955..ee668e8e5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0064.py +++ b/githubkit/versions/v2022_11_28/types/group_0064.py @@ -9,21 +9,15 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class RunnerApplicationType(TypedDict): - """Runner Application +class ActionsSetDefaultWorkflowPermissionsType(TypedDict): + """ActionsSetDefaultWorkflowPermissions""" - Runner Application - """ + default_workflow_permissions: NotRequired[Literal["read", "write"]] + can_approve_pull_request_reviews: NotRequired[bool] - os: str - architecture: str - download_url: str - filename: str - temp_download_token: NotRequired[str] - sha256_checksum: NotRequired[str] - -__all__ = ("RunnerApplicationType",) +__all__ = ("ActionsSetDefaultWorkflowPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0065.py b/githubkit/versions/v2022_11_28/types/group_0065.py index 8d1c6ab24..c58767cc2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0065.py +++ b/githubkit/versions/v2022_11_28/types/group_0065.py @@ -9,36 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0017 import RepositoryType +class RunnerLabelType(TypedDict): + """Self hosted runner label -class AuthenticationTokenType(TypedDict): - """Authentication Token - - Authentication Token + A label for 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"]] - - -class AuthenticationTokenPropPermissionsType(TypedDict): - """AuthenticationTokenPropPermissions - - Examples: - {'issues': 'read', 'deployments': 'write'} - """ + id: NotRequired[int] + name: str + type: NotRequired[Literal["read-only", "custom"]] -__all__ = ( - "AuthenticationTokenType", - "AuthenticationTokenPropPermissionsType", -) +__all__ = ("RunnerLabelType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0066.py b/githubkit/versions/v2022_11_28/types/group_0066.py index 9c5cf6d77..e1db13a8f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0066.py +++ b/githubkit/versions/v2022_11_28/types/group_0066.py @@ -9,21 +9,25 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0065 import RunnerLabelType -class ActionsPublicKeyType(TypedDict): - """ActionsPublicKey - The public key used for setting Actions Secrets. +class RunnerType(TypedDict): + """Self hosted runners + + A self hosted runner """ - key_id: str - key: str - id: NotRequired[int] - url: NotRequired[str] - title: NotRequired[str] - created_at: NotRequired[str] + id: int + runner_group_id: NotRequired[int] + name: str + os: str + status: str + busy: bool + labels: List[RunnerLabelType] -__all__ = ("ActionsPublicKeyType",) +__all__ = ("RunnerType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0067.py b/githubkit/versions/v2022_11_28/types/group_0067.py index 810cf055c..cd3357955 100644 --- a/githubkit/versions/v2022_11_28/types/group_0067.py +++ b/githubkit/versions/v2022_11_28/types/group_0067.py @@ -9,21 +9,21 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class CodeScanningAlertRuleSummaryType(TypedDict): - """CodeScanningAlertRuleSummary""" +class RunnerApplicationType(TypedDict): + """Runner Application - id: NotRequired[Union[str, None]] - name: NotRequired[str] - tags: NotRequired[Union[List[str], None]] - severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] - security_severity_level: NotRequired[ - Union[None, Literal["low", "medium", "high", "critical"]] - ] - description: NotRequired[str] + Runner Application + """ + os: str + architecture: str + download_url: str + filename: str + temp_download_token: NotRequired[str] + sha256_checksum: NotRequired[str] -__all__ = ("CodeScanningAlertRuleSummaryType",) + +__all__ = ("RunnerApplicationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0068.py b/githubkit/versions/v2022_11_28/types/group_0068.py index ad24eeb86..8d1c6ab24 100644 --- a/githubkit/versions/v2022_11_28/types/group_0068.py +++ b/githubkit/versions/v2022_11_28/types/group_0068.py @@ -9,16 +9,36 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0017 import RepositoryType -class CodeScanningAnalysisToolType(TypedDict): - """CodeScanningAnalysisTool""" - name: NotRequired[str] - version: NotRequired[Union[str, None]] - guid: NotRequired[Union[str, None]] +class AuthenticationTokenType(TypedDict): + """Authentication Token + Authentication Token + """ -__all__ = ("CodeScanningAnalysisToolType",) + 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__ = ( + "AuthenticationTokenType", + "AuthenticationTokenPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0069.py b/githubkit/versions/v2022_11_28/types/group_0069.py index 1e0b0bcdc..9c5cf6d77 100644 --- a/githubkit/versions/v2022_11_28/types/group_0069.py +++ b/githubkit/versions/v2022_11_28/types/group_0069.py @@ -9,48 +9,21 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class CodeScanningAlertInstanceType(TypedDict): - """CodeScanningAlertInstance""" +class ActionsPublicKeyType(TypedDict): + """ActionsPublicKey - ref: NotRequired[str] - analysis_key: NotRequired[str] - environment: NotRequired[str] - category: NotRequired[str] - state: NotRequired[Literal["open", "dismissed", "fixed"]] - commit_sha: NotRequired[str] - message: NotRequired[CodeScanningAlertInstancePropMessageType] - location: NotRequired[CodeScanningAlertLocationType] - html_url: NotRequired[str] - classifications: NotRequired[ - List[Union[None, Literal["source", "generated", "test", "library"]]] - ] - - -class CodeScanningAlertLocationType(TypedDict): - """CodeScanningAlertLocation - - Describe a region within a file for the alert. + The public key used for setting Actions Secrets. """ - 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] + key_id: str + key: str + id: NotRequired[int] + url: NotRequired[str] + title: NotRequired[str] + created_at: NotRequired[str] -__all__ = ( - "CodeScanningAlertInstanceType", - "CodeScanningAlertLocationType", - "CodeScanningAlertInstancePropMessageType", -) +__all__ = ("ActionsPublicKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0070.py b/githubkit/versions/v2022_11_28/types/group_0070.py index a028f9910..810cf055c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0070.py +++ b/githubkit/versions/v2022_11_28/types/group_0070.py @@ -9,38 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0029 import SimpleRepositoryType -from .group_0068 import CodeScanningAnalysisToolType -from .group_0069 import CodeScanningAlertInstanceType -from .group_0067 import CodeScanningAlertRuleSummaryType - - -class CodeScanningOrganizationAlertItemsType(TypedDict): - """CodeScanningOrganizationAlertItems""" - - number: int - created_at: datetime - updated_at: NotRequired[datetime] - url: str - html_url: str - instances_url: str - state: 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"] + +class CodeScanningAlertRuleSummaryType(TypedDict): + """CodeScanningAlertRuleSummary""" + + id: NotRequired[Union[str, None]] + name: NotRequired[str] + tags: NotRequired[Union[List[str], None]] + severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] + security_severity_level: NotRequired[ + Union[None, Literal["low", "medium", "high", "critical"]] ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleSummaryType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType - repository: SimpleRepositoryType + description: NotRequired[str] -__all__ = ("CodeScanningOrganizationAlertItemsType",) +__all__ = ("CodeScanningAlertRuleSummaryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0071.py b/githubkit/versions/v2022_11_28/types/group_0071.py index 167bf465c..ad24eeb86 100644 --- a/githubkit/versions/v2022_11_28/types/group_0071.py +++ b/githubkit/versions/v2022_11_28/types/group_0071.py @@ -9,23 +9,16 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired -class CodespaceMachineType(TypedDict): - """Codespace machine +class CodeScanningAnalysisToolType(TypedDict): + """CodeScanningAnalysisTool""" - A description of the machine powering a codespace. - """ + name: NotRequired[str] + version: NotRequired[Union[str, None]] + guid: NotRequired[Union[str, None]] - name: str - display_name: str - operating_system: str - storage_in_bytes: int - memory_in_bytes: int - cpus: int - prebuild_availability: Union[None, Literal["none", "ready", "in_progress"]] - -__all__ = ("CodespaceMachineType",) +__all__ = ("CodeScanningAnalysisToolType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0072.py b/githubkit/versions/v2022_11_28/types/group_0072.py index 32b3bc176..1e0b0bcdc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0072.py +++ b/githubkit/versions/v2022_11_28/types/group_0072.py @@ -9,94 +9,48 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0071 import CodespaceMachineType -from .group_0051 import MinimalRepositoryType +class CodeScanningAlertInstanceType(TypedDict): + """CodeScanningAlertInstance""" -class CodespaceType(TypedDict): - """Codespace + ref: NotRequired[str] + analysis_key: NotRequired[str] + environment: NotRequired[str] + category: NotRequired[str] + state: NotRequired[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"]]] + ] - A codespace. - """ - id: int - name: str - display_name: NotRequired[Union[str, None]] - environment_id: Union[str, None] - owner: SimpleUserType - billable_owner: SimpleUserType - repository: MinimalRepositoryType - machine: Union[None, CodespaceMachineType] - devcontainer_path: NotRequired[Union[str, None]] - prebuild: Union[bool, None] - created_at: datetime - updated_at: datetime - last_used_at: datetime - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] - url: str - git_status: CodespacePropGitStatusType - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] - idle_timeout_minutes: Union[int, None] - web_url: str - machines_url: str - start_url: str - stop_url: str - publish_url: NotRequired[Union[str, None]] - pulls_url: Union[str, None] - recent_folders: List[str] - runtime_constraints: NotRequired[CodespacePropRuntimeConstraintsType] - pending_operation: NotRequired[Union[bool, None]] - pending_operation_disabled_reason: NotRequired[Union[str, None]] - idle_timeout_notice: NotRequired[Union[str, None]] - retention_period_minutes: NotRequired[Union[int, None]] - retention_expires_at: NotRequired[Union[datetime, None]] - last_known_stop_notice: NotRequired[Union[str, None]] - - -class CodespacePropGitStatusType(TypedDict): - """CodespacePropGitStatus - - Details about the codespace's git repository. +class CodeScanningAlertLocationType(TypedDict): + """CodeScanningAlertLocation + + Describe a region within a file for the alert. """ - ahead: NotRequired[int] - behind: NotRequired[int] - has_unpushed_changes: NotRequired[bool] - has_uncommitted_changes: NotRequired[bool] - ref: NotRequired[str] + path: NotRequired[str] + start_line: NotRequired[int] + end_line: NotRequired[int] + start_column: NotRequired[int] + end_column: NotRequired[int] -class CodespacePropRuntimeConstraintsType(TypedDict): - """CodespacePropRuntimeConstraints""" +class CodeScanningAlertInstancePropMessageType(TypedDict): + """CodeScanningAlertInstancePropMessage""" - allowed_port_privacy_settings: NotRequired[Union[List[str], None]] + text: NotRequired[str] __all__ = ( - "CodespaceType", - "CodespacePropGitStatusType", - "CodespacePropRuntimeConstraintsType", + "CodeScanningAlertInstanceType", + "CodeScanningAlertLocationType", + "CodeScanningAlertInstancePropMessageType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0073.py b/githubkit/versions/v2022_11_28/types/group_0073.py index 47e387234..94cf0075c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0073.py +++ b/githubkit/versions/v2022_11_28/types/group_0073.py @@ -9,21 +9,38 @@ from __future__ import annotations +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired - -class CodespacesPublicKeyType(TypedDict): - """CodespacesPublicKey - - The public key used for setting Codespaces secrets. - """ - - key_id: str - key: str - id: NotRequired[int] - url: NotRequired[str] - title: NotRequired[str] - created_at: NotRequired[str] - - -__all__ = ("CodespacesPublicKeyType",) +from .group_0001 import SimpleUserType +from .group_0033 import SimpleRepositoryType +from .group_0071 import CodeScanningAnalysisToolType +from .group_0072 import CodeScanningAlertInstanceType +from .group_0070 import CodeScanningAlertRuleSummaryType + + +class CodeScanningOrganizationAlertItemsType(TypedDict): + """CodeScanningOrganizationAlertItems""" + + number: int + created_at: datetime + updated_at: NotRequired[datetime] + url: str + html_url: str + instances_url: str + state: Literal["open", "dismissed", "fixed"] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleSummaryType + tool: CodeScanningAnalysisToolType + most_recent_instance: CodeScanningAlertInstanceType + repository: SimpleRepositoryType + + +__all__ = ("CodeScanningOrganizationAlertItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0074.py b/githubkit/versions/v2022_11_28/types/group_0074.py index 29ee61aee..f82f0e955 100644 --- a/githubkit/versions/v2022_11_28/types/group_0074.py +++ b/githubkit/versions/v2022_11_28/types/group_0074.py @@ -10,41 +10,39 @@ from __future__ import annotations from typing import Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class CopilotOrganizationDetailsType(TypedDict): - """Copilot Business Organization Details +class CodeSecurityConfigurationType(TypedDict): + """CodeSecurityConfiguration - Information about the seat breakdown and policies set for an organization with a - Copilot Business subscription. + A code security configuration """ - seat_breakdown: CopilotSeatBreakdownType - public_code_suggestions: Literal["allow", "block", "unconfigured", "unknown"] - ide_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - platform_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - cli: NotRequired[Literal["enabled", "disabled", "unconfigured"]] - seat_management_setting: Literal[ - "assign_all", "assign_selected", "disabled", "unconfigured" + id: NotRequired[int] + name: NotRequired[str] + target_type: NotRequired[Literal["global", "organization"]] + description: NotRequired[str] + advanced_security: NotRequired[Literal["enabled", "disabled"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + url: NotRequired[str] + html_url: NotRequired[str] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] -class CopilotSeatBreakdownType(TypedDict): - """Copilot Business Seat Breakdown - - The breakdown of Copilot Business seats for the organization. - """ - - total: NotRequired[int] - added_this_cycle: NotRequired[int] - pending_cancellation: NotRequired[int] - pending_invitation: NotRequired[int] - active_this_cycle: NotRequired[int] - inactive_this_cycle: NotRequired[int] - - -__all__ = ( - "CopilotOrganizationDetailsType", - "CopilotSeatBreakdownType", -) +__all__ = ("CodeSecurityConfigurationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0075.py b/githubkit/versions/v2022_11_28/types/group_0075.py index ff50a4403..fdae83542 100644 --- a/githubkit/versions/v2022_11_28/types/group_0075.py +++ b/githubkit/versions/v2022_11_28/types/group_0075.py @@ -9,29 +9,17 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0074 import CodeSecurityConfigurationType -class TeamSimpleType(TypedDict): - """Team Simple - Groups of organization members that gives permissions on specified repositories. - """ +class CodeSecurityDefaultConfigurationsItemsType(TypedDict): + """CodeSecurityDefaultConfigurationsItems""" - 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] + default_for_new_repos: NotRequired[Literal["public", "private_and_internal", "all"]] + configuration: NotRequired[CodeSecurityConfigurationType] -__all__ = ("TeamSimpleType",) +__all__ = ("CodeSecurityDefaultConfigurationsItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0076.py b/githubkit/versions/v2022_11_28/types/group_0076.py index dc5cb0291..64d82c888 100644 --- a/githubkit/versions/v2022_11_28/types/group_0076.py +++ b/githubkit/versions/v2022_11_28/types/group_0076.py @@ -9,45 +9,22 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0075 import TeamSimpleType +from .group_0033 import SimpleRepositoryType -class TeamType(TypedDict): - """Team +class CodeSecurityConfigurationRepositoriesType(TypedDict): + """CodeSecurityConfigurationRepositories - Groups of organization members that gives permissions on specified repositories. + Repositories associated with a code security configuration and attachment status """ - 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__ = ( - "TeamType", - "TeamPropPermissionsType", -) + status: NotRequired[ + Literal["attached", "attaching", "detached", "enforced", "failed", "updating"] + ] + repository: NotRequired[SimpleRepositoryType] + + +__all__ = ("CodeSecurityConfigurationRepositoriesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0077.py b/githubkit/versions/v2022_11_28/types/group_0077.py index fff17a722..167bf465c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0077.py +++ b/githubkit/versions/v2022_11_28/types/group_0077.py @@ -9,87 +9,23 @@ from __future__ import annotations -from typing import List, Union -from datetime import date, datetime -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0076 import TeamType -from .group_0001 import SimpleUserType +class CodespaceMachineType(TypedDict): + """Codespace machine -class CopilotSeatDetailsType(TypedDict): - """Copilot Business Seat Detail - - Information about a Copilot Business seat assignment for a user, team, or - organization. - """ - - assignee: Union[SimpleUserType, TeamType, OrganizationType] - assigning_team: NotRequired[Union[TeamType, 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] - - -class OrganizationType(TypedDict): - """Organization - - GitHub account for managing multiple users, teams, and repositories + A description of the machine powering a codespace. """ - login: str - url: str - id: int - node_id: 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] - blog: NotRequired[str] - html_url: str - name: NotRequired[str] - company: NotRequired[str] - location: NotRequired[str] - email: NotRequired[str] - has_organization_projects: bool - has_repository_projects: bool - is_verified: NotRequired[bool] - public_repos: int - public_gists: int - followers: int - following: int - type: str - created_at: datetime - updated_at: datetime - plan: NotRequired[OrganizationPropPlanType] - - -class OrganizationPropPlanType(TypedDict): - """OrganizationPropPlan""" - - name: NotRequired[str] - space: NotRequired[int] - private_repos: NotRequired[int] - filled_seats: NotRequired[int] - seats: NotRequired[int] - - -class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSeatsGetResponse200""" - - total_seats: NotRequired[int] - seats: NotRequired[List[CopilotSeatDetailsType]] + 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__ = ( - "CopilotSeatDetailsType", - "OrganizationType", - "OrganizationPropPlanType", - "OrgsOrgCopilotBillingSeatsGetResponse200Type", -) +__all__ = ("CodespaceMachineType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0078.py b/githubkit/versions/v2022_11_28/types/group_0078.py index fb3981a7a..665e3f0e5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0078.py +++ b/githubkit/versions/v2022_11_28/types/group_0078.py @@ -9,17 +9,94 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0077 import CodespaceMachineType +from .group_0055 import MinimalRepositoryType -class DependabotPublicKeyType(TypedDict): - """DependabotPublicKey - The public key used for setting Dependabot Secrets. +class CodespaceType(TypedDict): + """Codespace + + A codespace. """ - key_id: str - key: str + id: int + name: str + display_name: NotRequired[Union[str, None]] + environment_id: Union[str, None] + owner: SimpleUserType + billable_owner: SimpleUserType + repository: MinimalRepositoryType + machine: Union[None, CodespaceMachineType] + devcontainer_path: NotRequired[Union[str, None]] + prebuild: Union[bool, None] + created_at: datetime + updated_at: datetime + last_used_at: datetime + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] + url: str + git_status: CodespacePropGitStatusType + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] + idle_timeout_minutes: Union[int, None] + web_url: str + machines_url: str + start_url: str + stop_url: str + publish_url: NotRequired[Union[str, None]] + pulls_url: Union[str, None] + recent_folders: List[str] + runtime_constraints: NotRequired[CodespacePropRuntimeConstraintsType] + pending_operation: NotRequired[Union[bool, None]] + pending_operation_disabled_reason: NotRequired[Union[str, None]] + idle_timeout_notice: NotRequired[Union[str, None]] + retention_period_minutes: NotRequired[Union[int, None]] + retention_expires_at: NotRequired[Union[datetime, None]] + last_known_stop_notice: NotRequired[Union[str, None]] + + +class CodespacePropGitStatusType(TypedDict): + """CodespacePropGitStatus + + Details about the codespace's git repository. + """ + + ahead: NotRequired[int] + behind: NotRequired[int] + has_unpushed_changes: NotRequired[bool] + has_uncommitted_changes: NotRequired[bool] + ref: NotRequired[str] + + +class CodespacePropRuntimeConstraintsType(TypedDict): + """CodespacePropRuntimeConstraints""" + + allowed_port_privacy_settings: NotRequired[Union[List[str], None]] -__all__ = ("DependabotPublicKeyType",) +__all__ = ( + "CodespaceType", + "CodespacePropGitStatusType", + "CodespacePropRuntimeConstraintsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0079.py b/githubkit/versions/v2022_11_28/types/group_0079.py index 7aa50bf6f..47e387234 100644 --- a/githubkit/versions/v2022_11_28/types/group_0079.py +++ b/githubkit/versions/v2022_11_28/types/group_0079.py @@ -9,31 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0051 import MinimalRepositoryType +class CodespacesPublicKeyType(TypedDict): + """CodespacesPublicKey -class PackageType(TypedDict): - """Package - - A software package + The public key used for setting Codespaces secrets. """ - 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 + key_id: str + key: str + id: NotRequired[int] + url: NotRequired[str] + title: NotRequired[str] + created_at: NotRequired[str] -__all__ = ("PackageType",) +__all__ = ("CodespacesPublicKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0080.py b/githubkit/versions/v2022_11_28/types/group_0080.py index e3c872b4f..29ee61aee 100644 --- a/githubkit/versions/v2022_11_28/types/group_0080.py +++ b/githubkit/versions/v2022_11_28/types/group_0080.py @@ -9,30 +9,42 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class CopilotOrganizationDetailsType(TypedDict): + """Copilot Business Organization Details + + Information about the seat breakdown and policies set for an organization with a + Copilot Business subscription. + """ + + seat_breakdown: CopilotSeatBreakdownType + public_code_suggestions: Literal["allow", "block", "unconfigured", "unknown"] + ide_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + platform_chat: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + cli: NotRequired[Literal["enabled", "disabled", "unconfigured"]] + seat_management_setting: Literal[ + "assign_all", "assign_selected", "disabled", "unconfigured" + ] -class OrganizationInvitationType(TypedDict): - """Organization Invitation - Organization Invitation +class CopilotSeatBreakdownType(TypedDict): + """Copilot Business Seat Breakdown + + The breakdown of Copilot Business seats for the organization. """ - 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",) + total: NotRequired[int] + added_this_cycle: NotRequired[int] + pending_cancellation: NotRequired[int] + pending_invitation: NotRequired[int] + active_this_cycle: NotRequired[int] + inactive_this_cycle: NotRequired[int] + + +__all__ = ( + "CopilotOrganizationDetailsType", + "CopilotSeatBreakdownType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0081.py b/githubkit/versions/v2022_11_28/types/group_0081.py index 396656d86..fb3981a7a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0081.py +++ b/githubkit/versions/v2022_11_28/types/group_0081.py @@ -9,40 +9,17 @@ from __future__ import annotations -from typing import List -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgHookType(TypedDict): - """Org Hook +class DependabotPublicKeyType(TypedDict): + """DependabotPublicKey - Org Hook + The public key used for setting Dependabot Secrets. """ - 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 + key_id: str + key: str -class OrgHookPropConfigType(TypedDict): - """OrgHookPropConfig""" - - url: NotRequired[str] - insecure_ssl: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - - -__all__ = ( - "OrgHookType", - "OrgHookPropConfigType", -) +__all__ = ("DependabotPublicKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0082.py b/githubkit/versions/v2022_11_28/types/group_0082.py index a4c0e06b8..a442b8fcd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0082.py +++ b/githubkit/versions/v2022_11_28/types/group_0082.py @@ -9,20 +9,31 @@ from __future__ import annotations -from typing import Literal from datetime import datetime -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0055 import MinimalRepositoryType -class InteractionLimitResponseType(TypedDict): - """Interaction Limits - Interaction limit settings. +class PackageType(TypedDict): + """Package + + A software package """ - limit: Literal["existing_users", "contributors_only", "collaborators_only"] - origin: str - expires_at: datetime + 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__ = ("InteractionLimitResponseType",) +__all__ = ("PackageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0083.py b/githubkit/versions/v2022_11_28/types/group_0083.py index 10d54efb7..e3c872b4f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0083.py +++ b/githubkit/versions/v2022_11_28/types/group_0083.py @@ -9,20 +9,30 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class InteractionLimitType(TypedDict): - """Interaction Restrictions - 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"] - ] +class OrganizationInvitationType(TypedDict): + """Organization Invitation + Organization Invitation + """ -__all__ = ("InteractionLimitType",) + 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_0084.py b/githubkit/versions/v2022_11_28/types/group_0084.py index e6c3cfe11..396656d86 100644 --- a/githubkit/versions/v2022_11_28/types/group_0084.py +++ b/githubkit/versions/v2022_11_28/types/group_0084.py @@ -9,55 +9,40 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List +from datetime import datetime from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class OrgHookType(TypedDict): + """Org Hook -class OrgMembershipType(TypedDict): - """Org Membership - - 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 OrganizationSimpleType(TypedDict): - """Organization Simple - - A GitHub organization. + Org Hook """ - 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] + 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 OrgMembershipPropPermissionsType(TypedDict): - """OrgMembershipPropPermissions""" +class OrgHookPropConfigType(TypedDict): + """OrgHookPropConfig""" - can_create_repository: bool + url: NotRequired[str] + insecure_ssl: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] __all__ = ( - "OrgMembershipType", - "OrganizationSimpleType", - "OrgMembershipPropPermissionsType", + "OrgHookType", + "OrgHookPropConfigType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0085.py b/githubkit/versions/v2022_11_28/types/group_0085.py index 0659340f0..a4c0e06b8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0085.py +++ b/githubkit/versions/v2022_11_28/types/group_0085.py @@ -9,38 +9,20 @@ from __future__ import annotations +from typing import Literal from datetime import datetime -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType -from .group_0017 import RepositoryType +class InteractionLimitResponseType(TypedDict): + """Interaction Limits -class MigrationType(TypedDict): - """Migration - - A migration. + Interaction limit settings. """ - id: int - owner: Union[None, SimpleUserType] - guid: str - state: str - lock_repositories: bool - exclude_metadata: bool - exclude_git_data: bool - exclude_attachments: bool - exclude_releases: bool - exclude_owner_projects: bool - org_metadata_only: bool - repositories: List[RepositoryType] - url: str - created_at: datetime - updated_at: datetime - node_id: str - archive_url: NotRequired[str] - exclude: NotRequired[List[str]] - - -__all__ = ("MigrationType",) + limit: Literal["existing_users", "contributors_only", "collaborators_only"] + origin: str + expires_at: datetime + + +__all__ = ("InteractionLimitResponseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0086.py b/githubkit/versions/v2022_11_28/types/group_0086.py index 0c71e9bd1..10d54efb7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0086.py +++ b/githubkit/versions/v2022_11_28/types/group_0086.py @@ -9,17 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class OrganizationFineGrainedPermissionType(TypedDict): - """Organization Fine-Grained Permission +class InteractionLimitType(TypedDict): + """Interaction Restrictions - A fine-grained permission that protects organization resources. + Limit interactions to a specific type of user for a specified duration """ - name: str - description: str + limit: Literal["existing_users", "contributors_only", "collaborators_only"] + expiry: NotRequired[ + Literal["one_day", "three_days", "one_week", "one_month", "six_months"] + ] -__all__ = ("OrganizationFineGrainedPermissionType",) +__all__ = ("InteractionLimitType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0087.py b/githubkit/versions/v2022_11_28/types/group_0087.py index 3d044294e..99b71de29 100644 --- a/githubkit/versions/v2022_11_28/types/group_0087.py +++ b/githubkit/versions/v2022_11_28/types/group_0087.py @@ -9,36 +9,35 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType +from .group_0027 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]] - 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"] + 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", + "OrgMembershipType", + "OrgMembershipPropPermissionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0088.py b/githubkit/versions/v2022_11_28/types/group_0088.py index 44f48f0e8..0659340f0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0088.py +++ b/githubkit/versions/v2022_11_28/types/group_0088.py @@ -10,52 +10,37 @@ from __future__ import annotations from datetime import datetime -from typing import List, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0017 import RepositoryType -class PackageVersionType(TypedDict): - """Package Version - A version of a software package +class MigrationType(TypedDict): + """Migration + + A migration. """ id: int - name: str + owner: Union[None, SimpleUserType] + guid: str + state: str + lock_repositories: bool + exclude_metadata: bool + exclude_git_data: bool + exclude_attachments: bool + exclude_releases: bool + exclude_owner_projects: bool + org_metadata_only: bool + repositories: List[RepositoryType] url: str - package_html_url: str - html_url: NotRequired[str] - license_: NotRequired[str] - description: NotRequired[str] created_at: datetime updated_at: datetime - deleted_at: NotRequired[datetime] - metadata: NotRequired[PackageVersionPropMetadataType] - - -class PackageVersionPropMetadataType(TypedDict): - """Package Version Metadata""" - - package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] - container: NotRequired[PackageVersionPropMetadataPropContainerType] - docker: NotRequired[PackageVersionPropMetadataPropDockerType] - - -class PackageVersionPropMetadataPropContainerType(TypedDict): - """Container Metadata""" - - tags: List[str] - - -class PackageVersionPropMetadataPropDockerType(TypedDict): - """Docker Metadata""" - - tag: NotRequired[List[str]] + node_id: str + archive_url: NotRequired[str] + exclude: NotRequired[List[str]] -__all__ = ( - "PackageVersionType", - "PackageVersionPropMetadataType", - "PackageVersionPropMetadataPropContainerType", - "PackageVersionPropMetadataPropDockerType", -) +__all__ = ("MigrationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0089.py b/githubkit/versions/v2022_11_28/types/group_0089.py index 01e8a5904..0c71e9bd1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0089.py +++ b/githubkit/versions/v2022_11_28/types/group_0089.py @@ -9,68 +9,17 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType +class OrganizationFineGrainedPermissionType(TypedDict): + """Organization Fine-Grained Permission -class OrganizationProgrammaticAccessGrantRequestType(TypedDict): - """Simple Organization Programmatic Access Grant Request - - Minimal representation of an organization programmatic access grant request for - enumerations - """ - - id: int - reason: Union[str, None] - owner: SimpleUserType - repository_selection: Literal["none", "all", "subset"] - repositories_url: str - permissions: OrganizationProgrammaticAccessGrantRequestPropPermissionsType - created_at: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsType(TypedDict): - """OrganizationProgrammaticAccessGrantRequestPropPermissions - - Permissions requested, categorized by type of permission. + A fine-grained permission that protects organization resources. """ - organization: NotRequired[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType - ] - repository: NotRequired[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType - ] - other: NotRequired[ - OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType - ] - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType( - TypedDict -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization""" - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType( - TypedDict -): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository""" - - -class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType(TypedDict): - """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther""" + name: str + description: str -__all__ = ( - "OrganizationProgrammaticAccessGrantRequestType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", - "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", -) +__all__ = ("OrganizationFineGrainedPermissionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0090.py b/githubkit/versions/v2022_11_28/types/group_0090.py index 98fa79e69..3d044294e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0090.py +++ b/githubkit/versions/v2022_11_28/types/group_0090.py @@ -9,61 +9,36 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -class OrganizationProgrammaticAccessGrantType(TypedDict): - """Organization Programmatic Access Grant +class OrganizationRoleType(TypedDict): + """Organization Role - Minimal representation of an organization programmatic access grant for - enumerations + Organization roles """ id: int - owner: SimpleUserType - repository_selection: Literal["none", "all", "subset"] - repositories_url: str - permissions: OrganizationProgrammaticAccessGrantPropPermissionsType - access_granted_at: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] + name: str + description: NotRequired[Union[str, None]] + permissions: List[str] + organization: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime -class OrganizationProgrammaticAccessGrantPropPermissionsType(TypedDict): - """OrganizationProgrammaticAccessGrantPropPermissions +class OrgsOrgOrganizationRolesGetResponse200Type(TypedDict): + """OrgsOrgOrganizationRolesGetResponse200""" - Permissions requested, categorized by type of permission. - """ - - organization: NotRequired[ - OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType - ] - repository: NotRequired[ - OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType - ] - other: NotRequired[OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType] - - -class OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType(TypedDict): - """OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization""" - - -class OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType(TypedDict): - """OrganizationProgrammaticAccessGrantPropPermissionsPropRepository""" - - -class OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType(TypedDict): - """OrganizationProgrammaticAccessGrantPropPermissionsPropOther""" + total_count: NotRequired[int] + roles: NotRequired[List[OrganizationRoleType]] __all__ = ( - "OrganizationProgrammaticAccessGrantType", - "OrganizationProgrammaticAccessGrantPropPermissionsType", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", - "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", - "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", + "OrganizationRoleType", + "OrgsOrgOrganizationRolesGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0091.py b/githubkit/versions/v2022_11_28/types/group_0091.py index b680f76fe..e50d5b8a8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0091.py +++ b/githubkit/versions/v2022_11_28/types/group_0091.py @@ -9,34 +9,45 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +from .group_0025 import TeamSimpleType -class ProjectType(TypedDict): - """Project +class TeamRoleAssignmentType(TypedDict): + """A Role Assignment for a Team - Projects are a way to organize columns and cards of work. + The Relationship a Team has with a role. """ - 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] + 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__ = ("ProjectType",) +__all__ = ( + "TeamRoleAssignmentType", + "TeamRoleAssignmentPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0092.py b/githubkit/versions/v2022_11_28/types/group_0092.py index 59a58ae1b..77b3d1ee0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0092.py +++ b/githubkit/versions/v2022_11_28/types/group_0092.py @@ -9,25 +9,37 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -class OrgCustomPropertyType(TypedDict): - """Organization Custom Property +class UserRoleAssignmentType(TypedDict): + """A Role Assignment for a User - Custom property defined on an organization + The Relationship a User has with a role. """ - property_name: str - value_type: Literal["string", "single_select"] - 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__ = ("OrgCustomPropertyType",) + 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] + + +__all__ = ("UserRoleAssignmentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0093.py b/githubkit/versions/v2022_11_28/types/group_0093.py index 3bcba3460..44f48f0e8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0093.py +++ b/githubkit/versions/v2022_11_28/types/group_0093.py @@ -9,18 +9,53 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class CustomPropertyValueType(TypedDict): - """Custom Property Value +class PackageVersionType(TypedDict): + """Package Version - Custom property name and associated value + A version of a software package """ - property_name: str - value: Union[str, List[str], None] + id: int + name: str + url: str + package_html_url: str + html_url: NotRequired[str] + license_: NotRequired[str] + description: NotRequired[str] + created_at: datetime + updated_at: datetime + deleted_at: NotRequired[datetime] + metadata: NotRequired[PackageVersionPropMetadataType] -__all__ = ("CustomPropertyValueType",) +class PackageVersionPropMetadataType(TypedDict): + """Package Version Metadata""" + + package_type: Literal["npm", "maven", "rubygems", "docker", "nuget", "container"] + container: NotRequired[PackageVersionPropMetadataPropContainerType] + docker: NotRequired[PackageVersionPropMetadataPropDockerType] + + +class PackageVersionPropMetadataPropContainerType(TypedDict): + """Container Metadata""" + + tags: List[str] + + +class PackageVersionPropMetadataPropDockerType(TypedDict): + """Docker Metadata""" + + tag: NotRequired[List[str]] + + +__all__ = ( + "PackageVersionType", + "PackageVersionPropMetadataType", + "PackageVersionPropMetadataPropContainerType", + "PackageVersionPropMetadataPropDockerType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0094.py b/githubkit/versions/v2022_11_28/types/group_0094.py index a297edd4a..01e8a5904 100644 --- a/githubkit/versions/v2022_11_28/types/group_0094.py +++ b/githubkit/versions/v2022_11_28/types/group_0094.py @@ -9,22 +9,68 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0093 import CustomPropertyValueType +from .group_0001 import SimpleUserType -class OrgRepoCustomPropertyValuesType(TypedDict): - """Organization Repository Custom Property Values +class OrganizationProgrammaticAccessGrantRequestType(TypedDict): + """Simple Organization Programmatic Access Grant Request - List of custom property values for a repository + Minimal representation of an organization programmatic access grant request for + enumerations """ - repository_id: int - repository_name: str - repository_full_name: str - properties: List[CustomPropertyValueType] + id: int + reason: Union[str, None] + owner: SimpleUserType + repository_selection: Literal["none", "all", "subset"] + repositories_url: str + permissions: OrganizationProgrammaticAccessGrantRequestPropPermissionsType + created_at: str + token_expired: bool + token_expires_at: Union[str, None] + token_last_used_at: Union[str, None] -__all__ = ("OrgRepoCustomPropertyValuesType",) +class OrganizationProgrammaticAccessGrantRequestPropPermissionsType(TypedDict): + """OrganizationProgrammaticAccessGrantRequestPropPermissions + + Permissions requested, categorized by type of permission. + """ + + organization: NotRequired[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType + ] + repository: NotRequired[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType + ] + other: NotRequired[ + OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType + ] + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType( + TypedDict +): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganization""" + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType( + TypedDict +): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepository""" + + +class OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType(TypedDict): + """OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOther""" + + +__all__ = ( + "OrganizationProgrammaticAccessGrantRequestType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOrganizationType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropRepositoryType", + "OrganizationProgrammaticAccessGrantRequestPropPermissionsPropOtherType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0095.py b/githubkit/versions/v2022_11_28/types/group_0095.py index cac6eb986..98fa79e69 100644 --- a/githubkit/versions/v2022_11_28/types/group_0095.py +++ b/githubkit/versions/v2022_11_28/types/group_0095.py @@ -9,20 +9,61 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class CodeOfConductSimpleType(TypedDict): - """Code Of Conduct Simple - Code of Conduct Simple +class OrganizationProgrammaticAccessGrantType(TypedDict): + """Organization Programmatic Access Grant + + Minimal representation of an organization programmatic access grant for + enumerations + """ + + id: int + owner: SimpleUserType + repository_selection: Literal["none", "all", "subset"] + repositories_url: str + permissions: OrganizationProgrammaticAccessGrantPropPermissionsType + access_granted_at: str + token_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. """ - url: str - key: str - name: str - html_url: Union[str, None] + organization: NotRequired[ + OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType + ] + repository: NotRequired[ + OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType + ] + other: NotRequired[OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType] + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType(TypedDict): + """OrganizationProgrammaticAccessGrantPropPermissionsPropOrganization""" + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType(TypedDict): + """OrganizationProgrammaticAccessGrantPropPermissionsPropRepository""" + + +class OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType(TypedDict): + """OrganizationProgrammaticAccessGrantPropPermissionsPropOther""" -__all__ = ("CodeOfConductSimpleType",) +__all__ = ( + "OrganizationProgrammaticAccessGrantType", + "OrganizationProgrammaticAccessGrantPropPermissionsType", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOrganizationType", + "OrganizationProgrammaticAccessGrantPropPermissionsPropRepositoryType", + "OrganizationProgrammaticAccessGrantPropPermissionsPropOtherType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0096.py b/githubkit/versions/v2022_11_28/types/group_0096.py index fa89ede17..b680f76fe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0096.py +++ b/githubkit/versions/v2022_11_28/types/group_0096.py @@ -10,150 +10,33 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -from .group_0017 import RepositoryType -from .group_0016 import LicenseSimpleType -from .group_0050 import SecurityAndAnalysisType -from .group_0095 import CodeOfConductSimpleType -class FullRepositoryType(TypedDict): - """Full Repository +class ProjectType(TypedDict): + """Project - Full Repository + Projects are a way to organize columns and cards of work. """ + owner_url: str + url: str + html_url: str + columns_url: str id: int node_id: str name: str - full_name: str - owner: SimpleUserType - private: bool - html_url: str - description: Union[str, None] - fork: bool - url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: str - mirror_url: Union[str, None] - hooks_url: str - svn_url: str - homepage: Union[str, None] - language: Union[str, None] - forks_count: int - stargazers_count: int - watchers_count: int - size: int - default_branch: str - open_issues_count: int - is_template: NotRequired[bool] - topics: NotRequired[List[str]] - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_downloads: NotRequired[bool] - has_discussions: bool - archived: bool - disabled: bool - visibility: NotRequired[str] - pushed_at: datetime + body: Union[str, None] + number: int + state: str + creator: Union[None, SimpleUserType] created_at: datetime updated_at: datetime - permissions: NotRequired[FullRepositoryPropPermissionsType] - allow_rebase_merge: NotRequired[bool] - template_repository: NotRequired[Union[None, RepositoryType]] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - subscribers_count: int - network_count: int - license_: Union[None, LicenseSimpleType] - organization: NotRequired[Union[None, SimpleUserType]] - parent: NotRequired[RepositoryType] - source: NotRequired[RepositoryType] - forks: int - master_branch: NotRequired[str] - open_issues: int - watchers: int - anonymous_access_enabled: NotRequired[bool] - code_of_conduct: NotRequired[CodeOfConductSimpleType] - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] - custom_properties: NotRequired[FullRepositoryPropCustomPropertiesType] - - -class FullRepositoryPropPermissionsType(TypedDict): - """FullRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - push: bool - triage: NotRequired[bool] - pull: bool - - -class FullRepositoryPropCustomPropertiesType(TypedDict): - """FullRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] -__all__ = ( - "FullRepositoryType", - "FullRepositoryPropPermissionsType", - "FullRepositoryPropCustomPropertiesType", -) +__all__ = ("ProjectType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0097.py b/githubkit/versions/v2022_11_28/types/group_0097.py index 22ff57cc3..6eda51fbb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0097.py +++ b/githubkit/versions/v2022_11_28/types/group_0097.py @@ -9,21 +9,25 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class RepositoryRulesetBypassActorType(TypedDict): - """Repository Ruleset Bypass Actor +class OrgCustomPropertyType(TypedDict): + """Organization Custom Property - An actor that can bypass rules in a ruleset + Custom property defined on an organization """ - actor_id: NotRequired[Union[int, None]] - actor_type: Literal[ - "Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey" + property_name: str + 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: Literal["always", "pull_request"] -__all__ = ("RepositoryRulesetBypassActorType",) +__all__ = ("OrgCustomPropertyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0098.py b/githubkit/versions/v2022_11_28/types/group_0098.py index 0d2b9582f..3bcba3460 100644 --- a/githubkit/versions/v2022_11_28/types/group_0098.py +++ b/githubkit/versions/v2022_11_28/types/group_0098.py @@ -9,18 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List, Union +from typing_extensions import TypedDict -from .group_0099 import RepositoryRulesetConditionsPropRefNameType +class CustomPropertyValueType(TypedDict): + """Custom Property Value -class RepositoryRulesetConditionsType(TypedDict): - """Repository ruleset conditions for ref names - - Parameters for a repository ruleset ref name condition + Custom property name and associated value """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + property_name: str + value: Union[str, List[str], None] -__all__ = ("RepositoryRulesetConditionsType",) +__all__ = ("CustomPropertyValueType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0099.py b/githubkit/versions/v2022_11_28/types/group_0099.py index d774c8142..edf1eb4dc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0099.py +++ b/githubkit/versions/v2022_11_28/types/group_0099.py @@ -10,14 +10,21 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0098 import CustomPropertyValueType -class RepositoryRulesetConditionsPropRefNameType(TypedDict): - """RepositoryRulesetConditionsPropRefName""" - include: NotRequired[List[str]] - exclude: NotRequired[List[str]] +class OrgRepoCustomPropertyValuesType(TypedDict): + """Organization Repository Custom Property Values + List of custom property values for a repository + """ -__all__ = ("RepositoryRulesetConditionsPropRefNameType",) + repository_id: int + repository_name: str + repository_full_name: str + properties: List[CustomPropertyValueType] + + +__all__ = ("OrgRepoCustomPropertyValuesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0100.py b/githubkit/versions/v2022_11_28/types/group_0100.py index b8d297751..cac6eb986 100644 --- a/githubkit/versions/v2022_11_28/types/group_0100.py +++ b/githubkit/versions/v2022_11_28/types/group_0100.py @@ -9,22 +9,20 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -from .group_0101 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, -) +class CodeOfConductSimpleType(TypedDict): + """Code Of Conduct Simple -class RepositoryRulesetConditionsRepositoryNameTargetType(TypedDict): - """Repository ruleset conditions for repository names - - Parameters for a repository name condition + Code of Conduct Simple """ - repository_name: ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType - ) + url: str + key: str + name: str + html_url: Union[str, None] -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetType",) +__all__ = ("CodeOfConductSimpleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0101.py b/githubkit/versions/v2022_11_28/types/group_0101.py index 97c94cd05..610192f08 100644 --- a/githubkit/versions/v2022_11_28/types/group_0101.py +++ b/githubkit/versions/v2022_11_28/types/group_0101.py @@ -9,16 +9,151 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0017 import RepositoryType +from .group_0016 import LicenseSimpleType +from .group_0054 import SecurityAndAnalysisType +from .group_0100 import CodeOfConductSimpleType -class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType(TypedDict): - """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" - include: NotRequired[List[str]] - exclude: NotRequired[List[str]] - protected: NotRequired[bool] +class FullRepositoryType(TypedDict): + """Full Repository + Full Repository + """ -__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType",) + id: int + node_id: str + name: str + full_name: str + owner: SimpleUserType + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[List[str]] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: NotRequired[bool] + has_discussions: bool + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: datetime + created_at: datetime + updated_at: datetime + permissions: NotRequired[FullRepositoryPropPermissionsType] + allow_rebase_merge: NotRequired[bool] + template_repository: NotRequired[Union[None, RepositoryType]] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + subscribers_count: int + network_count: int + license_: Union[None, LicenseSimpleType] + organization: NotRequired[Union[None, SimpleUserType]] + parent: NotRequired[RepositoryType] + source: NotRequired[RepositoryType] + forks: int + master_branch: NotRequired[str] + open_issues: int + watchers: int + anonymous_access_enabled: NotRequired[bool] + code_of_conduct: NotRequired[CodeOfConductSimpleType] + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] + custom_properties: NotRequired[FullRepositoryPropCustomPropertiesType] + + +class FullRepositoryPropPermissionsType(TypedDict): + """FullRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + push: bool + triage: NotRequired[bool] + pull: bool + + +class FullRepositoryPropCustomPropertiesType(TypedDict): + """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__ = ( + "FullRepositoryType", + "FullRepositoryPropPermissionsType", + "FullRepositoryPropCustomPropertiesType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0102.py b/githubkit/versions/v2022_11_28/types/group_0102.py index 6492d9290..22ff57cc3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0102.py +++ b/githubkit/versions/v2022_11_28/types/group_0102.py @@ -9,20 +9,21 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0103 import ( - RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, -) +class RepositoryRulesetBypassActorType(TypedDict): + """Repository Ruleset Bypass Actor -class RepositoryRulesetConditionsRepositoryIdTargetType(TypedDict): - """Repository ruleset conditions for repository IDs - - Parameters for a repository ID condition + An actor that can bypass rules in a ruleset """ - repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType + actor_id: NotRequired[Union[int, None]] + actor_type: Literal[ + "Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey" + ] + bypass_mode: Literal["always", "pull_request"] -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetType",) +__all__ = ("RepositoryRulesetBypassActorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0103.py b/githubkit/versions/v2022_11_28/types/group_0103.py index ed3567648..5045f5dd4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0103.py +++ b/githubkit/versions/v2022_11_28/types/group_0103.py @@ -9,14 +9,18 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0104 import RepositoryRulesetConditionsPropRefNameType -class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType(TypedDict): - """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" - repository_ids: NotRequired[List[int]] +class RepositoryRulesetConditionsType(TypedDict): + """Repository ruleset conditions for ref names + Parameters for a repository ruleset ref name condition + """ -__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType",) + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + + +__all__ = ("RepositoryRulesetConditionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0104.py b/githubkit/versions/v2022_11_28/types/group_0104.py index d7973e966..d774c8142 100644 --- a/githubkit/versions/v2022_11_28/types/group_0104.py +++ b/githubkit/versions/v2022_11_28/types/group_0104.py @@ -9,22 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -from .group_0105 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, -) +class RepositoryRulesetConditionsPropRefNameType(TypedDict): + """RepositoryRulesetConditionsPropRefName""" -class RepositoryRulesetConditionsRepositoryPropertyTargetType(TypedDict): - """Repository ruleset conditions for repository properties + include: NotRequired[List[str]] + exclude: NotRequired[List[str]] - Parameters for a repository property condition - """ - repository_property: ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType - ) - - -__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTargetType",) +__all__ = ("RepositoryRulesetConditionsPropRefNameType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0105.py b/githubkit/versions/v2022_11_28/types/group_0105.py index dd7d3ac84..fab440296 100644 --- a/githubkit/versions/v2022_11_28/types/group_0105.py +++ b/githubkit/versions/v2022_11_28/types/group_0105.py @@ -9,30 +9,22 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict - -class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType( - TypedDict -): - """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" - - include: NotRequired[List[RepositoryRulesetConditionsRepositoryPropertySpecType]] - exclude: NotRequired[List[RepositoryRulesetConditionsRepositoryPropertySpecType]] +from .group_0106 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, +) -class RepositoryRulesetConditionsRepositoryPropertySpecType(TypedDict): - """Repository ruleset property targeting definition +class RepositoryRulesetConditionsRepositoryNameTargetType(TypedDict): + """Repository ruleset conditions for repository names - Parameters for a targeting a repository property + Parameters for a repository name condition """ - name: str - property_values: List[str] + repository_name: ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType + ) -__all__ = ( - "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", - "RepositoryRulesetConditionsRepositoryPropertySpecType", -) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0106.py b/githubkit/versions/v2022_11_28/types/group_0106.py index 5dae05510..97c94cd05 100644 --- a/githubkit/versions/v2022_11_28/types/group_0106.py +++ b/githubkit/versions/v2022_11_28/types/group_0106.py @@ -9,24 +9,16 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0099 import RepositoryRulesetConditionsPropRefNameType -from .group_0101 import ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, -) +class RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType(TypedDict): + """RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryName""" -class OrgRulesetConditionsOneof0Type(TypedDict): - """repository_name_and_ref_name + include: NotRequired[List[str]] + exclude: NotRequired[List[str]] + protected: NotRequired[bool] - Conditions to target repositories by name and refs by name - """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - repository_name: ( - RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType - ) - - -__all__ = ("OrgRulesetConditionsOneof0Type",) +__all__ = ("RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0107.py b/githubkit/versions/v2022_11_28/types/group_0107.py index bfef839d5..e5c3e842d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0107.py +++ b/githubkit/versions/v2022_11_28/types/group_0107.py @@ -9,22 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0099 import RepositoryRulesetConditionsPropRefNameType -from .group_0103 import ( +from .group_0108 import ( RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, ) -class OrgRulesetConditionsOneof1Type(TypedDict): - """repository_id_and_ref_name +class RepositoryRulesetConditionsRepositoryIdTargetType(TypedDict): + """Repository ruleset conditions for repository IDs - Conditions to target repositories by id and refs by name + Parameters for a repository ID condition """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType -__all__ = ("OrgRulesetConditionsOneof1Type",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0108.py b/githubkit/versions/v2022_11_28/types/group_0108.py index 6b235c6b4..ed3567648 100644 --- a/githubkit/versions/v2022_11_28/types/group_0108.py +++ b/githubkit/versions/v2022_11_28/types/group_0108.py @@ -9,24 +9,14 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0099 import RepositoryRulesetConditionsPropRefNameType -from .group_0105 import ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, -) +class RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType(TypedDict): + """RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryId""" -class OrgRulesetConditionsOneof2Type(TypedDict): - """repository_property_and_ref_name + repository_ids: NotRequired[List[int]] - Conditions to target repositories by property and refs by name - """ - ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] - repository_property: ( - RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType - ) - - -__all__ = ("OrgRulesetConditionsOneof2Type",) +__all__ = ("RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0109.py b/githubkit/versions/v2022_11_28/types/group_0109.py index 1e2c138ca..bba787d1a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0109.py +++ b/githubkit/versions/v2022_11_28/types/group_0109.py @@ -9,91 +9,22 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired - - -class RepositoryRuleCreationType(TypedDict): - """creation - - Only allow users with bypass permission to create matching refs. - """ - - type: Literal["creation"] - - -class RepositoryRuleDeletionType(TypedDict): - """deletion - - Only allow users with bypass permissions to delete matching refs. - """ - - type: Literal["deletion"] - - -class RepositoryRuleRequiredSignaturesType(TypedDict): - """required_signatures - - Commits pushed to matching refs must have verified signatures. - """ - - type: Literal["required_signatures"] - - -class RepositoryRuleNonFastForwardType(TypedDict): - """non_fast_forward - - Prevent users with push access from force pushing to refs. - """ - - type: Literal["non_fast_forward"] - - -class RepositoryRuleOneof14Type(TypedDict): - """file_path_restriction - - Note: file_path_restriction is in beta and subject to change. - - Prevent commits that include changes in specified file paths from being pushed - to the commit graph. - """ - - type: Literal["file_path_restriction"] - parameters: NotRequired[RepositoryRuleOneof14PropParametersType] - - -class RepositoryRuleOneof14PropParametersType(TypedDict): - """RepositoryRuleOneof14PropParameters""" - - restricted_file_paths: List[str] +from typing_extensions import TypedDict +from .group_0110 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, +) -class RepositoryRuleOneof16Type(TypedDict): - """file_extension_restriction - Note: file_extension_restriction is in beta and subject to change. +class RepositoryRulesetConditionsRepositoryPropertyTargetType(TypedDict): + """Repository ruleset conditions for repository properties - Prevent commits that include files with specified file extensions from being - pushed to the commit graph. + Parameters for a repository property condition """ - type: Literal["file_extension_restriction"] - parameters: NotRequired[RepositoryRuleOneof16PropParametersType] + repository_property: ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType + ) -class RepositoryRuleOneof16PropParametersType(TypedDict): - """RepositoryRuleOneof16PropParameters""" - - restricted_file_extensions: List[str] - - -__all__ = ( - "RepositoryRuleCreationType", - "RepositoryRuleDeletionType", - "RepositoryRuleRequiredSignaturesType", - "RepositoryRuleNonFastForwardType", - "RepositoryRuleOneof14Type", - "RepositoryRuleOneof14PropParametersType", - "RepositoryRuleOneof16Type", - "RepositoryRuleOneof16PropParametersType", -) +__all__ = ("RepositoryRulesetConditionsRepositoryPropertyTargetType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0110.py b/githubkit/versions/v2022_11_28/types/group_0110.py index 77cda141d..0f26d88f5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0110.py +++ b/githubkit/versions/v2022_11_28/types/group_0110.py @@ -9,20 +9,31 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0111 import RepositoryRuleUpdatePropParametersType +class RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType( + TypedDict +): + """RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryProperty""" -class RepositoryRuleUpdateType(TypedDict): - """update + include: NotRequired[List[RepositoryRulesetConditionsRepositoryPropertySpecType]] + exclude: NotRequired[List[RepositoryRulesetConditionsRepositoryPropertySpecType]] - Only allow users with bypass permission to update matching refs. + +class RepositoryRulesetConditionsRepositoryPropertySpecType(TypedDict): + """Repository ruleset property targeting definition + + Parameters for a targeting a repository property """ - type: Literal["update"] - parameters: NotRequired[RepositoryRuleUpdatePropParametersType] + name: str + property_values: List[str] + source: NotRequired[Literal["custom", "system"]] -__all__ = ("RepositoryRuleUpdateType",) +__all__ = ( + "RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType", + "RepositoryRulesetConditionsRepositoryPropertySpecType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0111.py b/githubkit/versions/v2022_11_28/types/group_0111.py index 4de519b89..62dcc70cc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0111.py +++ b/githubkit/versions/v2022_11_28/types/group_0111.py @@ -9,13 +9,24 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired +from .group_0104 import RepositoryRulesetConditionsPropRefNameType +from .group_0106 import ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType, +) -class RepositoryRuleUpdatePropParametersType(TypedDict): - """RepositoryRuleUpdatePropParameters""" - update_allows_fetch_and_merge: bool +class OrgRulesetConditionsOneof0Type(TypedDict): + """repository_name_and_ref_name + Conditions to target repositories by name and refs by name + """ -__all__ = ("RepositoryRuleUpdatePropParametersType",) + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_name: ( + RepositoryRulesetConditionsRepositoryNameTargetPropRepositoryNameType + ) + + +__all__ = ("OrgRulesetConditionsOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0112.py b/githubkit/versions/v2022_11_28/types/group_0112.py index 43bd0e4a4..d07c017ae 100644 --- a/githubkit/versions/v2022_11_28/types/group_0112.py +++ b/githubkit/versions/v2022_11_28/types/group_0112.py @@ -9,40 +9,22 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0104 import RepositoryRulesetConditionsPropRefNameType +from .group_0108 import ( + RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType, +) -class RepositoryRuleRequiredLinearHistoryType(TypedDict): - """required_linear_history - - Prevent merge commits from being pushed to matching refs. - """ - - type: Literal["required_linear_history"] - - -class RepositoryRuleOneof15Type(TypedDict): - """max_file_path_length - Note: max_file_path_length is in beta and subject to change. +class OrgRulesetConditionsOneof1Type(TypedDict): + """repository_id_and_ref_name - Prevent commits that include file paths that exceed a specified character limit - from being pushed to the commit graph. + Conditions to target repositories by id and refs by name """ - type: Literal["max_file_path_length"] - parameters: NotRequired[RepositoryRuleOneof15PropParametersType] - - -class RepositoryRuleOneof15PropParametersType(TypedDict): - """RepositoryRuleOneof15PropParameters""" + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_id: RepositoryRulesetConditionsRepositoryIdTargetPropRepositoryIdType - max_file_path_length: int - -__all__ = ( - "RepositoryRuleRequiredLinearHistoryType", - "RepositoryRuleOneof15Type", - "RepositoryRuleOneof15PropParametersType", -) +__all__ = ("OrgRulesetConditionsOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0113.py b/githubkit/versions/v2022_11_28/types/group_0113.py index 7d67f129a..4f477c998 100644 --- a/githubkit/versions/v2022_11_28/types/group_0113.py +++ b/githubkit/versions/v2022_11_28/types/group_0113.py @@ -9,21 +9,24 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0114 import RepositoryRuleRequiredDeploymentsPropParametersType +from .group_0104 import RepositoryRulesetConditionsPropRefNameType +from .group_0110 import ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType, +) -class RepositoryRuleRequiredDeploymentsType(TypedDict): - """required_deployments +class OrgRulesetConditionsOneof2Type(TypedDict): + """repository_property_and_ref_name - Choose which environments must be successfully deployed to before refs can be - pushed into a ref that matches this rule. + Conditions to target repositories by property and refs by name """ - type: Literal["required_deployments"] - parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] + ref_name: NotRequired[RepositoryRulesetConditionsPropRefNameType] + repository_property: ( + RepositoryRulesetConditionsRepositoryPropertyTargetPropRepositoryPropertyType + ) -__all__ = ("RepositoryRuleRequiredDeploymentsType",) +__all__ = ("OrgRulesetConditionsOneof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0114.py b/githubkit/versions/v2022_11_28/types/group_0114.py index dea611c2b..1e2c138ca 100644 --- a/githubkit/versions/v2022_11_28/types/group_0114.py +++ b/githubkit/versions/v2022_11_28/types/group_0114.py @@ -9,14 +9,91 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class RepositoryRuleRequiredDeploymentsPropParametersType(TypedDict): - """RepositoryRuleRequiredDeploymentsPropParameters""" +class RepositoryRuleCreationType(TypedDict): + """creation - required_deployment_environments: List[str] + Only allow users with bypass permission to create matching refs. + """ + type: Literal["creation"] -__all__ = ("RepositoryRuleRequiredDeploymentsPropParametersType",) + +class RepositoryRuleDeletionType(TypedDict): + """deletion + + Only allow users with bypass permissions to delete matching refs. + """ + + type: Literal["deletion"] + + +class RepositoryRuleRequiredSignaturesType(TypedDict): + """required_signatures + + Commits pushed to matching refs must have verified signatures. + """ + + type: Literal["required_signatures"] + + +class RepositoryRuleNonFastForwardType(TypedDict): + """non_fast_forward + + Prevent users with push access from force pushing to refs. + """ + + type: Literal["non_fast_forward"] + + +class RepositoryRuleOneof14Type(TypedDict): + """file_path_restriction + + Note: file_path_restriction is in beta and subject to change. + + Prevent commits that include changes in specified file paths from being pushed + to the commit graph. + """ + + type: Literal["file_path_restriction"] + parameters: NotRequired[RepositoryRuleOneof14PropParametersType] + + +class RepositoryRuleOneof14PropParametersType(TypedDict): + """RepositoryRuleOneof14PropParameters""" + + restricted_file_paths: List[str] + + +class RepositoryRuleOneof16Type(TypedDict): + """file_extension_restriction + + Note: file_extension_restriction is in beta and subject to change. + + Prevent commits that include files with specified file extensions from being + pushed to the commit graph. + """ + + type: Literal["file_extension_restriction"] + parameters: NotRequired[RepositoryRuleOneof16PropParametersType] + + +class RepositoryRuleOneof16PropParametersType(TypedDict): + """RepositoryRuleOneof16PropParameters""" + + restricted_file_extensions: List[str] + + +__all__ = ( + "RepositoryRuleCreationType", + "RepositoryRuleDeletionType", + "RepositoryRuleRequiredSignaturesType", + "RepositoryRuleNonFastForwardType", + "RepositoryRuleOneof14Type", + "RepositoryRuleOneof14PropParametersType", + "RepositoryRuleOneof16Type", + "RepositoryRuleOneof16PropParametersType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0115.py b/githubkit/versions/v2022_11_28/types/group_0115.py index 21cea1ec1..4c9a0d678 100644 --- a/githubkit/versions/v2022_11_28/types/group_0115.py +++ b/githubkit/versions/v2022_11_28/types/group_0115.py @@ -12,18 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0116 import RepositoryRulePullRequestPropParametersType +from .group_0116 import RepositoryRuleUpdatePropParametersType -class RepositoryRulePullRequestType(TypedDict): - """pull_request +class RepositoryRuleUpdateType(TypedDict): + """update - Require all commits be made to a non-target branch and submitted via a pull - request before they can be merged. + Only allow users with bypass permission to update matching refs. """ - type: Literal["pull_request"] - parameters: NotRequired[RepositoryRulePullRequestPropParametersType] + type: Literal["update"] + parameters: NotRequired[RepositoryRuleUpdatePropParametersType] -__all__ = ("RepositoryRulePullRequestType",) +__all__ = ("RepositoryRuleUpdateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0116.py b/githubkit/versions/v2022_11_28/types/group_0116.py index b2acbf90f..4de519b89 100644 --- a/githubkit/versions/v2022_11_28/types/group_0116.py +++ b/githubkit/versions/v2022_11_28/types/group_0116.py @@ -12,14 +12,10 @@ from typing_extensions import TypedDict -class RepositoryRulePullRequestPropParametersType(TypedDict): - """RepositoryRulePullRequestPropParameters""" +class RepositoryRuleUpdatePropParametersType(TypedDict): + """RepositoryRuleUpdatePropParameters""" - 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 + update_allows_fetch_and_merge: bool -__all__ = ("RepositoryRulePullRequestPropParametersType",) +__all__ = ("RepositoryRuleUpdatePropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0117.py b/githubkit/versions/v2022_11_28/types/group_0117.py index 3574feb1f..43bd0e4a4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0117.py +++ b/githubkit/versions/v2022_11_28/types/group_0117.py @@ -12,18 +12,37 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0118 import RepositoryRuleRequiredStatusChecksPropParametersType +class RepositoryRuleRequiredLinearHistoryType(TypedDict): + """required_linear_history -class RepositoryRuleRequiredStatusChecksType(TypedDict): - """required_status_checks + Prevent merge commits from being pushed to matching refs. + """ + + type: Literal["required_linear_history"] + + +class RepositoryRuleOneof15Type(TypedDict): + """max_file_path_length - 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. + Note: max_file_path_length is in beta and subject to change. + + Prevent commits that include file paths that exceed a specified character limit + from being pushed to the commit graph. """ - type: Literal["required_status_checks"] - parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] + type: Literal["max_file_path_length"] + parameters: NotRequired[RepositoryRuleOneof15PropParametersType] + + +class RepositoryRuleOneof15PropParametersType(TypedDict): + """RepositoryRuleOneof15PropParameters""" + + max_file_path_length: int -__all__ = ("RepositoryRuleRequiredStatusChecksType",) +__all__ = ( + "RepositoryRuleRequiredLinearHistoryType", + "RepositoryRuleOneof15Type", + "RepositoryRuleOneof15PropParametersType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0118.py b/githubkit/versions/v2022_11_28/types/group_0118.py index 0c90b2831..739b63db9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0118.py +++ b/githubkit/versions/v2022_11_28/types/group_0118.py @@ -9,28 +9,21 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0119 import RepositoryRuleRequiredDeploymentsPropParametersType -class RepositoryRuleRequiredStatusChecksPropParametersType(TypedDict): - """RepositoryRuleRequiredStatusChecksPropParameters""" - required_status_checks: List[RepositoryRuleParamsStatusCheckConfigurationType] - strict_required_status_checks_policy: bool +class RepositoryRuleRequiredDeploymentsType(TypedDict): + """required_deployments - -class RepositoryRuleParamsStatusCheckConfigurationType(TypedDict): - """StatusCheckConfiguration - - Required status check + Choose which environments must be successfully deployed to before refs can be + pushed into a ref that matches this rule. """ - context: str - integration_id: NotRequired[int] + type: Literal["required_deployments"] + parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] -__all__ = ( - "RepositoryRuleRequiredStatusChecksPropParametersType", - "RepositoryRuleParamsStatusCheckConfigurationType", -) +__all__ = ("RepositoryRuleRequiredDeploymentsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0119.py b/githubkit/versions/v2022_11_28/types/group_0119.py index f6a8d17ae..dea611c2b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0119.py +++ b/githubkit/versions/v2022_11_28/types/group_0119.py @@ -9,20 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0120 import RepositoryRuleCommitMessagePatternPropParametersType +class RepositoryRuleRequiredDeploymentsPropParametersType(TypedDict): + """RepositoryRuleRequiredDeploymentsPropParameters""" -class RepositoryRuleCommitMessagePatternType(TypedDict): - """commit_message_pattern + required_deployment_environments: List[str] - Parameters to be used for the commit_message_pattern rule - """ - type: Literal["commit_message_pattern"] - parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] - - -__all__ = ("RepositoryRuleCommitMessagePatternType",) +__all__ = ("RepositoryRuleRequiredDeploymentsPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0120.py b/githubkit/versions/v2022_11_28/types/group_0120.py index 097d2b1ad..737a0d5fc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0120.py +++ b/githubkit/versions/v2022_11_28/types/group_0120.py @@ -12,14 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0121 import RepositoryRulePullRequestPropParametersType -class RepositoryRuleCommitMessagePatternPropParametersType(TypedDict): - """RepositoryRuleCommitMessagePatternPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str +class RepositoryRulePullRequestType(TypedDict): + """pull_request + Require all commits be made to a non-target branch and submitted via a pull + request before they can be merged. + """ -__all__ = ("RepositoryRuleCommitMessagePatternPropParametersType",) + type: Literal["pull_request"] + parameters: NotRequired[RepositoryRulePullRequestPropParametersType] + + +__all__ = ("RepositoryRulePullRequestType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0121.py b/githubkit/versions/v2022_11_28/types/group_0121.py index f4440f6df..b2acbf90f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0121.py +++ b/githubkit/versions/v2022_11_28/types/group_0121.py @@ -9,20 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0122 import RepositoryRuleCommitAuthorEmailPatternPropParametersType +class RepositoryRulePullRequestPropParametersType(TypedDict): + """RepositoryRulePullRequestPropParameters""" -class RepositoryRuleCommitAuthorEmailPatternType(TypedDict): - """commit_author_email_pattern + dismiss_stale_reviews_on_push: bool + require_code_owner_review: bool + require_last_push_approval: bool + required_approving_review_count: int + required_review_thread_resolution: bool - Parameters to be used for the commit_author_email_pattern rule - """ - type: Literal["commit_author_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] - - -__all__ = ("RepositoryRuleCommitAuthorEmailPatternType",) +__all__ = ("RepositoryRulePullRequestPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0122.py b/githubkit/versions/v2022_11_28/types/group_0122.py index 65503cc26..0090f1dd9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0122.py +++ b/githubkit/versions/v2022_11_28/types/group_0122.py @@ -12,14 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0123 import RepositoryRuleRequiredStatusChecksPropParametersType -class RepositoryRuleCommitAuthorEmailPatternPropParametersType(TypedDict): - """RepositoryRuleCommitAuthorEmailPatternPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str +class RepositoryRuleRequiredStatusChecksType(TypedDict): + """required_status_checks + Choose which status checks must pass before the ref is updated. When enabled, + commits must first be pushed to another ref where the checks pass. + """ -__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",) + type: Literal["required_status_checks"] + parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] + + +__all__ = ("RepositoryRuleRequiredStatusChecksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0123.py b/githubkit/versions/v2022_11_28/types/group_0123.py index 0f0142a35..0c90b2831 100644 --- a/githubkit/versions/v2022_11_28/types/group_0123.py +++ b/githubkit/versions/v2022_11_28/types/group_0123.py @@ -9,20 +9,28 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0124 import RepositoryRuleCommitterEmailPatternPropParametersType +class RepositoryRuleRequiredStatusChecksPropParametersType(TypedDict): + """RepositoryRuleRequiredStatusChecksPropParameters""" -class RepositoryRuleCommitterEmailPatternType(TypedDict): - """committer_email_pattern + required_status_checks: List[RepositoryRuleParamsStatusCheckConfigurationType] + strict_required_status_checks_policy: bool - Parameters to be used for the committer_email_pattern rule + +class RepositoryRuleParamsStatusCheckConfigurationType(TypedDict): + """StatusCheckConfiguration + + Required status check """ - type: Literal["committer_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] + context: str + integration_id: NotRequired[int] -__all__ = ("RepositoryRuleCommitterEmailPatternType",) +__all__ = ( + "RepositoryRuleRequiredStatusChecksPropParametersType", + "RepositoryRuleParamsStatusCheckConfigurationType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0124.py b/githubkit/versions/v2022_11_28/types/group_0124.py index 6ca4bc8f3..5531bed2c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0124.py +++ b/githubkit/versions/v2022_11_28/types/group_0124.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0125 import RepositoryRuleCommitMessagePatternPropParametersType -class RepositoryRuleCommitterEmailPatternPropParametersType(TypedDict): - """RepositoryRuleCommitterEmailPatternPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str +class RepositoryRuleCommitMessagePatternType(TypedDict): + """commit_message_pattern + Parameters to be used for the commit_message_pattern rule + """ -__all__ = ("RepositoryRuleCommitterEmailPatternPropParametersType",) + type: Literal["commit_message_pattern"] + parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] + + +__all__ = ("RepositoryRuleCommitMessagePatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0125.py b/githubkit/versions/v2022_11_28/types/group_0125.py index b9f6cbc28..097d2b1ad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0125.py +++ b/githubkit/versions/v2022_11_28/types/group_0125.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0126 import RepositoryRuleBranchNamePatternPropParametersType +class RepositoryRuleCommitMessagePatternPropParametersType(TypedDict): + """RepositoryRuleCommitMessagePatternPropParameters""" -class RepositoryRuleBranchNamePatternType(TypedDict): - """branch_name_pattern + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str - Parameters to be used for the branch_name_pattern rule - """ - type: Literal["branch_name_pattern"] - parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] - - -__all__ = ("RepositoryRuleBranchNamePatternType",) +__all__ = ("RepositoryRuleCommitMessagePatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0126.py b/githubkit/versions/v2022_11_28/types/group_0126.py index 6785aebe5..0c673dfca 100644 --- a/githubkit/versions/v2022_11_28/types/group_0126.py +++ b/githubkit/versions/v2022_11_28/types/group_0126.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0127 import RepositoryRuleCommitAuthorEmailPatternPropParametersType -class RepositoryRuleBranchNamePatternPropParametersType(TypedDict): - """RepositoryRuleBranchNamePatternPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str +class RepositoryRuleCommitAuthorEmailPatternType(TypedDict): + """commit_author_email_pattern + Parameters to be used for the commit_author_email_pattern rule + """ -__all__ = ("RepositoryRuleBranchNamePatternPropParametersType",) + type: Literal["commit_author_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] + + +__all__ = ("RepositoryRuleCommitAuthorEmailPatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0127.py b/githubkit/versions/v2022_11_28/types/group_0127.py index 58474a3f6..65503cc26 100644 --- a/githubkit/versions/v2022_11_28/types/group_0127.py +++ b/githubkit/versions/v2022_11_28/types/group_0127.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0128 import RepositoryRuleTagNamePatternPropParametersType +class RepositoryRuleCommitAuthorEmailPatternPropParametersType(TypedDict): + """RepositoryRuleCommitAuthorEmailPatternPropParameters""" -class RepositoryRuleTagNamePatternType(TypedDict): - """tag_name_pattern + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str - Parameters to be used for the tag_name_pattern rule - """ - type: Literal["tag_name_pattern"] - parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] - - -__all__ = ("RepositoryRuleTagNamePatternType",) +__all__ = ("RepositoryRuleCommitAuthorEmailPatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0128.py b/githubkit/versions/v2022_11_28/types/group_0128.py index 9b6b95d4b..4bc72950e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0128.py +++ b/githubkit/versions/v2022_11_28/types/group_0128.py @@ -12,14 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0129 import RepositoryRuleCommitterEmailPatternPropParametersType -class RepositoryRuleTagNamePatternPropParametersType(TypedDict): - """RepositoryRuleTagNamePatternPropParameters""" - name: NotRequired[str] - negate: NotRequired[bool] - operator: Literal["starts_with", "ends_with", "contains", "regex"] - pattern: str +class RepositoryRuleCommitterEmailPatternType(TypedDict): + """committer_email_pattern + Parameters to be used for the committer_email_pattern rule + """ -__all__ = ("RepositoryRuleTagNamePatternPropParametersType",) + type: Literal["committer_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] + + +__all__ = ("RepositoryRuleCommitterEmailPatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0129.py b/githubkit/versions/v2022_11_28/types/group_0129.py index 30301fe0d..6ca4bc8f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0129.py +++ b/githubkit/versions/v2022_11_28/types/group_0129.py @@ -9,17 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class RepositoryRuleParamsRestrictedCommitsType(TypedDict): - """RestrictedCommits +class RepositoryRuleCommitterEmailPatternPropParametersType(TypedDict): + """RepositoryRuleCommitterEmailPatternPropParameters""" - Restricted commit - """ + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str - oid: str - reason: NotRequired[str] - -__all__ = ("RepositoryRuleParamsRestrictedCommitsType",) +__all__ = ("RepositoryRuleCommitterEmailPatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0130.py b/githubkit/versions/v2022_11_28/types/group_0130.py index a047ed6b1..fb8fa8181 100644 --- a/githubkit/versions/v2022_11_28/types/group_0130.py +++ b/githubkit/versions/v2022_11_28/types/group_0130.py @@ -12,18 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0131 import RepositoryRuleWorkflowsPropParametersType +from .group_0131 import RepositoryRuleBranchNamePatternPropParametersType -class RepositoryRuleWorkflowsType(TypedDict): - """workflows +class RepositoryRuleBranchNamePatternType(TypedDict): + """branch_name_pattern - Require all changes made to a targeted branch to pass the specified workflows - before they can be merged. + Parameters to be used for the branch_name_pattern rule """ - type: Literal["workflows"] - parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + type: Literal["branch_name_pattern"] + parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] -__all__ = ("RepositoryRuleWorkflowsType",) +__all__ = ("RepositoryRuleBranchNamePatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0131.py b/githubkit/versions/v2022_11_28/types/group_0131.py index a3dc145bb..6785aebe5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0131.py +++ b/githubkit/versions/v2022_11_28/types/group_0131.py @@ -9,29 +9,17 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -class RepositoryRuleWorkflowsPropParametersType(TypedDict): - """RepositoryRuleWorkflowsPropParameters""" +class RepositoryRuleBranchNamePatternPropParametersType(TypedDict): + """RepositoryRuleBranchNamePatternPropParameters""" - workflows: List[RepositoryRuleParamsWorkflowFileReferenceType] + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str -class RepositoryRuleParamsWorkflowFileReferenceType(TypedDict): - """WorkflowFileReference - - A workflow that must run for this rule to pass - """ - - path: str - ref: NotRequired[str] - repository_id: int - sha: NotRequired[str] - - -__all__ = ( - "RepositoryRuleWorkflowsPropParametersType", - "RepositoryRuleParamsWorkflowFileReferenceType", -) +__all__ = ("RepositoryRuleBranchNamePatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0132.py b/githubkit/versions/v2022_11_28/types/group_0132.py index 49495fd5c..2adfecf11 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 import Literal from typing_extensions import TypedDict, NotRequired -from .group_0133 import RepositoryRuleCodeScanningPropParametersType +from .group_0133 import RepositoryRuleTagNamePatternPropParametersType -class RepositoryRuleCodeScanningType(TypedDict): - """code_scanning +class RepositoryRuleTagNamePatternType(TypedDict): + """tag_name_pattern - Choose which tools must provide code scanning results before the reference is - updated. When configured, code scanning must be enabled and have results for - both the commit and the reference being updated. + Parameters to be used for the tag_name_pattern rule """ - type: Literal["code_scanning"] - parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + type: Literal["tag_name_pattern"] + parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] -__all__ = ("RepositoryRuleCodeScanningType",) +__all__ = ("RepositoryRuleTagNamePatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0133.py b/githubkit/versions/v2022_11_28/types/group_0133.py index 29d7bd67f..9b6b95d4b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0133.py +++ b/githubkit/versions/v2022_11_28/types/group_0133.py @@ -9,30 +9,17 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class RepositoryRuleCodeScanningPropParametersType(TypedDict): - """RepositoryRuleCodeScanningPropParameters""" +class RepositoryRuleTagNamePatternPropParametersType(TypedDict): + """RepositoryRuleTagNamePatternPropParameters""" - code_scanning_tools: List[RepositoryRuleParamsCodeScanningToolType] + name: NotRequired[str] + negate: NotRequired[bool] + operator: Literal["starts_with", "ends_with", "contains", "regex"] + pattern: str -class RepositoryRuleParamsCodeScanningToolType(TypedDict): - """CodeScanningTool - - A tool that must provide code scanning results for this rule to pass. - """ - - alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] - security_alerts_threshold: Literal[ - "none", "critical", "high_or_higher", "medium_or_higher", "all" - ] - tool: str - - -__all__ = ( - "RepositoryRuleCodeScanningPropParametersType", - "RepositoryRuleParamsCodeScanningToolType", -) +__all__ = ("RepositoryRuleTagNamePatternPropParametersType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0134.py b/githubkit/versions/v2022_11_28/types/group_0134.py index 7042e80b4..30301fe0d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0134.py +++ b/githubkit/versions/v2022_11_28/types/group_0134.py @@ -9,30 +9,17 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class RepositoryRuleOneof17Type(TypedDict): - """max_file_size +class RepositoryRuleParamsRestrictedCommitsType(TypedDict): + """RestrictedCommits - Note: max_file_size is in beta and subject to change. - - Prevent commits that exceed a specified file size limit from being pushed to the - commit. + Restricted commit """ - type: Literal["max_file_size"] - parameters: NotRequired[RepositoryRuleOneof17PropParametersType] - - -class RepositoryRuleOneof17PropParametersType(TypedDict): - """RepositoryRuleOneof17PropParameters""" - - max_file_size: int + oid: str + reason: NotRequired[str] -__all__ = ( - "RepositoryRuleOneof17Type", - "RepositoryRuleOneof17PropParametersType", -) +__all__ = ("RepositoryRuleParamsRestrictedCommitsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0135.py b/githubkit/versions/v2022_11_28/types/group_0135.py index 8e7a4c088..85d44c4e9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0135.py +++ b/githubkit/versions/v2022_11_28/types/group_0135.py @@ -9,120 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0110 import RepositoryRuleUpdateType -from .group_0134 import RepositoryRuleOneof17Type -from .group_0130 import RepositoryRuleWorkflowsType -from .group_0115 import RepositoryRulePullRequestType -from .group_0106 import OrgRulesetConditionsOneof0Type -from .group_0107 import OrgRulesetConditionsOneof1Type -from .group_0108 import OrgRulesetConditionsOneof2Type -from .group_0132 import RepositoryRuleCodeScanningType -from .group_0098 import RepositoryRulesetConditionsType -from .group_0097 import RepositoryRulesetBypassActorType -from .group_0127 import RepositoryRuleTagNamePatternType -from .group_0125 import RepositoryRuleBranchNamePatternType -from .group_0113 import RepositoryRuleRequiredDeploymentsType -from .group_0117 import RepositoryRuleRequiredStatusChecksType -from .group_0119 import RepositoryRuleCommitMessagePatternType -from .group_0123 import RepositoryRuleCommitterEmailPatternType -from .group_0121 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0112 import ( - RepositoryRuleOneof15Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0109 import ( - RepositoryRuleOneof14Type, - RepositoryRuleOneof16Type, - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +from .group_0136 import RepositoryRuleWorkflowsPropParametersType -class RepositoryRulesetType(TypedDict): - """Repository ruleset +class RepositoryRuleWorkflowsType(TypedDict): + """workflows - A set of rules to apply when specified conditions are met. + Require all changes made to a targeted branch to pass the specified workflows + before they can be merged. """ - id: int - name: str - target: NotRequired[Literal["branch", "tag", "push"]] - source_type: NotRequired[Literal["Repository", "Organization"]] - 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, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] + type: Literal["workflows"] + parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] -class RepositoryRulesetPropLinksType(TypedDict): - """RepositoryRulesetPropLinks""" - - self_: NotRequired[RepositoryRulesetPropLinksPropSelfType] - html: NotRequired[RepositoryRulesetPropLinksPropHtmlType] - - -class RepositoryRulesetPropLinksPropSelfType(TypedDict): - """RepositoryRulesetPropLinksPropSelf""" - - href: NotRequired[str] - - -class RepositoryRulesetPropLinksPropHtmlType(TypedDict): - """RepositoryRulesetPropLinksPropHtml""" - - href: NotRequired[str] - - -__all__ = ( - "RepositoryRulesetType", - "RepositoryRulesetPropLinksType", - "RepositoryRulesetPropLinksPropSelfType", - "RepositoryRulesetPropLinksPropHtmlType", -) +__all__ = ("RepositoryRuleWorkflowsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0136.py b/githubkit/versions/v2022_11_28/types/group_0136.py index 01706cb92..a3dc145bb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0136.py +++ b/githubkit/versions/v2022_11_28/types/group_0136.py @@ -9,25 +9,29 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime +from typing import List from typing_extensions import TypedDict, NotRequired -class RuleSuitesItemsType(TypedDict): - """RuleSuitesItems""" +class RepositoryRuleWorkflowsPropParametersType(TypedDict): + """RepositoryRuleWorkflowsPropParameters""" - id: NotRequired[int] - actor_id: NotRequired[int] - actor_name: NotRequired[str] - before_sha: NotRequired[str] - after_sha: NotRequired[str] + workflows: List[RepositoryRuleParamsWorkflowFileReferenceType] + + +class RepositoryRuleParamsWorkflowFileReferenceType(TypedDict): + """WorkflowFileReference + + A workflow that must run for this rule to pass + """ + + path: str ref: NotRequired[str] - repository_id: NotRequired[int] - repository_name: NotRequired[str] - pushed_at: NotRequired[datetime] - result: NotRequired[Literal["pass", "fail", "bypass"]] - evaluation_result: NotRequired[Literal["pass", "fail"]] + repository_id: int + sha: NotRequired[str] -__all__ = ("RuleSuitesItemsType",) +__all__ = ( + "RepositoryRuleWorkflowsPropParametersType", + "RepositoryRuleParamsWorkflowFileReferenceType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0137.py b/githubkit/versions/v2022_11_28/types/group_0137.py index 376a8cbd4..1fa570804 100644 --- a/githubkit/versions/v2022_11_28/types/group_0137.py +++ b/githubkit/versions/v2022_11_28/types/group_0137.py @@ -9,51 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0138 import RepositoryRuleCodeScanningPropParametersType -class RuleSuiteType(TypedDict): - """Rule Suite - Response - """ - - id: NotRequired[int] - actor_id: NotRequired[Union[int, None]] - actor_name: NotRequired[Union[str, None]] - before_sha: NotRequired[str] - after_sha: NotRequired[str] - ref: NotRequired[str] - repository_id: NotRequired[int] - repository_name: NotRequired[str] - pushed_at: NotRequired[datetime] - result: NotRequired[Literal["pass", "fail", "bypass"]] - evaluation_result: NotRequired[Literal["pass", "fail"]] - rule_evaluations: NotRequired[List[RuleSuitePropRuleEvaluationsItemsType]] - - -class RuleSuitePropRuleEvaluationsItemsType(TypedDict): - """RuleSuitePropRuleEvaluationsItems""" +class RepositoryRuleCodeScanningType(TypedDict): + """code_scanning - rule_source: NotRequired[RuleSuitePropRuleEvaluationsItemsPropRuleSourceType] - enforcement: NotRequired[Literal["active", "evaluate", "deleted ruleset"]] - result: NotRequired[Literal["pass", "fail"]] - rule_type: NotRequired[str] - details: NotRequired[str] - - -class RuleSuitePropRuleEvaluationsItemsPropRuleSourceType(TypedDict): - """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" + Choose which tools must provide code scanning results before the reference is + updated. When configured, code scanning must be enabled and have results for + both the commit and the reference being updated. + """ - type: NotRequired[str] - id: NotRequired[Union[int, None]] - name: NotRequired[Union[str, None]] + type: Literal["code_scanning"] + parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] -__all__ = ( - "RuleSuiteType", - "RuleSuitePropRuleEvaluationsItemsType", - "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", -) +__all__ = ("RepositoryRuleCodeScanningType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0138.py b/githubkit/versions/v2022_11_28/types/group_0138.py index dc605167a..29d7bd67f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0138.py +++ b/githubkit/versions/v2022_11_28/types/group_0138.py @@ -9,32 +9,30 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict -from .group_0001 import SimpleUserType +class RepositoryRuleCodeScanningPropParametersType(TypedDict): + """RepositoryRuleCodeScanningPropParameters""" -class RepositoryAdvisoryCreditType(TypedDict): - """RepositoryAdvisoryCredit + code_scanning_tools: List[RepositoryRuleParamsCodeScanningToolType] - A credit given to a user for a repository security advisory. + +class RepositoryRuleParamsCodeScanningToolType(TypedDict): + """CodeScanningTool + + A tool that must provide code scanning results for this rule to pass. """ - user: SimpleUserType - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", + alerts_threshold: Literal["none", "errors", "errors_and_warnings", "all"] + security_alerts_threshold: Literal[ + "none", "critical", "high_or_higher", "medium_or_higher", "all" ] - state: Literal["accepted", "declined", "pending"] + tool: str -__all__ = ("RepositoryAdvisoryCreditType",) +__all__ = ( + "RepositoryRuleCodeScanningPropParametersType", + "RepositoryRuleParamsCodeScanningToolType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0139.py b/githubkit/versions/v2022_11_28/types/group_0139.py index 620657104..7042e80b4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0139.py +++ b/githubkit/versions/v2022_11_28/types/group_0139.py @@ -9,140 +9,30 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0076 import TeamType -from .group_0001 import SimpleUserType -from .group_0138 import RepositoryAdvisoryCreditType +class RepositoryRuleOneof17Type(TypedDict): + """max_file_size -class RepositoryAdvisoryType(TypedDict): - """RepositoryAdvisory + Note: max_file_size is in beta and subject to change. - A repository security advisory. + Prevent commits that exceed a specified file size limit from being pushed to the + commit. """ - ghsa_id: str - cve_id: Union[str, None] - url: str - html_url: str - summary: str - description: Union[str, None] - severity: Union[None, Literal["critical", "high", "medium", "low"]] - author: None - publisher: None - identifiers: List[RepositoryAdvisoryPropIdentifiersItemsType] - state: Literal["published", "closed", "withdrawn", "draft", "triage"] - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - published_at: Union[datetime, None] - closed_at: Union[datetime, None] - withdrawn_at: Union[datetime, None] - submission: Union[RepositoryAdvisoryPropSubmissionType, None] - vulnerabilities: Union[List[RepositoryAdvisoryVulnerabilityType], None] - cvss: Union[RepositoryAdvisoryPropCvssType, None] - 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 + type: Literal["max_file_size"] + parameters: NotRequired[RepositoryRuleOneof17PropParametersType] -class RepositoryAdvisoryPropIdentifiersItemsType(TypedDict): - """RepositoryAdvisoryPropIdentifiersItems""" +class RepositoryRuleOneof17PropParametersType(TypedDict): + """RepositoryRuleOneof17PropParameters""" - 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] + max_file_size: int __all__ = ( - "RepositoryAdvisoryType", - "RepositoryAdvisoryPropIdentifiersItemsType", - "RepositoryAdvisoryPropSubmissionType", - "RepositoryAdvisoryPropCvssType", - "RepositoryAdvisoryPropCwesItemsType", - "RepositoryAdvisoryPropCreditsItemsType", - "RepositoryAdvisoryVulnerabilityType", - "RepositoryAdvisoryVulnerabilityPropPackageType", + "RepositoryRuleOneof17Type", + "RepositoryRuleOneof17PropParametersType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0140.py b/githubkit/versions/v2022_11_28/types/group_0140.py index 94e387ee3..95ae9b3a7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0140.py +++ b/githubkit/versions/v2022_11_28/types/group_0140.py @@ -9,39 +9,120 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0115 import RepositoryRuleUpdateType +from .group_0139 import RepositoryRuleOneof17Type +from .group_0135 import RepositoryRuleWorkflowsType +from .group_0120 import RepositoryRulePullRequestType +from .group_0111 import OrgRulesetConditionsOneof0Type +from .group_0112 import OrgRulesetConditionsOneof1Type +from .group_0113 import OrgRulesetConditionsOneof2Type +from .group_0137 import RepositoryRuleCodeScanningType +from .group_0103 import RepositoryRulesetConditionsType +from .group_0102 import RepositoryRulesetBypassActorType +from .group_0132 import RepositoryRuleTagNamePatternType +from .group_0130 import RepositoryRuleBranchNamePatternType +from .group_0118 import RepositoryRuleRequiredDeploymentsType +from .group_0122 import RepositoryRuleRequiredStatusChecksType +from .group_0124 import RepositoryRuleCommitMessagePatternType +from .group_0128 import RepositoryRuleCommitterEmailPatternType +from .group_0126 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0117 import ( + RepositoryRuleOneof15Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0114 import ( + RepositoryRuleOneof14Type, + RepositoryRuleOneof16Type, + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) + + +class RepositoryRulesetType(TypedDict): + """Repository ruleset + + A set of rules to apply when specified conditions are met. + """ + + id: int + name: str + target: NotRequired[Literal["branch", "tag", "push"]] + source_type: NotRequired[Literal["Repository", "Organization"]] + 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, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + + +class RepositoryRulesetPropLinksType(TypedDict): + """RepositoryRulesetPropLinks""" + + self_: NotRequired[RepositoryRulesetPropLinksPropSelfType] + html: NotRequired[RepositoryRulesetPropLinksPropHtmlType] + -class ActionsBillingUsageType(TypedDict): - """ActionsBillingUsage""" +class RepositoryRulesetPropLinksPropSelfType(TypedDict): + """RepositoryRulesetPropLinksPropSelf""" - total_minutes_used: int - total_paid_minutes_used: int - included_minutes: int - minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdownType + href: NotRequired[str] -class ActionsBillingUsagePropMinutesUsedBreakdownType(TypedDict): - """ActionsBillingUsagePropMinutesUsedBreakdown""" +class RepositoryRulesetPropLinksPropHtmlType(TypedDict): + """RepositoryRulesetPropLinksPropHtml""" - ubuntu: NotRequired[int] - macos: NotRequired[int] - windows: NotRequired[int] - ubuntu_4_core: NotRequired[int] - ubuntu_8_core: NotRequired[int] - ubuntu_16_core: NotRequired[int] - ubuntu_32_core: NotRequired[int] - ubuntu_64_core: NotRequired[int] - windows_4_core: NotRequired[int] - windows_8_core: NotRequired[int] - windows_16_core: NotRequired[int] - windows_32_core: NotRequired[int] - windows_64_core: NotRequired[int] - macos_12_core: NotRequired[int] - total: NotRequired[int] + href: NotRequired[str] __all__ = ( - "ActionsBillingUsageType", - "ActionsBillingUsagePropMinutesUsedBreakdownType", + "RepositoryRulesetType", + "RepositoryRulesetPropLinksType", + "RepositoryRulesetPropLinksPropSelfType", + "RepositoryRulesetPropLinksPropHtmlType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0141.py b/githubkit/versions/v2022_11_28/types/group_0141.py index cac22c41a..01706cb92 100644 --- a/githubkit/versions/v2022_11_28/types/group_0141.py +++ b/githubkit/versions/v2022_11_28/types/group_0141.py @@ -9,15 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -class PackagesBillingUsageType(TypedDict): - """PackagesBillingUsage""" +class RuleSuitesItemsType(TypedDict): + """RuleSuitesItems""" - total_gigabytes_bandwidth_used: int - total_paid_gigabytes_bandwidth_used: int - included_gigabytes_bandwidth: int + id: NotRequired[int] + actor_id: NotRequired[int] + actor_name: NotRequired[str] + before_sha: NotRequired[str] + after_sha: NotRequired[str] + ref: NotRequired[str] + repository_id: NotRequired[int] + repository_name: NotRequired[str] + pushed_at: NotRequired[datetime] + result: NotRequired[Literal["pass", "fail", "bypass"]] + evaluation_result: NotRequired[Literal["pass", "fail"]] -__all__ = ("PackagesBillingUsageType",) +__all__ = ("RuleSuitesItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0142.py b/githubkit/versions/v2022_11_28/types/group_0142.py index 15a19a09d..376a8cbd4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0142.py +++ b/githubkit/versions/v2022_11_28/types/group_0142.py @@ -9,15 +9,51 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -class CombinedBillingUsageType(TypedDict): - """CombinedBillingUsage""" +class RuleSuiteType(TypedDict): + """Rule Suite - days_left_in_billing_cycle: int - estimated_paid_storage_for_month: int - estimated_storage_for_month: int + Response + """ + id: NotRequired[int] + actor_id: NotRequired[Union[int, None]] + actor_name: NotRequired[Union[str, None]] + before_sha: NotRequired[str] + after_sha: NotRequired[str] + ref: NotRequired[str] + repository_id: NotRequired[int] + repository_name: NotRequired[str] + pushed_at: NotRequired[datetime] + result: NotRequired[Literal["pass", "fail", "bypass"]] + evaluation_result: NotRequired[Literal["pass", "fail"]] + rule_evaluations: NotRequired[List[RuleSuitePropRuleEvaluationsItemsType]] -__all__ = ("CombinedBillingUsageType",) + +class RuleSuitePropRuleEvaluationsItemsType(TypedDict): + """RuleSuitePropRuleEvaluationsItems""" + + rule_source: NotRequired[RuleSuitePropRuleEvaluationsItemsPropRuleSourceType] + enforcement: NotRequired[Literal["active", "evaluate", "deleted ruleset"]] + result: NotRequired[Literal["pass", "fail"]] + rule_type: NotRequired[str] + details: NotRequired[str] + + +class RuleSuitePropRuleEvaluationsItemsPropRuleSourceType(TypedDict): + """RuleSuitePropRuleEvaluationsItemsPropRuleSource""" + + type: NotRequired[str] + id: NotRequired[Union[int, None]] + name: NotRequired[Union[str, None]] + + +__all__ = ( + "RuleSuiteType", + "RuleSuitePropRuleEvaluationsItemsType", + "RuleSuitePropRuleEvaluationsItemsPropRuleSourceType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0143.py b/githubkit/versions/v2022_11_28/types/group_0143.py index cc92a1761..dc605167a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0143.py +++ b/githubkit/versions/v2022_11_28/types/group_0143.py @@ -9,111 +9,32 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -from .group_0075 import TeamSimpleType +from .group_0001 import SimpleUserType -class TeamFullType(TypedDict): - """Full Team +class RepositoryAdvisoryCreditType(TypedDict): + """RepositoryAdvisoryCredit - Groups of organization members that gives permissions on specified repositories. + A credit given to a user for a repository security advisory. """ - id: int - node_id: str - url: str - html_url: str - name: str - slug: str - description: Union[str, None] - privacy: NotRequired[Literal["closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] + user: SimpleUserType + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", ] - permission: str - members_url: str - repositories_url: str - parent: NotRequired[Union[None, TeamSimpleType]] - members_count: int - repos_count: int - created_at: datetime - updated_at: datetime - organization: TeamOrganizationType - ldap_dn: NotRequired[str] + state: Literal["accepted", "declined", "pending"] -class TeamOrganizationType(TypedDict): - """Team Organization - - Team Organization - """ - - login: str - id: int - node_id: str - url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] - name: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - blog: NotRequired[Union[str, None]] - location: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - twitter_username: NotRequired[Union[str, None]] - is_verified: NotRequired[bool] - has_organization_projects: bool - has_repository_projects: bool - public_repos: int - public_gists: int - followers: int - following: int - html_url: str - created_at: datetime - type: str - total_private_repos: NotRequired[int] - owned_private_repos: NotRequired[int] - private_gists: NotRequired[Union[int, None]] - disk_usage: NotRequired[Union[int, None]] - collaborators: NotRequired[Union[int, None]] - billing_email: NotRequired[Union[str, None]] - plan: NotRequired[TeamOrganizationPropPlanType] - default_repository_permission: NotRequired[Union[str, None]] - members_can_create_repositories: NotRequired[Union[bool, None]] - two_factor_requirement_enabled: NotRequired[Union[bool, None]] - members_allowed_repository_creation_type: NotRequired[str] - members_can_create_public_repositories: NotRequired[bool] - members_can_create_private_repositories: NotRequired[bool] - members_can_create_internal_repositories: NotRequired[bool] - members_can_create_pages: NotRequired[bool] - members_can_create_public_pages: NotRequired[bool] - members_can_create_private_pages: NotRequired[bool] - members_can_fork_private_repositories: NotRequired[Union[bool, None]] - web_commit_signoff_required: NotRequired[bool] - updated_at: datetime - archived_at: Union[datetime, None] - - -class TeamOrganizationPropPlanType(TypedDict): - """TeamOrganizationPropPlan""" - - name: str - space: int - private_repos: int - filled_seats: NotRequired[int] - seats: NotRequired[int] - - -__all__ = ( - "TeamFullType", - "TeamOrganizationType", - "TeamOrganizationPropPlanType", -) +__all__ = ("RepositoryAdvisoryCreditType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0144.py b/githubkit/versions/v2022_11_28/types/group_0144.py index 45471a2aa..a400063f8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0144.py +++ b/githubkit/versions/v2022_11_28/types/group_0144.py @@ -9,39 +9,140 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0026 import TeamType from .group_0001 import SimpleUserType -from .group_0034 import ReactionRollupType +from .group_0143 import RepositoryAdvisoryCreditType -class TeamDiscussionType(TypedDict): - """Team Discussion +class RepositoryAdvisoryType(TypedDict): + """RepositoryAdvisory - A team discussion is a persistent record of a free-form conversation within a - team. + A repository security advisory. """ - author: Union[None, SimpleUserType] - body: str - body_html: str - body_version: str - comments_count: int - comments_url: str - created_at: datetime - last_edited_at: Union[datetime, None] - html_url: str - node_id: str - number: int - pinned: bool - private: bool - team_url: str - title: str - updated_at: datetime + ghsa_id: str + cve_id: Union[str, None] url: str - reactions: NotRequired[ReactionRollupType] + html_url: str + summary: str + description: Union[str, None] + severity: Union[None, Literal["critical", "high", "medium", "low"]] + author: None + publisher: None + identifiers: List[RepositoryAdvisoryPropIdentifiersItemsType] + state: Literal["published", "closed", "withdrawn", "draft", "triage"] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + published_at: Union[datetime, None] + closed_at: Union[datetime, None] + withdrawn_at: Union[datetime, None] + submission: Union[RepositoryAdvisoryPropSubmissionType, None] + vulnerabilities: Union[List[RepositoryAdvisoryVulnerabilityType], None] + cvss: Union[RepositoryAdvisoryPropCvssType, None] + cwes: Union[List[RepositoryAdvisoryPropCwesItemsType], None] + cwe_ids: Union[List[str], None] + credits_: Union[List[RepositoryAdvisoryPropCreditsItemsType], None] + credits_detailed: Union[List[RepositoryAdvisoryCreditType], None] + collaborating_users: Union[List[SimpleUserType], None] + collaborating_teams: Union[List[TeamType], None] + private_fork: None + + +class RepositoryAdvisoryPropIdentifiersItemsType(TypedDict): + """RepositoryAdvisoryPropIdentifiersItems""" + + type: Literal["CVE", "GHSA"] + value: str + + +class RepositoryAdvisoryPropSubmissionType(TypedDict): + """RepositoryAdvisoryPropSubmission""" + + accepted: bool + + +class RepositoryAdvisoryPropCvssType(TypedDict): + """RepositoryAdvisoryPropCvss""" + + vector_string: Union[str, None] + score: Union[float, None] + + +class RepositoryAdvisoryPropCwesItemsType(TypedDict): + """RepositoryAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class RepositoryAdvisoryPropCreditsItemsType(TypedDict): + """RepositoryAdvisoryPropCreditsItems""" + + login: NotRequired[str] + type: NotRequired[ + Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + ] + + +class RepositoryAdvisoryVulnerabilityType(TypedDict): + """RepositoryAdvisoryVulnerability + + A product affected by the vulnerability detailed in a repository security + advisory. + """ + + package: Union[RepositoryAdvisoryVulnerabilityPropPackageType, None] + vulnerable_version_range: Union[str, None] + patched_versions: Union[str, None] + vulnerable_functions: Union[List[str], None] + + +class RepositoryAdvisoryVulnerabilityPropPackageType(TypedDict): + """RepositoryAdvisoryVulnerabilityPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: Union[str, None] -__all__ = ("TeamDiscussionType",) +__all__ = ( + "RepositoryAdvisoryType", + "RepositoryAdvisoryPropIdentifiersItemsType", + "RepositoryAdvisoryPropSubmissionType", + "RepositoryAdvisoryPropCvssType", + "RepositoryAdvisoryPropCwesItemsType", + "RepositoryAdvisoryPropCreditsItemsType", + "RepositoryAdvisoryVulnerabilityType", + "RepositoryAdvisoryVulnerabilityPropPackageType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0145.py b/githubkit/versions/v2022_11_28/types/group_0145.py index 966ac6c88..94e387ee3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0145.py +++ b/githubkit/versions/v2022_11_28/types/group_0145.py @@ -9,33 +9,39 @@ from __future__ import annotations -from typing import Union -from datetime import datetime from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0034 import ReactionRollupType +class ActionsBillingUsageType(TypedDict): + """ActionsBillingUsage""" -class TeamDiscussionCommentType(TypedDict): - """Team Discussion Comment + total_minutes_used: int + total_paid_minutes_used: int + included_minutes: int + minutes_used_breakdown: ActionsBillingUsagePropMinutesUsedBreakdownType - A reply to a discussion within a team. - """ - author: Union[None, SimpleUserType] - body: str - body_html: str - body_version: str - created_at: datetime - last_edited_at: Union[datetime, None] - discussion_url: str - html_url: str - node_id: str - number: int - updated_at: datetime - url: str - reactions: NotRequired[ReactionRollupType] +class ActionsBillingUsagePropMinutesUsedBreakdownType(TypedDict): + """ActionsBillingUsagePropMinutesUsedBreakdown""" + ubuntu: NotRequired[int] + macos: NotRequired[int] + windows: NotRequired[int] + ubuntu_4_core: NotRequired[int] + ubuntu_8_core: NotRequired[int] + ubuntu_16_core: NotRequired[int] + ubuntu_32_core: NotRequired[int] + ubuntu_64_core: NotRequired[int] + windows_4_core: NotRequired[int] + windows_8_core: NotRequired[int] + windows_16_core: NotRequired[int] + windows_32_core: NotRequired[int] + windows_64_core: NotRequired[int] + macos_12_core: NotRequired[int] + total: NotRequired[int] -__all__ = ("TeamDiscussionCommentType",) + +__all__ = ( + "ActionsBillingUsageType", + "ActionsBillingUsagePropMinutesUsedBreakdownType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0146.py b/githubkit/versions/v2022_11_28/types/group_0146.py index 4e77006cd..cac22c41a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0146.py +++ b/githubkit/versions/v2022_11_28/types/group_0146.py @@ -9,27 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal from typing_extensions import TypedDict -from .group_0001 import SimpleUserType +class PackagesBillingUsageType(TypedDict): + """PackagesBillingUsage""" -class ReactionType(TypedDict): - """Reaction + total_gigabytes_bandwidth_used: int + total_paid_gigabytes_bandwidth_used: int + included_gigabytes_bandwidth: int - Reactions to conversations provide a way to help people express their feelings - more simply and effectively. - """ - id: int - node_id: str - user: Union[None, SimpleUserType] - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] - created_at: datetime - - -__all__ = ("ReactionType",) +__all__ = ("PackagesBillingUsageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0147.py b/githubkit/versions/v2022_11_28/types/group_0147.py index 201ca0a17..15a19a09d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0147.py +++ b/githubkit/versions/v2022_11_28/types/group_0147.py @@ -9,19 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class TeamMembershipType(TypedDict): - """Team Membership +class CombinedBillingUsageType(TypedDict): + """CombinedBillingUsage""" - Team Membership - """ + days_left_in_billing_cycle: int + estimated_paid_storage_for_month: int + estimated_storage_for_month: int - url: str - role: Literal["member", "maintainer"] - state: Literal["active", "pending"] - -__all__ = ("TeamMembershipType",) +__all__ = ("CombinedBillingUsageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0148.py b/githubkit/versions/v2022_11_28/types/group_0148.py index a4bd772e4..9459b6d23 100644 --- a/githubkit/versions/v2022_11_28/types/group_0148.py +++ b/githubkit/versions/v2022_11_28/types/group_0148.py @@ -9,45 +9,111 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +from .group_0025 import TeamSimpleType -class TeamProjectType(TypedDict): - """Team Project +class TeamFullType(TypedDict): + """Full Team - A team's access to a project. + Groups of organization members that gives permissions on specified repositories. """ - owner_url: str + id: int + node_id: str url: str html_url: str - columns_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 - 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 + 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 TeamProjectPropPermissionsType(TypedDict): - """TeamProjectPropPermissions""" +class TeamOrganizationPropPlanType(TypedDict): + """TeamOrganizationPropPlan""" - read: bool - write: bool - admin: bool + name: str + space: int + private_repos: int + filled_seats: NotRequired[int] + seats: NotRequired[int] __all__ = ( - "TeamProjectType", - "TeamProjectPropPermissionsType", + "TeamFullType", + "TeamOrganizationType", + "TeamOrganizationPropPlanType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0149.py b/githubkit/versions/v2022_11_28/types/group_0149.py index e092b799e..bc19a97d0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0149.py +++ b/githubkit/versions/v2022_11_28/types/group_0149.py @@ -9,122 +9,39 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -from .group_0016 import LicenseSimpleType +from .group_0038 import ReactionRollupType -class TeamRepositoryType(TypedDict): - """Team Repository +class TeamDiscussionType(TypedDict): + """Team Discussion - A team's access to a repository. + A team discussion is a persistent record of a free-form conversation within a + team. """ - id: int + 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 - name: str - full_name: str - license_: Union[None, LicenseSimpleType] - forks: int - permissions: NotRequired[TeamRepositoryPropPermissionsType] - role_name: NotRequired[str] - owner: Union[None, SimpleUserType] + number: int + pinned: bool private: bool - html_url: str - description: Union[str, None] - fork: bool + team_url: str + title: str + updated_at: datetime url: str - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - downloads_url: str - events_url: str - forks_url: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - notifications_url: str - pulls_url: str - releases_url: str - ssh_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - clone_url: str - mirror_url: Union[str, None] - hooks_url: str - svn_url: str - homepage: Union[str, None] - language: Union[str, None] - forks_count: int - stargazers_count: int - watchers_count: int - size: int - default_branch: str - open_issues_count: int - is_template: NotRequired[bool] - topics: NotRequired[List[str]] - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_downloads: bool - archived: bool - disabled: bool - visibility: NotRequired[str] - pushed_at: Union[datetime, None] - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - allow_rebase_merge: NotRequired[bool] - temp_clone_token: NotRequired[Union[str, None]] - allow_squash_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - subscribers_count: NotRequired[int] - network_count: NotRequired[int] - open_issues: int - watchers: int - master_branch: NotRequired[str] - - -class TeamRepositoryPropPermissionsType(TypedDict): - """TeamRepositoryPropPermissions""" - - admin: bool - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] + reactions: NotRequired[ReactionRollupType] -__all__ = ( - "TeamRepositoryType", - "TeamRepositoryPropPermissionsType", -) +__all__ = ("TeamDiscussionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0150.py b/githubkit/versions/v2022_11_28/types/group_0150.py index 220768fca..b9bfd6170 100644 --- a/githubkit/versions/v2022_11_28/types/group_0150.py +++ b/githubkit/versions/v2022_11_28/types/group_0150.py @@ -14,27 +14,28 @@ from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType +from .group_0038 import ReactionRollupType -class ProjectCardType(TypedDict): - """Project Card +class TeamDiscussionCommentType(TypedDict): + """Team Discussion Comment - Project cards represent a scope of work. + A reply to a discussion within a team. """ - url: str - id: int - node_id: str - note: Union[str, None] - creator: Union[None, SimpleUserType] + author: Union[None, SimpleUserType] + body: str + body_html: str + body_version: str created_at: datetime + last_edited_at: Union[datetime, None] + discussion_url: str + html_url: str + node_id: str + number: int updated_at: datetime - archived: NotRequired[bool] - column_name: NotRequired[str] - project_id: NotRequired[str] - column_url: str - content_url: NotRequired[str] - project_url: str + url: str + reactions: NotRequired[ReactionRollupType] -__all__ = ("ProjectCardType",) +__all__ = ("TeamDiscussionCommentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0151.py b/githubkit/versions/v2022_11_28/types/group_0151.py index d23a9ab67..4e77006cd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0151.py +++ b/githubkit/versions/v2022_11_28/types/group_0151.py @@ -10,23 +10,26 @@ from __future__ import annotations from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict +from .group_0001 import SimpleUserType -class ProjectColumnType(TypedDict): - """Project Column - Project columns contain cards of work. +class ReactionType(TypedDict): + """Reaction + + Reactions to conversations provide a way to help people express their feelings + more simply and effectively. """ - url: str - project_url: str - cards_url: str id: int node_id: str - name: str + user: Union[None, SimpleUserType] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] created_at: datetime - updated_at: datetime -__all__ = ("ProjectColumnType",) +__all__ = ("ReactionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0152.py b/githubkit/versions/v2022_11_28/types/group_0152.py index 7ed43f19c..201ca0a17 100644 --- a/githubkit/versions/v2022_11_28/types/group_0152.py +++ b/githubkit/versions/v2022_11_28/types/group_0152.py @@ -9,20 +9,19 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import TypedDict -from .group_0001 import SimpleUserType +class TeamMembershipType(TypedDict): + """Team Membership -class ProjectCollaboratorPermissionType(TypedDict): - """Project Collaborator Permission - - Project Collaborator Permission + Team Membership """ - permission: str - user: Union[None, SimpleUserType] + url: str + role: Literal["member", "maintainer"] + state: Literal["active", "pending"] -__all__ = ("ProjectCollaboratorPermissionType",) +__all__ = ("TeamMembershipType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0153.py b/githubkit/versions/v2022_11_28/types/group_0153.py index 7564a62f1..a4bd772e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0153.py +++ b/githubkit/versions/v2022_11_28/types/group_0153.py @@ -9,16 +9,45 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class RateLimitType(TypedDict): - """Rate Limit""" - limit: int - remaining: int - reset: int - used: int +class TeamProjectType(TypedDict): + """Team Project + A team's access to a project. + """ -__all__ = ("RateLimitType",) + 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__ = ( + "TeamProjectType", + "TeamProjectPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0154.py b/githubkit/versions/v2022_11_28/types/group_0154.py index d79d93274..e092b799e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0154.py +++ b/githubkit/versions/v2022_11_28/types/group_0154.py @@ -9,20 +9,122 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -from .group_0153 import RateLimitType -from .group_0155 import RateLimitOverviewPropResourcesType +from .group_0001 import SimpleUserType +from .group_0016 import LicenseSimpleType -class RateLimitOverviewType(TypedDict): - """Rate Limit Overview +class TeamRepositoryType(TypedDict): + """Team Repository - Rate Limit Overview + A team's access to a repository. """ - resources: RateLimitOverviewPropResourcesType - rate: RateLimitType + id: int + node_id: str + name: str + full_name: str + license_: Union[None, LicenseSimpleType] + forks: int + permissions: NotRequired[TeamRepositoryPropPermissionsType] + role_name: NotRequired[str] + owner: Union[None, SimpleUserType] + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[List[str]] + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_downloads: bool + archived: bool + disabled: bool + visibility: NotRequired[str] + pushed_at: Union[datetime, None] + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + allow_rebase_merge: NotRequired[bool] + temp_clone_token: NotRequired[Union[str, None]] + allow_squash_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + subscribers_count: NotRequired[int] + network_count: NotRequired[int] + open_issues: int + watchers: int + master_branch: NotRequired[str] -__all__ = ("RateLimitOverviewType",) +class TeamRepositoryPropPermissionsType(TypedDict): + """TeamRepositoryPropPermissions""" + + admin: bool + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] + + +__all__ = ( + "TeamRepositoryType", + "TeamRepositoryPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0155.py b/githubkit/versions/v2022_11_28/types/group_0155.py index 8ff990c59..220768fca 100644 --- a/githubkit/versions/v2022_11_28/types/group_0155.py +++ b/githubkit/versions/v2022_11_28/types/group_0155.py @@ -9,24 +9,32 @@ from __future__ import annotations +from typing import Union +from datetime import datetime from typing_extensions import TypedDict, NotRequired -from .group_0153 import RateLimitType +from .group_0001 import SimpleUserType -class RateLimitOverviewPropResourcesType(TypedDict): - """RateLimitOverviewPropResources""" +class ProjectCardType(TypedDict): + """Project Card - 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] + Project cards represent a scope of work. + """ + 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__ = ("RateLimitOverviewPropResourcesType",) + +__all__ = ("ProjectCardType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0156.py b/githubkit/versions/v2022_11_28/types/group_0156.py index 1ba8803f8..d23a9ab67 100644 --- a/githubkit/versions/v2022_11_28/types/group_0156.py +++ b/githubkit/versions/v2022_11_28/types/group_0156.py @@ -9,41 +9,24 @@ from __future__ import annotations -from typing import Union from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ArtifactType(TypedDict): - """Artifact +class ProjectColumnType(TypedDict): + """Project Column - An artifact + Project columns contain cards of work. """ + url: str + project_url: str + cards_url: str id: int node_id: str name: str - size_in_bytes: int - url: str - archive_download_url: str - expired: bool - created_at: Union[datetime, None] - expires_at: Union[datetime, None] - updated_at: Union[datetime, None] - workflow_run: NotRequired[Union[ArtifactPropWorkflowRunType, None]] - - -class ArtifactPropWorkflowRunType(TypedDict): - """ArtifactPropWorkflowRun""" - - id: NotRequired[int] - repository_id: NotRequired[int] - head_repository_id: NotRequired[int] - head_branch: NotRequired[str] - head_sha: NotRequired[str] + created_at: datetime + updated_at: datetime -__all__ = ( - "ArtifactType", - "ArtifactPropWorkflowRunType", -) +__all__ = ("ProjectColumnType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0157.py b/githubkit/versions/v2022_11_28/types/group_0157.py index 6d51498cc..7ed43f19c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0157.py +++ b/githubkit/versions/v2022_11_28/types/group_0157.py @@ -9,34 +9,20 @@ from __future__ import annotations -from typing import List -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict +from .group_0001 import SimpleUserType -class ActionsCacheListType(TypedDict): - """Repository actions caches - Repository actions caches - """ - - total_count: int - actions_caches: List[ActionsCacheListPropActionsCachesItemsType] +class ProjectCollaboratorPermissionType(TypedDict): + """Project Collaborator Permission + Project Collaborator Permission + """ -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] + permission: str + user: Union[None, SimpleUserType] -__all__ = ( - "ActionsCacheListType", - "ActionsCacheListPropActionsCachesItemsType", -) +__all__ = ("ProjectCollaboratorPermissionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0158.py b/githubkit/versions/v2022_11_28/types/group_0158.py index 61cc52d83..7564a62f1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0158.py +++ b/githubkit/versions/v2022_11_28/types/group_0158.py @@ -9,67 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class JobType(TypedDict): - """Job +class RateLimitType(TypedDict): + """Rate Limit""" - Information of a job execution in a workflow run - """ + limit: int + remaining: int + reset: int + used: int - id: int - run_id: int - run_url: str - run_attempt: NotRequired[int] - node_id: str - head_sha: str - url: str - html_url: Union[str, None] - status: Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] - created_at: datetime - started_at: datetime - completed_at: Union[datetime, None] - name: str - steps: NotRequired[List[JobPropStepsItemsType]] - check_run_url: str - labels: List[str] - runner_id: Union[int, None] - runner_name: Union[str, None] - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - workflow_name: Union[str, None] - head_branch: Union[str, None] - -class JobPropStepsItemsType(TypedDict): - """JobPropStepsItems""" - - status: Literal["queued", "in_progress", "completed"] - conclusion: Union[str, None] - name: str - number: int - started_at: NotRequired[Union[datetime, None]] - completed_at: NotRequired[Union[datetime, None]] - - -__all__ = ( - "JobType", - "JobPropStepsItemsType", -) +__all__ = ("RateLimitType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0159.py b/githubkit/versions/v2022_11_28/types/group_0159.py index e8df7b2a9..b87f16271 100644 --- a/githubkit/versions/v2022_11_28/types/group_0159.py +++ b/githubkit/versions/v2022_11_28/types/group_0159.py @@ -9,18 +9,20 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0158 import RateLimitType +from .group_0160 import RateLimitOverviewPropResourcesType -class OidcCustomSubRepoType(TypedDict): - """Actions OIDC subject customization for a repository - Actions OIDC subject customization for a repository +class RateLimitOverviewType(TypedDict): + """Rate Limit Overview + + Rate Limit Overview """ - use_default: bool - include_claim_keys: NotRequired[List[str]] + resources: RateLimitOverviewPropResourcesType + rate: RateLimitType -__all__ = ("OidcCustomSubRepoType",) +__all__ = ("RateLimitOverviewType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0160.py b/githubkit/versions/v2022_11_28/types/group_0160.py index 7d6ae5032..73a78c1c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0160.py +++ b/githubkit/versions/v2022_11_28/types/group_0160.py @@ -9,19 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired +from .group_0158 import RateLimitType -class ActionsSecretType(TypedDict): - """Actions Secret - Set secrets for GitHub Actions. - """ +class RateLimitOverviewPropResourcesType(TypedDict): + """RateLimitOverviewPropResources""" - name: str - created_at: datetime - updated_at: datetime + 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] -__all__ = ("ActionsSecretType",) +__all__ = ("RateLimitOverviewPropResourcesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0161.py b/githubkit/versions/v2022_11_28/types/group_0161.py index eb13c7e2f..1ba8803f8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0161.py +++ b/githubkit/versions/v2022_11_28/types/group_0161.py @@ -9,17 +9,41 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ActionsVariableType(TypedDict): - """Actions Variable""" - - name: str - value: str - created_at: datetime - updated_at: datetime +class ArtifactType(TypedDict): + """Artifact + An artifact + """ -__all__ = ("ActionsVariableType",) + id: int + node_id: str + name: str + size_in_bytes: int + url: str + archive_download_url: str + expired: bool + created_at: Union[datetime, None] + expires_at: Union[datetime, None] + updated_at: Union[datetime, None] + workflow_run: NotRequired[Union[ArtifactPropWorkflowRunType, None]] + + +class ArtifactPropWorkflowRunType(TypedDict): + """ArtifactPropWorkflowRun""" + + id: NotRequired[int] + repository_id: NotRequired[int] + head_repository_id: NotRequired[int] + head_branch: NotRequired[str] + head_sha: NotRequired[str] + + +__all__ = ( + "ArtifactType", + "ArtifactPropWorkflowRunType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0162.py b/githubkit/versions/v2022_11_28/types/group_0162.py index e80d7d2e7..6d51498cc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0162.py +++ b/githubkit/versions/v2022_11_28/types/group_0162.py @@ -9,16 +9,34 @@ from __future__ import annotations -from typing import Literal +from typing import List +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ActionsRepositoryPermissionsType(TypedDict): - """ActionsRepositoryPermissions""" +class ActionsCacheListType(TypedDict): + """Repository actions caches - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] - selected_actions_url: NotRequired[str] + Repository actions caches + """ + total_count: int + actions_caches: List[ActionsCacheListPropActionsCachesItemsType] -__all__ = ("ActionsRepositoryPermissionsType",) + +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__ = ( + "ActionsCacheListType", + "ActionsCacheListPropActionsCachesItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0163.py b/githubkit/versions/v2022_11_28/types/group_0163.py index 7678cad21..61cc52d83 100644 --- a/githubkit/versions/v2022_11_28/types/group_0163.py +++ b/githubkit/versions/v2022_11_28/types/group_0163.py @@ -9,14 +9,67 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -class ActionsWorkflowAccessToRepositoryType(TypedDict): - """ActionsWorkflowAccessToRepository""" +class JobType(TypedDict): + """Job - access_level: Literal["none", "user", "organization"] + Information of a job execution in a workflow run + """ + id: int + run_id: int + run_url: str + run_attempt: NotRequired[int] + node_id: str + head_sha: str + url: str + html_url: Union[str, None] + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] + created_at: datetime + started_at: datetime + completed_at: Union[datetime, None] + name: str + steps: NotRequired[List[JobPropStepsItemsType]] + check_run_url: str + labels: List[str] + runner_id: Union[int, None] + runner_name: Union[str, None] + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + workflow_name: Union[str, None] + head_branch: Union[str, None] -__all__ = ("ActionsWorkflowAccessToRepositoryType",) + +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__ = ( + "JobType", + "JobPropStepsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0164.py b/githubkit/versions/v2022_11_28/types/group_0164.py index 30c5bf1cd..e8df7b2a9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0164.py +++ b/githubkit/versions/v2022_11_28/types/group_0164.py @@ -9,55 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class PullRequestMinimalType(TypedDict): - """Pull Request Minimal""" +class OidcCustomSubRepoType(TypedDict): + """Actions OIDC subject customization for a repository - id: int - number: int - url: str - head: PullRequestMinimalPropHeadType - base: PullRequestMinimalPropBaseType + Actions OIDC subject customization for a repository + """ + use_default: bool + include_claim_keys: NotRequired[List[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__ = ( - "PullRequestMinimalType", - "PullRequestMinimalPropHeadType", - "PullRequestMinimalPropHeadPropRepoType", - "PullRequestMinimalPropBaseType", - "PullRequestMinimalPropBasePropRepoType", -) +__all__ = ("OidcCustomSubRepoType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0165.py b/githubkit/versions/v2022_11_28/types/group_0165.py index 78fc3d071..7d6ae5032 100644 --- a/githubkit/versions/v2022_11_28/types/group_0165.py +++ b/githubkit/versions/v2022_11_28/types/group_0165.py @@ -9,47 +9,19 @@ from __future__ import annotations -from typing import Union from datetime import datetime from typing_extensions import TypedDict -class SimpleCommitType(TypedDict): - """Simple Commit +class ActionsSecretType(TypedDict): + """Actions Secret - A commit. - """ - - id: str - tree_id: str - message: str - timestamp: datetime - author: Union[SimpleCommitPropAuthorType, None] - committer: Union[SimpleCommitPropCommitterType, None] - - -class SimpleCommitPropAuthorType(TypedDict): - """SimpleCommitPropAuthor - - Information about the Git author - """ - - name: str - email: str - - -class SimpleCommitPropCommitterType(TypedDict): - """SimpleCommitPropCommitter - - Information about the Git committer + Set secrets for GitHub Actions. """ name: str - email: str + created_at: datetime + updated_at: datetime -__all__ = ( - "SimpleCommitType", - "SimpleCommitPropAuthorType", - "SimpleCommitPropCommitterType", -) +__all__ = ("ActionsSecretType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0166.py b/githubkit/versions/v2022_11_28/types/group_0166.py index 1e7db88b1..eb13c7e2f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0166.py +++ b/githubkit/versions/v2022_11_28/types/group_0166.py @@ -10,71 +10,16 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType -from .group_0165 import SimpleCommitType -from .group_0051 import MinimalRepositoryType -from .group_0164 import PullRequestMinimalType +class ActionsVariableType(TypedDict): + """Actions Variable""" -class WorkflowRunType(TypedDict): - """Workflow Run - - An invocation of a workflow - """ - - id: int - name: NotRequired[Union[str, None]] - node_id: str - check_suite_id: NotRequired[int] - check_suite_node_id: NotRequired[str] - head_branch: Union[str, None] - head_sha: str - path: str - run_number: int - run_attempt: NotRequired[int] - referenced_workflows: NotRequired[Union[List[ReferencedWorkflowType], None]] - event: str - status: Union[str, None] - conclusion: Union[str, None] - workflow_id: int - url: str - html_url: str - pull_requests: Union[List[PullRequestMinimalType], None] + name: str + value: str created_at: datetime updated_at: datetime - actor: NotRequired[SimpleUserType] - triggering_actor: NotRequired[SimpleUserType] - run_started_at: NotRequired[datetime] - jobs_url: str - logs_url: str - check_suite_url: str - artifacts_url: str - cancel_url: str - rerun_url: str - previous_attempt_url: NotRequired[Union[str, None]] - workflow_url: str - head_commit: Union[None, SimpleCommitType] - repository: MinimalRepositoryType - head_repository: MinimalRepositoryType - head_repository_id: NotRequired[int] - display_title: str - - -class ReferencedWorkflowType(TypedDict): - """Referenced workflow - - A workflow referenced/reused by the initial caller workflow - """ - - path: str - sha: str - ref: NotRequired[str] -__all__ = ( - "WorkflowRunType", - "ReferencedWorkflowType", -) +__all__ = ("ActionsVariableType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0167.py b/githubkit/versions/v2022_11_28/types/group_0167.py index a96ab7d1f..e80d7d2e7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0167.py +++ b/githubkit/versions/v2022_11_28/types/group_0167.py @@ -9,38 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class ActionsRepositoryPermissionsType(TypedDict): + """ActionsRepositoryPermissions""" -class EnvironmentApprovalsType(TypedDict): - """Environment Approval + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + selected_actions_url: NotRequired[str] - An entry in the reviews log for environment deployments - """ - environments: List[EnvironmentApprovalsPropEnvironmentsItemsType] - state: Literal["approved", "rejected", "pending"] - user: SimpleUserType - comment: str - - -class EnvironmentApprovalsPropEnvironmentsItemsType(TypedDict): - """EnvironmentApprovalsPropEnvironmentsItems""" - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - - -__all__ = ( - "EnvironmentApprovalsType", - "EnvironmentApprovalsPropEnvironmentsItemsType", -) +__all__ = ("ActionsRepositoryPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0168.py b/githubkit/versions/v2022_11_28/types/group_0168.py index 909bb75c8..7678cad21 100644 --- a/githubkit/versions/v2022_11_28/types/group_0168.py +++ b/githubkit/versions/v2022_11_28/types/group_0168.py @@ -9,14 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReviewCustomGatesCommentRequiredType(TypedDict): - """ReviewCustomGatesCommentRequired""" +class ActionsWorkflowAccessToRepositoryType(TypedDict): + """ActionsWorkflowAccessToRepository""" - environment_name: str - comment: str + access_level: Literal["none", "user", "organization"] -__all__ = ("ReviewCustomGatesCommentRequiredType",) +__all__ = ("ActionsWorkflowAccessToRepositoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0169.py b/githubkit/versions/v2022_11_28/types/group_0169.py index 9ed90361d..30c5bf1cd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0169.py +++ b/githubkit/versions/v2022_11_28/types/group_0169.py @@ -9,16 +9,55 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReviewCustomGatesStateRequiredType(TypedDict): - """ReviewCustomGatesStateRequired""" +class PullRequestMinimalType(TypedDict): + """Pull Request Minimal""" - environment_name: str - state: Literal["approved", "rejected"] - comment: NotRequired[str] + id: int + number: int + url: str + head: PullRequestMinimalPropHeadType + base: PullRequestMinimalPropBaseType -__all__ = ("ReviewCustomGatesStateRequiredType",) +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__ = ( + "PullRequestMinimalType", + "PullRequestMinimalPropHeadType", + "PullRequestMinimalPropHeadPropRepoType", + "PullRequestMinimalPropBaseType", + "PullRequestMinimalPropBasePropRepoType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0170.py b/githubkit/versions/v2022_11_28/types/group_0170.py index 05628dcee..78fc3d071 100644 --- a/githubkit/versions/v2022_11_28/types/group_0170.py +++ b/githubkit/versions/v2022_11_28/types/group_0170.py @@ -9,46 +9,47 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0076 import TeamType -from .group_0001 import SimpleUserType +class SimpleCommitType(TypedDict): + """Simple Commit -class PendingDeploymentPropReviewersItemsType(TypedDict): - """PendingDeploymentPropReviewersItems""" + A commit. + """ - type: NotRequired[Literal["User", "Team"]] - reviewer: NotRequired[Union[SimpleUserType, TeamType]] + id: str + tree_id: str + message: str + timestamp: datetime + author: Union[SimpleCommitPropAuthorType, None] + committer: Union[SimpleCommitPropCommitterType, None] -class PendingDeploymentType(TypedDict): - """Pending Deployment +class SimpleCommitPropAuthorType(TypedDict): + """SimpleCommitPropAuthor - Details of a deployment that is waiting for protection rules to pass + Information about the Git author """ - environment: PendingDeploymentPropEnvironmentType - wait_timer: int - wait_timer_started_at: Union[datetime, None] - current_user_can_approve: bool - reviewers: List[PendingDeploymentPropReviewersItemsType] + name: str + email: str + +class SimpleCommitPropCommitterType(TypedDict): + """SimpleCommitPropCommitter -class PendingDeploymentPropEnvironmentType(TypedDict): - """PendingDeploymentPropEnvironment""" + Information about the Git committer + """ - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - url: NotRequired[str] - html_url: NotRequired[str] + name: str + email: str __all__ = ( - "PendingDeploymentPropReviewersItemsType", - "PendingDeploymentType", - "PendingDeploymentPropEnvironmentType", + "SimpleCommitType", + "SimpleCommitPropAuthorType", + "SimpleCommitPropCommitterType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0171.py b/githubkit/versions/v2022_11_28/types/group_0171.py index bf367cf5c..926bfad3b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0171.py +++ b/githubkit/versions/v2022_11_28/types/group_0171.py @@ -9,45 +9,72 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +from .group_0170 import SimpleCommitType +from .group_0055 import MinimalRepositoryType +from .group_0169 import PullRequestMinimalType -class DeploymentType(TypedDict): - """Deployment +class WorkflowRunType(TypedDict): + """Workflow Run - A request for a specific ref(branch,sha,tag) to be deployed + An invocation of a workflow """ - url: str id: int + name: NotRequired[Union[str, None]] 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] + 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 - statuses_url: str - repository_url: str - transient_environment: NotRequired[bool] - production_environment: NotRequired[bool] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + 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 -class DeploymentPropPayloadOneof0Type(TypedDict): - """DeploymentPropPayloadOneof0""" + A workflow referenced/reused by the initial caller workflow + """ + + path: str + sha: str + ref: NotRequired[str] __all__ = ( - "DeploymentType", - "DeploymentPropPayloadOneof0Type", + "WorkflowRunType", + "ReferencedWorkflowType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0172.py b/githubkit/versions/v2022_11_28/types/group_0172.py index 6e05dc2ea..a96ab7d1f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0172.py +++ b/githubkit/versions/v2022_11_28/types/group_0172.py @@ -9,86 +9,38 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class WorkflowRunUsageType(TypedDict): - """Workflow Run Usage - Workflow Run Usage - """ - - billable: WorkflowRunUsagePropBillableType - run_duration_ms: NotRequired[int] - - -class WorkflowRunUsagePropBillableType(TypedDict): - """WorkflowRunUsagePropBillable""" - - ubuntu: NotRequired[WorkflowRunUsagePropBillablePropUbuntuType] - macos: NotRequired[WorkflowRunUsagePropBillablePropMacosType] - windows: NotRequired[WorkflowRunUsagePropBillablePropWindowsType] - - -class WorkflowRunUsagePropBillablePropUbuntuType(TypedDict): - """WorkflowRunUsagePropBillablePropUbuntu""" - - total_ms: int - jobs: int - job_runs: NotRequired[ - List[WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType] - ] - - -class WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItems""" +class EnvironmentApprovalsType(TypedDict): + """Environment Approval - 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""" + An entry in the reviews log for environment deployments + """ - total_ms: int - jobs: int - job_runs: NotRequired[ - List[WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType] - ] + environments: List[EnvironmentApprovalsPropEnvironmentsItemsType] + state: Literal["approved", "rejected", "pending"] + user: SimpleUserType + comment: str -class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType(TypedDict): - """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" +class EnvironmentApprovalsPropEnvironmentsItemsType(TypedDict): + """EnvironmentApprovalsPropEnvironmentsItems""" - job_id: int - duration_ms: int + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] __all__ = ( - "WorkflowRunUsageType", - "WorkflowRunUsagePropBillableType", - "WorkflowRunUsagePropBillablePropUbuntuType", - "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropMacosType", - "WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType", - "WorkflowRunUsagePropBillablePropWindowsType", - "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", + "EnvironmentApprovalsType", + "EnvironmentApprovalsPropEnvironmentsItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0173.py b/githubkit/versions/v2022_11_28/types/group_0173.py index 7a79353a1..909bb75c8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0173.py +++ b/githubkit/versions/v2022_11_28/types/group_0173.py @@ -9,48 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class WorkflowUsageType(TypedDict): - """Workflow Usage +class ReviewCustomGatesCommentRequiredType(TypedDict): + """ReviewCustomGatesCommentRequired""" - Workflow Usage - """ + environment_name: str + comment: str - billable: WorkflowUsagePropBillableType - -class WorkflowUsagePropBillableType(TypedDict): - """WorkflowUsagePropBillable""" - - ubuntu: NotRequired[WorkflowUsagePropBillablePropUbuntuType] - macos: NotRequired[WorkflowUsagePropBillablePropMacosType] - windows: NotRequired[WorkflowUsagePropBillablePropWindowsType] - - -class WorkflowUsagePropBillablePropUbuntuType(TypedDict): - """WorkflowUsagePropBillablePropUbuntu""" - - total_ms: NotRequired[int] - - -class WorkflowUsagePropBillablePropMacosType(TypedDict): - """WorkflowUsagePropBillablePropMacos""" - - total_ms: NotRequired[int] - - -class WorkflowUsagePropBillablePropWindowsType(TypedDict): - """WorkflowUsagePropBillablePropWindows""" - - total_ms: NotRequired[int] - - -__all__ = ( - "WorkflowUsageType", - "WorkflowUsagePropBillableType", - "WorkflowUsagePropBillablePropUbuntuType", - "WorkflowUsagePropBillablePropMacosType", - "WorkflowUsagePropBillablePropWindowsType", -) +__all__ = ("ReviewCustomGatesCommentRequiredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0174.py b/githubkit/versions/v2022_11_28/types/group_0174.py index 10dea8dbf..9ed90361d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0174.py +++ b/githubkit/versions/v2022_11_28/types/group_0174.py @@ -9,34 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class ReviewCustomGatesStateRequiredType(TypedDict): + """ReviewCustomGatesStateRequired""" -class ActivityType(TypedDict): - """Activity + environment_name: str + state: Literal["approved", "rejected"] + comment: NotRequired[str] - Activity - """ - id: int - node_id: str - before: str - after: str - ref: str - timestamp: datetime - activity_type: Literal[ - "push", - "force_push", - "branch_deletion", - "branch_creation", - "pr_merge", - "merge_queue_merge", - ] - actor: Union[None, SimpleUserType] - - -__all__ = ("ActivityType",) +__all__ = ("ReviewCustomGatesStateRequiredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0175.py b/githubkit/versions/v2022_11_28/types/group_0175.py index 8b6890539..0fbd5ba26 100644 --- a/githubkit/versions/v2022_11_28/types/group_0175.py +++ b/githubkit/versions/v2022_11_28/types/group_0175.py @@ -9,19 +9,46 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0026 import TeamType +from .group_0001 import SimpleUserType -class AutolinkType(TypedDict): - """Autolink reference - An autolink reference. +class PendingDeploymentPropReviewersItemsType(TypedDict): + """PendingDeploymentPropReviewersItems""" + + type: NotRequired[Literal["User", "Team"]] + reviewer: NotRequired[Union[SimpleUserType, TeamType]] + + +class PendingDeploymentType(TypedDict): + """Pending Deployment + + Details of a deployment that is waiting for protection rules to pass """ - id: int - key_prefix: str - url_template: str - is_alphanumeric: bool + environment: PendingDeploymentPropEnvironmentType + wait_timer: int + wait_timer_started_at: Union[datetime, None] + current_user_can_approve: bool + reviewers: List[PendingDeploymentPropReviewersItemsType] + + +class PendingDeploymentPropEnvironmentType(TypedDict): + """PendingDeploymentPropEnvironment""" + + id: NotRequired[int] + node_id: NotRequired[str] + name: NotRequired[str] + url: NotRequired[str] + html_url: NotRequired[str] -__all__ = ("AutolinkType",) +__all__ = ( + "PendingDeploymentPropReviewersItemsType", + "PendingDeploymentType", + "PendingDeploymentPropEnvironmentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0176.py b/githubkit/versions/v2022_11_28/types/group_0176.py index 4ef048314..bf367cf5c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0176.py +++ b/githubkit/versions/v2022_11_28/types/group_0176.py @@ -9,17 +9,45 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from datetime import datetime +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType -class CheckAutomatedSecurityFixesType(TypedDict): - """Check Automated Security Fixes - Check Automated Security Fixes - """ - - enabled: bool - paused: bool +class DeploymentType(TypedDict): + """Deployment + A request for a specific ref(branch,sha,tag) to be deployed + """ -__all__ = ("CheckAutomatedSecurityFixesType",) + 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]] + + +class DeploymentPropPayloadOneof0Type(TypedDict): + """DeploymentPropPayloadOneof0""" + + +__all__ = ( + "DeploymentType", + "DeploymentPropPayloadOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0177.py b/githubkit/versions/v2022_11_28/types/group_0177.py index a0a05f2ec..6e05dc2ea 100644 --- a/githubkit/versions/v2022_11_28/types/group_0177.py +++ b/githubkit/versions/v2022_11_28/types/group_0177.py @@ -9,31 +9,86 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0178 import ( - ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, -) - -class ProtectedBranchPullRequestReviewType(TypedDict): - """Protected Branch Pull Request Review +class WorkflowRunUsageType(TypedDict): + """Workflow Run Usage - Protected Branch Pull Request Review + Workflow Run Usage """ - url: NotRequired[str] - dismissal_restrictions: NotRequired[ - ProtectedBranchPullRequestReviewPropDismissalRestrictionsType + 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] ] - bypass_pull_request_allowances: NotRequired[ - ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType + + +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] ] - dismiss_stale_reviews: bool - require_code_owner_reviews: bool - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] -__all__ = ("ProtectedBranchPullRequestReviewType",) +class WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType(TypedDict): + """WorkflowRunUsagePropBillablePropWindowsPropJobRunsItems""" + + job_id: int + duration_ms: int + + +__all__ = ( + "WorkflowRunUsageType", + "WorkflowRunUsagePropBillableType", + "WorkflowRunUsagePropBillablePropUbuntuType", + "WorkflowRunUsagePropBillablePropUbuntuPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropMacosType", + "WorkflowRunUsagePropBillablePropMacosPropJobRunsItemsType", + "WorkflowRunUsagePropBillablePropWindowsType", + "WorkflowRunUsagePropBillablePropWindowsPropJobRunsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0178.py b/githubkit/versions/v2022_11_28/types/group_0178.py index 8dc0229d6..7a79353a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0178.py +++ b/githubkit/versions/v2022_11_28/types/group_0178.py @@ -9,37 +9,48 @@ from __future__ import annotations -from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0076 import TeamType -from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +class WorkflowUsageType(TypedDict): + """Workflow Usage -class ProtectedBranchPullRequestReviewPropDismissalRestrictionsType(TypedDict): - """ProtectedBranchPullRequestReviewPropDismissalRestrictions""" + Workflow Usage + """ - users: NotRequired[List[SimpleUserType]] - teams: NotRequired[List[TeamType]] - apps: NotRequired[List[Union[IntegrationType, None]]] - url: NotRequired[str] - users_url: NotRequired[str] - teams_url: NotRequired[str] + billable: WorkflowUsagePropBillableType -class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType(TypedDict): - """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances +class WorkflowUsagePropBillableType(TypedDict): + """WorkflowUsagePropBillable""" - Allow specific users, teams, or apps to bypass pull request requirements. - """ + 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""" - users: NotRequired[List[SimpleUserType]] - teams: NotRequired[List[TeamType]] - apps: NotRequired[List[Union[IntegrationType, None]]] + total_ms: NotRequired[int] __all__ = ( - "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", - "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", + "WorkflowUsageType", + "WorkflowUsagePropBillableType", + "WorkflowUsagePropBillablePropUbuntuType", + "WorkflowUsagePropBillablePropMacosType", + "WorkflowUsagePropBillablePropWindowsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0179.py b/githubkit/versions/v2022_11_28/types/group_0179.py index 0c14fcfe8..10dea8dbf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0179.py +++ b/githubkit/versions/v2022_11_28/types/group_0179.py @@ -9,125 +9,34 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict +from .group_0001 import SimpleUserType -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] - - -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 ActivityType(TypedDict): + """Activity -class BranchRestrictionPolicyPropAppsItemsType(TypedDict): - """BranchRestrictionPolicyPropAppsItems""" - - id: NotRequired[int] - slug: NotRequired[str] - node_id: NotRequired[str] - owner: NotRequired[BranchRestrictionPolicyPropAppsItemsPropOwnerType] - name: 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] - - -class BranchRestrictionPolicyPropAppsItemsPropPermissionsType(TypedDict): - """BranchRestrictionPolicyPropAppsItemsPropPermissions""" - - metadata: NotRequired[str] - contents: NotRequired[str] - issues: NotRequired[str] - single_file: NotRequired[str] - + Activity + """ -__all__ = ( - "BranchRestrictionPolicyType", - "BranchRestrictionPolicyPropUsersItemsType", - "BranchRestrictionPolicyPropTeamsItemsType", - "BranchRestrictionPolicyPropAppsItemsType", - "BranchRestrictionPolicyPropAppsItemsPropOwnerType", - "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", -) + 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_0180.py b/githubkit/versions/v2022_11_28/types/group_0180.py index df358d55c..8b6890539 100644 --- a/githubkit/versions/v2022_11_28/types/group_0180.py +++ b/githubkit/versions/v2022_11_28/types/group_0180.py @@ -9,138 +9,19 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0179 import BranchRestrictionPolicyType -from .group_0177 import ProtectedBranchPullRequestReviewType +class AutolinkType(TypedDict): + """Autolink reference -class BranchProtectionType(TypedDict): - """Branch Protection - - Branch Protection - """ - - url: NotRequired[str] - enabled: NotRequired[bool] - required_status_checks: NotRequired[ProtectedBranchRequiredStatusCheckType] - enforce_admins: NotRequired[ProtectedBranchAdminEnforcedType] - required_pull_request_reviews: NotRequired[ProtectedBranchPullRequestReviewType] - restrictions: NotRequired[BranchRestrictionPolicyType] - required_linear_history: NotRequired[BranchProtectionPropRequiredLinearHistoryType] - allow_force_pushes: NotRequired[BranchProtectionPropAllowForcePushesType] - allow_deletions: NotRequired[BranchProtectionPropAllowDeletionsType] - block_creations: NotRequired[BranchProtectionPropBlockCreationsType] - required_conversation_resolution: NotRequired[ - BranchProtectionPropRequiredConversationResolutionType - ] - name: NotRequired[str] - protection_url: NotRequired[str] - required_signatures: NotRequired[BranchProtectionPropRequiredSignaturesType] - lock_branch: NotRequired[BranchProtectionPropLockBranchType] - allow_fork_syncing: NotRequired[BranchProtectionPropAllowForkSyncingType] - - -class ProtectedBranchAdminEnforcedType(TypedDict): - """Protected Branch Admin Enforced - - Protected Branch Admin Enforced - """ - - url: str - 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. + An autolink reference. """ - 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] + id: int + key_prefix: str + url_template: str + is_alphanumeric: bool -__all__ = ( - "BranchProtectionType", - "ProtectedBranchAdminEnforcedType", - "BranchProtectionPropRequiredLinearHistoryType", - "BranchProtectionPropAllowForcePushesType", - "BranchProtectionPropAllowDeletionsType", - "BranchProtectionPropBlockCreationsType", - "BranchProtectionPropRequiredConversationResolutionType", - "BranchProtectionPropRequiredSignaturesType", - "BranchProtectionPropLockBranchType", - "BranchProtectionPropAllowForkSyncingType", - "ProtectedBranchRequiredStatusCheckType", - "ProtectedBranchRequiredStatusCheckPropChecksItemsType", -) +__all__ = ("AutolinkType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0181.py b/githubkit/versions/v2022_11_28/types/group_0181.py index ef3b3a6dc..4ef048314 100644 --- a/githubkit/versions/v2022_11_28/types/group_0181.py +++ b/githubkit/versions/v2022_11_28/types/group_0181.py @@ -9,32 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0180 import BranchProtectionType +class CheckAutomatedSecurityFixesType(TypedDict): + """Check Automated Security Fixes -class ShortBranchType(TypedDict): - """Short Branch - - Short Branch + Check Automated Security Fixes """ - name: str - commit: ShortBranchPropCommitType - protected: bool - protection: NotRequired[BranchProtectionType] - protection_url: NotRequired[str] - - -class ShortBranchPropCommitType(TypedDict): - """ShortBranchPropCommit""" - - sha: str - url: str + enabled: bool + paused: bool -__all__ = ( - "ShortBranchType", - "ShortBranchPropCommitType", -) +__all__ = ("CheckAutomatedSecurityFixesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0182.py b/githubkit/versions/v2022_11_28/types/group_0182.py index 6b7e4ad5c..597b6130d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0182.py +++ b/githubkit/versions/v2022_11_28/types/group_0182.py @@ -11,16 +11,29 @@ from typing_extensions import TypedDict, NotRequired +from .group_0183 import ( + ProtectedBranchPullRequestReviewPropDismissalRestrictionsType, + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType, +) -class GitUserType(TypedDict): - """Git User - Metaproperties for Git author/committer information. +class ProtectedBranchPullRequestReviewType(TypedDict): + """Protected Branch Pull Request Review + + Protected Branch Pull Request Review """ - name: NotRequired[str] - email: NotRequired[str] - date: NotRequired[str] + url: NotRequired[str] + dismissal_restrictions: NotRequired[ + ProtectedBranchPullRequestReviewPropDismissalRestrictionsType + ] + bypass_pull_request_allowances: NotRequired[ + ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType + ] + dismiss_stale_reviews: bool + require_code_owner_reviews: bool + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] -__all__ = ("GitUserType",) +__all__ = ("ProtectedBranchPullRequestReviewType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0183.py b/githubkit/versions/v2022_11_28/types/group_0183.py index 7f8f1aebd..0385d5ba8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0183.py +++ b/githubkit/versions/v2022_11_28/types/group_0183.py @@ -9,17 +9,37 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired +from .group_0026 import TeamType +from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType -class VerificationType(TypedDict): - """Verification""" - verified: bool - reason: str - payload: Union[str, None] - signature: Union[str, None] +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] -__all__ = ("VerificationType",) + +class ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType(TypedDict): + """ProtectedBranchPullRequestReviewPropBypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: NotRequired[List[SimpleUserType]] + teams: NotRequired[List[TeamType]] + apps: NotRequired[List[Union[IntegrationType, None]]] + + +__all__ = ( + "ProtectedBranchPullRequestReviewPropDismissalRestrictionsType", + "ProtectedBranchPullRequestReviewPropBypassPullRequestAllowancesType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0184.py b/githubkit/versions/v2022_11_28/types/group_0184.py index ce7374427..0c14fcfe8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0184.py +++ b/githubkit/versions/v2022_11_28/types/group_0184.py @@ -9,29 +9,125 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -class DiffEntryType(TypedDict): - """Diff Entry +class BranchRestrictionPolicyType(TypedDict): + """Branch Restriction Policy - Diff Entry + Branch Restriction Policy """ - sha: str - filename: str - status: Literal[ - "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" - ] - additions: int - deletions: int - changes: int - blob_url: str - raw_url: str - contents_url: str - patch: NotRequired[str] - previous_filename: NotRequired[str] - - -__all__ = ("DiffEntryType",) + 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] + + +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] + 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] + + +class BranchRestrictionPolicyPropAppsItemsPropPermissionsType(TypedDict): + """BranchRestrictionPolicyPropAppsItemsPropPermissions""" + + metadata: NotRequired[str] + contents: NotRequired[str] + issues: NotRequired[str] + single_file: NotRequired[str] + + +__all__ = ( + "BranchRestrictionPolicyType", + "BranchRestrictionPolicyPropUsersItemsType", + "BranchRestrictionPolicyPropTeamsItemsType", + "BranchRestrictionPolicyPropAppsItemsType", + "BranchRestrictionPolicyPropAppsItemsPropOwnerType", + "BranchRestrictionPolicyPropAppsItemsPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0185.py b/githubkit/versions/v2022_11_28/types/group_0185.py index 01362104a..ab8f9a467 100644 --- a/githubkit/versions/v2022_11_28/types/group_0185.py +++ b/githubkit/versions/v2022_11_28/types/group_0185.py @@ -12,48 +12,135 @@ from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0184 import DiffEntryType -from .group_0001 import SimpleUserType -from .group_0186 import CommitPropCommitType +from .group_0184 import BranchRestrictionPolicyType +from .group_0182 import ProtectedBranchPullRequestReviewType -class CommitType(TypedDict): - """Commit +class BranchProtectionType(TypedDict): + """Branch Protection - Commit + Branch Protection + """ + + url: NotRequired[str] + enabled: NotRequired[bool] + required_status_checks: NotRequired[ProtectedBranchRequiredStatusCheckType] + enforce_admins: NotRequired[ProtectedBranchAdminEnforcedType] + required_pull_request_reviews: NotRequired[ProtectedBranchPullRequestReviewType] + restrictions: NotRequired[BranchRestrictionPolicyType] + required_linear_history: NotRequired[BranchProtectionPropRequiredLinearHistoryType] + allow_force_pushes: NotRequired[BranchProtectionPropAllowForcePushesType] + allow_deletions: NotRequired[BranchProtectionPropAllowDeletionsType] + block_creations: NotRequired[BranchProtectionPropBlockCreationsType] + required_conversation_resolution: NotRequired[ + BranchProtectionPropRequiredConversationResolutionType + ] + name: NotRequired[str] + protection_url: NotRequired[str] + required_signatures: NotRequired[BranchProtectionPropRequiredSignaturesType] + lock_branch: NotRequired[BranchProtectionPropLockBranchType] + allow_fork_syncing: NotRequired[BranchProtectionPropAllowForkSyncingType] + + +class ProtectedBranchAdminEnforcedType(TypedDict): + """Protected Branch Admin Enforced + + Protected Branch Admin Enforced """ url: str - sha: str - node_id: str - html_url: str - comments_url: str - commit: CommitPropCommitType - author: Union[None, SimpleUserType] - committer: Union[None, SimpleUserType] - parents: List[CommitPropParentsItemsType] - stats: NotRequired[CommitPropStatsType] - files: NotRequired[List[DiffEntryType]] - - -class CommitPropParentsItemsType(TypedDict): - """CommitPropParentsItems""" - - sha: 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 - html_url: NotRequired[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 CommitPropStatsType(TypedDict): - """CommitPropStats""" +class ProtectedBranchRequiredStatusCheckPropChecksItemsType(TypedDict): + """ProtectedBranchRequiredStatusCheckPropChecksItems""" - additions: NotRequired[int] - deletions: NotRequired[int] - total: NotRequired[int] + context: str + app_id: Union[int, None] __all__ = ( - "CommitType", - "CommitPropParentsItemsType", - "CommitPropStatsType", + "BranchProtectionType", + "ProtectedBranchAdminEnforcedType", + "BranchProtectionPropRequiredLinearHistoryType", + "BranchProtectionPropAllowForcePushesType", + "BranchProtectionPropAllowDeletionsType", + "BranchProtectionPropBlockCreationsType", + "BranchProtectionPropRequiredConversationResolutionType", + "BranchProtectionPropRequiredSignaturesType", + "BranchProtectionPropLockBranchType", + "BranchProtectionPropAllowForkSyncingType", + "ProtectedBranchRequiredStatusCheckType", + "ProtectedBranchRequiredStatusCheckPropChecksItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0186.py b/githubkit/versions/v2022_11_28/types/group_0186.py index 6da271674..5fdc6bfa8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0186.py +++ b/githubkit/versions/v2022_11_28/types/group_0186.py @@ -9,33 +9,32 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0182 import GitUserType -from .group_0183 import VerificationType +from .group_0185 import BranchProtectionType -class CommitPropCommitType(TypedDict): - """CommitPropCommit""" +class ShortBranchType(TypedDict): + """Short Branch - url: str - author: Union[None, GitUserType] - committer: Union[None, GitUserType] - message: str - comment_count: int - tree: CommitPropCommitPropTreeType - verification: NotRequired[VerificationType] + Short Branch + """ + + name: str + commit: ShortBranchPropCommitType + protected: bool + protection: NotRequired[BranchProtectionType] + protection_url: NotRequired[str] -class CommitPropCommitPropTreeType(TypedDict): - """CommitPropCommitPropTree""" +class ShortBranchPropCommitType(TypedDict): + """ShortBranchPropCommit""" sha: str url: str __all__ = ( - "CommitPropCommitType", - "CommitPropCommitPropTreeType", + "ShortBranchType", + "ShortBranchPropCommitType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0187.py b/githubkit/versions/v2022_11_28/types/group_0187.py index 1c4ed7b8b..6b7e4ad5c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0187.py +++ b/githubkit/versions/v2022_11_28/types/group_0187.py @@ -11,34 +11,16 @@ from typing_extensions import TypedDict, NotRequired -from .group_0185 import CommitType -from .group_0180 import BranchProtectionType +class GitUserType(TypedDict): + """Git User -class BranchWithProtectionType(TypedDict): - """Branch With Protection - - Branch With Protection + Metaproperties for Git author/committer information. """ - name: str - commit: CommitType - links: BranchWithProtectionPropLinksType - protected: bool - protection: BranchProtectionType - protection_url: str - pattern: NotRequired[str] - required_approving_review_count: NotRequired[int] - - -class BranchWithProtectionPropLinksType(TypedDict): - """BranchWithProtectionPropLinks""" - - html: str - self_: str + name: NotRequired[str] + email: NotRequired[str] + date: NotRequired[str] -__all__ = ( - "BranchWithProtectionType", - "BranchWithProtectionPropLinksType", -) +__all__ = ("GitUserType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0188.py b/githubkit/versions/v2022_11_28/types/group_0188.py index 1413754f5..7f8f1aebd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0188.py +++ b/githubkit/versions/v2022_11_28/types/group_0188.py @@ -9,133 +9,17 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0179 import BranchRestrictionPolicyType -from .group_0189 import ProtectedBranchPropRequiredPullRequestReviewsType +class VerificationType(TypedDict): + """Verification""" -class ProtectedBranchType(TypedDict): - """Protected Branch + verified: bool + reason: str + payload: Union[str, None] + signature: Union[str, None] - 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 - strict: bool - contexts: List[str] - checks: List[StatusCheckPolicyPropChecksItemsType] - contexts_url: str - - -class StatusCheckPolicyPropChecksItemsType(TypedDict): - """StatusCheckPolicyPropChecksItems""" - - context: str - app_id: Union[int, None] - - -__all__ = ( - "ProtectedBranchType", - "ProtectedBranchPropRequiredSignaturesType", - "ProtectedBranchPropEnforceAdminsType", - "ProtectedBranchPropRequiredLinearHistoryType", - "ProtectedBranchPropAllowForcePushesType", - "ProtectedBranchPropAllowDeletionsType", - "ProtectedBranchPropRequiredConversationResolutionType", - "ProtectedBranchPropBlockCreationsType", - "ProtectedBranchPropLockBranchType", - "ProtectedBranchPropAllowForkSyncingType", - "StatusCheckPolicyType", - "StatusCheckPolicyPropChecksItemsType", -) +__all__ = ("VerificationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0189.py b/githubkit/versions/v2022_11_28/types/group_0189.py index bbdc6f7df..ce7374427 100644 --- a/githubkit/versions/v2022_11_28/types/group_0189.py +++ b/githubkit/versions/v2022_11_28/types/group_0189.py @@ -9,28 +9,29 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0190 import ( - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, -) +class DiffEntryType(TypedDict): + """Diff Entry -class ProtectedBranchPropRequiredPullRequestReviewsType(TypedDict): - """ProtectedBranchPropRequiredPullRequestReviews""" + Diff Entry + """ - url: str - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - dismissal_restrictions: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType - ] - bypass_pull_request_allowances: NotRequired[ - ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType + sha: str + filename: str + status: Literal[ + "added", "removed", "modified", "renamed", "copied", "changed", "unchanged" ] + additions: int + deletions: int + changes: int + blob_url: str + raw_url: str + contents_url: str + patch: NotRequired[str] + previous_filename: NotRequired[str] -__all__ = ("ProtectedBranchPropRequiredPullRequestReviewsType",) +__all__ = ("DiffEntryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0190.py b/githubkit/versions/v2022_11_28/types/group_0190.py index a3aedfaf6..3118578e5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0190.py +++ b/githubkit/versions/v2022_11_28/types/group_0190.py @@ -12,35 +12,56 @@ from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0076 import TeamType +from .group_0189 import DiffEntryType from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +from .group_0191 import CommitPropCommitType -class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType( - TypedDict -): - """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" +class CommitType(TypedDict): + """Commit + 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 - users_url: str - teams_url: str - users: List[SimpleUserType] - teams: List[TeamType] - apps: NotRequired[List[Union[IntegrationType, None]]] + html_url: NotRequired[str] -class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( - TypedDict -): - """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" +class CommitPropStatsType(TypedDict): + """CommitPropStats""" - users: List[SimpleUserType] - teams: List[TeamType] - apps: NotRequired[List[Union[IntegrationType, None]]] + additions: NotRequired[int] + deletions: NotRequired[int] + total: NotRequired[int] __all__ = ( - "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", - "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", + "CommitType", + "EmptyObjectType", + "CommitPropParentsItemsType", + "CommitPropStatsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0191.py b/githubkit/versions/v2022_11_28/types/group_0191.py index 18c914e32..4ef4ca883 100644 --- a/githubkit/versions/v2022_11_28/types/group_0191.py +++ b/githubkit/versions/v2022_11_28/types/group_0191.py @@ -10,33 +10,32 @@ from __future__ import annotations from typing import Union -from datetime import datetime from typing_extensions import TypedDict, NotRequired -from .group_0006 import IntegrationType +from .group_0187 import GitUserType +from .group_0188 import VerificationType -class DeploymentSimpleType(TypedDict): - """Deployment +class CommitPropCommitType(TypedDict): + """CommitPropCommit""" - A deployment created as the result of an Actions check run from a workflow that - references an environment - """ + url: str + author: Union[None, GitUserType] + committer: Union[None, GitUserType] + message: str + comment_count: int + tree: CommitPropCommitPropTreeType + verification: NotRequired[VerificationType] + + +class CommitPropCommitPropTreeType(TypedDict): + """CommitPropCommitPropTree""" + sha: str 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",) + + +__all__ = ( + "CommitPropCommitType", + "CommitPropCommitPropTreeType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0192.py b/githubkit/versions/v2022_11_28/types/group_0192.py index 4d6d8c877..4c3e91a22 100644 --- a/githubkit/versions/v2022_11_28/types/group_0192.py +++ b/githubkit/versions/v2022_11_28/types/group_0192.py @@ -9,71 +9,36 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0006 import IntegrationType -from .group_0191 import DeploymentSimpleType -from .group_0164 import PullRequestMinimalType +from .group_0190 import CommitType +from .group_0185 import BranchProtectionType -class CheckRunType(TypedDict): - """CheckRun +class BranchWithProtectionType(TypedDict): + """Branch With Protection - A check performed on the code of a given code change + Branch With Protection """ - 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] + commit: CommitType + links: BranchWithProtectionPropLinksType + protected: bool + protection: BranchProtectionType + protection_url: str + pattern: NotRequired[str] + required_approving_review_count: NotRequired[int] -class CheckRunPropOutputType(TypedDict): - """CheckRunPropOutput""" +class BranchWithProtectionPropLinksType(TypedDict): + """BranchWithProtectionPropLinks""" - title: Union[str, None] - summary: Union[str, None] - text: Union[str, None] - annotations_count: int - annotations_url: str - - -class CheckRunPropCheckSuiteType(TypedDict): - """CheckRunPropCheckSuite""" - - id: int + html: str + self_: str __all__ = ( - "CheckRunType", - "CheckRunPropOutputType", - "CheckRunPropCheckSuiteType", + "BranchWithProtectionType", + "BranchWithProtectionPropLinksType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0193.py b/githubkit/versions/v2022_11_28/types/group_0193.py index 82fbb570d..099ed23f4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0193.py +++ b/githubkit/versions/v2022_11_28/types/group_0193.py @@ -9,26 +9,133 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired +from .group_0184 import BranchRestrictionPolicyType +from .group_0194 import ProtectedBranchPropRequiredPullRequestReviewsType -class CheckAnnotationType(TypedDict): - """Check Annotation - Check Annotation +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 """ - path: str - start_line: int - end_line: int - start_column: Union[int, None] - end_column: Union[int, None] - annotation_level: Union[str, None] - title: Union[str, None] - message: Union[str, None] - raw_details: Union[str, None] - blob_href: str + url: str + strict: bool + contexts: List[str] + checks: List[StatusCheckPolicyPropChecksItemsType] + contexts_url: str + + +class StatusCheckPolicyPropChecksItemsType(TypedDict): + """StatusCheckPolicyPropChecksItems""" + + context: str + app_id: Union[int, None] -__all__ = ("CheckAnnotationType",) +__all__ = ( + "ProtectedBranchType", + "ProtectedBranchPropRequiredSignaturesType", + "ProtectedBranchPropEnforceAdminsType", + "ProtectedBranchPropRequiredLinearHistoryType", + "ProtectedBranchPropAllowForcePushesType", + "ProtectedBranchPropAllowDeletionsType", + "ProtectedBranchPropRequiredConversationResolutionType", + "ProtectedBranchPropBlockCreationsType", + "ProtectedBranchPropLockBranchType", + "ProtectedBranchPropAllowForkSyncingType", + "StatusCheckPolicyType", + "StatusCheckPolicyPropChecksItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0194.py b/githubkit/versions/v2022_11_28/types/group_0194.py index d12369e3c..0bc499e5e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0194.py +++ b/githubkit/versions/v2022_11_28/types/group_0194.py @@ -9,69 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0006 import IntegrationType -from .group_0165 import SimpleCommitType -from .group_0051 import MinimalRepositoryType -from .group_0164 import PullRequestMinimalType - +from .group_0195 import ( + ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType, + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType, +) -class CheckSuiteType(TypedDict): - """CheckSuite - A suite of checks performed on the code of a given code change - """ +class ProtectedBranchPropRequiredPullRequestReviewsType(TypedDict): + """ProtectedBranchPropRequiredPullRequestReviews""" - id: int - node_id: str - head_branch: Union[str, None] - head_sha: str - status: Union[ - None, - Literal[ - "queued", "in_progress", "completed", "waiting", "requested", "pending" - ], + url: str + 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 ] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "startup_failure", - "stale", - ], + bypass_pull_request_allowances: NotRequired[ + ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType ] - url: Union[str, None] - before: Union[str, None] - after: Union[str, None] - pull_requests: Union[List[PullRequestMinimalType], None] - app: Union[None, IntegrationType, None] - repository: MinimalRepositoryType - created_at: Union[datetime, None] - updated_at: Union[datetime, None] - head_commit: SimpleCommitType - latest_check_runs_count: int - check_runs_url: str - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - -class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" - total_count: int - check_suites: List[CheckSuiteType] - - -__all__ = ( - "CheckSuiteType", - "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", -) +__all__ = ("ProtectedBranchPropRequiredPullRequestReviewsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0195.py b/githubkit/versions/v2022_11_28/types/group_0195.py index d77357dda..1f532c68c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0195.py +++ b/githubkit/versions/v2022_11_28/types/group_0195.py @@ -9,39 +9,38 @@ from __future__ import annotations -from typing import List +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0051 import MinimalRepositoryType +from .group_0026 import TeamType +from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType -class CheckSuitePreferenceType(TypedDict): - """Check Suite Preference +class ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType( + TypedDict +): + """ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictions""" - Check suite configuration preferences for a repository. - """ + url: str + users_url: str + teams_url: str + users: List[SimpleUserType] + teams: List[TeamType] + apps: NotRequired[List[Union[IntegrationType, None]]] - preferences: CheckSuitePreferencePropPreferencesType - repository: MinimalRepositoryType +class ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( + TypedDict +): + """ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowances""" -class CheckSuitePreferencePropPreferencesType(TypedDict): - """CheckSuitePreferencePropPreferences""" - - auto_trigger_checks: NotRequired[ - List[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType] - ] - - -class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType(TypedDict): - """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" - - app_id: int - setting: bool + users: List[SimpleUserType] + teams: List[TeamType] + apps: NotRequired[List[Union[IntegrationType, None]]] __all__ = ( - "CheckSuitePreferenceType", - "CheckSuitePreferencePropPreferencesType", - "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", + "ProtectedBranchPropRequiredPullRequestReviewsPropDismissalRestrictionsType", + "ProtectedBranchPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0196.py b/githubkit/versions/v2022_11_28/types/group_0196.py index 328cd983c..18c914e32 100644 --- a/githubkit/versions/v2022_11_28/types/group_0196.py +++ b/githubkit/versions/v2022_11_28/types/group_0196.py @@ -9,36 +9,34 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0068 import CodeScanningAnalysisToolType -from .group_0069 import CodeScanningAlertInstanceType -from .group_0067 import CodeScanningAlertRuleSummaryType +from .group_0006 import IntegrationType -class CodeScanningAlertItemsType(TypedDict): - """CodeScanningAlertItems""" +class DeploymentSimpleType(TypedDict): + """Deployment + + A deployment created as the result of an Actions check run from a workflow that + references an environment + """ - number: int - created_at: datetime - updated_at: NotRequired[datetime] url: str - html_url: str - instances_url: str - state: Literal["open", "dismissed", "fixed"] - fixed_at: NotRequired[Union[datetime, None]] - dismissed_by: Union[None, SimpleUserType] - dismissed_at: Union[datetime, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleSummaryType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType - - -__all__ = ("CodeScanningAlertItemsType",) + 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_0197.py b/githubkit/versions/v2022_11_28/types/group_0197.py index edf527de6..dc57dc861 100644 --- a/githubkit/versions/v2022_11_28/types/group_0197.py +++ b/githubkit/versions/v2022_11_28/types/group_0197.py @@ -13,50 +13,67 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0068 import CodeScanningAnalysisToolType -from .group_0069 import CodeScanningAlertInstanceType +from .group_0006 import IntegrationType +from .group_0196 import DeploymentSimpleType +from .group_0169 import PullRequestMinimalType -class CodeScanningAlertType(TypedDict): - """CodeScanningAlert""" +class CheckRunType(TypedDict): + """CheckRun - number: int - created_at: datetime - updated_at: NotRequired[datetime] + A check performed on the code of a given code change + """ + + id: int + head_sha: str + node_id: str + external_id: Union[str, None] url: str - html_url: str - instances_url: str - state: Literal["open", "dismissed", "fixed"] - fixed_at: NotRequired[Union[datetime, None]] - dismissed_by: Union[None, SimpleUserType] - dismissed_at: Union[datetime, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] + html_url: Union[str, None] + details_url: Union[str, None] + status: Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], ] - dismissed_comment: NotRequired[Union[str, None]] - rule: CodeScanningAlertRuleType - tool: CodeScanningAnalysisToolType - most_recent_instance: CodeScanningAlertInstanceType + 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 CodeScanningAlertRuleType(TypedDict): - """CodeScanningAlertRule""" +class CheckRunPropOutputType(TypedDict): + """CheckRunPropOutput""" - 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]] + 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__ = ( - "CodeScanningAlertType", - "CodeScanningAlertRuleType", + "CheckRunType", + "CheckRunPropOutputType", + "CheckRunPropCheckSuiteType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0198.py b/githubkit/versions/v2022_11_28/types/group_0198.py index 00070f264..82fbb570d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0198.py +++ b/githubkit/versions/v2022_11_28/types/group_0198.py @@ -9,30 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0068 import CodeScanningAnalysisToolType +class CheckAnnotationType(TypedDict): + """Check Annotation -class CodeScanningAnalysisType(TypedDict): - """CodeScanningAnalysis""" + Check Annotation + """ - 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 + 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__ = ("CodeScanningAnalysisType",) +__all__ = ("CheckAnnotationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0199.py b/githubkit/versions/v2022_11_28/types/group_0199.py index a217f8af1..4d2999a2d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0199.py +++ b/githubkit/versions/v2022_11_28/types/group_0199.py @@ -9,18 +9,69 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0006 import IntegrationType +from .group_0170 import SimpleCommitType +from .group_0055 import MinimalRepositoryType +from .group_0169 import PullRequestMinimalType -class CodeScanningAnalysisDeletionType(TypedDict): - """Analysis deletion - Successful deletion of a code scanning analysis +class CheckSuiteType(TypedDict): + """CheckSuite + + A suite of checks performed on the code of a given code change """ - next_analysis_url: Union[str, None] - confirm_delete_url: Union[str, None] + id: int + node_id: str + head_branch: Union[str, None] + head_sha: str + status: Union[ + None, + Literal[ + "queued", "in_progress", "completed", "waiting", "requested", "pending" + ], + ] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "startup_failure", + "stale", + ], + ] + url: Union[str, None] + before: Union[str, None] + after: Union[str, None] + pull_requests: Union[List[PullRequestMinimalType], None] + app: Union[None, IntegrationType, None] + repository: MinimalRepositoryType + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + head_commit: SimpleCommitType + latest_check_runs_count: int + check_runs_url: str + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + + +class ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type(TypedDict): + """ReposOwnerRepoCommitsRefCheckSuitesGetResponse200""" + + total_count: int + check_suites: List[CheckSuiteType] -__all__ = ("CodeScanningAnalysisDeletionType",) +__all__ = ( + "CheckSuiteType", + "ReposOwnerRepoCommitsRefCheckSuitesGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0200.py b/githubkit/versions/v2022_11_28/types/group_0200.py index 0cadd6e42..22c5f9c6e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0200.py +++ b/githubkit/versions/v2022_11_28/types/group_0200.py @@ -9,29 +9,39 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +from .group_0055 import MinimalRepositoryType -class CodeScanningCodeqlDatabaseType(TypedDict): - """CodeQL Database +class CheckSuitePreferenceType(TypedDict): + """Check Suite Preference - A CodeQL database. + Check suite configuration preferences for a repository. """ - 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]] + preferences: CheckSuitePreferencePropPreferencesType + repository: MinimalRepositoryType -__all__ = ("CodeScanningCodeqlDatabaseType",) +class CheckSuitePreferencePropPreferencesType(TypedDict): + """CheckSuitePreferencePropPreferences""" + + auto_trigger_checks: NotRequired[ + List[CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType] + ] + + +class CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType(TypedDict): + """CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItems""" + + app_id: int + setting: bool + + +__all__ = ( + "CheckSuitePreferenceType", + "CheckSuitePreferencePropPreferencesType", + "CheckSuitePreferencePropPreferencesPropAutoTriggerChecksItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0201.py b/githubkit/versions/v2022_11_28/types/group_0201.py index 054ee405e..976e760bd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0201.py +++ b/githubkit/versions/v2022_11_28/types/group_0201.py @@ -9,23 +9,36 @@ from __future__ import annotations -from typing import Union from datetime import datetime -from typing_extensions import TypedDict - - -class CodeScanningVariantAnalysisRepositoryType(TypedDict): - """Repository Identifier - - Repository Identifier - """ - - id: int - name: str - full_name: str - private: bool - stargazers_count: int - updated_at: Union[datetime, None] - - -__all__ = ("CodeScanningVariantAnalysisRepositoryType",) +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0001 import SimpleUserType +from .group_0071 import CodeScanningAnalysisToolType +from .group_0072 import CodeScanningAlertInstanceType +from .group_0070 import CodeScanningAlertRuleSummaryType + + +class CodeScanningAlertItemsType(TypedDict): + """CodeScanningAlertItems""" + + number: int + created_at: datetime + updated_at: NotRequired[datetime] + url: str + html_url: str + instances_url: str + state: Literal["open", "dismissed", "fixed"] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleSummaryType + tool: CodeScanningAnalysisToolType + most_recent_instance: CodeScanningAlertInstanceType + + +__all__ = ("CodeScanningAlertItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0202.py b/githubkit/versions/v2022_11_28/types/group_0202.py index 04de24109..b3fafd5d3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0202.py +++ b/githubkit/versions/v2022_11_28/types/group_0202.py @@ -9,17 +9,54 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict - -from .group_0201 import CodeScanningVariantAnalysisRepositoryType - - -class CodeScanningVariantAnalysisSkippedRepoGroupType(TypedDict): - """CodeScanningVariantAnalysisSkippedRepoGroup""" - - repository_count: int - repositories: List[CodeScanningVariantAnalysisRepositoryType] - - -__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroupType",) +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0001 import SimpleUserType +from .group_0071 import CodeScanningAnalysisToolType +from .group_0072 import CodeScanningAlertInstanceType + + +class CodeScanningAlertType(TypedDict): + """CodeScanningAlert""" + + number: int + created_at: datetime + updated_at: NotRequired[datetime] + url: str + html_url: str + instances_url: str + state: Literal["open", "dismissed", "fixed"] + fixed_at: NotRequired[Union[datetime, None]] + dismissed_by: Union[None, SimpleUserType] + dismissed_at: Union[datetime, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + dismissed_comment: NotRequired[Union[str, None]] + rule: CodeScanningAlertRuleType + tool: CodeScanningAnalysisToolType + most_recent_instance: CodeScanningAlertInstanceType + + +class CodeScanningAlertRuleType(TypedDict): + """CodeScanningAlertRule""" + + id: NotRequired[Union[str, None]] + name: NotRequired[str] + severity: NotRequired[Union[None, Literal["none", "note", "warning", "error"]]] + security_severity_level: NotRequired[ + Union[None, Literal["low", "medium", "high", "critical"]] + ] + description: NotRequired[str] + full_description: NotRequired[str] + tags: NotRequired[Union[List[str], None]] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + + +__all__ = ( + "CodeScanningAlertType", + "CodeScanningAlertRuleType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0203.py b/githubkit/versions/v2022_11_28/types/group_0203.py index cf7e8948b..4ce335136 100644 --- a/githubkit/versions/v2022_11_28/types/group_0203.py +++ b/githubkit/versions/v2022_11_28/types/group_0203.py @@ -10,42 +10,29 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0029 import SimpleRepositoryType -from .group_0205 import CodeScanningVariantAnalysisPropSkippedRepositoriesType -from .group_0204 import CodeScanningVariantAnalysisPropScannedRepositoriesItemsType +from .group_0071 import CodeScanningAnalysisToolType -class CodeScanningVariantAnalysisType(TypedDict): - """Variant Analysis - - A run of a CodeQL query against one or more repositories. - """ +class CodeScanningAnalysisType(TypedDict): + """CodeScanningAnalysis""" + 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 - controller_repo: SimpleRepositoryType - actor: SimpleUserType - query_language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] - query_pack_url: str - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - completed_at: NotRequired[Union[datetime, None]] - status: Literal["in_progress", "succeeded", "failed", "cancelled"] - actions_workflow_run_id: NotRequired[int] - failure_reason: NotRequired[ - Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] - ] - scanned_repositories: NotRequired[ - List[CodeScanningVariantAnalysisPropScannedRepositoriesItemsType] - ] - skipped_repositories: NotRequired[ - CodeScanningVariantAnalysisPropSkippedRepositoriesType - ] - - -__all__ = ("CodeScanningVariantAnalysisType",) + url: str + sarif_id: str + tool: CodeScanningAnalysisToolType + deletable: bool + warning: str + + +__all__ = ("CodeScanningAnalysisType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0204.py b/githubkit/versions/v2022_11_28/types/group_0204.py index 6de610db2..a217f8af1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0204.py +++ b/githubkit/versions/v2022_11_28/types/group_0204.py @@ -9,22 +9,18 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0201 import CodeScanningVariantAnalysisRepositoryType +class CodeScanningAnalysisDeletionType(TypedDict): + """Analysis deletion -class CodeScanningVariantAnalysisPropScannedRepositoriesItemsType(TypedDict): - """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" + Successful deletion of a code scanning analysis + """ - 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] + next_analysis_url: Union[str, None] + confirm_delete_url: Union[str, None] -__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",) +__all__ = ("CodeScanningAnalysisDeletionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0205.py b/githubkit/versions/v2022_11_28/types/group_0205.py index a69845a29..0cadd6e42 100644 --- a/githubkit/versions/v2022_11_28/types/group_0205.py +++ b/githubkit/versions/v2022_11_28/types/group_0205.py @@ -9,37 +9,29 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -from .group_0202 import CodeScanningVariantAnalysisSkippedRepoGroupType +from .group_0001 import SimpleUserType -class CodeScanningVariantAnalysisPropSkippedRepositoriesType(TypedDict): - """CodeScanningVariantAnalysisPropSkippedRepositories +class CodeScanningCodeqlDatabaseType(TypedDict): + """CodeQL Database - Information about repositories that were skipped from processing. This - information is only available to the user that initiated the variant analysis. + A CodeQL database. """ - access_mismatch_repos: CodeScanningVariantAnalysisSkippedRepoGroupType - not_found_repos: ( - CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType - ) - no_codeql_db_repos: CodeScanningVariantAnalysisSkippedRepoGroupType - over_limit_repos: CodeScanningVariantAnalysisSkippedRepoGroupType + 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]] -class CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType( - TypedDict -): - """CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundRepos""" - - repository_count: int - repository_full_names: List[str] - - -__all__ = ( - "CodeScanningVariantAnalysisPropSkippedRepositoriesType", - "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", -) +__all__ = ("CodeScanningCodeqlDatabaseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0206.py b/githubkit/versions/v2022_11_28/types/group_0206.py index dd48bae3e..054ee405e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0206.py +++ b/githubkit/versions/v2022_11_28/types/group_0206.py @@ -9,25 +9,23 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from datetime import datetime +from typing_extensions import TypedDict -from .group_0029 import SimpleRepositoryType +class CodeScanningVariantAnalysisRepositoryType(TypedDict): + """Repository Identifier -class CodeScanningVariantAnalysisRepoTaskType(TypedDict): - """CodeScanningVariantAnalysisRepoTask""" + Repository Identifier + """ - 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] + id: int + name: str + full_name: str + private: bool + stargazers_count: int + updated_at: Union[datetime, None] -__all__ = ("CodeScanningVariantAnalysisRepoTaskType",) +__all__ = ("CodeScanningVariantAnalysisRepositoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0207.py b/githubkit/versions/v2022_11_28/types/group_0207.py index cdbbfb7fa..d3c48a19d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0207.py +++ b/githubkit/versions/v2022_11_28/types/group_0207.py @@ -9,37 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired - - -class CodeScanningDefaultSetupType(TypedDict): - """CodeScanningDefaultSetup - - Configuration for code scanning default setup. - """ - - state: NotRequired[Literal["configured", "not-configured"]] - languages: NotRequired[ - List[ - Literal[ - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "javascript", - "python", - "ruby", - "typescript", - "swift", - ] - ] - ] - query_suite: NotRequired[Literal["default", "extended"]] - updated_at: NotRequired[Union[datetime, None]] - schedule: NotRequired[Union[None, Literal["weekly"]]] - - -__all__ = ("CodeScanningDefaultSetupType",) +from typing import List +from typing_extensions import TypedDict + +from .group_0206 import CodeScanningVariantAnalysisRepositoryType + + +class CodeScanningVariantAnalysisSkippedRepoGroupType(TypedDict): + """CodeScanningVariantAnalysisSkippedRepoGroup""" + + repository_count: int + repositories: List[CodeScanningVariantAnalysisRepositoryType] + + +__all__ = ("CodeScanningVariantAnalysisSkippedRepoGroupType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0208.py b/githubkit/versions/v2022_11_28/types/group_0208.py index 83fe48476..ee723326d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0208.py +++ b/githubkit/versions/v2022_11_28/types/group_0208.py @@ -9,32 +9,43 @@ from __future__ import annotations -from typing import List, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0033 import SimpleRepositoryType +from .group_0210 import CodeScanningVariantAnalysisPropSkippedRepositoriesType +from .group_0209 import CodeScanningVariantAnalysisPropScannedRepositoriesItemsType -class CodeScanningDefaultSetupUpdateType(TypedDict): - """CodeScanningDefaultSetupUpdate - Configuration for code scanning default setup. +class CodeScanningVariantAnalysisType(TypedDict): + """Variant Analysis + + A run of a CodeQL query against one or more repositories. """ - state: NotRequired[Literal["configured", "not-configured"]] - query_suite: NotRequired[Literal["default", "extended"]] - languages: NotRequired[ - List[ - Literal[ - "c-cpp", - "csharp", - "go", - "java-kotlin", - "javascript-typescript", - "python", - "ruby", - "swift", - ] - ] + id: int + controller_repo: SimpleRepositoryType + actor: SimpleUserType + query_language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] + query_pack_url: str + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + completed_at: NotRequired[Union[datetime, None]] + status: Literal["in_progress", "succeeded", "failed", "cancelled"] + actions_workflow_run_id: NotRequired[int] + failure_reason: NotRequired[ + Literal["no_repos_queried", "actions_workflow_run_failed", "internal_error"] + ] + scanned_repositories: NotRequired[ + List[CodeScanningVariantAnalysisPropScannedRepositoriesItemsType] + ] + skipped_repositories: NotRequired[ + CodeScanningVariantAnalysisPropSkippedRepositoriesType ] -__all__ = ("CodeScanningDefaultSetupUpdateType",) +__all__ = ("CodeScanningVariantAnalysisType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0209.py b/githubkit/versions/v2022_11_28/types/group_0209.py index 1df4620a0..e77344d51 100644 --- a/githubkit/versions/v2022_11_28/types/group_0209.py +++ b/githubkit/versions/v2022_11_28/types/group_0209.py @@ -9,19 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0206 import CodeScanningVariantAnalysisRepositoryType -class CodeScanningDefaultSetupUpdateResponseType(TypedDict): - """CodeScanningDefaultSetupUpdateResponse - You can use `run_url` to track the status of the run. This includes a property - status and conclusion. - You should not rely on this always being an actions workflow run object. - """ +class CodeScanningVariantAnalysisPropScannedRepositoriesItemsType(TypedDict): + """CodeScanningVariantAnalysisPropScannedRepositoriesItems""" - run_id: NotRequired[int] - run_url: NotRequired[str] + repository: CodeScanningVariantAnalysisRepositoryType + analysis_status: Literal[ + "pending", "in_progress", "succeeded", "failed", "canceled", "timed_out" + ] + result_count: NotRequired[int] + artifact_size_in_bytes: NotRequired[int] + failure_message: NotRequired[str] -__all__ = ("CodeScanningDefaultSetupUpdateResponseType",) +__all__ = ("CodeScanningVariantAnalysisPropScannedRepositoriesItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0210.py b/githubkit/versions/v2022_11_28/types/group_0210.py index 995d8ab46..4ba23b357 100644 --- a/githubkit/versions/v2022_11_28/types/group_0210.py +++ b/githubkit/versions/v2022_11_28/types/group_0210.py @@ -9,14 +9,37 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0207 import CodeScanningVariantAnalysisSkippedRepoGroupType -class CodeScanningSarifsReceiptType(TypedDict): - """CodeScanningSarifsReceipt""" - id: NotRequired[str] - url: NotRequired[str] +class CodeScanningVariantAnalysisPropSkippedRepositoriesType(TypedDict): + """CodeScanningVariantAnalysisPropSkippedRepositories + Information about repositories that were skipped from processing. This + information is only available to the user that initiated the variant analysis. + """ -__all__ = ("CodeScanningSarifsReceiptType",) + 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__ = ( + "CodeScanningVariantAnalysisPropSkippedRepositoriesType", + "CodeScanningVariantAnalysisPropSkippedRepositoriesPropNotFoundReposType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0211.py b/githubkit/versions/v2022_11_28/types/group_0211.py index 218ccba47..71e23f77d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0211.py +++ b/githubkit/versions/v2022_11_28/types/group_0211.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0033 import SimpleRepositoryType -class CodeScanningSarifsStatusType(TypedDict): - """CodeScanningSarifsStatus""" - processing_status: NotRequired[Literal["pending", "complete", "failed"]] - analyses_url: NotRequired[Union[str, None]] - errors: NotRequired[Union[List[str], None]] +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__ = ("CodeScanningSarifsStatusType",) + +__all__ = ("CodeScanningVariantAnalysisRepoTaskType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0212.py b/githubkit/versions/v2022_11_28/types/group_0212.py index 6e2d05d46..cdbbfb7fa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0212.py +++ b/githubkit/versions/v2022_11_28/types/group_0212.py @@ -9,32 +9,37 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class CodeownersErrorsType(TypedDict): - """CODEOWNERS errors +class CodeScanningDefaultSetupType(TypedDict): + """CodeScanningDefaultSetup - A list of errors found in a repo's CODEOWNERS file + Configuration for code scanning default setup. """ - errors: List[CodeownersErrorsPropErrorsItemsType] - - -class CodeownersErrorsPropErrorsItemsType(TypedDict): - """CodeownersErrorsPropErrorsItems""" - - line: int - column: int - source: NotRequired[str] - kind: str - suggestion: NotRequired[Union[str, None]] - message: str - path: str - - -__all__ = ( - "CodeownersErrorsType", - "CodeownersErrorsPropErrorsItemsType", -) + state: NotRequired[Literal["configured", "not-configured"]] + languages: NotRequired[ + List[ + Literal[ + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "javascript", + "python", + "ruby", + "typescript", + "swift", + ] + ] + ] + query_suite: NotRequired[Literal["default", "extended"]] + updated_at: NotRequired[Union[datetime, None]] + schedule: NotRequired[Union[None, Literal["weekly"]]] + + +__all__ = ("CodeScanningDefaultSetupType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0213.py b/githubkit/versions/v2022_11_28/types/group_0213.py index e1c93e03b..83fe48476 100644 --- a/githubkit/versions/v2022_11_28/types/group_0213.py +++ b/githubkit/versions/v2022_11_28/types/group_0213.py @@ -9,16 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class CodespacesPermissionsCheckForDevcontainerType(TypedDict): - """Codespaces Permissions Check +class CodeScanningDefaultSetupUpdateType(TypedDict): + """CodeScanningDefaultSetupUpdate - Permission check result for a given devcontainer config. + Configuration for code scanning default setup. """ - accepted: bool - - -__all__ = ("CodespacesPermissionsCheckForDevcontainerType",) + state: NotRequired[Literal["configured", "not-configured"]] + query_suite: NotRequired[Literal["default", "extended"]] + languages: NotRequired[ + List[ + Literal[ + "c-cpp", + "csharp", + "go", + "java-kotlin", + "javascript-typescript", + "python", + "ruby", + "swift", + ] + ] + ] + + +__all__ = ("CodeScanningDefaultSetupUpdateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0214.py b/githubkit/versions/v2022_11_28/types/group_0214.py index e9d890fbb..1df4620a0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0214.py +++ b/githubkit/versions/v2022_11_28/types/group_0214.py @@ -9,30 +9,19 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0051 import MinimalRepositoryType +class CodeScanningDefaultSetupUpdateResponseType(TypedDict): + """CodeScanningDefaultSetupUpdateResponse -class RepositoryInvitationType(TypedDict): - """Repository Invitation - - Repository invitations let you manage who you collaborate with. + You can use `run_url` to track the status of the run. This includes a property + status and conclusion. + You should not rely on this always being an actions workflow run object. """ - id: int - repository: MinimalRepositoryType - invitee: Union[None, SimpleUserType] - inviter: Union[None, SimpleUserType] - permissions: Literal["read", "write", "admin", "triage", "maintain"] - created_at: datetime - expired: NotRequired[bool] - url: str - html_url: str - node_id: str + run_id: NotRequired[int] + run_url: NotRequired[str] -__all__ = ("RepositoryInvitationType",) +__all__ = ("CodeScanningDefaultSetupUpdateResponseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0215.py b/githubkit/versions/v2022_11_28/types/group_0215.py index 896a0e9a1..995d8ab46 100644 --- a/githubkit/versions/v2022_11_28/types/group_0215.py +++ b/githubkit/versions/v2022_11_28/types/group_0215.py @@ -9,63 +9,14 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict, NotRequired -class RepositoryCollaboratorPermissionType(TypedDict): - """Repository Collaborator Permission +class CodeScanningSarifsReceiptType(TypedDict): + """CodeScanningSarifsReceipt""" - Repository Collaborator Permission - """ + id: NotRequired[str] + url: NotRequired[str] - permission: str - role_name: str - user: Union[None, CollaboratorType] - -class CollaboratorType(TypedDict): - """Collaborator - - Collaborator - """ - - login: str - id: int - email: NotRequired[Union[str, None]] - name: NotRequired[Union[str, None]] - node_id: str - avatar_url: str - gravatar_id: Union[str, None] - url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - events_url: str - received_events_url: str - type: str - site_admin: bool - permissions: NotRequired[CollaboratorPropPermissionsType] - role_name: str - - -class CollaboratorPropPermissionsType(TypedDict): - """CollaboratorPropPermissions""" - - pull: bool - triage: NotRequired[bool] - push: bool - maintain: NotRequired[bool] - admin: bool - - -__all__ = ( - "RepositoryCollaboratorPermissionType", - "CollaboratorType", - "CollaboratorPropPermissionsType", -) +__all__ = ("CodeScanningSarifsReceiptType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0216.py b/githubkit/versions/v2022_11_28/types/group_0216.py index d97f8c0e3..218ccba47 100644 --- a/githubkit/versions/v2022_11_28/types/group_0216.py +++ b/githubkit/versions/v2022_11_28/types/group_0216.py @@ -9,58 +9,16 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0034 import ReactionRollupType +class CodeScanningSarifsStatusType(TypedDict): + """CodeScanningSarifsStatus""" -class CommitCommentType(TypedDict): - """Commit Comment + processing_status: NotRequired[Literal["pending", "complete", "failed"]] + analyses_url: NotRequired[Union[str, None]] + errors: NotRequired[Union[List[str], None]] - Commit Comment - """ - html_url: str - url: str - id: int - node_id: str - body: str - path: Union[str, None] - position: Union[int, None] - line: Union[int, None] - commit_id: str - user: Union[None, SimpleUserType] - created_at: datetime - updated_at: datetime - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - reactions: NotRequired[ReactionRollupType] - - -class TimelineCommitCommentedEventType(TypedDict): - """Timeline Commit Commented Event - - Timeline Commit Commented Event - """ - - event: NotRequired[Literal["commit_commented"]] - node_id: NotRequired[str] - commit_id: NotRequired[str] - comments: NotRequired[List[CommitCommentType]] - - -__all__ = ( - "CommitCommentType", - "TimelineCommitCommentedEventType", -) +__all__ = ("CodeScanningSarifsStatusType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0217.py b/githubkit/versions/v2022_11_28/types/group_0217.py index 5ab5687fb..6e2d05d46 100644 --- a/githubkit/versions/v2022_11_28/types/group_0217.py +++ b/githubkit/versions/v2022_11_28/types/group_0217.py @@ -9,28 +9,32 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -class BranchShortType(TypedDict): - """Branch Short +class CodeownersErrorsType(TypedDict): + """CODEOWNERS errors - Branch Short + A list of errors found in a repo's CODEOWNERS file """ - name: str - commit: BranchShortPropCommitType - protected: bool + errors: List[CodeownersErrorsPropErrorsItemsType] -class BranchShortPropCommitType(TypedDict): - """BranchShortPropCommit""" +class CodeownersErrorsPropErrorsItemsType(TypedDict): + """CodeownersErrorsPropErrorsItems""" - sha: str - url: str + line: int + column: int + source: NotRequired[str] + kind: str + suggestion: NotRequired[Union[str, None]] + message: str + path: str __all__ = ( - "BranchShortType", - "BranchShortPropCommitType", + "CodeownersErrorsType", + "CodeownersErrorsPropErrorsItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0218.py b/githubkit/versions/v2022_11_28/types/group_0218.py index 064aa0ae7..e1c93e03b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0218.py +++ b/githubkit/versions/v2022_11_28/types/group_0218.py @@ -12,13 +12,13 @@ from typing_extensions import TypedDict -class LinkType(TypedDict): - """Link +class CodespacesPermissionsCheckForDevcontainerType(TypedDict): + """Codespaces Permissions Check - Hypermedia Link + Permission check result for a given devcontainer config. """ - href: str + accepted: bool -__all__ = ("LinkType",) +__all__ = ("CodespacesPermissionsCheckForDevcontainerType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0219.py b/githubkit/versions/v2022_11_28/types/group_0219.py index eb2d68457..c028ba58e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0219.py +++ b/githubkit/versions/v2022_11_28/types/group_0219.py @@ -9,22 +9,30 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType +from .group_0055 import MinimalRepositoryType -class AutoMergeType(TypedDict): - """Auto merge +class RepositoryInvitationType(TypedDict): + """Repository Invitation - The status of auto merging a pull request. + Repository invitations let you manage who you collaborate with. """ - enabled_by: SimpleUserType - merge_method: Literal["merge", "squash", "rebase"] - commit_title: Union[str, None] - commit_message: Union[str, None] + id: int + repository: MinimalRepositoryType + invitee: Union[None, SimpleUserType] + inviter: Union[None, SimpleUserType] + permissions: Literal["read", "write", "admin", "triage", "maintain"] + created_at: datetime + expired: NotRequired[bool] + url: str + html_url: str + node_id: str -__all__ = ("AutoMergeType",) +__all__ = ("RepositoryInvitationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0220.py b/githubkit/versions/v2022_11_28/types/group_0220.py index 9a4bdf65d..896a0e9a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0220.py +++ b/githubkit/versions/v2022_11_28/types/group_0220.py @@ -9,84 +9,63 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0076 import TeamType -from .group_0033 import MilestoneType -from .group_0219 import AutoMergeType -from .group_0001 import SimpleUserType -from .group_0222 import PullRequestSimplePropLinksType -from .group_0221 import PullRequestSimplePropBaseType, PullRequestSimplePropHeadType +class RepositoryCollaboratorPermissionType(TypedDict): + """Repository Collaborator Permission + + Repository Collaborator Permission + """ + + permission: str + role_name: str + user: Union[None, CollaboratorType] -class PullRequestSimpleType(TypedDict): - """Pull Request Simple - Pull Request Simple +class CollaboratorType(TypedDict): + """Collaborator + + Collaborator """ - url: str + 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 - 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""" + 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 - id: int - node_id: str - url: str - name: str - description: Union[str, None] - color: str - default: bool + +class CollaboratorPropPermissionsType(TypedDict): + """CollaboratorPropPermissions""" + + pull: bool + triage: NotRequired[bool] + push: bool + maintain: NotRequired[bool] + admin: bool __all__ = ( - "PullRequestSimpleType", - "PullRequestSimplePropLabelsItemsType", + "RepositoryCollaboratorPermissionType", + "CollaboratorType", + "CollaboratorPropPermissionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0221.py b/githubkit/versions/v2022_11_28/types/group_0221.py index e11b7c39f..d0eae3e7b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0221.py +++ b/githubkit/versions/v2022_11_28/types/group_0221.py @@ -9,34 +9,58 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -from .group_0017 import RepositoryType +from .group_0038 import ReactionRollupType -class PullRequestSimplePropHeadType(TypedDict): - """PullRequestSimplePropHead""" +class CommitCommentType(TypedDict): + """Commit Comment - label: Union[str, None] - ref: str - repo: Union[None, RepositoryType] - sha: str + Commit Comment + """ + + html_url: str + url: str + id: int + node_id: str + body: str + path: Union[str, None] + position: Union[int, None] + line: Union[int, None] + commit_id: str user: Union[None, SimpleUserType] + created_at: datetime + updated_at: datetime + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + reactions: NotRequired[ReactionRollupType] -class PullRequestSimplePropBaseType(TypedDict): - """PullRequestSimplePropBase""" +class TimelineCommitCommentedEventType(TypedDict): + """Timeline Commit Commented Event - label: str - ref: str - repo: RepositoryType - sha: str - user: Union[None, SimpleUserType] + Timeline Commit Commented Event + """ + + event: NotRequired[Literal["commit_commented"]] + node_id: NotRequired[str] + commit_id: NotRequired[str] + comments: NotRequired[List[CommitCommentType]] __all__ = ( - "PullRequestSimplePropHeadType", - "PullRequestSimplePropBaseType", + "CommitCommentType", + "TimelineCommitCommentedEventType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0222.py b/githubkit/versions/v2022_11_28/types/group_0222.py index 604f01182..5ab5687fb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0222.py +++ b/githubkit/versions/v2022_11_28/types/group_0222.py @@ -11,20 +11,26 @@ from typing_extensions import TypedDict -from .group_0218 import LinkType +class BranchShortType(TypedDict): + """Branch Short -class PullRequestSimplePropLinksType(TypedDict): - """PullRequestSimplePropLinks""" + Branch Short + """ - comments: LinkType - commits: LinkType - statuses: LinkType - html: LinkType - issue: LinkType - review_comments: LinkType - review_comment: LinkType - self_: LinkType + name: str + commit: BranchShortPropCommitType + protected: bool -__all__ = ("PullRequestSimplePropLinksType",) +class BranchShortPropCommitType(TypedDict): + """BranchShortPropCommit""" + + sha: str + url: str + + +__all__ = ( + "BranchShortType", + "BranchShortPropCommitType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0223.py b/githubkit/versions/v2022_11_28/types/group_0223.py index cb85a6816..064aa0ae7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0223.py +++ b/githubkit/versions/v2022_11_28/types/group_0223.py @@ -9,45 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0051 import MinimalRepositoryType +class LinkType(TypedDict): + """Link -class CombinedCommitStatusType(TypedDict): - """Combined Commit Status - - Combined Commit Status + Hypermedia Link """ - state: str - statuses: List[SimpleCommitStatusType] - sha: str - total_count: int - repository: MinimalRepositoryType - commit_url: str - url: str - - -class SimpleCommitStatusType(TypedDict): - """Simple Commit Status""" - - description: Union[str, None] - id: int - node_id: str - state: str - context: str - target_url: Union[str, None] - required: NotRequired[Union[bool, None]] - avatar_url: Union[str, None] - url: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "CombinedCommitStatusType", - "SimpleCommitStatusType", -) + href: str + + +__all__ = ("LinkType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0224.py b/githubkit/versions/v2022_11_28/types/group_0224.py index dc094331f..eb2d68457 100644 --- a/githubkit/versions/v2022_11_28/types/group_0224.py +++ b/githubkit/versions/v2022_11_28/types/group_0224.py @@ -9,29 +9,22 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from typing_extensions import TypedDict from .group_0001 import SimpleUserType -class StatusType(TypedDict): - """Status +class AutoMergeType(TypedDict): + """Auto merge - The status of a commit. + The status of auto merging a pull request. """ - 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] + enabled_by: SimpleUserType + merge_method: Literal["merge", "squash", "rebase"] + commit_title: Union[str, None] + commit_message: Union[str, None] -__all__ = ("StatusType",) +__all__ = ("AutoMergeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0225.py b/githubkit/versions/v2022_11_28/types/group_0225.py index d94a1cdc2..0d5fe7cff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0225.py +++ b/githubkit/versions/v2022_11_28/types/group_0225.py @@ -9,49 +9,84 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0016 import LicenseSimpleType -from .group_0095 import CodeOfConductSimpleType +from .group_0026 import TeamType +from .group_0037 import MilestoneType +from .group_0224 import AutoMergeType +from .group_0001 import SimpleUserType +from .group_0227 import PullRequestSimplePropLinksType +from .group_0226 import PullRequestSimplePropBaseType, PullRequestSimplePropHeadType -class CommunityProfilePropFilesType(TypedDict): - """CommunityProfilePropFiles""" +class PullRequestSimpleType(TypedDict): + """Pull Request Simple - 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""" + Pull Request Simple + """ url: str + id: int + node_id: str html_url: str - - -class CommunityProfileType(TypedDict): - """Community Profile - - Community Profile - """ - - health_percentage: int + 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] - documentation: Union[str, None] - files: CommunityProfilePropFilesType - updated_at: Union[datetime, None] - content_reports_enabled: NotRequired[bool] + color: str + default: bool __all__ = ( - "CommunityProfilePropFilesType", - "CommunityHealthFileType", - "CommunityProfileType", + "PullRequestSimpleType", + "PullRequestSimplePropLabelsItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0226.py b/githubkit/versions/v2022_11_28/types/group_0226.py index 825e7facd..e11b7c39f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0226.py +++ b/githubkit/versions/v2022_11_28/types/group_0226.py @@ -9,32 +9,34 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0185 import CommitType -from .group_0184 import DiffEntryType +from .group_0001 import SimpleUserType +from .group_0017 import RepositoryType -class CommitComparisonType(TypedDict): - """Commit Comparison +class PullRequestSimplePropHeadType(TypedDict): + """PullRequestSimplePropHead""" - Commit Comparison - """ + label: Union[str, None] + ref: str + repo: Union[None, RepositoryType] + sha: str + user: Union[None, SimpleUserType] - 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]] +class PullRequestSimplePropBaseType(TypedDict): + """PullRequestSimplePropBase""" -__all__ = ("CommitComparisonType",) + label: str + ref: str + repo: RepositoryType + sha: str + user: Union[None, SimpleUserType] + + +__all__ = ( + "PullRequestSimplePropHeadType", + "PullRequestSimplePropBaseType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0227.py b/githubkit/versions/v2022_11_28/types/group_0227.py index 18ab3b111..d85ffa3f8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0227.py +++ b/githubkit/versions/v2022_11_28/types/group_0227.py @@ -9,64 +9,22 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0223 import LinkType -class ContentTreeType(TypedDict): - """Content Tree - Content Tree - """ +class PullRequestSimplePropLinksType(TypedDict): + """PullRequestSimplePropLinks""" - 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] - entries: NotRequired[List[ContentTreePropEntriesItemsType]] - links: ContentTreePropLinksType + comments: LinkType + commits: LinkType + statuses: LinkType + html: LinkType + issue: LinkType + review_comments: LinkType + review_comment: LinkType + self_: LinkType -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 - content: NotRequired[str] - sha: str - url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentTreePropEntriesItemsPropLinksType - - -class ContentTreePropEntriesItemsPropLinksType(TypedDict): - """ContentTreePropEntriesItemsPropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str - - -__all__ = ( - "ContentTreeType", - "ContentTreePropLinksType", - "ContentTreePropEntriesItemsType", - "ContentTreePropEntriesItemsPropLinksType", -) +__all__ = ("PullRequestSimplePropLinksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0228.py b/githubkit/versions/v2022_11_28/types/group_0228.py index ee3b791db..8df78cecd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0228.py +++ b/githubkit/versions/v2022_11_28/types/group_0228.py @@ -9,35 +9,45 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union from typing_extensions import TypedDict, NotRequired +from .group_0055 import MinimalRepositoryType -class ContentDirectoryItemsType(TypedDict): - """ContentDirectoryItems""" - type: Literal["dir", "file", "submodule", "symlink"] - size: int - name: str - path: str - content: NotRequired[str] +class CombinedCommitStatusType(TypedDict): + """Combined Commit Status + + Combined Commit Status + """ + + state: str + statuses: List[SimpleCommitStatusType] sha: str + total_count: int + repository: MinimalRepositoryType + commit_url: str url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentDirectoryItemsPropLinksType -class ContentDirectoryItemsPropLinksType(TypedDict): - """ContentDirectoryItemsPropLinks""" +class SimpleCommitStatusType(TypedDict): + """Simple Commit Status""" - git: Union[str, None] - html: Union[str, None] - self_: str + description: Union[str, None] + id: int + node_id: str + state: str + context: str + target_url: Union[str, None] + required: NotRequired[Union[bool, None]] + avatar_url: Union[str, None] + url: str + created_at: datetime + updated_at: datetime __all__ = ( - "ContentDirectoryItemsType", - "ContentDirectoryItemsPropLinksType", + "CombinedCommitStatusType", + "SimpleCommitStatusType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0229.py b/githubkit/versions/v2022_11_28/types/group_0229.py index 2df578d2e..dc094331f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0229.py +++ b/githubkit/versions/v2022_11_28/types/group_0229.py @@ -9,41 +9,29 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict +from .group_0001 import SimpleUserType -class ContentFileType(TypedDict): - """Content File - Content File +class StatusType(TypedDict): + """Status + + The status of a commit. """ - type: Literal["file"] - encoding: str - size: int - name: str - path: str - content: str - sha: str url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentFilePropLinksType - target: NotRequired[str] - submodule_git_url: NotRequired[str] - - -class ContentFilePropLinksType(TypedDict): - """ContentFilePropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str - - -__all__ = ( - "ContentFileType", - "ContentFilePropLinksType", -) + 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_0230.py b/githubkit/versions/v2022_11_28/types/group_0230.py index 8a5125ca7..3fc9f85b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0230.py +++ b/githubkit/versions/v2022_11_28/types/group_0230.py @@ -9,38 +9,49 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import Union +from datetime import datetime +from typing_extensions import TypedDict, NotRequired +from .group_0016 import LicenseSimpleType +from .group_0100 import CodeOfConductSimpleType -class ContentSymlinkType(TypedDict): - """Symlink Content - An object describing a symlink - """ +class CommunityProfilePropFilesType(TypedDict): + """CommunityProfilePropFiles""" + + code_of_conduct: Union[None, CodeOfConductSimpleType] + code_of_conduct_file: Union[None, CommunityHealthFileType] + license_: Union[None, LicenseSimpleType] + contributing: Union[None, CommunityHealthFileType] + readme: Union[None, CommunityHealthFileType] + issue_template: Union[None, CommunityHealthFileType] + pull_request_template: Union[None, CommunityHealthFileType] + + +class CommunityHealthFileType(TypedDict): + """Community Health File""" - type: Literal["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 + html_url: str + +class CommunityProfileType(TypedDict): + """Community Profile -class ContentSymlinkPropLinksType(TypedDict): - """ContentSymlinkPropLinks""" + 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__ = ( - "ContentSymlinkType", - "ContentSymlinkPropLinksType", + "CommunityProfilePropFilesType", + "CommunityHealthFileType", + "CommunityProfileType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0231.py b/githubkit/versions/v2022_11_28/types/group_0231.py index d8f2d90e7..71577ca8d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0231.py +++ b/githubkit/versions/v2022_11_28/types/group_0231.py @@ -9,38 +9,32 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0190 import CommitType +from .group_0189 import DiffEntryType -class ContentSubmoduleType(TypedDict): - """Submodule Content - An object describing a submodule +class CommitComparisonType(TypedDict): + """Commit Comparison + + Commit Comparison """ - type: Literal["submodule"] - submodule_git_url: str - size: int - name: str - path: str - sha: str url: str - git_url: Union[str, None] - html_url: Union[str, None] - download_url: Union[str, None] - links: ContentSubmodulePropLinksType - - -class ContentSubmodulePropLinksType(TypedDict): - """ContentSubmodulePropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str - - -__all__ = ( - "ContentSubmoduleType", - "ContentSubmodulePropLinksType", -) + 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_0232.py b/githubkit/versions/v2022_11_28/types/group_0232.py index 67d3310f1..18ab3b111 100644 --- a/githubkit/versions/v2022_11_28/types/group_0232.py +++ b/githubkit/versions/v2022_11_28/types/group_0232.py @@ -13,102 +13,60 @@ from typing_extensions import TypedDict, NotRequired -class FileCommitType(TypedDict): - """File Commit +class ContentTreeType(TypedDict): + """Content Tree - File Commit + Content Tree """ - content: Union[FileCommitPropContentType, None] - commit: FileCommitPropCommitType + 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] + entries: NotRequired[List[ContentTreePropEntriesItemsType]] + links: ContentTreePropLinksType -class FileCommitPropContentType(TypedDict): - """FileCommitPropContent""" +class ContentTreePropLinksType(TypedDict): + """ContentTreePropLinks""" - 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] + git: Union[str, None] + html: Union[str, None] + self_: str -class FileCommitPropContentPropLinksType(TypedDict): - """FileCommitPropContentPropLinks""" +class ContentTreePropEntriesItemsType(TypedDict): + """ContentTreePropEntriesItems""" - self_: NotRequired[str] - git: NotRequired[str] - html: NotRequired[str] + type: str + 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: ContentTreePropEntriesItemsPropLinksType -class FileCommitPropCommitType(TypedDict): - """FileCommitPropCommit""" +class ContentTreePropEntriesItemsPropLinksType(TypedDict): + """ContentTreePropEntriesItemsPropLinks""" - 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]] + git: Union[str, None] + html: Union[str, None] + self_: str __all__ = ( - "FileCommitType", - "FileCommitPropContentType", - "FileCommitPropContentPropLinksType", - "FileCommitPropCommitType", - "FileCommitPropCommitPropAuthorType", - "FileCommitPropCommitPropCommitterType", - "FileCommitPropCommitPropTreeType", - "FileCommitPropCommitPropParentsItemsType", - "FileCommitPropCommitPropVerificationType", + "ContentTreeType", + "ContentTreePropLinksType", + "ContentTreePropEntriesItemsType", + "ContentTreePropEntriesItemsPropLinksType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0233.py b/githubkit/versions/v2022_11_28/types/group_0233.py index e7561bbbb..ee3b791db 100644 --- a/githubkit/versions/v2022_11_28/types/group_0233.py +++ b/githubkit/versions/v2022_11_28/types/group_0233.py @@ -9,37 +9,35 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ContributorType(TypedDict): - """Contributor - - Contributor - """ - - login: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - avatar_url: NotRequired[str] - gravatar_id: NotRequired[Union[str, None]] - url: NotRequired[str] - html_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - organizations_url: NotRequired[str] - repos_url: NotRequired[str] - events_url: NotRequired[str] - received_events_url: NotRequired[str] - type: str - site_admin: NotRequired[bool] - contributions: int - email: NotRequired[str] - name: NotRequired[str] - - -__all__ = ("ContributorType",) +class ContentDirectoryItemsType(TypedDict): + """ContentDirectoryItems""" + + type: Literal["dir", "file", "submodule", "symlink"] + size: int + name: str + path: str + content: NotRequired[str] + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentDirectoryItemsPropLinksType + + +class ContentDirectoryItemsPropLinksType(TypedDict): + """ContentDirectoryItemsPropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str + + +__all__ = ( + "ContentDirectoryItemsType", + "ContentDirectoryItemsPropLinksType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0234.py b/githubkit/versions/v2022_11_28/types/group_0234.py index b50305777..2df578d2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0234.py +++ b/githubkit/versions/v2022_11_28/types/group_0234.py @@ -9,42 +9,41 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0235 import DependabotAlertPropDependencyType -from .group_0028 import DependabotAlertSecurityAdvisoryType -from .group_0027 import DependabotAlertSecurityVulnerabilityType +class ContentFileType(TypedDict): + """Content File -class DependabotAlertType(TypedDict): - """DependabotAlert - - A Dependabot alert. + Content File """ - number: int - state: Literal["auto_dismissed", "dismissed", "fixed", "open"] - dependency: DependabotAlertPropDependencyType - security_advisory: DependabotAlertSecurityAdvisoryType - security_vulnerability: DependabotAlertSecurityVulnerabilityType + type: Literal["file"] + encoding: str + size: int + name: str + path: str + content: str + sha: str url: str - html_url: str - created_at: datetime - updated_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[None, SimpleUserType] - dismissed_reason: Union[ - None, - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ], - ] - dismissed_comment: Union[str, None] - fixed_at: Union[datetime, None] - auto_dismissed_at: NotRequired[Union[datetime, None]] - - -__all__ = ("DependabotAlertType",) + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentFilePropLinksType + target: NotRequired[str] + submodule_git_url: NotRequired[str] + + +class ContentFilePropLinksType(TypedDict): + """ContentFilePropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str + + +__all__ = ( + "ContentFileType", + "ContentFilePropLinksType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0235.py b/githubkit/versions/v2022_11_28/types/group_0235.py index 7f7333748..8a5125ca7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0235.py +++ b/githubkit/versions/v2022_11_28/types/group_0235.py @@ -10,20 +10,37 @@ from __future__ import annotations from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0026 import DependabotAlertPackageType +class ContentSymlinkType(TypedDict): + """Symlink Content -class DependabotAlertPropDependencyType(TypedDict): - """DependabotAlertPropDependency - - Details for the vulnerable dependency. + An object describing a symlink """ - package: NotRequired[DependabotAlertPackageType] - manifest_path: NotRequired[str] - scope: NotRequired[Union[None, Literal["development", "runtime"]]] + type: Literal["symlink"] + target: str + size: int + name: str + path: str + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentSymlinkPropLinksType + + +class ContentSymlinkPropLinksType(TypedDict): + """ContentSymlinkPropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str -__all__ = ("DependabotAlertPropDependencyType",) +__all__ = ( + "ContentSymlinkType", + "ContentSymlinkPropLinksType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0236.py b/githubkit/versions/v2022_11_28/types/group_0236.py index 1a34a23a4..d8f2d90e7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0236.py +++ b/githubkit/versions/v2022_11_28/types/group_0236.py @@ -9,35 +9,38 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict -class DependencyGraphDiffItemsType(TypedDict): - """DependencyGraphDiffItems""" +class ContentSubmoduleType(TypedDict): + """Submodule Content - change_type: Literal["added", "removed"] - manifest: str - ecosystem: str + An object describing a submodule + """ + + type: Literal["submodule"] + submodule_git_url: str + size: int name: str - version: str - package_url: Union[str, None] - license_: Union[str, None] - source_repository_url: Union[str, None] - vulnerabilities: List[DependencyGraphDiffItemsPropVulnerabilitiesItemsType] - scope: Literal["unknown", "runtime", "development"] + path: str + sha: str + url: str + git_url: Union[str, None] + html_url: Union[str, None] + download_url: Union[str, None] + links: ContentSubmodulePropLinksType -class DependencyGraphDiffItemsPropVulnerabilitiesItemsType(TypedDict): - """DependencyGraphDiffItemsPropVulnerabilitiesItems""" +class ContentSubmodulePropLinksType(TypedDict): + """ContentSubmodulePropLinks""" - severity: str - advisory_ghsa_id: str - advisory_summary: str - advisory_url: str + git: Union[str, None] + html: Union[str, None] + self_: str __all__ = ( - "DependencyGraphDiffItemsType", - "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", + "ContentSubmoduleType", + "ContentSubmodulePropLinksType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0237.py b/githubkit/versions/v2022_11_28/types/group_0237.py index 2beeefa41..67d3310f1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0237.py +++ b/githubkit/versions/v2022_11_28/types/group_0237.py @@ -9,69 +9,106 @@ from __future__ import annotations -from typing import List +from typing import List, Union from typing_extensions import TypedDict, NotRequired -class DependencyGraphSpdxSbomType(TypedDict): - """Dependency Graph SPDX SBOM +class FileCommitType(TypedDict): + """File Commit - A schema for the SPDX JSON format returned by the Dependency Graph. + File Commit """ - sbom: DependencyGraphSpdxSbomPropSbomType + content: Union[FileCommitPropContentType, None] + commit: FileCommitPropCommitType -class DependencyGraphSpdxSbomPropSbomType(TypedDict): - """DependencyGraphSpdxSbomPropSbom""" +class FileCommitPropContentType(TypedDict): + """FileCommitPropContent""" - spdxid: str - spdx_version: str - creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfoType - name: str - data_license: str - document_describes: List[str] - document_namespace: str - packages: List[DependencyGraphSpdxSbomPropSbomPropPackagesItemsType] + 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 DependencyGraphSpdxSbomPropSbomPropCreationInfoType(TypedDict): - """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" +class FileCommitPropCommitPropAuthorType(TypedDict): + """FileCommitPropCommitPropAuthor""" - created: str - creators: List[str] + date: NotRequired[str] + name: NotRequired[str] + email: NotRequired[str] -class DependencyGraphSpdxSbomPropSbomPropPackagesItemsType(TypedDict): - """DependencyGraphSpdxSbomPropSbomPropPackagesItems""" +class FileCommitPropCommitPropCommitterType(TypedDict): + """FileCommitPropCommitPropCommitter""" - spdxid: NotRequired[str] + date: NotRequired[str] name: NotRequired[str] - version_info: NotRequired[str] - download_location: NotRequired[str] - files_analyzed: NotRequired[bool] - license_concluded: NotRequired[str] - license_declared: NotRequired[str] - supplier: NotRequired[str] - external_refs: NotRequired[ - List[DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType] - ] + email: NotRequired[str] + + +class FileCommitPropCommitPropTreeType(TypedDict): + """FileCommitPropCommitPropTree""" + + url: NotRequired[str] + sha: NotRequired[str] + + +class FileCommitPropCommitPropParentsItemsType(TypedDict): + """FileCommitPropCommitPropParentsItems""" + + url: NotRequired[str] + html_url: NotRequired[str] + sha: NotRequired[str] -class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType( - TypedDict -): - """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" +class FileCommitPropCommitPropVerificationType(TypedDict): + """FileCommitPropCommitPropVerification""" - reference_category: str - reference_locator: str - reference_type: str + verified: NotRequired[bool] + reason: NotRequired[str] + signature: NotRequired[Union[str, None]] + payload: NotRequired[Union[str, None]] __all__ = ( - "DependencyGraphSpdxSbomType", - "DependencyGraphSpdxSbomPropSbomType", - "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", - "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", + "FileCommitType", + "FileCommitPropContentType", + "FileCommitPropContentPropLinksType", + "FileCommitPropCommitType", + "FileCommitPropCommitPropAuthorType", + "FileCommitPropCommitPropCommitterType", + "FileCommitPropCommitPropTreeType", + "FileCommitPropCommitPropParentsItemsType", + "FileCommitPropCommitPropVerificationType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0238.py b/githubkit/versions/v2022_11_28/types/group_0238.py index e831de330..e7561bbbb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0238.py +++ b/githubkit/versions/v2022_11_28/types/group_0238.py @@ -9,15 +9,37 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired -class MetadataType(TypedDict): - """metadata +class ContributorType(TypedDict): + """Contributor - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. + Contributor """ - -__all__ = ("MetadataType",) + 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] + + +__all__ = ("ContributorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0239.py b/githubkit/versions/v2022_11_28/types/group_0239.py index 899cb44a2..efd9faada 100644 --- a/githubkit/versions/v2022_11_28/types/group_0239.py +++ b/githubkit/versions/v2022_11_28/types/group_0239.py @@ -9,20 +9,42 @@ from __future__ import annotations -from typing import List, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0238 import MetadataType - - -class DependencyType(TypedDict): - """Dependency""" - - package_url: NotRequired[str] - metadata: NotRequired[MetadataType] - relationship: NotRequired[Literal["direct", "indirect"]] - scope: NotRequired[Literal["runtime", "development"]] - dependencies: NotRequired[List[str]] - - -__all__ = ("DependencyType",) +from .group_0001 import SimpleUserType +from .group_0240 import DependabotAlertPropDependencyType +from .group_0032 import DependabotAlertSecurityAdvisoryType +from .group_0031 import DependabotAlertSecurityVulnerabilityType + + +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_0240.py b/githubkit/versions/v2022_11_28/types/group_0240.py index 3262ec78c..63944201f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0240.py +++ b/githubkit/versions/v2022_11_28/types/group_0240.py @@ -9,35 +9,21 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0238 import MetadataType +from .group_0030 import DependabotAlertPackageType -class ManifestType(TypedDict): - """Manifest""" +class DependabotAlertPropDependencyType(TypedDict): + """DependabotAlertPropDependency - name: str - file: NotRequired[ManifestPropFileType] - metadata: NotRequired[MetadataType] - resolved: NotRequired[ManifestPropResolvedType] - - -class ManifestPropFileType(TypedDict): - """ManifestPropFile""" - - source_location: NotRequired[str] - - -class ManifestPropResolvedType(TypedDict): - """ManifestPropResolved - - A collection of resolved package dependencies. + Details for the vulnerable dependency. """ + package: NotRequired[DependabotAlertPackageType] + manifest_path: NotRequired[str] + scope: NotRequired[Union[None, Literal["development", "runtime"]]] + -__all__ = ( - "ManifestType", - "ManifestPropFileType", - "ManifestPropResolvedType", -) +__all__ = ("DependabotAlertPropDependencyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0241.py b/githubkit/versions/v2022_11_28/types/group_0241.py index a02b5af81..1a34a23a4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0241.py +++ b/githubkit/versions/v2022_11_28/types/group_0241.py @@ -9,58 +9,35 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing import List, Union, Literal +from typing_extensions import TypedDict -from .group_0238 import MetadataType +class DependencyGraphDiffItemsType(TypedDict): + """DependencyGraphDiffItems""" -class SnapshotType(TypedDict): - """snapshot - - Create a new snapshot of a repository's dependencies. - """ - - version: int - job: SnapshotPropJobType - sha: str - ref: str - detector: SnapshotPropDetectorType - metadata: NotRequired[MetadataType] - manifests: NotRequired[SnapshotPropManifestsType] - scanned: datetime - - -class SnapshotPropJobType(TypedDict): - """SnapshotPropJob""" - - id: str - correlator: str - html_url: NotRequired[str] - - -class SnapshotPropDetectorType(TypedDict): - """SnapshotPropDetector - - A description of the detector used. - """ - + change_type: Literal["added", "removed"] + manifest: str + ecosystem: str name: str version: str - url: 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 SnapshotPropManifestsType(TypedDict): - """SnapshotPropManifests +class DependencyGraphDiffItemsPropVulnerabilitiesItemsType(TypedDict): + """DependencyGraphDiffItemsPropVulnerabilitiesItems""" - A collection of package manifests, which are a collection of related - dependencies declared in a file or representing a logical group of dependencies. - """ + severity: str + advisory_ghsa_id: str + advisory_summary: str + advisory_url: str __all__ = ( - "SnapshotType", - "SnapshotPropJobType", - "SnapshotPropDetectorType", - "SnapshotPropManifestsType", + "DependencyGraphDiffItemsType", + "DependencyGraphDiffItemsPropVulnerabilitiesItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0242.py b/githubkit/versions/v2022_11_28/types/group_0242.py index 2d0690f5e..d42233903 100644 --- a/githubkit/versions/v2022_11_28/types/group_0242.py +++ b/githubkit/versions/v2022_11_28/types/group_0242.py @@ -9,37 +9,70 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +class DependencyGraphSpdxSbomType(TypedDict): + """Dependency Graph SPDX SBOM -class DeploymentStatusType(TypedDict): - """Deployment Status - - The status of a deployment. + A schema for the SPDX JSON format returned by the Dependency Graph. """ - url: str - id: int - node_id: str - state: Literal[ - "error", "failure", "inactive", "pending", "success", "queued", "in_progress" + sbom: DependencyGraphSpdxSbomPropSbomType + + +class DependencyGraphSpdxSbomPropSbomType(TypedDict): + """DependencyGraphSpdxSbomPropSbom""" + + spdxid: str + spdx_version: str + creation_info: DependencyGraphSpdxSbomPropSbomPropCreationInfoType + name: str + data_license: str + document_describes: List[str] + document_namespace: str + packages: List[DependencyGraphSpdxSbomPropSbomPropPackagesItemsType] + + +class DependencyGraphSpdxSbomPropSbomPropCreationInfoType(TypedDict): + """DependencyGraphSpdxSbomPropSbomPropCreationInfo""" + + created: str + creators: List[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] ] - 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",) + + +class DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType( + TypedDict +): + """DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItems""" + + reference_category: str + reference_locator: str + reference_type: str + + +__all__ = ( + "DependencyGraphSpdxSbomType", + "DependencyGraphSpdxSbomPropSbomType", + "DependencyGraphSpdxSbomPropSbomPropCreationInfoType", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsType", + "DependencyGraphSpdxSbomPropSbomPropPackagesItemsPropExternalRefsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0243.py b/githubkit/versions/v2022_11_28/types/group_0243.py index 2b9241c94..e831de330 100644 --- a/githubkit/versions/v2022_11_28/types/group_0243.py +++ b/githubkit/versions/v2022_11_28/types/group_0243.py @@ -12,15 +12,12 @@ from typing_extensions import TypedDict -class DeploymentBranchPolicySettingsType(TypedDict): - """DeploymentBranchPolicySettings +class MetadataType(TypedDict): + """metadata - The type of deployment branch policy for this environment. To allow all branches - to deploy, set to `null`. + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. """ - protected_branches: bool - custom_branch_policies: bool - -__all__ = ("DeploymentBranchPolicySettingsType",) +__all__ = ("MetadataType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0244.py b/githubkit/versions/v2022_11_28/types/group_0244.py index b5e827956..b6c8c886e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0244.py +++ b/githubkit/versions/v2022_11_28/types/group_0244.py @@ -9,68 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0243 import DeploymentBranchPolicySettingsType -from .group_0245 import EnvironmentPropProtectionRulesItemsAnyof1Type +from .group_0243 import MetadataType -class EnvironmentType(TypedDict): - """Environment +class DependencyType(TypedDict): + """Dependency""" - Details of a deployment environment - """ + package_url: NotRequired[str] + metadata: NotRequired[MetadataType] + relationship: NotRequired[Literal["direct", "indirect"]] + scope: NotRequired[Literal["runtime", "development"]] + dependencies: NotRequired[List[str]] - id: int - node_id: str - name: str - url: str - html_url: str - created_at: datetime - updated_at: datetime - protection_rules: NotRequired[ - List[ - Union[ - EnvironmentPropProtectionRulesItemsAnyof0Type, - EnvironmentPropProtectionRulesItemsAnyof1Type, - EnvironmentPropProtectionRulesItemsAnyof2Type, - ] - ] - ] - deployment_branch_policy: NotRequired[ - Union[DeploymentBranchPolicySettingsType, None] - ] - -class EnvironmentPropProtectionRulesItemsAnyof0Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof0""" - - id: int - node_id: str - type: str - wait_timer: NotRequired[int] - - -class EnvironmentPropProtectionRulesItemsAnyof2Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof2""" - - id: int - node_id: str - type: str - - -class ReposOwnerRepoEnvironmentsGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsGetResponse200""" - - total_count: NotRequired[int] - environments: NotRequired[List[EnvironmentType]] - - -__all__ = ( - "EnvironmentType", - "EnvironmentPropProtectionRulesItemsAnyof0Type", - "EnvironmentPropProtectionRulesItemsAnyof2Type", - "ReposOwnerRepoEnvironmentsGetResponse200Type", -) +__all__ = ("DependencyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0245.py b/githubkit/versions/v2022_11_28/types/group_0245.py index 786599ea4..e14dfb15a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0245.py +++ b/githubkit/versions/v2022_11_28/types/group_0245.py @@ -9,22 +9,35 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0246 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType +from .group_0243 import MetadataType -class EnvironmentPropProtectionRulesItemsAnyof1Type(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof1""" +class ManifestType(TypedDict): + """Manifest""" - id: int - node_id: str - prevent_self_review: NotRequired[bool] - type: str - reviewers: NotRequired[ - List[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType] - ] + name: str + file: NotRequired[ManifestPropFileType] + metadata: NotRequired[MetadataType] + resolved: NotRequired[ManifestPropResolvedType] -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1Type",) +class ManifestPropFileType(TypedDict): + """ManifestPropFile""" + + source_location: NotRequired[str] + + +class ManifestPropResolvedType(TypedDict): + """ManifestPropResolved + + A collection of resolved package dependencies. + """ + + +__all__ = ( + "ManifestType", + "ManifestPropFileType", + "ManifestPropResolvedType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0246.py b/githubkit/versions/v2022_11_28/types/group_0246.py index 2293eb1aa..6274767a4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0246.py +++ b/githubkit/versions/v2022_11_28/types/group_0246.py @@ -9,18 +9,58 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -from .group_0076 import TeamType -from .group_0001 import SimpleUserType +from .group_0243 import MetadataType -class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType(TypedDict): - """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" +class SnapshotType(TypedDict): + """snapshot - type: NotRequired[Literal["User", "Team"]] - reviewer: NotRequired[Union[SimpleUserType, TeamType]] + Create a new snapshot of a repository's dependencies. + """ + version: int + job: SnapshotPropJobType + sha: str + ref: str + detector: SnapshotPropDetectorType + metadata: NotRequired[MetadataType] + manifests: NotRequired[SnapshotPropManifestsType] + scanned: datetime -__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType",) + +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 + + +class SnapshotPropManifestsType(TypedDict): + """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__ = ( + "SnapshotType", + "SnapshotPropJobType", + "SnapshotPropDetectorType", + "SnapshotPropManifestsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0247.py b/githubkit/versions/v2022_11_28/types/group_0247.py index 685ed9914..2d0690f5e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0247.py +++ b/githubkit/versions/v2022_11_28/types/group_0247.py @@ -9,15 +9,37 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType -class DeploymentBranchPolicyNamePatternWithTypeType(TypedDict): - """Deployment branch and tag policy name pattern""" - name: str - type: NotRequired[Literal["branch", "tag"]] +class DeploymentStatusType(TypedDict): + """Deployment Status + The status of a deployment. + """ -__all__ = ("DeploymentBranchPolicyNamePatternWithTypeType",) + url: str + id: int + node_id: str + state: Literal[ + "error", "failure", "inactive", "pending", "success", "queued", "in_progress" + ] + creator: Union[None, SimpleUserType] + description: str + environment: NotRequired[str] + target_url: str + created_at: datetime + updated_at: datetime + deployment_url: str + repository_url: str + environment_url: NotRequired[str] + log_url: NotRequired[str] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] + + +__all__ = ("DeploymentStatusType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0248.py b/githubkit/versions/v2022_11_28/types/group_0248.py index 784015c57..2b9241c94 100644 --- a/githubkit/versions/v2022_11_28/types/group_0248.py +++ b/githubkit/versions/v2022_11_28/types/group_0248.py @@ -12,10 +12,15 @@ from typing_extensions import TypedDict -class DeploymentBranchPolicyNamePatternType(TypedDict): - """Deployment branch policy name pattern""" +class DeploymentBranchPolicySettingsType(TypedDict): + """DeploymentBranchPolicySettings - name: str + The type of deployment branch policy for this environment. To allow all branches + to deploy, set to `null`. + """ + protected_branches: bool + custom_branch_policies: bool -__all__ = ("DeploymentBranchPolicyNamePatternType",) + +__all__ = ("DeploymentBranchPolicySettingsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0249.py b/githubkit/versions/v2022_11_28/types/group_0249.py index 55685e749..08c5fb98d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0249.py +++ b/githubkit/versions/v2022_11_28/types/group_0249.py @@ -9,19 +9,68 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union +from typing_extensions import TypedDict, NotRequired +from .group_0248 import DeploymentBranchPolicySettingsType +from .group_0250 import EnvironmentPropProtectionRulesItemsAnyof1Type -class CustomDeploymentRuleAppType(TypedDict): - """Custom deployment protection rule app - A GitHub App that is providing a custom deployment protection rule. +class EnvironmentType(TypedDict): + """Environment + + Details of a deployment environment """ id: int - slug: str - integration_url: str node_id: str + name: str + url: str + html_url: str + created_at: datetime + updated_at: datetime + protection_rules: NotRequired[ + List[ + Union[ + EnvironmentPropProtectionRulesItemsAnyof0Type, + EnvironmentPropProtectionRulesItemsAnyof1Type, + EnvironmentPropProtectionRulesItemsAnyof2Type, + ] + ] + ] + deployment_branch_policy: NotRequired[ + Union[DeploymentBranchPolicySettingsType, None] + ] + + +class EnvironmentPropProtectionRulesItemsAnyof0Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof0""" + + id: int + node_id: str + type: str + wait_timer: NotRequired[int] + + +class EnvironmentPropProtectionRulesItemsAnyof2Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof2""" + + id: int + node_id: str + type: str + + +class ReposOwnerRepoEnvironmentsGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsGetResponse200""" + + total_count: NotRequired[int] + environments: NotRequired[List[EnvironmentType]] -__all__ = ("CustomDeploymentRuleAppType",) +__all__ = ( + "EnvironmentType", + "EnvironmentPropProtectionRulesItemsAnyof0Type", + "EnvironmentPropProtectionRulesItemsAnyof2Type", + "ReposOwnerRepoEnvironmentsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0250.py b/githubkit/versions/v2022_11_28/types/group_0250.py index 01b35a4f6..0701642ad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0250.py +++ b/githubkit/versions/v2022_11_28/types/group_0250.py @@ -12,35 +12,19 @@ from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0249 import CustomDeploymentRuleAppType +from .group_0251 import EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType -class DeploymentProtectionRuleType(TypedDict): - """Deployment protection rule - - Deployment protection rule - """ +class EnvironmentPropProtectionRulesItemsAnyof1Type(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof1""" 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]] + prevent_self_review: NotRequired[bool] + type: str + reviewers: NotRequired[ + List[EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType] + ] -__all__ = ( - "DeploymentProtectionRuleType", - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", -) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0251.py b/githubkit/versions/v2022_11_28/types/group_0251.py index deb8a4c9a..71c37e313 100644 --- a/githubkit/versions/v2022_11_28/types/group_0251.py +++ b/githubkit/versions/v2022_11_28/types/group_0251.py @@ -9,17 +9,18 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0026 import TeamType +from .group_0001 import SimpleUserType -class ShortBlobType(TypedDict): - """Short Blob - Short Blob - """ +class EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType(TypedDict): + """EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItems""" - url: str - sha: str + type: NotRequired[Literal["User", "Team"]] + reviewer: NotRequired[Union[SimpleUserType, TeamType]] -__all__ = ("ShortBlobType",) +__all__ = ("EnvironmentPropProtectionRulesItemsAnyof1PropReviewersItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0252.py b/githubkit/versions/v2022_11_28/types/group_0252.py index 1a6e42c81..685ed9914 100644 --- a/githubkit/versions/v2022_11_28/types/group_0252.py +++ b/githubkit/versions/v2022_11_28/types/group_0252.py @@ -9,23 +9,15 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -class BlobType(TypedDict): - """Blob +class DeploymentBranchPolicyNamePatternWithTypeType(TypedDict): + """Deployment branch and tag policy name pattern""" - Blob - """ + name: str + type: NotRequired[Literal["branch", "tag"]] - content: str - encoding: str - url: str - sha: str - size: Union[int, None] - node_id: str - highlighted_content: NotRequired[str] - -__all__ = ("BlobType",) +__all__ = ("DeploymentBranchPolicyNamePatternWithTypeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0253.py b/githubkit/versions/v2022_11_28/types/group_0253.py index bf554bd0c..784015c57 100644 --- a/githubkit/versions/v2022_11_28/types/group_0253.py +++ b/githubkit/versions/v2022_11_28/types/group_0253.py @@ -9,80 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union from typing_extensions import TypedDict -class GitCommitType(TypedDict): - """Git Commit +class DeploymentBranchPolicyNamePatternType(TypedDict): + """Deployment branch policy name pattern""" - Low-level Git commit operations within a repository - """ - - sha: str - node_id: str - url: str - author: GitCommitPropAuthorType - committer: GitCommitPropCommitterType - message: str - tree: GitCommitPropTreeType - parents: List[GitCommitPropParentsItemsType] - verification: GitCommitPropVerificationType - html_url: str - - -class GitCommitPropAuthorType(TypedDict): - """GitCommitPropAuthor - - Identifying information for the git-user - """ - - date: datetime - email: str - name: str - - -class GitCommitPropCommitterType(TypedDict): - """GitCommitPropCommitter - - Identifying information for the git-user - """ - - date: datetime - email: str name: str -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] - - -__all__ = ( - "GitCommitType", - "GitCommitPropAuthorType", - "GitCommitPropCommitterType", - "GitCommitPropTreeType", - "GitCommitPropParentsItemsType", - "GitCommitPropVerificationType", -) +__all__ = ("DeploymentBranchPolicyNamePatternType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0254.py b/githubkit/versions/v2022_11_28/types/group_0254.py index e71059c34..55685e749 100644 --- a/githubkit/versions/v2022_11_28/types/group_0254.py +++ b/githubkit/versions/v2022_11_28/types/group_0254.py @@ -12,27 +12,16 @@ from typing_extensions import TypedDict -class GitRefType(TypedDict): - """Git Reference +class CustomDeploymentRuleAppType(TypedDict): + """Custom deployment protection rule app - Git references within a repository + A GitHub App that is providing a custom deployment protection rule. """ - ref: str + id: int + slug: str + integration_url: str node_id: str - url: str - object_: GitRefPropObjectType -class GitRefPropObjectType(TypedDict): - """GitRefPropObject""" - - type: str - sha: str - url: str - - -__all__ = ( - "GitRefType", - "GitRefPropObjectType", -) +__all__ = ("CustomDeploymentRuleAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0255.py b/githubkit/versions/v2022_11_28/types/group_0255.py index c1f8d0997..8c92c3df1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0255.py +++ b/githubkit/versions/v2022_11_28/types/group_0255.py @@ -9,45 +9,38 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0183 import VerificationType +from .group_0254 import CustomDeploymentRuleAppType -class GitTagType(TypedDict): - """Git Tag +class DeploymentProtectionRuleType(TypedDict): + """Deployment protection rule - Metadata for a Git tag + Deployment protection rule """ + id: int node_id: str - tag: str - sha: str - url: str - message: str - tagger: GitTagPropTaggerType - object_: GitTagPropObjectType - verification: NotRequired[VerificationType] + enabled: bool + app: CustomDeploymentRuleAppType -class GitTagPropTaggerType(TypedDict): - """GitTagPropTagger""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200 - date: str - email: str - name: str - - -class GitTagPropObjectType(TypedDict): - """GitTagPropObject""" + Examples: + {'$ref': '#/components/examples/deployment-protection-rules'} + """ - sha: str - type: str - url: str + total_count: NotRequired[int] + custom_deployment_protection_rules: NotRequired[List[DeploymentProtectionRuleType]] __all__ = ( - "GitTagType", - "GitTagPropTaggerType", - "GitTagPropObjectType", + "DeploymentProtectionRuleType", + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0256.py b/githubkit/versions/v2022_11_28/types/group_0256.py index 808d10108..deb8a4c9a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0256.py +++ b/githubkit/versions/v2022_11_28/types/group_0256.py @@ -9,34 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class GitTreeType(TypedDict): - """Git Tree +class ShortBlobType(TypedDict): + """Short Blob - The hierarchy between files in a Git repository. + Short Blob """ - sha: str url: str - truncated: bool - tree: List[GitTreePropTreeItemsType] - - -class GitTreePropTreeItemsType(TypedDict): - """GitTreePropTreeItems""" - - path: NotRequired[str] - mode: NotRequired[str] - type: NotRequired[str] - sha: NotRequired[str] - size: NotRequired[int] - url: NotRequired[str] + sha: str -__all__ = ( - "GitTreeType", - "GitTreePropTreeItemsType", -) +__all__ = ("ShortBlobType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0257.py b/githubkit/versions/v2022_11_28/types/group_0257.py index 2763aab9e..1a6e42c81 100644 --- a/githubkit/versions/v2022_11_28/types/group_0257.py +++ b/githubkit/versions/v2022_11_28/types/group_0257.py @@ -10,15 +10,22 @@ from __future__ import annotations from typing import Union -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class HookResponseType(TypedDict): - """Hook Response""" +class BlobType(TypedDict): + """Blob - code: Union[int, None] - status: Union[str, None] - message: Union[str, None] + Blob + """ + content: str + encoding: str + url: str + sha: str + size: Union[int, None] + node_id: str + highlighted_content: NotRequired[str] -__all__ = ("HookResponseType",) + +__all__ = ("BlobType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0258.py b/githubkit/versions/v2022_11_28/types/group_0258.py index a6860c528..bf554bd0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0258.py +++ b/githubkit/versions/v2022_11_28/types/group_0258.py @@ -9,33 +9,80 @@ from __future__ import annotations -from typing import List from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing import List, Union +from typing_extensions import TypedDict -from .group_0257 import HookResponseType -from .group_0007 import WebhookConfigType +class GitCommitType(TypedDict): + """Git Commit -class HookType(TypedDict): - """Webhook + Low-level Git commit operations within a repository + """ + + sha: str + node_id: str + url: str + author: GitCommitPropAuthorType + committer: GitCommitPropCommitterType + message: str + tree: GitCommitPropTreeType + parents: List[GitCommitPropParentsItemsType] + verification: GitCommitPropVerificationType + html_url: str + + +class GitCommitPropAuthorType(TypedDict): + """GitCommitPropAuthor + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class GitCommitPropCommitterType(TypedDict): + """GitCommitPropCommitter - Webhooks for repositories. + Identifying information for the git-user """ - type: str - id: int + date: datetime + email: str name: str - active: bool - events: List[str] - config: WebhookConfigType - updated_at: datetime - created_at: datetime + + +class GitCommitPropTreeType(TypedDict): + """GitCommitPropTree""" + + sha: str + url: str + + +class GitCommitPropParentsItemsType(TypedDict): + """GitCommitPropParentsItems""" + + sha: str url: str - test_url: str - ping_url: str - deliveries_url: NotRequired[str] - last_response: HookResponseType + html_url: str + + +class GitCommitPropVerificationType(TypedDict): + """GitCommitPropVerification""" + + verified: bool + reason: str + signature: Union[str, None] + payload: Union[str, None] -__all__ = ("HookType",) +__all__ = ( + "GitCommitType", + "GitCommitPropAuthorType", + "GitCommitPropCommitterType", + "GitCommitPropTreeType", + "GitCommitPropParentsItemsType", + "GitCommitPropVerificationType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0259.py b/githubkit/versions/v2022_11_28/types/group_0259.py index c88910d89..e71059c34 100644 --- a/githubkit/versions/v2022_11_28/types/group_0259.py +++ b/githubkit/versions/v2022_11_28/types/group_0259.py @@ -9,67 +9,30 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ImportType(TypedDict): - """Import +class GitRefType(TypedDict): + """Git Reference - A repository import from an external source. + Git references within a repository """ - vcs: Union[str, None] - use_lfs: NotRequired[bool] - vcs_url: str - svc_root: NotRequired[str] - tfvc_project: NotRequired[str] - status: Literal[ - "auth", - "error", - "none", - "detecting", - "choose", - "auth_failed", - "importing", - "mapping", - "waiting_to_push", - "pushing", - "complete", - "setup", - "unknown", - "detection_found_multiple", - "detection_found_nothing", - "detection_needs_auth", - ] - status_text: NotRequired[Union[str, None]] - failed_step: NotRequired[Union[str, None]] - error_message: NotRequired[Union[str, None]] - import_percent: NotRequired[Union[int, None]] - commit_count: NotRequired[Union[int, None]] - push_percent: NotRequired[Union[int, None]] - has_large_files: NotRequired[bool] - large_files_size: NotRequired[int] - large_files_count: NotRequired[int] - project_choices: NotRequired[List[ImportPropProjectChoicesItemsType]] - message: NotRequired[str] - authors_count: NotRequired[Union[int, None]] + ref: str + node_id: str url: str - html_url: str - authors_url: str - repository_url: str - svn_root: NotRequired[str] + object_: GitRefPropObjectType -class ImportPropProjectChoicesItemsType(TypedDict): - """ImportPropProjectChoicesItems""" +class GitRefPropObjectType(TypedDict): + """GitRefPropObject""" - vcs: NotRequired[str] - tfvc_project: NotRequired[str] - human_name: NotRequired[str] + type: str + sha: str + url: str __all__ = ( - "ImportType", - "ImportPropProjectChoicesItemsType", + "GitRefType", + "GitRefPropObjectType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0260.py b/githubkit/versions/v2022_11_28/types/group_0260.py index a760ba55a..1ee915d74 100644 --- a/githubkit/versions/v2022_11_28/types/group_0260.py +++ b/githubkit/versions/v2022_11_28/types/group_0260.py @@ -9,22 +9,45 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired +from .group_0188 import VerificationType -class PorterAuthorType(TypedDict): - """Porter Author - Porter Author +class GitTagType(TypedDict): + """Git Tag + + Metadata for a Git tag """ - id: int - remote_id: str - remote_name: str + node_id: str + tag: str + sha: str + url: str + message: str + tagger: GitTagPropTaggerType + object_: GitTagPropObjectType + verification: NotRequired[VerificationType] + + +class GitTagPropTaggerType(TypedDict): + """GitTagPropTagger""" + + date: str email: str name: str + + +class GitTagPropObjectType(TypedDict): + """GitTagPropObject""" + + sha: str + type: str url: str - import_url: str -__all__ = ("PorterAuthorType",) +__all__ = ( + "GitTagType", + "GitTagPropTaggerType", + "GitTagPropObjectType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0261.py b/githubkit/versions/v2022_11_28/types/group_0261.py index ae1425148..808d10108 100644 --- a/githubkit/versions/v2022_11_28/types/group_0261.py +++ b/githubkit/versions/v2022_11_28/types/group_0261.py @@ -9,19 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class PorterLargeFileType(TypedDict): - """Porter Large File +class GitTreeType(TypedDict): + """Git Tree - Porter Large File + The hierarchy between files in a Git repository. """ - ref_name: str - path: str - oid: str - size: int + sha: str + url: str + truncated: bool + tree: List[GitTreePropTreeItemsType] -__all__ = ("PorterLargeFileType",) +class GitTreePropTreeItemsType(TypedDict): + """GitTreePropTreeItems""" + + path: NotRequired[str] + mode: NotRequired[str] + type: NotRequired[str] + sha: NotRequired[str] + size: NotRequired[int] + url: NotRequired[str] + + +__all__ = ( + "GitTreeType", + "GitTreePropTreeItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0262.py b/githubkit/versions/v2022_11_28/types/group_0262.py index 482864722..2763aab9e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0262.py +++ b/githubkit/versions/v2022_11_28/types/group_0262.py @@ -9,114 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0076 import TeamType -from .group_0035 import IssueType -from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +class HookResponseType(TypedDict): + """Hook Response""" -class IssueEventType(TypedDict): - """Issue Event + code: Union[int, None] + status: Union[str, None] + message: Union[str, None] - Issue Event - """ - id: int - node_id: str - url: str - actor: Union[None, SimpleUserType] - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: datetime - issue: NotRequired[Union[None, IssueType]] - label: NotRequired[IssueEventLabelType] - assignee: NotRequired[Union[None, SimpleUserType]] - assigner: NotRequired[Union[None, SimpleUserType]] - review_requester: NotRequired[Union[None, SimpleUserType]] - requested_reviewer: NotRequired[Union[None, SimpleUserType]] - requested_team: NotRequired[TeamType] - dismissed_review: NotRequired[IssueEventDismissedReviewType] - milestone: NotRequired[IssueEventMilestoneType] - project_card: NotRequired[IssueEventProjectCardType] - rename: NotRequired[IssueEventRenameType] - author_association: NotRequired[ - Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - ] - lock_reason: NotRequired[Union[str, None]] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - - -class IssueEventLabelType(TypedDict): - """Issue Event Label - - Issue Event Label - """ - - name: Union[str, None] - color: Union[str, None] - - -class IssueEventDismissedReviewType(TypedDict): - """Issue Event Dismissed Review""" - - state: str - review_id: int - dismissal_message: Union[str, None] - dismissal_commit_id: NotRequired[Union[str, None]] - - -class IssueEventMilestoneType(TypedDict): - """Issue Event Milestone - - Issue Event Milestone - """ - - title: str - - -class IssueEventProjectCardType(TypedDict): - """Issue Event Project Card - - Issue Event Project Card - """ - - 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__ = ( - "IssueEventType", - "IssueEventLabelType", - "IssueEventDismissedReviewType", - "IssueEventMilestoneType", - "IssueEventProjectCardType", - "IssueEventRenameType", -) +__all__ = ("HookResponseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0263.py b/githubkit/versions/v2022_11_28/types/group_0263.py index 857260701..217287643 100644 --- a/githubkit/versions/v2022_11_28/types/group_0263.py +++ b/githubkit/versions/v2022_11_28/types/group_0263.py @@ -9,39 +9,33 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import List +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +from .group_0262 import HookResponseType +from .group_0007 import WebhookConfigType -class LabeledIssueEventType(TypedDict): - """Labeled Issue Event +class HookType(TypedDict): + """Webhook - Labeled Issue Event + Webhooks for repositories. """ + type: str 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 + 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__ = ( - "LabeledIssueEventType", - "LabeledIssueEventPropLabelType", -) +__all__ = ("HookType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0264.py b/githubkit/versions/v2022_11_28/types/group_0264.py index f0a4b1061..c88910d89 100644 --- a/githubkit/versions/v2022_11_28/types/group_0264.py +++ b/githubkit/versions/v2022_11_28/types/group_0264.py @@ -9,39 +9,67 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +class ImportType(TypedDict): + """Import -class UnlabeledIssueEventType(TypedDict): - """Unlabeled Issue Event - - Unlabeled Issue Event + A repository import from an external source. """ - id: int - node_id: str + vcs: Union[str, None] + use_lfs: NotRequired[bool] + vcs_url: str + svc_root: NotRequired[str] + tfvc_project: NotRequired[str] + status: Literal[ + "auth", + "error", + "none", + "detecting", + "choose", + "auth_failed", + "importing", + "mapping", + "waiting_to_push", + "pushing", + "complete", + "setup", + "unknown", + "detection_found_multiple", + "detection_found_nothing", + "detection_needs_auth", + ] + status_text: NotRequired[Union[str, None]] + failed_step: NotRequired[Union[str, None]] + error_message: NotRequired[Union[str, None]] + import_percent: NotRequired[Union[int, None]] + commit_count: NotRequired[Union[int, None]] + push_percent: NotRequired[Union[int, None]] + has_large_files: NotRequired[bool] + large_files_size: NotRequired[int] + large_files_count: NotRequired[int] + project_choices: NotRequired[List[ImportPropProjectChoicesItemsType]] + message: NotRequired[str] + authors_count: NotRequired[Union[int, None]] url: str - actor: SimpleUserType - event: Literal["unlabeled"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - label: UnlabeledIssueEventPropLabelType + html_url: str + authors_url: str + repository_url: str + svn_root: NotRequired[str] -class UnlabeledIssueEventPropLabelType(TypedDict): - """UnlabeledIssueEventPropLabel""" +class ImportPropProjectChoicesItemsType(TypedDict): + """ImportPropProjectChoicesItems""" - name: str - color: str + vcs: NotRequired[str] + tfvc_project: NotRequired[str] + human_name: NotRequired[str] __all__ = ( - "UnlabeledIssueEventType", - "UnlabeledIssueEventPropLabelType", + "ImportType", + "ImportPropProjectChoicesItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0265.py b/githubkit/versions/v2022_11_28/types/group_0265.py index c5261ecb2..a760ba55a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0265.py +++ b/githubkit/versions/v2022_11_28/types/group_0265.py @@ -9,30 +9,22 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +class PorterAuthorType(TypedDict): + """Porter Author -class AssignedIssueEventType(TypedDict): - """Assigned Issue Event - - Assigned Issue Event + Porter Author """ id: int - node_id: str + remote_id: str + remote_name: str + email: str + name: str url: str - actor: SimpleUserType - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[IntegrationType, None] - assignee: SimpleUserType - assigner: SimpleUserType + import_url: str -__all__ = ("AssignedIssueEventType",) +__all__ = ("PorterAuthorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0266.py b/githubkit/versions/v2022_11_28/types/group_0266.py index c834cdffe..ae1425148 100644 --- a/githubkit/versions/v2022_11_28/types/group_0266.py +++ b/githubkit/versions/v2022_11_28/types/group_0266.py @@ -9,30 +9,19 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +class PorterLargeFileType(TypedDict): + """Porter Large File -class UnassignedIssueEventType(TypedDict): - """Unassigned Issue Event - - Unassigned Issue Event + Porter Large File """ - id: int - node_id: str - url: str - actor: SimpleUserType - event: str - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - assignee: SimpleUserType - assigner: SimpleUserType + ref_name: str + path: str + oid: str + size: int -__all__ = ("UnassignedIssueEventType",) +__all__ = ("PorterLargeFileType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0267.py b/githubkit/versions/v2022_11_28/types/group_0267.py index abcf12396..c26aa1363 100644 --- a/githubkit/versions/v2022_11_28/types/group_0267.py +++ b/githubkit/versions/v2022_11_28/types/group_0267.py @@ -9,38 +9,114 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired +from .group_0026 import TeamType +from .group_0039 import IssueType from .group_0001 import SimpleUserType from .group_0006 import IntegrationType -class MilestonedIssueEventType(TypedDict): - """Milestoned Issue Event +class IssueEventType(TypedDict): + """Issue Event - Milestoned Issue Event + Issue Event """ id: int node_id: str url: str - actor: SimpleUserType - event: Literal["milestoned"] + actor: Union[None, SimpleUserType] + event: str commit_id: Union[str, None] commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - milestone: MilestonedIssueEventPropMilestoneType + 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 MilestonedIssueEventPropMilestoneType(TypedDict): - """MilestonedIssueEventPropMilestone""" +class IssueEventLabelType(TypedDict): + """Issue Event Label + + Issue Event Label + """ + + name: Union[str, None] + color: Union[str, None] + + +class IssueEventDismissedReviewType(TypedDict): + """Issue Event Dismissed Review""" + + state: str + review_id: int + dismissal_message: Union[str, None] + dismissal_commit_id: NotRequired[Union[str, None]] + + +class IssueEventMilestoneType(TypedDict): + """Issue Event Milestone + + Issue Event Milestone + """ title: str +class IssueEventProjectCardType(TypedDict): + """Issue Event Project Card + + Issue Event Project Card + """ + + url: str + id: int + project_url: str + project_id: int + column_name: str + previous_column_name: NotRequired[str] + + +class IssueEventRenameType(TypedDict): + """Issue Event Rename + + Issue Event Rename + """ + + from_: str + to: str + + __all__ = ( - "MilestonedIssueEventType", - "MilestonedIssueEventPropMilestoneType", + "IssueEventType", + "IssueEventLabelType", + "IssueEventDismissedReviewType", + "IssueEventMilestoneType", + "IssueEventProjectCardType", + "IssueEventRenameType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0268.py b/githubkit/versions/v2022_11_28/types/group_0268.py index cc660d0ab..857260701 100644 --- a/githubkit/versions/v2022_11_28/types/group_0268.py +++ b/githubkit/versions/v2022_11_28/types/group_0268.py @@ -16,31 +16,32 @@ from .group_0006 import IntegrationType -class DemilestonedIssueEventType(TypedDict): - """Demilestoned Issue Event +class LabeledIssueEventType(TypedDict): + """Labeled Issue Event - Demilestoned Issue Event + Labeled Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["demilestoned"] + event: Literal["labeled"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - milestone: DemilestonedIssueEventPropMilestoneType + label: LabeledIssueEventPropLabelType -class DemilestonedIssueEventPropMilestoneType(TypedDict): - """DemilestonedIssueEventPropMilestone""" +class LabeledIssueEventPropLabelType(TypedDict): + """LabeledIssueEventPropLabel""" - title: str + name: str + color: str __all__ = ( - "DemilestonedIssueEventType", - "DemilestonedIssueEventPropMilestoneType", + "LabeledIssueEventType", + "LabeledIssueEventPropLabelType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0269.py b/githubkit/versions/v2022_11_28/types/group_0269.py index 8f62f2478..f0a4b1061 100644 --- a/githubkit/versions/v2022_11_28/types/group_0269.py +++ b/githubkit/versions/v2022_11_28/types/group_0269.py @@ -16,32 +16,32 @@ from .group_0006 import IntegrationType -class RenamedIssueEventType(TypedDict): - """Renamed Issue Event +class UnlabeledIssueEventType(TypedDict): + """Unlabeled Issue Event - Renamed Issue Event + Unlabeled Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["renamed"] + event: Literal["unlabeled"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - rename: RenamedIssueEventPropRenameType + label: UnlabeledIssueEventPropLabelType -class RenamedIssueEventPropRenameType(TypedDict): - """RenamedIssueEventPropRename""" +class UnlabeledIssueEventPropLabelType(TypedDict): + """UnlabeledIssueEventPropLabel""" - from_: str - to: str + name: str + color: str __all__ = ( - "RenamedIssueEventType", - "RenamedIssueEventPropRenameType", + "UnlabeledIssueEventType", + "UnlabeledIssueEventPropLabelType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0270.py b/githubkit/versions/v2022_11_28/types/group_0270.py index 6bcdfcbf5..c5261ecb2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0270.py +++ b/githubkit/versions/v2022_11_28/types/group_0270.py @@ -9,32 +9,30 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0076 import TeamType from .group_0001 import SimpleUserType from .group_0006 import IntegrationType -class ReviewRequestedIssueEventType(TypedDict): - """Review Requested Issue Event +class AssignedIssueEventType(TypedDict): + """Assigned Issue Event - Review Requested Issue Event + Assigned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_requested"] + event: str commit_id: Union[str, None] commit_url: Union[str, None] created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - review_requester: SimpleUserType - requested_team: NotRequired[TeamType] - requested_reviewer: NotRequired[SimpleUserType] + performed_via_github_app: Union[IntegrationType, None] + assignee: SimpleUserType + assigner: SimpleUserType -__all__ = ("ReviewRequestedIssueEventType",) +__all__ = ("AssignedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0271.py b/githubkit/versions/v2022_11_28/types/group_0271.py index bb67d506b..c834cdffe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0271.py +++ b/githubkit/versions/v2022_11_28/types/group_0271.py @@ -9,32 +9,30 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0076 import TeamType from .group_0001 import SimpleUserType from .group_0006 import IntegrationType -class ReviewRequestRemovedIssueEventType(TypedDict): - """Review Request Removed Issue Event +class UnassignedIssueEventType(TypedDict): + """Unassigned Issue Event - Review Request Removed Issue Event + Unassigned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_request_removed"] + event: str commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - review_requester: SimpleUserType - requested_team: NotRequired[TeamType] - requested_reviewer: NotRequired[SimpleUserType] + assignee: SimpleUserType + assigner: SimpleUserType -__all__ = ("ReviewRequestRemovedIssueEventType",) +__all__ = ("UnassignedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0272.py b/githubkit/versions/v2022_11_28/types/group_0272.py index 832e0d041..abcf12396 100644 --- a/githubkit/versions/v2022_11_28/types/group_0272.py +++ b/githubkit/versions/v2022_11_28/types/group_0272.py @@ -10,40 +10,37 @@ from __future__ import annotations from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict from .group_0001 import SimpleUserType from .group_0006 import IntegrationType -class ReviewDismissedIssueEventType(TypedDict): - """Review Dismissed Issue Event +class MilestonedIssueEventType(TypedDict): + """Milestoned Issue Event - Review Dismissed Issue Event + Milestoned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["review_dismissed"] + event: Literal["milestoned"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - dismissed_review: ReviewDismissedIssueEventPropDismissedReviewType + milestone: MilestonedIssueEventPropMilestoneType -class ReviewDismissedIssueEventPropDismissedReviewType(TypedDict): - """ReviewDismissedIssueEventPropDismissedReview""" +class MilestonedIssueEventPropMilestoneType(TypedDict): + """MilestonedIssueEventPropMilestone""" - state: str - review_id: int - dismissal_message: Union[str, None] - dismissal_commit_id: NotRequired[str] + title: str __all__ = ( - "ReviewDismissedIssueEventType", - "ReviewDismissedIssueEventPropDismissedReviewType", + "MilestonedIssueEventType", + "MilestonedIssueEventPropMilestoneType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0273.py b/githubkit/versions/v2022_11_28/types/group_0273.py index 9d98b5731..cc660d0ab 100644 --- a/githubkit/versions/v2022_11_28/types/group_0273.py +++ b/githubkit/versions/v2022_11_28/types/group_0273.py @@ -16,22 +16,31 @@ from .group_0006 import IntegrationType -class LockedIssueEventType(TypedDict): - """Locked Issue Event +class DemilestonedIssueEventType(TypedDict): + """Demilestoned Issue Event - Locked Issue Event + Demilestoned Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["locked"] + event: Literal["demilestoned"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - lock_reason: Union[str, None] + milestone: DemilestonedIssueEventPropMilestoneType -__all__ = ("LockedIssueEventType",) +class DemilestonedIssueEventPropMilestoneType(TypedDict): + """DemilestonedIssueEventPropMilestone""" + + title: str + + +__all__ = ( + "DemilestonedIssueEventType", + "DemilestonedIssueEventPropMilestoneType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0274.py b/githubkit/versions/v2022_11_28/types/group_0274.py index 0966e1d37..8f62f2478 100644 --- a/githubkit/versions/v2022_11_28/types/group_0274.py +++ b/githubkit/versions/v2022_11_28/types/group_0274.py @@ -10,42 +10,38 @@ from __future__ import annotations from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict from .group_0001 import SimpleUserType from .group_0006 import IntegrationType -class AddedToProjectIssueEventType(TypedDict): - """Added to Project Issue Event +class RenamedIssueEventType(TypedDict): + """Renamed Issue Event - Added to Project Issue Event + Renamed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["added_to_project"] + event: Literal["renamed"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[AddedToProjectIssueEventPropProjectCardType] + rename: RenamedIssueEventPropRenameType -class AddedToProjectIssueEventPropProjectCardType(TypedDict): - """AddedToProjectIssueEventPropProjectCard""" +class RenamedIssueEventPropRenameType(TypedDict): + """RenamedIssueEventPropRename""" - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] + from_: str + to: str __all__ = ( - "AddedToProjectIssueEventType", - "AddedToProjectIssueEventPropProjectCardType", + "RenamedIssueEventType", + "RenamedIssueEventPropRenameType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0275.py b/githubkit/versions/v2022_11_28/types/group_0275.py index 05c993e52..5b5a08ab0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0275.py +++ b/githubkit/versions/v2022_11_28/types/group_0275.py @@ -12,40 +12,29 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0026 import TeamType from .group_0001 import SimpleUserType from .group_0006 import IntegrationType -class MovedColumnInProjectIssueEventType(TypedDict): - """Moved Column in Project Issue Event +class ReviewRequestedIssueEventType(TypedDict): + """Review Requested Issue Event - Moved Column in Project Issue Event + Review Requested Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["moved_columns_in_project"] + event: Literal["review_requested"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[MovedColumnInProjectIssueEventPropProjectCardType] + review_requester: SimpleUserType + requested_team: NotRequired[TeamType] + requested_reviewer: NotRequired[SimpleUserType] -class MovedColumnInProjectIssueEventPropProjectCardType(TypedDict): - """MovedColumnInProjectIssueEventPropProjectCard""" - - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] - - -__all__ = ( - "MovedColumnInProjectIssueEventType", - "MovedColumnInProjectIssueEventPropProjectCardType", -) +__all__ = ("ReviewRequestedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0276.py b/githubkit/versions/v2022_11_28/types/group_0276.py index de3942a58..97e57c147 100644 --- a/githubkit/versions/v2022_11_28/types/group_0276.py +++ b/githubkit/versions/v2022_11_28/types/group_0276.py @@ -12,40 +12,29 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0026 import TeamType from .group_0001 import SimpleUserType from .group_0006 import IntegrationType -class RemovedFromProjectIssueEventType(TypedDict): - """Removed from Project Issue Event +class ReviewRequestRemovedIssueEventType(TypedDict): + """Review Request Removed Issue Event - Removed from Project Issue Event + Review Request Removed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["removed_from_project"] + event: Literal["review_request_removed"] commit_id: Union[str, None] commit_url: Union[str, None] created_at: str performed_via_github_app: Union[None, IntegrationType, None] - project_card: NotRequired[RemovedFromProjectIssueEventPropProjectCardType] + review_requester: SimpleUserType + requested_team: NotRequired[TeamType] + requested_reviewer: NotRequired[SimpleUserType] -class RemovedFromProjectIssueEventPropProjectCardType(TypedDict): - """RemovedFromProjectIssueEventPropProjectCard""" - - id: int - url: str - project_id: int - project_url: str - column_name: str - previous_column_name: NotRequired[str] - - -__all__ = ( - "RemovedFromProjectIssueEventType", - "RemovedFromProjectIssueEventPropProjectCardType", -) +__all__ = ("ReviewRequestRemovedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0277.py b/githubkit/versions/v2022_11_28/types/group_0277.py index 213bc0091..832e0d041 100644 --- a/githubkit/versions/v2022_11_28/types/group_0277.py +++ b/githubkit/versions/v2022_11_28/types/group_0277.py @@ -16,36 +16,34 @@ from .group_0006 import IntegrationType -class ConvertedNoteToIssueIssueEventType(TypedDict): - """Converted Note to Issue Issue Event +class ReviewDismissedIssueEventType(TypedDict): + """Review Dismissed Issue Event - Converted Note to Issue Issue Event + Review Dismissed Issue Event """ id: int node_id: str url: str actor: SimpleUserType - event: Literal["converted_note_to_issue"] + event: Literal["review_dismissed"] 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] + dismissed_review: ReviewDismissedIssueEventPropDismissedReviewType -class ConvertedNoteToIssueIssueEventPropProjectCardType(TypedDict): - """ConvertedNoteToIssueIssueEventPropProjectCard""" +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__ = ( - "ConvertedNoteToIssueIssueEventType", - "ConvertedNoteToIssueIssueEventPropProjectCardType", + "ReviewDismissedIssueEventType", + "ReviewDismissedIssueEventPropDismissedReviewType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0278.py b/githubkit/versions/v2022_11_28/types/group_0278.py index b11ea9ee0..9d98b5731 100644 --- a/githubkit/versions/v2022_11_28/types/group_0278.py +++ b/githubkit/versions/v2022_11_28/types/group_0278.py @@ -9,24 +9,29 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from typing_extensions import TypedDict +from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType -class LabelType(TypedDict): - """Label - Color-coded labels help you categorize and filter your issues (just like labels - in Gmail). +class LockedIssueEventType(TypedDict): + """Locked Issue Event + + Locked Issue Event """ id: int node_id: str url: str - name: str - description: Union[str, None] - color: str - default: bool + actor: SimpleUserType + event: Literal["locked"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + lock_reason: Union[str, None] -__all__ = ("LabelType",) +__all__ = ("LockedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0279.py b/githubkit/versions/v2022_11_28/types/group_0279.py index 4781773b5..0966e1d37 100644 --- a/githubkit/versions/v2022_11_28/types/group_0279.py +++ b/githubkit/versions/v2022_11_28/types/group_0279.py @@ -9,46 +9,43 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType from .group_0006 import IntegrationType -from .group_0034 import ReactionRollupType -class TimelineCommentEventType(TypedDict): - """Timeline Comment Event +class AddedToProjectIssueEventType(TypedDict): + """Added to Project Issue Event - Timeline Comment Event + Added to Project Issue Event """ - event: Literal["commented"] - actor: SimpleUserType id: int node_id: str url: str - body: NotRequired[str] - body_text: NotRequired[str] - body_html: NotRequired[str] - html_url: str - user: SimpleUserType - created_at: datetime - updated_at: datetime - issue_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - reactions: NotRequired[ReactionRollupType] - - -__all__ = ("TimelineCommentEventType",) + actor: SimpleUserType + event: Literal["added_to_project"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + project_card: NotRequired[AddedToProjectIssueEventPropProjectCardType] + + +class AddedToProjectIssueEventPropProjectCardType(TypedDict): + """AddedToProjectIssueEventPropProjectCard""" + + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] + + +__all__ = ( + "AddedToProjectIssueEventType", + "AddedToProjectIssueEventPropProjectCardType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0280.py b/githubkit/versions/v2022_11_28/types/group_0280.py index e4d770219..05c993e52 100644 --- a/githubkit/versions/v2022_11_28/types/group_0280.py +++ b/githubkit/versions/v2022_11_28/types/group_0280.py @@ -9,25 +9,43 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -from .group_0281 import TimelineCrossReferencedEventPropSourceType +from .group_0006 import IntegrationType -class TimelineCrossReferencedEventType(TypedDict): - """Timeline Cross Referenced Event +class MovedColumnInProjectIssueEventType(TypedDict): + """Moved Column in Project Issue Event - Timeline Cross Referenced Event + Moved Column in Project Issue Event """ - event: Literal["cross-referenced"] - actor: NotRequired[SimpleUserType] - created_at: datetime - updated_at: datetime - source: TimelineCrossReferencedEventPropSourceType - - -__all__ = ("TimelineCrossReferencedEventType",) + id: int + node_id: str + url: str + actor: SimpleUserType + event: Literal["moved_columns_in_project"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + project_card: NotRequired[MovedColumnInProjectIssueEventPropProjectCardType] + + +class MovedColumnInProjectIssueEventPropProjectCardType(TypedDict): + """MovedColumnInProjectIssueEventPropProjectCard""" + + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] + + +__all__ = ( + "MovedColumnInProjectIssueEventType", + "MovedColumnInProjectIssueEventPropProjectCardType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0281.py b/githubkit/versions/v2022_11_28/types/group_0281.py index 872c355e6..de3942a58 100644 --- a/githubkit/versions/v2022_11_28/types/group_0281.py +++ b/githubkit/versions/v2022_11_28/types/group_0281.py @@ -9,16 +9,43 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0035 import IssueType +from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType -class TimelineCrossReferencedEventPropSourceType(TypedDict): - """TimelineCrossReferencedEventPropSource""" +class RemovedFromProjectIssueEventType(TypedDict): + """Removed from Project Issue Event - type: NotRequired[str] - issue: NotRequired[IssueType] + Removed from Project Issue Event + """ + id: int + node_id: str + url: str + actor: SimpleUserType + event: Literal["removed_from_project"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + project_card: NotRequired[RemovedFromProjectIssueEventPropProjectCardType] -__all__ = ("TimelineCrossReferencedEventPropSourceType",) + +class RemovedFromProjectIssueEventPropProjectCardType(TypedDict): + """RemovedFromProjectIssueEventPropProjectCard""" + + id: int + url: str + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] + + +__all__ = ( + "RemovedFromProjectIssueEventType", + "RemovedFromProjectIssueEventPropProjectCardType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0282.py b/githubkit/versions/v2022_11_28/types/group_0282.py index 503b39935..213bc0091 100644 --- a/githubkit/versions/v2022_11_28/types/group_0282.py +++ b/githubkit/versions/v2022_11_28/types/group_0282.py @@ -9,81 +9,43 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType -class TimelineCommittedEventType(TypedDict): - """Timeline Committed Event - Timeline Committed Event - """ - - event: NotRequired[Literal["committed"]] - sha: str - node_id: str - url: str - author: TimelineCommittedEventPropAuthorType - committer: TimelineCommittedEventPropCommitterType - message: str - tree: TimelineCommittedEventPropTreeType - parents: List[TimelineCommittedEventPropParentsItemsType] - verification: TimelineCommittedEventPropVerificationType - html_url: str - - -class TimelineCommittedEventPropAuthorType(TypedDict): - """TimelineCommittedEventPropAuthor - - Identifying information for the git-user - """ - - date: datetime - email: str - name: str +class ConvertedNoteToIssueIssueEventType(TypedDict): + """Converted Note to Issue Issue Event - -class TimelineCommittedEventPropCommitterType(TypedDict): - """TimelineCommittedEventPropCommitter - - Identifying information for the git-user + Converted Note to Issue Issue Event """ - date: datetime - email: str - name: str - - -class TimelineCommittedEventPropTreeType(TypedDict): - """TimelineCommittedEventPropTree""" - - sha: str + id: int + node_id: str url: str + actor: SimpleUserType + event: Literal["converted_note_to_issue"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[IntegrationType, None] + project_card: NotRequired[ConvertedNoteToIssueIssueEventPropProjectCardType] -class TimelineCommittedEventPropParentsItemsType(TypedDict): - """TimelineCommittedEventPropParentsItems""" +class ConvertedNoteToIssueIssueEventPropProjectCardType(TypedDict): + """ConvertedNoteToIssueIssueEventPropProjectCard""" - sha: str + id: int url: str - html_url: str - - -class TimelineCommittedEventPropVerificationType(TypedDict): - """TimelineCommittedEventPropVerification""" - - verified: bool - reason: str - signature: Union[str, None] - payload: Union[str, None] + project_id: int + project_url: str + column_name: str + previous_column_name: NotRequired[str] __all__ = ( - "TimelineCommittedEventType", - "TimelineCommittedEventPropAuthorType", - "TimelineCommittedEventPropCommitterType", - "TimelineCommittedEventPropTreeType", - "TimelineCommittedEventPropParentsItemsType", - "TimelineCommittedEventPropVerificationType", + "ConvertedNoteToIssueIssueEventType", + "ConvertedNoteToIssueIssueEventPropProjectCardType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0283.py b/githubkit/versions/v2022_11_28/types/group_0283.py index 87719cafc..b11ea9ee0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0283.py +++ b/githubkit/versions/v2022_11_28/types/group_0283.py @@ -9,66 +9,24 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType +class LabelType(TypedDict): + """Label -class TimelineReviewedEventType(TypedDict): - """Timeline Reviewed Event - - Timeline Reviewed Event + Color-coded labels help you categorize and filter your issues (just like labels + in Gmail). """ - 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 + url: str + name: str + description: Union[str, None] + color: str + default: bool -__all__ = ( - "TimelineReviewedEventType", - "TimelineReviewedEventPropLinksType", - "TimelineReviewedEventPropLinksPropHtmlType", - "TimelineReviewedEventPropLinksPropPullRequestType", -) +__all__ = ("LabelType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0284.py b/githubkit/versions/v2022_11_28/types/group_0284.py index 336ef116e..e04fd1250 100644 --- a/githubkit/versions/v2022_11_28/types/group_0284.py +++ b/githubkit/versions/v2022_11_28/types/group_0284.py @@ -10,37 +10,33 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -from .group_0034 import ReactionRollupType +from .group_0006 import IntegrationType +from .group_0038 import ReactionRollupType -class PullRequestReviewCommentType(TypedDict): - """Pull Request Review Comment +class TimelineCommentEventType(TypedDict): + """Timeline Comment Event - Pull Request Review Comments are comments on a portion of the Pull Request's - diff. + Timeline Comment Event """ - url: str - pull_request_review_id: Union[int, None] + event: Literal["commented"] + actor: SimpleUserType id: int node_id: str - diff_hunk: str - path: str - position: NotRequired[int] - original_position: NotRequired[int] - commit_id: str - original_commit_id: str - in_reply_to_id: NotRequired[int] + url: str + body: NotRequired[str] + body_text: NotRequired[str] + body_html: NotRequired[str] + html_url: str user: SimpleUserType - body: str created_at: datetime updated_at: datetime - html_url: str - pull_request_url: str + issue_url: str author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -51,61 +47,8 @@ class PullRequestReviewCommentType(TypedDict): "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"]] + performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] 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__ = ( - "PullRequestReviewCommentType", - "PullRequestReviewCommentPropLinksType", - "PullRequestReviewCommentPropLinksPropSelfType", - "PullRequestReviewCommentPropLinksPropHtmlType", - "PullRequestReviewCommentPropLinksPropPullRequestType", - "TimelineLineCommentedEventType", -) +__all__ = ("TimelineCommentEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0285.py b/githubkit/versions/v2022_11_28/types/group_0285.py index 5d0ffc202..562da437a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0285.py +++ b/githubkit/versions/v2022_11_28/types/group_0285.py @@ -9,29 +9,25 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import Literal +from datetime import datetime +from typing_extensions import TypedDict, NotRequired from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +from .group_0286 import TimelineCrossReferencedEventPropSourceType -class TimelineAssignedIssueEventType(TypedDict): - """Timeline Assigned Issue Event +class TimelineCrossReferencedEventType(TypedDict): + """Timeline Cross Referenced Event - Timeline Assigned Issue Event + Timeline Cross Referenced Event """ - id: int - node_id: str - url: str - actor: SimpleUserType - event: Literal["assigned"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - assignee: SimpleUserType + event: Literal["cross-referenced"] + actor: NotRequired[SimpleUserType] + created_at: datetime + updated_at: datetime + source: TimelineCrossReferencedEventPropSourceType -__all__ = ("TimelineAssignedIssueEventType",) +__all__ = ("TimelineCrossReferencedEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0286.py b/githubkit/versions/v2022_11_28/types/group_0286.py index a7f2375d0..f3a00ec35 100644 --- a/githubkit/versions/v2022_11_28/types/group_0286.py +++ b/githubkit/versions/v2022_11_28/types/group_0286.py @@ -9,29 +9,16 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +from .group_0039 import IssueType -class TimelineUnassignedIssueEventType(TypedDict): - """Timeline Unassigned Issue Event +class TimelineCrossReferencedEventPropSourceType(TypedDict): + """TimelineCrossReferencedEventPropSource""" - Timeline Unassigned Issue Event - """ + type: NotRequired[str] + issue: NotRequired[IssueType] - id: int - node_id: str - url: str - actor: SimpleUserType - event: Literal["unassigned"] - commit_id: Union[str, None] - commit_url: Union[str, None] - created_at: str - performed_via_github_app: Union[None, IntegrationType, None] - assignee: SimpleUserType - -__all__ = ("TimelineUnassignedIssueEventType",) +__all__ = ("TimelineCrossReferencedEventPropSourceType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0287.py b/githubkit/versions/v2022_11_28/types/group_0287.py index 85665bfa3..503b39935 100644 --- a/githubkit/versions/v2022_11_28/types/group_0287.py +++ b/githubkit/versions/v2022_11_28/types/group_0287.py @@ -9,29 +9,81 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0006 import IntegrationType +class TimelineCommittedEventType(TypedDict): + """Timeline Committed Event -class StateChangeIssueEventType(TypedDict): - """State Change Issue Event - - State Change Issue Event + Timeline Committed Event """ - id: int + event: NotRequired[Literal["committed"]] + sha: str 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]] + author: TimelineCommittedEventPropAuthorType + committer: TimelineCommittedEventPropCommitterType + message: str + tree: TimelineCommittedEventPropTreeType + parents: List[TimelineCommittedEventPropParentsItemsType] + verification: TimelineCommittedEventPropVerificationType + html_url: str + + +class TimelineCommittedEventPropAuthorType(TypedDict): + """TimelineCommittedEventPropAuthor + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class TimelineCommittedEventPropCommitterType(TypedDict): + """TimelineCommittedEventPropCommitter + + Identifying information for the git-user + """ + + date: datetime + email: str + name: str + + +class TimelineCommittedEventPropTreeType(TypedDict): + """TimelineCommittedEventPropTree""" + + sha: str + url: str + + +class TimelineCommittedEventPropParentsItemsType(TypedDict): + """TimelineCommittedEventPropParentsItems""" + + sha: str + url: str + html_url: str + + +class TimelineCommittedEventPropVerificationType(TypedDict): + """TimelineCommittedEventPropVerification""" + + verified: bool + reason: str + signature: Union[str, None] + payload: Union[str, None] -__all__ = ("StateChangeIssueEventType",) +__all__ = ( + "TimelineCommittedEventType", + "TimelineCommittedEventPropAuthorType", + "TimelineCommittedEventPropCommitterType", + "TimelineCommittedEventPropTreeType", + "TimelineCommittedEventPropParentsItemsType", + "TimelineCommittedEventPropVerificationType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0288.py b/githubkit/versions/v2022_11_28/types/group_0288.py index 270956693..87719cafc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0288.py +++ b/githubkit/versions/v2022_11_28/types/group_0288.py @@ -9,25 +9,66 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class DeployKeyType(TypedDict): - """Deploy Key - An SSH key granting access to a single repository. +class TimelineReviewedEventType(TypedDict): + """Timeline Reviewed Event + + Timeline Reviewed Event """ + event: Literal["reviewed"] id: int - key: str - url: str - title: str - verified: bool - created_at: str - read_only: bool - added_by: NotRequired[Union[str, None]] - last_used: NotRequired[Union[str, None]] + 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__ = ("DeployKeyType",) +__all__ = ( + "TimelineReviewedEventType", + "TimelineReviewedEventPropLinksType", + "TimelineReviewedEventPropLinksPropHtmlType", + "TimelineReviewedEventPropLinksPropPullRequestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0289.py b/githubkit/versions/v2022_11_28/types/group_0289.py index 3e17052fa..2a7db299f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0289.py +++ b/githubkit/versions/v2022_11_28/types/group_0289.py @@ -9,14 +9,103 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0038 import ReactionRollupType -class LanguageType(TypedDict): - """Language - Language +class PullRequestReviewCommentType(TypedDict): + """Pull Request Review Comment + + Pull Request Review Comments are comments on a portion of the Pull Request's + diff. """ + url: str + pull_request_review_id: Union[int, None] + id: int + node_id: str + diff_hunk: str + path: str + position: NotRequired[int] + original_position: NotRequired[int] + commit_id: str + original_commit_id: str + in_reply_to_id: NotRequired[int] + user: SimpleUserType + body: str + created_at: datetime + updated_at: datetime + html_url: str + pull_request_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + links: PullRequestReviewCommentPropLinksType + start_line: NotRequired[Union[int, None]] + original_start_line: NotRequired[Union[int, None]] + start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] + line: NotRequired[int] + original_line: NotRequired[int] + side: NotRequired[Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + reactions: NotRequired[ReactionRollupType] + body_html: NotRequired[str] + body_text: NotRequired[str] + + +class PullRequestReviewCommentPropLinksType(TypedDict): + """PullRequestReviewCommentPropLinks""" + + self_: PullRequestReviewCommentPropLinksPropSelfType + html: PullRequestReviewCommentPropLinksPropHtmlType + pull_request: PullRequestReviewCommentPropLinksPropPullRequestType + + +class PullRequestReviewCommentPropLinksPropSelfType(TypedDict): + """PullRequestReviewCommentPropLinksPropSelf""" + + href: str + + +class PullRequestReviewCommentPropLinksPropHtmlType(TypedDict): + """PullRequestReviewCommentPropLinksPropHtml""" + + href: str + + +class PullRequestReviewCommentPropLinksPropPullRequestType(TypedDict): + """PullRequestReviewCommentPropLinksPropPullRequest""" + + href: str + + +class TimelineLineCommentedEventType(TypedDict): + """Timeline Line Commented Event + + Timeline Line Commented Event + """ + + event: NotRequired[Literal["line_commented"]] + node_id: NotRequired[str] + comments: NotRequired[List[PullRequestReviewCommentType]] + -__all__ = ("LanguageType",) +__all__ = ( + "PullRequestReviewCommentType", + "PullRequestReviewCommentPropLinksType", + "PullRequestReviewCommentPropLinksPropSelfType", + "PullRequestReviewCommentPropLinksPropHtmlType", + "PullRequestReviewCommentPropLinksPropPullRequestType", + "TimelineLineCommentedEventType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0290.py b/githubkit/versions/v2022_11_28/types/group_0290.py index b29269706..5d0ffc202 100644 --- a/githubkit/versions/v2022_11_28/types/group_0290.py +++ b/githubkit/versions/v2022_11_28/types/group_0290.py @@ -9,42 +9,29 @@ from __future__ import annotations -from typing import Union +from typing import Union, Literal from typing_extensions import TypedDict -from .group_0016 import LicenseSimpleType +from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType -class LicenseContentType(TypedDict): - """License Content +class TimelineAssignedIssueEventType(TypedDict): + """Timeline Assigned Issue Event - License Content + Timeline Assigned Issue Event """ - name: str - path: str - sha: str - size: int + id: int + node_id: str url: str - html_url: Union[str, None] - git_url: Union[str, None] - download_url: Union[str, None] - type: str - content: str - encoding: str - links: LicenseContentPropLinksType - license_: Union[None, LicenseSimpleType] + actor: SimpleUserType + event: Literal["assigned"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + assignee: SimpleUserType -class LicenseContentPropLinksType(TypedDict): - """LicenseContentPropLinks""" - - git: Union[str, None] - html: Union[str, None] - self_: str - - -__all__ = ( - "LicenseContentType", - "LicenseContentPropLinksType", -) +__all__ = ("TimelineAssignedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0291.py b/githubkit/versions/v2022_11_28/types/group_0291.py index 9b2e5b242..a7f2375d0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0291.py +++ b/githubkit/versions/v2022_11_28/types/group_0291.py @@ -9,19 +9,29 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict +from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType -class MergedUpstreamType(TypedDict): - """Merged upstream - Results of a successful merge upstream request +class TimelineUnassignedIssueEventType(TypedDict): + """Timeline Unassigned Issue Event + + Timeline Unassigned Issue Event """ - message: NotRequired[str] - merge_type: NotRequired[Literal["merge", "fast-forward", "none"]] - base_branch: NotRequired[str] + id: int + node_id: str + url: str + actor: SimpleUserType + event: Literal["unassigned"] + commit_id: Union[str, None] + commit_url: Union[str, None] + created_at: str + performed_via_github_app: Union[None, IntegrationType, None] + assignee: SimpleUserType -__all__ = ("MergedUpstreamType",) +__all__ = ("TimelineUnassignedIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0292.py b/githubkit/versions/v2022_11_28/types/group_0292.py index a626094ab..85665bfa3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0292.py +++ b/githubkit/versions/v2022_11_28/types/group_0292.py @@ -9,64 +9,29 @@ from __future__ import annotations -from datetime import date, datetime -from typing import List, Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0006 import IntegrationType -class PageType(TypedDict): - """GitHub Pages - The configuration for GitHub Pages for a repository. +class StateChangeIssueEventType(TypedDict): + """State Change Issue Event + + State Change Issue Event """ + id: int + node_id: str url: str - status: Union[None, Literal["built", "building", "errored"]] - cname: Union[str, None] - protected_domain_state: NotRequired[ - Union[None, Literal["pending", "verified", "unverified"]] - ] - pending_domain_unverified_at: NotRequired[Union[datetime, None]] - custom_404: bool - html_url: NotRequired[str] - build_type: NotRequired[Union[None, Literal["legacy", "workflow"]]] - source: NotRequired[PagesSourceHashType] - public: bool - https_certificate: NotRequired[PagesHttpsCertificateType] - https_enforced: NotRequired[bool] - - -class PagesSourceHashType(TypedDict): - """Pages Source Hash""" - - branch: str - path: str - - -class PagesHttpsCertificateType(TypedDict): - """Pages Https Certificate""" - - state: Literal[ - "new", - "authorization_created", - "authorization_pending", - "authorized", - "authorization_revoked", - "issued", - "uploaded", - "approved", - "errored", - "bad_authz", - "destroy_pending", - "dns_changed", - ] - description: str - domains: List[str] - expires_at: NotRequired[date] + actor: SimpleUserType + event: 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__ = ( - "PageType", - "PagesSourceHashType", - "PagesHttpsCertificateType", -) +__all__ = ("StateChangeIssueEventType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0293.py b/githubkit/versions/v2022_11_28/types/group_0293.py index 9fb53f3a2..270956693 100644 --- a/githubkit/versions/v2022_11_28/types/group_0293.py +++ b/githubkit/versions/v2022_11_28/types/group_0293.py @@ -10,35 +10,24 @@ from __future__ import annotations from typing import Union -from datetime import datetime -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class DeployKeyType(TypedDict): + """Deploy Key -class PageBuildType(TypedDict): - """Page Build - - Page Build + An SSH key granting access to a single repository. """ + id: int + key: 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] + title: str + verified: bool + created_at: str + read_only: bool + added_by: NotRequired[Union[str, None]] + last_used: NotRequired[Union[str, None]] -__all__ = ( - "PageBuildType", - "PageBuildPropErrorType", -) +__all__ = ("DeployKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0294.py b/githubkit/versions/v2022_11_28/types/group_0294.py index d7001e4a1..3e17052fa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0294.py +++ b/githubkit/versions/v2022_11_28/types/group_0294.py @@ -12,14 +12,11 @@ from typing_extensions import TypedDict -class PageBuildStatusType(TypedDict): - """Page Build Status +class LanguageType(TypedDict): + """Language - Page Build Status + Language """ - url: str - status: str - -__all__ = ("PageBuildStatusType",) +__all__ = ("LanguageType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0295.py b/githubkit/versions/v2022_11_28/types/group_0295.py index cfd439e5b..b29269706 100644 --- a/githubkit/versions/v2022_11_28/types/group_0295.py +++ b/githubkit/versions/v2022_11_28/types/group_0295.py @@ -10,19 +10,41 @@ from __future__ import annotations from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0016 import LicenseSimpleType -class PageDeploymentType(TypedDict): - """GitHub Pages - The GitHub Pages deployment status. - """ - - id: Union[int, str] - status_url: str - page_url: str - preview_url: NotRequired[str] +class LicenseContentType(TypedDict): + """License Content + License Content + """ -__all__ = ("PageDeploymentType",) + name: str + path: str + sha: str + size: int + url: str + html_url: Union[str, None] + git_url: Union[str, None] + download_url: Union[str, None] + type: str + content: str + encoding: str + links: LicenseContentPropLinksType + license_: Union[None, LicenseSimpleType] + + +class LicenseContentPropLinksType(TypedDict): + """LicenseContentPropLinks""" + + git: Union[str, None] + html: Union[str, None] + self_: str + + +__all__ = ( + "LicenseContentType", + "LicenseContentPropLinksType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0296.py b/githubkit/versions/v2022_11_28/types/group_0296.py index 6420e8ce7..9b2e5b242 100644 --- a/githubkit/versions/v2022_11_28/types/group_0296.py +++ b/githubkit/versions/v2022_11_28/types/group_0296.py @@ -13,24 +13,15 @@ from typing_extensions import TypedDict, NotRequired -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",) +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] + + +__all__ = ("MergedUpstreamType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0297.py b/githubkit/versions/v2022_11_28/types/group_0297.py index ebcf6ff9c..a626094ab 100644 --- a/githubkit/versions/v2022_11_28/types/group_0297.py +++ b/githubkit/versions/v2022_11_28/types/group_0297.py @@ -9,88 +9,64 @@ from __future__ import annotations -from typing import Union +from datetime import date, datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class PagesHealthCheckType(TypedDict): - """Pages Health Check Status +class PageType(TypedDict): + """GitHub Pages - Pages Health Check Status + The configuration for GitHub Pages for a repository. """ - domain: NotRequired[PagesHealthCheckPropDomainType] - alt_domain: NotRequired[Union[PagesHealthCheckPropAltDomainType, None]] - - -class PagesHealthCheckPropDomainType(TypedDict): - """PagesHealthCheckPropDomain""" - - host: NotRequired[str] - uri: NotRequired[str] - nameservers: NotRequired[str] - dns_resolves: NotRequired[bool] - is_proxied: NotRequired[Union[bool, None]] - is_cloudflare_ip: NotRequired[Union[bool, None]] - is_fastly_ip: NotRequired[Union[bool, None]] - is_old_ip_address: NotRequired[Union[bool, None]] - is_a_record: NotRequired[Union[bool, None]] - has_cname_record: NotRequired[Union[bool, None]] - has_mx_records_present: NotRequired[Union[bool, None]] - is_valid_domain: NotRequired[bool] - is_apex_domain: NotRequired[bool] - should_be_a_record: NotRequired[Union[bool, None]] - is_cname_to_github_user_domain: NotRequired[Union[bool, None]] - is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] - is_cname_to_fastly: NotRequired[Union[bool, None]] - is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] - is_non_github_pages_ip_present: NotRequired[Union[bool, None]] - is_pages_domain: NotRequired[bool] - is_served_by_pages: NotRequired[Union[bool, None]] - is_valid: NotRequired[bool] - reason: NotRequired[Union[str, None]] - responds_to_https: NotRequired[bool] - enforces_https: NotRequired[bool] - https_error: NotRequired[Union[str, None]] - is_https_eligible: NotRequired[Union[bool, None]] - caa_error: NotRequired[Union[str, None]] - - -class PagesHealthCheckPropAltDomainType(TypedDict): - """PagesHealthCheckPropAltDomain""" - - host: NotRequired[str] - uri: NotRequired[str] - nameservers: NotRequired[str] - dns_resolves: NotRequired[bool] - is_proxied: NotRequired[Union[bool, None]] - is_cloudflare_ip: NotRequired[Union[bool, None]] - is_fastly_ip: NotRequired[Union[bool, None]] - is_old_ip_address: NotRequired[Union[bool, None]] - is_a_record: NotRequired[Union[bool, None]] - has_cname_record: NotRequired[Union[bool, None]] - has_mx_records_present: NotRequired[Union[bool, None]] - is_valid_domain: NotRequired[bool] - is_apex_domain: NotRequired[bool] - should_be_a_record: NotRequired[Union[bool, None]] - is_cname_to_github_user_domain: NotRequired[Union[bool, None]] - is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] - is_cname_to_fastly: NotRequired[Union[bool, None]] - is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] - is_non_github_pages_ip_present: NotRequired[Union[bool, None]] - is_pages_domain: NotRequired[bool] - is_served_by_pages: NotRequired[Union[bool, None]] - is_valid: NotRequired[bool] - reason: NotRequired[Union[str, None]] - responds_to_https: NotRequired[bool] - enforces_https: NotRequired[bool] - https_error: NotRequired[Union[str, None]] - is_https_eligible: NotRequired[Union[bool, None]] - caa_error: NotRequired[Union[str, None]] + url: str + status: Union[None, Literal["built", "building", "errored"]] + cname: Union[str, None] + protected_domain_state: NotRequired[ + Union[None, Literal["pending", "verified", "unverified"]] + ] + pending_domain_unverified_at: NotRequired[Union[datetime, None]] + custom_404: bool + html_url: NotRequired[str] + build_type: NotRequired[Union[None, Literal["legacy", "workflow"]]] + source: NotRequired[PagesSourceHashType] + public: bool + https_certificate: NotRequired[PagesHttpsCertificateType] + https_enforced: NotRequired[bool] + + +class PagesSourceHashType(TypedDict): + """Pages Source Hash""" + + branch: str + path: str + + +class PagesHttpsCertificateType(TypedDict): + """Pages Https Certificate""" + + state: Literal[ + "new", + "authorization_created", + "authorization_pending", + "authorized", + "authorization_revoked", + "issued", + "uploaded", + "approved", + "errored", + "bad_authz", + "destroy_pending", + "dns_changed", + ] + description: str + domains: List[str] + expires_at: NotRequired[date] __all__ = ( - "PagesHealthCheckType", - "PagesHealthCheckPropDomainType", - "PagesHealthCheckPropAltDomainType", + "PageType", + "PagesSourceHashType", + "PagesHttpsCertificateType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0298.py b/githubkit/versions/v2022_11_28/types/group_0298.py index 947f18852..9fb53f3a2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0298.py +++ b/githubkit/versions/v2022_11_28/types/group_0298.py @@ -9,85 +9,36 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0033 import MilestoneType -from .group_0219 import AutoMergeType from .group_0001 import SimpleUserType -from .group_0075 import TeamSimpleType -from .group_0300 import PullRequestPropBaseType -from .group_0302 import PullRequestPropLinksType -from .group_0299 import PullRequestPropHeadType, PullRequestPropLabelsItemsType -class PullRequestType(TypedDict): - """Pull Request +class PageBuildType(TypedDict): + """Page Build - Pull requests let you tell others about changes you've pushed to a repository on - GitHub. Once a pull request is sent, interested parties can review the set of - changes, discuss potential modifications, and even push follow-up commits if - necessary. + Page Build """ 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]] + status: str + error: PageBuildPropErrorType + pusher: Union[None, SimpleUserType] + commit: str + duration: int 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__ = ("PullRequestType",) +class PageBuildPropErrorType(TypedDict): + """PageBuildPropError""" + + message: Union[str, None] + + +__all__ = ( + "PageBuildType", + "PageBuildPropErrorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0299.py b/githubkit/versions/v2022_11_28/types/group_0299.py index 77cd3f3eb..d7001e4a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0299.py +++ b/githubkit/versions/v2022_11_28/types/group_0299.py @@ -9,195 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class PullRequestPropLabelsItemsType(TypedDict): - """PullRequestPropLabelsItems""" +class PageBuildStatusType(TypedDict): + """Page Build Status - id: int - node_id: str - url: str - name: str - description: Union[str, None] - color: str - default: bool - - -class PullRequestPropHeadType(TypedDict): - """PullRequestPropHead""" - - label: Union[str, None] - ref: str - repo: Union[PullRequestPropHeadPropRepoType, None] - sha: str - user: Union[PullRequestPropHeadPropUserType, None] - - -class PullRequestPropHeadPropRepoType(TypedDict): - """PullRequestPropHeadPropRepo""" - - 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 - node_id: 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 - name: str - notifications_url: str - owner: PullRequestPropHeadPropRepoPropOwnerType - 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 - clone_url: str - default_branch: str - forks: int - forks_count: int - git_url: str - has_downloads: bool - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_discussions: bool - homepage: Union[str, None] - language: Union[str, None] - master_branch: NotRequired[str] - archived: bool - disabled: bool - visibility: NotRequired[str] - mirror_url: Union[str, None] - open_issues: int - open_issues_count: int - permissions: NotRequired[PullRequestPropHeadPropRepoPropPermissionsType] - temp_clone_token: NotRequired[Union[str, None]] - allow_merge_commit: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - license_: Union[PullRequestPropHeadPropRepoPropLicenseType, None] - pushed_at: datetime - size: int - ssh_url: str - stargazers_count: int - svn_url: str - topics: NotRequired[List[str]] - watchers: int - watchers_count: int - created_at: datetime - updated_at: datetime - allow_forking: NotRequired[bool] - is_template: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - - -class PullRequestPropHeadPropRepoPropOwnerType(TypedDict): - """PullRequestPropHeadPropRepoPropOwner""" - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: Union[str, None] - html_url: str - id: int - node_id: str - login: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - - -class PullRequestPropHeadPropRepoPropPermissionsType(TypedDict): - """PullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - push: bool - triage: NotRequired[bool] - pull: bool - - -class PullRequestPropHeadPropRepoPropLicenseType(TypedDict): - """PullRequestPropHeadPropRepoPropLicense""" - - key: str - name: str - url: Union[str, None] - spdx_id: Union[str, None] - node_id: str - - -class PullRequestPropHeadPropUserType(TypedDict): - """PullRequestPropHeadPropUser""" + Page Build Status + """ - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: Union[str, None] - html_url: str - id: int - node_id: str - login: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str url: str + status: str -__all__ = ( - "PullRequestPropLabelsItemsType", - "PullRequestPropHeadType", - "PullRequestPropHeadPropRepoType", - "PullRequestPropHeadPropRepoPropOwnerType", - "PullRequestPropHeadPropRepoPropPermissionsType", - "PullRequestPropHeadPropRepoPropLicenseType", - "PullRequestPropHeadPropUserType", -) +__all__ = ("PageBuildStatusType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0300.py b/githubkit/versions/v2022_11_28/types/group_0300.py index 692d49453..cfd439e5b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0300.py +++ b/githubkit/versions/v2022_11_28/types/group_0300.py @@ -10,45 +10,19 @@ from __future__ import annotations from typing import Union -from typing_extensions import TypedDict - -from .group_0301 import PullRequestPropBasePropRepoType - - -class PullRequestPropBaseType(TypedDict): - """PullRequestPropBase""" - - label: str - ref: str - repo: PullRequestPropBasePropRepoType - sha: str - user: PullRequestPropBasePropUserType - - -class PullRequestPropBasePropUserType(TypedDict): - """PullRequestPropBasePropUser""" - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: Union[str, None] - html_url: str - id: int - node_id: str - login: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - - -__all__ = ( - "PullRequestPropBaseType", - "PullRequestPropBasePropUserType", -) +from typing_extensions import TypedDict, NotRequired + + +class PageDeploymentType(TypedDict): + """GitHub Pages + + The GitHub Pages deployment status. + """ + + id: Union[int, str] + status_url: str + page_url: str + preview_url: NotRequired[str] + + +__all__ = ("PageDeploymentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0301.py b/githubkit/versions/v2022_11_28/types/group_0301.py index 3203d8727..6420e8ce7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0301.py +++ b/githubkit/versions/v2022_11_28/types/group_0301.py @@ -9,138 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0016 import LicenseSimpleType +class PagesDeploymentStatusType(TypedDict): + """GitHub Pages deployment status""" -class PullRequestPropBasePropRepoType(TypedDict): - """PullRequestPropBasePropRepo""" + 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", + ] + ] - 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 - is_template: NotRequired[bool] - node_id: 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 - name: str - notifications_url: str - owner: PullRequestPropBasePropRepoPropOwnerType - 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 - clone_url: str - default_branch: str - forks: int - forks_count: int - git_url: str - has_downloads: bool - has_issues: bool - has_projects: bool - has_wiki: bool - has_pages: bool - has_discussions: bool - homepage: Union[str, None] - language: Union[str, None] - master_branch: NotRequired[str] - archived: bool - disabled: bool - visibility: NotRequired[str] - mirror_url: Union[str, None] - open_issues: int - open_issues_count: int - permissions: NotRequired[PullRequestPropBasePropRepoPropPermissionsType] - temp_clone_token: NotRequired[Union[str, None]] - allow_merge_commit: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - license_: Union[None, LicenseSimpleType] - pushed_at: datetime - size: int - ssh_url: str - stargazers_count: int - svn_url: str - topics: NotRequired[List[str]] - watchers: int - watchers_count: int - created_at: datetime - updated_at: datetime - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - -class PullRequestPropBasePropRepoPropOwnerType(TypedDict): - """PullRequestPropBasePropRepoPropOwner""" - - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: Union[str, None] - html_url: str - id: int - node_id: str - login: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str - - -class PullRequestPropBasePropRepoPropPermissionsType(TypedDict): - """PullRequestPropBasePropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - push: bool - triage: NotRequired[bool] - pull: bool - - -__all__ = ( - "PullRequestPropBasePropRepoType", - "PullRequestPropBasePropRepoPropOwnerType", - "PullRequestPropBasePropRepoPropPermissionsType", -) +__all__ = ("PagesDeploymentStatusType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0302.py b/githubkit/versions/v2022_11_28/types/group_0302.py index 9bcc2594b..ebcf6ff9c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0302.py +++ b/githubkit/versions/v2022_11_28/types/group_0302.py @@ -9,22 +9,88 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired -from .group_0218 import LinkType +class PagesHealthCheckType(TypedDict): + """Pages Health Check Status -class PullRequestPropLinksType(TypedDict): - """PullRequestPropLinks""" + Pages Health Check Status + """ - comments: LinkType - commits: LinkType - statuses: LinkType - html: LinkType - issue: LinkType - review_comments: LinkType - review_comment: LinkType - self_: LinkType + domain: NotRequired[PagesHealthCheckPropDomainType] + alt_domain: NotRequired[Union[PagesHealthCheckPropAltDomainType, None]] -__all__ = ("PullRequestPropLinksType",) +class PagesHealthCheckPropDomainType(TypedDict): + """PagesHealthCheckPropDomain""" + + host: NotRequired[str] + uri: NotRequired[str] + nameservers: NotRequired[str] + dns_resolves: NotRequired[bool] + is_proxied: NotRequired[Union[bool, None]] + is_cloudflare_ip: NotRequired[Union[bool, None]] + is_fastly_ip: NotRequired[Union[bool, None]] + is_old_ip_address: NotRequired[Union[bool, None]] + is_a_record: NotRequired[Union[bool, None]] + has_cname_record: NotRequired[Union[bool, None]] + has_mx_records_present: NotRequired[Union[bool, None]] + is_valid_domain: NotRequired[bool] + is_apex_domain: NotRequired[bool] + should_be_a_record: NotRequired[Union[bool, None]] + is_cname_to_github_user_domain: NotRequired[Union[bool, None]] + is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] + is_cname_to_fastly: NotRequired[Union[bool, None]] + is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] + is_non_github_pages_ip_present: NotRequired[Union[bool, None]] + is_pages_domain: NotRequired[bool] + is_served_by_pages: NotRequired[Union[bool, None]] + is_valid: NotRequired[bool] + reason: NotRequired[Union[str, None]] + responds_to_https: NotRequired[bool] + enforces_https: NotRequired[bool] + https_error: NotRequired[Union[str, None]] + is_https_eligible: NotRequired[Union[bool, None]] + caa_error: NotRequired[Union[str, None]] + + +class PagesHealthCheckPropAltDomainType(TypedDict): + """PagesHealthCheckPropAltDomain""" + + host: NotRequired[str] + uri: NotRequired[str] + nameservers: NotRequired[str] + dns_resolves: NotRequired[bool] + is_proxied: NotRequired[Union[bool, None]] + is_cloudflare_ip: NotRequired[Union[bool, None]] + is_fastly_ip: NotRequired[Union[bool, None]] + is_old_ip_address: NotRequired[Union[bool, None]] + is_a_record: NotRequired[Union[bool, None]] + has_cname_record: NotRequired[Union[bool, None]] + has_mx_records_present: NotRequired[Union[bool, None]] + is_valid_domain: NotRequired[bool] + is_apex_domain: NotRequired[bool] + should_be_a_record: NotRequired[Union[bool, None]] + is_cname_to_github_user_domain: NotRequired[Union[bool, None]] + is_cname_to_pages_dot_github_dot_com: NotRequired[Union[bool, None]] + is_cname_to_fastly: NotRequired[Union[bool, None]] + is_pointed_to_github_pages_ip: NotRequired[Union[bool, None]] + is_non_github_pages_ip_present: NotRequired[Union[bool, None]] + is_pages_domain: NotRequired[bool] + is_served_by_pages: NotRequired[Union[bool, None]] + is_valid: NotRequired[bool] + reason: NotRequired[Union[str, None]] + responds_to_https: NotRequired[bool] + enforces_https: NotRequired[bool] + https_error: NotRequired[Union[str, None]] + is_https_eligible: NotRequired[Union[bool, None]] + caa_error: NotRequired[Union[str, None]] + + +__all__ = ( + "PagesHealthCheckType", + "PagesHealthCheckPropDomainType", + "PagesHealthCheckPropAltDomainType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0303.py b/githubkit/versions/v2022_11_28/types/group_0303.py index 211278b38..46e9c224a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0303.py +++ b/githubkit/versions/v2022_11_28/types/group_0303.py @@ -9,18 +9,85 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0037 import MilestoneType +from .group_0224 import AutoMergeType +from .group_0001 import SimpleUserType +from .group_0025 import TeamSimpleType +from .group_0305 import PullRequestPropBaseType +from .group_0307 import PullRequestPropLinksType +from .group_0304 import PullRequestPropHeadType, PullRequestPropLabelsItemsType -class PullRequestMergeResultType(TypedDict): - """Pull Request Merge Result - Pull Request Merge Result +class PullRequestType(TypedDict): + """Pull Request + + Pull requests let you tell others about changes you've pushed to a repository on + GitHub. Once a pull request is sent, interested parties can review the set of + changes, discuss potential modifications, and even push follow-up commits if + necessary. """ - sha: str + url: str + id: int + node_id: str + html_url: str + diff_url: str + patch_url: str + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str + number: int + state: Literal["open", "closed"] + locked: bool + title: str + user: SimpleUserType + body: Union[str, None] + labels: List[PullRequestPropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] + created_at: datetime + updated_at: datetime + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[List[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] + requested_teams: NotRequired[Union[List[TeamSimpleType], None]] + head: PullRequestPropHeadType + base: PullRequestPropBaseType + links: PullRequestPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] merged: bool - message: str + mergeable: Union[bool, None] + rebaseable: NotRequired[Union[bool, None]] + mergeable_state: str + merged_by: Union[None, SimpleUserType] + comments: int + review_comments: int + maintainer_can_modify: bool + commits: int + additions: int + deletions: int + changed_files: int -__all__ = ("PullRequestMergeResultType",) +__all__ = ("PullRequestType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0304.py b/githubkit/versions/v2022_11_28/types/group_0304.py index 4247d7499..77cd3f3eb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0304.py +++ b/githubkit/versions/v2022_11_28/types/group_0304.py @@ -9,21 +9,195 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -from .group_0076 import TeamType -from .group_0001 import SimpleUserType +class PullRequestPropLabelsItemsType(TypedDict): + """PullRequestPropLabelsItems""" -class PullRequestReviewRequestType(TypedDict): - """Pull Request Review Request + id: int + node_id: str + url: str + name: str + description: Union[str, None] + color: str + default: bool - Pull Request Review Request - """ - users: List[SimpleUserType] - teams: List[TeamType] +class PullRequestPropHeadType(TypedDict): + """PullRequestPropHead""" + label: Union[str, None] + ref: str + repo: Union[PullRequestPropHeadPropRepoType, None] + sha: str + user: Union[PullRequestPropHeadPropUserType, None] -__all__ = ("PullRequestReviewRequestType",) + +class PullRequestPropHeadPropRepoType(TypedDict): + """PullRequestPropHeadPropRepo""" + + 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 + node_id: 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 + name: str + notifications_url: str + owner: PullRequestPropHeadPropRepoPropOwnerType + 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 + clone_url: str + default_branch: str + forks: int + forks_count: int + git_url: str + has_downloads: bool + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_discussions: bool + homepage: Union[str, None] + language: Union[str, None] + master_branch: NotRequired[str] + archived: bool + disabled: bool + visibility: NotRequired[str] + mirror_url: Union[str, None] + open_issues: int + open_issues_count: int + permissions: NotRequired[PullRequestPropHeadPropRepoPropPermissionsType] + temp_clone_token: NotRequired[Union[str, None]] + allow_merge_commit: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + license_: Union[PullRequestPropHeadPropRepoPropLicenseType, None] + pushed_at: datetime + size: int + ssh_url: str + stargazers_count: int + svn_url: str + topics: NotRequired[List[str]] + watchers: int + watchers_count: int + created_at: datetime + updated_at: datetime + allow_forking: NotRequired[bool] + is_template: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + + +class PullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """PullRequestPropHeadPropRepoPropOwner""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: Union[str, None] + html_url: str + id: int + node_id: str + login: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + + +class PullRequestPropHeadPropRepoPropPermissionsType(TypedDict): + """PullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + push: bool + triage: NotRequired[bool] + pull: bool + + +class PullRequestPropHeadPropRepoPropLicenseType(TypedDict): + """PullRequestPropHeadPropRepoPropLicense""" + + key: str + name: str + url: Union[str, None] + spdx_id: Union[str, None] + node_id: str + + +class PullRequestPropHeadPropUserType(TypedDict): + """PullRequestPropHeadPropUser""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: Union[str, None] + html_url: str + id: int + node_id: str + login: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + + +__all__ = ( + "PullRequestPropLabelsItemsType", + "PullRequestPropHeadType", + "PullRequestPropHeadPropRepoType", + "PullRequestPropHeadPropRepoPropOwnerType", + "PullRequestPropHeadPropRepoPropPermissionsType", + "PullRequestPropHeadPropRepoPropLicenseType", + "PullRequestPropHeadPropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0305.py b/githubkit/versions/v2022_11_28/types/group_0305.py index 1c6f49309..85ff2d1d6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0305.py +++ b/githubkit/versions/v2022_11_28/types/group_0305.py @@ -9,65 +9,46 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType +from .group_0306 import PullRequestPropBasePropRepoType -class PullRequestReviewType(TypedDict): - """Pull Request Review +class PullRequestPropBaseType(TypedDict): + """PullRequestPropBase""" - 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", - ] - - -class PullRequestReviewPropLinksType(TypedDict): - """PullRequestReviewPropLinks""" - - html: PullRequestReviewPropLinksPropHtmlType - pull_request: PullRequestReviewPropLinksPropPullRequestType + label: str + ref: str + repo: PullRequestPropBasePropRepoType + sha: str + user: PullRequestPropBasePropUserType -class PullRequestReviewPropLinksPropHtmlType(TypedDict): - """PullRequestReviewPropLinksPropHtml""" +class PullRequestPropBasePropUserType(TypedDict): + """PullRequestPropBasePropUser""" - href: str - - -class PullRequestReviewPropLinksPropPullRequestType(TypedDict): - """PullRequestReviewPropLinksPropPullRequest""" - - href: str + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: Union[str, None] + html_url: str + id: int + node_id: str + login: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str __all__ = ( - "PullRequestReviewType", - "PullRequestReviewPropLinksType", - "PullRequestReviewPropLinksPropHtmlType", - "PullRequestReviewPropLinksPropPullRequestType", + "PullRequestPropBaseType", + "PullRequestPropBasePropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0306.py b/githubkit/versions/v2022_11_28/types/group_0306.py index bebb20270..3203d8727 100644 --- a/githubkit/versions/v2022_11_28/types/group_0306.py +++ b/githubkit/versions/v2022_11_28/types/group_0306.py @@ -10,57 +10,137 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0034 import ReactionRollupType -from .group_0307 import ReviewCommentPropLinksType +from .group_0016 import LicenseSimpleType -class ReviewCommentType(TypedDict): - """Legacy Review Comment +class PullRequestPropBasePropRepoType(TypedDict): + """PullRequestPropBasePropRepo""" - Legacy Review Comment - """ - - url: str - pull_request_review_id: Union[int, None] + 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 + is_template: NotRequired[bool] 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 + 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 + notifications_url: str + owner: PullRequestPropBasePropRepoPropOwnerType + 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 + clone_url: str + default_branch: str + forks: int + forks_count: int + git_url: str + has_downloads: bool + has_issues: bool + has_projects: bool + has_wiki: bool + has_pages: bool + has_discussions: bool + homepage: Union[str, None] + language: Union[str, None] + master_branch: NotRequired[str] + archived: bool + disabled: bool + visibility: NotRequired[str] + mirror_url: Union[str, None] + open_issues: int + open_issues_count: int + permissions: NotRequired[PullRequestPropBasePropRepoPropPermissionsType] + temp_clone_token: NotRequired[Union[str, None]] + allow_merge_commit: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + license_: Union[None, LicenseSimpleType] + pushed_at: datetime + size: int + ssh_url: str + stargazers_count: int + svn_url: str + topics: NotRequired[List[str]] + watchers: int + watchers_count: int created_at: datetime updated_at: datetime + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + + +class PullRequestPropBasePropRepoPropOwnerType(TypedDict): + """PullRequestPropBasePropRepoPropOwner""" + + avatar_url: str + events_url: str + followers_url: str + following_url: str + gists_url: str + gravatar_id: Union[str, None] html_url: str - pull_request_url: str - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - links: ReviewCommentPropLinksType - body_text: NotRequired[str] - body_html: NotRequired[str] - reactions: NotRequired[ReactionRollupType] - side: NotRequired[Literal["LEFT", "RIGHT"]] - start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] - line: NotRequired[int] - original_line: NotRequired[int] - start_line: NotRequired[Union[int, None]] - original_start_line: NotRequired[Union[int, None]] - - -__all__ = ("ReviewCommentType",) + id: int + node_id: str + login: str + organizations_url: str + received_events_url: str + repos_url: str + site_admin: bool + starred_url: str + subscriptions_url: str + type: str + url: str + + +class PullRequestPropBasePropRepoPropPermissionsType(TypedDict): + """PullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + push: bool + triage: NotRequired[bool] + pull: bool + + +__all__ = ( + "PullRequestPropBasePropRepoType", + "PullRequestPropBasePropRepoPropOwnerType", + "PullRequestPropBasePropRepoPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0307.py b/githubkit/versions/v2022_11_28/types/group_0307.py index 9434e9905..357de2902 100644 --- a/githubkit/versions/v2022_11_28/types/group_0307.py +++ b/githubkit/versions/v2022_11_28/types/group_0307.py @@ -11,15 +11,20 @@ from typing_extensions import TypedDict -from .group_0218 import LinkType +from .group_0223 import LinkType -class ReviewCommentPropLinksType(TypedDict): - """ReviewCommentPropLinks""" +class PullRequestPropLinksType(TypedDict): + """PullRequestPropLinks""" - self_: LinkType + comments: LinkType + commits: LinkType + statuses: LinkType html: LinkType - pull_request: LinkType + issue: LinkType + review_comments: LinkType + review_comment: LinkType + self_: LinkType -__all__ = ("ReviewCommentPropLinksType",) +__all__ = ("PullRequestPropLinksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0308.py b/githubkit/versions/v2022_11_28/types/group_0308.py index 763c294c8..211278b38 100644 --- a/githubkit/versions/v2022_11_28/types/group_0308.py +++ b/githubkit/versions/v2022_11_28/types/group_0308.py @@ -9,32 +9,18 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal from typing_extensions import TypedDict -from .group_0001 import SimpleUserType +class PullRequestMergeResultType(TypedDict): + """Pull Request Merge Result -class ReleaseAssetType(TypedDict): - """Release Asset - - Data related to a release. + Pull Request Merge Result """ - url: str - browser_download_url: str - id: int - node_id: str - name: str - label: Union[str, None] - state: Literal["uploaded", "open"] - content_type: str - size: int - download_count: int - created_at: datetime - updated_at: datetime - uploader: Union[None, SimpleUserType] - - -__all__ = ("ReleaseAssetType",) + sha: str + merged: bool + message: str + + +__all__ = ("PullRequestMergeResultType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0309.py b/githubkit/versions/v2022_11_28/types/group_0309.py index f8288c5f2..ecb01e827 100644 --- a/githubkit/versions/v2022_11_28/types/group_0309.py +++ b/githubkit/versions/v2022_11_28/types/group_0309.py @@ -9,44 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0026 import TeamType from .group_0001 import SimpleUserType -from .group_0308 import ReleaseAssetType -from .group_0034 import ReactionRollupType -class ReleaseType(TypedDict): - """Release +class PullRequestReviewRequestType(TypedDict): + """Pull Request Review Request - A release. + Pull Request Review Request """ - 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",) + users: List[SimpleUserType] + teams: List[TeamType] + + +__all__ = ("PullRequestReviewRequestType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0310.py b/githubkit/versions/v2022_11_28/types/group_0310.py index 8cbfbc707..1c6f49309 100644 --- a/githubkit/versions/v2022_11_28/types/group_0310.py +++ b/githubkit/versions/v2022_11_28/types/group_0310.py @@ -9,17 +9,65 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class ReleaseNotesContentType(TypedDict): - """Generated Release Notes Content - Generated name and body describing a release +class PullRequestReviewType(TypedDict): + """Pull Request Review + + Pull Request Reviews are reviews on pull requests. """ - name: str + id: int + node_id: str + user: Union[None, SimpleUserType] body: str + state: str + html_url: str + pull_request_url: str + links: PullRequestReviewPropLinksType + submitted_at: NotRequired[datetime] + commit_id: Union[str, None] + body_html: NotRequired[str] + body_text: NotRequired[str] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + + +class PullRequestReviewPropLinksType(TypedDict): + """PullRequestReviewPropLinks""" + + html: PullRequestReviewPropLinksPropHtmlType + pull_request: PullRequestReviewPropLinksPropPullRequestType + + +class PullRequestReviewPropLinksPropHtmlType(TypedDict): + """PullRequestReviewPropLinksPropHtml""" + + href: str + + +class PullRequestReviewPropLinksPropPullRequestType(TypedDict): + """PullRequestReviewPropLinksPropPullRequest""" + + href: str -__all__ = ("ReleaseNotesContentType",) +__all__ = ( + "PullRequestReviewType", + "PullRequestReviewPropLinksType", + "PullRequestReviewPropLinksPropHtmlType", + "PullRequestReviewPropLinksPropPullRequestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0311.py b/githubkit/versions/v2022_11_28/types/group_0311.py index 7624c5eac..d518533e1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0311.py +++ b/githubkit/versions/v2022_11_28/types/group_0311.py @@ -9,20 +9,58 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0038 import ReactionRollupType +from .group_0312 import ReviewCommentPropLinksType -class RepositoryRuleRulesetInfoType(TypedDict): - """repository ruleset data for rule - User-defined metadata to store domain-specific information limited to 8 keys - with scalar values. +class ReviewCommentType(TypedDict): + """Legacy Review Comment + + Legacy Review Comment """ - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] + url: str + pull_request_review_id: Union[int, None] + id: int + node_id: str + diff_hunk: str + path: str + position: Union[int, None] + original_position: int + commit_id: str + original_commit_id: str + in_reply_to_id: NotRequired[int] + user: Union[None, SimpleUserType] + body: str + created_at: datetime + updated_at: datetime + html_url: str + pull_request_url: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + links: ReviewCommentPropLinksType + body_text: NotRequired[str] + body_html: NotRequired[str] + reactions: NotRequired[ReactionRollupType] + side: NotRequired[Literal["LEFT", "RIGHT"]] + start_side: NotRequired[Union[None, Literal["LEFT", "RIGHT"]]] + line: NotRequired[int] + original_line: NotRequired[int] + start_line: NotRequired[Union[int, None]] + original_start_line: NotRequired[Union[int, None]] -__all__ = ("RepositoryRuleRulesetInfoType",) +__all__ = ("ReviewCommentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0312.py b/githubkit/versions/v2022_11_28/types/group_0312.py index ab76a76e1..afad08f56 100644 --- a/githubkit/versions/v2022_11_28/types/group_0312.py +++ b/githubkit/versions/v2022_11_28/types/group_0312.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0223 import LinkType -class RepositoryRuleDetailedOneof0Type(TypedDict): - """RepositoryRuleDetailedOneof0""" - type: Literal["creation"] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] +class ReviewCommentPropLinksType(TypedDict): + """ReviewCommentPropLinks""" + self_: LinkType + html: LinkType + pull_request: LinkType -__all__ = ("RepositoryRuleDetailedOneof0Type",) + +__all__ = ("ReviewCommentPropLinksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0313.py b/githubkit/versions/v2022_11_28/types/group_0313.py index e159a34f9..763c294c8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0313.py +++ b/githubkit/versions/v2022_11_28/types/group_0313.py @@ -9,20 +9,32 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0111 import RepositoryRuleUpdatePropParametersType +from .group_0001 import SimpleUserType -class RepositoryRuleDetailedOneof1Type(TypedDict): - """RepositoryRuleDetailedOneof1""" +class ReleaseAssetType(TypedDict): + """Release Asset - type: Literal["update"] - parameters: NotRequired[RepositoryRuleUpdatePropParametersType] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] + Data related to a release. + """ + url: str + browser_download_url: str + id: int + node_id: str + name: str + label: Union[str, None] + state: Literal["uploaded", "open"] + content_type: str + size: int + download_count: int + created_at: datetime + updated_at: datetime + uploader: Union[None, SimpleUserType] -__all__ = ("RepositoryRuleDetailedOneof1Type",) + +__all__ = ("ReleaseAssetType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0314.py b/githubkit/versions/v2022_11_28/types/group_0314.py index 6d0ae974e..907cb03f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0314.py +++ b/githubkit/versions/v2022_11_28/types/group_0314.py @@ -9,17 +9,44 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union from typing_extensions import TypedDict, NotRequired - -class RepositoryRuleDetailedOneof2Type(TypedDict): - """RepositoryRuleDetailedOneof2""" - - type: Literal["deletion"] - ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] - ruleset_source: NotRequired[str] - ruleset_id: NotRequired[int] - - -__all__ = ("RepositoryRuleDetailedOneof2Type",) +from .group_0001 import SimpleUserType +from .group_0313 import ReleaseAssetType +from .group_0038 import ReactionRollupType + + +class ReleaseType(TypedDict): + """Release + + A release. + """ + + url: str + html_url: str + assets_url: str + upload_url: str + tarball_url: Union[str, None] + zipball_url: Union[str, None] + id: int + node_id: str + tag_name: str + target_commitish: str + name: Union[str, None] + body: NotRequired[Union[str, None]] + draft: bool + prerelease: bool + created_at: datetime + published_at: Union[datetime, None] + author: SimpleUserType + assets: List[ReleaseAssetType] + body_html: NotRequired[Union[str, None]] + body_text: NotRequired[Union[str, None]] + mentions_count: NotRequired[int] + discussion_url: NotRequired[str] + reactions: NotRequired[ReactionRollupType] + + +__all__ = ("ReleaseType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0315.py b/githubkit/versions/v2022_11_28/types/group_0315.py index 6c9a7937b..8cbfbc707 100644 --- a/githubkit/versions/v2022_11_28/types/group_0315.py +++ b/githubkit/versions/v2022_11_28/types/group_0315.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class RepositoryRuleDetailedOneof3Type(TypedDict): - """RepositoryRuleDetailedOneof3""" +class ReleaseNotesContentType(TypedDict): + """Generated Release Notes Content - type: Literal["required_linear_history"] - 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__ = ("RepositoryRuleDetailedOneof3Type",) + +__all__ = ("ReleaseNotesContentType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0316.py b/githubkit/versions/v2022_11_28/types/group_0316.py index 079f1e282..7624c5eac 100644 --- a/githubkit/versions/v2022_11_28/types/group_0316.py +++ b/githubkit/versions/v2022_11_28/types/group_0316.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0114 import RepositoryRuleRequiredDeploymentsPropParametersType +class RepositoryRuleRulesetInfoType(TypedDict): + """repository ruleset data for rule -class RepositoryRuleDetailedOneof4Type(TypedDict): - """RepositoryRuleDetailedOneof4""" + User-defined metadata to store domain-specific information limited to 8 keys + with scalar values. + """ - type: Literal["required_deployments"] - parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof4Type",) +__all__ = ("RepositoryRuleRulesetInfoType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0317.py b/githubkit/versions/v2022_11_28/types/group_0317.py index f17319898..ab76a76e1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0317.py +++ b/githubkit/versions/v2022_11_28/types/group_0317.py @@ -13,13 +13,13 @@ from typing_extensions import TypedDict, NotRequired -class RepositoryRuleDetailedOneof5Type(TypedDict): - """RepositoryRuleDetailedOneof5""" +class RepositoryRuleDetailedOneof0Type(TypedDict): + """RepositoryRuleDetailedOneof0""" - type: Literal["required_signatures"] + type: Literal["creation"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof5Type",) +__all__ = ("RepositoryRuleDetailedOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0318.py b/githubkit/versions/v2022_11_28/types/group_0318.py index 37dbb575c..a80075d62 100644 --- a/githubkit/versions/v2022_11_28/types/group_0318.py +++ b/githubkit/versions/v2022_11_28/types/group_0318.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0116 import RepositoryRulePullRequestPropParametersType +from .group_0116 import RepositoryRuleUpdatePropParametersType -class RepositoryRuleDetailedOneof6Type(TypedDict): - """RepositoryRuleDetailedOneof6""" +class RepositoryRuleDetailedOneof1Type(TypedDict): + """RepositoryRuleDetailedOneof1""" - type: Literal["pull_request"] - parameters: NotRequired[RepositoryRulePullRequestPropParametersType] + type: Literal["update"] + parameters: NotRequired[RepositoryRuleUpdatePropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof6Type",) +__all__ = ("RepositoryRuleDetailedOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0319.py b/githubkit/versions/v2022_11_28/types/group_0319.py index 6336884d1..6d0ae974e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0319.py +++ b/githubkit/versions/v2022_11_28/types/group_0319.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0118 import RepositoryRuleRequiredStatusChecksPropParametersType +class RepositoryRuleDetailedOneof2Type(TypedDict): + """RepositoryRuleDetailedOneof2""" -class RepositoryRuleDetailedOneof7Type(TypedDict): - """RepositoryRuleDetailedOneof7""" - - type: Literal["required_status_checks"] - parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] + type: Literal["deletion"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof7Type",) +__all__ = ("RepositoryRuleDetailedOneof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0320.py b/githubkit/versions/v2022_11_28/types/group_0320.py index b4700d8d9..6c9a7937b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0320.py +++ b/githubkit/versions/v2022_11_28/types/group_0320.py @@ -13,13 +13,13 @@ from typing_extensions import TypedDict, NotRequired -class RepositoryRuleDetailedOneof8Type(TypedDict): - """RepositoryRuleDetailedOneof8""" +class RepositoryRuleDetailedOneof3Type(TypedDict): + """RepositoryRuleDetailedOneof3""" - type: Literal["non_fast_forward"] + type: Literal["required_linear_history"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof8Type",) +__all__ = ("RepositoryRuleDetailedOneof3Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0321.py b/githubkit/versions/v2022_11_28/types/group_0321.py index 7fc752949..5eb3419a2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0321.py +++ b/githubkit/versions/v2022_11_28/types/group_0321.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0120 import RepositoryRuleCommitMessagePatternPropParametersType +from .group_0119 import RepositoryRuleRequiredDeploymentsPropParametersType -class RepositoryRuleDetailedOneof9Type(TypedDict): - """RepositoryRuleDetailedOneof9""" +class RepositoryRuleDetailedOneof4Type(TypedDict): + """RepositoryRuleDetailedOneof4""" - type: Literal["commit_message_pattern"] - parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] + type: Literal["required_deployments"] + parameters: NotRequired[RepositoryRuleRequiredDeploymentsPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof9Type",) +__all__ = ("RepositoryRuleDetailedOneof4Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0322.py b/githubkit/versions/v2022_11_28/types/group_0322.py index 550fbfd69..f17319898 100644 --- a/githubkit/versions/v2022_11_28/types/group_0322.py +++ b/githubkit/versions/v2022_11_28/types/group_0322.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0122 import RepositoryRuleCommitAuthorEmailPatternPropParametersType +class RepositoryRuleDetailedOneof5Type(TypedDict): + """RepositoryRuleDetailedOneof5""" -class RepositoryRuleDetailedOneof10Type(TypedDict): - """RepositoryRuleDetailedOneof10""" - - type: Literal["commit_author_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] + type: Literal["required_signatures"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof10Type",) +__all__ = ("RepositoryRuleDetailedOneof5Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0323.py b/githubkit/versions/v2022_11_28/types/group_0323.py index edd3fff94..ff3ad1c22 100644 --- a/githubkit/versions/v2022_11_28/types/group_0323.py +++ b/githubkit/versions/v2022_11_28/types/group_0323.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0124 import RepositoryRuleCommitterEmailPatternPropParametersType +from .group_0121 import RepositoryRulePullRequestPropParametersType -class RepositoryRuleDetailedOneof11Type(TypedDict): - """RepositoryRuleDetailedOneof11""" +class RepositoryRuleDetailedOneof6Type(TypedDict): + """RepositoryRuleDetailedOneof6""" - type: Literal["committer_email_pattern"] - parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] + type: Literal["pull_request"] + parameters: NotRequired[RepositoryRulePullRequestPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof11Type",) +__all__ = ("RepositoryRuleDetailedOneof6Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0324.py b/githubkit/versions/v2022_11_28/types/group_0324.py index 5f67c4311..3dbeb10b5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0324.py +++ b/githubkit/versions/v2022_11_28/types/group_0324.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0126 import RepositoryRuleBranchNamePatternPropParametersType +from .group_0123 import RepositoryRuleRequiredStatusChecksPropParametersType -class RepositoryRuleDetailedOneof12Type(TypedDict): - """RepositoryRuleDetailedOneof12""" +class RepositoryRuleDetailedOneof7Type(TypedDict): + """RepositoryRuleDetailedOneof7""" - type: Literal["branch_name_pattern"] - parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] + type: Literal["required_status_checks"] + parameters: NotRequired[RepositoryRuleRequiredStatusChecksPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof12Type",) +__all__ = ("RepositoryRuleDetailedOneof7Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0325.py b/githubkit/versions/v2022_11_28/types/group_0325.py index f41c81950..b4700d8d9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0325.py +++ b/githubkit/versions/v2022_11_28/types/group_0325.py @@ -12,17 +12,14 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0128 import RepositoryRuleTagNamePatternPropParametersType +class RepositoryRuleDetailedOneof8Type(TypedDict): + """RepositoryRuleDetailedOneof8""" -class RepositoryRuleDetailedOneof13Type(TypedDict): - """RepositoryRuleDetailedOneof13""" - - type: Literal["tag_name_pattern"] - parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] + type: Literal["non_fast_forward"] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof13Type",) +__all__ = ("RepositoryRuleDetailedOneof8Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0326.py b/githubkit/versions/v2022_11_28/types/group_0326.py index 1bd5bbe96..37d298aa7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0326.py +++ b/githubkit/versions/v2022_11_28/types/group_0326.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0131 import RepositoryRuleWorkflowsPropParametersType +from .group_0125 import RepositoryRuleCommitMessagePatternPropParametersType -class RepositoryRuleDetailedOneof14Type(TypedDict): - """RepositoryRuleDetailedOneof14""" +class RepositoryRuleDetailedOneof9Type(TypedDict): + """RepositoryRuleDetailedOneof9""" - type: Literal["workflows"] - parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + type: Literal["commit_message_pattern"] + parameters: NotRequired[RepositoryRuleCommitMessagePatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof14Type",) +__all__ = ("RepositoryRuleDetailedOneof9Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0327.py b/githubkit/versions/v2022_11_28/types/group_0327.py index b770beba3..06509dbb1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0327.py +++ b/githubkit/versions/v2022_11_28/types/group_0327.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0133 import RepositoryRuleCodeScanningPropParametersType +from .group_0127 import RepositoryRuleCommitAuthorEmailPatternPropParametersType -class RepositoryRuleDetailedOneof15Type(TypedDict): - """RepositoryRuleDetailedOneof15""" +class RepositoryRuleDetailedOneof10Type(TypedDict): + """RepositoryRuleDetailedOneof10""" - type: Literal["code_scanning"] - parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + type: Literal["commit_author_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitAuthorEmailPatternPropParametersType] ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] ruleset_source: NotRequired[str] ruleset_id: NotRequired[int] -__all__ = ("RepositoryRuleDetailedOneof15Type",) +__all__ = ("RepositoryRuleDetailedOneof10Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0328.py b/githubkit/versions/v2022_11_28/types/group_0328.py index b6471d952..89916ef4e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0328.py +++ b/githubkit/versions/v2022_11_28/types/group_0328.py @@ -9,36 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType - - -class SecretScanningAlertType(TypedDict): - """SecretScanningAlert""" - - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - state: NotRequired[Literal["open", "resolved"]] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - resolution_comment: NotRequired[Union[str, None]] - secret_type: NotRequired[str] - secret_type_display_name: NotRequired[str] - secret: NotRequired[str] - push_protection_bypassed: NotRequired[Union[bool, None]] - push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] - push_protection_bypassed_at: NotRequired[Union[datetime, None]] - validity: NotRequired[Literal["active", "inactive", "unknown"]] - - -__all__ = ("SecretScanningAlertType",) +from .group_0129 import RepositoryRuleCommitterEmailPatternPropParametersType + + +class RepositoryRuleDetailedOneof11Type(TypedDict): + """RepositoryRuleDetailedOneof11""" + + type: Literal["committer_email_pattern"] + parameters: NotRequired[RepositoryRuleCommitterEmailPatternPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] + + +__all__ = ("RepositoryRuleDetailedOneof11Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0329.py b/githubkit/versions/v2022_11_28/types/group_0329.py index 65483031c..7d9bf5c27 100644 --- a/githubkit/versions/v2022_11_28/types/group_0329.py +++ b/githubkit/versions/v2022_11_28/types/group_0329.py @@ -9,80 +9,20 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0131 import RepositoryRuleBranchNamePatternPropParametersType -class RepositoryAdvisoryCreateType(TypedDict): - """RepositoryAdvisoryCreate""" - summary: str - description: str - cve_id: NotRequired[Union[str, None]] - vulnerabilities: List[RepositoryAdvisoryCreatePropVulnerabilitiesItemsType] - cwe_ids: NotRequired[Union[List[str], None]] - credits_: NotRequired[ - Union[List[RepositoryAdvisoryCreatePropCreditsItemsType], None] - ] - severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] - cvss_vector_string: NotRequired[Union[str, None]] - start_private_fork: NotRequired[bool] +class RepositoryRuleDetailedOneof12Type(TypedDict): + """RepositoryRuleDetailedOneof12""" + type: Literal["branch_name_pattern"] + parameters: NotRequired[RepositoryRuleBranchNamePatternPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -class RepositoryAdvisoryCreatePropCreditsItemsType(TypedDict): - """RepositoryAdvisoryCreatePropCreditsItems""" - login: str - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsType(TypedDict): - """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[List[str], None]] - - -class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType(TypedDict): - """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: NotRequired[Union[str, None]] - - -__all__ = ( - "RepositoryAdvisoryCreateType", - "RepositoryAdvisoryCreatePropCreditsItemsType", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", - "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", -) +__all__ = ("RepositoryRuleDetailedOneof12Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0330.py b/githubkit/versions/v2022_11_28/types/group_0330.py index 114417d81..9ce350d99 100644 --- a/githubkit/versions/v2022_11_28/types/group_0330.py +++ b/githubkit/versions/v2022_11_28/types/group_0330.py @@ -9,61 +9,20 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0133 import RepositoryRuleTagNamePatternPropParametersType -class PrivateVulnerabilityReportCreateType(TypedDict): - """PrivateVulnerabilityReportCreate""" - summary: str - description: str - vulnerabilities: NotRequired[ - Union[List[PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType], None] - ] - cwe_ids: NotRequired[Union[List[str], None]] - severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] - cvss_vector_string: NotRequired[Union[str, None]] - start_private_fork: NotRequired[bool] +class RepositoryRuleDetailedOneof13Type(TypedDict): + """RepositoryRuleDetailedOneof13""" + type: Literal["tag_name_pattern"] + parameters: NotRequired[RepositoryRuleTagNamePatternPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType(TypedDict): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" - package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[List[str], None]] - - -class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType( - TypedDict -): - """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: NotRequired[Union[str, None]] - - -__all__ = ( - "PrivateVulnerabilityReportCreateType", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", - "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", -) +__all__ = ("RepositoryRuleDetailedOneof13Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0331.py b/githubkit/versions/v2022_11_28/types/group_0331.py index 3e277fb86..3e52288a6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0331.py +++ b/githubkit/versions/v2022_11_28/types/group_0331.py @@ -9,84 +9,20 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0136 import RepositoryRuleWorkflowsPropParametersType -class RepositoryAdvisoryUpdateType(TypedDict): - """RepositoryAdvisoryUpdate""" - summary: NotRequired[str] - description: NotRequired[str] - cve_id: NotRequired[Union[str, None]] - vulnerabilities: NotRequired[ - List[RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType] - ] - cwe_ids: NotRequired[Union[List[str], None]] - credits_: NotRequired[ - Union[List[RepositoryAdvisoryUpdatePropCreditsItemsType], None] - ] - severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] - cvss_vector_string: NotRequired[Union[str, None]] - state: NotRequired[Literal["published", "closed", "draft"]] - collaborating_users: NotRequired[Union[List[str], None]] - collaborating_teams: NotRequired[Union[List[str], None]] +class RepositoryRuleDetailedOneof14Type(TypedDict): + """RepositoryRuleDetailedOneof14""" + type: Literal["workflows"] + parameters: NotRequired[RepositoryRuleWorkflowsPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] -class RepositoryAdvisoryUpdatePropCreditsItemsType(TypedDict): - """RepositoryAdvisoryUpdatePropCreditsItems""" - login: str - type: Literal[ - "analyst", - "finder", - "reporter", - "coordinator", - "remediation_developer", - "remediation_reviewer", - "remediation_verifier", - "tool", - "sponsor", - "other", - ] - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType(TypedDict): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" - - package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType - vulnerable_version_range: NotRequired[Union[str, None]] - patched_versions: NotRequired[Union[str, None]] - vulnerable_functions: NotRequired[Union[List[str], None]] - - -class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType(TypedDict): - """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage - - The name of the package affected by the vulnerability. - """ - - ecosystem: Literal[ - "rubygems", - "npm", - "pip", - "maven", - "nuget", - "composer", - "go", - "rust", - "erlang", - "actions", - "pub", - "other", - "swift", - ] - name: NotRequired[Union[str, None]] - - -__all__ = ( - "RepositoryAdvisoryUpdateType", - "RepositoryAdvisoryUpdatePropCreditsItemsType", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", - "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", -) +__all__ = ("RepositoryRuleDetailedOneof14Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0332.py b/githubkit/versions/v2022_11_28/types/group_0332.py index 7d81a1637..6f8fcc460 100644 --- a/githubkit/versions/v2022_11_28/types/group_0332.py +++ b/githubkit/versions/v2022_11_28/types/group_0332.py @@ -9,21 +9,20 @@ from __future__ import annotations -from typing import Union -from datetime import datetime -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +from .group_0138 import RepositoryRuleCodeScanningPropParametersType -class StargazerType(TypedDict): - """Stargazer +class RepositoryRuleDetailedOneof15Type(TypedDict): + """RepositoryRuleDetailedOneof15""" - Stargazer - """ + type: Literal["code_scanning"] + parameters: NotRequired[RepositoryRuleCodeScanningPropParametersType] + ruleset_source_type: NotRequired[Literal["Repository", "Organization"]] + ruleset_source: NotRequired[str] + ruleset_id: NotRequired[int] - starred_at: datetime - user: Union[None, SimpleUserType] - -__all__ = ("StargazerType",) +__all__ = ("RepositoryRuleDetailedOneof15Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0333.py b/githubkit/versions/v2022_11_28/types/group_0333.py index 3b359fe67..b6471d952 100644 --- a/githubkit/versions/v2022_11_28/types/group_0333.py +++ b/githubkit/versions/v2022_11_28/types/group_0333.py @@ -9,19 +9,36 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict - - -class CommitActivityType(TypedDict): - """Commit Activity - - Commit Activity - """ - - days: List[int] - total: int - week: int - - -__all__ = ("CommitActivityType",) +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0001 import SimpleUserType + + +class SecretScanningAlertType(TypedDict): + """SecretScanningAlert""" + + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + state: NotRequired[Literal["open", "resolved"]] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + resolution_comment: NotRequired[Union[str, None]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + secret: NotRequired[str] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + + +__all__ = ("SecretScanningAlertType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0334.py b/githubkit/versions/v2022_11_28/types/group_0334.py index 14086fd36..65483031c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0334.py +++ b/githubkit/versions/v2022_11_28/types/group_0334.py @@ -9,33 +9,80 @@ from __future__ import annotations -from typing import List, Union +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class RepositoryAdvisoryCreateType(TypedDict): + """RepositoryAdvisoryCreate""" -class ContributorActivityType(TypedDict): - """Contributor Activity + summary: str + description: str + cve_id: NotRequired[Union[str, None]] + vulnerabilities: List[RepositoryAdvisoryCreatePropVulnerabilitiesItemsType] + cwe_ids: NotRequired[Union[List[str], None]] + credits_: NotRequired[ + Union[List[RepositoryAdvisoryCreatePropCreditsItemsType], None] + ] + severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] + cvss_vector_string: NotRequired[Union[str, None]] + start_private_fork: NotRequired[bool] + + +class RepositoryAdvisoryCreatePropCreditsItemsType(TypedDict): + """RepositoryAdvisoryCreatePropCreditsItems""" + + login: str + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] - Contributor Activity - """ - author: Union[None, SimpleUserType] - total: int - weeks: List[ContributorActivityPropWeeksItemsType] +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsType(TypedDict): + """RepositoryAdvisoryCreatePropVulnerabilitiesItems""" + package: RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType + vulnerable_version_range: NotRequired[Union[str, None]] + patched_versions: NotRequired[Union[str, None]] + vulnerable_functions: NotRequired[Union[List[str], None]] -class ContributorActivityPropWeeksItemsType(TypedDict): - """ContributorActivityPropWeeksItems""" - w: NotRequired[int] - a: NotRequired[int] - d: NotRequired[int] - c: NotRequired[int] +class RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType(TypedDict): + """RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] __all__ = ( - "ContributorActivityType", - "ContributorActivityPropWeeksItemsType", + "RepositoryAdvisoryCreateType", + "RepositoryAdvisoryCreatePropCreditsItemsType", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsType", + "RepositoryAdvisoryCreatePropVulnerabilitiesItemsPropPackageType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0335.py b/githubkit/versions/v2022_11_28/types/group_0335.py index 905ae039a..114417d81 100644 --- a/githubkit/versions/v2022_11_28/types/group_0335.py +++ b/githubkit/versions/v2022_11_28/types/group_0335.py @@ -9,15 +9,61 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -class ParticipationStatsType(TypedDict): - """Participation Stats""" +class PrivateVulnerabilityReportCreateType(TypedDict): + """PrivateVulnerabilityReportCreate""" - all_: List[int] - owner: List[int] + summary: str + description: str + vulnerabilities: NotRequired[ + Union[List[PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType], None] + ] + cwe_ids: NotRequired[Union[List[str], None]] + severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] + cvss_vector_string: NotRequired[Union[str, None]] + start_private_fork: NotRequired[bool] -__all__ = ("ParticipationStatsType",) +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType(TypedDict): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItems""" + + package: PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType + vulnerable_version_range: NotRequired[Union[str, None]] + patched_versions: NotRequired[Union[str, None]] + vulnerable_functions: NotRequired[Union[List[str], None]] + + +class PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType( + TypedDict +): + """PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. + """ + + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] + + +__all__ = ( + "PrivateVulnerabilityReportCreateType", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsType", + "PrivateVulnerabilityReportCreatePropVulnerabilitiesItemsPropPackageType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0336.py b/githubkit/versions/v2022_11_28/types/group_0336.py index 0099f28ce..3e277fb86 100644 --- a/githubkit/versions/v2022_11_28/types/group_0336.py +++ b/githubkit/versions/v2022_11_28/types/group_0336.py @@ -9,23 +9,84 @@ from __future__ import annotations -from typing import Union -from datetime import datetime -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -class RepositorySubscriptionType(TypedDict): - """Repository Invitation +class RepositoryAdvisoryUpdateType(TypedDict): + """RepositoryAdvisoryUpdate""" - Repository invitations let you manage who you collaborate with. + summary: NotRequired[str] + description: NotRequired[str] + cve_id: NotRequired[Union[str, None]] + vulnerabilities: NotRequired[ + List[RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType] + ] + cwe_ids: NotRequired[Union[List[str], None]] + credits_: NotRequired[ + Union[List[RepositoryAdvisoryUpdatePropCreditsItemsType], None] + ] + severity: NotRequired[Union[None, Literal["critical", "high", "medium", "low"]]] + cvss_vector_string: NotRequired[Union[str, None]] + state: NotRequired[Literal["published", "closed", "draft"]] + collaborating_users: NotRequired[Union[List[str], None]] + collaborating_teams: NotRequired[Union[List[str], None]] + + +class RepositoryAdvisoryUpdatePropCreditsItemsType(TypedDict): + """RepositoryAdvisoryUpdatePropCreditsItems""" + + login: str + type: Literal[ + "analyst", + "finder", + "reporter", + "coordinator", + "remediation_developer", + "remediation_reviewer", + "remediation_verifier", + "tool", + "sponsor", + "other", + ] + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType(TypedDict): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItems""" + + package: RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType + vulnerable_version_range: NotRequired[Union[str, None]] + patched_versions: NotRequired[Union[str, None]] + vulnerable_functions: NotRequired[Union[List[str], None]] + + +class RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType(TypedDict): + """RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackage + + The name of the package affected by the vulnerability. """ - subscribed: bool - ignored: bool - reason: Union[str, None] - created_at: datetime - url: str - repository_url: str + ecosystem: Literal[ + "rubygems", + "npm", + "pip", + "maven", + "nuget", + "composer", + "go", + "rust", + "erlang", + "actions", + "pub", + "other", + "swift", + ] + name: NotRequired[Union[str, None]] -__all__ = ("RepositorySubscriptionType",) +__all__ = ( + "RepositoryAdvisoryUpdateType", + "RepositoryAdvisoryUpdatePropCreditsItemsType", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsType", + "RepositoryAdvisoryUpdatePropVulnerabilitiesItemsPropPackageType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0337.py b/githubkit/versions/v2022_11_28/types/group_0337.py index 7a59979c3..7d81a1637 100644 --- a/githubkit/versions/v2022_11_28/types/group_0337.py +++ b/githubkit/versions/v2022_11_28/types/group_0337.py @@ -9,30 +9,21 @@ from __future__ import annotations +from typing import Union +from datetime import datetime from typing_extensions import TypedDict +from .group_0001 import SimpleUserType -class TagType(TypedDict): - """Tag - Tag - """ - - name: str - commit: TagPropCommitType - zipball_url: str - tarball_url: str - node_id: str +class StargazerType(TypedDict): + """Stargazer + Stargazer + """ -class TagPropCommitType(TypedDict): - """TagPropCommit""" - - sha: str - url: str + starred_at: datetime + user: Union[None, SimpleUserType] -__all__ = ( - "TagType", - "TagPropCommitType", -) +__all__ = ("StargazerType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0338.py b/githubkit/versions/v2022_11_28/types/group_0338.py index d07e7c979..3b359fe67 100644 --- a/githubkit/versions/v2022_11_28/types/group_0338.py +++ b/githubkit/versions/v2022_11_28/types/group_0338.py @@ -9,20 +9,19 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class TagProtectionType(TypedDict): - """Tag protection +class CommitActivityType(TypedDict): + """Commit Activity - Tag protection + Commit Activity """ - id: NotRequired[int] - created_at: NotRequired[str] - updated_at: NotRequired[str] - enabled: NotRequired[bool] - pattern: str + days: List[int] + total: int + week: int -__all__ = ("TagProtectionType",) +__all__ = ("CommitActivityType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0339.py b/githubkit/versions/v2022_11_28/types/group_0339.py index c62332d11..14086fd36 100644 --- a/githubkit/versions/v2022_11_28/types/group_0339.py +++ b/githubkit/versions/v2022_11_28/types/group_0339.py @@ -9,17 +9,33 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class TopicType(TypedDict): - """Topic - A topic aggregates entities that are related to a subject. +class ContributorActivityType(TypedDict): + """Contributor Activity + + Contributor Activity """ - names: List[str] + author: Union[None, SimpleUserType] + total: int + weeks: List[ContributorActivityPropWeeksItemsType] + + +class ContributorActivityPropWeeksItemsType(TypedDict): + """ContributorActivityPropWeeksItems""" + + w: NotRequired[int] + a: NotRequired[int] + d: NotRequired[int] + c: NotRequired[int] -__all__ = ("TopicType",) +__all__ = ( + "ContributorActivityType", + "ContributorActivityPropWeeksItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0340.py b/githubkit/versions/v2022_11_28/types/group_0340.py index 2412270d8..905ae039a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0340.py +++ b/githubkit/versions/v2022_11_28/types/group_0340.py @@ -9,16 +9,15 @@ from __future__ import annotations -from datetime import datetime +from typing import List from typing_extensions import TypedDict -class TrafficType(TypedDict): - """Traffic""" +class ParticipationStatsType(TypedDict): + """Participation Stats""" - timestamp: datetime - uniques: int - count: int + all_: List[int] + owner: List[int] -__all__ = ("TrafficType",) +__all__ = ("ParticipationStatsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0341.py b/githubkit/versions/v2022_11_28/types/group_0341.py index fbc685d7e..0099f28ce 100644 --- a/githubkit/versions/v2022_11_28/types/group_0341.py +++ b/githubkit/versions/v2022_11_28/types/group_0341.py @@ -9,21 +9,23 @@ from __future__ import annotations -from typing import List +from typing import Union +from datetime import datetime from typing_extensions import TypedDict -from .group_0340 import TrafficType +class RepositorySubscriptionType(TypedDict): + """Repository Invitation -class CloneTrafficType(TypedDict): - """Clone Traffic - - Clone Traffic + Repository invitations let you manage who you collaborate with. """ - count: int - uniques: int - clones: List[TrafficType] + subscribed: bool + ignored: bool + reason: Union[str, None] + created_at: datetime + url: str + repository_url: str -__all__ = ("CloneTrafficType",) +__all__ = ("RepositorySubscriptionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0342.py b/githubkit/versions/v2022_11_28/types/group_0342.py index 8ae9ebc92..7a59979c3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0342.py +++ b/githubkit/versions/v2022_11_28/types/group_0342.py @@ -12,16 +12,27 @@ from typing_extensions import TypedDict -class ContentTrafficType(TypedDict): - """Content Traffic +class TagType(TypedDict): + """Tag - Content Traffic + Tag """ - path: str - title: str - count: int - uniques: int + name: str + commit: TagPropCommitType + zipball_url: str + tarball_url: str + node_id: str -__all__ = ("ContentTrafficType",) +class TagPropCommitType(TypedDict): + """TagPropCommit""" + + sha: str + url: str + + +__all__ = ( + "TagType", + "TagPropCommitType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0343.py b/githubkit/versions/v2022_11_28/types/group_0343.py index d7d63281a..d07e7c979 100644 --- a/githubkit/versions/v2022_11_28/types/group_0343.py +++ b/githubkit/versions/v2022_11_28/types/group_0343.py @@ -9,18 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReferrerTrafficType(TypedDict): - """Referrer Traffic +class TagProtectionType(TypedDict): + """Tag protection - Referrer Traffic + Tag protection """ - referrer: str - count: int - uniques: int + id: NotRequired[int] + created_at: NotRequired[str] + updated_at: NotRequired[str] + enabled: NotRequired[bool] + pattern: str -__all__ = ("ReferrerTrafficType",) +__all__ = ("TagProtectionType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0344.py b/githubkit/versions/v2022_11_28/types/group_0344.py index 7df9c6987..c62332d11 100644 --- a/githubkit/versions/v2022_11_28/types/group_0344.py +++ b/githubkit/versions/v2022_11_28/types/group_0344.py @@ -12,18 +12,14 @@ from typing import List from typing_extensions import TypedDict -from .group_0340 import TrafficType +class TopicType(TypedDict): + """Topic -class ViewTrafficType(TypedDict): - """View Traffic - - View Traffic + A topic aggregates entities that are related to a subject. """ - count: int - uniques: int - views: List[TrafficType] + names: List[str] -__all__ = ("ViewTrafficType",) +__all__ = ("TopicType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0345.py b/githubkit/versions/v2022_11_28/types/group_0345.py index 1ea99ae28..2412270d8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0345.py +++ b/githubkit/versions/v2022_11_28/types/group_0345.py @@ -9,28 +9,16 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from datetime import datetime +from typing_extensions import TypedDict -class SearchResultTextMatchesItemsType(TypedDict): - """SearchResultTextMatchesItems""" +class TrafficType(TypedDict): + """Traffic""" - object_url: NotRequired[str] - object_type: NotRequired[Union[str, None]] - property_: NotRequired[str] - fragment: NotRequired[str] - matches: NotRequired[List[SearchResultTextMatchesItemsPropMatchesItemsType]] + timestamp: datetime + uniques: int + count: int -class SearchResultTextMatchesItemsPropMatchesItemsType(TypedDict): - """SearchResultTextMatchesItemsPropMatchesItems""" - - text: NotRequired[str] - indices: NotRequired[List[int]] - - -__all__ = ( - "SearchResultTextMatchesItemsType", - "SearchResultTextMatchesItemsPropMatchesItemsType", -) +__all__ = ("TrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0346.py b/githubkit/versions/v2022_11_28/types/group_0346.py index b3d1260b5..343757c4a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0346.py +++ b/githubkit/versions/v2022_11_28/types/group_0346.py @@ -9,44 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0051 import MinimalRepositoryType -from .group_0345 import SearchResultTextMatchesItemsType +from .group_0345 import TrafficType -class CodeSearchResultItemType(TypedDict): - """Code Search Result Item +class CloneTrafficType(TypedDict): + """Clone Traffic - Code Search Result Item + Clone Traffic """ - name: str - path: str - sha: str - url: str - git_url: str - html_url: str - repository: MinimalRepositoryType - score: float - file_size: NotRequired[int] - language: NotRequired[Union[str, None]] - last_modified_at: NotRequired[datetime] - line_numbers: NotRequired[List[str]] - text_matches: NotRequired[List[SearchResultTextMatchesItemsType]] - - -class SearchCodeGetResponse200Type(TypedDict): - """SearchCodeGetResponse200""" - - total_count: int - incomplete_results: bool - items: List[CodeSearchResultItemType] - - -__all__ = ( - "CodeSearchResultItemType", - "SearchCodeGetResponse200Type", -) + count: int + uniques: int + clones: List[TrafficType] + + +__all__ = ("CloneTrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0347.py b/githubkit/versions/v2022_11_28/types/group_0347.py index cb1ab316f..8ae9ebc92 100644 --- a/githubkit/versions/v2022_11_28/types/group_0347.py +++ b/githubkit/versions/v2022_11_28/types/group_0347.py @@ -9,54 +9,19 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0182 import GitUserType -from .group_0001 import SimpleUserType -from .group_0051 import MinimalRepositoryType -from .group_0345 import SearchResultTextMatchesItemsType -from .group_0348 import CommitSearchResultItemPropCommitType +class ContentTrafficType(TypedDict): + """Content Traffic -class CommitSearchResultItemType(TypedDict): - """Commit Search Result Item - - Commit Search Result Item + Content Traffic """ - url: str - sha: str - html_url: str - comments_url: str - commit: CommitSearchResultItemPropCommitType - author: Union[None, SimpleUserType] - committer: Union[None, GitUserType] - parents: List[CommitSearchResultItemPropParentsItemsType] - repository: MinimalRepositoryType - score: float - node_id: str - text_matches: NotRequired[List[SearchResultTextMatchesItemsType]] - - -class CommitSearchResultItemPropParentsItemsType(TypedDict): - """CommitSearchResultItemPropParentsItems""" - - url: NotRequired[str] - html_url: NotRequired[str] - sha: NotRequired[str] - - -class SearchCommitsGetResponse200Type(TypedDict): - """SearchCommitsGetResponse200""" - - total_count: int - incomplete_results: bool - items: List[CommitSearchResultItemType] + path: str + title: str + count: int + uniques: int -__all__ = ( - "CommitSearchResultItemType", - "CommitSearchResultItemPropParentsItemsType", - "SearchCommitsGetResponse200Type", -) +__all__ = ("ContentTrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0348.py b/githubkit/versions/v2022_11_28/types/group_0348.py index 3b6342d66..d7d63281a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0348.py +++ b/githubkit/versions/v2022_11_28/types/group_0348.py @@ -9,43 +9,18 @@ from __future__ import annotations -from typing import Union -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0182 import GitUserType -from .group_0183 import VerificationType +class ReferrerTrafficType(TypedDict): + """Referrer Traffic -class CommitSearchResultItemPropCommitType(TypedDict): - """CommitSearchResultItemPropCommit""" + Referrer Traffic + """ - author: CommitSearchResultItemPropCommitPropAuthorType - committer: Union[None, GitUserType] - comment_count: int - message: str - tree: CommitSearchResultItemPropCommitPropTreeType - url: str - verification: NotRequired[VerificationType] + referrer: str + count: int + uniques: int -class CommitSearchResultItemPropCommitPropAuthorType(TypedDict): - """CommitSearchResultItemPropCommitPropAuthor""" - - name: str - email: str - date: datetime - - -class CommitSearchResultItemPropCommitPropTreeType(TypedDict): - """CommitSearchResultItemPropCommitPropTree""" - - sha: str - url: str - - -__all__ = ( - "CommitSearchResultItemPropCommitType", - "CommitSearchResultItemPropCommitPropAuthorType", - "CommitSearchResultItemPropCommitPropTreeType", -) +__all__ = ("ReferrerTrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0349.py b/githubkit/versions/v2022_11_28/types/group_0349.py index fcb7e378a..3ddf5ef58 100644 --- a/githubkit/versions/v2022_11_28/types/group_0349.py +++ b/githubkit/versions/v2022_11_28/types/group_0349.py @@ -9,103 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0033 import MilestoneType -from .group_0001 import SimpleUserType -from .group_0017 import RepositoryType -from .group_0006 import IntegrationType -from .group_0034 import ReactionRollupType -from .group_0345 import SearchResultTextMatchesItemsType +from .group_0345 import TrafficType -class IssueSearchResultItemType(TypedDict): - """Issue Search Result Item +class ViewTrafficType(TypedDict): + """View Traffic - Issue Search Result Item + View Traffic """ - url: str - repository_url: str - labels_url: str - comments_url: str - events_url: str - html_url: str - id: int - node_id: str - number: int - title: str - locked: bool - active_lock_reason: NotRequired[Union[str, None]] - assignees: NotRequired[Union[List[SimpleUserType], None]] - user: Union[None, SimpleUserType] - labels: List[IssueSearchResultItemPropLabelsItemsType] - state: str - state_reason: NotRequired[Union[str, None]] - assignee: Union[None, SimpleUserType] - milestone: Union[None, MilestoneType] - comments: int - created_at: datetime - updated_at: datetime - closed_at: Union[datetime, None] - text_matches: NotRequired[List[SearchResultTextMatchesItemsType]] - pull_request: NotRequired[IssueSearchResultItemPropPullRequestType] - body: NotRequired[str] - score: float - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - draft: NotRequired[bool] - repository: NotRequired[RepositoryType] - body_html: NotRequired[str] - body_text: NotRequired[str] - timeline_url: NotRequired[str] - performed_via_github_app: NotRequired[Union[None, IntegrationType, None]] - reactions: NotRequired[ReactionRollupType] + count: int + uniques: int + views: List[TrafficType] -class IssueSearchResultItemPropLabelsItemsType(TypedDict): - """IssueSearchResultItemPropLabelsItems""" - - id: NotRequired[int] - node_id: NotRequired[str] - url: NotRequired[str] - name: NotRequired[str] - color: NotRequired[str] - default: NotRequired[bool] - description: NotRequired[Union[str, None]] - - -class IssueSearchResultItemPropPullRequestType(TypedDict): - """IssueSearchResultItemPropPullRequest""" - - merged_at: NotRequired[Union[datetime, None]] - diff_url: Union[str, None] - html_url: Union[str, None] - patch_url: Union[str, None] - url: Union[str, None] - - -class SearchIssuesGetResponse200Type(TypedDict): - """SearchIssuesGetResponse200""" - - total_count: int - incomplete_results: bool - items: List[IssueSearchResultItemType] - - -__all__ = ( - "IssueSearchResultItemType", - "IssueSearchResultItemPropLabelsItemsType", - "IssueSearchResultItemPropPullRequestType", - "SearchIssuesGetResponse200Type", -) +__all__ = ("ViewTrafficType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0350.py b/githubkit/versions/v2022_11_28/types/group_0350.py index 38fd98865..1ea99ae28 100644 --- a/githubkit/versions/v2022_11_28/types/group_0350.py +++ b/githubkit/versions/v2022_11_28/types/group_0350.py @@ -12,35 +12,25 @@ from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0345 import SearchResultTextMatchesItemsType +class SearchResultTextMatchesItemsType(TypedDict): + """SearchResultTextMatchesItems""" -class LabelSearchResultItemType(TypedDict): - """Label Search Result Item + object_url: NotRequired[str] + object_type: NotRequired[Union[str, None]] + property_: NotRequired[str] + fragment: NotRequired[str] + matches: NotRequired[List[SearchResultTextMatchesItemsPropMatchesItemsType]] - Label Search Result Item - """ - id: int - node_id: str - url: str - name: str - color: str - default: bool - description: Union[str, None] - score: float - text_matches: NotRequired[List[SearchResultTextMatchesItemsType]] +class SearchResultTextMatchesItemsPropMatchesItemsType(TypedDict): + """SearchResultTextMatchesItemsPropMatchesItems""" - -class SearchLabelsGetResponse200Type(TypedDict): - """SearchLabelsGetResponse200""" - - total_count: int - incomplete_results: bool - items: List[LabelSearchResultItemType] + text: NotRequired[str] + indices: NotRequired[List[int]] __all__ = ( - "LabelSearchResultItemType", - "SearchLabelsGetResponse200Type", + "SearchResultTextMatchesItemsType", + "SearchResultTextMatchesItemsPropMatchesItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0351.py b/githubkit/versions/v2022_11_28/types/group_0351.py index e8ac16b91..45fea963a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0351.py +++ b/githubkit/versions/v2022_11_28/types/group_0351.py @@ -13,128 +13,40 @@ from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0016 import LicenseSimpleType -from .group_0345 import SearchResultTextMatchesItemsType +from .group_0055 import MinimalRepositoryType +from .group_0350 import SearchResultTextMatchesItemsType -class RepoSearchResultItemType(TypedDict): - """Repo Search Result Item +class CodeSearchResultItemType(TypedDict): + """Code Search Result Item - Repo Search Result Item + Code Search Result Item """ - id: int - node_id: str name: str - full_name: str - owner: Union[None, SimpleUserType] - private: bool - html_url: str - description: Union[str, None] - fork: bool + path: str + sha: str url: str - created_at: datetime - updated_at: datetime - pushed_at: datetime - homepage: Union[str, None] - size: int - stargazers_count: int - watchers_count: int - language: Union[str, None] - forks_count: int - open_issues_count: int - master_branch: NotRequired[str] - default_branch: str - score: float - forks_url: str - keys_url: str - collaborators_url: str - teams_url: str - hooks_url: str - issue_events_url: str - events_url: str - assignees_url: str - branches_url: str - tags_url: str - blobs_url: str - git_tags_url: str - git_refs_url: str - trees_url: str - statuses_url: str - languages_url: str - stargazers_url: str - contributors_url: str - subscribers_url: str - subscription_url: str - commits_url: str - git_commits_url: str - comments_url: str - issue_comment_url: str - contents_url: str - compare_url: str - merges_url: str - archive_url: str - downloads_url: str - issues_url: str - pulls_url: str - milestones_url: str - notifications_url: str - labels_url: str - releases_url: str - deployments_url: str git_url: str - ssh_url: str - clone_url: str - svn_url: str - forks: int - open_issues: int - watchers: int - topics: NotRequired[List[str]] - mirror_url: Union[str, None] - has_issues: bool - has_projects: bool - has_pages: bool - has_wiki: bool - has_downloads: bool - has_discussions: NotRequired[bool] - archived: bool - disabled: bool - visibility: NotRequired[str] - license_: Union[None, LicenseSimpleType] - permissions: NotRequired[RepoSearchResultItemPropPermissionsType] + html_url: str + repository: MinimalRepositoryType + score: float + file_size: NotRequired[int] + language: NotRequired[Union[str, None]] + last_modified_at: NotRequired[datetime] + line_numbers: NotRequired[List[str]] text_matches: NotRequired[List[SearchResultTextMatchesItemsType]] - temp_clone_token: NotRequired[Union[str, None]] - allow_merge_commit: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - is_template: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] - - -class RepoSearchResultItemPropPermissionsType(TypedDict): - """RepoSearchResultItemPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - push: bool - triage: NotRequired[bool] - pull: bool -class SearchRepositoriesGetResponse200Type(TypedDict): - """SearchRepositoriesGetResponse200""" +class SearchCodeGetResponse200Type(TypedDict): + """SearchCodeGetResponse200""" total_count: int incomplete_results: bool - items: List[RepoSearchResultItemType] + items: List[CodeSearchResultItemType] __all__ = ( - "RepoSearchResultItemType", - "RepoSearchResultItemPropPermissionsType", - "SearchRepositoriesGetResponse200Type", + "CodeSearchResultItemType", + "SearchCodeGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0352.py b/githubkit/versions/v2022_11_28/types/group_0352.py index 5a25783ee..df2eb91e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0352.py +++ b/githubkit/versions/v2022_11_28/types/group_0352.py @@ -9,84 +9,54 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0345 import SearchResultTextMatchesItemsType +from .group_0187 import GitUserType +from .group_0001 import SimpleUserType +from .group_0055 import MinimalRepositoryType +from .group_0350 import SearchResultTextMatchesItemsType +from .group_0353 import CommitSearchResultItemPropCommitType -class TopicSearchResultItemType(TypedDict): - """Topic Search Result Item +class CommitSearchResultItemType(TypedDict): + """Commit Search Result Item - Topic Search Result Item + Commit Search Result Item """ - name: str - display_name: Union[str, None] - short_description: Union[str, None] - description: Union[str, None] - created_by: Union[str, None] - released: Union[str, None] - created_at: datetime - updated_at: datetime - featured: bool - curated: bool + url: str + sha: str + html_url: str + comments_url: str + commit: CommitSearchResultItemPropCommitType + author: Union[None, SimpleUserType] + committer: Union[None, GitUserType] + parents: List[CommitSearchResultItemPropParentsItemsType] + repository: MinimalRepositoryType score: float - repository_count: NotRequired[Union[int, None]] - logo_url: NotRequired[Union[str, None]] + node_id: str text_matches: NotRequired[List[SearchResultTextMatchesItemsType]] - related: NotRequired[Union[List[TopicSearchResultItemPropRelatedItemsType], None]] - aliases: NotRequired[Union[List[TopicSearchResultItemPropAliasesItemsType], None]] -class TopicSearchResultItemPropRelatedItemsType(TypedDict): - """TopicSearchResultItemPropRelatedItems""" +class CommitSearchResultItemPropParentsItemsType(TypedDict): + """CommitSearchResultItemPropParentsItems""" - topic_relation: NotRequired[ - TopicSearchResultItemPropRelatedItemsPropTopicRelationType - ] + url: NotRequired[str] + html_url: NotRequired[str] + sha: NotRequired[str] -class TopicSearchResultItemPropRelatedItemsPropTopicRelationType(TypedDict): - """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" - - id: NotRequired[int] - name: NotRequired[str] - topic_id: NotRequired[int] - relation_type: NotRequired[str] - - -class TopicSearchResultItemPropAliasesItemsType(TypedDict): - """TopicSearchResultItemPropAliasesItems""" - - topic_relation: NotRequired[ - TopicSearchResultItemPropAliasesItemsPropTopicRelationType - ] - - -class TopicSearchResultItemPropAliasesItemsPropTopicRelationType(TypedDict): - """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" - - id: NotRequired[int] - name: NotRequired[str] - topic_id: NotRequired[int] - relation_type: NotRequired[str] - - -class SearchTopicsGetResponse200Type(TypedDict): - """SearchTopicsGetResponse200""" +class SearchCommitsGetResponse200Type(TypedDict): + """SearchCommitsGetResponse200""" total_count: int incomplete_results: bool - items: List[TopicSearchResultItemType] + items: List[CommitSearchResultItemType] __all__ = ( - "TopicSearchResultItemType", - "TopicSearchResultItemPropRelatedItemsType", - "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", - "TopicSearchResultItemPropAliasesItemsType", - "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", - "SearchTopicsGetResponse200Type", + "CommitSearchResultItemType", + "CommitSearchResultItemPropParentsItemsType", + "SearchCommitsGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0353.py b/githubkit/versions/v2022_11_28/types/group_0353.py index 48b270a75..41d2ea3b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0353.py +++ b/githubkit/versions/v2022_11_28/types/group_0353.py @@ -9,64 +9,43 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0345 import SearchResultTextMatchesItemsType +from .group_0187 import GitUserType +from .group_0188 import VerificationType -class UserSearchResultItemType(TypedDict): - """User Search Result Item +class CommitSearchResultItemPropCommitType(TypedDict): + """CommitSearchResultItemPropCommit""" - User Search Result Item - """ + author: CommitSearchResultItemPropCommitPropAuthorType + committer: Union[None, GitUserType] + comment_count: int + message: str + tree: CommitSearchResultItemPropCommitPropTreeType + url: str + verification: NotRequired[VerificationType] + + +class CommitSearchResultItemPropCommitPropAuthorType(TypedDict): + """CommitSearchResultItemPropCommitPropAuthor""" + + name: str + email: str + date: datetime + + +class CommitSearchResultItemPropCommitPropTreeType(TypedDict): + """CommitSearchResultItemPropCommitPropTree""" - login: str - id: int - node_id: str - avatar_url: str - gravatar_id: Union[str, None] + sha: str url: str - html_url: str - followers_url: str - subscriptions_url: str - organizations_url: str - repos_url: str - received_events_url: str - type: str - score: float - following_url: str - gists_url: str - starred_url: str - events_url: str - public_repos: NotRequired[int] - public_gists: NotRequired[int] - followers: NotRequired[int] - following: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[datetime] - name: NotRequired[Union[str, None]] - bio: NotRequired[Union[str, None]] - email: NotRequired[Union[str, None]] - location: NotRequired[Union[str, None]] - site_admin: bool - hireable: NotRequired[Union[bool, None]] - text_matches: NotRequired[List[SearchResultTextMatchesItemsType]] - blog: NotRequired[Union[str, None]] - company: NotRequired[Union[str, None]] - suspended_at: NotRequired[Union[datetime, None]] - - -class SearchUsersGetResponse200Type(TypedDict): - """SearchUsersGetResponse200""" - - total_count: int - incomplete_results: bool - items: List[UserSearchResultItemType] __all__ = ( - "UserSearchResultItemType", - "SearchUsersGetResponse200Type", + "CommitSearchResultItemPropCommitType", + "CommitSearchResultItemPropCommitPropAuthorType", + "CommitSearchResultItemPropCommitPropTreeType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0354.py b/githubkit/versions/v2022_11_28/types/group_0354.py index 83f601415..9605c7b49 100644 --- a/githubkit/versions/v2022_11_28/types/group_0354.py +++ b/githubkit/versions/v2022_11_28/types/group_0354.py @@ -9,72 +9,103 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0037 import MilestoneType +from .group_0001 import SimpleUserType +from .group_0017 import RepositoryType +from .group_0006 import IntegrationType +from .group_0038 import ReactionRollupType +from .group_0350 import SearchResultTextMatchesItemsType -class PrivateUserType(TypedDict): - """Private User - Private User +class IssueSearchResultItemType(TypedDict): + """Issue Search Result Item + + Issue Search Result Item """ - login: str - id: int - node_id: str - avatar_url: str - gravatar_id: Union[str, None] url: str - html_url: str - followers_url: str - following_url: str - gists_url: str - starred_url: str - subscriptions_url: str - organizations_url: str - repos_url: str + repository_url: str + labels_url: str + comments_url: str events_url: str - received_events_url: str - type: str - site_admin: bool - name: Union[str, None] - company: Union[str, None] - blog: Union[str, None] - location: Union[str, None] - email: Union[str, None] - notification_email: NotRequired[Union[str, None]] - hireable: Union[bool, None] - bio: Union[str, None] - twitter_username: NotRequired[Union[str, None]] - public_repos: int - public_gists: int - followers: int - following: int + html_url: str + id: int + node_id: str + number: int + title: str + locked: bool + active_lock_reason: NotRequired[Union[str, None]] + assignees: NotRequired[Union[List[SimpleUserType], None]] + user: Union[None, SimpleUserType] + labels: List[IssueSearchResultItemPropLabelsItemsType] + state: str + state_reason: NotRequired[Union[str, None]] + assignee: Union[None, SimpleUserType] + milestone: Union[None, MilestoneType] + comments: int created_at: datetime updated_at: datetime - private_gists: int - total_private_repos: int - owned_private_repos: int - disk_usage: int - collaborators: int - two_factor_authentication: bool - plan: NotRequired[PrivateUserPropPlanType] - suspended_at: NotRequired[Union[datetime, None]] - business_plus: NotRequired[bool] - ldap_dn: NotRequired[str] + closed_at: Union[datetime, None] + text_matches: NotRequired[List[SearchResultTextMatchesItemsType]] + pull_request: NotRequired[IssueSearchResultItemPropPullRequestType] + body: NotRequired[str] + score: float + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + draft: NotRequired[bool] + repository: NotRequired[RepositoryType] + body_html: NotRequired[str] + body_text: NotRequired[str] + timeline_url: NotRequired[str] + 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 PrivateUserPropPlanType(TypedDict): - """PrivateUserPropPlan""" +class SearchIssuesGetResponse200Type(TypedDict): + """SearchIssuesGetResponse200""" - collaborators: int - name: str - space: int - private_repos: int + total_count: int + incomplete_results: bool + items: List[IssueSearchResultItemType] __all__ = ( - "PrivateUserType", - "PrivateUserPropPlanType", + "IssueSearchResultItemType", + "IssueSearchResultItemPropLabelsItemsType", + "IssueSearchResultItemPropPullRequestType", + "SearchIssuesGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0355.py b/githubkit/versions/v2022_11_28/types/group_0355.py index 6be52538b..b473f8418 100644 --- a/githubkit/versions/v2022_11_28/types/group_0355.py +++ b/githubkit/versions/v2022_11_28/types/group_0355.py @@ -9,17 +9,38 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired +from .group_0350 import SearchResultTextMatchesItemsType -class CodespacesUserPublicKeyType(TypedDict): - """CodespacesUserPublicKey - The public key used for setting user Codespaces' Secrets. +class LabelSearchResultItemType(TypedDict): + """Label Search Result Item + + Label Search Result Item """ - key_id: str - key: str + id: int + node_id: str + url: str + name: str + color: str + default: bool + description: Union[str, None] + score: float + text_matches: NotRequired[List[SearchResultTextMatchesItemsType]] + + +class SearchLabelsGetResponse200Type(TypedDict): + """SearchLabelsGetResponse200""" + + total_count: int + incomplete_results: bool + items: List[LabelSearchResultItemType] -__all__ = ("CodespacesUserPublicKeyType",) +__all__ = ( + "LabelSearchResultItemType", + "SearchLabelsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0356.py b/githubkit/versions/v2022_11_28/types/group_0356.py index a57fc4101..5bb5a735f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0356.py +++ b/githubkit/versions/v2022_11_28/types/group_0356.py @@ -9,25 +9,132 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0016 import LicenseSimpleType +from .group_0350 import SearchResultTextMatchesItemsType -class CodespaceExportDetailsType(TypedDict): - """Fetches information about an export of a codespace. - An export of a codespace. Also, latest export details for a codespace can be - fetched with id = latest +class RepoSearchResultItemType(TypedDict): + """Repo Search Result Item + + Repo Search Result Item """ - state: NotRequired[Union[str, None]] - completed_at: NotRequired[Union[datetime, None]] - branch: NotRequired[Union[str, None]] - sha: NotRequired[Union[str, None]] - id: NotRequired[str] - export_url: NotRequired[str] - html_url: NotRequired[Union[str, None]] + id: int + node_id: str + name: str + full_name: str + owner: Union[None, SimpleUserType] + private: bool + html_url: str + description: Union[str, None] + fork: bool + url: str + created_at: datetime + updated_at: datetime + pushed_at: datetime + homepage: Union[str, None] + size: int + stargazers_count: int + watchers_count: int + language: Union[str, None] + forks_count: int + open_issues_count: int + master_branch: NotRequired[str] + default_branch: str + score: float + forks_url: str + keys_url: str + collaborators_url: str + teams_url: str + hooks_url: str + issue_events_url: str + events_url: str + assignees_url: str + branches_url: str + tags_url: str + blobs_url: str + git_tags_url: str + git_refs_url: str + trees_url: str + statuses_url: str + languages_url: str + stargazers_url: str + contributors_url: str + subscribers_url: str + subscription_url: str + commits_url: str + git_commits_url: str + comments_url: str + issue_comment_url: str + contents_url: str + compare_url: str + merges_url: str + archive_url: str + downloads_url: str + issues_url: str + pulls_url: str + milestones_url: str + notifications_url: str + labels_url: str + releases_url: str + deployments_url: str + git_url: str + ssh_url: str + clone_url: str + svn_url: str + forks: int + open_issues: int + watchers: int + topics: NotRequired[List[str]] + mirror_url: Union[str, None] + has_issues: bool + has_projects: bool + has_pages: bool + has_wiki: bool + has_downloads: bool + has_discussions: NotRequired[bool] + archived: bool + disabled: bool + visibility: NotRequired[str] + license_: Union[None, LicenseSimpleType] + permissions: NotRequired[RepoSearchResultItemPropPermissionsType] + text_matches: NotRequired[List[SearchResultTextMatchesItemsType]] + temp_clone_token: NotRequired[Union[str, None]] + allow_merge_commit: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + is_template: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] + + +class RepoSearchResultItemPropPermissionsType(TypedDict): + """RepoSearchResultItemPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + push: bool + triage: NotRequired[bool] + pull: bool + + +class SearchRepositoriesGetResponse200Type(TypedDict): + """SearchRepositoriesGetResponse200""" + + total_count: int + incomplete_results: bool + items: List[RepoSearchResultItemType] -__all__ = ("CodespaceExportDetailsType",) +__all__ = ( + "RepoSearchResultItemType", + "RepoSearchResultItemPropPermissionsType", + "SearchRepositoriesGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0357.py b/githubkit/versions/v2022_11_28/types/group_0357.py index 033df0958..0a17411e9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0357.py +++ b/githubkit/versions/v2022_11_28/types/group_0357.py @@ -10,94 +10,83 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0096 import FullRepositoryType -from .group_0071 import CodespaceMachineType +from .group_0350 import SearchResultTextMatchesItemsType -class CodespaceWithFullRepositoryType(TypedDict): - """Codespace +class TopicSearchResultItemType(TypedDict): + """Topic Search Result Item - A codespace. + Topic Search Result Item """ - id: int name: str - display_name: NotRequired[Union[str, None]] - environment_id: Union[str, None] - owner: SimpleUserType - billable_owner: SimpleUserType - repository: FullRepositoryType - machine: Union[None, CodespaceMachineType] - devcontainer_path: NotRequired[Union[str, None]] - prebuild: Union[bool, None] + display_name: Union[str, None] + short_description: Union[str, None] + description: Union[str, None] + created_by: Union[str, None] + released: Union[str, None] created_at: datetime updated_at: datetime - last_used_at: datetime - state: Literal[ - "Unknown", - "Created", - "Queued", - "Provisioning", - "Available", - "Awaiting", - "Unavailable", - "Deleted", - "Moved", - "Shutdown", - "Archived", - "Starting", - "ShuttingDown", - "Failed", - "Exporting", - "Updating", - "Rebuilding", - ] - url: str - git_status: CodespaceWithFullRepositoryPropGitStatusType - location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] - idle_timeout_minutes: Union[int, None] - web_url: str - machines_url: str - start_url: str - stop_url: str - publish_url: NotRequired[Union[str, None]] - pulls_url: Union[str, None] - recent_folders: List[str] - runtime_constraints: NotRequired[ - CodespaceWithFullRepositoryPropRuntimeConstraintsType + featured: bool + curated: bool + score: float + repository_count: NotRequired[Union[int, None]] + logo_url: NotRequired[Union[str, None]] + text_matches: NotRequired[List[SearchResultTextMatchesItemsType]] + related: NotRequired[Union[List[TopicSearchResultItemPropRelatedItemsType], None]] + aliases: NotRequired[Union[List[TopicSearchResultItemPropAliasesItemsType], None]] + + +class TopicSearchResultItemPropRelatedItemsType(TypedDict): + """TopicSearchResultItemPropRelatedItems""" + + topic_relation: NotRequired[ + TopicSearchResultItemPropRelatedItemsPropTopicRelationType ] - pending_operation: NotRequired[Union[bool, None]] - pending_operation_disabled_reason: NotRequired[Union[str, None]] - idle_timeout_notice: NotRequired[Union[str, None]] - retention_period_minutes: NotRequired[Union[int, None]] - retention_expires_at: NotRequired[Union[datetime, None]] -class CodespaceWithFullRepositoryPropGitStatusType(TypedDict): - """CodespaceWithFullRepositoryPropGitStatus +class TopicSearchResultItemPropRelatedItemsPropTopicRelationType(TypedDict): + """TopicSearchResultItemPropRelatedItemsPropTopicRelation""" - Details about the codespace's git repository. - """ + id: NotRequired[int] + name: NotRequired[str] + topic_id: NotRequired[int] + relation_type: NotRequired[str] + + +class TopicSearchResultItemPropAliasesItemsType(TypedDict): + """TopicSearchResultItemPropAliasesItems""" + + topic_relation: NotRequired[ + TopicSearchResultItemPropAliasesItemsPropTopicRelationType + ] + + +class TopicSearchResultItemPropAliasesItemsPropTopicRelationType(TypedDict): + """TopicSearchResultItemPropAliasesItemsPropTopicRelation""" - ahead: NotRequired[int] - behind: NotRequired[int] - has_unpushed_changes: NotRequired[bool] - has_uncommitted_changes: NotRequired[bool] - ref: NotRequired[str] + id: NotRequired[int] + name: NotRequired[str] + topic_id: NotRequired[int] + relation_type: NotRequired[str] -class CodespaceWithFullRepositoryPropRuntimeConstraintsType(TypedDict): - """CodespaceWithFullRepositoryPropRuntimeConstraints""" +class SearchTopicsGetResponse200Type(TypedDict): + """SearchTopicsGetResponse200""" - allowed_port_privacy_settings: NotRequired[Union[List[str], None]] + total_count: int + incomplete_results: bool + items: List[TopicSearchResultItemType] __all__ = ( - "CodespaceWithFullRepositoryType", - "CodespaceWithFullRepositoryPropGitStatusType", - "CodespaceWithFullRepositoryPropRuntimeConstraintsType", + "TopicSearchResultItemType", + "TopicSearchResultItemPropRelatedItemsType", + "TopicSearchResultItemPropRelatedItemsPropTopicRelationType", + "TopicSearchResultItemPropAliasesItemsType", + "TopicSearchResultItemPropAliasesItemsPropTopicRelationType", + "SearchTopicsGetResponse200Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0358.py b/githubkit/versions/v2022_11_28/types/group_0358.py index 767832678..d8507aae6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0358.py +++ b/githubkit/versions/v2022_11_28/types/group_0358.py @@ -9,20 +9,64 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union +from typing_extensions import TypedDict, NotRequired +from .group_0350 import SearchResultTextMatchesItemsType -class EmailType(TypedDict): - """Email - Email +class UserSearchResultItemType(TypedDict): + """User Search Result Item + + User Search Result Item """ - email: str - primary: bool - verified: bool - visibility: Union[str, None] + login: str + id: int + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + received_events_url: str + type: str + score: float + following_url: str + gists_url: str + starred_url: str + events_url: str + public_repos: NotRequired[int] + public_gists: NotRequired[int] + followers: NotRequired[int] + following: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[datetime] + name: NotRequired[Union[str, None]] + bio: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + location: NotRequired[Union[str, None]] + site_admin: bool + hireable: NotRequired[Union[bool, None]] + text_matches: NotRequired[List[SearchResultTextMatchesItemsType]] + blog: NotRequired[Union[str, None]] + company: NotRequired[Union[str, None]] + suspended_at: NotRequired[Union[datetime, None]] + + +class SearchUsersGetResponse200Type(TypedDict): + """SearchUsersGetResponse200""" + + total_count: int + incomplete_results: bool + items: List[UserSearchResultItemType] -__all__ = ("EmailType",) +__all__ = ( + "UserSearchResultItemType", + "SearchUsersGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0359.py b/githubkit/versions/v2022_11_28/types/group_0359.py index df0802f2e..83f601415 100644 --- a/githubkit/versions/v2022_11_28/types/group_0359.py +++ b/githubkit/versions/v2022_11_28/types/group_0359.py @@ -9,70 +9,72 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import Any, List, Union from typing_extensions import TypedDict, NotRequired -class GpgKeyType(TypedDict): - """GPG Key +class PrivateUserType(TypedDict): + """Private User - A unique encryption key + Private User """ + login: str id: int - name: NotRequired[Union[str, None]] - primary_key_id: Union[int, None] - key_id: str - public_key: str - emails: List[GpgKeyPropEmailsItemsType] - subkeys: List[GpgKeyPropSubkeysItemsType] - can_sign: bool - can_encrypt_comms: bool - can_encrypt_storage: bool - can_certify: bool + node_id: str + avatar_url: str + gravatar_id: Union[str, None] + url: str + html_url: str + followers_url: str + following_url: str + gists_url: str + starred_url: str + subscriptions_url: str + organizations_url: str + repos_url: str + events_url: str + received_events_url: str + type: str + site_admin: bool + name: Union[str, None] + company: Union[str, None] + blog: Union[str, None] + location: Union[str, None] + email: Union[str, None] + notification_email: NotRequired[Union[str, None]] + hireable: Union[bool, None] + bio: Union[str, None] + twitter_username: NotRequired[Union[str, None]] + public_repos: int + public_gists: int + followers: int + following: int created_at: datetime - expires_at: Union[datetime, None] - revoked: bool - raw_key: Union[str, None] + updated_at: datetime + private_gists: int + total_private_repos: int + owned_private_repos: int + disk_usage: int + collaborators: int + two_factor_authentication: bool + plan: NotRequired[PrivateUserPropPlanType] + suspended_at: NotRequired[Union[datetime, None]] + business_plus: NotRequired[bool] + ldap_dn: NotRequired[str] -class GpgKeyPropEmailsItemsType(TypedDict): - """GpgKeyPropEmailsItems""" +class PrivateUserPropPlanType(TypedDict): + """PrivateUserPropPlan""" - email: NotRequired[str] - verified: NotRequired[bool] - - -class GpgKeyPropSubkeysItemsType(TypedDict): - """GpgKeyPropSubkeysItems""" - - id: NotRequired[int] - primary_key_id: NotRequired[int] - key_id: NotRequired[str] - public_key: NotRequired[str] - emails: NotRequired[List[GpgKeyPropSubkeysItemsPropEmailsItemsType]] - subkeys: NotRequired[List[Any]] - can_sign: NotRequired[bool] - can_encrypt_comms: NotRequired[bool] - can_encrypt_storage: NotRequired[bool] - can_certify: NotRequired[bool] - created_at: NotRequired[str] - expires_at: NotRequired[Union[str, None]] - raw_key: NotRequired[Union[str, None]] - revoked: NotRequired[bool] - - -class GpgKeyPropSubkeysItemsPropEmailsItemsType(TypedDict): - """GpgKeyPropSubkeysItemsPropEmailsItems""" - - email: NotRequired[str] - verified: NotRequired[bool] + collaborators: int + name: str + space: int + private_repos: int __all__ = ( - "GpgKeyType", - "GpgKeyPropEmailsItemsType", - "GpgKeyPropSubkeysItemsType", - "GpgKeyPropSubkeysItemsPropEmailsItemsType", + "PrivateUserType", + "PrivateUserPropPlanType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0360.py b/githubkit/versions/v2022_11_28/types/group_0360.py index 6c95fc7a9..6be52538b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0360.py +++ b/githubkit/versions/v2022_11_28/types/group_0360.py @@ -9,23 +9,17 @@ from __future__ import annotations -from datetime import datetime from typing_extensions import TypedDict -class KeyType(TypedDict): - """Key +class CodespacesUserPublicKeyType(TypedDict): + """CodespacesUserPublicKey - Key + The public key used for setting user Codespaces' Secrets. """ + key_id: str key: str - id: int - url: str - title: str - created_at: datetime - verified: bool - read_only: bool -__all__ = ("KeyType",) +__all__ = ("CodespacesUserPublicKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0361.py b/githubkit/versions/v2022_11_28/types/group_0361.py index 9f5372306..a57fc4101 100644 --- a/githubkit/versions/v2022_11_28/types/group_0361.py +++ b/githubkit/versions/v2022_11_28/types/group_0361.py @@ -13,38 +13,21 @@ from datetime import datetime from typing_extensions import TypedDict, NotRequired -from .group_0046 import MarketplaceListingPlanType +class CodespaceExportDetailsType(TypedDict): + """Fetches information about an export of a codespace. -class UserMarketplacePurchaseType(TypedDict): - """User Marketplace Purchase - - User Marketplace Purchase + An export of a codespace. Also, latest export details for a codespace can be + fetched with id = latest """ - billing_cycle: str - next_billing_date: Union[datetime, None] - unit_count: Union[int, None] - on_free_trial: bool - free_trial_ends_on: Union[datetime, None] - updated_at: Union[datetime, None] - account: MarketplaceAccountType - plan: MarketplaceListingPlanType - - -class MarketplaceAccountType(TypedDict): - """Marketplace Account""" - - url: str - id: int - type: str - node_id: NotRequired[str] - login: str - email: NotRequired[Union[str, None]] - organization_billing_email: NotRequired[Union[str, None]] + state: NotRequired[Union[str, None]] + completed_at: NotRequired[Union[datetime, None]] + branch: NotRequired[Union[str, None]] + sha: NotRequired[Union[str, None]] + id: NotRequired[str] + export_url: NotRequired[str] + html_url: NotRequired[Union[str, None]] -__all__ = ( - "UserMarketplacePurchaseType", - "MarketplaceAccountType", -) +__all__ = ("CodespaceExportDetailsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0362.py b/githubkit/versions/v2022_11_28/types/group_0362.py index f892fc0d3..9fc845bad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0362.py +++ b/githubkit/versions/v2022_11_28/types/group_0362.py @@ -9,17 +9,95 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0101 import FullRepositoryType +from .group_0077 import CodespaceMachineType -class SocialAccountType(TypedDict): - """Social account - Social media account +class CodespaceWithFullRepositoryType(TypedDict): + """Codespace + + A codespace. """ - provider: str + id: int + name: str + display_name: NotRequired[Union[str, None]] + environment_id: Union[str, None] + owner: SimpleUserType + billable_owner: SimpleUserType + repository: FullRepositoryType + machine: Union[None, CodespaceMachineType] + devcontainer_path: NotRequired[Union[str, None]] + prebuild: Union[bool, None] + created_at: datetime + updated_at: datetime + last_used_at: datetime + state: Literal[ + "Unknown", + "Created", + "Queued", + "Provisioning", + "Available", + "Awaiting", + "Unavailable", + "Deleted", + "Moved", + "Shutdown", + "Archived", + "Starting", + "ShuttingDown", + "Failed", + "Exporting", + "Updating", + "Rebuilding", + ] url: str + git_status: CodespaceWithFullRepositoryPropGitStatusType + location: Literal["EastUs", "SouthEastAsia", "WestEurope", "WestUs2"] + idle_timeout_minutes: Union[int, None] + web_url: str + machines_url: str + start_url: str + stop_url: str + publish_url: NotRequired[Union[str, None]] + pulls_url: Union[str, None] + recent_folders: List[str] + runtime_constraints: NotRequired[ + CodespaceWithFullRepositoryPropRuntimeConstraintsType + ] + pending_operation: NotRequired[Union[bool, None]] + pending_operation_disabled_reason: NotRequired[Union[str, None]] + idle_timeout_notice: NotRequired[Union[str, None]] + retention_period_minutes: NotRequired[Union[int, None]] + retention_expires_at: NotRequired[Union[datetime, None]] + + +class CodespaceWithFullRepositoryPropGitStatusType(TypedDict): + """CodespaceWithFullRepositoryPropGitStatus + + Details about the codespace's git repository. + """ + + ahead: NotRequired[int] + behind: NotRequired[int] + has_unpushed_changes: NotRequired[bool] + has_uncommitted_changes: NotRequired[bool] + ref: NotRequired[str] + + +class CodespaceWithFullRepositoryPropRuntimeConstraintsType(TypedDict): + """CodespaceWithFullRepositoryPropRuntimeConstraints""" + + allowed_port_privacy_settings: NotRequired[Union[List[str], None]] -__all__ = ("SocialAccountType",) +__all__ = ( + "CodespaceWithFullRepositoryType", + "CodespaceWithFullRepositoryPropGitStatusType", + "CodespaceWithFullRepositoryPropRuntimeConstraintsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0363.py b/githubkit/versions/v2022_11_28/types/group_0363.py index a3c3f348b..767832678 100644 --- a/githubkit/versions/v2022_11_28/types/group_0363.py +++ b/githubkit/versions/v2022_11_28/types/group_0363.py @@ -9,20 +9,20 @@ from __future__ import annotations -from datetime import datetime +from typing import Union from typing_extensions import TypedDict -class SshSigningKeyType(TypedDict): - """SSH Signing Key +class EmailType(TypedDict): + """Email - A public SSH key used to sign Git commits + Email """ - key: str - id: int - title: str - created_at: datetime + email: str + primary: bool + verified: bool + visibility: Union[str, None] -__all__ = ("SshSigningKeyType",) +__all__ = ("EmailType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0364.py b/githubkit/versions/v2022_11_28/types/group_0364.py index a90acd5c0..df0802f2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0364.py +++ b/githubkit/versions/v2022_11_28/types/group_0364.py @@ -10,19 +10,69 @@ from __future__ import annotations from datetime import datetime -from typing_extensions import TypedDict +from typing import Any, List, Union +from typing_extensions import TypedDict, NotRequired -from .group_0017 import RepositoryType +class GpgKeyType(TypedDict): + """GPG Key -class StarredRepositoryType(TypedDict): - """Starred Repository - - Starred Repository + A unique encryption key """ - starred_at: datetime - repo: RepositoryType + id: int + name: NotRequired[Union[str, None]] + primary_key_id: Union[int, None] + key_id: str + public_key: str + emails: List[GpgKeyPropEmailsItemsType] + subkeys: List[GpgKeyPropSubkeysItemsType] + can_sign: bool + can_encrypt_comms: bool + can_encrypt_storage: bool + can_certify: bool + created_at: datetime + expires_at: Union[datetime, None] + revoked: bool + raw_key: Union[str, None] + + +class GpgKeyPropEmailsItemsType(TypedDict): + """GpgKeyPropEmailsItems""" + + email: NotRequired[str] + verified: NotRequired[bool] + + +class GpgKeyPropSubkeysItemsType(TypedDict): + """GpgKeyPropSubkeysItems""" + + id: NotRequired[int] + primary_key_id: NotRequired[int] + key_id: NotRequired[str] + public_key: NotRequired[str] + emails: NotRequired[List[GpgKeyPropSubkeysItemsPropEmailsItemsType]] + subkeys: NotRequired[List[Any]] + can_sign: NotRequired[bool] + can_encrypt_comms: NotRequired[bool] + can_encrypt_storage: NotRequired[bool] + can_certify: NotRequired[bool] + created_at: NotRequired[str] + expires_at: NotRequired[Union[str, None]] + raw_key: NotRequired[Union[str, None]] + revoked: NotRequired[bool] + + +class GpgKeyPropSubkeysItemsPropEmailsItemsType(TypedDict): + """GpgKeyPropSubkeysItemsPropEmailsItems""" + + email: NotRequired[str] + verified: NotRequired[bool] -__all__ = ("StarredRepositoryType",) +__all__ = ( + "GpgKeyType", + "GpgKeyPropEmailsItemsType", + "GpgKeyPropSubkeysItemsType", + "GpgKeyPropSubkeysItemsPropEmailsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0365.py b/githubkit/versions/v2022_11_28/types/group_0365.py index 408258a5a..6c95fc7a9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0365.py +++ b/githubkit/versions/v2022_11_28/types/group_0365.py @@ -9,27 +9,23 @@ from __future__ import annotations -from typing import List +from datetime import datetime from typing_extensions import TypedDict -class HovercardType(TypedDict): - """Hovercard +class KeyType(TypedDict): + """Key - Hovercard + Key """ - contexts: List[HovercardPropContextsItemsType] + key: str + id: int + url: str + title: str + created_at: datetime + verified: bool + read_only: bool -class HovercardPropContextsItemsType(TypedDict): - """HovercardPropContextsItems""" - - message: str - octicon: str - - -__all__ = ( - "HovercardType", - "HovercardPropContextsItemsType", -) +__all__ = ("KeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0366.py b/githubkit/versions/v2022_11_28/types/group_0366.py index 04b787e6a..67066cdb0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0366.py +++ b/githubkit/versions/v2022_11_28/types/group_0366.py @@ -9,17 +9,42 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from datetime import datetime +from typing_extensions import TypedDict, NotRequired +from .group_0050 import MarketplaceListingPlanType -class KeySimpleType(TypedDict): - """Key Simple - Key Simple +class UserMarketplacePurchaseType(TypedDict): + """User Marketplace Purchase + + User Marketplace Purchase """ + billing_cycle: str + next_billing_date: Union[datetime, None] + unit_count: Union[int, None] + on_free_trial: bool + free_trial_ends_on: Union[datetime, None] + updated_at: Union[datetime, None] + account: MarketplaceAccountType + plan: MarketplaceListingPlanType + + +class MarketplaceAccountType(TypedDict): + """Marketplace Account""" + + url: str id: int - key: str + type: str + node_id: NotRequired[str] + login: str + email: NotRequired[Union[str, None]] + organization_billing_email: NotRequired[Union[str, None]] -__all__ = ("KeySimpleType",) +__all__ = ( + "UserMarketplacePurchaseType", + "MarketplaceAccountType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0367.py b/githubkit/versions/v2022_11_28/types/group_0367.py index 0a05c838a..f892fc0d3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0367.py +++ b/githubkit/versions/v2022_11_28/types/group_0367.py @@ -9,32 +9,17 @@ from __future__ import annotations -from typing import Union -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class EnterpriseWebhooksType(TypedDict): - """Enterprise +class SocialAccountType(TypedDict): + """Social account - 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)." + Social media account """ - 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 + provider: str + url: str -__all__ = ("EnterpriseWebhooksType",) +__all__ = ("SocialAccountType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0368.py b/githubkit/versions/v2022_11_28/types/group_0368.py index bbc5a360f..a3c3f348b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0368.py +++ b/githubkit/versions/v2022_11_28/types/group_0368.py @@ -9,21 +9,20 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict -class SimpleInstallationType(TypedDict): - """Simple Installation +class SshSigningKeyType(TypedDict): + """SSH Signing Key - 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)." + A public SSH key used to sign Git commits """ + key: str id: int - node_id: str + title: str + created_at: datetime -__all__ = ("SimpleInstallationType",) +__all__ = ("SshSigningKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0369.py b/githubkit/versions/v2022_11_28/types/group_0369.py index b52264ecb..a90acd5c0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0369.py +++ b/githubkit/versions/v2022_11_28/types/group_0369.py @@ -9,31 +9,20 @@ from __future__ import annotations -from typing import Union +from datetime import datetime from typing_extensions import TypedDict +from .group_0017 import RepositoryType -class OrganizationSimpleWebhooksType(TypedDict): - """Organization Simple - 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. +class StarredRepositoryType(TypedDict): + """Starred Repository + + Starred Repository """ - login: str - id: int - node_id: str - url: str - repos_url: str - events_url: str - hooks_url: str - issues_url: str - members_url: str - public_members_url: str - avatar_url: str - description: Union[str, None] - - -__all__ = ("OrganizationSimpleWebhooksType",) + starred_at: datetime + repo: RepositoryType + + +__all__ = ("StarredRepositoryType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0370.py b/githubkit/versions/v2022_11_28/types/group_0370.py index 776d76655..408258a5a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0370.py +++ b/githubkit/versions/v2022_11_28/types/group_0370.py @@ -9,281 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType -from .group_0016 import LicenseSimpleType +class HovercardType(TypedDict): + """Hovercard -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] - - -class RepositoryWebhooksPropCustomPropertiesType(TypedDict): - """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. + Hovercard """ - -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] + contexts: List[HovercardPropContextsItemsType] -class RepositoryWebhooksPropTemplateRepositoryPropPermissionsType(TypedDict): - """RepositoryWebhooksPropTemplateRepositoryPropPermissions""" +class HovercardPropContextsItemsType(TypedDict): + """HovercardPropContextsItems""" - admin: NotRequired[bool] - maintain: NotRequired[bool] - push: NotRequired[bool] - triage: NotRequired[bool] - pull: NotRequired[bool] + message: str + octicon: str __all__ = ( - "RepositoryWebhooksType", - "RepositoryWebhooksPropPermissionsType", - "RepositoryWebhooksPropCustomPropertiesType", - "RepositoryWebhooksPropTemplateRepositoryType", - "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", - "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", + "HovercardType", + "HovercardPropContextsItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0371.py b/githubkit/versions/v2022_11_28/types/group_0371.py index 5484de1f2..04b787e6a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0371.py +++ b/githubkit/versions/v2022_11_28/types/group_0371.py @@ -9,38 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class SimpleUserWebhooksType(TypedDict): - """Simple User +class KeySimpleType(TypedDict): + """Key Simple - The GitHub user that triggered the event. This property is included in every - webhook payload. + Key Simple """ - 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] - - -__all__ = ("SimpleUserWebhooksType",) + key: str + + +__all__ = ("KeySimpleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0372.py b/githubkit/versions/v2022_11_28/types/group_0372.py index f60203d02..0a05c838a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0372.py +++ b/githubkit/versions/v2022_11_28/types/group_0372.py @@ -9,50 +9,32 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksRuleType(TypedDict): - """branch protection rule +class EnterpriseWebhooksType(TypedDict): + """Enterprise - 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. + 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)." """ - 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 + description: NotRequired[Union[str, None]] + html_url: str + website_url: NotRequired[Union[str, None]] id: int - ignore_approvals_from_contributors: bool - linear_history_requirement_enforcement_level: Literal[ - "off", "non_admins", "everyone" - ] - merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] + node_id: str 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",) + slug: str + created_at: Union[datetime, None] + updated_at: Union[datetime, None] + avatar_url: str + + +__all__ = ("EnterpriseWebhooksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0373.py b/githubkit/versions/v2022_11_28/types/group_0373.py index 4ba585365..bbc5a360f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0373.py +++ b/githubkit/versions/v2022_11_28/types/group_0373.py @@ -9,52 +9,21 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0006 import IntegrationType -from .group_0051 import MinimalRepositoryType -from .group_0164 import PullRequestMinimalType +class SimpleInstallationType(TypedDict): + """Simple Installation -class SimpleCheckSuiteType(TypedDict): - """SimpleCheckSuite - - A suite of checks performed on the code of a given code change + The GitHub App installation. Webhook payloads contain the `installation` + property when the event is configured + for and sent to a GitHub App. For more information, + see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating- + github-apps/registering-a-github-app/using-webhooks-with-github-apps)." """ - after: NotRequired[Union[str, None]] - app: NotRequired[Union[IntegrationType, None]] - before: NotRequired[Union[str, None]] - conclusion: NotRequired[ - Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - "stale", - "startup_failure", - ], - ] - ] - created_at: NotRequired[datetime] - head_branch: NotRequired[Union[str, None]] - head_sha: NotRequired[str] - id: NotRequired[int] - node_id: NotRequired[str] - pull_requests: NotRequired[List[PullRequestMinimalType]] - repository: NotRequired[MinimalRepositoryType] - status: NotRequired[ - Literal["queued", "in_progress", "completed", "pending", "waiting"] - ] - updated_at: NotRequired[datetime] - url: NotRequired[str] - - -__all__ = ("SimpleCheckSuiteType",) + id: int + node_id: str + + +__all__ = ("SimpleInstallationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0374.py b/githubkit/versions/v2022_11_28/types/group_0374.py index c5194adc5..b52264ecb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0374.py +++ b/githubkit/versions/v2022_11_28/types/group_0374.py @@ -9,67 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0006 import IntegrationType -from .group_0191 import DeploymentSimpleType -from .group_0373 import SimpleCheckSuiteType -from .group_0164 import PullRequestMinimalType +class OrganizationSimpleWebhooksType(TypedDict): + """Organization Simple -class CheckRunWithSimpleCheckSuiteType(TypedDict): - """CheckRun - - A check performed on the code of a given code change + A GitHub organization. Webhook payloads contain the `organization` property when + the webhook is configured for an + organization, or when the event occurs from activity in a repository owned by an + organization. """ - app: Union[None, IntegrationType, None] - check_suite: SimpleCheckSuiteType - completed_at: Union[datetime, None] - conclusion: Union[ - None, - Literal[ - "waiting", - "pending", - "startup_failure", - "stale", - "success", - "failure", - "neutral", - "cancelled", - "skipped", - "timed_out", - "action_required", - ], - ] - deployment: NotRequired[DeploymentSimpleType] - details_url: str - external_id: str - head_sha: str - html_url: str + login: 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 + 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 CheckRunWithSimpleCheckSuitePropOutputType(TypedDict): - """CheckRunWithSimpleCheckSuitePropOutput""" - - annotations_count: int - annotations_url: str - summary: Union[str, None] - text: Union[str, None] - title: Union[str, None] - - -__all__ = ( - "CheckRunWithSimpleCheckSuiteType", - "CheckRunWithSimpleCheckSuitePropOutputType", -) +__all__ = ("OrganizationSimpleWebhooksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0375.py b/githubkit/versions/v2022_11_28/types/group_0375.py index d33b3403a..776d76655 100644 --- a/githubkit/versions/v2022_11_28/types/group_0375.py +++ b/githubkit/versions/v2022_11_28/types/group_0375.py @@ -9,26 +9,281 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType +from .group_0016 import LicenseSimpleType -class WebhooksDeployKeyType(TypedDict): - """WebhooksDeployKey - The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- - deploy-key) resource. +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. """ - added_by: NotRequired[Union[str, None]] - created_at: str id: int - key: str - last_used: NotRequired[Union[str, None]] - read_only: bool - title: str + 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 - verified: bool + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + downloads_url: str + events_url: str + forks_url: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + notifications_url: str + pulls_url: str + releases_url: str + ssh_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + clone_url: str + mirror_url: Union[str, None] + hooks_url: str + svn_url: str + homepage: Union[str, None] + language: Union[str, None] + forks_count: int + stargazers_count: int + watchers_count: int + size: int + default_branch: str + open_issues_count: int + is_template: NotRequired[bool] + topics: NotRequired[List[str]] + 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] + + +class RepositoryWebhooksPropCustomPropertiesType(TypedDict): + """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__ = ("WebhooksDeployKeyType",) +__all__ = ( + "RepositoryWebhooksType", + "RepositoryWebhooksPropPermissionsType", + "RepositoryWebhooksPropCustomPropertiesType", + "RepositoryWebhooksPropTemplateRepositoryType", + "RepositoryWebhooksPropTemplateRepositoryPropOwnerType", + "RepositoryWebhooksPropTemplateRepositoryPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0376.py b/githubkit/versions/v2022_11_28/types/group_0376.py index 34eb3310b..5484de1f2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0376.py +++ b/githubkit/versions/v2022_11_28/types/group_0376.py @@ -9,23 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired -class WebhooksWorkflowType(TypedDict): - """Workflow""" +class SimpleUserWebhooksType(TypedDict): + """Simple User - badge_url: str - created_at: datetime - html_url: str + The GitHub user that triggered the event. This property is included in every + webhook payload. + """ + + name: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + login: str id: int - name: str node_id: str - path: str - state: str - updated_at: datetime + avatar_url: str + gravatar_id: Union[str, None] url: str - - -__all__ = ("WebhooksWorkflowType",) + 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] + + +__all__ = ("SimpleUserWebhooksType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0377.py b/githubkit/versions/v2022_11_28/types/group_0377.py index 1184251ad..6cf73b746 100644 --- a/githubkit/versions/v2022_11_28/types/group_0377.py +++ b/githubkit/versions/v2022_11_28/types/group_0377.py @@ -9,68 +9,52 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -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] - - -class WebhooksReviewersItemsType(TypedDict): - """WebhooksReviewersItems""" - - reviewer: NotRequired[Union[WebhooksReviewersItemsPropReviewerType, None]] - type: NotRequired[Literal["User"]] - - -class WebhooksReviewersItemsPropReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] +class WebhooksRuleType(TypedDict): + """branch protection rule + + The branch protection rule. Includes a `name` and all the [branch protection + settings](https://docs.github.com/github/administering-a-repository/defining- + the-mergeability-of-pull-requests/about-protected-branches#about-branch- + protection-settings) applied to branches that match the name. Binary settings + are boolean. Multi-level configurations are one of `off`, `non_admins`, or + `everyone`. Actor and build lists are arrays of strings. + """ + + admin_enforced: bool + allow_deletions_enforcement_level: Literal["off", "non_admins", "everyone"] + allow_force_pushes_enforcement_level: Literal["off", "non_admins", "everyone"] + authorized_actor_names: List[str] + authorized_actors_only: bool + authorized_dismissal_actors_only: bool + create_protected: NotRequired[bool] + created_at: datetime + dismiss_stale_reviews_on_push: bool id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhooksApproverType", - "WebhooksReviewersItemsType", - "WebhooksReviewersItemsPropReviewerType", -) + ignore_approvals_from_contributors: bool + linear_history_requirement_enforcement_level: Literal[ + "off", "non_admins", "everyone" + ] + lock_branch_enforcement_level: Literal["off", "non_admins", "everyone"] + lock_allows_fork_sync: NotRequired[bool] + merge_queue_enforcement_level: Literal["off", "non_admins", "everyone"] + name: str + pull_request_reviews_enforcement_level: Literal["off", "non_admins", "everyone"] + repository_id: int + require_code_owner_review: bool + require_last_push_approval: NotRequired[bool] + required_approving_review_count: int + required_conversation_resolution_level: Literal["off", "non_admins", "everyone"] + required_deployments_enforcement_level: Literal["off", "non_admins", "everyone"] + required_status_checks: List[str] + required_status_checks_enforcement_level: Literal["off", "non_admins", "everyone"] + signature_requirement_enforcement_level: Literal["off", "non_admins", "everyone"] + strict_required_status_checks_policy: bool + updated_at: datetime + + +__all__ = ("WebhooksRuleType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0378.py b/githubkit/versions/v2022_11_28/types/group_0378.py index 167cc5522..95b8c0746 100644 --- a/githubkit/versions/v2022_11_28/types/group_0378.py +++ b/githubkit/versions/v2022_11_28/types/group_0378.py @@ -9,20 +9,52 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class WebhooksWorkflowJobRunType(TypedDict): - """WebhooksWorkflowJobRun""" - - conclusion: None - created_at: str - environment: str - html_url: str - id: int - name: None - status: str - updated_at: str - - -__all__ = ("WebhooksWorkflowJobRunType",) +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0006 import IntegrationType +from .group_0055 import MinimalRepositoryType +from .group_0169 import PullRequestMinimalType + + +class SimpleCheckSuiteType(TypedDict): + """SimpleCheckSuite + + A suite of checks performed on the code of a given code change + """ + + after: NotRequired[Union[str, None]] + app: NotRequired[Union[IntegrationType, None]] + before: NotRequired[Union[str, None]] + conclusion: NotRequired[ + Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + "stale", + "startup_failure", + ], + ] + ] + created_at: NotRequired[datetime] + head_branch: NotRequired[Union[str, None]] + head_sha: NotRequired[str] + id: NotRequired[int] + node_id: NotRequired[str] + pull_requests: NotRequired[List[PullRequestMinimalType]] + repository: NotRequired[MinimalRepositoryType] + status: NotRequired[ + Literal["queued", "in_progress", "completed", "pending", "waiting"] + ] + updated_at: NotRequired[datetime] + url: NotRequired[str] + + +__all__ = ("SimpleCheckSuiteType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0379.py b/githubkit/versions/v2022_11_28/types/group_0379.py index f7c002ed3..827462658 100644 --- a/githubkit/versions/v2022_11_28/types/group_0379.py +++ b/githubkit/versions/v2022_11_28/types/group_0379.py @@ -9,34 +9,67 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0006 import IntegrationType +from .group_0196 import DeploymentSimpleType +from .group_0378 import SimpleCheckSuiteType +from .group_0169 import PullRequestMinimalType -class WebhooksUserType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] +class CheckRunWithSimpleCheckSuiteType(TypedDict): + """CheckRun + + A check performed on the code of a given code change + """ + + app: Union[None, IntegrationType, None] + check_suite: SimpleCheckSuiteType + completed_at: Union[datetime, None] + conclusion: Union[ + None, + Literal[ + "waiting", + "pending", + "startup_failure", + "stale", + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required", + ], + ] + deployment: NotRequired[DeploymentSimpleType] + details_url: str + external_id: str + head_sha: str + html_url: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ("WebhooksUserType",) + name: str + node_id: str + output: CheckRunWithSimpleCheckSuitePropOutputType + pull_requests: List[PullRequestMinimalType] + started_at: datetime + status: Literal["queued", "in_progress", "completed", "pending"] + url: str + + +class CheckRunWithSimpleCheckSuitePropOutputType(TypedDict): + """CheckRunWithSimpleCheckSuitePropOutput""" + + annotations_count: int + annotations_url: str + summary: Union[str, None] + text: Union[str, None] + title: Union[str, None] + + +__all__ = ( + "CheckRunWithSimpleCheckSuiteType", + "CheckRunWithSimpleCheckSuitePropOutputType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0380.py b/githubkit/versions/v2022_11_28/types/group_0380.py index e69705f5c..d33b3403a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0380.py +++ b/githubkit/versions/v2022_11_28/types/group_0380.py @@ -9,81 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -class WebhooksAnswerType(TypedDict): - """WebhooksAnswer""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - child_comment_count: int - created_at: datetime - discussion_id: int - html_url: str - id: int - node_id: str - parent_id: None - reactions: NotRequired[WebhooksAnswerPropReactionsType] - repository_url: str - updated_at: datetime - user: Union[WebhooksAnswerPropUserType, None] - - -class WebhooksAnswerPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhooksDeployKeyType(TypedDict): + """WebhooksDeployKey + The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a- + deploy-key) resource. + """ -class WebhooksAnswerPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + added_by: NotRequired[Union[str, None]] + created_at: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + key: str + last_used: NotRequired[Union[str, None]] + read_only: bool + title: str + url: str + verified: bool -__all__ = ( - "WebhooksAnswerType", - "WebhooksAnswerPropReactionsType", - "WebhooksAnswerPropUserType", -) +__all__ = ("WebhooksDeployKeyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0381.py b/githubkit/versions/v2022_11_28/types/group_0381.py index c6ec63734..34eb3310b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0381.py +++ b/githubkit/versions/v2022_11_28/types/group_0381.py @@ -10,135 +10,22 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class DiscussionType(TypedDict): - """Discussion +class WebhooksWorkflowType(TypedDict): + """Workflow""" - A Discussion in a repository. - """ - - active_lock_reason: Union[str, None] - answer_chosen_at: Union[str, None] - answer_chosen_by: Union[DiscussionPropAnswerChosenByType, None] - answer_html_url: Union[str, None] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - category: DiscussionPropCategoryType - comments: int + badge_url: str created_at: datetime html_url: str id: int - locked: bool + name: str node_id: str - number: int - reactions: NotRequired[DiscussionPropReactionsType] - repository_url: str - state: Literal["open", "closed", "locked", "converting", "transferring"] - state_reason: Union[None, Literal["resolved", "outdated", "duplicate", "reopened"]] - timeline_url: NotRequired[str] - title: str + path: str + state: str updated_at: datetime - user: Union[DiscussionPropUserType, None] - - -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] - - -class DiscussionPropCategoryType(TypedDict): - """DiscussionPropCategory""" - - created_at: datetime - description: str - emoji: str - id: int - is_answerable: bool - name: str - node_id: NotRequired[str] - repository_id: int - slug: str - updated_at: str - - -class DiscussionPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int url: str -class DiscussionPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "DiscussionType", - "DiscussionPropAnswerChosenByType", - "DiscussionPropCategoryType", - "DiscussionPropReactionsType", - "DiscussionPropUserType", -) +__all__ = ("WebhooksWorkflowType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0382.py b/githubkit/versions/v2022_11_28/types/group_0382.py index 41a3b647f..1184251ad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0382.py +++ b/githubkit/versions/v2022_11_28/types/group_0382.py @@ -13,49 +13,37 @@ from typing_extensions import TypedDict, NotRequired -class WebhooksCommentType(TypedDict): - """WebhooksComment""" - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - child_comment_count: int - created_at: str - discussion_id: int - html_url: str - id: int - node_id: str - parent_id: Union[int, None] - reactions: WebhooksCommentPropReactionsType - repository_url: str - updated_at: str - user: Union[WebhooksCommentPropUserType, None] - - -class WebhooksCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksCommentPropUserType(TypedDict): +class WebhooksApproverType(TypedDict): + """WebhooksApprover""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhooksReviewersItemsType(TypedDict): + """WebhooksReviewersItems""" + + reviewer: NotRequired[Union[WebhooksReviewersItemsPropReviewerType, None]] + type: NotRequired[Literal["User"]] + + +class WebhooksReviewersItemsPropReviewerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -82,7 +70,7 @@ class WebhooksCommentPropUserType(TypedDict): __all__ = ( - "WebhooksCommentType", - "WebhooksCommentPropReactionsType", - "WebhooksCommentPropUserType", + "WebhooksApproverType", + "WebhooksReviewersItemsType", + "WebhooksReviewersItemsPropReviewerType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0383.py b/githubkit/versions/v2022_11_28/types/group_0383.py index 469b744f3..167cc5522 100644 --- a/githubkit/versions/v2022_11_28/types/group_0383.py +++ b/githubkit/versions/v2022_11_28/types/group_0383.py @@ -9,20 +9,20 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict -class WebhooksLabelType(TypedDict): - """Label""" +class WebhooksWorkflowJobRunType(TypedDict): + """WebhooksWorkflowJobRun""" - color: str - default: bool - description: Union[str, None] + conclusion: None + created_at: str + environment: str + html_url: str id: int - name: str - node_id: str - url: str + name: None + status: str + updated_at: str -__all__ = ("WebhooksLabelType",) +__all__ = ("WebhooksWorkflowJobRunType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0384.py b/githubkit/versions/v2022_11_28/types/group_0384.py index 60f7cc9c6..f7c002ed3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0384.py +++ b/githubkit/versions/v2022_11_28/types/group_0384.py @@ -9,17 +9,34 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class WebhooksRepositoriesItemsType(TypedDict): - """WebhooksRepositoriesItems""" - - full_name: str +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired + + +class WebhooksUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - name: str - node_id: str - private: bool - - -__all__ = ("WebhooksRepositoriesItemsType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ("WebhooksUserType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0385.py b/githubkit/versions/v2022_11_28/types/group_0385.py index afa5d37c4..e69705f5c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0385.py +++ b/githubkit/versions/v2022_11_28/types/group_0385.py @@ -9,17 +9,81 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -class WebhooksRepositoriesAddedItemsType(TypedDict): - """WebhooksRepositoriesAddedItems""" +class WebhooksAnswerType(TypedDict): + """WebhooksAnswer""" - full_name: str + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + child_comment_count: int + created_at: datetime + discussion_id: int + html_url: str id: int - name: str node_id: str - private: bool + parent_id: None + reactions: NotRequired[WebhooksAnswerPropReactionsType] + repository_url: str + updated_at: datetime + user: Union[WebhooksAnswerPropUserType, None] -__all__ = ("WebhooksRepositoriesAddedItemsType",) +class WebhooksAnswerPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksAnswerPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhooksAnswerType", + "WebhooksAnswerPropReactionsType", + "WebhooksAnswerPropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0386.py b/githubkit/versions/v2022_11_28/types/group_0386.py index 9f4b80f8c..c6ec63734 100644 --- a/githubkit/versions/v2022_11_28/types/group_0386.py +++ b/githubkit/versions/v2022_11_28/types/group_0386.py @@ -13,16 +13,17 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0006 import IntegrationType +class DiscussionType(TypedDict): + """Discussion -class WebhooksIssueCommentType(TypedDict): - """issue comment - - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. + A Discussion in a repository. """ + active_lock_reason: Union[str, None] + answer_chosen_at: Union[str, None] + answer_chosen_by: Union[DiscussionPropAnswerChosenByType, None] + answer_html_url: Union[str, None] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -34,19 +35,66 @@ class WebhooksIssueCommentType(TypedDict): "OWNER", ] body: str + category: DiscussionPropCategoryType + comments: int created_at: datetime html_url: str id: int - issue_url: str + locked: bool node_id: str - performed_via_github_app: Union[IntegrationType, None] - reactions: WebhooksIssueCommentPropReactionsType + number: int + reactions: NotRequired[DiscussionPropReactionsType] + repository_url: str + state: Literal["open", "closed", "locked", "converting", "transferring"] + state_reason: Union[None, Literal["resolved", "outdated", "duplicate", "reopened"]] + timeline_url: NotRequired[str] + title: str updated_at: datetime - url: str - user: Union[WebhooksIssueCommentPropUserType, None] + user: Union[DiscussionPropUserType, 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] + + +class DiscussionPropCategoryType(TypedDict): + """DiscussionPropCategory""" + + created_at: datetime + description: str + emoji: str + id: int + is_answerable: bool + name: str + node_id: NotRequired[str] + repository_id: int + slug: str + updated_at: str -class WebhooksIssueCommentPropReactionsType(TypedDict): +class DiscussionPropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -61,7 +109,7 @@ class WebhooksIssueCommentPropReactionsType(TypedDict): url: str -class WebhooksIssueCommentPropUserType(TypedDict): +class DiscussionPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -83,12 +131,14 @@ class WebhooksIssueCommentPropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] __all__ = ( - "WebhooksIssueCommentType", - "WebhooksIssueCommentPropReactionsType", - "WebhooksIssueCommentPropUserType", + "DiscussionType", + "DiscussionPropAnswerChosenByType", + "DiscussionPropCategoryType", + "DiscussionPropReactionsType", + "DiscussionPropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0387.py b/githubkit/versions/v2022_11_28/types/group_0387.py index 1ffc85f09..41a3b647f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0387.py +++ b/githubkit/versions/v2022_11_28/types/group_0387.py @@ -9,25 +9,80 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksChangesType(TypedDict): - """WebhooksChanges +class WebhooksCommentType(TypedDict): + """WebhooksComment""" - The changes to the comment. - """ + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + child_comment_count: int + created_at: str + discussion_id: int + html_url: str + id: int + node_id: str + parent_id: Union[int, None] + reactions: WebhooksCommentPropReactionsType + repository_url: str + updated_at: str + user: Union[WebhooksCommentPropUserType, None] - body: NotRequired[WebhooksChangesPropBodyType] +class WebhooksCommentPropReactionsType(TypedDict): + """Reactions""" -class WebhooksChangesPropBodyType(TypedDict): - """WebhooksChangesPropBody""" + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str - from_: str + +class WebhooksCommentPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhooksChangesType", - "WebhooksChangesPropBodyType", + "WebhooksCommentType", + "WebhooksCommentPropReactionsType", + "WebhooksCommentPropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0388.py b/githubkit/versions/v2022_11_28/types/group_0388.py index e3476738b..469b744f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0388.py +++ b/githubkit/versions/v2022_11_28/types/group_0388.py @@ -9,115 +9,11 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -class WebhooksIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhooksIssuePropAssigneeType, None]] - assignees: List[Union[WebhooksIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhooksIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhooksIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhooksIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhooksIssuePropPullRequestType] - reactions: WebhooksIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhooksIssuePropUserType, None] - - -class WebhooksIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -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] - - -class WebhooksIssuePropLabelsItemsType(TypedDict): +class WebhooksLabelType(TypedDict): """Label""" color: str @@ -129,262 +25,4 @@ class WebhooksIssuePropLabelsItemsType(TypedDict): url: str -class WebhooksIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] - 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] - - -class WebhooksIssuePropPerformedViaGithubAppPropPermissionsType(TypedDict): - """WebhooksIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhooksIssuePropPullRequestType(TypedDict): - """WebhooksIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhooksIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksIssuePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhooksIssueType", - "WebhooksIssuePropAssigneeType", - "WebhooksIssuePropAssigneesItemsType", - "WebhooksIssuePropLabelsItemsType", - "WebhooksIssuePropMilestoneType", - "WebhooksIssuePropMilestonePropCreatorType", - "WebhooksIssuePropPerformedViaGithubAppType", - "WebhooksIssuePropPerformedViaGithubAppPropOwnerType", - "WebhooksIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhooksIssuePropPullRequestType", - "WebhooksIssuePropReactionsType", - "WebhooksIssuePropUserType", -) +__all__ = ("WebhooksLabelType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0389.py b/githubkit/versions/v2022_11_28/types/group_0389.py index 85c32b47c..60f7cc9c6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0389.py +++ b/githubkit/versions/v2022_11_28/types/group_0389.py @@ -9,62 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class WebhooksMilestoneType(TypedDict): - """Milestone +class WebhooksRepositoriesItemsType(TypedDict): + """WebhooksRepositoriesItems""" - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + full_name: str id: int - labels_url: str + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + private: bool -__all__ = ( - "WebhooksMilestoneType", - "WebhooksMilestonePropCreatorType", -) +__all__ = ("WebhooksRepositoriesItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0390.py b/githubkit/versions/v2022_11_28/types/group_0390.py index 49c4062af..afa5d37c4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0390.py +++ b/githubkit/versions/v2022_11_28/types/group_0390.py @@ -9,380 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class WebhooksIssue2Type(TypedDict): - """Issue +class WebhooksRepositoriesAddedItemsType(TypedDict): + """WebhooksRepositoriesAddedItems""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhooksIssue2PropAssigneeType, None]] - assignees: List[Union[WebhooksIssue2PropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhooksIssue2PropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhooksIssue2PropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhooksIssue2PropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhooksIssue2PropPullRequestType] - reactions: WebhooksIssue2PropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhooksIssue2PropUserType, None] - - -class WebhooksIssue2PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -class WebhooksIssue2PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhooksIssue2PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksIssue2PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksIssue2PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + full_name: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] name: str node_id: str - owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, None] - permissions: NotRequired[WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhooksIssue2PropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] + private: bool -__all__ = ( - "WebhooksIssue2Type", - "WebhooksIssue2PropAssigneeType", - "WebhooksIssue2PropAssigneesItemsType", - "WebhooksIssue2PropLabelsItemsType", - "WebhooksIssue2PropMilestoneType", - "WebhooksIssue2PropMilestonePropCreatorType", - "WebhooksIssue2PropPerformedViaGithubAppType", - "WebhooksIssue2PropPerformedViaGithubAppPropOwnerType", - "WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType", - "WebhooksIssue2PropPullRequestType", - "WebhooksIssue2PropReactionsType", - "WebhooksIssue2PropUserType", -) +__all__ = ("WebhooksRepositoriesAddedItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0391.py b/githubkit/versions/v2022_11_28/types/group_0391.py index 8c0ea1655..9f4b80f8c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0391.py +++ b/githubkit/versions/v2022_11_28/types/group_0391.py @@ -9,11 +9,59 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0006 import IntegrationType -class WebhooksUserMannequinType(TypedDict): + +class WebhooksIssueCommentType(TypedDict): + """issue comment + + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + itself. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + created_at: datetime + html_url: str + id: int + issue_url: str + node_id: str + performed_via_github_app: Union[IntegrationType, None] + reactions: WebhooksIssueCommentPropReactionsType + updated_at: datetime + url: str + user: Union[WebhooksIssueCommentPropUserType, None] + + +class WebhooksIssueCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksIssueCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -39,4 +87,8 @@ class WebhooksUserMannequinType(TypedDict): url: NotRequired[str] -__all__ = ("WebhooksUserMannequinType",) +__all__ = ( + "WebhooksIssueCommentType", + "WebhooksIssueCommentPropReactionsType", + "WebhooksIssueCommentPropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0392.py b/githubkit/versions/v2022_11_28/types/group_0392.py index 150999de5..1ffc85f09 100644 --- a/githubkit/versions/v2022_11_28/types/group_0392.py +++ b/githubkit/versions/v2022_11_28/types/group_0392.py @@ -9,48 +9,25 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class WebhooksMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" +class WebhooksChangesType(TypedDict): + """WebhooksChanges - account: WebhooksMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: Union[str, None] - on_free_trial: bool - plan: WebhooksMarketplacePurchasePropPlanType - unit_count: int + The changes to the comment. + """ + body: NotRequired[WebhooksChangesPropBodyType] -class WebhooksMarketplacePurchasePropAccountType(TypedDict): - """WebhooksMarketplacePurchasePropAccount""" - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str +class WebhooksChangesPropBodyType(TypedDict): + """WebhooksChangesPropBody""" - -class WebhooksMarketplacePurchasePropPlanType(TypedDict): - """WebhooksMarketplacePurchasePropPlan""" - - bullets: List[Union[str, None]] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + from_: str __all__ = ( - "WebhooksMarketplacePurchaseType", - "WebhooksMarketplacePurchasePropAccountType", - "WebhooksMarketplacePurchasePropPlanType", + "WebhooksChangesType", + "WebhooksChangesPropBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0393.py b/githubkit/versions/v2022_11_28/types/group_0393.py index a94b9548c..e3476738b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0393.py +++ b/githubkit/versions/v2022_11_28/types/group_0393.py @@ -9,48 +9,382 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksPreviousMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" +class WebhooksIssueType(TypedDict): + """Issue - account: WebhooksPreviousMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: None - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhooksPreviousMarketplacePurchasePropPlanType - unit_count: int + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhooksIssuePropAssigneeType, None]] + assignees: List[Union[WebhooksIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhooksIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhooksIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhooksIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhooksIssuePropPullRequestType] + reactions: WebhooksIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhooksIssuePropUserType, None] + + +class WebhooksIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] -class WebhooksPreviousMarketplacePurchasePropAccountType(TypedDict): - """WebhooksPreviousMarketplacePurchasePropAccount""" +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] + + +class WebhooksIssuePropLabelsItemsType(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 WebhooksIssuePropMilestoneType(TypedDict): + """Milestone -class WebhooksPreviousMarketplacePurchasePropPlanType(TypedDict): - """WebhooksPreviousMarketplacePurchasePropPlan""" + A collection of related issues and pull requests. + """ - bullets: List[str] - description: str - has_free_trial: bool + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int - 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 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] + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + node_id: str + owner: Union[WebhooksIssuePropPerformedViaGithubAppPropOwnerType, None] + permissions: NotRequired[WebhooksIssuePropPerformedViaGithubAppPropPermissionsType] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhooksIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhooksIssuePropPerformedViaGithubAppPropPermissionsType(TypedDict): + """WebhooksIssuePropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhooksIssuePropPullRequestType(TypedDict): + """WebhooksIssuePropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +class WebhooksIssuePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksIssuePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] __all__ = ( - "WebhooksPreviousMarketplacePurchaseType", - "WebhooksPreviousMarketplacePurchasePropAccountType", - "WebhooksPreviousMarketplacePurchasePropPlanType", + "WebhooksIssueType", + "WebhooksIssuePropAssigneeType", + "WebhooksIssuePropAssigneesItemsType", + "WebhooksIssuePropLabelsItemsType", + "WebhooksIssuePropMilestoneType", + "WebhooksIssuePropMilestonePropCreatorType", + "WebhooksIssuePropPerformedViaGithubAppType", + "WebhooksIssuePropPerformedViaGithubAppPropOwnerType", + "WebhooksIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhooksIssuePropPullRequestType", + "WebhooksIssuePropReactionsType", + "WebhooksIssuePropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0394.py b/githubkit/versions/v2022_11_28/types/group_0394.py index 750ed6b83..85c32b47c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0394.py +++ b/githubkit/versions/v2022_11_28/types/group_0394.py @@ -9,52 +9,62 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksTeamType(TypedDict): - """Team +class WebhooksMilestoneType(TypedDict): + """Milestone - Groups of organization members that gives permissions on specified repositories. + A collection of related issues and pull requests. """ - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[Union[WebhooksTeamPropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhooksTeamPropParentType(TypedDict): - """WebhooksTeamPropParent""" - + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksMilestonePropCreatorType, None] description: Union[str, None] + due_on: Union[datetime, None] html_url: str id: int - members_url: str - name: str + labels_url: str node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime url: str +class WebhooksMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + __all__ = ( - "WebhooksTeamType", - "WebhooksTeamPropParentType", + "WebhooksMilestoneType", + "WebhooksMilestonePropCreatorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0395.py b/githubkit/versions/v2022_11_28/types/group_0395.py index dff6a6d2b..49c4062af 100644 --- a/githubkit/versions/v2022_11_28/types/group_0395.py +++ b/githubkit/versions/v2022_11_28/types/group_0395.py @@ -9,22 +9,380 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0165 import SimpleCommitType +class WebhooksIssue2Type(TypedDict): + """Issue -class MergeGroupType(TypedDict): - """Merge Group + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhooksIssue2PropAssigneeType, None]] + assignees: List[Union[WebhooksIssue2PropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhooksIssue2PropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhooksIssue2PropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhooksIssue2PropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhooksIssue2PropPullRequestType] + reactions: WebhooksIssue2PropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhooksIssue2PropUserType, None] + + +class WebhooksIssue2PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +class WebhooksIssue2PropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhooksIssue2PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhooksIssue2PropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhooksIssue2PropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] - A group of pull requests that the merge queue has grouped together to be merged. + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[WebhooksIssue2PropPerformedViaGithubAppPropOwnerType, None] + permissions: NotRequired[WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhooksIssue2PropPerformedViaGithubAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType(TypedDict): + """WebhooksIssue2PropPerformedViaGithubAppPropPermissions + + The set of permissions for the GitHub app """ - head_sha: str - head_ref: str - base_sha: str - base_ref: str - head_commit: SimpleCommitType + 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] -__all__ = ("MergeGroupType",) +__all__ = ( + "WebhooksIssue2Type", + "WebhooksIssue2PropAssigneeType", + "WebhooksIssue2PropAssigneesItemsType", + "WebhooksIssue2PropLabelsItemsType", + "WebhooksIssue2PropMilestoneType", + "WebhooksIssue2PropMilestonePropCreatorType", + "WebhooksIssue2PropPerformedViaGithubAppType", + "WebhooksIssue2PropPerformedViaGithubAppPropOwnerType", + "WebhooksIssue2PropPerformedViaGithubAppPropPermissionsType", + "WebhooksIssue2PropPullRequestType", + "WebhooksIssue2PropReactionsType", + "WebhooksIssue2PropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0396.py b/githubkit/versions/v2022_11_28/types/group_0396.py index a3ab8bcff..8c0ea1655 100644 --- a/githubkit/versions/v2022_11_28/types/group_0396.py +++ b/githubkit/versions/v2022_11_28/types/group_0396.py @@ -9,36 +9,11 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksMilestone3Type(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksMilestone3PropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhooksMilestone3PropCreatorType(TypedDict): +class WebhooksUserMannequinType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -60,11 +35,8 @@ class WebhooksMilestone3PropCreatorType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -__all__ = ( - "WebhooksMilestone3Type", - "WebhooksMilestone3PropCreatorType", -) +__all__ = ("WebhooksUserMannequinType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0397.py b/githubkit/versions/v2022_11_28/types/group_0397.py index 7e66b4dbc..150999de5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0397.py +++ b/githubkit/versions/v2022_11_28/types/group_0397.py @@ -9,51 +9,48 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List, Union, Literal +from typing_extensions import TypedDict -class WebhooksMembershipType(TypedDict): - """Membership +class WebhooksMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" - The membership between the user and the organization. Not present when the - action is `member_invited`. - """ + account: WebhooksMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhooksMarketplacePurchasePropPlanType + unit_count: int - organization_url: str - role: str - state: str - url: str - user: Union[WebhooksMembershipPropUserType, None] +class WebhooksMarketplacePurchasePropAccountType(TypedDict): + """WebhooksMarketplacePurchasePropAccount""" -class WebhooksMembershipPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] id: int login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhooksMarketplacePurchasePropPlanType(TypedDict): + """WebhooksMarketplacePurchasePropPlan""" + + bullets: List[Union[str, None]] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhooksMembershipType", - "WebhooksMembershipPropUserType", + "WebhooksMarketplacePurchaseType", + "WebhooksMarketplacePurchasePropAccountType", + "WebhooksMarketplacePurchasePropPlanType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0398.py b/githubkit/versions/v2022_11_28/types/group_0398.py index 9dc401c4d..a94b9548c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0398.py +++ b/githubkit/versions/v2022_11_28/types/group_0398.py @@ -12,135 +12,45 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class WebhooksPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" -class PersonalAccessTokenRequestType(TypedDict): - """Personal Access Token Request + account: WebhooksPreviousMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: None + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: bool + plan: WebhooksPreviousMarketplacePurchasePropPlanType + unit_count: int - Details of a Personal Access Token Request. - """ + +class WebhooksPreviousMarketplacePurchasePropAccountType(TypedDict): + """WebhooksPreviousMarketplacePurchasePropAccount""" id: int - owner: SimpleUserType - permissions_added: PersonalAccessTokenRequestPropPermissionsAddedType - permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgradedType - permissions_result: PersonalAccessTokenRequestPropPermissionsResultType - repository_selection: Literal["none", "all", "subset"] - repository_count: Union[int, None] - repositories: Union[List[PersonalAccessTokenRequestPropRepositoriesItemsType], None] - created_at: str - token_expired: bool - token_expires_at: Union[str, None] - token_last_used_at: Union[str, None] - - -class PersonalAccessTokenRequestPropRepositoriesItemsType(TypedDict): - """PersonalAccessTokenRequestPropRepositoriesItems""" - - full_name: str - id: int - name: str + login: str node_id: str - private: bool - - -class PersonalAccessTokenRequestPropPermissionsAddedType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsAdded - - New requested permissions, categorized by type of permission. - """ - - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsAddedPropOtherType] - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsAddedPropOtherType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsAddedPropOther""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsUpgraded - - Requested permissions that elevate access for a previously approved request for - access, categorized by type of permission. - """ + organization_billing_email: Union[str, None] + type: str - organization: NotRequired[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType - ] - repository: NotRequired[ - PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType - ] - other: NotRequired[PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType] +class WebhooksPreviousMarketplacePurchasePropPlanType(TypedDict): + """WebhooksPreviousMarketplacePurchasePropPlan""" -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType(TypedDict): - """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] - - -class PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" - - -class PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" - - -class PersonalAccessTokenRequestPropPermissionsResultPropOtherType(TypedDict): - """PersonalAccessTokenRequestPropPermissionsResultPropOther""" + bullets: List[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "PersonalAccessTokenRequestType", - "PersonalAccessTokenRequestPropRepositoriesItemsType", - "PersonalAccessTokenRequestPropPermissionsAddedType", - "PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsAddedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsUpgradedType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType", - "PersonalAccessTokenRequestPropPermissionsResultType", - "PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType", - "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", - "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", + "WebhooksPreviousMarketplacePurchaseType", + "WebhooksPreviousMarketplacePurchasePropAccountType", + "WebhooksPreviousMarketplacePurchasePropPlanType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0399.py b/githubkit/versions/v2022_11_28/types/group_0399.py index b6f042895..750ed6b83 100644 --- a/githubkit/versions/v2022_11_28/types/group_0399.py +++ b/githubkit/versions/v2022_11_28/types/group_0399.py @@ -9,56 +9,52 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksProjectCardType(TypedDict): - """Project Card""" +class WebhooksTeamType(TypedDict): + """Team - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhooksProjectCardPropCreatorType, None] - id: int - node_id: str - note: Union[str, None] - project_url: str - updated_at: datetime - url: str + Groups of organization members that gives permissions on specified repositories. + """ - -class WebhooksProjectCardPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] + description: NotRequired[Union[str, None]] html_url: NotRequired[str] id: int - login: str - name: NotRequired[str] + members_url: NotRequired[str] + name: str node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + parent: NotRequired[Union[WebhooksTeamPropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] url: NotRequired[str] +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__ = ( - "WebhooksProjectCardType", - "WebhooksProjectCardPropCreatorType", + "WebhooksTeamType", + "WebhooksTeamPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0400.py b/githubkit/versions/v2022_11_28/types/group_0400.py index 5f5c34e24..1ae4bf651 100644 --- a/githubkit/versions/v2022_11_28/types/group_0400.py +++ b/githubkit/versions/v2022_11_28/types/group_0400.py @@ -9,56 +9,22 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0170 import SimpleCommitType -class WebhooksProjectType(TypedDict): - """Project""" - body: Union[str, None] - columns_url: str - created_at: datetime - creator: Union[WebhooksProjectPropCreatorType, None] - html_url: str - id: int - name: str - node_id: str - number: int - owner_url: str - state: Literal["open", "closed"] - updated_at: datetime - url: str +class MergeGroupType(TypedDict): + """Merge Group + A group of pull requests that the merge queue has grouped together to be merged. + """ -class WebhooksProjectPropCreatorType(TypedDict): - """User""" + head_sha: str + head_ref: str + base_sha: str + base_ref: str + head_commit: SimpleCommitType - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - -__all__ = ( - "WebhooksProjectType", - "WebhooksProjectPropCreatorType", -) +__all__ = ("MergeGroupType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0401.py b/githubkit/versions/v2022_11_28/types/group_0401.py index 080ccf386..a3ab8bcff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0401.py +++ b/githubkit/versions/v2022_11_28/types/group_0401.py @@ -9,23 +9,62 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksProjectColumnType(TypedDict): - """Project Column""" +class WebhooksMilestone3Type(TypedDict): + """Milestone - after_id: NotRequired[Union[int, None]] - cards_url: str + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int created_at: datetime + creator: Union[WebhooksMilestone3PropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int - name: str + labels_url: str node_id: str - project_url: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str updated_at: datetime url: str -__all__ = ("WebhooksProjectColumnType",) +class WebhooksMilestone3PropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhooksMilestone3Type", + "WebhooksMilestone3PropCreatorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0402.py b/githubkit/versions/v2022_11_28/types/group_0402.py index d5d8acb4c..7e66b4dbc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0402.py +++ b/githubkit/versions/v2022_11_28/types/group_0402.py @@ -9,33 +9,51 @@ from __future__ import annotations -from typing import Union -from datetime import datetime -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class WebhooksMembershipType(TypedDict): + """Membership -class ProjectsV2Type(TypedDict): - """Projects v2 Project - - A projects v2 project + The membership between the user and the organization. Not present when the + action is `member_invited`. """ - id: float - node_id: str - owner: SimpleUserType - creator: SimpleUserType - title: str - description: Union[str, None] - public: bool - closed_at: Union[datetime, None] - created_at: datetime - updated_at: datetime - number: int - short_description: Union[str, None] - deleted_at: Union[datetime, None] - deleted_by: Union[None, SimpleUserType] - - -__all__ = ("ProjectsV2Type",) + organization_url: str + role: str + state: str + url: str + user: Union[WebhooksMembershipPropUserType, None] + + +class WebhooksMembershipPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhooksMembershipType", + "WebhooksMembershipPropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0403.py b/githubkit/versions/v2022_11_28/types/group_0403.py index e833ad942..9dc401c4d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0403.py +++ b/githubkit/versions/v2022_11_28/types/group_0403.py @@ -9,25 +9,138 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class WebhooksProjectChangesType(TypedDict): - """WebhooksProjectChanges""" - archived_at: NotRequired[WebhooksProjectChangesPropArchivedAtType] +class PersonalAccessTokenRequestType(TypedDict): + """Personal Access Token Request + Details of a Personal Access Token Request. + """ -class WebhooksProjectChangesPropArchivedAtType(TypedDict): - """WebhooksProjectChangesPropArchivedAt""" + id: int + owner: SimpleUserType + permissions_added: PersonalAccessTokenRequestPropPermissionsAddedType + permissions_upgraded: PersonalAccessTokenRequestPropPermissionsUpgradedType + permissions_result: PersonalAccessTokenRequestPropPermissionsResultType + repository_selection: Literal["none", "all", "subset"] + repository_count: Union[int, None] + repositories: Union[List[PersonalAccessTokenRequestPropRepositoriesItemsType], None] + created_at: str + token_expired: bool + token_expires_at: Union[str, None] + token_last_used_at: Union[str, None] - from_: NotRequired[Union[datetime, None]] - to: NotRequired[Union[datetime, None]] + +class PersonalAccessTokenRequestPropRepositoriesItemsType(TypedDict): + """PersonalAccessTokenRequestPropRepositoriesItems""" + + full_name: str + id: int + name: str + node_id: str + private: bool + + +class PersonalAccessTokenRequestPropPermissionsAddedType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsAdded + + New requested permissions, categorized by type of permission. + """ + + organization: NotRequired[ + PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType + ] + repository: NotRequired[ + PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType + ] + other: NotRequired[PersonalAccessTokenRequestPropPermissionsAddedPropOtherType] + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsAddedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsAddedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsAddedPropOtherType(TypedDict): + """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] + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsUpgradedPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType(TypedDict): + """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] + + +class PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsResultPropOrganization""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsResultPropRepository""" + + +class PersonalAccessTokenRequestPropPermissionsResultPropOtherType(TypedDict): + """PersonalAccessTokenRequestPropPermissionsResultPropOther""" __all__ = ( - "WebhooksProjectChangesType", - "WebhooksProjectChangesPropArchivedAtType", + "PersonalAccessTokenRequestType", + "PersonalAccessTokenRequestPropRepositoriesItemsType", + "PersonalAccessTokenRequestPropPermissionsAddedType", + "PersonalAccessTokenRequestPropPermissionsAddedPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsAddedPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsAddedPropOtherType", + "PersonalAccessTokenRequestPropPermissionsUpgradedType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsUpgradedPropOtherType", + "PersonalAccessTokenRequestPropPermissionsResultType", + "PersonalAccessTokenRequestPropPermissionsResultPropOrganizationType", + "PersonalAccessTokenRequestPropPermissionsResultPropRepositoryType", + "PersonalAccessTokenRequestPropPermissionsResultPropOtherType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0404.py b/githubkit/versions/v2022_11_28/types/group_0404.py index 1c4516db1..b6f042895 100644 --- a/githubkit/versions/v2022_11_28/types/group_0404.py +++ b/githubkit/versions/v2022_11_28/types/group_0404.py @@ -13,24 +13,52 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class WebhooksProjectCardType(TypedDict): + """Project Card""" + + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhooksProjectCardPropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str -class ProjectsV2ItemType(TypedDict): - """Projects v2 Item - An item belonging to a project - """ +class WebhooksProjectCardPropCreatorType(TypedDict): + """User""" - id: float + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] - project_node_id: NotRequired[str] - content_node_id: str - content_type: Literal["Issue", "PullRequest", "DraftIssue"] - creator: NotRequired[SimpleUserType] - created_at: datetime - updated_at: datetime - archived_at: Union[datetime, None] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -__all__ = ("ProjectsV2ItemType",) +__all__ = ( + "WebhooksProjectCardType", + "WebhooksProjectCardPropCreatorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0405.py b/githubkit/versions/v2022_11_28/types/group_0405.py index 2445821d0..5f5c34e24 100644 --- a/githubkit/versions/v2022_11_28/types/group_0405.py +++ b/githubkit/versions/v2022_11_28/types/group_0405.py @@ -10,88 +10,55 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0033 import MilestoneType -from .group_0219 import AutoMergeType -from .group_0001 import SimpleUserType -from .group_0075 import TeamSimpleType -from .group_0300 import PullRequestPropBaseType -from .group_0302 import PullRequestPropLinksType -from .group_0299 import PullRequestPropHeadType, PullRequestPropLabelsItemsType +class WebhooksProjectType(TypedDict): + """Project""" -class PullRequestWebhookType(TypedDict): - """PullRequestWebhook""" - - url: str + body: Union[str, None] + columns_url: str + created_at: datetime + creator: Union[WebhooksProjectPropCreatorType, None] + html_url: str id: int + name: str node_id: str - html_url: str - diff_url: str - patch_url: str - issue_url: str - commits_url: str - review_comments_url: str - review_comment_url: str - comments_url: str - statuses_url: str number: int + owner_url: str state: Literal["open", "closed"] - locked: bool - title: str - user: SimpleUserType - body: Union[str, None] - labels: List[PullRequestPropLabelsItemsType] - milestone: Union[None, MilestoneType] - active_lock_reason: NotRequired[Union[str, None]] - created_at: datetime updated_at: datetime - closed_at: Union[datetime, None] - merged_at: Union[datetime, None] - merge_commit_sha: Union[str, None] - assignee: Union[None, SimpleUserType] - assignees: NotRequired[Union[List[SimpleUserType], None]] - requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] - requested_teams: NotRequired[Union[List[TeamSimpleType], None]] - head: PullRequestPropHeadType - base: PullRequestPropBaseType - links: PullRequestPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[AutoMergeType, None] - draft: NotRequired[bool] - merged: bool - mergeable: Union[bool, None] - rebaseable: NotRequired[Union[bool, None]] - mergeable_state: str - merged_by: Union[None, SimpleUserType] - comments: int - review_comments: int - maintainer_can_modify: bool - commits: int - additions: int - deletions: int - changed_files: int - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + url: str + + +class WebhooksProjectPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -__all__ = ("PullRequestWebhookType",) +__all__ = ( + "WebhooksProjectType", + "WebhooksProjectPropCreatorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0406.py b/githubkit/versions/v2022_11_28/types/group_0406.py index 4f0b889b8..080ccf386 100644 --- a/githubkit/versions/v2022_11_28/types/group_0406.py +++ b/githubkit/versions/v2022_11_28/types/group_0406.py @@ -9,23 +9,23 @@ from __future__ import annotations -from typing import Literal +from typing import Union +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class PullRequestWebhookAllof1Type(TypedDict): - """PullRequestWebhookAllof1""" +class WebhooksProjectColumnType(TypedDict): + """Project Column""" - allow_auto_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - use_squash_pr_title_as_default: NotRequired[bool] + after_id: NotRequired[Union[int, None]] + cards_url: str + created_at: datetime + id: int + name: str + node_id: str + project_url: str + updated_at: datetime + url: str -__all__ = ("PullRequestWebhookAllof1Type",) +__all__ = ("WebhooksProjectColumnType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0407.py b/githubkit/versions/v2022_11_28/types/group_0407.py index b15b7c81b..d5d8acb4c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0407.py +++ b/githubkit/versions/v2022_11_28/types/group_0407.py @@ -9,861 +9,33 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0001 import SimpleUserType -class WebhooksPullRequest5Type(TypedDict): - """Pull Request""" - links: WebhooksPullRequest5PropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhooksPullRequest5PropAssigneeType, None] - assignees: List[Union[WebhooksPullRequest5PropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhooksPullRequest5PropAutoMergeType, None] - base: WebhooksPullRequest5PropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhooksPullRequest5PropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhooksPullRequest5PropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[Union[WebhooksPullRequest5PropMergedByType, None]] - milestone: Union[WebhooksPullRequest5PropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, - None, - WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[WebhooksPullRequest5PropRequestedTeamsItemsType] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhooksPullRequest5PropUserType, None] - - -class WebhooksPullRequest5PropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] +class ProjectsV2Type(TypedDict): + """Projects v2 Project - -class WebhooksPullRequest5PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhooksPullRequest5PropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. + A projects v2 project """ - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[WebhooksPullRequest5PropAutoMergePropEnabledByType, None] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhooksPullRequest5PropAutoMergePropEnabledByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhooksPullRequest5PropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str + id: float node_id: str - url: str - - -class WebhooksPullRequest5PropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhooksPullRequest5PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhooksPullRequest5PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] + owner: SimpleUserType + creator: SimpleUserType title: str - updated_at: datetime - url: str - - -class WebhooksPullRequest5PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -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] - - -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] - - -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] - - -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] - - -class WebhooksPullRequest5PropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhooksPullRequest5PropHeadPropRepoPropLicenseType, None] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhooksPullRequest5PropHeadPropRepoPropOwnerType, None] - permissions: NotRequired[WebhooksPullRequest5PropHeadPropRepoPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str + public: bool + closed_at: Union[datetime, None] + created_at: datetime updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhooksPullRequest5PropHeadPropRepoPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhooksPullRequest5PropHeadPropRepoPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhooksPullRequest5PropHeadPropRepoPropPermissionsType(TypedDict): - """WebhooksPullRequest5PropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType, None] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType(TypedDict): - """WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhooksPullRequest5PropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[WebhooksPullRequest5PropRequestedTeamsItemsPropParentType, None] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhooksPullRequest5PropRequestedTeamsItemsPropParentType(TypedDict): - """WebhooksPullRequest5PropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + number: int + short_description: Union[str, None] + deleted_at: Union[datetime, None] + deleted_by: Union[None, SimpleUserType] -__all__ = ( - "WebhooksPullRequest5Type", - "WebhooksPullRequest5PropAssigneeType", - "WebhooksPullRequest5PropAssigneesItemsType", - "WebhooksPullRequest5PropAutoMergeType", - "WebhooksPullRequest5PropAutoMergePropEnabledByType", - "WebhooksPullRequest5PropLabelsItemsType", - "WebhooksPullRequest5PropMergedByType", - "WebhooksPullRequest5PropMilestoneType", - "WebhooksPullRequest5PropMilestonePropCreatorType", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type", - "WebhooksPullRequest5PropUserType", - "WebhooksPullRequest5PropLinksType", - "WebhooksPullRequest5PropLinksPropCommentsType", - "WebhooksPullRequest5PropLinksPropCommitsType", - "WebhooksPullRequest5PropLinksPropHtmlType", - "WebhooksPullRequest5PropLinksPropIssueType", - "WebhooksPullRequest5PropLinksPropReviewCommentType", - "WebhooksPullRequest5PropLinksPropReviewCommentsType", - "WebhooksPullRequest5PropLinksPropSelfType", - "WebhooksPullRequest5PropLinksPropStatusesType", - "WebhooksPullRequest5PropBaseType", - "WebhooksPullRequest5PropBasePropUserType", - "WebhooksPullRequest5PropBasePropRepoType", - "WebhooksPullRequest5PropBasePropRepoPropLicenseType", - "WebhooksPullRequest5PropBasePropRepoPropOwnerType", - "WebhooksPullRequest5PropBasePropRepoPropPermissionsType", - "WebhooksPullRequest5PropHeadType", - "WebhooksPullRequest5PropHeadPropUserType", - "WebhooksPullRequest5PropHeadPropRepoType", - "WebhooksPullRequest5PropHeadPropRepoPropLicenseType", - "WebhooksPullRequest5PropHeadPropRepoPropOwnerType", - "WebhooksPullRequest5PropHeadPropRepoPropPermissionsType", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type", - "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType", - "WebhooksPullRequest5PropRequestedTeamsItemsType", - "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", -) +__all__ = ("ProjectsV2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0408.py b/githubkit/versions/v2022_11_28/types/group_0408.py index 4fb2bcbcf..e833ad942 100644 --- a/githubkit/versions/v2022_11_28/types/group_0408.py +++ b/githubkit/versions/v2022_11_28/types/group_0408.py @@ -9,129 +9,25 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksReviewCommentType(TypedDict): - """Pull Request Review Comment +class WebhooksProjectChangesType(TypedDict): + """WebhooksProjectChanges""" - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ + archived_at: NotRequired[WebhooksProjectChangesPropArchivedAtType] - links: WebhooksReviewCommentPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: int - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhooksReviewCommentPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[WebhooksReviewCommentPropUserType, None] +class WebhooksProjectChangesPropArchivedAtType(TypedDict): + """WebhooksProjectChangesPropArchivedAt""" -class WebhooksReviewCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksReviewCommentPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhooksReviewCommentPropLinksType(TypedDict): - """WebhooksReviewCommentPropLinks""" - - html: WebhooksReviewCommentPropLinksPropHtmlType - pull_request: WebhooksReviewCommentPropLinksPropPullRequestType - self_: WebhooksReviewCommentPropLinksPropSelfType - - -class WebhooksReviewCommentPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewCommentPropLinksPropPullRequestType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str + from_: NotRequired[Union[datetime, None]] + to: NotRequired[Union[datetime, None]] __all__ = ( - "WebhooksReviewCommentType", - "WebhooksReviewCommentPropReactionsType", - "WebhooksReviewCommentPropUserType", - "WebhooksReviewCommentPropLinksType", - "WebhooksReviewCommentPropLinksPropHtmlType", - "WebhooksReviewCommentPropLinksPropPullRequestType", - "WebhooksReviewCommentPropLinksPropSelfType", + "WebhooksProjectChangesType", + "WebhooksProjectChangesPropArchivedAtType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0409.py b/githubkit/versions/v2022_11_28/types/group_0409.py index 874ac4aaf..1c4516db1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0409.py +++ b/githubkit/versions/v2022_11_28/types/group_0409.py @@ -13,84 +13,24 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class WebhooksReviewType(TypedDict): - """WebhooksReview - The review that was affected. - """ - - links: WebhooksReviewPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - commit_id: str - html_url: str - id: int - node_id: str - pull_request_url: str - state: str - submitted_at: Union[datetime, None] - user: Union[WebhooksReviewPropUserType, None] +class ProjectsV2ItemType(TypedDict): + """Projects v2 Item + An item belonging to a project + """ -class WebhooksReviewPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: float node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhooksReviewPropLinksType(TypedDict): - """WebhooksReviewPropLinks""" - - html: WebhooksReviewPropLinksPropHtmlType - pull_request: WebhooksReviewPropLinksPropPullRequestType - - -class WebhooksReviewPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhooksReviewPropLinksPropPullRequestType(TypedDict): - """Link""" - - href: str + project_node_id: NotRequired[str] + content_node_id: str + content_type: Literal["Issue", "PullRequest", "DraftIssue"] + creator: NotRequired[SimpleUserType] + created_at: datetime + updated_at: datetime + archived_at: Union[datetime, None] -__all__ = ( - "WebhooksReviewType", - "WebhooksReviewPropUserType", - "WebhooksReviewPropLinksType", - "WebhooksReviewPropLinksPropHtmlType", - "WebhooksReviewPropLinksPropPullRequestType", -) +__all__ = ("ProjectsV2ItemType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0410.py b/githubkit/versions/v2022_11_28/types/group_0410.py index af86c2907..9b667bb6e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0410.py +++ b/githubkit/versions/v2022_11_28/types/group_0410.py @@ -9,132 +9,31 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal +from datetime import date, datetime from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class WebhooksReleaseType(TypedDict): - """Release - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ - - assets: List[WebhooksReleasePropAssetsItemsType] - assets_url: str - author: Union[WebhooksReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhooksReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhooksReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhooksReleasePropReactionsType(TypedDict): - """Reactions""" +class ProjectsV2StatusUpdateType(TypedDict): + """Projects v2 Status Update - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhooksReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. + An status update belonging to a project """ - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str + id: float node_id: str - size: int - state: Literal["uploaded"] + project_node_id: NotRequired[str] + creator: NotRequired[SimpleUserType] + created_at: datetime updated_at: datetime - uploader: NotRequired[Union[WebhooksReleasePropAssetsItemsPropUploaderType, None]] - url: str - - -class WebhooksReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + status: NotRequired[ + Union[None, Literal["INACTIVE", "ON_TRACK", "AT_RISK", "OFF_TRACK", "COMPLETE"]] + ] + start_date: NotRequired[date] + target_date: NotRequired[date] + body: NotRequired[Union[str, None]] -__all__ = ( - "WebhooksReleaseType", - "WebhooksReleasePropAuthorType", - "WebhooksReleasePropReactionsType", - "WebhooksReleasePropAssetsItemsType", - "WebhooksReleasePropAssetsItemsPropUploaderType", -) +__all__ = ("ProjectsV2StatusUpdateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0411.py b/githubkit/versions/v2022_11_28/types/group_0411.py index dcd8c47ea..f26480a2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0411.py +++ b/githubkit/versions/v2022_11_28/types/group_0411.py @@ -13,128 +13,85 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0037 import MilestoneType +from .group_0224 import AutoMergeType +from .group_0001 import SimpleUserType +from .group_0025 import TeamSimpleType +from .group_0305 import PullRequestPropBaseType +from .group_0307 import PullRequestPropLinksType +from .group_0304 import PullRequestPropHeadType, PullRequestPropLabelsItemsType -class WebhooksRelease1Type(TypedDict): - """Release - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ +class PullRequestWebhookType(TypedDict): + """PullRequestWebhook""" - assets: List[Union[WebhooksRelease1PropAssetsItemsType, None]] - assets_url: str - author: Union[WebhooksRelease1PropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: bool - published_at: Union[datetime, None] - reactions: NotRequired[WebhooksRelease1PropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str url: str - zipball_url: Union[str, None] - - -class WebhooksRelease1PropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int id: int - label: Union[str, None] - name: str node_id: str - size: int - state: Literal["uploaded"] + html_url: str + diff_url: str + patch_url: str + issue_url: str + commits_url: str + review_comments_url: str + review_comment_url: str + comments_url: str + statuses_url: str + number: int + state: Literal["open", "closed"] + locked: bool + title: str + user: SimpleUserType + body: Union[str, None] + labels: List[PullRequestPropLabelsItemsType] + milestone: Union[None, MilestoneType] + active_lock_reason: NotRequired[Union[str, None]] + created_at: datetime updated_at: datetime - uploader: NotRequired[Union[WebhooksRelease1PropAssetsItemsPropUploaderType, None]] - url: str - - -class WebhooksRelease1PropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhooksRelease1PropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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__ = ( - "WebhooksRelease1Type", - "WebhooksRelease1PropAssetsItemsType", - "WebhooksRelease1PropAssetsItemsPropUploaderType", - "WebhooksRelease1PropAuthorType", - "WebhooksRelease1PropReactionsType", -) + closed_at: Union[datetime, None] + merged_at: Union[datetime, None] + merge_commit_sha: Union[str, None] + assignee: Union[None, SimpleUserType] + assignees: NotRequired[Union[List[SimpleUserType], None]] + requested_reviewers: NotRequired[Union[List[SimpleUserType], None]] + requested_teams: NotRequired[Union[List[TeamSimpleType], None]] + head: PullRequestPropHeadType + base: PullRequestPropBaseType + links: PullRequestPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[AutoMergeType, None] + draft: NotRequired[bool] + merged: bool + mergeable: Union[bool, None] + rebaseable: NotRequired[Union[bool, None]] + mergeable_state: str + merged_by: Union[None, SimpleUserType] + comments: int + review_comments: int + maintainer_can_modify: bool + commits: int + additions: int + deletions: int + changed_files: int + allow_auto_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + use_squash_pr_title_as_default: NotRequired[bool] + + +__all__ = ("PullRequestWebhookType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0412.py b/githubkit/versions/v2022_11_28/types/group_0412.py index 49b755e49..4f0b889b8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0412.py +++ b/githubkit/versions/v2022_11_28/types/group_0412.py @@ -9,63 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -class WebhooksAlertType(TypedDict): - """Repository Vulnerability Alert Alert +class PullRequestWebhookAllof1Type(TypedDict): + """PullRequestWebhookAllof1""" - The security alert of the vulnerable dependency. - """ + allow_auto_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + use_squash_pr_title_as_default: NotRequired[bool] - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[Union[WebhooksAlertPropDismisserType, None]] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["open"] - -class WebhooksAlertPropDismisserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhooksAlertType", - "WebhooksAlertPropDismisserType", -) +__all__ = ("PullRequestWebhookAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0413.py b/githubkit/versions/v2022_11_28/types/group_0413.py index 0fa07a87c..b15b7c81b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0413.py +++ b/githubkit/versions/v2022_11_28/types/group_0413.py @@ -10,42 +10,860 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType +class WebhooksPullRequest5Type(TypedDict): + """Pull Request""" -class SecretScanningAlertWebhookType(TypedDict): - """SecretScanningAlertWebhook""" - - number: NotRequired[int] - created_at: NotRequired[datetime] - updated_at: NotRequired[Union[None, datetime]] - url: NotRequired[str] - html_url: NotRequired[str] - locations_url: NotRequired[str] - resolution: NotRequired[ + links: WebhooksPullRequest5PropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhooksPullRequest5PropAssigneeType, None] + assignees: List[Union[WebhooksPullRequest5PropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhooksPullRequest5PropAutoMergeType, None] + base: WebhooksPullRequest5PropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhooksPullRequest5PropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhooksPullRequest5PropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[Union[WebhooksPullRequest5PropMergedByType, None]] + milestone: Union[WebhooksPullRequest5PropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ Union[ + WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type, None, - Literal[ - "false_positive", - "wont_fix", - "revoked", - "used_in_tests", - "pattern_deleted", - "pattern_edited", - ], + WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type, ] ] - resolved_at: NotRequired[Union[datetime, None]] - resolved_by: NotRequired[Union[None, SimpleUserType]] - resolution_comment: NotRequired[Union[str, None]] - secret_type: NotRequired[str] - 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]] + 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] + + +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] + + +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] + + +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] + + +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] + + +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] + + +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] + + +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] + + +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] + + +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__ = ("SecretScanningAlertWebhookType",) +__all__ = ( + "WebhooksPullRequest5Type", + "WebhooksPullRequest5PropAssigneeType", + "WebhooksPullRequest5PropAssigneesItemsType", + "WebhooksPullRequest5PropAutoMergeType", + "WebhooksPullRequest5PropAutoMergePropEnabledByType", + "WebhooksPullRequest5PropLabelsItemsType", + "WebhooksPullRequest5PropMergedByType", + "WebhooksPullRequest5PropMilestoneType", + "WebhooksPullRequest5PropMilestonePropCreatorType", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof0Type", + "WebhooksPullRequest5PropUserType", + "WebhooksPullRequest5PropLinksType", + "WebhooksPullRequest5PropLinksPropCommentsType", + "WebhooksPullRequest5PropLinksPropCommitsType", + "WebhooksPullRequest5PropLinksPropHtmlType", + "WebhooksPullRequest5PropLinksPropIssueType", + "WebhooksPullRequest5PropLinksPropReviewCommentType", + "WebhooksPullRequest5PropLinksPropReviewCommentsType", + "WebhooksPullRequest5PropLinksPropSelfType", + "WebhooksPullRequest5PropLinksPropStatusesType", + "WebhooksPullRequest5PropBaseType", + "WebhooksPullRequest5PropBasePropUserType", + "WebhooksPullRequest5PropBasePropRepoType", + "WebhooksPullRequest5PropBasePropRepoPropLicenseType", + "WebhooksPullRequest5PropBasePropRepoPropOwnerType", + "WebhooksPullRequest5PropBasePropRepoPropPermissionsType", + "WebhooksPullRequest5PropHeadType", + "WebhooksPullRequest5PropHeadPropUserType", + "WebhooksPullRequest5PropHeadPropRepoType", + "WebhooksPullRequest5PropHeadPropRepoPropLicenseType", + "WebhooksPullRequest5PropHeadPropRepoPropOwnerType", + "WebhooksPullRequest5PropHeadPropRepoPropPermissionsType", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1Type", + "WebhooksPullRequest5PropRequestedReviewersItemsOneof1PropParentType", + "WebhooksPullRequest5PropRequestedTeamsItemsType", + "WebhooksPullRequest5PropRequestedTeamsItemsPropParentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0414.py b/githubkit/versions/v2022_11_28/types/group_0414.py index 39a4f9397..4fb2bcbcf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0414.py +++ b/githubkit/versions/v2022_11_28/types/group_0414.py @@ -9,92 +9,129 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -class WebhooksSecurityAdvisoryType(TypedDict): - """WebhooksSecurityAdvisory +class WebhooksReviewCommentType(TypedDict): + """Pull Request Review Comment - The details of the security advisory, including summary, description, and - severity. + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. """ - cvss: WebhooksSecurityAdvisoryPropCvssType - cwes: List[WebhooksSecurityAdvisoryPropCwesItemsType] - description: str - ghsa_id: str - identifiers: List[WebhooksSecurityAdvisoryPropIdentifiersItemsType] - published_at: str - references: List[WebhooksSecurityAdvisoryPropReferencesItemsType] - severity: str - summary: str - updated_at: str - vulnerabilities: List[WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType] - withdrawn_at: Union[str, None] - - -class WebhooksSecurityAdvisoryPropCvssType(TypedDict): - """WebhooksSecurityAdvisoryPropCvss""" - - score: float - vector_string: Union[str, None] + links: WebhooksReviewCommentPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: int + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhooksReviewCommentPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[WebhooksReviewCommentPropUserType, None] -class WebhooksSecurityAdvisoryPropCwesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropCwesItems""" +class WebhooksReviewCommentPropReactionsType(TypedDict): + """Reactions""" - cwe_id: str - name: str + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str -class WebhooksSecurityAdvisoryPropIdentifiersItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropIdentifiersItems""" +class WebhooksReviewCommentPropUserType(TypedDict): + """User""" - type: str - value: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhooksSecurityAdvisoryPropReferencesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropReferencesItems""" +class WebhooksReviewCommentPropLinksType(TypedDict): + """WebhooksReviewCommentPropLinks""" - url: str + html: WebhooksReviewCommentPropLinksPropHtmlType + pull_request: WebhooksReviewCommentPropLinksPropPullRequestType + self_: WebhooksReviewCommentPropLinksPropSelfType -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType(TypedDict): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" +class WebhooksReviewCommentPropLinksPropHtmlType(TypedDict): + """Link""" - first_patched_version: Union[ - WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, - None, - ] - package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType - severity: str - vulnerable_version_range: str + href: str -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( - TypedDict -): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" +class WebhooksReviewCommentPropLinksPropPullRequestType(TypedDict): + """Link""" - identifier: str + href: str -class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType(TypedDict): - """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" +class WebhooksReviewCommentPropLinksPropSelfType(TypedDict): + """Link""" - ecosystem: str - name: str + href: str __all__ = ( - "WebhooksSecurityAdvisoryType", - "WebhooksSecurityAdvisoryPropCvssType", - "WebhooksSecurityAdvisoryPropCwesItemsType", - "WebhooksSecurityAdvisoryPropIdentifiersItemsType", - "WebhooksSecurityAdvisoryPropReferencesItemsType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", + "WebhooksReviewCommentType", + "WebhooksReviewCommentPropReactionsType", + "WebhooksReviewCommentPropUserType", + "WebhooksReviewCommentPropLinksType", + "WebhooksReviewCommentPropLinksPropHtmlType", + "WebhooksReviewCommentPropLinksPropPullRequestType", + "WebhooksReviewCommentPropLinksPropSelfType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0415.py b/githubkit/versions/v2022_11_28/types/group_0415.py index 93b1fc962..874ac4aaf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0415.py +++ b/githubkit/versions/v2022_11_28/types/group_0415.py @@ -9,46 +9,40 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksSponsorshipType(TypedDict): - """WebhooksSponsorship""" +class WebhooksReviewType(TypedDict): + """WebhooksReview - created_at: str - maintainer: NotRequired[WebhooksSponsorshipPropMaintainerType] - node_id: str - privacy_level: str - sponsor: Union[WebhooksSponsorshipPropSponsorType, None] - sponsorable: Union[WebhooksSponsorshipPropSponsorableType, None] - tier: WebhooksSponsorshipPropTierType - - -class WebhooksSponsorshipPropMaintainerType(TypedDict): - """WebhooksSponsorshipPropMaintainer""" + The review that was affected. + """ - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] + links: WebhooksReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + commit_id: str + html_url: str + id: int + node_id: str + pull_request_url: str + state: str + submitted_at: Union[datetime, None] + user: Union[WebhooksReviewPropUserType, None] -class WebhooksSponsorshipPropSponsorType(TypedDict): +class WebhooksReviewPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -74,55 +68,29 @@ class WebhooksSponsorshipPropSponsorType(TypedDict): url: NotRequired[str] -class WebhooksSponsorshipPropSponsorableType(TypedDict): - """User""" +class WebhooksReviewPropLinksType(TypedDict): + """WebhooksReviewPropLinks""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + html: WebhooksReviewPropLinksPropHtmlType + pull_request: WebhooksReviewPropLinksPropPullRequestType -class WebhooksSponsorshipPropTierType(TypedDict): - """Sponsorship Tier +class WebhooksReviewPropLinksPropHtmlType(TypedDict): + """Link""" - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. - """ + href: str - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int - name: str - node_id: str + +class WebhooksReviewPropLinksPropPullRequestType(TypedDict): + """Link""" + + href: str __all__ = ( - "WebhooksSponsorshipType", - "WebhooksSponsorshipPropMaintainerType", - "WebhooksSponsorshipPropSponsorType", - "WebhooksSponsorshipPropSponsorableType", - "WebhooksSponsorshipPropTierType", + "WebhooksReviewType", + "WebhooksReviewPropUserType", + "WebhooksReviewPropLinksType", + "WebhooksReviewPropLinksPropHtmlType", + "WebhooksReviewPropLinksPropPullRequestType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0416.py b/githubkit/versions/v2022_11_28/types/group_0416.py index ec72f0b7d..af86c2907 100644 --- a/githubkit/versions/v2022_11_28/types/group_0416.py +++ b/githubkit/versions/v2022_11_28/types/group_0416.py @@ -9,42 +9,132 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksChanges8Type(TypedDict): - """WebhooksChanges8""" +class WebhooksReleaseType(TypedDict): + """Release - tier: WebhooksChanges8PropTierType - - -class WebhooksChanges8PropTierType(TypedDict): - """WebhooksChanges8PropTier""" - - from_: WebhooksChanges8PropTierPropFromType - - -class WebhooksChanges8PropTierPropFromType(TypedDict): - """Sponsorship Tier + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. + """ - The `tier_changed` and `pending_tier_change` will include the original tier - before the change or pending change. For more information, see the pending tier - change payload. + assets: List[WebhooksReleasePropAssetsItemsType] + assets_url: str + author: Union[WebhooksReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhooksReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhooksReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhooksReleasePropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhooksReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. """ - created_at: str - description: str - is_custom_ammount: NotRequired[bool] - is_custom_amount: NotRequired[bool] - is_one_time: bool - monthly_price_in_cents: int - monthly_price_in_dollars: int + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] name: str node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[Union[WebhooksReleasePropAssetsItemsPropUploaderType, None]] + url: str + + +class WebhooksReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhooksChanges8Type", - "WebhooksChanges8PropTierType", - "WebhooksChanges8PropTierPropFromType", + "WebhooksReleaseType", + "WebhooksReleasePropAuthorType", + "WebhooksReleasePropReactionsType", + "WebhooksReleasePropAssetsItemsType", + "WebhooksReleasePropAssetsItemsPropUploaderType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0417.py b/githubkit/versions/v2022_11_28/types/group_0417.py index f600fe9c3..dcd8c47ea 100644 --- a/githubkit/versions/v2022_11_28/types/group_0417.py +++ b/githubkit/versions/v2022_11_28/types/group_0417.py @@ -9,52 +9,132 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhooksTeam1Type(TypedDict): - """Team +class WebhooksRelease1Type(TypedDict): + """Release - Groups of organization members that gives permissions on specified repositories. + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. """ + assets: List[Union[WebhooksRelease1PropAssetsItemsType, None]] + assets_url: str + author: Union[WebhooksRelease1PropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: bool + published_at: Union[datetime, None] + reactions: NotRequired[WebhooksRelease1PropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhooksRelease1PropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[Union[WebhooksRelease1PropAssetsItemsPropUploaderType, None]] + url: str + + +class WebhooksRelease1PropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] id: int - members_url: NotRequired[str] - name: str + login: str + name: NotRequired[str] node_id: NotRequired[str] - parent: NotRequired[Union[WebhooksTeam1PropParentType, None]] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - repositories_url: NotRequired[str] - slug: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhooksTeam1PropParentType(TypedDict): - """WebhooksTeam1PropParent""" +class WebhooksRelease1PropAuthorType(TypedDict): + """User""" - description: Union[str, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - notification_setting: Literal["notifications_enabled", "notifications_disabled"] - repositories_url: str - slug: str + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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__ = ( - "WebhooksTeam1Type", - "WebhooksTeam1PropParentType", + "WebhooksRelease1Type", + "WebhooksRelease1PropAssetsItemsType", + "WebhooksRelease1PropAssetsItemsPropUploaderType", + "WebhooksRelease1PropAuthorType", + "WebhooksRelease1PropReactionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0418.py b/githubkit/versions/v2022_11_28/types/group_0418.py index 4f8bcc769..49b755e49 100644 --- a/githubkit/versions/v2022_11_28/types/group_0418.py +++ b/githubkit/versions/v2022_11_28/types/group_0418.py @@ -9,25 +9,63 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +class WebhooksAlertType(TypedDict): + """Repository Vulnerability Alert Alert -class WebhookBranchProtectionConfigurationDisabledType(TypedDict): - """branch protection configuration disabled event""" + The security alert of the vulnerable dependency. + """ - action: Literal["disabled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + affected_package_name: str + affected_range: str + created_at: str + dismiss_reason: NotRequired[str] + dismissed_at: NotRequired[str] + dismisser: NotRequired[Union[WebhooksAlertPropDismisserType, None]] + external_identifier: str + external_reference: Union[str, None] + fix_reason: NotRequired[str] + fixed_at: NotRequired[datetime] + fixed_in: NotRequired[str] + ghsa_id: str + id: int + node_id: str + number: int + severity: str + state: Literal["open"] -__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) +class WebhooksAlertPropDismisserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhooksAlertType", + "WebhooksAlertPropDismisserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0419.py b/githubkit/versions/v2022_11_28/types/group_0419.py index 881afe897..d89bf2f6c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0419.py +++ b/githubkit/versions/v2022_11_28/types/group_0419.py @@ -9,25 +9,44 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType - - -class WebhookBranchProtectionConfigurationEnabledType(TypedDict): - """branch protection configuration enabled event""" - - action: Literal["enabled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -__all__ = ("WebhookBranchProtectionConfigurationEnabledType",) +from .group_0001 import SimpleUserType + + +class SecretScanningAlertWebhookType(TypedDict): + """SecretScanningAlertWebhook""" + + number: NotRequired[int] + created_at: NotRequired[datetime] + updated_at: NotRequired[Union[None, datetime]] + url: NotRequired[str] + html_url: NotRequired[str] + locations_url: NotRequired[str] + resolution: NotRequired[ + Union[ + None, + Literal[ + "false_positive", + "wont_fix", + "revoked", + "used_in_tests", + "pattern_deleted", + "pattern_edited", + ], + ] + ] + resolved_at: NotRequired[Union[datetime, None]] + resolved_by: NotRequired[Union[None, SimpleUserType]] + resolution_comment: NotRequired[Union[str, None]] + secret_type: NotRequired[str] + secret_type_display_name: NotRequired[str] + validity: NotRequired[Literal["active", "inactive", "unknown"]] + push_protection_bypassed: NotRequired[Union[bool, None]] + push_protection_bypassed_by: NotRequired[Union[None, SimpleUserType]] + push_protection_bypassed_at: NotRequired[Union[datetime, None]] + + +__all__ = ("SecretScanningAlertWebhookType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0420.py b/githubkit/versions/v2022_11_28/types/group_0420.py index 0800c6306..39a4f9397 100644 --- a/githubkit/versions/v2022_11_28/types/group_0420.py +++ b/githubkit/versions/v2022_11_28/types/group_0420.py @@ -9,27 +9,92 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List, Union +from typing_extensions import TypedDict -from .group_0372 import WebhooksRuleType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +class WebhooksSecurityAdvisoryType(TypedDict): + """WebhooksSecurityAdvisory -class WebhookBranchProtectionRuleCreatedType(TypedDict): - """branch protection rule created event""" + The details of the security advisory, including summary, description, and + severity. + """ - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhooksRuleType - sender: SimpleUserWebhooksType + cvss: WebhooksSecurityAdvisoryPropCvssType + cwes: List[WebhooksSecurityAdvisoryPropCwesItemsType] + description: str + ghsa_id: str + identifiers: List[WebhooksSecurityAdvisoryPropIdentifiersItemsType] + published_at: str + references: List[WebhooksSecurityAdvisoryPropReferencesItemsType] + severity: str + summary: str + updated_at: str + vulnerabilities: List[WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType] + withdrawn_at: Union[str, None] -__all__ = ("WebhookBranchProtectionRuleCreatedType",) +class WebhooksSecurityAdvisoryPropCvssType(TypedDict): + """WebhooksSecurityAdvisoryPropCvss""" + + score: float + vector_string: Union[str, None] + + +class WebhooksSecurityAdvisoryPropCwesItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropCwesItems""" + + cwe_id: str + name: str + + +class WebhooksSecurityAdvisoryPropIdentifiersItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropIdentifiersItems""" + + type: str + value: str + + +class WebhooksSecurityAdvisoryPropReferencesItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropReferencesItems""" + + url: str + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType(TypedDict): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItems""" + + first_patched_version: Union[ + WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType, + None, + ] + package: WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType + severity: str + vulnerable_version_range: str + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( + TypedDict +): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersion""" + + identifier: str + + +class WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType(TypedDict): + """WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackage""" + + ecosystem: str + name: str + + +__all__ = ( + "WebhooksSecurityAdvisoryType", + "WebhooksSecurityAdvisoryPropCvssType", + "WebhooksSecurityAdvisoryPropCwesItemsType", + "WebhooksSecurityAdvisoryPropIdentifiersItemsType", + "WebhooksSecurityAdvisoryPropReferencesItemsType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhooksSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0421.py b/githubkit/versions/v2022_11_28/types/group_0421.py index c10be1ea5..93b1fc962 100644 --- a/githubkit/versions/v2022_11_28/types/group_0421.py +++ b/githubkit/versions/v2022_11_28/types/group_0421.py @@ -9,27 +9,120 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0372 import WebhooksRuleType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +class WebhooksSponsorshipType(TypedDict): + """WebhooksSponsorship""" -class WebhookBranchProtectionRuleDeletedType(TypedDict): - """branch protection rule deleted event""" + created_at: str + maintainer: NotRequired[WebhooksSponsorshipPropMaintainerType] + node_id: str + privacy_level: str + sponsor: Union[WebhooksSponsorshipPropSponsorType, None] + sponsorable: Union[WebhooksSponsorshipPropSponsorableType, None] + tier: WebhooksSponsorshipPropTierType - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhooksRuleType - sender: SimpleUserWebhooksType +class WebhooksSponsorshipPropMaintainerType(TypedDict): + """WebhooksSponsorshipPropMaintainer""" -__all__ = ("WebhookBranchProtectionRuleDeletedType",) + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +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] + + +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] + + +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__ = ( + "WebhooksSponsorshipType", + "WebhooksSponsorshipPropMaintainerType", + "WebhooksSponsorshipPropSponsorType", + "WebhooksSponsorshipPropSponsorableType", + "WebhooksSponsorshipPropTierType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0422.py b/githubkit/versions/v2022_11_28/types/group_0422.py index 36bc579c3..ec72f0b7d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0422.py +++ b/githubkit/versions/v2022_11_28/types/group_0422.py @@ -9,125 +9,42 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0372 import WebhooksRuleType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +class WebhooksChanges8Type(TypedDict): + """WebhooksChanges8""" -class WebhookBranchProtectionRuleEditedType(TypedDict): - """branch protection rule edited event""" + tier: WebhooksChanges8PropTierType - action: Literal["edited"] - changes: NotRequired[WebhookBranchProtectionRuleEditedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - rule: WebhooksRuleType - sender: SimpleUserWebhooksType +class WebhooksChanges8PropTierType(TypedDict): + """WebhooksChanges8PropTier""" -class WebhookBranchProtectionRuleEditedPropChangesType(TypedDict): - """WebhookBranchProtectionRuleEditedPropChanges + from_: WebhooksChanges8PropTierPropFromType - If the action was `edited`, the changes to the rule. - """ - - admin_enforced: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType - ] - authorized_actor_names: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType - ] - authorized_actors_only: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType - ] - authorized_dismissal_actors_only: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType - ] - linear_history_requirement_enforcement_level: NotRequired[ - WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType - ] - 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 WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" - - from_: List[str] +class WebhooksChanges8PropTierPropFromType(TypedDict): + """Sponsorship Tier -class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType( - TypedDict -): - """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL - evel + The `tier_changed` and `pending_tier_change` will include the original tier + before the change or pending change. For more information, see the pending tier + change payload. """ - from_: Literal["off", "non_admins", "everyone"] + created_at: str + description: str + is_custom_ammount: NotRequired[bool] + is_custom_amount: NotRequired[bool] + is_one_time: bool + monthly_price_in_cents: int + monthly_price_in_dollars: int + name: str + node_id: str __all__ = ( - "WebhookBranchProtectionRuleEditedType", - "WebhookBranchProtectionRuleEditedPropChangesType", - "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", - "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", - "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", + "WebhooksChanges8Type", + "WebhooksChanges8PropTierType", + "WebhooksChanges8PropTierPropFromType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0423.py b/githubkit/versions/v2022_11_28/types/group_0423.py index 42e3e0e95..f600fe9c3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0423.py +++ b/githubkit/versions/v2022_11_28/types/group_0423.py @@ -9,25 +9,52 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0374 import CheckRunWithSimpleCheckSuiteType - -class WebhookCheckRunCompletedType(TypedDict): - """Check Run Completed Event""" - - action: Literal["completed"] - check_run: CheckRunWithSimpleCheckSuiteType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -__all__ = ("WebhookCheckRunCompletedType",) +class WebhooksTeam1Type(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[Union[WebhooksTeam1PropParentType, None]] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhooksTeam1PropParentType(TypedDict): + """WebhooksTeam1PropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + notification_setting: Literal["notifications_enabled", "notifications_disabled"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhooksTeam1Type", + "WebhooksTeam1PropParentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0424.py b/githubkit/versions/v2022_11_28/types/group_0424.py index 831afd105..b086a075f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0424.py +++ b/githubkit/versions/v2022_11_28/types/group_0424.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookCheckRunCompletedFormEncodedType(TypedDict): - """Check Run Completed Event - The check_run.completed webhook encoded with URL encoding - """ +class WebhookBranchProtectionConfigurationDisabledType(TypedDict): + """branch protection configuration disabled event""" - payload: str + action: Literal["disabled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunCompletedFormEncodedType",) +__all__ = ("WebhookBranchProtectionConfigurationDisabledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0425.py b/githubkit/versions/v2022_11_28/types/group_0425.py index 72968d3b9..7690e0c92 100644 --- a/githubkit/versions/v2022_11_28/types/group_0425.py +++ b/githubkit/versions/v2022_11_28/types/group_0425.py @@ -12,22 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0374 import CheckRunWithSimpleCheckSuiteType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookCheckRunCreatedType(TypedDict): - """Check Run Created Event""" +class WebhookBranchProtectionConfigurationEnabledType(TypedDict): + """branch protection configuration enabled event""" - action: Literal["created"] - check_run: CheckRunWithSimpleCheckSuiteType + action: Literal["enabled"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunCreatedType",) +__all__ = ("WebhookBranchProtectionConfigurationEnabledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0426.py b/githubkit/versions/v2022_11_28/types/group_0426.py index 090ccf388..a01d0dd0b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0426.py +++ b/githubkit/versions/v2022_11_28/types/group_0426.py @@ -9,16 +9,27 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_0377 import WebhooksRuleType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookCheckRunCreatedFormEncodedType(TypedDict): - """Check Run Created Event - The check_run.created webhook encoded with URL encoding - """ +class WebhookBranchProtectionRuleCreatedType(TypedDict): + """branch protection rule created event""" - payload: str + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + rule: WebhooksRuleType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunCreatedFormEncodedType",) +__all__ = ("WebhookBranchProtectionRuleCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0427.py b/githubkit/versions/v2022_11_28/types/group_0427.py index 3eafea52b..2ed9cf8d5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0427.py +++ b/githubkit/versions/v2022_11_28/types/group_0427.py @@ -12,35 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0374 import CheckRunWithSimpleCheckSuiteType +from .group_0377 import WebhooksRuleType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookCheckRunRequestedActionType(TypedDict): - """Check Run Requested Action Event""" +class WebhookBranchProtectionRuleDeletedType(TypedDict): + """branch protection rule deleted event""" - action: Literal["requested_action"] - check_run: CheckRunWithSimpleCheckSuiteType + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] + rule: WebhooksRuleType sender: SimpleUserWebhooksType -class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): - """WebhookCheckRunRequestedActionPropRequestedAction - - The action requested by the user. - """ - - identifier: NotRequired[str] - - -__all__ = ( - "WebhookCheckRunRequestedActionType", - "WebhookCheckRunRequestedActionPropRequestedActionType", -) +__all__ = ("WebhookBranchProtectionRuleDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0428.py b/githubkit/versions/v2022_11_28/types/group_0428.py index 0d80e2c39..0d754a60d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0428.py +++ b/githubkit/versions/v2022_11_28/types/group_0428.py @@ -9,16 +9,173 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0377 import WebhooksRuleType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): - """Check Run Requested Action Event - The check_run.requested_action webhook encoded with URL encoding +class WebhookBranchProtectionRuleEditedType(TypedDict): + """branch protection rule edited event""" + + action: Literal["edited"] + changes: NotRequired[WebhookBranchProtectionRuleEditedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + rule: WebhooksRuleType + sender: SimpleUserWebhooksType + + +class WebhookBranchProtectionRuleEditedPropChangesType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChanges + + If the action was `edited`, the changes to the rule. + """ + + admin_enforced: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType + ] + authorized_actor_names: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType + ] + authorized_actors_only: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType + ] + authorized_dismissal_actors_only: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType + ] + linear_history_requirement_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType + ] + lock_branch_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType + ] + lock_allows_fork_sync: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType + ] + pull_request_reviews_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType + ] + require_last_push_approval: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType + ] + required_status_checks: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType + ] + required_status_checks_enforcement_level: NotRequired[ + WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType + ] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforced""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNames""" + + from_: List[str] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnly""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnly""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcem + entLevel + """ + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevel""" + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType(TypedDict): + """WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSync""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLev + el + """ + + from_: Literal["off", "non_admins", "everyone"] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApproval""" + + from_: Union[bool, None] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecks""" + + from_: List[str] + + +class WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType( + TypedDict +): + """WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementL + evel """ - payload: str + from_: Literal["off", "non_admins", "everyone"] -__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) +__all__ = ( + "WebhookBranchProtectionRuleEditedType", + "WebhookBranchProtectionRuleEditedPropChangesType", + "WebhookBranchProtectionRuleEditedPropChangesPropAdminEnforcedType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorNamesType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedActorsOnlyType", + "WebhookBranchProtectionRuleEditedPropChangesPropAuthorizedDismissalActorsOnlyType", + "WebhookBranchProtectionRuleEditedPropChangesPropLinearHistoryRequirementEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockBranchEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropLockAllowsForkSyncType", + "WebhookBranchProtectionRuleEditedPropChangesPropPullRequestReviewsEnforcementLevelType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequireLastPushApprovalType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksType", + "WebhookBranchProtectionRuleEditedPropChangesPropRequiredStatusChecksEnforcementLevelType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0429.py b/githubkit/versions/v2022_11_28/types/group_0429.py index 70175e402..e63ccad1f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0429.py +++ b/githubkit/versions/v2022_11_28/types/group_0429.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0374 import CheckRunWithSimpleCheckSuiteType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0379 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckRunRerequestedType(TypedDict): - """Check Run Re-Requested Event""" +class WebhookCheckRunCompletedType(TypedDict): + """Check Run Completed Event""" - action: Literal["rerequested"] + action: Literal["completed"] check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -30,4 +30,4 @@ class WebhookCheckRunRerequestedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookCheckRunRerequestedType",) +__all__ = ("WebhookCheckRunCompletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0430.py b/githubkit/versions/v2022_11_28/types/group_0430.py index ef6a77599..831afd105 100644 --- a/githubkit/versions/v2022_11_28/types/group_0430.py +++ b/githubkit/versions/v2022_11_28/types/group_0430.py @@ -12,13 +12,13 @@ from typing_extensions import TypedDict -class WebhookCheckRunRerequestedFormEncodedType(TypedDict): - """Check Run Re-Requested Event +class WebhookCheckRunCompletedFormEncodedType(TypedDict): + """Check Run Completed Event - The check_run.rerequested webhook encoded with URL encoding + The check_run.completed webhook encoded with URL encoding """ payload: str -__all__ = ("WebhookCheckRunRerequestedFormEncodedType",) +__all__ = ("WebhookCheckRunCompletedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0431.py b/githubkit/versions/v2022_11_28/types/group_0431.py index 4e3b89097..e94fc3010 100644 --- a/githubkit/versions/v2022_11_28/types/group_0431.py +++ b/githubkit/versions/v2022_11_28/types/group_0431.py @@ -9,322 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0379 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckSuiteCompletedType(TypedDict): - """check_suite completed event""" +class WebhookCheckRunCreatedType(TypedDict): + """Check Run Created Event""" - action: Literal["completed"] - check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["created"] + check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "merge_group", - "pull_request_review_thread", - "workflow_job", - "merge_queue_entry", - "security_and_analysis", - "projects_v2_item", - "secret_scanning_alert_location", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, 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] - - -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__ = ( - "WebhookCheckSuiteCompletedType", - "WebhookCheckSuiteCompletedPropCheckSuiteType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookCheckRunCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0432.py b/githubkit/versions/v2022_11_28/types/group_0432.py index 75a479537..090ccf388 100644 --- a/githubkit/versions/v2022_11_28/types/group_0432.py +++ b/githubkit/versions/v2022_11_28/types/group_0432.py @@ -9,320 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +class WebhookCheckRunCreatedFormEncodedType(TypedDict): + """Check Run Created Event -class WebhookCheckSuiteRequestedType(TypedDict): - """check_suite requested event""" - - action: Literal["requested"] - check_suite: WebhookCheckSuiteRequestedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookCheckSuiteRequestedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteRequestedPropCheckSuite - - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). - """ - - after: Union[str, None] - app: WebhookCheckSuiteRequestedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: List[ - WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] - updated_at: datetime - url: str - - -class WebhookCheckSuiteRequestedPropCheckSuitePropAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The check_run.created webhook encoded with URL encoding """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "workflow_job", - "merge_queue_entry", - "security_and_analysis", - "secret_scanning_alert_location", - "projects_v2_item", - "merge_group", - "repository_import", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, 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] - - -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__ = ( - "WebhookCheckSuiteRequestedType", - "WebhookCheckSuiteRequestedPropCheckSuiteType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookCheckRunCreatedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0433.py b/githubkit/versions/v2022_11_28/types/group_0433.py index f1d21dc26..e4da7a86c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0433.py +++ b/githubkit/versions/v2022_11_28/types/group_0433.py @@ -9,314 +9,38 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0379 import CheckRunWithSimpleCheckSuiteType -class WebhookCheckSuiteRerequestedType(TypedDict): - """check_suite rerequested event""" +class WebhookCheckRunRequestedActionType(TypedDict): + """Check Run Requested Action Event""" - action: Literal["rerequested"] - check_suite: WebhookCheckSuiteRerequestedPropCheckSuiteType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["requested_action"] + check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType + requested_action: NotRequired[WebhookCheckRunRequestedActionPropRequestedActionType] sender: SimpleUserWebhooksType -class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuite +class WebhookCheckRunRequestedActionPropRequestedActionType(TypedDict): + """WebhookCheckRunRequestedActionPropRequestedAction - The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). + The action requested by the user. """ - after: Union[str, None] - app: WebhookCheckSuiteRerequestedPropCheckSuitePropAppType - before: Union[str, None] - check_runs_url: str - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - head_branch: Union[str, None] - head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType - head_sha: str - id: int - latest_check_runs_count: int - node_id: str - pull_requests: List[ - WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType - ] - rerequestable: NotRequired[bool] - runs_rerequestable: NotRequired[bool] - status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] - updated_at: datetime - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppType(TypedDict): - """App - - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "merge_queue_entry", - "workflow_job", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, None] - permissions: NotRequired[ - WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType(TypedDict): - """WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType - committer: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): - """Check Run Pull Request""" - - base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType - head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType - id: int - number: int - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str + identifier: NotRequired[str] __all__ = ( - "WebhookCheckSuiteRerequestedType", - "WebhookCheckSuiteRerequestedPropCheckSuiteType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", - "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", + "WebhookCheckRunRequestedActionType", + "WebhookCheckRunRequestedActionPropRequestedActionType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0434.py b/githubkit/versions/v2022_11_28/types/group_0434.py index 4709f7ea5..0d80e2c39 100644 --- a/githubkit/versions/v2022_11_28/types/group_0434.py +++ b/githubkit/versions/v2022_11_28/types/group_0434.py @@ -9,151 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +class WebhookCheckRunRequestedActionFormEncodedType(TypedDict): + """Check Run Requested Action Event -class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): - """code_scanning_alert appeared_in_branch event""" - - action: Literal["appeared_in_branch"] - alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType - commit_oid: str - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlert - - The code scanning alert involved in the event. - """ - - created_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None - ] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, - None, - ] - ] - number: int - rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType - state: Literal["open", "dismissed", "fixed"] - tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType - url: str - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType( - TypedDict -): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[List[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( - TypedDict -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat - ion - """ - - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( - TypedDict -): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa - ge + The check_run.requested_action webhook encoded with URL encoding """ - text: NotRequired[str] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" - - description: str - id: str - severity: Union[None, Literal["none", "note", "warning", "error"]] - - -class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" - - name: str - version: Union[str, None] + payload: str -__all__ = ( - "WebhookCodeScanningAlertAppearedInBranchType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", - "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", -) +__all__ = ("WebhookCheckRunRequestedActionFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0435.py b/githubkit/versions/v2022_11_28/types/group_0435.py index fcdbb15c7..7fff235a0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0435.py +++ b/githubkit/versions/v2022_11_28/types/group_0435.py @@ -9,153 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0379 import CheckRunWithSimpleCheckSuiteType -class WebhookCodeScanningAlertClosedByUserType(TypedDict): - """code_scanning_alert closed_by_user event""" +class WebhookCheckRunRerequestedType(TypedDict): + """Check Run Re-Requested Event""" - action: Literal["closed_by_user"] - alert: WebhookCodeScanningAlertClosedByUserPropAlertType - commit_oid: str - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["rerequested"] + check_run: CheckRunWithSimpleCheckSuiteType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlert - - The code scanning alert involved in the event. - """ - - created_at: datetime - dismissed_at: datetime - dismissed_by: Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, None - ] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] - ] - html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, - None, - ] - ] - number: int - rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType - state: Literal["dismissed", "fixed"] - tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType - url: str - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType( - TypedDict -): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[List[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( - TypedDict -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" - - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( - TypedDict -): - """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" - - text: NotRequired[str] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" - - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[List[str], None]] - - -class WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" - - guid: NotRequired[Union[str, None]] - name: str - version: Union[str, None] - - -__all__ = ( - "WebhookCodeScanningAlertClosedByUserType", - "WebhookCodeScanningAlertClosedByUserPropAlertType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", -) +__all__ = ("WebhookCheckRunRerequestedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0436.py b/githubkit/versions/v2022_11_28/types/group_0436.py index cc5551c9e..ef6a77599 100644 --- a/githubkit/versions/v2022_11_28/types/group_0436.py +++ b/githubkit/versions/v2022_11_28/types/group_0436.py @@ -9,121 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +class WebhookCheckRunRerequestedFormEncodedType(TypedDict): + """Check Run Re-Requested Event -class WebhookCodeScanningAlertCreatedType(TypedDict): - """code_scanning_alert created event""" - - action: Literal["created"] - alert: WebhookCodeScanningAlertCreatedPropAlertType - commit_oid: str - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlert - - The code scanning alert involved in the event. + The check_run.rerequested webhook encoded with URL encoding """ - created_at: Union[datetime, None] - dismissed_at: None - dismissed_by: None - dismissed_comment: NotRequired[Union[str, None]] - dismissed_reason: None - fixed_at: NotRequired[None] - html_url: str - instances_url: NotRequired[str] - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] - ] - number: int - rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType - state: Literal["open", "dismissed"] - tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] - updated_at: NotRequired[Union[str, None]] - url: str - - -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[List[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] - - -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( - TypedDict -): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" - - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] - - -class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( - TypedDict -): - """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" - - text: NotRequired[str] - - -class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlertPropRule""" - - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[List[str], None]] - - -class WebhookCodeScanningAlertCreatedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertCreatedPropAlertPropTool""" - - guid: NotRequired[Union[str, None]] - name: str - version: Union[str, None] + payload: str -__all__ = ( - "WebhookCodeScanningAlertCreatedType", - "WebhookCodeScanningAlertCreatedPropAlertType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", - "WebhookCodeScanningAlertCreatedPropAlertPropToolType", -) +__all__ = ("WebhookCheckRunRerequestedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0437.py b/githubkit/versions/v2022_11_28/types/group_0437.py index c11fd5200..ace7a3719 100644 --- a/githubkit/versions/v2022_11_28/types/group_0437.py +++ b/githubkit/versions/v2022_11_28/types/group_0437.py @@ -13,52 +13,151 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookCodeScanningAlertFixedType(TypedDict): - """code_scanning_alert fixed event""" +class WebhookCheckSuiteCompletedType(TypedDict): + """check_suite completed event""" - action: Literal["fixed"] - alert: WebhookCodeScanningAlertFixedPropAlertType - commit_oid: str + action: Literal["completed"] + check_suite: WebhookCheckSuiteCompletedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlert +class WebhookCheckSuiteCompletedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteCompletedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ + after: Union[str, None] + app: WebhookCheckSuiteCompletedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] created_at: datetime - dismissed_at: Union[datetime, None] - dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] - dismissed_reason: Union[ - None, Literal["false positive", "won't fix", "used in tests"] + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: List[ + WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType ] - html_url: str - instances_url: NotRequired[str] - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[ + None, Literal["requested", "in_progress", "completed", "queued", "pending"] ] - number: int - rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType - state: Literal["fixed"] - tool: WebhookCodeScanningAlertFixedPropAlertPropToolType + updated_at: datetime url: str -class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): +class WebhookCheckSuiteCompletedPropCheckSuitePropAppType(TypedDict): + """App + + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ + + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "merge_group", + "pull_request_review_thread", + "workflow_job", + "merge_queue_entry", + "security_and_analysis", + "projects_v2_item", + "secret_scanning_alert_location", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, 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] @@ -84,72 +183,148 @@ class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): url: NotRequired[str] -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" +class WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType(TypedDict): + """WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissions + + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write", "admin"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType + committer: WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[List[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType - ] - message: NotRequired[ - WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType - ] - ref: str - state: Literal["open", "dismissed", "fixed"] +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType(TypedDict): + """Committer -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType( TypedDict ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + """Committer - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + Metaproperties for Git author/committer information. + """ + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + + base: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str -class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBase""" - text: NotRequired[str] + ref: str + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropRule""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[List[str], None]] + id: int + name: str + url: str -class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertFixedPropAlertPropTool""" +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str - guid: NotRequired[Union[str, None]] + +class WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertFixedType", - "WebhookCodeScanningAlertFixedPropAlertType", - "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertFixedPropAlertPropRuleType", - "WebhookCodeScanningAlertFixedPropAlertPropToolType", + "WebhookCheckSuiteCompletedType", + "WebhookCheckSuiteCompletedPropCheckSuiteType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteCompletedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteCompletedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteCompletedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0438.py b/githubkit/versions/v2022_11_28/types/group_0438.py index c94d4ad2d..2b313bb97 100644 --- a/githubkit/versions/v2022_11_28/types/group_0438.py +++ b/githubkit/versions/v2022_11_28/types/group_0438.py @@ -13,120 +13,316 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookCodeScanningAlertReopenedType(TypedDict): - """code_scanning_alert reopened event""" +class WebhookCheckSuiteRequestedType(TypedDict): + """check_suite requested event""" - action: Literal["reopened"] - alert: Union[WebhookCodeScanningAlertReopenedPropAlertType, None] - commit_oid: Union[str, None] + action: Literal["requested"] + check_suite: WebhookCheckSuiteRequestedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: Union[str, None] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlert +class WebhookCheckSuiteRequestedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteRequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ - created_at: datetime - dismissed_at: Union[str, None] - dismissed_by: Union[ - WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, 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_reason: Union[str, None] - html_url: str - most_recent_instance: NotRequired[ - Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, None] + 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 ] - number: int - rule: WebhookCodeScanningAlertReopenedPropAlertPropRuleType - state: Literal["open", "dismissed", "fixed"] - tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] + updated_at: datetime url: str -class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" - +class WebhookCheckSuiteRequestedPropCheckSuitePropAppType(TypedDict): + """App -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedDict): - """Alert Instance""" + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. + """ - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[List[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "workflow_job", + "merge_queue_entry", + "security_and_analysis", + "secret_scanning_alert_location", + "projects_v2_item", + "merge_group", + "repository_import", + ] + ] ] - message: NotRequired[ - WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType ] - ref: str - state: Literal["open", "dismissed", "fixed"] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 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 WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBase""" - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + ref: str + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType( +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( TypedDict ): - """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + """Repo Ref""" - text: NotRequired[str] + id: int + name: str + url: str -class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropRule""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHead""" - description: str - full_description: NotRequired[str] - help_: NotRequired[Union[str, None]] - help_uri: NotRequired[Union[str, None]] - id: str - name: NotRequired[str] - severity: Union[None, Literal["none", "note", "warning", "error"]] - tags: NotRequired[Union[List[str], None]] + ref: str + repo: WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str -class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedPropAlertPropTool""" +class WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" - guid: NotRequired[Union[str, None]] + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertReopenedType", - "WebhookCodeScanningAlertReopenedPropAlertType", - "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedPropAlertPropToolType", + "WebhookCheckSuiteRequestedType", + "WebhookCheckSuiteRequestedPropCheckSuiteType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0439.py b/githubkit/versions/v2022_11_28/types/group_0439.py index d0af4a432..bdb438340 100644 --- a/githubkit/versions/v2022_11_28/types/group_0439.py +++ b/githubkit/versions/v2022_11_28/types/group_0439.py @@ -13,114 +13,310 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookCodeScanningAlertReopenedByUserType(TypedDict): - """code_scanning_alert reopened_by_user event""" +class WebhookCheckSuiteRerequestedType(TypedDict): + """check_suite rerequested event""" - action: Literal["reopened_by_user"] - alert: WebhookCodeScanningAlertReopenedByUserPropAlertType - commit_oid: str + action: Literal["rerequested"] + check_suite: WebhookCheckSuiteRerequestedPropCheckSuiteType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlert +class WebhookCheckSuiteRerequestedPropCheckSuiteType(TypedDict): + """WebhookCheckSuiteRerequestedPropCheckSuite - The code scanning alert involved in the event. + The [check_suite](https://docs.github.com/rest/checks/suites#get-a-check-suite). """ + after: Union[str, None] + app: WebhookCheckSuiteRerequestedPropCheckSuitePropAppType + before: Union[str, None] + check_runs_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] created_at: datetime - dismissed_at: None - dismissed_by: None - dismissed_reason: None - html_url: str - most_recent_instance: NotRequired[ - Union[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, - None, - ] + head_branch: Union[str, None] + head_commit: WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType + head_sha: str + id: int + latest_check_runs_count: int + node_id: str + pull_requests: List[ + WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType ] - number: int - rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType - state: Literal["open", "fixed"] - tool: WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType + rerequestable: NotRequired[bool] + runs_rerequestable: NotRequired[bool] + status: Union[None, Literal["requested", "in_progress", "completed", "queued"]] + updated_at: datetime url: str -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType( - TypedDict -): - """Alert Instance""" - - analysis_key: str - category: NotRequired[str] - classifications: NotRequired[List[str]] - commit_sha: NotRequired[str] - environment: str - location: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "merge_queue_entry", + "workflow_job", + ] + ] ] - message: NotRequired[ - WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType, None] + permissions: NotRequired[ + WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType ] - ref: str - state: Literal["open", "dismissed", "fixed"] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 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 -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType( + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocatio - n + """Committer + + Metaproperties for Git author/committer information. """ - end_column: NotRequired[int] - end_line: NotRequired[int] - path: NotRequired[str] - start_column: NotRequired[int] - start_line: NotRequired[int] + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType(TypedDict): + """Check Run Pull Request""" + base: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType + head: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType + id: int + number: int + url: str -class WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType( + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType( TypedDict ): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessage""" + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBase""" - text: NotRequired[str] + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType + sha: str -class WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropRule""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" - description: str - id: str - severity: Union[None, Literal["none", "note", "warning", "error"]] + id: int + name: str + url: str -class WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType(TypedDict): - """WebhookCodeScanningAlertReopenedByUserPropAlertPropTool""" +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHead""" + ref: str + repo: WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int name: str - version: Union[str, None] + url: str __all__ = ( - "WebhookCodeScanningAlertReopenedByUserType", - "WebhookCodeScanningAlertReopenedByUserPropAlertType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", - "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", + "WebhookCheckSuiteRerequestedType", + "WebhookCheckSuiteRerequestedPropCheckSuiteType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropOwnerType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropAppPropPermissionsType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropAuthorType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropHeadCommitPropCommitterType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBaseType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropBasePropRepoType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadType", + "WebhookCheckSuiteRerequestedPropCheckSuitePropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0440.py b/githubkit/versions/v2022_11_28/types/group_0440.py index 725e55b94..d890e79b4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0440.py +++ b/githubkit/versions/v2022_11_28/types/group_0440.py @@ -9,76 +9,60 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookCommitCommentCreatedType(TypedDict): - """commit_comment created event""" +class WebhookCodeScanningAlertAppearedInBranchType(TypedDict): + """code_scanning_alert appeared_in_branch event""" - action: Literal["created"] - comment: WebhookCommitCommentCreatedPropCommentType + action: Literal["appeared_in_branch"] + alert: WebhookCodeScanningAlertAppearedInBranchPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookCommitCommentCreatedPropCommentType(TypedDict): - """WebhookCommitCommentCreatedPropComment +class WebhookCodeScanningAlertAppearedInBranchPropAlertType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlert - The [commit comment](https://docs.github.com/rest/commits/comments#get-a-commit- - comment) resource. + The code scanning alert involved in the event. """ - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + created_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType, None + ] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] ] - 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 + most_recent_instance: NotRequired[ + Union[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType, + None, + ] + ] + number: int + rule: WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType + state: Literal["open", "dismissed", "fixed"] + tool: WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType url: str -class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -104,9 +88,72 @@ class WebhookCommitCommentCreatedPropCommentPropUserType(TypedDict): url: NotRequired[str] +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType( + TypedDict +): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[List[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocat + ion + """ + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessa + ge + """ + + text: NotRequired[str] + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropRule""" + + description: str + id: str + severity: Union[None, Literal["none", "note", "warning", "error"]] + + +class WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertAppearedInBranchPropAlertPropTool""" + + name: str + version: Union[str, None] + + __all__ = ( - "WebhookCommitCommentCreatedType", - "WebhookCommitCommentCreatedPropCommentType", - "WebhookCommitCommentCreatedPropCommentPropReactionsType", - "WebhookCommitCommentCreatedPropCommentPropUserType", + "WebhookCodeScanningAlertAppearedInBranchType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropDismissedByType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropRuleType", + "WebhookCodeScanningAlertAppearedInBranchPropAlertPropToolType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0441.py b/githubkit/versions/v2022_11_28/types/group_0441.py index 108d57a43..2e3874d2c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0441.py +++ b/githubkit/versions/v2022_11_28/types/group_0441.py @@ -9,29 +9,153 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookCreateType(TypedDict): - """create event""" +class WebhookCodeScanningAlertClosedByUserType(TypedDict): + """code_scanning_alert closed_by_user event""" - description: Union[str, None] + action: Literal["closed_by_user"] + alert: WebhookCodeScanningAlertClosedByUserPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - master_branch: str organization: NotRequired[OrganizationSimpleWebhooksType] - pusher_type: str ref: str - ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookCreateType",) +class WebhookCodeScanningAlertClosedByUserPropAlertType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: datetime + dismissed_by: Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType, None + ] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + html_url: str + most_recent_instance: NotRequired[ + Union[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType, + None, + ] + ] + number: int + rule: WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType + state: Literal["dismissed", "fixed"] + tool: WebhookCodeScanningAlertClosedByUserPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType( + TypedDict +): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[List[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[List[str], None]] + + +class WebhookCodeScanningAlertClosedByUserPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertClosedByUserPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertClosedByUserType", + "WebhookCodeScanningAlertClosedByUserPropAlertType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropDismissedByType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropRuleType", + "WebhookCodeScanningAlertClosedByUserPropAlertPropToolType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0442.py b/githubkit/versions/v2022_11_28/types/group_0442.py index 014ce7735..021e21dc6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0442.py +++ b/githubkit/versions/v2022_11_28/types/group_0442.py @@ -9,25 +9,121 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0092 import OrgCustomPropertyType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyCreatedType(TypedDict): - """custom property created event""" +class WebhookCodeScanningAlertCreatedType(TypedDict): + """code_scanning_alert created event""" action: Literal["created"] - definition: OrgCustomPropertyType + alert: WebhookCodeScanningAlertCreatedPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCustomPropertyCreatedType",) +class WebhookCodeScanningAlertCreatedPropAlertType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: Union[datetime, None] + dismissed_at: None + dismissed_by: None + dismissed_comment: NotRequired[Union[str, None]] + dismissed_reason: None + fixed_at: NotRequired[None] + html_url: str + instances_url: NotRequired[str] + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertCreatedPropAlertPropRuleType + state: Literal["open", "dismissed"] + tool: Union[WebhookCodeScanningAlertCreatedPropAlertPropToolType, None] + updated_at: NotRequired[Union[str, None]] + url: str + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[List[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertCreatedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[List[str], None]] + + +class WebhookCodeScanningAlertCreatedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertCreatedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertCreatedType", + "WebhookCodeScanningAlertCreatedPropAlertType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertCreatedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertCreatedPropAlertPropRuleType", + "WebhookCodeScanningAlertCreatedPropAlertPropToolType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0443.py b/githubkit/versions/v2022_11_28/types/group_0443.py index 588ef98e7..fcb776ce2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0443.py +++ b/githubkit/versions/v2022_11_28/types/group_0443.py @@ -9,33 +9,147 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyDeletedType(TypedDict): - """custom property deleted event""" +class WebhookCodeScanningAlertFixedType(TypedDict): + """code_scanning_alert fixed event""" - action: Literal["deleted"] - definition: WebhookCustomPropertyDeletedPropDefinitionType + action: Literal["fixed"] + alert: WebhookCodeScanningAlertFixedPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): - """WebhookCustomPropertyDeletedPropDefinition""" +class WebhookCodeScanningAlertFixedPropAlertType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlert - property_name: str + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: Union[datetime, None] + dismissed_by: Union[WebhookCodeScanningAlertFixedPropAlertPropDismissedByType, None] + dismissed_reason: Union[ + None, Literal["false positive", "won't fix", "used in tests"] + ] + html_url: str + instances_url: NotRequired[str] + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertFixedPropAlertPropRuleType + state: Literal["fixed"] + tool: WebhookCodeScanningAlertFixedPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertFixedPropAlertPropDismissedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[List[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertFixedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[List[str], None]] + + +class WebhookCodeScanningAlertFixedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertFixedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] __all__ = ( - "WebhookCustomPropertyDeletedType", - "WebhookCustomPropertyDeletedPropDefinitionType", + "WebhookCodeScanningAlertFixedType", + "WebhookCodeScanningAlertFixedPropAlertType", + "WebhookCodeScanningAlertFixedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertFixedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertFixedPropAlertPropRuleType", + "WebhookCodeScanningAlertFixedPropAlertPropToolType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0444.py b/githubkit/versions/v2022_11_28/types/group_0444.py index bf536335a..cf77af7ca 100644 --- a/githubkit/versions/v2022_11_28/types/group_0444.py +++ b/githubkit/versions/v2022_11_28/types/group_0444.py @@ -9,25 +9,124 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0092 import OrgCustomPropertyType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyUpdatedType(TypedDict): - """custom property updated event""" +class WebhookCodeScanningAlertReopenedType(TypedDict): + """code_scanning_alert reopened event""" - action: Literal["updated"] - definition: OrgCustomPropertyType + action: Literal["reopened"] + alert: Union[WebhookCodeScanningAlertReopenedPropAlertType, None] + commit_oid: Union[str, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + organization: NotRequired[OrganizationSimpleWebhooksType] + ref: Union[str, None] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookCustomPropertyUpdatedType",) +class WebhookCodeScanningAlertReopenedPropAlertType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: Union[str, None] + dismissed_by: Union[ + WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType, None + ] + dismissed_reason: Union[str, None] + html_url: str + most_recent_instance: NotRequired[ + Union[WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType, None] + ] + number: int + rule: WebhookCodeScanningAlertReopenedPropAlertPropRuleType + state: Literal["open", "dismissed", "fixed"] + tool: WebhookCodeScanningAlertReopenedPropAlertPropToolType + url: str + + +class WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropDismissedBy""" + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType(TypedDict): + """Alert Instance""" + + analysis_key: str + category: NotRequired[str] + classifications: NotRequired[List[str]] + commit_sha: NotRequired[str] + environment: str + location: NotRequired[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType + ] + message: NotRequired[ + WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType + ] + ref: str + state: Literal["open", "dismissed", "fixed"] + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType( + TypedDict +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocation""" + + end_column: NotRequired[int] + end_line: NotRequired[int] + path: NotRequired[str] + start_column: NotRequired[int] + start_line: NotRequired[int] + + +class WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType( + TypedDict +): + """WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessage""" + + text: NotRequired[str] + + +class WebhookCodeScanningAlertReopenedPropAlertPropRuleType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropRule""" + + description: str + full_description: NotRequired[str] + help_: NotRequired[Union[str, None]] + help_uri: NotRequired[Union[str, None]] + id: str + name: NotRequired[str] + severity: Union[None, Literal["none", "note", "warning", "error"]] + tags: NotRequired[Union[List[str], None]] + + +class WebhookCodeScanningAlertReopenedPropAlertPropToolType(TypedDict): + """WebhookCodeScanningAlertReopenedPropAlertPropTool""" + + guid: NotRequired[Union[str, None]] + name: str + version: Union[str, None] + + +__all__ = ( + "WebhookCodeScanningAlertReopenedType", + "WebhookCodeScanningAlertReopenedPropAlertType", + "WebhookCodeScanningAlertReopenedPropAlertPropDismissedByType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertReopenedPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertReopenedPropAlertPropRuleType", + "WebhookCodeScanningAlertReopenedPropAlertPropToolType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0445.py b/githubkit/versions/v2022_11_28/types/group_0445.py index d3f17ddb5..1050d4e36 100644 --- a/githubkit/versions/v2022_11_28/types/group_0445.py +++ b/githubkit/versions/v2022_11_28/types/group_0445.py @@ -9,28 +9,118 @@ from __future__ import annotations -from typing import List, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0093 import CustomPropertyValueType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookCustomPropertyValuesUpdatedType(TypedDict): - """Custom property values updated event""" +class WebhookCodeScanningAlertReopenedByUserType(TypedDict): + """code_scanning_alert reopened_by_user event""" - action: Literal["updated"] + action: Literal["reopened_by_user"] + alert: WebhookCodeScanningAlertReopenedByUserPropAlertType + commit_oid: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str repository: RepositoryWebhooksType - organization: OrganizationSimpleWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - new_property_values: List[CustomPropertyValueType] - old_property_values: List[CustomPropertyValueType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookCustomPropertyValuesUpdatedType",) +class WebhookCodeScanningAlertReopenedByUserPropAlertType(TypedDict): + """WebhookCodeScanningAlertReopenedByUserPropAlert + + The code scanning alert involved in the event. + """ + + created_at: datetime + dismissed_at: None + dismissed_by: None + dismissed_reason: None + html_url: str + most_recent_instance: NotRequired[ + Union[ + WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType, + None, + ] + ] + number: int + rule: WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType + state: 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__ = ( + "WebhookCodeScanningAlertReopenedByUserType", + "WebhookCodeScanningAlertReopenedByUserPropAlertType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstanceType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropLocationType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropMostRecentInstancePropMessageType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropRuleType", + "WebhookCodeScanningAlertReopenedByUserPropAlertPropToolType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0446.py b/githubkit/versions/v2022_11_28/types/group_0446.py index 527a451ed..e733096ed 100644 --- a/githubkit/versions/v2022_11_28/types/group_0446.py +++ b/githubkit/versions/v2022_11_28/types/group_0446.py @@ -9,27 +9,104 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDeleteType(TypedDict): - """delete event""" +class WebhookCommitCommentCreatedType(TypedDict): + """commit_comment created event""" + action: Literal["created"] + comment: WebhookCommitCommentCreatedPropCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pusher_type: str - ref: str - ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookDeleteType",) +class WebhookCommitCommentCreatedPropCommentType(TypedDict): + """WebhookCommitCommentCreatedPropComment + + The [commit comment](https://docs.github.com/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] + + +__all__ = ( + "WebhookCommitCommentCreatedType", + "WebhookCommitCommentCreatedPropCommentType", + "WebhookCommitCommentCreatedPropCommentPropReactionsType", + "WebhookCommitCommentCreatedPropCommentPropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0447.py b/githubkit/versions/v2022_11_28/types/group_0447.py index 1fe0d0848..1a5b571f8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0447.py +++ b/githubkit/versions/v2022_11_28/types/group_0447.py @@ -9,27 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0234 import DependabotAlertType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertAutoDismissedType(TypedDict): - """Dependabot alert auto-dismissed event""" +class WebhookCreateType(TypedDict): + """create event""" - action: Literal["auto_dismissed"] - alert: DependabotAlertType + description: Union[str, None] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + master_branch: str organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] + pusher_type: str + ref: str + ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookDependabotAlertAutoDismissedType",) +__all__ = ("WebhookCreateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0448.py b/githubkit/versions/v2022_11_28/types/group_0448.py index 0f864656f..a77391c5b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0448.py +++ b/githubkit/versions/v2022_11_28/types/group_0448.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0234 import DependabotAlertType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0097 import OrgCustomPropertyType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertAutoReopenedType(TypedDict): - """Dependabot alert auto-reopened event""" +class WebhookCustomPropertyCreatedType(TypedDict): + """custom property created event""" - action: Literal["auto_reopened"] - alert: DependabotAlertType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["created"] + definition: OrgCustomPropertyType enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookDependabotAlertAutoReopenedType",) +__all__ = ("WebhookCustomPropertyCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0449.py b/githubkit/versions/v2022_11_28/types/group_0449.py index 7fd75cc48..e75f3a584 100644 --- a/githubkit/versions/v2022_11_28/types/group_0449.py +++ b/githubkit/versions/v2022_11_28/types/group_0449.py @@ -12,24 +12,30 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0234 import DependabotAlertType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertCreatedType(TypedDict): - """Dependabot alert created event""" +class WebhookCustomPropertyDeletedType(TypedDict): + """custom property deleted event""" - action: Literal["created"] - alert: DependabotAlertType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["deleted"] + definition: WebhookCustomPropertyDeletedPropDefinitionType enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookCustomPropertyDeletedPropDefinitionType(TypedDict): + """WebhookCustomPropertyDeletedPropDefinition""" + + property_name: str -__all__ = ("WebhookDependabotAlertCreatedType",) +__all__ = ( + "WebhookCustomPropertyDeletedType", + "WebhookCustomPropertyDeletedPropDefinitionType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0450.py b/githubkit/versions/v2022_11_28/types/group_0450.py index 53b7e4dc3..4bb980f14 100644 --- a/githubkit/versions/v2022_11_28/types/group_0450.py +++ b/githubkit/versions/v2022_11_28/types/group_0450.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0234 import DependabotAlertType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0097 import OrgCustomPropertyType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertDismissedType(TypedDict): - """Dependabot alert dismissed event""" +class WebhookCustomPropertyUpdatedType(TypedDict): + """custom property updated event""" - action: Literal["dismissed"] - alert: DependabotAlertType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["updated"] + definition: OrgCustomPropertyType enterprise: NotRequired[EnterpriseWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookDependabotAlertDismissedType",) +__all__ = ("WebhookCustomPropertyUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0451.py b/githubkit/versions/v2022_11_28/types/group_0451.py index 5209ac7f2..8909f4b7e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0451.py +++ b/githubkit/versions/v2022_11_28/types/group_0451.py @@ -9,27 +9,28 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0234 import DependabotAlertType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0098 import CustomPropertyValueType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertFixedType(TypedDict): - """Dependabot alert fixed event""" +class WebhookCustomPropertyValuesUpdatedType(TypedDict): + """Custom property values updated event""" - action: Literal["fixed"] - alert: DependabotAlertType - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + organization: OrganizationSimpleWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + new_property_values: List[CustomPropertyValueType] + old_property_values: List[CustomPropertyValueType] -__all__ = ("WebhookDependabotAlertFixedType",) +__all__ = ("WebhookCustomPropertyValuesUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0452.py b/githubkit/versions/v2022_11_28/types/group_0452.py index 0bc99b132..2a6589c3d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0452.py +++ b/githubkit/versions/v2022_11_28/types/group_0452.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0234 import DependabotAlertType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertReintroducedType(TypedDict): - """Dependabot alert reintroduced event""" +class WebhookDeleteType(TypedDict): + """delete event""" - action: Literal["reintroduced"] - alert: DependabotAlertType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - enterprise: NotRequired[EnterpriseWebhooksType] + pusher_type: str + ref: str + ref_type: Literal["tag", "branch"] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookDependabotAlertReintroducedType",) +__all__ = ("WebhookDeleteType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0453.py b/githubkit/versions/v2022_11_28/types/group_0453.py index 137662559..ec01724d7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0453.py +++ b/githubkit/versions/v2022_11_28/types/group_0453.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0234 import DependabotAlertType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0239 import DependabotAlertType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDependabotAlertReopenedType(TypedDict): - """Dependabot alert reopened event""" +class WebhookDependabotAlertAutoDismissedType(TypedDict): + """Dependabot alert auto-dismissed event""" - action: Literal["reopened"] + action: Literal["auto_dismissed"] alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -32,4 +32,4 @@ class WebhookDependabotAlertReopenedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDependabotAlertReopenedType",) +__all__ = ("WebhookDependabotAlertAutoDismissedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0454.py b/githubkit/versions/v2022_11_28/types/group_0454.py index 879814e50..b53890c44 100644 --- a/githubkit/versions/v2022_11_28/types/group_0454.py +++ b/githubkit/versions/v2022_11_28/types/group_0454.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0375 import WebhooksDeployKeyType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0239 import DependabotAlertType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDeployKeyCreatedType(TypedDict): - """deploy_key created event""" +class WebhookDependabotAlertAutoReopenedType(TypedDict): + """Dependabot alert auto-reopened event""" - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["auto_reopened"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookDeployKeyCreatedType",) +__all__ = ("WebhookDependabotAlertAutoReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0455.py b/githubkit/versions/v2022_11_28/types/group_0455.py index 719088cf4..d62e19210 100644 --- a/githubkit/versions/v2022_11_28/types/group_0455.py +++ b/githubkit/versions/v2022_11_28/types/group_0455.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0375 import WebhooksDeployKeyType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0239 import DependabotAlertType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDeployKeyDeletedType(TypedDict): - """deploy_key deleted event""" +class WebhookDependabotAlertCreatedType(TypedDict): + """Dependabot alert created event""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["created"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookDeployKeyDeletedType",) +__all__ = ("WebhookDependabotAlertCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0456.py b/githubkit/versions/v2022_11_28/types/group_0456.py index 621b827b3..b51145fc1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0456.py +++ b/githubkit/versions/v2022_11_28/types/group_0456.py @@ -9,600 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0376 import WebhooksWorkflowType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0239 import DependabotAlertType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDeploymentCreatedType(TypedDict): - """deployment created event""" +class WebhookDependabotAlertDismissedType(TypedDict): + """Dependabot alert dismissed event""" - action: Literal["created"] - deployment: WebhookDeploymentCreatedPropDeploymentType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["dismissed"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - 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[WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type, str] - 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] - - -class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type(TypedDict): - """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0""" - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "workflow_job", - "pull_request_review_thread", - "merge_queue_entry", - "secret_scanning_alert_location", - "merge_group", - ] - ] - ] - 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] - - -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] - - -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] - - -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__ = ( - "WebhookDeploymentCreatedType", - "WebhookDeploymentCreatedPropDeploymentType", - "WebhookDeploymentCreatedPropDeploymentPropCreatorType", - "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentCreatedPropWorkflowRunType", - "WebhookDeploymentCreatedPropWorkflowRunPropActorType", - "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookDependabotAlertDismissedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0457.py b/githubkit/versions/v2022_11_28/types/group_0457.py index 8330c7671..06b5b9c37 100644 --- a/githubkit/versions/v2022_11_28/types/group_0457.py +++ b/githubkit/versions/v2022_11_28/types/group_0457.py @@ -9,30 +9,27 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0171 import DeploymentType -from .group_0298 import PullRequestType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0239 import DependabotAlertType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDeploymentProtectionRuleRequestedType(TypedDict): - """deployment protection rule requested event""" +class WebhookDependabotAlertFixedType(TypedDict): + """Dependabot alert fixed 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] + action: Literal["fixed"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - sender: NotRequired[SimpleUserWebhooksType] + organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) +__all__ = ("WebhookDependabotAlertFixedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0458.py b/githubkit/versions/v2022_11_28/types/group_0458.py index bc5a6cffb..3b6e3cf75 100644 --- a/githubkit/versions/v2022_11_28/types/group_0458.py +++ b/githubkit/versions/v2022_11_28/types/group_0458.py @@ -9,415 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0378 import WebhooksWorkflowJobRunType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0377 import WebhooksApproverType, WebhooksReviewersItemsType +from .group_0239 import DependabotAlertType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDeploymentReviewApprovedType(TypedDict): - """WebhookDeploymentReviewApproved""" +class WebhookDependabotAlertReintroducedType(TypedDict): + """Dependabot alert reintroduced event""" - action: Literal["approved"] - approver: NotRequired[WebhooksApproverType] - comment: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reintroduced"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType - reviewers: NotRequired[List[WebhooksReviewersItemsType]] sender: SimpleUserWebhooksType - since: str - workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] - workflow_job_runs: NotRequired[ - List[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] - ] - workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, None] - - -class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" - - conclusion: NotRequired[None] - created_at: NotRequired[str] - environment: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - status: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - display_title: str - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: List[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "waiting", "pending" - ] - triggering_actor: Union[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" - - archive_url: NotRequired[str] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[bool] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - languages_url: NotRequired[str] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - owner: NotRequired[ - WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType - ] - private: NotRequired[bool] - pulls_url: NotRequired[str] - releases_url: NotRequired[str] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - trees_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str -__all__ = ( - "WebhookDeploymentReviewApprovedType", - "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookDependabotAlertReintroducedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0459.py b/githubkit/versions/v2022_11_28/types/group_0459.py index de442a31e..8152ac624 100644 --- a/githubkit/versions/v2022_11_28/types/group_0459.py +++ b/githubkit/versions/v2022_11_28/types/group_0459.py @@ -9,413 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0378 import WebhooksWorkflowJobRunType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0377 import WebhooksApproverType, WebhooksReviewersItemsType +from .group_0239 import DependabotAlertType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDeploymentReviewRejectedType(TypedDict): - """WebhookDeploymentReviewRejected""" +class WebhookDependabotAlertReopenedType(TypedDict): + """Dependabot alert reopened event""" - action: Literal["rejected"] - approver: NotRequired[WebhooksApproverType] - comment: NotRequired[str] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reopened"] + alert: DependabotAlertType installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + enterprise: NotRequired[EnterpriseWebhooksType] repository: RepositoryWebhooksType - reviewers: NotRequired[List[WebhooksReviewersItemsType]] sender: SimpleUserWebhooksType - since: str - workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] - workflow_job_runs: NotRequired[ - List[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType] - ] - workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRunType, None] - - -class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): - """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" - - conclusion: NotRequired[Union[str, None]] - created_at: NotRequired[str] - environment: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - name: NotRequired[Union[str, None]] - status: NotRequired[str] - updated_at: NotRequired[str] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): - """Deployment Workflow Run""" - - actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, None] - artifacts_url: NotRequired[str] - cancel_url: NotRequired[str] - check_suite_id: int - check_suite_node_id: str - check_suite_url: NotRequired[str] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - ], - ] - created_at: datetime - event: str - head_branch: str - head_commit: NotRequired[ - Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, None] - ] - head_repository: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType - ] - head_sha: str - html_url: str - id: int - jobs_url: NotRequired[str] - logs_url: NotRequired[str] - name: str - node_id: str - path: str - previous_attempt_url: NotRequired[Union[str, None]] - pull_requests: List[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: NotRequired[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType - ] - rerun_url: NotRequired[str] - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "waiting"] - triggering_actor: Union[ - WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: NotRequired[str] - display_title: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -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] - - -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] - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType( - TypedDict -): - """Check Run Pull Request""" - - base: ( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType - ) - head: ( - WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType - ) - id: int - number: int - url: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str - url: str -__all__ = ( - "WebhookDeploymentReviewRejectedType", - "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookDependabotAlertReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0460.py b/githubkit/versions/v2022_11_28/types/group_0460.py index 20f1a46be..1be51bdb7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0460.py +++ b/githubkit/versions/v2022_11_28/types/group_0460.py @@ -9,448 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0379 import WebhooksUserType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0380 import WebhooksDeployKeyType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDeploymentReviewRequestedType(TypedDict): - """WebhookDeploymentReviewRequested""" +class WebhookDeployKeyCreatedType(TypedDict): + """deploy_key created event""" - action: Literal["requested"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] - environment: str installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType + key: WebhooksDeployKeyType + organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - requestor: Union[WebhooksUserType, None] - reviewers: List[WebhookDeploymentReviewRequestedPropReviewersItemsType] sender: SimpleUserWebhooksType - since: str - workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRunType - workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRunType, None] -class WebhookDeploymentReviewRequestedPropWorkflowJobRunType(TypedDict): - """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" - - conclusion: None - created_at: str - environment: str - html_url: str - id: int - name: Union[str, None] - status: str - updated_at: str - - -class WebhookDeploymentReviewRequestedPropReviewersItemsType(TypedDict): - """WebhookDeploymentReviewRequestedPropReviewersItems""" - - reviewer: NotRequired[ - Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, None] - ] - type: NotRequired[Literal["User", "Team"]] - - -class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: NotRequired[str] - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -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] - - -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] - - -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] - - -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__ = ( - "WebhookDeploymentReviewRequestedType", - "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", - "WebhookDeploymentReviewRequestedPropReviewersItemsType", - "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookDeployKeyCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0461.py b/githubkit/versions/v2022_11_28/types/group_0461.py index 500f06f9c..427428306 100644 --- a/githubkit/versions/v2022_11_28/types/group_0461.py +++ b/githubkit/versions/v2022_11_28/types/group_0461.py @@ -9,866 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0376 import WebhooksWorkflowType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0380 import WebhooksDeployKeyType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDeploymentStatusCreatedType(TypedDict): - """deployment_status created event""" +class WebhookDeployKeyDeletedType(TypedDict): + """deploy_key deleted event""" - action: Literal["created"] - check_run: NotRequired[Union[WebhookDeploymentStatusCreatedPropCheckRunType, None]] - deployment: WebhookDeploymentStatusCreatedPropDeploymentType - deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatusType + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + key: WebhooksDeployKeyType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - workflow: NotRequired[Union[WebhooksWorkflowType, None]] - workflow_run: NotRequired[ - Union[WebhookDeploymentStatusCreatedPropWorkflowRunType, None] - ] -class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): - """WebhookDeploymentStatusCreatedPropCheckRun""" - - completed_at: Union[datetime, None] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required", - "stale", - "skipped", - ], - ] - details_url: str - external_id: str - head_sha: str - html_url: str - id: int - name: str - node_id: str - started_at: datetime - status: Literal["queued", "in_progress", "completed", "waiting", "pending"] - url: str - - -class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): - """Deployment - - The [deployment](https://docs.github.com/rest/deployments/deployments#list- - deployments). - """ - - created_at: str - creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, None] - description: Union[str, None] - environment: str - id: int - node_id: str - original_environment: str - payload: Union[ - str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, None - ] - performed_via_github_app: NotRequired[ - Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, - None, - ] - ] - production_environment: NotRequired[bool] - ref: str - repository_url: str - sha: str - statuses_url: str - task: str - transient_environment: NotRequired[bool] - updated_at: str - url: str - - -class WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type(TypedDict): - """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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "merge_queue_entry", - "workflow_job", - "pull_request_review_thread", - "secret_scanning_alert_location", - "merge_group", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "merge_queue_entry", - "workflow_job", - "merge_group", - "secret_scanning_alert_location", - ] - ] - ] - 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] - - -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] - - -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] - - -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__ = ( - "WebhookDeploymentStatusCreatedType", - "WebhookDeploymentStatusCreatedPropCheckRunType", - "WebhookDeploymentStatusCreatedPropDeploymentType", - "WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType", - "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", -) +__all__ = ("WebhookDeployKeyDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0462.py b/githubkit/versions/v2022_11_28/types/group_0462.py index e0a0fce8a..e9351bb5d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0462.py +++ b/githubkit/versions/v2022_11_28/types/group_0462.py @@ -9,29 +9,600 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0381 import DiscussionType -from .group_0380 import WebhooksAnswerType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0381 import WebhooksWorkflowType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDiscussionAnsweredType(TypedDict): - """discussion answered event""" +class WebhookDeploymentCreatedType(TypedDict): + """deployment created event""" - action: Literal["answered"] - answer: WebhooksAnswerType - discussion: DiscussionType + action: Literal["created"] + deployment: WebhookDeploymentCreatedPropDeploymentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: Union[WebhookDeploymentCreatedPropWorkflowRunType, None] -__all__ = ("WebhookDiscussionAnsweredType",) +class WebhookDeploymentCreatedPropDeploymentType(TypedDict): + """Deployment + + The [deployment](https://docs.github.com/rest/deployments/deployments#list- + deployments). + """ + + created_at: str + creator: Union[WebhookDeploymentCreatedPropDeploymentPropCreatorType, None] + description: Union[str, None] + environment: str + id: int + node_id: str + original_environment: str + payload: Union[WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type, str] + 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] + + +class WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type(TypedDict): + """WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0""" + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "workflow_job", + "pull_request_review_thread", + "merge_queue_entry", + "secret_scanning_alert_location", + "merge_group", + ] + ] + ] + 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] + + +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] + + +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] + + +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__ = ( + "WebhookDeploymentCreatedType", + "WebhookDeploymentCreatedPropDeploymentType", + "WebhookDeploymentCreatedPropDeploymentPropCreatorType", + "WebhookDeploymentCreatedPropDeploymentPropPayloadOneof0Type", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppType", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentCreatedPropWorkflowRunType", + "WebhookDeploymentCreatedPropWorkflowRunPropActorType", + "WebhookDeploymentCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentCreatedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentCreatedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0463.py b/githubkit/versions/v2022_11_28/types/group_0463.py index d53fbab90..5ff135ef6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0463.py +++ b/githubkit/versions/v2022_11_28/types/group_0463.py @@ -9,61 +9,30 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0381 import DiscussionType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0176 import DeploymentType +from .group_0303 import PullRequestType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDiscussionCategoryChangedType(TypedDict): - """discussion category changed event""" +class WebhookDeploymentProtectionRuleRequestedType(TypedDict): + """deployment protection rule requested event""" - action: Literal["category_changed"] - changes: WebhookDiscussionCategoryChangedPropChangesType - discussion: DiscussionType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + action: Literal["requested"] + environment: NotRequired[str] + event: NotRequired[str] + deployment_callback_url: NotRequired[str] + deployment: NotRequired[DeploymentType] + pull_requests: NotRequired[List[PullRequestType]] + repository: NotRequired[RepositoryWebhooksType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookDiscussionCategoryChangedPropChangesType(TypedDict): - """WebhookDiscussionCategoryChangedPropChanges""" - - category: WebhookDiscussionCategoryChangedPropChangesPropCategoryType - - -class WebhookDiscussionCategoryChangedPropChangesPropCategoryType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategory""" - - from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType - - -class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType(TypedDict): - """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" - - created_at: datetime - description: str - emoji: str - id: int - is_answerable: bool - name: str - node_id: NotRequired[str] - repository_id: int - slug: str - updated_at: str + installation: NotRequired[SimpleInstallationType] + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ( - "WebhookDiscussionCategoryChangedType", - "WebhookDiscussionCategoryChangedPropChangesType", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", - "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", -) +__all__ = ("WebhookDeploymentProtectionRuleRequestedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0464.py b/githubkit/versions/v2022_11_28/types/group_0464.py index c534f661e..797b415c1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0464.py +++ b/githubkit/versions/v2022_11_28/types/group_0464.py @@ -9,27 +9,415 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0381 import DiscussionType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0383 import WebhooksWorkflowJobRunType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0382 import WebhooksApproverType, WebhooksReviewersItemsType -class WebhookDiscussionClosedType(TypedDict): - """discussion closed event""" +class WebhookDeploymentReviewApprovedType(TypedDict): + """WebhookDeploymentReviewApproved""" - action: Literal["closed"] - discussion: DiscussionType + action: Literal["approved"] + approver: NotRequired[WebhooksApproverType] + comment: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + reviewers: NotRequired[List[WebhooksReviewersItemsType]] sender: SimpleUserWebhooksType + since: str + workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] + workflow_job_runs: NotRequired[ + List[WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType] + ] + workflow_run: Union[WebhookDeploymentReviewApprovedPropWorkflowRunType, None] -__all__ = ("WebhookDiscussionClosedType",) +class WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowJobRunsItems""" + + conclusion: NotRequired[None] + created_at: NotRequired[str] + environment: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] + created_at: datetime + display_title: str + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: List[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "waiting", "pending" + ] + triggering_actor: Union[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommit""" + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType(TypedDict): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepository""" + + archive_url: NotRequired[str] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[bool] + forks_url: NotRequired[str] + full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + hooks_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + languages_url: NotRequired[str] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + notifications_url: NotRequired[str] + owner: NotRequired[ + WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType + ] + private: NotRequired[bool] + pulls_url: NotRequired[str] + releases_url: NotRequired[str] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + trees_url: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookDeploymentReviewApprovedType", + "WebhookDeploymentReviewApprovedPropWorkflowJobRunsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewApprovedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0465.py b/githubkit/versions/v2022_11_28/types/group_0465.py index e204c951a..26abeea47 100644 --- a/githubkit/versions/v2022_11_28/types/group_0465.py +++ b/githubkit/versions/v2022_11_28/types/group_0465.py @@ -9,29 +9,413 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0381 import DiscussionType -from .group_0382 import WebhooksCommentType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0383 import WebhooksWorkflowJobRunType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0382 import WebhooksApproverType, WebhooksReviewersItemsType -class WebhookDiscussionCommentCreatedType(TypedDict): - """discussion_comment created event""" +class WebhookDeploymentReviewRejectedType(TypedDict): + """WebhookDeploymentReviewRejected""" - action: Literal["created"] - comment: WebhooksCommentType - discussion: DiscussionType + action: Literal["rejected"] + approver: NotRequired[WebhooksApproverType] + comment: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + reviewers: NotRequired[List[WebhooksReviewersItemsType]] sender: SimpleUserWebhooksType + since: str + workflow_job_run: NotRequired[WebhooksWorkflowJobRunType] + workflow_job_runs: NotRequired[ + List[WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType] + ] + workflow_run: Union[WebhookDeploymentReviewRejectedPropWorkflowRunType, None] -__all__ = ("WebhookDiscussionCommentCreatedType",) +class WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType(TypedDict): + """WebhookDeploymentReviewRejectedPropWorkflowJobRunsItems""" + + conclusion: NotRequired[Union[str, None]] + created_at: NotRequired[str] + environment: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + name: NotRequired[Union[str, None]] + status: NotRequired[str] + updated_at: NotRequired[str] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunType(TypedDict): + """Deployment Workflow Run""" + + actor: Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType, None] + artifacts_url: NotRequired[str] + cancel_url: NotRequired[str] + check_suite_id: int + check_suite_node_id: str + check_suite_url: NotRequired[str] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + ], + ] + created_at: datetime + event: str + head_branch: str + head_commit: NotRequired[ + Union[WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType, None] + ] + head_repository: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType + ] + head_sha: str + html_url: str + id: int + jobs_url: NotRequired[str] + logs_url: NotRequired[str] + name: str + node_id: str + path: str + previous_attempt_url: NotRequired[Union[str, None]] + pull_requests: List[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: NotRequired[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType + ] + rerun_url: NotRequired[str] + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal["requested", "in_progress", "completed", "queued", "waiting"] + triggering_actor: Union[ + WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: NotRequired[str] + display_title: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +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] + + +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] + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType( + TypedDict +): + """Check Run Pull Request""" + + base: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType + ) + head: ( + WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType + ) + id: int + number: int + url: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookDeploymentReviewRejectedType", + "WebhookDeploymentReviewRejectedPropWorkflowJobRunsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewRejectedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0466.py b/githubkit/versions/v2022_11_28/types/group_0466.py index fb24e62c9..111357389 100644 --- a/githubkit/versions/v2022_11_28/types/group_0466.py +++ b/githubkit/versions/v2022_11_28/types/group_0466.py @@ -9,29 +9,448 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0381 import DiscussionType -from .group_0382 import WebhooksCommentType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0384 import WebhooksUserType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDiscussionCommentDeletedType(TypedDict): - """discussion_comment deleted event""" +class WebhookDeploymentReviewRequestedType(TypedDict): + """WebhookDeploymentReviewRequested""" - action: Literal["deleted"] - comment: WebhooksCommentType - discussion: DiscussionType + action: Literal["requested"] enterprise: NotRequired[EnterpriseWebhooksType] + environment: str installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] + organization: OrganizationSimpleWebhooksType repository: RepositoryWebhooksType + requestor: Union[WebhooksUserType, None] + reviewers: List[WebhookDeploymentReviewRequestedPropReviewersItemsType] sender: SimpleUserWebhooksType + since: str + workflow_job_run: WebhookDeploymentReviewRequestedPropWorkflowJobRunType + workflow_run: Union[WebhookDeploymentReviewRequestedPropWorkflowRunType, None] -__all__ = ("WebhookDiscussionCommentDeletedType",) +class WebhookDeploymentReviewRequestedPropWorkflowJobRunType(TypedDict): + """WebhookDeploymentReviewRequestedPropWorkflowJobRun""" + + conclusion: None + created_at: str + environment: str + html_url: str + id: int + name: Union[str, None] + status: str + updated_at: str + + +class WebhookDeploymentReviewRequestedPropReviewersItemsType(TypedDict): + """WebhookDeploymentReviewRequestedPropReviewersItems""" + + reviewer: NotRequired[ + Union[WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType, None] + ] + type: NotRequired[Literal["User", "Team"]] + + +class WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: NotRequired[str] + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +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] + + +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] + + +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] + + +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__ = ( + "WebhookDeploymentReviewRequestedType", + "WebhookDeploymentReviewRequestedPropWorkflowJobRunType", + "WebhookDeploymentReviewRequestedPropReviewersItemsType", + "WebhookDeploymentReviewRequestedPropReviewersItemsPropReviewerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropActorType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadCommitType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentReviewRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0467.py b/githubkit/versions/v2022_11_28/types/group_0467.py index 4316fe282..47199a090 100644 --- a/githubkit/versions/v2022_11_28/types/group_0467.py +++ b/githubkit/versions/v2022_11_28/types/group_0467.py @@ -9,46 +9,866 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0381 import DiscussionType -from .group_0382 import WebhooksCommentType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0381 import WebhooksWorkflowType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDiscussionCommentEditedType(TypedDict): - """discussion_comment edited event""" +class WebhookDeploymentStatusCreatedType(TypedDict): + """deployment_status created event""" - action: Literal["edited"] - changes: WebhookDiscussionCommentEditedPropChangesType - comment: WebhooksCommentType - discussion: DiscussionType + action: Literal["created"] + check_run: NotRequired[Union[WebhookDeploymentStatusCreatedPropCheckRunType, None]] + deployment: WebhookDeploymentStatusCreatedPropDeploymentType + deployment_status: WebhookDeploymentStatusCreatedPropDeploymentStatusType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType + workflow: NotRequired[Union[WebhooksWorkflowType, None]] + workflow_run: NotRequired[ + Union[WebhookDeploymentStatusCreatedPropWorkflowRunType, None] + ] -class WebhookDiscussionCommentEditedPropChangesType(TypedDict): - """WebhookDiscussionCommentEditedPropChanges""" +class WebhookDeploymentStatusCreatedPropCheckRunType(TypedDict): + """WebhookDeploymentStatusCreatedPropCheckRun""" - body: WebhookDiscussionCommentEditedPropChangesPropBodyType + completed_at: Union[datetime, None] + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + ], + ] + details_url: str + external_id: str + head_sha: str + html_url: str + id: int + name: str + node_id: str + started_at: datetime + status: Literal["queued", "in_progress", "completed", "waiting", "pending"] + url: str -class WebhookDiscussionCommentEditedPropChangesPropBodyType(TypedDict): - """WebhookDiscussionCommentEditedPropChangesPropBody""" +class WebhookDeploymentStatusCreatedPropDeploymentType(TypedDict): + """Deployment - from_: str + The [deployment](https://docs.github.com/rest/deployments/deployments#list- + deployments). + """ + + created_at: str + creator: Union[WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType, None] + description: Union[str, None] + environment: str + id: int + node_id: str + original_environment: str + payload: Union[ + str, WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type, None + ] + performed_via_github_app: NotRequired[ + Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType, + None, + ] + ] + production_environment: NotRequired[bool] + ref: str + repository_url: str + sha: str + statuses_url: str + task: str + transient_environment: NotRequired[bool] + updated_at: str + url: str + + +class WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type(TypedDict): + """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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "merge_queue_entry", + "workflow_job", + "pull_request_review_thread", + "secret_scanning_alert_location", + "merge_group", + ] + ] + ] + external_url: Union[str, None] + html_url: str + id: Union[int, None] + name: str + node_id: str + owner: Union[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] + + +class WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "merge_queue_entry", + "workflow_job", + "merge_group", + "secret_scanning_alert_location", + ] + ] + ] + 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] + + +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] + + +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] + + +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__ = ( - "WebhookDiscussionCommentEditedType", - "WebhookDiscussionCommentEditedPropChangesType", - "WebhookDiscussionCommentEditedPropChangesPropBodyType", + "WebhookDeploymentStatusCreatedType", + "WebhookDeploymentStatusCreatedPropCheckRunType", + "WebhookDeploymentStatusCreatedPropDeploymentType", + "WebhookDeploymentStatusCreatedPropDeploymentPropCreatorType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPayloadOneof1Type", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentStatusCreatedPropDeploymentPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropCreatorType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropOwnerType", + "WebhookDeploymentStatusCreatedPropDeploymentStatusPropPerformedViaGithubAppPropPermissionsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropActorType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropTriggeringActorType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookDeploymentStatusCreatedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0468.py b/githubkit/versions/v2022_11_28/types/group_0468.py index c145d17af..24395b1b6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0468.py +++ b/githubkit/versions/v2022_11_28/types/group_0468.py @@ -12,18 +12,20 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0381 import DiscussionType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0386 import DiscussionType +from .group_0385 import WebhooksAnswerType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDiscussionCreatedType(TypedDict): - """discussion created event""" +class WebhookDiscussionAnsweredType(TypedDict): + """discussion answered event""" - action: Literal["created"] + action: Literal["answered"] + answer: WebhooksAnswerType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +34,4 @@ class WebhookDiscussionCreatedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionCreatedType",) +__all__ = ("WebhookDiscussionAnsweredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0469.py b/githubkit/versions/v2022_11_28/types/group_0469.py index 18981b1bb..8ae430d94 100644 --- a/githubkit/versions/v2022_11_28/types/group_0469.py +++ b/githubkit/versions/v2022_11_28/types/group_0469.py @@ -10,20 +10,22 @@ from __future__ import annotations from typing import Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -from .group_0381 import DiscussionType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0386 import DiscussionType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDiscussionDeletedType(TypedDict): - """discussion deleted event""" +class WebhookDiscussionCategoryChangedType(TypedDict): + """discussion category changed event""" - action: Literal["deleted"] + action: Literal["category_changed"] + changes: WebhookDiscussionCategoryChangedPropChangesType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +34,36 @@ class WebhookDiscussionDeletedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionDeletedType",) +class WebhookDiscussionCategoryChangedPropChangesType(TypedDict): + """WebhookDiscussionCategoryChangedPropChanges""" + + category: WebhookDiscussionCategoryChangedPropChangesPropCategoryType + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryType(TypedDict): + """WebhookDiscussionCategoryChangedPropChangesPropCategory""" + + from_: WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType + + +class WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType(TypedDict): + """WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFrom""" + + created_at: datetime + description: str + emoji: str + id: int + is_answerable: bool + name: str + node_id: NotRequired[str] + repository_id: int + slug: str + updated_at: str + + +__all__ = ( + "WebhookDiscussionCategoryChangedType", + "WebhookDiscussionCategoryChangedPropChangesType", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryType", + "WebhookDiscussionCategoryChangedPropChangesPropCategoryPropFromType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0470.py b/githubkit/versions/v2022_11_28/types/group_0470.py index 789a3bec7..2f19b805f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0470.py +++ b/githubkit/versions/v2022_11_28/types/group_0470.py @@ -12,19 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0381 import DiscussionType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0386 import DiscussionType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDiscussionEditedType(TypedDict): - """discussion edited event""" +class WebhookDiscussionClosedType(TypedDict): + """discussion closed event""" - action: Literal["edited"] - changes: NotRequired[WebhookDiscussionEditedPropChangesType] + action: Literal["closed"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -33,28 +32,4 @@ class WebhookDiscussionEditedType(TypedDict): sender: SimpleUserWebhooksType -class WebhookDiscussionEditedPropChangesType(TypedDict): - """WebhookDiscussionEditedPropChanges""" - - body: NotRequired[WebhookDiscussionEditedPropChangesPropBodyType] - title: NotRequired[WebhookDiscussionEditedPropChangesPropTitleType] - - -class WebhookDiscussionEditedPropChangesPropBodyType(TypedDict): - """WebhookDiscussionEditedPropChangesPropBody""" - - from_: str - - -class WebhookDiscussionEditedPropChangesPropTitleType(TypedDict): - """WebhookDiscussionEditedPropChangesPropTitle""" - - from_: str - - -__all__ = ( - "WebhookDiscussionEditedType", - "WebhookDiscussionEditedPropChangesType", - "WebhookDiscussionEditedPropChangesPropBodyType", - "WebhookDiscussionEditedPropChangesPropTitleType", -) +__all__ = ("WebhookDiscussionClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0471.py b/githubkit/versions/v2022_11_28/types/group_0471.py index b99293d09..61d2ef750 100644 --- a/githubkit/versions/v2022_11_28/types/group_0471.py +++ b/githubkit/versions/v2022_11_28/types/group_0471.py @@ -12,26 +12,26 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0381 import DiscussionType -from .group_0383 import WebhooksLabelType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0386 import DiscussionType +from .group_0387 import WebhooksCommentType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDiscussionLabeledType(TypedDict): - """discussion labeled event""" +class WebhookDiscussionCommentCreatedType(TypedDict): + """discussion_comment created event""" - action: Literal["labeled"] + action: Literal["created"] + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionLabeledType",) +__all__ = ("WebhookDiscussionCommentCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0472.py b/githubkit/versions/v2022_11_28/types/group_0472.py index f05b17f3a..063c22045 100644 --- a/githubkit/versions/v2022_11_28/types/group_0472.py +++ b/githubkit/versions/v2022_11_28/types/group_0472.py @@ -12,18 +12,20 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0381 import DiscussionType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0386 import DiscussionType +from .group_0387 import WebhooksCommentType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDiscussionLockedType(TypedDict): - """discussion locked event""" +class WebhookDiscussionCommentDeletedType(TypedDict): + """discussion_comment deleted event""" - action: Literal["locked"] + action: Literal["deleted"] + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +34,4 @@ class WebhookDiscussionLockedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionLockedType",) +__all__ = ("WebhookDiscussionCommentDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0473.py b/githubkit/versions/v2022_11_28/types/group_0473.py index feefdf56a..9424c2594 100644 --- a/githubkit/versions/v2022_11_28/types/group_0473.py +++ b/githubkit/versions/v2022_11_28/types/group_0473.py @@ -12,18 +12,21 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0381 import DiscussionType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0386 import DiscussionType +from .group_0387 import WebhooksCommentType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDiscussionPinnedType(TypedDict): - """discussion pinned event""" +class WebhookDiscussionCommentEditedType(TypedDict): + """discussion_comment edited event""" - action: Literal["pinned"] + action: Literal["edited"] + changes: WebhookDiscussionCommentEditedPropChangesType + comment: WebhooksCommentType discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +35,20 @@ class WebhookDiscussionPinnedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionPinnedType",) +class WebhookDiscussionCommentEditedPropChangesType(TypedDict): + """WebhookDiscussionCommentEditedPropChanges""" + + body: WebhookDiscussionCommentEditedPropChangesPropBodyType + + +class WebhookDiscussionCommentEditedPropChangesPropBodyType(TypedDict): + """WebhookDiscussionCommentEditedPropChangesPropBody""" + + from_: str + + +__all__ = ( + "WebhookDiscussionCommentEditedType", + "WebhookDiscussionCommentEditedPropChangesType", + "WebhookDiscussionCommentEditedPropChangesPropBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0474.py b/githubkit/versions/v2022_11_28/types/group_0474.py index 0e0cb2942..5d4292ce8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0474.py +++ b/githubkit/versions/v2022_11_28/types/group_0474.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0381 import DiscussionType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0386 import DiscussionType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDiscussionReopenedType(TypedDict): - """discussion reopened event""" +class WebhookDiscussionCreatedType(TypedDict): + """discussion created event""" - action: Literal["reopened"] + action: Literal["created"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionReopenedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionReopenedType",) +__all__ = ("WebhookDiscussionCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0475.py b/githubkit/versions/v2022_11_28/types/group_0475.py index 3b62b0a3e..44ffac142 100644 --- a/githubkit/versions/v2022_11_28/types/group_0475.py +++ b/githubkit/versions/v2022_11_28/types/group_0475.py @@ -12,20 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0381 import DiscussionType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0476 import WebhookDiscussionTransferredPropChangesType +from .group_0386 import DiscussionType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDiscussionTransferredType(TypedDict): - """discussion transferred event""" +class WebhookDiscussionDeletedType(TypedDict): + """discussion deleted event""" - action: Literal["transferred"] - changes: WebhookDiscussionTransferredPropChangesType + action: Literal["deleted"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -34,4 +32,4 @@ class WebhookDiscussionTransferredType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionTransferredType",) +__all__ = ("WebhookDiscussionDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0476.py b/githubkit/versions/v2022_11_28/types/group_0476.py index fd0566cac..fb03f4234 100644 --- a/githubkit/versions/v2022_11_28/types/group_0476.py +++ b/githubkit/versions/v2022_11_28/types/group_0476.py @@ -9,17 +9,52 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -from .group_0381 import DiscussionType -from .group_0370 import RepositoryWebhooksType +from .group_0386 import DiscussionType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDiscussionTransferredPropChangesType(TypedDict): - """WebhookDiscussionTransferredPropChanges""" +class WebhookDiscussionEditedType(TypedDict): + """discussion edited event""" - new_discussion: DiscussionType - new_repository: RepositoryWebhooksType + action: Literal["edited"] + changes: NotRequired[WebhookDiscussionEditedPropChangesType] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionTransferredPropChangesType",) +class WebhookDiscussionEditedPropChangesType(TypedDict): + """WebhookDiscussionEditedPropChanges""" + + body: NotRequired[WebhookDiscussionEditedPropChangesPropBodyType] + title: NotRequired[WebhookDiscussionEditedPropChangesPropTitleType] + + +class WebhookDiscussionEditedPropChangesPropBodyType(TypedDict): + """WebhookDiscussionEditedPropChangesPropBody""" + + from_: str + + +class WebhookDiscussionEditedPropChangesPropTitleType(TypedDict): + """WebhookDiscussionEditedPropChangesPropTitle""" + + from_: str + + +__all__ = ( + "WebhookDiscussionEditedType", + "WebhookDiscussionEditedPropChangesType", + "WebhookDiscussionEditedPropChangesPropBodyType", + "WebhookDiscussionEditedPropChangesPropTitleType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0477.py b/githubkit/versions/v2022_11_28/types/group_0477.py index d69c64baf..de5fe8163 100644 --- a/githubkit/versions/v2022_11_28/types/group_0477.py +++ b/githubkit/versions/v2022_11_28/types/group_0477.py @@ -12,22 +12,26 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0381 import DiscussionType -from .group_0380 import WebhooksAnswerType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0386 import DiscussionType +from .group_0388 import WebhooksLabelType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDiscussionUnansweredType(TypedDict): - """discussion unanswered event""" +class WebhookDiscussionLabeledType(TypedDict): + """discussion labeled event""" - action: Literal["unanswered"] + action: Literal["labeled"] discussion: DiscussionType - old_answer: WebhooksAnswerType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionUnansweredType",) +__all__ = ("WebhookDiscussionLabeledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0478.py b/githubkit/versions/v2022_11_28/types/group_0478.py index 3e3860547..b9f21276a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0478.py +++ b/githubkit/versions/v2022_11_28/types/group_0478.py @@ -12,26 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0381 import DiscussionType -from .group_0383 import WebhooksLabelType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0386 import DiscussionType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDiscussionUnlabeledType(TypedDict): - """discussion unlabeled event""" +class WebhookDiscussionLockedType(TypedDict): + """discussion locked event""" - action: Literal["unlabeled"] + action: Literal["locked"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionUnlabeledType",) +__all__ = ("WebhookDiscussionLockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0479.py b/githubkit/versions/v2022_11_28/types/group_0479.py index 1ea438e81..fa757e34c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0479.py +++ b/githubkit/versions/v2022_11_28/types/group_0479.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0381 import DiscussionType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0386 import DiscussionType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDiscussionUnlockedType(TypedDict): - """discussion unlocked event""" +class WebhookDiscussionPinnedType(TypedDict): + """discussion pinned event""" - action: Literal["unlocked"] + action: Literal["pinned"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionUnlockedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionUnlockedType",) +__all__ = ("WebhookDiscussionPinnedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0480.py b/githubkit/versions/v2022_11_28/types/group_0480.py index 6795c8dab..c147abaf0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0480.py +++ b/githubkit/versions/v2022_11_28/types/group_0480.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0381 import DiscussionType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0386 import DiscussionType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookDiscussionUnpinnedType(TypedDict): - """discussion unpinned event""" +class WebhookDiscussionReopenedType(TypedDict): + """discussion reopened event""" - action: Literal["unpinned"] + action: Literal["reopened"] discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] @@ -32,4 +32,4 @@ class WebhookDiscussionUnpinnedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookDiscussionUnpinnedType",) +__all__ = ("WebhookDiscussionReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0481.py b/githubkit/versions/v2022_11_28/types/group_0481.py index eeeeaeb98..1de8cbda3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0481.py +++ b/githubkit/versions/v2022_11_28/types/group_0481.py @@ -9,28 +9,29 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0482 import WebhookForkPropForkeeType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0386 import DiscussionType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0482 import WebhookDiscussionTransferredPropChangesType -class WebhookForkType(TypedDict): - """fork event - - A user forks a repository. - """ +class WebhookDiscussionTransferredType(TypedDict): + """discussion transferred event""" + action: Literal["transferred"] + changes: WebhookDiscussionTransferredPropChangesType + discussion: DiscussionType enterprise: NotRequired[EnterpriseWebhooksType] - forkee: WebhookForkPropForkeeType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookForkType",) +__all__ = ("WebhookDiscussionTransferredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0482.py b/githubkit/versions/v2022_11_28/types/group_0482.py index adab91902..d28acbf60 100644 --- a/githubkit/versions/v2022_11_28/types/group_0482.py +++ b/githubkit/versions/v2022_11_28/types/group_0482.py @@ -9,150 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0484 import WebhookForkPropForkeeAllof0PropPermissionsType +from .group_0386 import DiscussionType +from .group_0375 import RepositoryWebhooksType -class WebhookForkPropForkeeType(TypedDict): - """WebhookForkPropForkee +class WebhookDiscussionTransferredPropChangesType(TypedDict): + """WebhookDiscussionTransferredPropChanges""" - The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- - repository) resource. - """ + new_discussion: DiscussionType + new_repository: RepositoryWebhooksType - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: datetime - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[Union[str, None], None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: Literal[True] - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[Union[str, None], None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[None, None] - languages_url: str - license_: Union[WebhookForkPropForkeeMergedLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[None, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: WebhookForkPropForkeeMergedOwnerType - permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: datetime - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - -class WebhookForkPropForkeeMergedLicenseType(TypedDict): - """WebhookForkPropForkeeMergedLicense""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookForkPropForkeeMergedOwnerType(TypedDict): - """WebhookForkPropForkeeMergedOwner""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookForkPropForkeeType", - "WebhookForkPropForkeeMergedLicenseType", - "WebhookForkPropForkeeMergedOwnerType", -) +__all__ = ("WebhookDiscussionTransferredPropChangesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0483.py b/githubkit/versions/v2022_11_28/types/group_0483.py index 32eab1a92..68cbe2321 100644 --- a/githubkit/versions/v2022_11_28/types/group_0483.py +++ b/githubkit/versions/v2022_11_28/types/group_0483.py @@ -9,149 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0484 import WebhookForkPropForkeeAllof0PropPermissionsType +from .group_0386 import DiscussionType +from .group_0385 import WebhooksAnswerType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookForkPropForkeeAllof0Type(TypedDict): - """Repository +class WebhookDiscussionUnansweredType(TypedDict): + """discussion unanswered event""" - A git repository - """ + action: Literal["unanswered"] + discussion: DiscussionType + old_answer: WebhooksAnswerType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookForkPropForkeeAllof0PropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookForkPropForkeeAllof0PropOwnerType, None] - permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - -class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookForkPropForkeeAllof0PropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookForkPropForkeeAllof0Type", - "WebhookForkPropForkeeAllof0PropLicenseType", - "WebhookForkPropForkeeAllof0PropOwnerType", -) +__all__ = ("WebhookDiscussionUnansweredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0484.py b/githubkit/versions/v2022_11_28/types/group_0484.py index 5c9207b34..2628c42d3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0484.py +++ b/githubkit/versions/v2022_11_28/types/group_0484.py @@ -9,17 +9,29 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0386 import DiscussionType +from .group_0388 import WebhooksLabelType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): - """WebhookForkPropForkeeAllof0PropPermissions""" - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] +class WebhookDiscussionUnlabeledType(TypedDict): + """discussion unlabeled event""" + action: Literal["unlabeled"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + label: WebhooksLabelType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookForkPropForkeeAllof0PropPermissionsType",) + +__all__ = ("WebhookDiscussionUnlabeledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0485.py b/githubkit/versions/v2022_11_28/types/group_0485.py index 087ca178e..b243d35c6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0485.py +++ b/githubkit/versions/v2022_11_28/types/group_0485.py @@ -9,122 +9,27 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0386 import DiscussionType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookForkPropForkeeAllof1Type(TypedDict): - """WebhookForkPropForkeeAllof1""" - allow_forking: NotRequired[bool] - archive_url: NotRequired[str] - archived: NotRequired[bool] - assignees_url: NotRequired[str] - blobs_url: NotRequired[str] - branches_url: NotRequired[str] - clone_url: NotRequired[str] - collaborators_url: NotRequired[str] - comments_url: NotRequired[str] - commits_url: NotRequired[str] - compare_url: NotRequired[str] - contents_url: NotRequired[str] - contributors_url: NotRequired[str] - created_at: NotRequired[str] - default_branch: NotRequired[str] - deployments_url: NotRequired[str] - description: NotRequired[Union[str, None]] - disabled: NotRequired[bool] - downloads_url: NotRequired[str] - events_url: NotRequired[str] - fork: NotRequired[Literal[True]] - forks: NotRequired[int] - forks_count: NotRequired[int] - forks_url: NotRequired[str] - full_name: NotRequired[str] - git_commits_url: NotRequired[str] - git_refs_url: NotRequired[str] - git_tags_url: NotRequired[str] - git_url: NotRequired[str] - has_downloads: NotRequired[bool] - has_issues: NotRequired[bool] - has_pages: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - homepage: NotRequired[Union[str, None]] - hooks_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - is_template: NotRequired[bool] - issue_comment_url: NotRequired[str] - issue_events_url: NotRequired[str] - issues_url: NotRequired[str] - keys_url: NotRequired[str] - labels_url: NotRequired[str] - language: NotRequired[None] - languages_url: NotRequired[str] - license_: NotRequired[Union[WebhookForkPropForkeeAllof1PropLicenseType, None]] - merges_url: NotRequired[str] - milestones_url: NotRequired[str] - mirror_url: NotRequired[None] - name: NotRequired[str] - node_id: NotRequired[str] - notifications_url: NotRequired[str] - open_issues: NotRequired[int] - open_issues_count: NotRequired[int] - owner: NotRequired[WebhookForkPropForkeeAllof1PropOwnerType] - private: NotRequired[bool] - public: NotRequired[bool] - pulls_url: NotRequired[str] - pushed_at: NotRequired[str] - releases_url: NotRequired[str] - size: NotRequired[int] - ssh_url: NotRequired[str] - stargazers_count: NotRequired[int] - stargazers_url: NotRequired[str] - statuses_url: NotRequired[str] - subscribers_url: NotRequired[str] - subscription_url: NotRequired[str] - svn_url: NotRequired[str] - tags_url: NotRequired[str] - teams_url: NotRequired[str] - topics: NotRequired[List[Union[str, None]]] - trees_url: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - visibility: NotRequired[str] - watchers: NotRequired[int] - watchers_count: NotRequired[int] +class WebhookDiscussionUnlockedType(TypedDict): + """discussion unlocked event""" + action: Literal["unlocked"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): - """WebhookForkPropForkeeAllof1PropLicense""" - -class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): - """WebhookForkPropForkeeAllof1PropOwner""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] - - -__all__ = ( - "WebhookForkPropForkeeAllof1Type", - "WebhookForkPropForkeeAllof1PropLicenseType", - "WebhookForkPropForkeeAllof1PropOwnerType", -) +__all__ = ("WebhookDiscussionUnlockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0486.py b/githubkit/versions/v2022_11_28/types/group_0486.py index e5de2e959..f12a52deb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0486.py +++ b/githubkit/versions/v2022_11_28/types/group_0486.py @@ -10,16 +10,26 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0371 import SimpleUserWebhooksType +from .group_0386 import DiscussionType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookGithubAppAuthorizationRevokedType(TypedDict): - """github_app_authorization revoked event""" +class WebhookDiscussionUnpinnedType(TypedDict): + """discussion unpinned event""" - action: Literal["revoked"] + action: Literal["unpinned"] + discussion: DiscussionType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookGithubAppAuthorizationRevokedType",) +__all__ = ("WebhookDiscussionUnpinnedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0487.py b/githubkit/versions/v2022_11_28/types/group_0487.py index 930809e05..c914454cb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0487.py +++ b/githubkit/versions/v2022_11_28/types/group_0487.py @@ -9,39 +9,28 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0488 import WebhookForkPropForkeeType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookGollumType(TypedDict): - """gollum event""" +class WebhookForkType(TypedDict): + """fork event + + A user forks a repository. + """ enterprise: NotRequired[EnterpriseWebhooksType] + forkee: WebhookForkPropForkeeType installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pages: List[WebhookGollumPropPagesItemsType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookGollumPropPagesItemsType(TypedDict): - """WebhookGollumPropPagesItems""" - - action: Literal["created", "edited"] - html_url: str - page_name: str - sha: str - summary: Union[str, None] - title: str - - -__all__ = ( - "WebhookGollumType", - "WebhookGollumPropPagesItemsType", -) +__all__ = ("WebhookForkType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0488.py b/githubkit/versions/v2022_11_28/types/group_0488.py index 9f7c8f4f0..3ee6e6471 100644 --- a/githubkit/versions/v2022_11_28/types/group_0488.py +++ b/githubkit/versions/v2022_11_28/types/group_0488.py @@ -9,29 +9,150 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0015 import InstallationType -from .group_0379 import WebhooksUserType -from .group_0367 import EnterpriseWebhooksType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0384 import WebhooksRepositoriesItemsType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0490 import WebhookForkPropForkeeAllof0PropPermissionsType -class WebhookInstallationCreatedType(TypedDict): - """installation created event""" +class WebhookForkPropForkeeType(TypedDict): + """WebhookForkPropForkee - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[List[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[Union[WebhooksUserType, None]] - sender: SimpleUserWebhooksType + The created [`repository`](https://docs.github.com/rest/repos/repos#get-a- + repository) resource. + """ + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: datetime + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[Union[str, None], None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: Literal[True] + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[Union[str, None], None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[None, None] + languages_url: str + license_: Union[WebhookForkPropForkeeMergedLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[None, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: WebhookForkPropForkeeMergedOwnerType + permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: datetime + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -__all__ = ("WebhookInstallationCreatedType",) + +class WebhookForkPropForkeeMergedLicenseType(TypedDict): + """WebhookForkPropForkeeMergedLicense""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookForkPropForkeeMergedOwnerType(TypedDict): + """WebhookForkPropForkeeMergedOwner""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookForkPropForkeeType", + "WebhookForkPropForkeeMergedLicenseType", + "WebhookForkPropForkeeMergedOwnerType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0489.py b/githubkit/versions/v2022_11_28/types/group_0489.py index f24675efc..10c9375f6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0489.py +++ b/githubkit/versions/v2022_11_28/types/group_0489.py @@ -9,28 +9,149 @@ from __future__ import annotations -from typing import List, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0015 import InstallationType -from .group_0367 import EnterpriseWebhooksType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0384 import WebhooksRepositoriesItemsType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0490 import WebhookForkPropForkeeAllof0PropPermissionsType -class WebhookInstallationDeletedType(TypedDict): - """installation deleted event""" +class WebhookForkPropForkeeAllof0Type(TypedDict): + """Repository - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[List[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] - sender: SimpleUserWebhooksType + A git repository + """ + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookForkPropForkeeAllof0PropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookForkPropForkeeAllof0PropOwnerType, None] + permissions: NotRequired[WebhookForkPropForkeeAllof0PropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -__all__ = ("WebhookInstallationDeletedType",) + +class WebhookForkPropForkeeAllof0PropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookForkPropForkeeAllof0PropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookForkPropForkeeAllof0Type", + "WebhookForkPropForkeeAllof0PropLicenseType", + "WebhookForkPropForkeeAllof0PropOwnerType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0490.py b/githubkit/versions/v2022_11_28/types/group_0490.py index e0c7a8fbf..5c9207b34 100644 --- a/githubkit/versions/v2022_11_28/types/group_0490.py +++ b/githubkit/versions/v2022_11_28/types/group_0490.py @@ -9,28 +9,17 @@ from __future__ import annotations -from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0015 import InstallationType -from .group_0367 import EnterpriseWebhooksType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0384 import WebhooksRepositoriesItemsType -from .group_0369 import OrganizationSimpleWebhooksType +class WebhookForkPropForkeeAllof0PropPermissionsType(TypedDict): + """WebhookForkPropForkeeAllof0PropPermissions""" -class WebhookInstallationNewPermissionsAcceptedType(TypedDict): - """installation new_permissions_accepted event""" + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] - action: Literal["new_permissions_accepted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[List[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] - sender: SimpleUserWebhooksType - -__all__ = ("WebhookInstallationNewPermissionsAcceptedType",) +__all__ = ("WebhookForkPropForkeeAllof0PropPermissionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0491.py b/githubkit/versions/v2022_11_28/types/group_0491.py index 9c7b7b6f3..087ca178e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0491.py +++ b/githubkit/versions/v2022_11_28/types/group_0491.py @@ -12,43 +12,119 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0015 import InstallationType -from .group_0379 import WebhooksUserType -from .group_0367 import EnterpriseWebhooksType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0385 import WebhooksRepositoriesAddedItemsType - - -class WebhookInstallationRepositoriesAddedType(TypedDict): - """installation_repositories added event""" - - action: Literal["added"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories_added: List[WebhooksRepositoriesAddedItemsType] - repositories_removed: List[ - WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType - ] - repository: NotRequired[RepositoryWebhooksType] - repository_selection: Literal["all", "selected"] - requester: Union[WebhooksUserType, None] - sender: SimpleUserWebhooksType - - -class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType(TypedDict): - """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" +class WebhookForkPropForkeeAllof1Type(TypedDict): + """WebhookForkPropForkeeAllof1""" + + allow_forking: NotRequired[bool] + archive_url: NotRequired[str] + archived: NotRequired[bool] + assignees_url: NotRequired[str] + blobs_url: NotRequired[str] + branches_url: NotRequired[str] + clone_url: NotRequired[str] + collaborators_url: NotRequired[str] + comments_url: NotRequired[str] + commits_url: NotRequired[str] + compare_url: NotRequired[str] + contents_url: NotRequired[str] + contributors_url: NotRequired[str] + created_at: NotRequired[str] + default_branch: NotRequired[str] + deployments_url: NotRequired[str] + description: NotRequired[Union[str, None]] + disabled: NotRequired[bool] + downloads_url: NotRequired[str] + events_url: NotRequired[str] + fork: NotRequired[Literal[True]] + forks: NotRequired[int] + forks_count: NotRequired[int] + forks_url: NotRequired[str] full_name: NotRequired[str] + git_commits_url: NotRequired[str] + git_refs_url: NotRequired[str] + git_tags_url: NotRequired[str] + git_url: NotRequired[str] + has_downloads: NotRequired[bool] + has_issues: NotRequired[bool] + has_pages: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + homepage: NotRequired[Union[str, None]] + hooks_url: NotRequired[str] + html_url: NotRequired[str] id: NotRequired[int] + is_template: NotRequired[bool] + issue_comment_url: NotRequired[str] + issue_events_url: NotRequired[str] + issues_url: NotRequired[str] + keys_url: NotRequired[str] + labels_url: NotRequired[str] + language: NotRequired[None] + languages_url: NotRequired[str] + license_: NotRequired[Union[WebhookForkPropForkeeAllof1PropLicenseType, None]] + merges_url: NotRequired[str] + milestones_url: NotRequired[str] + mirror_url: NotRequired[None] name: NotRequired[str] node_id: NotRequired[str] + notifications_url: NotRequired[str] + open_issues: NotRequired[int] + open_issues_count: NotRequired[int] + owner: NotRequired[WebhookForkPropForkeeAllof1PropOwnerType] private: NotRequired[bool] + public: NotRequired[bool] + pulls_url: NotRequired[str] + pushed_at: NotRequired[str] + releases_url: NotRequired[str] + size: NotRequired[int] + ssh_url: NotRequired[str] + stargazers_count: NotRequired[int] + stargazers_url: NotRequired[str] + statuses_url: NotRequired[str] + subscribers_url: NotRequired[str] + subscription_url: NotRequired[str] + svn_url: NotRequired[str] + tags_url: NotRequired[str] + teams_url: NotRequired[str] + topics: NotRequired[List[Union[str, None]]] + trees_url: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + visibility: NotRequired[str] + watchers: NotRequired[int] + watchers_count: NotRequired[int] + + +class WebhookForkPropForkeeAllof1PropLicenseType(TypedDict): + """WebhookForkPropForkeeAllof1PropLicense""" + + +class WebhookForkPropForkeeAllof1PropOwnerType(TypedDict): + """WebhookForkPropForkeeAllof1PropOwner""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] __all__ = ( - "WebhookInstallationRepositoriesAddedType", - "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", + "WebhookForkPropForkeeAllof1Type", + "WebhookForkPropForkeeAllof1PropLicenseType", + "WebhookForkPropForkeeAllof1PropOwnerType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0492.py b/githubkit/versions/v2022_11_28/types/group_0492.py index 5b56abe07..4b4382203 100644 --- a/githubkit/versions/v2022_11_28/types/group_0492.py +++ b/githubkit/versions/v2022_11_28/types/group_0492.py @@ -9,46 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0015 import InstallationType -from .group_0379 import WebhooksUserType -from .group_0367 import EnterpriseWebhooksType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0385 import WebhooksRepositoriesAddedItemsType - - -class WebhookInstallationRepositoriesRemovedType(TypedDict): - """installation_repositories removed event""" - - action: Literal["removed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repositories_added: List[WebhooksRepositoriesAddedItemsType] - repositories_removed: List[ - WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType - ] - repository: NotRequired[RepositoryWebhooksType] - repository_selection: Literal["all", "selected"] - requester: Union[WebhooksUserType, None] - sender: SimpleUserWebhooksType +from typing import Literal +from typing_extensions import TypedDict + +from .group_0376 import SimpleUserWebhooksType -class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): - """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" +class WebhookGithubAppAuthorizationRevokedType(TypedDict): + """github_app_authorization revoked event""" - full_name: str - id: int - name: str - node_id: str - private: bool + action: Literal["revoked"] + sender: SimpleUserWebhooksType -__all__ = ( - "WebhookInstallationRepositoriesRemovedType", - "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", -) +__all__ = ("WebhookGithubAppAuthorizationRevokedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0493.py b/githubkit/versions/v2022_11_28/types/group_0493.py index e99143c5e..077baf694 100644 --- a/githubkit/versions/v2022_11_28/types/group_0493.py +++ b/githubkit/versions/v2022_11_28/types/group_0493.py @@ -9,28 +9,39 @@ from __future__ import annotations -from typing import List, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0015 import InstallationType -from .group_0367 import EnterpriseWebhooksType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0384 import WebhooksRepositoriesItemsType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookInstallationSuspendType(TypedDict): - """installation suspend event""" +class WebhookGollumType(TypedDict): + """gollum event""" - action: Literal["suspend"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: InstallationType + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repositories: NotRequired[List[WebhooksRepositoriesItemsType]] - repository: NotRequired[RepositoryWebhooksType] - requester: NotRequired[None] + pages: List[WebhookGollumPropPagesItemsType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookInstallationSuspendType",) +class WebhookGollumPropPagesItemsType(TypedDict): + """WebhookGollumPropPagesItems""" + + action: Literal["created", "edited"] + html_url: str + page_name: str + sha: str + summary: Union[str, None] + title: str + + +__all__ = ( + "WebhookGollumType", + "WebhookGollumPropPagesItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0494.py b/githubkit/versions/v2022_11_28/types/group_0494.py index ec1486dd1..ac57d0314 100644 --- a/githubkit/versions/v2022_11_28/types/group_0494.py +++ b/githubkit/versions/v2022_11_28/types/group_0494.py @@ -9,94 +9,29 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0015 import InstallationType +from .group_0384 import WebhooksUserType +from .group_0372 import EnterpriseWebhooksType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0389 import WebhooksRepositoriesItemsType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookInstallationTargetRenamedType(TypedDict): - """WebhookInstallationTargetRenamed""" +class WebhookInstallationCreatedType(TypedDict): + """installation created event""" - account: WebhookInstallationTargetRenamedPropAccountType - action: Literal["renamed"] - changes: WebhookInstallationTargetRenamedPropChangesType + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType + installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[List[WebhooksRepositoriesItemsType]] repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] - target_type: str + requester: NotRequired[Union[WebhooksUserType, None]] + sender: SimpleUserWebhooksType -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] - - -class WebhookInstallationTargetRenamedPropChangesType(TypedDict): - """WebhookInstallationTargetRenamedPropChanges""" - - login: NotRequired[WebhookInstallationTargetRenamedPropChangesPropLoginType] - slug: NotRequired[WebhookInstallationTargetRenamedPropChangesPropSlugType] - - -class WebhookInstallationTargetRenamedPropChangesPropLoginType(TypedDict): - """WebhookInstallationTargetRenamedPropChangesPropLogin""" - - from_: str - - -class WebhookInstallationTargetRenamedPropChangesPropSlugType(TypedDict): - """WebhookInstallationTargetRenamedPropChangesPropSlug""" - - from_: str - - -__all__ = ( - "WebhookInstallationTargetRenamedType", - "WebhookInstallationTargetRenamedPropAccountType", - "WebhookInstallationTargetRenamedPropChangesType", - "WebhookInstallationTargetRenamedPropChangesPropLoginType", - "WebhookInstallationTargetRenamedPropChangesPropSlugType", -) +__all__ = ("WebhookInstallationCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0495.py b/githubkit/versions/v2022_11_28/types/group_0495.py index 20d460abb..0ff9fe4c2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0495.py +++ b/githubkit/versions/v2022_11_28/types/group_0495.py @@ -13,17 +13,17 @@ from typing_extensions import TypedDict, NotRequired from .group_0015 import InstallationType -from .group_0367 import EnterpriseWebhooksType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0384 import WebhooksRepositoriesItemsType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0389 import WebhooksRepositoriesItemsType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookInstallationUnsuspendType(TypedDict): - """installation unsuspend event""" +class WebhookInstallationDeletedType(TypedDict): + """installation deleted event""" - action: Literal["unsuspend"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] @@ -33,4 +33,4 @@ class WebhookInstallationUnsuspendType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookInstallationUnsuspendType",) +__all__ = ("WebhookInstallationDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0496.py b/githubkit/versions/v2022_11_28/types/group_0496.py index 2c90cbaaa..ca6f8f830 100644 --- a/githubkit/versions/v2022_11_28/types/group_0496.py +++ b/githubkit/versions/v2022_11_28/types/group_0496.py @@ -9,29 +9,28 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0498 import WebhookIssueCommentCreatedPropIssueType -from .group_0497 import WebhookIssueCommentCreatedPropCommentType +from .group_0015 import InstallationType +from .group_0372 import EnterpriseWebhooksType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0389 import WebhooksRepositoriesItemsType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookIssueCommentCreatedType(TypedDict): - """issue_comment created event""" +class WebhookInstallationNewPermissionsAcceptedType(TypedDict): + """installation new_permissions_accepted event""" - action: Literal["created"] - comment: WebhookIssueCommentCreatedPropCommentType + action: Literal["new_permissions_accepted"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentCreatedPropIssueType + installation: InstallationType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repositories: NotRequired[List[WebhooksRepositoriesItemsType]] + repository: NotRequired[RepositoryWebhooksType] + requester: NotRequired[None] sender: SimpleUserWebhooksType -__all__ = ("WebhookIssueCommentCreatedType",) +__all__ = ("WebhookInstallationNewPermissionsAcceptedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0497.py b/githubkit/versions/v2022_11_28/types/group_0497.py index 8cb7bc7c9..6a2893b97 100644 --- a/githubkit/versions/v2022_11_28/types/group_0497.py +++ b/githubkit/versions/v2022_11_28/types/group_0497.py @@ -9,86 +9,46 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0006 import IntegrationType - - -class WebhookIssueCommentCreatedPropCommentType(TypedDict): - """issue comment - - The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) - itself. - """ - - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", +from .group_0015 import InstallationType +from .group_0384 import WebhooksUserType +from .group_0372 import EnterpriseWebhooksType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0390 import WebhooksRepositoriesAddedItemsType + + +class WebhookInstallationRepositoriesAddedType(TypedDict): + """installation_repositories added event""" + + action: Literal["added"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories_added: List[WebhooksRepositoriesAddedItemsType] + repositories_removed: List[ + WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType ] - body: str - created_at: datetime - html_url: str - id: int - issue_url: str - node_id: str - performed_via_github_app: Union[None, IntegrationType, None] - reactions: WebhookIssueCommentCreatedPropCommentPropReactionsType - updated_at: datetime - url: str - user: Union[WebhookIssueCommentCreatedPropCommentPropUserType, None] - - -class WebhookIssueCommentCreatedPropCommentPropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str + repository: NotRequired[RepositoryWebhooksType] + repository_selection: Literal["all", "selected"] + requester: Union[WebhooksUserType, None] + sender: SimpleUserWebhooksType -class WebhookIssueCommentCreatedPropCommentPropUserType(TypedDict): - """User""" +class WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItems""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str + full_name: NotRequired[str] + id: NotRequired[int] name: NotRequired[str] node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + private: NotRequired[bool] __all__ = ( - "WebhookIssueCommentCreatedPropCommentType", - "WebhookIssueCommentCreatedPropCommentPropReactionsType", - "WebhookIssueCommentCreatedPropCommentPropUserType", + "WebhookInstallationRepositoriesAddedType", + "WebhookInstallationRepositoriesAddedPropRepositoriesRemovedItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0498.py b/githubkit/versions/v2022_11_28/types/group_0498.py index 825c54d1e..93fda063b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0498.py +++ b/githubkit/versions/v2022_11_28/types/group_0498.py @@ -9,147 +9,46 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0506 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType -from .group_0507 import ( - WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, -) -from .group_0500 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, -) - - -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 +from .group_0015 import InstallationType +from .group_0384 import WebhooksUserType +from .group_0372 import EnterpriseWebhooksType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0390 import WebhooksRepositoriesAddedItemsType + + +class WebhookInstallationRepositoriesRemovedType(TypedDict): + """installation_repositories removed event""" + + action: Literal["removed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories_added: List[WebhooksRepositoriesAddedItemsType] + repositories_removed: List[ + WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType ] - reactions: WebhookIssueCommentCreatedPropIssueMergedReactionsType - repository_url: str - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssueCommentCreatedPropIssueMergedUserType - - -class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedAssignees""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedReactions""" + repository: NotRequired[RepositoryWebhooksType] + repository_selection: Literal["all", "selected"] + requester: Union[WebhooksUserType, None] + sender: SimpleUserWebhooksType - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType(TypedDict): + """WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItems""" -class 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] + full_name: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + name: str + node_id: str + private: bool __all__ = ( - "WebhookIssueCommentCreatedPropIssueType", - "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", - "WebhookIssueCommentCreatedPropIssueMergedReactionsType", - "WebhookIssueCommentCreatedPropIssueMergedUserType", + "WebhookInstallationRepositoriesRemovedType", + "WebhookInstallationRepositoriesRemovedPropRepositoriesRemovedItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0499.py b/githubkit/versions/v2022_11_28/types/group_0499.py index 9ff9fbe3e..25ec63cc2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0499.py +++ b/githubkit/versions/v2022_11_28/types/group_0499.py @@ -9,152 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0502 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType -from .group_0504 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0500 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, -) +from .group_0015 import InstallationType +from .group_0372 import EnterpriseWebhooksType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0389 import WebhooksRepositoriesItemsType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookInstallationSuspendType(TypedDict): + """installation suspend event""" - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ + action: Literal["suspend"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[List[WebhooksRepositoriesItemsType]] + repository: NotRequired[RepositoryWebhooksType] + requester: NotRequired[None] + sender: SimpleUserWebhooksType - 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 - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUserType, None] - -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0Type", - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", -) +__all__ = ("WebhookInstallationSuspendType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0500.py b/githubkit/versions/v2022_11_28/types/group_0500.py index 44922d8a2..26ef822ad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0500.py +++ b/githubkit/versions/v2022_11_28/types/group_0500.py @@ -9,61 +9,94 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] +class WebhookInstallationTargetRenamedType(TypedDict): + """WebhookInstallationTargetRenamed""" + + account: WebhookInstallationTargetRenamedPropAccountType + action: Literal["renamed"] + changes: WebhookInstallationTargetRenamedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: SimpleInstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] + target_type: str + + +class WebhookInstallationTargetRenamedPropAccountType(TypedDict): + """WebhookInstallationTargetRenamedPropAccount""" + + archived_at: NotRequired[Union[str, None]] + avatar_url: str + created_at: NotRequired[str] + description: NotRequired[None] events_url: NotRequired[str] + followers: NotRequired[int] followers_url: NotRequired[str] + following: NotRequired[int] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] - html_url: NotRequired[str] + has_organization_projects: NotRequired[bool] + has_repository_projects: NotRequired[bool] + hooks_url: NotRequired[str] + html_url: str id: int - login: str + is_verified: NotRequired[bool] + issues_url: NotRequired[str] + login: NotRequired[str] + members_url: NotRequired[str] name: NotRequired[str] - node_id: NotRequired[str] + node_id: str organizations_url: NotRequired[str] + public_gists: NotRequired[int] + public_members_url: NotRequired[str] + public_repos: NotRequired[int] received_events_url: NotRequired[str] repos_url: NotRequired[str] site_admin: NotRequired[bool] + slug: NotRequired[str] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[str] + updated_at: NotRequired[str] url: NotRequired[str] + website_url: NotRequired[None] -class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType(TypedDict): - """Label""" +class WebhookInstallationTargetRenamedPropChangesType(TypedDict): + """WebhookInstallationTargetRenamedPropChanges""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str + login: NotRequired[WebhookInstallationTargetRenamedPropChangesPropLoginType] + slug: NotRequired[WebhookInstallationTargetRenamedPropChangesPropSlugType] -class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" +class WebhookInstallationTargetRenamedPropChangesPropLoginType(TypedDict): + """WebhookInstallationTargetRenamedPropChangesPropLogin""" - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] + from_: str + + +class WebhookInstallationTargetRenamedPropChangesPropSlugType(TypedDict): + """WebhookInstallationTargetRenamedPropChangesPropSlug""" + + from_: str __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", + "WebhookInstallationTargetRenamedType", + "WebhookInstallationTargetRenamedPropAccountType", + "WebhookInstallationTargetRenamedPropChangesType", + "WebhookInstallationTargetRenamedPropChangesPropLoginType", + "WebhookInstallationTargetRenamedPropChangesPropSlugType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0501.py b/githubkit/versions/v2022_11_28/types/group_0501.py index 54abd4727..ef5d44540 100644 --- a/githubkit/versions/v2022_11_28/types/group_0501.py +++ b/githubkit/versions/v2022_11_28/types/group_0501.py @@ -9,34 +9,28 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired +from .group_0015 import InstallationType +from .group_0372 import EnterpriseWebhooksType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0389 import WebhooksRepositoriesItemsType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) + +class WebhookInstallationUnsuspendType(TypedDict): + """installation unsuspend event""" + + action: Literal["unsuspend"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: InstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repositories: NotRequired[List[WebhooksRepositoriesItemsType]] + repository: NotRequired[RepositoryWebhooksType] + requester: NotRequired[None] + sender: SimpleUserWebhooksType + + +__all__ = ("WebhookInstallationUnsuspendType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0502.py b/githubkit/versions/v2022_11_28/types/group_0502.py index 42c383c5f..2ca122256 100644 --- a/githubkit/versions/v2022_11_28/types/group_0502.py +++ b/githubkit/versions/v2022_11_28/types/group_0502.py @@ -9,39 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict - -from .group_0501 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, -) - - -class WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) +from typing import Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0504 import WebhookIssueCommentCreatedPropIssueType +from .group_0503 import WebhookIssueCommentCreatedPropCommentType + + +class WebhookIssueCommentCreatedType(TypedDict): + """issue_comment created event""" + + action: Literal["created"] + comment: WebhookIssueCommentCreatedPropCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentCreatedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +__all__ = ("WebhookIssueCommentCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0503.py b/githubkit/versions/v2022_11_28/types/group_0503.py index fba9682e0..8cb7bc7c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0503.py +++ b/githubkit/versions/v2022_11_28/types/group_0503.py @@ -9,13 +9,59 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0006 import IntegrationType -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): + +class WebhookIssueCommentCreatedPropCommentType(TypedDict): + """issue comment + + The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) + itself. + """ + + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + created_at: datetime + html_url: str + id: int + issue_url: str + node_id: str + performed_via_github_app: Union[None, IntegrationType, None] + reactions: WebhookIssueCommentCreatedPropCommentPropReactionsType + updated_at: datetime + url: str + user: Union[WebhookIssueCommentCreatedPropCommentPropUserType, None] + + +class WebhookIssueCommentCreatedPropCommentPropReactionsType(TypedDict): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentCreatedPropCommentPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -41,53 +87,8 @@ class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwne url: 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", + "WebhookIssueCommentCreatedPropCommentType", + "WebhookIssueCommentCreatedPropCommentPropReactionsType", + "WebhookIssueCommentCreatedPropCommentPropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0504.py b/githubkit/versions/v2022_11_28/types/group_0504.py index 3a8a848f0..29f78d025 100644 --- a/githubkit/versions/v2022_11_28/types/group_0504.py +++ b/githubkit/versions/v2022_11_28/types/group_0504.py @@ -13,90 +13,143 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0503 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0512 import WebhookIssueCommentCreatedPropIssueMergedMilestoneType +from .group_0513 import ( + WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, +) +from .group_0506 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, ) -class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentCreatedPropIssueType(TypedDict): + """WebhookIssueCommentCreatedPropIssue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: Union[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None], None ] - external_url: Union[str, None] + assignees: List[WebhookIssueCommentCreatedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str html_url: str - id: Union[int, None] - name: str + id: int + labels: List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] + labels_url: str + locked: bool + milestone: Union[WebhookIssueCommentCreatedPropIssueMergedMilestoneType, None] node_id: str - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType, None] ] - permissions: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + pull_request: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + reactions: WebhookIssueCommentCreatedPropIssueMergedReactionsType + repository_url: str + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: WebhookIssueCommentCreatedPropIssueMergedUserType + + +class WebhookIssueCommentCreatedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedAssignees""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + +class WebhookIssueCommentCreatedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedReactions""" -__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) + 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] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueType", + "WebhookIssueCommentCreatedPropIssueMergedAssigneesType", + "WebhookIssueCommentCreatedPropIssueMergedReactionsType", + "WebhookIssueCommentCreatedPropIssueMergedUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0505.py b/githubkit/versions/v2022_11_28/types/group_0505.py index 4069c4d99..8a777b4ce 100644 --- a/githubkit/versions/v2022_11_28/types/group_0505.py +++ b/githubkit/versions/v2022_11_28/types/group_0505.py @@ -9,53 +9,83 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0508 import WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType +from .group_0510 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0506 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType, +) -class WebhookIssueCommentCreatedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1""" - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - List[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, None] - ] +class WebhookIssueCommentCreatedPropIssueAllof0Type(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: List[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, None] + assignee: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType, None] ] - node_id: NotRequired[str] - number: NotRequired[int] + assignees: List[ + Union[WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int performed_via_github_app: NotRequired[ Union[ - WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, None + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType, None ] ] - reactions: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] + pull_request: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropUserType] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssueCommentCreatedPropIssueAllof0PropUserType, None] -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -81,57 +111,36 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType(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 WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentCreatedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" +class WebhookIssueCommentCreatedPropIssueAllof0PropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -139,17 +148,13 @@ class WebhookIssueCommentCreatedPropIssueAllof1PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentCreatedPropIssueAllof1Type", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", + "WebhookIssueCommentCreatedPropIssueAllof0Type", + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0506.py b/githubkit/versions/v2022_11_28/types/group_0506.py index 4fec29adb..44922d8a2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0506.py +++ b/githubkit/versions/v2022_11_28/types/group_0506.py @@ -11,34 +11,59 @@ from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0501 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] -class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedMilestone""" +class WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None - ] + color: str + default: bool description: Union[str, None] - due_on: Union[datetime, None] - html_url: str id: int - labels_url: str + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime url: str -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",) +class WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentCreatedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentCreatedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentCreatedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0507.py b/githubkit/versions/v2022_11_28/types/group_0507.py index 44637c9be..54abd4727 100644 --- a/githubkit/versions/v2022_11_28/types/group_0507.py +++ b/githubkit/versions/v2022_11_28/types/group_0507.py @@ -9,88 +9,34 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0503 import ( - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) - -class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType",) +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0508.py b/githubkit/versions/v2022_11_28/types/group_0508.py index 8a8863c42..6980066f6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0508.py +++ b/githubkit/versions/v2022_11_28/types/group_0508.py @@ -9,29 +9,39 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0386 import WebhooksIssueCommentType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0509 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: SimpleUserWebhooksType - - -__all__ = ("WebhookIssueCommentDeletedType",) +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict + +from .group_0507 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, +) + + +class WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0509.py b/githubkit/versions/v2022_11_28/types/group_0509.py index 7ba5e0983..fba9682e0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0509.py +++ b/githubkit/versions/v2022_11_28/types/group_0509.py @@ -9,79 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0517 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType -from .group_0518 import ( - WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, -) -from .group_0511 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, -) - - -class WebhookIssueCommentDeletedPropIssueType(TypedDict): - """WebhookIssueCommentDeletedPropIssue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: List[WebhookIssueCommentDeletedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType - repository_url: str - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssueCommentDeletedPropIssueMergedUserType - -class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedAssignees""" +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -102,54 +37,57 @@ class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s + The set of permissions for the GitHub app + """ -class WebhookIssueCommentDeletedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + 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__ = ( - "WebhookIssueCommentDeletedPropIssueType", - "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", - "WebhookIssueCommentDeletedPropIssueMergedReactionsType", - "WebhookIssueCommentDeletedPropIssueMergedUserType", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0510.py b/githubkit/versions/v2022_11_28/types/group_0510.py index 6c79e8397..716d595ec 100644 --- a/githubkit/versions/v2022_11_28/types/group_0510.py +++ b/githubkit/versions/v2022_11_28/types/group_0510.py @@ -13,148 +13,90 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0513 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType -from .group_0515 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0511 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, +from .group_0509 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) -class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str + external_url: Union[str, None] html_url: str - id: int - labels: NotRequired[ - List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, None] + id: Union[int, None] + name: str node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, None - ] + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, ] - pull_request: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType + permissions: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] - reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] - - -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" + slug: NotRequired[str] + updated_at: Union[datetime, None] - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - -class WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0Type", - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", -) +__all__ = ("WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0511.py b/githubkit/versions/v2022_11_28/types/group_0511.py index 50e1b8aa9..4069c4d99 100644 --- a/githubkit/versions/v2022_11_28/types/group_0511.py +++ b/githubkit/versions/v2022_11_28/types/group_0511.py @@ -9,12 +9,53 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1""" + + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + List[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType, None] + ] + ] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: List[WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType, None + ] + ] + reactions: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentCreatedPropIssueAllof1PropUserType] + + +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -40,7 +81,11 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): +class WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType(TypedDict): """Label""" color: str @@ -52,18 +97,59 @@ class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): url: str -class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + - diff_url: NotRequired[str] +class WebhookIssueCommentCreatedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentCreatedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", + "WebhookIssueCommentCreatedPropIssueAllof1Type", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentCreatedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentCreatedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentCreatedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentCreatedPropIssueAllof1PropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0512.py b/githubkit/versions/v2022_11_28/types/group_0512.py index 87bde6747..5e74f3a06 100644 --- a/githubkit/versions/v2022_11_28/types/group_0512.py +++ b/githubkit/versions/v2022_11_28/types/group_0512.py @@ -9,34 +9,36 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0507 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] +class WebhookIssueCommentCreatedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedMilestone""" + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType",) + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0513.py b/githubkit/versions/v2022_11_28/types/group_0513.py index 453badd8a..d1d711c0e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0513.py +++ b/githubkit/versions/v2022_11_28/types/group_0513.py @@ -10,38 +10,87 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0512 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, +from .group_0509 import ( + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) -class WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone +class WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubApp""" - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None - ] + created_at: Union[datetime, None] description: Union[str, None] - due_on: Union[datetime, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] + external_url: Union[str, None] html_url: str - id: int - labels_url: str + id: Union[int, None] + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str + owner: Union[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentCreatedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) +__all__ = ("WebhookIssueCommentCreatedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0514.py b/githubkit/versions/v2022_11_28/types/group_0514.py index 23b6327a7..34484d667 100644 --- a/githubkit/versions/v2022_11_28/types/group_0514.py +++ b/githubkit/versions/v2022_11_28/types/group_0514.py @@ -9,85 +9,29 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0391 import WebhooksIssueCommentType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0515 import WebhookIssueCommentDeletedPropIssueType -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +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: SimpleUserWebhooksType -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission - s - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -__all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssueCommentDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0515.py b/githubkit/versions/v2022_11_28/types/group_0515.py index 782e8d9d6..d08b8ef43 100644 --- a/githubkit/versions/v2022_11_28/types/group_0515.py +++ b/githubkit/versions/v2022_11_28/types/group_0515.py @@ -13,88 +13,143 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0514 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0523 import WebhookIssueCommentDeletedPropIssueMergedMilestoneType +from .group_0524 import ( + WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, +) +from .group_0517 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, ) -class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentDeletedPropIssueType(TypedDict): + """WebhookIssueCommentDeletedPropIssue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: Union[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None], None ] - external_url: Union[str, None] + assignees: List[WebhookIssueCommentDeletedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str html_url: str - id: Union[int, None] - name: str + id: int + labels: List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] + labels_url: str + locked: bool + milestone: Union[WebhookIssueCommentDeletedPropIssueMergedMilestoneType, None] node_id: str - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType, None] ] - permissions: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + pull_request: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + reactions: WebhookIssueCommentDeletedPropIssueMergedReactionsType + repository_url: str + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: WebhookIssueCommentDeletedPropIssueMergedUserType + + +class WebhookIssueCommentDeletedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedAssignees""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + +class WebhookIssueCommentDeletedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedReactions""" -__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType",) + 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] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueType", + "WebhookIssueCommentDeletedPropIssueMergedAssigneesType", + "WebhookIssueCommentDeletedPropIssueMergedReactionsType", + "WebhookIssueCommentDeletedPropIssueMergedUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0516.py b/githubkit/versions/v2022_11_28/types/group_0516.py index d0b36c97e..3ca99eaac 100644 --- a/githubkit/versions/v2022_11_28/types/group_0516.py +++ b/githubkit/versions/v2022_11_28/types/group_0516.py @@ -9,53 +9,83 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0519 import WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType +from .group_0521 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0517 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType, +) -class WebhookIssueCommentDeletedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1""" - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - List[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, None] - ] +class WebhookIssueCommentDeletedPropIssueAllof0Type(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: List[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, None] + assignee: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType, None] ] - node_id: NotRequired[str] - number: NotRequired[int] + assignees: List[ + Union[WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int performed_via_github_app: NotRequired[ Union[ - WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, None + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType, None ] ] - reactions: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] + pull_request: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropUserType] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssueCommentDeletedPropIssueAllof0PropUserType, None] -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -81,57 +111,36 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType(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 WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentDeletedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" +class WebhookIssueCommentDeletedPropIssueAllof0PropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -139,17 +148,13 @@ class WebhookIssueCommentDeletedPropIssueAllof1PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentDeletedPropIssueAllof1Type", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", + "WebhookIssueCommentDeletedPropIssueAllof0Type", + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0517.py b/githubkit/versions/v2022_11_28/types/group_0517.py index 70659b7b5..50e1b8aa9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0517.py +++ b/githubkit/versions/v2022_11_28/types/group_0517.py @@ -11,34 +11,59 @@ from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0512 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, -) + +class WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] -class WebhookIssueCommentDeletedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedMilestone""" +class WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None - ] + color: str + default: bool description: Union[str, None] - due_on: Union[datetime, None] - html_url: str id: int - labels_url: str + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime url: str -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",) +class WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentDeletedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentDeletedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0518.py b/githubkit/versions/v2022_11_28/types/group_0518.py index d0ab92eb6..87bde6747 100644 --- a/githubkit/versions/v2022_11_28/types/group_0518.py +++ b/githubkit/versions/v2022_11_28/types/group_0518.py @@ -9,86 +9,34 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0514 import ( - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) - -class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType",) +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0519.py b/githubkit/versions/v2022_11_28/types/group_0519.py index 583d4c620..fb636bd0a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0519.py +++ b/githubkit/versions/v2022_11_28/types/group_0519.py @@ -9,31 +9,39 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0387 import WebhooksChangesType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0386 import WebhooksIssueCommentType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0520 import WebhookIssueCommentEditedPropIssueType - - -class WebhookIssueCommentEditedType(TypedDict): - """issue_comment edited event""" - - action: Literal["edited"] - changes: WebhooksChangesType - comment: WebhooksIssueCommentType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssueCommentEditedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -__all__ = ("WebhookIssueCommentEditedType",) +from datetime import datetime +from typing import Union, Literal +from typing_extensions import TypedDict + +from .group_0518 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, +) + + +class WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0520.py b/githubkit/versions/v2022_11_28/types/group_0520.py index 1a32f1b33..23b6327a7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0520.py +++ b/githubkit/versions/v2022_11_28/types/group_0520.py @@ -9,79 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0528 import WebhookIssueCommentEditedPropIssueMergedMilestoneType -from .group_0529 import ( - WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, -) -from .group_0522 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, -) - - -class WebhookIssueCommentEditedPropIssueType(TypedDict): - """WebhookIssueCommentEditedPropIssue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment - belongs to. - """ - - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: Union[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None], None - ] - assignees: List[WebhookIssueCommentEditedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[Union[str, None], None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] - labels_url: str - locked: bool - milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType - ] - reactions: WebhookIssueCommentEditedPropIssueMergedReactionsType - repository_url: str - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssueCommentEditedPropIssueMergedUserType - -class WebhookIssueCommentEditedPropIssueMergedAssigneesType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedAssignees""" +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" avatar_url: NotRequired[str] deleted: NotRequired[bool] @@ -102,54 +37,57 @@ class WebhookIssueCommentEditedPropIssueMergedAssigneesType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookIssueCommentEditedPropIssueMergedReactionsType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedReactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermission + s + The set of permissions for the GitHub app + """ -class WebhookIssueCommentEditedPropIssueMergedUserType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedUser""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + 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__ = ( - "WebhookIssueCommentEditedPropIssueType", - "WebhookIssueCommentEditedPropIssueMergedAssigneesType", - "WebhookIssueCommentEditedPropIssueMergedReactionsType", - "WebhookIssueCommentEditedPropIssueMergedUserType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0521.py b/githubkit/versions/v2022_11_28/types/group_0521.py index 15d9c32ef..479bd322d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0521.py +++ b/githubkit/versions/v2022_11_28/types/group_0521.py @@ -13,148 +13,88 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0524 import WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType -from .group_0526 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, -) -from .group_0522 import ( - WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, - WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, +from .group_0520 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) -class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): - """Issue +class WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str + external_url: Union[str, None] html_url: str - id: int - labels: NotRequired[ - List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, None] + id: Union[int, None] + name: str node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, None - ] + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, ] - pull_request: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType + permissions: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] - reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUserType, None] - - -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" + slug: NotRequired[str] + updated_at: Union[datetime, None] - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - -class WebhookIssueCommentEditedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0Type", - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", - "WebhookIssueCommentEditedPropIssueAllof0PropUserType", -) +__all__ = ("WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0522.py b/githubkit/versions/v2022_11_28/types/group_0522.py index 7b4b74ff3..d0b36c97e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0522.py +++ b/githubkit/versions/v2022_11_28/types/group_0522.py @@ -9,12 +9,53 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1""" + + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + List[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType, None] + ] + ] + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: List[WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] + performed_via_github_app: NotRequired[ + Union[ + WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType, None + ] + ] + reactions: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] + timeline_url: NotRequired[str] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentDeletedPropIssueAllof1PropUserType] + + +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -40,7 +81,11 @@ class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType(TypedDict): +class WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItems""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType(TypedDict): """Label""" color: str @@ -52,18 +97,59 @@ class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType(TypedDict): url: str -class WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" +class WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropMilestone""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubApp""" + + +class WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + - diff_url: NotRequired[str] +class WebhookIssueCommentDeletedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentDeletedPropIssueAllof1PropUser""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", - "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", - "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", + "WebhookIssueCommentDeletedPropIssueAllof1Type", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentDeletedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentDeletedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentDeletedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentDeletedPropIssueAllof1PropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0523.py b/githubkit/versions/v2022_11_28/types/group_0523.py index a238b6095..a7e669313 100644 --- a/githubkit/versions/v2022_11_28/types/group_0523.py +++ b/githubkit/versions/v2022_11_28/types/group_0523.py @@ -9,34 +9,36 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0518 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] +class WebhookIssueCommentDeletedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedMilestone""" + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType",) + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0524.py b/githubkit/versions/v2022_11_28/types/group_0524.py index 87d033876..bad5da7bf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0524.py +++ b/githubkit/versions/v2022_11_28/types/group_0524.py @@ -10,38 +10,85 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0523 import ( - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, +from .group_0520 import ( + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, ) -class WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone +class WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubApp""" - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None - ] + created_at: Union[datetime, None] description: Union[str, None] - due_on: Union[datetime, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + external_url: Union[str, None] html_url: str - id: int - labels_url: str + id: Union[int, None] + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str + owner: Union[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentDeletedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",) +__all__ = ("WebhookIssueCommentDeletedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0525.py b/githubkit/versions/v2022_11_28/types/group_0525.py index 0ad9e63b9..186af69f0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0525.py +++ b/githubkit/versions/v2022_11_28/types/group_0525.py @@ -9,84 +9,31 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0392 import WebhooksChangesType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0391 import WebhooksIssueCommentType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0526 import WebhookIssueCommentEditedPropIssueType -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +class WebhookIssueCommentEditedType(TypedDict): + """issue_comment edited event""" + action: Literal["edited"] + changes: WebhooksChangesType + comment: WebhooksIssueCommentType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssueCommentEditedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -__all__ = ( - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssueCommentEditedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0526.py b/githubkit/versions/v2022_11_28/types/group_0526.py index d729c56ac..3e9a85f5d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0526.py +++ b/githubkit/versions/v2022_11_28/types/group_0526.py @@ -13,90 +13,143 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0525 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +from .group_0534 import WebhookIssueCommentEditedPropIssueMergedMilestoneType +from .group_0535 import ( + WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, +) +from .group_0528 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, ) -class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssueCommentEditedPropIssueType(TypedDict): + """WebhookIssueCommentEditedPropIssue - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment + belongs to. """ - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: Union[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None], None ] - external_url: Union[str, None] + assignees: List[WebhookIssueCommentEditedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str html_url: str - id: Union[int, None] - name: str + id: int + labels: List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] + labels_url: str + locked: bool + milestone: Union[WebhookIssueCommentEditedPropIssueMergedMilestoneType, None] node_id: str - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType, None] ] - permissions: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + pull_request: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + reactions: WebhookIssueCommentEditedPropIssueMergedReactionsType + repository_url: str + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: WebhookIssueCommentEditedPropIssueMergedUserType + + +class WebhookIssueCommentEditedPropIssueMergedAssigneesType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedAssignees""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + +class WebhookIssueCommentEditedPropIssueMergedReactionsType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedReactions""" -__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType",) + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookIssueCommentEditedPropIssueMergedUserType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedUser""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueType", + "WebhookIssueCommentEditedPropIssueMergedAssigneesType", + "WebhookIssueCommentEditedPropIssueMergedReactionsType", + "WebhookIssueCommentEditedPropIssueMergedUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0527.py b/githubkit/versions/v2022_11_28/types/group_0527.py index 3cca84c7e..e10a10d28 100644 --- a/githubkit/versions/v2022_11_28/types/group_0527.py +++ b/githubkit/versions/v2022_11_28/types/group_0527.py @@ -9,53 +9,83 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0530 import WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType +from .group_0532 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, +) +from .group_0528 import ( + WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, + WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType, + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType, +) -class WebhookIssueCommentEditedPropIssueAllof1Type(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1""" - active_lock_reason: NotRequired[Union[str, None]] - assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, None] - assignees: NotRequired[ - List[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, None] - ] +class WebhookIssueCommentEditedPropIssueAllof0Type(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: NotRequired[Union[str, None]] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: List[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType] - labels_url: NotRequired[str] - locked: bool - milestone: NotRequired[ - Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, None] + assignee: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType, None] ] - node_id: NotRequired[str] - number: NotRequired[int] + assignees: List[ + Union[WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int performed_via_github_app: NotRequired[ Union[ - WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, None + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType, None ] ] - reactions: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["open", "closed"] + pull_request: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType + ] + reactions: WebhookIssueCommentEditedPropIssueAllof0PropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropUserType] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssueCommentEditedPropIssueAllof0PropUserType, None] -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -81,57 +111,36 @@ class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): - """Label""" +class WebhookIssueCommentEditedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int url: str -class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" - - -class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" - - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] - - -class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssueCommentEditedPropIssueAllof1PropUser""" +class WebhookIssueCommentEditedPropIssueAllof0PropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -139,17 +148,13 @@ class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] __all__ = ( - "WebhookIssueCommentEditedPropIssueAllof1Type", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", - "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", - "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", - "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", - "WebhookIssueCommentEditedPropIssueAllof1PropUserType", + "WebhookIssueCommentEditedPropIssueAllof0Type", + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssueCommentEditedPropIssueAllof0PropReactionsType", + "WebhookIssueCommentEditedPropIssueAllof0PropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0528.py b/githubkit/versions/v2022_11_28/types/group_0528.py index 0fbdb8538..7b4b74ff3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0528.py +++ b/githubkit/versions/v2022_11_28/types/group_0528.py @@ -11,34 +11,59 @@ from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0523 import ( - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, -) + +class WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] -class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedMilestone""" +class WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None - ] + color: str + default: bool description: Union[str, None] - due_on: Union[datetime, None] - html_url: str id: int - labels_url: str + name: str node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime url: str -__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) +class WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof0PropPullRequest""" + + diff_url: NotRequired[str] + html_url: NotRequired[str] + merged_at: NotRequired[Union[datetime, None]] + patch_url: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropAssigneeType", + "WebhookIssueCommentEditedPropIssueAllof0PropLabelsItemsType", + "WebhookIssueCommentEditedPropIssueAllof0PropPullRequestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0529.py b/githubkit/versions/v2022_11_28/types/group_0529.py index 23f89dbb5..a238b6095 100644 --- a/githubkit/versions/v2022_11_28/types/group_0529.py +++ b/githubkit/versions/v2022_11_28/types/group_0529.py @@ -9,88 +9,34 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0525 import ( - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) - -class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" - - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "pull_request_review_thread", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType",) +class WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0530.py b/githubkit/versions/v2022_11_28/types/group_0530.py index a96119228..1c2e1a121 100644 --- a/githubkit/versions/v2022_11_28/types/group_0530.py +++ b/githubkit/versions/v2022_11_28/types/group_0530.py @@ -9,29 +9,39 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired - -from .group_0379 import WebhooksUserType -from .group_0388 import WebhooksIssueType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType - - -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: SimpleUserWebhooksType - - -__all__ = ("WebhookIssuesAssignedType",) +from typing_extensions import TypedDict + +from .group_0529 import ( + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, +) + + +class WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0531.py b/githubkit/versions/v2022_11_28/types/group_0531.py index d70f5ebd4..0ad9e63b9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0531.py +++ b/githubkit/versions/v2022_11_28/types/group_0531.py @@ -9,27 +9,84 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0532 import WebhookIssuesClosedPropIssueType +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): + """User""" -class WebhookIssuesClosedType(TypedDict): - """issues closed event""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] - action: Literal["closed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesClosedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( + TypedDict +): + """WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissions -__all__ = ("WebhookIssuesClosedType",) + The set of permissions for the GitHub app + """ + + actions: NotRequired[Literal["read", "write"]] + administration: NotRequired[Literal["read", "write"]] + checks: NotRequired[Literal["read", "write"]] + content_references: NotRequired[Literal["read", "write"]] + contents: NotRequired[Literal["read", "write"]] + deployments: NotRequired[Literal["read", "write"]] + discussions: NotRequired[Literal["read", "write"]] + emails: NotRequired[Literal["read", "write"]] + environments: NotRequired[Literal["read", "write"]] + issues: NotRequired[Literal["read", "write"]] + keys: NotRequired[Literal["read", "write"]] + members: NotRequired[Literal["read", "write"]] + metadata: NotRequired[Literal["read", "write"]] + organization_administration: NotRequired[Literal["read", "write"]] + organization_hooks: NotRequired[Literal["read", "write"]] + organization_packages: NotRequired[Literal["read", "write"]] + organization_plan: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] + organization_secrets: NotRequired[Literal["read", "write"]] + organization_self_hosted_runners: NotRequired[Literal["read", "write"]] + organization_user_blocking: NotRequired[Literal["read", "write"]] + packages: NotRequired[Literal["read", "write"]] + pages: NotRequired[Literal["read", "write"]] + pull_requests: NotRequired[Literal["read", "write"]] + repository_hooks: NotRequired[Literal["read", "write"]] + repository_projects: NotRequired[Literal["read", "write"]] + secret_scanning_alerts: NotRequired[Literal["read", "write"]] + secrets: NotRequired[Literal["read", "write"]] + security_events: NotRequired[Literal["read", "write"]] + security_scanning_alert: NotRequired[Literal["read", "write"]] + single_file: NotRequired[Literal["read", "write"]] + statuses: NotRequired[Literal["read", "write"]] + team_discussions: NotRequired[Literal["read", "write"]] + vulnerability_alerts: NotRequired[Literal["read", "write"]] + workflows: NotRequired[Literal["read", "write"]] + + +__all__ = ( + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0532.py b/githubkit/versions/v2022_11_28/types/group_0532.py index 92cf7f843..23c08de8a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0532.py +++ b/githubkit/versions/v2022_11_28/types/group_0532.py @@ -13,172 +13,90 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0540 import WebhookIssuesClosedPropIssueMergedMilestoneType -from .group_0538 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType -from .group_0541 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType +from .group_0531 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesClosedPropIssueType(TypedDict): - """WebhookIssuesClosedPropIssue +class WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): + """App - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + GitHub apps are a new way to extend GitHub. They can be installed directly on + organizations and user accounts and granted access to specific repositories. + They come with granular permissions and built-in webhooks. GitHub apps are first + class actors within GitHub. """ - active_lock_reason: Union[ - Literal["resolved", "off-topic", "too heated", "spam"], None - ] - assignee: NotRequired[Union[WebhookIssuesClosedPropIssueMergedAssigneeType, None]] - assignees: List[WebhookIssuesClosedPropIssueMergedAssigneesType] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + created_at: Union[datetime, None] + description: Union[str, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] ] - 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 + external_url: Union[str, None] 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 - state: Literal["open", "closed"] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: WebhookIssuesClosedPropIssueMergedUserType - - -class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueMergedAssignee""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -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] - - -class WebhookIssuesClosedPropIssueMergedLabelsType(TypedDict): - """WebhookIssuesClosedPropIssueMergedLabels""" - - color: str - default: bool - description: Union[str, None] - id: int + id: Union[int, None] 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] + owner: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType + ] + slug: NotRequired[str] + updated_at: Union[datetime, None] -__all__ = ( - "WebhookIssuesClosedPropIssueType", - "WebhookIssuesClosedPropIssueMergedAssigneeType", - "WebhookIssuesClosedPropIssueMergedAssigneesType", - "WebhookIssuesClosedPropIssueMergedLabelsType", - "WebhookIssuesClosedPropIssueMergedReactionsType", - "WebhookIssuesClosedPropIssueMergedUserType", -) +__all__ = ("WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0533.py b/githubkit/versions/v2022_11_28/types/group_0533.py index 0157dc61d..3cca84c7e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0533.py +++ b/githubkit/versions/v2022_11_28/types/group_0533.py @@ -9,71 +9,53 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0535 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType -from .group_0538 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType -from .group_0537 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType +class WebhookIssueCommentEditedPropIssueAllof1Type(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1""" -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] + active_lock_reason: NotRequired[Union[str, None]] + assignee: Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType, None] + assignees: NotRequired[ + List[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType, None] + ] ] - assignees: List[ - Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + author_association: NotRequired[str] + body: NotRequired[Union[str, None]] + closed_at: NotRequired[Union[str, None]] + comments: NotRequired[int] + comments_url: NotRequired[str] + created_at: NotRequired[str] + events_url: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: List[WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType] + labels_url: NotRequired[str] + locked: bool + milestone: NotRequired[ + Union[WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType, None] ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestoneType, None] - node_id: str - number: int + node_id: NotRequired[str] + number: NotRequired[int] performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, None] + Union[ + WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType, None + ] ] - pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] - reactions: WebhookIssuesClosedPropIssueAllof0PropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] + reactions: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["open", "closed"] timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] + title: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + user: NotRequired[WebhookIssueCommentEditedPropIssueAllof1PropUserType] -class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -99,33 +81,11 @@ class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType(TypedDict): - """User""" +class WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItems""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - -class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): +class WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType(TypedDict): """Label""" color: str @@ -137,36 +97,41 @@ class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): url: str -class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): - """Reactions""" +class WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropMilestone""" - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str +class WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubApp""" -class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): - """User""" + +class WebhookIssueCommentEditedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropReactions""" + + plus_one: NotRequired[int] + minus_one: NotRequired[int] + confused: NotRequired[int] + eyes: NotRequired[int] + heart: NotRequired[int] + hooray: NotRequired[int] + laugh: NotRequired[int] + rocket: NotRequired[int] + total_count: NotRequired[int] + url: NotRequired[str] + + +class WebhookIssueCommentEditedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssueCommentEditedPropIssueAllof1PropUser""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -174,15 +139,17 @@ class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[str] url: NotRequired[str] __all__ = ( - "WebhookIssuesClosedPropIssueAllof0Type", - "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof0PropReactionsType", - "WebhookIssuesClosedPropIssueAllof0PropUserType", + "WebhookIssueCommentEditedPropIssueAllof1Type", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneeType", + "WebhookIssueCommentEditedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropLabelsItemsType", + "WebhookIssueCommentEditedPropIssueAllof1PropMilestoneType", + "WebhookIssueCommentEditedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssueCommentEditedPropIssueAllof1PropReactionsType", + "WebhookIssueCommentEditedPropIssueAllof1PropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0534.py b/githubkit/versions/v2022_11_28/types/group_0534.py index 7b05f1bde..724f90537 100644 --- a/githubkit/versions/v2022_11_28/types/group_0534.py +++ b/githubkit/versions/v2022_11_28/types/group_0534.py @@ -9,34 +9,36 @@ from __future__ import annotations +from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0529 import ( + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, +) -class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] +class WebhookIssueCommentEditedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedMilestone""" + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookIssueCommentEditedPropIssueAllof0PropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType",) + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +__all__ = ("WebhookIssueCommentEditedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0535.py b/githubkit/versions/v2022_11_28/types/group_0535.py index 74a39714e..306ea1395 100644 --- a/githubkit/versions/v2022_11_28/types/group_0535.py +++ b/githubkit/versions/v2022_11_28/types/group_0535.py @@ -10,34 +10,87 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0534 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType +from .group_0531 import ( + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssueCommentEditedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): - """Milestone +class WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubApp""" - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] + created_at: Union[datetime, None] description: Union[str, None] - due_on: Union[datetime, None] + events: NotRequired[ + List[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "pull_request_review_thread", + ] + ] + ] + 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__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) +__all__ = ("WebhookIssueCommentEditedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0536.py b/githubkit/versions/v2022_11_28/types/group_0536.py index 32512a608..ee445495f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0536.py +++ b/githubkit/versions/v2022_11_28/types/group_0536.py @@ -12,81 +12,26 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0384 import WebhooksUserType +from .group_0393 import WebhooksIssueType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -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] +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: SimpleUserWebhooksType -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -__all__ = ( - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", -) +__all__ = ("WebhookIssuesAssignedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0537.py b/githubkit/versions/v2022_11_28/types/group_0537.py index 031c64567..72f8793ff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0537.py +++ b/githubkit/versions/v2022_11_28/types/group_0537.py @@ -9,94 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0536 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0538 import WebhookIssuesClosedPropIssueType -class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): - """App +class WebhookIssuesClosedType(TypedDict): + """issues closed event""" - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ + action: Literal["closed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + issue: WebhookIssuesClosedPropIssueType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType - created_at: Union[datetime, None] - description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "reminder", - "pull_request_review_thread", - ] - ] - ] - 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",) +__all__ = ("WebhookIssuesClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0538.py b/githubkit/versions/v2022_11_28/types/group_0538.py index a73f7cc15..44a53f9a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0538.py +++ b/githubkit/versions/v2022_11_28/types/group_0538.py @@ -9,19 +9,176 @@ from __future__ import annotations -from typing import Union from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0546 import WebhookIssuesClosedPropIssueMergedMilestoneType +from .group_0544 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType +from .group_0547 import WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType -class WebhookIssuesClosedPropIssueAllof0PropPullRequestType(TypedDict): - """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" - diff_url: NotRequired[str] +class WebhookIssuesClosedPropIssueType(TypedDict): + """WebhookIssuesClosedPropIssue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + Literal["resolved", "off-topic", "too heated", "spam"], None + ] + assignee: NotRequired[Union[WebhookIssuesClosedPropIssueMergedAssigneeType, None]] + assignees: List[WebhookIssuesClosedPropIssueMergedAssigneesType] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[Union[str, None], None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesClosedPropIssueMergedLabelsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesClosedPropIssueMergedMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] + reactions: WebhookIssuesClosedPropIssueMergedReactionsType + repository_url: str + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: WebhookIssuesClosedPropIssueMergedUserType + + +class WebhookIssuesClosedPropIssueMergedAssigneeType(TypedDict): + """WebhookIssuesClosedPropIssueMergedAssignee""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +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] + + +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] - 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] -__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",) +__all__ = ( + "WebhookIssuesClosedPropIssueType", + "WebhookIssuesClosedPropIssueMergedAssigneeType", + "WebhookIssuesClosedPropIssueMergedAssigneesType", + "WebhookIssuesClosedPropIssueMergedLabelsType", + "WebhookIssuesClosedPropIssueMergedReactionsType", + "WebhookIssuesClosedPropIssueMergedUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0539.py b/githubkit/versions/v2022_11_28/types/group_0539.py index 75a1610df..bc70584e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0539.py +++ b/githubkit/versions/v2022_11_28/types/group_0539.py @@ -9,99 +9,164 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0541 import WebhookIssuesClosedPropIssueAllof0PropMilestoneType +from .group_0544 import WebhookIssuesClosedPropIssueAllof0PropPullRequestType +from .group_0543 import WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType -class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): - """WebhookIssuesClosedPropIssueAllof1""" - active_lock_reason: NotRequired[Union[str, None]] +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[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneeType, None] ] - assignees: NotRequired[ - List[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] + assignees: List[ + Union[WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType, None] ] - author_association: NotRequired[str] - body: NotRequired[Union[str, None]] - closed_at: Union[str, None] - comments: NotRequired[int] - comments_url: NotRequired[str] - created_at: NotRequired[str] - events_url: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[ - List[Union[WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - labels_url: NotRequired[str] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType]] + labels_url: str locked: NotRequired[bool] - milestone: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] - ] - node_id: NotRequired[str] - number: NotRequired[int] + milestone: Union[WebhookIssuesClosedPropIssueAllof0PropMilestoneType, None] + node_id: str + number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] + Union[WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType, None] ] - reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] - repository_url: NotRequired[str] - state: Literal["closed", "open"] + pull_request: NotRequired[WebhookIssuesClosedPropIssueAllof0PropPullRequestType] + reactions: WebhookIssuesClosedPropIssueAllof0PropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] - title: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesClosedPropIssueAllof0PropUserType, None] -class WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssignee""" +class WebhookIssuesClosedPropIssueAllof0PropAssigneeType(TypedDict): + """User""" - -class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] -class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" +class WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType(TypedDict): + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] -class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropMilestone""" +class WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType(TypedDict): + """Label""" -class WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str -class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropReactions""" +class WebhookIssuesClosedPropIssueAllof0PropReactionsType(TypedDict): + """Reactions""" - plus_one: NotRequired[int] - minus_one: NotRequired[int] - confused: NotRequired[int] - eyes: NotRequired[int] - heart: NotRequired[int] - hooray: NotRequired[int] - laugh: NotRequired[int] - rocket: NotRequired[int] - total_count: NotRequired[int] - url: NotRequired[str] + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str -class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): - """WebhookIssuesClosedPropIssueAllof1PropUser""" +class WebhookIssuesClosedPropIssueAllof0PropUserType(TypedDict): + """User""" avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] + id: int + login: str + name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -109,17 +174,15 @@ class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] __all__ = ( - "WebhookIssuesClosedPropIssueAllof1Type", - "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", - "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", - "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", - "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", - "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", - "WebhookIssuesClosedPropIssueAllof1PropReactionsType", - "WebhookIssuesClosedPropIssueAllof1PropUserType", + "WebhookIssuesClosedPropIssueAllof0Type", + "WebhookIssuesClosedPropIssueAllof0PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof0PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof0PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof0PropReactionsType", + "WebhookIssuesClosedPropIssueAllof0PropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0540.py b/githubkit/versions/v2022_11_28/types/group_0540.py index a0a29b9c8..7b05f1bde 100644 --- a/githubkit/versions/v2022_11_28/types/group_0540.py +++ b/githubkit/versions/v2022_11_28/types/group_0540.py @@ -9,32 +9,34 @@ from __future__ import annotations -from datetime import datetime from typing import Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0534 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType +class WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType(TypedDict): + """User""" -class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): - """WebhookIssuesClosedPropIssueMergedMilestone""" - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0541.py b/githubkit/versions/v2022_11_28/types/group_0541.py index 3aec75d28..ce33948e7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0541.py +++ b/githubkit/versions/v2022_11_28/types/group_0541.py @@ -10,87 +10,34 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0536 import ( - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, -) +from .group_0540 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -class WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType(TypedDict): - """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" +class WebhookIssuesClosedPropIssueAllof0PropMilestoneType(TypedDict): + """Milestone - created_at: Union[datetime, None] + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] description: Union[str, None] - events: NotRequired[ - List[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "reminder", - "pull_request_review_thread", - ] - ] - ] - external_url: Union[str, None] + due_on: Union[datetime, None] html_url: str - id: Union[int, None] - name: str + id: int + labels_url: str node_id: str - owner: Union[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0542.py b/githubkit/versions/v2022_11_28/types/group_0542.py index cea658a67..32512a608 100644 --- a/githubkit/versions/v2022_11_28/types/group_0542.py +++ b/githubkit/versions/v2022_11_28/types/group_0542.py @@ -9,273 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType - -class WebhookIssuesDeletedType(TypedDict): - """issues deleted event""" - - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDeletedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookIssuesDeletedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] - reactions: WebhookIssuesDeletedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] - - -class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - ] - ] - ] - external_url: Union[str, None] - html_url: str - id: Union[int, None] - name: str - node_id: str - owner: Union[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None - ] - permissions: NotRequired[ - WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType - ] - slug: NotRequired[str] - updated_at: Union[datetime, None] - - -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -301,10 +41,10 @@ class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedD url: NotRequired[str] -class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -326,7 +66,7 @@ class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( organization_hooks: NotRequired[Literal["read", "write"]] organization_packages: NotRequired[Literal["read", "write"]] organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] organization_secrets: NotRequired[Literal["read", "write"]] organization_self_hosted_runners: NotRequired[Literal["read", "write"]] organization_user_blocking: NotRequired[Literal["read", "write"]] @@ -346,69 +86,7 @@ class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesDeletedPropIssuePropPullRequest""" - - diff_url: NotRequired[str] - html_url: NotRequired[str] - merged_at: NotRequired[Union[datetime, None]] - patch_url: NotRequired[str] - url: NotRequired[str] - - -class WebhookIssuesDeletedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class 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] - - __all__ = ( - "WebhookIssuesDeletedType", - "WebhookIssuesDeletedPropIssueType", - "WebhookIssuesDeletedPropIssuePropAssigneeType", - "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", - "WebhookIssuesDeletedPropIssuePropLabelsItemsType", - "WebhookIssuesDeletedPropIssuePropMilestoneType", - "WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesDeletedPropIssuePropPullRequestType", - "WebhookIssuesDeletedPropIssuePropReactionsType", - "WebhookIssuesDeletedPropIssuePropUserType", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0543.py b/githubkit/versions/v2022_11_28/types/group_0543.py index ca3130395..213b398c5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0543.py +++ b/githubkit/versions/v2022_11_28/types/group_0543.py @@ -13,199 +13,13 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0389 import WebhooksMilestoneType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType - - -class WebhookIssuesDemilestonedType(TypedDict): - """issues demilestoned event""" - - action: Literal["demilestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesDemilestonedPropIssueType - milestone: NotRequired[WebhooksMilestoneType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -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 - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesDemilestonedPropIssuePropUserType, None] - - -class WebhookIssuesDemilestonedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookIssuesDemilestonedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesDemilestonedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] +from .group_0542 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): +class WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -264,6 +78,9 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "security_and_analysis", + "reminder", + "pull_request_review_thread", ] ] ] @@ -273,151 +90,13 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -__all__ = ( - "WebhookIssuesDemilestonedType", - "WebhookIssuesDemilestonedPropIssueType", - "WebhookIssuesDemilestonedPropIssuePropAssigneeType", - "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", - "WebhookIssuesDemilestonedPropIssuePropLabelsItemsType", - "WebhookIssuesDemilestonedPropIssuePropMilestoneType", - "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesDemilestonedPropIssuePropPullRequestType", - "WebhookIssuesDemilestonedPropIssuePropReactionsType", - "WebhookIssuesDemilestonedPropIssuePropUserType", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0544.py b/githubkit/versions/v2022_11_28/types/group_0544.py index 045069a8d..a73f7cc15 100644 --- a/githubkit/versions/v2022_11_28/types/group_0544.py +++ b/githubkit/versions/v2022_11_28/types/group_0544.py @@ -9,372 +9,13 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0383 import WebhooksLabelType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType - -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: SimpleUserWebhooksType - - -class WebhookIssuesEditedPropChangesType(TypedDict): - """WebhookIssuesEditedPropChanges - - The changes to the issue. - """ - - body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] - title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] - - -class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): - """WebhookIssuesEditedPropChangesPropBody""" - - from_: str - - -class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): - """WebhookIssuesEditedPropChangesPropTitle""" - - from_: str - - -class WebhookIssuesEditedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesEditedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesEditedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[List[WebhookIssuesEditedPropIssuePropLabelsItemsType]] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesEditedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesEditedPropIssuePropPullRequestType] - reactions: WebhookIssuesEditedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesEditedPropIssuePropUserType, None] - - -class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -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] - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "pull_request_review_thread", - "reminder", - ] - ] - ] - 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] - - -class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( - TypedDict -): - """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions - - The set of permissions for the GitHub app - """ - - actions: NotRequired[Literal["read", "write"]] - administration: NotRequired[Literal["read", "write"]] - checks: NotRequired[Literal["read", "write"]] - content_references: NotRequired[Literal["read", "write"]] - contents: NotRequired[Literal["read", "write"]] - deployments: NotRequired[Literal["read", "write"]] - discussions: NotRequired[Literal["read", "write"]] - emails: NotRequired[Literal["read", "write"]] - environments: NotRequired[Literal["read", "write"]] - issues: NotRequired[Literal["read", "write"]] - keys: NotRequired[Literal["read", "write"]] - members: NotRequired[Literal["read", "write"]] - metadata: NotRequired[Literal["read", "write"]] - organization_administration: NotRequired[Literal["read", "write"]] - organization_hooks: NotRequired[Literal["read", "write"]] - organization_packages: NotRequired[Literal["read", "write"]] - organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write", "admin"]] - organization_secrets: NotRequired[Literal["read", "write"]] - organization_self_hosted_runners: NotRequired[Literal["read", "write"]] - organization_user_blocking: NotRequired[Literal["read", "write"]] - packages: NotRequired[Literal["read", "write"]] - pages: NotRequired[Literal["read", "write"]] - pull_requests: NotRequired[Literal["read", "write"]] - repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write"]] - secret_scanning_alerts: NotRequired[Literal["read", "write"]] - secrets: NotRequired[Literal["read", "write"]] - security_events: NotRequired[Literal["read", "write"]] - security_scanning_alert: NotRequired[Literal["read", "write"]] - single_file: NotRequired[Literal["read", "write"]] - statuses: NotRequired[Literal["read", "write"]] - team_discussions: NotRequired[Literal["read", "write"]] - vulnerability_alerts: NotRequired[Literal["read", "write"]] - workflows: NotRequired[Literal["read", "write"]] - - -class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesEditedPropIssuePropPullRequest""" +class WebhookIssuesClosedPropIssueAllof0PropPullRequestType(TypedDict): + """WebhookIssuesClosedPropIssueAllof0PropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -383,62 +24,4 @@ class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class 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] - - -__all__ = ( - "WebhookIssuesEditedType", - "WebhookIssuesEditedPropChangesType", - "WebhookIssuesEditedPropChangesPropBodyType", - "WebhookIssuesEditedPropChangesPropTitleType", - "WebhookIssuesEditedPropIssueType", - "WebhookIssuesEditedPropIssuePropAssigneeType", - "WebhookIssuesEditedPropIssuePropAssigneesItemsType", - "WebhookIssuesEditedPropIssuePropLabelsItemsType", - "WebhookIssuesEditedPropIssuePropMilestoneType", - "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesEditedPropIssuePropPullRequestType", - "WebhookIssuesEditedPropIssuePropReactionsType", - "WebhookIssuesEditedPropIssuePropUserType", -) +__all__ = ("WebhookIssuesClosedPropIssueAllof0PropPullRequestType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0545.py b/githubkit/versions/v2022_11_28/types/group_0545.py index 3dd9f05c1..75a1610df 100644 --- a/githubkit/versions/v2022_11_28/types/group_0545.py +++ b/githubkit/versions/v2022_11_28/types/group_0545.py @@ -9,386 +9,99 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0383 import WebhooksLabelType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +class WebhookIssuesClosedPropIssueAllof1Type(TypedDict): + """WebhookIssuesClosedPropIssueAllof1""" -class WebhookIssuesLabeledType(TypedDict): - """issues labeled event""" - - action: Literal["labeled"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLabeledPropIssueType - label: NotRequired[WebhooksLabelType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookIssuesLabeledPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] + active_lock_reason: NotRequired[Union[str, None]] + assignee: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropAssigneeType, None] + ] + assignees: NotRequired[ + List[Union[WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType, None]] ] - assignee: NotRequired[Union[WebhookIssuesLabeledPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesLabeledPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", + 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]] ] - 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 + labels_url: NotRequired[str] locked: NotRequired[bool] - milestone: Union[WebhookIssuesLabeledPropIssuePropMilestoneType, None] - node_id: str - number: int + milestone: NotRequired[ + Union[WebhookIssuesClosedPropIssueAllof1PropMilestoneType, None] + ] + node_id: NotRequired[str] + number: NotRequired[int] performed_via_github_app: NotRequired[ - Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, None] + Union[WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[WebhookIssuesLabeledPropIssuePropPullRequestType] - reactions: WebhookIssuesLabeledPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] + reactions: NotRequired[WebhookIssuesClosedPropIssueAllof1PropReactionsType] + repository_url: NotRequired[str] + state: Literal["closed", "open"] timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[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"]] + title: NotRequired[str] + updated_at: NotRequired[str] url: NotRequired[str] + user: NotRequired[WebhookIssuesClosedPropIssueAllof1PropUserType] -class WebhookIssuesLabeledPropIssuePropAssigneesItemsType(TypedDict): - """User""" +class WebhookIssuesClosedPropIssueAllof1PropAssigneeType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssignee""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] +class WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropAssigneesItems""" -class WebhookIssuesLabeledPropIssuePropLabelsItemsType(TypedDict): - """Label""" - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str +class WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropLabelsItems""" -class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): - """Milestone +class WebhookIssuesClosedPropIssueAllof1PropMilestoneType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropMilestone""" - A collection of related issues and pull requests. - """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[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 WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubApp""" -class WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" +class WebhookIssuesClosedPropIssueAllof1PropReactionsType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropReactions""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: 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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "pull_request_review_thread", - "reminder", - ] - ] - ] - 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"]] + 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 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""" +class WebhookIssuesClosedPropIssueAllof1PropUserType(TypedDict): + """WebhookIssuesClosedPropIssueAllof1PropUser""" avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] events_url: NotRequired[str] followers_url: NotRequired[str] following_url: NotRequired[str] gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] received_events_url: NotRequired[str] @@ -396,22 +109,17 @@ class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[str] url: NotRequired[str] __all__ = ( - "WebhookIssuesLabeledType", - "WebhookIssuesLabeledPropIssueType", - "WebhookIssuesLabeledPropIssuePropAssigneeType", - "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", - "WebhookIssuesLabeledPropIssuePropLabelsItemsType", - "WebhookIssuesLabeledPropIssuePropMilestoneType", - "WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesLabeledPropIssuePropPullRequestType", - "WebhookIssuesLabeledPropIssuePropReactionsType", - "WebhookIssuesLabeledPropIssuePropUserType", + "WebhookIssuesClosedPropIssueAllof1Type", + "WebhookIssuesClosedPropIssueAllof1PropAssigneeType", + "WebhookIssuesClosedPropIssueAllof1PropAssigneesItemsType", + "WebhookIssuesClosedPropIssueAllof1PropLabelsItemsType", + "WebhookIssuesClosedPropIssueAllof1PropMilestoneType", + "WebhookIssuesClosedPropIssueAllof1PropPerformedViaGithubAppType", + "WebhookIssuesClosedPropIssueAllof1PropReactionsType", + "WebhookIssuesClosedPropIssueAllof1PropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0546.py b/githubkit/versions/v2022_11_28/types/group_0546.py index 0f85a2c20..0be9c08e6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0546.py +++ b/githubkit/versions/v2022_11_28/types/group_0546.py @@ -10,155 +10,19 @@ from __future__ import annotations from datetime import datetime -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union, Literal +from typing_extensions import TypedDict -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0540 import WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType -class WebhookIssuesLockedType(TypedDict): - """issues locked event""" - - action: Literal["locked"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesLockedPropIssueType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookIssuesLockedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesLockedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesLockedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - List[Union[WebhookIssuesLockedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: Literal[True] - milestone: Union[WebhookIssuesLockedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesLockedPropIssuePropPullRequestType] - reactions: WebhookIssuesLockedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesLockedPropIssuePropUserType, None] - - -class WebhookIssuesLockedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -class WebhookIssuesLockedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesLockedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ +class WebhookIssuesClosedPropIssueMergedMilestoneType(TypedDict): + """WebhookIssuesClosedPropIssueMergedMilestone""" closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesLockedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookIssuesClosedPropIssueAllof0PropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -173,245 +37,4 @@ class WebhookIssuesLockedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesLockedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "reminder", - "security_and_analysis", - ] - ] - ] - 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] - - -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] - - -__all__ = ( - "WebhookIssuesLockedType", - "WebhookIssuesLockedPropIssueType", - "WebhookIssuesLockedPropIssuePropAssigneeType", - "WebhookIssuesLockedPropIssuePropAssigneesItemsType", - "WebhookIssuesLockedPropIssuePropLabelsItemsType", - "WebhookIssuesLockedPropIssuePropMilestoneType", - "WebhookIssuesLockedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesLockedPropIssuePropPullRequestType", - "WebhookIssuesLockedPropIssuePropReactionsType", - "WebhookIssuesLockedPropIssuePropUserType", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedMilestoneType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0547.py b/githubkit/versions/v2022_11_28/types/group_0547.py index 6871c556f..a328e18b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0547.py +++ b/githubkit/versions/v2022_11_28/types/group_0547.py @@ -13,202 +13,14 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0389 import WebhooksMilestoneType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType - - -class WebhookIssuesMilestonedType(TypedDict): - """issues milestoned event""" - - action: Literal["milestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesMilestonedPropIssueType - milestone: WebhooksMilestoneType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookIssuesMilestonedPropIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[Union[WebhookIssuesMilestonedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, None]] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - List[Union[WebhookIssuesMilestonedPropIssuePropLabelsItemsType, None]] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, None] - ] - pull_request: NotRequired[WebhookIssuesMilestonedPropIssuePropPullRequestType] - reactions: WebhookIssuesMilestonedPropIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesMilestonedPropIssuePropUserType, None] - - -class WebhookIssuesMilestonedPropIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropAssigneesItemsType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesMilestonedPropIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesMilestonedPropIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, None] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - +from .group_0542 import ( + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType, +) -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType(TypedDict): - """App - GitHub apps are a new way to extend GitHub. They can be installed directly on - organizations and user accounts and granted access to specific repositories. - They come with granular permissions and built-in webhooks. GitHub apps are first - class actors within GitHub. - """ +class WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType(TypedDict): + """WebhookIssuesClosedPropIssueMergedPerformedViaGithubApp""" created_at: Union[datetime, None] description: Union[str, None] @@ -260,7 +72,9 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "security_and_analysis", "reminder", + "pull_request_review_thread", ] ] ] @@ -270,149 +84,13 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesClosedPropIssueAllof0PropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -__all__ = ( - "WebhookIssuesMilestonedType", - "WebhookIssuesMilestonedPropIssueType", - "WebhookIssuesMilestonedPropIssuePropAssigneeType", - "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", - "WebhookIssuesMilestonedPropIssuePropLabelsItemsType", - "WebhookIssuesMilestonedPropIssuePropMilestoneType", - "WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesMilestonedPropIssuePropPullRequestType", - "WebhookIssuesMilestonedPropIssuePropReactionsType", - "WebhookIssuesMilestonedPropIssuePropUserType", -) +__all__ = ("WebhookIssuesClosedPropIssueMergedPerformedViaGithubAppType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0548.py b/githubkit/versions/v2022_11_28/types/group_0548.py index 6dcbf513a..d9057ba8f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0548.py +++ b/githubkit/versions/v2022_11_28/types/group_0548.py @@ -13,27 +13,26 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookIssuesOpenedType(TypedDict): - """issues opened event""" +class WebhookIssuesDeletedType(TypedDict): + """issues deleted event""" - action: Literal["opened"] - changes: NotRequired[WebhookIssuesOpenedPropChangesType] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesOpenedPropIssueType + issue: WebhookIssuesDeletedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookIssuesOpenedPropIssueType(TypedDict): +class WebhookIssuesDeletedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -42,8 +41,8 @@ class WebhookIssuesOpenedPropIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] + assignee: NotRequired[Union[WebhookIssuesDeletedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesDeletedPropIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -63,17 +62,17 @@ class WebhookIssuesOpenedPropIssueType(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[List[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] + labels: NotRequired[List[WebhookIssuesDeletedPropIssuePropLabelsItemsType]] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] + milestone: Union[WebhookIssuesDeletedPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] + Union[WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] - reactions: WebhookIssuesOpenedPropIssuePropReactionsType + pull_request: NotRequired[WebhookIssuesDeletedPropIssuePropPullRequestType] + reactions: WebhookIssuesDeletedPropIssuePropReactionsType repository_url: str state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -81,10 +80,10 @@ class WebhookIssuesOpenedPropIssueType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] + user: Union[WebhookIssuesDeletedPropIssuePropUserType, None] -class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): +class WebhookIssuesDeletedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -110,7 +109,7 @@ class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssuesOpenedPropIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesDeletedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -136,7 +135,7 @@ class WebhookIssuesOpenedPropIssuePropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssuesOpenedPropIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesDeletedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -148,7 +147,7 @@ class WebhookIssuesOpenedPropIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): +class WebhookIssuesDeletedPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -157,7 +156,7 @@ class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -172,209 +171,7 @@ class WebhookIssuesOpenedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -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[ - Literal[ - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "content_reference", - "create", - "delete", - "deployment", - "deployment_review", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "milestone", - "organization", - "org_block", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "push", - "registry_package", - "release", - "repository", - "repository_dispatch", - "secret_scanning_alert", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_dispatch", - "workflow_run", - "security_and_analysis", - "pull_request_review_thread", - "reminder", - ] - ] - ] - 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] - - -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 WebhookIssuesOpenedPropIssuePropUserType(TypedDict): +class WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -400,194 +197,7 @@ class WebhookIssuesOpenedPropIssuePropUserType(TypedDict): url: NotRequired[str] -class WebhookIssuesOpenedPropChangesType(TypedDict): - """WebhookIssuesOpenedPropChanges""" - - old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] - old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType - - -class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): - """Issue - - The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. - """ - - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: NotRequired[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] - ] - assignees: List[ - Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - closed_at: Union[datetime, None] - comments: int - comments_url: str - created_at: datetime - draft: NotRequired[bool] - events_url: str - html_url: str - id: int - labels: NotRequired[ - List[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] - ] - labels_url: str - locked: NotRequired[bool] - milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] - node_id: str - number: int - performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, - None, - ] - ] - pull_request: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType - ] - reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType - repository_url: str - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[Union[str, None]] - timeline_url: NotRequired[str] - title: str - updated_at: datetime - url: str - user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( - TypedDict -): +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -646,6 +256,7 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "reminder", ] ] ] @@ -655,19 +266,16 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, - None, + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -693,11 +301,10 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwn url: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio - ns + """WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -739,8 +346,8 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPer workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" +class WebhookIssuesDeletedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesDeletedPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -749,7 +356,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): +class WebhookIssuesDeletedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -764,160 +371,7 @@ class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): 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] - - -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] - - -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType( - TypedDict -): - """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): +class WebhookIssuesDeletedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -943,46 +397,18 @@ class WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType(TypedDict): url: NotRequired[str] -class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): - """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - __all__ = ( - "WebhookIssuesOpenedType", - "WebhookIssuesOpenedPropIssueType", - "WebhookIssuesOpenedPropIssuePropAssigneeType", - "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropIssuePropMilestoneType", - "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropIssuePropPullRequestType", - "WebhookIssuesOpenedPropIssuePropReactionsType", - "WebhookIssuesOpenedPropIssuePropUserType", - "WebhookIssuesOpenedPropChangesType", - "WebhookIssuesOpenedPropChangesPropOldIssueType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", - "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", - "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", + "WebhookIssuesDeletedType", + "WebhookIssuesDeletedPropIssueType", + "WebhookIssuesDeletedPropIssuePropAssigneeType", + "WebhookIssuesDeletedPropIssuePropAssigneesItemsType", + "WebhookIssuesDeletedPropIssuePropLabelsItemsType", + "WebhookIssuesDeletedPropIssuePropMilestoneType", + "WebhookIssuesDeletedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesDeletedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesDeletedPropIssuePropPullRequestType", + "WebhookIssuesDeletedPropIssuePropReactionsType", + "WebhookIssuesDeletedPropIssuePropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0549.py b/githubkit/versions/v2022_11_28/types/group_0549.py index 14958ae05..66c6b5867 100644 --- a/githubkit/versions/v2022_11_28/types/group_0549.py +++ b/githubkit/versions/v2022_11_28/types/group_0549.py @@ -9,27 +9,415 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import WebhooksIssue2Type -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0394 import WebhooksMilestoneType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookIssuesPinnedType(TypedDict): - """issues pinned event""" +class WebhookIssuesDemilestonedType(TypedDict): + """issues demilestoned event""" - action: Literal["pinned"] + action: Literal["demilestoned"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type + issue: WebhookIssuesDemilestonedPropIssueType + milestone: NotRequired[WebhooksMilestoneType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookIssuesPinnedType",) +class WebhookIssuesDemilestonedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneeType, None] + ] + assignees: List[ + Union[WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[Union[WebhookIssuesDemilestonedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesDemilestonedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesDemilestonedPropIssuePropPullRequestType] + reactions: WebhookIssuesDemilestonedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesDemilestonedPropIssuePropUserType, None] + + +class WebhookIssuesDemilestonedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesDemilestonedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesDemilestonedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + 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] + + +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] + + +__all__ = ( + "WebhookIssuesDemilestonedType", + "WebhookIssuesDemilestonedPropIssueType", + "WebhookIssuesDemilestonedPropIssuePropAssigneeType", + "WebhookIssuesDemilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesDemilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesDemilestonedPropIssuePropMilestoneType", + "WebhookIssuesDemilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesDemilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesDemilestonedPropIssuePropPullRequestType", + "WebhookIssuesDemilestonedPropIssuePropReactionsType", + "WebhookIssuesDemilestonedPropIssuePropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0550.py b/githubkit/versions/v2022_11_28/types/group_0550.py index e9692e9ef..656e31529 100644 --- a/githubkit/versions/v2022_11_28/types/group_0550.py +++ b/githubkit/versions/v2022_11_28/types/group_0550.py @@ -13,26 +13,51 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0388 import WebhooksLabelType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookIssuesReopenedType(TypedDict): - """issues reopened event""" +class WebhookIssuesEditedType(TypedDict): + """issues edited event""" - action: Literal["reopened"] + action: Literal["edited"] + changes: WebhookIssuesEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesReopenedPropIssueType + issue: WebhookIssuesEditedPropIssueType + label: NotRequired[WebhooksLabelType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookIssuesReopenedPropIssueType(TypedDict): +class WebhookIssuesEditedPropChangesType(TypedDict): + """WebhookIssuesEditedPropChanges + + The changes to the issue. + """ + + body: NotRequired[WebhookIssuesEditedPropChangesPropBodyType] + title: NotRequired[WebhookIssuesEditedPropChangesPropTitleType] + + +class WebhookIssuesEditedPropChangesPropBodyType(TypedDict): + """WebhookIssuesEditedPropChangesPropBody""" + + from_: str + + +class WebhookIssuesEditedPropChangesPropTitleType(TypedDict): + """WebhookIssuesEditedPropChangesPropTitle""" + + from_: str + + +class WebhookIssuesEditedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -41,8 +66,8 @@ class WebhookIssuesReopenedPropIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhookIssuesReopenedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesReopenedPropIssuePropAssigneesItemsType, None]] + assignee: NotRequired[Union[WebhookIssuesEditedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesEditedPropIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -62,30 +87,28 @@ class WebhookIssuesReopenedPropIssueType(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[ - List[Union[WebhookIssuesReopenedPropIssuePropLabelsItemsType, None]] - ] + labels: NotRequired[List[WebhookIssuesEditedPropIssuePropLabelsItemsType]] labels_url: str locked: NotRequired[bool] - milestone: Union[WebhookIssuesReopenedPropIssuePropMilestoneType, None] + milestone: Union[WebhookIssuesEditedPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, None] + Union[WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[WebhookIssuesReopenedPropIssuePropPullRequestType] - reactions: WebhookIssuesReopenedPropIssuePropReactionsType + pull_request: NotRequired[WebhookIssuesEditedPropIssuePropPullRequestType] + reactions: WebhookIssuesEditedPropIssuePropReactionsType repository_url: str - state: Literal["open", "closed"] + state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] timeline_url: NotRequired[str] title: str updated_at: datetime url: str - user: Union[WebhookIssuesReopenedPropIssuePropUserType, None] + user: Union[WebhookIssuesEditedPropIssuePropUserType, None] -class WebhookIssuesReopenedPropIssuePropAssigneeType(TypedDict): +class WebhookIssuesEditedPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -107,11 +130,11 @@ class WebhookIssuesReopenedPropIssuePropAssigneeType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesEditedPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -137,7 +160,7 @@ class WebhookIssuesReopenedPropIssuePropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesEditedPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -149,7 +172,7 @@ class WebhookIssuesReopenedPropIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): +class WebhookIssuesEditedPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -158,7 +181,7 @@ class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, None] + creator: Union[WebhookIssuesEditedPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -173,7 +196,7 @@ class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType(TypedDict): +class WebhookIssuesEditedPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -199,7 +222,7 @@ class WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType(TypedDict): url: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType(TypedDict): +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -258,6 +281,7 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "security_and_analysis", "pull_request_review_thread", "reminder", ] @@ -269,16 +293,16 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -304,10 +328,10 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType(Typed url: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -337,7 +361,7 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType pages: NotRequired[Literal["read", "write"]] pull_requests: NotRequired[Literal["read", "write"]] repository_hooks: NotRequired[Literal["read", "write"]] - repository_projects: NotRequired[Literal["read", "write", "admin"]] + repository_projects: NotRequired[Literal["read", "write"]] secret_scanning_alerts: NotRequired[Literal["read", "write"]] secrets: NotRequired[Literal["read", "write"]] security_events: NotRequired[Literal["read", "write"]] @@ -349,8 +373,8 @@ class WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesReopenedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesReopenedPropIssuePropPullRequest""" +class WebhookIssuesEditedPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesEditedPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -359,7 +383,7 @@ class WebhookIssuesReopenedPropIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesReopenedPropIssuePropReactionsType(TypedDict): +class WebhookIssuesEditedPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -374,7 +398,7 @@ class WebhookIssuesReopenedPropIssuePropReactionsType(TypedDict): url: str -class WebhookIssuesReopenedPropIssuePropUserType(TypedDict): +class WebhookIssuesEditedPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -401,17 +425,20 @@ class WebhookIssuesReopenedPropIssuePropUserType(TypedDict): __all__ = ( - "WebhookIssuesReopenedType", - "WebhookIssuesReopenedPropIssueType", - "WebhookIssuesReopenedPropIssuePropAssigneeType", - "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", - "WebhookIssuesReopenedPropIssuePropLabelsItemsType", - "WebhookIssuesReopenedPropIssuePropMilestoneType", - "WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesReopenedPropIssuePropPullRequestType", - "WebhookIssuesReopenedPropIssuePropReactionsType", - "WebhookIssuesReopenedPropIssuePropUserType", + "WebhookIssuesEditedType", + "WebhookIssuesEditedPropChangesType", + "WebhookIssuesEditedPropChangesPropBodyType", + "WebhookIssuesEditedPropChangesPropTitleType", + "WebhookIssuesEditedPropIssueType", + "WebhookIssuesEditedPropIssuePropAssigneeType", + "WebhookIssuesEditedPropIssuePropAssigneesItemsType", + "WebhookIssuesEditedPropIssuePropLabelsItemsType", + "WebhookIssuesEditedPropIssuePropMilestoneType", + "WebhookIssuesEditedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesEditedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesEditedPropIssuePropPullRequestType", + "WebhookIssuesEditedPropIssuePropReactionsType", + "WebhookIssuesEditedPropIssuePropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0551.py b/githubkit/versions/v2022_11_28/types/group_0551.py index 7fc4f85dc..d13422f8b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0551.py +++ b/githubkit/versions/v2022_11_28/types/group_0551.py @@ -13,35 +13,28 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import WebhooksIssue2Type -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0388 import WebhooksLabelType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookIssuesTransferredType(TypedDict): - """issues transferred event""" +class WebhookIssuesLabeledType(TypedDict): + """issues labeled event""" - action: Literal["transferred"] - changes: WebhookIssuesTransferredPropChangesType + action: Literal["labeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssue2Type + issue: WebhookIssuesLabeledPropIssueType + label: NotRequired[WebhooksLabelType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookIssuesTransferredPropChangesType(TypedDict): - """WebhookIssuesTransferredPropChanges""" - - new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType - new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType - - -class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): +class WebhookIssuesLabeledPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -50,14 +43,8 @@ class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[ - Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, None] - ] - assignees: List[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, None - ] - ] + assignee: NotRequired[Union[WebhookIssuesLabeledPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesLabeledPropIssuePropAssigneesItemsType, None]] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -77,26 +64,17 @@ class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): events_url: str html_url: str id: int - labels: NotRequired[ - List[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType] - ] + labels: NotRequired[List[WebhookIssuesLabeledPropIssuePropLabelsItemsType]] labels_url: str locked: NotRequired[bool] - milestone: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, None - ] + milestone: Union[WebhookIssuesLabeledPropIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, - None, - ] + Union[WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType, None] ] - pull_request: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType - ] - reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType + pull_request: NotRequired[WebhookIssuesLabeledPropIssuePropPullRequestType] + reactions: WebhookIssuesLabeledPropIssuePropReactionsType repository_url: str state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -104,10 +82,10 @@ class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] + user: Union[WebhookIssuesLabeledPropIssuePropUserType, None] -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): +class WebhookIssuesLabeledPropIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -129,11 +107,11 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict) site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesLabeledPropIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -155,11 +133,11 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType(Type site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesLabeledPropIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -171,7 +149,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType(TypedDi url: str -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict): +class WebhookIssuesLabeledPropIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -180,10 +158,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType, - None, - ] + creator: Union[WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType, None] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -198,9 +173,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType(TypedDict url: str -class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType( - TypedDict -): +class WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -222,13 +195,11 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorTyp site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType( - TypedDict -): +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType(TypedDict): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -287,6 +258,8 @@ class actors within GitHub. "watch", "workflow_dispatch", "workflow_run", + "pull_request_review_thread", + "reminder", ] ] ] @@ -296,19 +269,16 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType, - None, + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType, None ] permissions: NotRequired[ - WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType( - TypedDict -): +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -334,11 +304,10 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr url: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPerm - issions + """WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissions The set of permissions for the GitHub app """ @@ -360,7 +329,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr organization_hooks: NotRequired[Literal["read", "write"]] organization_packages: NotRequired[Literal["read", "write"]] organization_plan: NotRequired[Literal["read", "write"]] - organization_projects: NotRequired[Literal["read", "write"]] + organization_projects: NotRequired[Literal["read", "write", "admin"]] organization_secrets: NotRequired[Literal["read", "write"]] organization_self_hosted_runners: NotRequired[Literal["read", "write"]] organization_user_blocking: NotRequired[Literal["read", "write"]] @@ -380,8 +349,8 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPr workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDict): - """WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequest""" +class WebhookIssuesLabeledPropIssuePropPullRequestType(TypedDict): + """WebhookIssuesLabeledPropIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -390,7 +359,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType(TypedDi url: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict): +class WebhookIssuesLabeledPropIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -405,162 +374,7 @@ class WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType(TypedDict url: str -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] - - -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] - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType( - TypedDict -): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDict): +class WebhookIssuesLabeledPropIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -582,40 +396,22 @@ class WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType(TypedDic site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] -class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( - TypedDict -): - """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - __all__ = ( - "WebhookIssuesTransferredType", - "WebhookIssuesTransferredPropChangesType", - "WebhookIssuesTransferredPropChangesPropNewIssueType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", - "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", - "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", + "WebhookIssuesLabeledType", + "WebhookIssuesLabeledPropIssueType", + "WebhookIssuesLabeledPropIssuePropAssigneeType", + "WebhookIssuesLabeledPropIssuePropAssigneesItemsType", + "WebhookIssuesLabeledPropIssuePropLabelsItemsType", + "WebhookIssuesLabeledPropIssuePropMilestoneType", + "WebhookIssuesLabeledPropIssuePropMilestonePropCreatorType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesLabeledPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLabeledPropIssuePropPullRequestType", + "WebhookIssuesLabeledPropIssuePropReactionsType", + "WebhookIssuesLabeledPropIssuePropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0552.py b/githubkit/versions/v2022_11_28/types/group_0552.py index 1070cf9b0..47520654b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0552.py +++ b/githubkit/versions/v2022_11_28/types/group_0552.py @@ -9,29 +9,409 @@ from __future__ import annotations -from typing import Union, Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0388 import WebhooksIssueType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0391 import WebhooksUserMannequinType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookIssuesUnassignedType(TypedDict): - """issues unassigned event""" +class WebhookIssuesLockedType(TypedDict): + """issues locked event""" - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhooksUserMannequinType, None]] + action: Literal["locked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType + issue: WebhookIssuesLockedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookIssuesUnassignedType",) +class WebhookIssuesLockedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesLockedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesLockedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[Union[WebhookIssuesLockedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: Literal[True] + milestone: Union[WebhookIssuesLockedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesLockedPropIssuePropPullRequestType] + reactions: WebhookIssuesLockedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesLockedPropIssuePropUserType, None] + + +class WebhookIssuesLockedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +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] + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + "security_and_analysis", + ] + ] + ] + 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] + + +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] + + +__all__ = ( + "WebhookIssuesLockedType", + "WebhookIssuesLockedPropIssueType", + "WebhookIssuesLockedPropIssuePropAssigneeType", + "WebhookIssuesLockedPropIssuePropAssigneesItemsType", + "WebhookIssuesLockedPropIssuePropLabelsItemsType", + "WebhookIssuesLockedPropIssuePropMilestoneType", + "WebhookIssuesLockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesLockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesLockedPropIssuePropPullRequestType", + "WebhookIssuesLockedPropIssuePropReactionsType", + "WebhookIssuesLockedPropIssuePropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0553.py b/githubkit/versions/v2022_11_28/types/group_0553.py index e225730b8..f4125bc7e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0553.py +++ b/githubkit/versions/v2022_11_28/types/group_0553.py @@ -9,29 +9,410 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0383 import WebhooksLabelType -from .group_0388 import WebhooksIssueType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0394 import WebhooksMilestoneType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookIssuesUnlabeledType(TypedDict): - """issues unlabeled event""" +class WebhookIssuesMilestonedType(TypedDict): + """issues milestoned event""" - action: Literal["unlabeled"] + action: Literal["milestoned"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhooksIssueType - label: NotRequired[WebhooksLabelType] + issue: WebhookIssuesMilestonedPropIssueType + milestone: WebhooksMilestoneType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookIssuesUnlabeledType",) +class WebhookIssuesMilestonedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesMilestonedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesMilestonedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[Union[WebhookIssuesMilestonedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesMilestonedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesMilestonedPropIssuePropPullRequestType] + reactions: WebhookIssuesMilestonedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesMilestonedPropIssuePropUserType, None] + + +class WebhookIssuesMilestonedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesMilestonedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesMilestonedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "reminder", + ] + ] + ] + 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] + + +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] + + +__all__ = ( + "WebhookIssuesMilestonedType", + "WebhookIssuesMilestonedPropIssueType", + "WebhookIssuesMilestonedPropIssuePropAssigneeType", + "WebhookIssuesMilestonedPropIssuePropAssigneesItemsType", + "WebhookIssuesMilestonedPropIssuePropLabelsItemsType", + "WebhookIssuesMilestonedPropIssuePropMilestoneType", + "WebhookIssuesMilestonedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesMilestonedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesMilestonedPropIssuePropPullRequestType", + "WebhookIssuesMilestonedPropIssuePropReactionsType", + "WebhookIssuesMilestonedPropIssuePropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0554.py b/githubkit/versions/v2022_11_28/types/group_0554.py index f4f228898..d4f71259e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0554.py +++ b/githubkit/versions/v2022_11_28/types/group_0554.py @@ -13,26 +13,27 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookIssuesUnlockedType(TypedDict): - """issues unlocked event""" +class WebhookIssuesOpenedType(TypedDict): + """issues opened event""" - action: Literal["unlocked"] + action: Literal["opened"] + changes: NotRequired[WebhookIssuesOpenedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - issue: WebhookIssuesUnlockedPropIssueType + issue: WebhookIssuesOpenedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookIssuesUnlockedPropIssueType(TypedDict): +class WebhookIssuesOpenedPropIssueType(TypedDict): """Issue The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -41,8 +42,386 @@ class WebhookIssuesUnlockedPropIssueType(TypedDict): active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: NotRequired[Union[WebhookIssuesUnlockedPropIssuePropAssigneeType, None]] - assignees: List[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, None]] + assignee: NotRequired[Union[WebhookIssuesOpenedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesOpenedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[List[WebhookIssuesOpenedPropIssuePropLabelsItemsType]] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesOpenedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesOpenedPropIssuePropPullRequestType] + reactions: WebhookIssuesOpenedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesOpenedPropIssuePropUserType, None] + + +class WebhookIssuesOpenedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +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] + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "security_and_analysis", + "pull_request_review_thread", + "reminder", + ] + ] + ] + 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] + + +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 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] + + +class WebhookIssuesOpenedPropChangesType(TypedDict): + """WebhookIssuesOpenedPropChanges""" + + old_issue: Union[WebhookIssuesOpenedPropChangesPropOldIssueType, None] + old_repository: WebhookIssuesOpenedPropChangesPropOldRepositoryType + + +class WebhookIssuesOpenedPropChangesPropOldIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType, None] + ] + assignees: List[ + Union[WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType, None] + ] author_association: Literal[ "COLLABORATOR", "CONTRIBUTOR", @@ -63,18 +442,23 @@ class WebhookIssuesUnlockedPropIssueType(TypedDict): html_url: str id: int labels: NotRequired[ - List[Union[WebhookIssuesUnlockedPropIssuePropLabelsItemsType, None]] + List[WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType] ] labels_url: str - locked: Literal[False] - milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestoneType, None] + locked: NotRequired[bool] + milestone: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType, None] node_id: str number: int performed_via_github_app: NotRequired[ - Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, None] + Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType, + None, + ] ] - pull_request: NotRequired[WebhookIssuesUnlockedPropIssuePropPullRequestType] - reactions: WebhookIssuesUnlockedPropIssuePropReactionsType + pull_request: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType + ] + reactions: WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType repository_url: str state: NotRequired[Literal["open", "closed"]] state_reason: NotRequired[Union[str, None]] @@ -82,10 +466,10 @@ class WebhookIssuesUnlockedPropIssueType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookIssuesUnlockedPropIssuePropUserType, None] + user: Union[WebhookIssuesOpenedPropChangesPropOldIssuePropUserType, None] -class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -111,7 +495,7 @@ class WebhookIssuesUnlockedPropIssuePropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropAssigneesItemsType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -137,7 +521,7 @@ class WebhookIssuesUnlockedPropIssuePropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropLabelsItemsType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType(TypedDict): """Label""" color: str @@ -149,7 +533,7 @@ class WebhookIssuesUnlockedPropIssuePropLabelsItemsType(TypedDict): url: str -class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -158,7 +542,9 @@ class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): closed_at: Union[datetime, None] closed_issues: int created_at: datetime - creator: Union[WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType, None] + creator: Union[ + WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType, None + ] description: Union[str, None] due_on: Union[datetime, None] html_url: str @@ -173,7 +559,7 @@ class WebhookIssuesUnlockedPropIssuePropMilestoneType(TypedDict): url: str -class WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -199,7 +585,9 @@ class WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType(TypedDict): url: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType( + TypedDict +): """App GitHub apps are a new way to extend GitHub. They can be installed directly on @@ -267,16 +655,19 @@ class actors within GitHub. name: str node_id: str owner: Union[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType, None + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType, + None, ] permissions: NotRequired[ - WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType + WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType ] slug: NotRequired[str] updated_at: Union[datetime, None] -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -302,10 +693,11 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType(Typed url: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType( +class WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissions + """WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissio + ns The set of permissions for the GitHub app """ @@ -347,8 +739,8 @@ class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType workflows: NotRequired[Literal["read", "write"]] -class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): - """WebhookIssuesUnlockedPropIssuePropPullRequest""" +class WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType(TypedDict): + """WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequest""" diff_url: NotRequired[str] html_url: NotRequired[str] @@ -357,7 +749,7 @@ class WebhookIssuesUnlockedPropIssuePropPullRequestType(TypedDict): url: NotRequired[str] -class WebhookIssuesUnlockedPropIssuePropReactionsType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType(TypedDict): """Reactions""" plus_one: int @@ -372,7 +764,7 @@ class WebhookIssuesUnlockedPropIssuePropReactionsType(TypedDict): url: str -class WebhookIssuesUnlockedPropIssuePropUserType(TypedDict): +class WebhookIssuesOpenedPropChangesPropOldIssuePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -398,18 +790,199 @@ class WebhookIssuesUnlockedPropIssuePropUserType(TypedDict): url: NotRequired[str] +class WebhookIssuesOpenedPropChangesPropOldRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_discussions: NotRequired[bool] + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType, None + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType, None] + permissions: NotRequired[ + WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType( + TypedDict +): + """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] + + +class WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType(TypedDict): + """WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + __all__ = ( - "WebhookIssuesUnlockedType", - "WebhookIssuesUnlockedPropIssueType", - "WebhookIssuesUnlockedPropIssuePropAssigneeType", - "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", - "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", - "WebhookIssuesUnlockedPropIssuePropMilestoneType", - "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", - "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", - "WebhookIssuesUnlockedPropIssuePropPullRequestType", - "WebhookIssuesUnlockedPropIssuePropReactionsType", - "WebhookIssuesUnlockedPropIssuePropUserType", + "WebhookIssuesOpenedType", + "WebhookIssuesOpenedPropIssueType", + "WebhookIssuesOpenedPropIssuePropAssigneeType", + "WebhookIssuesOpenedPropIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropIssuePropMilestoneType", + "WebhookIssuesOpenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropIssuePropPullRequestType", + "WebhookIssuesOpenedPropIssuePropReactionsType", + "WebhookIssuesOpenedPropIssuePropUserType", + "WebhookIssuesOpenedPropChangesType", + "WebhookIssuesOpenedPropChangesPropOldIssueType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneeType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropAssigneesItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropLabelsItemsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestoneType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropMilestonePropCreatorType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropPullRequestType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropReactionsType", + "WebhookIssuesOpenedPropChangesPropOldIssuePropUserType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropCustomPropertiesType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropLicenseType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropOwnerType", + "WebhookIssuesOpenedPropChangesPropOldRepositoryPropPermissionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0555.py b/githubkit/versions/v2022_11_28/types/group_0555.py index bcb9e134b..51ec09075 100644 --- a/githubkit/versions/v2022_11_28/types/group_0555.py +++ b/githubkit/versions/v2022_11_28/types/group_0555.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0390 import WebhooksIssue2Type -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0395 import WebhooksIssue2Type +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookIssuesUnpinnedType(TypedDict): - """issues unpinned event""" +class WebhookIssuesPinnedType(TypedDict): + """issues pinned event""" - action: Literal["unpinned"] + action: Literal["pinned"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] issue: WebhooksIssue2Type @@ -32,4 +32,4 @@ class WebhookIssuesUnpinnedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookIssuesUnpinnedType",) +__all__ = ("WebhookIssuesPinnedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0556.py b/githubkit/versions/v2022_11_28/types/group_0556.py index f633fda26..08f44f4ad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0556.py +++ b/githubkit/versions/v2022_11_28/types/group_0556.py @@ -9,27 +9,409 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0383 import WebhooksLabelType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookLabelCreatedType(TypedDict): - """label created event""" +class WebhookIssuesReopenedType(TypedDict): + """issues reopened event""" - action: Literal["created"] + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType + issue: WebhookIssuesReopenedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookLabelCreatedType",) +class WebhookIssuesReopenedPropIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesReopenedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesReopenedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[Union[WebhookIssuesReopenedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[WebhookIssuesReopenedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesReopenedPropIssuePropPullRequestType] + reactions: WebhookIssuesReopenedPropIssuePropReactionsType + repository_url: str + state: Literal["open", "closed"] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesReopenedPropIssuePropUserType, None] + + +class WebhookIssuesReopenedPropIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookIssuesReopenedPropIssuePropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookIssuesReopenedPropIssuePropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType, None] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + "pull_request_review_thread", + "reminder", + ] + ] + ] + 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] + + +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] + + +__all__ = ( + "WebhookIssuesReopenedType", + "WebhookIssuesReopenedPropIssueType", + "WebhookIssuesReopenedPropIssuePropAssigneeType", + "WebhookIssuesReopenedPropIssuePropAssigneesItemsType", + "WebhookIssuesReopenedPropIssuePropLabelsItemsType", + "WebhookIssuesReopenedPropIssuePropMilestoneType", + "WebhookIssuesReopenedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesReopenedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesReopenedPropIssuePropPullRequestType", + "WebhookIssuesReopenedPropIssuePropReactionsType", + "WebhookIssuesReopenedPropIssuePropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0557.py b/githubkit/versions/v2022_11_28/types/group_0557.py index 8d4856feb..d281d4097 100644 --- a/githubkit/versions/v2022_11_28/types/group_0557.py +++ b/githubkit/versions/v2022_11_28/types/group_0557.py @@ -9,27 +9,613 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0383 import WebhooksLabelType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0395 import WebhooksIssue2Type +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookLabelDeletedType(TypedDict): - """label deleted event""" +class WebhookIssuesTransferredType(TypedDict): + """issues transferred event""" - action: Literal["deleted"] + action: Literal["transferred"] + changes: WebhookIssuesTransferredPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType + issue: WebhooksIssue2Type organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookLabelDeletedType",) +class WebhookIssuesTransferredPropChangesType(TypedDict): + """WebhookIssuesTransferredPropChanges""" + + new_issue: WebhookIssuesTransferredPropChangesPropNewIssueType + new_repository: WebhookIssuesTransferredPropChangesPropNewRepositoryType + + +class WebhookIssuesTransferredPropChangesPropNewIssueType(TypedDict): + """Issue + + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[ + Union[WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType, None] + ] + assignees: List[ + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType, None + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType] + ] + labels_url: str + locked: NotRequired[bool] + milestone: Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType, None + ] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType, + None, + ] + ] + pull_request: NotRequired[ + WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType + ] + reactions: WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesTransferredPropChangesPropNewIssuePropUserType, None] + + +class WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +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] + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + 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] + + +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 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] + + +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] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType( + TypedDict +): + """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] + + +class WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType( + TypedDict +): + """WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +__all__ = ( + "WebhookIssuesTransferredType", + "WebhookIssuesTransferredPropChangesType", + "WebhookIssuesTransferredPropChangesPropNewIssueType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneeType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropAssigneesItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropLabelsItemsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestoneType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropMilestonePropCreatorType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropPullRequestType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropReactionsType", + "WebhookIssuesTransferredPropChangesPropNewIssuePropUserType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropCustomPropertiesType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropLicenseType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropOwnerType", + "WebhookIssuesTransferredPropChangesPropNewRepositoryPropPermissionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0558.py b/githubkit/versions/v2022_11_28/types/group_0558.py index ee3de4ac9..41e183452 100644 --- a/githubkit/versions/v2022_11_28/types/group_0558.py +++ b/githubkit/versions/v2022_11_28/types/group_0558.py @@ -9,63 +9,29 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0383 import WebhooksLabelType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0393 import WebhooksIssueType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0396 import WebhooksUserMannequinType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookLabelEditedType(TypedDict): - """label edited event""" +class WebhookIssuesUnassignedType(TypedDict): + """issues unassigned event""" - action: Literal["edited"] - changes: NotRequired[WebhookLabelEditedPropChangesType] + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhooksUserMannequinType, None]] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: WebhooksLabelType + issue: WebhooksIssueType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -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__ = ( - "WebhookLabelEditedType", - "WebhookLabelEditedPropChangesType", - "WebhookLabelEditedPropChangesPropColorType", - "WebhookLabelEditedPropChangesPropDescriptionType", - "WebhookLabelEditedPropChangesPropNameType", -) +__all__ = ("WebhookIssuesUnassignedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0559.py b/githubkit/versions/v2022_11_28/types/group_0559.py index 38ca9c4d0..4d337e699 100644 --- a/githubkit/versions/v2022_11_28/types/group_0559.py +++ b/githubkit/versions/v2022_11_28/types/group_0559.py @@ -12,27 +12,26 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0392 import WebhooksMarketplacePurchaseType -from .group_0393 import WebhooksPreviousMarketplacePurchaseType +from .group_0388 import WebhooksLabelType +from .group_0393 import WebhooksIssueType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchaseCancelledType(TypedDict): - """marketplace_purchase cancelled event""" +class WebhookIssuesUnlabeledType(TypedDict): + """issues unlabeled event""" - action: Literal["cancelled"] - effective_date: str + action: Literal["unlabeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + issue: WebhooksIssueType + label: NotRequired[WebhooksLabelType] organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookMarketplacePurchaseCancelledType",) +__all__ = ("WebhookIssuesUnlabeledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0560.py b/githubkit/versions/v2022_11_28/types/group_0560.py index a66b7628f..3ca62adbf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0560.py +++ b/githubkit/versions/v2022_11_28/types/group_0560.py @@ -9,78 +9,407 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0392 import WebhooksMarketplacePurchaseType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchaseChangedType(TypedDict): - """marketplace_purchase changed event""" +class WebhookIssuesUnlockedType(TypedDict): + """issues unlocked event""" - action: Literal["changed"] - effective_date: str + action: Literal["unlocked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + issue: WebhookIssuesUnlockedPropIssueType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType - ] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType(TypedDict): - """Marketplace Purchase""" +class WebhookIssuesUnlockedPropIssueType(TypedDict): + """Issue - account: ( - WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType - ) - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: Union[bool, None] - plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType - unit_count: int + The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. + """ + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: NotRequired[Union[WebhookIssuesUnlockedPropIssuePropAssigneeType, None]] + assignees: List[Union[WebhookIssuesUnlockedPropIssuePropAssigneesItemsType, None]] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + closed_at: Union[datetime, None] + comments: int + comments_url: str + created_at: datetime + draft: NotRequired[bool] + events_url: str + html_url: str + id: int + labels: NotRequired[ + List[Union[WebhookIssuesUnlockedPropIssuePropLabelsItemsType, None]] + ] + labels_url: str + locked: Literal[False] + milestone: Union[WebhookIssuesUnlockedPropIssuePropMilestoneType, None] + node_id: str + number: int + performed_via_github_app: NotRequired[ + Union[WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType, None] + ] + pull_request: NotRequired[WebhookIssuesUnlockedPropIssuePropPullRequestType] + reactions: WebhookIssuesUnlockedPropIssuePropReactionsType + repository_url: str + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[Union[str, None]] + timeline_url: NotRequired[str] + title: str + updated_at: datetime + url: str + user: Union[WebhookIssuesUnlockedPropIssuePropUserType, None] -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" +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] + + +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] + + +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 - organization_billing_email: Union[str, None] - type: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType( +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] + + +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[ + Literal[ + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "content_reference", + "create", + "delete", + "deployment", + "deployment_review", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "milestone", + "organization", + "org_block", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "push", + "registry_package", + "release", + "repository", + "repository_dispatch", + "secret_scanning_alert", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_dispatch", + "workflow_run", + ] + ] + ] + 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] + + +class WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType( TypedDict ): - """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" + """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] - bullets: List[str] - description: str - has_free_trial: bool + +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 - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] __all__ = ( - "WebhookMarketplacePurchaseChangedType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", + "WebhookIssuesUnlockedType", + "WebhookIssuesUnlockedPropIssueType", + "WebhookIssuesUnlockedPropIssuePropAssigneeType", + "WebhookIssuesUnlockedPropIssuePropAssigneesItemsType", + "WebhookIssuesUnlockedPropIssuePropLabelsItemsType", + "WebhookIssuesUnlockedPropIssuePropMilestoneType", + "WebhookIssuesUnlockedPropIssuePropMilestonePropCreatorType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropOwnerType", + "WebhookIssuesUnlockedPropIssuePropPerformedViaGithubAppPropPermissionsType", + "WebhookIssuesUnlockedPropIssuePropPullRequestType", + "WebhookIssuesUnlockedPropIssuePropReactionsType", + "WebhookIssuesUnlockedPropIssuePropUserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0561.py b/githubkit/versions/v2022_11_28/types/group_0561.py index 0d79abd47..408155dfe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0561.py +++ b/githubkit/versions/v2022_11_28/types/group_0561.py @@ -9,80 +9,27 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0392 import WebhooksMarketplacePurchaseType +from .group_0395 import WebhooksIssue2Type +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePendingChangeType(TypedDict): - """marketplace_purchase pending_change event""" +class WebhookIssuesUnpinnedType(TypedDict): + """issues unpinned event""" - action: Literal["pending_change"] - effective_date: str + action: Literal["unpinned"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + issue: WebhooksIssue2Type organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[ - WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType - ] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( - TypedDict -): - """Marketplace Purchase""" - - account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType - billing_cycle: str - free_trial_ends_on: Union[str, None] - next_billing_date: NotRequired[Union[str, None]] - on_free_trial: bool - plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType - unit_count: int - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun - t - """ - - id: int - login: str - node_id: str - organization_billing_email: Union[str, None] - type: str - - -class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( - TypedDict -): - """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" - - bullets: List[str] - description: str - has_free_trial: bool - id: int - monthly_price_in_cents: int - name: str - price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] - unit_name: Union[str, None] - yearly_price_in_cents: int - - -__all__ = ( - "WebhookMarketplacePurchasePendingChangeType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", -) +__all__ = ("WebhookIssuesUnpinnedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0562.py b/githubkit/versions/v2022_11_28/types/group_0562.py index 83cda9516..1ae2a2497 100644 --- a/githubkit/versions/v2022_11_28/types/group_0562.py +++ b/githubkit/versions/v2022_11_28/types/group_0562.py @@ -9,80 +9,27 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0393 import WebhooksPreviousMarketplacePurchaseType +from .group_0388 import WebhooksLabelType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): - """marketplace_purchase pending_change_cancelled event""" +class WebhookLabelCreatedType(TypedDict): + """label created event""" - action: Literal["pending_change_cancelled"] - effective_date: str + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: ( - WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType - ) + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -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__ = ( - "WebhookMarketplacePurchasePendingChangeCancelledType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", - "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", -) +__all__ = ("WebhookLabelCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0563.py b/githubkit/versions/v2022_11_28/types/group_0563.py index e565f7cf7..c8dc83460 100644 --- a/githubkit/versions/v2022_11_28/types/group_0563.py +++ b/githubkit/versions/v2022_11_28/types/group_0563.py @@ -12,27 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0392 import WebhooksMarketplacePurchaseType -from .group_0393 import WebhooksPreviousMarketplacePurchaseType +from .group_0388 import WebhooksLabelType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookMarketplacePurchasePurchasedType(TypedDict): - """marketplace_purchase purchased event""" +class WebhookLabelDeletedType(TypedDict): + """label deleted event""" - action: Literal["purchased"] - effective_date: str + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - marketplace_purchase: WebhooksMarketplacePurchaseType + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] - previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] - repository: NotRequired[RepositoryWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookMarketplacePurchasePurchasedType",) +__all__ = ("WebhookLabelDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0564.py b/githubkit/versions/v2022_11_28/types/group_0564.py index 5f1988a1d..b4049114a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0564.py +++ b/githubkit/versions/v2022_11_28/types/group_0564.py @@ -9,64 +9,63 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0379 import WebhooksUserType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0388 import WebhooksLabelType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookMemberAddedType(TypedDict): - """member added event""" +class WebhookLabelEditedType(TypedDict): + """label edited event""" - action: Literal["added"] - changes: NotRequired[WebhookMemberAddedPropChangesType] + action: Literal["edited"] + changes: NotRequired[WebhookLabelEditedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] + label: WebhooksLabelType organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookMemberAddedPropChangesType(TypedDict): - """WebhookMemberAddedPropChanges""" +class WebhookLabelEditedPropChangesType(TypedDict): + """WebhookLabelEditedPropChanges - permission: NotRequired[WebhookMemberAddedPropChangesPropPermissionType] - role_name: NotRequired[WebhookMemberAddedPropChangesPropRoleNameType] + The changes to the label if the action was `edited`. + """ + color: NotRequired[WebhookLabelEditedPropChangesPropColorType] + description: NotRequired[WebhookLabelEditedPropChangesPropDescriptionType] + name: NotRequired[WebhookLabelEditedPropChangesPropNameType] -class WebhookMemberAddedPropChangesPropPermissionType(TypedDict): - """WebhookMemberAddedPropChangesPropPermission - This field is included for legacy purposes; use the `role_name` field instead. - The `maintain` - role is mapped to `write` and the `triage` role is mapped to `read`. To - determine the role - assigned to the collaborator, use the `role_name` field instead, which will - provide the full - role name, including custom roles. - """ +class WebhookLabelEditedPropChangesPropColorType(TypedDict): + """WebhookLabelEditedPropChangesPropColor""" - to: Literal["write", "admin", "read"] + from_: str -class WebhookMemberAddedPropChangesPropRoleNameType(TypedDict): - """WebhookMemberAddedPropChangesPropRoleName +class WebhookLabelEditedPropChangesPropDescriptionType(TypedDict): + """WebhookLabelEditedPropChangesPropDescription""" - The role assigned to the collaborator. - """ + from_: str + + +class WebhookLabelEditedPropChangesPropNameType(TypedDict): + """WebhookLabelEditedPropChangesPropName""" - to: str + from_: str __all__ = ( - "WebhookMemberAddedType", - "WebhookMemberAddedPropChangesType", - "WebhookMemberAddedPropChangesPropPermissionType", - "WebhookMemberAddedPropChangesPropRoleNameType", + "WebhookLabelEditedType", + "WebhookLabelEditedPropChangesType", + "WebhookLabelEditedPropChangesPropColorType", + "WebhookLabelEditedPropChangesPropDescriptionType", + "WebhookLabelEditedPropChangesPropNameType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0565.py b/githubkit/versions/v2022_11_28/types/group_0565.py index 170abfb40..9c3a8ed14 100644 --- a/githubkit/versions/v2022_11_28/types/group_0565.py +++ b/githubkit/versions/v2022_11_28/types/group_0565.py @@ -9,56 +9,30 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0379 import WebhooksUserType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0397 import WebhooksMarketplacePurchaseType +from .group_0398 import WebhooksPreviousMarketplacePurchaseType -class WebhookMemberEditedType(TypedDict): - """member edited event""" +class WebhookMarketplacePurchaseCancelledType(TypedDict): + """marketplace_purchase cancelled event""" - action: Literal["edited"] - changes: WebhookMemberEditedPropChangesType + action: Literal["cancelled"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -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__ = ( - "WebhookMemberEditedType", - "WebhookMemberEditedPropChangesType", - "WebhookMemberEditedPropChangesPropOldPermissionType", - "WebhookMemberEditedPropChangesPropPermissionType", -) +__all__ = ("WebhookMarketplacePurchaseCancelledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0566.py b/githubkit/versions/v2022_11_28/types/group_0566.py index e7388332c..4d4ade667 100644 --- a/githubkit/versions/v2022_11_28/types/group_0566.py +++ b/githubkit/versions/v2022_11_28/types/group_0566.py @@ -9,27 +9,78 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0379 import WebhooksUserType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0397 import WebhooksMarketplacePurchaseType -class WebhookMemberRemovedType(TypedDict): - """member removed event""" +class WebhookMarketplacePurchaseChangedType(TypedDict): + """marketplace_purchase changed event""" - action: Literal["removed"] + action: Literal["changed"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType + ] + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -__all__ = ("WebhookMemberRemovedType",) +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType(TypedDict): + """Marketplace Purchase""" + + account: ( + WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType + ) + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: Union[bool, None] + plan: WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccount""" + + id: int + login: str + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int + + +__all__ = ( + "WebhookMarketplacePurchaseChangedType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchaseChangedPropPreviousMarketplacePurchasePropPlanType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0567.py b/githubkit/versions/v2022_11_28/types/group_0567.py index e51af55b1..b047a4df0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0567.py +++ b/githubkit/versions/v2022_11_28/types/group_0567.py @@ -9,58 +9,80 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0379 import WebhooksUserType -from .group_0394 import WebhooksTeamType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0397 import WebhooksMarketplacePurchaseType -class WebhookMembershipAddedType(TypedDict): - """membership added event""" +class WebhookMarketplacePurchasePendingChangeType(TypedDict): + """marketplace_purchase pending_change event""" - action: Literal["added"] + action: Literal["pending_change"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] - organization: OrganizationSimpleWebhooksType + marketplace_purchase: WebhooksMarketplacePurchaseType + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[ + WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType + ] repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team"] - sender: Union[WebhookMembershipAddedPropSenderType, None] - team: WebhooksTeamType - - -class WebhookMembershipAddedPropSenderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + sender: SimpleUserWebhooksType + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType( + TypedDict +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: Union[str, None] + next_billing_date: NotRequired[Union[str, None]] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccoun + t + """ + id: int login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + node_id: str + organization_billing_email: Union[str, None] + type: str + + +class WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlan""" + + bullets: List[str] + description: str + has_free_trial: bool + id: int + monthly_price_in_cents: int + name: str + price_model: Literal["FREE", "FLAT_RATE", "PER_UNIT"] + unit_name: Union[str, None] + yearly_price_in_cents: int __all__ = ( - "WebhookMembershipAddedType", - "WebhookMembershipAddedPropSenderType", + "WebhookMarketplacePurchasePendingChangeType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangePropPreviousMarketplacePurchasePropPlanType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0568.py b/githubkit/versions/v2022_11_28/types/group_0568.py index 4236f7bce..c8b64c0ef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0568.py +++ b/githubkit/versions/v2022_11_28/types/group_0568.py @@ -9,58 +9,80 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0379 import WebhooksUserType -from .group_0394 import WebhooksTeamType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0398 import WebhooksPreviousMarketplacePurchaseType -class WebhookMembershipRemovedType(TypedDict): - """membership removed event""" +class WebhookMarketplacePurchasePendingChangeCancelledType(TypedDict): + """marketplace_purchase pending_change_cancelled event""" - action: Literal["removed"] + action: Literal["pending_change_cancelled"] + effective_date: str enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - member: Union[WebhooksUserType, None] - organization: OrganizationSimpleWebhooksType + marketplace_purchase: ( + WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType + ) + organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] repository: NotRequired[RepositoryWebhooksType] - scope: Literal["team", "organization"] - sender: Union[WebhookMembershipRemovedPropSenderType, None] - team: WebhooksTeamType - - -class WebhookMembershipRemovedPropSenderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] + sender: SimpleUserWebhooksType + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType( + TypedDict +): + """Marketplace Purchase""" + + account: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType + billing_cycle: str + free_trial_ends_on: None + next_billing_date: Union[str, None] + on_free_trial: bool + plan: WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType + unit_count: int + + +class WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType( + TypedDict +): + """WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccou + nt + """ + id: int login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + 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__ = ( - "WebhookMembershipRemovedType", - "WebhookMembershipRemovedPropSenderType", + "WebhookMarketplacePurchasePendingChangeCancelledType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchaseType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropAccountType", + "WebhookMarketplacePurchasePendingChangeCancelledPropMarketplacePurchasePropPlanType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0569.py b/githubkit/versions/v2022_11_28/types/group_0569.py index 84df445f8..a0668621b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0569.py +++ b/githubkit/versions/v2022_11_28/types/group_0569.py @@ -12,22 +12,27 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0395 import MergeGroupType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0397 import WebhooksMarketplacePurchaseType +from .group_0398 import WebhooksPreviousMarketplacePurchaseType -class WebhookMergeGroupChecksRequestedType(TypedDict): - """WebhookMergeGroupChecksRequested""" +class WebhookMarketplacePurchasePurchasedType(TypedDict): + """marketplace_purchase purchased event""" - action: Literal["checks_requested"] + action: Literal["purchased"] + effective_date: str + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - merge_group: MergeGroupType + marketplace_purchase: WebhooksMarketplacePurchaseType organization: NotRequired[OrganizationSimpleWebhooksType] + previous_marketplace_purchase: NotRequired[WebhooksPreviousMarketplacePurchaseType] repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookMergeGroupChecksRequestedType",) +__all__ = ("WebhookMarketplacePurchasePurchasedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0570.py b/githubkit/versions/v2022_11_28/types/group_0570.py index 12b0a0dde..a98edb9e0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0570.py +++ b/githubkit/versions/v2022_11_28/types/group_0570.py @@ -9,26 +9,64 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0395 import MergeGroupType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0384 import WebhooksUserType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookMergeGroupDestroyedType(TypedDict): - """WebhookMergeGroupDestroyed""" +class WebhookMemberAddedType(TypedDict): + """member added event""" - action: Literal["destroyed"] - reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] + action: Literal["added"] + changes: NotRequired[WebhookMemberAddedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - merge_group: MergeGroupType + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookMergeGroupDestroyedType",) +class WebhookMemberAddedPropChangesType(TypedDict): + """WebhookMemberAddedPropChanges""" + + permission: NotRequired[WebhookMemberAddedPropChangesPropPermissionType] + role_name: NotRequired[WebhookMemberAddedPropChangesPropRoleNameType] + + +class WebhookMemberAddedPropChangesPropPermissionType(TypedDict): + """WebhookMemberAddedPropChangesPropPermission + + This field is included for legacy purposes; use the `role_name` field instead. + The `maintain` + role is mapped to `write` and the `triage` role is mapped to `read`. To + determine the role + assigned to the collaborator, use the `role_name` field instead, which will + provide the full + role name, including custom roles. + """ + + to: Literal["write", "admin", "read"] + + +class WebhookMemberAddedPropChangesPropRoleNameType(TypedDict): + """WebhookMemberAddedPropChangesPropRoleName + + The role assigned to the collaborator. + """ + + to: str + + +__all__ = ( + "WebhookMemberAddedType", + "WebhookMemberAddedPropChangesType", + "WebhookMemberAddedPropChangesPropPermissionType", + "WebhookMemberAddedPropChangesPropRoleNameType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0571.py b/githubkit/versions/v2022_11_28/types/group_0571.py index 67961e930..27ed51d5e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0571.py +++ b/githubkit/versions/v2022_11_28/types/group_0571.py @@ -9,112 +9,56 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0384 import WebhooksUserType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookMetaDeletedType(TypedDict): - """meta deleted event""" +class WebhookMemberEditedType(TypedDict): + """member edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhookMemberEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] - hook: WebhookMetaDeletedPropHookType - hook_id: int installation: NotRequired[SimpleInstallationType] + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookMetaDeletedPropHookType(TypedDict): - """WebhookMetaDeletedPropHook +class WebhookMemberEditedPropChangesType(TypedDict): + """WebhookMemberEditedPropChanges - The modified webhook. This will contain different keys based on the type of - webhook it is: repository, organization, business, app, or GitHub Marketplace. + The changes to the collaborator permissions """ - active: bool - config: WebhookMetaDeletedPropHookPropConfigType - created_at: str - events: List[ - Literal[ - "*", - "branch_protection_rule", - "check_run", - "check_suite", - "code_scanning_alert", - "commit_comment", - "create", - "delete", - "deployment", - "deployment_status", - "deploy_key", - "discussion", - "discussion_comment", - "fork", - "gollum", - "issues", - "issue_comment", - "label", - "member", - "membership", - "meta", - "milestone", - "organization", - "org_block", - "package", - "page_build", - "project", - "project_card", - "project_column", - "public", - "pull_request", - "pull_request_review", - "pull_request_review_comment", - "pull_request_review_thread", - "push", - "registry_package", - "release", - "repository", - "repository_import", - "repository_vulnerability_alert", - "secret_scanning_alert", - "secret_scanning_alert_location", - "security_and_analysis", - "star", - "status", - "team", - "team_add", - "watch", - "workflow_job", - "workflow_run", - "repository_dispatch", - "projects_v2_item", - ] - ] - 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 + 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__ = ( - "WebhookMetaDeletedType", - "WebhookMetaDeletedPropHookType", - "WebhookMetaDeletedPropHookPropConfigType", + "WebhookMemberEditedType", + "WebhookMemberEditedPropChangesType", + "WebhookMemberEditedPropChangesPropOldPermissionType", + "WebhookMemberEditedPropChangesPropPermissionType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0572.py b/githubkit/versions/v2022_11_28/types/group_0572.py index 3854274a9..65b8925e1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0572.py +++ b/githubkit/versions/v2022_11_28/types/group_0572.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0389 import WebhooksMilestoneType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0384 import WebhooksUserType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookMilestoneClosedType(TypedDict): - """milestone closed event""" +class WebhookMemberRemovedType(TypedDict): + """member removed event""" - action: Literal["closed"] + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType + member: Union[WebhooksUserType, None] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookMilestoneClosedType",) +__all__ = ("WebhookMemberRemovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0573.py b/githubkit/versions/v2022_11_28/types/group_0573.py index 1a2952382..e1bc64cf7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0573.py +++ b/githubkit/versions/v2022_11_28/types/group_0573.py @@ -9,27 +9,58 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0396 import WebhooksMilestone3Type -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0384 import WebhooksUserType +from .group_0399 import WebhooksTeamType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookMilestoneCreatedType(TypedDict): - """milestone created event""" +class WebhookMembershipAddedType(TypedDict): + """membership added event""" - action: Literal["created"] + action: Literal["added"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestone3Type - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + member: Union[WebhooksUserType, None] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + scope: Literal["team"] + sender: Union[WebhookMembershipAddedPropSenderType, None] + team: WebhooksTeamType -__all__ = ("WebhookMilestoneCreatedType",) +class WebhookMembershipAddedPropSenderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookMembershipAddedType", + "WebhookMembershipAddedPropSenderType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0574.py b/githubkit/versions/v2022_11_28/types/group_0574.py index 2f6b08827..d7bb097ce 100644 --- a/githubkit/versions/v2022_11_28/types/group_0574.py +++ b/githubkit/versions/v2022_11_28/types/group_0574.py @@ -9,27 +9,58 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0389 import WebhooksMilestoneType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0384 import WebhooksUserType +from .group_0399 import WebhooksTeamType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookMilestoneDeletedType(TypedDict): - """milestone deleted event""" +class WebhookMembershipRemovedType(TypedDict): + """membership removed event""" - action: Literal["deleted"] + action: Literal["removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + member: Union[WebhooksUserType, None] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + scope: Literal["team", "organization"] + sender: Union[WebhookMembershipRemovedPropSenderType, None] + team: WebhooksTeamType -__all__ = ("WebhookMilestoneDeletedType",) +class WebhookMembershipRemovedPropSenderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookMembershipRemovedType", + "WebhookMembershipRemovedPropSenderType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0575.py b/githubkit/versions/v2022_11_28/types/group_0575.py index 4dff60a31..e9e364792 100644 --- a/githubkit/versions/v2022_11_28/types/group_0575.py +++ b/githubkit/versions/v2022_11_28/types/group_0575.py @@ -12,60 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0389 import WebhooksMilestoneType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0400 import MergeGroupType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookMilestoneEditedType(TypedDict): - """milestone edited event""" +class WebhookMergeGroupChecksRequestedType(TypedDict): + """WebhookMergeGroupChecksRequested""" - action: Literal["edited"] - changes: WebhookMilestoneEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["checks_requested"] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestoneType + merge_group: MergeGroupType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] -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__ = ( - "WebhookMilestoneEditedType", - "WebhookMilestoneEditedPropChangesType", - "WebhookMilestoneEditedPropChangesPropDescriptionType", - "WebhookMilestoneEditedPropChangesPropDueOnType", - "WebhookMilestoneEditedPropChangesPropTitleType", -) +__all__ = ("WebhookMergeGroupChecksRequestedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0576.py b/githubkit/versions/v2022_11_28/types/group_0576.py index 1872431c5..afb08f612 100644 --- a/githubkit/versions/v2022_11_28/types/group_0576.py +++ b/githubkit/versions/v2022_11_28/types/group_0576.py @@ -12,24 +12,23 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0396 import WebhooksMilestone3Type -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0400 import MergeGroupType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookMilestoneOpenedType(TypedDict): - """milestone opened event""" +class WebhookMergeGroupDestroyedType(TypedDict): + """WebhookMergeGroupDestroyed""" - action: Literal["opened"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["destroyed"] + reason: NotRequired[Literal["merged", "invalidated", "dequeued"]] installation: NotRequired[SimpleInstallationType] - milestone: WebhooksMilestone3Type + merge_group: MergeGroupType organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookMilestoneOpenedType",) +__all__ = ("WebhookMergeGroupDestroyedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0577.py b/githubkit/versions/v2022_11_28/types/group_0577.py index 80ae91827..e0640af39 100644 --- a/githubkit/versions/v2022_11_28/types/group_0577.py +++ b/githubkit/versions/v2022_11_28/types/group_0577.py @@ -9,27 +9,112 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0379 import WebhooksUserType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookOrgBlockBlockedType(TypedDict): - """org_block blocked event""" +class WebhookMetaDeletedType(TypedDict): + """meta deleted event""" - action: Literal["blocked"] - blocked_user: Union[WebhooksUserType, None] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] + hook: WebhookMetaDeletedPropHookType + hook_id: int installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookOrgBlockBlockedType",) +class WebhookMetaDeletedPropHookType(TypedDict): + """WebhookMetaDeletedPropHook + + The modified webhook. This will contain different keys based on the type of + webhook it is: repository, organization, business, app, or GitHub Marketplace. + """ + + active: bool + config: WebhookMetaDeletedPropHookPropConfigType + created_at: str + events: List[ + Literal[ + "*", + "branch_protection_rule", + "check_run", + "check_suite", + "code_scanning_alert", + "commit_comment", + "create", + "delete", + "deployment", + "deployment_status", + "deploy_key", + "discussion", + "discussion_comment", + "fork", + "gollum", + "issues", + "issue_comment", + "label", + "member", + "membership", + "meta", + "milestone", + "organization", + "org_block", + "package", + "page_build", + "project", + "project_card", + "project_column", + "public", + "pull_request", + "pull_request_review", + "pull_request_review_comment", + "pull_request_review_thread", + "push", + "registry_package", + "release", + "repository", + "repository_import", + "repository_vulnerability_alert", + "secret_scanning_alert", + "secret_scanning_alert_location", + "security_and_analysis", + "star", + "status", + "team", + "team_add", + "watch", + "workflow_job", + "workflow_run", + "repository_dispatch", + "projects_v2_item", + ] + ] + 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__ = ( + "WebhookMetaDeletedType", + "WebhookMetaDeletedPropHookType", + "WebhookMetaDeletedPropHookPropConfigType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0578.py b/githubkit/versions/v2022_11_28/types/group_0578.py index 5e0e3b92d..b067ac753 100644 --- a/githubkit/versions/v2022_11_28/types/group_0578.py +++ b/githubkit/versions/v2022_11_28/types/group_0578.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0379 import WebhooksUserType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0394 import WebhooksMilestoneType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookOrgBlockUnblockedType(TypedDict): - """org_block unblocked event""" +class WebhookMilestoneClosedType(TypedDict): + """milestone closed event""" - action: Literal["unblocked"] - blocked_user: Union[WebhooksUserType, None] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookOrgBlockUnblockedType",) +__all__ = ("WebhookMilestoneClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0579.py b/githubkit/versions/v2022_11_28/types/group_0579.py index 2a9928d65..b9dd1062d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0579.py +++ b/githubkit/versions/v2022_11_28/types/group_0579.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0397 import WebhooksMembershipType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0401 import WebhooksMilestone3Type +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookOrganizationDeletedType(TypedDict): - """organization deleted event""" +class WebhookMilestoneCreatedType(TypedDict): + """milestone created event""" - action: Literal["deleted"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhooksMembershipType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestone3Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookOrganizationDeletedType",) +__all__ = ("WebhookMilestoneCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0580.py b/githubkit/versions/v2022_11_28/types/group_0580.py index 30a884e31..7eaef0481 100644 --- a/githubkit/versions/v2022_11_28/types/group_0580.py +++ b/githubkit/versions/v2022_11_28/types/group_0580.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0397 import WebhooksMembershipType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0394 import WebhooksMilestoneType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookOrganizationMemberAddedType(TypedDict): - """organization member_added event""" +class WebhookMilestoneDeletedType(TypedDict): + """milestone deleted event""" - action: Literal["member_added"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: WebhooksMembershipType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookOrganizationMemberAddedType",) +__all__ = ("WebhookMilestoneDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0581.py b/githubkit/versions/v2022_11_28/types/group_0581.py index 41b532a51..16b92341f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0581.py +++ b/githubkit/versions/v2022_11_28/types/group_0581.py @@ -9,79 +9,63 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0379 import WebhooksUserType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0394 import WebhooksMilestoneType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookOrganizationMemberInvitedType(TypedDict): - """organization member_invited event""" +class WebhookMilestoneEditedType(TypedDict): + """milestone edited event""" - action: Literal["member_invited"] + action: Literal["edited"] + changes: WebhookMilestoneEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - invitation: WebhookOrganizationMemberInvitedPropInvitationType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestoneType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - user: NotRequired[Union[WebhooksUserType, None]] -class WebhookOrganizationMemberInvitedPropInvitationType(TypedDict): - """WebhookOrganizationMemberInvitedPropInvitation +class WebhookMilestoneEditedPropChangesType(TypedDict): + """WebhookMilestoneEditedPropChanges - The invitation for the user or email if the action is `member_invited`. + The changes to the milestone if the action was `edited`. """ - created_at: datetime - email: Union[str, None] - failed_at: Union[datetime, None] - failed_reason: Union[str, None] - id: float - invitation_teams_url: str - inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviterType, None] - login: Union[str, None] - node_id: str - role: str - team_count: float - invitation_source: NotRequired[str] - - -class WebhookOrganizationMemberInvitedPropInvitationPropInviterType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + 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__ = ( - "WebhookOrganizationMemberInvitedType", - "WebhookOrganizationMemberInvitedPropInvitationType", - "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", + "WebhookMilestoneEditedType", + "WebhookMilestoneEditedPropChangesType", + "WebhookMilestoneEditedPropChangesPropDescriptionType", + "WebhookMilestoneEditedPropChangesPropDueOnType", + "WebhookMilestoneEditedPropChangesPropTitleType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0582.py b/githubkit/versions/v2022_11_28/types/group_0582.py index 4362e1c4e..e70fced24 100644 --- a/githubkit/versions/v2022_11_28/types/group_0582.py +++ b/githubkit/versions/v2022_11_28/types/group_0582.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0397 import WebhooksMembershipType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0401 import WebhooksMilestone3Type +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookOrganizationMemberRemovedType(TypedDict): - """organization member_removed event""" +class WebhookMilestoneOpenedType(TypedDict): + """milestone opened event""" - action: Literal["member_removed"] + action: Literal["opened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: WebhooksMembershipType - organization: OrganizationSimpleWebhooksType - repository: NotRequired[RepositoryWebhooksType] + milestone: WebhooksMilestone3Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookOrganizationMemberRemovedType",) +__all__ = ("WebhookMilestoneOpenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0583.py b/githubkit/versions/v2022_11_28/types/group_0583.py index e158f7ecb..1467ee9ab 100644 --- a/githubkit/versions/v2022_11_28/types/group_0583.py +++ b/githubkit/versions/v2022_11_28/types/group_0583.py @@ -9,44 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0397 import WebhooksMembershipType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0384 import WebhooksUserType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookOrganizationRenamedType(TypedDict): - """organization renamed event""" +class WebhookOrgBlockBlockedType(TypedDict): + """org_block blocked event""" - action: Literal["renamed"] - changes: NotRequired[WebhookOrganizationRenamedPropChangesType] + action: Literal["blocked"] + blocked_user: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - membership: NotRequired[WebhooksMembershipType] organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookOrganizationRenamedPropChangesType(TypedDict): - """WebhookOrganizationRenamedPropChanges""" - - login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] - - -class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): - """WebhookOrganizationRenamedPropChangesPropLogin""" - - from_: NotRequired[str] - - -__all__ = ( - "WebhookOrganizationRenamedType", - "WebhookOrganizationRenamedPropChangesType", - "WebhookOrganizationRenamedPropChangesPropLoginType", -) +__all__ = ("WebhookOrgBlockBlockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0584.py b/githubkit/versions/v2022_11_28/types/group_0584.py index 20f1913b5..623aa0a02 100644 --- a/githubkit/versions/v2022_11_28/types/group_0584.py +++ b/githubkit/versions/v2022_11_28/types/group_0584.py @@ -9,42 +9,27 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0384 import WebhooksUserType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRubygemsMetadataType(TypedDict): - """Ruby Gems metadata""" - name: NotRequired[str] - description: NotRequired[str] - readme: NotRequired[str] - homepage: NotRequired[str] - version_info: NotRequired[WebhookRubygemsMetadataPropVersionInfoType] - platform: NotRequired[str] - metadata: NotRequired[WebhookRubygemsMetadataPropMetadataType] - repo: NotRequired[str] - dependencies: NotRequired[List[WebhookRubygemsMetadataPropDependenciesItemsType]] - commit_oid: NotRequired[str] +class WebhookOrgBlockUnblockedType(TypedDict): + """org_block unblocked event""" + action: Literal["unblocked"] + blocked_user: Union[WebhooksUserType, None] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -class WebhookRubygemsMetadataPropVersionInfoType(TypedDict): - """WebhookRubygemsMetadataPropVersionInfo""" - version: NotRequired[str] - - -class WebhookRubygemsMetadataPropMetadataType(TypedDict): - """WebhookRubygemsMetadataPropMetadata""" - - -class WebhookRubygemsMetadataPropDependenciesItemsType(TypedDict): - """WebhookRubygemsMetadataPropDependenciesItems""" - - -__all__ = ( - "WebhookRubygemsMetadataType", - "WebhookRubygemsMetadataPropVersionInfoType", - "WebhookRubygemsMetadataPropMetadataType", - "WebhookRubygemsMetadataPropDependenciesItemsType", -) +__all__ = ("WebhookOrgBlockUnblockedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0585.py b/githubkit/versions/v2022_11_28/types/group_0585.py index aa61aa98f..404197553 100644 --- a/githubkit/versions/v2022_11_28/types/group_0585.py +++ b/githubkit/versions/v2022_11_28/types/group_0585.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0586 import WebhookPackagePublishedPropPackageType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0402 import WebhooksMembershipType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPackagePublishedType(TypedDict): - """package published event""" +class WebhookOrganizationDeletedType(TypedDict): + """organization deleted event""" - action: Literal["published"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackagePublishedPropPackageType + membership: NotRequired[WebhooksMembershipType] + organization: OrganizationSimpleWebhooksType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -__all__ = ("WebhookPackagePublishedType",) +__all__ = ("WebhookOrganizationDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0586.py b/githubkit/versions/v2022_11_28/types/group_0586.py index 2683e4d74..cf1c93d85 100644 --- a/githubkit/versions/v2022_11_28/types/group_0586.py +++ b/githubkit/versions/v2022_11_28/types/group_0586.py @@ -9,72 +9,27 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0587 import WebhookPackagePublishedPropPackagePropPackageVersionType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0402 import WebhooksMembershipType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPackagePublishedPropPackageType(TypedDict): - """WebhookPackagePublishedPropPackage +class WebhookOrganizationMemberAddedType(TypedDict): + """organization member_added event""" - Information about the package. - """ + action: Literal["member_added"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: WebhooksMembershipType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType - created_at: Union[str, None] - description: Union[str, None] - ecosystem: str - html_url: str - id: int - name: str - namespace: str - owner: Union[WebhookPackagePublishedPropPackagePropOwnerType, None] - package_type: str - package_version: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionType, None - ] - registry: Union[WebhookPackagePublishedPropPackagePropRegistryType, None] - updated_at: Union[str, None] - -class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropRegistryType(TypedDict): - """WebhookPackagePublishedPropPackagePropRegistry""" - - about_url: str - name: str - type: str - url: str - vendor: str - - -__all__ = ( - "WebhookPackagePublishedPropPackageType", - "WebhookPackagePublishedPropPackagePropOwnerType", - "WebhookPackagePublishedPropPackagePropRegistryType", -) +__all__ = ("WebhookOrganizationMemberAddedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0587.py b/githubkit/versions/v2022_11_28/types/group_0587.py index 80e2786f9..88a2eb370 100644 --- a/githubkit/versions/v2022_11_28/types/group_0587.py +++ b/githubkit/versions/v2022_11_28/types/group_0587.py @@ -9,438 +9,52 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0584 import WebhookRubygemsMetadataType +from .group_0384 import WebhooksUserType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersion""" - - author: NotRequired[ - Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, None] - ] - body: NotRequired[ - Union[ - str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type - ] - ] - body_html: NotRequired[str] - container_metadata: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, - None, - ] - ] - created_at: NotRequired[str] - description: str - docker_metadata: NotRequired[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType - ] - name: str - npm_metadata: NotRequired[ - Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, - None, - ] - ] - nuget_metadata: NotRequired[ - Union[ - List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType - ], - None, - ] - ] - package_files: List[ - WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: NotRequired[str] - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] - source_url: NotRequired[str] - summary: str - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - target_oid: NotRequired[str] - updated_at: NotRequired[str] - version: str - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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]] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType( - TypedDict -): - """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 WebhookOrganizationMemberInvitedType(TypedDict): + """organization member_invited event""" + action: Literal["member_invited"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + invitation: WebhookOrganizationMemberInvitedPropInvitationType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + user: NotRequired[Union[WebhooksUserType, None]] -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthor""" +class WebhookOrganizationMemberInvitedPropInvitationType(TypedDict): + """WebhookOrganizationMemberInvitedPropInvitation -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 + The invitation for the user or email if the action is `member_invited`. """ - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScripts""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintaine - rsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContribut - orsItems - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEngines""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBin""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMan""" - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectori - es - """ - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str - created_at: str - download_url: str - id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: Union[str, None] - size: int - state: Union[str, None] - updated_at: str - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItems""" - - id: NotRequired[Union[int, str]] - name: NotRequired[str] - value: NotRequired[ - Union[ - bool, - str, - int, - WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, - ] - ] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( - TypedDict -): - """WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropVa - lueOneof3 - """ - - url: NotRequired[str] - branch: NotRequired[str] - commit: NotRequired[str] - type: NotRequired[str] - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType(TypedDict): - """WebhookPackagePublishedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType, - None, - ] - created_at: str - draft: bool - html_url: str - id: int - name: Union[str, None] - prerelease: bool - published_at: str - tag_name: str - target_commitish: str - url: str - - -class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): + created_at: datetime + email: Union[str, None] + failed_at: Union[datetime, None] + failed_reason: Union[str, None] + id: float + invitation_teams_url: str + inviter: Union[WebhookOrganizationMemberInvitedPropInvitationPropInviterType, None] + login: Union[str, None] + node_id: str + role: str + team_count: float + invitation_source: NotRequired[str] + + +class WebhookOrganizationMemberInvitedPropInvitationPropInviterType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -467,34 +81,7 @@ class WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorT __all__ = ( - "WebhookPackagePublishedPropPackagePropPackageVersionType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", - "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookOrganizationMemberInvitedType", + "WebhookOrganizationMemberInvitedPropInvitationType", + "WebhookOrganizationMemberInvitedPropInvitationPropInviterType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0588.py b/githubkit/versions/v2022_11_28/types/group_0588.py index 5d5a6fbb3..32f0dae7e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0588.py +++ b/githubkit/versions/v2022_11_28/types/group_0588.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0589 import WebhookPackageUpdatedPropPackageType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0402 import WebhooksMembershipType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPackageUpdatedType(TypedDict): - """package updated event""" +class WebhookOrganizationMemberRemovedType(TypedDict): + """organization member_removed event""" - action: Literal["updated"] + action: Literal["member_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - package: WebhookPackageUpdatedPropPackageType - repository: RepositoryWebhooksType + membership: WebhooksMembershipType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -__all__ = ("WebhookPackageUpdatedType",) +__all__ = ("WebhookOrganizationMemberRemovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0589.py b/githubkit/versions/v2022_11_28/types/group_0589.py index 63e97c845..af75f054e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0589.py +++ b/githubkit/versions/v2022_11_28/types/group_0589.py @@ -9,70 +9,44 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0590 import WebhookPackageUpdatedPropPackagePropPackageVersionType - - -class WebhookPackageUpdatedPropPackageType(TypedDict): - """WebhookPackageUpdatedPropPackage - - Information about the package. - """ - - created_at: str - description: Union[str, None] - ecosystem: str - html_url: str - id: int - name: str - namespace: str - owner: Union[WebhookPackageUpdatedPropPackagePropOwnerType, None] - package_type: str - package_version: WebhookPackageUpdatedPropPackagePropPackageVersionType - registry: Union[WebhookPackageUpdatedPropPackagePropRegistryType, None] - updated_at: str - - -class WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPackageUpdatedPropPackagePropRegistryType(TypedDict): - """WebhookPackageUpdatedPropPackagePropRegistry""" - - about_url: str - name: str - type: str - url: str - vendor: str +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0402 import WebhooksMembershipType +from .group_0374 import OrganizationSimpleWebhooksType + + +class WebhookOrganizationRenamedType(TypedDict): + """organization renamed event""" + + action: Literal["renamed"] + changes: NotRequired[WebhookOrganizationRenamedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + membership: NotRequired[WebhooksMembershipType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +class WebhookOrganizationRenamedPropChangesType(TypedDict): + """WebhookOrganizationRenamedPropChanges""" + + login: NotRequired[WebhookOrganizationRenamedPropChangesPropLoginType] + + +class WebhookOrganizationRenamedPropChangesPropLoginType(TypedDict): + """WebhookOrganizationRenamedPropChangesPropLogin""" + + from_: NotRequired[str] __all__ = ( - "WebhookPackageUpdatedPropPackageType", - "WebhookPackageUpdatedPropPackagePropOwnerType", - "WebhookPackageUpdatedPropPackagePropRegistryType", + "WebhookOrganizationRenamedType", + "WebhookOrganizationRenamedPropChangesType", + "WebhookOrganizationRenamedPropChangesPropLoginType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0590.py b/githubkit/versions/v2022_11_28/types/group_0590.py index 8a62587d8..20f1913b5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0590.py +++ b/githubkit/versions/v2022_11_28/types/group_0590.py @@ -9,165 +9,42 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0584 import WebhookRubygemsMetadataType - - -class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersion""" - - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None - ] - body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType - ] - ] - draft: NotRequired[bool] - html_url: str - id: int - installation_command: str - manifest: NotRequired[str] - metadata: List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType - ] - name: str - package_files: List[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: NotRequired[str] - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType - ] - rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] - source_url: NotRequired[str] - summary: str - tag_name: NotRequired[str] - target_commitish: str - target_oid: str - updated_at: str - version: str - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType( - TypedDict -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" - - tags: NotRequired[List[str]] - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType( - TypedDict -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType( - TypedDict -): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" - - content_type: str - created_at: str - download_url: str - id: int - md5: Union[str, None] - name: str - sha1: Union[str, None] - sha256: str - size: int - state: str - updated_at: str - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType(TypedDict): - """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" - - author: Union[ - WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, - None, - ] - created_at: str - draft: bool - html_url: str - id: int - name: str - prerelease: bool - published_at: str - tag_name: str - target_commitish: str - url: str - - -class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str + +class WebhookRubygemsMetadataType(TypedDict): + """Ruby Gems metadata""" + name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + description: NotRequired[str] + readme: NotRequired[str] + homepage: NotRequired[str] + version_info: NotRequired[WebhookRubygemsMetadataPropVersionInfoType] + platform: NotRequired[str] + metadata: NotRequired[WebhookRubygemsMetadataPropMetadataType] + repo: NotRequired[str] + dependencies: NotRequired[List[WebhookRubygemsMetadataPropDependenciesItemsType]] + commit_oid: NotRequired[str] + + +class WebhookRubygemsMetadataPropVersionInfoType(TypedDict): + """WebhookRubygemsMetadataPropVersionInfo""" + + version: NotRequired[str] + + +class WebhookRubygemsMetadataPropMetadataType(TypedDict): + """WebhookRubygemsMetadataPropMetadata""" + + +class WebhookRubygemsMetadataPropDependenciesItemsType(TypedDict): + """WebhookRubygemsMetadataPropDependenciesItems""" __all__ = ( - "WebhookPackageUpdatedPropPackagePropPackageVersionType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", - "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookRubygemsMetadataType", + "WebhookRubygemsMetadataPropVersionInfoType", + "WebhookRubygemsMetadataPropMetadataType", + "WebhookRubygemsMetadataPropDependenciesItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0591.py b/githubkit/versions/v2022_11_28/types/group_0591.py index d2961758e..4c9d0d2d6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0591.py +++ b/githubkit/versions/v2022_11_28/types/group_0591.py @@ -9,80 +9,27 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0592 import WebhookPackagePublishedPropPackageType -class WebhookPageBuildType(TypedDict): - """page_build event""" +class WebhookPackagePublishedType(TypedDict): + """package published event""" - build: WebhookPageBuildPropBuildType + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] - id: int installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + package: WebhookPackagePublishedPropPackageType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -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] - - -__all__ = ( - "WebhookPageBuildType", - "WebhookPageBuildPropBuildType", - "WebhookPageBuildPropBuildPropErrorType", - "WebhookPageBuildPropBuildPropPusherType", -) +__all__ = ("WebhookPackagePublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0592.py b/githubkit/versions/v2022_11_28/types/group_0592.py index cb862187a..aedc3a215 100644 --- a/githubkit/versions/v2022_11_28/types/group_0592.py +++ b/githubkit/versions/v2022_11_28/types/group_0592.py @@ -9,25 +9,72 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0398 import PersonalAccessTokenRequestType +from .group_0593 import WebhookPackagePublishedPropPackagePropPackageVersionType -class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): - """personal_access_token_request approved event""" +class WebhookPackagePublishedPropPackageType(TypedDict): + """WebhookPackagePublishedPropPackage - action: Literal["approved"] - personal_access_token_request: PersonalAccessTokenRequestType - enterprise: NotRequired[EnterpriseWebhooksType] - organization: OrganizationSimpleWebhooksType - sender: SimpleUserWebhooksType - installation: SimpleInstallationType + Information about the package. + """ + created_at: Union[str, None] + description: Union[str, None] + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: Union[WebhookPackagePublishedPropPackagePropOwnerType, None] + package_type: str + package_version: Union[ + WebhookPackagePublishedPropPackagePropPackageVersionType, None + ] + registry: Union[WebhookPackagePublishedPropPackagePropRegistryType, None] + updated_at: Union[str, None] -__all__ = ("WebhookPersonalAccessTokenRequestApprovedType",) + +class WebhookPackagePublishedPropPackagePropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPackagePublishedPropPackagePropRegistryType(TypedDict): + """WebhookPackagePublishedPropPackagePropRegistry""" + + about_url: str + name: str + type: str + url: str + vendor: str + + +__all__ = ( + "WebhookPackagePublishedPropPackageType", + "WebhookPackagePublishedPropPackagePropOwnerType", + "WebhookPackagePublishedPropPackagePropRegistryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0593.py b/githubkit/versions/v2022_11_28/types/group_0593.py index 34b196140..3b72116db 100644 --- a/githubkit/versions/v2022_11_28/types/group_0593.py +++ b/githubkit/versions/v2022_11_28/types/group_0593.py @@ -9,25 +9,492 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0398 import PersonalAccessTokenRequestType +from .group_0590 import WebhookRubygemsMetadataType -class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): - """personal_access_token_request cancelled event""" +class WebhookPackagePublishedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackagePublishedPropPackagePropPackageVersion""" - action: Literal["cancelled"] - personal_access_token_request: PersonalAccessTokenRequestType - enterprise: NotRequired[EnterpriseWebhooksType] - organization: OrganizationSimpleWebhooksType - sender: SimpleUserWebhooksType - installation: SimpleInstallationType + author: NotRequired[ + Union[WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType, None] + ] + body: NotRequired[ + Union[ + str, WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type + ] + ] + body_html: NotRequired[str] + container_metadata: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType, + None, + ] + ] + created_at: NotRequired[str] + description: str + docker_metadata: NotRequired[ + List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType + ] + name: str + npm_metadata: NotRequired[ + Union[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType, + None, + ] + ] + nuget_metadata: NotRequired[ + Union[ + List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] + ] + package_files: List[ + WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: NotRequired[str] + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] + source_url: NotRequired[str] + summary: str + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + target_oid: NotRequired[str] + updated_at: NotRequired[str] + version: str -__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) +class WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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]] + + +class WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType( + TypedDict +): + """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] + + +__all__ = ( + "WebhookPackagePublishedPropPackagePropPackageVersionType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropBodyOneof1Type", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropLabelsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropManifestType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropContainerMetadataPropTagType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropAuthorType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBugsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDistType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropRepositoryType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropScriptsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropMaintainersItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropContributorsItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropEnginesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropBinType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropManType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNpmMetadataPropDirectoriesType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleaseType", + "WebhookPackagePublishedPropPackagePropPackageVersionPropReleasePropAuthorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0594.py b/githubkit/versions/v2022_11_28/types/group_0594.py index 7e2deff2c..8886bd5a3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0594.py +++ b/githubkit/versions/v2022_11_28/types/group_0594.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0398 import PersonalAccessTokenRequestType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0595 import WebhookPackageUpdatedPropPackageType -class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): - """personal_access_token_request created event""" +class WebhookPackageUpdatedType(TypedDict): + """package updated event""" - action: Literal["created"] - personal_access_token_request: PersonalAccessTokenRequestType + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] - organization: OrganizationSimpleWebhooksType - sender: SimpleUserWebhooksType installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + package: WebhookPackageUpdatedPropPackageType + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) +__all__ = ("WebhookPackageUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0595.py b/githubkit/versions/v2022_11_28/types/group_0595.py index e031817b2..3d70bff86 100644 --- a/githubkit/versions/v2022_11_28/types/group_0595.py +++ b/githubkit/versions/v2022_11_28/types/group_0595.py @@ -9,25 +9,70 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0398 import PersonalAccessTokenRequestType +from .group_0596 import WebhookPackageUpdatedPropPackagePropPackageVersionType -class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): - """personal_access_token_request denied event""" +class WebhookPackageUpdatedPropPackageType(TypedDict): + """WebhookPackageUpdatedPropPackage - action: Literal["denied"] - personal_access_token_request: PersonalAccessTokenRequestType - organization: OrganizationSimpleWebhooksType - enterprise: NotRequired[EnterpriseWebhooksType] - sender: SimpleUserWebhooksType - installation: SimpleInstallationType + Information about the package. + """ + created_at: str + description: Union[str, None] + ecosystem: str + html_url: str + id: int + name: str + namespace: str + owner: Union[WebhookPackageUpdatedPropPackagePropOwnerType, None] + package_type: str + package_version: WebhookPackageUpdatedPropPackagePropPackageVersionType + registry: Union[WebhookPackageUpdatedPropPackagePropRegistryType, None] + updated_at: str -__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) + +class WebhookPackageUpdatedPropPackagePropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPackageUpdatedPropPackagePropRegistryType(TypedDict): + """WebhookPackageUpdatedPropPackagePropRegistry""" + + about_url: str + name: str + type: str + url: str + vendor: str + + +__all__ = ( + "WebhookPackageUpdatedPropPackageType", + "WebhookPackageUpdatedPropPackagePropOwnerType", + "WebhookPackageUpdatedPropPackagePropRegistryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0596.py b/githubkit/versions/v2022_11_28/types/group_0596.py index cd665af62..3d9824e8b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0596.py +++ b/githubkit/versions/v2022_11_28/types/group_0596.py @@ -9,23 +9,165 @@ from __future__ import annotations +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0597 import WebhookPingPropHookType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0590 import WebhookRubygemsMetadataType -class WebhookPingType(TypedDict): - """WebhookPing""" +class WebhookPackageUpdatedPropPackagePropPackageVersionType(TypedDict): + """WebhookPackageUpdatedPropPackagePropPackageVersion""" - hook: NotRequired[WebhookPingPropHookType] - hook_id: NotRequired[int] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] - zen: NotRequired[str] + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType, None + ] + body: str + body_html: str + created_at: str + description: str + docker_metadata: NotRequired[ + List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType + ] + name: str + package_files: List[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: NotRequired[str] + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] + source_url: NotRequired[str] + summary: str + tag_name: NotRequired[str] + target_commitish: str + target_oid: str + updated_at: str + version: str -__all__ = ("WebhookPingType",) +class WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItems""" + + tags: NotRequired[List[str]] + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType( + TypedDict +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItems""" + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType( + TypedDict +): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItems""" + + content_type: str + created_at: str + download_url: str + id: int + md5: Union[str, None] + name: str + sha1: Union[str, None] + sha256: str + size: int + state: str + updated_at: str + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType(TypedDict): + """WebhookPackageUpdatedPropPackagePropPackageVersionPropRelease""" + + author: Union[ + WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType, + None, + ] + created_at: str + draft: bool + html_url: str + id: int + name: str + prerelease: bool + published_at: str + tag_name: str + target_commitish: str + url: str + + +class WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookPackageUpdatedPropPackagePropPackageVersionType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropAuthorType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropMetadataItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleaseType", + "WebhookPackageUpdatedPropPackagePropPackageVersionPropReleasePropAuthorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0597.py b/githubkit/versions/v2022_11_28/types/group_0597.py index 9fac9bd18..3e6257bd3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0597.py +++ b/githubkit/versions/v2022_11_28/types/group_0597.py @@ -9,45 +9,80 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0257 import HookResponseType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPingPropHookType(TypedDict): - """Webhook +class WebhookPageBuildType(TypedDict): + """page_build event""" - The webhook that is being pinged + build: WebhookPageBuildPropBuildType + enterprise: NotRequired[EnterpriseWebhooksType] + id: int + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookPageBuildPropBuildType(TypedDict): + """WebhookPageBuildPropBuild + + The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list- + github-pages-builds) itself. """ - active: bool - app_id: NotRequired[int] - config: WebhookPingPropHookPropConfigType - created_at: datetime - deliveries_url: NotRequired[str] - events: List[str] - id: int - last_response: NotRequired[HookResponseType] - name: Literal["web"] - ping_url: NotRequired[str] - test_url: NotRequired[str] - type: str - updated_at: datetime - url: NotRequired[str] + commit: Union[str, None] + created_at: str + duration: int + error: WebhookPageBuildPropBuildPropErrorType + pusher: Union[WebhookPageBuildPropBuildPropPusherType, None] + status: str + updated_at: str + url: str + + +class WebhookPageBuildPropBuildPropErrorType(TypedDict): + """WebhookPageBuildPropBuildPropError""" + message: Union[str, None] -class WebhookPingPropHookPropConfigType(TypedDict): - """WebhookPingPropHookPropConfig""" - content_type: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - secret: NotRequired[str] +class WebhookPageBuildPropBuildPropPusherType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] __all__ = ( - "WebhookPingPropHookType", - "WebhookPingPropHookPropConfigType", + "WebhookPageBuildType", + "WebhookPageBuildPropBuildType", + "WebhookPageBuildPropBuildPropErrorType", + "WebhookPageBuildPropBuildPropPusherType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0598.py b/githubkit/versions/v2022_11_28/types/group_0598.py index 76f44f172..949f04a81 100644 --- a/githubkit/versions/v2022_11_28/types/group_0598.py +++ b/githubkit/versions/v2022_11_28/types/group_0598.py @@ -9,16 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0403 import PersonalAccessTokenRequestType -class WebhookPingFormEncodedType(TypedDict): - """WebhookPingFormEncoded - The webhooks ping payload encoded with URL encoding. - """ +class WebhookPersonalAccessTokenRequestApprovedType(TypedDict): + """personal_access_token_request approved event""" - payload: str + action: Literal["approved"] + personal_access_token_request: PersonalAccessTokenRequestType + enterprise: NotRequired[EnterpriseWebhooksType] + organization: OrganizationSimpleWebhooksType + sender: SimpleUserWebhooksType + installation: SimpleInstallationType -__all__ = ("WebhookPingFormEncodedType",) +__all__ = ("WebhookPersonalAccessTokenRequestApprovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0599.py b/githubkit/versions/v2022_11_28/types/group_0599.py index 41ac259e1..e4aa770d2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0599.py +++ b/githubkit/versions/v2022_11_28/types/group_0599.py @@ -12,41 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0399 import WebhooksProjectCardType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0403 import PersonalAccessTokenRequestType -class WebhookProjectCardConvertedType(TypedDict): - """project_card converted event""" +class WebhookPersonalAccessTokenRequestCancelledType(TypedDict): + """personal_access_token_request cancelled event""" - action: Literal["converted"] - changes: WebhookProjectCardConvertedPropChangesType + action: Literal["cancelled"] + personal_access_token_request: PersonalAccessTokenRequestType enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType - repository: NotRequired[RepositoryWebhooksType] + organization: OrganizationSimpleWebhooksType sender: SimpleUserWebhooksType + installation: SimpleInstallationType -class WebhookProjectCardConvertedPropChangesType(TypedDict): - """WebhookProjectCardConvertedPropChanges""" - - note: WebhookProjectCardConvertedPropChangesPropNoteType - - -class WebhookProjectCardConvertedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardConvertedPropChangesPropNote""" - - from_: str - - -__all__ = ( - "WebhookProjectCardConvertedType", - "WebhookProjectCardConvertedPropChangesType", - "WebhookProjectCardConvertedPropChangesPropNoteType", -) +__all__ = ("WebhookPersonalAccessTokenRequestCancelledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0600.py b/githubkit/versions/v2022_11_28/types/group_0600.py index 9f0bb620c..fdd3da1e6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0600.py +++ b/githubkit/versions/v2022_11_28/types/group_0600.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0399 import WebhooksProjectCardType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0403 import PersonalAccessTokenRequestType -class WebhookProjectCardCreatedType(TypedDict): - """project_card created event""" +class WebhookPersonalAccessTokenRequestCreatedType(TypedDict): + """personal_access_token_request created event""" action: Literal["created"] + personal_access_token_request: PersonalAccessTokenRequestType enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType - repository: NotRequired[RepositoryWebhooksType] + organization: OrganizationSimpleWebhooksType sender: SimpleUserWebhooksType + installation: NotRequired[SimpleInstallationType] -__all__ = ("WebhookProjectCardCreatedType",) +__all__ = ("WebhookPersonalAccessTokenRequestCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0601.py b/githubkit/versions/v2022_11_28/types/group_0601.py index 92d63ef48..f13f2b37a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0601.py +++ b/githubkit/versions/v2022_11_28/types/group_0601.py @@ -9,75 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0403 import PersonalAccessTokenRequestType -class WebhookProjectCardDeletedType(TypedDict): - """project_card deleted event""" +class WebhookPersonalAccessTokenRequestDeniedType(TypedDict): + """personal_access_token_request denied event""" - action: Literal["deleted"] + action: Literal["denied"] + personal_access_token_request: PersonalAccessTokenRequestType + organization: OrganizationSimpleWebhooksType enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardDeletedPropProjectCardType - repository: NotRequired[Union[None, RepositoryWebhooksType]] sender: SimpleUserWebhooksType + installation: SimpleInstallationType -class WebhookProjectCardDeletedPropProjectCardType(TypedDict): - """Project Card""" - - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: Union[int, None] - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreatorType, None] - id: int - node_id: str - note: Union[str, None] - project_url: str - updated_at: datetime - url: str - - -class WebhookProjectCardDeletedPropProjectCardPropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookProjectCardDeletedType", - "WebhookProjectCardDeletedPropProjectCardType", - "WebhookProjectCardDeletedPropProjectCardPropCreatorType", -) +__all__ = ("WebhookPersonalAccessTokenRequestDeniedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0602.py b/githubkit/versions/v2022_11_28/types/group_0602.py index 68948483f..16ce238cb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0602.py +++ b/githubkit/versions/v2022_11_28/types/group_0602.py @@ -9,44 +9,23 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0399 import WebhooksProjectCardType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0603 import WebhookPingPropHookType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectCardEditedType(TypedDict): - """project_card edited event""" +class WebhookPingType(TypedDict): + """WebhookPing""" - action: Literal["edited"] - changes: WebhookProjectCardEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + hook: NotRequired[WebhookPingPropHookType] + hook_id: NotRequired[int] organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhooksProjectCardType repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + zen: NotRequired[str] -class WebhookProjectCardEditedPropChangesType(TypedDict): - """WebhookProjectCardEditedPropChanges""" - - note: WebhookProjectCardEditedPropChangesPropNoteType - - -class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): - """WebhookProjectCardEditedPropChangesPropNote""" - - from_: Union[str, None] - - -__all__ = ( - "WebhookProjectCardEditedType", - "WebhookProjectCardEditedPropChangesType", - "WebhookProjectCardEditedPropChangesPropNoteType", -) +__all__ = ("WebhookPingType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0603.py b/githubkit/versions/v2022_11_28/types/group_0603.py index 3a0315fa0..5dc405319 100644 --- a/githubkit/versions/v2022_11_28/types/group_0603.py +++ b/githubkit/versions/v2022_11_28/types/group_0603.py @@ -10,89 +10,44 @@ from __future__ import annotations from datetime import datetime -from typing import Union, Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0262 import HookResponseType -class WebhookProjectCardMovedType(TypedDict): - """project_card moved event""" +class WebhookPingPropHookType(TypedDict): + """Webhook - action: Literal["moved"] - changes: NotRequired[WebhookProjectCardMovedPropChangesType] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_card: WebhookProjectCardMovedPropProjectCardType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + The webhook that is being pinged + """ - -class WebhookProjectCardMovedPropChangesType(TypedDict): - """WebhookProjectCardMovedPropChanges""" - - column_id: WebhookProjectCardMovedPropChangesPropColumnIdType - - -class WebhookProjectCardMovedPropChangesPropColumnIdType(TypedDict): - """WebhookProjectCardMovedPropChangesPropColumnId""" - - from_: int - - -class WebhookProjectCardMovedPropProjectCardType(TypedDict): - """WebhookProjectCardMovedPropProjectCard""" - - after_id: Union[Union[int, None], None] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] + active: bool + app_id: NotRequired[int] + config: WebhookPingPropHookPropConfigType created_at: datetime - creator: Union[WebhookProjectCardMovedPropProjectCardMergedCreatorType, None] + deliveries_url: NotRequired[str] + events: List[str] id: int - node_id: str - note: Union[Union[str, None], None] - project_url: str + last_response: NotRequired[HookResponseType] + name: Literal["web"] + ping_url: NotRequired[str] + test_url: NotRequired[str] + type: str updated_at: datetime - url: str + url: NotRequired[str] -class WebhookProjectCardMovedPropProjectCardMergedCreatorType(TypedDict): - """WebhookProjectCardMovedPropProjectCardMergedCreator""" +class WebhookPingPropHookPropConfigType(TypedDict): + """WebhookPingPropHookPropConfig""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + content_type: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + secret: NotRequired[str] url: NotRequired[str] __all__ = ( - "WebhookProjectCardMovedType", - "WebhookProjectCardMovedPropChangesType", - "WebhookProjectCardMovedPropChangesPropColumnIdType", - "WebhookProjectCardMovedPropProjectCardType", - "WebhookProjectCardMovedPropProjectCardMergedCreatorType", + "WebhookPingPropHookType", + "WebhookPingPropHookPropConfigType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0604.py b/githubkit/versions/v2022_11_28/types/group_0604.py index 0b3e375d0..76f44f172 100644 --- a/githubkit/versions/v2022_11_28/types/group_0604.py +++ b/githubkit/versions/v2022_11_28/types/group_0604.py @@ -9,56 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): - """Project Card""" +class WebhookPingFormEncodedType(TypedDict): + """WebhookPingFormEncoded - after_id: NotRequired[Union[int, None]] - archived: bool - column_id: int - column_url: str - content_url: NotRequired[str] - created_at: datetime - creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, None] - id: int - node_id: str - note: Union[str, None] - project_url: str - updated_at: datetime - url: str + The webhooks ping payload encoded with URL encoding. + """ + payload: str -class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -__all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof0Type", - "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", -) +__all__ = ("WebhookPingFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0605.py b/githubkit/versions/v2022_11_28/types/group_0605.py index 2386d865b..14c5e5d69 100644 --- a/githubkit/versions/v2022_11_28/types/group_0605.py +++ b/githubkit/versions/v2022_11_28/types/group_0605.py @@ -9,53 +9,44 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0404 import WebhooksProjectCardType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectCardMovedPropProjectCardAllof1Type(TypedDict): - """WebhookProjectCardMovedPropProjectCardAllof1""" - - after_id: Union[int, None] - archived: NotRequired[bool] - column_id: NotRequired[int] - column_url: NotRequired[str] - created_at: NotRequired[str] - creator: NotRequired[ - Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, None] - ] - id: NotRequired[int] - node_id: NotRequired[str] - note: NotRequired[Union[str, None]] - project_url: NotRequired[str] - updated_at: NotRequired[str] - url: NotRequired[str] - - -class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): - """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" - - avatar_url: NotRequired[str] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: NotRequired[int] - login: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[str] - url: NotRequired[str] + +class WebhookProjectCardConvertedType(TypedDict): + """project_card converted event""" + + action: Literal["converted"] + changes: WebhookProjectCardConvertedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + project_card: WebhooksProjectCardType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + + +class WebhookProjectCardConvertedPropChangesType(TypedDict): + """WebhookProjectCardConvertedPropChanges""" + + note: WebhookProjectCardConvertedPropChangesPropNoteType + + +class WebhookProjectCardConvertedPropChangesPropNoteType(TypedDict): + """WebhookProjectCardConvertedPropChangesPropNote""" + + from_: str __all__ = ( - "WebhookProjectCardMovedPropProjectCardAllof1Type", - "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", + "WebhookProjectCardConvertedType", + "WebhookProjectCardConvertedPropChangesType", + "WebhookProjectCardConvertedPropChangesPropNoteType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0606.py b/githubkit/versions/v2022_11_28/types/group_0606.py index 3f516f028..d6279f641 100644 --- a/githubkit/versions/v2022_11_28/types/group_0606.py +++ b/githubkit/versions/v2022_11_28/types/group_0606.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0400 import WebhooksProjectType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0404 import WebhooksProjectCardType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectClosedType(TypedDict): - """project closed event""" +class WebhookProjectCardCreatedType(TypedDict): + """project_card created event""" - action: Literal["closed"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType + project_card: WebhooksProjectCardType repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectClosedType",) +__all__ = ("WebhookProjectCardCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0607.py b/githubkit/versions/v2022_11_28/types/group_0607.py index 80196c7c3..29e335183 100644 --- a/githubkit/versions/v2022_11_28/types/group_0607.py +++ b/githubkit/versions/v2022_11_28/types/group_0607.py @@ -9,27 +9,75 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0401 import WebhooksProjectColumnType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectColumnCreatedType(TypedDict): - """project_column created event""" +class WebhookProjectCardDeletedType(TypedDict): + """project_card deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType - repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] + project_card: WebhookProjectCardDeletedPropProjectCardType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectColumnCreatedType",) +class WebhookProjectCardDeletedPropProjectCardType(TypedDict): + """Project Card""" + + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: Union[int, None] + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardDeletedPropProjectCardPropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str + + +class WebhookProjectCardDeletedPropProjectCardPropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookProjectCardDeletedType", + "WebhookProjectCardDeletedPropProjectCardType", + "WebhookProjectCardDeletedPropProjectCardPropCreatorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0608.py b/githubkit/versions/v2022_11_28/types/group_0608.py index e3c86b8b6..53ff14367 100644 --- a/githubkit/versions/v2022_11_28/types/group_0608.py +++ b/githubkit/versions/v2022_11_28/types/group_0608.py @@ -12,24 +12,41 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0401 import WebhooksProjectColumnType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0404 import WebhooksProjectCardType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectColumnDeletedType(TypedDict): - """project_column deleted event""" +class WebhookProjectCardEditedType(TypedDict): + """project_card edited event""" - action: Literal["deleted"] + action: Literal["edited"] + changes: WebhookProjectCardEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserWebhooksType] + project_card: WebhooksProjectCardType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectColumnDeletedType",) +class WebhookProjectCardEditedPropChangesType(TypedDict): + """WebhookProjectCardEditedPropChanges""" + + note: WebhookProjectCardEditedPropChangesPropNoteType + + +class WebhookProjectCardEditedPropChangesPropNoteType(TypedDict): + """WebhookProjectCardEditedPropChangesPropNote""" + + from_: Union[str, None] + + +__all__ = ( + "WebhookProjectCardEditedType", + "WebhookProjectCardEditedPropChangesType", + "WebhookProjectCardEditedPropChangesPropNoteType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0609.py b/githubkit/versions/v2022_11_28/types/group_0609.py index 9021d4b81..51940fc4b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0609.py +++ b/githubkit/versions/v2022_11_28/types/group_0609.py @@ -9,44 +9,90 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0401 import WebhooksProjectColumnType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectColumnEditedType(TypedDict): - """project_column edited event""" +class WebhookProjectCardMovedType(TypedDict): + """project_card moved event""" - action: Literal["edited"] - changes: WebhookProjectColumnEditedPropChangesType + action: Literal["moved"] + changes: NotRequired[WebhookProjectCardMovedPropChangesType] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType + project_card: WebhookProjectCardMovedPropProjectCardType repository: NotRequired[RepositoryWebhooksType] - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType -class WebhookProjectColumnEditedPropChangesType(TypedDict): - """WebhookProjectColumnEditedPropChanges""" +class WebhookProjectCardMovedPropChangesType(TypedDict): + """WebhookProjectCardMovedPropChanges""" - name: NotRequired[WebhookProjectColumnEditedPropChangesPropNameType] + column_id: WebhookProjectCardMovedPropChangesPropColumnIdType -class WebhookProjectColumnEditedPropChangesPropNameType(TypedDict): - """WebhookProjectColumnEditedPropChangesPropName""" +class WebhookProjectCardMovedPropChangesPropColumnIdType(TypedDict): + """WebhookProjectCardMovedPropChangesPropColumnId""" - from_: str + 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] __all__ = ( - "WebhookProjectColumnEditedType", - "WebhookProjectColumnEditedPropChangesType", - "WebhookProjectColumnEditedPropChangesPropNameType", + "WebhookProjectCardMovedType", + "WebhookProjectCardMovedPropChangesType", + "WebhookProjectCardMovedPropChangesPropColumnIdType", + "WebhookProjectCardMovedPropProjectCardType", + "WebhookProjectCardMovedPropProjectCardMergedCreatorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0610.py b/githubkit/versions/v2022_11_28/types/group_0610.py index ef3de93a0..0b3e375d0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0610.py +++ b/githubkit/versions/v2022_11_28/types/group_0610.py @@ -9,27 +9,56 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0401 import WebhooksProjectColumnType -from .group_0369 import OrganizationSimpleWebhooksType +class WebhookProjectCardMovedPropProjectCardAllof0Type(TypedDict): + """Project Card""" -class WebhookProjectColumnMovedType(TypedDict): - """project_column moved event""" + after_id: NotRequired[Union[int, None]] + archived: bool + column_id: int + column_url: str + content_url: NotRequired[str] + created_at: datetime + creator: Union[WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType, None] + id: int + node_id: str + note: Union[str, None] + project_url: str + updated_at: datetime + url: str - action: Literal["moved"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project_column: WebhooksProjectColumnType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType +class WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType(TypedDict): + """User""" -__all__ = ("WebhookProjectColumnMovedType",) + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +__all__ = ( + "WebhookProjectCardMovedPropProjectCardAllof0Type", + "WebhookProjectCardMovedPropProjectCardAllof0PropCreatorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0611.py b/githubkit/versions/v2022_11_28/types/group_0611.py index f92aa0a30..2386d865b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0611.py +++ b/githubkit/versions/v2022_11_28/types/group_0611.py @@ -9,27 +9,53 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0400 import WebhooksProjectType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType - -class WebhookProjectCreatedType(TypedDict): - """project created event""" - - action: Literal["created"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - - -__all__ = ("WebhookProjectCreatedType",) +class WebhookProjectCardMovedPropProjectCardAllof1Type(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1""" + + after_id: Union[int, None] + archived: NotRequired[bool] + column_id: NotRequired[int] + column_url: NotRequired[str] + created_at: NotRequired[str] + creator: NotRequired[ + Union[WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType, None] + ] + id: NotRequired[int] + node_id: NotRequired[str] + note: NotRequired[Union[str, None]] + project_url: NotRequired[str] + updated_at: NotRequired[str] + url: NotRequired[str] + + +class WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType(TypedDict): + """WebhookProjectCardMovedPropProjectCardAllof1PropCreator""" + + avatar_url: NotRequired[str] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + login: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + + +__all__ = ( + "WebhookProjectCardMovedPropProjectCardAllof1Type", + "WebhookProjectCardMovedPropProjectCardAllof1PropCreatorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0612.py b/githubkit/versions/v2022_11_28/types/group_0612.py index 45598e46e..bf30c825e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0612.py +++ b/githubkit/versions/v2022_11_28/types/group_0612.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0400 import WebhooksProjectType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0405 import WebhooksProjectType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectDeletedType(TypedDict): - """project deleted event""" +class WebhookProjectClosedType(TypedDict): + """project closed event""" - action: Literal["deleted"] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] project: WebhooksProjectType - repository: NotRequired[Union[None, RepositoryWebhooksType]] - sender: NotRequired[SimpleUserWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectDeletedType",) +__all__ = ("WebhookProjectClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0613.py b/githubkit/versions/v2022_11_28/types/group_0613.py index 7049c1f9d..8354ab9b9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0613.py +++ b/githubkit/versions/v2022_11_28/types/group_0613.py @@ -12,52 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0400 import WebhooksProjectType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0406 import WebhooksProjectColumnType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectEditedType(TypedDict): - """project edited event""" +class WebhookProjectColumnCreatedType(TypedDict): + """project_column created event""" - action: Literal["edited"] - changes: NotRequired[WebhookProjectEditedPropChangesType] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType + project_column: WebhooksProjectColumnType repository: NotRequired[RepositoryWebhooksType] sender: NotRequired[SimpleUserWebhooksType] -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__ = ( - "WebhookProjectEditedType", - "WebhookProjectEditedPropChangesType", - "WebhookProjectEditedPropChangesPropBodyType", - "WebhookProjectEditedPropChangesPropNameType", -) +__all__ = ("WebhookProjectColumnCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0614.py b/githubkit/versions/v2022_11_28/types/group_0614.py index 64a6971cc..cba94a2f5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0614.py +++ b/githubkit/versions/v2022_11_28/types/group_0614.py @@ -9,27 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0400 import WebhooksProjectType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0406 import WebhooksProjectColumnType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectReopenedType(TypedDict): - """project reopened event""" +class WebhookProjectColumnDeletedType(TypedDict): + """project_column deleted event""" - action: Literal["reopened"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - project: WebhooksProjectType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + project_column: WebhooksProjectColumnType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookProjectReopenedType",) +__all__ = ("WebhookProjectColumnDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0615.py b/githubkit/versions/v2022_11_28/types/group_0615.py index 72ba7d9ef..424e3d9b3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0615.py +++ b/githubkit/versions/v2022_11_28/types/group_0615.py @@ -12,20 +12,41 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import ProjectsV2Type -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0406 import WebhooksProjectColumnType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectClosedType(TypedDict): - """Projects v2 Project Closed Event""" +class WebhookProjectColumnEditedType(TypedDict): + """project_column edited event""" - action: Literal["closed"] + action: Literal["edited"] + changes: WebhookProjectColumnEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + project_column: WebhooksProjectColumnType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookProjectsV2ProjectClosedType",) +class WebhookProjectColumnEditedPropChangesType(TypedDict): + """WebhookProjectColumnEditedPropChanges""" + + name: NotRequired[WebhookProjectColumnEditedPropChangesPropNameType] + + +class WebhookProjectColumnEditedPropChangesPropNameType(TypedDict): + """WebhookProjectColumnEditedPropChangesPropName""" + + from_: str + + +__all__ = ( + "WebhookProjectColumnEditedType", + "WebhookProjectColumnEditedPropChangesType", + "WebhookProjectColumnEditedPropChangesPropNameType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0616.py b/githubkit/versions/v2022_11_28/types/group_0616.py index 1aa8c6902..7ac14e0c3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0616.py +++ b/githubkit/versions/v2022_11_28/types/group_0616.py @@ -12,23 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import ProjectsV2Type -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0406 import WebhooksProjectColumnType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectCreatedType(TypedDict): - """WebhookProjectsV2ProjectCreated +class WebhookProjectColumnMovedType(TypedDict): + """project_column moved event""" - A project was created - """ - - action: Literal["created"] + action: Literal["moved"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + project_column: WebhooksProjectColumnType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectsV2ProjectCreatedType",) +__all__ = ("WebhookProjectColumnMovedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0617.py b/githubkit/versions/v2022_11_28/types/group_0617.py index e7c09b30c..70584979e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0617.py +++ b/githubkit/versions/v2022_11_28/types/group_0617.py @@ -12,20 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import ProjectsV2Type -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0405 import WebhooksProjectType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectDeletedType(TypedDict): - """Projects v2 Project Deleted Event""" +class WebhookProjectCreatedType(TypedDict): + """project created event""" - action: Literal["deleted"] + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectsV2ProjectDeletedType",) +__all__ = ("WebhookProjectCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0618.py b/githubkit/versions/v2022_11_28/types/group_0618.py index 7a2d514d0..e62acd948 100644 --- a/githubkit/versions/v2022_11_28/types/group_0618.py +++ b/githubkit/versions/v2022_11_28/types/group_0618.py @@ -12,69 +12,24 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import ProjectsV2Type -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0405 import WebhooksProjectType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectEditedType(TypedDict): - """Projects v2 Project Edited Event""" +class WebhookProjectDeletedType(TypedDict): + """project deleted event""" - action: Literal["edited"] - changes: WebhookProjectsV2ProjectEditedPropChangesType + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type - sender: SimpleUserWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[Union[None, RepositoryWebhooksType]] + sender: NotRequired[SimpleUserWebhooksType] -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__ = ( - "WebhookProjectsV2ProjectEditedType", - "WebhookProjectsV2ProjectEditedPropChangesType", - "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", - "WebhookProjectsV2ProjectEditedPropChangesPropPublicType", - "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", - "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", -) +__all__ = ("WebhookProjectDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0619.py b/githubkit/versions/v2022_11_28/types/group_0619.py index e2c66024e..9f71764ae 100644 --- a/githubkit/versions/v2022_11_28/types/group_0619.py +++ b/githubkit/versions/v2022_11_28/types/group_0619.py @@ -12,22 +12,52 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0404 import ProjectsV2ItemType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0403 import WebhooksProjectChangesType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0405 import WebhooksProjectType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemArchivedType(TypedDict): - """Projects v2 Item Archived Event""" +class WebhookProjectEditedType(TypedDict): + """project edited event""" - action: Literal["archived"] - changes: WebhooksProjectChangesType + action: Literal["edited"] + changes: NotRequired[WebhookProjectEditedPropChangesType] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType - sender: SimpleUserWebhooksType + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookProjectsV2ItemArchivedType",) +class WebhookProjectEditedPropChangesType(TypedDict): + """WebhookProjectEditedPropChanges + + The changes to the project if the action was `edited`. + """ + + body: NotRequired[WebhookProjectEditedPropChangesPropBodyType] + name: NotRequired[WebhookProjectEditedPropChangesPropNameType] + + +class WebhookProjectEditedPropChangesPropBodyType(TypedDict): + """WebhookProjectEditedPropChangesPropBody""" + + from_: str + + +class WebhookProjectEditedPropChangesPropNameType(TypedDict): + """WebhookProjectEditedPropChangesPropName""" + + from_: str + + +__all__ = ( + "WebhookProjectEditedType", + "WebhookProjectEditedPropChangesType", + "WebhookProjectEditedPropChangesPropBodyType", + "WebhookProjectEditedPropChangesPropNameType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0620.py b/githubkit/versions/v2022_11_28/types/group_0620.py index 0f46d3ca2..723b788e9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0620.py +++ b/githubkit/versions/v2022_11_28/types/group_0620.py @@ -9,43 +9,27 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0404 import ProjectsV2ItemType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0405 import WebhooksProjectType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemConvertedType(TypedDict): - """Projects v2 Item Converted Event""" +class WebhookProjectReopenedType(TypedDict): + """project reopened event""" - action: Literal["converted"] - changes: WebhookProjectsV2ItemConvertedPropChangesType + action: Literal["reopened"] + enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + organization: NotRequired[OrganizationSimpleWebhooksType] + project: WebhooksProjectType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType -class WebhookProjectsV2ItemConvertedPropChangesType(TypedDict): - """WebhookProjectsV2ItemConvertedPropChanges""" - - content_type: NotRequired[ - WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType - ] - - -class WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType(TypedDict): - """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[str] - - -__all__ = ( - "WebhookProjectsV2ItemConvertedType", - "WebhookProjectsV2ItemConvertedPropChangesType", - "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", -) +__all__ = ("WebhookProjectReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0621.py b/githubkit/versions/v2022_11_28/types/group_0621.py index 40af02d42..a52e78a84 100644 --- a/githubkit/versions/v2022_11_28/types/group_0621.py +++ b/githubkit/versions/v2022_11_28/types/group_0621.py @@ -12,20 +12,20 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0404 import ProjectsV2ItemType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0407 import ProjectsV2Type +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemCreatedType(TypedDict): - """Projects v2 Item Created Event""" +class WebhookProjectsV2ProjectClosedType(TypedDict): + """Projects v2 Project Closed Event""" - action: Literal["created"] + action: Literal["closed"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectsV2ItemCreatedType",) +__all__ = ("WebhookProjectsV2ProjectClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0622.py b/githubkit/versions/v2022_11_28/types/group_0622.py index c65ff71f5..f3299534f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0622.py +++ b/githubkit/versions/v2022_11_28/types/group_0622.py @@ -12,20 +12,23 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0404 import ProjectsV2ItemType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0407 import ProjectsV2Type +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemDeletedType(TypedDict): - """Projects v2 Item Deleted Event""" +class WebhookProjectsV2ProjectCreatedType(TypedDict): + """WebhookProjectsV2ProjectCreated - action: Literal["deleted"] + A project was created + """ + + action: Literal["created"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectsV2ItemDeletedType",) +__all__ = ("WebhookProjectsV2ProjectCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0623.py b/githubkit/versions/v2022_11_28/types/group_0623.py index 85a9d6ae7..b856363a4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0623.py +++ b/githubkit/versions/v2022_11_28/types/group_0623.py @@ -9,61 +9,23 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0404 import ProjectsV2ItemType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0407 import ProjectsV2Type +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemEditedType(TypedDict): - """Projects v2 Item Edited Event""" +class WebhookProjectsV2ProjectDeletedType(TypedDict): + """Projects v2 Project Deleted Event""" - action: Literal["edited"] - changes: NotRequired[ - Union[ - WebhookProjectsV2ItemEditedPropChangesOneof0Type, - WebhookProjectsV2ItemEditedPropChangesOneof1Type, - ] - ] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserWebhooksType -class WebhookProjectsV2ItemEditedPropChangesOneof0Type(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0""" - - field_value: WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType - - -class WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValue""" - - field_node_id: NotRequired[str] - field_type: NotRequired[str] - - -class WebhookProjectsV2ItemEditedPropChangesOneof1Type(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof1""" - - body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType - - -class WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType(TypedDict): - """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" - - from_: NotRequired[Union[str, None]] - to: NotRequired[Union[str, None]] - - -__all__ = ( - "WebhookProjectsV2ItemEditedType", - "WebhookProjectsV2ItemEditedPropChangesOneof0Type", - "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", - "WebhookProjectsV2ItemEditedPropChangesOneof1Type", - "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", -) +__all__ = ("WebhookProjectsV2ProjectDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0624.py b/githubkit/versions/v2022_11_28/types/group_0624.py index a4451f783..0f7c444ca 100644 --- a/githubkit/versions/v2022_11_28/types/group_0624.py +++ b/githubkit/versions/v2022_11_28/types/group_0624.py @@ -12,42 +12,69 @@ from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0404 import ProjectsV2ItemType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0407 import ProjectsV2Type +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemReorderedType(TypedDict): - """Projects v2 Item Reordered Event""" +class WebhookProjectsV2ProjectEditedType(TypedDict): + """Projects v2 Project Edited Event""" - action: Literal["reordered"] - changes: WebhookProjectsV2ItemReorderedPropChangesType + action: Literal["edited"] + changes: WebhookProjectsV2ProjectEditedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2_item: ProjectsV2ItemType + projects_v2: ProjectsV2Type sender: SimpleUserWebhooksType -class WebhookProjectsV2ItemReorderedPropChangesType(TypedDict): - """WebhookProjectsV2ItemReorderedPropChanges""" +class WebhookProjectsV2ProjectEditedPropChangesType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChanges""" - previous_projects_v2_item_node_id: NotRequired[ - WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType + description: NotRequired[ + WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType ] + public: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropPublicType] + short_description: NotRequired[ + WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType + ] + title: NotRequired[WebhookProjectsV2ProjectEditedPropChangesPropTitleType] + + +class WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropDescription""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] -class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType( - TypedDict -): - """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" +class WebhookProjectsV2ProjectEditedPropChangesPropPublicType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropPublic""" + + from_: NotRequired[bool] + to: NotRequired[bool] + + +class WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropShortDescription""" from_: NotRequired[Union[str, None]] to: NotRequired[Union[str, None]] +class WebhookProjectsV2ProjectEditedPropChangesPropTitleType(TypedDict): + """WebhookProjectsV2ProjectEditedPropChangesPropTitle""" + + from_: NotRequired[str] + to: NotRequired[str] + + __all__ = ( - "WebhookProjectsV2ItemReorderedType", - "WebhookProjectsV2ItemReorderedPropChangesType", - "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", + "WebhookProjectsV2ProjectEditedType", + "WebhookProjectsV2ProjectEditedPropChangesType", + "WebhookProjectsV2ProjectEditedPropChangesPropDescriptionType", + "WebhookProjectsV2ProjectEditedPropChangesPropPublicType", + "WebhookProjectsV2ProjectEditedPropChangesPropShortDescriptionType", + "WebhookProjectsV2ProjectEditedPropChangesPropTitleType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0625.py b/githubkit/versions/v2022_11_28/types/group_0625.py index e1d707d6e..00810745b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0625.py +++ b/githubkit/versions/v2022_11_28/types/group_0625.py @@ -12,17 +12,17 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0404 import ProjectsV2ItemType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0403 import WebhooksProjectChangesType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0409 import ProjectsV2ItemType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0408 import WebhooksProjectChangesType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ItemRestoredType(TypedDict): - """Projects v2 Item Restored Event""" +class WebhookProjectsV2ItemArchivedType(TypedDict): + """Projects v2 Item Archived Event""" - action: Literal["restored"] + action: Literal["archived"] changes: WebhooksProjectChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType @@ -30,4 +30,4 @@ class WebhookProjectsV2ItemRestoredType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectsV2ItemRestoredType",) +__all__ = ("WebhookProjectsV2ItemArchivedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0626.py b/githubkit/versions/v2022_11_28/types/group_0626.py index e0be04e41..8fca5aaf0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0626.py +++ b/githubkit/versions/v2022_11_28/types/group_0626.py @@ -9,23 +9,43 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0402 import ProjectsV2Type -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0409 import ProjectsV2ItemType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookProjectsV2ProjectReopenedType(TypedDict): - """Projects v2 Project Reopened Event""" +class WebhookProjectsV2ItemConvertedType(TypedDict): + """Projects v2 Item Converted Event""" - action: Literal["reopened"] + action: Literal["converted"] + changes: WebhookProjectsV2ItemConvertedPropChangesType installation: NotRequired[SimpleInstallationType] organization: OrganizationSimpleWebhooksType - projects_v2: ProjectsV2Type + projects_v2_item: ProjectsV2ItemType sender: SimpleUserWebhooksType -__all__ = ("WebhookProjectsV2ProjectReopenedType",) +class WebhookProjectsV2ItemConvertedPropChangesType(TypedDict): + """WebhookProjectsV2ItemConvertedPropChanges""" + + content_type: NotRequired[ + WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType + ] + + +class WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType(TypedDict): + """WebhookProjectsV2ItemConvertedPropChangesPropContentType""" + + from_: NotRequired[Union[str, None]] + to: NotRequired[str] + + +__all__ = ( + "WebhookProjectsV2ItemConvertedType", + "WebhookProjectsV2ItemConvertedPropChangesType", + "WebhookProjectsV2ItemConvertedPropChangesPropContentTypeType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0627.py b/githubkit/versions/v2022_11_28/types/group_0627.py index adeeee9c1..e97094821 100644 --- a/githubkit/versions/v2022_11_28/types/group_0627.py +++ b/githubkit/versions/v2022_11_28/types/group_0627.py @@ -9,23 +9,23 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0409 import ProjectsV2ItemType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPublicType(TypedDict): - """public event""" +class WebhookProjectsV2ItemCreatedType(TypedDict): + """Projects v2 Item Created Event""" - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["created"] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserWebhooksType -__all__ = ("WebhookPublicType",) +__all__ = ("WebhookProjectsV2ItemCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0628.py b/githubkit/versions/v2022_11_28/types/group_0628.py index 9449690ee..12139a8ab 100644 --- a/githubkit/versions/v2022_11_28/types/group_0628.py +++ b/githubkit/versions/v2022_11_28/types/group_0628.py @@ -9,939 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0379 import WebhooksUserType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0409 import ProjectsV2ItemType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestAssignedType(TypedDict): - """pull_request assigned event""" +class WebhookProjectsV2ItemDeletedType(TypedDict): + """Projects v2 Item Deleted Event""" - action: Literal["assigned"] - assignee: Union[WebhooksUserType, None] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAssignedPropPullRequestType - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserWebhooksType -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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__ = ( - "WebhookPullRequestAssignedType", - "WebhookPullRequestAssignedPropPullRequestType", - "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", - "WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergeType", - "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAssignedPropPullRequestPropMergedByType", - "WebhookPullRequestAssignedPropPullRequestPropMilestoneType", - "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAssignedPropPullRequestPropUserType", - "WebhookPullRequestAssignedPropPullRequestPropLinksType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAssignedPropPullRequestPropBaseType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropUserType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAssignedPropPullRequestPropHeadType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookProjectsV2ItemDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0629.py b/githubkit/versions/v2022_11_28/types/group_0629.py index 15f8067a1..fb82c1a0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0629.py +++ b/githubkit/versions/v2022_11_28/types/group_0629.py @@ -9,987 +9,107 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0409 import ProjectsV2ItemType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestAutoMergeDisabledType(TypedDict): - """pull_request auto_merge_disabled event""" +class WebhookProjectsV2ItemEditedType(TypedDict): + """Projects v2 Item Edited Event""" - action: Literal["auto_merge_disabled"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["edited"] + changes: NotRequired[ + Union[ + WebhookProjectsV2ItemEditedPropChangesOneof0Type, + WebhookProjectsV2ItemEditedPropChangesOneof1Type, + ] + ] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType - reason: str - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserWebhooksType -class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): - """Pull Request""" +class WebhookProjectsV2ItemEditedPropChangesOneof0Type(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof0""" - links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None - ] - assignees: List[ + 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[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, + str, + int, + ProjectsV2SingleSelectOptionType, + ProjectsV2IterationSettingType, None, ] ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] - ] - milestone: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ + to: NotRequired[ Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, + str, + int, + ProjectsV2SingleSelectOptionType, + ProjectsV2IterationSettingType, None, - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] - requested_teams: List[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] +class ProjectsV2SingleSelectOptionType(TypedDict): + """Projects v2 Single Select Option -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. + An option for a single select field """ - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int + id: str name: str - node_id: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + color: NotRequired[Union[str, None]] + description: NotRequired[Union[str, None]] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): - """Milestone +class ProjectsV2IterationSettingType(TypedDict): + """Projects v2 Iteration Setting - A collection of related issues and pull requests. + An iteration setting for an iteration field """ - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] + id: str title: str - updated_at: datetime - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + duration: NotRequired[Union[float, None]] + start_date: NotRequired[Union[str, None]] -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): - """User""" +class WebhookProjectsV2ItemEditedPropChangesOneof1Type(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof1""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] + body: WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" +class WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType(TypedDict): + """WebhookProjectsV2ItemEditedPropChangesOneof1PropBody""" - comments: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType - ) - commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_discussions: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission - s - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission - s - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne - of1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar - ent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] __all__ = ( - "WebhookPullRequestAutoMergeDisabledType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookProjectsV2ItemEditedType", + "WebhookProjectsV2ItemEditedPropChangesOneof0Type", + "WebhookProjectsV2ItemEditedPropChangesOneof0PropFieldValueType", + "ProjectsV2SingleSelectOptionType", + "ProjectsV2IterationSettingType", + "WebhookProjectsV2ItemEditedPropChangesOneof1Type", + "WebhookProjectsV2ItemEditedPropChangesOneof1PropBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0630.py b/githubkit/versions/v2022_11_28/types/group_0630.py index 1d0e413f6..27914c2c9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0630.py +++ b/githubkit/versions/v2022_11_28/types/group_0630.py @@ -9,977 +9,45 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0409 import ProjectsV2ItemType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestAutoMergeEnabledType(TypedDict): - """pull_request auto_merge_enabled event""" +class WebhookProjectsV2ItemReorderedType(TypedDict): + """Projects v2 Item Reordered Event""" - action: Literal["auto_merge_enabled"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reordered"] + changes: WebhookProjectsV2ItemReorderedPropChangesType installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType - reason: NotRequired[str] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserWebhooksType -class WebhookPullRequestAutoMergeEnabledPropPullRequestType(TypedDict): - """Pull Request""" +class WebhookProjectsV2ItemReorderedPropChangesType(TypedDict): + """WebhookProjectsV2ItemReorderedPropChanges""" - links: WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] + previous_projects_v2_item_node_id: NotRequired[ + WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType ] - additions: NotRequired[int] - assignee: Union[ - 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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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( +class WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType( TypedDict ): - """WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropPare - nt - """ + """WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeId""" - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] __all__ = ( - "WebhookPullRequestAutoMergeEnabledType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookProjectsV2ItemReorderedType", + "WebhookProjectsV2ItemReorderedPropChangesType", + "WebhookProjectsV2ItemReorderedPropChangesPropPreviousProjectsV2ItemNodeIdType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0631.py b/githubkit/versions/v2022_11_28/types/group_0631.py index d8d88aa8e..f2ee3c411 100644 --- a/githubkit/versions/v2022_11_28/types/group_0631.py +++ b/githubkit/versions/v2022_11_28/types/group_0631.py @@ -12,25 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0405 import PullRequestWebhookType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0409 import ProjectsV2ItemType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0408 import WebhooksProjectChangesType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestClosedType(TypedDict): - """pull_request closed event""" +class WebhookProjectsV2ItemRestoredType(TypedDict): + """Projects v2 Item Restored Event""" - action: Literal["closed"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["restored"] + changes: WebhooksProjectChangesType installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_item: ProjectsV2ItemType sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestClosedType",) +__all__ = ("WebhookProjectsV2ItemRestoredType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0632.py b/githubkit/versions/v2022_11_28/types/group_0632.py index 82ab2da6a..3fc2d77cc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0632.py +++ b/githubkit/versions/v2022_11_28/types/group_0632.py @@ -12,25 +12,20 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0405 import PullRequestWebhookType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0407 import ProjectsV2Type +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestConvertedToDraftType(TypedDict): - """pull_request converted_to_draft event""" +class WebhookProjectsV2ProjectReopenedType(TypedDict): + """Projects v2 Project Reopened Event""" - action: Literal["converted_to_draft"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["reopened"] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2: ProjectsV2Type sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestConvertedToDraftType",) +__all__ = ("WebhookProjectsV2ProjectReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0633.py b/githubkit/versions/v2022_11_28/types/group_0633.py index 330f39277..f6b46e373 100644 --- a/githubkit/versions/v2022_11_28/types/group_0633.py +++ b/githubkit/versions/v2022_11_28/types/group_0633.py @@ -12,25 +12,20 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0033 import MilestoneType -from .group_0367 import EnterpriseWebhooksType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0407 import WebhooksPullRequest5Type -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0410 import ProjectsV2StatusUpdateType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestDemilestonedType(TypedDict): - """pull_request demilestoned event""" +class WebhookProjectsV2StatusUpdateCreatedType(TypedDict): + """Projects v2 Status Update Created Event""" - action: Literal["demilestoned"] - enterprise: NotRequired[EnterpriseWebhooksType] - milestone: NotRequired[MilestoneType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhooksPullRequest5Type - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + action: Literal["created"] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + projects_v2_status_update: ProjectsV2StatusUpdateType + sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestDemilestonedType",) +__all__ = ("WebhookProjectsV2StatusUpdateCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0634.py b/githubkit/versions/v2022_11_28/types/group_0634.py index d73be09c8..2a98885f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0634.py +++ b/githubkit/versions/v2022_11_28/types/group_0634.py @@ -9,938 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0410 import ProjectsV2StatusUpdateType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestDequeuedType(TypedDict): - """pull_request dequeued event""" +class WebhookProjectsV2StatusUpdateDeletedType(TypedDict): + """Projects v2 Status Update Deleted Event""" - action: Literal["dequeued"] - enterprise: NotRequired[EnterpriseWebhooksType] + action: Literal["deleted"] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestDequeuedPropPullRequestType - reason: str - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + projects_v2_status_update: ProjectsV2StatusUpdateType sender: SimpleUserWebhooksType -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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] - - -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__ = ( - "WebhookPullRequestDequeuedType", - "WebhookPullRequestDequeuedPropPullRequestType", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", - "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType", - "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropMergedByType", - "WebhookPullRequestDequeuedPropPullRequestPropMilestoneType", - "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestDequeuedPropPullRequestPropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestDequeuedPropPullRequestPropBaseType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookProjectsV2StatusUpdateDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0635.py b/githubkit/versions/v2022_11_28/types/group_0635.py index 41a522008..cd2899823 100644 --- a/githubkit/versions/v2022_11_28/types/group_0635.py +++ b/githubkit/versions/v2022_11_28/types/group_0635.py @@ -9,79 +9,77 @@ from __future__ import annotations -from typing import Literal +from datetime import date +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0405 import PullRequestWebhookType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0410 import ProjectsV2StatusUpdateType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestEditedType(TypedDict): - """pull_request edited event""" +class WebhookProjectsV2StatusUpdateEditedType(TypedDict): + """Projects v2 Status Update Edited Event""" action: Literal["edited"] - changes: WebhookPullRequestEditedPropChangesType - enterprise: NotRequired[EnterpriseWebhooksType] + changes: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesType] installation: NotRequired[SimpleInstallationType] - number: int - organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: PullRequestWebhookType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + organization: OrganizationSimpleWebhooksType + projects_v2_status_update: ProjectsV2StatusUpdateType + sender: SimpleUserWebhooksType -class WebhookPullRequestEditedPropChangesType(TypedDict): - """WebhookPullRequestEditedPropChanges +class WebhookProjectsV2StatusUpdateEditedPropChangesType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChanges""" - The changes to the comment if the action was `edited`. - """ + body: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType] + status: NotRequired[WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType] + start_date: NotRequired[ + WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType + ] + target_date: NotRequired[ + WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType + ] - base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] - body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] - title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] +class WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropBody""" -class WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBody""" + from_: NotRequired[Union[str, None]] + to: NotRequired[Union[str, None]] - from_: str +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStatus""" -class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): - """WebhookPullRequestEditedPropChangesPropTitle""" + 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"]] + ] - from_: str +class WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDate""" -class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBase""" + from_: NotRequired[Union[date, None]] + to: NotRequired[Union[date, None]] - ref: WebhookPullRequestEditedPropChangesPropBasePropRefType - sha: WebhookPullRequestEditedPropChangesPropBasePropShaType +class WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType(TypedDict): + """WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDate""" -class WebhookPullRequestEditedPropChangesPropBasePropRefType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBasePropRef""" - - from_: str - - -class WebhookPullRequestEditedPropChangesPropBasePropShaType(TypedDict): - """WebhookPullRequestEditedPropChangesPropBasePropSha""" - - from_: str + from_: NotRequired[Union[date, None]] + to: NotRequired[Union[date, None]] __all__ = ( - "WebhookPullRequestEditedType", - "WebhookPullRequestEditedPropChangesType", - "WebhookPullRequestEditedPropChangesPropBodyType", - "WebhookPullRequestEditedPropChangesPropTitleType", - "WebhookPullRequestEditedPropChangesPropBaseType", - "WebhookPullRequestEditedPropChangesPropBasePropRefType", - "WebhookPullRequestEditedPropChangesPropBasePropShaType", + "WebhookProjectsV2StatusUpdateEditedType", + "WebhookProjectsV2StatusUpdateEditedPropChangesType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropBodyType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStatusType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropStartDateType", + "WebhookProjectsV2StatusUpdateEditedPropChangesPropTargetDateType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0636.py b/githubkit/versions/v2022_11_28/types/group_0636.py index 5be9e70b5..0b9b1db83 100644 --- a/githubkit/versions/v2022_11_28/types/group_0636.py +++ b/githubkit/versions/v2022_11_28/types/group_0636.py @@ -9,937 +9,23 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestEnqueuedType(TypedDict): - """pull_request enqueued event""" +class WebhookPublicType(TypedDict): + """public event""" - action: Literal["enqueued"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestEnqueuedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestEnqueuedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, None] - assignees: List[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, None] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestEnqueuedPropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestEnqueuedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, None] - ] - milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, None] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUserType, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -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] - - -class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, None - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -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] - - -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] - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" - - comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType - ) - review_comments: ( - WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType - ) - self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestEnqueuedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType - sha: str - user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, None] - - -class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -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] - - -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] - - -class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestEnqueuedType", - "WebhookPullRequestEnqueuedPropPullRequestType", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", - "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType", - "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropMergedByType", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType", - "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestEnqueuedPropPullRequestPropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestEnqueuedPropPullRequestPropBaseType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookPublicType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0637.py b/githubkit/versions/v2022_11_28/types/group_0637.py index 4c50e550d..ee51b7797 100644 --- a/githubkit/versions/v2022_11_28/types/group_0637.py +++ b/githubkit/versions/v2022_11_28/types/group_0637.py @@ -13,39 +13,39 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0383 import WebhooksLabelType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0384 import WebhooksUserType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestLabeledType(TypedDict): - """pull_request labeled event""" +class WebhookPullRequestAssignedType(TypedDict): + """pull_request assigned event""" - action: Literal["labeled"] + action: Literal["assigned"] + assignee: Union[WebhooksUserType, None] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLabeledPropPullRequestType + pull_request: WebhookPullRequestAssignedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestLabeledPropPullRequestType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestLabeledPropPullRequestPropLinksType + links: WebhookPullRequestAssignedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] + assignee: Union[WebhookPullRequestAssignedPropPullRequestPropAssigneeType, None] assignees: List[ - Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] + Union[WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -57,8 +57,8 @@ class WebhookPullRequestLabeledPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLabeledPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestAssignedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestAssignedPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -70,11 +70,11 @@ class WebhookPullRequestLabeledPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestLabeledPropPullRequestPropHeadType + head: WebhookPullRequestAssignedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] + labels: List[WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -83,22 +83,22 @@ class WebhookPullRequestLabeledPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestAssignedPropPullRequestPropMergedByType, None] ] - milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] + milestone: Union[WebhookPullRequestAssignedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: List[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -108,10 +108,10 @@ class WebhookPullRequestLabeledPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestAssignedPropPullRequestPropUserType, None] -class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -137,7 +137,7 @@ class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -163,7 +163,7 @@ class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -172,12 +172,14 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -203,7 +205,7 @@ class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(Typ url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -215,7 +217,7 @@ class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -237,11 +239,11 @@ class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -251,7 +253,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -267,7 +269,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -293,7 +295,7 @@ class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(Typed url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -321,7 +323,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0T url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -347,54 +349,56 @@ class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropLinks""" +class WebhookPullRequestAssignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropLinks""" - comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -402,29 +406,29 @@ class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropBase""" +class WebhookPullRequestAssignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] + user: Union[WebhookPullRequestAssignedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -450,7 +454,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -510,7 +514,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -525,10 +529,10 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -562,7 +566,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -574,7 +578,7 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -600,10 +604,10 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(Type url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -612,17 +616,17 @@ class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsTyp triage: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLabeledPropPullRequestPropHead""" +class WebhookPullRequestAssignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAssignedPropPullRequestPropHead""" label: Union[str, None] ref: str - repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] + repo: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] + user: Union[WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -682,7 +686,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -697,10 +701,10 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -734,7 +738,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -746,7 +750,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -772,10 +776,10 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(Type url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -784,7 +788,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsTyp triage: NotRequired[bool] -class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -810,7 +814,7 @@ class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -827,7 +831,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1T node_id: str parent: NotRequired[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -838,11 +842,11 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1T url: str -class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar - ent + """WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent """ description: Union[str, None] @@ -858,7 +862,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1P url: str -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -873,7 +877,7 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedD node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -884,10 +888,10 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedD url: NotRequired[str] -class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -903,41 +907,41 @@ class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentT __all__ = ( - "WebhookPullRequestLabeledType", - "WebhookPullRequestLabeledPropPullRequestType", - "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", - "WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergeType", - "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestLabeledPropPullRequestPropMergedByType", - "WebhookPullRequestLabeledPropPullRequestPropMilestoneType", - "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestLabeledPropPullRequestPropUserType", - "WebhookPullRequestLabeledPropPullRequestPropLinksType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestLabeledPropPullRequestPropBaseType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropUserType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestLabeledPropPullRequestPropHeadType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestAssignedType", + "WebhookPullRequestAssignedPropPullRequestType", + "WebhookPullRequestAssignedPropPullRequestPropAssigneeType", + "WebhookPullRequestAssignedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergeType", + "WebhookPullRequestAssignedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAssignedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropMergedByType", + "WebhookPullRequestAssignedPropPullRequestPropMilestoneType", + "WebhookPullRequestAssignedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAssignedPropPullRequestPropUserType", + "WebhookPullRequestAssignedPropPullRequestPropLinksType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAssignedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAssignedPropPullRequestPropBaseType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropUserType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropHeadType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAssignedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAssignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAssignedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0638.py b/githubkit/versions/v2022_11_28/types/group_0638.py index c9f67b155..e15171267 100644 --- a/githubkit/versions/v2022_11_28/types/group_0638.py +++ b/githubkit/versions/v2022_11_28/types/group_0638.py @@ -13,37 +13,43 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestLockedType(TypedDict): - """pull_request locked event""" +class WebhookPullRequestAutoMergeDisabledType(TypedDict): + """pull_request auto_merge_disabled event""" - action: Literal["locked"] + action: Literal["auto_merge_disabled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestLockedPropPullRequestType + pull_request: WebhookPullRequestAutoMergeDisabledPropPullRequestType + reason: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestLockedPropPullRequestType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestLockedPropPullRequestPropLinksType + links: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType, None + ] assignees: List[ - Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -55,8 +61,10 @@ class WebhookPullRequestLockedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestLockedPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -68,11 +76,11 @@ class WebhookPullRequestLockedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestLockedPropPullRequestPropHeadType + head: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] + labels: List[WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -81,22 +89,24 @@ class WebhookPullRequestLockedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestLockedPropPullRequestPropMergedByType, None] + Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestLockedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: List[ Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -106,10 +116,10 @@ class WebhookPullRequestLockedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType, None] -class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -135,7 +145,9 @@ class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -157,11 +169,11 @@ class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(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 WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -170,12 +182,15 @@ class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -201,7 +216,7 @@ class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(Type url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -213,7 +228,7 @@ class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -235,11 +250,11 @@ class WebhookPullRequestLockedPropPullRequestPropMergedByType(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 WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -249,7 +264,8 @@ class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -265,7 +281,9 @@ class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -291,7 +309,7 @@ class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedD url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -319,7 +337,7 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Ty url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -345,82 +363,102 @@ class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropLinks""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinks""" - comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType + comments: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType + ) + commits: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType ) - review_comments: ( - WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType + review_comments: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropBase""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -446,7 +484,7 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -489,10 +527,10 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(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 @@ -506,7 +544,8 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -521,10 +560,11 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -558,7 +598,9 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): """License""" key: str @@ -568,7 +610,9 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(Typ url: Union[str, None] -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -594,10 +638,12 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(Typed url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermission + s + """ admin: bool maintain: NotRequired[bool] @@ -606,17 +652,45 @@ class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType triage: NotRequired[bool] -class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestLockedPropPullRequestPropHead""" +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] + repo: WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType sha: str - user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType, None + ] + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -676,7 +750,8 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -691,10 +766,11 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -728,7 +804,9 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): """License""" key: str @@ -738,7 +816,9 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(Typ url: Union[str, None] -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -764,10 +844,12 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(Typed url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermission + s + """ admin: bool maintain: NotRequired[bool] @@ -776,33 +858,7 @@ class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType 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] - - -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -819,7 +875,7 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Ty node_id: str parent: NotRequired[ Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -830,11 +886,11 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Ty url: str -class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare - nt + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOne + of1PropParent """ description: Union[str, None] @@ -850,7 +906,9 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Pr url: str -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -865,7 +923,7 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDi node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -876,10 +934,12 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDi url: NotRequired[str] -class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropPar + ent + """ description: Union[str, None] html_url: str @@ -895,41 +955,41 @@ class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentTy __all__ = ( - "WebhookPullRequestLockedType", - "WebhookPullRequestLockedPropPullRequestType", - "WebhookPullRequestLockedPropPullRequestPropAssigneeType", - "WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestLockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestLockedPropPullRequestPropMergedByType", - "WebhookPullRequestLockedPropPullRequestPropMilestoneType", - "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestLockedPropPullRequestPropUserType", - "WebhookPullRequestLockedPropPullRequestPropLinksType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestLockedPropPullRequestPropBaseType", - "WebhookPullRequestLockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropHeadType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestLockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestAutoMergeDisabledType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneeType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergeType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMergedByType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestoneType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBaseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAutoMergeDisabledPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0639.py b/githubkit/versions/v2022_11_28/types/group_0639.py index 1240d1cfc..e50f8fad6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0639.py +++ b/githubkit/versions/v2022_11_28/types/group_0639.py @@ -9,28 +9,977 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0033 import MilestoneType -from .group_0367 import EnterpriseWebhooksType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0407 import WebhooksPullRequest5Type -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestMilestonedType(TypedDict): - """pull_request milestoned event""" +class WebhookPullRequestAutoMergeEnabledType(TypedDict): + """pull_request auto_merge_enabled event""" - action: Literal["milestoned"] + action: Literal["auto_merge_enabled"] enterprise: NotRequired[EnterpriseWebhooksType] - milestone: NotRequired[MilestoneType] + installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhooksPullRequest5Type + pull_request: WebhookPullRequestAutoMergeEnabledPropPullRequestType + reason: NotRequired[str] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestMilestonedType",) +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] + + +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] + + +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] + + +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] + + +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] + + +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] + + +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] + + +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] + + +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] + + +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] + + +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__ = ( + "WebhookPullRequestAutoMergeEnabledType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneeType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergeType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMergedByType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestoneType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBaseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestAutoMergeEnabledPropPullRequestPropRequestedTeamsItemsPropParentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0640.py b/githubkit/versions/v2022_11_28/types/group_0640.py index 067520b66..160620c1b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0640.py +++ b/githubkit/versions/v2022_11_28/types/group_0640.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0405 import PullRequestWebhookType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0411 import PullRequestWebhookType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestOpenedType(TypedDict): - """pull_request opened event""" +class WebhookPullRequestClosedType(TypedDict): + """pull_request closed event""" - action: Literal["opened"] + action: Literal["closed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int @@ -33,4 +33,4 @@ class WebhookPullRequestOpenedType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestOpenedType",) +__all__ = ("WebhookPullRequestClosedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0641.py b/githubkit/versions/v2022_11_28/types/group_0641.py index 6a3ea0d79..72e7bffbb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0641.py +++ b/githubkit/versions/v2022_11_28/types/group_0641.py @@ -12,18 +12,18 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0405 import PullRequestWebhookType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0411 import PullRequestWebhookType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestReadyForReviewType(TypedDict): - """pull_request ready_for_review event""" +class WebhookPullRequestConvertedToDraftType(TypedDict): + """pull_request converted_to_draft event""" - action: Literal["ready_for_review"] + action: Literal["converted_to_draft"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int @@ -33,4 +33,4 @@ class WebhookPullRequestReadyForReviewType(TypedDict): sender: SimpleUserWebhooksType -__all__ = ("WebhookPullRequestReadyForReviewType",) +__all__ = ("WebhookPullRequestConvertedToDraftType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0642.py b/githubkit/versions/v2022_11_28/types/group_0642.py index 4be7801ec..d840a41b4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0642.py +++ b/githubkit/versions/v2022_11_28/types/group_0642.py @@ -12,25 +12,25 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0405 import PullRequestWebhookType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0037 import MilestoneType +from .group_0372 import EnterpriseWebhooksType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0413 import WebhooksPullRequest5Type +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestReopenedType(TypedDict): - """pull_request reopened event""" +class WebhookPullRequestDemilestonedType(TypedDict): + """pull_request demilestoned event""" - action: Literal["reopened"] + 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: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookPullRequestReopenedType",) +__all__ = ("WebhookPullRequestDemilestonedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0643.py b/githubkit/versions/v2022_11_28/types/group_0643.py index 93f2db6df..6e1ed82c7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0643.py +++ b/githubkit/versions/v2022_11_28/types/group_0643.py @@ -13,157 +13,38 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewCommentCreatedType(TypedDict): - """pull_request_review_comment created event""" +class WebhookPullRequestDequeuedType(TypedDict): + """pull_request dequeued event""" - action: Literal["created"] - comment: WebhookPullRequestReviewCommentCreatedPropCommentType + action: Literal["dequeued"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType + pull_request: WebhookPullRequestDequeuedPropPullRequestType + reason: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -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] - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropCommentPropLinks""" - - html: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType - pull_request: ( - WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType - ) - self_: WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType(TypedDict): - """Link""" +class WebhookPullRequestDequeuedPropPullRequestType(TypedDict): + """Pull Request""" - href: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType(TypedDict): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequest""" - - links: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType + links: WebhookPullRequestDequeuedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, None - ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneeType, None] assignees: List[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, - None, - ] + Union[WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -175,56 +56,61 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestDequeuedPropPullRequestPropBaseType body: Union[str, None] - closed_at: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] comments_url: str + commits: NotRequired[int] commits_url: str - created_at: str + created_at: datetime + deletions: NotRequired[int] diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType + draft: bool + head: WebhookPullRequestDequeuedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType - ] + labels: List[WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType] locked: bool + maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, None + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestDequeuedPropPullRequestPropMergedByType, None] ] + milestone: Union[WebhookPullRequestDequeuedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: List[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str + review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: str + updated_at: datetime url: str - user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestDequeuedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestDequeuedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -246,13 +132,11 @@ 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] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -274,11 +158,11 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsTyp site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -287,13 +171,12 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(Typ commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, - None, + WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -321,9 +204,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnab url: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -335,7 +216,33 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(TypedDict): +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] + + +class WebhookPullRequestDequeuedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -345,8 +252,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -362,9 +268,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): +class WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -390,7 +294,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCrea url: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -414,11 +318,11 @@ 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] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestDequeuedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -444,58 +348,48 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDic url: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" +class WebhookPullRequestDequeuedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType + comments: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType ) - commits: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -503,7 +397,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -511,37 +405,29 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" +class WebhookPullRequestDequeuedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, None - ] + user: Union[WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -567,9 +453,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( url: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -629,8 +513,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, - None, + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -645,11 +528,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -683,7 +565,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -695,9 +577,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -723,12 +603,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropO url: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss - ions - """ + """WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -737,23 +615,43 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" +class WebhookPullRequestDequeuedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestDequeuedPropPullRequestPropHead""" label: str ref: str - repo: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, None - ] + repo: WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType sha: str - user: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, None - ] + user: Union[WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( - TypedDict -): +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] + + +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -799,7 +697,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 @@ -813,8 +711,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, - None, + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -829,11 +726,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -867,7 +763,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -879,9 +775,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -907,12 +801,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropO url: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss - ions - """ + """WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -921,35 +813,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -958,30 +822,30 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer """ deleted: NotRequired[bool] - description: Union[str, None] - html_url: str + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] id: int - members_url: str + members_url: NotRequired[str] name: str - node_id: str + node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, 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 WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent + """WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent """ description: Union[str, None] @@ -997,9 +861,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -1014,7 +876,7 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -1025,12 +887,10 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte url: NotRequired[str] -class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ + """WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -1046,47 +906,41 @@ class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsIte __all__ = ( - "WebhookPullRequestReviewCommentCreatedType", - "WebhookPullRequestReviewCommentCreatedPropCommentType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropUserType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType", - "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestDequeuedType", + "WebhookPullRequestDequeuedPropPullRequestType", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneeType", + "WebhookPullRequestDequeuedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergeType", + "WebhookPullRequestDequeuedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestDequeuedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropMergedByType", + "WebhookPullRequestDequeuedPropPullRequestPropMilestoneType", + "WebhookPullRequestDequeuedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestDequeuedPropPullRequestPropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestDequeuedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestDequeuedPropPullRequestPropBaseType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestDequeuedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestDequeuedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestDequeuedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0644.py b/githubkit/versions/v2022_11_28/types/group_0644.py index 63e90c7b5..6dbac7d63 100644 --- a/githubkit/versions/v2022_11_28/types/group_0644.py +++ b/githubkit/versions/v2022_11_28/types/group_0644.py @@ -9,962 +9,79 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0408 import WebhooksReviewCommentType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0411 import PullRequestWebhookType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewCommentDeletedType(TypedDict): - """pull_request_review_comment deleted event""" +class WebhookPullRequestEditedType(TypedDict): + """pull_request edited event""" - action: Literal["deleted"] - comment: WebhooksReviewCommentType + action: Literal["edited"] + changes: WebhookPullRequestEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - - links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - assignee: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType - body: Union[str, None] - closed_at: Union[str, None] - comments_url: str - commits_url: str - created_at: str - diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType - ] - locked: bool - merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: str - url: str - user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str + sender: NotRequired[SimpleUserWebhooksType] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" +class WebhookPullRequestEditedPropChangesType(TypedDict): + """WebhookPullRequestEditedPropChanges - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss - ions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" - - label: str - ref: str - repo: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None - ] - sha: str - user: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss - ions + The changes to the comment if the action was `edited`. """ - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] + base: NotRequired[WebhookPullRequestEditedPropChangesPropBaseType] + body: NotRequired[WebhookPullRequestEditedPropChangesPropBodyType] + title: NotRequired[WebhookPullRequestEditedPropChangesPropTitleType] -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" +class WebhookPullRequestEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBody""" - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] + from_: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] +class WebhookPullRequestEditedPropChangesPropTitleType(TypedDict): + """WebhookPullRequestEditedPropChangesPropTitle""" + from_: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems - Oneof1PropParent - """ - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str +class WebhookPullRequestEditedPropChangesPropBaseType(TypedDict): + """WebhookPullRequestEditedPropChangesPropBase""" + ref: WebhookPullRequestEditedPropChangesPropBasePropRefType + sha: WebhookPullRequestEditedPropChangesPropBasePropShaType -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( - 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[ - WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + from_: str -class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp - Parent - """ +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__ = ( - "WebhookPullRequestReviewCommentDeletedType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestEditedType", + "WebhookPullRequestEditedPropChangesType", + "WebhookPullRequestEditedPropChangesPropBodyType", + "WebhookPullRequestEditedPropChangesPropTitleType", + "WebhookPullRequestEditedPropChangesPropBaseType", + "WebhookPullRequestEditedPropChangesPropBasePropRefType", + "WebhookPullRequestEditedPropChangesPropBasePropShaType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0645.py b/githubkit/versions/v2022_11_28/types/group_0645.py index da5121585..dbf3d0efc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0645.py +++ b/githubkit/versions/v2022_11_28/types/group_0645.py @@ -13,44 +13,37 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0387 import WebhooksChangesType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0408 import WebhooksReviewCommentType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewCommentEditedType(TypedDict): - """pull_request_review_comment edited event""" +class WebhookPullRequestEnqueuedType(TypedDict): + """pull_request enqueued event""" - action: Literal["edited"] - changes: WebhooksChangesType - comment: WebhooksReviewCommentType + action: Literal["enqueued"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType + pull_request: WebhookPullRequestEnqueuedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequest""" +class WebhookPullRequestEnqueuedPropPullRequestType(TypedDict): + """Pull Request""" - links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType + links: WebhookPullRequestEnqueuedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None - ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType, None] assignees: List[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, - None, - ] + Union[WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -62,56 +55,61 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: NotRequired[ - Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None - ] - ] - base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestEnqueuedPropPullRequestPropBaseType body: Union[str, None] - closed_at: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] comments_url: str + commits: NotRequired[int] commits_url: str - created_at: str + created_at: datetime + deletions: NotRequired[int] diff_url: str - draft: NotRequired[bool] - head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType + draft: bool + head: WebhookPullRequestEnqueuedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType - ] + labels: List[WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType] locked: bool + maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestEnqueuedPropPullRequestPropMergedByType, None] ] + milestone: Union[WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: List[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str + review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: str + updated_at: datetime url: str - user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -137,9 +135,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(Typed url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -165,7 +161,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -174,13 +170,12 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(Type commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, - None, + WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -208,9 +203,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabl url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -222,7 +215,33 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestEnqueuedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -232,8 +251,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(Type closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -249,9 +267,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(Type url: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -277,7 +293,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreat url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -305,7 +321,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestEnqueuedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -331,58 +347,48 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" +class WebhookPullRequestEnqueuedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropLinks""" - comments: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType + comments: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType ) - html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType + review_comments: ( + WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType ) + self_: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -390,7 +396,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCom href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -398,37 +404,29 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCom href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" +class WebhookPullRequestEnqueuedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None - ] + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -454,9 +452,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -516,8 +512,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, - None, + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -532,11 +527,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -570,7 +564,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -582,9 +576,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLi url: Union[str, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -610,12 +602,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOw url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi - ons - """ + """WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -624,23 +614,43 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPe triage: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" +class WebhookPullRequestEnqueuedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestEnqueuedPropPullRequestPropHead""" label: str ref: str - repo: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None - ] + repo: WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType sha: str - user: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None - ] + user: Union[WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -700,8 +710,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, - None, + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -716,11 +725,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -754,7 +762,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -766,9 +774,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLi url: Union[str, None] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -794,12 +800,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOw url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi - ons - """ + """WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -808,35 +812,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPe triage: NotRequired[bool] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -853,7 +829,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -864,11 +840,11 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO - neof1PropParent + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropPa + rent """ description: Union[str, None] @@ -884,9 +860,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewers url: str -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -901,7 +875,7 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -912,12 +886,10 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem url: NotRequired[str] -class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP - arent - """ + """WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -933,40 +905,41 @@ class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItem __all__ = ( - "WebhookPullRequestReviewCommentEditedType", - "WebhookPullRequestReviewCommentEditedPropPullRequestType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestEnqueuedType", + "WebhookPullRequestEnqueuedPropPullRequestType", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneeType", + "WebhookPullRequestEnqueuedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergeType", + "WebhookPullRequestEnqueuedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestEnqueuedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropMergedByType", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestoneType", + "WebhookPullRequestEnqueuedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestEnqueuedPropPullRequestPropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestEnqueuedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestEnqueuedPropPullRequestPropBaseType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestEnqueuedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestEnqueuedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestEnqueuedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0646.py b/githubkit/versions/v2022_11_28/types/group_0646.py index e36983931..0779bdf6b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0646.py +++ b/githubkit/versions/v2022_11_28/types/group_0646.py @@ -13,117 +13,39 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0388 import WebhooksLabelType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewDismissedType(TypedDict): - """pull_request_review dismissed event""" +class WebhookPullRequestLabeledType(TypedDict): + """pull_request labeled event""" - action: Literal["dismissed"] + action: Literal["labeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhooksLabelType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewDismissedPropPullRequestType + pull_request: WebhookPullRequestLabeledPropPullRequestType repository: RepositoryWebhooksType - review: WebhookPullRequestReviewDismissedPropReviewType sender: SimpleUserWebhooksType -class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): - """WebhookPullRequestReviewDismissedPropReview - - The review that was affected. - """ - - links: WebhookPullRequestReviewDismissedPropReviewPropLinksType - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: Union[str, None] - commit_id: str - html_url: str - id: int - node_id: str - pull_request_url: str - state: Literal["dismissed", "approved", "changes_requested"] - submitted_at: datetime - user: Union[WebhookPullRequestReviewDismissedPropReviewPropUserType, None] - - -class WebhookPullRequestReviewDismissedPropReviewPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -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""" +class WebhookPullRequestLabeledPropPullRequestType(TypedDict): + """Pull Request""" - links: WebhookPullRequestReviewDismissedPropPullRequestPropLinksType + links: WebhookPullRequestLabeledPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None - ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestLabeledPropPullRequestPropAssigneeType, None] assignees: List[ - Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None - ] + Union[WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -135,52 +57,61 @@ class WebhookPullRequestReviewDismissedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestLabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLabeledPropPullRequestPropBaseType body: Union[str, None] - closed_at: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] comments_url: str + commits: NotRequired[int] commits_url: str - created_at: str + created_at: datetime + deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType + head: WebhookPullRequestLabeledPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] + labels: List[WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType] locked: bool + maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, None + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestLabeledPropPullRequestPropMergedByType, None] ] + milestone: Union[WebhookPullRequestLabeledPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str + rebaseable: NotRequired[Union[bool, None]] requested_reviewers: List[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str + review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: str + updated_at: datetime url: str - user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestLabeledPropPullRequestPropUserType, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -206,7 +137,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -232,7 +163,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(Typ url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -241,15 +172,12 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDic commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, - None, + WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -275,7 +203,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledBy url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -287,7 +215,33 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedD url: str -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLabeledPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -297,8 +251,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDic closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, - None, + WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -314,9 +267,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDic url: str -class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -338,11 +289,11 @@ 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] -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -370,7 +321,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -396,60 +347,54 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" +class WebhookPullRequestLabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -457,33 +402,29 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" +class WebhookPullRequestLabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None - ] + user: Union[WebhookPullRequestLabeledPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -509,7 +450,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(Typed url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -569,8 +510,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, - None, + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -585,11 +525,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, - None, + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -623,7 +562,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(Typed web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -635,9 +574,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -663,10 +600,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerT url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -675,21 +612,17 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" +class WebhookPullRequestLabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLabeledPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, None - ] + repo: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None - ] + user: Union[WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -749,8 +682,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, - None, + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType, None ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -765,11 +697,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, - None, + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -803,7 +734,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(Typed web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -815,9 +746,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -843,10 +772,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerT url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -855,7 +784,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -881,7 +810,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(Typed url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -898,7 +827,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -909,11 +838,11 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropPar + ent """ description: Union[str, None] @@ -929,9 +858,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -946,7 +873,7 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsTyp node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -957,12 +884,10 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen - t - """ + """WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -978,45 +903,41 @@ class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPro __all__ = ( - "WebhookPullRequestReviewDismissedType", - "WebhookPullRequestReviewDismissedPropReviewType", - "WebhookPullRequestReviewDismissedPropReviewPropUserType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType", - "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType", - "WebhookPullRequestReviewDismissedPropPullRequestType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewDismissedPropPullRequestPropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBaseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestLabeledType", + "WebhookPullRequestLabeledPropPullRequestType", + "WebhookPullRequestLabeledPropPullRequestPropAssigneeType", + "WebhookPullRequestLabeledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergeType", + "WebhookPullRequestLabeledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestLabeledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestLabeledPropPullRequestPropMergedByType", + "WebhookPullRequestLabeledPropPullRequestPropMilestoneType", + "WebhookPullRequestLabeledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestLabeledPropPullRequestPropUserType", + "WebhookPullRequestLabeledPropPullRequestPropLinksType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestLabeledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestLabeledPropPullRequestPropBaseType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropUserType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestLabeledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestLabeledPropPullRequestPropHeadType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestLabeledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestLabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestLabeledPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0647.py b/githubkit/versions/v2022_11_28/types/group_0647.py index 6b5e46022..6844b38a6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0647.py +++ b/githubkit/versions/v2022_11_28/types/group_0647.py @@ -13,50 +13,37 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0409 import WebhooksReviewType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewEditedType(TypedDict): - """pull_request_review edited event""" +class WebhookPullRequestLockedType(TypedDict): + """pull_request locked event""" - action: Literal["edited"] - changes: WebhookPullRequestReviewEditedPropChangesType + action: Literal["locked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewEditedPropPullRequestType + pull_request: WebhookPullRequestLockedPropPullRequestType repository: RepositoryWebhooksType - review: WebhooksReviewType sender: SimpleUserWebhooksType -class WebhookPullRequestReviewEditedPropChangesType(TypedDict): - """WebhookPullRequestReviewEditedPropChanges""" - - body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] - - -class WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): - """WebhookPullRequestReviewEditedPropChangesPropBody""" +class WebhookPullRequestLockedPropPullRequestType(TypedDict): + """Pull Request""" - from_: str - - -class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): - """Simple Pull Request""" - - links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType + links: WebhookPullRequestLockedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestLockedPropPullRequestPropAssigneeType, None] assignees: List[ - Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] + Union[WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -68,52 +55,61 @@ class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType + auto_merge: Union[WebhookPullRequestLockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestLockedPropPullRequestPropBaseType body: Union[str, None] - closed_at: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] comments_url: str + commits: NotRequired[int] commits_url: str - created_at: str + created_at: datetime + deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestReviewEditedPropPullRequestPropHeadType + head: WebhookPullRequestLockedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] + labels: List[WebhookPullRequestLockedPropPullRequestPropLabelsItemsType] locked: bool + maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - merged_at: Union[str, None] - milestone: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, 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[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str + review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: str + updated_at: datetime url: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestLockedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -135,11 +131,11 @@ 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] -class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -165,7 +161,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedD url: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -174,15 +170,12 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, - None, + WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType, None ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -208,7 +201,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByTyp url: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -220,7 +213,33 @@ class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict url: str -class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestLockedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -230,7 +249,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -246,9 +265,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -270,11 +287,11 @@ 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] -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -302,7 +319,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn url: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -328,86 +345,82 @@ class WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" +class WebhookPullRequestLockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropBase""" +class WebhookPullRequestLockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestLockedPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] + user: Union[WebhookPullRequestLockedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -433,7 +446,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDic url: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -479,6 +492,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 @@ -492,10 +506,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDic language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType, - None, + 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] @@ -506,10 +521,10 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDic open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -518,6 +533,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 @@ -532,14 +551,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( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType(TypedDict): """License""" key: str @@ -549,9 +568,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseTy url: Union[str, None] -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -577,10 +594,10 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType url: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -589,17 +606,17 @@ class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissio triage: NotRequired[bool] -class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewEditedPropPullRequestPropHead""" +class WebhookPullRequestLockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestLockedPropPullRequestPropHead""" - label: str + label: Union[str, None] ref: str - repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] + repo: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, None] + user: Union[WebhookPullRequestLockedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -645,6 +662,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 @@ -658,10 +676,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDic language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType, - None, + 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] @@ -672,10 +691,10 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDic open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -684,6 +703,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 @@ -698,14 +721,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( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType(TypedDict): """License""" key: str @@ -715,9 +738,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseTy url: Union[str, None] -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -743,10 +764,10 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType url: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -755,7 +776,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissio triage: NotRequired[bool] -class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestLockedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -781,7 +802,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDic url: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -798,7 +819,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -809,11 +830,11 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn url: str -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr - opParent + """WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropPare + nt """ description: Union[str, None] @@ -829,9 +850,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOn url: str -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( - TypedDict -): +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): """Team Groups of organization members that gives permissions on specified repositories. @@ -846,7 +865,7 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -857,10 +876,10 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( url: NotRequired[str] -class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -876,42 +895,41 @@ class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropPa __all__ = ( - "WebhookPullRequestReviewEditedType", - "WebhookPullRequestReviewEditedPropChangesType", - "WebhookPullRequestReviewEditedPropChangesPropBodyType", - "WebhookPullRequestReviewEditedPropPullRequestType", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewEditedPropPullRequestPropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewEditedPropPullRequestPropBaseType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestLockedType", + "WebhookPullRequestLockedPropPullRequestType", + "WebhookPullRequestLockedPropPullRequestPropAssigneeType", + "WebhookPullRequestLockedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestLockedPropPullRequestPropAutoMergeType", + "WebhookPullRequestLockedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestLockedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestLockedPropPullRequestPropMergedByType", + "WebhookPullRequestLockedPropPullRequestPropMilestoneType", + "WebhookPullRequestLockedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestLockedPropPullRequestPropUserType", + "WebhookPullRequestLockedPropPullRequestPropLinksType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestLockedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestLockedPropPullRequestPropBaseType", + "WebhookPullRequestLockedPropPullRequestPropBasePropUserType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestLockedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestLockedPropPullRequestPropHeadType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestLockedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestLockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestLockedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0648.py b/githubkit/versions/v2022_11_28/types/group_0648.py index 2d23a9a57..1eee6d623 100644 --- a/githubkit/versions/v2022_11_28/types/group_0648.py +++ b/githubkit/versions/v2022_11_28/types/group_0648.py @@ -9,1056 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0037 import MilestoneType +from .group_0372 import EnterpriseWebhooksType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0413 import WebhooksPullRequest5Type +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof0""" +class WebhookPullRequestMilestonedType(TypedDict): + """pull_request milestoned event""" - action: Literal["review_request_removed"] + action: Literal["milestoned"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] + milestone: NotRequired[MilestoneType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType + pull_request: WebhooksPullRequest5Type repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None - ] - sender: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, - None, - ] - assignees: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, - None, - ] - base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType - ] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, - None, - ] - ] - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, - None, - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None - ] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType - html: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType - ) - issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType - self_: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookPullRequestMilestonedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0649.py b/githubkit/versions/v2022_11_28/types/group_0649.py index d5ef49d53..d32daead7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0649.py +++ b/githubkit/versions/v2022_11_28/types/group_0649.py @@ -9,1073 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0411 import PullRequestWebhookType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestRemovedOneof1""" +class WebhookPullRequestOpenedType(TypedDict): + """pull_request opened event""" - action: Literal["review_request_removed"] + action: Literal["opened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType sender: SimpleUserWebhooksType -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, - None, - ] - assignees: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, - None, - ] - base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType - body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] - comments_url: str - commits: NotRequired[int] - commits_url: str - created_at: datetime - deletions: NotRequired[int] - diff_url: str - draft: bool - head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType - ] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, - None, - ] - ] - milestone: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, - None, - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType - ] - review_comment_url: str - review_comments: NotRequired[int] - review_comments_url: str - state: Literal["open", "closed"] - statuses_url: str - title: str - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None - ] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, - None, - ] - description: Union[str, None] - due_on: Union[datetime, None] - html_url: str - id: int - labels_url: str - node_id: str - number: int - open_issues: int - state: Literal["open", "closed"] - title: str - updated_at: datetime - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - - comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType - html: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType - ) - issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType - ) - statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" - - label: str - ref: str - repo: ( - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType - ) - sha: str - user: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, - None, - ] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( - TypedDict -): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - has_discussions: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, - None, - ] - master_branch: NotRequired[str] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - use_squash_pr_title_as_default: NotRequired[bool] - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - web_commit_signoff_required: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP - ermissions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer - sItemsOneof1PropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( - TypedDict -): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte - msPropParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewRequestRemovedOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", - "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookPullRequestOpenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0650.py b/githubkit/versions/v2022_11_28/types/group_0650.py index 87b6dd728..a093f134e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0650.py +++ b/githubkit/versions/v2022_11_28/types/group_0650.py @@ -9,1036 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0411 import PullRequestWebhookType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof0""" +class WebhookPullRequestReadyForReviewType(TypedDict): + """pull_request ready_for_review event""" - action: Literal["review_requested"] + action: Literal["ready_for_review"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - requested_reviewer: Union[ - WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None - ] sender: SimpleUserWebhooksType -class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType - 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: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType - ] - locked: bool - maintainer_can_modify: NotRequired[bool] - merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None - ] - ] - milestone: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType - ] - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None - ] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - url: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, - 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType - ] - private: 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis - sions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis - sions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem - sOneof1PropParent - """ - - 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( - 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[ - WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro - pParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewRequestedOneof0Type", - "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookPullRequestReadyForReviewType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0651.py b/githubkit/versions/v2022_11_28/types/group_0651.py index c41939864..bcf2d0afe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0651.py +++ b/githubkit/versions/v2022_11_28/types/group_0651.py @@ -9,1050 +9,28 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0411 import PullRequestWebhookType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): - """WebhookPullRequestReviewRequestedOneof1""" +class WebhookPullRequestReopenedType(TypedDict): + """pull_request reopened event""" - action: Literal["review_requested"] + action: Literal["reopened"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType + pull_request: PullRequestWebhookType repository: RepositoryWebhooksType - requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType sender: SimpleUserWebhooksType -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType(TypedDict): - """Team - - Groups of organization members that gives permissions on specified repositories. - """ - - deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] - id: int - members_url: NotRequired[str] - name: str - node_id: NotRequired[str] - parent: NotRequired[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, None - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): - """Pull Request""" - - links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType - active_lock_reason: Union[ - None, Literal["resolved", "off-topic", "too heated", "spam"] - ] - additions: NotRequired[int] - assignee: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None - ] - assignees: List[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, - None, - ] - ] - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - auto_merge: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None - ] - base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType - 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: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType - html_url: str - id: int - issue_url: str - labels: List[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType - ] - 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 - ] - ] - milestone: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None - ] - node_id: str - number: int - patch_url: str - rebaseable: NotRequired[Union[bool, None]] - requested_reviewers: List[ - Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, - None, - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, - ] - ] - requested_teams: List[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType - ] - 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None - ] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( - TypedDict -): - """PullRequestAutoMerge - - The status of auto merging a pull request. - """ - - commit_message: Union[str, None] - commit_title: Union[str, None] - enabled_by: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, - None, - ] - merge_method: Literal["merge", "squash", "rebase"] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( - TypedDict -): - """Label""" - - color: str - default: bool - description: Union[str, None] - id: int - name: str - node_id: str - 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] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( - TypedDict -): - """Milestone - - A collection of related issues and pull requests. - """ - - closed_at: Union[datetime, None] - closed_issues: int - created_at: datetime - creator: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, - 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" - - comments: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType - ) - commits: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType - ) - html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType - statuses: ( - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType - ) - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( - TypedDict -): - """Link""" - - href: str - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" - - label: str - ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None - ] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( - 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, - 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType - ] - private: 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis - sions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" - - label: str - ref: str - repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType - sha: str - user: Union[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None - ] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( - 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, - 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, - None, - ] - permissions: NotRequired[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType - ] - private: 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( - TypedDict -): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis - sions - """ - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( - 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem - sOneof1PropParent - """ - - 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( - 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[ - WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, - None, - ] - ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] - - -class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( - TypedDict -): - """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro - pParent - """ - - description: Union[str, None] - html_url: str - id: int - members_url: str - name: str - node_id: str - permission: str - privacy: Literal["open", "closed", "secret"] - repositories_url: str - slug: str - url: str - - -__all__ = ( - "WebhookPullRequestReviewRequestedOneof1Type", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", - "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", -) +__all__ = ("WebhookPullRequestReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0652.py b/githubkit/versions/v2022_11_28/types/group_0652.py index 93a433473..26d2cdc3b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0652.py +++ b/githubkit/versions/v2022_11_28/types/group_0652.py @@ -13,40 +13,156 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0409 import WebhooksReviewType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewSubmittedType(TypedDict): - """pull_request_review submitted event""" +class WebhookPullRequestReviewCommentCreatedType(TypedDict): + """pull_request_review_comment created event""" - action: Literal["submitted"] + action: Literal["created"] + comment: WebhookPullRequestReviewCommentCreatedPropCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType + pull_request: WebhookPullRequestReviewCommentCreatedPropPullRequestType repository: RepositoryWebhooksType - review: WebhooksReviewType sender: SimpleUserWebhooksType -class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): - """Simple Pull Request""" +class WebhookPullRequestReviewCommentCreatedPropCommentType(TypedDict): + """Pull Request Review Comment - links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType + 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] + + +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[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType, None ] assignees: List[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType, + None, ] ] author_association: Literal[ @@ -59,40 +175,44 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType, None + ] ] - base: WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str commits_url: str created_at: str diff_url: str - draft: bool - head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType] + labels: List[ + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType + ] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: List[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -101,10 +221,10 @@ class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -130,7 +250,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -156,7 +278,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(Typ url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -165,13 +287,13 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDic commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -199,7 +321,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledBy url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -211,7 +335,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedD url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -221,7 +345,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDic closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -238,7 +362,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDic url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -266,7 +390,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorTy url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -294,7 +418,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -320,24 +444,26 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinks""" - comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType + comments: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType ) - review_comments: ( - WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType + html: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType ) - self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -345,7 +471,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -353,19 +479,23 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -373,7 +503,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -381,13 +511,15 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewComment href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -395,19 +527,21 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( href: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -433,7 +567,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(Typed url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -493,7 +629,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -509,11 +645,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -547,7 +683,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(Typed web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -559,7 +695,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -587,10 +723,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerT url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermiss + ions + """ admin: bool maintain: NotRequired[bool] @@ -599,21 +737,23 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str repo: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType, None ] sha: str user: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -659,7 +799,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool + has_discussions: NotRequired[bool] homepage: Union[str, None] hooks_url: str html_url: str @@ -673,7 +813,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -689,11 +829,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -727,7 +867,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(Typed web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -739,7 +879,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicens url: Union[str, None] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -767,10 +907,12 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerT url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermiss + ions + """ admin: bool maintain: NotRequired[bool] @@ -779,7 +921,9 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermis triage: NotRequired[bool] -class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -805,7 +949,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(Typed url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -822,7 +966,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem node_id: str parent: NotRequired[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -833,11 +977,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof - 1PropParent + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ description: Union[str, None] @@ -853,7 +997,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItem url: str -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -870,7 +1014,7 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsTyp node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -881,11 +1025,11 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen - t + """WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsProp + Parent """ description: Union[str, None] @@ -902,40 +1046,47 @@ class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPro __all__ = ( - "WebhookPullRequestReviewSubmittedType", - "WebhookPullRequestReviewSubmittedPropPullRequestType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewSubmittedPropPullRequestPropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewCommentCreatedType", + "WebhookPullRequestReviewCommentCreatedPropCommentType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropReactionsType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropUserType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropPullRequestType", + "WebhookPullRequestReviewCommentCreatedPropCommentPropLinksPropSelfType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentCreatedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0653.py b/githubkit/versions/v2022_11_28/types/group_0653.py index fddbb5fda..8983016f5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0653.py +++ b/githubkit/versions/v2022_11_28/types/group_0653.py @@ -13,39 +13,40 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0414 import WebhooksReviewCommentType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewThreadResolvedType(TypedDict): - """pull_request_review_thread resolved event""" +class WebhookPullRequestReviewCommentDeletedType(TypedDict): + """pull_request_review_comment deleted event""" - action: Literal["resolved"] + action: Literal["deleted"] + comment: WebhooksReviewCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType + pull_request: WebhookPullRequestReviewCommentDeletedPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - thread: WebhookPullRequestReviewThreadResolvedPropThreadType + sender: SimpleUserWebhooksType -class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): - """Simple Pull Request""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequest""" - links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType + links: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] assignee: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType, None ] assignees: List[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -59,42 +60,44 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType, None + ] ] - base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str commits_url: str created_at: str diff_url: str - draft: bool - head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: List[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType ] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: List[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -103,10 +106,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -132,7 +135,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(Type url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -160,7 +163,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsTyp url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -169,13 +172,13 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(Typ commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -203,7 +206,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnab url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -217,7 +220,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -227,7 +230,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(Typ closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -244,7 +247,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(Typ url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -272,7 +275,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCrea url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -296,11 +299,11 @@ 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] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -326,26 +329,26 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDic url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinks""" comments: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType ) commits: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType ) - html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType statuses: ( - WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType ) -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -353,7 +356,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropComments href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -361,7 +364,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsT href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -369,7 +372,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -377,7 +380,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueTyp href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -385,7 +388,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -393,7 +396,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCo href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -401,7 +404,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -409,19 +412,19 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatuses href: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -449,7 +452,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -511,10 +514,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -525,11 +530,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -538,6 +543,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( releases_url: str role_name: NotRequired[Union[str, None]] size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -552,13 +561,14 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -570,7 +580,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -598,10 +608,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropO url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermiss ions """ @@ -612,21 +622,21 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str repo: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType, None ] sha: str user: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -688,10 +698,12 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -702,11 +714,11 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -715,6 +727,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( releases_url: str role_name: NotRequired[Union[str, None]] size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -729,13 +745,14 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -747,7 +764,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropL url: Union[str, None] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -775,10 +792,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropO url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermiss ions """ @@ -789,7 +806,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropP triage: NotRequired[bool] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType( TypedDict ): """User""" @@ -817,7 +834,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -826,29 +843,29 @@ 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, + 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 WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItems Oneof1PropParent """ @@ -865,7 +882,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewer url: str -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -882,7 +899,7 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -893,10 +910,10 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: NotRequired[str] -class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + """WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsProp Parent """ @@ -913,187 +930,41 @@ class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsIte url: str -class WebhookPullRequestReviewThreadResolvedPropThreadType(TypedDict): - """WebhookPullRequestReviewThreadResolvedPropThread""" - - comments: List[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType - ] - node_id: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType(TypedDict): - """Pull Request Review Comment - - The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- - for-a-pull-request) itself. - """ - - links: ( - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType - ) - author_association: Literal[ - "COLLABORATOR", - "CONTRIBUTOR", - "FIRST_TIMER", - "FIRST_TIME_CONTRIBUTOR", - "MANNEQUIN", - "MEMBER", - "NONE", - "OWNER", - ] - body: str - commit_id: str - created_at: datetime - diff_hunk: str - html_url: str - id: int - in_reply_to_id: NotRequired[int] - line: Union[int, None] - node_id: str - original_commit_id: str - original_line: Union[int, None] - original_position: int - original_start_line: Union[int, None] - path: str - position: Union[int, None] - pull_request_review_id: Union[int, None] - pull_request_url: str - reactions: WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType - side: Literal["LEFT", "RIGHT"] - start_line: Union[int, None] - start_side: Union[None, Literal["LEFT", "RIGHT"]] - subject_type: NotRequired[Literal["line", "file"]] - updated_at: datetime - url: str - user: Union[ - WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType, - None, - ] - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType( - TypedDict -): - """Reactions""" - - plus_one: int - minus_one: int - confused: int - eyes: int - heart: int - hooray: int - laugh: int - rocket: int - total_count: int - url: str - - -class WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -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__ = ( - "WebhookPullRequestReviewThreadResolvedType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewThreadResolvedPropThreadType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", - "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", + "WebhookPullRequestReviewCommentDeletedType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentDeletedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0654.py b/githubkit/versions/v2022_11_28/types/group_0654.py index 15ad302ed..4609e2650 100644 --- a/githubkit/versions/v2022_11_28/types/group_0654.py +++ b/githubkit/versions/v2022_11_28/types/group_0654.py @@ -13,39 +13,42 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0392 import WebhooksChangesType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0414 import WebhooksReviewCommentType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): - """pull_request_review_thread unresolved event""" +class WebhookPullRequestReviewCommentEditedType(TypedDict): + """pull_request_review_comment edited event""" - action: Literal["unresolved"] + action: Literal["edited"] + changes: WebhooksChangesType + comment: WebhooksReviewCommentType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType + pull_request: WebhookPullRequestReviewCommentEditedPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] - thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType + sender: SimpleUserWebhooksType -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): - """Simple Pull Request""" +class WebhookPullRequestReviewCommentEditedPropPullRequestType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequest""" - links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType + links: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] assignee: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType, None ] assignees: List[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType, None, ] ] @@ -59,42 +62,44 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None + auto_merge: NotRequired[ + Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType, None + ] ] - base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType + base: WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType body: Union[str, None] closed_at: Union[str, None] comments_url: str commits_url: str created_at: str diff_url: str - draft: bool - head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType + draft: NotRequired[bool] + head: WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType html_url: str id: int issue_url: str labels: List[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType ] locked: bool merge_commit_sha: Union[str, None] merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str requested_reviewers: List[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments_url: str @@ -103,14 +108,10 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): title: str updated_at: str url: str - user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, None - ] + user: Union[WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( - TypedDict -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -136,7 +137,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType( TypedDict ): """User""" @@ -164,24 +165,22 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsT url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( - TypedDict -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType(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, + WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType, None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -209,7 +208,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEn url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType( TypedDict ): """Label""" @@ -223,9 +222,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( - TypedDict -): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -235,7 +232,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType, None, ] description: Union[str, None] @@ -252,7 +249,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -276,11 +273,11 @@ 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] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -308,7 +305,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -330,30 +327,30 @@ 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] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropLinks""" comments: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType ) commits: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType ) - html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType - review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType - review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType - self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType + html: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType statuses: ( - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType + WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType ) -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType( TypedDict ): """Link""" @@ -361,7 +358,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommen href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType( TypedDict ): """Link""" @@ -369,7 +366,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommit href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType( TypedDict ): """Link""" @@ -377,7 +374,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlTy href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType( TypedDict ): """Link""" @@ -385,7 +382,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueT href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -393,7 +390,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -401,7 +398,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReview href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType( TypedDict ): """Link""" @@ -409,7 +406,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfTy href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType( TypedDict ): """Link""" @@ -417,20 +414,19 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatus href: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType sha: str user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, - None, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType, None ] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType( TypedDict ): """User""" @@ -458,7 +454,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserTyp url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType( TypedDict ): """Repository @@ -520,10 +516,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -534,11 +532,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoTyp open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -547,6 +545,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 @@ -561,13 +563,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 WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -579,7 +582,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -607,11 +610,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi - ssions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissi + ons """ admin: bool @@ -621,48 +624,21 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPro triage: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType + repo: Union[ + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType, None + ] sha: str user: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, - None, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType, None ] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType( TypedDict ): """Repository @@ -724,10 +700,12 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -738,11 +716,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoTyp open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType, None, ] permissions: NotRequired[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -751,6 +729,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 @@ -765,13 +747,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 WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -783,7 +766,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: Union[str, None] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -811,11 +794,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi - ssions + """WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissi + ons """ admin: bool @@ -825,7 +808,35 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPro triage: NotRequired[bool] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -842,7 +853,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -853,11 +864,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte - msOneof1PropParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsO + neof1PropParent """ description: Union[str, None] @@ -873,7 +884,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReview url: str -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -890,7 +901,7 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -901,11 +912,11 @@ class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsI url: NotRequired[str] -class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr - opParent + """WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropP + arent """ description: Union[str, None] @@ -921,189 +932,41 @@ 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] - - -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__ = ( - "WebhookPullRequestReviewThreadUnresolvedType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", - "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", + "WebhookPullRequestReviewCommentEditedType", + "WebhookPullRequestReviewCommentEditedPropPullRequestType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBaseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewCommentEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0655.py b/githubkit/versions/v2022_11_28/types/group_0655.py index a4f50a1b3..66224c9ae 100644 --- a/githubkit/versions/v2022_11_28/types/group_0655.py +++ b/githubkit/versions/v2022_11_28/types/group_0655.py @@ -13,39 +13,117 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestSynchronizeType(TypedDict): - """pull_request synchronize event""" +class WebhookPullRequestReviewDismissedType(TypedDict): + """pull_request_review dismissed event""" - action: Literal["synchronize"] - after: str - before: str + action: Literal["dismissed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestSynchronizePropPullRequestType + pull_request: WebhookPullRequestReviewDismissedPropPullRequestType repository: RepositoryWebhooksType + review: WebhookPullRequestReviewDismissedPropReviewType sender: SimpleUserWebhooksType -class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): - """Pull Request""" +class WebhookPullRequestReviewDismissedPropReviewType(TypedDict): + """WebhookPullRequestReviewDismissedPropReview + + The review that was affected. + """ + + links: WebhookPullRequestReviewDismissedPropReviewPropLinksType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: Union[str, None] + commit_id: str + html_url: str + id: int + node_id: str + pull_request_url: str + state: Literal["dismissed", "approved", "changes_requested"] + submitted_at: datetime + user: Union[WebhookPullRequestReviewDismissedPropReviewPropUserType, None] + + +class WebhookPullRequestReviewDismissedPropReviewPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +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: WebhookPullRequestSynchronizePropPullRequestPropLinksType + links: WebhookPullRequestReviewDismissedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType, None + ] assignees: List[ - Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType, None + ] ] author_association: Literal[ "COLLABORATOR", @@ -58,64 +136,51 @@ class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestSynchronizePropPullRequestPropBaseType + base: WebhookPullRequestReviewDismissedPropPullRequestPropBaseType body: Union[str, None] - changed_files: NotRequired[int] - closed_at: Union[datetime, None] - comments: NotRequired[int] + closed_at: Union[str, None] comments_url: str - commits: NotRequired[int] commits_url: str - created_at: datetime - deletions: NotRequired[int] + created_at: str diff_url: str draft: bool - head: WebhookPullRequestSynchronizePropPullRequestPropHeadType + head: WebhookPullRequestReviewDismissedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] + labels: List[WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] - ] + merged_at: Union[str, None] milestone: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None + WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType, None ] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: List[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str - review_comments: NotRequired[int] review_comments_url: str state: Literal["open", "closed"] statuses_url: str title: str - updated_at: datetime + updated_at: str url: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewDismissedPropPullRequestPropUserType, None] -class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -141,7 +206,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -167,7 +232,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDi url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -176,12 +241,13 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -209,7 +275,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -221,33 +287,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict) url: str -class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -257,7 +297,8 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -273,7 +314,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -297,11 +338,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -329,7 +370,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -355,48 +396,52 @@ class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropLinks""" +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropLinks""" - comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -404,7 +449,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -412,29 +457,33 @@ class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsTyp href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropBase""" +class WebhookPullRequestReviewDismissedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType, None + ] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -460,7 +509,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -520,7 +569,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -536,10 +585,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -573,7 +623,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -585,7 +635,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseTyp url: Union[str, None] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -613,10 +663,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -625,43 +675,21 @@ class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermission triage: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestSynchronizePropPullRequestPropHead""" +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewDismissedPropPullRequestPropHead""" label: str ref: str - repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType + repo: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType, 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: Union[ + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType, None + ] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -721,7 +749,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType, None, ] master_branch: NotRequired[str] @@ -737,10 +765,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -774,7 +803,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -786,7 +815,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseTyp url: Union[str, None] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -814,10 +843,10 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -826,7 +855,33 @@ class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermission triage: NotRequired[bool] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -843,7 +898,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne node_id: str parent: NotRequired[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -854,11 +909,11 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str -class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro - pParent + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent """ description: Union[str, None] @@ -874,7 +929,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOne url: str -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): """Team @@ -891,7 +946,7 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -902,10 +957,12 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( url: NotRequired[str] -class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ description: Union[str, None] html_url: str @@ -921,41 +978,45 @@ class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropPar __all__ = ( - "WebhookPullRequestSynchronizeType", - "WebhookPullRequestSynchronizePropPullRequestType", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", - "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType", - "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropMergedByType", - "WebhookPullRequestSynchronizePropPullRequestPropMilestoneType", - "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestSynchronizePropPullRequestPropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType", - "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestSynchronizePropPullRequestPropBaseType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewDismissedType", + "WebhookPullRequestReviewDismissedPropReviewType", + "WebhookPullRequestReviewDismissedPropReviewPropUserType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropHtmlType", + "WebhookPullRequestReviewDismissedPropReviewPropLinksPropPullRequestType", + "WebhookPullRequestReviewDismissedPropPullRequestType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewDismissedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewDismissedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewDismissedPropPullRequestPropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewDismissedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBaseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewDismissedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewDismissedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0656.py b/githubkit/versions/v2022_11_28/types/group_0656.py index c34ef917e..ba19d1fa9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0656.py +++ b/githubkit/versions/v2022_11_28/types/group_0656.py @@ -13,39 +13,50 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0391 import WebhooksUserMannequinType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0415 import WebhooksReviewType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestUnassignedType(TypedDict): - """pull_request unassigned event""" +class WebhookPullRequestReviewEditedType(TypedDict): + """pull_request_review edited event""" - action: Literal["unassigned"] - assignee: NotRequired[Union[WebhooksUserMannequinType, None]] + action: Literal["edited"] + changes: WebhookPullRequestReviewEditedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnassignedPropPullRequestType + pull_request: WebhookPullRequestReviewEditedPropPullRequestType repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + review: WebhooksReviewType + sender: SimpleUserWebhooksType + + +class WebhookPullRequestReviewEditedPropChangesType(TypedDict): + """WebhookPullRequestReviewEditedPropChanges""" + + body: NotRequired[WebhookPullRequestReviewEditedPropChangesPropBodyType] + +class WebhookPullRequestReviewEditedPropChangesPropBodyType(TypedDict): + """WebhookPullRequestReviewEditedPropChangesPropBody""" -class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): - """Pull Request""" + from_: str - links: WebhookPullRequestUnassignedPropPullRequestPropLinksType + +class WebhookPullRequestReviewEditedPropPullRequestType(TypedDict): + """Simple Pull Request""" + + links: WebhookPullRequestReviewEditedPropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] - additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] + assignee: Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType, None] assignees: List[ - Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] + Union[WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType, None] ] author_association: Literal[ "COLLABORATOR", @@ -58,62 +69,51 @@ class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): "OWNER", ] auto_merge: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType, None ] - base: WebhookPullRequestUnassignedPropPullRequestPropBaseType + base: WebhookPullRequestReviewEditedPropPullRequestPropBaseType 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: WebhookPullRequestUnassignedPropPullRequestPropHeadType + head: WebhookPullRequestReviewEditedPropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] + labels: List[WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType] locked: bool - maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] - mergeable: NotRequired[Union[bool, None]] - mergeable_state: NotRequired[str] - merged: NotRequired[Union[bool, None]] - merged_at: Union[datetime, None] - merged_by: NotRequired[ - Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType, None ] - milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str - rebaseable: NotRequired[Union[bool, None]] requested_reviewers: List[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType ] 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[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropUserType, None] -class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -139,7 +139,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -165,7 +165,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDic url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType(TypedDict): """PullRequestAutoMerge The status of auto merging a pull request. @@ -174,12 +174,13 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -207,7 +208,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType(TypedDict): """Label""" color: str @@ -219,33 +220,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] - url: NotRequired[str] - - -class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType(TypedDict): """Milestone A collection of related issues and pull requests. @@ -255,7 +230,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType, None ] description: Union[str, None] due_on: Union[datetime, None] @@ -271,7 +246,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( +class WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType( TypedDict ): """User""" @@ -299,7 +274,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -327,7 +302,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -353,48 +328,48 @@ class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropLinks""" +class WebhookPullRequestReviewEditedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropLinks""" - comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType + comments: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType review_comment: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType ) review_comments: ( - WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType + WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType ) - self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType + self_: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType(TypedDict): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType(TypedDict): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType(TypedDict): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType(TypedDict): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -402,7 +377,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -410,29 +385,29 @@ class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType(TypedDict): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType(TypedDict): """Link""" href: str -class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropBase""" +class WebhookPullRequestReviewEditedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropBase""" - label: Union[str, None] + label: str ref: str - repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType + repo: WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType, None] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -458,7 +433,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict) url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType(TypedDict): """Repository A git repository @@ -504,7 +479,6 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -518,11 +492,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None + 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] @@ -533,10 +506,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict) open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -545,10 +518,6 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(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 @@ -563,14 +532,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(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 WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -582,7 +549,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType url: Union[str, None] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -610,10 +577,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -622,17 +589,17 @@ class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions triage: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnassignedPropPullRequestPropHead""" +class WebhookPullRequestReviewEditedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewEditedPropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] + repo: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType, None] sha: str - user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] + user: Union[WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType, None] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType(TypedDict): """Repository A git repository @@ -678,7 +645,6 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) has_pages: bool has_projects: bool has_wiki: bool - has_discussions: bool homepage: Union[str, None] hooks_url: str html_url: str @@ -692,11 +658,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None + 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] @@ -707,10 +672,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType, None ] permissions: NotRequired[ - WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -719,10 +684,6 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict) releases_url: str role_name: NotRequired[Union[str, None]] size: int - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -737,14 +698,12 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(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 WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -756,7 +715,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType url: Union[str, None] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -784,10 +743,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissions""" admin: bool maintain: NotRequired[bool] @@ -796,7 +755,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions triage: NotRequired[bool] -class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -822,7 +781,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType(TypedDict) url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -839,7 +798,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -850,11 +809,11 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str -class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop - Parent + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Pr + opParent """ description: Union[str, None] @@ -870,7 +829,9 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneo url: str -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. @@ -885,7 +846,7 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(Typ node_id: NotRequired[str] parent: NotRequired[ Union[ - WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] @@ -896,10 +857,10 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(Typ url: NotRequired[str] -class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParent""" description: Union[str, None] html_url: str @@ -915,41 +876,42 @@ class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropPare __all__ = ( - "WebhookPullRequestUnassignedType", - "WebhookPullRequestUnassignedPropPullRequestType", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", - "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropMergedByType", - "WebhookPullRequestUnassignedPropPullRequestPropMilestoneType", - "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnassignedPropPullRequestPropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnassignedPropPullRequestPropBaseType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewEditedType", + "WebhookPullRequestReviewEditedPropChangesType", + "WebhookPullRequestReviewEditedPropChangesPropBodyType", + "WebhookPullRequestReviewEditedPropPullRequestType", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewEditedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewEditedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewEditedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewEditedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewEditedPropPullRequestPropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewEditedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewEditedPropPullRequestPropBaseType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewEditedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewEditedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewEditedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0657.py b/githubkit/versions/v2022_11_28/types/group_0657.py index a18951227..14476e0c8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0657.py +++ b/githubkit/versions/v2022_11_28/types/group_0657.py @@ -13,39 +13,72 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0383 import WebhooksLabelType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestUnlabeledType(TypedDict): - """pull_request unlabeled event""" +class WebhookPullRequestReviewRequestRemovedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof0""" - action: Literal["unlabeled"] + action: Literal["review_request_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - label: NotRequired[WebhooksLabelType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnlabeledPropPullRequestType + pull_request: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType repository: RepositoryWebhooksType + requested_reviewer: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType, None + ] sender: SimpleUserWebhooksType -class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType, + None, + ] assignees: List[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -57,8 +90,11 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType, + None, + ] + base: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -70,11 +106,13 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] + labels: List[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType + ] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -83,22 +121,28 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType, + None, + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType, + None, ] - milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: List[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -108,10 +152,14 @@ class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType, None + ] -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -133,11 +181,13 @@ 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] -class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -159,11 +209,13 @@ 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 WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. @@ -172,12 +224,13 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): commit_message: Union[str, None] commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -205,7 +258,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( url: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -217,7 +272,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -243,7 +300,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): url: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -253,7 +312,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -269,7 +329,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -291,11 +353,11 @@ 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] -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -319,11 +381,13 @@ 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] -class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -345,52 +409,62 @@ 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] -class WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinks""" - comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType + comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType + html: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType ) - review_comments: ( - WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType + issue: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType ) - self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType + statuses: WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -398,7 +472,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -406,29 +480,42 @@ class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType + ) sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType, + None, + ] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -454,7 +541,9 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -514,7 +603,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -529,10 +619,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -566,7 +657,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -578,7 +669,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): """User""" @@ -606,10 +697,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( url: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropP + ermissions + """ admin: bool maintain: NotRequired[bool] @@ -618,17 +711,54 @@ class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsT triage: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlabeledPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHead""" - label: Union[str, None] + label: str ref: str - repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] + repo: ( + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType + ) sha: str - user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType, + None, + ] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(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] + + +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -688,7 +818,8 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -703,10 +834,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -740,7 +872,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -752,7 +884,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): """User""" @@ -780,10 +912,12 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( url: NotRequired[str] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropP + ermissions + """ admin: bool maintain: NotRequired[bool] @@ -792,33 +926,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsT triage: NotRequired[bool] -class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -835,7 +943,7 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] @@ -846,11 +954,11 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP - arent + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] @@ -866,36 +974,40 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof url: str -class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + 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 WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsIte + msPropParent + """ description: Union[str, None] html_url: str @@ -911,41 +1023,42 @@ class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParen __all__ = ( - "WebhookPullRequestUnlabeledType", - "WebhookPullRequestUnlabeledPropPullRequestType", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", - "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropMergedByType", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType", - "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnlabeledPropPullRequestPropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnlabeledPropPullRequestPropBaseType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropRequestedReviewerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0658.py b/githubkit/versions/v2022_11_28/types/group_0658.py index 0069f797a..7877cac8a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0658.py +++ b/githubkit/versions/v2022_11_28/types/group_0658.py @@ -13,37 +13,88 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookPullRequestUnlockedType(TypedDict): - """pull_request unlocked event""" +class WebhookPullRequestReviewRequestRemovedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestRemovedOneof1""" - action: Literal["unlocked"] + action: Literal["review_request_removed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pull_request: WebhookPullRequestUnlockedPropPullRequestType + pull_request: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType repository: RepositoryWebhooksType + requested_team: WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType sender: SimpleUserWebhooksType -class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType(TypedDict): """Pull Request""" - links: WebhookPullRequestUnlockedPropPullRequestPropLinksType + links: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType active_lock_reason: Union[ None, Literal["resolved", "off-topic", "too heated", "spam"] ] additions: NotRequired[int] - assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, None] + assignee: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType, + None, + ] assignees: List[ - Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType, + None, + ] ] author_association: Literal[ "COLLABORATOR", @@ -55,8 +106,11 @@ class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): "NONE", "OWNER", ] - auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, None] - base: WebhookPullRequestUnlockedPropPullRequestPropBaseType + auto_merge: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType, + None, + ] + base: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType body: Union[str, None] changed_files: NotRequired[int] closed_at: Union[datetime, None] @@ -68,11 +122,13 @@ class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): deletions: NotRequired[int] diff_url: str draft: bool - head: WebhookPullRequestUnlockedPropPullRequestPropHeadType + head: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType html_url: str id: int issue_url: str - labels: List[WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType] + labels: List[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType + ] locked: bool maintainer_can_modify: NotRequired[bool] merge_commit_sha: Union[str, None] @@ -81,22 +137,28 @@ class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): merged: NotRequired[Union[bool, None]] merged_at: Union[datetime, None] merged_by: NotRequired[ - Union[WebhookPullRequestUnlockedPropPullRequestPropMergedByType, None] + Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType, + None, + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType, + None, ] - milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, None] node_id: str number: int patch_url: str rebaseable: NotRequired[Union[bool, None]] requested_reviewers: List[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, None, - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] requested_teams: List[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType ] review_comment_url: str review_comments: NotRequired[int] @@ -106,10 +168,14 @@ class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): title: str updated_at: datetime url: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType, None + ] -class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -135,7 +201,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -161,21 +229,24 @@ class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict) url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType( + TypedDict +): """PullRequestAutoMerge The status of auto merging a pull request. """ commit_message: Union[str, None] - commit_title: str + commit_title: Union[str, None] enabled_by: Union[ - WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType, + None, ] merge_method: Literal["merge", "squash", "rebase"] -class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType( TypedDict ): """User""" @@ -203,7 +274,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType( + TypedDict +): """Label""" color: str @@ -215,7 +288,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): url: str -class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -241,7 +316,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType( + TypedDict +): """Milestone A collection of related issues and pull requests. @@ -251,7 +328,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): closed_issues: int created_at: datetime creator: Union[ - WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType, + None, ] description: Union[str, None] due_on: Union[datetime, None] @@ -267,7 +345,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): url: str -class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -293,7 +373,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(Type url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): """User""" @@ -321,7 +401,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0 url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -347,48 +429,58 @@ class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropLinksType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropLinks""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinks""" - comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType - commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType - html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType - issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType - review_comment: ( - WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType + comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType + html: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType ) - review_comments: ( - WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType + issue: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType + self_: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType ) - self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType - statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType + statuses: WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType( TypedDict ): """Link""" @@ -396,7 +488,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType( TypedDict ): """Link""" @@ -404,29 +496,42 @@ class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType( + TypedDict +): """Link""" href: str -class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropBase""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBase""" label: str ref: str - repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType + repo: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType + ) sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType, + None, + ] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -452,7 +557,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -512,7 +619,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -527,10 +635,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -564,7 +673,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): """License""" @@ -576,7 +685,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -602,10 +713,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(Typ url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropP + ermissions + """ admin: bool maintain: NotRequired[bool] @@ -614,17 +727,54 @@ class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): - """WebhookPullRequestUnlockedPropPullRequestPropHead""" +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType( + TypedDict +): + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHead""" label: str ref: str - repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] + repo: ( + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType + ) sha: str - user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] + user: Union[ + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType, + None, + ] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType( + TypedDict +): """Repository A git repository @@ -684,7 +834,8 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): language: Union[str, None] languages_url: str license_: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + None, ] master_branch: NotRequired[str] merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] @@ -699,10 +850,11 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): open_issues_count: int organization: NotRequired[str] owner: Union[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + None, ] permissions: NotRequired[ - WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType ] private: bool public: NotRequired[bool] @@ -736,7 +888,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): web_commit_signoff_required: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): """License""" @@ -748,7 +900,9 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( url: Union[str, None] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -774,10 +928,12 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(Typ url: NotRequired[str] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropP + ermissions + """ admin: bool maintain: NotRequired[bool] @@ -786,33 +942,7 @@ class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsTy triage: NotRequired[bool] -class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): """Team @@ -821,30 +951,30 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropPa - rent + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewer + sItemsOneof1PropParent """ description: Union[str, None] @@ -860,36 +990,40 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1 url: str -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType(TypedDict): +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType( + TypedDict +): """Team Groups of organization members that gives permissions on specified repositories. """ deleted: NotRequired[bool] - description: NotRequired[Union[str, None]] - html_url: NotRequired[str] + description: Union[str, None] + html_url: str id: int - members_url: NotRequired[str] + members_url: str name: str - node_id: NotRequired[str] + node_id: str parent: NotRequired[ Union[ - WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType, + WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, None, ] ] - permission: NotRequired[str] - privacy: NotRequired[Literal["open", "closed", "secret"]] - repositories_url: NotRequired[str] - slug: NotRequired[str] - url: NotRequired[str] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType( +class WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent""" + """WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsIte + msPropParent + """ description: Union[str, None] html_url: str @@ -905,41 +1039,43 @@ class WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParent __all__ = ( - "WebhookPullRequestUnlockedType", - "WebhookPullRequestUnlockedPropPullRequestType", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", - "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType", - "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType", - "WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropMergedByType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestoneType", - "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type", - "WebhookPullRequestUnlockedPropPullRequestPropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType", - "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType", - "WebhookPullRequestUnlockedPropPullRequestPropBaseType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType", - "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", - "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamType", + "WebhookPullRequestReviewRequestRemovedOneof1PropRequestedTeamPropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestRemovedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0659.py b/githubkit/versions/v2022_11_28/types/group_0659.py index b891eb647..a4c46206f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0659.py +++ b/githubkit/versions/v2022_11_28/types/group_0659.py @@ -13,126 +13,522 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType - - -class WebhookPushType(TypedDict): - """push event""" - - after: str - base_ref: Union[str, None] - before: str - commits: List[WebhookPushPropCommitsItemsType] - compare: str - created: bool - deleted: bool +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType + + +class WebhookPullRequestReviewRequestedOneof0Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof0""" + + action: Literal["review_requested"] enterprise: NotRequired[EnterpriseWebhooksType] - forced: bool - head_commit: Union[WebhookPushPropHeadCommitType, None] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - pusher: WebhookPushPropPusherType - ref: str - repository: WebhookPushPropRepositoryType - sender: NotRequired[SimpleUserWebhooksType] - - -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 + pull_request: WebhookPullRequestReviewRequestedOneof0PropPullRequestType + repository: RepositoryWebhooksType + requested_reviewer: Union[ + WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType, None + ] + sender: SimpleUserWebhooksType -class WebhookPushPropHeadCommitPropAuthorType(TypedDict): - """Committer +class WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType(TypedDict): + """User""" - Metaproperties for Git author/committer information. - """ + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] +class WebhookPullRequestReviewRequestedOneof0PropPullRequestType(TypedDict): + """Pull Request""" -class WebhookPushPropHeadCommitPropCommitterType(TypedDict): - """Committer + links: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType + 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: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType + ] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType, None + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType + ] + 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[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType, None + ] - Metaproperties for Git author/committer information. - """ - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: 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 WebhookPushPropPusherType(TypedDict): - """Committer +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" - Metaproperties for Git author/committer information. + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType( + TypedDict +): + """PullRequestAutoMerge + + The status of auto merging a pull request. """ - date: NotRequired[datetime] + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int name: str - username: NotRequired[str] - - -class WebhookPushPropCommitsItemsType(TypedDict): - """Commit""" - - added: NotRequired[List[str]] - author: WebhookPushPropCommitsItemsPropAuthorType - committer: WebhookPushPropCommitsItemsPropCommitterType - distinct: bool - id: str - message: str - modified: NotRequired[List[str]] - removed: NotRequired[List[str]] - timestamp: datetime - tree_id: str + node_id: str url: str -class WebhookPushPropCommitsItemsPropAuthorType(TypedDict): - """Committer +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType(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] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType( + TypedDict +): + """Milestone + + A collection of related issues and pull requests. """ - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhookPushPropCommitsItemsPropCommitterType(TypedDict): - """Committer +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" - Metaproperties for Git author/committer information. - """ + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" -class WebhookPushPropRepositoryType(TypedDict): + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType( + TypedDict +): """Repository A git repository @@ -157,7 +553,6 @@ class WebhookPushPropRepositoryType(TypedDict): contents_url: str contributors_url: str created_at: Union[int, datetime] - custom_properties: NotRequired[WebhookPushPropRepositoryPropCustomPropertiesType] default_branch: str delete_branch_on_merge: NotRequired[bool] deployments_url: str @@ -192,8 +587,13 @@ class WebhookPushPropRepositoryType(TypedDict): labels_url: str language: Union[str, None] languages_url: str - license_: Union[WebhookPushPropRepositoryPropLicenseType, None] + license_: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType, + None, + ] master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] merges_url: str milestones_url: str mirror_url: Union[str, None] @@ -203,8 +603,13 @@ class WebhookPushPropRepositoryType(TypedDict): open_issues: int open_issues_count: int organization: NotRequired[str] - owner: Union[WebhookPushPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookPushPropRepositoryPropPermissionsType] + owner: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType + ] private: bool public: NotRequired[bool] pulls_url: str @@ -212,6 +617,10 @@ class WebhookPushPropRepositoryType(TypedDict): releases_url: str role_name: NotRequired[Union[str, None]] size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] ssh_url: str stargazers: NotRequired[int] stargazers_count: int @@ -226,22 +635,226 @@ class WebhookPushPropRepositoryType(TypedDict): trees_url: str updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] visibility: Literal["public", "private", "internal"] watchers: int watchers_count: int web_commit_signoff_required: NotRequired[bool] -class WebhookPushPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookPushPropRepositoryPropCustomProperties +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermis + sions """ + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ -class WebhookPushPropRepositoryPropLicenseType(TypedDict): + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: 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[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType, + 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[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): """License""" key: str @@ -251,7 +864,9 @@ class WebhookPushPropRepositoryPropLicenseType(TypedDict): url: Union[str, None] -class WebhookPushPropRepositoryPropOwnerType(TypedDict): +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): """User""" avatar_url: NotRequired[str] @@ -277,8 +892,12 @@ class WebhookPushPropRepositoryPropOwnerType(TypedDict): url: NotRequired[str] -class WebhookPushPropRepositoryPropPermissionsType(TypedDict): - """WebhookPushPropRepositoryPropPermissions""" +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermis + sions + """ admin: bool maintain: NotRequired[bool] @@ -287,18 +906,139 @@ class WebhookPushPropRepositoryPropPermissionsType(TypedDict): triage: NotRequired[bool] +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type( + 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[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItem + sOneof1PropParent + """ + + 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 WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType( + 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[ + WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPro + pParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + __all__ = ( - "WebhookPushType", - "WebhookPushPropHeadCommitType", - "WebhookPushPropHeadCommitPropAuthorType", - "WebhookPushPropHeadCommitPropCommitterType", - "WebhookPushPropPusherType", - "WebhookPushPropCommitsItemsType", - "WebhookPushPropCommitsItemsPropAuthorType", - "WebhookPushPropCommitsItemsPropCommitterType", - "WebhookPushPropRepositoryType", - "WebhookPushPropRepositoryPropCustomPropertiesType", - "WebhookPushPropRepositoryPropLicenseType", - "WebhookPushPropRepositoryPropOwnerType", - "WebhookPushPropRepositoryPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof0Type", + "WebhookPullRequestReviewRequestedOneof0PropRequestedReviewerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestedOneof0PropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0660.py b/githubkit/versions/v2022_11_28/types/group_0660.py index 651272209..8a2d345ea 100644 --- a/githubkit/versions/v2022_11_28/types/group_0660.py +++ b/githubkit/versions/v2022_11_28/types/group_0660.py @@ -9,27 +9,1050 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0661 import WebhookRegistryPackagePublishedPropRegistryPackageType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRegistryPackagePublishedType(TypedDict): - """WebhookRegistryPackagePublished""" +class WebhookPullRequestReviewRequestedOneof1Type(TypedDict): + """WebhookPullRequestReviewRequestedOneof1""" - action: Literal["published"] + action: Literal["review_requested"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType - repository: NotRequired[RepositoryWebhooksType] + pull_request: WebhookPullRequestReviewRequestedOneof1PropPullRequestType + repository: RepositoryWebhooksType + requested_team: WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType sender: SimpleUserWebhooksType -__all__ = ("WebhookRegistryPackagePublishedType",) +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType, None + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType + 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: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType + ] + 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 + ] + ] + milestone: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType + ] + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType( + TypedDict +): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + 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] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType( + TypedDict +): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType, + 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType( + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType, + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType + ] + private: 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermis + sions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType( + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType, + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermis + sions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type( + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItem + sOneof1PropParent + """ + + 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 WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType( + 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[ + WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPro + pParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestReviewRequestedOneof1Type", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamType", + "WebhookPullRequestReviewRequestedOneof1PropRequestedTeamPropParentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneeType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMergedByType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestoneType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBaseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewRequestedOneof1PropPullRequestPropRequestedTeamsItemsPropParentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0661.py b/githubkit/versions/v2022_11_28/types/group_0661.py index e22df8130..957b3d153 100644 --- a/githubkit/versions/v2022_11_28/types/group_0661.py +++ b/githubkit/versions/v2022_11_28/types/group_0661.py @@ -9,70 +9,933 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0662 import ( - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, -) +from .group_0415 import WebhooksReviewType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackage""" +class WebhookPullRequestReviewSubmittedType(TypedDict): + """pull_request_review submitted event""" - created_at: Union[str, None] - description: Union[str, None] - ecosystem: str + action: Literal["submitted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewSubmittedPropPullRequestType + repository: RepositoryWebhooksType + review: WebhooksReviewType + sender: SimpleUserWebhooksType + + +class WebhookPullRequestReviewSubmittedPropPullRequestType(TypedDict): + """Simple Pull Request""" + + links: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType, None + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType html_url: str id: int + issue_url: str + labels: List[WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[WebhookPullRequestReviewSubmittedPropPullRequestPropUserType, None] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: 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 WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: 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 WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int name: str - namespace: str - owner: WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType - package_type: str - package_version: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, None + node_id: str + url: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType, + None, ] - registry: Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType, None + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: 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 WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropLinks""" + + comments: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType, None ] - updated_at: Union[str, None] -class WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropOwner""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ - avatar_url: str + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: 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 WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType, None + ] + sha: str + user: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType, None + ] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" - about_url: NotRequired[str] + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] - type: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof + 1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] url: NotRequired[str] - vendor: NotRequired[str] + + +class WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParen + t + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackageType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", + "WebhookPullRequestReviewSubmittedType", + "WebhookPullRequestReviewSubmittedPropPullRequestType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewSubmittedPropPullRequestPropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBaseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewSubmittedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0662.py b/githubkit/versions/v2022_11_28/types/group_0662.py index c1677d528..a2916e438 100644 --- a/githubkit/versions/v2022_11_28/types/group_0662.py +++ b/githubkit/versions/v2022_11_28/types/group_0662.py @@ -9,478 +9,1003 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0584 import WebhookRubygemsMetadataType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( - TypedDict -): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" +class WebhookPullRequestReviewThreadResolvedType(TypedDict): + """pull_request_review_thread resolved event""" + + action: Literal["resolved"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestReviewThreadResolvedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + thread: WebhookPullRequestReviewThreadResolvedPropThreadType + - author: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType +class WebhookPullRequestReviewThreadResolvedPropPullRequestType(TypedDict): + """Simple Pull Request""" + + links: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType, None ] - body: NotRequired[ + assignees: List[ Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType, + None, ] ] - body_html: NotRequired[str] - container_metadata: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", ] - created_at: NotRequired[str] - description: str - docker_metadata: NotRequired[ - List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType - ] + auto_merge: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType, None ] - draft: NotRequired[bool] + base: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType html_url: str id: int - installation_command: str - manifest: NotRequired[str] - metadata: List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType + issue_url: str + labels: List[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType ] - name: str - npm_metadata: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, - None, - ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType, None ] - nuget_metadata: NotRequired[ + node_id: str + number: int + patch_url: str + requested_reviewers: List[ Union[ - List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType - ], + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, None, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] - package_files: List[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType - ] - package_url: str - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType + requested_teams: List[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType ] - rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] - summary: str - tag_name: NotRequired[str] - target_commitish: NotRequired[str] - target_oid: NotRequired[str] - updated_at: NotRequired[str] - version: str + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType, None] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthor""" + """User""" - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str - html_url: str + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] id: int login: str - node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str - url: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo - f1 - """ + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe - tadataItems + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. """ - tags: NotRequired[List[str]] + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadata - Items - """ + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ata - """ + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] - version: NotRequired[str] - npm_user: NotRequired[str] - author: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type, - None, - ] - ] - bugs: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type, - None, - ] - ] - dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType - ] - dev_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType - ] - peer_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType - ] - optional_dependencies: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType - ] - description: NotRequired[str] - dist: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type, - None, - ] - ] - git_head: NotRequired[str] - homepage: NotRequired[str] - license_: NotRequired[str] - main: NotRequired[str] - repository: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type, - None, - ] - ] - scripts: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType - ] - id: NotRequired[str] - node_version: NotRequired[str] - npm_version: NotRequired[str] - has_shrinkwrap: NotRequired[bool] - maintainers: NotRequired[List[str]] - contributors: NotRequired[List[str]] - engines: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType - ] - keywords: NotRequired[List[str]] - files: NotRequired[List[str]] - bin_: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType - ] - man: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType - ] - directories: NotRequired[ - Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type, - None, - ] - ] - os: NotRequired[List[str]] - cpu: NotRequired[List[str]] - readme: NotRequired[str] - installation_command: NotRequired[str] - release_id: NotRequired[int] - commit_oid: NotRequired[str] - published_via_actions: NotRequired[bool] - deleted_by_id: NotRequired[int] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropAuthorOneof1 - """ + """Link""" + + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBugsOneof1 - """ + """Link""" + + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDependencies - """ + """Link""" + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType( + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDevDependencies - """ + """Link""" + + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropPeerDependencies - """ + """Link""" + + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropOptionalDependencies - """ + """Link""" + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type( + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDistOneof1 - """ + """Link""" + + href: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropRepositoryOneof1 - """ + """Link""" + + href: str + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBase""" -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType( + label: str + ref: str + repo: WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType, None + ] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropScripts - """ + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropEngines + """Repository + + A git repository """ + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropBin - """ + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropMan - """ + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetad - ataPropDirectoriesOneof1 + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermiss + ions """ + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType, None + ] + sha: str + user: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType, None + ] + -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageF - ilesItems + """Repository + + A git repository """ - content_type: str - created_at: str - download_url: str + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_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 - md5: Union[str, None] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str - sha1: Union[str, None] - sha256: Union[str, None] + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] size: int - state: Union[str, None] - updated_at: str + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: 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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadata - """ + """License""" - labels: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType, - None, - ] - ] - manifest: NotRequired[ - Union[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType, - None, - ] - ] - tag: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType - ] + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropLabels - """ + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType( + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropManifest + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermiss + ions """ + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContaine - rMetadataPropTag - """ + """User""" - digest: NotRequired[str] + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItems + """Team + + Groups of organization members that gives permissions on specified repositories. """ - id: NotRequired[ + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ Union[ - str, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type, - int, + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, None, ] ] - name: NotRequired[str] - value: NotRequired[ - Union[ - bool, - str, - int, - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type, - ] - ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropIdOneof1 + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItems + Oneof1PropParent """ + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type( + +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMet - adataItemsPropValueOneof3 + """Team + + Groups of organization members that gives permissions on specified repositories. """ + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] url: NotRequired[str] - branch: NotRequired[str] - commit: NotRequired[str] - type: NotRequired[str] -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType( +class WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType( TypedDict ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRelease""" + """WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsProp + Parent + """ - author: NotRequired[ - WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadResolvedPropThreadType(TypedDict): + """WebhookPullRequestReviewThreadResolvedPropThread""" + + comments: List[ + WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType ] - 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] + node_id: str -class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( +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 ): - """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseP - ropAuthor - """ + """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: 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] @@ -488,38 +1013,87 @@ class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropRe site_admin: NotRequired[bool] starred_url: NotRequired[str] subscriptions_url: NotRequired[str] - type: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] url: NotRequired[str] +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__ = ( - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookPullRequestReviewThreadResolvedType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBaseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewThreadResolvedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewThreadResolvedPropThreadType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropReactionsType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropUserType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", + "WebhookPullRequestReviewThreadResolvedPropThreadPropCommentsItemsPropLinksPropSelfType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0663.py b/githubkit/versions/v2022_11_28/types/group_0663.py index c19ec9b4a..6f25a56b0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0663.py +++ b/githubkit/versions/v2022_11_28/types/group_0663.py @@ -9,27 +9,1101 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0664 import WebhookRegistryPackageUpdatedPropRegistryPackageType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRegistryPackageUpdatedType(TypedDict): - """WebhookRegistryPackageUpdated""" +class WebhookPullRequestReviewThreadUnresolvedType(TypedDict): + """pull_request_review_thread unresolved event""" - action: Literal["updated"] + action: Literal["unresolved"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType + pull_request: WebhookPullRequestReviewThreadUnresolvedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + thread: WebhookPullRequestReviewThreadUnresolvedPropThreadType -__all__ = ("WebhookRegistryPackageUpdatedType",) +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestType(TypedDict): + """Simple Pull Request""" + + links: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + assignee: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType, None + ] + assignees: List[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType, + None, + ] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType + body: Union[str, None] + closed_at: Union[str, None] + comments_url: str + commits_url: str + created_at: str + diff_url: str + draft: bool + head: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType + ] + locked: bool + merge_commit_sha: Union[str, None] + merged_at: Union[str, None] + milestone: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + requested_reviewers: List[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: str + url: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType, None + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType( + TypedDict +): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: str + enabled_by: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType, + None, + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType( + TypedDict +): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType( + TypedDict +): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType, + None, + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinks""" + + comments: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType + ) + commits: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType + ) + html: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType + review_comment: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType + review_comments: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType + self_: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType + statuses: ( + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType + ) + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermi + ssions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType + sha: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType( + TypedDict +): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType, + None, + ] + permissions: NotRequired[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermi + ssions + """ + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersIte + msOneof1PropParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPr + opParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadType(TypedDict): + """WebhookPullRequestReviewThreadUnresolvedPropThread""" + + comments: List[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType + ] + node_id: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType( + TypedDict +): + """Pull Request Review Comment + + The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment- + for-a-pull-request) itself. + """ + + links: ( + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType + ) + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + body: str + commit_id: str + created_at: datetime + diff_hunk: str + html_url: str + id: int + in_reply_to_id: NotRequired[int] + line: Union[int, None] + node_id: str + original_commit_id: str + original_line: int + original_position: int + original_start_line: Union[int, None] + path: str + position: Union[int, None] + pull_request_review_id: Union[int, None] + pull_request_url: str + reactions: WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType + side: Literal["LEFT", "RIGHT"] + start_line: Union[int, None] + start_side: Union[None, Literal["LEFT", "RIGHT"]] + subject_type: NotRequired[Literal["line", "file"]] + updated_at: datetime + url: str + user: Union[ + WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType, + None, + ] + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType( + TypedDict +): + """Reactions""" + + plus_one: int + minus_one: int + confused: int + eyes: int + heart: int + hooray: int + laugh: int + rocket: int + total_count: int + url: str + + +class WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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__ = ( + "WebhookPullRequestReviewThreadUnresolvedType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneeType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergeType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestoneType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBaseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropPullRequestPropRequestedTeamsItemsPropParentType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropReactionsType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropUserType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropHtmlType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropPullRequestType", + "WebhookPullRequestReviewThreadUnresolvedPropThreadPropCommentsItemsPropLinksPropSelfType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0664.py b/githubkit/versions/v2022_11_28/types/group_0664.py index 7ad011d5f..94ba53645 100644 --- a/githubkit/versions/v2022_11_28/types/group_0664.py +++ b/githubkit/versions/v2022_11_28/types/group_0664.py @@ -9,64 +9,953 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0665 import ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, -) +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType + + +class WebhookPullRequestSynchronizeType(TypedDict): + """pull_request synchronize event""" + action: Literal["synchronize"] + after: str + before: str + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestSynchronizePropPullRequestType + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackage""" - created_at: str - description: None - ecosystem: str +class WebhookPullRequestSynchronizePropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestSynchronizePropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestSynchronizePropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestSynchronizePropPullRequestPropHeadType html_url: str id: int + issue_url: str + labels: List[WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestSynchronizePropPullRequestPropMergedByType, None] + ] + milestone: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestoneType, None + ] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int name: str - namespace: str - owner: WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType - package_type: str - package_version: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType + node_id: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropLinks""" + + comments: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType ) - registry: Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType, None + self_: WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestSynchronizePropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType, + None, ] - updated_at: str + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropOwner""" +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" - avatar_url: str + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestSynchronizePropPullRequestPropHead""" + + label: str + ref: str + repo: WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType + sha: str + user: Union[WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType, + None, + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Pro + pParent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str url: str -class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackageType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", + "WebhookPullRequestSynchronizeType", + "WebhookPullRequestSynchronizePropPullRequestType", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneeType", + "WebhookPullRequestSynchronizePropPullRequestPropAssigneesItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergeType", + "WebhookPullRequestSynchronizePropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestSynchronizePropPullRequestPropLabelsItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropMergedByType", + "WebhookPullRequestSynchronizePropPullRequestPropMilestoneType", + "WebhookPullRequestSynchronizePropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestSynchronizePropPullRequestPropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropIssueType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropSelfType", + "WebhookPullRequestSynchronizePropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestSynchronizePropPullRequestPropBaseType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestSynchronizePropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropUserType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestSynchronizePropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestSynchronizePropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0665.py b/githubkit/versions/v2022_11_28/types/group_0665.py index 905ed396e..03518cfbd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0665.py +++ b/githubkit/versions/v2022_11_28/types/group_0665.py @@ -9,170 +9,947 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0584 import WebhookRubygemsMetadataType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0396 import WebhooksUserMannequinType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" +class WebhookPullRequestUnassignedType(TypedDict): + """pull_request unassigned event""" - author: ( - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType - ) - body: str - body_html: str - created_at: str - description: str - docker_metadata: NotRequired[ - List[ - Union[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, - None, - ] + action: Literal["unassigned"] + assignee: NotRequired[Union[WebhooksUserMannequinType, None]] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + number: int + organization: NotRequired[OrganizationSimpleWebhooksType] + pull_request: WebhookPullRequestUnassignedPropPullRequestType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] + + +class WebhookPullRequestUnassignedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnassignedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType, None + ] + base: WebhookPullRequestUnassignedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnassignedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnassignedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnassignedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type, ] ] - draft: NotRequired[bool] + requested_teams: List[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnassignedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropBase""" + + label: Union[str, None] + ref: str + repo: WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - installation_command: str - manifest: NotRequired[str] - metadata: List[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType, None ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str - package_files: List[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType ] - package_url: str - prerelease: NotRequired[bool] - release: NotRequired[ - WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] ] - rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] - summary: str - tag_name: NotRequired[str] - target_commitish: str - target_oid: str - updated_at: str - version: str + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType( +class WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType( TypedDict ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthor""" + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnassignedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnassignedPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType, None] - avatar_url: str + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - login: str + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType( TypedDict ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta - dataItems - """ + """License""" - tags: NotRequired[List[str]] + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType( +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType( TypedDict ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataIt - ems - """ + """User""" + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType( + +class WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType( TypedDict ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFil - esItems - """ + """WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] - content_type: NotRequired[str] - created_at: NotRequired[str] - download_url: NotRequired[str] - id: NotRequired[int] - md5: NotRequired[Union[str, None]] + +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] - sha1: NotRequired[Union[str, None]] - sha256: NotRequired[str] - size: NotRequired[int] - state: NotRequired[str] - updated_at: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType( +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type( TypedDict ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropRelease""" + """Team - author: WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType - created_at: str - draft: bool + 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 - prerelease: bool - published_at: str - tag_name: str - target_commitish: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str url: str -class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType( +class WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( TypedDict ): - """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePro - pAuthor + """WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Prop + Parent """ - avatar_url: str - events_url: str - followers_url: str - following_url: str - gists_url: str - gravatar_id: str + description: Union[str, None] html_url: str id: int - login: str + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str node_id: str - organizations_url: str - received_events_url: str - repos_url: str - site_admin: bool - starred_url: str - subscriptions_url: str - type: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str url: str __all__ = ( - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", - "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", + "WebhookPullRequestUnassignedType", + "WebhookPullRequestUnassignedPropPullRequestType", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneeType", + "WebhookPullRequestUnassignedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnassignedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnassignedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropMergedByType", + "WebhookPullRequestUnassignedPropPullRequestPropMilestoneType", + "WebhookPullRequestUnassignedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnassignedPropPullRequestPropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnassignedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnassignedPropPullRequestPropBaseType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnassignedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnassignedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnassignedPropPullRequestPropRequestedTeamsItemsPropParentType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0666.py b/githubkit/versions/v2022_11_28/types/group_0666.py index cc441f462..1f8e0101e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0666.py +++ b/githubkit/versions/v2022_11_28/types/group_0666.py @@ -9,27 +9,943 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0410 import WebhooksReleaseType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0388 import WebhooksLabelType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookReleaseCreatedType(TypedDict): - """release created event""" +class WebhookPullRequestUnlabeledType(TypedDict): + """pull_request unlabeled event""" - action: Literal["created"] + action: Literal["unlabeled"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + label: NotRequired[WebhooksLabelType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType + pull_request: WebhookPullRequestUnlabeledPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookReleaseCreatedType",) +class WebhookPullRequestUnlabeledPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnlabeledPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlabeledPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnlabeledPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnlabeledPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: Union[str, None] + enabled_by: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization", "Mannequin"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlabeledPropPullRequestPropHead""" + + label: Union[str, None] + ref: str + repo: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type( + TypedDict +): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + parent: NotRequired[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType, + None, + ] + ] + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropP + arent + """ + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType(TypedDict): + """Team + + Groups of organization members that gives permissions on specified repositories. + """ + + deleted: NotRequired[bool] + description: NotRequired[Union[str, None]] + html_url: NotRequired[str] + id: int + members_url: NotRequired[str] + name: str + node_id: NotRequired[str] + parent: NotRequired[ + Union[ + WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType, + None, + ] + ] + permission: NotRequired[str] + privacy: NotRequired[Literal["open", "closed", "secret"]] + repositories_url: NotRequired[str] + slug: NotRequired[str] + url: NotRequired[str] + + +class WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType( + TypedDict +): + """WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParent""" + + description: Union[str, None] + html_url: str + id: int + members_url: str + name: str + node_id: str + permission: str + privacy: Literal["open", "closed", "secret"] + repositories_url: str + slug: str + url: str + + +__all__ = ( + "WebhookPullRequestUnlabeledType", + "WebhookPullRequestUnlabeledPropPullRequestType", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneeType", + "WebhookPullRequestUnlabeledPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnlabeledPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnlabeledPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropMergedByType", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestoneType", + "WebhookPullRequestUnlabeledPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnlabeledPropPullRequestPropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnlabeledPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnlabeledPropPullRequestPropBaseType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnlabeledPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnlabeledPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnlabeledPropPullRequestPropRequestedTeamsItemsPropParentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0667.py b/githubkit/versions/v2022_11_28/types/group_0667.py index e90b4c131..a524b2980 100644 --- a/githubkit/versions/v2022_11_28/types/group_0667.py +++ b/githubkit/versions/v2022_11_28/types/group_0667.py @@ -9,27 +9,937 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0410 import WebhooksReleaseType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookReleaseDeletedType(TypedDict): - """release deleted event""" +class WebhookPullRequestUnlockedType(TypedDict): + """pull_request unlocked event""" - action: Literal["deleted"] + action: Literal["unlocked"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] + number: int organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType + pull_request: WebhookPullRequestUnlockedPropPullRequestType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookReleaseDeletedType",) +class WebhookPullRequestUnlockedPropPullRequestType(TypedDict): + """Pull Request""" + + links: WebhookPullRequestUnlockedPropPullRequestPropLinksType + active_lock_reason: Union[ + None, Literal["resolved", "off-topic", "too heated", "spam"] + ] + additions: NotRequired[int] + assignee: Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneeType, None] + assignees: List[ + Union[WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType, None] + ] + author_association: Literal[ + "COLLABORATOR", + "CONTRIBUTOR", + "FIRST_TIMER", + "FIRST_TIME_CONTRIBUTOR", + "MANNEQUIN", + "MEMBER", + "NONE", + "OWNER", + ] + auto_merge: Union[WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType, None] + base: WebhookPullRequestUnlockedPropPullRequestPropBaseType + body: Union[str, None] + changed_files: NotRequired[int] + closed_at: Union[datetime, None] + comments: NotRequired[int] + comments_url: str + commits: NotRequired[int] + commits_url: str + created_at: datetime + deletions: NotRequired[int] + diff_url: str + draft: bool + head: WebhookPullRequestUnlockedPropPullRequestPropHeadType + html_url: str + id: int + issue_url: str + labels: List[WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType] + locked: bool + maintainer_can_modify: NotRequired[bool] + merge_commit_sha: Union[str, None] + mergeable: NotRequired[Union[bool, None]] + mergeable_state: NotRequired[str] + merged: NotRequired[Union[bool, None]] + merged_at: Union[datetime, None] + merged_by: NotRequired[ + Union[WebhookPullRequestUnlockedPropPullRequestPropMergedByType, None] + ] + milestone: Union[WebhookPullRequestUnlockedPropPullRequestPropMilestoneType, None] + node_id: str + number: int + patch_url: str + rebaseable: NotRequired[Union[bool, None]] + requested_reviewers: List[ + Union[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type, + None, + WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type, + ] + ] + requested_teams: List[ + WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType + ] + review_comment_url: str + review_comments: NotRequired[int] + review_comments_url: str + state: Literal["open", "closed"] + statuses_url: str + title: str + updated_at: datetime + url: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneeType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType(TypedDict): + """PullRequestAutoMerge + + The status of auto merging a pull request. + """ + + commit_message: Union[str, None] + commit_title: str + enabled_by: Union[ + WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType, None + ] + merge_method: Literal["merge", "squash", "rebase"] + + +class WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType(TypedDict): + """Label""" + + color: str + default: bool + description: Union[str, None] + id: int + name: str + node_id: str + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropMergedByType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestoneType(TypedDict): + """Milestone + + A collection of related issues and pull requests. + """ + + closed_at: Union[datetime, None] + closed_issues: int + created_at: datetime + creator: Union[ + WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType, None + ] + description: Union[str, None] + due_on: Union[datetime, None] + html_url: str + id: int + labels_url: str + node_id: str + number: int + open_issues: int + state: Literal["open", "closed"] + title: str + updated_at: datetime + url: str + + +class WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropLinks""" + + comments: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType + commits: WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType + html: WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType + issue: WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType + review_comment: ( + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType + ) + review_comments: ( + WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType + ) + self_: WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType + statuses: WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType( + TypedDict +): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType(TypedDict): + """Link""" + + href: str + + +class WebhookPullRequestUnlockedPropPullRequestPropBaseType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropBase""" + + label: str + ref: str + repo: WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType + sha: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadType(TypedDict): + """WebhookPullRequestUnlockedPropPullRequestPropHead""" + + label: str + ref: str + repo: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType, None] + sha: str + user: Union[WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + has_discussions: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType, None + ] + master_branch: NotRequired[str] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType, None + ] + permissions: NotRequired[ + WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType + ] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + use_squash_pr_title_as_default: NotRequired[bool] + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + web_commit_signoff_required: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType( + TypedDict +): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType( + TypedDict +): + """WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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__ = ( + "WebhookPullRequestUnlockedType", + "WebhookPullRequestUnlockedPropPullRequestType", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneeType", + "WebhookPullRequestUnlockedPropPullRequestPropAssigneesItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergeType", + "WebhookPullRequestUnlockedPropPullRequestPropAutoMergePropEnabledByType", + "WebhookPullRequestUnlockedPropPullRequestPropLabelsItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropMergedByType", + "WebhookPullRequestUnlockedPropPullRequestPropMilestoneType", + "WebhookPullRequestUnlockedPropPullRequestPropMilestonePropCreatorType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof0Type", + "WebhookPullRequestUnlockedPropPullRequestPropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommentsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropCommitsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropHtmlType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropIssueType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropReviewCommentsType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropSelfType", + "WebhookPullRequestUnlockedPropPullRequestPropLinksPropStatusesType", + "WebhookPullRequestUnlockedPropPullRequestPropBaseType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropLicenseType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropOwnerType", + "WebhookPullRequestUnlockedPropPullRequestPropBasePropRepoPropPermissionsType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropLicenseType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropOwnerType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropRepoPropPermissionsType", + "WebhookPullRequestUnlockedPropPullRequestPropHeadPropUserType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1Type", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedReviewersItemsOneof1PropParentType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsType", + "WebhookPullRequestUnlockedPropPullRequestPropRequestedTeamsItemsPropParentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0668.py b/githubkit/versions/v2022_11_28/types/group_0668.py index 38eb888c9..e72c3f1f8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0668.py +++ b/githubkit/versions/v2022_11_28/types/group_0668.py @@ -9,60 +9,296 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0410 import WebhooksReleaseType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookReleaseEditedType(TypedDict): - """release edited event""" +class WebhookPushType(TypedDict): + """push event""" - action: Literal["edited"] - changes: WebhookReleaseEditedPropChangesType + after: str + base_ref: Union[str, None] + before: str + commits: List[WebhookPushPropCommitsItemsType] + compare: str + created: bool + deleted: bool enterprise: NotRequired[EnterpriseWebhooksType] + forced: bool + head_commit: Union[WebhookPushPropHeadCommitType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType - repository: RepositoryWebhooksType + pusher: WebhookPushPropPusherType + ref: str + repository: WebhookPushPropRepositoryType sender: NotRequired[SimpleUserWebhooksType] -class WebhookReleaseEditedPropChangesType(TypedDict): - """WebhookReleaseEditedPropChanges""" +class WebhookPushPropHeadCommitType(TypedDict): + """Commit""" - body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] - name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] - make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] + 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 WebhookReleaseEditedPropChangesPropBodyType(TypedDict): - """WebhookReleaseEditedPropChangesPropBody""" +class WebhookPushPropHeadCommitPropAuthorType(TypedDict): + """Committer - from_: str + Metaproperties for Git author/committer information. + """ + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -class WebhookReleaseEditedPropChangesPropNameType(TypedDict): - """WebhookReleaseEditedPropChangesPropName""" - from_: str +class WebhookPushPropHeadCommitPropCommitterType(TypedDict): + """Committer + Metaproperties for Git author/committer information. + """ -class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): - """WebhookReleaseEditedPropChangesPropMakeLatest""" + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] - to: bool + +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] + + +class WebhookPushPropRepositoryPropCustomPropertiesType(TypedDict): + """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] + + +class WebhookPushPropRepositoryPropPermissionsType(TypedDict): + """WebhookPushPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookReleaseEditedType", - "WebhookReleaseEditedPropChangesType", - "WebhookReleaseEditedPropChangesPropBodyType", - "WebhookReleaseEditedPropChangesPropNameType", - "WebhookReleaseEditedPropChangesPropMakeLatestType", + "WebhookPushType", + "WebhookPushPropHeadCommitType", + "WebhookPushPropHeadCommitPropAuthorType", + "WebhookPushPropHeadCommitPropCommitterType", + "WebhookPushPropPusherType", + "WebhookPushPropCommitsItemsType", + "WebhookPushPropCommitsItemsPropAuthorType", + "WebhookPushPropCommitsItemsPropCommitterType", + "WebhookPushPropRepositoryType", + "WebhookPushPropRepositoryPropCustomPropertiesType", + "WebhookPushPropRepositoryPropLicenseType", + "WebhookPushPropRepositoryPropOwnerType", + "WebhookPushPropRepositoryPropPermissionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0669.py b/githubkit/versions/v2022_11_28/types/group_0669.py index 04a289629..92e73ec69 100644 --- a/githubkit/versions/v2022_11_28/types/group_0669.py +++ b/githubkit/versions/v2022_11_28/types/group_0669.py @@ -9,153 +9,27 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0670 import WebhookRegistryPackagePublishedPropRegistryPackageType -class WebhookReleasePrereleasedType(TypedDict): - """release prereleased event""" +class WebhookRegistryPackagePublishedType(TypedDict): + """WebhookRegistryPackagePublished""" - action: Literal["prereleased"] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhookReleasePrereleasedPropReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + registry_package: WebhookRegistryPackagePublishedPropRegistryPackageType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -class WebhookReleasePrereleasedPropReleaseType(TypedDict): - """Release - - The [release](https://docs.github.com/rest/releases/releases/#get-a-release) - object. - """ - - assets: List[Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsType, None]] - assets_url: str - author: Union[WebhookReleasePrereleasedPropReleasePropAuthorType, None] - body: Union[str, None] - created_at: Union[datetime, None] - discussion_url: NotRequired[str] - draft: bool - html_url: str - id: int - name: Union[str, None] - node_id: str - prerelease: Literal[True] - published_at: Union[datetime, None] - reactions: NotRequired[WebhookReleasePrereleasedPropReleasePropReactionsType] - tag_name: str - tarball_url: Union[str, None] - target_commitish: str - upload_url: str - url: str - zipball_url: Union[str, None] - - -class WebhookReleasePrereleasedPropReleasePropAssetsItemsType(TypedDict): - """Release Asset - - Data related to a release. - """ - - browser_download_url: str - content_type: str - created_at: datetime - download_count: int - id: int - label: Union[str, None] - name: str - node_id: str - size: int - state: Literal["uploaded"] - updated_at: datetime - uploader: NotRequired[ - Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, None] - ] - url: str - - -class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookReleasePrereleasedPropReleasePropAuthorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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__ = ( - "WebhookReleasePrereleasedType", - "WebhookReleasePrereleasedPropReleaseType", - "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", - "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", - "WebhookReleasePrereleasedPropReleasePropAuthorType", - "WebhookReleasePrereleasedPropReleasePropReactionsType", -) +__all__ = ("WebhookRegistryPackagePublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0670.py b/githubkit/versions/v2022_11_28/types/group_0670.py index 939f37ebf..d70a3e3df 100644 --- a/githubkit/versions/v2022_11_28/types/group_0670.py +++ b/githubkit/versions/v2022_11_28/types/group_0670.py @@ -9,27 +9,70 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0411 import WebhooksRelease1Type -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0671 import ( + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType, +) -class WebhookReleasePublishedType(TypedDict): - """release published event""" +class WebhookRegistryPackagePublishedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackage""" - action: Literal["published"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksRelease1Type - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + 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__ = ("WebhookReleasePublishedType",) +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 + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType(TypedDict): + """WebhookRegistryPackagePublishedPropRegistryPackagePropRegistry""" + + about_url: NotRequired[str] + name: NotRequired[str] + type: NotRequired[str] + url: NotRequired[str] + vendor: NotRequired[str] + + +__all__ = ( + "WebhookRegistryPackagePublishedPropRegistryPackageType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropOwnerType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropRegistryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0671.py b/githubkit/versions/v2022_11_28/types/group_0671.py index 3ab9c85b0..967a08a53 100644 --- a/githubkit/versions/v2022_11_28/types/group_0671.py +++ b/githubkit/versions/v2022_11_28/types/group_0671.py @@ -9,27 +9,517 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0410 import WebhooksReleaseType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0590 import WebhookRubygemsMetadataType -class WebhookReleaseReleasedType(TypedDict): - """release released event""" +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersion""" - action: Literal["released"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksReleaseType - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + author: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType + ] + body: NotRequired[ + Union[ + str, + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type, + ] + ] + body_html: NotRequired[str] + container_metadata: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType + ] + created_at: NotRequired[str] + description: str + docker_metadata: NotRequired[ + List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType + ] + name: str + npm_metadata: NotRequired[ + Union[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType, + None, + ] + ] + nuget_metadata: NotRequired[ + Union[ + List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType + ], + None, + ] + ] + package_files: List[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: str + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] + summary: str + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + target_oid: NotRequired[str] + updated_at: NotRequired[str] + version: str -__all__ = ("WebhookReleaseReleasedType",) +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 + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneo + f1 + """ + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMe + tadataItems + """ + + tags: NotRequired[List[str]] + + +class WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType( + TypedDict +): + """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] + + +__all__ = ( + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropAuthorType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropBodyOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropAuthorOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBugsOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDevDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropPeerDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropOptionalDependenciesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDistOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropRepositoryOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropScriptsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropEnginesType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropBinType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropManType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNpmMetadataPropDirectoriesOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropLabelsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropManifestType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropContainerMetadataPropTagType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropIdOneof1Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropNugetMetadataItemsPropValueOneof3Type", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleaseType", + "WebhookRegistryPackagePublishedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0672.py b/githubkit/versions/v2022_11_28/types/group_0672.py index 26653f5d6..4476cc042 100644 --- a/githubkit/versions/v2022_11_28/types/group_0672.py +++ b/githubkit/versions/v2022_11_28/types/group_0672.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0411 import WebhooksRelease1Type -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0673 import WebhookRegistryPackageUpdatedPropRegistryPackageType -class WebhookReleaseUnpublishedType(TypedDict): - """release unpublished event""" +class WebhookRegistryPackageUpdatedType(TypedDict): + """WebhookRegistryPackageUpdated""" - action: Literal["unpublished"] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - release: WebhooksRelease1Type - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + registry_package: WebhookRegistryPackageUpdatedPropRegistryPackageType + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookReleaseUnpublishedType",) +__all__ = ("WebhookRegistryPackageUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0673.py b/githubkit/versions/v2022_11_28/types/group_0673.py index bd184bcdd..60303519f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0673.py +++ b/githubkit/versions/v2022_11_28/types/group_0673.py @@ -9,27 +9,64 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -from .group_0139 import RepositoryAdvisoryType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0674 import ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType, +) -class WebhookRepositoryAdvisoryPublishedType(TypedDict): - """Repository advisory published event""" +class WebhookRegistryPackageUpdatedPropRegistryPackageType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackage""" - action: Literal["published"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - repository_advisory: RepositoryAdvisoryType - sender: NotRequired[SimpleUserWebhooksType] + 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__ = ("WebhookRepositoryAdvisoryPublishedType",) +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 + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistry""" + + +__all__ = ( + "WebhookRegistryPackageUpdatedPropRegistryPackageType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropOwnerType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropRegistryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0674.py b/githubkit/versions/v2022_11_28/types/group_0674.py index 69fe5f030..49e3b194b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0674.py +++ b/githubkit/versions/v2022_11_28/types/group_0674.py @@ -9,27 +9,170 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0139 import RepositoryAdvisoryType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0590 import WebhookRubygemsMetadataType -class WebhookRepositoryAdvisoryReportedType(TypedDict): - """Repository advisory reported event""" +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType(TypedDict): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersion""" - action: Literal["reported"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - repository_advisory: RepositoryAdvisoryType - sender: NotRequired[SimpleUserWebhooksType] + author: ( + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType + ) + body: str + body_html: str + created_at: str + description: str + docker_metadata: NotRequired[ + List[ + Union[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType, + None, + ] + ] + ] + draft: NotRequired[bool] + html_url: str + id: int + installation_command: str + manifest: NotRequired[str] + metadata: List[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType + ] + name: str + package_files: List[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType + ] + package_url: str + prerelease: NotRequired[bool] + release: NotRequired[ + WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType + ] + rubygems_metadata: NotRequired[List[WebhookRubygemsMetadataType]] + summary: str + tag_name: NotRequired[str] + target_commitish: str + target_oid: str + updated_at: str + version: str -__all__ = ("WebhookRepositoryAdvisoryReportedType",) +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 + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType( + TypedDict +): + """WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMeta + dataItems + """ + + tags: NotRequired[List[str]] + + +class WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType( + TypedDict +): + """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 + + +__all__ = ( + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropAuthorType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropDockerMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropMetadataItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropPackageFilesItemsType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleaseType", + "WebhookRegistryPackageUpdatedPropRegistryPackagePropPackageVersionPropReleasePropAuthorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0675.py b/githubkit/versions/v2022_11_28/types/group_0675.py index 749246a1a..ce2147e56 100644 --- a/githubkit/versions/v2022_11_28/types/group_0675.py +++ b/githubkit/versions/v2022_11_28/types/group_0675.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0416 import WebhooksReleaseType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRepositoryArchivedType(TypedDict): - """repository archived event""" +class WebhookReleaseCreatedType(TypedDict): + """release created event""" - action: Literal["archived"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookRepositoryArchivedType",) +__all__ = ("WebhookReleaseCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0676.py b/githubkit/versions/v2022_11_28/types/group_0676.py index 382177448..e2ee60b28 100644 --- a/githubkit/versions/v2022_11_28/types/group_0676.py +++ b/githubkit/versions/v2022_11_28/types/group_0676.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0416 import WebhooksReleaseType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRepositoryCreatedType(TypedDict): - """repository created event""" +class WebhookReleaseDeletedType(TypedDict): + """release deleted event""" - action: Literal["created"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookRepositoryCreatedType",) +__all__ = ("WebhookReleaseDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0677.py b/githubkit/versions/v2022_11_28/types/group_0677.py index bf3c47d26..2322f76b4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0677.py +++ b/githubkit/versions/v2022_11_28/types/group_0677.py @@ -12,22 +12,57 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0416 import WebhooksReleaseType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRepositoryDeletedType(TypedDict): - """repository 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: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookRepositoryDeletedType",) +class WebhookReleaseEditedPropChangesType(TypedDict): + """WebhookReleaseEditedPropChanges""" + + body: NotRequired[WebhookReleaseEditedPropChangesPropBodyType] + name: NotRequired[WebhookReleaseEditedPropChangesPropNameType] + make_latest: NotRequired[WebhookReleaseEditedPropChangesPropMakeLatestType] + + +class WebhookReleaseEditedPropChangesPropBodyType(TypedDict): + """WebhookReleaseEditedPropChangesPropBody""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropNameType(TypedDict): + """WebhookReleaseEditedPropChangesPropName""" + + from_: str + + +class WebhookReleaseEditedPropChangesPropMakeLatestType(TypedDict): + """WebhookReleaseEditedPropChangesPropMakeLatest""" + + to: bool + + +__all__ = ( + "WebhookReleaseEditedType", + "WebhookReleaseEditedPropChangesType", + "WebhookReleaseEditedPropChangesPropBodyType", + "WebhookReleaseEditedPropChangesPropNameType", + "WebhookReleaseEditedPropChangesPropMakeLatestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0678.py b/githubkit/versions/v2022_11_28/types/group_0678.py index 499b96e7f..669b5d016 100644 --- a/githubkit/versions/v2022_11_28/types/group_0678.py +++ b/githubkit/versions/v2022_11_28/types/group_0678.py @@ -9,38 +9,153 @@ from __future__ import annotations -from typing import Union +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRepositoryDispatchSampleType(TypedDict): - """repository_dispatch event""" +class WebhookReleasePrereleasedType(TypedDict): + """release prereleased event""" - action: str - branch: str - client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayloadType, None] + action: Literal["prereleased"] enterprise: NotRequired[EnterpriseWebhooksType] - installation: SimpleInstallationType + installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhookReleasePrereleasedPropReleaseType repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookRepositoryDispatchSamplePropClientPayloadType(TypedDict): - """WebhookRepositoryDispatchSamplePropClientPayload +class WebhookReleasePrereleasedPropReleaseType(TypedDict): + """Release - The `client_payload` that was specified in the `POST - /repos/{owner}/{repo}/dispatches` request body. + The [release](https://docs.github.com/rest/releases/releases/#get-a-release) + object. """ + assets: List[Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsType, None]] + assets_url: str + author: Union[WebhookReleasePrereleasedPropReleasePropAuthorType, None] + body: Union[str, None] + created_at: Union[datetime, None] + discussion_url: NotRequired[str] + draft: bool + html_url: str + id: int + name: Union[str, None] + node_id: str + prerelease: Literal[True] + published_at: Union[datetime, None] + reactions: NotRequired[WebhookReleasePrereleasedPropReleasePropReactionsType] + tag_name: str + tarball_url: Union[str, None] + target_commitish: str + upload_url: str + url: str + zipball_url: Union[str, None] + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsType(TypedDict): + """Release Asset + + Data related to a release. + """ + + browser_download_url: str + content_type: str + created_at: datetime + download_count: int + id: int + label: Union[str, None] + name: str + node_id: str + size: int + state: Literal["uploaded"] + updated_at: datetime + uploader: NotRequired[ + Union[WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType, None] + ] + url: str + + +class WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookReleasePrereleasedPropReleasePropAuthorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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__ = ( - "WebhookRepositoryDispatchSampleType", - "WebhookRepositoryDispatchSamplePropClientPayloadType", + "WebhookReleasePrereleasedType", + "WebhookReleasePrereleasedPropReleaseType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsType", + "WebhookReleasePrereleasedPropReleasePropAssetsItemsPropUploaderType", + "WebhookReleasePrereleasedPropReleasePropAuthorType", + "WebhookReleasePrereleasedPropReleasePropReactionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0679.py b/githubkit/versions/v2022_11_28/types/group_0679.py index 017be4734..2546d2837 100644 --- a/githubkit/versions/v2022_11_28/types/group_0679.py +++ b/githubkit/versions/v2022_11_28/types/group_0679.py @@ -9,66 +9,27 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0417 import WebhooksRelease1Type +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRepositoryEditedType(TypedDict): - """repository edited event""" +class WebhookReleasePublishedType(TypedDict): + """release published event""" - action: Literal["edited"] - changes: WebhookRepositoryEditedPropChangesType + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksRelease1Type repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -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__ = ( - "WebhookRepositoryEditedType", - "WebhookRepositoryEditedPropChangesType", - "WebhookRepositoryEditedPropChangesPropDefaultBranchType", - "WebhookRepositoryEditedPropChangesPropDescriptionType", - "WebhookRepositoryEditedPropChangesPropHomepageType", - "WebhookRepositoryEditedPropChangesPropTopicsType", -) +__all__ = ("WebhookReleasePublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0680.py b/githubkit/versions/v2022_11_28/types/group_0680.py index 437af5504..f799179de 100644 --- a/githubkit/versions/v2022_11_28/types/group_0680.py +++ b/githubkit/versions/v2022_11_28/types/group_0680.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0416 import WebhooksReleaseType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRepositoryImportType(TypedDict): - """repository_import event""" +class WebhookReleaseReleasedType(TypedDict): + """release released event""" + action: Literal["released"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksReleaseType repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - status: Literal["success", "cancelled", "failure"] + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookRepositoryImportType",) +__all__ = ("WebhookReleaseReleasedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0681.py b/githubkit/versions/v2022_11_28/types/group_0681.py index fbbd751ac..58d3f76a5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0681.py +++ b/githubkit/versions/v2022_11_28/types/group_0681.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0417 import WebhooksRelease1Type +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRepositoryPrivatizedType(TypedDict): - """repository privatized event""" +class WebhookReleaseUnpublishedType(TypedDict): + """release unpublished event""" - action: Literal["privatized"] + action: Literal["unpublished"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + release: WebhooksRelease1Type repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookRepositoryPrivatizedType",) +__all__ = ("WebhookReleaseUnpublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0682.py b/githubkit/versions/v2022_11_28/types/group_0682.py index 9e682d60a..5815c9270 100644 --- a/githubkit/versions/v2022_11_28/types/group_0682.py +++ b/githubkit/versions/v2022_11_28/types/group_0682.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0144 import RepositoryAdvisoryType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRepositoryPublicizedType(TypedDict): - """repository publicized event""" +class WebhookRepositoryAdvisoryPublishedType(TypedDict): + """Repository advisory published event""" - action: Literal["publicized"] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + repository_advisory: RepositoryAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookRepositoryPublicizedType",) +__all__ = ("WebhookRepositoryAdvisoryPublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0683.py b/githubkit/versions/v2022_11_28/types/group_0683.py index 17753e663..ba5d00273 100644 --- a/githubkit/versions/v2022_11_28/types/group_0683.py +++ b/githubkit/versions/v2022_11_28/types/group_0683.py @@ -12,46 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0144 import RepositoryAdvisoryType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRepositoryRenamedType(TypedDict): - """repository renamed event""" +class WebhookRepositoryAdvisoryReportedType(TypedDict): + """Repository advisory reported event""" - action: Literal["renamed"] - changes: WebhookRepositoryRenamedPropChangesType + action: Literal["reported"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + repository_advisory: RepositoryAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookRepositoryRenamedPropChangesType(TypedDict): - """WebhookRepositoryRenamedPropChanges""" - - repository: WebhookRepositoryRenamedPropChangesPropRepositoryType - - -class WebhookRepositoryRenamedPropChangesPropRepositoryType(TypedDict): - """WebhookRepositoryRenamedPropChangesPropRepository""" - - name: WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType - - -class WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType(TypedDict): - """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" - - from_: str - - -__all__ = ( - "WebhookRepositoryRenamedType", - "WebhookRepositoryRenamedPropChangesType", - "WebhookRepositoryRenamedPropChangesPropRepositoryType", - "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", -) +__all__ = ("WebhookRepositoryAdvisoryReportedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0684.py b/githubkit/versions/v2022_11_28/types/group_0684.py index 485e2c3a5..72461efe6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0684.py +++ b/githubkit/versions/v2022_11_28/types/group_0684.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0135 import RepositoryRulesetType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRepositoryRulesetCreatedType(TypedDict): - """repository ruleset created event""" +class WebhookRepositoryArchivedType(TypedDict): + """repository archived event""" - action: Literal["created"] + action: Literal["archived"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookRepositoryRulesetCreatedType",) +__all__ = ("WebhookRepositoryArchivedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0685.py b/githubkit/versions/v2022_11_28/types/group_0685.py index 89d87b86f..8e331d5a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0685.py +++ b/githubkit/versions/v2022_11_28/types/group_0685.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0135 import RepositoryRulesetType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRepositoryRulesetDeletedType(TypedDict): - """repository ruleset deleted event""" +class WebhookRepositoryCreatedType(TypedDict): + """repository created event""" - action: Literal["deleted"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookRepositoryRulesetDeletedType",) +__all__ = ("WebhookRepositoryCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0686.py b/githubkit/versions/v2022_11_28/types/group_0686.py index 00eadf109..bfca9d54d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0686.py +++ b/githubkit/versions/v2022_11_28/types/group_0686.py @@ -12,26 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0135 import RepositoryRulesetType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0687 import WebhookRepositoryRulesetEditedPropChangesType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRepositoryRulesetEditedType(TypedDict): - """repository ruleset edited event""" +class WebhookRepositoryDeletedType(TypedDict): + """repository deleted event""" - action: Literal["edited"] + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - repository_ruleset: RepositoryRulesetType - changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType -__all__ = ("WebhookRepositoryRulesetEditedType",) +__all__ = ("WebhookRepositoryDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0687.py b/githubkit/versions/v2022_11_28/types/group_0687.py index f6fbdcfd6..0d89deace 100644 --- a/githubkit/versions/v2022_11_28/types/group_0687.py +++ b/githubkit/versions/v2022_11_28/types/group_0687.py @@ -9,37 +9,38 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0690 import WebhookRepositoryRulesetEditedPropChangesPropRulesType -from .group_0688 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChanges""" +class WebhookRepositoryDispatchSampleType(TypedDict): + """repository_dispatch event""" - name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] - enforcement: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropEnforcementType - ] - conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] - rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] + action: str + branch: str + client_payload: Union[WebhookRepositoryDispatchSamplePropClientPayloadType, None] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: SimpleInstallationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropNameType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropName""" +class WebhookRepositoryDispatchSamplePropClientPayloadType(TypedDict): + """WebhookRepositoryDispatchSamplePropClientPayload - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropEnforcementType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" - - from_: NotRequired[str] + The `client_payload` that was specified in the `POST + /repos/{owner}/{repo}/dispatches` request body. + """ __all__ = ( - "WebhookRepositoryRulesetEditedPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropNameType", - "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", + "WebhookRepositoryDispatchSampleType", + "WebhookRepositoryDispatchSamplePropClientPayloadType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0688.py b/githubkit/versions/v2022_11_28/types/group_0688.py index 64be63b7c..a9e8ba681 100644 --- a/githubkit/versions/v2022_11_28/types/group_0688.py +++ b/githubkit/versions/v2022_11_28/types/group_0688.py @@ -9,25 +9,66 @@ from __future__ import annotations -from typing import List +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0098 import RepositoryRulesetConditionsType -from .group_0689 import ( - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, -) +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType + + +class WebhookRepositoryEditedType(TypedDict): + """repository edited event""" + + action: Literal["edited"] + changes: WebhookRepositoryEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + + +class WebhookRepositoryEditedPropChangesType(TypedDict): + """WebhookRepositoryEditedPropChanges""" + + default_branch: NotRequired[WebhookRepositoryEditedPropChangesPropDefaultBranchType] + description: NotRequired[WebhookRepositoryEditedPropChangesPropDescriptionType] + homepage: NotRequired[WebhookRepositoryEditedPropChangesPropHomepageType] + topics: NotRequired[WebhookRepositoryEditedPropChangesPropTopicsType] + + +class WebhookRepositoryEditedPropChangesPropDefaultBranchType(TypedDict): + """WebhookRepositoryEditedPropChangesPropDefaultBranch""" + from_: str -class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - added: NotRequired[List[RepositoryRulesetConditionsType]] - deleted: NotRequired[List[RepositoryRulesetConditionsType]] - updated: NotRequired[ - List[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType - ] - ] +class WebhookRepositoryEditedPropChangesPropDescriptionType(TypedDict): + """WebhookRepositoryEditedPropChangesPropDescription""" + from_: Union[str, None] -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) + +class WebhookRepositoryEditedPropChangesPropHomepageType(TypedDict): + """WebhookRepositoryEditedPropChangesPropHomepage""" + + from_: Union[str, None] + + +class WebhookRepositoryEditedPropChangesPropTopicsType(TypedDict): + """WebhookRepositoryEditedPropChangesPropTopics""" + + from_: NotRequired[Union[List[str], None]] + + +__all__ = ( + "WebhookRepositoryEditedType", + "WebhookRepositoryEditedPropChangesType", + "WebhookRepositoryEditedPropChangesPropDefaultBranchType", + "WebhookRepositoryEditedPropChangesPropDescriptionType", + "WebhookRepositoryEditedPropChangesPropHomepageType", + "WebhookRepositoryEditedPropChangesPropTopicsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0689.py b/githubkit/versions/v2022_11_28/types/group_0689.py index 08a16e324..4c29f62df 100644 --- a/githubkit/versions/v2022_11_28/types/group_0689.py +++ b/githubkit/versions/v2022_11_28/types/group_0689.py @@ -9,89 +9,25 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0098 import RepositoryRulesetConditionsType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" +class WebhookRepositoryImportType(TypedDict): + """repository_import event""" - condition: NotRequired[RepositoryRulesetConditionsType] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType - ] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + status: Literal["success", "cancelled", "failure"] -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - es - """ - - condition_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType - ] - target: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType - ] - include: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType - ] - exclude: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType - ] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropConditionType - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropTarget - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropInclude - """ - - from_: NotRequired[List[str]] - - -class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang - esPropExclude - """ - - from_: NotRequired[List[str]] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", - "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", -) +__all__ = ("WebhookRepositoryImportType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0690.py b/githubkit/versions/v2022_11_28/types/group_0690.py index 83e3fb8b1..32cf1f9fe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0690.py +++ b/githubkit/versions/v2022_11_28/types/group_0690.py @@ -9,96 +9,25 @@ from __future__ import annotations -from typing import List, Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0110 import RepositoryRuleUpdateType -from .group_0134 import RepositoryRuleOneof17Type -from .group_0130 import RepositoryRuleWorkflowsType -from .group_0115 import RepositoryRulePullRequestType -from .group_0132 import RepositoryRuleCodeScanningType -from .group_0127 import RepositoryRuleTagNamePatternType -from .group_0125 import RepositoryRuleBranchNamePatternType -from .group_0113 import RepositoryRuleRequiredDeploymentsType -from .group_0117 import RepositoryRuleRequiredStatusChecksType -from .group_0119 import RepositoryRuleCommitMessagePatternType -from .group_0123 import RepositoryRuleCommitterEmailPatternType -from .group_0121 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0112 import ( - RepositoryRuleOneof15Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0691 import ( - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, -) -from .group_0109 import ( - RepositoryRuleOneof14Type, - RepositoryRuleOneof16Type, - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRules""" +class WebhookRepositoryPrivatizedType(TypedDict): + """repository privatized event""" - added: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - deleted: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - updated: NotRequired[ - List[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] - ] + action: Literal["privatized"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) +__all__ = ("WebhookRepositoryPrivatizedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0691.py b/githubkit/versions/v2022_11_28/types/group_0691.py index 069d18486..fcab81388 100644 --- a/githubkit/versions/v2022_11_28/types/group_0691.py +++ b/githubkit/versions/v2022_11_28/types/group_0691.py @@ -9,117 +9,25 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0110 import RepositoryRuleUpdateType -from .group_0134 import RepositoryRuleOneof17Type -from .group_0130 import RepositoryRuleWorkflowsType -from .group_0115 import RepositoryRulePullRequestType -from .group_0132 import RepositoryRuleCodeScanningType -from .group_0127 import RepositoryRuleTagNamePatternType -from .group_0125 import RepositoryRuleBranchNamePatternType -from .group_0113 import RepositoryRuleRequiredDeploymentsType -from .group_0117 import RepositoryRuleRequiredStatusChecksType -from .group_0119 import RepositoryRuleCommitMessagePatternType -from .group_0123 import RepositoryRuleCommitterEmailPatternType -from .group_0121 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0112 import ( - RepositoryRuleOneof15Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0109 import ( - RepositoryRuleOneof14Type, - RepositoryRuleOneof16Type, - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" +class WebhookRepositoryPublicizedType(TypedDict): + """repository publicized event""" - rule: NotRequired[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - changes: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType - ] + action: Literal["publicized"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" - - configuration: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType - ] - rule_type: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType - ] - pattern: NotRequired[ - WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType - ] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pConfiguration - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pRuleType - """ - - from_: NotRequired[str] - - -class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType( - TypedDict -): - """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro - pPattern - """ - - from_: NotRequired[str] - - -__all__ = ( - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", - "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", -) +__all__ = ("WebhookRepositoryPublicizedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0692.py b/githubkit/versions/v2022_11_28/types/group_0692.py index f0c6f635a..5906fd2dc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0692.py +++ b/githubkit/versions/v2022_11_28/types/group_0692.py @@ -9,21 +9,21 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRepositoryTransferredType(TypedDict): - """repository transferred event""" +class WebhookRepositoryRenamedType(TypedDict): + """repository renamed event""" - action: Literal["transferred"] - changes: WebhookRepositoryTransferredPropChangesType + action: Literal["renamed"] + changes: WebhookRepositoryRenamedPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] @@ -31,82 +31,27 @@ class WebhookRepositoryTransferredType(TypedDict): sender: SimpleUserWebhooksType -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] +class WebhookRepositoryRenamedPropChangesType(TypedDict): + """WebhookRepositoryRenamedPropChanges""" + + repository: WebhookRepositoryRenamedPropChangesPropRepositoryType + + +class WebhookRepositoryRenamedPropChangesPropRepositoryType(TypedDict): + """WebhookRepositoryRenamedPropChangesPropRepository""" + + name: WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType + + +class WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType(TypedDict): + """WebhookRepositoryRenamedPropChangesPropRepositoryPropName""" + + from_: str __all__ = ( - "WebhookRepositoryTransferredType", - "WebhookRepositoryTransferredPropChangesType", - "WebhookRepositoryTransferredPropChangesPropOwnerType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", - "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", + "WebhookRepositoryRenamedType", + "WebhookRepositoryRenamedPropChangesType", + "WebhookRepositoryRenamedPropChangesPropRepositoryType", + "WebhookRepositoryRenamedPropChangesPropRepositoryPropNameType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0693.py b/githubkit/versions/v2022_11_28/types/group_0693.py index 9cd2ba21a..a571a34e9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0693.py +++ b/githubkit/versions/v2022_11_28/types/group_0693.py @@ -12,22 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0140 import RepositoryRulesetType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRepositoryUnarchivedType(TypedDict): - """repository unarchived event""" +class WebhookRepositoryRulesetCreatedType(TypedDict): + """repository ruleset created event""" - action: Literal["unarchived"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType sender: SimpleUserWebhooksType -__all__ = ("WebhookRepositoryUnarchivedType",) +__all__ = ("WebhookRepositoryRulesetCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0694.py b/githubkit/versions/v2022_11_28/types/group_0694.py index 90ae317bd..51691bfd6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0694.py +++ b/githubkit/versions/v2022_11_28/types/group_0694.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0412 import WebhooksAlertType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0140 import RepositoryRulesetType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): - """repository_vulnerability_alert create event""" +class WebhookRepositoryRulesetDeletedType(TypedDict): + """repository ruleset deleted event""" - action: Literal["create"] - alert: WebhooksAlertType + action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType sender: SimpleUserWebhooksType -__all__ = ("WebhookRepositoryVulnerabilityAlertCreateType",) +__all__ = ("WebhookRepositoryRulesetDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0695.py b/githubkit/versions/v2022_11_28/types/group_0695.py index 265d424a5..edcde6a10 100644 --- a/githubkit/versions/v2022_11_28/types/group_0695.py +++ b/githubkit/versions/v2022_11_28/types/group_0695.py @@ -9,85 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0140 import RepositoryRulesetType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0696 import WebhookRepositoryRulesetEditedPropChangesType -class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): - """repository_vulnerability_alert dismiss event""" +class WebhookRepositoryRulesetEditedType(TypedDict): + """repository ruleset edited event""" - action: Literal["dismiss"] - alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType + action: Literal["edited"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] + repository_ruleset: RepositoryRulesetType + changes: NotRequired[WebhookRepositoryRulesetEditedPropChangesType] sender: SimpleUserWebhooksType -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] - - -__all__ = ( - "WebhookRepositoryVulnerabilityAlertDismissType", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", - "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", -) +__all__ = ("WebhookRepositoryRulesetEditedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0696.py b/githubkit/versions/v2022_11_28/types/group_0696.py index 12d273699..7a98a62da 100644 --- a/githubkit/versions/v2022_11_28/types/group_0696.py +++ b/githubkit/versions/v2022_11_28/types/group_0696.py @@ -9,27 +9,37 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0412 import WebhooksAlertType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0699 import WebhookRepositoryRulesetEditedPropChangesPropRulesType +from .group_0697 import WebhookRepositoryRulesetEditedPropChangesPropConditionsType -class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): - """repository_vulnerability_alert reopen event""" +class WebhookRepositoryRulesetEditedPropChangesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChanges""" - action: Literal["reopen"] - alert: WebhooksAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType + name: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropNameType] + enforcement: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropEnforcementType + ] + conditions: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropConditionsType] + rules: NotRequired[WebhookRepositoryRulesetEditedPropChangesPropRulesType] -__all__ = ("WebhookRepositoryVulnerabilityAlertReopenType",) +class WebhookRepositoryRulesetEditedPropChangesPropNameType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropName""" + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropEnforcementType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropEnforcement""" + + from_: NotRequired[str] + + +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropNameType", + "WebhookRepositoryRulesetEditedPropChangesPropEnforcementType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0697.py b/githubkit/versions/v2022_11_28/types/group_0697.py index 5fba75ec5..1602b68e2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0697.py +++ b/githubkit/versions/v2022_11_28/types/group_0697.py @@ -9,86 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType - - -class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): - """repository_vulnerability_alert resolve event""" - - action: Literal["resolve"] - alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - +from .group_0103 import RepositoryRulesetConditionsType +from .group_0698 import ( + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType, +) -class WebhookRepositoryVulnerabilityAlertResolvePropAlertType(TypedDict): - """Repository Vulnerability Alert Alert - The security alert of the vulnerable dependency. - """ +class WebhookRepositoryRulesetEditedPropChangesPropConditionsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropConditions""" - affected_package_name: str - affected_range: str - created_at: str - dismiss_reason: NotRequired[str] - dismissed_at: NotRequired[str] - dismisser: NotRequired[ - Union[ - WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, None + added: NotRequired[List[RepositoryRulesetConditionsType]] + deleted: NotRequired[List[RepositoryRulesetConditionsType]] + updated: NotRequired[ + List[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType ] ] - external_identifier: str - external_reference: Union[str, None] - fix_reason: NotRequired[str] - fixed_at: NotRequired[datetime] - fixed_in: NotRequired[str] - ghsa_id: str - id: int - node_id: str - number: int - severity: str - state: Literal["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__ = ( - "WebhookRepositoryVulnerabilityAlertResolveType", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", - "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", -) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropConditionsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0698.py b/githubkit/versions/v2022_11_28/types/group_0698.py index aca144be8..19248b980 100644 --- a/githubkit/versions/v2022_11_28/types/group_0698.py +++ b/githubkit/versions/v2022_11_28/types/group_0698.py @@ -9,27 +9,89 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0413 import SecretScanningAlertWebhookType +from .group_0103 import RepositoryRulesetConditionsType -class WebhookSecretScanningAlertCreatedType(TypedDict): - """secret_scanning_alert created event""" +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItems""" - action: Literal["created"] - alert: SecretScanningAlertWebhookType - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + condition: NotRequired[RepositoryRulesetConditionsType] + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType + ] -__all__ = ("WebhookSecretScanningAlertCreatedType",) +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + es + """ + + condition_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType + ] + target: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType + ] + include: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType + ] + exclude: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType + ] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropConditionType + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropTarget + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropInclude + """ + + from_: NotRequired[List[str]] + + +class WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChang + esPropExclude + """ + + from_: NotRequired[List[str]] + + +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropConditionTypeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropTargetType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropIncludeType", + "WebhookRepositoryRulesetEditedPropChangesPropConditionsPropUpdatedItemsPropChangesPropExcludeType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0699.py b/githubkit/versions/v2022_11_28/types/group_0699.py index 94e5dcba8..405f77960 100644 --- a/githubkit/versions/v2022_11_28/types/group_0699.py +++ b/githubkit/versions/v2022_11_28/types/group_0699.py @@ -9,228 +9,96 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0413 import SecretScanningAlertWebhookType - - -class WebhookSecretScanningAlertLocationCreatedType(TypedDict): - """Secret Scanning Alert Location Created Event""" - - action: Literal["created"] - alert: SecretScanningAlertWebhookType - installation: NotRequired[SimpleInstallationType] - location: SecretScanningLocationType - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - +from .group_0115 import RepositoryRuleUpdateType +from .group_0139 import RepositoryRuleOneof17Type +from .group_0135 import RepositoryRuleWorkflowsType +from .group_0120 import RepositoryRulePullRequestType +from .group_0137 import RepositoryRuleCodeScanningType +from .group_0132 import RepositoryRuleTagNamePatternType +from .group_0130 import RepositoryRuleBranchNamePatternType +from .group_0118 import RepositoryRuleRequiredDeploymentsType +from .group_0122 import RepositoryRuleRequiredStatusChecksType +from .group_0124 import RepositoryRuleCommitMessagePatternType +from .group_0128 import RepositoryRuleCommitterEmailPatternType +from .group_0126 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0117 import ( + RepositoryRuleOneof15Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0700 import ( + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType, +) +from .group_0114 import ( + RepositoryRuleOneof14Type, + RepositoryRuleOneof16Type, + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -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", +class WebhookRepositoryRulesetEditedPropChangesPropRulesType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRules""" + + added: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] ] ] - details: NotRequired[ - Union[ - SecretScanningLocationCommitType, - SecretScanningLocationWikiCommitType, - SecretScanningLocationIssueTitleType, - SecretScanningLocationIssueBodyType, - SecretScanningLocationIssueCommentType, - SecretScanningLocationDiscussionTitleType, - SecretScanningLocationDiscussionBodyType, - SecretScanningLocationDiscussionCommentType, - SecretScanningLocationPullRequestTitleType, - SecretScanningLocationPullRequestBodyType, - SecretScanningLocationPullRequestCommentType, - SecretScanningLocationPullRequestReviewType, - SecretScanningLocationPullRequestReviewCommentType, + deleted: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] ] ] + updated: NotRequired[ + List[WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType] + ] -class SecretScanningLocationCommitType(TypedDict): - """SecretScanningLocationCommit - - Represents a 'commit' secret scanning location type. This location type shows - that a secret was detected inside a commit to a repository. - """ - - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - blob_url: str - commit_sha: str - commit_url: str - - -class SecretScanningLocationWikiCommitType(TypedDict): - """SecretScanningLocationWikiCommit - - Represents a 'wiki_commit' secret scanning location type. This location type - shows that a secret was detected inside a commit to a repository wiki. - """ - - path: str - start_line: float - end_line: float - start_column: float - end_column: float - blob_sha: str - page_url: str - commit_sha: str - commit_url: str - - -class SecretScanningLocationIssueTitleType(TypedDict): - """SecretScanningLocationIssueTitle - - Represents an 'issue_title' secret scanning location type. This location type - shows that a secret was detected in the title of an issue. - """ - - issue_title_url: str - - -class SecretScanningLocationIssueBodyType(TypedDict): - """SecretScanningLocationIssueBody - - Represents an 'issue_body' secret scanning location type. This location type - shows that a secret was detected in the body of an issue. - """ - - issue_body_url: str - - -class SecretScanningLocationIssueCommentType(TypedDict): - """SecretScanningLocationIssueComment - - Represents an 'issue_comment' secret scanning location type. This location type - shows that a secret was detected in a comment on an issue. - """ - - issue_comment_url: str - - -class SecretScanningLocationDiscussionTitleType(TypedDict): - """SecretScanningLocationDiscussionTitle - - Represents a 'discussion_title' secret scanning location type. This location - type shows that a secret was detected in the title of a discussion. - """ - - discussion_title_url: str - - -class SecretScanningLocationDiscussionBodyType(TypedDict): - """SecretScanningLocationDiscussionBody - - Represents a 'discussion_body' secret scanning location type. This location type - shows that a secret was detected in the body of a discussion. - """ - - discussion_body_url: str - - -class SecretScanningLocationDiscussionCommentType(TypedDict): - """SecretScanningLocationDiscussionComment - - Represents a 'discussion_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a discussion. - """ - - discussion_comment_url: str - - -class SecretScanningLocationPullRequestTitleType(TypedDict): - """SecretScanningLocationPullRequestTitle - - Represents a 'pull_request_title' secret scanning location type. This location - type shows that a secret was detected in the title of a pull request. - """ - - pull_request_title_url: str - - -class SecretScanningLocationPullRequestBodyType(TypedDict): - """SecretScanningLocationPullRequestBody - - Represents a 'pull_request_body' secret scanning location type. This location - type shows that a secret was detected in the body of a pull request. - """ - - pull_request_body_url: str - - -class SecretScanningLocationPullRequestCommentType(TypedDict): - """SecretScanningLocationPullRequestComment - - Represents a 'pull_request_comment' secret scanning location type. This location - type shows that a secret was detected in a comment on a pull request. - """ - - pull_request_comment_url: str - - -class SecretScanningLocationPullRequestReviewType(TypedDict): - """SecretScanningLocationPullRequestReview - - Represents a 'pull_request_review' secret scanning location type. This location - type shows that a secret was detected in a review on a pull request. - """ - - pull_request_review_url: str - - -class SecretScanningLocationPullRequestReviewCommentType(TypedDict): - """SecretScanningLocationPullRequestReviewComment - - Represents a 'pull_request_review_comment' secret scanning location type. This - location type shows that a secret was detected in a review comment on a pull - request. - """ - - pull_request_review_comment_url: str - - -__all__ = ( - "WebhookSecretScanningAlertLocationCreatedType", - "SecretScanningLocationType", - "SecretScanningLocationCommitType", - "SecretScanningLocationWikiCommitType", - "SecretScanningLocationIssueTitleType", - "SecretScanningLocationIssueBodyType", - "SecretScanningLocationIssueCommentType", - "SecretScanningLocationDiscussionTitleType", - "SecretScanningLocationDiscussionBodyType", - "SecretScanningLocationDiscussionCommentType", - "SecretScanningLocationPullRequestTitleType", - "SecretScanningLocationPullRequestBodyType", - "SecretScanningLocationPullRequestCommentType", - "SecretScanningLocationPullRequestReviewType", - "SecretScanningLocationPullRequestReviewCommentType", -) +__all__ = ("WebhookRepositoryRulesetEditedPropChangesPropRulesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0700.py b/githubkit/versions/v2022_11_28/types/group_0700.py index 4c3c84e39..c5b504e28 100644 --- a/githubkit/versions/v2022_11_28/types/group_0700.py +++ b/githubkit/versions/v2022_11_28/types/group_0700.py @@ -9,13 +9,117 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired +from .group_0115 import RepositoryRuleUpdateType +from .group_0139 import RepositoryRuleOneof17Type +from .group_0135 import RepositoryRuleWorkflowsType +from .group_0120 import RepositoryRulePullRequestType +from .group_0137 import RepositoryRuleCodeScanningType +from .group_0132 import RepositoryRuleTagNamePatternType +from .group_0130 import RepositoryRuleBranchNamePatternType +from .group_0118 import RepositoryRuleRequiredDeploymentsType +from .group_0122 import RepositoryRuleRequiredStatusChecksType +from .group_0124 import RepositoryRuleCommitMessagePatternType +from .group_0128 import RepositoryRuleCommitterEmailPatternType +from .group_0126 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0117 import ( + RepositoryRuleOneof15Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0114 import ( + RepositoryRuleOneof14Type, + RepositoryRuleOneof16Type, + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): - """Secret Scanning Alert Location Created Event""" - payload: str +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType(TypedDict): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItems""" + rule: NotRequired[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + changes: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType + ] -__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChanges""" + + configuration: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType + ] + rule_type: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType + ] + pattern: NotRequired[ + WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType + ] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pConfiguration + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pRuleType + """ + + from_: NotRequired[str] + + +class WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType( + TypedDict +): + """WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPro + pPattern + """ + + from_: NotRequired[str] + + +__all__ = ( + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropConfigurationType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropRuleTypeType", + "WebhookRepositoryRulesetEditedPropChangesPropRulesPropUpdatedItemsPropChangesPropPatternType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0701.py b/githubkit/versions/v2022_11_28/types/group_0701.py index 6f3460ac4..8b028cbe6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0701.py +++ b/githubkit/versions/v2022_11_28/types/group_0701.py @@ -9,27 +9,104 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0413 import SecretScanningAlertWebhookType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookSecretScanningAlertReopenedType(TypedDict): - """secret_scanning_alert reopened event""" +class WebhookRepositoryTransferredType(TypedDict): + """repository transferred event""" - action: Literal["reopened"] - alert: SecretScanningAlertWebhookType + action: Literal["transferred"] + changes: WebhookRepositoryTransferredPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookSecretScanningAlertReopenedType",) +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] + + +__all__ = ( + "WebhookRepositoryTransferredType", + "WebhookRepositoryTransferredPropChangesType", + "WebhookRepositoryTransferredPropChangesPropOwnerType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropOrganizationType", + "WebhookRepositoryTransferredPropChangesPropOwnerPropFromPropUserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0702.py b/githubkit/versions/v2022_11_28/types/group_0702.py index 6b0f4b02e..8c44a1c92 100644 --- a/githubkit/versions/v2022_11_28/types/group_0702.py +++ b/githubkit/versions/v2022_11_28/types/group_0702.py @@ -12,24 +12,22 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0413 import SecretScanningAlertWebhookType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookSecretScanningAlertResolvedType(TypedDict): - """secret_scanning_alert resolved event""" +class WebhookRepositoryUnarchivedType(TypedDict): + """repository unarchived event""" - action: Literal["resolved"] - alert: SecretScanningAlertWebhookType + action: Literal["unarchived"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookSecretScanningAlertResolvedType",) +__all__ = ("WebhookRepositoryUnarchivedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0703.py b/githubkit/versions/v2022_11_28/types/group_0703.py index e3b783730..a39f7fd68 100644 --- a/githubkit/versions/v2022_11_28/types/group_0703.py +++ b/githubkit/versions/v2022_11_28/types/group_0703.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0413 import SecretScanningAlertWebhookType +from .group_0418 import WebhooksAlertType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookSecretScanningAlertValidatedType(TypedDict): - """secret_scanning_alert validated event""" +class WebhookRepositoryVulnerabilityAlertCreateType(TypedDict): + """repository_vulnerability_alert create event""" - action: Literal["validated"] - alert: SecretScanningAlertWebhookType + action: Literal["create"] + alert: WebhooksAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType - sender: NotRequired[SimpleUserWebhooksType] + sender: SimpleUserWebhooksType -__all__ = ("WebhookSecretScanningAlertValidatedType",) +__all__ = ("WebhookRepositoryVulnerabilityAlertCreateType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0704.py b/githubkit/versions/v2022_11_28/types/group_0704.py index 3a4507723..08534c336 100644 --- a/githubkit/versions/v2022_11_28/types/group_0704.py +++ b/githubkit/versions/v2022_11_28/types/group_0704.py @@ -9,27 +9,85 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0414 import WebhooksSecurityAdvisoryType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookSecurityAdvisoryPublishedType(TypedDict): - """security_advisory published event""" +class WebhookRepositoryVulnerabilityAlertDismissType(TypedDict): + """repository_vulnerability_alert dismiss event""" - action: Literal["published"] + action: Literal["dismiss"] + alert: WebhookRepositoryVulnerabilityAlertDismissPropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhooksSecurityAdvisoryType - sender: NotRequired[SimpleUserWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookSecurityAdvisoryPublishedType",) +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] + + +__all__ = ( + "WebhookRepositoryVulnerabilityAlertDismissType", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertType", + "WebhookRepositoryVulnerabilityAlertDismissPropAlertPropDismisserType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0705.py b/githubkit/versions/v2022_11_28/types/group_0705.py index e763af9e6..e2854863b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0705.py +++ b/githubkit/versions/v2022_11_28/types/group_0705.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0414 import WebhooksSecurityAdvisoryType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0418 import WebhooksAlertType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookSecurityAdvisoryUpdatedType(TypedDict): - """security_advisory updated event""" +class WebhookRepositoryVulnerabilityAlertReopenType(TypedDict): + """repository_vulnerability_alert reopen event""" - action: Literal["updated"] + action: Literal["reopen"] + alert: WebhooksAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhooksSecurityAdvisoryType - sender: NotRequired[SimpleUserWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookSecurityAdvisoryUpdatedType",) +__all__ = ("WebhookRepositoryVulnerabilityAlertReopenType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0706.py b/githubkit/versions/v2022_11_28/types/group_0706.py index c95d3c295..27a5b8e72 100644 --- a/githubkit/versions/v2022_11_28/types/group_0706.py +++ b/githubkit/versions/v2022_11_28/types/group_0706.py @@ -9,129 +9,86 @@ from __future__ import annotations -from typing import List, Union, Literal +from datetime import datetime +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookSecurityAdvisoryWithdrawnType(TypedDict): - """security_advisory withdrawn event""" +class WebhookRepositoryVulnerabilityAlertResolveType(TypedDict): + """repository_vulnerability_alert resolve event""" - action: Literal["withdrawn"] + action: Literal["resolve"] + alert: WebhookRepositoryVulnerabilityAlertResolvePropAlertType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType - sender: NotRequired[SimpleUserWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory +class WebhookRepositoryVulnerabilityAlertResolvePropAlertType(TypedDict): + """Repository Vulnerability Alert Alert - The details of the security advisory, including summary, description, and - severity. + The security alert of the vulnerable dependency. """ - cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType - 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 + affected_package_name: str + affected_range: str + created_at: str + dismiss_reason: NotRequired[str] + dismissed_at: NotRequired[str] + dismisser: NotRequired[ + Union[ + WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType, None + ] ] - 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 + 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 - vulnerable_version_range: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - FirstPatchedVersion - """ - - identifier: str - - -class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType( - TypedDict -): - """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsProp - Package - """ - - ecosystem: str - name: 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__ = ( - "WebhookSecurityAdvisoryWithdrawnType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", - "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", + "WebhookRepositoryVulnerabilityAlertResolveType", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertType", + "WebhookRepositoryVulnerabilityAlertResolvePropAlertPropDismisserType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0707.py b/githubkit/versions/v2022_11_28/types/group_0707.py index ae4f9d890..9c136f348 100644 --- a/githubkit/versions/v2022_11_28/types/group_0707.py +++ b/githubkit/versions/v2022_11_28/types/group_0707.py @@ -9,25 +9,27 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0096 import FullRepositoryType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType -from .group_0708 import WebhookSecurityAndAnalysisPropChangesType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0419 import SecretScanningAlertWebhookType -class WebhookSecurityAndAnalysisType(TypedDict): - """security_and_analysis event""" +class WebhookSecretScanningAlertCreatedType(TypedDict): + """secret_scanning_alert created event""" - changes: WebhookSecurityAndAnalysisPropChangesType + action: Literal["created"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: FullRepositoryType + repository: RepositoryWebhooksType sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookSecurityAndAnalysisType",) +__all__ = ("WebhookSecretScanningAlertCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0708.py b/githubkit/versions/v2022_11_28/types/group_0708.py index 6b8d4851f..082dff8d1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0708.py +++ b/githubkit/versions/v2022_11_28/types/group_0708.py @@ -9,15 +9,228 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0709 import WebhookSecurityAndAnalysisPropChangesPropFromType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0419 import SecretScanningAlertWebhookType -class WebhookSecurityAndAnalysisPropChangesType(TypedDict): - """WebhookSecurityAndAnalysisPropChanges""" +class WebhookSecretScanningAlertLocationCreatedType(TypedDict): + """Secret Scanning Alert Location Created Event""" - from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] + action: Literal["created"] + alert: SecretScanningAlertWebhookType + installation: NotRequired[SimpleInstallationType] + location: SecretScanningLocationType + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType -__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) +class SecretScanningLocationType(TypedDict): + """SecretScanningLocation""" + + type: NotRequired[ + Literal[ + "commit", + "wiki_commit", + "issue_title", + "issue_body", + "issue_comment", + "discussion_title", + "discussion_body", + "discussion_comment", + "pull_request_title", + "pull_request_body", + "pull_request_comment", + "pull_request_review", + "pull_request_review_comment", + ] + ] + details: NotRequired[ + Union[ + SecretScanningLocationCommitType, + SecretScanningLocationWikiCommitType, + SecretScanningLocationIssueTitleType, + SecretScanningLocationIssueBodyType, + SecretScanningLocationIssueCommentType, + SecretScanningLocationDiscussionTitleType, + SecretScanningLocationDiscussionBodyType, + SecretScanningLocationDiscussionCommentType, + SecretScanningLocationPullRequestTitleType, + SecretScanningLocationPullRequestBodyType, + SecretScanningLocationPullRequestCommentType, + SecretScanningLocationPullRequestReviewType, + SecretScanningLocationPullRequestReviewCommentType, + ] + ] + + +class SecretScanningLocationCommitType(TypedDict): + """SecretScanningLocationCommit + + Represents a 'commit' secret scanning location type. This location type shows + that a secret was detected inside a commit to a repository. + """ + + path: str + start_line: float + end_line: float + start_column: float + end_column: float + blob_sha: str + blob_url: str + commit_sha: str + commit_url: str + + +class SecretScanningLocationWikiCommitType(TypedDict): + """SecretScanningLocationWikiCommit + + Represents a 'wiki_commit' secret scanning location type. This location type + shows that a secret was detected inside a commit to a repository wiki. + """ + + path: str + start_line: float + end_line: float + start_column: float + end_column: float + blob_sha: str + page_url: str + commit_sha: str + commit_url: str + + +class SecretScanningLocationIssueTitleType(TypedDict): + """SecretScanningLocationIssueTitle + + Represents an 'issue_title' secret scanning location type. This location type + shows that a secret was detected in the title of an issue. + """ + + issue_title_url: str + + +class SecretScanningLocationIssueBodyType(TypedDict): + """SecretScanningLocationIssueBody + + Represents an 'issue_body' secret scanning location type. This location type + shows that a secret was detected in the body of an issue. + """ + + issue_body_url: str + + +class SecretScanningLocationIssueCommentType(TypedDict): + """SecretScanningLocationIssueComment + + Represents an 'issue_comment' secret scanning location type. This location type + shows that a secret was detected in a comment on an issue. + """ + + issue_comment_url: str + + +class SecretScanningLocationDiscussionTitleType(TypedDict): + """SecretScanningLocationDiscussionTitle + + Represents a 'discussion_title' secret scanning location type. This location + type shows that a secret was detected in the title of a discussion. + """ + + discussion_title_url: str + + +class SecretScanningLocationDiscussionBodyType(TypedDict): + """SecretScanningLocationDiscussionBody + + Represents a 'discussion_body' secret scanning location type. This location type + shows that a secret was detected in the body of a discussion. + """ + + discussion_body_url: str + + +class SecretScanningLocationDiscussionCommentType(TypedDict): + """SecretScanningLocationDiscussionComment + + Represents a 'discussion_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a discussion. + """ + + discussion_comment_url: str + + +class SecretScanningLocationPullRequestTitleType(TypedDict): + """SecretScanningLocationPullRequestTitle + + Represents a 'pull_request_title' secret scanning location type. This location + type shows that a secret was detected in the title of a pull request. + """ + + pull_request_title_url: str + + +class SecretScanningLocationPullRequestBodyType(TypedDict): + """SecretScanningLocationPullRequestBody + + Represents a 'pull_request_body' secret scanning location type. This location + type shows that a secret was detected in the body of a pull request. + """ + + pull_request_body_url: str + + +class SecretScanningLocationPullRequestCommentType(TypedDict): + """SecretScanningLocationPullRequestComment + + Represents a 'pull_request_comment' secret scanning location type. This location + type shows that a secret was detected in a comment on a pull request. + """ + + pull_request_comment_url: str + + +class SecretScanningLocationPullRequestReviewType(TypedDict): + """SecretScanningLocationPullRequestReview + + Represents a 'pull_request_review' secret scanning location type. This location + type shows that a secret was detected in a review on a pull request. + """ + + pull_request_review_url: str + + +class SecretScanningLocationPullRequestReviewCommentType(TypedDict): + """SecretScanningLocationPullRequestReviewComment + + Represents a 'pull_request_review_comment' secret scanning location type. This + location type shows that a secret was detected in a review comment on a pull + request. + """ + + pull_request_review_comment_url: str + + +__all__ = ( + "WebhookSecretScanningAlertLocationCreatedType", + "SecretScanningLocationType", + "SecretScanningLocationCommitType", + "SecretScanningLocationWikiCommitType", + "SecretScanningLocationIssueTitleType", + "SecretScanningLocationIssueBodyType", + "SecretScanningLocationIssueCommentType", + "SecretScanningLocationDiscussionTitleType", + "SecretScanningLocationDiscussionBodyType", + "SecretScanningLocationDiscussionCommentType", + "SecretScanningLocationPullRequestTitleType", + "SecretScanningLocationPullRequestBodyType", + "SecretScanningLocationPullRequestCommentType", + "SecretScanningLocationPullRequestReviewType", + "SecretScanningLocationPullRequestReviewCommentType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0709.py b/githubkit/versions/v2022_11_28/types/group_0709.py index 6d8d77105..4c3c84e39 100644 --- a/githubkit/versions/v2022_11_28/types/group_0709.py +++ b/githubkit/versions/v2022_11_28/types/group_0709.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0050 import SecurityAndAnalysisType +class WebhookSecretScanningAlertLocationCreatedFormEncodedType(TypedDict): + """Secret Scanning Alert Location Created Event""" -class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): - """WebhookSecurityAndAnalysisPropChangesPropFrom""" + payload: str - security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] - -__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) +__all__ = ("WebhookSecretScanningAlertLocationCreatedFormEncodedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0710.py b/githubkit/versions/v2022_11_28/types/group_0710.py index 65d1a6887..904e60e79 100644 --- a/githubkit/versions/v2022_11_28/types/group_0710.py +++ b/githubkit/versions/v2022_11_28/types/group_0710.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0415 import WebhooksSponsorshipType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0419 import SecretScanningAlertWebhookType -class WebhookSponsorshipCancelledType(TypedDict): - """sponsorship cancelled event""" +class WebhookSecretScanningAlertReopenedType(TypedDict): + """secret_scanning_alert reopened event""" - action: Literal["cancelled"] + action: Literal["reopened"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhooksSponsorshipType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookSponsorshipCancelledType",) +__all__ = ("WebhookSecretScanningAlertReopenedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0711.py b/githubkit/versions/v2022_11_28/types/group_0711.py index 0528cad7d..8404ec7ad 100644 --- a/githubkit/versions/v2022_11_28/types/group_0711.py +++ b/githubkit/versions/v2022_11_28/types/group_0711.py @@ -12,24 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0415 import WebhooksSponsorshipType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0419 import SecretScanningAlertWebhookType -class WebhookSponsorshipCreatedType(TypedDict): - """sponsorship created event""" +class WebhookSecretScanningAlertResolvedType(TypedDict): + """secret_scanning_alert resolved event""" - action: Literal["created"] + action: Literal["resolved"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhooksSponsorshipType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookSponsorshipCreatedType",) +__all__ = ("WebhookSecretScanningAlertResolvedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0712.py b/githubkit/versions/v2022_11_28/types/group_0712.py index 7739cccd4..564540ff7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0712.py +++ b/githubkit/versions/v2022_11_28/types/group_0712.py @@ -12,41 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0415 import WebhooksSponsorshipType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0419 import SecretScanningAlertWebhookType -class WebhookSponsorshipEditedType(TypedDict): - """sponsorship edited event""" +class WebhookSecretScanningAlertValidatedType(TypedDict): + """secret_scanning_alert validated event""" - action: Literal["edited"] - changes: WebhookSponsorshipEditedPropChangesType + action: Literal["validated"] + alert: SecretScanningAlertWebhookType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhooksSponsorshipType + repository: RepositoryWebhooksType + sender: NotRequired[SimpleUserWebhooksType] -class WebhookSponsorshipEditedPropChangesType(TypedDict): - """WebhookSponsorshipEditedPropChanges""" - - privacy_level: NotRequired[WebhookSponsorshipEditedPropChangesPropPrivacyLevelType] - - -class WebhookSponsorshipEditedPropChangesPropPrivacyLevelType(TypedDict): - """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" - - from_: str - - -__all__ = ( - "WebhookSponsorshipEditedType", - "WebhookSponsorshipEditedPropChangesType", - "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", -) +__all__ = ("WebhookSecretScanningAlertValidatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0713.py b/githubkit/versions/v2022_11_28/types/group_0713.py index 79b22029e..2c1cb0e34 100644 --- a/githubkit/versions/v2022_11_28/types/group_0713.py +++ b/githubkit/versions/v2022_11_28/types/group_0713.py @@ -12,25 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0415 import WebhooksSponsorshipType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0420 import WebhooksSecurityAdvisoryType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookSponsorshipPendingCancellationType(TypedDict): - """sponsorship pending_cancellation event""" +class WebhookSecurityAdvisoryPublishedType(TypedDict): + """security_advisory published event""" - action: Literal["pending_cancellation"] - effective_date: NotRequired[str] + action: Literal["published"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhooksSponsorshipType + security_advisory: WebhooksSecurityAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookSponsorshipPendingCancellationType",) +__all__ = ("WebhookSecurityAdvisoryPublishedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0714.py b/githubkit/versions/v2022_11_28/types/group_0714.py index 011fb5693..f0ef052e8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0714.py +++ b/githubkit/versions/v2022_11_28/types/group_0714.py @@ -12,27 +12,24 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0416 import WebhooksChanges8Type -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0415 import WebhooksSponsorshipType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0420 import WebhooksSecurityAdvisoryType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookSponsorshipPendingTierChangeType(TypedDict): - """sponsorship pending_tier_change event""" +class WebhookSecurityAdvisoryUpdatedType(TypedDict): + """security_advisory updated event""" - action: Literal["pending_tier_change"] - changes: WebhooksChanges8Type - effective_date: NotRequired[str] + action: Literal["updated"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhooksSponsorshipType + security_advisory: WebhooksSecurityAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookSponsorshipPendingTierChangeType",) +__all__ = ("WebhookSecurityAdvisoryUpdatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0715.py b/githubkit/versions/v2022_11_28/types/group_0715.py index 32600fbc1..34d787ce7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0715.py +++ b/githubkit/versions/v2022_11_28/types/group_0715.py @@ -9,29 +9,129 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0416 import WebhooksChanges8Type -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0415 import WebhooksSponsorshipType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookSponsorshipTierChangedType(TypedDict): - """sponsorship tier_changed event""" +class WebhookSecurityAdvisoryWithdrawnType(TypedDict): + """security_advisory withdrawn event""" - action: Literal["tier_changed"] - changes: WebhooksChanges8Type + action: Literal["withdrawn"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: NotRequired[RepositoryWebhooksType] - sender: SimpleUserWebhooksType - sponsorship: WebhooksSponsorshipType + security_advisory: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookSponsorshipTierChangedType",) +class WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType(TypedDict): + """WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisory + + The details of the security advisory, including summary, description, and + severity. + """ + + cvss: WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType + 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__ = ( + "WebhookSecurityAdvisoryWithdrawnType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCvssType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropCwesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropIdentifiersItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropReferencesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropFirstPatchedVersionType", + "WebhookSecurityAdvisoryWithdrawnPropSecurityAdvisoryPropVulnerabilitiesItemsPropPackageType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0716.py b/githubkit/versions/v2022_11_28/types/group_0716.py index 4390ed5bc..066f69dc7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0716.py +++ b/githubkit/versions/v2022_11_28/types/group_0716.py @@ -9,26 +9,25 @@ from __future__ import annotations -from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0101 import FullRepositoryType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType +from .group_0717 import WebhookSecurityAndAnalysisPropChangesType -class WebhookStarCreatedType(TypedDict): - """star created event""" +class WebhookSecurityAndAnalysisType(TypedDict): + """security_and_analysis event""" - action: Literal["created"] + changes: WebhookSecurityAndAnalysisPropChangesType enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - starred_at: Union[str, None] + repository: FullRepositoryType + sender: NotRequired[SimpleUserWebhooksType] -__all__ = ("WebhookStarCreatedType",) +__all__ = ("WebhookSecurityAndAnalysisType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0717.py b/githubkit/versions/v2022_11_28/types/group_0717.py index a29e73371..9c423201f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0717.py +++ b/githubkit/versions/v2022_11_28/types/group_0717.py @@ -9,26 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0718 import WebhookSecurityAndAnalysisPropChangesPropFromType -class WebhookStarDeletedType(TypedDict): - """star deleted event""" +class WebhookSecurityAndAnalysisPropChangesType(TypedDict): + """WebhookSecurityAndAnalysisPropChanges""" - action: Literal["deleted"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - starred_at: None + from_: NotRequired[WebhookSecurityAndAnalysisPropChangesPropFromType] -__all__ = ("WebhookStarDeletedType",) +__all__ = ("WebhookSecurityAndAnalysisPropChangesType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0718.py b/githubkit/versions/v2022_11_28/types/group_0718.py index 71f4e41f5..596150453 100644 --- a/githubkit/versions/v2022_11_28/types/group_0718.py +++ b/githubkit/versions/v2022_11_28/types/group_0718.py @@ -9,201 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0054 import SecurityAndAnalysisType -class WebhookStatusType(TypedDict): - """status event""" +class WebhookSecurityAndAnalysisPropChangesPropFromType(TypedDict): + """WebhookSecurityAndAnalysisPropChangesPropFrom""" - 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: SimpleUserWebhooksType - sha: str - state: Literal["pending", "success", "failure", "error"] - target_url: Union[str, None] - updated_at: str + security_and_analysis: NotRequired[Union[SecurityAndAnalysisType, None]] -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 - - -__all__ = ( - "WebhookStatusType", - "WebhookStatusPropBranchesItemsType", - "WebhookStatusPropBranchesItemsPropCommitType", - "WebhookStatusPropCommitType", - "WebhookStatusPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitterType", - "WebhookStatusPropCommitPropParentsItemsType", - "WebhookStatusPropCommitPropCommitType", - "WebhookStatusPropCommitPropCommitPropAuthorType", - "WebhookStatusPropCommitPropCommitPropCommitterType", - "WebhookStatusPropCommitPropCommitPropTreeType", - "WebhookStatusPropCommitPropCommitPropVerificationType", -) +__all__ = ("WebhookSecurityAndAnalysisPropChangesPropFromType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0719.py b/githubkit/versions/v2022_11_28/types/group_0719.py index aab36d9f8..521ce13a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0719.py +++ b/githubkit/versions/v2022_11_28/types/group_0719.py @@ -9,21 +9,27 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0421 import WebhooksSponsorshipType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookSponsorshipCancelledType(TypedDict): + """sponsorship cancelled event""" - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] + action: Literal["cancelled"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) +__all__ = ("WebhookSponsorshipCancelledType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0720.py b/githubkit/versions/v2022_11_28/types/group_0720.py index 19cbee4e2..668d01c89 100644 --- a/githubkit/versions/v2022_11_28/types/group_0720.py +++ b/githubkit/versions/v2022_11_28/types/group_0720.py @@ -9,15 +9,27 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0421 import WebhooksSponsorshipType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" - date: str - email: NotRequired[str] - name: NotRequired[str] +class WebhookSponsorshipCreatedType(TypedDict): + """sponsorship created event""" + action: Literal["created"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) + +__all__ = ("WebhookSponsorshipCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0721.py b/githubkit/versions/v2022_11_28/types/group_0721.py index 983acb648..8bc1de008 100644 --- a/githubkit/versions/v2022_11_28/types/group_0721.py +++ b/githubkit/versions/v2022_11_28/types/group_0721.py @@ -9,21 +9,44 @@ from __future__ import annotations -from typing import Union -from datetime import datetime +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0421 import WebhooksSponsorshipType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): - """Committer - Metaproperties for Git author/committer information. - """ +class WebhookSponsorshipEditedType(TypedDict): + """sponsorship edited event""" - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] + action: Literal["edited"] + changes: WebhookSponsorshipEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) +class WebhookSponsorshipEditedPropChangesType(TypedDict): + """WebhookSponsorshipEditedPropChanges""" + + privacy_level: NotRequired[WebhookSponsorshipEditedPropChangesPropPrivacyLevelType] + + +class WebhookSponsorshipEditedPropChangesPropPrivacyLevelType(TypedDict): + """WebhookSponsorshipEditedPropChangesPropPrivacyLevel""" + + from_: str + + +__all__ = ( + "WebhookSponsorshipEditedType", + "WebhookSponsorshipEditedPropChangesType", + "WebhookSponsorshipEditedPropChangesPropPrivacyLevelType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0722.py b/githubkit/versions/v2022_11_28/types/group_0722.py index 6d8f6e0a2..432232dc5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0722.py +++ b/githubkit/versions/v2022_11_28/types/group_0722.py @@ -9,15 +9,28 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0421 import WebhooksSponsorshipType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): - """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" - date: str - email: NotRequired[str] - name: NotRequired[str] +class WebhookSponsorshipPendingCancellationType(TypedDict): + """sponsorship pending_cancellation event""" + action: Literal["pending_cancellation"] + effective_date: NotRequired[str] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) + +__all__ = ("WebhookSponsorshipPendingCancellationType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0723.py b/githubkit/versions/v2022_11_28/types/group_0723.py index 98ba55cfc..887fa1680 100644 --- a/githubkit/versions/v2022_11_28/types/group_0723.py +++ b/githubkit/versions/v2022_11_28/types/group_0723.py @@ -9,25 +9,30 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0417 import WebhooksTeam1Type -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0422 import WebhooksChanges8Type +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0421 import WebhooksSponsorshipType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookTeamAddType(TypedDict): - """team_add event""" +class WebhookSponsorshipPendingTierChangeType(TypedDict): + """sponsorship pending_tier_change event""" + action: Literal["pending_tier_change"] + changes: WebhooksChanges8Type + effective_date: NotRequired[str] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + repository: NotRequired[RepositoryWebhooksType] sender: SimpleUserWebhooksType - team: WebhooksTeam1Type + sponsorship: WebhooksSponsorshipType -__all__ = ("WebhookTeamAddType",) +__all__ = ("WebhookSponsorshipPendingTierChangeType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0724.py b/githubkit/versions/v2022_11_28/types/group_0724.py index 0723ba2cb..ad09edb26 100644 --- a/githubkit/versions/v2022_11_28/types/group_0724.py +++ b/githubkit/versions/v2022_11_28/types/group_0724.py @@ -9,191 +9,29 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0417 import WebhooksTeam1Type -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0422 import WebhooksChanges8Type +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0421 import WebhooksSponsorshipType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookTeamAddedToRepositoryType(TypedDict): - """team added_to_repository event""" +class WebhookSponsorshipTierChangedType(TypedDict): + """sponsorship tier_changed event""" - action: Literal["added_to_repository"] + action: Literal["tier_changed"] + changes: WebhooksChanges8Type enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] - sender: NotRequired[SimpleUserWebhooksType] - team: WebhooksTeam1Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: NotRequired[RepositoryWebhooksType] + sender: SimpleUserWebhooksType + sponsorship: WebhooksSponsorshipType -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 - - -class WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType(TypedDict): - """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] - - -class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -__all__ = ( - "WebhookTeamAddedToRepositoryType", - "WebhookTeamAddedToRepositoryPropRepositoryType", - "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", - "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", - "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", -) +__all__ = ("WebhookSponsorshipTierChangedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0725.py b/githubkit/versions/v2022_11_28/types/group_0725.py index aae9bb8f2..5ce190406 100644 --- a/githubkit/versions/v2022_11_28/types/group_0725.py +++ b/githubkit/versions/v2022_11_28/types/group_0725.py @@ -9,189 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0417 import WebhooksTeam1Type -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookTeamCreatedType(TypedDict): - """team created event""" +class WebhookStarCreatedType(TypedDict): + """star created event""" action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamCreatedPropRepositoryType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - team: WebhooksTeam1Type + starred_at: Union[str, None] -class WebhookTeamCreatedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamCreatedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookTeamCreatedPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookTeamCreatedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamCreatedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -__all__ = ( - "WebhookTeamCreatedType", - "WebhookTeamCreatedPropRepositoryType", - "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", - "WebhookTeamCreatedPropRepositoryPropLicenseType", - "WebhookTeamCreatedPropRepositoryPropOwnerType", - "WebhookTeamCreatedPropRepositoryPropPermissionsType", -) +__all__ = ("WebhookStarCreatedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0726.py b/githubkit/versions/v2022_11_28/types/group_0726.py index 3eee81106..9089dceab 100644 --- a/githubkit/versions/v2022_11_28/types/group_0726.py +++ b/githubkit/versions/v2022_11_28/types/group_0726.py @@ -9,189 +9,26 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0417 import WebhooksTeam1Type -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookTeamDeletedType(TypedDict): - """team deleted event""" +class WebhookStarDeletedType(TypedDict): + """star deleted event""" action: Literal["deleted"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamDeletedPropRepositoryType] - sender: NotRequired[SimpleUserWebhooksType] - team: WebhooksTeam1Type + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + starred_at: None -class WebhookTeamDeletedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamDeletedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] - name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int - - -class WebhookTeamDeletedPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookTeamDeletedPropRepositoryPropCustomProperties - - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ - - -class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str - name: str - node_id: str - spdx_id: str - url: Union[str, None] - - -class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamDeletedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -__all__ = ( - "WebhookTeamDeletedType", - "WebhookTeamDeletedPropRepositoryType", - "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", - "WebhookTeamDeletedPropRepositoryPropLicenseType", - "WebhookTeamDeletedPropRepositoryPropOwnerType", - "WebhookTeamDeletedPropRepositoryPropPermissionsType", -) +__all__ = ("WebhookStarDeletedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0727.py b/githubkit/versions/v2022_11_28/types/group_0727.py index eb5b7c9e5..4f93bac87 100644 --- a/githubkit/versions/v2022_11_28/types/group_0727.py +++ b/githubkit/versions/v2022_11_28/types/group_0727.py @@ -13,146 +13,65 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0417 import WebhooksTeam1Type -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookTeamEditedType(TypedDict): - """team edited event""" +class WebhookStatusType(TypedDict): + """status event""" - action: Literal["edited"] - changes: WebhookTeamEditedPropChangesType + 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] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamEditedPropRepositoryType] + name: str + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - team: WebhooksTeam1Type - - -class WebhookTeamEditedPropRepositoryType(TypedDict): - """Repository - - A git repository - """ - - allow_auto_merge: NotRequired[bool] - allow_forking: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_squash_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - archive_url: str - archived: bool - assignees_url: str - blobs_url: str - branches_url: str - clone_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - created_at: Union[int, datetime] - custom_properties: NotRequired[ - WebhookTeamEditedPropRepositoryPropCustomPropertiesType - ] - default_branch: str - delete_branch_on_merge: NotRequired[bool] - deployments_url: str - description: Union[str, None] - disabled: NotRequired[bool] - downloads_url: str - events_url: str - fork: bool - forks: int - forks_count: int - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - git_url: str - has_downloads: bool - has_issues: bool - has_pages: bool - has_projects: bool - has_wiki: bool - homepage: Union[str, None] - hooks_url: str - html_url: str - id: int - is_template: NotRequired[bool] - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - language: Union[str, None] - languages_url: str - license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] - master_branch: NotRequired[str] - merges_url: str - milestones_url: str - mirror_url: Union[str, None] + sha: str + state: Literal["pending", "success", "failure", "error"] + target_url: Union[str, None] + updated_at: str + + +class WebhookStatusPropBranchesItemsType(TypedDict): + """WebhookStatusPropBranchesItems""" + + commit: WebhookStatusPropBranchesItemsPropCommitType name: str - node_id: str - notifications_url: str - open_issues: int - open_issues_count: int - organization: NotRequired[str] - owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] - permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] - private: bool - public: NotRequired[bool] - pulls_url: str - pushed_at: Union[int, datetime, None] - releases_url: str - role_name: NotRequired[Union[str, None]] - size: int - ssh_url: str - stargazers: NotRequired[int] - stargazers_count: int - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - svn_url: str - tags_url: str - teams_url: str - topics: List[str] - trees_url: str - updated_at: datetime - url: str - visibility: Literal["public", "private", "internal"] - watchers: int - watchers_count: int + protected: bool -class WebhookTeamEditedPropRepositoryPropCustomPropertiesType(TypedDict): - """WebhookTeamEditedPropRepositoryPropCustomProperties +class WebhookStatusPropBranchesItemsPropCommitType(TypedDict): + """WebhookStatusPropBranchesItemsPropCommit""" - The custom properties that were defined for the repository. The keys are the - custom property names, and the values are the corresponding custom property - values. - """ + sha: Union[str, None] + url: Union[str, None] -class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): - """License""" +class WebhookStatusPropCommitType(TypedDict): + """WebhookStatusPropCommit""" - key: str - name: str + author: Union[WebhookStatusPropCommitPropAuthorType, None] + comments_url: str + commit: WebhookStatusPropCommitPropCommitType + committer: Union[WebhookStatusPropCommitPropCommitterType, None] + html_url: str node_id: str - spdx_id: str - url: Union[str, None] + parents: List[WebhookStatusPropCommitPropParentsItemsType] + sha: str + url: str -class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): +class WebhookStatusPropCommitPropAuthorType(TypedDict): """User""" avatar_url: NotRequired[str] @@ -164,8 +83,8 @@ class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): gists_url: NotRequired[str] gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: int - login: str + id: NotRequired[int] + login: NotRequired[str] name: NotRequired[str] node_id: NotRequired[str] organizations_url: NotRequired[str] @@ -178,88 +97,113 @@ class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): url: NotRequired[str] -class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamEditedPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] - - -class WebhookTeamEditedPropChangesType(TypedDict): - """WebhookTeamEditedPropChanges - - The changes to the team if the action was `edited`. - """ - - description: NotRequired[WebhookTeamEditedPropChangesPropDescriptionType] - name: NotRequired[WebhookTeamEditedPropChangesPropNameType] - privacy: NotRequired[WebhookTeamEditedPropChangesPropPrivacyType] - notification_setting: NotRequired[ - WebhookTeamEditedPropChangesPropNotificationSettingType - ] - repository: NotRequired[WebhookTeamEditedPropChangesPropRepositoryType] - - -class WebhookTeamEditedPropChangesPropDescriptionType(TypedDict): - """WebhookTeamEditedPropChangesPropDescription""" - - from_: str +class 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 WebhookTeamEditedPropChangesPropNameType(TypedDict): - """WebhookTeamEditedPropChangesPropName""" - from_: str +class WebhookStatusPropCommitPropParentsItemsType(TypedDict): + """WebhookStatusPropCommitPropParentsItems""" + html_url: str + sha: str + url: str -class WebhookTeamEditedPropChangesPropPrivacyType(TypedDict): - """WebhookTeamEditedPropChangesPropPrivacy""" - from_: str +class WebhookStatusPropCommitPropCommitType(TypedDict): + """WebhookStatusPropCommitPropCommit""" + author: WebhookStatusPropCommitPropCommitPropAuthorType + comment_count: int + committer: WebhookStatusPropCommitPropCommitPropCommitterType + message: str + tree: WebhookStatusPropCommitPropCommitPropTreeType + url: str + verification: WebhookStatusPropCommitPropCommitPropVerificationType -class WebhookTeamEditedPropChangesPropNotificationSettingType(TypedDict): - """WebhookTeamEditedPropChangesPropNotificationSetting""" - from_: str +class WebhookStatusPropCommitPropCommitPropAuthorType(TypedDict): + """WebhookStatusPropCommitPropCommitPropAuthor""" + date: datetime + email: str + name: str + username: NotRequired[str] -class WebhookTeamEditedPropChangesPropRepositoryType(TypedDict): - """WebhookTeamEditedPropChangesPropRepository""" - permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType +class WebhookStatusPropCommitPropCommitPropCommitterType(TypedDict): + """WebhookStatusPropCommitPropCommitPropCommitter""" + date: datetime + email: str + name: str + username: NotRequired[str] -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" - from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType +class WebhookStatusPropCommitPropCommitPropTreeType(TypedDict): + """WebhookStatusPropCommitPropCommitPropTree""" + sha: str + url: str -class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType(TypedDict): - """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" - admin: NotRequired[bool] - pull: NotRequired[bool] - push: NotRequired[bool] +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 __all__ = ( - "WebhookTeamEditedType", - "WebhookTeamEditedPropRepositoryType", - "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", - "WebhookTeamEditedPropRepositoryPropLicenseType", - "WebhookTeamEditedPropRepositoryPropOwnerType", - "WebhookTeamEditedPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropChangesType", - "WebhookTeamEditedPropChangesPropDescriptionType", - "WebhookTeamEditedPropChangesPropNameType", - "WebhookTeamEditedPropChangesPropPrivacyType", - "WebhookTeamEditedPropChangesPropNotificationSettingType", - "WebhookTeamEditedPropChangesPropRepositoryType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", - "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", + "WebhookStatusType", + "WebhookStatusPropBranchesItemsType", + "WebhookStatusPropBranchesItemsPropCommitType", + "WebhookStatusPropCommitType", + "WebhookStatusPropCommitPropAuthorType", + "WebhookStatusPropCommitPropCommitterType", + "WebhookStatusPropCommitPropParentsItemsType", + "WebhookStatusPropCommitPropCommitType", + "WebhookStatusPropCommitPropCommitPropAuthorType", + "WebhookStatusPropCommitPropCommitPropCommitterType", + "WebhookStatusPropCommitPropCommitPropTreeType", + "WebhookStatusPropCommitPropCommitPropVerificationType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0728.py b/githubkit/versions/v2022_11_28/types/group_0728.py index b0af6ad93..aab36d9f8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0728.py +++ b/githubkit/versions/v2022_11_28/types/group_0728.py @@ -9,191 +9,21 @@ from __future__ import annotations +from typing import Union from datetime import datetime -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0417 import WebhooksTeam1Type -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +class WebhookStatusPropCommitPropCommitPropAuthorAllof0Type(TypedDict): + """Committer -class WebhookTeamRemovedFromRepositoryType(TypedDict): - """team removed_from_repository event""" - - action: Literal["removed_from_repository"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: OrganizationSimpleWebhooksType - repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] - sender: SimpleUserWebhooksType - 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 - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType(TypedDict): - """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. + Metaproperties for Git author/committer information. """ - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType(TypedDict): - """License""" - - key: str + date: NotRequired[datetime] + email: Union[str, None] 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] - - -class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): - """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" - - admin: bool - maintain: NotRequired[bool] - pull: bool - push: bool - triage: NotRequired[bool] + username: NotRequired[str] -__all__ = ( - "WebhookTeamRemovedFromRepositoryType", - "WebhookTeamRemovedFromRepositoryPropRepositoryType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", - "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0729.py b/githubkit/versions/v2022_11_28/types/group_0729.py index 215b49e64..19cbee4e2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0729.py +++ b/githubkit/versions/v2022_11_28/types/group_0729.py @@ -9,25 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +class WebhookStatusPropCommitPropCommitPropAuthorAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropAuthorAllof1""" -class WebhookWatchStartedType(TypedDict): - """watch started event""" + date: str + email: NotRequired[str] + name: NotRequired[str] - action: Literal["started"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - -__all__ = ("WebhookWatchStartedType",) +__all__ = ("WebhookStatusPropCommitPropCommitPropAuthorAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0730.py b/githubkit/versions/v2022_11_28/types/group_0730.py index 953305361..983acb648 100644 --- a/githubkit/versions/v2022_11_28/types/group_0730.py +++ b/githubkit/versions/v2022_11_28/types/group_0730.py @@ -10,33 +10,20 @@ from __future__ import annotations from typing import Union +from datetime import datetime from typing_extensions import TypedDict, NotRequired -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +class WebhookStatusPropCommitPropCommitPropCommitterAllof0Type(TypedDict): + """Committer -class WebhookWorkflowDispatchType(TypedDict): - """workflow_dispatch event""" + Metaproperties for Git author/committer information. + """ - enterprise: NotRequired[EnterpriseWebhooksType] - inputs: Union[WebhookWorkflowDispatchPropInputsType, None] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - ref: str - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow: str + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] -class WebhookWorkflowDispatchPropInputsType(TypedDict): - """WebhookWorkflowDispatchPropInputs""" - - -__all__ = ( - "WebhookWorkflowDispatchType", - "WebhookWorkflowDispatchPropInputsType", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0731.py b/githubkit/versions/v2022_11_28/types/group_0731.py index 7b61a62d8..6d8f6e0a2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0731.py +++ b/githubkit/versions/v2022_11_28/types/group_0731.py @@ -9,79 +9,15 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0171 import DeploymentType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +class WebhookStatusPropCommitPropCommitPropCommitterAllof1Type(TypedDict): + """WebhookStatusPropCommitPropCommitPropCommitterAllof1""" -class WebhookWorkflowJobCompletedType(TypedDict): - """workflow_job completed event""" + date: str + email: NotRequired[str] + name: NotRequired[str] - action: Literal["completed"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType - deployment: NotRequired[DeploymentType] - -class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJob""" - - check_run_url: str - completed_at: str - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ] - 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__ = ( - "WebhookWorkflowJobCompletedType", - "WebhookWorkflowJobCompletedPropWorkflowJobType", - "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", -) +__all__ = ("WebhookStatusPropCommitPropCommitPropCommitterAllof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0732.py b/githubkit/versions/v2022_11_28/types/group_0732.py index 8ea8b11cc..908ffeec4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0732.py +++ b/githubkit/versions/v2022_11_28/types/group_0732.py @@ -9,65 +9,25 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired +from .group_0423 import WebhooksTeam1Type +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. - """ +class WebhookTeamAddType(TypedDict): + """team_add event""" - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[ - None, - Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", - ], - ] - created_at: str - head_sha: str - html_url: str - 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 + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + team: WebhooksTeam1Type -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"] - - -__all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", -) +__all__ = ("WebhookTeamAddType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0733.py b/githubkit/versions/v2022_11_28/types/group_0733.py index b2190c31c..683bd8d57 100644 --- a/githubkit/versions/v2022_11_28/types/group_0733.py +++ b/githubkit/versions/v2022_11_28/types/group_0733.py @@ -9,57 +9,191 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0423 import WebhooksTeam1Type +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" - check_run_url: NotRequired[str] - completed_at: NotRequired[str] - conclusion: Literal[ - "success", - "failure", - "skipped", - "cancelled", - "action_required", - "neutral", - "timed_out", +class WebhookTeamAddedToRepositoryType(TypedDict): + """team added_to_repository event""" + + action: Literal["added_to_repository"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamAddedToRepositoryPropRepositoryType] + sender: NotRequired[SimpleUserWebhooksType] + team: WebhooksTeam1Type + + +class WebhookTeamAddedToRepositoryPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType ] - created_at: NotRequired[str] - head_sha: NotRequired[str] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[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 + + +class WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType(TypedDict): + """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: NotRequired[int] - labels: NotRequired[List[Union[str, None]]] + id: int + login: str name: NotRequired[str] node_id: NotRequired[str] - run_attempt: NotRequired[int] - run_id: NotRequired[int] - run_url: NotRequired[str] - runner_group_id: NotRequired[Union[int, None]] - runner_group_name: NotRequired[Union[str, None]] - runner_id: NotRequired[Union[int, None]] - runner_name: NotRequired[Union[str, None]] - started_at: NotRequired[str] - status: NotRequired[str] - head_branch: NotRequired[Union[str, None]] - workflow_name: NotRequired[Union[str, None]] - steps: NotRequired[ - List[ - Union[ - WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None - ] - ] - ] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] url: NotRequired[str] -class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): - """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" +class WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamAddedToRepositoryPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", - "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", + "WebhookTeamAddedToRepositoryType", + "WebhookTeamAddedToRepositoryPropRepositoryType", + "WebhookTeamAddedToRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamAddedToRepositoryPropRepositoryPropLicenseType", + "WebhookTeamAddedToRepositoryPropRepositoryPropOwnerType", + "WebhookTeamAddedToRepositoryPropRepositoryPropPermissionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0734.py b/githubkit/versions/v2022_11_28/types/group_0734.py index 3e2633fc4..39acfba34 100644 --- a/githubkit/versions/v2022_11_28/types/group_0734.py +++ b/githubkit/versions/v2022_11_28/types/group_0734.py @@ -9,71 +9,189 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0171 import DeploymentType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0423 import WebhooksTeam1Type +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookWorkflowJobInProgressType(TypedDict): - """workflow_job in_progress event""" +class WebhookTeamCreatedType(TypedDict): + """team created event""" - action: Literal["in_progress"] + action: Literal["created"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamCreatedPropRepositoryType] sender: SimpleUserWebhooksType - workflow_job: WebhookWorkflowJobInProgressPropWorkflowJobType - deployment: NotRequired[DeploymentType] - - -class WebhookWorkflowJobInProgressPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJob""" - - check_run_url: str - completed_at: Union[Union[str, None], None] - conclusion: Union[Literal["success", "failure", "cancelled", "neutral"], None] - created_at: str - head_sha: str + team: WebhooksTeam1Type + + +class WebhookTeamCreatedPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamCreatedPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - labels: List[str] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamCreatedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[Union[int, None], None] - runner_group_name: Union[Union[str, None], None] - runner_id: Union[Union[int, None], None] - runner_name: Union[Union[str, None], None] - started_at: str - status: Literal["queued", "in_progress", "completed"] - head_branch: Union[Union[str, None], None] - workflow_name: Union[Union[str, None], None] - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamCreatedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamCreatedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +class WebhookTeamCreatedPropRepositoryPropCustomPropertiesType(TypedDict): + """WebhookTeamCreatedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ -class WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType(TypedDict): - """WebhookWorkflowJobInProgressPropWorkflowJobMergedSteps""" +class WebhookTeamCreatedPropRepositoryPropLicenseType(TypedDict): + """License""" - completed_at: Union[Union[str, None], None] - conclusion: Union[Literal["failure", "skipped", "success", "cancelled"], None] + key: str name: str - number: int - started_at: Union[Union[str, None], None] - status: Literal["in_progress", "completed", "queued", "pending"] + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamCreatedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookTeamCreatedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamCreatedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobInProgressType", - "WebhookWorkflowJobInProgressPropWorkflowJobType", - "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", + "WebhookTeamCreatedType", + "WebhookTeamCreatedPropRepositoryType", + "WebhookTeamCreatedPropRepositoryPropCustomPropertiesType", + "WebhookTeamCreatedPropRepositoryPropLicenseType", + "WebhookTeamCreatedPropRepositoryPropOwnerType", + "WebhookTeamCreatedPropRepositoryPropPermissionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0735.py b/githubkit/versions/v2022_11_28/types/group_0735.py index 342fee780..96fe9f66b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0735.py +++ b/githubkit/versions/v2022_11_28/types/group_0735.py @@ -9,54 +9,189 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired +from .group_0423 import WebhooksTeam1Type +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type(TypedDict): - """Workflow Job - The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, - and `started_at` are the same as those in a [`check_run`](#check_run) object. +class WebhookTeamDeletedType(TypedDict): + """team deleted event""" + + action: Literal["deleted"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamDeletedPropRepositoryType] + sender: NotRequired[SimpleUserWebhooksType] + team: WebhooksTeam1Type + + +class WebhookTeamDeletedPropRepositoryType(TypedDict): + """Repository + + A git repository """ - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] - created_at: str - head_sha: str + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamDeletedPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - labels: List[str] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamDeletedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: str - status: Literal["queued", "in_progress", "completed"] - head_branch: Union[str, None] - workflow_name: Union[str, None] - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType] + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamDeletedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamDeletedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +class WebhookTeamDeletedPropRepositoryPropCustomPropertiesType(TypedDict): + """WebhookTeamDeletedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ -class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType(TypedDict): - """Workflow Step""" +class WebhookTeamDeletedPropRepositoryPropLicenseType(TypedDict): + """License""" - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + key: str name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "queued", "pending"] + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamDeletedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookTeamDeletedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamDeletedPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", + "WebhookTeamDeletedType", + "WebhookTeamDeletedPropRepositoryType", + "WebhookTeamDeletedPropRepositoryPropCustomPropertiesType", + "WebhookTeamDeletedPropRepositoryPropLicenseType", + "WebhookTeamDeletedPropRepositoryPropOwnerType", + "WebhookTeamDeletedPropRepositoryPropPermissionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0736.py b/githubkit/versions/v2022_11_28/types/group_0736.py index 058da261a..487de5d19 100644 --- a/githubkit/versions/v2022_11_28/types/group_0736.py +++ b/githubkit/versions/v2022_11_28/types/group_0736.py @@ -9,50 +9,257 @@ from __future__ import annotations +from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0423 import WebhooksTeam1Type +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -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] +class WebhookTeamEditedType(TypedDict): + """team edited event""" + + action: Literal["edited"] + changes: WebhookTeamEditedPropChangesType + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamEditedPropRepositoryType] + sender: SimpleUserWebhooksType + team: WebhooksTeam1Type + + +class WebhookTeamEditedPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamEditedPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str + html_url: str + id: int + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamEditedPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] + name: str + node_id: str + notifications_url: str + open_issues: int + open_issues_count: int + organization: NotRequired[str] + owner: Union[WebhookTeamEditedPropRepositoryPropOwnerType, None] + permissions: NotRequired[WebhookTeamEditedPropRepositoryPropPermissionsType] + private: bool + public: NotRequired[bool] + pulls_url: str + pushed_at: Union[int, datetime, None] + releases_url: str + role_name: NotRequired[Union[str, None]] + size: int + ssh_url: str + stargazers: NotRequired[int] + stargazers_count: int + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + svn_url: str + tags_url: str + teams_url: str + topics: List[str] + trees_url: str + updated_at: datetime + url: str + visibility: Literal["public", "private", "internal"] + watchers: int + watchers_count: int + + +class WebhookTeamEditedPropRepositoryPropCustomPropertiesType(TypedDict): + """WebhookTeamEditedPropRepositoryPropCustomProperties + + The custom properties that were defined for the repository. The keys are the + custom property names, and the values are the corresponding custom property + values. + """ + + +class WebhookTeamEditedPropRepositoryPropLicenseType(TypedDict): + """License""" + + key: str + name: str + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamEditedPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] html_url: NotRequired[str] - id: NotRequired[int] - labels: NotRequired[List[str]] + id: int + login: str name: NotRequired[str] node_id: NotRequired[str] - run_attempt: NotRequired[int] - run_id: NotRequired[int] - run_url: NotRequired[str] - runner_group_id: NotRequired[Union[int, None]] - runner_group_name: NotRequired[Union[str, None]] - runner_id: NotRequired[Union[int, None]] - runner_name: NotRequired[Union[str, None]] - started_at: NotRequired[str] - status: Literal["in_progress", "completed", "queued"] - head_branch: NotRequired[Union[str, None]] - workflow_name: NotRequired[Union[str, None]] - steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_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 WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType(TypedDict): - """Workflow Step""" +class WebhookTeamEditedPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamEditedPropRepositoryPropPermissions""" - completed_at: Union[str, None] - conclusion: Union[str, None] - name: str - number: int - started_at: Union[str, None] - status: Literal["in_progress", "completed", "pending", "queued"] + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] + + +class WebhookTeamEditedPropChangesType(TypedDict): + """WebhookTeamEditedPropChanges + + The changes to the team if the action was `edited`. + """ + + description: NotRequired[WebhookTeamEditedPropChangesPropDescriptionType] + name: NotRequired[WebhookTeamEditedPropChangesPropNameType] + privacy: NotRequired[WebhookTeamEditedPropChangesPropPrivacyType] + notification_setting: NotRequired[ + WebhookTeamEditedPropChangesPropNotificationSettingType + ] + repository: NotRequired[WebhookTeamEditedPropChangesPropRepositoryType] + + +class WebhookTeamEditedPropChangesPropDescriptionType(TypedDict): + """WebhookTeamEditedPropChangesPropDescription""" + + from_: str + + +class WebhookTeamEditedPropChangesPropNameType(TypedDict): + """WebhookTeamEditedPropChangesPropName""" + + from_: str + + +class WebhookTeamEditedPropChangesPropPrivacyType(TypedDict): + """WebhookTeamEditedPropChangesPropPrivacy""" + + from_: str + + +class WebhookTeamEditedPropChangesPropNotificationSettingType(TypedDict): + """WebhookTeamEditedPropChangesPropNotificationSetting""" + + from_: str + + +class WebhookTeamEditedPropChangesPropRepositoryType(TypedDict): + """WebhookTeamEditedPropChangesPropRepository""" + + permissions: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissions""" + + from_: WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType + + +class WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType(TypedDict): + """WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFrom""" + + admin: NotRequired[bool] + pull: NotRequired[bool] + push: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", - "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", + "WebhookTeamEditedType", + "WebhookTeamEditedPropRepositoryType", + "WebhookTeamEditedPropRepositoryPropCustomPropertiesType", + "WebhookTeamEditedPropRepositoryPropLicenseType", + "WebhookTeamEditedPropRepositoryPropOwnerType", + "WebhookTeamEditedPropRepositoryPropPermissionsType", + "WebhookTeamEditedPropChangesType", + "WebhookTeamEditedPropChangesPropDescriptionType", + "WebhookTeamEditedPropChangesPropNameType", + "WebhookTeamEditedPropChangesPropPrivacyType", + "WebhookTeamEditedPropChangesPropNotificationSettingType", + "WebhookTeamEditedPropChangesPropRepositoryType", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsType", + "WebhookTeamEditedPropChangesPropRepositoryPropPermissionsPropFromType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0737.py b/githubkit/versions/v2022_11_28/types/group_0737.py index 484d4acf3..92f74cfaf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0737.py +++ b/githubkit/versions/v2022_11_28/types/group_0737.py @@ -13,68 +13,187 @@ from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0171 import DeploymentType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0423 import WebhooksTeam1Type +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookWorkflowJobQueuedType(TypedDict): - """workflow_job queued event""" +class WebhookTeamRemovedFromRepositoryType(TypedDict): + """team removed_from_repository event""" - action: Literal["queued"] + action: Literal["removed_from_repository"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType + organization: OrganizationSimpleWebhooksType + repository: NotRequired[WebhookTeamRemovedFromRepositoryPropRepositoryType] sender: SimpleUserWebhooksType - 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 + team: WebhooksTeam1Type + + +class WebhookTeamRemovedFromRepositoryPropRepositoryType(TypedDict): + """Repository + + A git repository + """ + + allow_auto_merge: NotRequired[bool] + allow_forking: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_squash_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + archive_url: str + archived: bool + assignees_url: str + blobs_url: str + branches_url: str + clone_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + created_at: Union[int, datetime] + custom_properties: NotRequired[ + WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType + ] + default_branch: str + delete_branch_on_merge: NotRequired[bool] + deployments_url: str + description: Union[str, None] + disabled: NotRequired[bool] + downloads_url: str + events_url: str + fork: bool + forks: int + forks_count: int + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + git_url: str + has_downloads: bool + has_issues: bool + has_pages: bool + has_projects: bool + has_wiki: bool + homepage: Union[str, None] + hooks_url: str html_url: str id: int - labels: List[str] + is_template: NotRequired[bool] + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + language: Union[str, None] + languages_url: str + license_: Union[WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType, None] + master_branch: NotRequired[str] + merges_url: str + milestones_url: str + mirror_url: Union[str, None] name: str node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[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] + 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 + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType(TypedDict): + """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 WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): - """Workflow Step""" +class WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType(TypedDict): + """License""" - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + key: str name: str - number: int - started_at: Union[str, None] - status: Literal["completed", "in_progress", "queued", "pending"] + node_id: str + spdx_id: str + url: Union[str, None] + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType(TypedDict): + """WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissions""" + + admin: bool + maintain: NotRequired[bool] + pull: bool + push: bool + triage: NotRequired[bool] __all__ = ( - "WebhookWorkflowJobQueuedType", - "WebhookWorkflowJobQueuedPropWorkflowJobType", - "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", + "WebhookTeamRemovedFromRepositoryType", + "WebhookTeamRemovedFromRepositoryPropRepositoryType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropCustomPropertiesType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropLicenseType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropOwnerType", + "WebhookTeamRemovedFromRepositoryPropRepositoryPropPermissionsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0738.py b/githubkit/versions/v2022_11_28/types/group_0738.py index ff3848f5b..0c14f9563 100644 --- a/githubkit/versions/v2022_11_28/types/group_0738.py +++ b/githubkit/versions/v2022_11_28/types/group_0738.py @@ -9,72 +9,25 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0171 import DeploymentType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookWorkflowJobWaitingType(TypedDict): - """workflow_job waiting event""" +class WebhookWatchStartedType(TypedDict): + """watch started event""" - action: Literal["waiting"] + action: Literal["started"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType - deployment: NotRequired[DeploymentType] -class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): - """WebhookWorkflowJobWaitingPropWorkflowJob""" - - check_run_url: str - completed_at: Union[str, None] - conclusion: Union[str, None] - created_at: str - head_sha: str - html_url: str - id: int - labels: List[str] - name: str - node_id: str - run_attempt: int - run_id: int - run_url: str - runner_group_id: Union[int, None] - runner_group_name: Union[str, None] - runner_id: Union[int, None] - runner_name: Union[str, None] - started_at: datetime - head_branch: Union[str, None] - workflow_name: Union[str, None] - status: Literal["queued", "in_progress", "completed", "waiting"] - steps: List[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType] - url: str - - -class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): - """Workflow Step""" - - completed_at: Union[str, None] - conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] - name: str - number: int - started_at: Union[str, None] - status: Literal["completed", "in_progress", "queued", "pending", "waiting"] - - -__all__ = ( - "WebhookWorkflowJobWaitingType", - "WebhookWorkflowJobWaitingPropWorkflowJobType", - "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", -) +__all__ = ("WebhookWatchStartedType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0739.py b/githubkit/versions/v2022_11_28/types/group_0739.py index b91c890d8..ea585baf2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0739.py +++ b/githubkit/versions/v2022_11_28/types/group_0739.py @@ -9,421 +9,34 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -from .group_0376 import WebhooksWorkflowType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookWorkflowRunCompletedType(TypedDict): - """workflow_run completed event""" +class WebhookWorkflowDispatchType(TypedDict): + """workflow_dispatch event""" - action: Literal["completed"] enterprise: NotRequired[EnterpriseWebhooksType] + inputs: Union[WebhookWorkflowDispatchPropInputsType, None] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] + ref: str repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType - - -class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "skipped", - "stale", - "success", - "timed_out", - ], - ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType - head_sha: str - html_url: str - id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: List[ - Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, None] - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] - triggering_actor: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - display_title: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType - committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: float - number: float - 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 - + workflow: str -class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - id: int - name: str - url: str +class WebhookWorkflowDispatchPropInputsType(TypedDict): + """WebhookWorkflowDispatchPropInputs""" __all__ = ( - "WebhookWorkflowRunCompletedType", - "WebhookWorkflowRunCompletedPropWorkflowRunType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookWorkflowDispatchType", + "WebhookWorkflowDispatchPropInputsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0740.py b/githubkit/versions/v2022_11_28/types/group_0740.py index bc9de99c5..e65511906 100644 --- a/githubkit/versions/v2022_11_28/types/group_0740.py +++ b/githubkit/versions/v2022_11_28/types/group_0740.py @@ -9,424 +9,79 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0376 import WebhooksWorkflowType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +from .group_0176 import DeploymentType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class WebhookWorkflowRunInProgressType(TypedDict): - """workflow_run in_progress event""" +class WebhookWorkflowJobCompletedType(TypedDict): + """workflow_job completed event""" - action: Literal["in_progress"] + action: Literal["completed"] enterprise: NotRequired[EnterpriseWebhooksType] installation: NotRequired[SimpleInstallationType] organization: NotRequired[OrganizationSimpleWebhooksType] repository: RepositoryWebhooksType sender: SimpleUserWebhooksType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType - - -class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): - """Workflow Run""" - - actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str - conclusion: Union[ - None, - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "skipped", - "stale", - "success", - "timed_out", - ], + workflow_job: WebhookWorkflowJobCompletedPropWorkflowJobType + deployment: NotRequired[DeploymentType] + + +class WebhookWorkflowJobCompletedPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJob""" + + check_run_url: str + completed_at: str + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType + created_at: str head_sha: str html_url: str id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: List[ - Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, None - ] - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal["requested", "in_progress", "completed", "queued", "pending"] - triggering_actor: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" - - path: str - ref: NotRequired[str] - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType - committer: ( - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType - ) - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: Union[str, None] - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str + labels: List[str] name: str node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType - id: float - number: float - url: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: 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 WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" - - ref: str - repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str +class WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobMergedSteps""" - -class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] name: str - url: str + number: int + started_at: Union[str, None] + status: Literal["in_progress", "completed", "queued"] __all__ = ( - "WebhookWorkflowRunInProgressType", - "WebhookWorkflowRunInProgressPropWorkflowRunType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookWorkflowJobCompletedType", + "WebhookWorkflowJobCompletedPropWorkflowJobType", + "WebhookWorkflowJobCompletedPropWorkflowJobMergedStepsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0741.py b/githubkit/versions/v2022_11_28/types/group_0741.py index 8928ea4c6..8ea8b11cc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0741.py +++ b/githubkit/versions/v2022_11_28/types/group_0741.py @@ -9,422 +9,65 @@ from __future__ import annotations -from datetime import datetime from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0376 import WebhooksWorkflowType -from .group_0367 import EnterpriseWebhooksType -from .group_0368 import SimpleInstallationType -from .group_0370 import RepositoryWebhooksType -from .group_0371 import SimpleUserWebhooksType -from .group_0369 import OrganizationSimpleWebhooksType +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job -class WebhookWorkflowRunRequestedType(TypedDict): - """workflow_run requested event""" - - action: Literal["requested"] - enterprise: NotRequired[EnterpriseWebhooksType] - installation: NotRequired[SimpleInstallationType] - organization: NotRequired[OrganizationSimpleWebhooksType] - repository: RepositoryWebhooksType - sender: SimpleUserWebhooksType - workflow: Union[WebhooksWorkflowType, None] - workflow_run: WebhookWorkflowRunRequestedPropWorkflowRunType - - -class WebhookWorkflowRunRequestedPropWorkflowRunType(TypedDict): - """Workflow Run""" + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ - actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, None] - artifacts_url: str - cancel_url: str - check_suite_id: int - check_suite_node_id: str - check_suite_url: str + check_run_url: str + completed_at: Union[str, None] conclusion: Union[ None, Literal[ "success", "failure", - "neutral", + "skipped", "cancelled", - "timed_out", "action_required", - "stale", - "skipped", - "startup_failure", + "neutral", + "timed_out", ], ] - created_at: datetime - event: str - head_branch: Union[str, None] - head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType - head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType + created_at: str head_sha: str html_url: str id: int - jobs_url: str - logs_url: str - name: Union[str, None] - node_id: str - path: str - previous_attempt_url: Union[str, None] - pull_requests: List[ - WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType - ] - referenced_workflows: NotRequired[ - Union[ - List[ - WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType - ], - None, - ] - ] - repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType - rerun_url: str - run_attempt: int - run_number: int - run_started_at: datetime - status: Literal[ - "requested", "in_progress", "completed", "queued", "pending", "waiting" - ] - triggering_actor: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, None - ] - updated_at: datetime - url: str - workflow_id: int - workflow_url: str - display_title: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropActorType(TypedDict): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType(TypedDict): - """SimpleCommit""" - - author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType - committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType - id: str - message: str - timestamp: str - tree_id: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType( - TypedDict -): - """Committer - - Metaproperties for Git author/committer information. - """ - - date: NotRequired[datetime] - email: Union[str, None] - name: str - username: NotRequired[str] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): - """Repository Lite""" - - archive_url: str - assignees_url: str - blobs_url: str - branches_url: str - collaborators_url: str - comments_url: str - commits_url: str - compare_url: str - contents_url: str - contributors_url: str - deployments_url: str - description: Union[str, None] - downloads_url: str - events_url: str - fork: bool - forks_url: str - full_name: str - git_commits_url: str - git_refs_url: str - git_tags_url: str - hooks_url: str - html_url: str - id: int - issue_comment_url: str - issue_events_url: str - issues_url: str - keys_url: str - labels_url: str - languages_url: str - merges_url: str - milestones_url: str - name: str - node_id: str - notifications_url: str - owner: Union[ - WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, None - ] - private: bool - pulls_url: str - releases_url: str - stargazers_url: str - statuses_url: str - subscribers_url: str - subscription_url: str - tags_url: str - teams_url: str - trees_url: str - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( - TypedDict -): - """User""" - - avatar_url: NotRequired[str] - deleted: NotRequired[bool] - email: NotRequired[Union[str, None]] - events_url: NotRequired[str] - followers_url: NotRequired[str] - following_url: NotRequired[str] - gists_url: NotRequired[str] - gravatar_id: NotRequired[str] - html_url: NotRequired[str] - id: int - login: str - name: NotRequired[str] - node_id: NotRequired[str] - organizations_url: NotRequired[str] - received_events_url: NotRequired[str] - repos_url: NotRequired[str] - site_admin: NotRequired[bool] - starred_url: NotRequired[str] - subscriptions_url: NotRequired[str] - type: NotRequired[Literal["Bot", "User", "Organization"]] - url: NotRequired[str] - - -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 + labels: List[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] - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedDict): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" - - base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType - head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType - id: float - number: float - url: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" - - ref: str - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( - TypedDict -): - """Repo Ref""" - - id: int - name: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: str + status: Literal["queued", "in_progress", "completed", "waiting"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: List[WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType] url: str -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( - TypedDict -): - """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" +class WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType(TypedDict): + """Workflow Step""" - ref: str - repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType - sha: str - - -class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( - TypedDict -): - """Repo Ref""" - - id: int + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] name: str - url: str + number: int + started_at: Union[str, None] + status: Literal["in_progress", "completed", "queued"] __all__ = ( - "WebhookWorkflowRunRequestedType", - "WebhookWorkflowRunRequestedPropWorkflowRunType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", - "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0Type", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof0PropStepsItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0742.py b/githubkit/versions/v2022_11_28/types/group_0742.py index 17c334d30..b2190c31c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0742.py +++ b/githubkit/versions/v2022_11_28/types/group_0742.py @@ -9,34 +9,57 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Union +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0001 import SimpleUserType -from .group_0005 import IntegrationPropPermissionsType - - -class AppManifestsCodeConversionsPostResponse201Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201""" - - id: int - slug: NotRequired[str] - node_id: str - owner: Union[None, SimpleUserType] - name: str - description: Union[str, None] - external_url: str - html_url: str - created_at: datetime - updated_at: datetime - permissions: IntegrationPropPermissionsType - events: List[str] - installations_count: NotRequired[int] - client_id: str - client_secret: str - webhook_secret: Union[Union[str, None], None] - pem: str - - -__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) + +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1""" + + check_run_url: NotRequired[str] + completed_at: NotRequired[str] + conclusion: Literal[ + "success", + "failure", + "skipped", + "cancelled", + "action_required", + "neutral", + "timed_out", + ] + created_at: NotRequired[str] + head_sha: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: NotRequired[List[Union[str, None]]] + name: NotRequired[str] + node_id: NotRequired[str] + run_attempt: NotRequired[int] + run_id: NotRequired[int] + run_url: NotRequired[str] + runner_group_id: NotRequired[Union[int, None]] + runner_group_name: NotRequired[Union[str, None]] + runner_id: NotRequired[Union[int, None]] + runner_name: NotRequired[Union[str, None]] + started_at: NotRequired[str] + status: NotRequired[str] + head_branch: NotRequired[Union[str, None]] + workflow_name: NotRequired[Union[str, None]] + steps: NotRequired[ + List[ + Union[ + WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType, None + ] + ] + ] + url: NotRequired[str] + + +class WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType(TypedDict): + """WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItems""" + + +__all__ = ( + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1Type", + "WebhookWorkflowJobCompletedPropWorkflowJobAllof1PropStepsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0743.py b/githubkit/versions/v2022_11_28/types/group_0743.py index 528a915b7..df3a9ea4f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0743.py +++ b/githubkit/versions/v2022_11_28/types/group_0743.py @@ -9,17 +9,71 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0176 import DeploymentType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): - """AppManifestsCodeConversionsPostResponse201Allof1""" - client_id: str - client_secret: str - webhook_secret: Union[str, None] - pem: str +class WebhookWorkflowJobInProgressType(TypedDict): + """workflow_job in_progress event""" + action: Literal["in_progress"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow_job: WebhookWorkflowJobInProgressPropWorkflowJobType + deployment: NotRequired[DeploymentType] -__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) + +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__ = ( + "WebhookWorkflowJobInProgressType", + "WebhookWorkflowJobInProgressPropWorkflowJobType", + "WebhookWorkflowJobInProgressPropWorkflowJobMergedStepsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0744.py b/githubkit/versions/v2022_11_28/types/group_0744.py index 8c1c8c418..342fee780 100644 --- a/githubkit/versions/v2022_11_28/types/group_0744.py +++ b/githubkit/versions/v2022_11_28/types/group_0744.py @@ -9,17 +9,54 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired - - -class AppHookConfigPatchBodyType(TypedDict): - """AppHookConfigPatchBody""" - - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - - -__all__ = ("AppHookConfigPatchBodyType",) +from typing import List, Union, Literal +from typing_extensions import TypedDict + + +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type(TypedDict): + """Workflow Job + + The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, + and `started_at` are the same as those in a [`check_run`](#check_run) object. + """ + + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[None, Literal["success", "failure", "cancelled", "neutral"]] + created_at: str + head_sha: str + html_url: str + id: int + labels: List[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: str + status: Literal["queued", "in_progress", "completed"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType] + url: str + + +class WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["in_progress", "completed", "queued", "pending"] + + +__all__ = ( + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0Type", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof0PropStepsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0745.py b/githubkit/versions/v2022_11_28/types/group_0745.py index 24eb9bac1..058da261a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0745.py +++ b/githubkit/versions/v2022_11_28/types/group_0745.py @@ -9,11 +9,50 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): - """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" - - -__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired + + +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type(TypedDict): + """WebhookWorkflowJobInProgressPropWorkflowJobAllof1""" + + check_run_url: NotRequired[str] + completed_at: NotRequired[Union[str, None]] + conclusion: NotRequired[Union[str, None]] + created_at: NotRequired[str] + head_sha: NotRequired[str] + html_url: NotRequired[str] + id: NotRequired[int] + labels: NotRequired[List[str]] + name: NotRequired[str] + node_id: NotRequired[str] + run_attempt: NotRequired[int] + run_id: NotRequired[int] + run_url: NotRequired[str] + runner_group_id: NotRequired[Union[int, None]] + runner_group_name: NotRequired[Union[str, None]] + runner_id: NotRequired[Union[int, None]] + runner_name: NotRequired[Union[str, None]] + started_at: NotRequired[str] + status: Literal["in_progress", "completed", "queued"] + head_branch: NotRequired[Union[str, None]] + workflow_name: NotRequired[Union[str, None]] + steps: List[WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType] + url: NotRequired[str] + + +class WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[str, None] + name: str + number: int + started_at: Union[str, None] + status: Literal["in_progress", "completed", "pending", "queued"] + + +__all__ = ( + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1Type", + "WebhookWorkflowJobInProgressPropWorkflowJobAllof1PropStepsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0746.py b/githubkit/versions/v2022_11_28/types/group_0746.py index 02bda8c69..55c867e4b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0746.py +++ b/githubkit/versions/v2022_11_28/types/group_0746.py @@ -9,18 +9,72 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -from .group_0014 import AppPermissionsType +from .group_0176 import DeploymentType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): - """AppInstallationsInstallationIdAccessTokensPostBody""" +class WebhookWorkflowJobQueuedType(TypedDict): + """workflow_job queued event""" - repositories: NotRequired[List[str]] - repository_ids: NotRequired[List[int]] - permissions: NotRequired[AppPermissionsType] + action: Literal["queued"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow_job: WebhookWorkflowJobQueuedPropWorkflowJobType + deployment: NotRequired[DeploymentType] -__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) +class WebhookWorkflowJobQueuedPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobQueuedPropWorkflowJob""" + + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[str, None] + created_at: str + head_sha: str + html_url: str + id: int + labels: List[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: datetime + status: Literal["queued", "in_progress", "completed", "waiting"] + head_branch: Union[str, None] + workflow_name: Union[str, None] + steps: List[WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType] + url: str + + +class WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["completed", "in_progress", "queued", "pending"] + + +__all__ = ( + "WebhookWorkflowJobQueuedType", + "WebhookWorkflowJobQueuedPropWorkflowJobType", + "WebhookWorkflowJobQueuedPropWorkflowJobPropStepsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0747.py b/githubkit/versions/v2022_11_28/types/group_0747.py index fad60868e..815f10a2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0747.py +++ b/githubkit/versions/v2022_11_28/types/group_0747.py @@ -9,13 +9,72 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0176 import DeploymentType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class ApplicationsClientIdGrantDeleteBodyType(TypedDict): - """ApplicationsClientIdGrantDeleteBody""" - access_token: str +class WebhookWorkflowJobWaitingType(TypedDict): + """workflow_job waiting event""" + action: Literal["waiting"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow_job: WebhookWorkflowJobWaitingPropWorkflowJobType + deployment: NotRequired[DeploymentType] -__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) + +class WebhookWorkflowJobWaitingPropWorkflowJobType(TypedDict): + """WebhookWorkflowJobWaitingPropWorkflowJob""" + + check_run_url: str + completed_at: Union[str, None] + conclusion: Union[str, None] + created_at: str + head_sha: str + html_url: str + id: int + labels: List[str] + name: str + node_id: str + run_attempt: int + run_id: int + run_url: str + runner_group_id: Union[int, None] + runner_group_name: Union[str, None] + runner_id: Union[int, None] + runner_name: Union[str, None] + started_at: datetime + head_branch: Union[str, None] + workflow_name: Union[str, None] + status: Literal["queued", "in_progress", "completed", "waiting"] + steps: List[WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType] + url: str + + +class WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType(TypedDict): + """Workflow Step""" + + completed_at: Union[str, None] + conclusion: Union[None, Literal["failure", "skipped", "success", "cancelled"]] + name: str + number: int + started_at: Union[str, None] + status: Literal["completed", "in_progress", "queued", "pending", "waiting"] + + +__all__ = ( + "WebhookWorkflowJobWaitingType", + "WebhookWorkflowJobWaitingPropWorkflowJobType", + "WebhookWorkflowJobWaitingPropWorkflowJobPropStepsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0748.py b/githubkit/versions/v2022_11_28/types/group_0748.py index c0bad1ae1..31c73978b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0748.py +++ b/githubkit/versions/v2022_11_28/types/group_0748.py @@ -9,13 +9,421 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0381 import WebhooksWorkflowType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class ApplicationsClientIdTokenPostBodyType(TypedDict): - """ApplicationsClientIdTokenPostBody""" - access_token: str +class WebhookWorkflowRunCompletedType(TypedDict): + """workflow_run completed event""" + action: Literal["completed"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunCompletedPropWorkflowRunType -__all__ = ("ApplicationsClientIdTokenPostBodyType",) + +class WebhookWorkflowRunCompletedPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunCompletedPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: List[ + Union[WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType, None] + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] + triggering_actor: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + display_title: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType + committer: WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +class WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: float + number: float + 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__ = ( + "WebhookWorkflowRunCompletedType", + "WebhookWorkflowRunCompletedPropWorkflowRunType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunCompletedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0749.py b/githubkit/versions/v2022_11_28/types/group_0749.py index 8a68cb8df..1e2b43ef1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0749.py +++ b/githubkit/versions/v2022_11_28/types/group_0749.py @@ -9,13 +9,424 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0381 import WebhooksWorkflowType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class ApplicationsClientIdTokenDeleteBodyType(TypedDict): - """ApplicationsClientIdTokenDeleteBody""" - access_token: str +class WebhookWorkflowRunInProgressType(TypedDict): + """workflow_run in_progress event""" + action: Literal["in_progress"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunInProgressPropWorkflowRunType -__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) + +class WebhookWorkflowRunInProgressPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunInProgressPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "skipped", + "stale", + "success", + "timed_out", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: List[ + Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType, None + ] + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal["requested", "in_progress", "completed", "queued", "pending"] + triggering_actor: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItems""" + + path: str + ref: NotRequired[str] + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType + committer: ( + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType + ) + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: Union[str, None] + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType + id: float + number: float + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookWorkflowRunInProgressType", + "WebhookWorkflowRunInProgressPropWorkflowRunType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunInProgressPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0750.py b/githubkit/versions/v2022_11_28/types/group_0750.py index 8e0b6ce68..4bbbcacb9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0750.py +++ b/githubkit/versions/v2022_11_28/types/group_0750.py @@ -9,13 +9,422 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0381 import WebhooksWorkflowType +from .group_0372 import EnterpriseWebhooksType +from .group_0373 import SimpleInstallationType +from .group_0375 import RepositoryWebhooksType +from .group_0376 import SimpleUserWebhooksType +from .group_0374 import OrganizationSimpleWebhooksType -class ApplicationsClientIdTokenPatchBodyType(TypedDict): - """ApplicationsClientIdTokenPatchBody""" - access_token: str +class WebhookWorkflowRunRequestedType(TypedDict): + """workflow_run requested event""" + action: Literal["requested"] + enterprise: NotRequired[EnterpriseWebhooksType] + installation: NotRequired[SimpleInstallationType] + organization: NotRequired[OrganizationSimpleWebhooksType] + repository: RepositoryWebhooksType + sender: SimpleUserWebhooksType + workflow: Union[WebhooksWorkflowType, None] + workflow_run: WebhookWorkflowRunRequestedPropWorkflowRunType -__all__ = ("ApplicationsClientIdTokenPatchBodyType",) + +class WebhookWorkflowRunRequestedPropWorkflowRunType(TypedDict): + """Workflow Run""" + + actor: Union[WebhookWorkflowRunRequestedPropWorkflowRunPropActorType, None] + artifacts_url: str + cancel_url: str + check_suite_id: int + check_suite_node_id: str + check_suite_url: str + conclusion: Union[ + None, + Literal[ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required", + "stale", + "skipped", + "startup_failure", + ], + ] + created_at: datetime + event: str + head_branch: Union[str, None] + head_commit: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType + head_repository: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType + head_sha: str + html_url: str + id: int + jobs_url: str + logs_url: str + name: Union[str, None] + node_id: str + path: str + previous_attempt_url: Union[str, None] + pull_requests: List[ + WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType + ] + referenced_workflows: NotRequired[ + Union[ + List[ + WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType + ], + None, + ] + ] + repository: WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType + rerun_url: str + run_attempt: int + run_number: int + run_started_at: datetime + status: Literal[ + "requested", "in_progress", "completed", "queued", "pending", "waiting" + ] + triggering_actor: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType, None + ] + updated_at: datetime + url: str + workflow_id: int + workflow_url: str + display_title: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropActorType(TypedDict): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType(TypedDict): + """SimpleCommit""" + + author: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType + committer: WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType + id: str + message: str + timestamp: str + tree_id: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType(TypedDict): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType( + TypedDict +): + """Committer + + Metaproperties for Git author/committer information. + """ + + date: NotRequired[datetime] + email: Union[str, None] + name: str + username: NotRequired[str] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType(TypedDict): + """Repository Lite""" + + archive_url: str + assignees_url: str + blobs_url: str + branches_url: str + collaborators_url: str + comments_url: str + commits_url: str + compare_url: str + contents_url: str + contributors_url: str + deployments_url: str + description: Union[str, None] + downloads_url: str + events_url: str + fork: bool + forks_url: str + full_name: str + git_commits_url: str + git_refs_url: str + git_tags_url: str + hooks_url: str + html_url: str + id: int + issue_comment_url: str + issue_events_url: str + issues_url: str + keys_url: str + labels_url: str + languages_url: str + merges_url: str + milestones_url: str + name: str + node_id: str + notifications_url: str + owner: Union[ + WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType, None + ] + private: bool + pulls_url: str + releases_url: str + stargazers_url: str + statuses_url: str + subscribers_url: str + subscription_url: str + tags_url: str + teams_url: str + trees_url: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType( + TypedDict +): + """User""" + + avatar_url: NotRequired[str] + deleted: NotRequired[bool] + email: NotRequired[Union[str, None]] + events_url: NotRequired[str] + followers_url: NotRequired[str] + following_url: NotRequired[str] + gists_url: NotRequired[str] + gravatar_id: NotRequired[str] + html_url: NotRequired[str] + id: int + login: str + name: NotRequired[str] + node_id: NotRequired[str] + organizations_url: NotRequired[str] + received_events_url: NotRequired[str] + repos_url: NotRequired[str] + site_admin: NotRequired[bool] + starred_url: NotRequired[str] + subscriptions_url: NotRequired[str] + type: NotRequired[Literal["Bot", "User", "Organization"]] + url: NotRequired[str] + + +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] + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType(TypedDict): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItems""" + + base: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType + head: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType + id: float + number: float + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBase""" + + ref: str + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType( + TypedDict +): + """WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHead""" + + ref: str + repo: WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType + sha: str + + +class WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType( + TypedDict +): + """Repo Ref""" + + id: int + name: str + url: str + + +__all__ = ( + "WebhookWorkflowRunRequestedType", + "WebhookWorkflowRunRequestedPropWorkflowRunType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropActorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropReferencedWorkflowsItemsType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropTriggeringActorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropAuthorType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadCommitPropCommitterType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropHeadRepositoryPropOwnerType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropRepositoryPropOwnerType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBaseType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropBasePropRepoType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadType", + "WebhookWorkflowRunRequestedPropWorkflowRunPropPullRequestsItemsPropHeadPropRepoType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0751.py b/githubkit/versions/v2022_11_28/types/group_0751.py index 9af931f5d..17c334d30 100644 --- a/githubkit/versions/v2022_11_28/types/group_0751.py +++ b/githubkit/versions/v2022_11_28/types/group_0751.py @@ -9,21 +9,34 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0014 import AppPermissionsType - - -class ApplicationsClientIdTokenScopedPostBodyType(TypedDict): - """ApplicationsClientIdTokenScopedPostBody""" - - access_token: str - target: NotRequired[str] - target_id: NotRequired[int] - repositories: NotRequired[List[str]] - repository_ids: NotRequired[List[int]] - permissions: NotRequired[AppPermissionsType] - - -__all__ = ("ApplicationsClientIdTokenScopedPostBodyType",) +from .group_0001 import SimpleUserType +from .group_0005 import IntegrationPropPermissionsType + + +class AppManifestsCodeConversionsPostResponse201Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201""" + + id: int + slug: NotRequired[str] + node_id: str + owner: Union[None, SimpleUserType] + name: str + description: Union[str, None] + external_url: str + html_url: str + created_at: datetime + updated_at: datetime + permissions: IntegrationPropPermissionsType + events: List[str] + installations_count: NotRequired[int] + client_id: str + client_secret: str + webhook_secret: Union[Union[str, None], None] + pem: str + + +__all__ = ("AppManifestsCodeConversionsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0752.py b/githubkit/versions/v2022_11_28/types/group_0752.py index 54e9d814e..528a915b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0752.py +++ b/githubkit/versions/v2022_11_28/types/group_0752.py @@ -9,11 +9,17 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict -class EmojisGetResponse200Type(TypedDict): - """EmojisGetResponse200""" +class AppManifestsCodeConversionsPostResponse201Allof1Type(TypedDict): + """AppManifestsCodeConversionsPostResponse201Allof1""" + client_id: str + client_secret: str + webhook_secret: Union[str, None] + pem: str -__all__ = ("EmojisGetResponse200Type",) + +__all__ = ("AppManifestsCodeConversionsPostResponse201Allof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0753.py b/githubkit/versions/v2022_11_28/types/group_0753.py index 2f451b10b..8c1c8c418 100644 --- a/githubkit/versions/v2022_11_28/types/group_0753.py +++ b/githubkit/versions/v2022_11_28/types/group_0753.py @@ -9,15 +9,17 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict, NotRequired -class EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type(TypedDict): - """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" +class AppHookConfigPatchBodyType(TypedDict): + """AppHookConfigPatchBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",) +__all__ = ("AppHookConfigPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0754.py b/githubkit/versions/v2022_11_28/types/group_0754.py index 8f9809a85..24eb9bac1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0754.py +++ b/githubkit/versions/v2022_11_28/types/group_0754.py @@ -9,29 +9,11 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class GistsPostBodyType(TypedDict): - """GistsPostBody""" +class AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type(TypedDict): + """AppHookDeliveriesDeliveryIdAttemptsPostResponse202""" - description: NotRequired[str] - files: GistsPostBodyPropFilesType - public: NotRequired[Union[bool, Literal["true", "false"]]] - -class GistsPostBodyPropFilesType(TypedDict): - """GistsPostBodyPropFiles - - Names and content for the files that make up the gist - - Examples: - {'hello.rb': {'content': 'puts "Hello, World!"'}} - """ - - -__all__ = ( - "GistsPostBodyType", - "GistsPostBodyPropFilesType", -) +__all__ = ("AppHookDeliveriesDeliveryIdAttemptsPostResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0755.py b/githubkit/versions/v2022_11_28/types/group_0755.py index c1d56fb20..02bda8c69 100644 --- a/githubkit/versions/v2022_11_28/types/group_0755.py +++ b/githubkit/versions/v2022_11_28/types/group_0755.py @@ -9,27 +9,18 @@ from __future__ import annotations -from typing import Union +from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0014 import AppPermissionsType -class GistsGistIdGetResponse403Type(TypedDict): - """GistsGistIdGetResponse403""" - block: NotRequired[GistsGistIdGetResponse403PropBlockType] - message: NotRequired[str] - documentation_url: NotRequired[str] +class AppInstallationsInstallationIdAccessTokensPostBodyType(TypedDict): + """AppInstallationsInstallationIdAccessTokensPostBody""" + repositories: NotRequired[List[str]] + repository_ids: NotRequired[List[int]] + permissions: NotRequired[AppPermissionsType] -class GistsGistIdGetResponse403PropBlockType(TypedDict): - """GistsGistIdGetResponse403PropBlock""" - reason: NotRequired[str] - created_at: NotRequired[str] - html_url: NotRequired[Union[str, None]] - - -__all__ = ( - "GistsGistIdGetResponse403Type", - "GistsGistIdGetResponse403PropBlockType", -) +__all__ = ("AppInstallationsInstallationIdAccessTokensPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0756.py b/githubkit/versions/v2022_11_28/types/group_0756.py index 320e5859f..fad60868e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0756.py +++ b/githubkit/versions/v2022_11_28/types/group_0756.py @@ -9,34 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class GistsGistIdPatchBodyType(TypedDict): - """GistsGistIdPatchBody""" +class ApplicationsClientIdGrantDeleteBodyType(TypedDict): + """ApplicationsClientIdGrantDeleteBody""" - description: NotRequired[str] - files: NotRequired[GistsGistIdPatchBodyPropFilesType] + access_token: str -class GistsGistIdPatchBodyPropFilesType(TypedDict): - """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__ = ( - "GistsGistIdPatchBodyType", - "GistsGistIdPatchBodyPropFilesType", -) +__all__ = ("ApplicationsClientIdGrantDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0757.py b/githubkit/versions/v2022_11_28/types/group_0757.py index 054661ac7..c0bad1ae1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0757.py +++ b/githubkit/versions/v2022_11_28/types/group_0757.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class GistsGistIdCommentsPostBodyType(TypedDict): - """GistsGistIdCommentsPostBody""" +class ApplicationsClientIdTokenPostBodyType(TypedDict): + """ApplicationsClientIdTokenPostBody""" - body: str + access_token: str -__all__ = ("GistsGistIdCommentsPostBodyType",) +__all__ = ("ApplicationsClientIdTokenPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0758.py b/githubkit/versions/v2022_11_28/types/group_0758.py index 39ac46ae2..8a68cb8df 100644 --- a/githubkit/versions/v2022_11_28/types/group_0758.py +++ b/githubkit/versions/v2022_11_28/types/group_0758.py @@ -12,10 +12,10 @@ from typing_extensions import TypedDict -class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): - """GistsGistIdCommentsCommentIdPatchBody""" +class ApplicationsClientIdTokenDeleteBodyType(TypedDict): + """ApplicationsClientIdTokenDeleteBody""" - body: str + access_token: str -__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) +__all__ = ("ApplicationsClientIdTokenDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0759.py b/githubkit/versions/v2022_11_28/types/group_0759.py index 10e6b69c7..8e0b6ce68 100644 --- a/githubkit/versions/v2022_11_28/types/group_0759.py +++ b/githubkit/versions/v2022_11_28/types/group_0759.py @@ -12,8 +12,10 @@ from typing_extensions import TypedDict -class GistsGistIdStarGetResponse404Type(TypedDict): - """GistsGistIdStarGetResponse404""" +class ApplicationsClientIdTokenPatchBodyType(TypedDict): + """ApplicationsClientIdTokenPatchBody""" + access_token: str -__all__ = ("GistsGistIdStarGetResponse404Type",) + +__all__ = ("ApplicationsClientIdTokenPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0760.py b/githubkit/versions/v2022_11_28/types/group_0760.py index 0e16da280..9af931f5d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0760.py +++ b/githubkit/versions/v2022_11_28/types/group_0760.py @@ -12,15 +12,18 @@ from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0017 import RepositoryType +from .group_0014 import AppPermissionsType -class InstallationRepositoriesGetResponse200Type(TypedDict): - """InstallationRepositoriesGetResponse200""" +class ApplicationsClientIdTokenScopedPostBodyType(TypedDict): + """ApplicationsClientIdTokenScopedPostBody""" - total_count: int - repositories: List[RepositoryType] - repository_selection: NotRequired[str] + access_token: str + target: NotRequired[str] + target_id: NotRequired[int] + repositories: NotRequired[List[str]] + repository_ids: NotRequired[List[int]] + permissions: NotRequired[AppPermissionsType] -__all__ = ("InstallationRepositoriesGetResponse200Type",) +__all__ = ("ApplicationsClientIdTokenScopedPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0761.py b/githubkit/versions/v2022_11_28/types/group_0761.py index 247364e10..54e9d814e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0761.py +++ b/githubkit/versions/v2022_11_28/types/group_0761.py @@ -9,16 +9,11 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class MarkdownPostBodyType(TypedDict): - """MarkdownPostBody""" +class EmojisGetResponse200Type(TypedDict): + """EmojisGetResponse200""" - text: str - mode: NotRequired[Literal["markdown", "gfm"]] - context: NotRequired[str] - -__all__ = ("MarkdownPostBodyType",) +__all__ = ("EmojisGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0762.py b/githubkit/versions/v2022_11_28/types/group_0762.py index b40e83f9e..e52526acb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0762.py +++ b/githubkit/versions/v2022_11_28/types/group_0762.py @@ -9,15 +9,17 @@ from __future__ import annotations -from datetime import datetime +from typing import List from typing_extensions import TypedDict, NotRequired +from .group_0028 import CopilotSeatDetailsType -class NotificationsPutBodyType(TypedDict): - """NotificationsPutBody""" - last_read_at: NotRequired[datetime] - read: NotRequired[bool] +class EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type(TypedDict): + """EnterprisesEnterpriseCopilotBillingSeatsGetResponse200""" + total_seats: NotRequired[int] + seats: NotRequired[List[CopilotSeatDetailsType]] -__all__ = ("NotificationsPutBodyType",) + +__all__ = ("EnterprisesEnterpriseCopilotBillingSeatsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0763.py b/githubkit/versions/v2022_11_28/types/group_0763.py index 36e560089..2f451b10b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0763.py +++ b/githubkit/versions/v2022_11_28/types/group_0763.py @@ -12,10 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class NotificationsPutResponse202Type(TypedDict): - """NotificationsPutResponse202""" +class EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type(TypedDict): + """EnterprisesEnterpriseSecretScanningAlertsGetResponse503""" + code: NotRequired[str] message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("NotificationsPutResponse202Type",) +__all__ = ("EnterprisesEnterpriseSecretScanningAlertsGetResponse503Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0764.py b/githubkit/versions/v2022_11_28/types/group_0764.py index d14e27254..8f9809a85 100644 --- a/githubkit/versions/v2022_11_28/types/group_0764.py +++ b/githubkit/versions/v2022_11_28/types/group_0764.py @@ -9,13 +9,29 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): - """NotificationsThreadsThreadIdSubscriptionPutBody""" +class GistsPostBodyType(TypedDict): + """GistsPostBody""" - ignored: NotRequired[bool] + description: NotRequired[str] + files: GistsPostBodyPropFilesType + public: NotRequired[Union[bool, Literal["true", "false"]]] -__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) +class GistsPostBodyPropFilesType(TypedDict): + """GistsPostBodyPropFiles + + Names and content for the files that make up the gist + + Examples: + {'hello.rb': {'content': 'puts "Hello, World!"'}} + """ + + +__all__ = ( + "GistsPostBodyType", + "GistsPostBodyPropFilesType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0765.py b/githubkit/versions/v2022_11_28/types/group_0765.py index 4172f7bc5..c1d56fb20 100644 --- a/githubkit/versions/v2022_11_28/types/group_0765.py +++ b/githubkit/versions/v2022_11_28/types/group_0765.py @@ -9,46 +9,27 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -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] - - -__all__ = ("OrgsOrgPatchBodyType",) +class GistsGistIdGetResponse403Type(TypedDict): + """GistsGistIdGetResponse403""" + + block: NotRequired[GistsGistIdGetResponse403PropBlockType] + message: NotRequired[str] + documentation_url: NotRequired[str] + + +class GistsGistIdGetResponse403PropBlockType(TypedDict): + """GistsGistIdGetResponse403PropBlock""" + + reason: NotRequired[str] + created_at: NotRequired[str] + html_url: NotRequired[Union[str, None]] + + +__all__ = ( + "GistsGistIdGetResponse403Type", + "GistsGistIdGetResponse403PropBlockType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0766.py b/githubkit/versions/v2022_11_28/types/group_0766.py index 00d36424e..320e5859f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0766.py +++ b/githubkit/versions/v2022_11_28/types/group_0766.py @@ -9,29 +9,34 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): - """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" +class GistsGistIdPatchBodyType(TypedDict): + """GistsGistIdPatchBody""" - total_count: int - repository_cache_usages: List[ActionsCacheUsageByRepositoryType] + description: NotRequired[str] + files: NotRequired[GistsGistIdPatchBodyPropFilesType] -class ActionsCacheUsageByRepositoryType(TypedDict): - """Actions Cache Usage by repository +class GistsGistIdPatchBodyPropFilesType(TypedDict): + """GistsGistIdPatchBodyPropFiles - GitHub Actions Cache Usage by repository. - """ + 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`. - full_name: str - active_caches_size_in_bytes: int - active_caches_count: int + Examples: + {'hello.rb': {'content': 'blah', 'filename': 'goodbye.rb'}} + """ __all__ = ( - "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", - "ActionsCacheUsageByRepositoryType", + "GistsGistIdPatchBodyType", + "GistsGistIdPatchBodyPropFilesType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0767.py b/githubkit/versions/v2022_11_28/types/group_0767.py index 057fcec7d..054661ac7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0767.py +++ b/githubkit/versions/v2022_11_28/types/group_0767.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgActionsPermissionsPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsPutBody""" +class GistsGistIdCommentsPostBodyType(TypedDict): + """GistsGistIdCommentsPostBody""" - enabled_repositories: Literal["all", "none", "selected"] - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + body: str -__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) +__all__ = ("GistsGistIdCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0768.py b/githubkit/versions/v2022_11_28/types/group_0768.py index dbf4b3831..39ac46ae2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0768.py +++ b/githubkit/versions/v2022_11_28/types/group_0768.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -from .group_0017 import RepositoryType +class GistsGistIdCommentsCommentIdPatchBodyType(TypedDict): + """GistsGistIdCommentsCommentIdPatchBody""" -class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + body: str - total_count: float - repositories: List[RepositoryType] - -__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) +__all__ = ("GistsGistIdCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0769.py b/githubkit/versions/v2022_11_28/types/group_0769.py index 0a9b8d49f..10e6b69c7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0769.py +++ b/githubkit/versions/v2022_11_28/types/group_0769.py @@ -9,14 +9,11 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsPermissionsRepositoriesPutBody""" +class GistsGistIdStarGetResponse404Type(TypedDict): + """GistsGistIdStarGetResponse404""" - selected_repository_ids: List[int] - -__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) +__all__ = ("GistsGistIdStarGetResponse404Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0770.py b/githubkit/versions/v2022_11_28/types/group_0770.py index 168ca4e73..0e16da280 100644 --- a/githubkit/versions/v2022_11_28/types/group_0770.py +++ b/githubkit/versions/v2022_11_28/types/group_0770.py @@ -10,16 +10,17 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0063 import RunnerType +from .group_0017 import RepositoryType -class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnersGetResponse200""" +class InstallationRepositoriesGetResponse200Type(TypedDict): + """InstallationRepositoriesGetResponse200""" total_count: int - runners: List[RunnerType] + repositories: List[RepositoryType] + repository_selection: NotRequired[str] -__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) +__all__ = ("InstallationRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0771.py b/githubkit/versions/v2022_11_28/types/group_0771.py index eca351801..247364e10 100644 --- a/githubkit/versions/v2022_11_28/types/group_0771.py +++ b/githubkit/versions/v2022_11_28/types/group_0771.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" +class MarkdownPostBodyType(TypedDict): + """MarkdownPostBody""" - name: str - runner_group_id: int - labels: List[str] - work_folder: NotRequired[str] + text: str + mode: NotRequired[Literal["markdown", "gfm"]] + context: NotRequired[str] -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) +__all__ = ("MarkdownPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0772.py b/githubkit/versions/v2022_11_28/types/group_0772.py index 3d87edd54..b40e83f9e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0772.py +++ b/githubkit/versions/v2022_11_28/types/group_0772.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -from .group_0063 import RunnerType +class NotificationsPutBodyType(TypedDict): + """NotificationsPutBody""" -class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type(TypedDict): - """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" + last_read_at: NotRequired[datetime] + read: NotRequired[bool] - runner: RunnerType - encoded_jit_config: str - -__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",) +__all__ = ("NotificationsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0773.py b/githubkit/versions/v2022_11_28/types/group_0773.py index f05bad463..36e560089 100644 --- a/githubkit/versions/v2022_11_28/types/group_0773.py +++ b/githubkit/versions/v2022_11_28/types/group_0773.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0062 import RunnerLabelType +class NotificationsPutResponse202Type(TypedDict): + """NotificationsPutResponse202""" -class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" + message: NotRequired[str] - total_count: int - labels: List[RunnerLabelType] - -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",) +__all__ = ("NotificationsPutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0774.py b/githubkit/versions/v2022_11_28/types/group_0774.py index 501b19b50..d14e27254 100644 --- a/githubkit/versions/v2022_11_28/types/group_0774.py +++ b/githubkit/versions/v2022_11_28/types/group_0774.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" +class NotificationsThreadsThreadIdSubscriptionPutBodyType(TypedDict): + """NotificationsThreadsThreadIdSubscriptionPutBody""" - labels: List[str] + ignored: NotRequired[bool] -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("NotificationsThreadsThreadIdSubscriptionPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0775.py b/githubkit/versions/v2022_11_28/types/group_0775.py index a31968bb1..4172f7bc5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0775.py +++ b/githubkit/versions/v2022_11_28/types/group_0775.py @@ -9,14 +9,46 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict - - -class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" - - labels: List[str] - - -__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) +from typing import Literal +from typing_extensions import TypedDict, NotRequired + + +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] + + +__all__ = ("OrgsOrgPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0776.py b/githubkit/versions/v2022_11_28/types/group_0776.py index b5560e84f..00d36424e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0776.py +++ b/githubkit/versions/v2022_11_28/types/group_0776.py @@ -12,14 +12,26 @@ from typing import List from typing_extensions import TypedDict -from .group_0062 import RunnerLabelType - -class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): - """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" +class OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type(TypedDict): + """OrgsOrgActionsCacheUsageByRepositoryGetResponse200""" total_count: int - labels: List[RunnerLabelType] + 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__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",) +__all__ = ( + "OrgsOrgActionsCacheUsageByRepositoryGetResponse200Type", + "ActionsCacheUsageByRepositoryType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0777.py b/githubkit/versions/v2022_11_28/types/group_0777.py index 2e71259c6..057fcec7d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0777.py +++ b/githubkit/versions/v2022_11_28/types/group_0777.py @@ -9,32 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsGetResponse200""" +class OrgsOrgActionsPermissionsPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsPutBody""" - total_count: int - secrets: List[OrganizationActionsSecretType] + enabled_repositories: Literal["all", "none", "selected"] + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] -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__ = ( - "OrgsOrgActionsSecretsGetResponse200Type", - "OrganizationActionsSecretType", -) +__all__ = ("OrgsOrgActionsPermissionsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0778.py b/githubkit/versions/v2022_11_28/types/group_0778.py index 011a4a449..dbf4b3831 100644 --- a/githubkit/versions/v2022_11_28/types/group_0778.py +++ b/githubkit/versions/v2022_11_28/types/group_0778.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0017 import RepositoryType -class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNamePutBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[List[int]] +class OrgsOrgActionsPermissionsRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesGetResponse200""" + total_count: float + repositories: List[RepositoryType] -__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) + +__all__ = ("OrgsOrgActionsPermissionsRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0779.py b/githubkit/versions/v2022_11_28/types/group_0779.py index 36a7bcb09..0a9b8d49f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0779.py +++ b/githubkit/versions/v2022_11_28/types/group_0779.py @@ -12,14 +12,11 @@ from typing import List from typing_extensions import TypedDict -from .group_0051 import MinimalRepositoryType +class OrgsOrgActionsPermissionsRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsPermissionsRepositoriesPutBody""" -class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + selected_repository_ids: List[int] - total_count: int - repositories: List[MinimalRepositoryType] - -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsPermissionsRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0780.py b/githubkit/versions/v2022_11_28/types/group_0780.py index 6323f1787..95385e2ce 100644 --- a/githubkit/versions/v2022_11_28/types/group_0780.py +++ b/githubkit/versions/v2022_11_28/types/group_0780.py @@ -12,11 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0066 import RunnerType -class OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - selected_repository_ids: List[int] +class OrgsOrgActionsRunnersGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnersGetResponse200""" + total_count: int + runners: List[RunnerType] -__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) + +__all__ = ("OrgsOrgActionsRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0781.py b/githubkit/versions/v2022_11_28/types/group_0781.py index 669cd0638..eca351801 100644 --- a/githubkit/versions/v2022_11_28/types/group_0781.py +++ b/githubkit/versions/v2022_11_28/types/group_0781.py @@ -9,33 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesGetResponse200""" - - total_count: int - variables: List[OrganizationActionsVariableType] - - -class OrganizationActionsVariableType(TypedDict): - """Actions Variable for an Organization - - Organization variable for GitHub Actions. - """ +class OrgsOrgActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """OrgsOrgActionsRunnersGenerateJitconfigPostBody""" name: str - value: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] + runner_group_id: int + labels: List[str] + work_folder: NotRequired[str] -__all__ = ( - "OrgsOrgActionsVariablesGetResponse200Type", - "OrganizationActionsVariableType", -) +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0782.py b/githubkit/versions/v2022_11_28/types/group_0782.py index bf80fe0df..c67b5989b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0782.py +++ b/githubkit/versions/v2022_11_28/types/group_0782.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0066 import RunnerType -class OrgsOrgActionsVariablesPostBodyType(TypedDict): - """OrgsOrgActionsVariablesPostBody""" - name: str - value: str - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[List[int]] +class OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type(TypedDict): + """OrgsOrgActionsRunnersGenerateJitconfigPostResponse201""" + runner: RunnerType + encoded_jit_config: str -__all__ = ("OrgsOrgActionsVariablesPostBodyType",) + +__all__ = ("OrgsOrgActionsRunnersGenerateJitconfigPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0783.py b/githubkit/versions/v2022_11_28/types/group_0783.py index dd70527c5..33a843c2b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0783.py +++ b/githubkit/versions/v2022_11_28/types/group_0783.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0065 import RunnerLabelType -class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): - """OrgsOrgActionsVariablesNamePatchBody""" - name: NotRequired[str] - value: NotRequired[str] - visibility: NotRequired[Literal["all", "private", "selected"]] - selected_repository_ids: NotRequired[List[int]] +class OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200""" + total_count: int + labels: List[RunnerLabelType] -__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) + +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0784.py b/githubkit/versions/v2022_11_28/types/group_0784.py index 154f4398c..501b19b50 100644 --- a/githubkit/versions/v2022_11_28/types/group_0784.py +++ b/githubkit/versions/v2022_11_28/types/group_0784.py @@ -12,14 +12,11 @@ from typing import List from typing_extensions import TypedDict -from .group_0051 import MinimalRepositoryType +class OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPutBody""" -class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + labels: List[str] - total_count: int - repositories: List[MinimalRepositoryType] - -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0785.py b/githubkit/versions/v2022_11_28/types/group_0785.py index 7038b96c8..a31968bb1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0785.py +++ b/githubkit/versions/v2022_11_28/types/group_0785.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgActionsVariablesNameRepositoriesPutBody""" +class OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsPostBody""" - selected_repository_ids: List[int] + labels: List[str] -__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0786.py b/githubkit/versions/v2022_11_28/types/group_0786.py index ce1226f0e..22ff06d79 100644 --- a/githubkit/versions/v2022_11_28/types/group_0786.py +++ b/githubkit/versions/v2022_11_28/types/group_0786.py @@ -12,14 +12,14 @@ from typing import List from typing_extensions import TypedDict -from .group_0072 import CodespaceType +from .group_0065 import RunnerLabelType -class OrgsOrgCodespacesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesGetResponse200""" +class OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type(TypedDict): + """OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200""" total_count: int - codespaces: List[CodespaceType] + labels: List[RunnerLabelType] -__all__ = ("OrgsOrgCodespacesGetResponse200Type",) +__all__ = ("OrgsOrgActionsRunnersRunnerIdLabelsDeleteResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0787.py b/githubkit/versions/v2022_11_28/types/group_0787.py index 11890a4e9..2e71259c6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0787.py +++ b/githubkit/versions/v2022_11_28/types/group_0787.py @@ -9,20 +9,32 @@ from __future__ import annotations +from datetime import datetime from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgCodespacesAccessPutBodyType(TypedDict): - """OrgsOrgCodespacesAccessPutBody""" +class OrgsOrgActionsSecretsGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsGetResponse200""" - visibility: Literal[ - "disabled", - "selected_members", - "all_members", - "all_members_and_outside_collaborators", - ] - selected_usernames: NotRequired[List[str]] + total_count: int + secrets: List[OrganizationActionsSecretType] -__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) +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__ = ( + "OrgsOrgActionsSecretsGetResponse200Type", + "OrganizationActionsSecretType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0788.py b/githubkit/versions/v2022_11_28/types/group_0788.py index ecb5a7ff7..011a4a449 100644 --- a/githubkit/versions/v2022_11_28/types/group_0788.py +++ b/githubkit/versions/v2022_11_28/types/group_0788.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersPostBody""" +class OrgsOrgActionsSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNamePutBody""" - selected_usernames: List[str] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[List[int]] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) +__all__ = ("OrgsOrgActionsSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0789.py b/githubkit/versions/v2022_11_28/types/group_0789.py index 343148794..12e794eac 100644 --- a/githubkit/versions/v2022_11_28/types/group_0789.py +++ b/githubkit/versions/v2022_11_28/types/group_0789.py @@ -12,11 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0055 import MinimalRepositoryType -class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" - selected_usernames: List[str] +class OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: List[MinimalRepositoryType] -__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) + +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0790.py b/githubkit/versions/v2022_11_28/types/group_0790.py index 9f9f2b273..6323f1787 100644 --- a/githubkit/versions/v2022_11_28/types/group_0790.py +++ b/githubkit/versions/v2022_11_28/types/group_0790.py @@ -9,32 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsGetResponse200""" +class OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsSecretsSecretNameRepositoriesPutBody""" - total_count: int - secrets: List[CodespacesOrgSecretType] + selected_repository_ids: List[int] -class CodespacesOrgSecretType(TypedDict): - """Codespaces Secret - - Secrets for a GitHub Codespace. - """ - - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: NotRequired[str] - - -__all__ = ( - "OrgsOrgCodespacesSecretsGetResponse200Type", - "CodespacesOrgSecretType", -) +__all__ = ("OrgsOrgActionsSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0791.py b/githubkit/versions/v2022_11_28/types/group_0791.py index df9701450..669cd0638 100644 --- a/githubkit/versions/v2022_11_28/types/group_0791.py +++ b/githubkit/versions/v2022_11_28/types/group_0791.py @@ -9,17 +9,33 @@ from __future__ import annotations +from datetime import datetime from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNamePutBody""" +class OrgsOrgActionsVariablesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesGetResponse200""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + total_count: int + variables: List[OrganizationActionsVariableType] + + +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_repository_ids: NotRequired[List[int]] + selected_repositories_url: NotRequired[str] -__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) +__all__ = ( + "OrgsOrgActionsVariablesGetResponse200Type", + "OrganizationActionsVariableType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0792.py b/githubkit/versions/v2022_11_28/types/group_0792.py index 0ebfc976c..bf80fe0df 100644 --- a/githubkit/versions/v2022_11_28/types/group_0792.py +++ b/githubkit/versions/v2022_11_28/types/group_0792.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0051 import MinimalRepositoryType +class OrgsOrgActionsVariablesPostBodyType(TypedDict): + """OrgsOrgActionsVariablesPostBody""" -class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + name: str + value: str + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[List[int]] - total_count: int - repositories: List[MinimalRepositoryType] - -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgActionsVariablesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0793.py b/githubkit/versions/v2022_11_28/types/group_0793.py index bc6a55ac2..dd70527c5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0793.py +++ b/githubkit/versions/v2022_11_28/types/group_0793.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgActionsVariablesNamePatchBodyType(TypedDict): + """OrgsOrgActionsVariablesNamePatchBody""" - selected_repository_ids: List[int] + name: NotRequired[str] + value: NotRequired[str] + visibility: NotRequired[Literal["all", "private", "selected"]] + selected_repository_ids: NotRequired[List[int]] -__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) +__all__ = ("OrgsOrgActionsVariablesNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0794.py b/githubkit/versions/v2022_11_28/types/group_0794.py index f5fc4cf2b..906d422a9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0794.py +++ b/githubkit/versions/v2022_11_28/types/group_0794.py @@ -12,11 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0055 import MinimalRepositoryType -class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - selected_teams: List[str] +class OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesGetResponse200""" + total_count: int + repositories: List[MinimalRepositoryType] -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) + +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0795.py b/githubkit/versions/v2022_11_28/types/group_0795.py index 7d801be5e..7038b96c8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0795.py +++ b/githubkit/versions/v2022_11_28/types/group_0795.py @@ -9,16 +9,14 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict -class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 +class OrgsOrgActionsVariablesNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgActionsVariablesNameRepositoriesPutBody""" - The total number of seat assignments created. - """ + selected_repository_ids: List[int] - seats_created: int - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) +__all__ = ("OrgsOrgActionsVariablesNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0796.py b/githubkit/versions/v2022_11_28/types/group_0796.py index ad2745b9f..a578c755d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0796.py +++ b/githubkit/versions/v2022_11_28/types/group_0796.py @@ -10,13 +10,68 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" +class OrgsOrgAttestationsSubjectDigestGetResponse200Type(TypedDict): + """OrgsOrgAttestationsSubjectDigestGetResponse200""" - selected_teams: List[str] + attestations: NotRequired[ + List[OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType] + ] -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[ + OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType + ] + repository_id: NotRequired[int] + + +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 + ] + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType( + TypedDict +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro + pVerificationMaterial + """ + + +class OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType( + TypedDict +): + """OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePro + pDsseEnvelope + """ + + +__all__ = ( + "OrgsOrgAttestationsSubjectDigestGetResponse200Type", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "OrgsOrgAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0797.py b/githubkit/versions/v2022_11_28/types/group_0797.py index 2c06d525c..311ee4044 100644 --- a/githubkit/versions/v2022_11_28/types/group_0797.py +++ b/githubkit/versions/v2022_11_28/types/group_0797.py @@ -9,16 +9,30 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - - The total number of seat assignments cancelled. - """ - - seats_cancelled: int - - -__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) +from typing import Literal +from typing_extensions import TypedDict, NotRequired + + +class OrgsOrgCodeSecurityConfigurationsPostBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsPostBody""" + + name: str + description: str + advanced_security: NotRequired[Literal["enabled", "disabled"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + + +__all__ = ("OrgsOrgCodeSecurityConfigurationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0798.py b/githubkit/versions/v2022_11_28/types/group_0798.py index d2bc78059..7f905fdbc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0798.py +++ b/githubkit/versions/v2022_11_28/types/group_0798.py @@ -9,14 +9,30 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict - - -class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostBody""" - - selected_usernames: List[str] - - -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) +from typing import Literal +from typing_extensions import TypedDict, NotRequired + + +class OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBody""" + + name: NotRequired[str] + description: NotRequired[str] + advanced_security: NotRequired[Literal["enabled", "disabled"]] + dependency_graph: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_alerts: NotRequired[Literal["enabled", "disabled", "not_set"]] + dependabot_security_updates: NotRequired[Literal["enabled", "disabled", "not_set"]] + code_scanning_default_setup: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning: NotRequired[Literal["enabled", "disabled", "not_set"]] + secret_scanning_push_protection: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + secret_scanning_validity_checks: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + private_vulnerability_reporting: NotRequired[ + Literal["enabled", "disabled", "not_set"] + ] + + +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0799.py b/githubkit/versions/v2022_11_28/types/group_0799.py index c59c644d1..171204dc4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0799.py +++ b/githubkit/versions/v2022_11_28/types/group_0799.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersPostResponse201 +class OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBody""" - The total number of seat assignments created. - """ + scope: Literal["all", "public", "private_or_internal", "selected"] + selected_repository_ids: NotRequired[List[int]] - seats_created: int - -__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdAttachPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0800.py b/githubkit/versions/v2022_11_28/types/group_0800.py index b06b1b236..657825ddf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0800.py +++ b/githubkit/versions/v2022_11_28/types/group_0800.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType(TypedDict): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBody""" - selected_usernames: List[str] + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) +__all__ = ("OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0801.py b/githubkit/versions/v2022_11_28/types/group_0801.py index 146387615..2e68832c2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0801.py +++ b/githubkit/versions/v2022_11_28/types/group_0801.py @@ -9,16 +9,23 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_0074 import CodeSecurityConfigurationType -class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): - """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 - The total number of seat assignments cancelled. - """ +class OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type( + TypedDict +): + """OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200""" - seats_cancelled: int + default_for_new_repos: NotRequired[ + Literal["all", "none", "private_and_internal", "public"] + ] + configuration: NotRequired[CodeSecurityConfigurationType] -__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) +__all__ = ( + "OrgsOrgCodeSecurityConfigurationsConfigurationIdDefaultsPutResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0802.py b/githubkit/versions/v2022_11_28/types/group_0802.py index a4754484f..84d85d133 100644 --- a/githubkit/versions/v2022_11_28/types/group_0802.py +++ b/githubkit/versions/v2022_11_28/types/group_0802.py @@ -9,32 +9,17 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0078 import CodespaceType -class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsGetResponse200""" - total_count: int - secrets: List[OrganizationDependabotSecretType] - - -class OrganizationDependabotSecretType(TypedDict): - """Dependabot Secret for an Organization +class OrgsOrgCodespacesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesGetResponse200""" - 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] + total_count: int + codespaces: List[CodespaceType] -__all__ = ( - "OrgsOrgDependabotSecretsGetResponse200Type", - "OrganizationDependabotSecretType", -) +__all__ = ("OrgsOrgCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0803.py b/githubkit/versions/v2022_11_28/types/group_0803.py index eb6772b44..11890a4e9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0803.py +++ b/githubkit/versions/v2022_11_28/types/group_0803.py @@ -13,13 +13,16 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNamePutBody""" +class OrgsOrgCodespacesAccessPutBodyType(TypedDict): + """OrgsOrgCodespacesAccessPutBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] - visibility: Literal["all", "private", "selected"] - selected_repository_ids: NotRequired[List[str]] + visibility: Literal[ + "disabled", + "selected_members", + "all_members", + "all_members_and_outside_collaborators", + ] + selected_usernames: NotRequired[List[str]] -__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) +__all__ = ("OrgsOrgCodespacesAccessPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0804.py b/githubkit/versions/v2022_11_28/types/group_0804.py index cdb6592d0..ecb5a7ff7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0804.py +++ b/githubkit/versions/v2022_11_28/types/group_0804.py @@ -12,14 +12,11 @@ from typing import List from typing_extensions import TypedDict -from .group_0051 import MinimalRepositoryType +class OrgsOrgCodespacesAccessSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersPostBody""" -class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + selected_usernames: List[str] - total_count: int - repositories: List[MinimalRepositoryType] - -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0805.py b/githubkit/versions/v2022_11_28/types/group_0805.py index 20b1891ca..343148794 100644 --- a/githubkit/versions/v2022_11_28/types/group_0805.py +++ b/githubkit/versions/v2022_11_28/types/group_0805.py @@ -13,10 +13,10 @@ from typing_extensions import TypedDict -class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" +class OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCodespacesAccessSelectedUsersDeleteBody""" - selected_repository_ids: List[int] + selected_usernames: List[str] -__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) +__all__ = ("OrgsOrgCodespacesAccessSelectedUsersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0806.py b/githubkit/versions/v2022_11_28/types/group_0806.py index 122ba557e..9f9f2b273 100644 --- a/githubkit/versions/v2022_11_28/types/group_0806.py +++ b/githubkit/versions/v2022_11_28/types/group_0806.py @@ -9,34 +9,32 @@ from __future__ import annotations -from typing import List, Union +from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgHooksPostBodyType(TypedDict): - """OrgsOrgHooksPostBody""" +class OrgsOrgCodespacesSecretsGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsGetResponse200""" - name: str - config: OrgsOrgHooksPostBodyPropConfigType - events: NotRequired[List[str]] - active: NotRequired[bool] + total_count: int + secrets: List[CodespacesOrgSecretType] -class OrgsOrgHooksPostBodyPropConfigType(TypedDict): - """OrgsOrgHooksPostBodyPropConfig +class CodespacesOrgSecretType(TypedDict): + """Codespaces Secret - Key/value pairs to provide settings for this webhook. + Secrets for a GitHub Codespace. """ - url: str - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - username: NotRequired[str] - password: NotRequired[str] + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] __all__ = ( - "OrgsOrgHooksPostBodyType", - "OrgsOrgHooksPostBodyPropConfigType", + "OrgsOrgCodespacesSecretsGetResponse200Type", + "CodespacesOrgSecretType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0807.py b/githubkit/versions/v2022_11_28/types/group_0807.py index 11e886a2e..df9701450 100644 --- a/githubkit/versions/v2022_11_28/types/group_0807.py +++ b/githubkit/versions/v2022_11_28/types/group_0807.py @@ -9,32 +9,17 @@ from __future__ import annotations -from typing import List, Union +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgHooksHookIdPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdPatchBody""" +class OrgsOrgCodespacesSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNamePutBody""" - config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] - events: NotRequired[List[str]] - active: NotRequired[bool] - name: NotRequired[str] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[List[int]] -class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): - """OrgsOrgHooksHookIdPatchBodyPropConfig - - Key/value pairs to provide settings for this webhook. - """ - - url: str - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] - - -__all__ = ( - "OrgsOrgHooksHookIdPatchBodyType", - "OrgsOrgHooksHookIdPatchBodyPropConfigType", -) +__all__ = ("OrgsOrgCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0808.py b/githubkit/versions/v2022_11_28/types/group_0808.py index 7e5067447..018460019 100644 --- a/githubkit/versions/v2022_11_28/types/group_0808.py +++ b/githubkit/versions/v2022_11_28/types/group_0808.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0055 import MinimalRepositoryType -class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): - """OrgsOrgHooksHookIdConfigPatchBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] +class OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: List[MinimalRepositoryType] -__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) + +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0809.py b/githubkit/versions/v2022_11_28/types/group_0809.py index 6cb3bd343..bc6a55ac2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0809.py +++ b/githubkit/versions/v2022_11_28/types/group_0809.py @@ -12,14 +12,11 @@ from typing import List from typing_extensions import TypedDict -from .group_0015 import InstallationType +class OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBody""" -class OrgsOrgInstallationsGetResponse200Type(TypedDict): - """OrgsOrgInstallationsGetResponse200""" + selected_repository_ids: List[int] - total_count: int - installations: List[InstallationType] - -__all__ = ("OrgsOrgInstallationsGetResponse200Type",) +__all__ = ("OrgsOrgCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0810.py b/githubkit/versions/v2022_11_28/types/group_0810.py index 5916d7d10..df38128d3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0810.py +++ b/githubkit/versions/v2022_11_28/types/group_0810.py @@ -9,11 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired +from .group_0028 import CopilotSeatDetailsType -class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """OrgsOrgInteractionLimitsGetResponse200Anyof1""" +class OrgsOrgCopilotBillingSeatsGetResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSeatsGetResponse200""" -__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) + total_seats: NotRequired[int] + seats: NotRequired[List[CopilotSeatDetailsType]] + + +__all__ = ("OrgsOrgCopilotBillingSeatsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0811.py b/githubkit/versions/v2022_11_28/types/group_0811.py index 53e71b67a..f5fc4cf2b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0811.py +++ b/githubkit/versions/v2022_11_28/types/group_0811.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgInvitationsPostBodyType(TypedDict): - """OrgsOrgInvitationsPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostBody""" - invitee_id: NotRequired[int] - email: NotRequired[str] - role: NotRequired[Literal["admin", "direct_member", "billing_manager", "reinstate"]] - team_ids: NotRequired[List[int]] + selected_teams: List[str] -__all__ = ("OrgsOrgInvitationsPostBodyType",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0812.py b/githubkit/versions/v2022_11_28/types/group_0812.py index 0f4d2e647..7d801be5e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0812.py +++ b/githubkit/versions/v2022_11_28/types/group_0812.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -from .group_0072 import CodespaceType +class OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsPostResponse201 -class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): - """OrgsOrgMembersUsernameCodespacesGetResponse200""" + The total number of seat assignments created. + """ - total_count: int - codespaces: List[CodespaceType] + seats_created: int -__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0813.py b/githubkit/versions/v2022_11_28/types/group_0813.py index 8a9c0bc90..ad2745b9f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0813.py +++ b/githubkit/versions/v2022_11_28/types/group_0813.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgMembershipsUsernamePutBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteBody""" - role: NotRequired[Literal["admin", "member"]] + selected_teams: List[str] -__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0814.py b/githubkit/versions/v2022_11_28/types/group_0814.py index f222d73fb..2c06d525c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0814.py +++ b/githubkit/versions/v2022_11_28/types/group_0814.py @@ -9,22 +9,16 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgMigrationsPostBodyType(TypedDict): - """OrgsOrgMigrationsPostBody""" +class OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200 - 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"]]] + The total number of seat assignments cancelled. + """ + seats_cancelled: int -__all__ = ("OrgsOrgMigrationsPostBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedTeamsDeleteResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0815.py b/githubkit/versions/v2022_11_28/types/group_0815.py index 174eddcfe..d2bc78059 100644 --- a/githubkit/versions/v2022_11_28/types/group_0815.py +++ b/githubkit/versions/v2022_11_28/types/group_0815.py @@ -10,15 +10,13 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgOrganizationRolesPostBodyType(TypedDict): - """OrgsOrgOrganizationRolesPostBody""" +class OrgsOrgCopilotBillingSelectedUsersPostBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostBody""" - name: str - description: NotRequired[str] - permissions: List[str] + selected_usernames: List[str] -__all__ = ("OrgsOrgOrganizationRolesPostBodyType",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0816.py b/githubkit/versions/v2022_11_28/types/group_0816.py index 7b35bcb3e..c59c644d1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0816.py +++ b/githubkit/versions/v2022_11_28/types/group_0816.py @@ -9,16 +9,16 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgOrganizationRolesRoleIdPatchBodyType(TypedDict): - """OrgsOrgOrganizationRolesRoleIdPatchBody""" +class OrgsOrgCopilotBillingSelectedUsersPostResponse201Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersPostResponse201 - name: NotRequired[str] - description: NotRequired[str] - permissions: NotRequired[List[str]] + The total number of seat assignments created. + """ + seats_created: int -__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",) + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0817.py b/githubkit/versions/v2022_11_28/types/group_0817.py index 76bef7987..b06b1b236 100644 --- a/githubkit/versions/v2022_11_28/types/group_0817.py +++ b/githubkit/versions/v2022_11_28/types/group_0817.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutBody""" +class OrgsOrgCopilotBillingSelectedUsersDeleteBodyType(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteBody""" - async_: NotRequired[bool] + selected_usernames: List[str] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0818.py b/githubkit/versions/v2022_11_28/types/group_0818.py index 5de4170f2..146387615 100644 --- a/githubkit/versions/v2022_11_28/types/group_0818.py +++ b/githubkit/versions/v2022_11_28/types/group_0818.py @@ -12,8 +12,13 @@ from typing_extensions import TypedDict -class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" +class OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type(TypedDict): + """OrgsOrgCopilotBillingSelectedUsersDeleteResponse200 + The total number of seat assignments cancelled. + """ -__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) + seats_cancelled: int + + +__all__ = ("OrgsOrgCopilotBillingSelectedUsersDeleteResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0819.py b/githubkit/versions/v2022_11_28/types/group_0819.py index c6b448fef..a4754484f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0819.py +++ b/githubkit/versions/v2022_11_28/types/group_0819.py @@ -9,14 +9,32 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): - """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" +class OrgsOrgDependabotSecretsGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsGetResponse200""" - message: NotRequired[str] - documentation_url: NotRequired[str] + total_count: int + secrets: List[OrganizationDependabotSecretType] -__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) +class OrganizationDependabotSecretType(TypedDict): + """Dependabot Secret for an Organization + + Secrets for GitHub Dependabot for an organization. + """ + + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: NotRequired[str] + + +__all__ = ( + "OrgsOrgDependabotSecretsGetResponse200Type", + "OrganizationDependabotSecretType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0820.py b/githubkit/versions/v2022_11_28/types/group_0820.py index 606354a4b..eb6772b44 100644 --- a/githubkit/versions/v2022_11_28/types/group_0820.py +++ b/githubkit/versions/v2022_11_28/types/group_0820.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPostBody""" +class OrgsOrgDependabotSecretsSecretNamePutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNamePutBody""" - pat_request_ids: NotRequired[List[int]] - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] + visibility: Literal["all", "private", "selected"] + selected_repository_ids: NotRequired[List[str]] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) +__all__ = ("OrgsOrgDependabotSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0821.py b/githubkit/versions/v2022_11_28/types/group_0821.py index 4fc23e50a..a56995700 100644 --- a/githubkit/versions/v2022_11_28/types/group_0821.py +++ b/githubkit/versions/v2022_11_28/types/group_0821.py @@ -9,15 +9,17 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0055 import MinimalRepositoryType -class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - action: Literal["approve", "deny"] - reason: NotRequired[Union[str, None]] +class OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200""" + total_count: int + repositories: List[MinimalRepositoryType] -__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) + +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0822.py b/githubkit/versions/v2022_11_28/types/group_0822.py index 23297838b..20b1891ca 100644 --- a/githubkit/versions/v2022_11_28/types/group_0822.py +++ b/githubkit/versions/v2022_11_28/types/group_0822.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing import List, Literal +from typing import List from typing_extensions import TypedDict -class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPostBody""" +class OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """OrgsOrgDependabotSecretsSecretNameRepositoriesPutBody""" - action: Literal["revoke"] - pat_ids: List[int] + selected_repository_ids: List[int] -__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) +__all__ = ("OrgsOrgDependabotSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0823.py b/githubkit/versions/v2022_11_28/types/group_0823.py index 32c37cd97..122ba557e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0823.py +++ b/githubkit/versions/v2022_11_28/types/group_0823.py @@ -9,14 +9,34 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import List, Union +from typing_extensions import TypedDict, NotRequired -class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): - """OrgsOrgPersonalAccessTokensPatIdPostBody""" +class OrgsOrgHooksPostBodyType(TypedDict): + """OrgsOrgHooksPostBody""" - action: Literal["revoke"] + name: str + config: OrgsOrgHooksPostBodyPropConfigType + events: NotRequired[List[str]] + active: NotRequired[bool] -__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) +class OrgsOrgHooksPostBodyPropConfigType(TypedDict): + """OrgsOrgHooksPostBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + username: NotRequired[str] + password: NotRequired[str] + + +__all__ = ( + "OrgsOrgHooksPostBodyType", + "OrgsOrgHooksPostBodyPropConfigType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0824.py b/githubkit/versions/v2022_11_28/types/group_0824.py index afad09a25..11e886a2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0824.py +++ b/githubkit/versions/v2022_11_28/types/group_0824.py @@ -9,14 +9,32 @@ from __future__ import annotations +from typing import List, Union from typing_extensions import TypedDict, NotRequired -class OrgsOrgProjectsPostBodyType(TypedDict): - """OrgsOrgProjectsPostBody""" +class OrgsOrgHooksHookIdPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdPatchBody""" - name: str - body: NotRequired[str] + config: NotRequired[OrgsOrgHooksHookIdPatchBodyPropConfigType] + events: NotRequired[List[str]] + active: NotRequired[bool] + name: NotRequired[str] -__all__ = ("OrgsOrgProjectsPostBodyType",) +class OrgsOrgHooksHookIdPatchBodyPropConfigType(TypedDict): + """OrgsOrgHooksHookIdPatchBodyPropConfig + + Key/value pairs to provide settings for this webhook. + """ + + url: str + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] + + +__all__ = ( + "OrgsOrgHooksHookIdPatchBodyType", + "OrgsOrgHooksHookIdPatchBodyPropConfigType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0825.py b/githubkit/versions/v2022_11_28/types/group_0825.py index c447423c9..7e5067447 100644 --- a/githubkit/versions/v2022_11_28/types/group_0825.py +++ b/githubkit/versions/v2022_11_28/types/group_0825.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union +from typing_extensions import TypedDict, NotRequired -from .group_0092 import OrgCustomPropertyType +class OrgsOrgHooksHookIdConfigPatchBodyType(TypedDict): + """OrgsOrgHooksHookIdConfigPatchBody""" -class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): - """OrgsOrgPropertiesSchemaPatchBody""" + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] - properties: List[OrgCustomPropertyType] - -__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) +__all__ = ("OrgsOrgHooksHookIdConfigPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0826.py b/githubkit/versions/v2022_11_28/types/group_0826.py index 7545b38e4..6cb3bd343 100644 --- a/githubkit/versions/v2022_11_28/types/group_0826.py +++ b/githubkit/versions/v2022_11_28/types/group_0826.py @@ -9,18 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0015 import InstallationType -class OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType(TypedDict): - """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" - value_type: Literal["string", "single_select"] - required: NotRequired[bool] - default_value: NotRequired[Union[str, List[str], None]] - description: NotRequired[Union[str, None]] - allowed_values: NotRequired[Union[List[str], None]] +class OrgsOrgInstallationsGetResponse200Type(TypedDict): + """OrgsOrgInstallationsGetResponse200""" + total_count: int + installations: List[InstallationType] -__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",) + +__all__ = ("OrgsOrgInstallationsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0827.py b/githubkit/versions/v2022_11_28/types/group_0827.py index aa3a31fb7..5916d7d10 100644 --- a/githubkit/versions/v2022_11_28/types/group_0827.py +++ b/githubkit/versions/v2022_11_28/types/group_0827.py @@ -9,17 +9,11 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -from .group_0093 import CustomPropertyValueType +class OrgsOrgInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """OrgsOrgInteractionLimitsGetResponse200Anyof1""" -class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): - """OrgsOrgPropertiesValuesPatchBody""" - repository_names: List[str] - properties: List[CustomPropertyValueType] - - -__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) +__all__ = ("OrgsOrgInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0828.py b/githubkit/versions/v2022_11_28/types/group_0828.py index 45d01becb..53e71b67a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0828.py +++ b/githubkit/versions/v2022_11_28/types/group_0828.py @@ -9,51 +9,17 @@ from __future__ import annotations -from typing import Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgReposPostBodyType(TypedDict): - """OrgsOrgReposPostBody""" - - name: str - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - visibility: NotRequired[Literal["public", "private"]] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_downloads: NotRequired[bool] - is_template: NotRequired[bool] - team_id: NotRequired[int] - auto_init: NotRequired[bool] - gitignore_template: NotRequired[str] - license_template: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - custom_properties: NotRequired[OrgsOrgReposPostBodyPropCustomPropertiesType] - - -class OrgsOrgReposPostBodyPropCustomPropertiesType(TypedDict): - """OrgsOrgReposPostBodyPropCustomProperties - - The custom properties for the new repository. The keys are the custom property - names, and the values are the corresponding custom property values. - """ - - -__all__ = ( - "OrgsOrgReposPostBodyType", - "OrgsOrgReposPostBodyPropCustomPropertiesType", -) +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__ = ("OrgsOrgInvitationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0829.py b/githubkit/versions/v2022_11_28/types/group_0829.py index 83c3d72d5..d65d3c14f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0829.py +++ b/githubkit/versions/v2022_11_28/types/group_0829.py @@ -9,79 +9,17 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0110 import RepositoryRuleUpdateType -from .group_0134 import RepositoryRuleOneof17Type -from .group_0130 import RepositoryRuleWorkflowsType -from .group_0115 import RepositoryRulePullRequestType -from .group_0106 import OrgRulesetConditionsOneof0Type -from .group_0107 import OrgRulesetConditionsOneof1Type -from .group_0108 import OrgRulesetConditionsOneof2Type -from .group_0132 import RepositoryRuleCodeScanningType -from .group_0097 import RepositoryRulesetBypassActorType -from .group_0127 import RepositoryRuleTagNamePatternType -from .group_0125 import RepositoryRuleBranchNamePatternType -from .group_0113 import RepositoryRuleRequiredDeploymentsType -from .group_0117 import RepositoryRuleRequiredStatusChecksType -from .group_0119 import RepositoryRuleCommitMessagePatternType -from .group_0123 import RepositoryRuleCommitterEmailPatternType -from .group_0121 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0112 import ( - RepositoryRuleOneof15Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0109 import ( - RepositoryRuleOneof14Type, - RepositoryRuleOneof16Type, - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +from .group_0078 import CodespaceType -class OrgsOrgRulesetsPostBodyType(TypedDict): - """OrgsOrgRulesetsPostBody""" +class OrgsOrgMembersUsernameCodespacesGetResponse200Type(TypedDict): + """OrgsOrgMembersUsernameCodespacesGetResponse200""" - name: str - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] + total_count: int + codespaces: List[CodespaceType] -__all__ = ("OrgsOrgRulesetsPostBodyType",) +__all__ = ("OrgsOrgMembersUsernameCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0830.py b/githubkit/versions/v2022_11_28/types/group_0830.py index 28e25d260..8a9c0bc90 100644 --- a/githubkit/versions/v2022_11_28/types/group_0830.py +++ b/githubkit/versions/v2022_11_28/types/group_0830.py @@ -9,79 +9,14 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0110 import RepositoryRuleUpdateType -from .group_0134 import RepositoryRuleOneof17Type -from .group_0130 import RepositoryRuleWorkflowsType -from .group_0115 import RepositoryRulePullRequestType -from .group_0106 import OrgRulesetConditionsOneof0Type -from .group_0107 import OrgRulesetConditionsOneof1Type -from .group_0108 import OrgRulesetConditionsOneof2Type -from .group_0132 import RepositoryRuleCodeScanningType -from .group_0097 import RepositoryRulesetBypassActorType -from .group_0127 import RepositoryRuleTagNamePatternType -from .group_0125 import RepositoryRuleBranchNamePatternType -from .group_0113 import RepositoryRuleRequiredDeploymentsType -from .group_0117 import RepositoryRuleRequiredStatusChecksType -from .group_0119 import RepositoryRuleCommitMessagePatternType -from .group_0123 import RepositoryRuleCommitterEmailPatternType -from .group_0121 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0112 import ( - RepositoryRuleOneof15Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0109 import ( - RepositoryRuleOneof14Type, - RepositoryRuleOneof16Type, - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +class OrgsOrgMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgMembershipsUsernamePutBody""" -class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): - """OrgsOrgRulesetsRulesetIdPutBody""" + role: NotRequired[Literal["admin", "member"]] - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] - conditions: NotRequired[ - Union[ - OrgRulesetConditionsOneof0Type, - OrgRulesetConditionsOneof1Type, - OrgRulesetConditionsOneof2Type, - ] - ] - rules: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) +__all__ = ("OrgsOrgMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0831.py b/githubkit/versions/v2022_11_28/types/group_0831.py index 2bfa5cbd0..f222d73fb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0831.py +++ b/githubkit/versions/v2022_11_28/types/group_0831.py @@ -13,19 +13,18 @@ from typing_extensions import TypedDict, NotRequired -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",) +class OrgsOrgMigrationsPostBodyType(TypedDict): + """OrgsOrgMigrationsPostBody""" + + repositories: List[str] + lock_repositories: NotRequired[bool] + exclude_metadata: NotRequired[bool] + exclude_git_data: NotRequired[bool] + exclude_attachments: NotRequired[bool] + exclude_releases: NotRequired[bool] + exclude_owner_projects: NotRequired[bool] + org_metadata_only: NotRequired[bool] + exclude: NotRequired[List[Literal["repositories"]]] + + +__all__ = ("OrgsOrgMigrationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0832.py b/githubkit/versions/v2022_11_28/types/group_0832.py index 19f0b0ccd..174eddcfe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0832.py +++ b/githubkit/versions/v2022_11_28/types/group_0832.py @@ -9,21 +9,16 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugPatchBody""" +class OrgsOrgOrganizationRolesPostBodyType(TypedDict): + """OrgsOrgOrganizationRolesPostBody""" - name: NotRequired[str] + name: str description: NotRequired[str] - privacy: NotRequired[Literal["secret", "closed"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] - ] - permission: NotRequired[Literal["pull", "push", "admin"]] - parent_team_id: NotRequired[Union[int, None]] + permissions: List[str] -__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) +__all__ = ("OrgsOrgOrganizationRolesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0833.py b/githubkit/versions/v2022_11_28/types/group_0833.py index 81e2f4f67..7b35bcb3e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0833.py +++ b/githubkit/versions/v2022_11_28/types/group_0833.py @@ -9,15 +9,16 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" +class OrgsOrgOrganizationRolesRoleIdPatchBodyType(TypedDict): + """OrgsOrgOrganizationRolesRoleIdPatchBody""" - title: str - body: str - private: NotRequired[bool] + name: NotRequired[str] + description: NotRequired[str] + permissions: NotRequired[List[str]] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) +__all__ = ("OrgsOrgOrganizationRolesRoleIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0834.py b/githubkit/versions/v2022_11_28/types/group_0834.py index 555845d86..76bef7987 100644 --- a/githubkit/versions/v2022_11_28/types/group_0834.py +++ b/githubkit/versions/v2022_11_28/types/group_0834.py @@ -12,11 +12,10 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutBodyType(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutBody""" - title: NotRequired[str] - body: NotRequired[str] + async_: NotRequired[bool] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0835.py b/githubkit/versions/v2022_11_28/types/group_0835.py index a05290583..5de4170f2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0835.py +++ b/githubkit/versions/v2022_11_28/types/group_0835.py @@ -12,10 +12,8 @@ from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" +class OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernamePutResponse202""" - body: str - -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernamePutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0836.py b/githubkit/versions/v2022_11_28/types/group_0836.py index a6b974137..c6b448fef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0836.py +++ b/githubkit/versions/v2022_11_28/types/group_0836.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type(TypedDict): + """OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422""" - body: str + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", -) +__all__ = ("OrgsOrgOutsideCollaboratorsUsernameDeleteResponse422Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0837.py b/githubkit/versions/v2022_11_28/types/group_0837.py index 937b98f91..606354a4b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0837.py +++ b/githubkit/versions/v2022_11_28/types/group_0837.py @@ -9,22 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos - tBody - """ +class OrgsOrgPersonalAccessTokenRequestsPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + pat_request_ids: NotRequired[List[int]] + action: Literal["approve", "deny"] + reason: NotRequired[Union[str, None]] -__all__ = ( - "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0838.py b/githubkit/versions/v2022_11_28/types/group_0838.py index c71526f64..4fc23e50a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0838.py +++ b/githubkit/versions/v2022_11_28/types/group_0838.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" +class OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + action: Literal["approve", "deny"] + reason: NotRequired[Union[str, None]] -__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokenRequestsPatRequestIdPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0839.py b/githubkit/versions/v2022_11_28/types/group_0839.py index 3551630af..23297838b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0839.py +++ b/githubkit/versions/v2022_11_28/types/group_0839.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List, Literal +from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" +class OrgsOrgPersonalAccessTokensPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPostBody""" - role: NotRequired[Literal["member", "maintainer"]] + action: Literal["revoke"] + pat_ids: List[int] -__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokensPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0840.py b/githubkit/versions/v2022_11_28/types/group_0840.py index 4e75e8844..32c37cd97 100644 --- a/githubkit/versions/v2022_11_28/types/group_0840.py +++ b/githubkit/versions/v2022_11_28/types/group_0840.py @@ -10,13 +10,13 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" +class OrgsOrgPersonalAccessTokensPatIdPostBodyType(TypedDict): + """OrgsOrgPersonalAccessTokensPatIdPostBody""" - permission: NotRequired[Literal["read", "write", "admin"]] + action: Literal["revoke"] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) +__all__ = ("OrgsOrgPersonalAccessTokensPatIdPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0841.py b/githubkit/versions/v2022_11_28/types/group_0841.py index 42d481609..afad09a25 100644 --- a/githubkit/versions/v2022_11_28/types/group_0841.py +++ b/githubkit/versions/v2022_11_28/types/group_0841.py @@ -12,11 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): - """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" +class OrgsOrgProjectsPostBodyType(TypedDict): + """OrgsOrgProjectsPostBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + name: str + body: NotRequired[str] -__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) +__all__ = ("OrgsOrgProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0842.py b/githubkit/versions/v2022_11_28/types/group_0842.py index 0851e1500..856220a32 100644 --- a/githubkit/versions/v2022_11_28/types/group_0842.py +++ b/githubkit/versions/v2022_11_28/types/group_0842.py @@ -9,13 +9,16 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0097 import OrgCustomPropertyType -class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): - """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - permission: NotRequired[str] +class OrgsOrgPropertiesSchemaPatchBodyType(TypedDict): + """OrgsOrgPropertiesSchemaPatchBody""" + properties: List[OrgCustomPropertyType] -__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) + +__all__ = ("OrgsOrgPropertiesSchemaPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0843.py b/githubkit/versions/v2022_11_28/types/group_0843.py index 5ef349fe1..fef4a5519 100644 --- a/githubkit/versions/v2022_11_28/types/group_0843.py +++ b/githubkit/versions/v2022_11_28/types/group_0843.py @@ -9,14 +9,18 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): - """OrgsOrgSecurityProductEnablementPostBody""" +class OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType(TypedDict): + """OrgsOrgPropertiesSchemaCustomPropertyNamePutBody""" - query_suite: NotRequired[Literal["default", "extended"]] + value_type: Literal["string", "single_select", "multi_select", "true_false"] + required: NotRequired[bool] + default_value: NotRequired[Union[str, List[str], None]] + description: NotRequired[Union[str, None]] + allowed_values: NotRequired[Union[List[str], None]] -__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) +__all__ = ("OrgsOrgPropertiesSchemaCustomPropertyNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0844.py b/githubkit/versions/v2022_11_28/types/group_0844.py index 90b8767cf..137184541 100644 --- a/githubkit/versions/v2022_11_28/types/group_0844.py +++ b/githubkit/versions/v2022_11_28/types/group_0844.py @@ -10,15 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0098 import CustomPropertyValueType -class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdDeleteResponse403""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[List[str]] +class OrgsOrgPropertiesValuesPatchBodyType(TypedDict): + """OrgsOrgPropertiesValuesPatchBody""" + repository_names: List[str] + properties: List[CustomPropertyValueType] -__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) + +__all__ = ("OrgsOrgPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0845.py b/githubkit/versions/v2022_11_28/types/group_0845.py index 201f880aa..45d01becb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0845.py +++ b/githubkit/versions/v2022_11_28/types/group_0845.py @@ -9,15 +9,51 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): - """ProjectsColumnsCardsCardIdPatchBody""" - - note: NotRequired[Union[str, None]] - archived: NotRequired[bool] - - -__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) +class OrgsOrgReposPostBodyType(TypedDict): + """OrgsOrgReposPostBody""" + + name: str + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + visibility: NotRequired[Literal["public", "private"]] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_downloads: NotRequired[bool] + is_template: NotRequired[bool] + team_id: NotRequired[int] + auto_init: NotRequired[bool] + gitignore_template: NotRequired[str] + license_template: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + custom_properties: NotRequired[OrgsOrgReposPostBodyPropCustomPropertiesType] + + +class OrgsOrgReposPostBodyPropCustomPropertiesType(TypedDict): + """OrgsOrgReposPostBodyPropCustomProperties + + The custom properties for the new repository. The keys are the custom property + names, and the values are the corresponding custom property values. + """ + + +__all__ = ( + "OrgsOrgReposPostBodyType", + "OrgsOrgReposPostBodyPropCustomPropertiesType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0846.py b/githubkit/versions/v2022_11_28/types/group_0846.py index 6ae64aa6a..b41ffe205 100644 --- a/githubkit/versions/v2022_11_28/types/group_0846.py +++ b/githubkit/versions/v2022_11_28/types/group_0846.py @@ -9,14 +9,79 @@ from __future__ import annotations +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0115 import RepositoryRuleUpdateType +from .group_0139 import RepositoryRuleOneof17Type +from .group_0135 import RepositoryRuleWorkflowsType +from .group_0120 import RepositoryRulePullRequestType +from .group_0111 import OrgRulesetConditionsOneof0Type +from .group_0112 import OrgRulesetConditionsOneof1Type +from .group_0113 import OrgRulesetConditionsOneof2Type +from .group_0137 import RepositoryRuleCodeScanningType +from .group_0102 import RepositoryRulesetBypassActorType +from .group_0132 import RepositoryRuleTagNamePatternType +from .group_0130 import RepositoryRuleBranchNamePatternType +from .group_0118 import RepositoryRuleRequiredDeploymentsType +from .group_0122 import RepositoryRuleRequiredStatusChecksType +from .group_0124 import RepositoryRuleCommitMessagePatternType +from .group_0128 import RepositoryRuleCommitterEmailPatternType +from .group_0126 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0117 import ( + RepositoryRuleOneof15Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0114 import ( + RepositoryRuleOneof14Type, + RepositoryRuleOneof16Type, + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostBody""" - position: str - column_id: NotRequired[int] +class OrgsOrgRulesetsPostBodyType(TypedDict): + """OrgsOrgRulesetsPostBody""" + name: str + target: NotRequired[Literal["branch", "tag", "push"]] + enforcement: Literal["disabled", "active", "evaluate"] + bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + ] + ] + rules: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) + +__all__ = ("OrgsOrgRulesetsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0847.py b/githubkit/versions/v2022_11_28/types/group_0847.py index 7c136f63a..a9d7029fc 100644 --- a/githubkit/versions/v2022_11_28/types/group_0847.py +++ b/githubkit/versions/v2022_11_28/types/group_0847.py @@ -9,11 +9,79 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired +from .group_0115 import RepositoryRuleUpdateType +from .group_0139 import RepositoryRuleOneof17Type +from .group_0135 import RepositoryRuleWorkflowsType +from .group_0120 import RepositoryRulePullRequestType +from .group_0111 import OrgRulesetConditionsOneof0Type +from .group_0112 import OrgRulesetConditionsOneof1Type +from .group_0113 import OrgRulesetConditionsOneof2Type +from .group_0137 import RepositoryRuleCodeScanningType +from .group_0102 import RepositoryRulesetBypassActorType +from .group_0132 import RepositoryRuleTagNamePatternType +from .group_0130 import RepositoryRuleBranchNamePatternType +from .group_0118 import RepositoryRuleRequiredDeploymentsType +from .group_0122 import RepositoryRuleRequiredStatusChecksType +from .group_0124 import RepositoryRuleCommitMessagePatternType +from .group_0128 import RepositoryRuleCommitterEmailPatternType +from .group_0126 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0117 import ( + RepositoryRuleOneof15Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0114 import ( + RepositoryRuleOneof14Type, + RepositoryRuleOneof16Type, + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse201""" +class OrgsOrgRulesetsRulesetIdPutBodyType(TypedDict): + """OrgsOrgRulesetsRulesetIdPutBody""" -__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) + name: NotRequired[str] + target: NotRequired[Literal["branch", "tag", "push"]] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] + conditions: NotRequired[ + Union[ + OrgRulesetConditionsOneof0Type, + OrgRulesetConditionsOneof1Type, + OrgRulesetConditionsOneof2Type, + ] + ] + rules: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] + + +__all__ = ("OrgsOrgRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0848.py b/githubkit/versions/v2022_11_28/types/group_0848.py index dd0f1fcf5..2bfa5cbd0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0848.py +++ b/githubkit/versions/v2022_11_28/types/group_0848.py @@ -9,30 +9,23 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403""" +class OrgsOrgTeamsPostBodyType(TypedDict): + """OrgsOrgTeamsPostBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] + name: str + description: NotRequired[str] + maintainers: NotRequired[List[str]] + repo_names: NotRequired[List[str]] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] ] + permission: NotRequired[Literal["pull", "push"]] + parent_team_id: NotRequired[int] -class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - resource: NotRequired[str] - field: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse403Type", - "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", -) +__all__ = ("OrgsOrgTeamsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0849.py b/githubkit/versions/v2022_11_28/types/group_0849.py index b4b6ae8c8..19f0b0ccd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0849.py +++ b/githubkit/versions/v2022_11_28/types/group_0849.py @@ -9,29 +9,21 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503""" +class OrgsOrgTeamsTeamSlugPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugPatchBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] + name: NotRequired[str] + description: NotRequired[str] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] ] + permission: NotRequired[Literal["pull", "push", "admin"]] + parent_team_id: NotRequired[Union[int, None]] -class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] - - -__all__ = ( - "ProjectsColumnsCardsCardIdMovesPostResponse503Type", - "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", -) +__all__ = ("OrgsOrgTeamsTeamSlugPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0850.py b/githubkit/versions/v2022_11_28/types/group_0850.py index 62ebaaaef..81e2f4f67 100644 --- a/githubkit/versions/v2022_11_28/types/group_0850.py +++ b/githubkit/versions/v2022_11_28/types/group_0850.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsColumnIdPatchBodyType(TypedDict): - """ProjectsColumnsColumnIdPatchBody""" +class OrgsOrgTeamsTeamSlugDiscussionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsPostBody""" - name: str + title: str + body: str + private: NotRequired[bool] -__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0851.py b/githubkit/versions/v2022_11_28/types/group_0851.py index 1fdc1bf2e..555845d86 100644 --- a/githubkit/versions/v2022_11_28/types/group_0851.py +++ b/githubkit/versions/v2022_11_28/types/group_0851.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof0""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBody""" - note: Union[str, None] + title: NotRequired[str] + body: NotRequired[str] -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0852.py b/githubkit/versions/v2022_11_28/types/group_0852.py index 93c271e2e..a05290583 100644 --- a/githubkit/versions/v2022_11_28/types/group_0852.py +++ b/githubkit/versions/v2022_11_28/types/group_0852.py @@ -12,11 +12,10 @@ from typing_extensions import TypedDict -class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostBodyOneof1""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBody""" - content_id: int - content_type: str + body: str -__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0853.py b/githubkit/versions/v2022_11_28/types/group_0853.py index ff00e5f62..a6b974137 100644 --- a/githubkit/versions/v2022_11_28/types/group_0853.py +++ b/githubkit/versions/v2022_11_28/types/group_0853.py @@ -9,29 +9,17 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( + TypedDict +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - code: NotRequired[str] - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[ - List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] - ] - - -class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): - """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" - - code: NotRequired[str] - message: NotRequired[str] + body: str __all__ = ( - "ProjectsColumnsColumnIdCardsPostResponse503Type", - "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0854.py b/githubkit/versions/v2022_11_28/types/group_0854.py index 1eee63273..937b98f91 100644 --- a/githubkit/versions/v2022_11_28/types/group_0854.py +++ b/githubkit/versions/v2022_11_28/types/group_0854.py @@ -9,13 +9,22 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): - """ProjectsColumnsColumnIdMovesPostBody""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPos + tBody + """ - position: str + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) +__all__ = ( + "OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0855.py b/githubkit/versions/v2022_11_28/types/group_0855.py index 7df563c61..c71526f64 100644 --- a/githubkit/versions/v2022_11_28/types/group_0855.py +++ b/githubkit/versions/v2022_11_28/types/group_0855.py @@ -9,11 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): - """ProjectsColumnsColumnIdMovesPostResponse201""" +class OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBody""" + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) + +__all__ = ("OrgsOrgTeamsTeamSlugDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0856.py b/githubkit/versions/v2022_11_28/types/group_0856.py index 9109dd1f5..3551630af 100644 --- a/githubkit/versions/v2022_11_28/types/group_0856.py +++ b/githubkit/versions/v2022_11_28/types/group_0856.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdDeleteResponse403Type(TypedDict): - """ProjectsProjectIdDeleteResponse403""" +class OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugMembershipsUsernamePutBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] - errors: NotRequired[List[str]] + role: NotRequired[Literal["member", "maintainer"]] -__all__ = ("ProjectsProjectIdDeleteResponse403Type",) +__all__ = ("OrgsOrgTeamsTeamSlugMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0857.py b/githubkit/versions/v2022_11_28/types/group_0857.py index c0a6113f3..4e75e8844 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 import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdPatchBodyType(TypedDict): - """ProjectsProjectIdPatchBody""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutBody""" - name: NotRequired[str] - body: NotRequired[Union[str, None]] - state: NotRequired[str] - organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] - private: NotRequired[bool] + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("ProjectsProjectIdPatchBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0858.py b/githubkit/versions/v2022_11_28/types/group_0858.py index 86724eccf..42d481609 100644 --- a/githubkit/versions/v2022_11_28/types/group_0858.py +++ b/githubkit/versions/v2022_11_28/types/group_0858.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdPatchResponse403Type(TypedDict): - """ProjectsProjectIdPatchResponse403""" +class OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type(TypedDict): + """OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403""" message: NotRequired[str] documentation_url: NotRequired[str] - errors: NotRequired[List[str]] -__all__ = ("ProjectsProjectIdPatchResponse403Type",) +__all__ = ("OrgsOrgTeamsTeamSlugProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0859.py b/githubkit/versions/v2022_11_28/types/group_0859.py index 42de766b0..0851e1500 100644 --- a/githubkit/versions/v2022_11_28/types/group_0859.py +++ b/githubkit/versions/v2022_11_28/types/group_0859.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): - """ProjectsProjectIdCollaboratorsUsernamePutBody""" +class OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType(TypedDict): + """OrgsOrgTeamsTeamSlugReposOwnerRepoPutBody""" - permission: NotRequired[Literal["read", "write", "admin"]] + permission: NotRequired[str] -__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) +__all__ = ("OrgsOrgTeamsTeamSlugReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0860.py b/githubkit/versions/v2022_11_28/types/group_0860.py index 8c02d8953..5ef349fe1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0860.py +++ b/githubkit/versions/v2022_11_28/types/group_0860.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ProjectsProjectIdColumnsPostBodyType(TypedDict): - """ProjectsProjectIdColumnsPostBody""" +class OrgsOrgSecurityProductEnablementPostBodyType(TypedDict): + """OrgsOrgSecurityProductEnablementPostBody""" - name: str + query_suite: NotRequired[Literal["default", "extended"]] -__all__ = ("ProjectsProjectIdColumnsPostBodyType",) +__all__ = ("OrgsOrgSecurityProductEnablementPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0861.py b/githubkit/versions/v2022_11_28/types/group_0861.py index f63d55222..90b8767cf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0861.py +++ b/githubkit/versions/v2022_11_28/types/group_0861.py @@ -9,14 +9,16 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDeleteResponse403Type(TypedDict): - """ReposOwnerRepoDeleteResponse403""" +class ProjectsColumnsCardsCardIdDeleteResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdDeleteResponse403""" message: NotRequired[str] documentation_url: NotRequired[str] + errors: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoDeleteResponse403Type",) +__all__ = ("ProjectsColumnsCardsCardIdDeleteResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0862.py b/githubkit/versions/v2022_11_28/types/group_0862.py index 6a46995fe..201f880aa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0862.py +++ b/githubkit/versions/v2022_11_28/types/group_0862.py @@ -9,116 +9,15 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPatchBodyType(TypedDict): - """ReposOwnerRepoPatchBody""" +class ProjectsColumnsCardsCardIdPatchBodyType(TypedDict): + """ProjectsColumnsCardsCardIdPatchBody""" - name: NotRequired[str] - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - visibility: NotRequired[Literal["public", "private"]] - security_and_analysis: NotRequired[ - Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, None] - ] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - is_template: NotRequired[bool] - default_branch: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - allow_update_branch: NotRequired[bool] - use_squash_pr_title_as_default: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + note: NotRequired[Union[str, None]] archived: NotRequired[bool] - allow_forking: NotRequired[bool] - web_commit_signoff_required: NotRequired[bool] -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis - - Specify which security and analysis features to enable or disable for the - repository. - - To use this parameter, you must have admin permissions for the repository or be - an owner or security manager for the organization that owns the repository. For - more information, see "[Managing security managers in your - organization](https://docs.github.com/organizations/managing-peoples-access-to- - your-organization-with-roles/managing-security-managers-in-your-organization)." - - For example, to enable GitHub Advanced Security, use this data in the body of - the `PATCH` request: - `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. - - You can check which security and analysis features are currently enabled by - using a `GET /repos/{owner}/{repo}` request. - """ - - advanced_security: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType - ] - secret_scanning: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType - ] - secret_scanning_push_protection: NotRequired[ - ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType - ] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity - - Use the `status` property to enable or disable GitHub Advanced Security for this - repository. For more information, see "[About GitHub Advanced - Security](/github/getting-started-with-github/learning-about-github/about- - github-advanced-security)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType(TypedDict): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning - - Use the `status` property to enable or disable secret scanning for this - repository. For more information, see "[About secret scanning](/code- - security/secret-security/about-secret-scanning)." - """ - - status: NotRequired[str] - - -class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType( - TypedDict -): - """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection - - Use the `status` property to enable or disable secret scanning push protection - for this repository. For more information, see "[Protecting pushes with secret - scanning](/code-security/secret-scanning/protecting-pushes-with-secret- - scanning)." - """ - - status: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoPatchBodyType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", - "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", -) +__all__ = ("ProjectsColumnsCardsCardIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0863.py b/githubkit/versions/v2022_11_28/types/group_0863.py index da11bdbe9..6ae64aa6a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0863.py +++ b/githubkit/versions/v2022_11_28/types/group_0863.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0156 import ArtifactType +class ProjectsColumnsCardsCardIdMovesPostBodyType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostBody""" -class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsArtifactsGetResponse200""" + position: str + column_id: NotRequired[int] - total_count: int - artifacts: List[ArtifactType] - -__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0864.py b/githubkit/versions/v2022_11_28/types/group_0864.py index 2956c520b..7c136f63a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0864.py +++ b/githubkit/versions/v2022_11_28/types/group_0864.py @@ -9,13 +9,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" +class ProjectsColumnsCardsCardIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse201""" - enable_debug_logging: NotRequired[bool] - -__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) +__all__ = ("ProjectsColumnsCardsCardIdMovesPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0865.py b/githubkit/versions/v2022_11_28/types/group_0865.py index 47a8c99be..dd0f1fcf5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0865.py +++ b/githubkit/versions/v2022_11_28/types/group_0865.py @@ -13,14 +13,26 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): - """Actions OIDC subject customization for a repository +class ProjectsColumnsCardsCardIdMovesPostResponse403Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403""" - Actions OIDC subject customization for a repository - """ + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + List[ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType] + ] - use_default: bool - include_claim_keys: NotRequired[List[str]] +class ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItems""" -__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) + code: NotRequired[str] + message: NotRequired[str] + resource: NotRequired[str] + field: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse403Type", + "ProjectsColumnsCardsCardIdMovesPostResponse403PropErrorsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0866.py b/githubkit/versions/v2022_11_28/types/group_0866.py index 4f1523f82..b4b6ae8c8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0866.py +++ b/githubkit/versions/v2022_11_28/types/group_0866.py @@ -10,16 +10,28 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0160 import ActionsSecretType +class ProjectsColumnsCardsCardIdMovesPostResponse503Type(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503""" -class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + List[ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType] + ] - total_count: int - secrets: List[ActionsSecretType] +class ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItems""" -__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) + code: NotRequired[str] + message: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsCardsCardIdMovesPostResponse503Type", + "ProjectsColumnsCardsCardIdMovesPostResponse503PropErrorsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0867.py b/githubkit/versions/v2022_11_28/types/group_0867.py index 7f1e0c201..62ebaaaef 100644 --- a/githubkit/versions/v2022_11_28/types/group_0867.py +++ b/githubkit/versions/v2022_11_28/types/group_0867.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -from .group_0161 import ActionsVariableType +class ProjectsColumnsColumnIdPatchBodyType(TypedDict): + """ProjectsColumnsColumnIdPatchBody""" -class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + name: str - total_count: int - variables: List[ActionsVariableType] - -__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) +__all__ = ("ProjectsColumnsColumnIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0868.py b/githubkit/versions/v2022_11_28/types/group_0868.py index a82dcbc99..1fdc1bf2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0868.py +++ b/githubkit/versions/v2022_11_28/types/group_0868.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import Union +from typing_extensions import TypedDict -class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): - """ReposOwnerRepoActionsPermissionsPutBody""" +class ProjectsColumnsColumnIdCardsPostBodyOneof0Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof0""" - enabled: bool - allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] + note: Union[str, None] -__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0869.py b/githubkit/versions/v2022_11_28/types/group_0869.py index 2d4058f88..93c271e2e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0869.py +++ b/githubkit/versions/v2022_11_28/types/group_0869.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -from .group_0063 import RunnerType +class ProjectsColumnsColumnIdCardsPostBodyOneof1Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostBodyOneof1""" -class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunnersGetResponse200""" + content_id: int + content_type: str - total_count: int - runners: List[RunnerType] - -__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) +__all__ = ("ProjectsColumnsColumnIdCardsPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0870.py b/githubkit/versions/v2022_11_28/types/group_0870.py index 97ef4a4a4..ff00e5f62 100644 --- a/githubkit/versions/v2022_11_28/types/group_0870.py +++ b/githubkit/versions/v2022_11_28/types/group_0870.py @@ -13,13 +13,25 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" +class ProjectsColumnsColumnIdCardsPostResponse503Type(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503""" - name: str - runner_group_id: int - labels: List[str] - work_folder: NotRequired[str] + code: NotRequired[str] + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[ + List[ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType] + ] -__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) +class ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType(TypedDict): + """ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItems""" + + code: NotRequired[str] + message: NotRequired[str] + + +__all__ = ( + "ProjectsColumnsColumnIdCardsPostResponse503Type", + "ProjectsColumnsColumnIdCardsPostResponse503PropErrorsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0871.py b/githubkit/versions/v2022_11_28/types/group_0871.py index cfeabe90a..1eee63273 100644 --- a/githubkit/versions/v2022_11_28/types/group_0871.py +++ b/githubkit/versions/v2022_11_28/types/group_0871.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" +class ProjectsColumnsColumnIdMovesPostBodyType(TypedDict): + """ProjectsColumnsColumnIdMovesPostBody""" - labels: List[str] + position: str -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) +__all__ = ("ProjectsColumnsColumnIdMovesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0872.py b/githubkit/versions/v2022_11_28/types/group_0872.py index 1162ab0c2..7df563c61 100644 --- a/githubkit/versions/v2022_11_28/types/group_0872.py +++ b/githubkit/versions/v2022_11_28/types/group_0872.py @@ -9,14 +9,11 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" +class ProjectsColumnsColumnIdMovesPostResponse201Type(TypedDict): + """ProjectsColumnsColumnIdMovesPostResponse201""" - labels: List[str] - -__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) +__all__ = ("ProjectsColumnsColumnIdMovesPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0873.py b/githubkit/versions/v2022_11_28/types/group_0873.py index 58a19103f..9109dd1f5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0873.py +++ b/githubkit/versions/v2022_11_28/types/group_0873.py @@ -10,16 +10,15 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0166 import WorkflowRunType +class ProjectsProjectIdDeleteResponse403Type(TypedDict): + """ProjectsProjectIdDeleteResponse403""" -class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsGetResponse200""" + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[List[str]] - total_count: int - workflow_runs: List[WorkflowRunType] - -__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) +__all__ = ("ProjectsProjectIdDeleteResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0874.py b/githubkit/versions/v2022_11_28/types/group_0874.py index c37480aef..c0a6113f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0874.py +++ b/githubkit/versions/v2022_11_28/types/group_0874.py @@ -9,17 +9,18 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0156 import ArtifactType +class ProjectsProjectIdPatchBodyType(TypedDict): + """ProjectsProjectIdPatchBody""" -class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + name: NotRequired[str] + body: NotRequired[Union[str, None]] + state: NotRequired[str] + organization_permission: NotRequired[Literal["read", "write", "admin", "none"]] + private: NotRequired[bool] - total_count: int - artifacts: List[ArtifactType] - -__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) +__all__ = ("ProjectsProjectIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0875.py b/githubkit/versions/v2022_11_28/types/group_0875.py index 9464a6e57..86724eccf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0875.py +++ b/githubkit/versions/v2022_11_28/types/group_0875.py @@ -10,18 +10,15 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0158 import JobType +class ProjectsProjectIdPatchResponse403Type(TypedDict): + """ProjectsProjectIdPatchResponse403""" -class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" + message: NotRequired[str] + documentation_url: NotRequired[str] + errors: NotRequired[List[str]] - total_count: int - jobs: List[JobType] - -__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) +__all__ = ("ProjectsProjectIdPatchResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0876.py b/githubkit/versions/v2022_11_28/types/group_0876.py index 81118e70c..42de766b0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0876.py +++ b/githubkit/versions/v2022_11_28/types/group_0876.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -from .group_0158 import JobType +class ProjectsProjectIdCollaboratorsUsernamePutBodyType(TypedDict): + """ProjectsProjectIdCollaboratorsUsernamePutBody""" -class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" + permission: NotRequired[Literal["read", "write", "admin"]] - total_count: int - jobs: List[JobType] - -__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) +__all__ = ("ProjectsProjectIdCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0877.py b/githubkit/versions/v2022_11_28/types/group_0877.py index 88fd8a6dd..8c02d8953 100644 --- a/githubkit/versions/v2022_11_28/types/group_0877.py +++ b/githubkit/versions/v2022_11_28/types/group_0877.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import List, Literal from typing_extensions import TypedDict -class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" +class ProjectsProjectIdColumnsPostBodyType(TypedDict): + """ProjectsProjectIdColumnsPostBody""" - environment_ids: List[int] - state: Literal["approved", "rejected"] - comment: str + name: str -__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) +__all__ = ("ProjectsProjectIdColumnsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0878.py b/githubkit/versions/v2022_11_28/types/group_0878.py index c33d4529b..f63d55222 100644 --- a/githubkit/versions/v2022_11_28/types/group_0878.py +++ b/githubkit/versions/v2022_11_28/types/group_0878.py @@ -12,10 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" +class ReposOwnerRepoDeleteResponse403Type(TypedDict): + """ReposOwnerRepoDeleteResponse403""" - enable_debug_logging: NotRequired[bool] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) +__all__ = ("ReposOwnerRepoDeleteResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0879.py b/githubkit/versions/v2022_11_28/types/group_0879.py index 1160daba0..2d5f66d33 100644 --- a/githubkit/versions/v2022_11_28/types/group_0879.py +++ b/githubkit/versions/v2022_11_28/types/group_0879.py @@ -9,13 +9,135 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): - """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" +class ReposOwnerRepoPatchBodyType(TypedDict): + """ReposOwnerRepoPatchBody""" - enable_debug_logging: NotRequired[bool] + name: NotRequired[str] + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + visibility: NotRequired[Literal["public", "private"]] + security_and_analysis: NotRequired[ + Union[ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType, None] + ] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + is_template: NotRequired[bool] + default_branch: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + allow_update_branch: NotRequired[bool] + use_squash_pr_title_as_default: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + archived: NotRequired[bool] + allow_forking: NotRequired[bool] + web_commit_signoff_required: NotRequired[bool] -__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysis + + Specify which security and analysis features to enable or disable for the + repository. + + To use this parameter, you must have admin permissions for the repository or be + an owner or security manager for the organization that owns the repository. For + more information, see "[Managing security managers in your + organization](https://docs.github.com/organizations/managing-peoples-access-to- + your-organization-with-roles/managing-security-managers-in-your-organization)." + + For example, to enable GitHub Advanced Security, use this data in the body of + the `PATCH` request: + `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. + + You can check which security and analysis features are currently enabled by + using a `GET /repos/{owner}/{repo}` request. + """ + + advanced_security: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType + ] + secret_scanning: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType + ] + secret_scanning_push_protection: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType + ] + secret_scanning_non_provider_patterns: NotRequired[ + ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType + ] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurity + + Use the `status` property to enable or disable GitHub Advanced Security for this + repository. For more information, see "[About GitHub Advanced + Security](/github/getting-started-with-github/learning-about-github/about- + github-advanced-security)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType(TypedDict): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanning + + Use the `status` property to enable or disable secret scanning for this + repository. For more information, see "[About secret scanning](/code- + security/secret-security/about-secret-scanning)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtection + + Use the `status` property to enable or disable secret scanning push protection + for this repository. For more information, see "[Protecting pushes with secret + scanning](/code-security/secret-scanning/protecting-pushes-with-secret- + scanning)." + """ + + status: NotRequired[str] + + +class ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType( + TypedDict +): + """ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatte + rns + + Use the `status` property to enable or disable secret scanning non-provider + patterns for this repository. For more information, see "[Secret scanning + supported secrets](/code-security/secret-scanning/secret-scanning- + patterns#supported-secrets)." + """ + + status: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoPatchBodyType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropAdvancedSecurityType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningPushProtectionType", + "ReposOwnerRepoPatchBodyPropSecurityAndAnalysisPropSecretScanningNonProviderPatternsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0880.py b/githubkit/versions/v2022_11_28/types/group_0880.py index b88d26a62..461bdbfb1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0880.py +++ b/githubkit/versions/v2022_11_28/types/group_0880.py @@ -12,14 +12,14 @@ from typing import List from typing_extensions import TypedDict -from .group_0160 import ActionsSecretType +from .group_0161 import ArtifactType -class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsSecretsGetResponse200""" +class ReposOwnerRepoActionsArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsArtifactsGetResponse200""" total_count: int - secrets: List[ActionsSecretType] + artifacts: List[ArtifactType] -__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsArtifactsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0881.py b/githubkit/versions/v2022_11_28/types/group_0881.py index c1ad71389..2956c520b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0881.py +++ b/githubkit/versions/v2022_11_28/types/group_0881.py @@ -12,11 +12,10 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoActionsSecretsSecretNamePutBody""" +class ReposOwnerRepoActionsJobsJobIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsJobsJobIdRerunPostBody""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + enable_debug_logging: NotRequired[bool] -__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoActionsJobsJobIdRerunPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0882.py b/githubkit/versions/v2022_11_28/types/group_0882.py index 70c2a3364..47a8c99be 100644 --- a/githubkit/versions/v2022_11_28/types/group_0882.py +++ b/githubkit/versions/v2022_11_28/types/group_0882.py @@ -10,16 +10,17 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0161 import ActionsVariableType +class ReposOwnerRepoActionsOidcCustomizationSubPutBodyType(TypedDict): + """Actions OIDC subject customization for a repository -class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsVariablesGetResponse200""" + Actions OIDC subject customization for a repository + """ - total_count: int - variables: List[ActionsVariableType] + use_default: bool + include_claim_keys: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsOidcCustomizationSubPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0883.py b/githubkit/versions/v2022_11_28/types/group_0883.py index a5b1bcda1..5b4834926 100644 --- a/githubkit/versions/v2022_11_28/types/group_0883.py +++ b/githubkit/versions/v2022_11_28/types/group_0883.py @@ -9,14 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0165 import ActionsSecretType -class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesPostBody""" - name: str - value: str +class ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationSecretsGetResponse200""" + total_count: int + secrets: List[ActionsSecretType] -__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) + +__all__ = ("ReposOwnerRepoActionsOrganizationSecretsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0884.py b/githubkit/versions/v2022_11_28/types/group_0884.py index ad7d7d522..c26dd2053 100644 --- a/githubkit/versions/v2022_11_28/types/group_0884.py +++ b/githubkit/versions/v2022_11_28/types/group_0884.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0166 import ActionsVariableType -class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoActionsVariablesNamePatchBody""" - name: NotRequired[str] - value: NotRequired[str] +class ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsOrganizationVariablesGetResponse200""" + total_count: int + variables: List[ActionsVariableType] -__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) + +__all__ = ("ReposOwnerRepoActionsOrganizationVariablesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0885.py b/githubkit/versions/v2022_11_28/types/group_0885.py index 20e7c3509..a82dcbc99 100644 --- a/githubkit/versions/v2022_11_28/types/group_0885.py +++ b/githubkit/versions/v2022_11_28/types/group_0885.py @@ -9,40 +9,15 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsGetResponse200""" +class ReposOwnerRepoActionsPermissionsPutBodyType(TypedDict): + """ReposOwnerRepoActionsPermissionsPutBody""" - total_count: int - workflows: List[WorkflowType] + enabled: bool + allowed_actions: NotRequired[Literal["all", "local_only", "selected"]] -class WorkflowType(TypedDict): - """Workflow - - A GitHub Actions workflow - """ - - id: int - node_id: str - name: str - path: str - state: Literal[ - "active", "deleted", "disabled_fork", "disabled_inactivity", "disabled_manually" - ] - created_at: datetime - updated_at: datetime - url: str - html_url: str - badge_url: str - deleted_at: NotRequired[datetime] - - -__all__ = ( - "ReposOwnerRepoActionsWorkflowsGetResponse200Type", - "WorkflowType", -) +__all__ = ("ReposOwnerRepoActionsPermissionsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0886.py b/githubkit/versions/v2022_11_28/types/group_0886.py index 08a15748d..fc095dd13 100644 --- a/githubkit/versions/v2022_11_28/types/group_0886.py +++ b/githubkit/versions/v2022_11_28/types/group_0886.py @@ -9,30 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0066 import RunnerType -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" - ref: str - inputs: NotRequired[ - ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType - ] +class ReposOwnerRepoActionsRunnersGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunnersGetResponse200""" + total_count: int + runners: List[RunnerType] -class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType( - TypedDict -): - """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__ = ( - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", - "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", -) +__all__ = ("ReposOwnerRepoActionsRunnersGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0887.py b/githubkit/versions/v2022_11_28/types/group_0887.py index 6d99fc4ef..97ef4a4a4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0887.py +++ b/githubkit/versions/v2022_11_28/types/group_0887.py @@ -10,16 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0166 import WorkflowRunType +class ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersGenerateJitconfigPostBody""" -class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + name: str + runner_group_id: int + labels: List[str] + work_folder: NotRequired[str] - total_count: int - workflow_runs: List[WorkflowRunType] - -__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) +__all__ = ("ReposOwnerRepoActionsRunnersGenerateJitconfigPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0888.py b/githubkit/versions/v2022_11_28/types/group_0888.py index a77eacf3e..cfeabe90a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0888.py +++ b/githubkit/versions/v2022_11_28/types/group_0888.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoAutolinksPostBodyType(TypedDict): - """ReposOwnerRepoAutolinksPostBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBody""" - key_prefix: str - url_template: str - is_alphanumeric: NotRequired[bool] + labels: List[str] -__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0889.py b/githubkit/versions/v2022_11_28/types/group_0889.py index 5daf56489..1162ab0c2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0889.py +++ b/githubkit/versions/v2022_11_28/types/group_0889.py @@ -9,132 +9,14 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionPutBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionPutBody""" +class ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBody""" - 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] + labels: List[str] -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecks - - Require status checks to pass before merging. Set to `null` to disable. - """ - - strict: bool - contexts: List[str] - checks: NotRequired[ - List[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType - ] - ] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI - tems - """ - - context: str - app_id: NotRequired[int] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews - - Require at least one approving review on a pull request, before merging. Set to - `null` to disable. - """ - - dismissal_restrictions: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType - ] - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - bypass_pull_request_allowances: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType - ] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD - ismissalRestrictions - - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: NotRequired[List[str]] - teams: NotRequired[List[str]] - apps: NotRequired[List[str]] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB - ypassPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: NotRequired[List[str]] - teams: NotRequired[List[str]] - apps: NotRequired[List[str]] - - -class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType(TypedDict): - """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions - - Restrict who can push to the protected branch. User, app, and team - `restrictions` are only available for organization-owned repositories. Set to - `null` to disable. - """ - - users: List[str] - teams: List[str] - apps: NotRequired[List[str]] - - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionPutBodyType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", - "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", -) +__all__ = ("ReposOwnerRepoActionsRunnersRunnerIdLabelsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0890.py b/githubkit/versions/v2022_11_28/types/group_0890.py index d51a66b7c..ea89de642 100644 --- a/githubkit/versions/v2022_11_28/types/group_0890.py +++ b/githubkit/versions/v2022_11_28/types/group_0890.py @@ -10,59 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0171 import WorkflowRunType -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" - dismissal_restrictions: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType - ] - dismiss_stale_reviews: NotRequired[bool] - require_code_owner_reviews: NotRequired[bool] - required_approving_review_count: NotRequired[int] - require_last_push_approval: NotRequired[bool] - bypass_pull_request_allowances: NotRequired[ - ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType - ] +class ReposOwnerRepoActionsRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsGetResponse200""" + total_count: int + workflow_runs: List[WorkflowRunType] -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis - missalRestrictions - Specify which users, teams, and apps can dismiss pull request reviews. Pass an - empty `dismissal_restrictions` object to disable. User and team - `dismissal_restrictions` are only available for organization-owned repositories. - Omit this parameter for personal repositories. - """ - - users: NotRequired[List[str]] - teams: NotRequired[List[str]] - apps: NotRequired[List[str]] - - -class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp - assPullRequestAllowances - - Allow specific users, teams, or apps to bypass pull request requirements. - """ - - users: NotRequired[List[str]] - teams: NotRequired[List[str]] - apps: NotRequired[List[str]] - - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", - "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", -) +__all__ = ("ReposOwnerRepoActionsRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0891.py b/githubkit/versions/v2022_11_28/types/group_0891.py index 39cfa7c56..97b33e796 100644 --- a/githubkit/versions/v2022_11_28/types/group_0891.py +++ b/githubkit/versions/v2022_11_28/types/group_0891.py @@ -10,35 +10,16 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict +from .group_0161 import ArtifactType -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - strict: NotRequired[bool] - contexts: NotRequired[List[str]] - checks: NotRequired[ - List[ - ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType - ] - ] +class ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200""" + total_count: int + artifacts: List[ArtifactType] -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte - ms - """ - context: str - app_id: NotRequired[int] - - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdArtifactsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0892.py b/githubkit/versions/v2022_11_28/types/group_0892.py index f36c7fdb0..e6a36c802 100644 --- a/githubkit/versions/v2022_11_28/types/group_0892.py +++ b/githubkit/versions/v2022_11_28/types/group_0892.py @@ -12,19 +12,16 @@ from typing import List from typing_extensions import TypedDict +from .group_0163 import JobType -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( + +class ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 - - Examples: - {'contexts': ['contexts']} - """ + """ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200""" - contexts: List[str] + total_count: int + jobs: List[JobType] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdAttemptsAttemptNumberJobsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0893.py b/githubkit/versions/v2022_11_28/types/group_0893.py index b350535de..1d350fefe 100644 --- a/githubkit/versions/v2022_11_28/types/group_0893.py +++ b/githubkit/versions/v2022_11_28/types/group_0893.py @@ -12,19 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0163 import JobType -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 - Examples: - {'contexts': ['contexts']} - """ +class ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsRunsRunIdJobsGetResponse200""" - contexts: List[str] + total_count: int + jobs: List[JobType] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdJobsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0894.py b/githubkit/versions/v2022_11_28/types/group_0894.py index 2d802b1fa..88fd8a6dd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0894.py +++ b/githubkit/versions/v2022_11_28/types/group_0894.py @@ -9,23 +9,16 @@ from __future__ import annotations -from typing import List +from typing import List, Literal from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo - f0 +class ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBody""" - Examples: - {'contexts': ['contexts']} - """ + environment_ids: List[int] + state: Literal["approved", "rejected"] + comment: str - contexts: List[str] - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsRunsRunIdPendingDeploymentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0895.py b/githubkit/versions/v2022_11_28/types/group_0895.py index ad870a329..c33d4529b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0895.py +++ b/githubkit/versions/v2022_11_28/types/group_0895.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 +class ReposOwnerRepoActionsRunsRunIdRerunPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunPostBody""" - Examples: - {'apps': ['my-app']} - """ + enable_debug_logging: NotRequired[bool] - apps: List[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0896.py b/githubkit/versions/v2022_11_28/types/group_0896.py index 633ffe55f..1160daba0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0896.py +++ b/githubkit/versions/v2022_11_28/types/group_0896.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 +class ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType(TypedDict): + """ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBody""" - Examples: - {'apps': ['my-app']} - """ + enable_debug_logging: NotRequired[bool] - apps: List[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoActionsRunsRunIdRerunFailedJobsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0897.py b/githubkit/versions/v2022_11_28/types/group_0897.py index 0e54dbe56..73cc61927 100644 --- a/githubkit/versions/v2022_11_28/types/group_0897.py +++ b/githubkit/versions/v2022_11_28/types/group_0897.py @@ -12,19 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0165 import ActionsSecretType -class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 - Examples: - {'apps': ['my-app']} - """ +class ReposOwnerRepoActionsSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsSecretsGetResponse200""" - apps: List[str] + total_count: int + secrets: List[ActionsSecretType] -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsSecretsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0898.py b/githubkit/versions/v2022_11_28/types/group_0898.py index c8d87b3e2..c1ad71389 100644 --- a/githubkit/versions/v2022_11_28/types/group_0898.py +++ b/githubkit/versions/v2022_11_28/types/group_0898.py @@ -9,20 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 +class ReposOwnerRepoActionsSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoActionsSecretsSecretNamePutBody""" - Examples: - {'teams': ['justice-league']} - """ + encrypted_value: NotRequired[str] + key_id: NotRequired[str] - teams: List[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoActionsSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0899.py b/githubkit/versions/v2022_11_28/types/group_0899.py index 8ec4d5ff7..aba604319 100644 --- a/githubkit/versions/v2022_11_28/types/group_0899.py +++ b/githubkit/versions/v2022_11_28/types/group_0899.py @@ -12,17 +12,14 @@ from typing import List from typing_extensions import TypedDict +from .group_0166 import ActionsVariableType -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 - Examples: - {'teams': ['my-team']} - """ +class ReposOwnerRepoActionsVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsVariablesGetResponse200""" - teams: List[str] + total_count: int + variables: List[ActionsVariableType] -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoActionsVariablesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0900.py b/githubkit/versions/v2022_11_28/types/group_0900.py index 4c0d1741f..a5b1bcda1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0900.py +++ b/githubkit/versions/v2022_11_28/types/group_0900.py @@ -9,22 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 +class ReposOwnerRepoActionsVariablesPostBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesPostBody""" - Examples: - {'teams': ['my-team']} - """ + name: str + value: str - teams: List[str] - -__all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", -) +__all__ = ("ReposOwnerRepoActionsVariablesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0901.py b/githubkit/versions/v2022_11_28/types/group_0901.py index d1f4b8ce2..ad7d7d522 100644 --- a/githubkit/versions/v2022_11_28/types/group_0901.py +++ b/githubkit/versions/v2022_11_28/types/group_0901.py @@ -9,20 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 +class ReposOwnerRepoActionsVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoActionsVariablesNamePatchBody""" - Examples: - {'users': ['mona']} - """ + name: NotRequired[str] + value: NotRequired[str] - users: List[str] - -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoActionsVariablesNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0902.py b/githubkit/versions/v2022_11_28/types/group_0902.py index 26651df87..20e7c3509 100644 --- a/githubkit/versions/v2022_11_28/types/group_0902.py +++ b/githubkit/versions/v2022_11_28/types/group_0902.py @@ -9,20 +9,40 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type( - TypedDict -): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 +class ReposOwnerRepoActionsWorkflowsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsGetResponse200""" + + total_count: int + workflows: List[WorkflowType] - Examples: - {'users': ['mona']} - """ - users: List[str] +class WorkflowType(TypedDict): + """Workflow + A GitHub Actions workflow + """ -__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type",) + 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_0903.py b/githubkit/versions/v2022_11_28/types/group_0903.py index 20edcde18..08a15748d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0903.py +++ b/githubkit/versions/v2022_11_28/types/group_0903.py @@ -9,22 +9,30 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type( +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBody""" + + ref: str + inputs: NotRequired[ + ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType + ] + + +class ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType( TypedDict ): - """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 + """ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputs - Examples: - {'users': ['mona']} + 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. """ - users: List[str] - __all__ = ( - "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyType", + "ReposOwnerRepoActionsWorkflowsWorkflowIdDispatchesPostBodyPropInputsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0904.py b/githubkit/versions/v2022_11_28/types/group_0904.py index b46802659..0cc7b52e3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0904.py +++ b/githubkit/versions/v2022_11_28/types/group_0904.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0171 import WorkflowRunType -class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): - """ReposOwnerRepoBranchesBranchRenamePostBody""" - new_name: str +class ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200""" + total_count: int + workflow_runs: List[WorkflowRunType] -__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) + +__all__ = ("ReposOwnerRepoActionsWorkflowsWorkflowIdRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0905.py b/githubkit/versions/v2022_11_28/types/group_0905.py index 78164b5f0..12bc802f9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0905.py +++ b/githubkit/versions/v2022_11_28/types/group_0905.py @@ -9,62 +9,46 @@ from __future__ import annotations -from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutput +class ReposOwnerRepoAttestationsPostBodyType(TypedDict): + """ReposOwnerRepoAttestationsPostBody""" - 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] - ] + bundle: ReposOwnerRepoAttestationsPostBodyPropBundleType -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 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. + """ -class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" + media_type: NotRequired[str] + verification_material: NotRequired[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType + ] - alt: str - image_url: str - caption: NotRequired[str] +class ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType( + TypedDict +): + """ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterial""" -class ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" - label: str - description: str - identifier: str +class ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType(TypedDict): + """ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelope""" __all__ = ( - "ReposOwnerRepoCheckRunsPostBodyPropOutputType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", + "ReposOwnerRepoAttestationsPostBodyType", + "ReposOwnerRepoAttestationsPostBodyPropBundleType", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsPostBodyPropBundlePropDsseEnvelopeType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0906.py b/githubkit/versions/v2022_11_28/types/group_0906.py index f64691e8c..65a2e6e51 100644 --- a/githubkit/versions/v2022_11_28/types/group_0906.py +++ b/githubkit/versions/v2022_11_28/types/group_0906.py @@ -9,38 +9,13 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal from typing_extensions import TypedDict, NotRequired -from .group_0905 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutputType, - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, -) - - -class ReposOwnerRepoCheckRunsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof0""" - - name: str - head_sha: str - details_url: NotRequired[str] - external_id: NotRequired[str] - status: Literal["completed"] - started_at: NotRequired[datetime] - conclusion: Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", - ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] - - -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) + +class ReposOwnerRepoAttestationsPostResponse201Type(TypedDict): + """ReposOwnerRepoAttestationsPostResponse201""" + + id: NotRequired[int] + + +__all__ = ("ReposOwnerRepoAttestationsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0907.py b/githubkit/versions/v2022_11_28/types/group_0907.py index 97f995ce6..dcefb1572 100644 --- a/githubkit/versions/v2022_11_28/types/group_0907.py +++ b/githubkit/versions/v2022_11_28/types/group_0907.py @@ -9,40 +9,72 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0905 import ( - ReposOwnerRepoCheckRunsPostBodyPropOutputType, - ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, -) +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type(TypedDict): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200""" -class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCheckRunsPostBodyOneof1""" - - name: str - head_sha: str - details_url: NotRequired[str] - external_id: NotRequired[str] - status: NotRequired[Literal["queued", "in_progress"]] - started_at: NotRequired[datetime] - conclusion: NotRequired[ - Literal[ - "action_required", - "cancelled", - "failure", - "neutral", - "success", - "skipped", - "stale", - "timed_out", + attestations: NotRequired[ + List[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType ] ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] - actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] -__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType + ] + repository_id: NotRequired[int] + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndle + + The attestation's Sigstore Bundle. + Refer to the [Sigstore Bundle + Specification](https://github.com/sigstore/protobuf- + specs/blob/main/protos/sigstore_bundle.proto) for more information. + """ + + media_type: NotRequired[str] + verification_material: NotRequired[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType + ] + dsse_envelope: NotRequired[ + ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType + ] + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndlePropVerificationMaterial + """ + + +class ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType( + TypedDict +): + """ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBu + ndlePropDsseEnvelope + """ + + +__all__ = ( + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200Type", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundleType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropVerificationMaterialType", + "ReposOwnerRepoAttestationsSubjectDigestGetResponse200PropAttestationsItemsPropBundlePropDsseEnvelopeType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0908.py b/githubkit/versions/v2022_11_28/types/group_0908.py index f4f9ec07a..a77eacf3e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0908.py +++ b/githubkit/versions/v2022_11_28/types/group_0908.py @@ -9,68 +9,15 @@ from __future__ import annotations -from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput +class ReposOwnerRepoAutolinksPostBodyType(TypedDict): + """ReposOwnerRepoAutolinksPostBody""" - Check runs can accept a variety of data in the `output` object, including a - `title` and `summary` and can optionally provide descriptive details about the - run. - """ + key_prefix: str + url_template: str + is_alphanumeric: NotRequired[bool] - title: NotRequired[str] - summary: str - text: NotRequired[str] - annotations: NotRequired[ - List[ - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType - ] - ] - images: NotRequired[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] - ] - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType( - TypedDict -): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" - - path: str - start_line: int - end_line: int - start_column: NotRequired[int] - end_column: NotRequired[int] - annotation_level: Literal["notice", "warning", "failure"] - message: str - title: NotRequired[str] - raw_details: NotRequired[str] - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType( - TypedDict -): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" - - alt: str - image_url: str - caption: NotRequired[str] - - -class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType(TypedDict): - """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" - - label: str - description: str - identifier: str - - -__all__ = ( - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", - "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", -) +__all__ = ("ReposOwnerRepoAutolinksPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0909.py b/githubkit/versions/v2022_11_28/types/group_0909.py index 169bddb5b..5daf56489 100644 --- a/githubkit/versions/v2022_11_28/types/group_0909.py +++ b/githubkit/versions/v2022_11_28/types/group_0909.py @@ -9,39 +9,132 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List, Union from typing_extensions import TypedDict, NotRequired -from .group_0908 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, -) +class ReposOwnerRepoBranchesBranchProtectionPutBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionPutBody""" -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", + required_status_checks: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType, None + ] + enforce_admins: Union[bool, None] + required_pull_request_reviews: Union[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType, + None, ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] - actions: NotRequired[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + 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 + ] ] -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksI + tems + """ + + context: str + app_id: NotRequired[int] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviews + + Require at least one approving review on a pull request, before merging. Set to + `null` to disable. + """ + + dismissal_restrictions: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType + ] + dismiss_stale_reviews: NotRequired[bool] + require_code_owner_reviews: NotRequired[bool] + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] + bypass_pull_request_allowances: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType + ] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropD + ismissalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: NotRequired[List[str]] + teams: NotRequired[List[str]] + apps: NotRequired[List[str]] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropB + ypassPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: NotRequired[List[str]] + teams: NotRequired[List[str]] + apps: NotRequired[List[str]] + + +class ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType(TypedDict): + """ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictions + + Restrict who can push to the protected branch. User, app, and team + `restrictions` are only available for organization-owned repositories. Set to + `null` to disable. + """ + + users: List[str] + teams: List[str] + apps: NotRequired[List[str]] + + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionPutBodyType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredStatusChecksPropChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRequiredPullRequestReviewsPropBypassPullRequestAllowancesType", + "ReposOwnerRepoBranchesBranchProtectionPutBodyPropRestrictionsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0910.py b/githubkit/versions/v2022_11_28/types/group_0910.py index f53af466a..d51a66b7c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0910.py +++ b/githubkit/versions/v2022_11_28/types/group_0910.py @@ -9,41 +9,60 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0908 import ( - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, - ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, -) +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBody""" -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", - ] + dismissal_restrictions: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType ] - completed_at: NotRequired[datetime] - output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] - actions: NotRequired[ - List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + dismiss_stale_reviews: NotRequired[bool] + require_code_owner_reviews: NotRequired[bool] + required_approving_review_count: NotRequired[int] + require_last_push_approval: NotRequired[bool] + bypass_pull_request_allowances: NotRequired[ + ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType ] -__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDis + missalRestrictions + + Specify which users, teams, and apps can dismiss pull request reviews. Pass an + empty `dismissal_restrictions` object to disable. User and team + `dismissal_restrictions` are only available for organization-owned repositories. + Omit this parameter for personal repositories. + """ + + users: NotRequired[List[str]] + teams: NotRequired[List[str]] + apps: NotRequired[List[str]] + + +class ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropByp + assPullRequestAllowances + + Allow specific users, teams, or apps to bypass pull request requirements. + """ + + users: NotRequired[List[str]] + teams: NotRequired[List[str]] + apps: NotRequired[List[str]] + + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropDismissalRestrictionsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsPatchBodyPropBypassPullRequestAllowancesType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0911.py b/githubkit/versions/v2022_11_28/types/group_0911.py index 5d8ac49c1..39cfa7c56 100644 --- a/githubkit/versions/v2022_11_28/types/group_0911.py +++ b/githubkit/versions/v2022_11_28/types/group_0911.py @@ -9,13 +9,36 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBody""" - head_sha: str + strict: NotRequired[bool] + contexts: NotRequired[List[str]] + checks: NotRequired[ + List[ + ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType + ] + ] -__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksIte + ms + """ + + context: str + app_id: NotRequired[int] + + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksPatchBodyPropChecksItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0912.py b/githubkit/versions/v2022_11_28/types/group_0912.py index ef98987e3..f36c7fdb0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0912.py +++ b/githubkit/versions/v2022_11_28/types/group_0912.py @@ -10,29 +10,21 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): - """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - - auto_trigger_checks: NotRequired[ - List[ - ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType - ] - ] - - -class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type( TypedDict ): - """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0 + + Examples: + {'contexts': ['contexts']} + """ - app_id: int - setting: bool + contexts: List[str] __all__ = ( - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", - "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPutBodyOneof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0913.py b/githubkit/versions/v2022_11_28/types/group_0913.py index 28b289dd3..b350535de 100644 --- a/githubkit/versions/v2022_11_28/types/group_0913.py +++ b/githubkit/versions/v2022_11_28/types/group_0913.py @@ -12,14 +12,19 @@ from typing import List from typing_extensions import TypedDict -from .group_0192 import CheckRunType +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0 -class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + Examples: + {'contexts': ['contexts']} + """ - total_count: int - check_runs: List[CheckRunType] + contexts: List[str] -__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsPostBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0914.py b/githubkit/versions/v2022_11_28/types/group_0914.py index aa6436005..2d802b1fa 100644 --- a/githubkit/versions/v2022_11_28/types/group_0914.py +++ b/githubkit/versions/v2022_11_28/types/group_0914.py @@ -9,18 +9,23 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneo + f0 - state: Literal["open", "dismissed"] - dismissed_reason: NotRequired[ - Union[None, Literal["false positive", "won't fix", "used in tests"]] - ] - dismissed_comment: NotRequired[Union[str, None]] + Examples: + {'contexts': ['contexts']} + """ + contexts: List[str] -__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRequiredStatusChecksContextsDeleteBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0915.py b/githubkit/versions/v2022_11_28/types/group_0915.py index aae1919ec..ad870a329 100644 --- a/githubkit/versions/v2022_11_28/types/group_0915.py +++ b/githubkit/versions/v2022_11_28/types/group_0915.py @@ -9,20 +9,20 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0 - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] - query_pack: str - repositories: List[str] - repository_lists: NotRequired[List[str]] - repository_owners: NotRequired[List[str]] + Examples: + {'apps': ['my-app']} + """ + apps: List[str] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPutBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0916.py b/githubkit/versions/v2022_11_28/types/group_0916.py index 9793471ab..633ffe55f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0916.py +++ b/githubkit/versions/v2022_11_28/types/group_0916.py @@ -9,20 +9,20 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0 - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] - query_pack: str - repositories: NotRequired[List[str]] - repository_lists: List[str] - repository_owners: NotRequired[List[str]] + Examples: + {'apps': ['my-app']} + """ + apps: List[str] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0917.py b/githubkit/versions/v2022_11_28/types/group_0917.py index bea5490c7..0e54dbe56 100644 --- a/githubkit/versions/v2022_11_28/types/group_0917.py +++ b/githubkit/versions/v2022_11_28/types/group_0917.py @@ -9,20 +9,22 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0 - language: Literal[ - "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" - ] - query_pack: str - repositories: NotRequired[List[str]] - repository_lists: NotRequired[List[str]] - repository_owners: List[str] + Examples: + {'apps': ['my-app']} + """ + apps: List[str] -__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsAppsDeleteBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0918.py b/githubkit/versions/v2022_11_28/types/group_0918.py index 5cd0c722e..c8d87b3e2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0918.py +++ b/githubkit/versions/v2022_11_28/types/group_0918.py @@ -9,20 +9,20 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): - """ReposOwnerRepoCodeScanningSarifsPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0 - commit_sha: str - ref: str - sarif: str - checkout_uri: NotRequired[str] - started_at: NotRequired[datetime] - tool_name: NotRequired[str] - validate_: NotRequired[bool] + Examples: + {'teams': ['justice-league']} + """ + teams: List[str] -__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) + +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPutBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0919.py b/githubkit/versions/v2022_11_28/types/group_0919.py index a30be9686..8ec4d5ff7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0919.py +++ b/githubkit/versions/v2022_11_28/types/group_0919.py @@ -12,14 +12,17 @@ from typing import List from typing_extensions import TypedDict -from .group_0072 import CodespaceType +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0 -class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesGetResponse200""" + Examples: + {'teams': ['my-team']} + """ - total_count: int - codespaces: List[CodespaceType] + teams: List[str] -__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0920.py b/githubkit/versions/v2022_11_28/types/group_0920.py index ded7468cd..4c0d1741f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0920.py +++ b/githubkit/versions/v2022_11_28/types/group_0920.py @@ -9,24 +9,22 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -class ReposOwnerRepoCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoCodespacesPostBody""" +class ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0 - ref: NotRequired[str] - location: NotRequired[str] - geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] - client_ip: NotRequired[str] - machine: NotRequired[str] - devcontainer_path: NotRequired[str] - multi_repo_permissions_opt_out: NotRequired[bool] - working_directory: NotRequired[str] - idle_timeout_minutes: NotRequired[int] - display_name: NotRequired[str] - retention_period_minutes: NotRequired[int] + Examples: + {'teams': ['my-team']} + """ + teams: List[str] -__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) + +__all__ = ( + "ReposOwnerRepoBranchesBranchProtectionRestrictionsTeamsDeleteBodyOneof0Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0921.py b/githubkit/versions/v2022_11_28/types/group_0921.py index aae507935..d1f4b8ce2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0921.py +++ b/githubkit/versions/v2022_11_28/types/group_0921.py @@ -10,29 +10,19 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" - - total_count: int - devcontainers: List[ - ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType - ] - - -class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type( TypedDict ): - """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0 + + Examples: + {'users': ['mona']} + """ - path: str - name: NotRequired[str] - display_name: NotRequired[str] + users: List[str] -__all__ = ( - "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", - "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", -) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPutBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0922.py b/githubkit/versions/v2022_11_28/types/group_0922.py index d85ac2897..26651df87 100644 --- a/githubkit/versions/v2022_11_28/types/group_0922.py +++ b/githubkit/versions/v2022_11_28/types/group_0922.py @@ -12,14 +12,17 @@ from typing import List from typing_extensions import TypedDict -from .group_0071 import CodespaceMachineType +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0 -class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesMachinesGetResponse200""" + Examples: + {'users': ['mona']} + """ - total_count: int - machines: List[CodespaceMachineType] + users: List[str] -__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) +__all__ = ("ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0923.py b/githubkit/versions/v2022_11_28/types/group_0923.py index a33cbd9bf..20edcde18 100644 --- a/githubkit/versions/v2022_11_28/types/group_0923.py +++ b/githubkit/versions/v2022_11_28/types/group_0923.py @@ -9,27 +9,22 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict -from .group_0001 import SimpleUserType +class ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type( + TypedDict +): + """ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0 -class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200""" + Examples: + {'users': ['mona']} + """ - billable_owner: NotRequired[SimpleUserType] - defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] - - -class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): - """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" - - location: str - devcontainer_path: Union[str, None] + users: List[str] __all__ = ( - "ReposOwnerRepoCodespacesNewGetResponse200Type", - "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", + "ReposOwnerRepoBranchesBranchProtectionRestrictionsUsersDeleteBodyOneof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0924.py b/githubkit/versions/v2022_11_28/types/group_0924.py index 4c82ea53d..b46802659 100644 --- a/githubkit/versions/v2022_11_28/types/group_0924.py +++ b/githubkit/versions/v2022_11_28/types/group_0924.py @@ -9,30 +9,13 @@ from __future__ import annotations -from typing import List -from datetime import datetime from typing_extensions import TypedDict -class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoCodespacesSecretsGetResponse200""" +class ReposOwnerRepoBranchesBranchRenamePostBodyType(TypedDict): + """ReposOwnerRepoBranchesBranchRenamePostBody""" - total_count: int - secrets: List[RepoCodespacesSecretType] + new_name: str -class RepoCodespacesSecretType(TypedDict): - """Codespaces Secret - - Set repository secrets for GitHub Codespaces. - """ - - name: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "ReposOwnerRepoCodespacesSecretsGetResponse200Type", - "RepoCodespacesSecretType", -) +__all__ = ("ReposOwnerRepoBranchesBranchRenamePostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0925.py b/githubkit/versions/v2022_11_28/types/group_0925.py index 127388d30..78164b5f0 100644 --- a/githubkit/versions/v2022_11_28/types/group_0925.py +++ b/githubkit/versions/v2022_11_28/types/group_0925.py @@ -9,14 +9,62 @@ from __future__ import annotations +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoCheckRunsPostBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutput - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ + title: str + summary: str + text: NotRequired[str] + annotations: NotRequired[ + List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType] + ] + images: NotRequired[ + List[ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType] + ] -__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItems""" + + path: str + start_line: int + end_line: int + start_column: NotRequired[int] + end_column: NotRequired[int] + annotation_level: Literal["notice", "warning", "failure"] + message: str + title: NotRequired[str] + raw_details: NotRequired[str] + + +class ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItems""" + + alt: str + image_url: str + caption: NotRequired[str] + + +class ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyPropActionsItems""" + + label: str + description: str + identifier: str + + +__all__ = ( + "ReposOwnerRepoCheckRunsPostBodyPropOutputType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0926.py b/githubkit/versions/v2022_11_28/types/group_0926.py index 3048a3c3a..768fbffd1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0926.py +++ b/githubkit/versions/v2022_11_28/types/group_0926.py @@ -9,13 +9,38 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired - -class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): - """ReposOwnerRepoCollaboratorsUsernamePutBody""" - - permission: NotRequired[str] - - -__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) +from .group_0925 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutputType, + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, +) + + +class ReposOwnerRepoCheckRunsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof0""" + + name: str + head_sha: str + details_url: NotRequired[str] + external_id: NotRequired[str] + status: Literal["completed"] + started_at: NotRequired[datetime] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] + + +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0927.py b/githubkit/versions/v2022_11_28/types/group_0927.py index 25f26d78b..ea2c82c79 100644 --- a/githubkit/versions/v2022_11_28/types/group_0927.py +++ b/githubkit/versions/v2022_11_28/types/group_0927.py @@ -9,13 +9,40 @@ from __future__ import annotations -from typing_extensions import TypedDict - - -class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdPatchBody""" - - body: str - - -__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0925 import ( + ReposOwnerRepoCheckRunsPostBodyPropOutputType, + ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType, +) + + +class ReposOwnerRepoCheckRunsPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCheckRunsPostBodyOneof1""" + + name: str + head_sha: str + details_url: NotRequired[str] + external_id: NotRequired[str] + status: NotRequired[Literal["queued", "in_progress"]] + started_at: NotRequired[datetime] + conclusion: NotRequired[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsPostBodyPropOutputType] + actions: NotRequired[List[ReposOwnerRepoCheckRunsPostBodyPropActionsItemsType]] + + +__all__ = ("ReposOwnerRepoCheckRunsPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0928.py b/githubkit/versions/v2022_11_28/types/group_0928.py index ce91eec32..f4f9ec07a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0928.py +++ b/githubkit/versions/v2022_11_28/types/group_0928.py @@ -9,16 +9,68 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutput - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + Check runs can accept a variety of data in the `output` object, including a + `title` and `summary` and can optionally provide descriptive details about the + run. + """ + + title: NotRequired[str] + summary: str + text: NotRequired[str] + annotations: NotRequired[ + List[ + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType + ] + ] + images: NotRequired[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType] ] -__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType( + TypedDict +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItems""" + + path: str + start_line: int + end_line: int + start_column: NotRequired[int] + end_column: NotRequired[int] + annotation_level: Literal["notice", "warning", "failure"] + message: str + title: NotRequired[str] + raw_details: NotRequired[str] + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType( + TypedDict +): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItems""" + + alt: str + image_url: str + caption: NotRequired[str] + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItems""" + + label: str + description: str + identifier: str + + +__all__ = ( + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropAnnotationsItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputPropImagesItemsType", + "ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0929.py b/githubkit/versions/v2022_11_28/types/group_0929.py index 64def9673..fc5ebcbba 100644 --- a/githubkit/versions/v2022_11_28/types/group_0929.py +++ b/githubkit/versions/v2022_11_28/types/group_0929.py @@ -9,16 +9,39 @@ from __future__ import annotations +from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict, NotRequired - -class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): - """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - - body: str - path: NotRequired[str] - position: NotRequired[int] - line: NotRequired[int] - - -__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) +from .group_0928 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, +) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0""" + + name: NotRequired[str] + details_url: NotRequired[str] + external_id: NotRequired[str] + started_at: NotRequired[datetime] + status: NotRequired[Literal["completed"]] + conclusion: Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] + actions: NotRequired[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + ] + + +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0930.py b/githubkit/versions/v2022_11_28/types/group_0930.py index 01c2d3ee9..f1d5f4062 100644 --- a/githubkit/versions/v2022_11_28/types/group_0930.py +++ b/githubkit/versions/v2022_11_28/types/group_0930.py @@ -9,17 +9,41 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict - -from .group_0192 import CheckRunType - - -class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): - """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" - - total_count: int - check_runs: List[CheckRunType] - - -__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) +from datetime import datetime +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired + +from .group_0928 import ( + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType, + ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType, +) + + +class ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type(TypedDict): + """ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1""" + + name: NotRequired[str] + details_url: NotRequired[str] + external_id: NotRequired[str] + started_at: NotRequired[datetime] + status: NotRequired[Literal["queued", "in_progress"]] + conclusion: NotRequired[ + Literal[ + "action_required", + "cancelled", + "failure", + "neutral", + "success", + "skipped", + "stale", + "timed_out", + ] + ] + completed_at: NotRequired[datetime] + output: NotRequired[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropOutputType] + actions: NotRequired[ + List[ReposOwnerRepoCheckRunsCheckRunIdPatchBodyPropActionsItemsType] + ] + + +__all__ = ("ReposOwnerRepoCheckRunsCheckRunIdPatchBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0931.py b/githubkit/versions/v2022_11_28/types/group_0931.py index 2242ad973..5d8ac49c1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0931.py +++ b/githubkit/versions/v2022_11_28/types/group_0931.py @@ -9,45 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoContentsPathPutBodyType(TypedDict): - """ReposOwnerRepoContentsPathPutBody""" +class ReposOwnerRepoCheckSuitesPostBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPostBody""" - message: str - content: str - sha: NotRequired[str] - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] + head_sha: str -class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathPutBodyPropCommitter - - The person that committed the file. Default: the authenticated user. - """ - - name: str - email: str - date: NotRequired[str] - - -class ReposOwnerRepoContentsPathPutBodyPropAuthorType(TypedDict): - """ReposOwnerRepoContentsPathPutBodyPropAuthor - - The author of the file. Default: The `committer` or the authenticated user if - you omit `committer`. - """ - - name: str - email: str - date: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoContentsPathPutBodyType", - "ReposOwnerRepoContentsPathPutBodyPropCommitterType", - "ReposOwnerRepoContentsPathPutBodyPropAuthorType", -) +__all__ = ("ReposOwnerRepoCheckSuitesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0932.py b/githubkit/versions/v2022_11_28/types/group_0932.py index 952a58aa5..ef98987e3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0932.py +++ b/githubkit/versions/v2022_11_28/types/group_0932.py @@ -9,41 +9,30 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBody""" +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyType(TypedDict): + """ReposOwnerRepoCheckSuitesPreferencesPatchBody""" - message: str - sha: str - branch: NotRequired[str] - committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] - author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] + auto_trigger_checks: NotRequired[ + List[ + ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType + ] + ] -class ReposOwnerRepoContentsPathDeleteBodyPropCommitterType(TypedDict): - """ReposOwnerRepoContentsPathDeleteBodyPropCommitter +class ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType( + TypedDict +): + """ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItems""" - 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] + app_id: int + setting: bool __all__ = ( - "ReposOwnerRepoContentsPathDeleteBodyType", - "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", - "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyType", + "ReposOwnerRepoCheckSuitesPreferencesPatchBodyPropAutoTriggerChecksItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0933.py b/githubkit/versions/v2022_11_28/types/group_0933.py index e6000744d..e2eebc51c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0933.py +++ b/githubkit/versions/v2022_11_28/types/group_0933.py @@ -9,20 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0197 import CheckRunType -class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - state: Literal["dismissed", "open"] - dismissed_reason: NotRequired[ - Literal[ - "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" - ] - ] - dismissed_comment: NotRequired[str] +class ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200""" + total_count: int + check_runs: List[CheckRunType] -__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) + +__all__ = ("ReposOwnerRepoCheckSuitesCheckSuiteIdCheckRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0934.py b/githubkit/versions/v2022_11_28/types/group_0934.py index b01790e23..aa6436005 100644 --- a/githubkit/versions/v2022_11_28/types/group_0934.py +++ b/githubkit/versions/v2022_11_28/types/group_0934.py @@ -9,30 +9,18 @@ from __future__ import annotations -from typing import List -from datetime import datetime -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoDependabotSecretsGetResponse200""" +class ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBody""" - total_count: int - secrets: List[DependabotSecretType] + state: Literal["open", "dismissed"] + dismissed_reason: NotRequired[ + Union[None, Literal["false positive", "won't fix", "used in tests"]] + ] + dismissed_comment: NotRequired[Union[str, None]] -class DependabotSecretType(TypedDict): - """Dependabot Secret - - Set secrets for Dependabot. - """ - - name: str - created_at: datetime - updated_at: datetime - - -__all__ = ( - "ReposOwnerRepoDependabotSecretsGetResponse200Type", - "DependabotSecretType", -) +__all__ = ("ReposOwnerRepoCodeScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0935.py b/githubkit/versions/v2022_11_28/types/group_0935.py index b77f06192..aae1919ec 100644 --- a/githubkit/versions/v2022_11_28/types/group_0935.py +++ b/githubkit/versions/v2022_11_28/types/group_0935.py @@ -9,14 +9,20 @@ from __future__ import annotations +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0""" - encrypted_value: NotRequired[str] - key_id: NotRequired[str] + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] + query_pack: str + repositories: List[str] + repository_lists: NotRequired[List[str]] + repository_owners: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0936.py b/githubkit/versions/v2022_11_28/types/group_0936.py index 6e9243ec2..9793471ab 100644 --- a/githubkit/versions/v2022_11_28/types/group_0936.py +++ b/githubkit/versions/v2022_11_28/types/group_0936.py @@ -9,16 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): - """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1""" - id: int - created_at: str - result: str - message: str + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" + ] + query_pack: str + repositories: NotRequired[List[str]] + repository_lists: List[str] + repository_owners: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0937.py b/githubkit/versions/v2022_11_28/types/group_0937.py index 614766fa1..bea5490c7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0937.py +++ b/githubkit/versions/v2022_11_28/types/group_0937.py @@ -9,31 +9,20 @@ from __future__ import annotations -from typing import List, Union +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsPostBody""" +class ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2""" - ref: str - task: NotRequired[str] - auto_merge: NotRequired[bool] - required_contexts: NotRequired[List[str]] - payload: NotRequired[ - Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, str] + language: Literal[ + "cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift" ] - environment: NotRequired[str] - description: NotRequired[Union[str, None]] - transient_environment: NotRequired[bool] - production_environment: NotRequired[bool] + query_pack: str + repositories: NotRequired[List[str]] + repository_lists: NotRequired[List[str]] + repository_owners: List[str] -class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type(TypedDict): - """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" - - -__all__ = ( - "ReposOwnerRepoDeploymentsPostBodyType", - "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", -) +__all__ = ("ReposOwnerRepoCodeScanningCodeqlVariantAnalysesPostBodyOneof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0938.py b/githubkit/versions/v2022_11_28/types/group_0938.py index 31c81fc99..5cd0c722e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0938.py +++ b/githubkit/versions/v2022_11_28/types/group_0938.py @@ -9,13 +9,20 @@ from __future__ import annotations +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): - """ReposOwnerRepoDeploymentsPostResponse202""" +class ReposOwnerRepoCodeScanningSarifsPostBodyType(TypedDict): + """ReposOwnerRepoCodeScanningSarifsPostBody""" - message: NotRequired[str] + commit_sha: str + ref: str + sarif: str + checkout_uri: NotRequired[str] + started_at: NotRequired[datetime] + tool_name: NotRequired[str] + validate_: NotRequired[bool] -__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) +__all__ = ("ReposOwnerRepoCodeScanningSarifsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0939.py b/githubkit/versions/v2022_11_28/types/group_0939.py index bf2c3b692..bee1a1383 100644 --- a/githubkit/versions/v2022_11_28/types/group_0939.py +++ b/githubkit/versions/v2022_11_28/types/group_0939.py @@ -9,22 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0078 import CodespaceType -class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): - """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - state: Literal[ - "error", "failure", "inactive", "in_progress", "queued", "pending", "success" - ] - target_url: NotRequired[str] - log_url: NotRequired[str] - description: NotRequired[str] - environment: NotRequired[str] - environment_url: NotRequired[str] - auto_inactive: NotRequired[bool] +class ReposOwnerRepoCodespacesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesGetResponse200""" + total_count: int + codespaces: List[CodespaceType] -__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) + +__all__ = ("ReposOwnerRepoCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0940.py b/githubkit/versions/v2022_11_28/types/group_0940.py index 28590d115..ded7468cd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0940.py +++ b/githubkit/versions/v2022_11_28/types/group_0940.py @@ -9,25 +9,24 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoDispatchesPostBodyType(TypedDict): - """ReposOwnerRepoDispatchesPostBody""" +class ReposOwnerRepoCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoCodespacesPostBody""" - event_type: str - client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] + ref: NotRequired[str] + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] -class ReposOwnerRepoDispatchesPostBodyPropClientPayloadType(TypedDict): - """ReposOwnerRepoDispatchesPostBodyPropClientPayload - - JSON payload with extra information about the webhook event that your action or - workflow may use. The maximum number of top-level properties is 10. - """ - - -__all__ = ( - "ReposOwnerRepoDispatchesPostBodyType", - "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", -) +__all__ = ("ReposOwnerRepoCodespacesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0941.py b/githubkit/versions/v2022_11_28/types/group_0941.py index f2cfc5efa..aae507935 100644 --- a/githubkit/versions/v2022_11_28/types/group_0941.py +++ b/githubkit/versions/v2022_11_28/types/group_0941.py @@ -9,38 +9,30 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0243 import DeploymentBranchPolicySettingsType +class ReposOwnerRepoCodespacesDevcontainersGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200""" -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] + total_count: int + devcontainers: List[ + ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType ] -class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" +class ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType( + TypedDict +): + """ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItems""" - type: NotRequired[Literal["User", "Team"]] - id: NotRequired[int] + path: str + name: NotRequired[str] + display_name: NotRequired[str] __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", - "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200Type", + "ReposOwnerRepoCodespacesDevcontainersGetResponse200PropDevcontainersItemsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0942.py b/githubkit/versions/v2022_11_28/types/group_0942.py index b65e8765b..61127e2e3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0942.py +++ b/githubkit/versions/v2022_11_28/types/group_0942.py @@ -9,32 +9,17 @@ from __future__ import annotations -from typing import List, Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0077 import CodespaceMachineType -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - total_count: int - branch_policies: List[DeploymentBranchPolicyType] - - -class DeploymentBranchPolicyType(TypedDict): - """Deployment branch policy +class ReposOwnerRepoCodespacesMachinesGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesMachinesGetResponse200""" - Details of a deployment branch or tag policy. - """ - - id: NotRequired[int] - node_id: NotRequired[str] - name: NotRequired[str] - type: NotRequired[Literal["branch", "tag"]] + total_count: int + machines: List[CodespaceMachineType] -__all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", - "DeploymentBranchPolicyType", -) +__all__ = ("ReposOwnerRepoCodespacesMachinesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0943.py b/githubkit/versions/v2022_11_28/types/group_0943.py index aa86463eb..a33cbd9bf 100644 --- a/githubkit/versions/v2022_11_28/types/group_0943.py +++ b/githubkit/versions/v2022_11_28/types/group_0943.py @@ -9,17 +9,27 @@ from __future__ import annotations +from typing import Union from typing_extensions import TypedDict, NotRequired +from .group_0001 import SimpleUserType -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - integration_id: NotRequired[int] +class ReposOwnerRepoCodespacesNewGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200""" + + billable_owner: NotRequired[SimpleUserType] + defaults: NotRequired[ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType] + + +class ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType(TypedDict): + """ReposOwnerRepoCodespacesNewGetResponse200PropDefaults""" + + location: str + devcontainer_path: Union[str, None] __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", + "ReposOwnerRepoCodespacesNewGetResponse200Type", + "ReposOwnerRepoCodespacesNewGetResponse200PropDefaultsType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0944.py b/githubkit/versions/v2022_11_28/types/group_0944.py index e327d90db..4c82ea53d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0944.py +++ b/githubkit/versions/v2022_11_28/types/group_0944.py @@ -10,24 +10,29 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict, NotRequired +from datetime import datetime +from typing_extensions import TypedDict -from .group_0249 import CustomDeploymentRuleAppType +class ReposOwnerRepoCodespacesSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoCodespacesSecretsGetResponse200""" -class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( - TypedDict -): - """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons - e200 + total_count: int + secrets: List[RepoCodespacesSecretType] + + +class RepoCodespacesSecretType(TypedDict): + """Codespaces Secret + + Set repository secrets for GitHub Codespaces. """ - total_count: NotRequired[int] - available_custom_deployment_protection_rule_integrations: NotRequired[ - List[CustomDeploymentRuleAppType] - ] + name: str + created_at: datetime + updated_at: datetime __all__ = ( - "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", + "ReposOwnerRepoCodespacesSecretsGetResponse200Type", + "RepoCodespacesSecretType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0945.py b/githubkit/versions/v2022_11_28/types/group_0945.py index d400aaf42..127388d30 100644 --- a/githubkit/versions/v2022_11_28/types/group_0945.py +++ b/githubkit/versions/v2022_11_28/types/group_0945.py @@ -9,17 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0160 import ActionsSecretType +class ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoCodespacesSecretsSecretNamePutBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + encrypted_value: NotRequired[str] + key_id: NotRequired[str] - total_count: int - secrets: List[ActionsSecretType] - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) +__all__ = ("ReposOwnerRepoCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0946.py b/githubkit/versions/v2022_11_28/types/group_0946.py index 3ec440fb1..3048a3c3a 100644 --- a/githubkit/versions/v2022_11_28/types/group_0946.py +++ b/githubkit/versions/v2022_11_28/types/group_0946.py @@ -9,14 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" +class ReposOwnerRepoCollaboratorsUsernamePutBodyType(TypedDict): + """ReposOwnerRepoCollaboratorsUsernamePutBody""" - encrypted_value: str - key_id: str + permission: NotRequired[str] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoCollaboratorsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0947.py b/githubkit/versions/v2022_11_28/types/group_0947.py index a3eb8c598..25f26d78b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0947.py +++ b/githubkit/versions/v2022_11_28/types/group_0947.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -from .group_0161 import ActionsVariableType +class ReposOwnerRepoCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdPatchBody""" -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + body: str - total_count: int - variables: List[ActionsVariableType] - -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) +__all__ = ("ReposOwnerRepoCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0948.py b/githubkit/versions/v2022_11_28/types/group_0948.py index f3a29926f..ce91eec32 100644 --- a/githubkit/versions/v2022_11_28/types/group_0948.py +++ b/githubkit/versions/v2022_11_28/types/group_0948.py @@ -9,14 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" +class ReposOwnerRepoCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoCommentsCommentIdReactionsPostBody""" - name: str - value: str + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) +__all__ = ("ReposOwnerRepoCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0949.py b/githubkit/versions/v2022_11_28/types/group_0949.py index c1fff1a36..64def9673 100644 --- a/githubkit/versions/v2022_11_28/types/group_0949.py +++ b/githubkit/versions/v2022_11_28/types/group_0949.py @@ -12,11 +12,13 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): - """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" +class ReposOwnerRepoCommitsCommitShaCommentsPostBodyType(TypedDict): + """ReposOwnerRepoCommitsCommitShaCommentsPostBody""" - name: NotRequired[str] - value: NotRequired[str] + body: str + path: NotRequired[str] + position: NotRequired[int] + line: NotRequired[int] -__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) +__all__ = ("ReposOwnerRepoCommitsCommitShaCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0950.py b/githubkit/versions/v2022_11_28/types/group_0950.py index 8bba2acbd..93d084dee 100644 --- a/githubkit/versions/v2022_11_28/types/group_0950.py +++ b/githubkit/versions/v2022_11_28/types/group_0950.py @@ -9,15 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0197 import CheckRunType -class ReposOwnerRepoForksPostBodyType(TypedDict): - """ReposOwnerRepoForksPostBody""" - organization: NotRequired[str] - name: NotRequired[str] - default_branch_only: NotRequired[bool] +class ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type(TypedDict): + """ReposOwnerRepoCommitsRefCheckRunsGetResponse200""" + total_count: int + check_runs: List[CheckRunType] -__all__ = ("ReposOwnerRepoForksPostBodyType",) + +__all__ = ("ReposOwnerRepoCommitsRefCheckRunsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0951.py b/githubkit/versions/v2022_11_28/types/group_0951.py index dcd2ec0cb..2242ad973 100644 --- a/githubkit/versions/v2022_11_28/types/group_0951.py +++ b/githubkit/versions/v2022_11_28/types/group_0951.py @@ -12,11 +12,42 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): - """ReposOwnerRepoGitBlobsPostBody""" +class ReposOwnerRepoContentsPathPutBodyType(TypedDict): + """ReposOwnerRepoContentsPathPutBody""" + message: str content: str - encoding: NotRequired[str] + sha: NotRequired[str] + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathPutBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathPutBodyPropAuthorType] -__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) +class ReposOwnerRepoContentsPathPutBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropCommitter + + The person that committed the file. Default: the authenticated user. + """ + + name: str + email: str + date: NotRequired[str] + + +class ReposOwnerRepoContentsPathPutBodyPropAuthorType(TypedDict): + """ReposOwnerRepoContentsPathPutBodyPropAuthor + + The author of the file. Default: The `committer` or the authenticated user if + you omit `committer`. + """ + + name: str + email: str + date: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoContentsPathPutBodyType", + "ReposOwnerRepoContentsPathPutBodyPropCommitterType", + "ReposOwnerRepoContentsPathPutBodyPropAuthorType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0952.py b/githubkit/versions/v2022_11_28/types/group_0952.py index 166b3b1b7..952a58aa5 100644 --- a/githubkit/versions/v2022_11_28/types/group_0952.py +++ b/githubkit/versions/v2022_11_28/types/group_0952.py @@ -9,50 +9,41 @@ from __future__ import annotations -from typing import List -from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): - """ReposOwnerRepoGitCommitsPostBody""" +class ReposOwnerRepoContentsPathDeleteBodyType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBody""" message: str - tree: str - parents: NotRequired[List[str]] - author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] - committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] - signature: NotRequired[str] + sha: str + branch: NotRequired[str] + committer: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropCommitterType] + author: NotRequired[ReposOwnerRepoContentsPathDeleteBodyPropAuthorType] -class ReposOwnerRepoGitCommitsPostBodyPropAuthorType(TypedDict): - """ReposOwnerRepoGitCommitsPostBodyPropAuthor +class ReposOwnerRepoContentsPathDeleteBodyPropCommitterType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBodyPropCommitter - 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. + object containing information about the committer. """ - name: str - email: str - date: NotRequired[datetime] + name: NotRequired[str] + email: NotRequired[str] -class ReposOwnerRepoGitCommitsPostBodyPropCommitterType(TypedDict): - """ReposOwnerRepoGitCommitsPostBodyPropCommitter +class ReposOwnerRepoContentsPathDeleteBodyPropAuthorType(TypedDict): + """ReposOwnerRepoContentsPathDeleteBodyPropAuthor - 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. + object containing information about the author. """ name: NotRequired[str] email: NotRequired[str] - date: NotRequired[datetime] __all__ = ( - "ReposOwnerRepoGitCommitsPostBodyType", - "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", - "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", + "ReposOwnerRepoContentsPathDeleteBodyType", + "ReposOwnerRepoContentsPathDeleteBodyPropCommitterType", + "ReposOwnerRepoContentsPathDeleteBodyPropAuthorType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0953.py b/githubkit/versions/v2022_11_28/types/group_0953.py index aa4d83aff..e6000744d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0953.py +++ b/githubkit/versions/v2022_11_28/types/group_0953.py @@ -9,14 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitRefsPostBodyType(TypedDict): - """ReposOwnerRepoGitRefsPostBody""" +class ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoDependabotAlertsAlertNumberPatchBody""" - ref: str - sha: str + state: Literal["dismissed", "open"] + dismissed_reason: NotRequired[ + Literal[ + "fix_started", "inaccurate", "no_bandwidth", "not_used", "tolerable_risk" + ] + ] + dismissed_comment: NotRequired[str] -__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) +__all__ = ("ReposOwnerRepoDependabotAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0954.py b/githubkit/versions/v2022_11_28/types/group_0954.py index c7aa1330c..b01790e23 100644 --- a/githubkit/versions/v2022_11_28/types/group_0954.py +++ b/githubkit/versions/v2022_11_28/types/group_0954.py @@ -9,14 +9,30 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import List +from datetime import datetime +from typing_extensions import TypedDict -class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): - """ReposOwnerRepoGitRefsRefPatchBody""" +class ReposOwnerRepoDependabotSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoDependabotSecretsGetResponse200""" - sha: str - force: NotRequired[bool] + total_count: int + secrets: List[DependabotSecretType] -__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) +class DependabotSecretType(TypedDict): + """Dependabot Secret + + Set secrets for Dependabot. + """ + + name: str + created_at: datetime + updated_at: datetime + + +__all__ = ( + "ReposOwnerRepoDependabotSecretsGetResponse200Type", + "DependabotSecretType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0955.py b/githubkit/versions/v2022_11_28/types/group_0955.py index fe54aa32e..b77f06192 100644 --- a/githubkit/versions/v2022_11_28/types/group_0955.py +++ b/githubkit/versions/v2022_11_28/types/group_0955.py @@ -9,33 +9,14 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoGitTagsPostBodyType(TypedDict): - """ReposOwnerRepoGitTagsPostBody""" +class ReposOwnerRepoDependabotSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoDependabotSecretsSecretNamePutBody""" - tag: str - message: str - object_: str - type: Literal["commit", "tree", "blob"] - tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] + encrypted_value: NotRequired[str] + key_id: NotRequired[str] -class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): - """ReposOwnerRepoGitTagsPostBodyPropTagger - - An object with information about the individual creating the tag. - """ - - name: str - email: str - date: NotRequired[datetime] - - -__all__ = ( - "ReposOwnerRepoGitTagsPostBodyType", - "ReposOwnerRepoGitTagsPostBodyPropTaggerType", -) +__all__ = ("ReposOwnerRepoDependabotSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0956.py b/githubkit/versions/v2022_11_28/types/group_0956.py index a8fe4c648..6e9243ec2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0956.py +++ b/githubkit/versions/v2022_11_28/types/group_0956.py @@ -9,28 +9,16 @@ from __future__ import annotations -from typing import List, Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoGitTreesPostBodyType(TypedDict): - """ReposOwnerRepoGitTreesPostBody""" +class ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type(TypedDict): + """ReposOwnerRepoDependencyGraphSnapshotsPostResponse201""" - tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] - base_tree: NotRequired[str] + id: int + created_at: str + result: str + message: str -class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): - """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" - - path: NotRequired[str] - mode: NotRequired[Literal["100644", "100755", "040000", "160000", "120000"]] - type: NotRequired[Literal["blob", "tree", "commit"]] - sha: NotRequired[Union[str, None]] - content: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoGitTreesPostBodyType", - "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", -) +__all__ = ("ReposOwnerRepoDependencyGraphSnapshotsPostResponse201Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0957.py b/githubkit/versions/v2022_11_28/types/group_0957.py index 3f4bc96d4..614766fa1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0957.py +++ b/githubkit/versions/v2022_11_28/types/group_0957.py @@ -13,28 +13,27 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoHooksPostBodyType(TypedDict): - """ReposOwnerRepoHooksPostBody""" +class ReposOwnerRepoDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsPostBody""" - name: NotRequired[str] - config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] - events: NotRequired[List[str]] - active: NotRequired[bool] + ref: str + task: NotRequired[str] + auto_merge: NotRequired[bool] + required_contexts: NotRequired[List[str]] + payload: NotRequired[ + Union[ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type, str] + ] + environment: NotRequired[str] + description: NotRequired[Union[str, None]] + transient_environment: NotRequired[bool] + production_environment: NotRequired[bool] -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]] +class ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type(TypedDict): + """ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0""" __all__ = ( - "ReposOwnerRepoHooksPostBodyType", - "ReposOwnerRepoHooksPostBodyPropConfigType", + "ReposOwnerRepoDeploymentsPostBodyType", + "ReposOwnerRepoDeploymentsPostBodyPropPayloadOneof0Type", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0958.py b/githubkit/versions/v2022_11_28/types/group_0958.py index a7b95ac0e..31c81fc99 100644 --- a/githubkit/versions/v2022_11_28/types/group_0958.py +++ b/githubkit/versions/v2022_11_28/types/group_0958.py @@ -9,20 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0007 import WebhookConfigType +class ReposOwnerRepoDeploymentsPostResponse202Type(TypedDict): + """ReposOwnerRepoDeploymentsPostResponse202""" -class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdPatchBody""" + message: NotRequired[str] - config: NotRequired[WebhookConfigType] - events: NotRequired[List[str]] - add_events: NotRequired[List[str]] - remove_events: NotRequired[List[str]] - active: NotRequired[bool] - -__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) +__all__ = ("ReposOwnerRepoDeploymentsPostResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0959.py b/githubkit/versions/v2022_11_28/types/group_0959.py index 8c044b8a1..bf2c3b692 100644 --- a/githubkit/versions/v2022_11_28/types/group_0959.py +++ b/githubkit/versions/v2022_11_28/types/group_0959.py @@ -9,17 +9,22 @@ from __future__ import annotations -from typing import Union +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): - """ReposOwnerRepoHooksHookIdConfigPatchBody""" +class ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType(TypedDict): + """ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBody""" - url: NotRequired[str] - content_type: NotRequired[str] - secret: NotRequired[str] - insecure_ssl: NotRequired[Union[str, float]] + 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__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) +__all__ = ("ReposOwnerRepoDeploymentsDeploymentIdStatusesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0960.py b/githubkit/versions/v2022_11_28/types/group_0960.py index 40367efa2..28590d115 100644 --- a/githubkit/versions/v2022_11_28/types/group_0960.py +++ b/githubkit/versions/v2022_11_28/types/group_0960.py @@ -9,18 +9,25 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoImportPutBodyType(TypedDict): - """ReposOwnerRepoImportPutBody""" +class ReposOwnerRepoDispatchesPostBodyType(TypedDict): + """ReposOwnerRepoDispatchesPostBody""" - vcs_url: str - vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - tfvc_project: NotRequired[str] + event_type: str + client_payload: NotRequired[ReposOwnerRepoDispatchesPostBodyPropClientPayloadType] -__all__ = ("ReposOwnerRepoImportPutBodyType",) +class ReposOwnerRepoDispatchesPostBodyPropClientPayloadType(TypedDict): + """ReposOwnerRepoDispatchesPostBodyPropClientPayload + + JSON payload with extra information about the webhook event that your action or + workflow may use. The maximum number of top-level properties is 10. + """ + + +__all__ = ( + "ReposOwnerRepoDispatchesPostBodyType", + "ReposOwnerRepoDispatchesPostBodyPropClientPayloadType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0961.py b/githubkit/versions/v2022_11_28/types/group_0961.py index ea3f1020c..01c515ab9 100644 --- a/githubkit/versions/v2022_11_28/types/group_0961.py +++ b/githubkit/versions/v2022_11_28/types/group_0961.py @@ -9,17 +9,38 @@ from __future__ import annotations -from typing import Literal +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0248 import DeploymentBranchPolicySettingsType -class ReposOwnerRepoImportPatchBodyType(TypedDict): - """ReposOwnerRepoImportPatchBody""" - vcs_username: NotRequired[str] - vcs_password: NotRequired[str] - vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] - tfvc_project: NotRequired[str] +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBody""" + wait_timer: NotRequired[int] + prevent_self_review: NotRequired[bool] + reviewers: NotRequired[ + Union[ + List[ + ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType + ], + None, + ] + ] + deployment_branch_policy: NotRequired[ + Union[DeploymentBranchPolicySettingsType, None] + ] -__all__ = ("ReposOwnerRepoImportPatchBodyType",) + +class ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItems""" + + type: NotRequired[Literal["User", "Team"]] + id: NotRequired[int] + + +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyType", + "ReposOwnerRepoEnvironmentsEnvironmentNamePutBodyPropReviewersItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0962.py b/githubkit/versions/v2022_11_28/types/group_0962.py index f3821d41d..b65e8765b 100644 --- a/githubkit/versions/v2022_11_28/types/group_0962.py +++ b/githubkit/versions/v2022_11_28/types/group_0962.py @@ -9,14 +9,32 @@ from __future__ import annotations +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): - """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200""" - email: NotRequired[str] + total_count: int + branch_policies: List[DeploymentBranchPolicyType] + + +class DeploymentBranchPolicyType(TypedDict): + """Deployment branch policy + + Details of a deployment branch or tag policy. + """ + + id: NotRequired[int] + node_id: NotRequired[str] name: NotRequired[str] + type: NotRequired[Literal["branch", "tag"]] -__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentBranchPoliciesGetResponse200Type", + "DeploymentBranchPolicyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0963.py b/githubkit/versions/v2022_11_28/types/group_0963.py index f8207f6ea..aa86463eb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0963.py +++ b/githubkit/versions/v2022_11_28/types/group_0963.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): - """ReposOwnerRepoImportLfsPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBody""" - use_lfs: Literal["opt_in", "opt_out"] + integration_id: NotRequired[int] -__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0964.py b/githubkit/versions/v2022_11_28/types/group_0964.py index ca60a7364..e7dbe7df6 100644 --- a/githubkit/versions/v2022_11_28/types/group_0964.py +++ b/githubkit/versions/v2022_11_28/types/group_0964.py @@ -9,11 +9,25 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired +from .group_0254 import CustomDeploymentRuleAppType -class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" +class ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type( + TypedDict +): + """ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetRespons + e200 + """ -__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) + total_count: NotRequired[int] + available_custom_deployment_protection_rule_integrations: NotRequired[ + List[CustomDeploymentRuleAppType] + ] + + +__all__ = ( + "ReposOwnerRepoEnvironmentsEnvironmentNameDeploymentProtectionRulesAppsGetResponse200Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0965.py b/githubkit/versions/v2022_11_28/types/group_0965.py index de920e175..070b6f5c3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0965.py +++ b/githubkit/versions/v2022_11_28/types/group_0965.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0165 import ActionsSecretType -class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): - """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200""" + total_count: int + secrets: List[ActionsSecretType] -__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0966.py b/githubkit/versions/v2022_11_28/types/group_0966.py index 5fcbc4ed3..3ec440fb1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0966.py +++ b/githubkit/versions/v2022_11_28/types/group_0966.py @@ -9,33 +9,14 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBody""" - 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]] + encrypted_value: str + key_id: str -class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" - - id: NotRequired[int] - name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] - - -__all__ = ( - "ReposOwnerRepoIssuesPostBodyType", - "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0967.py b/githubkit/versions/v2022_11_28/types/group_0967.py index 4b0c546c3..283b874f8 100644 --- a/githubkit/versions/v2022_11_28/types/group_0967.py +++ b/githubkit/versions/v2022_11_28/types/group_0967.py @@ -9,13 +9,17 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict +from .group_0166 import ActionsVariableType -class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - body: str +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200""" + total_count: int + variables: List[ActionsVariableType] -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) + +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0968.py b/githubkit/versions/v2022_11_28/types/group_0968.py index 77f77960c..f3a29926f 100644 --- a/githubkit/versions/v2022_11_28/types/group_0968.py +++ b/githubkit/versions/v2022_11_28/types/group_0968.py @@ -9,16 +9,14 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + name: str + value: str -__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0969.py b/githubkit/versions/v2022_11_28/types/group_0969.py index 38ef471b7..c1fff1a36 100644 --- a/githubkit/versions/v2022_11_28/types/group_0969.py +++ b/githubkit/versions/v2022_11_28/types/group_0969.py @@ -9,41 +9,14 @@ from __future__ import annotations -from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBody""" +class ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType(TypedDict): + """ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBody""" - title: NotRequired[Union[str, int, None]] - body: NotRequired[Union[str, None]] - assignee: NotRequired[Union[str, None]] - state: NotRequired[Literal["open", "closed"]] - state_reason: NotRequired[ - Union[None, Literal["completed", "not_planned", "reopened"]] - ] - milestone: NotRequired[Union[str, int, None]] - labels: NotRequired[ - List[ - Union[ - str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type - ] - ] - ] - assignees: NotRequired[List[str]] - - -class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" - - id: NotRequired[int] name: NotRequired[str] - description: NotRequired[Union[str, None]] - color: NotRequired[Union[str, None]] + value: NotRequired[str] -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberPatchBodyType", - "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", -) +__all__ = ("ReposOwnerRepoEnvironmentsEnvironmentNameVariablesNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0970.py b/githubkit/versions/v2022_11_28/types/group_0970.py index e318c7fed..8bba2acbd 100644 --- a/githubkit/versions/v2022_11_28/types/group_0970.py +++ b/githubkit/versions/v2022_11_28/types/group_0970.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" +class ReposOwnerRepoForksPostBodyType(TypedDict): + """ReposOwnerRepoForksPostBody""" - assignees: NotRequired[List[str]] + organization: NotRequired[str] + name: NotRequired[str] + default_branch_only: NotRequired[bool] -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) +__all__ = ("ReposOwnerRepoForksPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0971.py b/githubkit/versions/v2022_11_28/types/group_0971.py index ef1108543..dcd2ec0cb 100644 --- a/githubkit/versions/v2022_11_28/types/group_0971.py +++ b/githubkit/versions/v2022_11_28/types/group_0971.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" +class ReposOwnerRepoGitBlobsPostBodyType(TypedDict): + """ReposOwnerRepoGitBlobsPostBody""" - assignees: NotRequired[List[str]] + content: str + encoding: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) +__all__ = ("ReposOwnerRepoGitBlobsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0972.py b/githubkit/versions/v2022_11_28/types/group_0972.py index 2585a1e0c..166b3b1b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0972.py +++ b/githubkit/versions/v2022_11_28/types/group_0972.py @@ -9,13 +9,50 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" +class ReposOwnerRepoGitCommitsPostBodyType(TypedDict): + """ReposOwnerRepoGitCommitsPostBody""" - body: str + message: str + tree: str + parents: NotRequired[List[str]] + author: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropAuthorType] + committer: NotRequired[ReposOwnerRepoGitCommitsPostBodyPropCommitterType] + signature: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) +class ReposOwnerRepoGitCommitsPostBodyPropAuthorType(TypedDict): + """ReposOwnerRepoGitCommitsPostBodyPropAuthor + + Information about the author of the commit. By default, the `author` will be the + authenticated user and the current date. See the `author` and `committer` object + below for details. + """ + + name: str + email: str + date: NotRequired[datetime] + + +class ReposOwnerRepoGitCommitsPostBodyPropCommitterType(TypedDict): + """ReposOwnerRepoGitCommitsPostBodyPropCommitter + + Information about the person who is making the commit. By default, `committer` + will use the information set in `author`. See the `author` and `committer` + object below for details. + """ + + name: NotRequired[str] + email: NotRequired[str] + date: NotRequired[datetime] + + +__all__ = ( + "ReposOwnerRepoGitCommitsPostBodyType", + "ReposOwnerRepoGitCommitsPostBodyPropAuthorType", + "ReposOwnerRepoGitCommitsPostBodyPropCommitterType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0973.py b/githubkit/versions/v2022_11_28/types/group_0973.py index 79fa1e54c..aa4d83aff 100644 --- a/githubkit/versions/v2022_11_28/types/group_0973.py +++ b/githubkit/versions/v2022_11_28/types/group_0973.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" +class ReposOwnerRepoGitRefsPostBodyType(TypedDict): + """ReposOwnerRepoGitRefsPostBody""" - labels: NotRequired[List[str]] + ref: str + sha: str -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) +__all__ = ("ReposOwnerRepoGitRefsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0974.py b/githubkit/versions/v2022_11_28/types/group_0974.py index 793244215..c7aa1330c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0974.py +++ b/githubkit/versions/v2022_11_28/types/group_0974.py @@ -9,25 +9,14 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" +class ReposOwnerRepoGitRefsRefPatchBodyType(TypedDict): + """ReposOwnerRepoGitRefsRefPatchBody""" - labels: NotRequired[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] - ] + sha: str + force: NotRequired[bool] -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" - - name: str - - -__all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", - "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", -) +__all__ = ("ReposOwnerRepoGitRefsRefPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0975.py b/githubkit/versions/v2022_11_28/types/group_0975.py index 4b61c7722..fe54aa32e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0975.py +++ b/githubkit/versions/v2022_11_28/types/group_0975.py @@ -9,13 +9,33 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from datetime import datetime +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" +class ReposOwnerRepoGitTagsPostBodyType(TypedDict): + """ReposOwnerRepoGitTagsPostBody""" + + tag: str + message: str + object_: str + type: Literal["commit", "tree", "blob"] + tagger: NotRequired[ReposOwnerRepoGitTagsPostBodyPropTaggerType] + + +class ReposOwnerRepoGitTagsPostBodyPropTaggerType(TypedDict): + """ReposOwnerRepoGitTagsPostBodyPropTagger + + An object with information about the individual creating the tag. + """ name: str + email: str + date: NotRequired[datetime] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) +__all__ = ( + "ReposOwnerRepoGitTagsPostBodyType", + "ReposOwnerRepoGitTagsPostBodyPropTaggerType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0976.py b/githubkit/versions/v2022_11_28/types/group_0976.py index 36bd0305e..a8fe4c648 100644 --- a/githubkit/versions/v2022_11_28/types/group_0976.py +++ b/githubkit/versions/v2022_11_28/types/group_0976.py @@ -9,14 +9,28 @@ from __future__ import annotations -from typing import List +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" +class ReposOwnerRepoGitTreesPostBodyType(TypedDict): + """ReposOwnerRepoGitTreesPostBody""" - labels: NotRequired[List[str]] + tree: List[ReposOwnerRepoGitTreesPostBodyPropTreeItemsType] + base_tree: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) +class ReposOwnerRepoGitTreesPostBodyPropTreeItemsType(TypedDict): + """ReposOwnerRepoGitTreesPostBodyPropTreeItems""" + + path: NotRequired[str] + mode: NotRequired[Literal["100644", "100755", "040000", "160000", "120000"]] + type: NotRequired[Literal["blob", "tree", "commit"]] + sha: NotRequired[Union[str, None]] + content: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoGitTreesPostBodyType", + "ReposOwnerRepoGitTreesPostBodyPropTreeItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0977.py b/githubkit/versions/v2022_11_28/types/group_0977.py index 6e7f8a784..3f4bc96d4 100644 --- a/githubkit/versions/v2022_11_28/types/group_0977.py +++ b/githubkit/versions/v2022_11_28/types/group_0977.py @@ -9,25 +9,32 @@ from __future__ import annotations -from typing import List +from typing import List, Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" +class ReposOwnerRepoHooksPostBodyType(TypedDict): + """ReposOwnerRepoHooksPostBody""" - labels: NotRequired[ - List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] - ] + name: NotRequired[str] + config: NotRequired[ReposOwnerRepoHooksPostBodyPropConfigType] + events: NotRequired[List[str]] + active: NotRequired[bool] -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" +class ReposOwnerRepoHooksPostBodyPropConfigType(TypedDict): + """ReposOwnerRepoHooksPostBodyPropConfig - name: str + Key/value pairs to provide settings for this webhook. + """ + + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] __all__ = ( - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", - "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", + "ReposOwnerRepoHooksPostBodyType", + "ReposOwnerRepoHooksPostBodyPropConfigType", ) diff --git a/githubkit/versions/v2022_11_28/types/group_0978.py b/githubkit/versions/v2022_11_28/types/group_0978.py index 6872247a2..a7b95ac0e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0978.py +++ b/githubkit/versions/v2022_11_28/types/group_0978.py @@ -9,13 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired +from .group_0007 import WebhookConfigType -class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" - name: str +class ReposOwnerRepoHooksHookIdPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdPatchBody""" + config: NotRequired[WebhookConfigType] + events: NotRequired[List[str]] + add_events: NotRequired[List[str]] + remove_events: NotRequired[List[str]] + active: NotRequired[bool] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) + +__all__ = ("ReposOwnerRepoHooksHookIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0979.py b/githubkit/versions/v2022_11_28/types/group_0979.py index a190e2d44..8c044b8a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_0979.py +++ b/githubkit/versions/v2022_11_28/types/group_0979.py @@ -9,14 +9,17 @@ from __future__ import annotations -from typing import Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberLockPutBody""" +class ReposOwnerRepoHooksHookIdConfigPatchBodyType(TypedDict): + """ReposOwnerRepoHooksHookIdConfigPatchBody""" - lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] + url: NotRequired[str] + content_type: NotRequired[str] + secret: NotRequired[str] + insecure_ssl: NotRequired[Union[str, float]] -__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) +__all__ = ("ReposOwnerRepoHooksHookIdConfigPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0980.py b/githubkit/versions/v2022_11_28/types/group_0980.py index 5d8ff2645..40367efa2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0980.py +++ b/githubkit/versions/v2022_11_28/types/group_0980.py @@ -10,15 +10,17 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): - """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" +class ReposOwnerRepoImportPutBodyType(TypedDict): + """ReposOwnerRepoImportPutBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + vcs_url: str + vcs: NotRequired[Literal["subversion", "git", "mercurial", "tfvc"]] + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + tfvc_project: NotRequired[str] -__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoImportPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0981.py b/githubkit/versions/v2022_11_28/types/group_0981.py index fa5cbfe49..ea3f1020c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0981.py +++ b/githubkit/versions/v2022_11_28/types/group_0981.py @@ -9,15 +9,17 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoKeysPostBodyType(TypedDict): - """ReposOwnerRepoKeysPostBody""" +class ReposOwnerRepoImportPatchBodyType(TypedDict): + """ReposOwnerRepoImportPatchBody""" - title: NotRequired[str] - key: str - read_only: NotRequired[bool] + vcs_username: NotRequired[str] + vcs_password: NotRequired[str] + vcs: NotRequired[Literal["subversion", "tfvc", "git", "mercurial"]] + tfvc_project: NotRequired[str] -__all__ = ("ReposOwnerRepoKeysPostBodyType",) +__all__ = ("ReposOwnerRepoImportPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0982.py b/githubkit/versions/v2022_11_28/types/group_0982.py index 2ae5bd4d6..f3821d41d 100644 --- a/githubkit/versions/v2022_11_28/types/group_0982.py +++ b/githubkit/versions/v2022_11_28/types/group_0982.py @@ -12,12 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoLabelsPostBodyType(TypedDict): - """ReposOwnerRepoLabelsPostBody""" +class ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType(TypedDict): + """ReposOwnerRepoImportAuthorsAuthorIdPatchBody""" - name: str - color: NotRequired[str] - description: NotRequired[str] + email: NotRequired[str] + name: NotRequired[str] -__all__ = ("ReposOwnerRepoLabelsPostBodyType",) +__all__ = ("ReposOwnerRepoImportAuthorsAuthorIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0983.py b/githubkit/versions/v2022_11_28/types/group_0983.py index fe512af8d..f8207f6ea 100644 --- a/githubkit/versions/v2022_11_28/types/group_0983.py +++ b/githubkit/versions/v2022_11_28/types/group_0983.py @@ -9,15 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): - """ReposOwnerRepoLabelsNamePatchBody""" +class ReposOwnerRepoImportLfsPatchBodyType(TypedDict): + """ReposOwnerRepoImportLfsPatchBody""" - new_name: NotRequired[str] - color: NotRequired[str] - description: NotRequired[str] + use_lfs: Literal["opt_in", "opt_out"] -__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) +__all__ = ("ReposOwnerRepoImportLfsPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0984.py b/githubkit/versions/v2022_11_28/types/group_0984.py index ac724c353..ca60a7364 100644 --- a/githubkit/versions/v2022_11_28/types/group_0984.py +++ b/githubkit/versions/v2022_11_28/types/group_0984.py @@ -12,10 +12,8 @@ from typing_extensions import TypedDict -class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): - """ReposOwnerRepoMergeUpstreamPostBody""" +class ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """ReposOwnerRepoInteractionLimitsGetResponse200Anyof1""" - branch: str - -__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) +__all__ = ("ReposOwnerRepoInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0985.py b/githubkit/versions/v2022_11_28/types/group_0985.py index 68b37cb55..de920e175 100644 --- a/githubkit/versions/v2022_11_28/types/group_0985.py +++ b/githubkit/versions/v2022_11_28/types/group_0985.py @@ -9,15 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoMergesPostBodyType(TypedDict): - """ReposOwnerRepoMergesPostBody""" +class ReposOwnerRepoInvitationsInvitationIdPatchBodyType(TypedDict): + """ReposOwnerRepoInvitationsInvitationIdPatchBody""" - base: str - head: str - commit_message: NotRequired[str] + permissions: NotRequired[Literal["read", "write", "maintain", "triage", "admin"]] -__all__ = ("ReposOwnerRepoMergesPostBodyType",) +__all__ = ("ReposOwnerRepoInvitationsInvitationIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0986.py b/githubkit/versions/v2022_11_28/types/group_0986.py index 7dd5af8e7..5fcbc4ed3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0986.py +++ b/githubkit/versions/v2022_11_28/types/group_0986.py @@ -9,18 +9,33 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime +from typing import List, Union from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoMilestonesPostBodyType(TypedDict): - """ReposOwnerRepoMilestonesPostBody""" +class ReposOwnerRepoIssuesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesPostBody""" - title: str - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] + title: Union[str, int] + body: NotRequired[str] + assignee: NotRequired[Union[str, None]] + milestone: NotRequired[Union[str, int, None]] + labels: NotRequired[ + List[Union[str, ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type]] + ] + assignees: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) +class ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + + +__all__ = ( + "ReposOwnerRepoIssuesPostBodyType", + "ReposOwnerRepoIssuesPostBodyPropLabelsItemsOneof1Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0987.py b/githubkit/versions/v2022_11_28/types/group_0987.py index d926c03f7..4b0c546c3 100644 --- a/githubkit/versions/v2022_11_28/types/group_0987.py +++ b/githubkit/versions/v2022_11_28/types/group_0987.py @@ -9,18 +9,13 @@ from __future__ import annotations -from typing import Literal -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): - """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" +class ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdPatchBody""" - title: NotRequired[str] - state: NotRequired[Literal["open", "closed"]] - description: NotRequired[str] - due_on: NotRequired[datetime] + body: str -__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0988.py b/githubkit/versions/v2022_11_28/types/group_0988.py index 7c0be85f3..77f77960c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0988.py +++ b/githubkit/versions/v2022_11_28/types/group_0988.py @@ -9,14 +9,16 @@ from __future__ import annotations -from datetime import datetime -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class ReposOwnerRepoNotificationsPutBodyType(TypedDict): - """ReposOwnerRepoNotificationsPutBody""" +class ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBody""" - last_read_at: NotRequired[datetime] + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) +__all__ = ("ReposOwnerRepoIssuesCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0989.py b/githubkit/versions/v2022_11_28/types/group_0989.py index 153effb7c..38ef471b7 100644 --- a/githubkit/versions/v2022_11_28/types/group_0989.py +++ b/githubkit/versions/v2022_11_28/types/group_0989.py @@ -9,14 +9,41 @@ from __future__ import annotations +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): - """ReposOwnerRepoNotificationsPutResponse202""" - - message: NotRequired[str] - url: NotRequired[str] - - -__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) +class ReposOwnerRepoIssuesIssueNumberPatchBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBody""" + + title: NotRequired[Union[str, int, None]] + body: NotRequired[Union[str, None]] + assignee: NotRequired[Union[str, None]] + state: NotRequired[Literal["open", "closed"]] + state_reason: NotRequired[ + Union[None, Literal["completed", "not_planned", "reopened"]] + ] + milestone: NotRequired[Union[str, int, None]] + labels: NotRequired[ + List[ + Union[ + str, ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type + ] + ] + ] + assignees: NotRequired[List[str]] + + +class ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1""" + + id: NotRequired[int] + name: NotRequired[str] + description: NotRequired[Union[str, None]] + color: NotRequired[Union[str, None]] + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberPatchBodyType", + "ReposOwnerRepoIssuesIssueNumberPatchBodyPropLabelsItemsOneof1Type", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0990.py b/githubkit/versions/v2022_11_28/types/group_0990.py index cd3deab02..e318c7fed 100644 --- a/githubkit/versions/v2022_11_28/types/group_0990.py +++ b/githubkit/versions/v2022_11_28/types/group_0990.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing import List +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 +class ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesPostBody""" - Update the source for the repository. Must include the branch name and path. - """ + assignees: NotRequired[List[str]] - branch: str - path: Literal["/", "/docs"] - -__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0991.py b/githubkit/versions/v2022_11_28/types/group_0991.py index dbb314c8d..ef1108543 100644 --- a/githubkit/versions/v2022_11_28/types/group_0991.py +++ b/githubkit/versions/v2022_11_28/types/group_0991.py @@ -9,24 +9,14 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0990 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBody""" -class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof0""" + assignees: NotRequired[List[str]] - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: Literal["legacy", "workflow"] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberAssigneesDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0992.py b/githubkit/versions/v2022_11_28/types/group_0992.py index f49b5d5e3..2585a1e0c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0992.py +++ b/githubkit/versions/v2022_11_28/types/group_0992.py @@ -9,22 +9,13 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0990 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberCommentsPostBody""" -class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof1""" + body: str - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0993.py b/githubkit/versions/v2022_11_28/types/group_0993.py index 0bd3b6e02..79fa1e54c 100644 --- a/githubkit/versions/v2022_11_28/types/group_0993.py +++ b/githubkit/versions/v2022_11_28/types/group_0993.py @@ -9,24 +9,14 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0990 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0""" -class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof2""" + labels: NotRequired[List[str]] - cname: Union[str, None] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0994.py b/githubkit/versions/v2022_11_28/types/group_0994.py index ce979c0cf..793244215 100644 --- a/githubkit/versions/v2022_11_28/types/group_0994.py +++ b/githubkit/versions/v2022_11_28/types/group_0994.py @@ -9,24 +9,25 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0990 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2""" -class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof3""" - - cname: NotRequired[Union[str, None]] - https_enforced: NotRequired[bool] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] + labels: NotRequired[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType] ] -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItems""" + + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2Type", + "ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof2PropLabelsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0995.py b/githubkit/versions/v2022_11_28/types/group_0995.py index 3d81cb2fd..4b61c7722 100644 --- a/githubkit/versions/v2022_11_28/types/group_0995.py +++ b/githubkit/versions/v2022_11_28/types/group_0995.py @@ -9,24 +9,13 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0990 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type +class ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3Items""" -class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): - """ReposOwnerRepoPagesPutBodyAnyof4""" + name: str - cname: NotRequired[Union[str, None]] - https_enforced: bool - build_type: NotRequired[Literal["legacy", "workflow"]] - source: NotRequired[ - Union[ - Literal["gh-pages", "master", "master /docs"], - ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, - ] - ] - -__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPutBodyOneof3ItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0996.py b/githubkit/versions/v2022_11_28/types/group_0996.py index 76dfbb4a7..36bd0305e 100644 --- a/githubkit/versions/v2022_11_28/types/group_0996.py +++ b/githubkit/versions/v2022_11_28/types/group_0996.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): - """ReposOwnerRepoPagesPostBodyPropSource +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0""" - The source branch and directory used to publish your Pages site. - """ + labels: NotRequired[List[str]] - branch: str - path: NotRequired[Literal["/", "/docs"]] - -__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_0997.py b/githubkit/versions/v2022_11_28/types/group_0997.py index 5b3b61504..6e7f8a784 100644 --- a/githubkit/versions/v2022_11_28/types/group_0997.py +++ b/githubkit/versions/v2022_11_28/types/group_0997.py @@ -9,17 +9,25 @@ from __future__ import annotations -from typing import Literal +from typing import List from typing_extensions import TypedDict, NotRequired -from .group_0996 import ReposOwnerRepoPagesPostBodyPropSourceType +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2""" -class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof0""" + labels: NotRequired[ + List[ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType] + ] - build_type: NotRequired[Literal["legacy", "workflow"]] - source: ReposOwnerRepoPagesPostBodyPropSourceType +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItems""" -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) + name: str + + +__all__ = ( + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2Type", + "ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof2PropLabelsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_0998.py b/githubkit/versions/v2022_11_28/types/group_0998.py index fc420c05c..6872247a2 100644 --- a/githubkit/versions/v2022_11_28/types/group_0998.py +++ b/githubkit/versions/v2022_11_28/types/group_0998.py @@ -9,17 +9,13 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -from .group_0996 import ReposOwnerRepoPagesPostBodyPropSourceType +class ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3Items""" -class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPagesPostBodyAnyof1""" + name: str - build_type: Literal["legacy", "workflow"] - source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] - -__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLabelsPostBodyOneof3ItemsType",) diff --git a/githubkit/versions/v2022_11_28/types/group_0999.py b/githubkit/versions/v2022_11_28/types/group_0999.py index 93491698d..a190e2d44 100644 --- a/githubkit/versions/v2022_11_28/types/group_0999.py +++ b/githubkit/versions/v2022_11_28/types/group_0999.py @@ -9,20 +9,14 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): - """ReposOwnerRepoPagesDeploymentsPostBody +class ReposOwnerRepoIssuesIssueNumberLockPutBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberLockPutBody""" - The object used to create GitHub Pages deployment - """ + lock_reason: NotRequired[Literal["off-topic", "too heated", "resolved", "spam"]] - artifact_id: NotRequired[float] - artifact_url: NotRequired[str] - environment: NotRequired[str] - pages_build_version: str - oidc_token: str - -__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberLockPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1000.py b/githubkit/versions/v2022_11_28/types/group_1000.py index c22c267f3..5d8ff2645 100644 --- a/githubkit/versions/v2022_11_28/types/group_1000.py +++ b/githubkit/versions/v2022_11_28/types/group_1000.py @@ -9,13 +9,16 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict -class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): - """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" +class ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType(TypedDict): + """ReposOwnerRepoIssuesIssueNumberReactionsPostBody""" - enabled: bool + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) +__all__ = ("ReposOwnerRepoIssuesIssueNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1001.py b/githubkit/versions/v2022_11_28/types/group_1001.py index 36b3e70e4..fa5cbfe49 100644 --- a/githubkit/versions/v2022_11_28/types/group_1001.py +++ b/githubkit/versions/v2022_11_28/types/group_1001.py @@ -12,11 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoProjectsPostBodyType(TypedDict): - """ReposOwnerRepoProjectsPostBody""" +class ReposOwnerRepoKeysPostBodyType(TypedDict): + """ReposOwnerRepoKeysPostBody""" - name: str - body: NotRequired[str] + title: NotRequired[str] + key: str + read_only: NotRequired[bool] -__all__ = ("ReposOwnerRepoProjectsPostBodyType",) +__all__ = ("ReposOwnerRepoKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1002.py b/githubkit/versions/v2022_11_28/types/group_1002.py index cb73bc77e..2ae5bd4d6 100644 --- a/githubkit/versions/v2022_11_28/types/group_1002.py +++ b/githubkit/versions/v2022_11_28/types/group_1002.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -from .group_0093 import CustomPropertyValueType +class ReposOwnerRepoLabelsPostBodyType(TypedDict): + """ReposOwnerRepoLabelsPostBody""" -class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): - """ReposOwnerRepoPropertiesValuesPatchBody""" + name: str + color: NotRequired[str] + description: NotRequired[str] - properties: List[CustomPropertyValueType] - -__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) +__all__ = ("ReposOwnerRepoLabelsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1003.py b/githubkit/versions/v2022_11_28/types/group_1003.py index e4301f5c1..fe512af8d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1003.py +++ b/githubkit/versions/v2022_11_28/types/group_1003.py @@ -12,17 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPostBody""" +class ReposOwnerRepoLabelsNamePatchBodyType(TypedDict): + """ReposOwnerRepoLabelsNamePatchBody""" - 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] + new_name: NotRequired[str] + color: NotRequired[str] + description: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPostBodyType",) +__all__ = ("ReposOwnerRepoLabelsNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1004.py b/githubkit/versions/v2022_11_28/types/group_1004.py index 160987b13..ac724c353 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 TypedDict -class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" +class ReposOwnerRepoMergeUpstreamPostBodyType(TypedDict): + """ReposOwnerRepoMergeUpstreamPostBody""" - body: str + branch: str -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) +__all__ = ("ReposOwnerRepoMergeUpstreamPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1005.py b/githubkit/versions/v2022_11_28/types/group_1005.py index 4dc9e5008..68b37cb55 100644 --- a/githubkit/versions/v2022_11_28/types/group_1005.py +++ b/githubkit/versions/v2022_11_28/types/group_1005.py @@ -9,16 +9,15 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" +class ReposOwnerRepoMergesPostBodyType(TypedDict): + """ReposOwnerRepoMergesPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + base: str + head: str + commit_message: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoMergesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1006.py b/githubkit/versions/v2022_11_28/types/group_1006.py index a7f3437b1..7dd5af8e7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1006.py +++ b/githubkit/versions/v2022_11_28/types/group_1006.py @@ -10,17 +10,17 @@ from __future__ import annotations from typing import Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberPatchBody""" +class ReposOwnerRepoMilestonesPostBodyType(TypedDict): + """ReposOwnerRepoMilestonesPostBody""" - title: NotRequired[str] - body: NotRequired[str] + title: str state: NotRequired[Literal["open", "closed"]] - base: NotRequired[str] - maintainer_can_modify: NotRequired[bool] + description: NotRequired[str] + due_on: NotRequired[datetime] -__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoMilestonesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1007.py b/githubkit/versions/v2022_11_28/types/group_1007.py index 2bc8bc97e..d926c03f7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1007.py +++ b/githubkit/versions/v2022_11_28/types/group_1007.py @@ -10,22 +10,17 @@ from __future__ import annotations from typing import Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" +class ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType(TypedDict): + """ReposOwnerRepoMilestonesMilestoneNumberPatchBody""" - 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] + title: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + description: NotRequired[str] + due_on: NotRequired[datetime] -__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) +__all__ = ("ReposOwnerRepoMilestonesMilestoneNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1008.py b/githubkit/versions/v2022_11_28/types/group_1008.py index 3a373298b..7c0be85f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1008.py +++ b/githubkit/versions/v2022_11_28/types/group_1008.py @@ -9,23 +9,14 @@ from __future__ import annotations -from typing import Literal +from datetime import datetime from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsPostBody""" +class ReposOwnerRepoNotificationsPutBodyType(TypedDict): + """ReposOwnerRepoNotificationsPutBody""" - 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"]] + last_read_at: NotRequired[datetime] -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoNotificationsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1009.py b/githubkit/versions/v2022_11_28/types/group_1009.py index fdc9c5a0e..153effb7c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1009.py +++ b/githubkit/versions/v2022_11_28/types/group_1009.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" +class ReposOwnerRepoNotificationsPutResponse202Type(TypedDict): + """ReposOwnerRepoNotificationsPutResponse202""" - body: str + message: NotRequired[str] + url: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) +__all__ = ("ReposOwnerRepoNotificationsPutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1010.py b/githubkit/versions/v2022_11_28/types/group_1010.py index f027d8849..cd3deab02 100644 --- a/githubkit/versions/v2022_11_28/types/group_1010.py +++ b/githubkit/versions/v2022_11_28/types/group_1010.py @@ -10,16 +10,17 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutBody""" +class ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyPropSourceAnyof1 - commit_title: NotRequired[str] - commit_message: NotRequired[str] - sha: NotRequired[str] - merge_method: NotRequired[Literal["merge", "squash", "rebase"]] + Update the source for the repository. Must include the branch name and path. + """ + branch: str + path: Literal["/", "/docs"] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1011.py b/githubkit/versions/v2022_11_28/types/group_1011.py index 430b6639e..92e8fbc68 100644 --- a/githubkit/versions/v2022_11_28/types/group_1011.py +++ b/githubkit/versions/v2022_11_28/types/group_1011.py @@ -9,14 +9,24 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - message: NotRequired[str] - documentation_url: NotRequired[str] +class ReposOwnerRepoPagesPutBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof0""" + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: Literal["legacy", "workflow"] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1012.py b/githubkit/versions/v2022_11_28/types/group_1012.py index 12d07d173..ed235ce47 100644 --- a/githubkit/versions/v2022_11_28/types/group_1012.py +++ b/githubkit/versions/v2022_11_28/types/group_1012.py @@ -9,14 +9,22 @@ from __future__ import annotations +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): - """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - message: NotRequired[str] - documentation_url: NotRequired[str] +class ReposOwnerRepoPagesPutBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof1""" + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] -__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1013.py b/githubkit/versions/v2022_11_28/types/group_1013.py index a84cf2d89..34cfe964b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1013.py +++ b/githubkit/versions/v2022_11_28/types/group_1013.py @@ -9,15 +9,24 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - reviewers: List[str] - team_reviewers: NotRequired[List[str]] +class ReposOwnerRepoPagesPutBodyAnyof2Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof2""" + cname: Union[str, None] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof2Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1014.py b/githubkit/versions/v2022_11_28/types/group_1014.py index 1d45bd83c..389aef849 100644 --- a/githubkit/versions/v2022_11_28/types/group_1014.py +++ b/githubkit/versions/v2022_11_28/types/group_1014.py @@ -9,15 +9,24 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - reviewers: NotRequired[List[str]] - team_reviewers: List[str] +class ReposOwnerRepoPagesPutBodyAnyof3Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof3""" + cname: NotRequired[Union[str, None]] + https_enforced: NotRequired[bool] + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof3Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1015.py b/githubkit/versions/v2022_11_28/types/group_1015.py index 020f5596d..f898c3223 100644 --- a/githubkit/versions/v2022_11_28/types/group_1015.py +++ b/githubkit/versions/v2022_11_28/types/group_1015.py @@ -9,15 +9,24 @@ from __future__ import annotations -from typing import List +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_1010 import ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type -class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - reviewers: List[str] - team_reviewers: NotRequired[List[str]] +class ReposOwnerRepoPagesPutBodyAnyof4Type(TypedDict): + """ReposOwnerRepoPagesPutBodyAnyof4""" + cname: NotRequired[Union[str, None]] + https_enforced: bool + build_type: NotRequired[Literal["legacy", "workflow"]] + source: NotRequired[ + Union[ + Literal["gh-pages", "master", "master /docs"], + ReposOwnerRepoPagesPutBodyPropSourceAnyof1Type, + ] + ] -__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) + +__all__ = ("ReposOwnerRepoPagesPutBodyAnyof4Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1016.py b/githubkit/versions/v2022_11_28/types/group_1016.py index 1046c3f1e..76dfbb4a7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1016.py +++ b/githubkit/versions/v2022_11_28/types/group_1016.py @@ -9,34 +9,18 @@ from __future__ import annotations -from typing import List, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBody""" +class ReposOwnerRepoPagesPostBodyPropSourceType(TypedDict): + """ReposOwnerRepoPagesPostBodyPropSource - commit_id: NotRequired[str] - body: NotRequired[str] - event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] - comments: NotRequired[ - List[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] - ] + The source branch and directory used to publish your Pages site. + """ + branch: str + path: NotRequired[Literal["/", "/docs"]] -class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" - path: str - position: NotRequired[int] - body: str - line: NotRequired[int] - side: NotRequired[str] - start_line: NotRequired[int] - start_side: NotRequired[str] - - -__all__ = ( - "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", - "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", -) +__all__ = ("ReposOwnerRepoPagesPostBodyPropSourceType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1017.py b/githubkit/versions/v2022_11_28/types/group_1017.py index 05cccf0c0..672de5b31 100644 --- a/githubkit/versions/v2022_11_28/types/group_1017.py +++ b/githubkit/versions/v2022_11_28/types/group_1017.py @@ -9,13 +9,17 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired +from .group_1016 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - body: str +class ReposOwnerRepoPagesPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof0""" + build_type: NotRequired[Literal["legacy", "workflow"]] + source: ReposOwnerRepoPagesPostBodyPropSourceType -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1018.py b/githubkit/versions/v2022_11_28/types/group_1018.py index 6b49304a1..529a3c1a0 100644 --- a/githubkit/versions/v2022_11_28/types/group_1018.py +++ b/githubkit/versions/v2022_11_28/types/group_1018.py @@ -12,12 +12,14 @@ from typing import Literal from typing_extensions import TypedDict, NotRequired +from .group_1016 import ReposOwnerRepoPagesPostBodyPropSourceType -class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - message: str - event: NotRequired[Literal["DISMISS"]] +class ReposOwnerRepoPagesPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPagesPostBodyAnyof1""" + build_type: Literal["legacy", "workflow"] + source: NotRequired[ReposOwnerRepoPagesPostBodyPropSourceType] -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) + +__all__ = ("ReposOwnerRepoPagesPostBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1019.py b/githubkit/versions/v2022_11_28/types/group_1019.py index db429f41c..93491698d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1019.py +++ b/githubkit/versions/v2022_11_28/types/group_1019.py @@ -9,15 +9,20 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" +class ReposOwnerRepoPagesDeploymentsPostBodyType(TypedDict): + """ReposOwnerRepoPagesDeploymentsPostBody - body: NotRequired[str] - event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] + The object used to create GitHub Pages deployment + """ + artifact_id: NotRequired[float] + artifact_url: NotRequired[str] + environment: NotRequired[str] + pages_build_version: str + oidc_token: str -__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) + +__all__ = ("ReposOwnerRepoPagesDeploymentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1020.py b/githubkit/versions/v2022_11_28/types/group_1020.py index 20f8615d9..c22c267f3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1020.py +++ b/githubkit/versions/v2022_11_28/types/group_1020.py @@ -9,13 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" +class ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type(TypedDict): + """ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200""" - expected_head_sha: NotRequired[str] + enabled: bool -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) +__all__ = ("ReposOwnerRepoPrivateVulnerabilityReportingGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1021.py b/githubkit/versions/v2022_11_28/types/group_1021.py index 6be5b5e11..36b3e70e4 100644 --- a/githubkit/versions/v2022_11_28/types/group_1021.py +++ b/githubkit/versions/v2022_11_28/types/group_1021.py @@ -12,11 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): - """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" +class ReposOwnerRepoProjectsPostBodyType(TypedDict): + """ReposOwnerRepoProjectsPostBody""" - message: NotRequired[str] - url: NotRequired[str] + name: str + body: NotRequired[str] -__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) +__all__ = ("ReposOwnerRepoProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1022.py b/githubkit/versions/v2022_11_28/types/group_1022.py index ad449b3dd..dce1d2f59 100644 --- a/githubkit/versions/v2022_11_28/types/group_1022.py +++ b/githubkit/versions/v2022_11_28/types/group_1022.py @@ -9,22 +9,16 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0098 import CustomPropertyValueType -class ReposOwnerRepoReleasesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesPostBody""" - tag_name: str - target_commitish: NotRequired[str] - name: NotRequired[str] - body: NotRequired[str] - draft: NotRequired[bool] - prerelease: NotRequired[bool] - discussion_category_name: NotRequired[str] - generate_release_notes: NotRequired[bool] - make_latest: NotRequired[Literal["true", "false", "legacy"]] +class ReposOwnerRepoPropertiesValuesPatchBodyType(TypedDict): + """ReposOwnerRepoPropertiesValuesPatchBody""" + properties: List[CustomPropertyValueType] -__all__ = ("ReposOwnerRepoReleasesPostBodyType",) + +__all__ = ("ReposOwnerRepoPropertiesValuesPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1023.py b/githubkit/versions/v2022_11_28/types/group_1023.py index 14ed366af..e4301f5c1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1023.py +++ b/githubkit/versions/v2022_11_28/types/group_1023.py @@ -12,12 +12,17 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" +class ReposOwnerRepoPullsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPostBody""" - name: NotRequired[str] - label: NotRequired[str] - state: NotRequired[str] + title: NotRequired[str] + head: str + head_repo: NotRequired[str] + base: str + body: NotRequired[str] + maintainer_can_modify: NotRequired[bool] + draft: NotRequired[bool] + issue: NotRequired[int] -__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1024.py b/githubkit/versions/v2022_11_28/types/group_1024.py index 951aca8ca..160987b13 100644 --- a/githubkit/versions/v2022_11_28/types/group_1024.py +++ b/githubkit/versions/v2022_11_28/types/group_1024.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): - """ReposOwnerRepoReleasesGenerateNotesPostBody""" +class ReposOwnerRepoPullsCommentsCommentIdPatchBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdPatchBody""" - tag_name: str - target_commitish: NotRequired[str] - previous_tag_name: NotRequired[str] - configuration_file_path: NotRequired[str] + body: str -__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1025.py b/githubkit/versions/v2022_11_28/types/group_1025.py index fc4fe244b..4dc9e5008 100644 --- a/githubkit/versions/v2022_11_28/types/group_1025.py +++ b/githubkit/versions/v2022_11_28/types/group_1025.py @@ -10,20 +10,15 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdPatchBody""" +class ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoPullsCommentsCommentIdReactionsPostBody""" - 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", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsCommentsCommentIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1026.py b/githubkit/versions/v2022_11_28/types/group_1026.py index d85bf8d37..a7f3437b1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1026.py +++ b/githubkit/versions/v2022_11_28/types/group_1026.py @@ -10,13 +10,17 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): - """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" +class ReposOwnerRepoPullsPullNumberPatchBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberPatchBody""" - content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] + title: NotRequired[str] + body: NotRequired[str] + state: NotRequired[Literal["open", "closed"]] + base: NotRequired[str] + maintainer_can_modify: NotRequired[bool] -__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1027.py b/githubkit/versions/v2022_11_28/types/group_1027.py index 111f800c2..2bc8bc97e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1027.py +++ b/githubkit/versions/v2022_11_28/types/group_1027.py @@ -9,71 +9,23 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0110 import RepositoryRuleUpdateType -from .group_0134 import RepositoryRuleOneof17Type -from .group_0130 import RepositoryRuleWorkflowsType -from .group_0115 import RepositoryRulePullRequestType -from .group_0132 import RepositoryRuleCodeScanningType -from .group_0098 import RepositoryRulesetConditionsType -from .group_0097 import RepositoryRulesetBypassActorType -from .group_0127 import RepositoryRuleTagNamePatternType -from .group_0125 import RepositoryRuleBranchNamePatternType -from .group_0113 import RepositoryRuleRequiredDeploymentsType -from .group_0117 import RepositoryRuleRequiredStatusChecksType -from .group_0119 import RepositoryRuleCommitMessagePatternType -from .group_0123 import RepositoryRuleCommitterEmailPatternType -from .group_0121 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0112 import ( - RepositoryRuleOneof15Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0109 import ( - RepositoryRuleOneof14Type, - RepositoryRuleOneof16Type, - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +class ReposOwnerRepoPullsPullNumberCodespacesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCodespacesPostBody""" -class ReposOwnerRepoRulesetsPostBodyType(TypedDict): - """ReposOwnerRepoRulesetsPostBody""" + 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] - name: str - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: Literal["disabled", "active", "evaluate"] - bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] - conditions: NotRequired[RepositoryRulesetConditionsType] - rules: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberCodespacesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1028.py b/githubkit/versions/v2022_11_28/types/group_1028.py index bdb5d63fa..3a373298b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1028.py +++ b/githubkit/versions/v2022_11_28/types/group_1028.py @@ -9,71 +9,23 @@ from __future__ import annotations -from typing import List, Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0110 import RepositoryRuleUpdateType -from .group_0134 import RepositoryRuleOneof17Type -from .group_0130 import RepositoryRuleWorkflowsType -from .group_0115 import RepositoryRulePullRequestType -from .group_0132 import RepositoryRuleCodeScanningType -from .group_0098 import RepositoryRulesetConditionsType -from .group_0097 import RepositoryRulesetBypassActorType -from .group_0127 import RepositoryRuleTagNamePatternType -from .group_0125 import RepositoryRuleBranchNamePatternType -from .group_0113 import RepositoryRuleRequiredDeploymentsType -from .group_0117 import RepositoryRuleRequiredStatusChecksType -from .group_0119 import RepositoryRuleCommitMessagePatternType -from .group_0123 import RepositoryRuleCommitterEmailPatternType -from .group_0121 import RepositoryRuleCommitAuthorEmailPatternType -from .group_0112 import ( - RepositoryRuleOneof15Type, - RepositoryRuleRequiredLinearHistoryType, -) -from .group_0109 import ( - RepositoryRuleOneof14Type, - RepositoryRuleOneof16Type, - RepositoryRuleCreationType, - RepositoryRuleDeletionType, - RepositoryRuleNonFastForwardType, - RepositoryRuleRequiredSignaturesType, -) +class ReposOwnerRepoPullsPullNumberCommentsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsPostBody""" -class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): - """ReposOwnerRepoRulesetsRulesetIdPutBody""" + 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"]] - name: NotRequired[str] - target: NotRequired[Literal["branch", "tag", "push"]] - enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] - bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] - conditions: NotRequired[RepositoryRulesetConditionsType] - rules: NotRequired[ - List[ - Union[ - RepositoryRuleCreationType, - RepositoryRuleUpdateType, - RepositoryRuleDeletionType, - RepositoryRuleRequiredLinearHistoryType, - RepositoryRuleRequiredDeploymentsType, - RepositoryRuleRequiredSignaturesType, - RepositoryRulePullRequestType, - RepositoryRuleRequiredStatusChecksType, - RepositoryRuleNonFastForwardType, - RepositoryRuleCommitMessagePatternType, - RepositoryRuleCommitAuthorEmailPatternType, - RepositoryRuleCommitterEmailPatternType, - RepositoryRuleBranchNamePatternType, - RepositoryRuleTagNamePatternType, - RepositoryRuleOneof14Type, - RepositoryRuleOneof15Type, - RepositoryRuleOneof16Type, - RepositoryRuleOneof17Type, - RepositoryRuleWorkflowsType, - RepositoryRuleCodeScanningType, - ] - ] - ] - -__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1029.py b/githubkit/versions/v2022_11_28/types/group_1029.py index 6dd2f6735..fdc9c5a0e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1029.py +++ b/githubkit/versions/v2022_11_28/types/group_1029.py @@ -9,18 +9,13 @@ from __future__ import annotations -from typing import Union, Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): - """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" +class ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBody""" - state: Literal["open", "resolved"] - resolution: NotRequired[ - Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] - ] - resolution_comment: NotRequired[Union[str, None]] + body: str -__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberCommentsCommentIdRepliesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1030.py b/githubkit/versions/v2022_11_28/types/group_1030.py index 48f7d82ce..f027d8849 100644 --- a/githubkit/versions/v2022_11_28/types/group_1030.py +++ b/githubkit/versions/v2022_11_28/types/group_1030.py @@ -9,17 +9,17 @@ from __future__ import annotations -from typing import Union, Literal +from typing import Literal from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): - """ReposOwnerRepoStatusesShaPostBody""" +class ReposOwnerRepoPullsPullNumberMergePutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutBody""" - state: Literal["error", "failure", "pending", "success"] - target_url: NotRequired[Union[str, None]] - description: NotRequired[Union[str, None]] - context: NotRequired[str] + commit_title: NotRequired[str] + commit_message: NotRequired[str] + sha: NotRequired[str] + merge_method: NotRequired[Literal["merge", "squash", "rebase"]] -__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1031.py b/githubkit/versions/v2022_11_28/types/group_1031.py index 9e6d26d8a..430b6639e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1031.py +++ b/githubkit/versions/v2022_11_28/types/group_1031.py @@ -12,11 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): - """ReposOwnerRepoSubscriptionPutBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse405Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse405""" - subscribed: NotRequired[bool] - ignored: NotRequired[bool] + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse405Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1032.py b/githubkit/versions/v2022_11_28/types/group_1032.py index 492fdc91e..12d07d173 100644 --- a/githubkit/versions/v2022_11_28/types/group_1032.py +++ b/githubkit/versions/v2022_11_28/types/group_1032.py @@ -9,13 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): - """ReposOwnerRepoTagsProtectionPostBody""" +class ReposOwnerRepoPullsPullNumberMergePutResponse409Type(TypedDict): + """ReposOwnerRepoPullsPullNumberMergePutResponse409""" - pattern: str + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberMergePutResponse409Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1033.py b/githubkit/versions/v2022_11_28/types/group_1033.py index 681ccb3a7..a84cf2d89 100644 --- a/githubkit/versions/v2022_11_28/types/group_1033.py +++ b/githubkit/versions/v2022_11_28/types/group_1033.py @@ -10,13 +10,14 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoTopicsPutBodyType(TypedDict): - """ReposOwnerRepoTopicsPutBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0""" - names: List[str] + reviewers: List[str] + team_reviewers: NotRequired[List[str]] -__all__ = ("ReposOwnerRepoTopicsPutBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1034.py b/githubkit/versions/v2022_11_28/types/group_1034.py index 75339e545..1d45bd83c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1034.py +++ b/githubkit/versions/v2022_11_28/types/group_1034.py @@ -13,12 +13,11 @@ from typing_extensions import TypedDict, NotRequired -class ReposOwnerRepoTransferPostBodyType(TypedDict): - """ReposOwnerRepoTransferPostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1""" - new_owner: str - new_name: NotRequired[str] - team_ids: NotRequired[List[int]] + reviewers: NotRequired[List[str]] + team_reviewers: List[str] -__all__ = ("ReposOwnerRepoTransferPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersPostBodyAnyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1035.py b/githubkit/versions/v2022_11_28/types/group_1035.py index 0b51fb534..020f5596d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1035.py +++ b/githubkit/versions/v2022_11_28/types/group_1035.py @@ -9,17 +9,15 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict, NotRequired -class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): - """ReposTemplateOwnerTemplateRepoGeneratePostBody""" +class ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBody""" - owner: NotRequired[str] - name: str - description: NotRequired[str] - include_all_branches: NotRequired[bool] - private: NotRequired[bool] + reviewers: List[str] + team_reviewers: NotRequired[List[str]] -__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberRequestedReviewersDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1036.py b/githubkit/versions/v2022_11_28/types/group_1036.py index b589c2a6a..1046c3f1e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1036.py +++ b/githubkit/versions/v2022_11_28/types/group_1036.py @@ -9,21 +9,34 @@ from __future__ import annotations -from typing import Union, Literal +from typing import List, Literal from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdPatchBodyType(TypedDict): - """TeamsTeamIdPatchBody""" +class ReposOwnerRepoPullsPullNumberReviewsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsPostBody""" - name: str - description: NotRequired[str] - privacy: NotRequired[Literal["secret", "closed"]] - notification_setting: NotRequired[ - Literal["notifications_enabled", "notifications_disabled"] + commit_id: NotRequired[str] + body: NotRequired[str] + event: NotRequired[Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"]] + comments: NotRequired[ + List[ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType] ] - permission: NotRequired[Literal["pull", "push", "admin"]] - parent_team_id: NotRequired[Union[int, None]] -__all__ = ("TeamsTeamIdPatchBodyType",) +class ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItems""" + + path: str + position: NotRequired[int] + body: str + line: NotRequired[int] + side: NotRequired[str] + start_line: NotRequired[int] + start_side: NotRequired[str] + + +__all__ = ( + "ReposOwnerRepoPullsPullNumberReviewsPostBodyType", + "ReposOwnerRepoPullsPullNumberReviewsPostBodyPropCommentsItemsType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1037.py b/githubkit/versions/v2022_11_28/types/group_1037.py index 46f00fe63..05cccf0c0 100644 --- a/githubkit/versions/v2022_11_28/types/group_1037.py +++ b/githubkit/versions/v2022_11_28/types/group_1037.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class TeamsTeamIdDiscussionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBody""" - title: str body: str - private: NotRequired[bool] -__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1038.py b/githubkit/versions/v2022_11_28/types/group_1038.py index 2797e0af9..6b49304a1 100644 --- a/githubkit/versions/v2022_11_28/types/group_1038.py +++ b/githubkit/versions/v2022_11_28/types/group_1038.py @@ -9,14 +9,15 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBody""" - title: NotRequired[str] - body: NotRequired[str] + message: str + event: NotRequired[Literal["DISMISS"]] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdDismissalsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1039.py b/githubkit/versions/v2022_11_28/types/group_1039.py index 49b6126e3..db429f41c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1039.py +++ b/githubkit/versions/v2022_11_28/types/group_1039.py @@ -9,13 +9,15 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" +class ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBody""" - body: str + body: NotRequired[str] + event: Literal["APPROVE", "REQUEST_CHANGES", "COMMENT"] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberReviewsReviewIdEventsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1040.py b/githubkit/versions/v2022_11_28/types/group_1040.py index aba26488a..20f8615d9 100644 --- a/githubkit/versions/v2022_11_28/types/group_1040.py +++ b/githubkit/versions/v2022_11_28/types/group_1040.py @@ -9,15 +9,13 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutBody""" - body: str + expected_head_sha: NotRequired[str] -__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1041.py b/githubkit/versions/v2022_11_28/types/group_1041.py index ea06c9bbf..6be5b5e11 100644 --- a/githubkit/versions/v2022_11_28/types/group_1041.py +++ b/githubkit/versions/v2022_11_28/types/group_1041.py @@ -9,20 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( - TypedDict -): - """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" +class ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type(TypedDict): + """ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + message: NotRequired[str] + url: NotRequired[str] -__all__ = ( - "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", -) +__all__ = ("ReposOwnerRepoPullsPullNumberUpdateBranchPutResponse202Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1042.py b/githubkit/versions/v2022_11_28/types/group_1042.py index 02edb1cc8..ad449b3dd 100644 --- a/githubkit/versions/v2022_11_28/types/group_1042.py +++ b/githubkit/versions/v2022_11_28/types/group_1042.py @@ -10,15 +10,21 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): - """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" +class ReposOwnerRepoReleasesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesPostBody""" - content: Literal[ - "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" - ] + 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__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) +__all__ = ("ReposOwnerRepoReleasesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1043.py b/githubkit/versions/v2022_11_28/types/group_1043.py index 8ac2e4896..14ed366af 100644 --- a/githubkit/versions/v2022_11_28/types/group_1043.py +++ b/githubkit/versions/v2022_11_28/types/group_1043.py @@ -9,14 +9,15 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): - """TeamsTeamIdMembershipsUsernamePutBody""" +class ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesAssetsAssetIdPatchBody""" - role: NotRequired[Literal["member", "maintainer"]] + name: NotRequired[str] + label: NotRequired[str] + state: NotRequired[str] -__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) +__all__ = ("ReposOwnerRepoReleasesAssetsAssetIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1044.py b/githubkit/versions/v2022_11_28/types/group_1044.py index 206f6e4e5..951aca8ca 100644 --- a/githubkit/versions/v2022_11_28/types/group_1044.py +++ b/githubkit/versions/v2022_11_28/types/group_1044.py @@ -9,14 +9,16 @@ from __future__ import annotations -from typing import Literal from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): - """TeamsTeamIdProjectsProjectIdPutBody""" +class ReposOwnerRepoReleasesGenerateNotesPostBodyType(TypedDict): + """ReposOwnerRepoReleasesGenerateNotesPostBody""" - permission: NotRequired[Literal["read", "write", "admin"]] + tag_name: str + target_commitish: NotRequired[str] + previous_tag_name: NotRequired[str] + configuration_file_path: NotRequired[str] -__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) +__all__ = ("ReposOwnerRepoReleasesGenerateNotesPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1045.py b/githubkit/versions/v2022_11_28/types/group_1045.py index fd87b040e..fc4fe244b 100644 --- a/githubkit/versions/v2022_11_28/types/group_1045.py +++ b/githubkit/versions/v2022_11_28/types/group_1045.py @@ -9,14 +9,21 @@ from __future__ import annotations +from typing import Literal from typing_extensions import TypedDict, NotRequired -class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): - """TeamsTeamIdProjectsProjectIdPutResponse403""" +class ReposOwnerRepoReleasesReleaseIdPatchBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdPatchBody""" - message: NotRequired[str] - documentation_url: NotRequired[str] + tag_name: NotRequired[str] + target_commitish: NotRequired[str] + name: NotRequired[str] + body: NotRequired[str] + draft: NotRequired[bool] + prerelease: NotRequired[bool] + make_latest: NotRequired[Literal["true", "false", "legacy"]] + discussion_category_name: NotRequired[str] -__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1046.py b/githubkit/versions/v2022_11_28/types/group_1046.py index 5f68e3fc2..d85bf8d37 100644 --- a/githubkit/versions/v2022_11_28/types/group_1046.py +++ b/githubkit/versions/v2022_11_28/types/group_1046.py @@ -10,13 +10,13 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): - """TeamsTeamIdReposOwnerRepoPutBody""" +class ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType(TypedDict): + """ReposOwnerRepoReleasesReleaseIdReactionsPostBody""" - permission: NotRequired[Literal["pull", "push", "admin"]] + content: Literal["+1", "laugh", "heart", "hooray", "rocket", "eyes"] -__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) +__all__ = ("ReposOwnerRepoReleasesReleaseIdReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1047.py b/githubkit/versions/v2022_11_28/types/group_1047.py index a5b98bc3c..ebf49e3b9 100644 --- a/githubkit/versions/v2022_11_28/types/group_1047.py +++ b/githubkit/versions/v2022_11_28/types/group_1047.py @@ -9,21 +9,71 @@ from __future__ import annotations -from typing import Union +from typing import List, Union, Literal from typing_extensions import TypedDict, NotRequired +from .group_0115 import RepositoryRuleUpdateType +from .group_0139 import RepositoryRuleOneof17Type +from .group_0135 import RepositoryRuleWorkflowsType +from .group_0120 import RepositoryRulePullRequestType +from .group_0137 import RepositoryRuleCodeScanningType +from .group_0103 import RepositoryRulesetConditionsType +from .group_0102 import RepositoryRulesetBypassActorType +from .group_0132 import RepositoryRuleTagNamePatternType +from .group_0130 import RepositoryRuleBranchNamePatternType +from .group_0118 import RepositoryRuleRequiredDeploymentsType +from .group_0122 import RepositoryRuleRequiredStatusChecksType +from .group_0124 import RepositoryRuleCommitMessagePatternType +from .group_0128 import RepositoryRuleCommitterEmailPatternType +from .group_0126 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0117 import ( + RepositoryRuleOneof15Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0114 import ( + RepositoryRuleOneof14Type, + RepositoryRuleOneof16Type, + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class 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 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, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ("UserPatchBodyType",) + +__all__ = ("ReposOwnerRepoRulesetsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1048.py b/githubkit/versions/v2022_11_28/types/group_1048.py index cd21a2cf9..368447ad0 100644 --- a/githubkit/versions/v2022_11_28/types/group_1048.py +++ b/githubkit/versions/v2022_11_28/types/group_1048.py @@ -9,17 +9,71 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import List, Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0072 import CodespaceType +from .group_0115 import RepositoryRuleUpdateType +from .group_0139 import RepositoryRuleOneof17Type +from .group_0135 import RepositoryRuleWorkflowsType +from .group_0120 import RepositoryRulePullRequestType +from .group_0137 import RepositoryRuleCodeScanningType +from .group_0103 import RepositoryRulesetConditionsType +from .group_0102 import RepositoryRulesetBypassActorType +from .group_0132 import RepositoryRuleTagNamePatternType +from .group_0130 import RepositoryRuleBranchNamePatternType +from .group_0118 import RepositoryRuleRequiredDeploymentsType +from .group_0122 import RepositoryRuleRequiredStatusChecksType +from .group_0124 import RepositoryRuleCommitMessagePatternType +from .group_0128 import RepositoryRuleCommitterEmailPatternType +from .group_0126 import RepositoryRuleCommitAuthorEmailPatternType +from .group_0117 import ( + RepositoryRuleOneof15Type, + RepositoryRuleRequiredLinearHistoryType, +) +from .group_0114 import ( + RepositoryRuleOneof14Type, + RepositoryRuleOneof16Type, + RepositoryRuleCreationType, + RepositoryRuleDeletionType, + RepositoryRuleNonFastForwardType, + RepositoryRuleRequiredSignaturesType, +) -class UserCodespacesGetResponse200Type(TypedDict): - """UserCodespacesGetResponse200""" +class ReposOwnerRepoRulesetsRulesetIdPutBodyType(TypedDict): + """ReposOwnerRepoRulesetsRulesetIdPutBody""" - total_count: int - codespaces: List[CodespaceType] + name: NotRequired[str] + target: NotRequired[Literal["branch", "tag", "push"]] + enforcement: NotRequired[Literal["disabled", "active", "evaluate"]] + bypass_actors: NotRequired[List[RepositoryRulesetBypassActorType]] + conditions: NotRequired[RepositoryRulesetConditionsType] + rules: NotRequired[ + List[ + Union[ + RepositoryRuleCreationType, + RepositoryRuleUpdateType, + RepositoryRuleDeletionType, + RepositoryRuleRequiredLinearHistoryType, + RepositoryRuleRequiredDeploymentsType, + RepositoryRuleRequiredSignaturesType, + RepositoryRulePullRequestType, + RepositoryRuleRequiredStatusChecksType, + RepositoryRuleNonFastForwardType, + RepositoryRuleCommitMessagePatternType, + RepositoryRuleCommitAuthorEmailPatternType, + RepositoryRuleCommitterEmailPatternType, + RepositoryRuleBranchNamePatternType, + RepositoryRuleTagNamePatternType, + RepositoryRuleOneof14Type, + RepositoryRuleOneof15Type, + RepositoryRuleOneof16Type, + RepositoryRuleOneof17Type, + RepositoryRuleWorkflowsType, + RepositoryRuleCodeScanningType, + ] + ] + ] -__all__ = ("UserCodespacesGetResponse200Type",) +__all__ = ("ReposOwnerRepoRulesetsRulesetIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1049.py b/githubkit/versions/v2022_11_28/types/group_1049.py index dc342bf35..6dd2f6735 100644 --- a/githubkit/versions/v2022_11_28/types/group_1049.py +++ b/githubkit/versions/v2022_11_28/types/group_1049.py @@ -9,25 +9,18 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class UserCodespacesPostBodyOneof0Type(TypedDict): - """UserCodespacesPostBodyOneof0""" +class ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType(TypedDict): + """ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBody""" - 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] + state: Literal["open", "resolved"] + resolution: NotRequired[ + Union[None, Literal["false_positive", "wont_fix", "revoked", "used_in_tests"]] + ] + resolution_comment: NotRequired[Union[str, None]] -__all__ = ("UserCodespacesPostBodyOneof0Type",) +__all__ = ("ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1050.py b/githubkit/versions/v2022_11_28/types/group_1050.py index cf235f497..48f7d82ce 100644 --- a/githubkit/versions/v2022_11_28/types/group_1050.py +++ b/githubkit/versions/v2022_11_28/types/group_1050.py @@ -9,33 +9,17 @@ from __future__ import annotations -from typing import Literal +from typing import Union, Literal from typing_extensions import TypedDict, NotRequired -class UserCodespacesPostBodyOneof1Type(TypedDict): - """UserCodespacesPostBodyOneof1""" +class ReposOwnerRepoStatusesShaPostBodyType(TypedDict): + """ReposOwnerRepoStatusesShaPostBody""" - 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] + state: Literal["error", "failure", "pending", "success"] + target_url: NotRequired[Union[str, None]] + description: NotRequired[Union[str, None]] + context: NotRequired[str] -class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): - """UserCodespacesPostBodyOneof1PropPullRequest - - Pull request number for this codespace - """ - - pull_request_number: int - repository_id: int - - -__all__ = ( - "UserCodespacesPostBodyOneof1Type", - "UserCodespacesPostBodyOneof1PropPullRequestType", -) +__all__ = ("ReposOwnerRepoStatusesShaPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1051.py b/githubkit/versions/v2022_11_28/types/group_1051.py index 6c62a2d33..9e6d26d8a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1051.py +++ b/githubkit/versions/v2022_11_28/types/group_1051.py @@ -9,32 +9,14 @@ from __future__ import annotations -from datetime import datetime -from typing import List, Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class UserCodespacesSecretsGetResponse200Type(TypedDict): - """UserCodespacesSecretsGetResponse200""" +class ReposOwnerRepoSubscriptionPutBodyType(TypedDict): + """ReposOwnerRepoSubscriptionPutBody""" - total_count: int - secrets: List[CodespacesSecretType] + subscribed: NotRequired[bool] + ignored: NotRequired[bool] -class CodespacesSecretType(TypedDict): - """Codespaces Secret - - Secrets for a GitHub Codespace. - """ - - name: str - created_at: datetime - updated_at: datetime - visibility: Literal["all", "private", "selected"] - selected_repositories_url: str - - -__all__ = ( - "UserCodespacesSecretsGetResponse200Type", - "CodespacesSecretType", -) +__all__ = ("ReposOwnerRepoSubscriptionPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1052.py b/githubkit/versions/v2022_11_28/types/group_1052.py index f7e1dab5d..492fdc91e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1052.py +++ b/githubkit/versions/v2022_11_28/types/group_1052.py @@ -9,16 +9,13 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import TypedDict, NotRequired +from typing_extensions import TypedDict -class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): - """UserCodespacesSecretsSecretNamePutBody""" +class ReposOwnerRepoTagsProtectionPostBodyType(TypedDict): + """ReposOwnerRepoTagsProtectionPostBody""" - encrypted_value: NotRequired[str] - key_id: str - selected_repository_ids: NotRequired[List[Union[int, str]]] + pattern: str -__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) +__all__ = ("ReposOwnerRepoTagsProtectionPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1053.py b/githubkit/versions/v2022_11_28/types/group_1053.py index f2b54254b..681ccb3a7 100644 --- a/githubkit/versions/v2022_11_28/types/group_1053.py +++ b/githubkit/versions/v2022_11_28/types/group_1053.py @@ -12,14 +12,11 @@ from typing import List from typing_extensions import TypedDict -from .group_0051 import MinimalRepositoryType +class ReposOwnerRepoTopicsPutBodyType(TypedDict): + """ReposOwnerRepoTopicsPutBody""" -class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + names: List[str] - total_count: int - repositories: List[MinimalRepositoryType] - -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) +__all__ = ("ReposOwnerRepoTopicsPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1054.py b/githubkit/versions/v2022_11_28/types/group_1054.py index 623f6ef5e..75339e545 100644 --- a/githubkit/versions/v2022_11_28/types/group_1054.py +++ b/githubkit/versions/v2022_11_28/types/group_1054.py @@ -10,13 +10,15 @@ from __future__ import annotations from typing import List -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): - """UserCodespacesSecretsSecretNameRepositoriesPutBody""" +class ReposOwnerRepoTransferPostBodyType(TypedDict): + """ReposOwnerRepoTransferPostBody""" - selected_repository_ids: List[int] + new_owner: str + new_name: NotRequired[str] + team_ids: NotRequired[List[int]] -__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) +__all__ = ("ReposOwnerRepoTransferPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1055.py b/githubkit/versions/v2022_11_28/types/group_1055.py index b46628249..0b51fb534 100644 --- a/githubkit/versions/v2022_11_28/types/group_1055.py +++ b/githubkit/versions/v2022_11_28/types/group_1055.py @@ -9,16 +9,17 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict, NotRequired -class UserCodespacesCodespaceNamePatchBodyType(TypedDict): - """UserCodespacesCodespaceNamePatchBody""" +class ReposTemplateOwnerTemplateRepoGeneratePostBodyType(TypedDict): + """ReposTemplateOwnerTemplateRepoGeneratePostBody""" - machine: NotRequired[str] - display_name: NotRequired[str] - recent_folders: NotRequired[List[str]] + owner: NotRequired[str] + name: str + description: NotRequired[str] + include_all_branches: NotRequired[bool] + private: NotRequired[bool] -__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) +__all__ = ("ReposTemplateOwnerTemplateRepoGeneratePostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1056.py b/githubkit/versions/v2022_11_28/types/group_1056.py index fa6ae8e4d..b589c2a6a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1056.py +++ b/githubkit/versions/v2022_11_28/types/group_1056.py @@ -9,17 +9,21 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Union, Literal +from typing_extensions import TypedDict, NotRequired -from .group_0071 import CodespaceMachineType +class TeamsTeamIdPatchBodyType(TypedDict): + """TeamsTeamIdPatchBody""" -class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): - """UserCodespacesCodespaceNameMachinesGetResponse200""" + name: str + description: NotRequired[str] + privacy: NotRequired[Literal["secret", "closed"]] + notification_setting: NotRequired[ + Literal["notifications_enabled", "notifications_disabled"] + ] + permission: NotRequired[Literal["pull", "push", "admin"]] + parent_team_id: NotRequired[Union[int, None]] - total_count: int - machines: List[CodespaceMachineType] - -__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) +__all__ = ("TeamsTeamIdPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1057.py b/githubkit/versions/v2022_11_28/types/group_1057.py index adf5558f2..46f00fe63 100644 --- a/githubkit/versions/v2022_11_28/types/group_1057.py +++ b/githubkit/versions/v2022_11_28/types/group_1057.py @@ -12,11 +12,12 @@ from typing_extensions import TypedDict, NotRequired -class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): - """UserCodespacesCodespaceNamePublishPostBody""" +class TeamsTeamIdDiscussionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsPostBody""" - name: NotRequired[str] + title: str + body: str private: NotRequired[bool] -__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) +__all__ = ("TeamsTeamIdDiscussionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1058.py b/githubkit/versions/v2022_11_28/types/group_1058.py index 741f85377..2797e0af9 100644 --- a/githubkit/versions/v2022_11_28/types/group_1058.py +++ b/githubkit/versions/v2022_11_28/types/group_1058.py @@ -9,14 +9,14 @@ from __future__ import annotations -from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class UserEmailVisibilityPatchBodyType(TypedDict): - """UserEmailVisibilityPatchBody""" +class TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberPatchBody""" - visibility: Literal["public", "private"] + title: NotRequired[str] + body: NotRequired[str] -__all__ = ("UserEmailVisibilityPatchBodyType",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1059.py b/githubkit/versions/v2022_11_28/types/group_1059.py index 76706bdf0..49b6126e3 100644 --- a/githubkit/versions/v2022_11_28/types/group_1059.py +++ b/githubkit/versions/v2022_11_28/types/group_1059.py @@ -9,18 +9,13 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class UserEmailsPostBodyOneof0Type(TypedDict): - """UserEmailsPostBodyOneof0 +class TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBody""" - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ + body: str - emails: List[str] - -__all__ = ("UserEmailsPostBodyOneof0Type",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1060.py b/githubkit/versions/v2022_11_28/types/group_1060.py index a7b448531..aba26488a 100644 --- a/githubkit/versions/v2022_11_28/types/group_1060.py +++ b/githubkit/versions/v2022_11_28/types/group_1060.py @@ -9,23 +9,15 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict -class UserEmailsDeleteBodyOneof0Type(TypedDict): - """UserEmailsDeleteBodyOneof0 +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBody""" - 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. + body: str - Examples: - {'emails': ['octocat@github.com', 'mona@github.com']} - """ - emails: List[str] - - -__all__ = ("UserEmailsDeleteBodyOneof0Type",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1061.py b/githubkit/versions/v2022_11_28/types/group_1061.py index c3eff10ec..ea06c9bbf 100644 --- a/githubkit/versions/v2022_11_28/types/group_1061.py +++ b/githubkit/versions/v2022_11_28/types/group_1061.py @@ -9,14 +9,20 @@ from __future__ import annotations -from typing_extensions import TypedDict, NotRequired +from typing import Literal +from typing_extensions import TypedDict -class UserGpgKeysPostBodyType(TypedDict): - """UserGpgKeysPostBody""" +class TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType( + TypedDict +): + """TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBody""" - name: NotRequired[str] - armored_public_key: str + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] -__all__ = ("UserGpgKeysPostBodyType",) +__all__ = ( + "TeamsTeamIdDiscussionsDiscussionNumberCommentsCommentNumberReactionsPostBodyType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1062.py b/githubkit/versions/v2022_11_28/types/group_1062.py index 64abc4546..02edb1cc8 100644 --- a/githubkit/versions/v2022_11_28/types/group_1062.py +++ b/githubkit/versions/v2022_11_28/types/group_1062.py @@ -9,17 +9,16 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict -from .group_0015 import InstallationType +class TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType(TypedDict): + """TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBody""" -class UserInstallationsGetResponse200Type(TypedDict): - """UserInstallationsGetResponse200""" + content: Literal[ + "+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes" + ] - total_count: int - installations: List[InstallationType] - -__all__ = ("UserInstallationsGetResponse200Type",) +__all__ = ("TeamsTeamIdDiscussionsDiscussionNumberReactionsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1063.py b/githubkit/versions/v2022_11_28/types/group_1063.py index a8c57fcc3..8ac2e4896 100644 --- a/githubkit/versions/v2022_11_28/types/group_1063.py +++ b/githubkit/versions/v2022_11_28/types/group_1063.py @@ -9,18 +9,14 @@ from __future__ import annotations -from typing import List +from typing import Literal from typing_extensions import TypedDict, NotRequired -from .group_0017 import RepositoryType +class TeamsTeamIdMembershipsUsernamePutBodyType(TypedDict): + """TeamsTeamIdMembershipsUsernamePutBody""" -class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): - """UserInstallationsInstallationIdRepositoriesGetResponse200""" + role: NotRequired[Literal["member", "maintainer"]] - total_count: int - repository_selection: NotRequired[str] - repositories: List[RepositoryType] - -__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) +__all__ = ("TeamsTeamIdMembershipsUsernamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1064.py b/githubkit/versions/v2022_11_28/types/group_1064.py index 9f9dd053b..206f6e4e5 100644 --- a/githubkit/versions/v2022_11_28/types/group_1064.py +++ b/githubkit/versions/v2022_11_28/types/group_1064.py @@ -9,11 +9,14 @@ from __future__ import annotations -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): - """UserInteractionLimitsGetResponse200Anyof1""" +class TeamsTeamIdProjectsProjectIdPutBodyType(TypedDict): + """TeamsTeamIdProjectsProjectIdPutBody""" + permission: NotRequired[Literal["read", "write", "admin"]] -__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) + +__all__ = ("TeamsTeamIdProjectsProjectIdPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1065.py b/githubkit/versions/v2022_11_28/types/group_1065.py index 01b3a0e4d..fd87b040e 100644 --- a/githubkit/versions/v2022_11_28/types/group_1065.py +++ b/githubkit/versions/v2022_11_28/types/group_1065.py @@ -12,11 +12,11 @@ from typing_extensions import TypedDict, NotRequired -class UserKeysPostBodyType(TypedDict): - """UserKeysPostBody""" +class TeamsTeamIdProjectsProjectIdPutResponse403Type(TypedDict): + """TeamsTeamIdProjectsProjectIdPutResponse403""" - title: NotRequired[str] - key: str + message: NotRequired[str] + documentation_url: NotRequired[str] -__all__ = ("UserKeysPostBodyType",) +__all__ = ("TeamsTeamIdProjectsProjectIdPutResponse403Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1066.py b/githubkit/versions/v2022_11_28/types/group_1066.py index 718052573..5f68e3fc2 100644 --- a/githubkit/versions/v2022_11_28/types/group_1066.py +++ b/githubkit/versions/v2022_11_28/types/group_1066.py @@ -10,13 +10,13 @@ from __future__ import annotations from typing import Literal -from typing_extensions import TypedDict +from typing_extensions import TypedDict, NotRequired -class UserMembershipsOrgsOrgPatchBodyType(TypedDict): - """UserMembershipsOrgsOrgPatchBody""" +class TeamsTeamIdReposOwnerRepoPutBodyType(TypedDict): + """TeamsTeamIdReposOwnerRepoPutBody""" - state: Literal["active"] + permission: NotRequired[Literal["pull", "push", "admin"]] -__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) +__all__ = ("TeamsTeamIdReposOwnerRepoPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1067.py b/githubkit/versions/v2022_11_28/types/group_1067.py index 4d601de18..a5b98bc3c 100644 --- a/githubkit/versions/v2022_11_28/types/group_1067.py +++ b/githubkit/versions/v2022_11_28/types/group_1067.py @@ -9,22 +9,21 @@ from __future__ import annotations -from typing import List, Literal +from typing import Union from typing_extensions import TypedDict, NotRequired -class UserMigrationsPostBodyType(TypedDict): - """UserMigrationsPostBody""" +class UserPatchBodyType(TypedDict): + """UserPatchBody""" - lock_repositories: NotRequired[bool] - exclude_metadata: NotRequired[bool] - exclude_git_data: NotRequired[bool] - exclude_attachments: NotRequired[bool] - exclude_releases: NotRequired[bool] - exclude_owner_projects: NotRequired[bool] - org_metadata_only: NotRequired[bool] - exclude: NotRequired[List[Literal["repositories"]]] - repositories: List[str] + name: NotRequired[str] + 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__ = ("UserMigrationsPostBodyType",) +__all__ = ("UserPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1068.py b/githubkit/versions/v2022_11_28/types/group_1068.py index 788630d15..196edda88 100644 --- a/githubkit/versions/v2022_11_28/types/group_1068.py +++ b/githubkit/versions/v2022_11_28/types/group_1068.py @@ -9,15 +9,17 @@ from __future__ import annotations -from typing import Union -from typing_extensions import TypedDict, NotRequired +from typing import List +from typing_extensions import TypedDict +from .group_0078 import CodespaceType -class UserProjectsPostBodyType(TypedDict): - """UserProjectsPostBody""" - name: str - body: NotRequired[Union[str, None]] +class UserCodespacesGetResponse200Type(TypedDict): + """UserCodespacesGetResponse200""" + total_count: int + codespaces: List[CodespaceType] -__all__ = ("UserProjectsPostBodyType",) + +__all__ = ("UserCodespacesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1069.py b/githubkit/versions/v2022_11_28/types/group_1069.py index 7b85c56d3..dc342bf35 100644 --- a/githubkit/versions/v2022_11_28/types/group_1069.py +++ b/githubkit/versions/v2022_11_28/types/group_1069.py @@ -13,34 +13,21 @@ from typing_extensions import TypedDict, NotRequired -class UserReposPostBodyType(TypedDict): - """UserReposPostBody""" - - name: str - description: NotRequired[str] - homepage: NotRequired[str] - private: NotRequired[bool] - has_issues: NotRequired[bool] - has_projects: NotRequired[bool] - has_wiki: NotRequired[bool] - has_discussions: NotRequired[bool] - team_id: NotRequired[int] - auto_init: NotRequired[bool] - gitignore_template: NotRequired[str] - license_template: NotRequired[str] - allow_squash_merge: NotRequired[bool] - allow_merge_commit: NotRequired[bool] - allow_rebase_merge: NotRequired[bool] - allow_auto_merge: NotRequired[bool] - delete_branch_on_merge: NotRequired[bool] - squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] - squash_merge_commit_message: NotRequired[ - Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] - ] - merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] - merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] - has_downloads: NotRequired[bool] - is_template: NotRequired[bool] - - -__all__ = ("UserReposPostBodyType",) +class UserCodespacesPostBodyOneof0Type(TypedDict): + """UserCodespacesPostBodyOneof0""" + + repository_id: int + ref: NotRequired[str] + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + client_ip: NotRequired[str] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + multi_repo_permissions_opt_out: NotRequired[bool] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + display_name: NotRequired[str] + retention_period_minutes: NotRequired[int] + + +__all__ = ("UserCodespacesPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1070.py b/githubkit/versions/v2022_11_28/types/group_1070.py index e15229eae..cf235f497 100644 --- a/githubkit/versions/v2022_11_28/types/group_1070.py +++ b/githubkit/versions/v2022_11_28/types/group_1070.py @@ -9,19 +9,33 @@ from __future__ import annotations -from typing import List -from typing_extensions import TypedDict +from typing import Literal +from typing_extensions import TypedDict, NotRequired -class UserSocialAccountsPostBodyType(TypedDict): - """UserSocialAccountsPostBody +class UserCodespacesPostBodyOneof1Type(TypedDict): + """UserCodespacesPostBodyOneof1""" - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} + pull_request: UserCodespacesPostBodyOneof1PropPullRequestType + location: NotRequired[str] + geo: NotRequired[Literal["EuropeWest", "SoutheastAsia", "UsEast", "UsWest"]] + machine: NotRequired[str] + devcontainer_path: NotRequired[str] + working_directory: NotRequired[str] + idle_timeout_minutes: NotRequired[int] + + +class UserCodespacesPostBodyOneof1PropPullRequestType(TypedDict): + """UserCodespacesPostBodyOneof1PropPullRequest + + Pull request number for this codespace """ - account_urls: List[str] + pull_request_number: int + repository_id: int -__all__ = ("UserSocialAccountsPostBodyType",) +__all__ = ( + "UserCodespacesPostBodyOneof1Type", + "UserCodespacesPostBodyOneof1PropPullRequestType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1071.py b/githubkit/versions/v2022_11_28/types/group_1071.py index ee2d5aa51..6c62a2d33 100644 --- a/githubkit/versions/v2022_11_28/types/group_1071.py +++ b/githubkit/versions/v2022_11_28/types/group_1071.py @@ -9,19 +9,32 @@ from __future__ import annotations -from typing import List +from datetime import datetime +from typing import List, Literal from typing_extensions import TypedDict -class UserSocialAccountsDeleteBodyType(TypedDict): - """UserSocialAccountsDeleteBody +class UserCodespacesSecretsGetResponse200Type(TypedDict): + """UserCodespacesSecretsGetResponse200""" - Examples: - {'account_urls': ['https://www.linkedin.com/company/github/', - 'https://twitter.com/github']} + total_count: int + secrets: List[CodespacesSecretType] + + +class CodespacesSecretType(TypedDict): + """Codespaces Secret + + Secrets for a GitHub Codespace. """ - account_urls: List[str] + name: str + created_at: datetime + updated_at: datetime + visibility: Literal["all", "private", "selected"] + selected_repositories_url: str -__all__ = ("UserSocialAccountsDeleteBodyType",) +__all__ = ( + "UserCodespacesSecretsGetResponse200Type", + "CodespacesSecretType", +) diff --git a/githubkit/versions/v2022_11_28/types/group_1072.py b/githubkit/versions/v2022_11_28/types/group_1072.py index 4e43f5e67..f7e1dab5d 100644 --- a/githubkit/versions/v2022_11_28/types/group_1072.py +++ b/githubkit/versions/v2022_11_28/types/group_1072.py @@ -9,14 +9,16 @@ from __future__ import annotations +from typing import List, Union from typing_extensions import TypedDict, NotRequired -class UserSshSigningKeysPostBodyType(TypedDict): - """UserSshSigningKeysPostBody""" +class UserCodespacesSecretsSecretNamePutBodyType(TypedDict): + """UserCodespacesSecretsSecretNamePutBody""" - title: NotRequired[str] - key: str + encrypted_value: NotRequired[str] + key_id: str + selected_repository_ids: NotRequired[List[Union[int, str]]] -__all__ = ("UserSshSigningKeysPostBodyType",) +__all__ = ("UserCodespacesSecretsSecretNamePutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1073.py b/githubkit/versions/v2022_11_28/types/group_1073.py new file mode 100644 index 000000000..36aa20a41 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1073.py @@ -0,0 +1,25 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List +from typing_extensions import TypedDict + +from .group_0055 import MinimalRepositoryType + + +class UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesGetResponse200""" + + total_count: int + repositories: List[MinimalRepositoryType] + + +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1074.py b/githubkit/versions/v2022_11_28/types/group_1074.py new file mode 100644 index 000000000..623f6ef5e --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1074.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List +from typing_extensions import TypedDict + + +class UserCodespacesSecretsSecretNameRepositoriesPutBodyType(TypedDict): + """UserCodespacesSecretsSecretNameRepositoriesPutBody""" + + selected_repository_ids: List[int] + + +__all__ = ("UserCodespacesSecretsSecretNameRepositoriesPutBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1075.py b/githubkit/versions/v2022_11_28/types/group_1075.py new file mode 100644 index 000000000..b46628249 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1075.py @@ -0,0 +1,24 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List +from typing_extensions import TypedDict, NotRequired + + +class UserCodespacesCodespaceNamePatchBodyType(TypedDict): + """UserCodespacesCodespaceNamePatchBody""" + + machine: NotRequired[str] + display_name: NotRequired[str] + recent_folders: NotRequired[List[str]] + + +__all__ = ("UserCodespacesCodespaceNamePatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1076.py b/githubkit/versions/v2022_11_28/types/group_1076.py new file mode 100644 index 000000000..3e32b371e --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1076.py @@ -0,0 +1,25 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List +from typing_extensions import TypedDict + +from .group_0077 import CodespaceMachineType + + +class UserCodespacesCodespaceNameMachinesGetResponse200Type(TypedDict): + """UserCodespacesCodespaceNameMachinesGetResponse200""" + + total_count: int + machines: List[CodespaceMachineType] + + +__all__ = ("UserCodespacesCodespaceNameMachinesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1077.py b/githubkit/versions/v2022_11_28/types/group_1077.py new file mode 100644 index 000000000..adf5558f2 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1077.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict, NotRequired + + +class UserCodespacesCodespaceNamePublishPostBodyType(TypedDict): + """UserCodespacesCodespaceNamePublishPostBody""" + + name: NotRequired[str] + private: NotRequired[bool] + + +__all__ = ("UserCodespacesCodespaceNamePublishPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1078.py b/githubkit/versions/v2022_11_28/types/group_1078.py new file mode 100644 index 000000000..741f85377 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1078.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import TypedDict + + +class UserEmailVisibilityPatchBodyType(TypedDict): + """UserEmailVisibilityPatchBody""" + + visibility: Literal["public", "private"] + + +__all__ = ("UserEmailVisibilityPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1079.py b/githubkit/versions/v2022_11_28/types/group_1079.py new file mode 100644 index 000000000..76706bdf0 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1079.py @@ -0,0 +1,26 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List +from typing_extensions import TypedDict + + +class UserEmailsPostBodyOneof0Type(TypedDict): + """UserEmailsPostBodyOneof0 + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + + emails: List[str] + + +__all__ = ("UserEmailsPostBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1080.py b/githubkit/versions/v2022_11_28/types/group_1080.py new file mode 100644 index 000000000..a7b448531 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1080.py @@ -0,0 +1,31 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List +from typing_extensions import TypedDict + + +class UserEmailsDeleteBodyOneof0Type(TypedDict): + """UserEmailsDeleteBodyOneof0 + + Deletes one or more email addresses from your GitHub account. Must contain at + least one email address. **Note:** Alternatively, you can pass a single email + address or an `array` of emails addresses directly, but we recommend that you + pass an object using the `emails` key. + + Examples: + {'emails': ['octocat@github.com', 'mona@github.com']} + """ + + emails: List[str] + + +__all__ = ("UserEmailsDeleteBodyOneof0Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1081.py b/githubkit/versions/v2022_11_28/types/group_1081.py new file mode 100644 index 000000000..c3eff10ec --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1081.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict, NotRequired + + +class UserGpgKeysPostBodyType(TypedDict): + """UserGpgKeysPostBody""" + + name: NotRequired[str] + armored_public_key: str + + +__all__ = ("UserGpgKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1082.py b/githubkit/versions/v2022_11_28/types/group_1082.py new file mode 100644 index 000000000..64abc4546 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1082.py @@ -0,0 +1,25 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List +from typing_extensions import TypedDict + +from .group_0015 import InstallationType + + +class UserInstallationsGetResponse200Type(TypedDict): + """UserInstallationsGetResponse200""" + + total_count: int + installations: List[InstallationType] + + +__all__ = ("UserInstallationsGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1083.py b/githubkit/versions/v2022_11_28/types/group_1083.py new file mode 100644 index 000000000..a8c57fcc3 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1083.py @@ -0,0 +1,26 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List +from typing_extensions import TypedDict, NotRequired + +from .group_0017 import RepositoryType + + +class UserInstallationsInstallationIdRepositoriesGetResponse200Type(TypedDict): + """UserInstallationsInstallationIdRepositoriesGetResponse200""" + + total_count: int + repository_selection: NotRequired[str] + repositories: List[RepositoryType] + + +__all__ = ("UserInstallationsInstallationIdRepositoriesGetResponse200Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1084.py b/githubkit/versions/v2022_11_28/types/group_1084.py new file mode 100644 index 000000000..9f9dd053b --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1084.py @@ -0,0 +1,19 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict + + +class UserInteractionLimitsGetResponse200Anyof1Type(TypedDict): + """UserInteractionLimitsGetResponse200Anyof1""" + + +__all__ = ("UserInteractionLimitsGetResponse200Anyof1Type",) diff --git a/githubkit/versions/v2022_11_28/types/group_1085.py b/githubkit/versions/v2022_11_28/types/group_1085.py new file mode 100644 index 000000000..01b3a0e4d --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1085.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict, NotRequired + + +class UserKeysPostBodyType(TypedDict): + """UserKeysPostBody""" + + title: NotRequired[str] + key: str + + +__all__ = ("UserKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1086.py b/githubkit/versions/v2022_11_28/types/group_1086.py new file mode 100644 index 000000000..718052573 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1086.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import TypedDict + + +class UserMembershipsOrgsOrgPatchBodyType(TypedDict): + """UserMembershipsOrgsOrgPatchBody""" + + state: Literal["active"] + + +__all__ = ("UserMembershipsOrgsOrgPatchBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1087.py b/githubkit/versions/v2022_11_28/types/group_1087.py new file mode 100644 index 000000000..4d601de18 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1087.py @@ -0,0 +1,30 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List, Literal +from typing_extensions import TypedDict, NotRequired + + +class UserMigrationsPostBodyType(TypedDict): + """UserMigrationsPostBody""" + + lock_repositories: NotRequired[bool] + exclude_metadata: NotRequired[bool] + exclude_git_data: NotRequired[bool] + exclude_attachments: NotRequired[bool] + exclude_releases: NotRequired[bool] + exclude_owner_projects: NotRequired[bool] + org_metadata_only: NotRequired[bool] + exclude: NotRequired[List[Literal["repositories"]]] + repositories: List[str] + + +__all__ = ("UserMigrationsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1088.py b/githubkit/versions/v2022_11_28/types/group_1088.py new file mode 100644 index 000000000..788630d15 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1088.py @@ -0,0 +1,23 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Union +from typing_extensions import TypedDict, NotRequired + + +class UserProjectsPostBodyType(TypedDict): + """UserProjectsPostBody""" + + name: str + body: NotRequired[Union[str, None]] + + +__all__ = ("UserProjectsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1089.py b/githubkit/versions/v2022_11_28/types/group_1089.py new file mode 100644 index 000000000..7b85c56d3 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1089.py @@ -0,0 +1,46 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import Literal +from typing_extensions import TypedDict, NotRequired + + +class UserReposPostBodyType(TypedDict): + """UserReposPostBody""" + + name: str + description: NotRequired[str] + homepage: NotRequired[str] + private: NotRequired[bool] + has_issues: NotRequired[bool] + has_projects: NotRequired[bool] + has_wiki: NotRequired[bool] + has_discussions: NotRequired[bool] + team_id: NotRequired[int] + auto_init: NotRequired[bool] + gitignore_template: NotRequired[str] + license_template: NotRequired[str] + allow_squash_merge: NotRequired[bool] + allow_merge_commit: NotRequired[bool] + allow_rebase_merge: NotRequired[bool] + allow_auto_merge: NotRequired[bool] + delete_branch_on_merge: NotRequired[bool] + squash_merge_commit_title: NotRequired[Literal["PR_TITLE", "COMMIT_OR_PR_TITLE"]] + squash_merge_commit_message: NotRequired[ + Literal["PR_BODY", "COMMIT_MESSAGES", "BLANK"] + ] + merge_commit_title: NotRequired[Literal["PR_TITLE", "MERGE_MESSAGE"]] + merge_commit_message: NotRequired[Literal["PR_BODY", "PR_TITLE", "BLANK"]] + has_downloads: NotRequired[bool] + is_template: NotRequired[bool] + + +__all__ = ("UserReposPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1090.py b/githubkit/versions/v2022_11_28/types/group_1090.py new file mode 100644 index 000000000..e15229eae --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1090.py @@ -0,0 +1,27 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List +from typing_extensions import TypedDict + + +class UserSocialAccountsPostBodyType(TypedDict): + """UserSocialAccountsPostBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: List[str] + + +__all__ = ("UserSocialAccountsPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1091.py b/githubkit/versions/v2022_11_28/types/group_1091.py new file mode 100644 index 000000000..ee2d5aa51 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1091.py @@ -0,0 +1,27 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List +from typing_extensions import TypedDict + + +class UserSocialAccountsDeleteBodyType(TypedDict): + """UserSocialAccountsDeleteBody + + Examples: + {'account_urls': ['https://www.linkedin.com/company/github/', + 'https://twitter.com/github']} + """ + + account_urls: List[str] + + +__all__ = ("UserSocialAccountsDeleteBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1092.py b/githubkit/versions/v2022_11_28/types/group_1092.py new file mode 100644 index 000000000..4e43f5e67 --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1092.py @@ -0,0 +1,22 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing_extensions import TypedDict, NotRequired + + +class UserSshSigningKeysPostBodyType(TypedDict): + """UserSshSigningKeysPostBody""" + + title: NotRequired[str] + key: str + + +__all__ = ("UserSshSigningKeysPostBodyType",) diff --git a/githubkit/versions/v2022_11_28/types/group_1093.py b/githubkit/versions/v2022_11_28/types/group_1093.py new file mode 100644 index 000000000..293532f7a --- /dev/null +++ b/githubkit/versions/v2022_11_28/types/group_1093.py @@ -0,0 +1,151 @@ +"""DO NOT EDIT THIS FILE! + +This file is automatically @generated by githubkit using the follow command: + +bash ./scripts/run-codegen.sh + +See https://github.com/github/rest-api-description for more information. +""" + +from __future__ import annotations + +from typing import List, Union +from typing_extensions import TypedDict, NotRequired + + +class UsersUsernameAttestationsSubjectDigestGetResponse200Type(TypedDict): + """UsersUsernameAttestationsSubjectDigestGetResponse200""" + + attestations: NotRequired[ + List[ + UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType + ] + ] + + +class UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType( + TypedDict +): + """UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItems""" + + bundle: NotRequired[SigstoreBundle0Type] + repository_id: NotRequired[int] + + +class SigstoreBundle0Type(TypedDict): + """Sigstore Bundle v0.1 + + Sigstore Bundle v0.1 + """ + + media_type: NotRequired[str] + verification_material: NotRequired[SigstoreBundle0PropVerificationMaterialType] + dsse_envelope: NotRequired[SigstoreBundle0PropDsseEnvelopeType] + + +class SigstoreBundle0PropDsseEnvelopeType(TypedDict): + """SigstoreBundle0PropDsseEnvelope""" + + payload: NotRequired[str] + payload_type: NotRequired[str] + signatures: NotRequired[ + List[SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType] + ] + + +class SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType(TypedDict): + """SigstoreBundle0PropDsseEnvelopePropSignaturesItems""" + + sig: NotRequired[str] + keyid: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialType(TypedDict): + """SigstoreBundle0PropVerificationMaterial""" + + x_509_certificate_chain: NotRequired[ + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType + ] + tlog_entries: NotRequired[ + List[SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType] + ] + timestamp_verification_data: NotRequired[Union[str, None]] + + +class SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType(TypedDict): + """SigstoreBundle0PropVerificationMaterialPropX509CertificateChain""" + + certificates: NotRequired[ + List[ + SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType + ] + ] + + +class SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType( + TypedDict +): + """SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesI + tems + """ + + raw_bytes: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType(TypedDict): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItems""" + + log_index: NotRequired[str] + log_id: NotRequired[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType + ] + kind_version: NotRequired[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType + ] + integrated_time: NotRequired[str] + inclusion_promise: NotRequired[ + SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType + ] + inclusion_proof: NotRequired[Union[str, None]] + canonicalized_body: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType( + TypedDict +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogId""" + + key_id: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType( + TypedDict +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersion""" + + kind: NotRequired[str] + version: NotRequired[str] + + +class SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType( + TypedDict +): + """SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromise""" + + signed_entry_timestamp: NotRequired[str] + + +__all__ = ( + "UsersUsernameAttestationsSubjectDigestGetResponse200Type", + "UsersUsernameAttestationsSubjectDigestGetResponse200PropAttestationsItemsType", + "SigstoreBundle0Type", + "SigstoreBundle0PropDsseEnvelopeType", + "SigstoreBundle0PropDsseEnvelopePropSignaturesItemsType", + "SigstoreBundle0PropVerificationMaterialType", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainType", + "SigstoreBundle0PropVerificationMaterialPropX509CertificateChainPropCertificatesItemsType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropLogIdType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropKindVersionType", + "SigstoreBundle0PropVerificationMaterialPropTlogEntriesItemsPropInclusionPromiseType", +) diff --git a/githubkit/versions/v2022_11_28/webhooks/__init__.py b/githubkit/versions/v2022_11_28/webhooks/__init__.py index f4ca96a8c..e5056c1b1 100644 --- a/githubkit/versions/v2022_11_28/webhooks/__init__.py +++ b/githubkit/versions/v2022_11_28/webhooks/__init__.py @@ -163,6 +163,9 @@ from .github_app_authorization import ( GithubAppAuthorizationEvent as GithubAppAuthorizationEvent, ) + from .projects_v2_status_update import ( + ProjectsV2StatusUpdateEvent as ProjectsV2StatusUpdateEvent, + ) from .discussion_comment import ( discussion_comment_action_types as discussion_comment_action_types, ) @@ -229,6 +232,9 @@ from .installation_repositories import ( installation_repositories_action_types as installation_repositories_action_types, ) + from .projects_v2_status_update import ( + projects_v2_status_update_action_types as projects_v2_status_update_action_types, + ) from .deployment_protection_rule import ( deployment_protection_rule_action_types as deployment_protection_rule_action_types, ) @@ -335,6 +341,10 @@ ".project_column": ("ProjectColumnEvent", "project_column_action_types"), ".projects_v2": ("ProjectsV2Event", "projects_v2_action_types"), ".projects_v2_item": ("ProjectsV2ItemEvent", "projects_v2_item_action_types"), + ".projects_v2_status_update": ( + "ProjectsV2StatusUpdateEvent", + "projects_v2_status_update_action_types", + ), ".public": ("PublicEvent", "public_action_types"), ".pull_request": ("PullRequestEvent", "pull_request_action_types"), ".pull_request_review_comment": ( diff --git a/githubkit/versions/v2022_11_28/webhooks/_namespace.py b/githubkit/versions/v2022_11_28/webhooks/_namespace.py index 2fcb69f09..6e3d240d1 100644 --- a/githubkit/versions/v2022_11_28/webhooks/_namespace.py +++ b/githubkit/versions/v2022_11_28/webhooks/_namespace.py @@ -86,6 +86,7 @@ from .branch_protection_rule import BranchProtectionRuleEvent from .custom_property_values import CustomPropertyValuesEvent from .github_app_authorization import GithubAppAuthorizationEvent + from .projects_v2_status_update import ProjectsV2StatusUpdateEvent from .installation_repositories import InstallationRepositoriesEvent from .pull_request_review_thread import PullRequestReviewThreadEvent from .deployment_protection_rule import DeploymentProtectionRuleEvent @@ -141,6 +142,7 @@ "project_column", "projects_v2", "projects_v2_item", + "projects_v2_status_update", "public", "pull_request", "pull_request_review_comment", @@ -214,6 +216,7 @@ "project_column", "projects_v2", "projects_v2_item", + "projects_v2_status_update", "public", "pull_request", "pull_request_review_comment", @@ -466,6 +469,11 @@ def parse( ) -> "ProjectsV2ItemEvent": ... @overload @staticmethod + def parse( + name: Literal["projects_v2_status_update"], payload: Union[str, bytes] + ) -> "ProjectsV2StatusUpdateEvent": ... + @overload + @staticmethod def parse(name: Literal["public"], payload: Union[str, bytes]) -> "PublicEvent": ... @overload @staticmethod @@ -838,6 +846,11 @@ def parse_obj( ) -> "ProjectsV2ItemEvent": ... @overload @staticmethod + def parse_obj( + name: Literal["projects_v2_status_update"], payload: Dict[str, Any] + ) -> "ProjectsV2StatusUpdateEvent": ... + @overload + @staticmethod def parse_obj( name: Literal["public"], payload: Dict[str, Any] ) -> "PublicEvent": ... diff --git a/githubkit/versions/v2022_11_28/webhooks/_types.py b/githubkit/versions/v2022_11_28/webhooks/_types.py index 062fc547c..5a28430c8 100644 --- a/githubkit/versions/v2022_11_28/webhooks/_types.py +++ b/githubkit/versions/v2022_11_28/webhooks/_types.py @@ -116,6 +116,7 @@ from .github_app_authorization import Event as GithubAppAuthorizationEvent from .dependabot_alert import action_types as dependabot_alert_action_types from .projects_v2_item import action_types as projects_v2_item_action_types +from .projects_v2_status_update import Event as ProjectsV2StatusUpdateEvent from .registry_package import action_types as registry_package_action_types from .deployment_review import action_types as deployment_review_action_types from .deployment_status import action_types as deployment_status_action_types @@ -148,6 +149,9 @@ from .installation_repositories import ( action_types as installation_repositories_action_types, ) +from .projects_v2_status_update import ( + action_types as projects_v2_status_update_action_types, +) from .deployment_protection_rule import ( action_types as deployment_protection_rule_action_types, ) @@ -215,6 +219,7 @@ ProjectColumnEvent, ProjectsV2Event, ProjectsV2ItemEvent, + ProjectsV2StatusUpdateEvent, PublicEvent, PullRequestEvent, PullRequestReviewCommentEvent, @@ -289,6 +294,7 @@ "project_column": project_column_action_types, "projects_v2": projects_v2_action_types, "projects_v2_item": projects_v2_item_action_types, + "projects_v2_status_update": projects_v2_status_update_action_types, "public": public_action_types, "pull_request": pull_request_action_types, "pull_request_review_comment": pull_request_review_comment_action_types, @@ -363,6 +369,7 @@ "project_column": ProjectColumnEvent, "projects_v2": ProjectsV2Event, "projects_v2_item": ProjectsV2ItemEvent, + "projects_v2_status_update": ProjectsV2StatusUpdateEvent, "public": PublicEvent, "pull_request": PullRequestEvent, "pull_request_review_comment": PullRequestReviewCommentEvent, diff --git a/githubkit/versions/v2022_11_28/webhooks/projects_v2_status_update.py b/githubkit/versions/v2022_11_28/webhooks/projects_v2_status_update.py new file mode 100644 index 000000000..e945576c1 --- /dev/null +++ b/githubkit/versions/v2022_11_28/webhooks/projects_v2_status_update.py @@ -0,0 +1,47 @@ +"""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 typing import Dict, Type, Union +from typing_extensions import Annotated, TypeAlias + +from pydantic import Field + +from githubkit.compat import GitHubModel + +from ..models import ( + WebhookProjectsV2StatusUpdateEdited, + WebhookProjectsV2StatusUpdateCreated, + WebhookProjectsV2StatusUpdateDeleted, +) + +Event: TypeAlias = Annotated[ + Union[ + WebhookProjectsV2StatusUpdateCreated, + WebhookProjectsV2StatusUpdateDeleted, + WebhookProjectsV2StatusUpdateEdited, + ], + Field(discriminator="action"), +] + +ProjectsV2StatusUpdateEvent: TypeAlias = Event + +action_types: Dict[str, Type[GitHubModel]] = { + "created": WebhookProjectsV2StatusUpdateCreated, + "deleted": WebhookProjectsV2StatusUpdateDeleted, + "edited": WebhookProjectsV2StatusUpdateEdited, +} + +projects_v2_status_update_action_types = action_types + +__all__ = ( + "Event", + "ProjectsV2StatusUpdateEvent", + "action_types", + "projects_v2_status_update_action_types", +) diff --git a/pyproject.toml b/pyproject.toml index 75c7c0909..a68c02c85 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,8 +25,8 @@ ruff = "^0.5.0" isort = "^5.13.2" Jinja2 = "^3.1.2" nonemoji = "^0.1.2" -jsonpointer = "^3.0.0" pre-commit = "^3.0.0" +jsonpointer = "^3.0.0" openapi-pydantic = "^0.4.0" tomli = { version = "^2.0.1", python = "<3.11" }